http://linux-ntfs.sourceforge.net/snapshots/ntfsprogs-200309071734.tar.bz2
[ntfsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for ntfsprogs 1.7.2-WIP.
4 #
5 # Report bugs to <linux-ntfs-dev@lists.sourceforge.net>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Find the correct PATH separator.  Usually this is `:', but
246 # DJGPP uses `;' like DOS.
247 if test "X${PATH_SEPARATOR+set}" != Xset; then
248   UNAME=${UNAME-`uname 2>/dev/null`}
249   case X$UNAME in
250     *-DOS) lt_cv_sys_path_separator=';' ;;
251     *)     lt_cv_sys_path_separator=':' ;;
252   esac
253   PATH_SEPARATOR=$lt_cv_sys_path_separator
254 fi
255
256
257 # Check that we are running under the correct shell.
258 SHELL=${CONFIG_SHELL-/bin/sh}
259
260 case X$ECHO in
261 X*--fallback-echo)
262   # Remove one level of quotation (which was required for Make).
263   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
264   ;;
265 esac
266
267 echo=${ECHO-echo}
268 if test "X$1" = X--no-reexec; then
269   # Discard the --no-reexec flag, and continue.
270   shift
271 elif test "X$1" = X--fallback-echo; then
272   # Avoid inline document here, it may be left over
273   :
274 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275   # Yippee, $echo works!
276   :
277 else
278   # Restart under the correct shell.
279   exec $SHELL "$0" --no-reexec ${1+"$@"}
280 fi
281
282 if test "X$1" = X--fallback-echo; then
283   # used as fallback echo
284   shift
285   cat <<EOF
286
287 EOF
288   exit 0
289 fi
290
291 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 # if CDPATH is set.
293 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294
295 if test -z "$ECHO"; then
296 if test "X${echo_test_string+set}" != Xset; then
297 # find a string as large as possible, as long as the shell can cope with it
298   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301        echo_test_string="`eval $cmd`" &&
302        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
303     then
304       break
305     fi
306   done
307 fi
308
309 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311    test "X$echo_testing_string" = "X$echo_test_string"; then
312   :
313 else
314   # The Solaris, AIX, and Digital Unix default echo programs unquote
315   # backslashes.  This makes it impossible to quote backslashes using
316   #   echo "$something" | sed 's/\\/\\\\/g'
317   #
318   # So, first we look for a working echo in the user's PATH.
319
320   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321   for dir in $PATH /usr/ucb; do
322     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       echo="$dir/echo"
327       break
328     fi
329   done
330   IFS="$save_ifs"
331
332   if test "X$echo" = Xecho; then
333     # We didn't find a better echo, so look for alternatives.
334     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336        test "X$echo_testing_string" = "X$echo_test_string"; then
337       # This shell has a builtin print -r that does the trick.
338       echo='print -r'
339     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340          test "X$CONFIG_SHELL" != X/bin/ksh; then
341       # If we have ksh, try running configure again with it.
342       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343       export ORIGINAL_CONFIG_SHELL
344       CONFIG_SHELL=/bin/ksh
345       export CONFIG_SHELL
346       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
347     else
348       # Try using printf.
349       echo='printf %s\n'
350       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352          test "X$echo_testing_string" = "X$echo_test_string"; then
353         # Cool, printf works
354         :
355       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360         export CONFIG_SHELL
361         SHELL="$CONFIG_SHELL"
362         export SHELL
363         echo="$CONFIG_SHELL $0 --fallback-echo"
364       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365            test "X$echo_testing_string" = 'X\t' &&
366            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367            test "X$echo_testing_string" = "X$echo_test_string"; then
368         echo="$CONFIG_SHELL $0 --fallback-echo"
369       else
370         # maybe with a smaller string...
371         prev=:
372
373         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
375           then
376             break
377           fi
378           prev="$cmd"
379         done
380
381         if test "$prev" != 'sed 50q "$0"'; then
382           echo_test_string=`eval $prev`
383           export echo_test_string
384           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385         else
386           # Oops.  We lost completely, so just stick with echo.
387           echo=echo
388         fi
389       fi
390     fi
391   fi
392 fi
393 fi
394
395 # Copy echo and quote the copy suitably for passing to libtool from
396 # the Makefile, instead of quoting the original, which is used later.
397 ECHO=$echo
398 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
400 fi
401
402
403
404 # Name of the host.
405 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406 # so uname gets run too.
407 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
409 exec 6>&1
410
411 #
412 # Initializations.
413 #
414 ac_default_prefix=/usr/local
415 ac_config_libobj_dir=.
416 cross_compiling=no
417 subdirs=
418 MFLAGS=
419 MAKEFLAGS=
420 SHELL=${CONFIG_SHELL-/bin/sh}
421
422 # Maximum number of lines to put in a shell here document.
423 # This variable seems obsolete.  It should probably be removed, and
424 # only ac_max_sed_lines should be used.
425 : ${ac_max_here_lines=38}
426
427 # Identity of this package.
428 PACKAGE_NAME='ntfsprogs'
429 PACKAGE_TARNAME='ntfsprogs'
430 PACKAGE_VERSION='1.7.2-WIP'
431 PACKAGE_STRING='ntfsprogs 1.7.2-WIP'
432 PACKAGE_BUGREPORT='linux-ntfs-dev@lists.sourceforge.net'
433
434 ac_unique_file="config.h.in"
435 ac_default_prefix=/usr/local
436 # Factoring default headers for most tests.
437 ac_includes_default="\
438 #include <stdio.h>
439 #if HAVE_SYS_TYPES_H
440 # include <sys/types.h>
441 #endif
442 #if HAVE_SYS_STAT_H
443 # include <sys/stat.h>
444 #endif
445 #if STDC_HEADERS
446 # include <stdlib.h>
447 # include <stddef.h>
448 #else
449 # if HAVE_STDLIB_H
450 #  include <stdlib.h>
451 # endif
452 #endif
453 #if HAVE_STRING_H
454 # if !STDC_HEADERS && HAVE_MEMORY_H
455 #  include <memory.h>
456 # endif
457 # include <string.h>
458 #endif
459 #if HAVE_STRINGS_H
460 # include <strings.h>
461 #endif
462 #if HAVE_INTTYPES_H
463 # include <inttypes.h>
464 #else
465 # if HAVE_STDINT_H
466 #  include <stdint.h>
467 # endif
468 #endif
469 #if HAVE_UNISTD_H
470 # include <unistd.h>
471 #endif"
472
473 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT DEBUG_TRUE DEBUG_FALSE REALLYSTATIC_TRUE REALLYSTATIC_FALSE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE CC CFLAGS ac_ct_CC CCDEPMODE LN_S RANLIB ac_ct_RANLIB ECHO CPP EGREP LIBTOOL LIBTOOL_DEPS all_includes all_libraries AUTODIRS GCC_NEEDS_MS_EXTENSIONS_TRUE GCC_NEEDS_MS_EXTENSIONS_FALSE LIBOBJS LTLIBOBJS'
474 ac_subst_files=''
475
476 # Initialize some variables set by options.
477 ac_init_help=
478 ac_init_version=false
479 # The variables have the same names as the options, with
480 # dashes changed to underlines.
481 cache_file=/dev/null
482 exec_prefix=NONE
483 no_create=
484 no_recursion=
485 prefix=NONE
486 program_prefix=NONE
487 program_suffix=NONE
488 program_transform_name=s,x,x,
489 silent=
490 site=
491 srcdir=
492 verbose=
493 x_includes=NONE
494 x_libraries=NONE
495
496 # Installation directory options.
497 # These are left unexpanded so users can "make install exec_prefix=/foo"
498 # and all the variables that are supposed to be based on exec_prefix
499 # by default will actually change.
500 # Use braces instead of parens because sh, perl, etc. also accept them.
501 bindir='${exec_prefix}/bin'
502 sbindir='${exec_prefix}/sbin'
503 libexecdir='${exec_prefix}/libexec'
504 datadir='${prefix}/share'
505 sysconfdir='${prefix}/etc'
506 sharedstatedir='${prefix}/com'
507 localstatedir='${prefix}/var'
508 libdir='${exec_prefix}/lib'
509 includedir='${prefix}/include'
510 oldincludedir='/usr/include'
511 infodir='${prefix}/info'
512 mandir='${prefix}/man'
513
514 ac_prev=
515 for ac_option
516 do
517   # If the previous option needs an argument, assign it.
518   if test -n "$ac_prev"; then
519     eval "$ac_prev=\$ac_option"
520     ac_prev=
521     continue
522   fi
523
524   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525
526   # Accept the important Cygnus configure options, so we can diagnose typos.
527
528   case $ac_option in
529
530   -bindir | --bindir | --bindi | --bind | --bin | --bi)
531     ac_prev=bindir ;;
532   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533     bindir=$ac_optarg ;;
534
535   -build | --build | --buil | --bui | --bu)
536     ac_prev=build_alias ;;
537   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
538     build_alias=$ac_optarg ;;
539
540   -cache-file | --cache-file | --cache-fil | --cache-fi \
541   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542     ac_prev=cache_file ;;
543   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545     cache_file=$ac_optarg ;;
546
547   --config-cache | -C)
548     cache_file=config.cache ;;
549
550   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551     ac_prev=datadir ;;
552   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553   | --da=*)
554     datadir=$ac_optarg ;;
555
556   -disable-* | --disable-*)
557     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558     # Reject names that are not valid shell variable names.
559     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561    { (exit 1); exit 1; }; }
562     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563     eval "enable_$ac_feature=no" ;;
564
565   -enable-* | --enable-*)
566     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567     # Reject names that are not valid shell variable names.
568     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570    { (exit 1); exit 1; }; }
571     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572     case $ac_option in
573       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574       *) ac_optarg=yes ;;
575     esac
576     eval "enable_$ac_feature='$ac_optarg'" ;;
577
578   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580   | --exec | --exe | --ex)
581     ac_prev=exec_prefix ;;
582   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584   | --exec=* | --exe=* | --ex=*)
585     exec_prefix=$ac_optarg ;;
586
587   -gas | --gas | --ga | --g)
588     # Obsolete; use --with-gas.
589     with_gas=yes ;;
590
591   -help | --help | --hel | --he | -h)
592     ac_init_help=long ;;
593   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594     ac_init_help=recursive ;;
595   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596     ac_init_help=short ;;
597
598   -host | --host | --hos | --ho)
599     ac_prev=host_alias ;;
600   -host=* | --host=* | --hos=* | --ho=*)
601     host_alias=$ac_optarg ;;
602
603   -includedir | --includedir | --includedi | --included | --include \
604   | --includ | --inclu | --incl | --inc)
605     ac_prev=includedir ;;
606   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607   | --includ=* | --inclu=* | --incl=* | --inc=*)
608     includedir=$ac_optarg ;;
609
610   -infodir | --infodir | --infodi | --infod | --info | --inf)
611     ac_prev=infodir ;;
612   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613     infodir=$ac_optarg ;;
614
615   -libdir | --libdir | --libdi | --libd)
616     ac_prev=libdir ;;
617   -libdir=* | --libdir=* | --libdi=* | --libd=*)
618     libdir=$ac_optarg ;;
619
620   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621   | --libexe | --libex | --libe)
622     ac_prev=libexecdir ;;
623   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624   | --libexe=* | --libex=* | --libe=*)
625     libexecdir=$ac_optarg ;;
626
627   -localstatedir | --localstatedir | --localstatedi | --localstated \
628   | --localstate | --localstat | --localsta | --localst \
629   | --locals | --local | --loca | --loc | --lo)
630     ac_prev=localstatedir ;;
631   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
633   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634     localstatedir=$ac_optarg ;;
635
636   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637     ac_prev=mandir ;;
638   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639     mandir=$ac_optarg ;;
640
641   -nfp | --nfp | --nf)
642     # Obsolete; use --without-fp.
643     with_fp=no ;;
644
645   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646   | --no-cr | --no-c | -n)
647     no_create=yes ;;
648
649   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
650   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651     no_recursion=yes ;;
652
653   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655   | --oldin | --oldi | --old | --ol | --o)
656     ac_prev=oldincludedir ;;
657   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660     oldincludedir=$ac_optarg ;;
661
662   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663     ac_prev=prefix ;;
664   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665     prefix=$ac_optarg ;;
666
667   -program-prefix | --program-prefix | --program-prefi | --program-pref \
668   | --program-pre | --program-pr | --program-p)
669     ac_prev=program_prefix ;;
670   -program-prefix=* | --program-prefix=* | --program-prefi=* \
671   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672     program_prefix=$ac_optarg ;;
673
674   -program-suffix | --program-suffix | --program-suffi | --program-suff \
675   | --program-suf | --program-su | --program-s)
676     ac_prev=program_suffix ;;
677   -program-suffix=* | --program-suffix=* | --program-suffi=* \
678   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679     program_suffix=$ac_optarg ;;
680
681   -program-transform-name | --program-transform-name \
682   | --program-transform-nam | --program-transform-na \
683   | --program-transform-n | --program-transform- \
684   | --program-transform | --program-transfor \
685   | --program-transfo | --program-transf \
686   | --program-trans | --program-tran \
687   | --progr-tra | --program-tr | --program-t)
688     ac_prev=program_transform_name ;;
689   -program-transform-name=* | --program-transform-name=* \
690   | --program-transform-nam=* | --program-transform-na=* \
691   | --program-transform-n=* | --program-transform-=* \
692   | --program-transform=* | --program-transfor=* \
693   | --program-transfo=* | --program-transf=* \
694   | --program-trans=* | --program-tran=* \
695   | --progr-tra=* | --program-tr=* | --program-t=*)
696     program_transform_name=$ac_optarg ;;
697
698   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
699   | -silent | --silent | --silen | --sile | --sil)
700     silent=yes ;;
701
702   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703     ac_prev=sbindir ;;
704   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705   | --sbi=* | --sb=*)
706     sbindir=$ac_optarg ;;
707
708   -sharedstatedir | --sharedstatedir | --sharedstatedi \
709   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710   | --sharedst | --shareds | --shared | --share | --shar \
711   | --sha | --sh)
712     ac_prev=sharedstatedir ;;
713   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716   | --sha=* | --sh=*)
717     sharedstatedir=$ac_optarg ;;
718
719   -site | --site | --sit)
720     ac_prev=site ;;
721   -site=* | --site=* | --sit=*)
722     site=$ac_optarg ;;
723
724   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725     ac_prev=srcdir ;;
726   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727     srcdir=$ac_optarg ;;
728
729   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730   | --syscon | --sysco | --sysc | --sys | --sy)
731     ac_prev=sysconfdir ;;
732   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734     sysconfdir=$ac_optarg ;;
735
736   -target | --target | --targe | --targ | --tar | --ta | --t)
737     ac_prev=target_alias ;;
738   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739     target_alias=$ac_optarg ;;
740
741   -v | -verbose | --verbose | --verbos | --verbo | --verb)
742     verbose=yes ;;
743
744   -version | --version | --versio | --versi | --vers | -V)
745     ac_init_version=: ;;
746
747   -with-* | --with-*)
748     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
749     # Reject names that are not valid shell variable names.
750     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751       { echo "$as_me: error: invalid package name: $ac_package" >&2
752    { (exit 1); exit 1; }; }
753     ac_package=`echo $ac_package| sed 's/-/_/g'`
754     case $ac_option in
755       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756       *) ac_optarg=yes ;;
757     esac
758     eval "with_$ac_package='$ac_optarg'" ;;
759
760   -without-* | --without-*)
761     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762     # Reject names that are not valid shell variable names.
763     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764       { echo "$as_me: error: invalid package name: $ac_package" >&2
765    { (exit 1); exit 1; }; }
766     ac_package=`echo $ac_package | sed 's/-/_/g'`
767     eval "with_$ac_package=no" ;;
768
769   --x)
770     # Obsolete; use --with-x.
771     with_x=yes ;;
772
773   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774   | --x-incl | --x-inc | --x-in | --x-i)
775     ac_prev=x_includes ;;
776   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778     x_includes=$ac_optarg ;;
779
780   -x-libraries | --x-libraries | --x-librarie | --x-librari \
781   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782     ac_prev=x_libraries ;;
783   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785     x_libraries=$ac_optarg ;;
786
787   -*) { echo "$as_me: error: unrecognized option: $ac_option
788 Try \`$0 --help' for more information." >&2
789    { (exit 1); exit 1; }; }
790     ;;
791
792   *=*)
793     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794     # Reject names that are not valid shell variable names.
795     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797    { (exit 1); exit 1; }; }
798     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799     eval "$ac_envvar='$ac_optarg'"
800     export $ac_envvar ;;
801
802   *)
803     # FIXME: should be removed in autoconf 3.0.
804     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808     ;;
809
810   esac
811 done
812
813 if test -n "$ac_prev"; then
814   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815   { echo "$as_me: error: missing argument to $ac_option" >&2
816    { (exit 1); exit 1; }; }
817 fi
818
819 # Be sure to have absolute paths.
820 for ac_var in exec_prefix prefix
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # Be sure to have absolute paths.
831 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832               localstatedir libdir includedir oldincludedir infodir mandir
833 do
834   eval ac_val=$`echo $ac_var`
835   case $ac_val in
836     [\\/$]* | ?:[\\/]* ) ;;
837     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838    { (exit 1); exit 1; }; };;
839   esac
840 done
841
842 # There might be people who depend on the old broken behavior: `$host'
843 # used to hold the argument of --host etc.
844 # FIXME: To remove some day.
845 build=$build_alias
846 host=$host_alias
847 target=$target_alias
848
849 # FIXME: To remove some day.
850 if test "x$host_alias" != x; then
851   if test "x$build_alias" = x; then
852     cross_compiling=maybe
853     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854     If a cross compiler is detected then cross compile mode will be used." >&2
855   elif test "x$build_alias" != "x$host_alias"; then
856     cross_compiling=yes
857   fi
858 fi
859
860 ac_tool_prefix=
861 test -n "$host_alias" && ac_tool_prefix=$host_alias-
862
863 test "$silent" = yes && exec 6>/dev/null
864
865
866 # Find the source files, if location was not specified.
867 if test -z "$srcdir"; then
868   ac_srcdir_defaulted=yes
869   # Try the directory containing this script, then its parent.
870   ac_confdir=`(dirname "$0") 2>/dev/null ||
871 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872          X"$0" : 'X\(//\)[^/]' \| \
873          X"$0" : 'X\(//\)$' \| \
874          X"$0" : 'X\(/\)' \| \
875          .     : '\(.\)' 2>/dev/null ||
876 echo X"$0" |
877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
879           /^X\(\/\/\)$/{ s//\1/; q; }
880           /^X\(\/\).*/{ s//\1/; q; }
881           s/.*/./; q'`
882   srcdir=$ac_confdir
883   if test ! -r $srcdir/$ac_unique_file; then
884     srcdir=..
885   fi
886 else
887   ac_srcdir_defaulted=no
888 fi
889 if test ! -r $srcdir/$ac_unique_file; then
890   if test "$ac_srcdir_defaulted" = yes; then
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892    { (exit 1); exit 1; }; }
893   else
894     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895    { (exit 1); exit 1; }; }
896   fi
897 fi
898 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900    { (exit 1); exit 1; }; }
901 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902 ac_env_build_alias_set=${build_alias+set}
903 ac_env_build_alias_value=$build_alias
904 ac_cv_env_build_alias_set=${build_alias+set}
905 ac_cv_env_build_alias_value=$build_alias
906 ac_env_host_alias_set=${host_alias+set}
907 ac_env_host_alias_value=$host_alias
908 ac_cv_env_host_alias_set=${host_alias+set}
909 ac_cv_env_host_alias_value=$host_alias
910 ac_env_target_alias_set=${target_alias+set}
911 ac_env_target_alias_value=$target_alias
912 ac_cv_env_target_alias_set=${target_alias+set}
913 ac_cv_env_target_alias_value=$target_alias
914 ac_env_CXX_set=${CXX+set}
915 ac_env_CXX_value=$CXX
916 ac_cv_env_CXX_set=${CXX+set}
917 ac_cv_env_CXX_value=$CXX
918 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
919 ac_env_CXXFLAGS_value=$CXXFLAGS
920 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
921 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
922 ac_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_env_LDFLAGS_value=$LDFLAGS
924 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925 ac_cv_env_LDFLAGS_value=$LDFLAGS
926 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_env_CPPFLAGS_value=$CPPFLAGS
928 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930 ac_env_CC_set=${CC+set}
931 ac_env_CC_value=$CC
932 ac_cv_env_CC_set=${CC+set}
933 ac_cv_env_CC_value=$CC
934 ac_env_CFLAGS_set=${CFLAGS+set}
935 ac_env_CFLAGS_value=$CFLAGS
936 ac_cv_env_CFLAGS_set=${CFLAGS+set}
937 ac_cv_env_CFLAGS_value=$CFLAGS
938 ac_env_CPP_set=${CPP+set}
939 ac_env_CPP_value=$CPP
940 ac_cv_env_CPP_set=${CPP+set}
941 ac_cv_env_CPP_value=$CPP
942
943 #
944 # Report the --help message.
945 #
946 if test "$ac_init_help" = "long"; then
947   # Omit some internal or obsolete options to make the list less imposing.
948   # This message is too long to be a string in the A/UX 3.1 sh.
949   cat <<_ACEOF
950 \`configure' configures ntfsprogs 1.7.2-WIP to adapt to many kinds of systems.
951
952 Usage: $0 [OPTION]... [VAR=VALUE]...
953
954 To assign environment variables (e.g., CC, CFLAGS...), specify them as
955 VAR=VALUE.  See below for descriptions of some of the useful variables.
956
957 Defaults for the options are specified in brackets.
958
959 Configuration:
960   -h, --help              display this help and exit
961       --help=short        display options specific to this package
962       --help=recursive    display the short help of all the included packages
963   -V, --version           display version information and exit
964   -q, --quiet, --silent   do not print \`checking...' messages
965       --cache-file=FILE   cache test results in FILE [disabled]
966   -C, --config-cache      alias for \`--cache-file=config.cache'
967   -n, --no-create         do not create output files
968       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
969
970 _ACEOF
971
972   cat <<_ACEOF
973 Installation directories:
974   --prefix=PREFIX         install architecture-independent files in PREFIX
975                           [$ac_default_prefix]
976   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
977                           [PREFIX]
978
979 By default, \`make install' will install all the files in
980 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
981 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
982 for instance \`--prefix=\$HOME'.
983
984 For better control, use the options below.
985
986 Fine tuning of the installation directories:
987   --bindir=DIR           user executables [EPREFIX/bin]
988   --sbindir=DIR          system admin executables [EPREFIX/sbin]
989   --libexecdir=DIR       program executables [EPREFIX/libexec]
990   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
991   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
992   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
993   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
994   --libdir=DIR           object code libraries [EPREFIX/lib]
995   --includedir=DIR       C header files [PREFIX/include]
996   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
997   --infodir=DIR          info documentation [PREFIX/info]
998   --mandir=DIR           man documentation [PREFIX/man]
999 _ACEOF
1000
1001   cat <<\_ACEOF
1002
1003 Program names:
1004   --program-prefix=PREFIX            prepend PREFIX to installed program names
1005   --program-suffix=SUFFIX            append SUFFIX to installed program names
1006   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1007
1008 System types:
1009   --build=BUILD     configure for building on BUILD [guessed]
1010   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1011   --target=TARGET   configure for building compilers for TARGET [HOST]
1012 _ACEOF
1013 fi
1014
1015 if test -n "$ac_init_help"; then
1016   case $ac_init_help in
1017      short | recursive ) echo "Configuration of ntfsprogs 1.7.2-WIP:";;
1018    esac
1019   cat <<\_ACEOF
1020
1021 Optional Features:
1022   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1023   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1024   --enable-maintainer-mode enable make rules and dependencies not useful
1025                           (and sometimes confusing) to the casual installer
1026   --enable-debug          enable debugging
1027   --enable-really-static  completely static binaries
1028   --disable-dependency-tracking Speeds up one-time builds
1029   --enable-dependency-tracking  Do not reject slow dependency extractors
1030   --enable-shared=PKGS  build shared libraries default=yes
1031   --enable-static=PKGS  build static libraries default=yes
1032   --enable-fast-install=PKGS  optimize for fast installation default=yes
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034
1035 Optional Packages:
1036   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1037   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1038   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1039   --with-pic              try to use only PIC/non-PIC objects default=use both
1040
1041 Some influential environment variables:
1042   CXX         C++ compiler command
1043   CXXFLAGS    C++ compiler flags
1044   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1045               nonstandard directory <lib dir>
1046   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1047               headers in a nonstandard directory <include dir>
1048   CC          C compiler command
1049   CFLAGS      C compiler flags
1050   CPP         C preprocessor
1051
1052 Use these variables to override the choices made by `configure' or to help
1053 it to find libraries and programs with nonstandard names/locations.
1054
1055 Report bugs to <linux-ntfs-dev@lists.sourceforge.net>.
1056 _ACEOF
1057 fi
1058
1059 if test "$ac_init_help" = "recursive"; then
1060   # If there are subdirs, report their specific --help.
1061   ac_popdir=`pwd`
1062   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1063     test -d $ac_dir || continue
1064     ac_builddir=.
1065
1066 if test "$ac_dir" != .; then
1067   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1068   # A "../" for each directory in $ac_dir_suffix.
1069   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1070 else
1071   ac_dir_suffix= ac_top_builddir=
1072 fi
1073
1074 case $srcdir in
1075   .)  # No --srcdir option.  We are building in place.
1076     ac_srcdir=.
1077     if test -z "$ac_top_builddir"; then
1078        ac_top_srcdir=.
1079     else
1080        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1081     fi ;;
1082   [\\/]* | ?:[\\/]* )  # Absolute path.
1083     ac_srcdir=$srcdir$ac_dir_suffix;
1084     ac_top_srcdir=$srcdir ;;
1085   *) # Relative path.
1086     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1087     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1088 esac
1089 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1090 # absolute.
1091 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1092 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1093 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1094 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1095
1096     cd $ac_dir
1097     # Check for guested configure; otherwise get Cygnus style configure.
1098     if test -f $ac_srcdir/configure.gnu; then
1099       echo
1100       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1101     elif test -f $ac_srcdir/configure; then
1102       echo
1103       $SHELL $ac_srcdir/configure  --help=recursive
1104     elif test -f $ac_srcdir/configure.ac ||
1105            test -f $ac_srcdir/configure.in; then
1106       echo
1107       $ac_configure --help
1108     else
1109       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1110     fi
1111     cd $ac_popdir
1112   done
1113 fi
1114
1115 test -n "$ac_init_help" && exit 0
1116 if $ac_init_version; then
1117   cat <<\_ACEOF
1118 ntfsprogs configure 1.7.2-WIP
1119 generated by GNU Autoconf 2.57
1120
1121 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1122 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1125 _ACEOF
1126   exit 0
1127 fi
1128 exec 5>config.log
1129 cat >&5 <<_ACEOF
1130 This file contains any messages produced by compilers while
1131 running configure, to aid debugging if configure makes a mistake.
1132
1133 It was created by ntfsprogs $as_me 1.7.2-WIP, which was
1134 generated by GNU Autoconf 2.57.  Invocation command line was
1135
1136   $ $0 $@
1137
1138 _ACEOF
1139 {
1140 cat <<_ASUNAME
1141 ## --------- ##
1142 ## Platform. ##
1143 ## --------- ##
1144
1145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1150
1151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1152 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1153
1154 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1155 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1157 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1158 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1159 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1160 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1161
1162 _ASUNAME
1163
1164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1165 for as_dir in $PATH
1166 do
1167   IFS=$as_save_IFS
1168   test -z "$as_dir" && as_dir=.
1169   echo "PATH: $as_dir"
1170 done
1171
1172 } >&5
1173
1174 cat >&5 <<_ACEOF
1175
1176
1177 ## ----------- ##
1178 ## Core tests. ##
1179 ## ----------- ##
1180
1181 _ACEOF
1182
1183
1184 # Keep a trace of the command line.
1185 # Strip out --no-create and --no-recursion so they do not pile up.
1186 # Strip out --silent because we don't want to record it for future runs.
1187 # Also quote any args containing shell meta-characters.
1188 # Make two passes to allow for proper duplicate-argument suppression.
1189 ac_configure_args=
1190 ac_configure_args0=
1191 ac_configure_args1=
1192 ac_sep=
1193 ac_must_keep_next=false
1194 for ac_pass in 1 2
1195 do
1196   for ac_arg
1197   do
1198     case $ac_arg in
1199     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1200     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201     | -silent | --silent | --silen | --sile | --sil)
1202       continue ;;
1203     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1205     esac
1206     case $ac_pass in
1207     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1208     2)
1209       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1210       if test $ac_must_keep_next = true; then
1211         ac_must_keep_next=false # Got value, back to normal.
1212       else
1213         case $ac_arg in
1214           *=* | --config-cache | -C | -disable-* | --disable-* \
1215           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1216           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1217           | -with-* | --with-* | -without-* | --without-* | --x)
1218             case "$ac_configure_args0 " in
1219               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1220             esac
1221             ;;
1222           -* ) ac_must_keep_next=true ;;
1223         esac
1224       fi
1225       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1226       # Get rid of the leading space.
1227       ac_sep=" "
1228       ;;
1229     esac
1230   done
1231 done
1232 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1233 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1234
1235 # When interrupted or exit'd, cleanup temporary files, and complete
1236 # config.log.  We remove comments because anyway the quotes in there
1237 # would cause problems or look ugly.
1238 # WARNING: Be sure not to use single quotes in there, as some shells,
1239 # such as our DU 5.0 friend, will then `close' the trap.
1240 trap 'exit_status=$?
1241   # Save into config.log some information that might help in debugging.
1242   {
1243     echo
1244
1245     cat <<\_ASBOX
1246 ## ---------------- ##
1247 ## Cache variables. ##
1248 ## ---------------- ##
1249 _ASBOX
1250     echo
1251     # The following way of writing the cache mishandles newlines in values,
1252 {
1253   (set) 2>&1 |
1254     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1255     *ac_space=\ *)
1256       sed -n \
1257         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1259       ;;
1260     *)
1261       sed -n \
1262         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1263       ;;
1264     esac;
1265 }
1266     echo
1267
1268     cat <<\_ASBOX
1269 ## ----------------- ##
1270 ## Output variables. ##
1271 ## ----------------- ##
1272 _ASBOX
1273     echo
1274     for ac_var in $ac_subst_vars
1275     do
1276       eval ac_val=$`echo $ac_var`
1277       echo "$ac_var='"'"'$ac_val'"'"'"
1278     done | sort
1279     echo
1280
1281     if test -n "$ac_subst_files"; then
1282       cat <<\_ASBOX
1283 ## ------------- ##
1284 ## Output files. ##
1285 ## ------------- ##
1286 _ASBOX
1287       echo
1288       for ac_var in $ac_subst_files
1289       do
1290         eval ac_val=$`echo $ac_var`
1291         echo "$ac_var='"'"'$ac_val'"'"'"
1292       done | sort
1293       echo
1294     fi
1295
1296     if test -s confdefs.h; then
1297       cat <<\_ASBOX
1298 ## ----------- ##
1299 ## confdefs.h. ##
1300 ## ----------- ##
1301 _ASBOX
1302       echo
1303       sed "/^$/d" confdefs.h | sort
1304       echo
1305     fi
1306     test "$ac_signal" != 0 &&
1307       echo "$as_me: caught signal $ac_signal"
1308     echo "$as_me: exit $exit_status"
1309   } >&5
1310   rm -f core core.* *.core &&
1311   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1312     exit $exit_status
1313      ' 0
1314 for ac_signal in 1 2 13 15; do
1315   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1316 done
1317 ac_signal=0
1318
1319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1320 rm -rf conftest* confdefs.h
1321 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1322 echo >confdefs.h
1323
1324 # Predefined preprocessor variables.
1325
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_NAME "$PACKAGE_NAME"
1328 _ACEOF
1329
1330
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1333 _ACEOF
1334
1335
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1338 _ACEOF
1339
1340
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_STRING "$PACKAGE_STRING"
1343 _ACEOF
1344
1345
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1348 _ACEOF
1349
1350
1351 # Let the site file select an alternate cache file if it wants to.
1352 # Prefer explicitly selected file to automatically selected ones.
1353 if test -z "$CONFIG_SITE"; then
1354   if test "x$prefix" != xNONE; then
1355     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1356   else
1357     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1358   fi
1359 fi
1360 for ac_site_file in $CONFIG_SITE; do
1361   if test -r "$ac_site_file"; then
1362     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1363 echo "$as_me: loading site script $ac_site_file" >&6;}
1364     sed 's/^/| /' "$ac_site_file" >&5
1365     . "$ac_site_file"
1366   fi
1367 done
1368
1369 if test -r "$cache_file"; then
1370   # Some versions of bash will fail to source /dev/null (special
1371   # files actually), so we avoid doing that.
1372   if test -f "$cache_file"; then
1373     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1374 echo "$as_me: loading cache $cache_file" >&6;}
1375     case $cache_file in
1376       [\\/]* | ?:[\\/]* ) . $cache_file;;
1377       *)                      . ./$cache_file;;
1378     esac
1379   fi
1380 else
1381   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1382 echo "$as_me: creating cache $cache_file" >&6;}
1383   >$cache_file
1384 fi
1385
1386 # Check that the precious variables saved in the cache have kept the same
1387 # value.
1388 ac_cache_corrupted=false
1389 for ac_var in `(set) 2>&1 |
1390                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1391   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1392   eval ac_new_set=\$ac_env_${ac_var}_set
1393   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1394   eval ac_new_val="\$ac_env_${ac_var}_value"
1395   case $ac_old_set,$ac_new_set in
1396     set,)
1397       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1398 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1399       ac_cache_corrupted=: ;;
1400     ,set)
1401       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1402 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1403       ac_cache_corrupted=: ;;
1404     ,);;
1405     *)
1406       if test "x$ac_old_val" != "x$ac_new_val"; then
1407         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1408 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1409         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1410 echo "$as_me:   former value:  $ac_old_val" >&2;}
1411         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1412 echo "$as_me:   current value: $ac_new_val" >&2;}
1413         ac_cache_corrupted=:
1414       fi;;
1415   esac
1416   # Pass precious variables to config.status.
1417   if test "$ac_new_set" = set; then
1418     case $ac_new_val in
1419     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1420       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1421     *) ac_arg=$ac_var=$ac_new_val ;;
1422     esac
1423     case " $ac_configure_args " in
1424       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1425       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1426     esac
1427   fi
1428 done
1429 if $ac_cache_corrupted; then
1430   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1431 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1432   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1433 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1434    { (exit 1); exit 1; }; }
1435 fi
1436
1437 ac_ext=c
1438 ac_cpp='$CPP $CPPFLAGS'
1439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469 ac_aux_dir=
1470 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1471   if test -f $ac_dir/install-sh; then
1472     ac_aux_dir=$ac_dir
1473     ac_install_sh="$ac_aux_dir/install-sh -c"
1474     break
1475   elif test -f $ac_dir/install.sh; then
1476     ac_aux_dir=$ac_dir
1477     ac_install_sh="$ac_aux_dir/install.sh -c"
1478     break
1479   elif test -f $ac_dir/shtool; then
1480     ac_aux_dir=$ac_dir
1481     ac_install_sh="$ac_aux_dir/shtool install -c"
1482     break
1483   fi
1484 done
1485 if test -z "$ac_aux_dir"; then
1486   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1487 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1488    { (exit 1); exit 1; }; }
1489 fi
1490 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1491 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1492 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1493
1494 # Make sure we can run config.sub.
1495 $ac_config_sub sun4 >/dev/null 2>&1 ||
1496   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1497 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1498    { (exit 1); exit 1; }; }
1499
1500 echo "$as_me:$LINENO: checking build system type" >&5
1501 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1502 if test "${ac_cv_build+set}" = set; then
1503   echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505   ac_cv_build_alias=$build_alias
1506 test -z "$ac_cv_build_alias" &&
1507   ac_cv_build_alias=`$ac_config_guess`
1508 test -z "$ac_cv_build_alias" &&
1509   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1510 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1511    { (exit 1); exit 1; }; }
1512 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1513   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1514 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1515    { (exit 1); exit 1; }; }
1516
1517 fi
1518 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1519 echo "${ECHO_T}$ac_cv_build" >&6
1520 build=$ac_cv_build
1521 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1522 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1523 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1524
1525
1526 echo "$as_me:$LINENO: checking host system type" >&5
1527 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1528 if test "${ac_cv_host+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   ac_cv_host_alias=$host_alias
1532 test -z "$ac_cv_host_alias" &&
1533   ac_cv_host_alias=$ac_cv_build_alias
1534 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1535   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1536 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1537    { (exit 1); exit 1; }; }
1538
1539 fi
1540 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1541 echo "${ECHO_T}$ac_cv_host" >&6
1542 host=$ac_cv_host
1543 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1544 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1545 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546
1547
1548 echo "$as_me:$LINENO: checking target system type" >&5
1549 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1550 if test "${ac_cv_target+set}" = set; then
1551   echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553   ac_cv_target_alias=$target_alias
1554 test "x$ac_cv_target_alias" = "x" &&
1555   ac_cv_target_alias=$ac_cv_host_alias
1556 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1557   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1558 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1559    { (exit 1); exit 1; }; }
1560
1561 fi
1562 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1563 echo "${ECHO_T}$ac_cv_target" >&6
1564 target=$ac_cv_target
1565 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568
1569
1570 # The aliases save the names the user supplied, while $host etc.
1571 # will get canonicalized.
1572 test -n "$target_alias" &&
1573   test "$program_prefix$program_suffix$program_transform_name" = \
1574     NONENONEs,x,x, &&
1575   program_prefix=${target_alias}-
1576
1577 # Add the stamp file to the list of files AC keeps track of,
1578 # along with our hook.
1579           ac_config_headers="$ac_config_headers config.h"
1580
1581
1582
1583 am__api_version="1.6"
1584 # Find a good install program.  We prefer a C program (faster),
1585 # so one script is as good as another.  But avoid the broken or
1586 # incompatible versions:
1587 # SysV /etc/install, /usr/sbin/install
1588 # SunOS /usr/etc/install
1589 # IRIX /sbin/install
1590 # AIX /bin/install
1591 # AmigaOS /C/install, which installs bootblocks on floppy discs
1592 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1593 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1594 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1595 # ./install, which can be erroneously created by make from ./install.sh.
1596 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1597 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1598 if test -z "$INSTALL"; then
1599 if test "${ac_cv_path_install+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   # Account for people who put trailing slashes in PATH elements.
1608 case $as_dir/ in
1609   ./ | .// | /cC/* | \
1610   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1611   /usr/ucb/* ) ;;
1612   *)
1613     # OSF1 and SCO ODT 3.0 have their own names for install.
1614     # Don't use installbsd from OSF since it installs stuff as root
1615     # by default.
1616     for ac_prog in ginstall scoinst install; do
1617       for ac_exec_ext in '' $ac_executable_extensions; do
1618         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1619           if test $ac_prog = install &&
1620             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1621             # AIX install.  It has an incompatible calling convention.
1622             :
1623           elif test $ac_prog = install &&
1624             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1625             # program-specific install script used by HP pwplus--don't use.
1626             :
1627           else
1628             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1629             break 3
1630           fi
1631         fi
1632       done
1633     done
1634     ;;
1635 esac
1636 done
1637
1638
1639 fi
1640   if test "${ac_cv_path_install+set}" = set; then
1641     INSTALL=$ac_cv_path_install
1642   else
1643     # As a last resort, use the slow shell script.  We don't cache a
1644     # path for INSTALL within a source directory, because that will
1645     # break other packages using the cache if that directory is
1646     # removed, or if the path is relative.
1647     INSTALL=$ac_install_sh
1648   fi
1649 fi
1650 echo "$as_me:$LINENO: result: $INSTALL" >&5
1651 echo "${ECHO_T}$INSTALL" >&6
1652
1653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1654 # It thinks the first close brace ends the variable substitution.
1655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1656
1657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1658
1659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1660
1661 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1662 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1663 # Just in case
1664 sleep 1
1665 echo timestamp > conftest.file
1666 # Do `set' in a subshell so we don't clobber the current shell's
1667 # arguments.  Must try -L first in case configure is actually a
1668 # symlink; some systems play weird games with the mod time of symlinks
1669 # (eg FreeBSD returns the mod time of the symlink's containing
1670 # directory).
1671 if (
1672    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1673    if test "$*" = "X"; then
1674       # -L didn't work.
1675       set X `ls -t $srcdir/configure conftest.file`
1676    fi
1677    rm -f conftest.file
1678    if test "$*" != "X $srcdir/configure conftest.file" \
1679       && test "$*" != "X conftest.file $srcdir/configure"; then
1680
1681       # If neither matched, then we have a broken ls.  This can happen
1682       # if, for instance, CONFIG_SHELL is bash and it inherits a
1683       # broken ls alias from the environment.  This has actually
1684       # happened.  Such a system could not be considered "sane".
1685       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1686 alias in your environment" >&5
1687 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1688 alias in your environment" >&2;}
1689    { (exit 1); exit 1; }; }
1690    fi
1691
1692    test "$2" = conftest.file
1693    )
1694 then
1695    # Ok.
1696    :
1697 else
1698    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1699 Check your system clock" >&5
1700 echo "$as_me: error: newly created file is older than distributed files!
1701 Check your system clock" >&2;}
1702    { (exit 1); exit 1; }; }
1703 fi
1704 echo "$as_me:$LINENO: result: yes" >&5
1705 echo "${ECHO_T}yes" >&6
1706 test "$program_prefix" != NONE &&
1707   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1708 # Use a double $ so make ignores it.
1709 test "$program_suffix" != NONE &&
1710   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1711 # Double any \ or $.  echo might interpret backslashes.
1712 # By default was `s,x,x', remove it if useless.
1713 cat <<\_ACEOF >conftest.sed
1714 s/[\\$]/&&/g;s/;s,x,x,$//
1715 _ACEOF
1716 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1717 rm conftest.sed
1718
1719
1720 # expand $ac_aux_dir to an absolute path
1721 am_aux_dir=`cd $ac_aux_dir && pwd`
1722
1723 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1724 # Use eval to expand $SHELL
1725 if eval "$MISSING --run true"; then
1726   am_missing_run="$MISSING --run "
1727 else
1728   am_missing_run=
1729   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1730 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1731 fi
1732
1733 for ac_prog in gawk mawk nawk awk
1734 do
1735   # Extract the first word of "$ac_prog", so it can be a program name with args.
1736 set dummy $ac_prog; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_AWK+set}" = set; then
1740   echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742   if test -n "$AWK"; then
1743   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1744 else
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748   IFS=$as_save_IFS
1749   test -z "$as_dir" && as_dir=.
1750   for ac_exec_ext in '' $ac_executable_extensions; do
1751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752     ac_cv_prog_AWK="$ac_prog"
1753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754     break 2
1755   fi
1756 done
1757 done
1758
1759 fi
1760 fi
1761 AWK=$ac_cv_prog_AWK
1762 if test -n "$AWK"; then
1763   echo "$as_me:$LINENO: result: $AWK" >&5
1764 echo "${ECHO_T}$AWK" >&6
1765 else
1766   echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768 fi
1769
1770   test -n "$AWK" && break
1771 done
1772
1773 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1774 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1775 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1776 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1777   echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779   cat >conftest.make <<\_ACEOF
1780 all:
1781         @echo 'ac_maketemp="$(MAKE)"'
1782 _ACEOF
1783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1784 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1785 if test -n "$ac_maketemp"; then
1786   eval ac_cv_prog_make_${ac_make}_set=yes
1787 else
1788   eval ac_cv_prog_make_${ac_make}_set=no
1789 fi
1790 rm -f conftest.make
1791 fi
1792 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1793   echo "$as_me:$LINENO: result: yes" >&5
1794 echo "${ECHO_T}yes" >&6
1795   SET_MAKE=
1796 else
1797   echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799   SET_MAKE="MAKE=${MAKE-make}"
1800 fi
1801
1802  # test to see if srcdir already configured
1803 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1804    test -f $srcdir/config.status; then
1805   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1806 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1807    { (exit 1); exit 1; }; }
1808 fi
1809
1810 # Define the identity of the package.
1811  PACKAGE=ntfsprogs
1812  VERSION=1.7.2-WIP
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE "$PACKAGE"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define VERSION "$VERSION"
1822 _ACEOF
1823
1824 # Some tools Automake needs.
1825
1826 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1827
1828
1829 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1830
1831
1832 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1833
1834
1835 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1836
1837
1838 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1839
1840
1841 AMTAR=${AMTAR-"${am_missing_run}tar"}
1842
1843 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1844
1845 # Installed binaries are usually stripped using `strip' when the user
1846 # run `make install-strip'.  However `strip' might not be the right
1847 # tool to use in cross-compilation environments, therefore Automake
1848 # will honor the `STRIP' environment variable to overrule this program.
1849 if test "$cross_compiling" != no; then
1850   if test -n "$ac_tool_prefix"; then
1851   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1852 set dummy ${ac_tool_prefix}strip; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_STRIP+set}" = set; then
1856   echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858   if test -n "$STRIP"; then
1859   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1860 else
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1863 do
1864   IFS=$as_save_IFS
1865   test -z "$as_dir" && as_dir=.
1866   for ac_exec_ext in '' $ac_executable_extensions; do
1867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870     break 2
1871   fi
1872 done
1873 done
1874
1875 fi
1876 fi
1877 STRIP=$ac_cv_prog_STRIP
1878 if test -n "$STRIP"; then
1879   echo "$as_me:$LINENO: result: $STRIP" >&5
1880 echo "${ECHO_T}$STRIP" >&6
1881 else
1882   echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1884 fi
1885
1886 fi
1887 if test -z "$ac_cv_prog_STRIP"; then
1888   ac_ct_STRIP=$STRIP
1889   # Extract the first word of "strip", so it can be a program name with args.
1890 set dummy strip; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   if test -n "$ac_ct_STRIP"; then
1897   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1898 else
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904   for ac_exec_ext in '' $ac_executable_extensions; do
1905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906     ac_cv_prog_ac_ct_STRIP="strip"
1907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908     break 2
1909   fi
1910 done
1911 done
1912
1913   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1914 fi
1915 fi
1916 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1917 if test -n "$ac_ct_STRIP"; then
1918   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1919 echo "${ECHO_T}$ac_ct_STRIP" >&6
1920 else
1921   echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1923 fi
1924
1925   STRIP=$ac_ct_STRIP
1926 else
1927   STRIP="$ac_cv_prog_STRIP"
1928 fi
1929
1930 fi
1931 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1932
1933 # We need awk for the "check" target.  The system "awk" is bad on
1934 # some platforms.
1935
1936
1937
1938
1939 # This is required to get past a stupid configure bug when making the rpm.
1940 # Basically it is broken to specify the host as a command line argument to
1941 # configure on its own, i.e. without giving --host=. It is supposed to work
1942 # but doesn't. So this sets host and erases nonopt effectively moving the
1943 # standalone command line option into the --host= form.
1944 if test "x$nonopt" != "xNONE"; then
1945   host="$nonopt"
1946   nonopt="NONE"
1947 fi
1948
1949 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1950 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1951     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1952 if test "${enable_maintainer_mode+set}" = set; then
1953   enableval="$enable_maintainer_mode"
1954   USE_MAINTAINER_MODE=$enableval
1955 else
1956   USE_MAINTAINER_MODE=no
1957 fi;
1958   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1959 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1960
1961
1962 if test $USE_MAINTAINER_MODE = yes; then
1963   MAINTAINER_MODE_TRUE=
1964   MAINTAINER_MODE_FALSE='#'
1965 else
1966   MAINTAINER_MODE_TRUE='#'
1967   MAINTAINER_MODE_FALSE=
1968 fi
1969
1970   MAINT=$MAINTAINER_MODE_TRUE
1971
1972
1973
1974
1975 if test "x$prefix" = "xNONE"; then
1976   prefix=$ac_default_prefix
1977   ac_configure_args="$ac_configure_args --prefix $prefix"
1978 fi
1979
1980 # Command-line options.
1981 # Check whether --enable-debug or --disable-debug was given.
1982 if test "${enable_debug+set}" = set; then
1983   enableval="$enable_debug"
1984
1985 else
1986   enable_debug=no
1987
1988 fi;
1989
1990 # Check whether --enable-really-static or --disable-really-static was given.
1991 if test "${enable_really_static+set}" = set; then
1992   enableval="$enable_really_static"
1993
1994 else
1995   enable_really_static=no
1996
1997 fi;
1998
1999
2000
2001 if test "$enable_debug" = yes; then
2002   DEBUG_TRUE=
2003   DEBUG_FALSE='#'
2004 else
2005   DEBUG_TRUE='#'
2006   DEBUG_FALSE=
2007 fi
2008
2009
2010
2011 if test "$enable_really_static" = yes; then
2012   REALLYSTATIC_TRUE=
2013   REALLYSTATIC_FALSE='#'
2014 else
2015   REALLYSTATIC_TRUE='#'
2016   REALLYSTATIC_FALSE=
2017 fi
2018
2019
2020 # Checks for programs.
2021 ac_ext=cc
2022 ac_cpp='$CXXCPP $CPPFLAGS'
2023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2026 if test -n "$ac_tool_prefix"; then
2027   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2028   do
2029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CXX+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   if test -n "$CXX"; then
2037   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042   IFS=$as_save_IFS
2043   test -z "$as_dir" && as_dir=.
2044   for ac_exec_ext in '' $ac_executable_extensions; do
2045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048     break 2
2049   fi
2050 done
2051 done
2052
2053 fi
2054 fi
2055 CXX=$ac_cv_prog_CXX
2056 if test -n "$CXX"; then
2057   echo "$as_me:$LINENO: result: $CXX" >&5
2058 echo "${ECHO_T}$CXX" >&6
2059 else
2060   echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2062 fi
2063
2064     test -n "$CXX" && break
2065   done
2066 fi
2067 if test -z "$CXX"; then
2068   ac_ct_CXX=$CXX
2069   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2070 do
2071   # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   if test -n "$ac_ct_CXX"; then
2079   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084   IFS=$as_save_IFS
2085   test -z "$as_dir" && as_dir=.
2086   for ac_exec_ext in '' $ac_executable_extensions; do
2087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088     ac_cv_prog_ac_ct_CXX="$ac_prog"
2089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090     break 2
2091   fi
2092 done
2093 done
2094
2095 fi
2096 fi
2097 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2098 if test -n "$ac_ct_CXX"; then
2099   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2100 echo "${ECHO_T}$ac_ct_CXX" >&6
2101 else
2102   echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2104 fi
2105
2106   test -n "$ac_ct_CXX" && break
2107 done
2108 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2109
2110   CXX=$ac_ct_CXX
2111 fi
2112
2113
2114 # Provide some information about the compiler.
2115 echo "$as_me:$LINENO:" \
2116      "checking for C++ compiler version" >&5
2117 ac_compiler=`set X $ac_compile; echo $2`
2118 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2119   (eval $ac_compiler --version </dev/null >&5) 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2124   (eval $ac_compiler -v </dev/null >&5) 2>&5
2125   ac_status=$?
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); }
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2129   (eval $ac_compiler -V </dev/null >&5) 2>&5
2130   ac_status=$?
2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132   (exit $ac_status); }
2133
2134 cat >conftest.$ac_ext <<_ACEOF
2135 #line $LINENO "configure"
2136 /* confdefs.h.  */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h.  */
2141
2142 int
2143 main ()
2144 {
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 ac_clean_files_save=$ac_clean_files
2151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2152 # Try to create an executable without -o first, disregard a.out.
2153 # It will help us diagnose broken compilers, and finding out an intuition
2154 # of exeext.
2155 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2156 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2159   (eval $ac_link_default) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }; then
2163   # Find the output, starting from the most likely.  This scheme is
2164 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165 # resort.
2166
2167 # Be careful to initialize this variable, since it used to be cached.
2168 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2169 ac_cv_exeext=
2170 # b.out is created by i960 compilers.
2171 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2172 do
2173   test -f "$ac_file" || continue
2174   case $ac_file in
2175     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2176         ;;
2177     conftest.$ac_ext )
2178         # This is the source file.
2179         ;;
2180     [ab].out )
2181         # We found the default executable, but exeext='' is most
2182         # certainly right.
2183         break;;
2184     *.* )
2185         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186         # FIXME: I believe we export ac_cv_exeext for Libtool,
2187         # but it would be cool to find out if it's true.  Does anybody
2188         # maintain Libtool? --akim.
2189         export ac_cv_exeext
2190         break;;
2191     * )
2192         break;;
2193   esac
2194 done
2195 else
2196   echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: C++ compiler cannot create executables
2202 See \`config.log' for more details." >&2;}
2203    { (exit 77); exit 77; }; }
2204 fi
2205
2206 ac_exeext=$ac_cv_exeext
2207 echo "$as_me:$LINENO: result: $ac_file" >&5
2208 echo "${ECHO_T}$ac_file" >&6
2209
2210 # Check the compiler produces executables we can run.  If not, either
2211 # the compiler is broken, or we cross compile.
2212 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2213 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2214 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215 # If not cross compiling, check that we can run a simple program.
2216 if test "$cross_compiling" != yes; then
2217   if { ac_try='./$ac_file'
2218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219   (eval $ac_try) 2>&5
2220   ac_status=$?
2221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222   (exit $ac_status); }; }; then
2223     cross_compiling=no
2224   else
2225     if test "$cross_compiling" = maybe; then
2226         cross_compiling=yes
2227     else
2228         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: cannot run C++ compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&2;}
2234    { (exit 1); exit 1; }; }
2235     fi
2236   fi
2237 fi
2238 echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6
2240
2241 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242 ac_clean_files=$ac_clean_files_save
2243 # Check the compiler produces executables we can run.  If not, either
2244 # the compiler is broken, or we cross compile.
2245 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2247 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248 echo "${ECHO_T}$cross_compiling" >&6
2249
2250 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253   (eval $ac_link) 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }; then
2257   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2259 # work properly (i.e., refer to `conftest.exe'), while it won't with
2260 # `rm'.
2261 for ac_file in conftest.exe conftest conftest.*; do
2262   test -f "$ac_file" || continue
2263   case $ac_file in
2264     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2265     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266           export ac_cv_exeext
2267           break;;
2268     * ) break;;
2269   esac
2270 done
2271 else
2272   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2275 See \`config.log' for more details." >&2;}
2276    { (exit 1); exit 1; }; }
2277 fi
2278
2279 rm -f conftest$ac_cv_exeext
2280 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281 echo "${ECHO_T}$ac_cv_exeext" >&6
2282
2283 rm -f conftest.$ac_ext
2284 EXEEXT=$ac_cv_exeext
2285 ac_exeext=$EXEEXT
2286 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288 if test "${ac_cv_objext+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298
2299 int
2300 main ()
2301 {
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.o conftest.obj
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309   (eval $ac_compile) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; then
2313   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2314   case $ac_file in
2315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2316     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2317        break;;
2318   esac
2319 done
2320 else
2321   echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&2;}
2328    { (exit 1); exit 1; }; }
2329 fi
2330
2331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2332 fi
2333 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2334 echo "${ECHO_T}$ac_cv_objext" >&6
2335 OBJEXT=$ac_cv_objext
2336 ac_objext=$OBJEXT
2337 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2338 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2339 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2340   echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342   cat >conftest.$ac_ext <<_ACEOF
2343 #line $LINENO "configure"
2344 /* confdefs.h.  */
2345 _ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h.  */
2349
2350 int
2351 main ()
2352 {
2353 #ifndef __GNUC__
2354        choke me
2355 #endif
2356
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363   (eval $ac_compile) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); } &&
2367          { ac_try='test -s conftest.$ac_objext'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; }; then
2373   ac_compiler_gnu=yes
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 ac_compiler_gnu=no
2379 fi
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2381 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2382
2383 fi
2384 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2385 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2386 GXX=`test $ac_compiler_gnu = yes && echo yes`
2387 ac_test_CXXFLAGS=${CXXFLAGS+set}
2388 ac_save_CXXFLAGS=$CXXFLAGS
2389 CXXFLAGS="-g"
2390 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2391 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2392 if test "${ac_cv_prog_cxx_g+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   cat >conftest.$ac_ext <<_ACEOF
2396 #line $LINENO "configure"
2397 /* confdefs.h.  */
2398 _ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h.  */
2402
2403 int
2404 main ()
2405 {
2406
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413   (eval $ac_compile) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); } &&
2417          { ac_try='test -s conftest.$ac_objext'
2418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419   (eval $ac_try) 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }; }; then
2423   ac_cv_prog_cxx_g=yes
2424 else
2425   echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427
2428 ac_cv_prog_cxx_g=no
2429 fi
2430 rm -f conftest.$ac_objext conftest.$ac_ext
2431 fi
2432 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2433 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2434 if test "$ac_test_CXXFLAGS" = set; then
2435   CXXFLAGS=$ac_save_CXXFLAGS
2436 elif test $ac_cv_prog_cxx_g = yes; then
2437   if test "$GXX" = yes; then
2438     CXXFLAGS="-g -O2"
2439   else
2440     CXXFLAGS="-g"
2441   fi
2442 else
2443   if test "$GXX" = yes; then
2444     CXXFLAGS="-O2"
2445   else
2446     CXXFLAGS=
2447   fi
2448 fi
2449 for ac_declaration in \
2450    ''\
2451    '#include <stdlib.h>' \
2452    'extern "C" void std::exit (int) throw (); using std::exit;' \
2453    'extern "C" void std::exit (int); using std::exit;' \
2454    'extern "C" void exit (int) throw ();' \
2455    'extern "C" void exit (int);' \
2456    'void exit (int);'
2457 do
2458   cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465 #include <stdlib.h>
2466 $ac_declaration
2467 int
2468 main ()
2469 {
2470 exit (42);
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 rm -f conftest.$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477   (eval $ac_compile) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; }; then
2487   :
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 continue
2493 fi
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2495   cat >conftest.$ac_ext <<_ACEOF
2496 #line $LINENO "configure"
2497 /* confdefs.h.  */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h.  */
2502 $ac_declaration
2503 int
2504 main ()
2505 {
2506 exit (42);
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513   (eval $ac_compile) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); } &&
2517          { ac_try='test -s conftest.$ac_objext'
2518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519   (eval $ac_try) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; }; then
2523   break
2524 else
2525   echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2527
2528 fi
2529 rm -f conftest.$ac_objext conftest.$ac_ext
2530 done
2531 rm -f conftest*
2532 if test -n "$ac_declaration"; then
2533   echo '#ifdef __cplusplus' >>confdefs.h
2534   echo $ac_declaration      >>confdefs.h
2535   echo '#endif'             >>confdefs.h
2536 fi
2537
2538 ac_ext=c
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543 rm -f .deps 2>/dev/null
2544 mkdir .deps 2>/dev/null
2545 if test -d .deps; then
2546   DEPDIR=.deps
2547 else
2548   # MS-DOS does not allow filenames that begin with a dot.
2549   DEPDIR=_deps
2550 fi
2551 rmdir .deps 2>/dev/null
2552
2553
2554           ac_config_commands="$ac_config_commands depfiles"
2555
2556
2557 am_make=${MAKE-make}
2558 cat > confinc << 'END'
2559 doit:
2560         @echo done
2561 END
2562 # If we don't find an include directive, just comment out the code.
2563 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2564 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2565 am__include="#"
2566 am__quote=
2567 _am_result=none
2568 # First try GNU make style include.
2569 echo "include confinc" > confmf
2570 # We grep out `Entering directory' and `Leaving directory'
2571 # messages which can occur if `w' ends up in MAKEFLAGS.
2572 # In particular we don't look at `^make:' because GNU make might
2573 # be invoked under some other name (usually "gmake"), in which
2574 # case it prints its new name instead of `make'.
2575 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2576    am__include=include
2577    am__quote=
2578    _am_result=GNU
2579 fi
2580 # Now try BSD make style include.
2581 if test "$am__include" = "#"; then
2582    echo '.include "confinc"' > confmf
2583    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2584       am__include=.include
2585       am__quote="\""
2586       _am_result=BSD
2587    fi
2588 fi
2589
2590
2591 echo "$as_me:$LINENO: result: $_am_result" >&5
2592 echo "${ECHO_T}$_am_result" >&6
2593 rm -f confinc confmf
2594
2595 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2596 if test "${enable_dependency_tracking+set}" = set; then
2597   enableval="$enable_dependency_tracking"
2598
2599 fi;
2600 if test "x$enable_dependency_tracking" != xno; then
2601   am_depcomp="$ac_aux_dir/depcomp"
2602   AMDEPBACKSLASH='\'
2603 fi
2604
2605
2606 if test "x$enable_dependency_tracking" != xno; then
2607   AMDEP_TRUE=
2608   AMDEP_FALSE='#'
2609 else
2610   AMDEP_TRUE='#'
2611   AMDEP_FALSE=
2612 fi
2613
2614
2615
2616
2617 depcc="$CXX"  am_compiler_list=
2618
2619 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2620 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2621 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2622   echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2625   # We make a subdir and do the tests there.  Otherwise we can end up
2626   # making bogus files that we don't know about and never remove.  For
2627   # instance it was reported that on HP-UX the gcc test will end up
2628   # making a dummy file named `D' -- because `-MD' means `put the output
2629   # in D'.
2630   mkdir conftest.dir
2631   # Copy depcomp to subdir because otherwise we won't find it if we're
2632   # using a relative directory.
2633   cp "$am_depcomp" conftest.dir
2634   cd conftest.dir
2635
2636   am_cv_CXX_dependencies_compiler_type=none
2637   if test "$am_compiler_list" = ""; then
2638      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2639   fi
2640   for depmode in $am_compiler_list; do
2641     # We need to recreate these files for each test, as the compiler may
2642     # overwrite some of them when testing with obscure command lines.
2643     # This happens at least with the AIX C compiler.
2644     echo '#include "conftest.h"' > conftest.c
2645     echo 'int i;' > conftest.h
2646     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2647
2648     case $depmode in
2649     nosideeffect)
2650       # after this tag, mechanisms are not by side-effect, so they'll
2651       # only be used when explicitly requested
2652       if test "x$enable_dependency_tracking" = xyes; then
2653         continue
2654       else
2655         break
2656       fi
2657       ;;
2658     none) break ;;
2659     esac
2660     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2661     # mode.  It turns out that the SunPro C++ compiler does not properly
2662     # handle `-M -o', and we need to detect this.
2663     if depmode=$depmode \
2664        source=conftest.c object=conftest.o \
2665        depfile=conftest.Po tmpdepfile=conftest.TPo \
2666        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2667        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2668        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2669       am_cv_CXX_dependencies_compiler_type=$depmode
2670       break
2671     fi
2672   done
2673
2674   cd ..
2675   rm -rf conftest.dir
2676 else
2677   am_cv_CXX_dependencies_compiler_type=none
2678 fi
2679
2680 fi
2681 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2682 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2683 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2684
2685
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691 if test -n "$ac_tool_prefix"; then
2692   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2694 echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   if test -n "$CC"; then
2700   ac_cv_prog_CC="$CC" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705   IFS=$as_save_IFS
2706   test -z "$as_dir" && as_dir=.
2707   for ac_exec_ext in '' $ac_executable_extensions; do
2708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711     break 2
2712   fi
2713 done
2714 done
2715
2716 fi
2717 fi
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720   echo "$as_me:$LINENO: result: $CC" >&5
2721 echo "${ECHO_T}$CC" >&6
2722 else
2723   echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2725 fi
2726
2727 fi
2728 if test -z "$ac_cv_prog_CC"; then
2729   ac_ct_CC=$CC
2730   # Extract the first word of "gcc", so it can be a program name with args.
2731 set dummy gcc; ac_word=$2
2732 echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2735   echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737   if test -n "$ac_ct_CC"; then
2738   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743   IFS=$as_save_IFS
2744   test -z "$as_dir" && as_dir=.
2745   for ac_exec_ext in '' $ac_executable_extensions; do
2746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747     ac_cv_prog_ac_ct_CC="gcc"
2748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749     break 2
2750   fi
2751 done
2752 done
2753
2754 fi
2755 fi
2756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757 if test -n "$ac_ct_CC"; then
2758   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2759 echo "${ECHO_T}$ac_ct_CC" >&6
2760 else
2761   echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2763 fi
2764
2765   CC=$ac_ct_CC
2766 else
2767   CC="$ac_cv_prog_CC"
2768 fi
2769
2770 if test -z "$CC"; then
2771   if test -n "$ac_tool_prefix"; then
2772   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2773 set dummy ${ac_tool_prefix}cc; ac_word=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_prog_CC+set}" = set; then
2777   echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779   if test -n "$CC"; then
2780   ac_cv_prog_CC="$CC" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785   IFS=$as_save_IFS
2786   test -z "$as_dir" && as_dir=.
2787   for ac_exec_ext in '' $ac_executable_extensions; do
2788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789     ac_cv_prog_CC="${ac_tool_prefix}cc"
2790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791     break 2
2792   fi
2793 done
2794 done
2795
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800   echo "$as_me:$LINENO: result: $CC" >&5
2801 echo "${ECHO_T}$CC" >&6
2802 else
2803   echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6
2805 fi
2806
2807 fi
2808 if test -z "$ac_cv_prog_CC"; then
2809   ac_ct_CC=$CC
2810   # Extract the first word of "cc", so it can be a program name with args.
2811 set dummy cc; ac_word=$2
2812 echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   if test -n "$ac_ct_CC"; then
2818   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_exec_ext in '' $ac_executable_extensions; do
2826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827     ac_cv_prog_ac_ct_CC="cc"
2828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832 done
2833
2834 fi
2835 fi
2836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837 if test -n "$ac_ct_CC"; then
2838   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2839 echo "${ECHO_T}$ac_ct_CC" >&6
2840 else
2841   echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2843 fi
2844
2845   CC=$ac_ct_CC
2846 else
2847   CC="$ac_cv_prog_CC"
2848 fi
2849
2850 fi
2851 if test -z "$CC"; then
2852   # Extract the first word of "cc", so it can be a program name with args.
2853 set dummy cc; ac_word=$2
2854 echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856 if test "${ac_cv_prog_CC+set}" = set; then
2857   echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859   if test -n "$CC"; then
2860   ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862   ac_prog_rejected=no
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871        ac_prog_rejected=yes
2872        continue
2873      fi
2874     ac_cv_prog_CC="cc"
2875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879 done
2880
2881 if test $ac_prog_rejected = yes; then
2882   # We found a bogon in the path, so make sure we never use it.
2883   set dummy $ac_cv_prog_CC
2884   shift
2885   if test $# != 0; then
2886     # We chose a different compiler from the bogus one.
2887     # However, it has the same basename, so the bogon will be chosen
2888     # first if we set CC to just the basename; use the full file name.
2889     shift
2890     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2891   fi
2892 fi
2893 fi
2894 fi
2895 CC=$ac_cv_prog_CC
2896 if test -n "$CC"; then
2897   echo "$as_me:$LINENO: result: $CC" >&5
2898 echo "${ECHO_T}$CC" >&6
2899 else
2900   echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902 fi
2903
2904 fi
2905 if test -z "$CC"; then
2906   if test -n "$ac_tool_prefix"; then
2907   for ac_prog in cl
2908   do
2909     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914   echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916   if test -n "$CC"; then
2917   ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924   for ac_exec_ext in '' $ac_executable_extensions; do
2925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931 done
2932
2933 fi
2934 fi
2935 CC=$ac_cv_prog_CC
2936 if test -n "$CC"; then
2937   echo "$as_me:$LINENO: result: $CC" >&5
2938 echo "${ECHO_T}$CC" >&6
2939 else
2940   echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2942 fi
2943
2944     test -n "$CC" && break
2945   done
2946 fi
2947 if test -z "$CC"; then
2948   ac_ct_CC=$CC
2949   for ac_prog in cl
2950 do
2951   # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy $ac_prog; ac_word=$2
2953 echo "$as_me:$LINENO: checking for $ac_word" >&5
2954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958   if test -n "$ac_ct_CC"; then
2959   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964   IFS=$as_save_IFS
2965   test -z "$as_dir" && as_dir=.
2966   for ac_exec_ext in '' $ac_executable_extensions; do
2967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968     ac_cv_prog_ac_ct_CC="$ac_prog"
2969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970     break 2
2971   fi
2972 done
2973 done
2974
2975 fi
2976 fi
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2980 echo "${ECHO_T}$ac_ct_CC" >&6
2981 else
2982   echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6
2984 fi
2985
2986   test -n "$ac_ct_CC" && break
2987 done
2988
2989   CC=$ac_ct_CC
2990 fi
2991
2992 fi
2993
2994
2995 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2996 See \`config.log' for more details." >&5
2997 echo "$as_me: error: no acceptable C compiler found in \$PATH
2998 See \`config.log' for more details." >&2;}
2999    { (exit 1); exit 1; }; }
3000
3001 # Provide some information about the compiler.
3002 echo "$as_me:$LINENO:" \
3003      "checking for C compiler version" >&5
3004 ac_compiler=`set X $ac_compile; echo $2`
3005 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3006   (eval $ac_compiler --version </dev/null >&5) 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }
3010 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3011   (eval $ac_compiler -v </dev/null >&5) 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }
3015 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3016   (eval $ac_compiler -V </dev/null >&5) 2>&5
3017   ac_status=$?
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); }
3020
3021 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3023 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024   echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026   cat >conftest.$ac_ext <<_ACEOF
3027 #line $LINENO "configure"
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033
3034 int
3035 main ()
3036 {
3037 #ifndef __GNUC__
3038        choke me
3039 #endif
3040
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047   (eval $ac_compile) 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -s conftest.$ac_objext'
3052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053   (eval $ac_try) 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; }; then
3057   ac_compiler_gnu=yes
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 ac_compiler_gnu=no
3063 fi
3064 rm -f conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3066
3067 fi
3068 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3069 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3070 GCC=`test $ac_compiler_gnu = yes && echo yes`
3071 ac_test_CFLAGS=${CFLAGS+set}
3072 ac_save_CFLAGS=$CFLAGS
3073 CFLAGS="-g"
3074 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3075 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3076 if test "${ac_cv_prog_cc_g+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097   (eval $ac_compile) 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } &&
3101          { ac_try='test -s conftest.$ac_objext'
3102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103   (eval $ac_try) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; }; then
3107   ac_cv_prog_cc_g=yes
3108 else
3109   echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 ac_cv_prog_cc_g=no
3113 fi
3114 rm -f conftest.$ac_objext conftest.$ac_ext
3115 fi
3116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3117 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3118 if test "$ac_test_CFLAGS" = set; then
3119   CFLAGS=$ac_save_CFLAGS
3120 elif test $ac_cv_prog_cc_g = yes; then
3121   if test "$GCC" = yes; then
3122     CFLAGS="-g -O2"
3123   else
3124     CFLAGS="-g"
3125   fi
3126 else
3127   if test "$GCC" = yes; then
3128     CFLAGS="-O2"
3129   else
3130     CFLAGS=
3131   fi
3132 fi
3133 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3134 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3135 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   ac_cv_prog_cc_stdc=no
3139 ac_save_CC=$CC
3140 cat >conftest.$ac_ext <<_ACEOF
3141 #line $LINENO "configure"
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147 #include <stdarg.h>
3148 #include <stdio.h>
3149 #include <sys/types.h>
3150 #include <sys/stat.h>
3151 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3152 struct buf { int x; };
3153 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3154 static char *e (p, i)
3155      char **p;
3156      int i;
3157 {
3158   return p[i];
3159 }
3160 static char *f (char * (*g) (char **, int), char **p, ...)
3161 {
3162   char *s;
3163   va_list v;
3164   va_start (v,p);
3165   s = g (p, va_arg (v,int));
3166   va_end (v);
3167   return s;
3168 }
3169 int test (int i, double x);
3170 struct s1 {int (*f) (int a);};
3171 struct s2 {int (*f) (double a);};
3172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3173 int argc;
3174 char **argv;
3175 int
3176 main ()
3177 {
3178 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3179   ;
3180   return 0;
3181 }
3182 _ACEOF
3183 # Don't try gcc -ansi; that turns off useful extensions and
3184 # breaks some systems' header files.
3185 # AIX                   -qlanglvl=ansi
3186 # Ultrix and OSF/1      -std1
3187 # HP-UX 10.20 and later -Ae
3188 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3189 # SVR4                  -Xc -D__EXTENSIONS__
3190 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3191 do
3192   CC="$ac_save_CC $ac_arg"
3193   rm -f conftest.$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195   (eval $ac_compile) 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); } &&
3199          { ac_try='test -s conftest.$ac_objext'
3200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201   (eval $ac_try) 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }; }; then
3205   ac_cv_prog_cc_stdc=$ac_arg
3206 break
3207 else
3208   echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211 fi
3212 rm -f conftest.$ac_objext
3213 done
3214 rm -f conftest.$ac_ext conftest.$ac_objext
3215 CC=$ac_save_CC
3216
3217 fi
3218
3219 case "x$ac_cv_prog_cc_stdc" in
3220   x|xno)
3221     echo "$as_me:$LINENO: result: none needed" >&5
3222 echo "${ECHO_T}none needed" >&6 ;;
3223   *)
3224     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3226     CC="$CC $ac_cv_prog_cc_stdc" ;;
3227 esac
3228
3229 # Some people use a C++ compiler to compile C.  Since we use `exit',
3230 # in C++ we need to declare it.  In case someone uses the same compiler
3231 # for both compiling C and C++ we need to have the C++ compiler decide
3232 # the declaration of exit, since it's the most demanding environment.
3233 cat >conftest.$ac_ext <<_ACEOF
3234 #ifndef __cplusplus
3235   choke me
3236 #endif
3237 _ACEOF
3238 rm -f conftest.$ac_objext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3240   (eval $ac_compile) 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } &&
3244          { ac_try='test -s conftest.$ac_objext'
3245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246   (eval $ac_try) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; }; then
3250   for ac_declaration in \
3251    ''\
3252    '#include <stdlib.h>' \
3253    'extern "C" void std::exit (int) throw (); using std::exit;' \
3254    'extern "C" void std::exit (int); using std::exit;' \
3255    'extern "C" void exit (int) throw ();' \
3256    'extern "C" void exit (int);' \
3257    'void exit (int);'
3258 do
3259   cat >conftest.$ac_ext <<_ACEOF
3260 #line $LINENO "configure"
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #include <stdlib.h>
3267 $ac_declaration
3268 int
3269 main ()
3270 {
3271 exit (42);
3272   ;
3273   return 0;
3274 }
3275 _ACEOF
3276 rm -f conftest.$ac_objext
3277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278   (eval $ac_compile) 2>&5
3279   ac_status=$?
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } &&
3282          { ac_try='test -s conftest.$ac_objext'
3283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284   (eval $ac_try) 2>&5
3285   ac_status=$?
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); }; }; then
3288   :
3289 else
3290   echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 continue
3294 fi
3295 rm -f conftest.$ac_objext conftest.$ac_ext
3296   cat >conftest.$ac_ext <<_ACEOF
3297 #line $LINENO "configure"
3298 /* confdefs.h.  */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h.  */
3303 $ac_declaration
3304 int
3305 main ()
3306 {
3307 exit (42);
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314   (eval $ac_compile) 2>&5
3315   ac_status=$?
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } &&
3318          { ac_try='test -s conftest.$ac_objext'
3319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320   (eval $ac_try) 2>&5
3321   ac_status=$?
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); }; }; then
3324   break
3325 else
3326   echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329 fi
3330 rm -f conftest.$ac_objext conftest.$ac_ext
3331 done
3332 rm -f conftest*
3333 if test -n "$ac_declaration"; then
3334   echo '#ifdef __cplusplus' >>confdefs.h
3335   echo $ac_declaration      >>confdefs.h
3336   echo '#endif'             >>confdefs.h
3337 fi
3338
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 fi
3344 rm -f conftest.$ac_objext conftest.$ac_ext
3345 ac_ext=c
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350
3351 depcc="$CC"   am_compiler_list=
3352
3353 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3354 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3355 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3359   # We make a subdir and do the tests there.  Otherwise we can end up
3360   # making bogus files that we don't know about and never remove.  For
3361   # instance it was reported that on HP-UX the gcc test will end up
3362   # making a dummy file named `D' -- because `-MD' means `put the output
3363   # in D'.
3364   mkdir conftest.dir
3365   # Copy depcomp to subdir because otherwise we won't find it if we're
3366   # using a relative directory.
3367   cp "$am_depcomp" conftest.dir
3368   cd conftest.dir
3369
3370   am_cv_CC_dependencies_compiler_type=none
3371   if test "$am_compiler_list" = ""; then
3372      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3373   fi
3374   for depmode in $am_compiler_list; do
3375     # We need to recreate these files for each test, as the compiler may
3376     # overwrite some of them when testing with obscure command lines.
3377     # This happens at least with the AIX C compiler.
3378     echo '#include "conftest.h"' > conftest.c
3379     echo 'int i;' > conftest.h
3380     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3381
3382     case $depmode in
3383     nosideeffect)
3384       # after this tag, mechanisms are not by side-effect, so they'll
3385       # only be used when explicitly requested
3386       if test "x$enable_dependency_tracking" = xyes; then
3387         continue
3388       else
3389         break
3390       fi
3391       ;;
3392     none) break ;;
3393     esac
3394     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3395     # mode.  It turns out that the SunPro C++ compiler does not properly
3396     # handle `-M -o', and we need to detect this.
3397     if depmode=$depmode \
3398        source=conftest.c object=conftest.o \
3399        depfile=conftest.Po tmpdepfile=conftest.TPo \
3400        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3401        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3402        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3403       am_cv_CC_dependencies_compiler_type=$depmode
3404       break
3405     fi
3406   done
3407
3408   cd ..
3409   rm -rf conftest.dir
3410 else
3411   am_cv_CC_dependencies_compiler_type=none
3412 fi
3413
3414 fi
3415 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3416 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3417 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3418
3419
3420 # Find a good install program.  We prefer a C program (faster),
3421 # so one script is as good as another.  But avoid the broken or
3422 # incompatible versions:
3423 # SysV /etc/install, /usr/sbin/install
3424 # SunOS /usr/etc/install
3425 # IRIX /sbin/install
3426 # AIX /bin/install
3427 # AmigaOS /C/install, which installs bootblocks on floppy discs
3428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3431 # ./install, which can be erroneously created by make from ./install.sh.
3432 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3433 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3434 if test -z "$INSTALL"; then
3435 if test "${ac_cv_path_install+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441   IFS=$as_save_IFS
3442   test -z "$as_dir" && as_dir=.
3443   # Account for people who put trailing slashes in PATH elements.
3444 case $as_dir/ in
3445   ./ | .// | /cC/* | \
3446   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3447   /usr/ucb/* ) ;;
3448   *)
3449     # OSF1 and SCO ODT 3.0 have their own names for install.
3450     # Don't use installbsd from OSF since it installs stuff as root
3451     # by default.
3452     for ac_prog in ginstall scoinst install; do
3453       for ac_exec_ext in '' $ac_executable_extensions; do
3454         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3455           if test $ac_prog = install &&
3456             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3457             # AIX install.  It has an incompatible calling convention.
3458             :
3459           elif test $ac_prog = install &&
3460             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3461             # program-specific install script used by HP pwplus--don't use.
3462             :
3463           else
3464             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3465             break 3
3466           fi
3467         fi
3468       done
3469     done
3470     ;;
3471 esac
3472 done
3473
3474
3475 fi
3476   if test "${ac_cv_path_install+set}" = set; then
3477     INSTALL=$ac_cv_path_install
3478   else
3479     # As a last resort, use the slow shell script.  We don't cache a
3480     # path for INSTALL within a source directory, because that will
3481     # break other packages using the cache if that directory is
3482     # removed, or if the path is relative.
3483     INSTALL=$ac_install_sh
3484   fi
3485 fi
3486 echo "$as_me:$LINENO: result: $INSTALL" >&5
3487 echo "${ECHO_T}$INSTALL" >&6
3488
3489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3490 # It thinks the first close brace ends the variable substitution.
3491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3492
3493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3494
3495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3496
3497 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3498 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3499 LN_S=$as_ln_s
3500 if test "$LN_S" = "ln -s"; then
3501   echo "$as_me:$LINENO: result: yes" >&5
3502 echo "${ECHO_T}yes" >&6
3503 else
3504   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3505 echo "${ECHO_T}no, using $LN_S" >&6
3506 fi
3507
3508 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3509 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3510 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3511 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3512   echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514   cat >conftest.make <<\_ACEOF
3515 all:
3516         @echo 'ac_maketemp="$(MAKE)"'
3517 _ACEOF
3518 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3519 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3520 if test -n "$ac_maketemp"; then
3521   eval ac_cv_prog_make_${ac_make}_set=yes
3522 else
3523   eval ac_cv_prog_make_${ac_make}_set=no
3524 fi
3525 rm -f conftest.make
3526 fi
3527 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3528   echo "$as_me:$LINENO: result: yes" >&5
3529 echo "${ECHO_T}yes" >&6
3530   SET_MAKE=
3531 else
3532   echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3534   SET_MAKE="MAKE=${MAKE-make}"
3535 fi
3536
3537 if test -n "$ac_tool_prefix"; then
3538   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3539 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_RANLIB+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   if test -n "$RANLIB"; then
3546   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553   for ac_exec_ext in '' $ac_executable_extensions; do
3554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557     break 2
3558   fi
3559 done
3560 done
3561
3562 fi
3563 fi
3564 RANLIB=$ac_cv_prog_RANLIB
3565 if test -n "$RANLIB"; then
3566   echo "$as_me:$LINENO: result: $RANLIB" >&5
3567 echo "${ECHO_T}$RANLIB" >&6
3568 else
3569   echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3571 fi
3572
3573 fi
3574 if test -z "$ac_cv_prog_RANLIB"; then
3575   ac_ct_RANLIB=$RANLIB
3576   # Extract the first word of "ranlib", so it can be a program name with args.
3577 set dummy ranlib; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   if test -n "$ac_ct_RANLIB"; then
3584   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_prog_ac_ct_RANLIB="ranlib"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3601 fi
3602 fi
3603 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3604 if test -n "$ac_ct_RANLIB"; then
3605   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3606 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3607 else
3608   echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3610 fi
3611
3612   RANLIB=$ac_ct_RANLIB
3613 else
3614   RANLIB="$ac_cv_prog_RANLIB"
3615 fi
3616
3617
3618 # create a working libtool-script
3619 if test -z "$LIBTOOL"; then
3620   ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
3626   # Check whether --enable-shared or --disable-shared was given.
3627 if test "${enable_shared+set}" = set; then
3628   enableval="$enable_shared"
3629   p=${PACKAGE-default}
3630 case $enableval in
3631 yes) enable_shared=yes ;;
3632 no) enable_shared=no ;;
3633 *)
3634   enable_shared=no
3635   # Look at the argument we got.  We use all the common list separators.
3636   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3637   for pkg in $enableval; do
3638     if test "X$pkg" = "X$p"; then
3639       enable_shared=yes
3640     fi
3641   done
3642   IFS="$ac_save_ifs"
3643   ;;
3644 esac
3645 else
3646   enable_shared=yes
3647 fi;
3648 # Check whether --enable-static or --disable-static was given.
3649 if test "${enable_static+set}" = set; then
3650   enableval="$enable_static"
3651   p=${PACKAGE-default}
3652 case $enableval in
3653 yes) enable_static=yes ;;
3654 no) enable_static=no ;;
3655 *)
3656   enable_static=no
3657   # Look at the argument we got.  We use all the common list separators.
3658   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3659   for pkg in $enableval; do
3660     if test "X$pkg" = "X$p"; then
3661       enable_static=yes
3662     fi
3663   done
3664   IFS="$ac_save_ifs"
3665   ;;
3666 esac
3667 else
3668   enable_static=yes
3669 fi;
3670 # Check whether --enable-fast-install or --disable-fast-install was given.
3671 if test "${enable_fast_install+set}" = set; then
3672   enableval="$enable_fast_install"
3673   p=${PACKAGE-default}
3674 case $enableval in
3675 yes) enable_fast_install=yes ;;
3676 no) enable_fast_install=no ;;
3677 *)
3678   enable_fast_install=no
3679   # Look at the argument we got.  We use all the common list separators.
3680   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3681   for pkg in $enableval; do
3682     if test "X$pkg" = "X$p"; then
3683       enable_fast_install=yes
3684     fi
3685   done
3686   IFS="$ac_save_ifs"
3687   ;;
3688 esac
3689 else
3690   enable_fast_install=yes
3691 fi;
3692 # Find the correct PATH separator.  Usually this is `:', but
3693 # DJGPP uses `;' like DOS.
3694 if test "X${PATH_SEPARATOR+set}" != Xset; then
3695   UNAME=${UNAME-`uname 2>/dev/null`}
3696   case X$UNAME in
3697     *-DOS) lt_cv_sys_path_separator=';' ;;
3698     *)     lt_cv_sys_path_separator=':' ;;
3699   esac
3700   PATH_SEPARATOR=$lt_cv_sys_path_separator
3701 fi
3702
3703
3704 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3705 if test "${with_gnu_ld+set}" = set; then
3706   withval="$with_gnu_ld"
3707   test "$withval" = no || with_gnu_ld=yes
3708 else
3709   with_gnu_ld=no
3710 fi;
3711 ac_prog=ld
3712 if test "$GCC" = yes; then
3713   # Check if gcc -print-prog-name=ld gives a path.
3714   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3715 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3716   case $host in
3717   *-*-mingw*)
3718     # gcc leaves a trailing carriage return which upsets mingw
3719     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3720   *)
3721     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3722   esac
3723   case $ac_prog in
3724     # Accept absolute paths.
3725     [\\/]* | [A-Za-z]:[\\/]*)
3726       re_direlt='/[^/][^/]*/\.\./'
3727       # Canonicalize the path of ld
3728       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3729       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3730         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3731       done
3732       test -z "$LD" && LD="$ac_prog"
3733       ;;
3734   "")
3735     # If it fails, then pretend we aren't using GCC.
3736     ac_prog=ld
3737     ;;
3738   *)
3739     # If it is relative, then search for the first ld in PATH.
3740     with_gnu_ld=unknown
3741     ;;
3742   esac
3743 elif test "$with_gnu_ld" = yes; then
3744   echo "$as_me:$LINENO: checking for GNU ld" >&5
3745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3746 else
3747   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3749 fi
3750 if test "${lt_cv_path_LD+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   if test -z "$LD"; then
3754   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3755   for ac_dir in $PATH; do
3756     test -z "$ac_dir" && ac_dir=.
3757     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3758       lt_cv_path_LD="$ac_dir/$ac_prog"
3759       # Check to see if the program is GNU ld.  I'd rather use --version,
3760       # but apparently some GNU ld's only accept -v.
3761       # Break only if it was the GNU/non-GNU ld that we prefer.
3762       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3763         test "$with_gnu_ld" != no && break
3764       else
3765         test "$with_gnu_ld" != yes && break
3766       fi
3767     fi
3768   done
3769   IFS="$ac_save_ifs"
3770 else
3771   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3772 fi
3773 fi
3774
3775 LD="$lt_cv_path_LD"
3776 if test -n "$LD"; then
3777   echo "$as_me:$LINENO: result: $LD" >&5
3778 echo "${ECHO_T}$LD" >&6
3779 else
3780   echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3782 fi
3783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3785    { (exit 1); exit 1; }; }
3786 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3792 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3793   lt_cv_prog_gnu_ld=yes
3794 else
3795   lt_cv_prog_gnu_ld=no
3796 fi
3797 fi
3798 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3799 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3800 with_gnu_ld=$lt_cv_prog_gnu_ld
3801
3802
3803 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3804 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3805 if test "${lt_cv_ld_reload_flag+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   lt_cv_ld_reload_flag='-r'
3809 fi
3810 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3811 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3812 reload_flag=$lt_cv_ld_reload_flag
3813 test -n "$reload_flag" && reload_flag=" $reload_flag"
3814
3815 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3816 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3817 if test "${lt_cv_path_NM+set}" = set; then
3818   echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820   if test -n "$NM"; then
3821   # Let the user override the test.
3822   lt_cv_path_NM="$NM"
3823 else
3824   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3825   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3826     test -z "$ac_dir" && ac_dir=.
3827     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3828     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3829       # Check to see if the nm accepts a BSD-compat flag.
3830       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3831       #   nm: unknown option "B" ignored
3832       # Tru64's nm complains that /dev/null is an invalid object file
3833       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3834         lt_cv_path_NM="$tmp_nm -B"
3835         break
3836       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3837         lt_cv_path_NM="$tmp_nm -p"
3838         break
3839       else
3840         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3841         continue # so that we can try to find one that supports BSD flags
3842       fi
3843     fi
3844   done
3845   IFS="$ac_save_ifs"
3846   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3847 fi
3848 fi
3849
3850 NM="$lt_cv_path_NM"
3851 echo "$as_me:$LINENO: result: $NM" >&5
3852 echo "${ECHO_T}$NM" >&6
3853
3854 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3855 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3856 if test "${lt_cv_path_SED+set}" = set; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   # Loop through the user's path and test for sed and gsed.
3860 # Then use that list of sed's as ones to test for truncation.
3861 as_executable_p="test -f"
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867   for ac_prog in sed gsed; do
3868     for ac_exec_ext in '' $ac_executable_extensions; do
3869       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3870         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3871       fi
3872     done
3873   done
3874 done
3875
3876   # Create a temporary directory, and hook for its removal unless debugging.
3877 $debug ||
3878 {
3879   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3880   trap '{ (exit 1); exit 1; }' 1 2 13 15
3881 }
3882
3883 # Create a (secure) tmp directory for tmp files.
3884 : ${TMPDIR=/tmp}
3885 {
3886   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3887   test -n "$tmp" && test -d "$tmp"
3888 }  ||
3889 {
3890   tmp=$TMPDIR/sed$$-$RANDOM
3891   (umask 077 && mkdir $tmp)
3892 } ||
3893 {
3894    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3895    { (exit 1); exit 1; }
3896 }
3897   _max=0
3898   _count=0
3899   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3900   # along with /bin/sed that truncates output.
3901   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3902     test ! -f ${_sed} && break
3903     cat /dev/null > "$tmp/sed.in"
3904     _count=0
3905     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3906     # Check for GNU sed and select it if it is found.
3907     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3908       lt_cv_path_SED=${_sed}
3909       break
3910     fi
3911     while true; do
3912       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3913       mv "$tmp/sed.tmp" "$tmp/sed.in"
3914       cp "$tmp/sed.in" "$tmp/sed.nl"
3915       echo >>"$tmp/sed.nl"
3916       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3917       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3918       # 40000 chars as input seems more than enough
3919       test $_count -gt 10 && break
3920       _count=`expr $_count + 1`
3921       if test $_count -gt $_max; then
3922         _max=$_count
3923         lt_cv_path_SED=$_sed
3924       fi
3925     done
3926   done
3927   rm -rf "$tmp"
3928
3929 fi
3930
3931 if test "X$SED" != "X"; then
3932   lt_cv_path_SED=$SED
3933 else
3934   SED=$lt_cv_path_SED
3935 fi
3936 echo "$as_me:$LINENO: result: $SED" >&5
3937 echo "${ECHO_T}$SED" >&6
3938
3939 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3940 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3941 if test "${lt_cv_deplibs_check_method+set}" = set; then
3942   echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944   lt_cv_file_magic_cmd='$MAGIC_CMD'
3945 lt_cv_file_magic_test_file=
3946 lt_cv_deplibs_check_method='unknown'
3947 # Need to set the preceding variable on all platforms that support
3948 # interlibrary dependencies.
3949 # 'none' -- dependencies not supported.
3950 # `unknown' -- same as none, but documents that we really don't know.
3951 # 'pass_all' -- all dependencies passed with no checks.
3952 # 'test_compile' -- check by making test program.
3953 # 'file_magic [[regex]]' -- check by looking for files in library path
3954 # which responds to the $file_magic_cmd with a given egrep regex.
3955 # If you have `file' or equivalent on your system and you're not sure
3956 # whether `pass_all' will *always* work, you probably want this one.
3957
3958 case $host_os in
3959 aix4* | aix5*)
3960   lt_cv_deplibs_check_method=pass_all
3961   ;;
3962
3963 beos*)
3964   lt_cv_deplibs_check_method=pass_all
3965   ;;
3966
3967 bsdi4*)
3968   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3969   lt_cv_file_magic_cmd='/usr/bin/file -L'
3970   lt_cv_file_magic_test_file=/shlib/libc.so
3971   ;;
3972
3973 cygwin* | mingw* | pw32*)
3974   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3975   lt_cv_file_magic_cmd='$OBJDUMP -f'
3976   ;;
3977
3978 darwin* | rhapsody*)
3979   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3980   lt_cv_file_magic_cmd='/usr/bin/file -L'
3981   case "$host_os" in
3982   rhapsody* | darwin1.[012])
3983     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3984     ;;
3985   *) # Darwin 1.3 on
3986     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3987     ;;
3988   esac
3989   ;;
3990
3991 freebsd*)
3992   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3993     case $host_cpu in
3994     i*86 )
3995       # Not sure whether the presence of OpenBSD here was a mistake.
3996       # Let's accept both of them until this is cleared up.
3997       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3998       lt_cv_file_magic_cmd=/usr/bin/file
3999       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4000       ;;
4001     esac
4002   else
4003     lt_cv_deplibs_check_method=pass_all
4004   fi
4005   ;;
4006
4007 gnu*)
4008   lt_cv_deplibs_check_method=pass_all
4009   ;;
4010
4011 hpux10.20*|hpux11*)
4012   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4013   lt_cv_file_magic_cmd=/usr/bin/file
4014   lt_cv_file_magic_test_file=/usr/lib/libc.sl
4015   ;;
4016
4017 irix5* | irix6* | nonstopux*)
4018   case $host_os in
4019   irix5* | nonstopux*)
4020     # this will be overridden with pass_all, but let us keep it just in case
4021     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4022     ;;
4023   *)
4024     case $LD in
4025     *-32|*"-32 ") libmagic=32-bit;;
4026     *-n32|*"-n32 ") libmagic=N32;;
4027     *-64|*"-64 ") libmagic=64-bit;;
4028     *) libmagic=never-match;;
4029     esac
4030     # this will be overridden with pass_all, but let us keep it just in case
4031     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4032     ;;
4033   esac
4034   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4035   lt_cv_deplibs_check_method=pass_all
4036   ;;
4037
4038 # This must be Linux ELF.
4039 linux-gnu*)
4040   case $host_cpu in
4041   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
4042     lt_cv_deplibs_check_method=pass_all ;;
4043   *)
4044     # glibc up to 2.1.1 does not perform some relocations on ARM
4045     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4046   esac
4047   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4048   ;;
4049
4050 netbsd*)
4051   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4052     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4053   else
4054     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4055   fi
4056   ;;
4057
4058 newos6*)
4059   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4060   lt_cv_file_magic_cmd=/usr/bin/file
4061   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4062   ;;
4063
4064 openbsd*)
4065   lt_cv_file_magic_cmd=/usr/bin/file
4066   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4067   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4068     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4069   else
4070     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4071   fi
4072   ;;
4073
4074 osf3* | osf4* | osf5*)
4075   # this will be overridden with pass_all, but let us keep it just in case
4076   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4077   lt_cv_file_magic_test_file=/shlib/libc.so
4078   lt_cv_deplibs_check_method=pass_all
4079   ;;
4080
4081 sco3.2v5*)
4082   lt_cv_deplibs_check_method=pass_all
4083   ;;
4084
4085 solaris*)
4086   lt_cv_deplibs_check_method=pass_all
4087   lt_cv_file_magic_test_file=/lib/libc.so
4088   ;;
4089
4090 sysv5uw[78]* | sysv4*uw2*)
4091   lt_cv_deplibs_check_method=pass_all
4092   ;;
4093
4094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4095   case $host_vendor in
4096   motorola)
4097     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]'
4098     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4099     ;;
4100   ncr)
4101     lt_cv_deplibs_check_method=pass_all
4102     ;;
4103   sequent)
4104     lt_cv_file_magic_cmd='/bin/file'
4105     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4106     ;;
4107   sni)
4108     lt_cv_file_magic_cmd='/bin/file'
4109     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4110     lt_cv_file_magic_test_file=/lib/libc.so
4111     ;;
4112   siemens)
4113     lt_cv_deplibs_check_method=pass_all
4114     ;;
4115   esac
4116   ;;
4117 esac
4118
4119 fi
4120 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4121 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4122 file_magic_cmd=$lt_cv_file_magic_cmd
4123 deplibs_check_method=$lt_cv_deplibs_check_method
4124
4125
4126
4127
4128
4129
4130
4131
4132 # Check for command to grab the raw symbol name followed by C symbol from nm.
4133 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4134 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4135 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138
4139 # These are sane defaults that work on at least a few old systems.
4140 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4141
4142 # Character class describing NM global symbol codes.
4143 symcode='[BCDEGRST]'
4144
4145 # Regexp to match symbols that can be accessed directly from C.
4146 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4147
4148 # Transform the above into a raw symbol and a C symbol.
4149 symxfrm='\1 \2\3 \3'
4150
4151 # Transform an extracted symbol line into a proper C declaration
4152 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4153
4154 # Transform an extracted symbol line into symbol name and symbol address
4155 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4156
4157 # Define system-specific variables.
4158 case $host_os in
4159 aix*)
4160   symcode='[BCDT]'
4161   ;;
4162 cygwin* | mingw* | pw32*)
4163   symcode='[ABCDGISTW]'
4164   ;;
4165 hpux*) # Its linker distinguishes data from code symbols
4166   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4167   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4168   ;;
4169 irix* | nonstopux*)
4170   symcode='[BCDEGRST]'
4171   ;;
4172 osf*)
4173   symcode='[BCDEGQRST]'
4174   ;;
4175 solaris* | sysv5*)
4176   symcode='[BDT]'
4177   ;;
4178 sysv4)
4179   symcode='[DFNSTU]'
4180   ;;
4181 esac
4182
4183 # Handle CRLF in mingw tool chain
4184 opt_cr=
4185 case $host_os in
4186 mingw*)
4187   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4188   ;;
4189 esac
4190
4191 # If we're using GNU nm, then use its standard symbol codes.
4192 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4193   symcode='[ABCDGISTW]'
4194 fi
4195
4196 # Try without a prefix undercore, then with it.
4197 for ac_symprfx in "" "_"; do
4198
4199   # Write the raw and C identifiers.
4200 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4201
4202   # Check to see that the pipe works correctly.
4203   pipe_works=no
4204   rm -f conftest*
4205   cat > conftest.$ac_ext <<EOF
4206 #ifdef __cplusplus
4207 extern "C" {
4208 #endif
4209 char nm_test_var;
4210 void nm_test_func(){}
4211 #ifdef __cplusplus
4212 }
4213 #endif
4214 int main(){nm_test_var='a';nm_test_func();return(0);}
4215 EOF
4216
4217   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218   (eval $ac_compile) 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }; then
4222     # Now try to grab the symbols.
4223     nlist=conftest.nm
4224     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4225   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); } && test -s "$nlist"; then
4229       # Try sorting and uniquifying the output.
4230       if sort "$nlist" | uniq > "$nlist"T; then
4231         mv -f "$nlist"T "$nlist"
4232       else
4233         rm -f "$nlist"T
4234       fi
4235
4236       # Make sure that we snagged all the symbols we need.
4237       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4238         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4239           cat <<EOF > conftest.$ac_ext
4240 #ifdef __cplusplus
4241 extern "C" {
4242 #endif
4243
4244 EOF
4245           # Now generate the symbol file.
4246           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4247
4248           cat <<EOF >> conftest.$ac_ext
4249 #if defined (__STDC__) && __STDC__
4250 # define lt_ptr void *
4251 #else
4252 # define lt_ptr char *
4253 # define const
4254 #endif
4255
4256 /* The mapping between symbol names and symbols. */
4257 const struct {
4258   const char *name;
4259   lt_ptr address;
4260 }
4261 lt_preloaded_symbols[] =
4262 {
4263 EOF
4264           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4265           cat <<\EOF >> conftest.$ac_ext
4266   {0, (lt_ptr) 0}
4267 };
4268
4269 #ifdef __cplusplus
4270 }
4271 #endif
4272 EOF
4273           # Now try linking the two files.
4274           mv conftest.$ac_objext conftstm.$ac_objext
4275           save_LIBS="$LIBS"
4276           save_CFLAGS="$CFLAGS"
4277           LIBS="conftstm.$ac_objext"
4278           CFLAGS="$CFLAGS$no_builtin_flag"
4279           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4280   (eval $ac_link) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); } && test -s conftest$ac_exeext; then
4284             pipe_works=yes
4285           fi
4286           LIBS="$save_LIBS"
4287           CFLAGS="$save_CFLAGS"
4288         else
4289           echo "cannot find nm_test_func in $nlist" >&5
4290         fi
4291       else
4292         echo "cannot find nm_test_var in $nlist" >&5
4293       fi
4294     else
4295       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4296     fi
4297   else
4298     echo "$progname: failed program was:" >&5
4299     cat conftest.$ac_ext >&5
4300   fi
4301   rm -f conftest* conftst*
4302
4303   # Do not use the global_symbol_pipe unless it works.
4304   if test "$pipe_works" = yes; then
4305     break
4306   else
4307     lt_cv_sys_global_symbol_pipe=
4308   fi
4309 done
4310
4311 fi
4312
4313 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4314 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4315   global_symbol_to_cdecl=
4316   global_symbol_to_c_name_address=
4317 else
4318   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4319   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4320 fi
4321 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4322 then
4323   echo "$as_me:$LINENO: result: failed" >&5
4324 echo "${ECHO_T}failed" >&6
4325 else
4326   echo "$as_me:$LINENO: result: ok" >&5
4327 echo "${ECHO_T}ok" >&6
4328 fi
4329
4330 ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4336 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4337 # On Suns, sometimes $CPP names a directory.
4338 if test -n "$CPP" && test -d "$CPP"; then
4339   CPP=
4340 fi
4341 if test -z "$CPP"; then
4342   if test "${ac_cv_prog_CPP+set}" = set; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345       # Double quotes because CPP needs to be expanded
4346     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4347     do
4348       ac_preproc_ok=false
4349 for ac_c_preproc_warn_flag in '' yes
4350 do
4351   # Use a header file that comes with gcc, so configuring glibc
4352   # with a fresh cross-compiler works.
4353   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4354   # <limits.h> exists even on freestanding compilers.
4355   # On the NeXT, cc -E runs the code through the compiler's parser,
4356   # not just through cpp. "Syntax error" is here to catch this case.
4357   cat >conftest.$ac_ext <<_ACEOF
4358 #line $LINENO "configure"
4359 /* confdefs.h.  */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h.  */
4364 #ifdef __STDC__
4365 # include <limits.h>
4366 #else
4367 # include <assert.h>
4368 #endif
4369                      Syntax error
4370 _ACEOF
4371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4373   ac_status=$?
4374   grep -v '^ *+' conftest.er1 >conftest.err
4375   rm -f conftest.er1
4376   cat conftest.err >&5
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); } >/dev/null; then
4379   if test -s conftest.err; then
4380     ac_cpp_err=$ac_c_preproc_warn_flag
4381   else
4382     ac_cpp_err=
4383   fi
4384 else
4385   ac_cpp_err=yes
4386 fi
4387 if test -z "$ac_cpp_err"; then
4388   :
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393   # Broken: fails on valid input.
4394 continue
4395 fi
4396 rm -f conftest.err conftest.$ac_ext
4397
4398   # OK, works on sane cases.  Now check whether non-existent headers
4399   # can be detected and how.
4400   cat >conftest.$ac_ext <<_ACEOF
4401 #line $LINENO "configure"
4402 /* confdefs.h.  */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h.  */
4407 #include <ac_nonexistent.h>
4408 _ACEOF
4409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4411   ac_status=$?
4412   grep -v '^ *+' conftest.er1 >conftest.err
4413   rm -f conftest.er1
4414   cat conftest.err >&5
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); } >/dev/null; then
4417   if test -s conftest.err; then
4418     ac_cpp_err=$ac_c_preproc_warn_flag
4419   else
4420     ac_cpp_err=
4421   fi
4422 else
4423   ac_cpp_err=yes
4424 fi
4425 if test -z "$ac_cpp_err"; then
4426   # Broken: success on invalid input.
4427 continue
4428 else
4429   echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432   # Passes both tests.
4433 ac_preproc_ok=:
4434 break
4435 fi
4436 rm -f conftest.err conftest.$ac_ext
4437
4438 done
4439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4440 rm -f conftest.err conftest.$ac_ext
4441 if $ac_preproc_ok; then
4442   break
4443 fi
4444
4445     done
4446     ac_cv_prog_CPP=$CPP
4447
4448 fi
4449   CPP=$ac_cv_prog_CPP
4450 else
4451   ac_cv_prog_CPP=$CPP
4452 fi
4453 echo "$as_me:$LINENO: result: $CPP" >&5
4454 echo "${ECHO_T}$CPP" >&6
4455 ac_preproc_ok=false
4456 for ac_c_preproc_warn_flag in '' yes
4457 do
4458   # Use a header file that comes with gcc, so configuring glibc
4459   # with a fresh cross-compiler works.
4460   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4461   # <limits.h> exists even on freestanding compilers.
4462   # On the NeXT, cc -E runs the code through the compiler's parser,
4463   # not just through cpp. "Syntax error" is here to catch this case.
4464   cat >conftest.$ac_ext <<_ACEOF
4465 #line $LINENO "configure"
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471 #ifdef __STDC__
4472 # include <limits.h>
4473 #else
4474 # include <assert.h>
4475 #endif
4476                      Syntax error
4477 _ACEOF
4478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4480   ac_status=$?
4481   grep -v '^ *+' conftest.er1 >conftest.err
4482   rm -f conftest.er1
4483   cat conftest.err >&5
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } >/dev/null; then
4486   if test -s conftest.err; then
4487     ac_cpp_err=$ac_c_preproc_warn_flag
4488   else
4489     ac_cpp_err=
4490   fi
4491 else
4492   ac_cpp_err=yes
4493 fi
4494 if test -z "$ac_cpp_err"; then
4495   :
4496 else
4497   echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
4500   # Broken: fails on valid input.
4501 continue
4502 fi
4503 rm -f conftest.err conftest.$ac_ext
4504
4505   # OK, works on sane cases.  Now check whether non-existent headers
4506   # can be detected and how.
4507   cat >conftest.$ac_ext <<_ACEOF
4508 #line $LINENO "configure"
4509 /* confdefs.h.  */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h.  */
4514 #include <ac_nonexistent.h>
4515 _ACEOF
4516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } >/dev/null; then
4524   if test -s conftest.err; then
4525     ac_cpp_err=$ac_c_preproc_warn_flag
4526   else
4527     ac_cpp_err=
4528   fi
4529 else
4530   ac_cpp_err=yes
4531 fi
4532 if test -z "$ac_cpp_err"; then
4533   # Broken: success on invalid input.
4534 continue
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539   # Passes both tests.
4540 ac_preproc_ok=:
4541 break
4542 fi
4543 rm -f conftest.err conftest.$ac_ext
4544
4545 done
4546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4547 rm -f conftest.err conftest.$ac_ext
4548 if $ac_preproc_ok; then
4549   :
4550 else
4551   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4552 See \`config.log' for more details." >&5
4553 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4554 See \`config.log' for more details." >&2;}
4555    { (exit 1); exit 1; }; }
4556 fi
4557
4558 ac_ext=c
4559 ac_cpp='$CPP $CPPFLAGS'
4560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563
4564
4565 echo "$as_me:$LINENO: checking for egrep" >&5
4566 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4567 if test "${ac_cv_prog_egrep+set}" = set; then
4568   echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4571     then ac_cv_prog_egrep='grep -E'
4572     else ac_cv_prog_egrep='egrep'
4573     fi
4574 fi
4575 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4576 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4577  EGREP=$ac_cv_prog_egrep
4578
4579
4580 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4581 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4582 if test "${ac_cv_header_stdc+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   cat >conftest.$ac_ext <<_ACEOF
4586 #line $LINENO "configure"
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592 #include <stdlib.h>
4593 #include <stdarg.h>
4594 #include <string.h>
4595 #include <float.h>
4596
4597 int
4598 main ()
4599 {
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607   (eval $ac_compile) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -s conftest.$ac_objext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_cv_header_stdc=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_cv_header_stdc=no
4623 fi
4624 rm -f conftest.$ac_objext conftest.$ac_ext
4625
4626 if test $ac_cv_header_stdc = yes; then
4627   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4628   cat >conftest.$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4630 /* confdefs.h.  */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h.  */
4635 #include <string.h>
4636
4637 _ACEOF
4638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4639   $EGREP "memchr" >/dev/null 2>&1; then
4640   :
4641 else
4642   ac_cv_header_stdc=no
4643 fi
4644 rm -f conftest*
4645
4646 fi
4647
4648 if test $ac_cv_header_stdc = yes; then
4649   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4650   cat >conftest.$ac_ext <<_ACEOF
4651 #line $LINENO "configure"
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657 #include <stdlib.h>
4658
4659 _ACEOF
4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661   $EGREP "free" >/dev/null 2>&1; then
4662   :
4663 else
4664   ac_cv_header_stdc=no
4665 fi
4666 rm -f conftest*
4667
4668 fi
4669
4670 if test $ac_cv_header_stdc = yes; then
4671   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4672   if test "$cross_compiling" = yes; then
4673   :
4674 else
4675   cat >conftest.$ac_ext <<_ACEOF
4676 #line $LINENO "configure"
4677 /* confdefs.h.  */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h.  */
4682 #include <ctype.h>
4683 #if ((' ' & 0x0FF) == 0x020)
4684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4686 #else
4687 # define ISLOWER(c) \
4688                    (('a' <= (c) && (c) <= 'i') \
4689                      || ('j' <= (c) && (c) <= 'r') \
4690                      || ('s' <= (c) && (c) <= 'z'))
4691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4692 #endif
4693
4694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4695 int
4696 main ()
4697 {
4698   int i;
4699   for (i = 0; i < 256; i++)
4700     if (XOR (islower (i), ISLOWER (i))
4701         || toupper (i) != TOUPPER (i))
4702       exit(2);
4703   exit (0);
4704 }
4705 _ACEOF
4706 rm -f conftest$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708   (eval $ac_link) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713   (eval $ac_try) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }; }; then
4717   :
4718 else
4719   echo "$as_me: program exited with status $ac_status" >&5
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 ( exit $ac_status )
4724 ac_cv_header_stdc=no
4725 fi
4726 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4727 fi
4728 fi
4729 fi
4730 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4731 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4732 if test $ac_cv_header_stdc = yes; then
4733
4734 cat >>confdefs.h <<\_ACEOF
4735 #define STDC_HEADERS 1
4736 _ACEOF
4737
4738 fi
4739
4740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4751                   inttypes.h stdint.h unistd.h
4752 do
4753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4754 echo "$as_me:$LINENO: checking for $ac_header" >&5
4755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4757   echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759   cat >conftest.$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4761 /* confdefs.h.  */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h.  */
4766 $ac_includes_default
4767
4768 #include <$ac_header>
4769 _ACEOF
4770 rm -f conftest.$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772   (eval $ac_compile) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); } &&
4776          { ac_try='test -s conftest.$ac_objext'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; }; then
4782   eval "$as_ac_Header=yes"
4783 else
4784   echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 eval "$as_ac_Header=no"
4788 fi
4789 rm -f conftest.$ac_objext conftest.$ac_ext
4790 fi
4791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4794   cat >>confdefs.h <<_ACEOF
4795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4796 _ACEOF
4797
4798 fi
4799
4800 done
4801
4802
4803
4804 for ac_header in dlfcn.h
4805 do
4806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808   echo "$as_me:$LINENO: checking for $ac_header" >&5
4809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 fi
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4815 else
4816   # Is the header compilable?
4817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4819 cat >conftest.$ac_ext <<_ACEOF
4820 #line $LINENO "configure"
4821 /* confdefs.h.  */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h.  */
4826 $ac_includes_default
4827 #include <$ac_header>
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831   (eval $ac_compile) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } &&
4835          { ac_try='test -s conftest.$ac_objext'
4836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837   (eval $ac_try) 2>&5
4838   ac_status=$?
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); }; }; then
4841   ac_header_compiler=yes
4842 else
4843   echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 ac_header_compiler=no
4847 fi
4848 rm -f conftest.$ac_objext conftest.$ac_ext
4849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4850 echo "${ECHO_T}$ac_header_compiler" >&6
4851
4852 # Is the header present?
4853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4855 cat >conftest.$ac_ext <<_ACEOF
4856 #line $LINENO "configure"
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862 #include <$ac_header>
4863 _ACEOF
4864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4866   ac_status=$?
4867   grep -v '^ *+' conftest.er1 >conftest.err
4868   rm -f conftest.er1
4869   cat conftest.err >&5
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); } >/dev/null; then
4872   if test -s conftest.err; then
4873     ac_cpp_err=$ac_c_preproc_warn_flag
4874   else
4875     ac_cpp_err=
4876   fi
4877 else
4878   ac_cpp_err=yes
4879 fi
4880 if test -z "$ac_cpp_err"; then
4881   ac_header_preproc=yes
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886   ac_header_preproc=no
4887 fi
4888 rm -f conftest.err conftest.$ac_ext
4889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4890 echo "${ECHO_T}$ac_header_preproc" >&6
4891
4892 # So?  What about this header?
4893 case $ac_header_compiler:$ac_header_preproc in
4894   yes:no )
4895     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4899     (
4900       cat <<\_ASBOX
4901 ## ------------------------------------ ##
4902 ## Report this to bug-autoconf@gnu.org. ##
4903 ## ------------------------------------ ##
4904 _ASBOX
4905     ) |
4906       sed "s/^/$as_me: WARNING:     /" >&2
4907     ;;
4908   no:yes )
4909     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4911     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4915     (
4916       cat <<\_ASBOX
4917 ## ------------------------------------ ##
4918 ## Report this to bug-autoconf@gnu.org. ##
4919 ## ------------------------------------ ##
4920 _ASBOX
4921     ) |
4922       sed "s/^/$as_me: WARNING:     /" >&2
4923     ;;
4924 esac
4925 echo "$as_me:$LINENO: checking for $ac_header" >&5
4926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930   eval "$as_ac_Header=$ac_header_preproc"
4931 fi
4932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4934
4935 fi
4936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4937   cat >>confdefs.h <<_ACEOF
4938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4939 _ACEOF
4940
4941 fi
4942
4943 done
4944
4945
4946
4947
4948
4949
4950 # Only perform the check for file, if the check method requires it
4951 case $deplibs_check_method in
4952 file_magic*)
4953   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4954     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4955 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4956 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4957   echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959   case $MAGIC_CMD in
4960   /*)
4961   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4962   ;;
4963   ?:/*)
4964   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4965   ;;
4966   *)
4967   ac_save_MAGIC_CMD="$MAGIC_CMD"
4968   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4969   ac_dummy="/usr/bin:$PATH"
4970   for ac_dir in $ac_dummy; do
4971     test -z "$ac_dir" && ac_dir=.
4972     if test -f $ac_dir/${ac_tool_prefix}file; then
4973       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4974       if test -n "$file_magic_test_file"; then
4975         case $deplibs_check_method in
4976         "file_magic "*)
4977           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4978           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4979           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4980             egrep "$file_magic_regex" > /dev/null; then
4981             :
4982           else
4983             cat <<EOF 1>&2
4984
4985 *** Warning: the command libtool uses to detect shared libraries,
4986 *** $file_magic_cmd, produces output that libtool cannot recognize.
4987 *** The result is that libtool may fail to recognize shared libraries
4988 *** as such.  This will affect the creation of libtool libraries that
4989 *** depend on shared libraries, but programs linked with such libtool
4990 *** libraries will work regardless of this problem.  Nevertheless, you
4991 *** may want to report the problem to your system manager and/or to
4992 *** bug-libtool@gnu.org
4993
4994 EOF
4995           fi ;;
4996         esac
4997       fi
4998       break
4999     fi
5000   done
5001   IFS="$ac_save_ifs"
5002   MAGIC_CMD="$ac_save_MAGIC_CMD"
5003   ;;
5004 esac
5005 fi
5006
5007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5008 if test -n "$MAGIC_CMD"; then
5009   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5010 echo "${ECHO_T}$MAGIC_CMD" >&6
5011 else
5012   echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5014 fi
5015
5016 if test -z "$lt_cv_path_MAGIC_CMD"; then
5017   if test -n "$ac_tool_prefix"; then
5018     echo "$as_me:$LINENO: checking for file" >&5
5019 echo $ECHO_N "checking for file... $ECHO_C" >&6
5020 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   case $MAGIC_CMD in
5024   /*)
5025   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5026   ;;
5027   ?:/*)
5028   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5029   ;;
5030   *)
5031   ac_save_MAGIC_CMD="$MAGIC_CMD"
5032   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5033   ac_dummy="/usr/bin:$PATH"
5034   for ac_dir in $ac_dummy; do
5035     test -z "$ac_dir" && ac_dir=.
5036     if test -f $ac_dir/file; then
5037       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5038       if test -n "$file_magic_test_file"; then
5039         case $deplibs_check_method in
5040         "file_magic "*)
5041           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5042           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5043           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5044             egrep "$file_magic_regex" > /dev/null; then
5045             :
5046           else
5047             cat <<EOF 1>&2
5048
5049 *** Warning: the command libtool uses to detect shared libraries,
5050 *** $file_magic_cmd, produces output that libtool cannot recognize.
5051 *** The result is that libtool may fail to recognize shared libraries
5052 *** as such.  This will affect the creation of libtool libraries that
5053 *** depend on shared libraries, but programs linked with such libtool
5054 *** libraries will work regardless of this problem.  Nevertheless, you
5055 *** may want to report the problem to your system manager and/or to
5056 *** bug-libtool@gnu.org
5057
5058 EOF
5059           fi ;;
5060         esac
5061       fi
5062       break
5063     fi
5064   done
5065   IFS="$ac_save_ifs"
5066   MAGIC_CMD="$ac_save_MAGIC_CMD"
5067   ;;
5068 esac
5069 fi
5070
5071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5072 if test -n "$MAGIC_CMD"; then
5073   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5074 echo "${ECHO_T}$MAGIC_CMD" >&6
5075 else
5076   echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6
5078 fi
5079
5080   else
5081     MAGIC_CMD=:
5082   fi
5083 fi
5084
5085   fi
5086   ;;
5087 esac
5088
5089 if test -n "$ac_tool_prefix"; then
5090   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5092 echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5094 if test "${ac_cv_prog_RANLIB+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   if test -n "$RANLIB"; then
5098   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105   for ac_exec_ext in '' $ac_executable_extensions; do
5106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112 done
5113
5114 fi
5115 fi
5116 RANLIB=$ac_cv_prog_RANLIB
5117 if test -n "$RANLIB"; then
5118   echo "$as_me:$LINENO: result: $RANLIB" >&5
5119 echo "${ECHO_T}$RANLIB" >&6
5120 else
5121   echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5123 fi
5124
5125 fi
5126 if test -z "$ac_cv_prog_RANLIB"; then
5127   ac_ct_RANLIB=$RANLIB
5128   # Extract the first word of "ranlib", so it can be a program name with args.
5129 set dummy ranlib; ac_word=$2
5130 echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5133   echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135   if test -n "$ac_ct_RANLIB"; then
5136   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141   IFS=$as_save_IFS
5142   test -z "$as_dir" && as_dir=.
5143   for ac_exec_ext in '' $ac_executable_extensions; do
5144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145     ac_cv_prog_ac_ct_RANLIB="ranlib"
5146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147     break 2
5148   fi
5149 done
5150 done
5151
5152   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5153 fi
5154 fi
5155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5156 if test -n "$ac_ct_RANLIB"; then
5157   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5158 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5159 else
5160   echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5162 fi
5163
5164   RANLIB=$ac_ct_RANLIB
5165 else
5166   RANLIB="$ac_cv_prog_RANLIB"
5167 fi
5168
5169 if test -n "$ac_tool_prefix"; then
5170   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}strip; ac_word=$2
5172 echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_prog_STRIP+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   if test -n "$STRIP"; then
5178   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185   for ac_exec_ext in '' $ac_executable_extensions; do
5186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192 done
5193
5194 fi
5195 fi
5196 STRIP=$ac_cv_prog_STRIP
5197 if test -n "$STRIP"; then
5198   echo "$as_me:$LINENO: result: $STRIP" >&5
5199 echo "${ECHO_T}$STRIP" >&6
5200 else
5201   echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6
5203 fi
5204
5205 fi
5206 if test -z "$ac_cv_prog_STRIP"; then
5207   ac_ct_STRIP=$STRIP
5208   # Extract the first word of "strip", so it can be a program name with args.
5209 set dummy strip; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   if test -n "$ac_ct_STRIP"; then
5216   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223   for ac_exec_ext in '' $ac_executable_extensions; do
5224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225     ac_cv_prog_ac_ct_STRIP="strip"
5226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230 done
5231
5232   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5233 fi
5234 fi
5235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5236 if test -n "$ac_ct_STRIP"; then
5237   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5238 echo "${ECHO_T}$ac_ct_STRIP" >&6
5239 else
5240   echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5242 fi
5243
5244   STRIP=$ac_ct_STRIP
5245 else
5246   STRIP="$ac_cv_prog_STRIP"
5247 fi
5248
5249
5250 enable_dlopen=no
5251 enable_win32_dll=no
5252
5253 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5254 if test "${enable_libtool_lock+set}" = set; then
5255   enableval="$enable_libtool_lock"
5256
5257 fi;
5258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5259
5260 # Some flags need to be propagated to the compiler or linker for good
5261 # libtool support.
5262 case $host in
5263 *-*-irix6*)
5264   # Find out which ABI we are using.
5265   echo '#line 5265 "configure"' > conftest.$ac_ext
5266   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267   (eval $ac_compile) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }; then
5271     case `/usr/bin/file conftest.$ac_objext` in
5272     *32-bit*)
5273       LD="${LD-ld} -32"
5274       ;;
5275     *N32*)
5276       LD="${LD-ld} -n32"
5277       ;;
5278     *64-bit*)
5279       LD="${LD-ld} -64"
5280       ;;
5281     esac
5282   fi
5283   rm -rf conftest*
5284   ;;
5285
5286 *-*-sco3.2v5*)
5287   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5288   SAVE_CFLAGS="$CFLAGS"
5289   CFLAGS="$CFLAGS -belf"
5290   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5291 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5292 if test "${lt_cv_cc_needs_belf+set}" = set; then
5293   echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295
5296
5297      ac_ext=c
5298 ac_cpp='$CPP $CPPFLAGS'
5299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302
5303      cat >conftest.$ac_ext <<_ACEOF
5304 #line $LINENO "configure"
5305 /* confdefs.h.  */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h.  */
5310
5311 int
5312 main ()
5313 {
5314
5315   ;
5316   return 0;
5317 }
5318 _ACEOF
5319 rm -f conftest.$ac_objext conftest$ac_exeext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5321   (eval $ac_link) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } &&
5325          { ac_try='test -s conftest$ac_exeext'
5326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327   (eval $ac_try) 2>&5
5328   ac_status=$?
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); }; }; then
5331   lt_cv_cc_needs_belf=yes
5332 else
5333   echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 lt_cv_cc_needs_belf=no
5337 fi
5338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5339      ac_ext=c
5340 ac_cpp='$CPP $CPPFLAGS'
5341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344
5345 fi
5346 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5347 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5348   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5349     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5350     CFLAGS="$SAVE_CFLAGS"
5351   fi
5352   ;;
5353
5354
5355 esac
5356
5357 # Sed substitution that helps us do robust quoting.  It backslashifies
5358 # metacharacters that are still active within double-quoted strings.
5359 Xsed='sed -e s/^X//'
5360 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5361
5362 # Same as above, but do not quote variable references.
5363 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5364
5365 # Sed substitution to delay expansion of an escaped shell variable in a
5366 # double_quote_subst'ed string.
5367 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5368
5369 # Constants:
5370 rm="rm -f"
5371
5372 # Global variables:
5373 default_ofile=libtool
5374 can_build_shared=yes
5375
5376 # All known linkers require a `.a' archive for static linking (except M$VC,
5377 # which needs '.lib').
5378 libext=a
5379 ltmain="$ac_aux_dir/ltmain.sh"
5380 ofile="$default_ofile"
5381 with_gnu_ld="$lt_cv_prog_gnu_ld"
5382 need_locks="$enable_libtool_lock"
5383
5384 old_CC="$CC"
5385 old_CFLAGS="$CFLAGS"
5386
5387 # Set sane defaults for various variables
5388 test -z "$AR" && AR=ar
5389 test -z "$AR_FLAGS" && AR_FLAGS=cru
5390 test -z "$AS" && AS=as
5391 test -z "$CC" && CC=cc
5392 test -z "$DLLTOOL" && DLLTOOL=dlltool
5393 test -z "$LD" && LD=ld
5394 test -z "$LN_S" && LN_S="ln -s"
5395 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5396 test -z "$NM" && NM=nm
5397 test -z "$OBJDUMP" && OBJDUMP=objdump
5398 test -z "$RANLIB" && RANLIB=:
5399 test -z "$STRIP" && STRIP=:
5400 test -z "$ac_objext" && ac_objext=o
5401
5402 if test x"$host" != x"$build"; then
5403   ac_tool_prefix=${host_alias}-
5404 else
5405   ac_tool_prefix=
5406 fi
5407
5408 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5409 case $host_os in
5410 linux-gnu*) ;;
5411 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5412 esac
5413
5414 case $host_os in
5415 aix3*)
5416   # AIX sometimes has problems with the GCC collect2 program.  For some
5417   # reason, if we set the COLLECT_NAMES environment variable, the problems
5418   # vanish in a puff of smoke.
5419   if test "X${COLLECT_NAMES+set}" != Xset; then
5420     COLLECT_NAMES=
5421     export COLLECT_NAMES
5422   fi
5423   ;;
5424 esac
5425
5426 # Determine commands to create old-style static archives.
5427 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5428 old_postinstall_cmds='chmod 644 $oldlib'
5429 old_postuninstall_cmds=
5430
5431 if test -n "$RANLIB"; then
5432   case $host_os in
5433   openbsd*)
5434     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5435     ;;
5436   *)
5437     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5438     ;;
5439   esac
5440   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5441 fi
5442
5443 # Allow CC to be a program name with arguments.
5444 set dummy $CC
5445 compiler="$2"
5446
5447 echo "$as_me:$LINENO: checking for objdir" >&5
5448 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5449 rm -f .libs 2>/dev/null
5450 mkdir .libs 2>/dev/null
5451 if test -d .libs; then
5452   objdir=.libs
5453 else
5454   # MS-DOS does not allow filenames that begin with a dot.
5455   objdir=_libs
5456 fi
5457 rmdir .libs 2>/dev/null
5458 echo "$as_me:$LINENO: result: $objdir" >&5
5459 echo "${ECHO_T}$objdir" >&6
5460
5461
5462
5463 # Check whether --with-pic or --without-pic was given.
5464 if test "${with_pic+set}" = set; then
5465   withval="$with_pic"
5466   pic_mode="$withval"
5467 else
5468   pic_mode=default
5469 fi;
5470 test -z "$pic_mode" && pic_mode=default
5471
5472 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5473 # in isolation, and that seeing it set (from the cache) indicates that
5474 # the associated values are set (in the cache) correctly too.
5475 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5476 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5477 if test "${lt_cv_prog_cc_pic+set}" = set; then
5478   echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480    lt_cv_prog_cc_pic=
5481   lt_cv_prog_cc_shlib=
5482   lt_cv_prog_cc_wl=
5483   lt_cv_prog_cc_static=
5484   lt_cv_prog_cc_no_builtin=
5485   lt_cv_prog_cc_can_build_shared=$can_build_shared
5486
5487   if test "$GCC" = yes; then
5488     lt_cv_prog_cc_wl='-Wl,'
5489     lt_cv_prog_cc_static='-static'
5490
5491     case $host_os in
5492     aix*)
5493       # Below there is a dirty hack to force normal static linking with -ldl
5494       # The problem is because libdl dynamically linked with both libc and
5495       # libC (AIX C++ library), which obviously doesn't included in libraries
5496       # list by gcc. This cause undefined symbols with -static flags.
5497       # This hack allows C programs to be linked with "-static -ldl", but
5498       # not sure about C++ programs.
5499       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5500       ;;
5501     amigaos*)
5502       # FIXME: we need at least 68020 code to build shared libraries, but
5503       # adding the `-m68020' flag to GCC prevents building anything better,
5504       # like `-m68040'.
5505       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5506       ;;
5507     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5508       # PIC is the default for these OSes.
5509       ;;
5510     darwin* | rhapsody*)
5511       # PIC is the default on this platform
5512       # Common symbols not allowed in MH_DYLIB files
5513       lt_cv_prog_cc_pic='-fno-common'
5514       ;;
5515     cygwin* | mingw* | pw32* | os2*)
5516       # This hack is so that the source file can tell whether it is being
5517       # built for inclusion in a dll (and should export symbols for example).
5518       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5519       ;;
5520     sysv4*MP*)
5521       if test -d /usr/nec; then
5522          lt_cv_prog_cc_pic=-Kconform_pic
5523       fi
5524       ;;
5525     *)
5526       lt_cv_prog_cc_pic='-fPIC'
5527       ;;
5528     esac
5529   else
5530     # PORTME Check for PIC flags for the system compiler.
5531     case $host_os in
5532     aix3* | aix4* | aix5*)
5533       lt_cv_prog_cc_wl='-Wl,'
5534       # All AIX code is PIC.
5535       if test "$host_cpu" = ia64; then
5536         # AIX 5 now supports IA64 processor
5537         lt_cv_prog_cc_static='-Bstatic'
5538       else
5539         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5540       fi
5541       ;;
5542
5543     hpux9* | hpux10* | hpux11*)
5544       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5545       lt_cv_prog_cc_wl='-Wl,'
5546       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5547       lt_cv_prog_cc_pic='+Z'
5548       ;;
5549
5550     irix5* | irix6* | nonstopux*)
5551       lt_cv_prog_cc_wl='-Wl,'
5552       lt_cv_prog_cc_static='-non_shared'
5553       # PIC (with -KPIC) is the default.
5554       ;;
5555
5556     cygwin* | mingw* | pw32* | os2*)
5557       # This hack is so that the source file can tell whether it is being
5558       # built for inclusion in a dll (and should export symbols for example).
5559       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5560       ;;
5561
5562     newsos6)
5563       lt_cv_prog_cc_pic='-KPIC'
5564       lt_cv_prog_cc_static='-Bstatic'
5565       ;;
5566
5567     osf3* | osf4* | osf5*)
5568       # All OSF/1 code is PIC.
5569       lt_cv_prog_cc_wl='-Wl,'
5570       lt_cv_prog_cc_static='-non_shared'
5571       ;;
5572
5573     sco3.2v5*)
5574       lt_cv_prog_cc_pic='-Kpic'
5575       lt_cv_prog_cc_static='-dn'
5576       lt_cv_prog_cc_shlib='-belf'
5577       ;;
5578
5579     solaris*)
5580       lt_cv_prog_cc_pic='-KPIC'
5581       lt_cv_prog_cc_static='-Bstatic'
5582       lt_cv_prog_cc_wl='-Wl,'
5583       ;;
5584
5585     sunos4*)
5586       lt_cv_prog_cc_pic='-PIC'
5587       lt_cv_prog_cc_static='-Bstatic'
5588       lt_cv_prog_cc_wl='-Qoption ld '
5589       ;;
5590
5591     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5592       lt_cv_prog_cc_pic='-KPIC'
5593       lt_cv_prog_cc_static='-Bstatic'
5594       lt_cv_prog_cc_wl='-Wl,'
5595       ;;
5596
5597     uts4*)
5598       lt_cv_prog_cc_pic='-pic'
5599       lt_cv_prog_cc_static='-Bstatic'
5600       ;;
5601
5602     sysv4*MP*)
5603       if test -d /usr/nec ;then
5604         lt_cv_prog_cc_pic='-Kconform_pic'
5605         lt_cv_prog_cc_static='-Bstatic'
5606       fi
5607       ;;
5608
5609     *)
5610       lt_cv_prog_cc_can_build_shared=no
5611       ;;
5612     esac
5613   fi
5614
5615 fi
5616
5617 if test -z "$lt_cv_prog_cc_pic"; then
5618   echo "$as_me:$LINENO: result: none" >&5
5619 echo "${ECHO_T}none" >&6
5620 else
5621   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5622 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5623
5624   # Check to make sure the pic_flag actually works.
5625   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5626 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5627   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630       save_CFLAGS="$CFLAGS"
5631     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5632     cat >conftest.$ac_ext <<_ACEOF
5633 #line $LINENO "configure"
5634 /* confdefs.h.  */
5635 _ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h.  */
5639
5640 int
5641 main ()
5642 {
5643
5644   ;
5645   return 0;
5646 }
5647 _ACEOF
5648 rm -f conftest.$ac_objext
5649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5650   (eval $ac_compile) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); } &&
5654          { ac_try='test -s conftest.$ac_objext'
5655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656   (eval $ac_try) 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); }; }; then
5660         case $host_os in
5661       hpux9* | hpux10* | hpux11*)
5662         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5663         # they create non-PIC objects.  So, if there were any warnings, we
5664         # assume that PIC is not supported.
5665         if test -s conftest.err; then
5666           lt_cv_prog_cc_pic_works=no
5667         else
5668           lt_cv_prog_cc_pic_works=yes
5669         fi
5670         ;;
5671       *)
5672         lt_cv_prog_cc_pic_works=yes
5673         ;;
5674       esac
5675
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680       lt_cv_prog_cc_pic_works=no
5681
5682 fi
5683 rm -f conftest.$ac_objext conftest.$ac_ext
5684     CFLAGS="$save_CFLAGS"
5685
5686 fi
5687
5688
5689   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5690     lt_cv_prog_cc_pic=
5691     lt_cv_prog_cc_can_build_shared=no
5692   else
5693     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5694   fi
5695
5696   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5697 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5698 fi
5699
5700 # Check for any special shared library compilation flags.
5701 if test -n "$lt_cv_prog_cc_shlib"; then
5702   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5703 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5704   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5705   else
5706    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5707 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5708     lt_cv_prog_cc_can_build_shared=no
5709   fi
5710 fi
5711
5712 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5713 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5714 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717     lt_cv_prog_cc_static_works=no
5718   save_LDFLAGS="$LDFLAGS"
5719   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5720   cat >conftest.$ac_ext <<_ACEOF
5721 #line $LINENO "configure"
5722 /* confdefs.h.  */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h.  */
5727
5728 int
5729 main ()
5730 {
5731
5732   ;
5733   return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738   (eval $ac_link) 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); } &&
5742          { ac_try='test -s conftest$ac_exeext'
5743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744   (eval $ac_try) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; }; then
5748   lt_cv_prog_cc_static_works=yes
5749 else
5750   echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5752
5753 fi
5754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5755   LDFLAGS="$save_LDFLAGS"
5756
5757 fi
5758
5759
5760 # Belt *and* braces to stop my trousers falling down:
5761 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5762 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5763 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5764
5765 pic_flag="$lt_cv_prog_cc_pic"
5766 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5767 wl="$lt_cv_prog_cc_wl"
5768 link_static_flag="$lt_cv_prog_cc_static"
5769 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5770 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5771
5772
5773 # Check to see if options -o and -c are simultaneously supported by compiler
5774 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5775 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5776 if test "${lt_cv_compiler_c_o+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779
5780 $rm -r conftest 2>/dev/null
5781 mkdir conftest
5782 cd conftest
5783 echo "int some_variable = 0;" > conftest.$ac_ext
5784 mkdir out
5785 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5786 # that will create temporary files in the current directory regardless of
5787 # the output directory.  Thus, making CWD read-only will cause this test
5788 # to fail, enabling locking or at least warning the user not to do parallel
5789 # builds.
5790 chmod -w .
5791 save_CFLAGS="$CFLAGS"
5792 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5793 compiler_c_o=no
5794 if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5795   # The compiler can only warn and ignore the option if not recognized
5796   # So say no if there are warnings
5797   if test -s out/conftest.err; then
5798     lt_cv_compiler_c_o=no
5799   else
5800     lt_cv_compiler_c_o=yes
5801   fi
5802 else
5803   # Append any errors to the config.log.
5804   cat out/conftest.err 1>&5
5805   lt_cv_compiler_c_o=no
5806 fi
5807 CFLAGS="$save_CFLAGS"
5808 chmod u+w .
5809 $rm conftest* out/*
5810 rmdir out
5811 cd ..
5812 rmdir conftest
5813 $rm -r conftest 2>/dev/null
5814
5815 fi
5816
5817 compiler_c_o=$lt_cv_compiler_c_o
5818 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5819 echo "${ECHO_T}$compiler_c_o" >&6
5820
5821 if test x"$compiler_c_o" = x"yes"; then
5822   # Check to see if we can write to a .lo
5823   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5824 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5825   if test "${lt_cv_compiler_o_lo+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828
5829   lt_cv_compiler_o_lo=no
5830   save_CFLAGS="$CFLAGS"
5831   CFLAGS="$CFLAGS -c -o conftest.lo"
5832   save_objext="$ac_objext"
5833   ac_objext=lo
5834   cat >conftest.$ac_ext <<_ACEOF
5835 #line $LINENO "configure"
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841
5842 int
5843 main ()
5844 {
5845 int some_variable = 0;
5846   ;
5847   return 0;
5848 }
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852   (eval $ac_compile) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } &&
5856          { ac_try='test -s conftest.$ac_objext'
5857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858   (eval $ac_try) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; }; then
5862       # The compiler can only warn and ignore the option if not recognized
5863     # So say no if there are warnings
5864     if test -s conftest.err; then
5865       lt_cv_compiler_o_lo=no
5866     else
5867       lt_cv_compiler_o_lo=yes
5868     fi
5869
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 fi
5875 rm -f conftest.$ac_objext conftest.$ac_ext
5876   ac_objext="$save_objext"
5877   CFLAGS="$save_CFLAGS"
5878
5879 fi
5880
5881   compiler_o_lo=$lt_cv_compiler_o_lo
5882   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5883 echo "${ECHO_T}$compiler_o_lo" >&6
5884 else
5885   compiler_o_lo=no
5886 fi
5887
5888 # Check to see if we can do hard links to lock some files if needed
5889 hard_links="nottested"
5890 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5891   # do not overwrite the value of need_locks provided by the user
5892   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5893 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5894   hard_links=yes
5895   $rm conftest*
5896   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5897   touch conftest.a
5898   ln conftest.a conftest.b 2>&5 || hard_links=no
5899   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5900   echo "$as_me:$LINENO: result: $hard_links" >&5
5901 echo "${ECHO_T}$hard_links" >&6
5902   if test "$hard_links" = no; then
5903     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5904 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5905     need_locks=warn
5906   fi
5907 else
5908   need_locks=no
5909 fi
5910
5911 if test "$GCC" = yes; then
5912   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5913   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5914 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5915   echo "int some_variable = 0;" > conftest.$ac_ext
5916   save_CFLAGS="$CFLAGS"
5917   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5918   compiler_rtti_exceptions=no
5919   cat >conftest.$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5921 /* confdefs.h.  */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h.  */
5926
5927 int
5928 main ()
5929 {
5930 int some_variable = 0;
5931   ;
5932   return 0;
5933 }
5934 _ACEOF
5935 rm -f conftest.$ac_objext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937   (eval $ac_compile) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); } &&
5941          { ac_try='test -s conftest.$ac_objext'
5942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943   (eval $ac_try) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947       # The compiler can only warn and ignore the option if not recognized
5948     # So say no if there are warnings
5949     if test -s conftest.err; then
5950       compiler_rtti_exceptions=no
5951     else
5952       compiler_rtti_exceptions=yes
5953     fi
5954
5955 else
5956   echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 fi
5960 rm -f conftest.$ac_objext conftest.$ac_ext
5961   CFLAGS="$save_CFLAGS"
5962   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5963 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5964
5965   if test "$compiler_rtti_exceptions" = "yes"; then
5966     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5967   else
5968     no_builtin_flag=' -fno-builtin'
5969   fi
5970 fi
5971
5972 # See if the linker supports building shared libraries.
5973 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5974 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5975
5976 allow_undefined_flag=
5977 no_undefined_flag=
5978 need_lib_prefix=unknown
5979 need_version=unknown
5980 # when you set need_version to no, make sure it does not cause -set_version
5981 # flags to be left without arguments
5982 archive_cmds=
5983 archive_expsym_cmds=
5984 old_archive_from_new_cmds=
5985 old_archive_from_expsyms_cmds=
5986 export_dynamic_flag_spec=
5987 whole_archive_flag_spec=
5988 thread_safe_flag_spec=
5989 hardcode_into_libs=no
5990 hardcode_libdir_flag_spec=
5991 hardcode_libdir_separator=
5992 hardcode_direct=no
5993 hardcode_minus_L=no
5994 hardcode_shlibpath_var=unsupported
5995 runpath_var=
5996 link_all_deplibs=unknown
5997 always_export_symbols=no
5998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5999 # include_expsyms should be a list of space-separated symbols to be *always*
6000 # included in the symbol list
6001 include_expsyms=
6002 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6004 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6005 # as well as any symbol that contains `d'.
6006 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6008 # platforms (ab)use it in PIC code, but their linkers get confused if
6009 # the symbol is explicitly referenced.  Since portable code cannot
6010 # rely on this symbol name, it's probably fine to never include it in
6011 # preloaded symbol tables.
6012 extract_expsyms_cmds=
6013
6014 case $host_os in
6015 cygwin* | mingw* | pw32*)
6016   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6017   # When not using gcc, we currently assume that we are using
6018   # Microsoft Visual C++.
6019   if test "$GCC" != yes; then
6020     with_gnu_ld=no
6021   fi
6022   ;;
6023 openbsd*)
6024   with_gnu_ld=no
6025   ;;
6026 esac
6027
6028 ld_shlibs=yes
6029 if test "$with_gnu_ld" = yes; then
6030   # If archive_cmds runs LD, not CC, wlarc should be empty
6031   wlarc='${wl}'
6032
6033   # See if GNU ld supports shared libraries.
6034   case $host_os in
6035   aix3* | aix4* | aix5*)
6036     # On AIX, the GNU linker is very broken
6037     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6038     ld_shlibs=no
6039     cat <<EOF 1>&2
6040
6041 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6042 *** to be unable to reliably create shared libraries on AIX.
6043 *** Therefore, libtool is disabling shared libraries support.  If you
6044 *** really care for shared libraries, you may want to modify your PATH
6045 *** so that a non-GNU linker is found, and then restart.
6046
6047 EOF
6048     ;;
6049
6050   amigaos*)
6051     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)'
6052     hardcode_libdir_flag_spec='-L$libdir'
6053     hardcode_minus_L=yes
6054
6055     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6056     # that the semantics of dynamic libraries on AmigaOS, at least up
6057     # to version 4, is to share data among multiple programs linked
6058     # with the same dynamic library.  Since this doesn't match the
6059     # behavior of shared libraries on other platforms, we can use
6060     # them.
6061     ld_shlibs=no
6062     ;;
6063
6064   beos*)
6065     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6066       allow_undefined_flag=unsupported
6067       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6068       # support --undefined.  This deserves some investigation.  FIXME
6069       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6070     else
6071       ld_shlibs=no
6072     fi
6073     ;;
6074
6075   cygwin* | mingw* | pw32*)
6076     # hardcode_libdir_flag_spec is actually meaningless, as there is
6077     # no search path for DLLs.
6078     hardcode_libdir_flag_spec='-L$libdir'
6079     allow_undefined_flag=unsupported
6080     always_export_symbols=yes
6081
6082     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6083       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6084       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6085       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6086       else $CC -o impgen impgen.c ; fi)~
6087       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6088
6089     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6090
6091     # cygwin and mingw dlls have different entry points and sets of symbols
6092     # to exclude.
6093     # FIXME: what about values for MSVC?
6094     dll_entry=__cygwin_dll_entry@12
6095     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6096     case $host_os in
6097     mingw*)
6098       # mingw values
6099       dll_entry=_DllMainCRTStartup@12
6100       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6101       ;;
6102     esac
6103
6104     # mingw and cygwin differ, and it's simplest to just exclude the union
6105     # of the two symbol sets.
6106     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6107
6108     # recent cygwin and mingw systems supply a stub DllMain which the user
6109     # can override, but on older systems we have to supply one (in ltdll.c)
6110     if test "x$lt_cv_need_dllmain" = "xyes"; then
6111       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6112       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6113         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6114     else
6115       ltdll_obj=
6116       ltdll_cmds=
6117     fi
6118
6119     # Extract the symbol export list from an `--export-all' def file,
6120     # then regenerate the def file from the symbol export list, so that
6121     # the compiled dll only exports the symbol export list.
6122     # Be careful not to strip the DATA tag left be newer dlltools.
6123     export_symbols_cmds="$ltdll_cmds"'
6124       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6125       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6126
6127     # If the export-symbols file already is a .def file (1st line
6128     # is EXPORTS), use it as is.
6129     # If DATA tags from a recent dlltool are present, honour them!
6130     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6131         cp $export_symbols $output_objdir/$soname-def;
6132       else
6133         echo EXPORTS > $output_objdir/$soname-def;
6134         _lt_hint=1;
6135         cat $export_symbols | while read symbol; do
6136          set dummy \$symbol;
6137          case \$# in
6138            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6139            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6140            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6141          esac;
6142          _lt_hint=`expr 1 + \$_lt_hint`;
6143         done;
6144       fi~
6145       '"$ltdll_cmds"'
6146       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6147       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6148       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6149       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6150       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6151     ;;
6152
6153   netbsd*)
6154     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6155       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6156       wlarc=
6157     else
6158       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6159       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6160     fi
6161     ;;
6162
6163   solaris* | sysv5*)
6164     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6165       ld_shlibs=no
6166       cat <<EOF 1>&2
6167
6168 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6169 *** create shared libraries on Solaris systems.  Therefore, libtool
6170 *** is disabling shared libraries support.  We urge you to upgrade GNU
6171 *** binutils to release 2.9.1 or newer.  Another option is to modify
6172 *** your PATH or compiler configuration so that the native linker is
6173 *** used, and then restart.
6174
6175 EOF
6176     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6177       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6178       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6179     else
6180       ld_shlibs=no
6181     fi
6182     ;;
6183
6184   sunos4*)
6185     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6186     wlarc=
6187     hardcode_direct=yes
6188     hardcode_shlibpath_var=no
6189     ;;
6190
6191   *)
6192     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6193       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6194       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6195     else
6196       ld_shlibs=no
6197     fi
6198     ;;
6199   esac
6200
6201   if test "$ld_shlibs" = yes; then
6202     runpath_var=LD_RUN_PATH
6203     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6204     export_dynamic_flag_spec='${wl}--export-dynamic'
6205     case $host_os in
6206     cygwin* | mingw* | pw32*)
6207       # dlltool doesn't understand --whole-archive et. al.
6208       whole_archive_flag_spec=
6209       ;;
6210     *)
6211       # ancient GNU ld didn't support --whole-archive et. al.
6212       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6213         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6214       else
6215         whole_archive_flag_spec=
6216       fi
6217       ;;
6218     esac
6219   fi
6220 else
6221   # PORTME fill in a description of your system's linker (not GNU ld)
6222   case $host_os in
6223   aix3*)
6224     allow_undefined_flag=unsupported
6225     always_export_symbols=yes
6226     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'
6227     # Note: this linker hardcodes the directories in LIBPATH if there
6228     # are no directories specified by -L.
6229     hardcode_minus_L=yes
6230     if test "$GCC" = yes && test -z "$link_static_flag"; then
6231       # Neither direct hardcoding nor static linking is supported with a
6232       # broken collect2.
6233       hardcode_direct=unsupported
6234     fi
6235     ;;
6236
6237   aix4* | aix5*)
6238     if test "$host_cpu" = ia64; then
6239       # On IA64, the linker does run time linking by default, so we don't
6240       # have to do anything special.
6241       aix_use_runtimelinking=no
6242       exp_sym_flag='-Bexport'
6243       no_entry_flag=""
6244     else
6245       aix_use_runtimelinking=no
6246
6247       # Test if we are trying to use run time linking or normal
6248       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6249       # need to do runtime linking.
6250       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6251         for ld_flag in $LDFLAGS; do
6252           case $ld_flag in
6253           *-brtl*)
6254             aix_use_runtimelinking=yes
6255             break
6256           ;;
6257           esac
6258         done
6259       esac
6260
6261       exp_sym_flag='-bexport'
6262       no_entry_flag='-bnoentry'
6263     fi
6264
6265     # When large executables or shared objects are built, AIX ld can
6266     # have problems creating the table of contents.  If linking a library
6267     # or program results in "error TOC overflow" add -mminimal-toc to
6268     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6269     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6270
6271     hardcode_direct=yes
6272     archive_cmds=''
6273     hardcode_libdir_separator=':'
6274     if test "$GCC" = yes; then
6275       case $host_os in aix4.[012]|aix4.[012].*)
6276         collect2name=`${CC} -print-prog-name=collect2`
6277         if test -f "$collect2name" && \
6278           strings "$collect2name" | grep resolve_lib_name >/dev/null
6279         then
6280           # We have reworked collect2
6281           hardcode_direct=yes
6282         else
6283           # We have old collect2
6284           hardcode_direct=unsupported
6285           # It fails to find uninstalled libraries when the uninstalled
6286           # path is not listed in the libpath.  Setting hardcode_minus_L
6287           # to unsupported forces relinking
6288           hardcode_minus_L=yes
6289           hardcode_libdir_flag_spec='-L$libdir'
6290           hardcode_libdir_separator=
6291         fi
6292       esac
6293
6294       shared_flag='-shared'
6295     else
6296       # not using gcc
6297       if test "$host_cpu" = ia64; then
6298         shared_flag='${wl}-G'
6299       else
6300         if test "$aix_use_runtimelinking" = yes; then
6301           shared_flag='${wl}-G'
6302         else
6303           shared_flag='${wl}-bM:SRE'
6304         fi
6305       fi
6306     fi
6307
6308     # It seems that -bexpall can do strange things, so it is better to
6309     # generate a list of symbols to export.
6310     always_export_symbols=yes
6311     if test "$aix_use_runtimelinking" = yes; then
6312       # Warning - without using the other runtime loading flags (-brtl),
6313       # -berok will link without error, but may produce a broken library.
6314       allow_undefined_flag='-berok'
6315       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6316       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"
6317     else
6318       if test "$host_cpu" = ia64; then
6319         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6320         allow_undefined_flag="-z nodefs"
6321         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6322       else
6323         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6324         # Warning - without using the other run time loading flags,
6325         # -berok will link without error, but may produce a broken library.
6326         allow_undefined_flag='${wl}-berok'
6327         # This is a bit strange, but is similar to how AIX traditionally builds
6328         # it's shared libraries.
6329         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6330       fi
6331     fi
6332     ;;
6333
6334   amigaos*)
6335     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)'
6336     hardcode_libdir_flag_spec='-L$libdir'
6337     hardcode_minus_L=yes
6338     # see comment about different semantics on the GNU ld section
6339     ld_shlibs=no
6340     ;;
6341
6342   cygwin* | mingw* | pw32*)
6343     # When not using gcc, we currently assume that we are using
6344     # Microsoft Visual C++.
6345     # hardcode_libdir_flag_spec is actually meaningless, as there is
6346     # no search path for DLLs.
6347     hardcode_libdir_flag_spec=' '
6348     allow_undefined_flag=unsupported
6349     # Tell ltmain to make .lib files, not .a files.
6350     libext=lib
6351     # FIXME: Setting linknames here is a bad hack.
6352     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6353     # The linker will automatically build a .lib file if we build a DLL.
6354     old_archive_from_new_cmds='true'
6355     # FIXME: Should let the user specify the lib program.
6356     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6357     fix_srcfile_path='`cygpath -w "$srcfile"`'
6358     ;;
6359
6360   darwin* | rhapsody*)
6361     case "$host_os" in
6362     rhapsody* | darwin1.[012])
6363       allow_undefined_flag='-undefined suppress'
6364       ;;
6365     *) # Darwin 1.3 on
6366       allow_undefined_flag='-flat_namespace -undefined suppress'
6367       ;;
6368     esac
6369     # FIXME: Relying on posixy $() will cause problems for
6370     #        cross-compilation, but unfortunately the echo tests do not
6371     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6372     #        `"' quotes if we put them in here... so don't!
6373     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6374     # We need to add '_' to the symbols in $export_symbols first
6375     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6376     hardcode_direct=yes
6377     hardcode_shlibpath_var=no
6378     whole_archive_flag_spec='-all_load $convenience'
6379     ;;
6380
6381   freebsd1*)
6382     ld_shlibs=no
6383     ;;
6384
6385   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6386   # support.  Future versions do this automatically, but an explicit c++rt0.o
6387   # does not break anything, and helps significantly (at the cost of a little
6388   # extra space).
6389   freebsd2.2*)
6390     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6391     hardcode_libdir_flag_spec='-R$libdir'
6392     hardcode_direct=yes
6393     hardcode_shlibpath_var=no
6394     ;;
6395
6396   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6397   freebsd2*)
6398     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6399     hardcode_direct=yes
6400     hardcode_minus_L=yes
6401     hardcode_shlibpath_var=no
6402     ;;
6403
6404   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6405   freebsd*)
6406     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6407     hardcode_libdir_flag_spec='-R$libdir'
6408     hardcode_direct=yes
6409     hardcode_shlibpath_var=no
6410     ;;
6411
6412   hpux9* | hpux10* | hpux11*)
6413     case $host_os in
6414     hpux9*) 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' ;;
6415     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6416     esac
6417     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6418     hardcode_libdir_separator=:
6419     hardcode_direct=yes
6420     hardcode_minus_L=yes # Not in the search PATH, but as the default
6421                          # location of the library.
6422     export_dynamic_flag_spec='${wl}-E'
6423     ;;
6424
6425   irix5* | irix6* | nonstopux*)
6426     if test "$GCC" = yes; then
6427       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'
6428       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6429     else
6430       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'
6431       hardcode_libdir_flag_spec='-rpath $libdir'
6432     fi
6433     hardcode_libdir_separator=:
6434     link_all_deplibs=yes
6435     ;;
6436
6437   netbsd*)
6438     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6439       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6440     else
6441       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6442     fi
6443     hardcode_libdir_flag_spec='-R$libdir'
6444     hardcode_direct=yes
6445     hardcode_shlibpath_var=no
6446     ;;
6447
6448   newsos6)
6449     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6450     hardcode_direct=yes
6451     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6452     hardcode_libdir_separator=:
6453     hardcode_shlibpath_var=no
6454     ;;
6455
6456   openbsd*)
6457     hardcode_direct=yes
6458     hardcode_shlibpath_var=no
6459     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6460       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6461       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6462       export_dynamic_flag_spec='${wl}-E'
6463     else
6464       case "$host_os" in
6465       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6466         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6467         hardcode_libdir_flag_spec='-R$libdir'
6468         ;;
6469       *)
6470         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6471         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6472         ;;
6473       esac
6474     fi
6475     ;;
6476
6477   os2*)
6478     hardcode_libdir_flag_spec='-L$libdir'
6479     hardcode_minus_L=yes
6480     allow_undefined_flag=unsupported
6481     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'
6482     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6483     ;;
6484
6485   osf3*)
6486     if test "$GCC" = yes; then
6487       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6488       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'
6489     else
6490       allow_undefined_flag=' -expect_unresolved \*'
6491       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'
6492     fi
6493     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6494     hardcode_libdir_separator=:
6495     ;;
6496
6497   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6498     if test "$GCC" = yes; then
6499       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6500       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'
6501       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6502     else
6503       allow_undefined_flag=' -expect_unresolved \*'
6504       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'
6505       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6506       $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'
6507
6508       #Both c and cxx compiler support -rpath directly
6509       hardcode_libdir_flag_spec='-rpath $libdir'
6510     fi
6511     hardcode_libdir_separator=:
6512     ;;
6513
6514   sco3.2v5*)
6515     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6516     hardcode_shlibpath_var=no
6517     runpath_var=LD_RUN_PATH
6518     hardcode_runpath_var=yes
6519     export_dynamic_flag_spec='${wl}-Bexport'
6520     ;;
6521
6522   solaris*)
6523     # gcc --version < 3.0 without binutils cannot create self contained
6524     # shared libraries reliably, requiring libgcc.a to resolve some of
6525     # the object symbols generated in some cases.  Libraries that use
6526     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6527     # a copy of libgcc.a into every shared library to guarantee resolving
6528     # such symbols causes other problems:  According to Tim Van Holder
6529     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6530     # (to the application) exception stack for one thing.
6531     no_undefined_flag=' -z defs'
6532     if test "$GCC" = yes; then
6533       case `$CC --version 2>/dev/null` in
6534       [12].*)
6535         cat <<EOF 1>&2
6536
6537 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6538 *** create self contained shared libraries on Solaris systems, without
6539 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6540 *** -no-undefined support, which will at least allow you to build shared
6541 *** libraries.  However, you may find that when you link such libraries
6542 *** into an application without using GCC, you have to manually add
6543 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6544 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6545 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6546
6547 EOF
6548         no_undefined_flag=
6549         ;;
6550       esac
6551     fi
6552     # $CC -shared without GNU ld will not create a library from C++
6553     # object files and a static libstdc++, better avoid it by now
6554     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6555     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6556                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6557     hardcode_libdir_flag_spec='-R$libdir'
6558     hardcode_shlibpath_var=no
6559     case $host_os in
6560     solaris2.[0-5] | solaris2.[0-5].*) ;;
6561     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6562       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6563     esac
6564     link_all_deplibs=yes
6565     ;;
6566
6567   sunos4*)
6568     if test "x$host_vendor" = xsequent; then
6569       # Use $CC to link under sequent, because it throws in some extra .o
6570       # files that make .init and .fini sections work.
6571       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6572     else
6573       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6574     fi
6575     hardcode_libdir_flag_spec='-L$libdir'
6576     hardcode_direct=yes
6577     hardcode_minus_L=yes
6578     hardcode_shlibpath_var=no
6579     ;;
6580
6581   sysv4)
6582     case $host_vendor in
6583       sni)
6584         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6585         hardcode_direct=yes # is this really true???
6586         ;;
6587       siemens)
6588         ## LD is ld it makes a PLAMLIB
6589         ## CC just makes a GrossModule.
6590         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6591         reload_cmds='$CC -r -o $output$reload_objs'
6592         hardcode_direct=no
6593         ;;
6594       motorola)
6595         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6596         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6597         ;;
6598     esac
6599     runpath_var='LD_RUN_PATH'
6600     hardcode_shlibpath_var=no
6601     ;;
6602
6603   sysv4.3*)
6604     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6605     hardcode_shlibpath_var=no
6606     export_dynamic_flag_spec='-Bexport'
6607     ;;
6608
6609   sysv5*)
6610     no_undefined_flag=' -z text'
6611     # $CC -shared without GNU ld will not create a library from C++
6612     # object files and a static libstdc++, better avoid it by now
6613     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6614     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6615                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6616     hardcode_libdir_flag_spec=
6617     hardcode_shlibpath_var=no
6618     runpath_var='LD_RUN_PATH'
6619     ;;
6620
6621   uts4*)
6622     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6623     hardcode_libdir_flag_spec='-L$libdir'
6624     hardcode_shlibpath_var=no
6625     ;;
6626
6627   dgux*)
6628     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6629     hardcode_libdir_flag_spec='-L$libdir'
6630     hardcode_shlibpath_var=no
6631     ;;
6632
6633   sysv4*MP*)
6634     if test -d /usr/nec; then
6635       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6636       hardcode_shlibpath_var=no
6637       runpath_var=LD_RUN_PATH
6638       hardcode_runpath_var=yes
6639       ld_shlibs=yes
6640     fi
6641     ;;
6642
6643   sysv4.2uw2*)
6644     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6645     hardcode_direct=yes
6646     hardcode_minus_L=no
6647     hardcode_shlibpath_var=no
6648     hardcode_runpath_var=yes
6649     runpath_var=LD_RUN_PATH
6650     ;;
6651
6652   sysv5uw7* | unixware7*)
6653     no_undefined_flag='${wl}-z ${wl}text'
6654     if test "$GCC" = yes; then
6655       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6656     else
6657       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6658     fi
6659     runpath_var='LD_RUN_PATH'
6660     hardcode_shlibpath_var=no
6661     ;;
6662
6663   *)
6664     ld_shlibs=no
6665     ;;
6666   esac
6667 fi
6668 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6669 echo "${ECHO_T}$ld_shlibs" >&6
6670 test "$ld_shlibs" = no && can_build_shared=no
6671
6672 # Check hardcoding attributes.
6673 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6675 hardcode_action=
6676 if test -n "$hardcode_libdir_flag_spec" || \
6677    test -n "$runpath_var"; then
6678
6679   # We can hardcode non-existant directories.
6680   if test "$hardcode_direct" != no &&
6681      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6682      # have to relink, otherwise we might link with an installed library
6683      # when we should be linking with a yet-to-be-installed one
6684      ## test "$hardcode_shlibpath_var" != no &&
6685      test "$hardcode_minus_L" != no; then
6686     # Linking always hardcodes the temporary library directory.
6687     hardcode_action=relink
6688   else
6689     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6690     hardcode_action=immediate
6691   fi
6692 else
6693   # We cannot hardcode anything, or else we can only hardcode existing
6694   # directories.
6695   hardcode_action=unsupported
6696 fi
6697 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6698 echo "${ECHO_T}$hardcode_action" >&6
6699
6700 striplib=
6701 old_striplib=
6702 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6703 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6704 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6705   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6706   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6707   echo "$as_me:$LINENO: result: yes" >&5
6708 echo "${ECHO_T}yes" >&6
6709 else
6710   echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6
6712 fi
6713
6714 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6715 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6716
6717 # PORTME Fill in your ld.so characteristics
6718 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6719 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6720 library_names_spec=
6721 libname_spec='lib$name'
6722 soname_spec=
6723 postinstall_cmds=
6724 postuninstall_cmds=
6725 finish_cmds=
6726 finish_eval=
6727 shlibpath_var=
6728 shlibpath_overrides_runpath=unknown
6729 version_type=none
6730 dynamic_linker="$host_os ld.so"
6731 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6733
6734 case $host_os in
6735 aix3*)
6736   version_type=linux
6737   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6738   shlibpath_var=LIBPATH
6739
6740   # AIX has no versioning support, so we append a major version to the name.
6741   soname_spec='${libname}${release}.so$major'
6742   ;;
6743
6744 aix4* | aix5*)
6745   version_type=linux
6746   need_lib_prefix=no
6747   need_version=no
6748   hardcode_into_libs=yes
6749   if test "$host_cpu" = ia64; then
6750     # AIX 5 supports IA64
6751     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6752     shlibpath_var=LD_LIBRARY_PATH
6753   else
6754     # With GCC up to 2.95.x, collect2 would create an import file
6755     # for dependence libraries.  The import file would start with
6756     # the line `#! .'.  This would cause the generated library to
6757     # depend on `.', always an invalid library.  This was fixed in
6758     # development snapshots of GCC prior to 3.0.
6759     case $host_os in
6760       aix4 | aix4.[01] | aix4.[01].*)
6761         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6762              echo ' yes '
6763              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6764           :
6765         else
6766           can_build_shared=no
6767         fi
6768         ;;
6769     esac
6770     # AIX (on Power*) has no versioning support, so currently we can
6771     # not hardcode correct soname into executable. Probably we can
6772     # add versioning support to collect2, so additional links can
6773     # be useful in future.
6774     if test "$aix_use_runtimelinking" = yes; then
6775       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6776       # instead of lib<name>.a to let people know that these are not
6777       # typical AIX shared libraries.
6778       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6779     else
6780       # We preserve .a as extension for shared libraries through AIX4.2
6781       # and later when we are not doing run time linking.
6782       library_names_spec='${libname}${release}.a $libname.a'
6783       soname_spec='${libname}${release}.so$major'
6784     fi
6785     shlibpath_var=LIBPATH
6786   fi
6787   hardcode_into_libs=yes
6788   ;;
6789
6790 amigaos*)
6791   library_names_spec='$libname.ixlibrary $libname.a'
6792   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6793   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'
6794   ;;
6795
6796 beos*)
6797   library_names_spec='${libname}.so'
6798   dynamic_linker="$host_os ld.so"
6799   shlibpath_var=LIBRARY_PATH
6800   ;;
6801
6802 bsdi4*)
6803   version_type=linux
6804   need_version=no
6805   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6806   soname_spec='${libname}${release}.so$major'
6807   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6808   shlibpath_var=LD_LIBRARY_PATH
6809   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6810   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6811   export_dynamic_flag_spec=-rdynamic
6812   # the default ld.so.conf also contains /usr/contrib/lib and
6813   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6814   # libtool to hard-code these into programs
6815   ;;
6816
6817 cygwin* | mingw* | pw32*)
6818   version_type=windows
6819   need_version=no
6820   need_lib_prefix=no
6821   case $GCC,$host_os in
6822   yes,cygwin*)
6823     library_names_spec='$libname.dll.a'
6824     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6825     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6826       dldir=$destdir/`dirname \$dlpath`~
6827       test -d \$dldir || mkdir -p \$dldir~
6828       $install_prog .libs/$dlname \$dldir/$dlname'
6829     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6830       dlpath=$dir/\$dldll~
6831        $rm \$dlpath'
6832     ;;
6833   yes,mingw*)
6834     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6835     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6836     ;;
6837   yes,pw32*)
6838     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6839     ;;
6840   *)
6841     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6842     ;;
6843   esac
6844   dynamic_linker='Win32 ld.exe'
6845   # FIXME: first we should search . and the directory the executable is in
6846   shlibpath_var=PATH
6847   ;;
6848
6849 darwin* | rhapsody*)
6850   dynamic_linker="$host_os dyld"
6851   version_type=darwin
6852   need_lib_prefix=no
6853   need_version=no
6854   # FIXME: Relying on posixy $() will cause problems for
6855   #        cross-compilation, but unfortunately the echo tests do not
6856   #        yet detect zsh echo's removal of \ escapes.
6857   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6858   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6859   shlibpath_overrides_runpath=yes
6860   shlibpath_var=DYLD_LIBRARY_PATH
6861   ;;
6862
6863 freebsd1*)
6864   dynamic_linker=no
6865   ;;
6866
6867 freebsd*)
6868   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6869   version_type=freebsd-$objformat
6870   case $version_type in
6871     freebsd-elf*)
6872       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6873       need_version=no
6874       need_lib_prefix=no
6875       ;;
6876     freebsd-*)
6877       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6878       need_version=yes
6879       ;;
6880   esac
6881   shlibpath_var=LD_LIBRARY_PATH
6882   case $host_os in
6883   freebsd2*)
6884     shlibpath_overrides_runpath=yes
6885     ;;
6886   *)
6887     shlibpath_overrides_runpath=no
6888     hardcode_into_libs=yes
6889     ;;
6890   esac
6891   ;;
6892
6893 gnu*)
6894   version_type=linux
6895   need_lib_prefix=no
6896   need_version=no
6897   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6898   soname_spec='${libname}${release}.so$major'
6899   shlibpath_var=LD_LIBRARY_PATH
6900   hardcode_into_libs=yes
6901   ;;
6902
6903 hpux9* | hpux10* | hpux11*)
6904   # Give a soname corresponding to the major version so that dld.sl refuses to
6905   # link against other versions.
6906   dynamic_linker="$host_os dld.sl"
6907   version_type=sunos
6908   need_lib_prefix=no
6909   need_version=no
6910   shlibpath_var=SHLIB_PATH
6911   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6912   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6913   soname_spec='${libname}${release}.sl$major'
6914   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6915   postinstall_cmds='chmod 555 $lib'
6916   ;;
6917
6918 irix5* | irix6* | nonstopux*)
6919   case $host_os in
6920     nonstopux*) version_type=nonstopux ;;
6921     *)          version_type=irix ;;
6922   esac
6923   need_lib_prefix=no
6924   need_version=no
6925   soname_spec='${libname}${release}.so$major'
6926   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6927   case $host_os in
6928   irix5* | nonstopux*)
6929     libsuff= shlibsuff=
6930     ;;
6931   *)
6932     case $LD in # libtool.m4 will add one of these switches to LD
6933     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6934     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6935     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6936     *) libsuff= shlibsuff= libmagic=never-match;;
6937     esac
6938     ;;
6939   esac
6940   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6941   shlibpath_overrides_runpath=no
6942   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6943   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6944   ;;
6945
6946 # No shared lib support for Linux oldld, aout, or coff.
6947 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6948   dynamic_linker=no
6949   ;;
6950
6951 # This must be Linux ELF.
6952 linux-gnu*)
6953   version_type=linux
6954   need_lib_prefix=no
6955   need_version=no
6956   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6957   soname_spec='${libname}${release}.so$major'
6958   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6959   shlibpath_var=LD_LIBRARY_PATH
6960   shlibpath_overrides_runpath=no
6961   # This implies no fast_install, which is unacceptable.
6962   # Some rework will be needed to allow for fast_install
6963   # before this can be enabled.
6964   hardcode_into_libs=yes
6965
6966   # We used to test for /lib/ld.so.1 and disable shared libraries on
6967   # powerpc, because MkLinux only supported shared libraries with the
6968   # GNU dynamic linker.  Since this was broken with cross compilers,
6969   # most powerpc-linux boxes support dynamic linking these days and
6970   # people can always --disable-shared, the test was removed, and we
6971   # assume the GNU/Linux dynamic linker is in use.
6972   dynamic_linker='GNU/Linux ld.so'
6973
6974   # Find out which ABI we are using (multilib Linux x86_64 hack).
6975   libsuff=
6976   case "$host_cpu" in
6977   x86_64*|s390x*)
6978     echo '#line 6978 "configure"' > conftest.$ac_ext
6979     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980   (eval $ac_compile) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; then
6984       case `/usr/bin/file conftest.$ac_objext` in
6985       *64-bit*)
6986         libsuff=64
6987         ;;
6988       esac
6989     fi
6990     rm -rf conftest*
6991     ;;
6992   *)
6993     ;;
6994   esac
6995   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6996   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6997   ;;
6998
6999 netbsd*)
7000   version_type=sunos
7001   need_lib_prefix=no
7002   need_version=no
7003   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7004     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7005     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7006     dynamic_linker='NetBSD (a.out) ld.so'
7007   else
7008     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7009     soname_spec='${libname}${release}.so$major'
7010     dynamic_linker='NetBSD ld.elf_so'
7011   fi
7012   shlibpath_var=LD_LIBRARY_PATH
7013   shlibpath_overrides_runpath=yes
7014   hardcode_into_libs=yes
7015   ;;
7016
7017 newsos6)
7018   version_type=linux
7019   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7020   shlibpath_var=LD_LIBRARY_PATH
7021   shlibpath_overrides_runpath=yes
7022   ;;
7023
7024 openbsd*)
7025   version_type=sunos
7026   need_lib_prefix=no
7027   need_version=no
7028   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7029     case "$host_os" in
7030     openbsd2.[89] | openbsd2.[89].*)
7031       shlibpath_overrides_runpath=no
7032       ;;
7033     *)
7034       shlibpath_overrides_runpath=yes
7035       ;;
7036     esac
7037   else
7038     shlibpath_overrides_runpath=yes
7039   fi
7040   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7041   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7042   shlibpath_var=LD_LIBRARY_PATH
7043   ;;
7044
7045 os2*)
7046   libname_spec='$name'
7047   need_lib_prefix=no
7048   library_names_spec='$libname.dll $libname.a'
7049   dynamic_linker='OS/2 ld.exe'
7050   shlibpath_var=LIBPATH
7051   ;;
7052
7053 osf3* | osf4* | osf5*)
7054   version_type=osf
7055   need_version=no
7056   soname_spec='${libname}${release}.so$major'
7057   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7058   shlibpath_var=LD_LIBRARY_PATH
7059   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7060   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7061   hardcode_into_libs=yes
7062   ;;
7063
7064 sco3.2v5*)
7065   version_type=osf
7066   soname_spec='${libname}${release}.so$major'
7067   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7068   shlibpath_var=LD_LIBRARY_PATH
7069   ;;
7070
7071 solaris*)
7072   version_type=linux
7073   need_lib_prefix=no
7074   need_version=no
7075   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7076   soname_spec='${libname}${release}.so$major'
7077   shlibpath_var=LD_LIBRARY_PATH
7078   shlibpath_overrides_runpath=yes
7079   hardcode_into_libs=yes
7080   # ldd complains unless libraries are executable
7081   postinstall_cmds='chmod +x $lib'
7082   ;;
7083
7084 sunos4*)
7085   version_type=sunos
7086   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7087   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7088   shlibpath_var=LD_LIBRARY_PATH
7089   shlibpath_overrides_runpath=yes
7090   if test "$with_gnu_ld" = yes; then
7091     need_lib_prefix=no
7092   fi
7093   need_version=yes
7094   ;;
7095
7096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7097   version_type=linux
7098   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7099   soname_spec='${libname}${release}.so$major'
7100   shlibpath_var=LD_LIBRARY_PATH
7101   case $host_vendor in
7102     sni)
7103       shlibpath_overrides_runpath=no
7104       need_lib_prefix=no
7105       export_dynamic_flag_spec='${wl}-Blargedynsym'
7106       runpath_var=LD_RUN_PATH
7107       ;;
7108     siemens)
7109       need_lib_prefix=no
7110       ;;
7111     motorola)
7112       need_lib_prefix=no
7113       need_version=no
7114       shlibpath_overrides_runpath=no
7115       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7116       ;;
7117   esac
7118   ;;
7119
7120 uts4*)
7121   version_type=linux
7122   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7123   soname_spec='${libname}${release}.so$major'
7124   shlibpath_var=LD_LIBRARY_PATH
7125   ;;
7126
7127 dgux*)
7128   version_type=linux
7129   need_lib_prefix=no
7130   need_version=no
7131   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7132   soname_spec='${libname}${release}.so$major'
7133   shlibpath_var=LD_LIBRARY_PATH
7134   ;;
7135
7136 sysv4*MP*)
7137   if test -d /usr/nec ;then
7138     version_type=linux
7139     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7140     soname_spec='$libname.so.$major'
7141     shlibpath_var=LD_LIBRARY_PATH
7142   fi
7143   ;;
7144
7145 *)
7146   dynamic_linker=no
7147   ;;
7148 esac
7149 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7150 echo "${ECHO_T}$dynamic_linker" >&6
7151 test "$dynamic_linker" = no && can_build_shared=no
7152
7153 # Report the final consequences.
7154 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7155 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7156 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7157 echo "${ECHO_T}$can_build_shared" >&6
7158
7159 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7160 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7161 test "$can_build_shared" = "no" && enable_shared=no
7162
7163 # On AIX, shared libraries and static libraries use the same namespace, and
7164 # are all built from PIC.
7165 case "$host_os" in
7166 aix3*)
7167   test "$enable_shared" = yes && enable_static=no
7168   if test -n "$RANLIB"; then
7169     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7170     postinstall_cmds='$RANLIB $lib'
7171   fi
7172   ;;
7173
7174 aix4*)
7175   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7176     test "$enable_shared" = yes && enable_static=no
7177   fi
7178   ;;
7179 esac
7180 echo "$as_me:$LINENO: result: $enable_shared" >&5
7181 echo "${ECHO_T}$enable_shared" >&6
7182
7183 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7184 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7185 # Make sure either enable_shared or enable_static is yes.
7186 test "$enable_shared" = yes || enable_static=yes
7187 echo "$as_me:$LINENO: result: $enable_static" >&5
7188 echo "${ECHO_T}$enable_static" >&6
7189
7190 if test "$hardcode_action" = relink; then
7191   # Fast installation is not supported
7192   enable_fast_install=no
7193 elif test "$shlibpath_overrides_runpath" = yes ||
7194      test "$enable_shared" = no; then
7195   # Fast installation is not necessary
7196   enable_fast_install=needless
7197 fi
7198
7199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7200 if test "$GCC" = yes; then
7201   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7202 fi
7203
7204 if test "x$enable_dlopen" != xyes; then
7205   enable_dlopen=unknown
7206   enable_dlopen_self=unknown
7207   enable_dlopen_self_static=unknown
7208 else
7209   lt_cv_dlopen=no
7210   lt_cv_dlopen_libs=
7211
7212   case $host_os in
7213   beos*)
7214     lt_cv_dlopen="load_add_on"
7215     lt_cv_dlopen_libs=
7216     lt_cv_dlopen_self=yes
7217     ;;
7218
7219   cygwin* | mingw* | pw32*)
7220     lt_cv_dlopen="LoadLibrary"
7221     lt_cv_dlopen_libs=
7222    ;;
7223
7224   *)
7225     echo "$as_me:$LINENO: checking for shl_load" >&5
7226 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7227 if test "${ac_cv_func_shl_load+set}" = set; then
7228   echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230   cat >conftest.$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7232 /* confdefs.h.  */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h.  */
7237 /* System header to define __stub macros and hopefully few prototypes,
7238     which can conflict with char shl_load (); below.
7239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7240     <limits.h> exists even on freestanding compilers.  */
7241 #ifdef __STDC__
7242 # include <limits.h>
7243 #else
7244 # include <assert.h>
7245 #endif
7246 /* Override any gcc2 internal prototype to avoid an error.  */
7247 #ifdef __cplusplus
7248 extern "C"
7249 {
7250 #endif
7251 /* We use char because int might match the return type of a gcc2
7252    builtin and then its argument prototype would still apply.  */
7253 char shl_load ();
7254 /* The GNU C library defines this for functions which it implements
7255     to always fail with ENOSYS.  Some functions are actually named
7256     something starting with __ and the normal name is an alias.  */
7257 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7258 choke me
7259 #else
7260 char (*f) () = shl_load;
7261 #endif
7262 #ifdef __cplusplus
7263 }
7264 #endif
7265
7266 int
7267 main ()
7268 {
7269 return f != shl_load;
7270   ;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest.$ac_objext conftest$ac_exeext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7276   (eval $ac_link) 2>&5
7277   ac_status=$?
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } &&
7280          { ac_try='test -s conftest$ac_exeext'
7281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282   (eval $ac_try) 2>&5
7283   ac_status=$?
7284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285   (exit $ac_status); }; }; then
7286   ac_cv_func_shl_load=yes
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291 ac_cv_func_shl_load=no
7292 fi
7293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7294 fi
7295 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7296 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7297 if test $ac_cv_func_shl_load = yes; then
7298   lt_cv_dlopen="shl_load"
7299 else
7300   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7301 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7302 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   ac_check_lib_save_LIBS=$LIBS
7306 LIBS="-ldld  $LIBS"
7307 cat >conftest.$ac_ext <<_ACEOF
7308 #line $LINENO "configure"
7309 /* confdefs.h.  */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h.  */
7314
7315 /* Override any gcc2 internal prototype to avoid an error.  */
7316 #ifdef __cplusplus
7317 extern "C"
7318 #endif
7319 /* We use char because int might match the return type of a gcc2
7320    builtin and then its argument prototype would still apply.  */
7321 char shl_load ();
7322 int
7323 main ()
7324 {
7325 shl_load ();
7326   ;
7327   return 0;
7328 }
7329 _ACEOF
7330 rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7332   (eval $ac_link) 2>&5
7333   ac_status=$?
7334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335   (exit $ac_status); } &&
7336          { ac_try='test -s conftest$ac_exeext'
7337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338   (eval $ac_try) 2>&5
7339   ac_status=$?
7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); }; }; then
7342   ac_cv_lib_dld_shl_load=yes
7343 else
7344   echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7346
7347 ac_cv_lib_dld_shl_load=no
7348 fi
7349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7350 LIBS=$ac_check_lib_save_LIBS
7351 fi
7352 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7353 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7354 if test $ac_cv_lib_dld_shl_load = yes; then
7355   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7356 else
7357   echo "$as_me:$LINENO: checking for dlopen" >&5
7358 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7359 if test "${ac_cv_func_dlopen+set}" = set; then
7360   echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362   cat >conftest.$ac_ext <<_ACEOF
7363 #line $LINENO "configure"
7364 /* confdefs.h.  */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h.  */
7369 /* System header to define __stub macros and hopefully few prototypes,
7370     which can conflict with char dlopen (); below.
7371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7372     <limits.h> exists even on freestanding compilers.  */
7373 #ifdef __STDC__
7374 # include <limits.h>
7375 #else
7376 # include <assert.h>
7377 #endif
7378 /* Override any gcc2 internal prototype to avoid an error.  */
7379 #ifdef __cplusplus
7380 extern "C"
7381 {
7382 #endif
7383 /* We use char because int might match the return type of a gcc2
7384    builtin and then its argument prototype would still apply.  */
7385 char dlopen ();
7386 /* The GNU C library defines this for functions which it implements
7387     to always fail with ENOSYS.  Some functions are actually named
7388     something starting with __ and the normal name is an alias.  */
7389 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7390 choke me
7391 #else
7392 char (*f) () = dlopen;
7393 #endif
7394 #ifdef __cplusplus
7395 }
7396 #endif
7397
7398 int
7399 main ()
7400 {
7401 return f != dlopen;
7402   ;
7403   return 0;
7404 }
7405 _ACEOF
7406 rm -f conftest.$ac_objext conftest$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408   (eval $ac_link) 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } &&
7412          { ac_try='test -s conftest$ac_exeext'
7413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414   (eval $ac_try) 2>&5
7415   ac_status=$?
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); }; }; then
7418   ac_cv_func_dlopen=yes
7419 else
7420   echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423 ac_cv_func_dlopen=no
7424 fi
7425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7426 fi
7427 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7428 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7429 if test $ac_cv_func_dlopen = yes; then
7430   lt_cv_dlopen="dlopen"
7431 else
7432   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7433 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7434 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   ac_check_lib_save_LIBS=$LIBS
7438 LIBS="-ldl  $LIBS"
7439 cat >conftest.$ac_ext <<_ACEOF
7440 #line $LINENO "configure"
7441 /* confdefs.h.  */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h.  */
7446
7447 /* Override any gcc2 internal prototype to avoid an error.  */
7448 #ifdef __cplusplus
7449 extern "C"
7450 #endif
7451 /* We use char because int might match the return type of a gcc2
7452    builtin and then its argument prototype would still apply.  */
7453 char dlopen ();
7454 int
7455 main ()
7456 {
7457 dlopen ();
7458   ;
7459   return 0;
7460 }
7461 _ACEOF
7462 rm -f conftest.$ac_objext conftest$ac_exeext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464   (eval $ac_link) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } &&
7468          { ac_try='test -s conftest$ac_exeext'
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_lib_dl_dlopen=yes
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ac_cv_lib_dl_dlopen=no
7480 fi
7481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7482 LIBS=$ac_check_lib_save_LIBS
7483 fi
7484 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7485 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7486 if test $ac_cv_lib_dl_dlopen = yes; then
7487   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7488 else
7489   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7490 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7491 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7492   echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494   ac_check_lib_save_LIBS=$LIBS
7495 LIBS="-lsvld  $LIBS"
7496 cat >conftest.$ac_ext <<_ACEOF
7497 #line $LINENO "configure"
7498 /* confdefs.h.  */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h.  */
7503
7504 /* Override any gcc2 internal prototype to avoid an error.  */
7505 #ifdef __cplusplus
7506 extern "C"
7507 #endif
7508 /* We use char because int might match the return type of a gcc2
7509    builtin and then its argument prototype would still apply.  */
7510 char dlopen ();
7511 int
7512 main ()
7513 {
7514 dlopen ();
7515   ;
7516   return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521   (eval $ac_link) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); } &&
7525          { ac_try='test -s conftest$ac_exeext'
7526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527   (eval $ac_try) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); }; }; then
7531   ac_cv_lib_svld_dlopen=yes
7532 else
7533   echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7535
7536 ac_cv_lib_svld_dlopen=no
7537 fi
7538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7539 LIBS=$ac_check_lib_save_LIBS
7540 fi
7541 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7542 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7543 if test $ac_cv_lib_svld_dlopen = yes; then
7544   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7545 else
7546   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7547 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7548 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   ac_check_lib_save_LIBS=$LIBS
7552 LIBS="-ldld  $LIBS"
7553 cat >conftest.$ac_ext <<_ACEOF
7554 #line $LINENO "configure"
7555 /* confdefs.h.  */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h.  */
7560
7561 /* Override any gcc2 internal prototype to avoid an error.  */
7562 #ifdef __cplusplus
7563 extern "C"
7564 #endif
7565 /* We use char because int might match the return type of a gcc2
7566    builtin and then its argument prototype would still apply.  */
7567 char dld_link ();
7568 int
7569 main ()
7570 {
7571 dld_link ();
7572   ;
7573   return 0;
7574 }
7575 _ACEOF
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578   (eval $ac_link) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); } &&
7582          { ac_try='test -s conftest$ac_exeext'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; }; then
7588   ac_cv_lib_dld_dld_link=yes
7589 else
7590   echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7592
7593 ac_cv_lib_dld_dld_link=no
7594 fi
7595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7596 LIBS=$ac_check_lib_save_LIBS
7597 fi
7598 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7599 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7600 if test $ac_cv_lib_dld_dld_link = yes; then
7601   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7602 fi
7603
7604
7605 fi
7606
7607
7608 fi
7609
7610
7611 fi
7612
7613
7614 fi
7615
7616
7617 fi
7618
7619     ;;
7620   esac
7621
7622   if test "x$lt_cv_dlopen" != xno; then
7623     enable_dlopen=yes
7624   else
7625     enable_dlopen=no
7626   fi
7627
7628   case $lt_cv_dlopen in
7629   dlopen)
7630     save_CPPFLAGS="$CPPFLAGS"
7631         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7632
7633     save_LDFLAGS="$LDFLAGS"
7634     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7635
7636     save_LIBS="$LIBS"
7637     LIBS="$lt_cv_dlopen_libs $LIBS"
7638
7639     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7640 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7641 if test "${lt_cv_dlopen_self+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644           if test "$cross_compiling" = yes; then :
7645   lt_cv_dlopen_self=cross
7646 else
7647     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7648   lt_status=$lt_dlunknown
7649   cat > conftest.$ac_ext <<EOF
7650 #line 7650 "configure"
7651 #include "confdefs.h"
7652
7653 #if HAVE_DLFCN_H
7654 #include <dlfcn.h>
7655 #endif
7656
7657 #include <stdio.h>
7658
7659 #ifdef RTLD_GLOBAL
7660 #  define LT_DLGLOBAL           RTLD_GLOBAL
7661 #else
7662 #  ifdef DL_GLOBAL
7663 #    define LT_DLGLOBAL         DL_GLOBAL
7664 #  else
7665 #    define LT_DLGLOBAL         0
7666 #  endif
7667 #endif
7668
7669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7670    find out it does not work in some platform. */
7671 #ifndef LT_DLLAZY_OR_NOW
7672 #  ifdef RTLD_LAZY
7673 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7674 #  else
7675 #    ifdef DL_LAZY
7676 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7677 #    else
7678 #      ifdef RTLD_NOW
7679 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7680 #      else
7681 #        ifdef DL_NOW
7682 #          define LT_DLLAZY_OR_NOW      DL_NOW
7683 #        else
7684 #          define LT_DLLAZY_OR_NOW      0
7685 #        endif
7686 #      endif
7687 #    endif
7688 #  endif
7689 #endif
7690
7691 #ifdef __cplusplus
7692 extern "C" void exit (int);
7693 #endif
7694
7695 void fnord() { int i=42;}
7696 int main ()
7697 {
7698   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7699   int status = $lt_dlunknown;
7700
7701   if (self)
7702     {
7703       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7704       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7705       /* dlclose (self); */
7706     }
7707
7708     exit (status);
7709 }
7710 EOF
7711   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712   (eval $ac_link) 2>&5
7713   ac_status=$?
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7716     (./conftest; exit; ) 2>/dev/null
7717     lt_status=$?
7718     case x$lt_status in
7719       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7720       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7721       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7722     esac
7723   else :
7724     # compilation failed
7725     lt_cv_dlopen_self=no
7726   fi
7727 fi
7728 rm -fr conftest*
7729
7730
7731 fi
7732 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7733 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7734
7735     if test "x$lt_cv_dlopen_self" = xyes; then
7736       LDFLAGS="$LDFLAGS $link_static_flag"
7737       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7738 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7739 if test "${lt_cv_dlopen_self_static+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742           if test "$cross_compiling" = yes; then :
7743   lt_cv_dlopen_self_static=cross
7744 else
7745     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7746   lt_status=$lt_dlunknown
7747   cat > conftest.$ac_ext <<EOF
7748 #line 7748 "configure"
7749 #include "confdefs.h"
7750
7751 #if HAVE_DLFCN_H
7752 #include <dlfcn.h>
7753 #endif
7754
7755 #include <stdio.h>
7756
7757 #ifdef RTLD_GLOBAL
7758 #  define LT_DLGLOBAL           RTLD_GLOBAL
7759 #else
7760 #  ifdef DL_GLOBAL
7761 #    define LT_DLGLOBAL         DL_GLOBAL
7762 #  else
7763 #    define LT_DLGLOBAL         0
7764 #  endif
7765 #endif
7766
7767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7768    find out it does not work in some platform. */
7769 #ifndef LT_DLLAZY_OR_NOW
7770 #  ifdef RTLD_LAZY
7771 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7772 #  else
7773 #    ifdef DL_LAZY
7774 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7775 #    else
7776 #      ifdef RTLD_NOW
7777 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7778 #      else
7779 #        ifdef DL_NOW
7780 #          define LT_DLLAZY_OR_NOW      DL_NOW
7781 #        else
7782 #          define LT_DLLAZY_OR_NOW      0
7783 #        endif
7784 #      endif
7785 #    endif
7786 #  endif
7787 #endif
7788
7789 #ifdef __cplusplus
7790 extern "C" void exit (int);
7791 #endif
7792
7793 void fnord() { int i=42;}
7794 int main ()
7795 {
7796   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7797   int status = $lt_dlunknown;
7798
7799   if (self)
7800     {
7801       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7802       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7803       /* dlclose (self); */
7804     }
7805
7806     exit (status);
7807 }
7808 EOF
7809   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810   (eval $ac_link) 2>&5
7811   ac_status=$?
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7814     (./conftest; exit; ) 2>/dev/null
7815     lt_status=$?
7816     case x$lt_status in
7817       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7818       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7819       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7820     esac
7821   else :
7822     # compilation failed
7823     lt_cv_dlopen_self_static=no
7824   fi
7825 fi
7826 rm -fr conftest*
7827
7828
7829 fi
7830 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7831 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7832     fi
7833
7834     CPPFLAGS="$save_CPPFLAGS"
7835     LDFLAGS="$save_LDFLAGS"
7836     LIBS="$save_LIBS"
7837     ;;
7838   esac
7839
7840   case $lt_cv_dlopen_self in
7841   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7842   *) enable_dlopen_self=unknown ;;
7843   esac
7844
7845   case $lt_cv_dlopen_self_static in
7846   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7847   *) enable_dlopen_self_static=unknown ;;
7848   esac
7849 fi
7850
7851
7852 if test "$enable_shared" = yes && test "$GCC" = yes; then
7853   case $archive_cmds in
7854   *'~'*)
7855     # FIXME: we may have to deal with multi-command sequences.
7856     ;;
7857   '$CC '*)
7858     # Test whether the compiler implicitly links with -lc since on some
7859     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7860     # to ld, don't add -lc before -lgcc.
7861     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7862 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7863     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   $rm conftest*
7867     echo 'static int dummy;' > conftest.$ac_ext
7868
7869     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7870   (eval $ac_compile) 2>&5
7871   ac_status=$?
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); }; then
7874       soname=conftest
7875       lib=conftest
7876       libobjs=conftest.$ac_objext
7877       deplibs=
7878       wl=$lt_cv_prog_cc_wl
7879       compiler_flags=-v
7880       linker_flags=-v
7881       verstring=
7882       output_objdir=.
7883       libname=conftest
7884       save_allow_undefined_flag=$allow_undefined_flag
7885       allow_undefined_flag=
7886       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7887   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }
7891       then
7892         lt_cv_archive_cmds_need_lc=no
7893       else
7894         lt_cv_archive_cmds_need_lc=yes
7895       fi
7896       allow_undefined_flag=$save_allow_undefined_flag
7897     else
7898       cat conftest.err 1>&5
7899     fi
7900 fi
7901
7902     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7903 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7904     ;;
7905   esac
7906 fi
7907 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7908
7909 # The second clause should only fire when bootstrapping the
7910 # libtool distribution, otherwise you forgot to ship ltmain.sh
7911 # with your package, and you will get complaints that there are
7912 # no rules to generate ltmain.sh.
7913 if test -f "$ltmain"; then
7914   :
7915 else
7916   # If there is no Makefile yet, we rely on a make rule to execute
7917   # `config.status --recheck' to rerun these tests and create the
7918   # libtool script then.
7919   test -f Makefile && make "$ltmain"
7920 fi
7921
7922 if test -f "$ltmain"; then
7923   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7924   $rm -f "${ofile}T"
7925
7926   echo creating $ofile
7927
7928   # Now quote all the things that may contain metacharacters while being
7929   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7930   # variables and quote the copies for generation of the libtool script.
7931   for var in echo old_CC old_CFLAGS SED \
7932     AR AR_FLAGS CC LD LN_S NM SHELL \
7933     reload_flag reload_cmds wl \
7934     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7935     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7936     library_names_spec soname_spec \
7937     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7938     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7939     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7940     old_striplib striplib file_magic_cmd export_symbols_cmds \
7941     deplibs_check_method allow_undefined_flag no_undefined_flag \
7942     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7943     global_symbol_to_c_name_address \
7944     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7945     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7946     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7947
7948     case $var in
7949     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7950     old_postinstall_cmds | old_postuninstall_cmds | \
7951     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7952     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7953     postinstall_cmds | postuninstall_cmds | \
7954     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7955       # Double-quote double-evaled strings.
7956       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7957       ;;
7958     *)
7959       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7960       ;;
7961     esac
7962   done
7963
7964   cat <<__EOF__ > "${ofile}T"
7965 #! $SHELL
7966
7967 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7968 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7969 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7970 #
7971 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7972 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7973 #
7974 # This program is free software; you can redistribute it and/or modify
7975 # it under the terms of the GNU General Public License as published by
7976 # the Free Software Foundation; either version 2 of the License, or
7977 # (at your option) any later version.
7978 #
7979 # This program is distributed in the hope that it will be useful, but
7980 # WITHOUT ANY WARRANTY; without even the implied warranty of
7981 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7982 # General Public License for more details.
7983 #
7984 # You should have received a copy of the GNU General Public License
7985 # along with this program; if not, write to the Free Software
7986 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7987 #
7988 # As a special exception to the GNU General Public License, if you
7989 # distribute this file as part of a program that contains a
7990 # configuration script generated by Autoconf, you may include it under
7991 # the same distribution terms that you use for the rest of that program.
7992
7993 # A sed that does not truncate output.
7994 SED=$lt_SED
7995
7996 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7997 Xsed="${SED} -e s/^X//"
7998
7999 # The HP-UX ksh and POSIX shell print the target directory to stdout
8000 # if CDPATH is set.
8001 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8002
8003 # ### BEGIN LIBTOOL CONFIG
8004
8005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8006
8007 # Shell to use when invoking shell scripts.
8008 SHELL=$lt_SHELL
8009
8010 # Whether or not to build shared libraries.
8011 build_libtool_libs=$enable_shared
8012
8013 # Whether or not to build static libraries.
8014 build_old_libs=$enable_static
8015
8016 # Whether or not to add -lc for building shared libraries.
8017 build_libtool_need_lc=$need_lc
8018
8019 # Whether or not to optimize for fast installation.
8020 fast_install=$enable_fast_install
8021
8022 # The host system.
8023 host_alias=$host_alias
8024 host=$host
8025
8026 # An echo program that does not interpret backslashes.
8027 echo=$lt_echo
8028
8029 # The archiver.
8030 AR=$lt_AR
8031 AR_FLAGS=$lt_AR_FLAGS
8032
8033 # The default C compiler.
8034 CC=$lt_CC
8035
8036 # Is the compiler the GNU C compiler?
8037 with_gcc=$GCC
8038
8039 # The linker used to build libraries.
8040 LD=$lt_LD
8041
8042 # Whether we need hard or soft links.
8043 LN_S=$lt_LN_S
8044
8045 # A BSD-compatible nm program.
8046 NM=$lt_NM
8047
8048 # A symbol stripping program
8049 STRIP=$STRIP
8050
8051 # Used to examine libraries when file_magic_cmd begins "file"
8052 MAGIC_CMD=$MAGIC_CMD
8053
8054 # Used on cygwin: DLL creation program.
8055 DLLTOOL="$DLLTOOL"
8056
8057 # Used on cygwin: object dumper.
8058 OBJDUMP="$OBJDUMP"
8059
8060 # Used on cygwin: assembler.
8061 AS="$AS"
8062
8063 # The name of the directory that contains temporary libtool files.
8064 objdir=$objdir
8065
8066 # How to create reloadable object files.
8067 reload_flag=$lt_reload_flag
8068 reload_cmds=$lt_reload_cmds
8069
8070 # How to pass a linker flag through the compiler.
8071 wl=$lt_wl
8072
8073 # Object file suffix (normally "o").
8074 objext="$ac_objext"
8075
8076 # Old archive suffix (normally "a").
8077 libext="$libext"
8078
8079 # Executable file suffix (normally "").
8080 exeext="$exeext"
8081
8082 # Additional compiler flags for building library objects.
8083 pic_flag=$lt_pic_flag
8084 pic_mode=$pic_mode
8085
8086 # Does compiler simultaneously support -c and -o options?
8087 compiler_c_o=$lt_compiler_c_o
8088
8089 # Can we write directly to a .lo ?
8090 compiler_o_lo=$lt_compiler_o_lo
8091
8092 # Must we lock files when doing compilation ?
8093 need_locks=$lt_need_locks
8094
8095 # Do we need the lib prefix for modules?
8096 need_lib_prefix=$need_lib_prefix
8097
8098 # Do we need a version for libraries?
8099 need_version=$need_version
8100
8101 # Whether dlopen is supported.
8102 dlopen_support=$enable_dlopen
8103
8104 # Whether dlopen of programs is supported.
8105 dlopen_self=$enable_dlopen_self
8106
8107 # Whether dlopen of statically linked programs is supported.
8108 dlopen_self_static=$enable_dlopen_self_static
8109
8110 # Compiler flag to prevent dynamic linking.
8111 link_static_flag=$lt_link_static_flag
8112
8113 # Compiler flag to turn off builtin functions.
8114 no_builtin_flag=$lt_no_builtin_flag
8115
8116 # Compiler flag to allow reflexive dlopens.
8117 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8118
8119 # Compiler flag to generate shared objects directly from archives.
8120 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8121
8122 # Compiler flag to generate thread-safe objects.
8123 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8124
8125 # Library versioning type.
8126 version_type=$version_type
8127
8128 # Format of library name prefix.
8129 libname_spec=$lt_libname_spec
8130
8131 # List of archive names.  First name is the real one, the rest are links.
8132 # The last name is the one that the linker finds with -lNAME.
8133 library_names_spec=$lt_library_names_spec
8134
8135 # The coded name of the library, if different from the real name.
8136 soname_spec=$lt_soname_spec
8137
8138 # Commands used to build and install an old-style archive.
8139 RANLIB=$lt_RANLIB
8140 old_archive_cmds=$lt_old_archive_cmds
8141 old_postinstall_cmds=$lt_old_postinstall_cmds
8142 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8143
8144 # Create an old-style archive from a shared archive.
8145 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8146
8147 # Create a temporary old-style archive to link instead of a shared archive.
8148 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8149
8150 # Commands used to build and install a shared archive.
8151 archive_cmds=$lt_archive_cmds
8152 archive_expsym_cmds=$lt_archive_expsym_cmds
8153 postinstall_cmds=$lt_postinstall_cmds
8154 postuninstall_cmds=$lt_postuninstall_cmds
8155
8156 # Commands to strip libraries.
8157 old_striplib=$lt_old_striplib
8158 striplib=$lt_striplib
8159
8160 # Method to check whether dependent libraries are shared objects.
8161 deplibs_check_method=$lt_deplibs_check_method
8162
8163 # Command to use when deplibs_check_method == file_magic.
8164 file_magic_cmd=$lt_file_magic_cmd
8165
8166 # Flag that allows shared libraries with undefined symbols to be built.
8167 allow_undefined_flag=$lt_allow_undefined_flag
8168
8169 # Flag that forces no undefined symbols.
8170 no_undefined_flag=$lt_no_undefined_flag
8171
8172 # Commands used to finish a libtool library installation in a directory.
8173 finish_cmds=$lt_finish_cmds
8174
8175 # Same as above, but a single script fragment to be evaled but not shown.
8176 finish_eval=$lt_finish_eval
8177
8178 # Take the output of nm and produce a listing of raw symbols and C names.
8179 global_symbol_pipe=$lt_global_symbol_pipe
8180
8181 # Transform the output of nm in a proper C declaration
8182 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8183
8184 # Transform the output of nm in a C name address pair
8185 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8186
8187 # This is the shared library runtime path variable.
8188 runpath_var=$runpath_var
8189
8190 # This is the shared library path variable.
8191 shlibpath_var=$shlibpath_var
8192
8193 # Is shlibpath searched before the hard-coded library search path?
8194 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8195
8196 # How to hardcode a shared library path into an executable.
8197 hardcode_action=$hardcode_action
8198
8199 # Whether we should hardcode library paths into libraries.
8200 hardcode_into_libs=$hardcode_into_libs
8201
8202 # Flag to hardcode \$libdir into a binary during linking.
8203 # This must work even if \$libdir does not exist.
8204 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8205
8206 # Whether we need a single -rpath flag with a separated argument.
8207 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8208
8209 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8210 # resulting binary.
8211 hardcode_direct=$hardcode_direct
8212
8213 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8214 # resulting binary.
8215 hardcode_minus_L=$hardcode_minus_L
8216
8217 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8218 # the resulting binary.
8219 hardcode_shlibpath_var=$hardcode_shlibpath_var
8220
8221 # Variables whose values should be saved in libtool wrapper scripts and
8222 # restored at relink time.
8223 variables_saved_for_relink="$variables_saved_for_relink"
8224
8225 # Whether libtool must link a program against all its dependency libraries.
8226 link_all_deplibs=$link_all_deplibs
8227
8228 # Compile-time system search path for libraries
8229 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8230
8231 # Run-time system search path for libraries
8232 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8233
8234 # Fix the shell variable \$srcfile for the compiler.
8235 fix_srcfile_path="$fix_srcfile_path"
8236
8237 # Set to yes if exported symbols are required.
8238 always_export_symbols=$always_export_symbols
8239
8240 # The commands to list exported symbols.
8241 export_symbols_cmds=$lt_export_symbols_cmds
8242
8243 # The commands to extract the exported symbol list from a shared archive.
8244 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8245
8246 # Symbols that should not be listed in the preloaded symbols.
8247 exclude_expsyms=$lt_exclude_expsyms
8248
8249 # Symbols that must always be exported.
8250 include_expsyms=$lt_include_expsyms
8251
8252 # ### END LIBTOOL CONFIG
8253
8254 __EOF__
8255
8256   case $host_os in
8257   aix3*)
8258     cat <<\EOF >> "${ofile}T"
8259
8260 # AIX sometimes has problems with the GCC collect2 program.  For some
8261 # reason, if we set the COLLECT_NAMES environment variable, the problems
8262 # vanish in a puff of smoke.
8263 if test "X${COLLECT_NAMES+set}" != Xset; then
8264   COLLECT_NAMES=
8265   export COLLECT_NAMES
8266 fi
8267 EOF
8268     ;;
8269   esac
8270
8271   case $host_os in
8272   cygwin* | mingw* | pw32* | os2*)
8273     cat <<'EOF' >> "${ofile}T"
8274       # This is a source program that is used to create dlls on Windows
8275       # Don't remove nor modify the starting and closing comments
8276 # /* ltdll.c starts here */
8277 # #define WIN32_LEAN_AND_MEAN
8278 # #include <windows.h>
8279 # #undef WIN32_LEAN_AND_MEAN
8280 # #include <stdio.h>
8281 #
8282 # #ifndef __CYGWIN__
8283 # #  ifdef __CYGWIN32__
8284 # #    define __CYGWIN__ __CYGWIN32__
8285 # #  endif
8286 # #endif
8287 #
8288 # #ifdef __cplusplus
8289 # extern "C" {
8290 # #endif
8291 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8292 # #ifdef __cplusplus
8293 # }
8294 # #endif
8295 #
8296 # #ifdef __CYGWIN__
8297 # #include <cygwin/cygwin_dll.h>
8298 # DECLARE_CYGWIN_DLL( DllMain );
8299 # #endif
8300 # HINSTANCE __hDllInstance_base;
8301 #
8302 # BOOL APIENTRY
8303 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8304 # {
8305 #   __hDllInstance_base = hInst;
8306 #   return TRUE;
8307 # }
8308 # /* ltdll.c ends here */
8309         # This is a source program that is used to create import libraries
8310         # on Windows for dlls which lack them. Don't remove nor modify the
8311         # starting and closing comments
8312 # /* impgen.c starts here */
8313 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8314 #
8315 #  This file is part of GNU libtool.
8316 #
8317 #  This program is free software; you can redistribute it and/or modify
8318 #  it under the terms of the GNU General Public License as published by
8319 #  the Free Software Foundation; either version 2 of the License, or
8320 #  (at your option) any later version.
8321 #
8322 #  This program is distributed in the hope that it will be useful,
8323 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8324 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8325 #  GNU General Public License for more details.
8326 #
8327 #  You should have received a copy of the GNU General Public License
8328 #  along with this program; if not, write to the Free Software
8329 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8330 #  */
8331 #
8332 # #include <stdio.h>            /* for printf() */
8333 # #include <unistd.h>           /* for open(), lseek(), read() */
8334 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8335 # #include <string.h>           /* for strdup() */
8336 #
8337 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8338 # #ifndef O_BINARY
8339 # #define O_BINARY 0
8340 # #endif
8341 #
8342 # static unsigned int
8343 # pe_get16 (fd, offset)
8344 #      int fd;
8345 #      int offset;
8346 # {
8347 #   unsigned char b[2];
8348 #   lseek (fd, offset, SEEK_SET);
8349 #   read (fd, b, 2);
8350 #   return b[0] + (b[1]<<8);
8351 # }
8352 #
8353 # static unsigned int
8354 # pe_get32 (fd, offset)
8355 #     int fd;
8356 #     int offset;
8357 # {
8358 #   unsigned char b[4];
8359 #   lseek (fd, offset, SEEK_SET);
8360 #   read (fd, b, 4);
8361 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8362 # }
8363 #
8364 # static unsigned int
8365 # pe_as32 (ptr)
8366 #      void *ptr;
8367 # {
8368 #   unsigned char *b = ptr;
8369 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8370 # }
8371 #
8372 # int
8373 # main (argc, argv)
8374 #     int argc;
8375 #     char *argv[];
8376 # {
8377 #     int dll;
8378 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8379 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8380 #     unsigned long name_rvas, nexp;
8381 #     unsigned char *expdata, *erva;
8382 #     char *filename, *dll_name;
8383 #
8384 #     filename = argv[1];
8385 #
8386 #     dll = open(filename, O_RDONLY|O_BINARY);
8387 #     if (dll < 1)
8388 #       return 1;
8389 #
8390 #     dll_name = filename;
8391 #
8392 #     for (i=0; filename[i]; i++)
8393 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8394 #           dll_name = filename + i +1;
8395 #
8396 #     pe_header_offset = pe_get32 (dll, 0x3c);
8397 #     opthdr_ofs = pe_header_offset + 4 + 20;
8398 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8399 #
8400 #     if (num_entries < 1) /* no exports */
8401 #       return 1;
8402 #
8403 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8404 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8405 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8406 #     secptr = (pe_header_offset + 4 + 20 +
8407 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8408 #
8409 #     expptr = 0;
8410 #     for (i = 0; i < nsections; i++)
8411 #     {
8412 #       char sname[8];
8413 #       unsigned long secptr1 = secptr + 40 * i;
8414 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8415 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8416 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8417 #       lseek(dll, secptr1, SEEK_SET);
8418 #       read(dll, sname, 8);
8419 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8420 #       {
8421 #           expptr = fptr + (export_rva - vaddr);
8422 #           if (export_rva + export_size > vaddr + vsize)
8423 #               export_size = vsize - (export_rva - vaddr);
8424 #           break;
8425 #       }
8426 #     }
8427 #
8428 #     expdata = (unsigned char*)malloc(export_size);
8429 #     lseek (dll, expptr, SEEK_SET);
8430 #     read (dll, expdata, export_size);
8431 #     erva = expdata - export_rva;
8432 #
8433 #     nexp = pe_as32 (expdata+24);
8434 #     name_rvas = pe_as32 (expdata+32);
8435 #
8436 #     printf ("EXPORTS\n");
8437 #     for (i = 0; i<nexp; i++)
8438 #     {
8439 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8440 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8441 #     }
8442 #
8443 #     return 0;
8444 # }
8445 # /* impgen.c ends here */
8446
8447 EOF
8448     ;;
8449   esac
8450
8451   # We use sed instead of cat because bash on DJGPP gets confused if
8452   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8453   # text mode, it properly converts lines to CR/LF.  This bash problem
8454   # is reportedly fixed, but why not run on old versions too?
8455   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8456
8457   mv -f "${ofile}T" "$ofile" || \
8458     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8459   chmod +x "$ofile"
8460 fi
8461
8462
8463
8464
8465
8466 # This can be used to rebuild libtool when needed
8467 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8468
8469 # Always use our own libtool.
8470 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8471
8472 # Prevent multiple expansion
8473
8474
8475   #LIBTOOL="$LIBTOOL --silent"
8476   ac_ext=c
8477 ac_cpp='$CPP $CPPFLAGS'
8478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8481
8482
8483   LIBTOOL_SHELL='/bin/sh ./libtool'
8484 else
8485   LIBTOOL_SHELL=$LIBTOOL
8486 fi
8487
8488 # add --with-extra-includes and --with-extra-libs switch to ./configure
8489 all_libraries="$all_libraries $USER_LDFLAGS"
8490 all_includes="$all_includes $USER_INCLUDES"
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500 # Get compiler name
8501 if test ! -z "$CC"; then
8502         _cc="$CC"
8503 else
8504         _cc="gcc"
8505 fi
8506
8507 # Check for gcc version being >= 2.96.
8508 echo "$as_me:$LINENO: checking version of $_cc" >&5
8509 echo $ECHO_N "checking version of $_cc... $ECHO_C" >&6
8510 cc_version=`./getgccver $_cc`
8511 cc_major=`echo $cc_version | cut -d'.' -f1`
8512 cc_minor=`echo $cc_version | cut -d'.' -f2`
8513 if test -z "$cc_version"; then
8514         cc_version="v. ?.??"
8515         cc_major=1
8516         cc_minor=1
8517 fi
8518 if test $cc_major -lt 2 -o \( $cc_major -eq 2 -a $cc_minor -lt 96 \) ; then
8519 cc_version="$cc_version, bad"
8520 echo "$as_me:$LINENO: result: $cc_version" >&5
8521 echo "${ECHO_T}$cc_version" >&6
8522 { { echo "$as_me:$LINENO: error: Please upgrade your gcc compiler to gcc-2.96+ or gcc-3+ version!\
8523  Earlier compiler versions will NOT work as these do not support \
8524 unnamed/annonymous structures and unions which are used heavily in linux-ntfs." >&5
8525 echo "$as_me: error: Please upgrade your gcc compiler to gcc-2.96+ or gcc-3+ version!\
8526  Earlier compiler versions will NOT work as these do not support \
8527 unnamed/annonymous structures and unions which are used heavily in linux-ntfs." >&2;}
8528    { (exit 1); exit 1; }; }
8529 fi
8530 cc_version="$cc_version, ok"
8531 echo "$as_me:$LINENO: result: $cc_version" >&5
8532 echo "${ECHO_T}$cc_version" >&6
8533
8534 # Add -fms-extensions for gcc-3.2+.
8535
8536
8537 if test $cc_major -gt 3 -o \( $cc_major -eq 3 -a $cc_minor -ge 2 \); then
8538   GCC_NEEDS_MS_EXTENSIONS_TRUE=
8539   GCC_NEEDS_MS_EXTENSIONS_FALSE='#'
8540 else
8541   GCC_NEEDS_MS_EXTENSIONS_TRUE='#'
8542   GCC_NEEDS_MS_EXTENSIONS_FALSE=
8543 fi
8544
8545
8546 # Checks for libraries.
8547
8548 # Checks for header files.
8549 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8551 if test "${ac_cv_header_stdc+set}" = set; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554   cat >conftest.$ac_ext <<_ACEOF
8555 #line $LINENO "configure"
8556 /* confdefs.h.  */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h.  */
8561 #include <stdlib.h>
8562 #include <stdarg.h>
8563 #include <string.h>
8564 #include <float.h>
8565
8566 int
8567 main ()
8568 {
8569
8570   ;
8571   return 0;
8572 }
8573 _ACEOF
8574 rm -f conftest.$ac_objext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8576   (eval $ac_compile) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); } &&
8580          { ac_try='test -s conftest.$ac_objext'
8581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582   (eval $ac_try) 2>&5
8583   ac_status=$?
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); }; }; then
8586   ac_cv_header_stdc=yes
8587 else
8588   echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8590
8591 ac_cv_header_stdc=no
8592 fi
8593 rm -f conftest.$ac_objext conftest.$ac_ext
8594
8595 if test $ac_cv_header_stdc = yes; then
8596   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8597   cat >conftest.$ac_ext <<_ACEOF
8598 #line $LINENO "configure"
8599 /* confdefs.h.  */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h.  */
8604 #include <string.h>
8605
8606 _ACEOF
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608   $EGREP "memchr" >/dev/null 2>&1; then
8609   :
8610 else
8611   ac_cv_header_stdc=no
8612 fi
8613 rm -f conftest*
8614
8615 fi
8616
8617 if test $ac_cv_header_stdc = yes; then
8618   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8619   cat >conftest.$ac_ext <<_ACEOF
8620 #line $LINENO "configure"
8621 /* confdefs.h.  */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h.  */
8626 #include <stdlib.h>
8627
8628 _ACEOF
8629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8630   $EGREP "free" >/dev/null 2>&1; then
8631   :
8632 else
8633   ac_cv_header_stdc=no
8634 fi
8635 rm -f conftest*
8636
8637 fi
8638
8639 if test $ac_cv_header_stdc = yes; then
8640   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8641   if test "$cross_compiling" = yes; then
8642   :
8643 else
8644   cat >conftest.$ac_ext <<_ACEOF
8645 #line $LINENO "configure"
8646 /* confdefs.h.  */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h.  */
8651 #include <ctype.h>
8652 #if ((' ' & 0x0FF) == 0x020)
8653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8655 #else
8656 # define ISLOWER(c) \
8657                    (('a' <= (c) && (c) <= 'i') \
8658                      || ('j' <= (c) && (c) <= 'r') \
8659                      || ('s' <= (c) && (c) <= 'z'))
8660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8661 #endif
8662
8663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8664 int
8665 main ()
8666 {
8667   int i;
8668   for (i = 0; i < 256; i++)
8669     if (XOR (islower (i), ISLOWER (i))
8670         || toupper (i) != TOUPPER (i))
8671       exit(2);
8672   exit (0);
8673 }
8674 _ACEOF
8675 rm -f conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677   (eval $ac_link) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682   (eval $ac_try) 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; }; then
8686   :
8687 else
8688   echo "$as_me: program exited with status $ac_status" >&5
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 ( exit $ac_status )
8693 ac_cv_header_stdc=no
8694 fi
8695 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8696 fi
8697 fi
8698 fi
8699 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8700 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8701 if test $ac_cv_header_stdc = yes; then
8702
8703 cat >>confdefs.h <<\_ACEOF
8704 #define STDC_HEADERS 1
8705 _ACEOF
8706
8707 fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734 for ac_header in fcntl.h libintl.h limits.h locale.h mntent.h stddef.h \
8735         stdint.h stdlib.h stdio.h stdarg.h string.h strings.h errno.h time.h \
8736         sys/ioctl.h sys/mount.h unistd.h utime.h wchar.h getopt.h sys/stat.h \
8737         sys/types.h asm/byteorder.h linux/major.h linux/fd.h
8738 do
8739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741   echo "$as_me:$LINENO: checking for $ac_header" >&5
8742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744   echo $ECHO_N "(cached) $ECHO_C" >&6
8745 fi
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748 else
8749   # Is the header compilable?
8750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8753 #line $LINENO "configure"
8754 /* confdefs.h.  */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h.  */
8759 $ac_includes_default
8760 #include <$ac_header>
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764   (eval $ac_compile) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } &&
8768          { ac_try='test -s conftest.$ac_objext'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; }; then
8774   ac_header_compiler=yes
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 ac_header_compiler=no
8780 fi
8781 rm -f conftest.$ac_objext conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8784
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 /* confdefs.h.  */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h.  */
8795 #include <$ac_header>
8796 _ACEOF
8797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8799   ac_status=$?
8800   grep -v '^ *+' conftest.er1 >conftest.err
8801   rm -f conftest.er1
8802   cat conftest.err >&5
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); } >/dev/null; then
8805   if test -s conftest.err; then
8806     ac_cpp_err=$ac_c_preproc_warn_flag
8807   else
8808     ac_cpp_err=
8809   fi
8810 else
8811   ac_cpp_err=yes
8812 fi
8813 if test -z "$ac_cpp_err"; then
8814   ac_header_preproc=yes
8815 else
8816   echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819   ac_header_preproc=no
8820 fi
8821 rm -f conftest.err conftest.$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823 echo "${ECHO_T}$ac_header_preproc" >&6
8824
8825 # So?  What about this header?
8826 case $ac_header_compiler:$ac_header_preproc in
8827   yes:no )
8828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8832     (
8833       cat <<\_ASBOX
8834 ## ------------------------------------ ##
8835 ## Report this to bug-autoconf@gnu.org. ##
8836 ## ------------------------------------ ##
8837 _ASBOX
8838     ) |
8839       sed "s/^/$as_me: WARNING:     /" >&2
8840     ;;
8841   no:yes )
8842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8844     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8848     (
8849       cat <<\_ASBOX
8850 ## ------------------------------------ ##
8851 ## Report this to bug-autoconf@gnu.org. ##
8852 ## ------------------------------------ ##
8853 _ASBOX
8854     ) |
8855       sed "s/^/$as_me: WARNING:     /" >&2
8856     ;;
8857 esac
8858 echo "$as_me:$LINENO: checking for $ac_header" >&5
8859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863   eval "$as_ac_Header=$ac_header_preproc"
8864 fi
8865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8867
8868 fi
8869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8870   cat >>confdefs.h <<_ACEOF
8871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8872 _ACEOF
8873
8874 fi
8875
8876 done
8877
8878
8879 # Checks for typedefs, structures, and compiler characteristics.
8880 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8881 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8882 if test "${ac_cv_header_stdbool_h+set}" = set; then
8883   echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885   cat >conftest.$ac_ext <<_ACEOF
8886 #line $LINENO "configure"
8887 /* confdefs.h.  */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h.  */
8892
8893 #include <stdbool.h>
8894 #ifndef bool
8895 # error bool is not defined
8896 #endif
8897 #ifndef false
8898 # error false is not defined
8899 #endif
8900 #if false
8901 # error false is not 0
8902 #endif
8903 #ifndef true
8904 # error true is not defined
8905 #endif
8906 #if true != 1
8907 # error true is not 1
8908 #endif
8909 #ifndef __bool_true_false_are_defined
8910 # error __bool_true_false_are_defined is not defined
8911 #endif
8912
8913         struct s { _Bool s: 1; _Bool t; } s;
8914
8915         char a[true == 1 ? 1 : -1];
8916         char b[false == 0 ? 1 : -1];
8917         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8918         char d[(bool) -0.5 == true ? 1 : -1];
8919         bool e = &s;
8920         char f[(_Bool) -0.0 == false ? 1 : -1];
8921         char g[true];
8922         char h[sizeof (_Bool)];
8923         char i[sizeof s.t];
8924
8925 int
8926 main ()
8927 {
8928  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8935   (eval $ac_compile) 2>&5
8936   ac_status=$?
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   (exit $ac_status); } &&
8939          { ac_try='test -s conftest.$ac_objext'
8940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941   (eval $ac_try) 2>&5
8942   ac_status=$?
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); }; }; then
8945   ac_cv_header_stdbool_h=yes
8946 else
8947   echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8949
8950 ac_cv_header_stdbool_h=no
8951 fi
8952 rm -f conftest.$ac_objext conftest.$ac_ext
8953 fi
8954 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8955 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8956 echo "$as_me:$LINENO: checking for _Bool" >&5
8957 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8958 if test "${ac_cv_type__Bool+set}" = set; then
8959   echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961   cat >conftest.$ac_ext <<_ACEOF
8962 #line $LINENO "configure"
8963 /* confdefs.h.  */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h.  */
8968 $ac_includes_default
8969 int
8970 main ()
8971 {
8972 if ((_Bool *) 0)
8973   return 0;
8974 if (sizeof (_Bool))
8975   return 0;
8976   ;
8977   return 0;
8978 }
8979 _ACEOF
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982   (eval $ac_compile) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); } &&
8986          { ac_try='test -s conftest.$ac_objext'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   ac_cv_type__Bool=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 ac_cv_type__Bool=no
8998 fi
8999 rm -f conftest.$ac_objext conftest.$ac_ext
9000 fi
9001 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9002 echo "${ECHO_T}$ac_cv_type__Bool" >&6
9003 if test $ac_cv_type__Bool = yes; then
9004
9005 cat >>confdefs.h <<_ACEOF
9006 #define HAVE__BOOL 1
9007 _ACEOF
9008
9009
9010 fi
9011
9012 if test $ac_cv_header_stdbool_h = yes; then
9013
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_STDBOOL_H 1
9016 _ACEOF
9017
9018 fi
9019
9020 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9021 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9022 if test "${ac_cv_c_const+set}" = set; then
9023   echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025   cat >conftest.$ac_ext <<_ACEOF
9026 #line $LINENO "configure"
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032
9033 int
9034 main ()
9035 {
9036 /* FIXME: Include the comments suggested by Paul. */
9037 #ifndef __cplusplus
9038   /* Ultrix mips cc rejects this.  */
9039   typedef int charset[2];
9040   const charset x;
9041   /* SunOS 4.1.1 cc rejects this.  */
9042   char const *const *ccp;
9043   char **p;
9044   /* NEC SVR4.0.2 mips cc rejects this.  */
9045   struct point {int x, y;};
9046   static struct point const zero = {0,0};
9047   /* AIX XL C 1.02.0.0 rejects this.
9048      It does not let you subtract one const X* pointer from another in
9049      an arm of an if-expression whose if-part is not a constant
9050      expression */
9051   const char *g = "string";
9052   ccp = &g + (g ? g-g : 0);
9053   /* HPUX 7.0 cc rejects these. */
9054   ++ccp;
9055   p = (char**) ccp;
9056   ccp = (char const *const *) p;
9057   { /* SCO 3.2v4 cc rejects this.  */
9058     char *t;
9059     char const *s = 0 ? (char *) 0 : (char const *) 0;
9060
9061     *t++ = 0;
9062   }
9063   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9064     int x[] = {25, 17};
9065     const int *foo = &x[0];
9066     ++foo;
9067   }
9068   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9069     typedef const int *iptr;
9070     iptr p = 0;
9071     ++p;
9072   }
9073   { /* AIX XL C 1.02.0.0 rejects this saying
9074        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9075     struct s { int j; const int *ap[3]; };
9076     struct s *b; b->j = 5;
9077   }
9078   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9079     const int foo = 10;
9080   }
9081 #endif
9082
9083   ;
9084   return 0;
9085 }
9086 _ACEOF
9087 rm -f conftest.$ac_objext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9089   (eval $ac_compile) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); } &&
9093          { ac_try='test -s conftest.$ac_objext'
9094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095   (eval $ac_try) 2>&5
9096   ac_status=$?
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); }; }; then
9099   ac_cv_c_const=yes
9100 else
9101   echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104 ac_cv_c_const=no
9105 fi
9106 rm -f conftest.$ac_objext conftest.$ac_ext
9107 fi
9108 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9109 echo "${ECHO_T}$ac_cv_c_const" >&6
9110 if test $ac_cv_c_const = no; then
9111
9112 cat >>confdefs.h <<\_ACEOF
9113 #define const
9114 _ACEOF
9115
9116 fi
9117
9118 echo "$as_me:$LINENO: checking for inline" >&5
9119 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9120 if test "${ac_cv_c_inline+set}" = set; then
9121   echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123   ac_cv_c_inline=no
9124 for ac_kw in inline __inline__ __inline; do
9125   cat >conftest.$ac_ext <<_ACEOF
9126 #line $LINENO "configure"
9127 /* confdefs.h.  */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h.  */
9132 #ifndef __cplusplus
9133 typedef int foo_t;
9134 static $ac_kw foo_t static_foo () {return 0; }
9135 $ac_kw foo_t foo () {return 0; }
9136 #endif
9137
9138 _ACEOF
9139 rm -f conftest.$ac_objext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9141   (eval $ac_compile) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); } &&
9145          { ac_try='test -s conftest.$ac_objext'
9146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147   (eval $ac_try) 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; }; then
9151   ac_cv_c_inline=$ac_kw; break
9152 else
9153   echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156 fi
9157 rm -f conftest.$ac_objext conftest.$ac_ext
9158 done
9159
9160 fi
9161 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9162 echo "${ECHO_T}$ac_cv_c_inline" >&6
9163 case $ac_cv_c_inline in
9164   inline | yes) ;;
9165   no)
9166 cat >>confdefs.h <<\_ACEOF
9167 #define inline
9168 _ACEOF
9169  ;;
9170   *)  cat >>confdefs.h <<_ACEOF
9171 #define inline $ac_cv_c_inline
9172 _ACEOF
9173  ;;
9174 esac
9175
9176 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
9177 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
9178 if test "${ac_cv_c_long_double+set}" = set; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   cat >conftest.$ac_ext <<_ACEOF
9182 #line $LINENO "configure"
9183 /* confdefs.h.  */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h.  */
9188 #include <float.h>
9189           long double foo = 0.0;
9190 int
9191 main ()
9192 {
9193 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
9194           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
9195           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
9196 test_array [0] = 0
9197
9198   ;
9199   return 0;
9200 }
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204   (eval $ac_compile) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -s conftest.$ac_objext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   ac_cv_c_long_double=yes
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_cv_c_long_double=no
9220 fi
9221 rm -f conftest.$ac_objext conftest.$ac_ext
9222 fi
9223 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
9224 echo "${ECHO_T}$ac_cv_c_long_double" >&6
9225 if test $ac_cv_c_long_double = yes; then
9226
9227 cat >>confdefs.h <<\_ACEOF
9228 #define HAVE_LONG_DOUBLE 1
9229 _ACEOF
9230
9231 fi
9232
9233 echo "$as_me:$LINENO: checking for off_t" >&5
9234 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9235 if test "${ac_cv_type_off_t+set}" = set; then
9236   echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238   cat >conftest.$ac_ext <<_ACEOF
9239 #line $LINENO "configure"
9240 /* confdefs.h.  */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h.  */
9245 $ac_includes_default
9246 int
9247 main ()
9248 {
9249 if ((off_t *) 0)
9250   return 0;
9251 if (sizeof (off_t))
9252   return 0;
9253   ;
9254   return 0;
9255 }
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259   (eval $ac_compile) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); } &&
9263          { ac_try='test -s conftest.$ac_objext'
9264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265   (eval $ac_try) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; }; then
9269   ac_cv_type_off_t=yes
9270 else
9271   echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 ac_cv_type_off_t=no
9275 fi
9276 rm -f conftest.$ac_objext conftest.$ac_ext
9277 fi
9278 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9279 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9280 if test $ac_cv_type_off_t = yes; then
9281   :
9282 else
9283
9284 cat >>confdefs.h <<_ACEOF
9285 #define off_t long
9286 _ACEOF
9287
9288 fi
9289
9290 echo "$as_me:$LINENO: checking for size_t" >&5
9291 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9292 if test "${ac_cv_type_size_t+set}" = set; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295   cat >conftest.$ac_ext <<_ACEOF
9296 #line $LINENO "configure"
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302 $ac_includes_default
9303 int
9304 main ()
9305 {
9306 if ((size_t *) 0)
9307   return 0;
9308 if (sizeof (size_t))
9309   return 0;
9310   ;
9311   return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316   (eval $ac_compile) 2>&5
9317   ac_status=$?
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } &&
9320          { ac_try='test -s conftest.$ac_objext'
9321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322   (eval $ac_try) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); }; }; then
9326   ac_cv_type_size_t=yes
9327 else
9328   echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9330
9331 ac_cv_type_size_t=no
9332 fi
9333 rm -f conftest.$ac_objext conftest.$ac_ext
9334 fi
9335 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9336 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9337 if test $ac_cv_type_size_t = yes; then
9338   :
9339 else
9340
9341 cat >>confdefs.h <<_ACEOF
9342 #define size_t unsigned
9343 _ACEOF
9344
9345 fi
9346
9347 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9348 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9349 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352   cat >conftest.$ac_ext <<_ACEOF
9353 #line $LINENO "configure"
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359 $ac_includes_default
9360 int
9361 main ()
9362 {
9363 static struct stat ac_aggr;
9364 if (ac_aggr.st_blocks)
9365 return 0;
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 rm -f conftest.$ac_objext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9372   (eval $ac_compile) 2>&5
9373   ac_status=$?
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); } &&
9376          { ac_try='test -s conftest.$ac_objext'
9377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378   (eval $ac_try) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; }; then
9382   ac_cv_member_struct_stat_st_blocks=yes
9383 else
9384   echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 cat >conftest.$ac_ext <<_ACEOF
9388 #line $LINENO "configure"
9389 /* confdefs.h.  */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h.  */
9394 $ac_includes_default
9395 int
9396 main ()
9397 {
9398 static struct stat ac_aggr;
9399 if (sizeof ac_aggr.st_blocks)
9400 return 0;
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407   (eval $ac_compile) 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); } &&
9411          { ac_try='test -s conftest.$ac_objext'
9412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413   (eval $ac_try) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; }; then
9417   ac_cv_member_struct_stat_st_blocks=yes
9418 else
9419   echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9421
9422 ac_cv_member_struct_stat_st_blocks=no
9423 fi
9424 rm -f conftest.$ac_objext conftest.$ac_ext
9425 fi
9426 rm -f conftest.$ac_objext conftest.$ac_ext
9427 fi
9428 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9429 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9430 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9431
9432 cat >>confdefs.h <<_ACEOF
9433 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9434 _ACEOF
9435
9436
9437 cat >>confdefs.h <<\_ACEOF
9438 #define HAVE_ST_BLOCKS 1
9439 _ACEOF
9440
9441 else
9442   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9443 fi
9444
9445
9446 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
9447 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
9448 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
9449   echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451   cat >conftest.$ac_ext <<_ACEOF
9452 #line $LINENO "configure"
9453 /* confdefs.h.  */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h.  */
9458 $ac_includes_default
9459 int
9460 main ()
9461 {
9462 static struct stat ac_aggr;
9463 if (ac_aggr.st_rdev)
9464 return 0;
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471   (eval $ac_compile) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } &&
9475          { ac_try='test -s conftest.$ac_objext'
9476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477   (eval $ac_try) 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); }; }; then
9481   ac_cv_member_struct_stat_st_rdev=yes
9482 else
9483   echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486 cat >conftest.$ac_ext <<_ACEOF
9487 #line $LINENO "configure"
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493 $ac_includes_default
9494 int
9495 main ()
9496 {
9497 static struct stat ac_aggr;
9498 if (sizeof ac_aggr.st_rdev)
9499 return 0;
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9506   (eval $ac_compile) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); } &&
9510          { ac_try='test -s conftest.$ac_objext'
9511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512   (eval $ac_try) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); }; }; then
9516   ac_cv_member_struct_stat_st_rdev=yes
9517 else
9518   echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9520
9521 ac_cv_member_struct_stat_st_rdev=no
9522 fi
9523 rm -f conftest.$ac_objext conftest.$ac_ext
9524 fi
9525 rm -f conftest.$ac_objext conftest.$ac_ext
9526 fi
9527 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
9528 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
9529 if test $ac_cv_member_struct_stat_st_rdev = yes; then
9530
9531 cat >>confdefs.h <<_ACEOF
9532 #define HAVE_STRUCT_STAT_ST_RDEV 1
9533 _ACEOF
9534
9535
9536 fi
9537
9538
9539 # Checks for library functions.
9540 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
9541 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
9542 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
9543 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   ac_check_lib_save_LIBS=$LIBS
9547 LIBS="-lsun  $LIBS"
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9550 /* confdefs.h.  */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h.  */
9555
9556 /* Override any gcc2 internal prototype to avoid an error.  */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 /* We use char because int might match the return type of a gcc2
9561    builtin and then its argument prototype would still apply.  */
9562 char getmntent ();
9563 int
9564 main ()
9565 {
9566 getmntent ();
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573   (eval $ac_link) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); } &&
9577          { ac_try='test -s conftest$ac_exeext'
9578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579   (eval $ac_try) 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; }; then
9583   ac_cv_lib_sun_getmntent=yes
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 ac_cv_lib_sun_getmntent=no
9589 fi
9590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9592 fi
9593 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
9594 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
9595 if test $ac_cv_lib_sun_getmntent = yes; then
9596   LIBS="-lsun $LIBS"
9597 else
9598   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
9599 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
9600 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
9601   echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603   ac_check_lib_save_LIBS=$LIBS
9604 LIBS="-lseq  $LIBS"
9605 cat >conftest.$ac_ext <<_ACEOF
9606 #line $LINENO "configure"
9607 /* confdefs.h.  */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h.  */
9612
9613 /* Override any gcc2 internal prototype to avoid an error.  */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 /* We use char because int might match the return type of a gcc2
9618    builtin and then its argument prototype would still apply.  */
9619 char getmntent ();
9620 int
9621 main ()
9622 {
9623 getmntent ();
9624   ;
9625   return 0;
9626 }
9627 _ACEOF
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630   (eval $ac_link) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } &&
9634          { ac_try='test -s conftest$ac_exeext'
9635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636   (eval $ac_try) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; }; then
9640   ac_cv_lib_seq_getmntent=yes
9641 else
9642   echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645 ac_cv_lib_seq_getmntent=no
9646 fi
9647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_lib_save_LIBS
9649 fi
9650 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
9651 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
9652 if test $ac_cv_lib_seq_getmntent = yes; then
9653   LIBS="-lseq $LIBS"
9654 else
9655   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
9656 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
9657 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
9658   echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660   ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-lgen  $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 #line $LINENO "configure"
9664 /* confdefs.h.  */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h.  */
9669
9670 /* Override any gcc2 internal prototype to avoid an error.  */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 /* We use char because int might match the return type of a gcc2
9675    builtin and then its argument prototype would still apply.  */
9676 char getmntent ();
9677 int
9678 main ()
9679 {
9680 getmntent ();
9681   ;
9682   return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9687   (eval $ac_link) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } &&
9691          { ac_try='test -s conftest$ac_exeext'
9692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693   (eval $ac_try) 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); }; }; then
9697   ac_cv_lib_gen_getmntent=yes
9698 else
9699   echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702 ac_cv_lib_gen_getmntent=no
9703 fi
9704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9706 fi
9707 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
9708 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
9709 if test $ac_cv_lib_gen_getmntent = yes; then
9710   LIBS="-lgen $LIBS"
9711 fi
9712
9713 fi
9714
9715 fi
9716
9717
9718 for ac_func in getmntent
9719 do
9720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9721 echo "$as_me:$LINENO: checking for $ac_func" >&5
9722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_var+set}\" = set"; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 #line $LINENO "configure"
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733 /* System header to define __stub macros and hopefully few prototypes,
9734     which can conflict with char $ac_func (); below.
9735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9736     <limits.h> exists even on freestanding compilers.  */
9737 #ifdef __STDC__
9738 # include <limits.h>
9739 #else
9740 # include <assert.h>
9741 #endif
9742 /* Override any gcc2 internal prototype to avoid an error.  */
9743 #ifdef __cplusplus
9744 extern "C"
9745 {
9746 #endif
9747 /* We use char because int might match the return type of a gcc2
9748    builtin and then its argument prototype would still apply.  */
9749 char $ac_func ();
9750 /* The GNU C library defines this for functions which it implements
9751     to always fail with ENOSYS.  Some functions are actually named
9752     something starting with __ and the normal name is an alias.  */
9753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9754 choke me
9755 #else
9756 char (*f) () = $ac_func;
9757 #endif
9758 #ifdef __cplusplus
9759 }
9760 #endif
9761
9762 int
9763 main ()
9764 {
9765 return f != $ac_func;
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772   (eval $ac_link) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } &&
9776          { ac_try='test -s conftest$ac_exeext'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; }; then
9782   eval "$as_ac_var=yes"
9783 else
9784   echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9786
9787 eval "$as_ac_var=no"
9788 fi
9789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9790 fi
9791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9793 if test `eval echo '${'$as_ac_var'}'` = yes; then
9794   cat >>confdefs.h <<_ACEOF
9795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9796 _ACEOF
9797
9798 fi
9799 done
9800
9801
9802 if test $ac_cv_c_compiler_gnu = yes; then
9803     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
9804 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
9805 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
9806   echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808     ac_pattern="Autoconf.*'x'"
9809   cat >conftest.$ac_ext <<_ACEOF
9810 #line $LINENO "configure"
9811 /* confdefs.h.  */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h.  */
9816 #include <sgtty.h>
9817 Autoconf TIOCGETP
9818 _ACEOF
9819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9820   $EGREP "$ac_pattern" >/dev/null 2>&1; then
9821   ac_cv_prog_gcc_traditional=yes
9822 else
9823   ac_cv_prog_gcc_traditional=no
9824 fi
9825 rm -f conftest*
9826
9827
9828   if test $ac_cv_prog_gcc_traditional = no; then
9829     cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9831 /* confdefs.h.  */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h.  */
9836 #include <termio.h>
9837 Autoconf TCGETA
9838 _ACEOF
9839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9840   $EGREP "$ac_pattern" >/dev/null 2>&1; then
9841   ac_cv_prog_gcc_traditional=yes
9842 fi
9843 rm -f conftest*
9844
9845   fi
9846 fi
9847 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
9848 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
9849   if test $ac_cv_prog_gcc_traditional = yes; then
9850     CC="$CC -traditional"
9851   fi
9852 fi
9853
9854
9855 for ac_header in stdlib.h
9856 do
9857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859   echo "$as_me:$LINENO: checking for $ac_header" >&5
9860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 fi
9864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9866 else
9867   # Is the header compilable?
9868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9870 cat >conftest.$ac_ext <<_ACEOF
9871 #line $LINENO "configure"
9872 /* confdefs.h.  */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h.  */
9877 $ac_includes_default
9878 #include <$ac_header>
9879 _ACEOF
9880 rm -f conftest.$ac_objext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9882   (eval $ac_compile) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); } &&
9886          { ac_try='test -s conftest.$ac_objext'
9887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888   (eval $ac_try) 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; }; then
9892   ac_header_compiler=yes
9893 else
9894   echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 ac_header_compiler=no
9898 fi
9899 rm -f conftest.$ac_objext conftest.$ac_ext
9900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9901 echo "${ECHO_T}$ac_header_compiler" >&6
9902
9903 # Is the header present?
9904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9906 cat >conftest.$ac_ext <<_ACEOF
9907 #line $LINENO "configure"
9908 /* confdefs.h.  */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h.  */
9913 #include <$ac_header>
9914 _ACEOF
9915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9917   ac_status=$?
9918   grep -v '^ *+' conftest.er1 >conftest.err
9919   rm -f conftest.er1
9920   cat conftest.err >&5
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); } >/dev/null; then
9923   if test -s conftest.err; then
9924     ac_cpp_err=$ac_c_preproc_warn_flag
9925   else
9926     ac_cpp_err=
9927   fi
9928 else
9929   ac_cpp_err=yes
9930 fi
9931 if test -z "$ac_cpp_err"; then
9932   ac_header_preproc=yes
9933 else
9934   echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937   ac_header_preproc=no
9938 fi
9939 rm -f conftest.err conftest.$ac_ext
9940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9941 echo "${ECHO_T}$ac_header_preproc" >&6
9942
9943 # So?  What about this header?
9944 case $ac_header_compiler:$ac_header_preproc in
9945   yes:no )
9946     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9950     (
9951       cat <<\_ASBOX
9952 ## ------------------------------------ ##
9953 ## Report this to bug-autoconf@gnu.org. ##
9954 ## ------------------------------------ ##
9955 _ASBOX
9956     ) |
9957       sed "s/^/$as_me: WARNING:     /" >&2
9958     ;;
9959   no:yes )
9960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9962     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9966     (
9967       cat <<\_ASBOX
9968 ## ------------------------------------ ##
9969 ## Report this to bug-autoconf@gnu.org. ##
9970 ## ------------------------------------ ##
9971 _ASBOX
9972     ) |
9973       sed "s/^/$as_me: WARNING:     /" >&2
9974     ;;
9975 esac
9976 echo "$as_me:$LINENO: checking for $ac_header" >&5
9977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981   eval "$as_ac_Header=$ac_header_preproc"
9982 fi
9983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9985
9986 fi
9987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9988   cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9990 _ACEOF
9991
9992 fi
9993
9994 done
9995
9996 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9997 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9998 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9999   echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001   if test "$cross_compiling" = yes; then
10002   ac_cv_func_malloc_0_nonnull=no
10003 else
10004   cat >conftest.$ac_ext <<_ACEOF
10005 #line $LINENO "configure"
10006 /* confdefs.h.  */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h.  */
10011 #if STDC_HEADERS || HAVE_STDLIB_H
10012 # include <stdlib.h>
10013 #else
10014 char *malloc ();
10015 #endif
10016
10017 int
10018 main ()
10019 {
10020 exit (malloc (0) ? 0 : 1);
10021   ;
10022   return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest$ac_exeext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027   (eval $ac_link) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ac_cv_func_malloc_0_nonnull=yes
10037 else
10038   echo "$as_me: program exited with status $ac_status" >&5
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042 ( exit $ac_status )
10043 ac_cv_func_malloc_0_nonnull=no
10044 fi
10045 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10046 fi
10047 fi
10048 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10049 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10050 if test $ac_cv_func_malloc_0_nonnull = yes; then
10051
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_MALLOC 1
10054 _ACEOF
10055
10056 else
10057   cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_MALLOC 0
10059 _ACEOF
10060
10061    LIBOBJS="$LIBOBJS malloc.$ac_objext"
10062
10063 cat >>confdefs.h <<\_ACEOF
10064 #define malloc rpl_malloc
10065 _ACEOF
10066
10067 fi
10068
10069
10070
10071
10072   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
10073 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
10074 if test "${ac_cv_func_mbrtowc+set}" = set; then
10075   echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077   cat >conftest.$ac_ext <<_ACEOF
10078 #line $LINENO "configure"
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10084 #include <wchar.h>
10085 int
10086 main ()
10087 {
10088 mbstate_t state; return ! (sizeof state && mbrtowc);
10089   ;
10090   return 0;
10091 }
10092 _ACEOF
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095   (eval $ac_link) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -s conftest$ac_exeext'
10100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101   (eval $ac_try) 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); }; }; then
10105   ac_cv_func_mbrtowc=yes
10106 else
10107   echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10109
10110 ac_cv_func_mbrtowc=no
10111 fi
10112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10113 fi
10114 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
10115 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
10116   if test $ac_cv_func_mbrtowc = yes; then
10117
10118 cat >>confdefs.h <<\_ACEOF
10119 #define HAVE_MBRTOWC 1
10120 _ACEOF
10121
10122   fi
10123
10124 echo "$as_me:$LINENO: checking for working memcmp" >&5
10125 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10126 if test "${ac_cv_func_memcmp_working+set}" = set; then
10127   echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129   if test "$cross_compiling" = yes; then
10130   ac_cv_func_memcmp_working=no
10131 else
10132   cat >conftest.$ac_ext <<_ACEOF
10133 #line $LINENO "configure"
10134 /* confdefs.h.  */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h.  */
10139
10140 int
10141 main ()
10142 {
10143
10144   /* Some versions of memcmp are not 8-bit clean.  */
10145   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10146   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10147     exit (1);
10148
10149   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10150      or more and with at least one buffer not starting on a 4-byte boundary.
10151      William Lewis provided this test program.   */
10152   {
10153     char foo[21];
10154     char bar[21];
10155     int i;
10156     for (i = 0; i < 4; i++)
10157       {
10158         char *a = foo + i;
10159         char *b = bar + i;
10160         strcpy (a, "--------01111111");
10161         strcpy (b, "--------10000000");
10162         if (memcmp (a, b, 16) >= 0)
10163           exit (1);
10164       }
10165     exit (0);
10166   }
10167
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest$ac_exeext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174   (eval $ac_link) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179   (eval $ac_try) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; }; then
10183   ac_cv_func_memcmp_working=yes
10184 else
10185   echo "$as_me: program exited with status $ac_status" >&5
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 ( exit $ac_status )
10190 ac_cv_func_memcmp_working=no
10191 fi
10192 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10193 fi
10194 fi
10195 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10196 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10197 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10198
10199
10200 for ac_header in stdlib.h
10201 do
10202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10204   echo "$as_me:$LINENO: checking for $ac_header" >&5
10205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10207   echo $ECHO_N "(cached) $ECHO_C" >&6
10208 fi
10209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10211 else
10212   # Is the header compilable?
10213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10215 cat >conftest.$ac_ext <<_ACEOF
10216 #line $LINENO "configure"
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 $ac_includes_default
10223 #include <$ac_header>
10224 _ACEOF
10225 rm -f conftest.$ac_objext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10227   (eval $ac_compile) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); } &&
10231          { ac_try='test -s conftest.$ac_objext'
10232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233   (eval $ac_try) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); }; }; then
10237   ac_header_compiler=yes
10238 else
10239   echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242 ac_header_compiler=no
10243 fi
10244 rm -f conftest.$ac_objext conftest.$ac_ext
10245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10246 echo "${ECHO_T}$ac_header_compiler" >&6
10247
10248 # Is the header present?
10249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10252 #line $LINENO "configure"
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258 #include <$ac_header>
10259 _ACEOF
10260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10261   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10262   ac_status=$?
10263   grep -v '^ *+' conftest.er1 >conftest.err
10264   rm -f conftest.er1
10265   cat conftest.err >&5
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); } >/dev/null; then
10268   if test -s conftest.err; then
10269     ac_cpp_err=$ac_c_preproc_warn_flag
10270   else
10271     ac_cpp_err=
10272   fi
10273 else
10274   ac_cpp_err=yes
10275 fi
10276 if test -z "$ac_cpp_err"; then
10277   ac_header_preproc=yes
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282   ac_header_preproc=no
10283 fi
10284 rm -f conftest.err conftest.$ac_ext
10285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10286 echo "${ECHO_T}$ac_header_preproc" >&6
10287
10288 # So?  What about this header?
10289 case $ac_header_compiler:$ac_header_preproc in
10290   yes:no )
10291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10295     (
10296       cat <<\_ASBOX
10297 ## ------------------------------------ ##
10298 ## Report this to bug-autoconf@gnu.org. ##
10299 ## ------------------------------------ ##
10300 _ASBOX
10301     ) |
10302       sed "s/^/$as_me: WARNING:     /" >&2
10303     ;;
10304   no:yes )
10305     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10307     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10311     (
10312       cat <<\_ASBOX
10313 ## ------------------------------------ ##
10314 ## Report this to bug-autoconf@gnu.org. ##
10315 ## ------------------------------------ ##
10316 _ASBOX
10317     ) |
10318       sed "s/^/$as_me: WARNING:     /" >&2
10319     ;;
10320 esac
10321 echo "$as_me:$LINENO: checking for $ac_header" >&5
10322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   eval "$as_ac_Header=$ac_header_preproc"
10327 fi
10328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10330
10331 fi
10332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10333   cat >>confdefs.h <<_ACEOF
10334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10335 _ACEOF
10336
10337 fi
10338
10339 done
10340
10341 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10342 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
10343 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   if test "$cross_compiling" = yes; then
10347   ac_cv_func_realloc_0_nonnull=no
10348 else
10349   cat >conftest.$ac_ext <<_ACEOF
10350 #line $LINENO "configure"
10351 /* confdefs.h.  */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h.  */
10356 #if STDC_HEADERS || HAVE_STDLIB_H
10357 # include <stdlib.h>
10358 #else
10359 char *realloc ();
10360 #endif
10361
10362 int
10363 main ()
10364 {
10365 exit (realloc (0, 0) ? 0 : 1);
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest$ac_exeext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372   (eval $ac_link) 2>&5
10373   ac_status=$?
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377   (eval $ac_try) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); }; }; then
10381   ac_cv_func_realloc_0_nonnull=yes
10382 else
10383   echo "$as_me: program exited with status $ac_status" >&5
10384 echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10386
10387 ( exit $ac_status )
10388 ac_cv_func_realloc_0_nonnull=no
10389 fi
10390 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10391 fi
10392 fi
10393 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10394 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
10395 if test $ac_cv_func_realloc_0_nonnull = yes; then
10396
10397 cat >>confdefs.h <<\_ACEOF
10398 #define HAVE_REALLOC 1
10399 _ACEOF
10400
10401 else
10402   cat >>confdefs.h <<\_ACEOF
10403 #define HAVE_REALLOC 0
10404 _ACEOF
10405
10406    LIBOBJS="$LIBOBJS realloc.$ac_objext"
10407
10408 cat >>confdefs.h <<\_ACEOF
10409 #define realloc rpl_realloc
10410 _ACEOF
10411
10412 fi
10413
10414
10415
10416 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
10417 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
10418 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
10419   echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421   rm -f conftest.sym conftest.file
10422 echo >conftest.file
10423 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10424   if test "$cross_compiling" = yes; then
10425   ac_cv_func_lstat_dereferences_slashed_symlink=no
10426 else
10427   cat >conftest.$ac_ext <<_ACEOF
10428 #line $LINENO "configure"
10429 /* confdefs.h.  */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h.  */
10434 $ac_includes_default
10435 int
10436 main ()
10437 {
10438 struct stat sbuf;
10439      /* Linux will dereference the symlink and fail.
10440         That is better in the sense that it means we will not
10441         have to compile and use the lstat wrapper.  */
10442      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest$ac_exeext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449   (eval $ac_link) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454   (eval $ac_try) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; }; then
10458   ac_cv_func_lstat_dereferences_slashed_symlink=yes
10459 else
10460   echo "$as_me: program exited with status $ac_status" >&5
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10463
10464 ( exit $ac_status )
10465 ac_cv_func_lstat_dereferences_slashed_symlink=no
10466 fi
10467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10468 fi
10469 else
10470   # If the `ln -s' command failed, then we probably don't even
10471   # have an lstat function.
10472   ac_cv_func_lstat_dereferences_slashed_symlink=no
10473 fi
10474 rm -f conftest.sym conftest.file
10475
10476 fi
10477 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10478 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
10479
10480 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10481
10482 cat >>confdefs.h <<_ACEOF
10483 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10484 _ACEOF
10485
10486
10487 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
10488   LIBOBJS="$LIBOBJS lstat.$ac_objext"
10489 fi
10490
10491 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10492 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
10493 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
10494   echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496   if test "$cross_compiling" = yes; then
10497   ac_cv_func_stat_empty_string_bug=yes
10498 else
10499   cat >conftest.$ac_ext <<_ACEOF
10500 #line $LINENO "configure"
10501 /* confdefs.h.  */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h.  */
10506 $ac_includes_default
10507 int
10508 main ()
10509 {
10510 struct stat sbuf;
10511   exit (stat ("", &sbuf) ? 1 : 0);
10512   ;
10513   return 0;
10514 }
10515 _ACEOF
10516 rm -f conftest$ac_exeext
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518   (eval $ac_link) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523   (eval $ac_try) 2>&5
10524   ac_status=$?
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); }; }; then
10527   ac_cv_func_stat_empty_string_bug=yes
10528 else
10529   echo "$as_me: program exited with status $ac_status" >&5
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 ( exit $ac_status )
10534 ac_cv_func_stat_empty_string_bug=no
10535 fi
10536 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10537 fi
10538 fi
10539 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10540 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
10541 if test $ac_cv_func_stat_empty_string_bug = yes; then
10542   LIBOBJS="$LIBOBJS stat.$ac_objext"
10543
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_STAT_EMPTY_STRING_BUG 1
10546 _ACEOF
10547
10548 fi
10549
10550
10551 for ac_func in strftime
10552 do
10553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10554 echo "$as_me:$LINENO: checking for $ac_func" >&5
10555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10556 if eval "test \"\${$as_ac_var+set}\" = set"; then
10557   echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559   cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10561 /* confdefs.h.  */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h.  */
10566 /* System header to define __stub macros and hopefully few prototypes,
10567     which can conflict with char $ac_func (); below.
10568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10569     <limits.h> exists even on freestanding compilers.  */
10570 #ifdef __STDC__
10571 # include <limits.h>
10572 #else
10573 # include <assert.h>
10574 #endif
10575 /* Override any gcc2 internal prototype to avoid an error.  */
10576 #ifdef __cplusplus
10577 extern "C"
10578 {
10579 #endif
10580 /* We use char because int might match the return type of a gcc2
10581    builtin and then its argument prototype would still apply.  */
10582 char $ac_func ();
10583 /* The GNU C library defines this for functions which it implements
10584     to always fail with ENOSYS.  Some functions are actually named
10585     something starting with __ and the normal name is an alias.  */
10586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10587 choke me
10588 #else
10589 char (*f) () = $ac_func;
10590 #endif
10591 #ifdef __cplusplus
10592 }
10593 #endif
10594
10595 int
10596 main ()
10597 {
10598 return f != $ac_func;
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605   (eval $ac_link) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); } &&
10609          { ac_try='test -s conftest$ac_exeext'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   eval "$as_ac_var=yes"
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 eval "$as_ac_var=no"
10621 fi
10622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10623 fi
10624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10626 if test `eval echo '${'$as_ac_var'}'` = yes; then
10627   cat >>confdefs.h <<_ACEOF
10628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10629 _ACEOF
10630
10631 else
10632   # strftime is in -lintl on SCO UNIX.
10633 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10634 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
10635 if test "${ac_cv_lib_intl_strftime+set}" = set; then
10636   echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638   ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-lintl  $LIBS"
10640 cat >conftest.$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10642 /* confdefs.h.  */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h.  */
10647
10648 /* Override any gcc2 internal prototype to avoid an error.  */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 /* We use char because int might match the return type of a gcc2
10653    builtin and then its argument prototype would still apply.  */
10654 char strftime ();
10655 int
10656 main ()
10657 {
10658 strftime ();
10659   ;
10660   return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665   (eval $ac_link) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); } &&
10669          { ac_try='test -s conftest$ac_exeext'
10670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671   (eval $ac_try) 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); }; }; then
10675   ac_cv_lib_intl_strftime=yes
10676 else
10677   echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10679
10680 ac_cv_lib_intl_strftime=no
10681 fi
10682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10683 LIBS=$ac_check_lib_save_LIBS
10684 fi
10685 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10686 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
10687 if test $ac_cv_lib_intl_strftime = yes; then
10688   cat >>confdefs.h <<\_ACEOF
10689 #define HAVE_STRFTIME 1
10690 _ACEOF
10691
10692 LIBS="-lintl $LIBS"
10693 fi
10694
10695 fi
10696 done
10697
10698 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
10699 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
10700 if test "${ac_cv_func_utime_null+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   rm -f conftest.data; >conftest.data
10704 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
10705 if test "$cross_compiling" = yes; then
10706   ac_cv_func_utime_null=no
10707 else
10708   cat >conftest.$ac_ext <<_ACEOF
10709 #line $LINENO "configure"
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715 $ac_includes_default
10716 int
10717 main ()
10718 {
10719 struct stat s, t;
10720   exit (!(stat ("conftest.data", &s) == 0
10721           && utime ("conftest.data", (long *)0) == 0
10722           && stat ("conftest.data", &t) == 0
10723           && t.st_mtime >= s.st_mtime
10724           && t.st_mtime - s.st_mtime < 120));
10725   ;
10726   return 0;
10727 }
10728 _ACEOF
10729 rm -f conftest$ac_exeext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10731   (eval $ac_link) 2>&5
10732   ac_status=$?
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736   (eval $ac_try) 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }; }; then
10740   ac_cv_func_utime_null=yes
10741 else
10742   echo "$as_me: program exited with status $ac_status" >&5
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746 ( exit $ac_status )
10747 ac_cv_func_utime_null=no
10748 fi
10749 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10750 fi
10751 rm -f core core.* *.core
10752 fi
10753 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
10754 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
10755 if test $ac_cv_func_utime_null = yes; then
10756
10757 cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_UTIME_NULL 1
10759 _ACEOF
10760
10761 fi
10762 rm -f conftest.data
10763
10764
10765 for ac_func in vprintf
10766 do
10767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10768 echo "$as_me:$LINENO: checking for $ac_func" >&5
10769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10770 if eval "test \"\${$as_ac_var+set}\" = set"; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773   cat >conftest.$ac_ext <<_ACEOF
10774 #line $LINENO "configure"
10775 /* confdefs.h.  */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h.  */
10780 /* System header to define __stub macros and hopefully few prototypes,
10781     which can conflict with char $ac_func (); below.
10782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10783     <limits.h> exists even on freestanding compilers.  */
10784 #ifdef __STDC__
10785 # include <limits.h>
10786 #else
10787 # include <assert.h>
10788 #endif
10789 /* Override any gcc2 internal prototype to avoid an error.  */
10790 #ifdef __cplusplus
10791 extern "C"
10792 {
10793 #endif
10794 /* We use char because int might match the return type of a gcc2
10795    builtin and then its argument prototype would still apply.  */
10796 char $ac_func ();
10797 /* The GNU C library defines this for functions which it implements
10798     to always fail with ENOSYS.  Some functions are actually named
10799     something starting with __ and the normal name is an alias.  */
10800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10801 choke me
10802 #else
10803 char (*f) () = $ac_func;
10804 #endif
10805 #ifdef __cplusplus
10806 }
10807 #endif
10808
10809 int
10810 main ()
10811 {
10812 return f != $ac_func;
10813   ;
10814   return 0;
10815 }
10816 _ACEOF
10817 rm -f conftest.$ac_objext conftest$ac_exeext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10819   (eval $ac_link) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); } &&
10823          { ac_try='test -s conftest$ac_exeext'
10824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825   (eval $ac_try) 2>&5
10826   ac_status=$?
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); }; }; then
10829   eval "$as_ac_var=yes"
10830 else
10831   echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10833
10834 eval "$as_ac_var=no"
10835 fi
10836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10837 fi
10838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10840 if test `eval echo '${'$as_ac_var'}'` = yes; then
10841   cat >>confdefs.h <<_ACEOF
10842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10843 _ACEOF
10844
10845 echo "$as_me:$LINENO: checking for _doprnt" >&5
10846 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10847 if test "${ac_cv_func__doprnt+set}" = set; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   cat >conftest.$ac_ext <<_ACEOF
10851 #line $LINENO "configure"
10852 /* confdefs.h.  */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h.  */
10857 /* System header to define __stub macros and hopefully few prototypes,
10858     which can conflict with char _doprnt (); below.
10859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10860     <limits.h> exists even on freestanding compilers.  */
10861 #ifdef __STDC__
10862 # include <limits.h>
10863 #else
10864 # include <assert.h>
10865 #endif
10866 /* Override any gcc2 internal prototype to avoid an error.  */
10867 #ifdef __cplusplus
10868 extern "C"
10869 {
10870 #endif
10871 /* We use char because int might match the return type of a gcc2
10872    builtin and then its argument prototype would still apply.  */
10873 char _doprnt ();
10874 /* The GNU C library defines this for functions which it implements
10875     to always fail with ENOSYS.  Some functions are actually named
10876     something starting with __ and the normal name is an alias.  */
10877 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10878 choke me
10879 #else
10880 char (*f) () = _doprnt;
10881 #endif
10882 #ifdef __cplusplus
10883 }
10884 #endif
10885
10886 int
10887 main ()
10888 {
10889 return f != _doprnt;
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896   (eval $ac_link) 2>&5
10897   ac_status=$?
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); } &&
10900          { ac_try='test -s conftest$ac_exeext'
10901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902   (eval $ac_try) 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; }; then
10906   ac_cv_func__doprnt=yes
10907 else
10908   echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911 ac_cv_func__doprnt=no
10912 fi
10913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10914 fi
10915 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10916 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10917 if test $ac_cv_func__doprnt = yes; then
10918
10919 cat >>confdefs.h <<\_ACEOF
10920 #define HAVE_DOPRNT 1
10921 _ACEOF
10922
10923 fi
10924
10925 fi
10926 done
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943 for ac_func in atexit fdatasync hasmntopt memmove memset regcomp setlocale \
10944         strcasecmp strchr strdup strerror strtol strtoul utime
10945 do
10946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10947 echo "$as_me:$LINENO: checking for $ac_func" >&5
10948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10949 if eval "test \"\${$as_ac_var+set}\" = set"; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952   cat >conftest.$ac_ext <<_ACEOF
10953 #line $LINENO "configure"
10954 /* confdefs.h.  */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h.  */
10959 /* System header to define __stub macros and hopefully few prototypes,
10960     which can conflict with char $ac_func (); below.
10961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10962     <limits.h> exists even on freestanding compilers.  */
10963 #ifdef __STDC__
10964 # include <limits.h>
10965 #else
10966 # include <assert.h>
10967 #endif
10968 /* Override any gcc2 internal prototype to avoid an error.  */
10969 #ifdef __cplusplus
10970 extern "C"
10971 {
10972 #endif
10973 /* We use char because int might match the return type of a gcc2
10974    builtin and then its argument prototype would still apply.  */
10975 char $ac_func ();
10976 /* The GNU C library defines this for functions which it implements
10977     to always fail with ENOSYS.  Some functions are actually named
10978     something starting with __ and the normal name is an alias.  */
10979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10980 choke me
10981 #else
10982 char (*f) () = $ac_func;
10983 #endif
10984 #ifdef __cplusplus
10985 }
10986 #endif
10987
10988 int
10989 main ()
10990 {
10991 return f != $ac_func;
10992   ;
10993   return 0;
10994 }
10995 _ACEOF
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10998   (eval $ac_link) 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); } &&
11002          { ac_try='test -s 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   eval "$as_ac_var=yes"
11009 else
11010   echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013 eval "$as_ac_var=no"
11014 fi
11015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11016 fi
11017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11019 if test `eval echo '${'$as_ac_var'}'` = yes; then
11020   cat >>confdefs.h <<_ACEOF
11021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11022 _ACEOF
11023
11024 fi
11025 done
11026
11027
11028 # Makefiles to be created by configure.
11029                                                                                                                                   ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile libntfs/Makefile ntfsprogs/Makefile ntfsprogs/mkntfs.8 ntfsprogs/ntfsfix.8 ntfsprogs/ntfsinfo.8 ntfsprogs/ntfslabel.8 ntfsprogs/ntfsprogs.8 ntfsprogs/ntfsresize.8 ntfsprogs/ntfsundelete.8 ntfsprogs/ntfscluster.8 ntfsprogs.spec"
11030
11031 cat >confcache <<\_ACEOF
11032 # This file is a shell script that caches the results of configure
11033 # tests run on this system so they can be shared between configure
11034 # scripts and configure runs, see configure's option --config-cache.
11035 # It is not useful on other systems.  If it contains results you don't
11036 # want to keep, you may remove or edit it.
11037 #
11038 # config.status only pays attention to the cache file if you give it
11039 # the --recheck option to rerun configure.
11040 #
11041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11043 # following values.
11044
11045 _ACEOF
11046
11047 # The following way of writing the cache mishandles newlines in values,
11048 # but we know of no workaround that is simple, portable, and efficient.
11049 # So, don't put newlines in cache variables' values.
11050 # Ultrix sh set writes to stderr and can't be redirected directly,
11051 # and sets the high bit in the cache file unless we assign to the vars.
11052 {
11053   (set) 2>&1 |
11054     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11055     *ac_space=\ *)
11056       # `set' does not quote correctly, so add quotes (double-quote
11057       # substitution turns \\\\ into \\, and sed turns \\ into \).
11058       sed -n \
11059         "s/'/'\\\\''/g;
11060           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11061       ;;
11062     *)
11063       # `set' quotes correctly as required by POSIX, so do not add quotes.
11064       sed -n \
11065         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11066       ;;
11067     esac;
11068 } |
11069   sed '
11070      t clear
11071      : clear
11072      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11073      t end
11074      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11075      : end' >>confcache
11076 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11077   if test -w $cache_file; then
11078     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11079     cat confcache >$cache_file
11080   else
11081     echo "not updating unwritable cache $cache_file"
11082   fi
11083 fi
11084 rm -f confcache
11085
11086 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11087 # Let make expand exec_prefix.
11088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11089
11090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11092 # trailing colons and then remove the whole line if VPATH becomes empty
11093 # (actually we leave an empty line to preserve line numbers).
11094 if test "x$srcdir" = x.; then
11095   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11096 s/:*\$(srcdir):*/:/;
11097 s/:*\${srcdir}:*/:/;
11098 s/:*@srcdir@:*/:/;
11099 s/^\([^=]*=[    ]*\):*/\1/;
11100 s/:*$//;
11101 s/^[^=]*=[      ]*$//;
11102 }'
11103 fi
11104
11105 DEFS=-DHAVE_CONFIG_H
11106
11107 ac_libobjs=
11108 ac_ltlibobjs=
11109 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11110   # 1. Remove the extension, and $U if already installed.
11111   ac_i=`echo "$ac_i" |
11112          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11113   # 2. Add them.
11114   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11115   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11116 done
11117 LIBOBJS=$ac_libobjs
11118
11119 LTLIBOBJS=$ac_ltlibobjs
11120
11121
11122 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11123   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11124 Usually this means the macro was only invoked conditionally." >&5
11125 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11126 Usually this means the macro was only invoked conditionally." >&2;}
11127    { (exit 1); exit 1; }; }
11128 fi
11129 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
11130   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
11131 Usually this means the macro was only invoked conditionally." >&5
11132 echo "$as_me: error: conditional \"DEBUG\" was never defined.
11133 Usually this means the macro was only invoked conditionally." >&2;}
11134    { (exit 1); exit 1; }; }
11135 fi
11136 if test -z "${REALLYSTATIC_TRUE}" && test -z "${REALLYSTATIC_FALSE}"; then
11137   { { echo "$as_me:$LINENO: error: conditional \"REALLYSTATIC\" was never defined.
11138 Usually this means the macro was only invoked conditionally." >&5
11139 echo "$as_me: error: conditional \"REALLYSTATIC\" was never defined.
11140 Usually this means the macro was only invoked conditionally." >&2;}
11141    { (exit 1); exit 1; }; }
11142 fi
11143 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11144   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11145 Usually this means the macro was only invoked conditionally." >&5
11146 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11147 Usually this means the macro was only invoked conditionally." >&2;}
11148    { (exit 1); exit 1; }; }
11149 fi
11150 if test -z "${GCC_NEEDS_MS_EXTENSIONS_TRUE}" && test -z "${GCC_NEEDS_MS_EXTENSIONS_FALSE}"; then
11151   { { echo "$as_me:$LINENO: error: conditional \"GCC_NEEDS_MS_EXTENSIONS\" was never defined.
11152 Usually this means the macro was only invoked conditionally." >&5
11153 echo "$as_me: error: conditional \"GCC_NEEDS_MS_EXTENSIONS\" was never defined.
11154 Usually this means the macro was only invoked conditionally." >&2;}
11155    { (exit 1); exit 1; }; }
11156 fi
11157
11158 : ${CONFIG_STATUS=./config.status}
11159 ac_clean_files_save=$ac_clean_files
11160 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11161 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11162 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11163 cat >$CONFIG_STATUS <<_ACEOF
11164 #! $SHELL
11165 # Generated by $as_me.
11166 # Run this file to recreate the current configuration.
11167 # Compiler output produced by configure, useful for debugging
11168 # configure, is in config.log if it exists.
11169
11170 debug=false
11171 ac_cs_recheck=false
11172 ac_cs_silent=false
11173 SHELL=\${CONFIG_SHELL-$SHELL}
11174 _ACEOF
11175
11176 cat >>$CONFIG_STATUS <<\_ACEOF
11177 ## --------------------- ##
11178 ## M4sh Initialization.  ##
11179 ## --------------------- ##
11180
11181 # Be Bourne compatible
11182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11183   emulate sh
11184   NULLCMD=:
11185   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11186   # is contrary to our usage.  Disable this feature.
11187   alias -g '${1+"$@"}'='"$@"'
11188 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11189   set -o posix
11190 fi
11191
11192 # Support unset when possible.
11193 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11194   as_unset=unset
11195 else
11196   as_unset=false
11197 fi
11198
11199
11200 # Work around bugs in pre-3.0 UWIN ksh.
11201 $as_unset ENV MAIL MAILPATH
11202 PS1='$ '
11203 PS2='> '
11204 PS4='+ '
11205
11206 # NLS nuisances.
11207 for as_var in \
11208   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11209   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11210   LC_TELEPHONE LC_TIME
11211 do
11212   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11213     eval $as_var=C; export $as_var
11214   else
11215     $as_unset $as_var
11216   fi
11217 done
11218
11219 # Required to use basename.
11220 if expr a : '\(a\)' >/dev/null 2>&1; then
11221   as_expr=expr
11222 else
11223   as_expr=false
11224 fi
11225
11226 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11227   as_basename=basename
11228 else
11229   as_basename=false
11230 fi
11231
11232
11233 # Name of the executable.
11234 as_me=`$as_basename "$0" ||
11235 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11236          X"$0" : 'X\(//\)$' \| \
11237          X"$0" : 'X\(/\)$' \| \
11238          .     : '\(.\)' 2>/dev/null ||
11239 echo X/"$0" |
11240     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11241           /^X\/\(\/\/\)$/{ s//\1/; q; }
11242           /^X\/\(\/\).*/{ s//\1/; q; }
11243           s/.*/./; q'`
11244
11245
11246 # PATH needs CR, and LINENO needs CR and PATH.
11247 # Avoid depending upon Character Ranges.
11248 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11249 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11250 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11251 as_cr_digits='0123456789'
11252 as_cr_alnum=$as_cr_Letters$as_cr_digits
11253
11254 # The user is always right.
11255 if test "${PATH_SEPARATOR+set}" != set; then
11256   echo "#! /bin/sh" >conf$$.sh
11257   echo  "exit 0"   >>conf$$.sh
11258   chmod +x conf$$.sh
11259   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11260     PATH_SEPARATOR=';'
11261   else
11262     PATH_SEPARATOR=:
11263   fi
11264   rm -f conf$$.sh
11265 fi
11266
11267
11268   as_lineno_1=$LINENO
11269   as_lineno_2=$LINENO
11270   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11271   test "x$as_lineno_1" != "x$as_lineno_2" &&
11272   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11273   # Find who we are.  Look in the path if we contain no path at all
11274   # relative or not.
11275   case $0 in
11276     *[\\/]* ) as_myself=$0 ;;
11277     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11279 do
11280   IFS=$as_save_IFS
11281   test -z "$as_dir" && as_dir=.
11282   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11283 done
11284
11285        ;;
11286   esac
11287   # We did not find ourselves, most probably we were run as `sh COMMAND'
11288   # in which case we are not to be found in the path.
11289   if test "x$as_myself" = x; then
11290     as_myself=$0
11291   fi
11292   if test ! -f "$as_myself"; then
11293     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11294 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11295    { (exit 1); exit 1; }; }
11296   fi
11297   case $CONFIG_SHELL in
11298   '')
11299     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11301 do
11302   IFS=$as_save_IFS
11303   test -z "$as_dir" && as_dir=.
11304   for as_base in sh bash ksh sh5; do
11305          case $as_dir in
11306          /*)
11307            if ("$as_dir/$as_base" -c '
11308   as_lineno_1=$LINENO
11309   as_lineno_2=$LINENO
11310   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11311   test "x$as_lineno_1" != "x$as_lineno_2" &&
11312   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11313              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11314              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11315              CONFIG_SHELL=$as_dir/$as_base
11316              export CONFIG_SHELL
11317              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11318            fi;;
11319          esac
11320        done
11321 done
11322 ;;
11323   esac
11324
11325   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11326   # uniformly replaced by the line number.  The first 'sed' inserts a
11327   # line-number line before each line; the second 'sed' does the real
11328   # work.  The second script uses 'N' to pair each line-number line
11329   # with the numbered line, and appends trailing '-' during
11330   # substitution so that $LINENO is not a special case at line end.
11331   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11332   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11333   sed '=' <$as_myself |
11334     sed '
11335       N
11336       s,$,-,
11337       : loop
11338       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11339       t loop
11340       s,-$,,
11341       s,^['$as_cr_digits']*\n,,
11342     ' >$as_me.lineno &&
11343   chmod +x $as_me.lineno ||
11344     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11345 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11346    { (exit 1); exit 1; }; }
11347
11348   # Don't try to exec as it changes $[0], causing all sort of problems
11349   # (the dirname of $[0] is not the place where we might find the
11350   # original and so on.  Autoconf is especially sensible to this).
11351   . ./$as_me.lineno
11352   # Exit status is that of the last command.
11353   exit
11354 }
11355
11356
11357 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11358   *c*,-n*) ECHO_N= ECHO_C='
11359 ' ECHO_T='      ' ;;
11360   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11361   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11362 esac
11363
11364 if expr a : '\(a\)' >/dev/null 2>&1; then
11365   as_expr=expr
11366 else
11367   as_expr=false
11368 fi
11369
11370 rm -f conf$$ conf$$.exe conf$$.file
11371 echo >conf$$.file
11372 if ln -s conf$$.file conf$$ 2>/dev/null; then
11373   # We could just check for DJGPP; but this test a) works b) is more generic
11374   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11375   if test -f conf$$.exe; then
11376     # Don't use ln at all; we don't have any links
11377     as_ln_s='cp -p'
11378   else
11379     as_ln_s='ln -s'
11380   fi
11381 elif ln conf$$.file conf$$ 2>/dev/null; then
11382   as_ln_s=ln
11383 else
11384   as_ln_s='cp -p'
11385 fi
11386 rm -f conf$$ conf$$.exe conf$$.file
11387
11388 if mkdir -p . 2>/dev/null; then
11389   as_mkdir_p=:
11390 else
11391   as_mkdir_p=false
11392 fi
11393
11394 as_executable_p="test -f"
11395
11396 # Sed expression to map a string onto a valid CPP name.
11397 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11398
11399 # Sed expression to map a string onto a valid variable name.
11400 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11401
11402
11403 # IFS
11404 # We need space, tab and new line, in precisely that order.
11405 as_nl='
11406 '
11407 IFS="   $as_nl"
11408
11409 # CDPATH.
11410 $as_unset CDPATH
11411
11412 exec 6>&1
11413
11414 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11415 # report actual input values of CONFIG_FILES etc. instead of their
11416 # values after options handling.  Logging --version etc. is OK.
11417 exec 5>>config.log
11418 {
11419   echo
11420   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11421 ## Running $as_me. ##
11422 _ASBOX
11423 } >&5
11424 cat >&5 <<_CSEOF
11425
11426 This file was extended by ntfsprogs $as_me 1.7.2-WIP, which was
11427 generated by GNU Autoconf 2.57.  Invocation command line was
11428
11429   CONFIG_FILES    = $CONFIG_FILES
11430   CONFIG_HEADERS  = $CONFIG_HEADERS
11431   CONFIG_LINKS    = $CONFIG_LINKS
11432   CONFIG_COMMANDS = $CONFIG_COMMANDS
11433   $ $0 $@
11434
11435 _CSEOF
11436 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11437 echo >&5
11438 _ACEOF
11439
11440 # Files that config.status was made for.
11441 if test -n "$ac_config_files"; then
11442   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11443 fi
11444
11445 if test -n "$ac_config_headers"; then
11446   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11447 fi
11448
11449 if test -n "$ac_config_links"; then
11450   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11451 fi
11452
11453 if test -n "$ac_config_commands"; then
11454   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11455 fi
11456
11457 cat >>$CONFIG_STATUS <<\_ACEOF
11458
11459 ac_cs_usage="\
11460 \`$as_me' instantiates files from templates according to the
11461 current configuration.
11462
11463 Usage: $0 [OPTIONS] [FILE]...
11464
11465   -h, --help       print this help, then exit
11466   -V, --version    print version number, then exit
11467   -q, --quiet      do not print progress messages
11468   -d, --debug      don't remove temporary files
11469       --recheck    update $as_me by reconfiguring in the same conditions
11470   --file=FILE[:TEMPLATE]
11471                    instantiate the configuration file FILE
11472   --header=FILE[:TEMPLATE]
11473                    instantiate the configuration header FILE
11474
11475 Configuration files:
11476 $config_files
11477
11478 Configuration headers:
11479 $config_headers
11480
11481 Configuration commands:
11482 $config_commands
11483
11484 Report bugs to <bug-autoconf@gnu.org>."
11485 _ACEOF
11486
11487 cat >>$CONFIG_STATUS <<_ACEOF
11488 ac_cs_version="\\
11489 ntfsprogs config.status 1.7.2-WIP
11490 configured by $0, generated by GNU Autoconf 2.57,
11491   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11492
11493 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11494 Free Software Foundation, Inc.
11495 This config.status script is free software; the Free Software Foundation
11496 gives unlimited permission to copy, distribute and modify it."
11497 srcdir=$srcdir
11498 INSTALL="$INSTALL"
11499 _ACEOF
11500
11501 cat >>$CONFIG_STATUS <<\_ACEOF
11502 # If no file are specified by the user, then we need to provide default
11503 # value.  By we need to know if files were specified by the user.
11504 ac_need_defaults=:
11505 while test $# != 0
11506 do
11507   case $1 in
11508   --*=*)
11509     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11510     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11511     ac_shift=:
11512     ;;
11513   -*)
11514     ac_option=$1
11515     ac_optarg=$2
11516     ac_shift=shift
11517     ;;
11518   *) # This is not an option, so the user has probably given explicit
11519      # arguments.
11520      ac_option=$1
11521      ac_need_defaults=false;;
11522   esac
11523
11524   case $ac_option in
11525   # Handling of the options.
11526 _ACEOF
11527 cat >>$CONFIG_STATUS <<\_ACEOF
11528   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11529     ac_cs_recheck=: ;;
11530   --version | --vers* | -V )
11531     echo "$ac_cs_version"; exit 0 ;;
11532   --he | --h)
11533     # Conflict between --help and --header
11534     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11535 Try \`$0 --help' for more information." >&5
11536 echo "$as_me: error: ambiguous option: $1
11537 Try \`$0 --help' for more information." >&2;}
11538    { (exit 1); exit 1; }; };;
11539   --help | --hel | -h )
11540     echo "$ac_cs_usage"; exit 0 ;;
11541   --debug | --d* | -d )
11542     debug=: ;;
11543   --file | --fil | --fi | --f )
11544     $ac_shift
11545     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11546     ac_need_defaults=false;;
11547   --header | --heade | --head | --hea )
11548     $ac_shift
11549     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11550     ac_need_defaults=false;;
11551   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11552   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11553     ac_cs_silent=: ;;
11554
11555   # This is an error.
11556   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11557 Try \`$0 --help' for more information." >&5
11558 echo "$as_me: error: unrecognized option: $1
11559 Try \`$0 --help' for more information." >&2;}
11560    { (exit 1); exit 1; }; } ;;
11561
11562   *) ac_config_targets="$ac_config_targets $1" ;;
11563
11564   esac
11565   shift
11566 done
11567
11568 ac_configure_extra_args=
11569
11570 if $ac_cs_silent; then
11571   exec 6>/dev/null
11572   ac_configure_extra_args="$ac_configure_extra_args --silent"
11573 fi
11574
11575 _ACEOF
11576 cat >>$CONFIG_STATUS <<_ACEOF
11577 if \$ac_cs_recheck; then
11578   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11579   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11580 fi
11581
11582 _ACEOF
11583
11584 cat >>$CONFIG_STATUS <<_ACEOF
11585 #
11586 # INIT-COMMANDS section.
11587 #
11588
11589 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11590
11591 _ACEOF
11592
11593
11594
11595 cat >>$CONFIG_STATUS <<\_ACEOF
11596 for ac_config_target in $ac_config_targets
11597 do
11598   case "$ac_config_target" in
11599   # Handling of arguments.
11600   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11601   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11602   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11603   "libntfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libntfs/Makefile" ;;
11604   "ntfsprogs/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/Makefile" ;;
11605   "ntfsprogs/mkntfs.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/mkntfs.8" ;;
11606   "ntfsprogs/ntfsfix.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsfix.8" ;;
11607   "ntfsprogs/ntfsinfo.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsinfo.8" ;;
11608   "ntfsprogs/ntfslabel.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfslabel.8" ;;
11609   "ntfsprogs/ntfsprogs.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsprogs.8" ;;
11610   "ntfsprogs/ntfsresize.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsresize.8" ;;
11611   "ntfsprogs/ntfsundelete.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsundelete.8" ;;
11612   "ntfsprogs/ntfscluster.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscluster.8" ;;
11613   "ntfsprogs.spec" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs.spec" ;;
11614   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11615   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11616   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11617 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11618    { (exit 1); exit 1; }; };;
11619   esac
11620 done
11621
11622 # If the user did not use the arguments to specify the items to instantiate,
11623 # then the envvar interface is used.  Set only those that are not.
11624 # We use the long form for the default assignment because of an extremely
11625 # bizarre bug on SunOS 4.1.3.
11626 if $ac_need_defaults; then
11627   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11628   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11629   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11630 fi
11631
11632 # Have a temporary directory for convenience.  Make it in the build tree
11633 # simply because there is no reason to put it here, and in addition,
11634 # creating and moving files from /tmp can sometimes cause problems.
11635 # Create a temporary directory, and hook for its removal unless debugging.
11636 $debug ||
11637 {
11638   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11639   trap '{ (exit 1); exit 1; }' 1 2 13 15
11640 }
11641
11642 # Create a (secure) tmp directory for tmp files.
11643
11644 {
11645   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11646   test -n "$tmp" && test -d "$tmp"
11647 }  ||
11648 {
11649   tmp=./confstat$$-$RANDOM
11650   (umask 077 && mkdir $tmp)
11651 } ||
11652 {
11653    echo "$me: cannot create a temporary directory in ." >&2
11654    { (exit 1); exit 1; }
11655 }
11656
11657 _ACEOF
11658
11659 cat >>$CONFIG_STATUS <<_ACEOF
11660
11661 #
11662 # CONFIG_FILES section.
11663 #
11664
11665 # No need to generate the scripts if there are no CONFIG_FILES.
11666 # This happens for instance when ./config.status config.h
11667 if test -n "\$CONFIG_FILES"; then
11668   # Protect against being on the right side of a sed subst in config.status.
11669   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11670    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11671 s,@SHELL@,$SHELL,;t t
11672 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11673 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11674 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11675 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11676 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11677 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11678 s,@exec_prefix@,$exec_prefix,;t t
11679 s,@prefix@,$prefix,;t t
11680 s,@program_transform_name@,$program_transform_name,;t t
11681 s,@bindir@,$bindir,;t t
11682 s,@sbindir@,$sbindir,;t t
11683 s,@libexecdir@,$libexecdir,;t t
11684 s,@datadir@,$datadir,;t t
11685 s,@sysconfdir@,$sysconfdir,;t t
11686 s,@sharedstatedir@,$sharedstatedir,;t t
11687 s,@localstatedir@,$localstatedir,;t t
11688 s,@libdir@,$libdir,;t t
11689 s,@includedir@,$includedir,;t t
11690 s,@oldincludedir@,$oldincludedir,;t t
11691 s,@infodir@,$infodir,;t t
11692 s,@mandir@,$mandir,;t t
11693 s,@build_alias@,$build_alias,;t t
11694 s,@host_alias@,$host_alias,;t t
11695 s,@target_alias@,$target_alias,;t t
11696 s,@DEFS@,$DEFS,;t t
11697 s,@ECHO_C@,$ECHO_C,;t t
11698 s,@ECHO_N@,$ECHO_N,;t t
11699 s,@ECHO_T@,$ECHO_T,;t t
11700 s,@LIBS@,$LIBS,;t t
11701 s,@build@,$build,;t t
11702 s,@build_cpu@,$build_cpu,;t t
11703 s,@build_vendor@,$build_vendor,;t t
11704 s,@build_os@,$build_os,;t t
11705 s,@host@,$host,;t t
11706 s,@host_cpu@,$host_cpu,;t t
11707 s,@host_vendor@,$host_vendor,;t t
11708 s,@host_os@,$host_os,;t t
11709 s,@target@,$target,;t t
11710 s,@target_cpu@,$target_cpu,;t t
11711 s,@target_vendor@,$target_vendor,;t t
11712 s,@target_os@,$target_os,;t t
11713 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11714 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11715 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11716 s,@PACKAGE@,$PACKAGE,;t t
11717 s,@VERSION@,$VERSION,;t t
11718 s,@ACLOCAL@,$ACLOCAL,;t t
11719 s,@AUTOCONF@,$AUTOCONF,;t t
11720 s,@AUTOMAKE@,$AUTOMAKE,;t t
11721 s,@AUTOHEADER@,$AUTOHEADER,;t t
11722 s,@MAKEINFO@,$MAKEINFO,;t t
11723 s,@AMTAR@,$AMTAR,;t t
11724 s,@install_sh@,$install_sh,;t t
11725 s,@STRIP@,$STRIP,;t t
11726 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11727 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11728 s,@AWK@,$AWK,;t t
11729 s,@SET_MAKE@,$SET_MAKE,;t t
11730 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11731 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11732 s,@MAINT@,$MAINT,;t t
11733 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
11734 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
11735 s,@REALLYSTATIC_TRUE@,$REALLYSTATIC_TRUE,;t t
11736 s,@REALLYSTATIC_FALSE@,$REALLYSTATIC_FALSE,;t t
11737 s,@CXX@,$CXX,;t t
11738 s,@CXXFLAGS@,$CXXFLAGS,;t t
11739 s,@LDFLAGS@,$LDFLAGS,;t t
11740 s,@CPPFLAGS@,$CPPFLAGS,;t t
11741 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11742 s,@EXEEXT@,$EXEEXT,;t t
11743 s,@OBJEXT@,$OBJEXT,;t t
11744 s,@DEPDIR@,$DEPDIR,;t t
11745 s,@am__include@,$am__include,;t t
11746 s,@am__quote@,$am__quote,;t t
11747 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11748 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11749 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11750 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11751 s,@CC@,$CC,;t t
11752 s,@CFLAGS@,$CFLAGS,;t t
11753 s,@ac_ct_CC@,$ac_ct_CC,;t t
11754 s,@CCDEPMODE@,$CCDEPMODE,;t t
11755 s,@LN_S@,$LN_S,;t t
11756 s,@RANLIB@,$RANLIB,;t t
11757 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11758 s,@ECHO@,$ECHO,;t t
11759 s,@CPP@,$CPP,;t t
11760 s,@EGREP@,$EGREP,;t t
11761 s,@LIBTOOL@,$LIBTOOL,;t t
11762 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
11763 s,@all_includes@,$all_includes,;t t
11764 s,@all_libraries@,$all_libraries,;t t
11765 s,@AUTODIRS@,$AUTODIRS,;t t
11766 s,@GCC_NEEDS_MS_EXTENSIONS_TRUE@,$GCC_NEEDS_MS_EXTENSIONS_TRUE,;t t
11767 s,@GCC_NEEDS_MS_EXTENSIONS_FALSE@,$GCC_NEEDS_MS_EXTENSIONS_FALSE,;t t
11768 s,@LIBOBJS@,$LIBOBJS,;t t
11769 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11770 CEOF
11771
11772 _ACEOF
11773
11774   cat >>$CONFIG_STATUS <<\_ACEOF
11775   # Split the substitutions into bite-sized pieces for seds with
11776   # small command number limits, like on Digital OSF/1 and HP-UX.
11777   ac_max_sed_lines=48
11778   ac_sed_frag=1 # Number of current file.
11779   ac_beg=1 # First line for current file.
11780   ac_end=$ac_max_sed_lines # Line after last line for current file.
11781   ac_more_lines=:
11782   ac_sed_cmds=
11783   while $ac_more_lines; do
11784     if test $ac_beg -gt 1; then
11785       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11786     else
11787       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11788     fi
11789     if test ! -s $tmp/subs.frag; then
11790       ac_more_lines=false
11791     else
11792       # The purpose of the label and of the branching condition is to
11793       # speed up the sed processing (if there are no `@' at all, there
11794       # is no need to browse any of the substitutions).
11795       # These are the two extra sed commands mentioned above.
11796       (echo ':t
11797   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11798       if test -z "$ac_sed_cmds"; then
11799         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11800       else
11801         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11802       fi
11803       ac_sed_frag=`expr $ac_sed_frag + 1`
11804       ac_beg=$ac_end
11805       ac_end=`expr $ac_end + $ac_max_sed_lines`
11806     fi
11807   done
11808   if test -z "$ac_sed_cmds"; then
11809     ac_sed_cmds=cat
11810   fi
11811 fi # test -n "$CONFIG_FILES"
11812
11813 _ACEOF
11814 cat >>$CONFIG_STATUS <<\_ACEOF
11815 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11816   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11817   case $ac_file in
11818   - | *:- | *:-:* ) # input from stdin
11819         cat >$tmp/stdin
11820         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11821         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11822   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11823         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11824   * )   ac_file_in=$ac_file.in ;;
11825   esac
11826
11827   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11828   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11830          X"$ac_file" : 'X\(//\)[^/]' \| \
11831          X"$ac_file" : 'X\(//\)$' \| \
11832          X"$ac_file" : 'X\(/\)' \| \
11833          .     : '\(.\)' 2>/dev/null ||
11834 echo X"$ac_file" |
11835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11836           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11837           /^X\(\/\/\)$/{ s//\1/; q; }
11838           /^X\(\/\).*/{ s//\1/; q; }
11839           s/.*/./; q'`
11840   { if $as_mkdir_p; then
11841     mkdir -p "$ac_dir"
11842   else
11843     as_dir="$ac_dir"
11844     as_dirs=
11845     while test ! -d "$as_dir"; do
11846       as_dirs="$as_dir $as_dirs"
11847       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11849          X"$as_dir" : 'X\(//\)[^/]' \| \
11850          X"$as_dir" : 'X\(//\)$' \| \
11851          X"$as_dir" : 'X\(/\)' \| \
11852          .     : '\(.\)' 2>/dev/null ||
11853 echo X"$as_dir" |
11854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11855           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11856           /^X\(\/\/\)$/{ s//\1/; q; }
11857           /^X\(\/\).*/{ s//\1/; q; }
11858           s/.*/./; q'`
11859     done
11860     test ! -n "$as_dirs" || mkdir $as_dirs
11861   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11863    { (exit 1); exit 1; }; }; }
11864
11865   ac_builddir=.
11866
11867 if test "$ac_dir" != .; then
11868   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11869   # A "../" for each directory in $ac_dir_suffix.
11870   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11871 else
11872   ac_dir_suffix= ac_top_builddir=
11873 fi
11874
11875 case $srcdir in
11876   .)  # No --srcdir option.  We are building in place.
11877     ac_srcdir=.
11878     if test -z "$ac_top_builddir"; then
11879        ac_top_srcdir=.
11880     else
11881        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11882     fi ;;
11883   [\\/]* | ?:[\\/]* )  # Absolute path.
11884     ac_srcdir=$srcdir$ac_dir_suffix;
11885     ac_top_srcdir=$srcdir ;;
11886   *) # Relative path.
11887     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11888     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11889 esac
11890 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11891 # absolute.
11892 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11893 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11894 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11895 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11896
11897
11898   case $INSTALL in
11899   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11900   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11901   esac
11902
11903   if test x"$ac_file" != x-; then
11904     { echo "$as_me:$LINENO: creating $ac_file" >&5
11905 echo "$as_me: creating $ac_file" >&6;}
11906     rm -f "$ac_file"
11907   fi
11908   # Let's still pretend it is `configure' which instantiates (i.e., don't
11909   # use $as_me), people would be surprised to read:
11910   #    /* config.h.  Generated by config.status.  */
11911   if test x"$ac_file" = x-; then
11912     configure_input=
11913   else
11914     configure_input="$ac_file.  "
11915   fi
11916   configure_input=$configure_input"Generated from `echo $ac_file_in |
11917                                      sed 's,.*/,,'` by configure."
11918
11919   # First look for the input files in the build tree, otherwise in the
11920   # src tree.
11921   ac_file_inputs=`IFS=:
11922     for f in $ac_file_in; do
11923       case $f in
11924       -) echo $tmp/stdin ;;
11925       [\\/$]*)
11926          # Absolute (can't be DOS-style, as IFS=:)
11927          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11928 echo "$as_me: error: cannot find input file: $f" >&2;}
11929    { (exit 1); exit 1; }; }
11930          echo $f;;
11931       *) # Relative
11932          if test -f "$f"; then
11933            # Build tree
11934            echo $f
11935          elif test -f "$srcdir/$f"; then
11936            # Source tree
11937            echo $srcdir/$f
11938          else
11939            # /dev/null tree
11940            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11941 echo "$as_me: error: cannot find input file: $f" >&2;}
11942    { (exit 1); exit 1; }; }
11943          fi;;
11944       esac
11945     done` || { (exit 1); exit 1; }
11946 _ACEOF
11947 cat >>$CONFIG_STATUS <<_ACEOF
11948   sed "$ac_vpsub
11949 $extrasub
11950 _ACEOF
11951 cat >>$CONFIG_STATUS <<\_ACEOF
11952 :t
11953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11954 s,@configure_input@,$configure_input,;t t
11955 s,@srcdir@,$ac_srcdir,;t t
11956 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11957 s,@top_srcdir@,$ac_top_srcdir,;t t
11958 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11959 s,@builddir@,$ac_builddir,;t t
11960 s,@abs_builddir@,$ac_abs_builddir,;t t
11961 s,@top_builddir@,$ac_top_builddir,;t t
11962 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11963 s,@INSTALL@,$ac_INSTALL,;t t
11964 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11965   rm -f $tmp/stdin
11966   if test x"$ac_file" != x-; then
11967     mv $tmp/out $ac_file
11968   else
11969     cat $tmp/out
11970     rm -f $tmp/out
11971   fi
11972
11973 done
11974 _ACEOF
11975 cat >>$CONFIG_STATUS <<\_ACEOF
11976
11977 #
11978 # CONFIG_HEADER section.
11979 #
11980
11981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11982 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11983 #
11984 # ac_d sets the value in "#define NAME VALUE" lines.
11985 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11986 ac_dB='[        ].*$,\1#\2'
11987 ac_dC=' '
11988 ac_dD=',;t'
11989 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11990 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11991 ac_uB='$,\1#\2define\3'
11992 ac_uC=' '
11993 ac_uD=',;t'
11994
11995 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11996   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11997   case $ac_file in
11998   - | *:- | *:-:* ) # input from stdin
11999         cat >$tmp/stdin
12000         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12001         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12002   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12003         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12004   * )   ac_file_in=$ac_file.in ;;
12005   esac
12006
12007   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12008 echo "$as_me: creating $ac_file" >&6;}
12009
12010   # First look for the input files in the build tree, otherwise in the
12011   # src tree.
12012   ac_file_inputs=`IFS=:
12013     for f in $ac_file_in; do
12014       case $f in
12015       -) echo $tmp/stdin ;;
12016       [\\/$]*)
12017          # Absolute (can't be DOS-style, as IFS=:)
12018          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12019 echo "$as_me: error: cannot find input file: $f" >&2;}
12020    { (exit 1); exit 1; }; }
12021          echo $f;;
12022       *) # Relative
12023          if test -f "$f"; then
12024            # Build tree
12025            echo $f
12026          elif test -f "$srcdir/$f"; then
12027            # Source tree
12028            echo $srcdir/$f
12029          else
12030            # /dev/null tree
12031            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12032 echo "$as_me: error: cannot find input file: $f" >&2;}
12033    { (exit 1); exit 1; }; }
12034          fi;;
12035       esac
12036     done` || { (exit 1); exit 1; }
12037   # Remove the trailing spaces.
12038   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12039
12040 _ACEOF
12041
12042 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12043 # `conftest.undefs', that substitutes the proper values into
12044 # config.h.in to produce config.h.  The first handles `#define'
12045 # templates, and the second `#undef' templates.
12046 # And first: Protect against being on the right side of a sed subst in
12047 # config.status.  Protect against being in an unquoted here document
12048 # in config.status.
12049 rm -f conftest.defines conftest.undefs
12050 # Using a here document instead of a string reduces the quoting nightmare.
12051 # Putting comments in sed scripts is not portable.
12052 #
12053 # `end' is used to avoid that the second main sed command (meant for
12054 # 0-ary CPP macros) applies to n-ary macro definitions.
12055 # See the Autoconf documentation for `clear'.
12056 cat >confdef2sed.sed <<\_ACEOF
12057 s/[\\&,]/\\&/g
12058 s,[\\$`],\\&,g
12059 t clear
12060 : clear
12061 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12062 t end
12063 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12064 : end
12065 _ACEOF
12066 # If some macros were called several times there might be several times
12067 # the same #defines, which is useless.  Nevertheless, we may not want to
12068 # sort them, since we want the *last* AC-DEFINE to be honored.
12069 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12070 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12071 rm -f confdef2sed.sed
12072
12073 # This sed command replaces #undef with comments.  This is necessary, for
12074 # example, in the case of _POSIX_SOURCE, which is predefined and required
12075 # on some systems where configure will not decide to define it.
12076 cat >>conftest.undefs <<\_ACEOF
12077 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12078 _ACEOF
12079
12080 # Break up conftest.defines because some shells have a limit on the size
12081 # of here documents, and old seds have small limits too (100 cmds).
12082 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12083 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12084 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12085 echo '  :' >>$CONFIG_STATUS
12086 rm -f conftest.tail
12087 while grep . conftest.defines >/dev/null
12088 do
12089   # Write a limited-size here document to $tmp/defines.sed.
12090   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12091   # Speed up: don't consider the non `#define' lines.
12092   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12093   # Work around the forget-to-reset-the-flag bug.
12094   echo 't clr' >>$CONFIG_STATUS
12095   echo ': clr' >>$CONFIG_STATUS
12096   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12097   echo 'CEOF
12098   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12099   rm -f $tmp/in
12100   mv $tmp/out $tmp/in
12101 ' >>$CONFIG_STATUS
12102   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12103   rm -f conftest.defines
12104   mv conftest.tail conftest.defines
12105 done
12106 rm -f conftest.defines
12107 echo '  fi # grep' >>$CONFIG_STATUS
12108 echo >>$CONFIG_STATUS
12109
12110 # Break up conftest.undefs because some shells have a limit on the size
12111 # of here documents, and old seds have small limits too (100 cmds).
12112 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12113 rm -f conftest.tail
12114 while grep . conftest.undefs >/dev/null
12115 do
12116   # Write a limited-size here document to $tmp/undefs.sed.
12117   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12118   # Speed up: don't consider the non `#undef'
12119   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12120   # Work around the forget-to-reset-the-flag bug.
12121   echo 't clr' >>$CONFIG_STATUS
12122   echo ': clr' >>$CONFIG_STATUS
12123   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12124   echo 'CEOF
12125   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12126   rm -f $tmp/in
12127   mv $tmp/out $tmp/in
12128 ' >>$CONFIG_STATUS
12129   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12130   rm -f conftest.undefs
12131   mv conftest.tail conftest.undefs
12132 done
12133 rm -f conftest.undefs
12134
12135 cat >>$CONFIG_STATUS <<\_ACEOF
12136   # Let's still pretend it is `configure' which instantiates (i.e., don't
12137   # use $as_me), people would be surprised to read:
12138   #    /* config.h.  Generated by config.status.  */
12139   if test x"$ac_file" = x-; then
12140     echo "/* Generated by configure.  */" >$tmp/config.h
12141   else
12142     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12143   fi
12144   cat $tmp/in >>$tmp/config.h
12145   rm -f $tmp/in
12146   if test x"$ac_file" != x-; then
12147     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12148       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12149 echo "$as_me: $ac_file is unchanged" >&6;}
12150     else
12151       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12153          X"$ac_file" : 'X\(//\)[^/]' \| \
12154          X"$ac_file" : 'X\(//\)$' \| \
12155          X"$ac_file" : 'X\(/\)' \| \
12156          .     : '\(.\)' 2>/dev/null ||
12157 echo X"$ac_file" |
12158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12159           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12160           /^X\(\/\/\)$/{ s//\1/; q; }
12161           /^X\(\/\).*/{ s//\1/; q; }
12162           s/.*/./; q'`
12163       { if $as_mkdir_p; then
12164     mkdir -p "$ac_dir"
12165   else
12166     as_dir="$ac_dir"
12167     as_dirs=
12168     while test ! -d "$as_dir"; do
12169       as_dirs="$as_dir $as_dirs"
12170       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12172          X"$as_dir" : 'X\(//\)[^/]' \| \
12173          X"$as_dir" : 'X\(//\)$' \| \
12174          X"$as_dir" : 'X\(/\)' \| \
12175          .     : '\(.\)' 2>/dev/null ||
12176 echo X"$as_dir" |
12177     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12178           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12179           /^X\(\/\/\)$/{ s//\1/; q; }
12180           /^X\(\/\).*/{ s//\1/; q; }
12181           s/.*/./; q'`
12182     done
12183     test ! -n "$as_dirs" || mkdir $as_dirs
12184   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12186    { (exit 1); exit 1; }; }; }
12187
12188       rm -f $ac_file
12189       mv $tmp/config.h $ac_file
12190     fi
12191   else
12192     cat $tmp/config.h
12193     rm -f $tmp/config.h
12194   fi
12195   # Run the commands associated with the file.
12196   case $ac_file in
12197     config.h ) # update the timestamp
12198 echo 'timestamp for config.h' >"./stamp-h1"
12199  ;;
12200   esac
12201 done
12202 _ACEOF
12203 cat >>$CONFIG_STATUS <<\_ACEOF
12204
12205 #
12206 # CONFIG_COMMANDS section.
12207 #
12208 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12209   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12210   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12211   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12212 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12213          X"$ac_dest" : 'X\(//\)[^/]' \| \
12214          X"$ac_dest" : 'X\(//\)$' \| \
12215          X"$ac_dest" : 'X\(/\)' \| \
12216          .     : '\(.\)' 2>/dev/null ||
12217 echo X"$ac_dest" |
12218     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12219           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12220           /^X\(\/\/\)$/{ s//\1/; q; }
12221           /^X\(\/\).*/{ s//\1/; q; }
12222           s/.*/./; q'`
12223   ac_builddir=.
12224
12225 if test "$ac_dir" != .; then
12226   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12227   # A "../" for each directory in $ac_dir_suffix.
12228   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12229 else
12230   ac_dir_suffix= ac_top_builddir=
12231 fi
12232
12233 case $srcdir in
12234   .)  # No --srcdir option.  We are building in place.
12235     ac_srcdir=.
12236     if test -z "$ac_top_builddir"; then
12237        ac_top_srcdir=.
12238     else
12239        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12240     fi ;;
12241   [\\/]* | ?:[\\/]* )  # Absolute path.
12242     ac_srcdir=$srcdir$ac_dir_suffix;
12243     ac_top_srcdir=$srcdir ;;
12244   *) # Relative path.
12245     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12246     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12247 esac
12248 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12249 # absolute.
12250 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12251 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12252 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12253 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12254
12255
12256   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12257 echo "$as_me: executing $ac_dest commands" >&6;}
12258   case $ac_dest in
12259     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12260   # Strip MF so we end up with the name of the file.
12261   mf=`echo "$mf" | sed -e 's/:.*$//'`
12262   # Check whether this is an Automake generated Makefile or not.
12263   # We used to match only the files named `Makefile.in', but
12264   # some people rename them; so instead we look at the file content.
12265   # Grep'ing the first line is not enough: some people post-process
12266   # each Makefile.in and add a new line on top of each file to say so.
12267   # So let's grep whole file.
12268   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12269     dirpart=`(dirname "$mf") 2>/dev/null ||
12270 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12271          X"$mf" : 'X\(//\)[^/]' \| \
12272          X"$mf" : 'X\(//\)$' \| \
12273          X"$mf" : 'X\(/\)' \| \
12274          .     : '\(.\)' 2>/dev/null ||
12275 echo X"$mf" |
12276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12277           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12278           /^X\(\/\/\)$/{ s//\1/; q; }
12279           /^X\(\/\).*/{ s//\1/; q; }
12280           s/.*/./; q'`
12281   else
12282     continue
12283   fi
12284   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12285   # Extract the definition of DEP_FILES from the Makefile without
12286   # running `make'.
12287   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12288   test -z "$DEPDIR" && continue
12289   # When using ansi2knr, U may be empty or an underscore; expand it
12290   U=`sed -n -e '/^U = / s///p' < "$mf"`
12291   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12292   # We invoke sed twice because it is the simplest approach to
12293   # changing $(DEPDIR) to its actual value in the expansion.
12294   for file in `sed -n -e '
12295     /^DEP_FILES = .*\\\\$/ {
12296       s/^DEP_FILES = //
12297       :loop
12298         s/\\\\$//
12299         p
12300         n
12301         /\\\\$/ b loop
12302       p
12303     }
12304     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12305        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12306     # Make sure the directory exists.
12307     test -f "$dirpart/$file" && continue
12308     fdir=`(dirname "$file") 2>/dev/null ||
12309 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12310          X"$file" : 'X\(//\)[^/]' \| \
12311          X"$file" : 'X\(//\)$' \| \
12312          X"$file" : 'X\(/\)' \| \
12313          .     : '\(.\)' 2>/dev/null ||
12314 echo X"$file" |
12315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12316           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12317           /^X\(\/\/\)$/{ s//\1/; q; }
12318           /^X\(\/\).*/{ s//\1/; q; }
12319           s/.*/./; q'`
12320     { if $as_mkdir_p; then
12321     mkdir -p $dirpart/$fdir
12322   else
12323     as_dir=$dirpart/$fdir
12324     as_dirs=
12325     while test ! -d "$as_dir"; do
12326       as_dirs="$as_dir $as_dirs"
12327       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12329          X"$as_dir" : 'X\(//\)[^/]' \| \
12330          X"$as_dir" : 'X\(//\)$' \| \
12331          X"$as_dir" : 'X\(/\)' \| \
12332          .     : '\(.\)' 2>/dev/null ||
12333 echo X"$as_dir" |
12334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12335           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12336           /^X\(\/\/\)$/{ s//\1/; q; }
12337           /^X\(\/\).*/{ s//\1/; q; }
12338           s/.*/./; q'`
12339     done
12340     test ! -n "$as_dirs" || mkdir $as_dirs
12341   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12342 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12343    { (exit 1); exit 1; }; }; }
12344
12345     # echo "creating $dirpart/$file"
12346     echo '# dummy' > "$dirpart/$file"
12347   done
12348 done
12349  ;;
12350   esac
12351 done
12352 _ACEOF
12353
12354 cat >>$CONFIG_STATUS <<\_ACEOF
12355
12356 { (exit 0); exit 0; }
12357 _ACEOF
12358 chmod +x $CONFIG_STATUS
12359 ac_clean_files=$ac_clean_files_save
12360
12361
12362 # configure is writing to config.log, and then calls config.status.
12363 # config.status does its own redirection, appending to config.log.
12364 # Unfortunately, on DOS this fails, as config.log is still kept open
12365 # by configure, so config.status won't be able to write to it; its
12366 # output is simply discarded.  So we exec the FD to /dev/null,
12367 # effectively closing config.log, so it can be properly (re)opened and
12368 # appended to by config.status.  When coming back to configure, we
12369 # need to make the FD available again.
12370 if test "$no_create" != yes; then
12371   ac_cs_success=:
12372   ac_config_status_args=
12373   test "$silent" = yes &&
12374     ac_config_status_args="$ac_config_status_args --quiet"
12375   exec 5>/dev/null
12376   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12377   exec 5>>config.log
12378   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12379   # would make configure fail if this is the last instruction.
12380   $ac_cs_success || { (exit 1); exit 1; }
12381 fi
12382