0.6.0-2 release
[manu/suphp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for suPHP 0.6.0.
4 #
5 # Report bugs to <sebastian.marsching@suphp.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Find the correct PATH separator.  Usually this is `:', but
247 # DJGPP uses `;' like DOS.
248 if test "X${PATH_SEPARATOR+set}" != Xset; then
249   UNAME=${UNAME-`uname 2>/dev/null`}
250   case X$UNAME in
251     *-DOS) lt_cv_sys_path_separator=';' ;;
252     *)     lt_cv_sys_path_separator=':' ;;
253   esac
254   PATH_SEPARATOR=$lt_cv_sys_path_separator
255 fi
256
257
258 # Check that we are running under the correct shell.
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 case X$ECHO in
262 X*--fallback-echo)
263   # Remove one level of quotation (which was required for Make).
264   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
265   ;;
266 esac
267
268 echo=${ECHO-echo}
269 if test "X$1" = X--no-reexec; then
270   # Discard the --no-reexec flag, and continue.
271   shift
272 elif test "X$1" = X--fallback-echo; then
273   # Avoid inline document here, it may be left over
274   :
275 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
276   # Yippee, $echo works!
277   :
278 else
279   # Restart under the correct shell.
280   exec $SHELL "$0" --no-reexec ${1+"$@"}
281 fi
282
283 if test "X$1" = X--fallback-echo; then
284   # used as fallback echo
285   shift
286   cat <<EOF
287
288 EOF
289   exit 0
290 fi
291
292 # The HP-UX ksh and POSIX shell print the target directory to stdout
293 # if CDPATH is set.
294 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
295
296 if test -z "$ECHO"; then
297 if test "X${echo_test_string+set}" != Xset; then
298 # find a string as large as possible, as long as the shell can cope with it
299   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
300     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
301     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
302        echo_test_string="`eval $cmd`" &&
303        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
304     then
305       break
306     fi
307   done
308 fi
309
310 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
311    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
312    test "X$echo_testing_string" = "X$echo_test_string"; then
313   :
314 else
315   # The Solaris, AIX, and Digital Unix default echo programs unquote
316   # backslashes.  This makes it impossible to quote backslashes using
317   #   echo "$something" | sed 's/\\/\\\\/g'
318   #
319   # So, first we look for a working echo in the user's PATH.
320
321   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
322   for dir in $PATH /usr/ucb; do
323     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
324        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       echo="$dir/echo"
328       break
329     fi
330   done
331   IFS="$save_ifs"
332
333   if test "X$echo" = Xecho; then
334     # We didn't find a better echo, so look for alternatives.
335     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
336        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
337        test "X$echo_testing_string" = "X$echo_test_string"; then
338       # This shell has a builtin print -r that does the trick.
339       echo='print -r'
340     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
341          test "X$CONFIG_SHELL" != X/bin/ksh; then
342       # If we have ksh, try running configure again with it.
343       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
344       export ORIGINAL_CONFIG_SHELL
345       CONFIG_SHELL=/bin/ksh
346       export CONFIG_SHELL
347       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
348     else
349       # Try using printf.
350       echo='printf %s\n'
351       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
352          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
353          test "X$echo_testing_string" = "X$echo_test_string"; then
354         # Cool, printf works
355         :
356       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357            test "X$echo_testing_string" = 'X\t' &&
358            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359            test "X$echo_testing_string" = "X$echo_test_string"; then
360         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
361         export CONFIG_SHELL
362         SHELL="$CONFIG_SHELL"
363         export SHELL
364         echo="$CONFIG_SHELL $0 --fallback-echo"
365       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
366            test "X$echo_testing_string" = 'X\t' &&
367            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
368            test "X$echo_testing_string" = "X$echo_test_string"; then
369         echo="$CONFIG_SHELL $0 --fallback-echo"
370       else
371         # maybe with a smaller string...
372         prev=:
373
374         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
375           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
376           then
377             break
378           fi
379           prev="$cmd"
380         done
381
382         if test "$prev" != 'sed 50q "$0"'; then
383           echo_test_string=`eval $prev`
384           export echo_test_string
385           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
386         else
387           # Oops.  We lost completely, so just stick with echo.
388           echo=echo
389         fi
390       fi
391     fi
392   fi
393 fi
394 fi
395
396 # Copy echo and quote the copy suitably for passing to libtool from
397 # the Makefile, instead of quoting the original, which is used later.
398 ECHO=$echo
399 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
400    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
401 fi
402
403
404
405 # Name of the host.
406 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
407 # so uname gets run too.
408 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409
410 exec 6>&1
411
412 #
413 # Initializations.
414 #
415 ac_default_prefix=/usr/local
416 ac_config_libobj_dir=.
417 cross_compiling=no
418 subdirs=
419 MFLAGS=
420 MAKEFLAGS=
421 SHELL=${CONFIG_SHELL-/bin/sh}
422
423 # Maximum number of lines to put in a shell here document.
424 # This variable seems obsolete.  It should probably be removed, and
425 # only ac_max_sed_lines should be used.
426 : ${ac_max_here_lines=38}
427
428 # Identity of this package.
429 PACKAGE_NAME='suPHP'
430 PACKAGE_TARNAME='suphp'
431 PACKAGE_VERSION='0.6.0'
432 PACKAGE_STRING='suPHP 0.6.0'
433 PACKAGE_BUGREPORT='sebastian.marsching@suphp.org'
434
435 ac_unique_file="src/Application.cpp"
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 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL APXS APACHE_VERSION_1_3 APACHE_VERSION_2 APXS_INCLUDEDIR APXS_LIBEXECDIR APXS_EXTRA_CFLAGS OPT_APACHEMOD_USERGROUP_DEF COND_AP13_TRUE COND_AP13_FALSE COND_AP20_TRUE COND_AP20_FALSE COND_APUSERGROUP_TRUE COND_APUSERGROUP_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_CC_set=${CC+set}
915 ac_env_CC_value=$CC
916 ac_cv_env_CC_set=${CC+set}
917 ac_cv_env_CC_value=$CC
918 ac_env_CFLAGS_set=${CFLAGS+set}
919 ac_env_CFLAGS_value=$CFLAGS
920 ac_cv_env_CFLAGS_set=${CFLAGS+set}
921 ac_cv_env_CFLAGS_value=$CFLAGS
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_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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 suPHP 0.6.0 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 _ACEOF
1012 fi
1013
1014 if test -n "$ac_init_help"; then
1015   case $ac_init_help in
1016      short | recursive ) echo "Configuration of suPHP 0.6.0:";;
1017    esac
1018   cat <<\_ACEOF
1019
1020 Optional Features:
1021   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1022   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1023   --disable-dependency-tracking Speeds up one-time builds
1024   --enable-dependency-tracking  Do not reject slow dependency extractors
1025   --enable-shared=PKGS  build shared libraries default=yes
1026   --enable-static=PKGS  build static libraries default=yes
1027   --enable-fast-install=PKGS  optimize for fast installation default=yes
1028   --disable-libtool-lock  avoid locking (might break parallel builds)
1029   --enable-checkpath      Check if script resides in DOCUMENT_ROOT (default is
1030                           ENABLED)
1031
1032 Optional Packages:
1033   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1034   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1035   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1036   --with-pic              try to use only PIC/non-PIC objects default=use both
1037   --with-apxs=FILE        Build shared Apache module. FILE is the optional
1038                           pathname to the Apache apxs tool; defaults to
1039                           "apxs".
1040   --with-setid-mode=MODE  Mode to use for setting UID/GID. MODE can be on of
1041                           "owner", "config" or "paranoid"; defaults to
1042                           "paranoid".
1043   --with-min-uid=UID      Minimum UID, which is allowed to run scripts
1044                           (default=100)
1045   --with-min-gid=GID      Minimum GID, which is allowed to run scripts
1046                           (default=100)
1047   --with-apache-user=USERNAME
1048                           Name of the user Apache is running as (default is
1049                           "wwwrun"
1050   --with-logfile=FILE     Path to suPHP logfile (default is
1051                           "/var/log/httpd/suphp_log"
1052
1053 Some influential environment variables:
1054   CC          C compiler command
1055   CFLAGS      C compiler flags
1056   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1057               nonstandard directory <lib dir>
1058   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059               headers in a nonstandard directory <include dir>
1060   CXX         C++ compiler command
1061   CXXFLAGS    C++ compiler flags
1062   CPP         C preprocessor
1063
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1066
1067 Report bugs to <sebastian.marsching@suphp.org>.
1068 _ACEOF
1069 fi
1070
1071 if test "$ac_init_help" = "recursive"; then
1072   # If there are subdirs, report their specific --help.
1073   ac_popdir=`pwd`
1074   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075     test -d $ac_dir || continue
1076     ac_builddir=.
1077
1078 if test "$ac_dir" != .; then
1079   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080   # A "../" for each directory in $ac_dir_suffix.
1081   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083   ac_dir_suffix= ac_top_builddir=
1084 fi
1085
1086 case $srcdir in
1087   .)  # No --srcdir option.  We are building in place.
1088     ac_srcdir=.
1089     if test -z "$ac_top_builddir"; then
1090        ac_top_srcdir=.
1091     else
1092        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093     fi ;;
1094   [\\/]* | ?:[\\/]* )  # Absolute path.
1095     ac_srcdir=$srcdir$ac_dir_suffix;
1096     ac_top_srcdir=$srcdir ;;
1097   *) # Relative path.
1098     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1101
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1104 case `pwd` in
1105 .) ac_abs_builddir="$ac_dir";;
1106 *)
1107   case "$ac_dir" in
1108   .) ac_abs_builddir=`pwd`;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *)
1116   case ${ac_top_builddir}. in
1117   .) ac_abs_top_builddir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120   esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1124 *)
1125   case $ac_srcdir in
1126   .) ac_abs_srcdir=$ac_abs_builddir;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *)
1134   case $ac_top_srcdir in
1135   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138   esac;;
1139 esac
1140
1141     cd $ac_dir
1142     # Check for guested configure; otherwise get Cygnus style configure.
1143     if test -f $ac_srcdir/configure.gnu; then
1144       echo
1145       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146     elif test -f $ac_srcdir/configure; then
1147       echo
1148       $SHELL $ac_srcdir/configure  --help=recursive
1149     elif test -f $ac_srcdir/configure.ac ||
1150            test -f $ac_srcdir/configure.in; then
1151       echo
1152       $ac_configure --help
1153     else
1154       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155     fi
1156     cd $ac_popdir
1157   done
1158 fi
1159
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1162   cat <<\_ACEOF
1163 suPHP configure 0.6.0
1164 generated by GNU Autoconf 2.59
1165
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1169 _ACEOF
1170   exit 0
1171 fi
1172 exec 5>config.log
1173 cat >&5 <<_ACEOF
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1176
1177 It was created by suPHP $as_me 0.6.0, which was
1178 generated by GNU Autoconf 2.59.  Invocation command line was
1179
1180   $ $0 $@
1181
1182 _ACEOF
1183 {
1184 cat <<_ASUNAME
1185 ## --------- ##
1186 ## Platform. ##
1187 ## --------- ##
1188
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1197
1198 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1199 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1202 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1203 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1204 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1205
1206 _ASUNAME
1207
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 for as_dir in $PATH
1210 do
1211   IFS=$as_save_IFS
1212   test -z "$as_dir" && as_dir=.
1213   echo "PATH: $as_dir"
1214 done
1215
1216 } >&5
1217
1218 cat >&5 <<_ACEOF
1219
1220
1221 ## ----------- ##
1222 ## Core tests. ##
1223 ## ----------- ##
1224
1225 _ACEOF
1226
1227
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_configure_args=
1234 ac_configure_args0=
1235 ac_configure_args1=
1236 ac_sep=
1237 ac_must_keep_next=false
1238 for ac_pass in 1 2
1239 do
1240   for ac_arg
1241   do
1242     case $ac_arg in
1243     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245     | -silent | --silent | --silen | --sile | --sil)
1246       continue ;;
1247     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249     esac
1250     case $ac_pass in
1251     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252     2)
1253       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254       if test $ac_must_keep_next = true; then
1255         ac_must_keep_next=false # Got value, back to normal.
1256       else
1257         case $ac_arg in
1258           *=* | --config-cache | -C | -disable-* | --disable-* \
1259           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261           | -with-* | --with-* | -without-* | --without-* | --x)
1262             case "$ac_configure_args0 " in
1263               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264             esac
1265             ;;
1266           -* ) ac_must_keep_next=true ;;
1267         esac
1268       fi
1269       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270       # Get rid of the leading space.
1271       ac_sep=" "
1272       ;;
1273     esac
1274   done
1275 done
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log.  We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285   # Save into config.log some information that might help in debugging.
1286   {
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1293 _ASBOX
1294     echo
1295     # The following way of writing the cache mishandles newlines in values,
1296 {
1297   (set) 2>&1 |
1298     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299     *ac_space=\ *)
1300       sed -n \
1301         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303       ;;
1304     *)
1305       sed -n \
1306         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307       ;;
1308     esac;
1309 }
1310     echo
1311
1312     cat <<\_ASBOX
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1316 _ASBOX
1317     echo
1318     for ac_var in $ac_subst_vars
1319     do
1320       eval ac_val=$`echo $ac_var`
1321       echo "$ac_var='"'"'$ac_val'"'"'"
1322     done | sort
1323     echo
1324
1325     if test -n "$ac_subst_files"; then
1326       cat <<\_ASBOX
1327 ## ------------- ##
1328 ## Output files. ##
1329 ## ------------- ##
1330 _ASBOX
1331       echo
1332       for ac_var in $ac_subst_files
1333       do
1334         eval ac_val=$`echo $ac_var`
1335         echo "$ac_var='"'"'$ac_val'"'"'"
1336       done | sort
1337       echo
1338     fi
1339
1340     if test -s confdefs.h; then
1341       cat <<\_ASBOX
1342 ## ----------- ##
1343 ## confdefs.h. ##
1344 ## ----------- ##
1345 _ASBOX
1346       echo
1347       sed "/^$/d" confdefs.h | sort
1348       echo
1349     fi
1350     test "$ac_signal" != 0 &&
1351       echo "$as_me: caught signal $ac_signal"
1352     echo "$as_me: exit $exit_status"
1353   } >&5
1354   rm -f core *.core &&
1355   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356     exit $exit_status
1357      ' 0
1358 for ac_signal in 1 2 13 15; do
1359   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360 done
1361 ac_signal=0
1362
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366 echo >confdefs.h
1367
1368 # Predefined preprocessor variables.
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392 _ACEOF
1393
1394
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398   if test "x$prefix" != xNONE; then
1399     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400   else
1401     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402   fi
1403 fi
1404 for ac_site_file in $CONFIG_SITE; do
1405   if test -r "$ac_site_file"; then
1406     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408     sed 's/^/| /' "$ac_site_file" >&5
1409     . "$ac_site_file"
1410   fi
1411 done
1412
1413 if test -r "$cache_file"; then
1414   # Some versions of bash will fail to source /dev/null (special
1415   # files actually), so we avoid doing that.
1416   if test -f "$cache_file"; then
1417     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1419     case $cache_file in
1420       [\\/]* | ?:[\\/]* ) . $cache_file;;
1421       *)                      . ./$cache_file;;
1422     esac
1423   fi
1424 else
1425   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1427   >$cache_file
1428 fi
1429
1430 # Check that the precious variables saved in the cache have kept the same
1431 # value.
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436   eval ac_new_set=\$ac_env_${ac_var}_set
1437   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438   eval ac_new_val="\$ac_env_${ac_var}_value"
1439   case $ac_old_set,$ac_new_set in
1440     set,)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,set)
1445       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447       ac_cache_corrupted=: ;;
1448     ,);;
1449     *)
1450       if test "x$ac_old_val" != "x$ac_new_val"; then
1451         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1454 echo "$as_me:   former value:  $ac_old_val" >&2;}
1455         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1456 echo "$as_me:   current value: $ac_new_val" >&2;}
1457         ac_cache_corrupted=:
1458       fi;;
1459   esac
1460   # Pass precious variables to config.status.
1461   if test "$ac_new_set" = set; then
1462     case $ac_new_val in
1463     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465     *) ac_arg=$ac_var=$ac_new_val ;;
1466     esac
1467     case " $ac_configure_args " in
1468       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1469       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470     esac
1471   fi
1472 done
1473 if $ac_cache_corrupted; then
1474   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478    { (exit 1); exit 1; }; }
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514 # Auxiliary tools
1515 ac_aux_dir=
1516 for ac_dir in config $srcdir/config; do
1517   if test -f $ac_dir/install-sh; then
1518     ac_aux_dir=$ac_dir
1519     ac_install_sh="$ac_aux_dir/install-sh -c"
1520     break
1521   elif test -f $ac_dir/install.sh; then
1522     ac_aux_dir=$ac_dir
1523     ac_install_sh="$ac_aux_dir/install.sh -c"
1524     break
1525   elif test -f $ac_dir/shtool; then
1526     ac_aux_dir=$ac_dir
1527     ac_install_sh="$ac_aux_dir/shtool install -c"
1528     break
1529   fi
1530 done
1531 if test -z "$ac_aux_dir"; then
1532   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1533 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1534    { (exit 1); exit 1; }; }
1535 fi
1536 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1539
1540
1541 am__api_version="1.6"
1542 # Find a good install program.  We prefer a C program (faster),
1543 # so one script is as good as another.  But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1548 # AIX /bin/install
1549 # AmigaOS /C/install, which installs bootblocks on floppy discs
1550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1553 # OS/2's system install, which has a completely different semantic
1554 # ./install, which can be erroneously created by make from ./install.sh.
1555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1557 if test -z "$INSTALL"; then
1558 if test "${ac_cv_path_install+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   # Account for people who put trailing slashes in PATH elements.
1567 case $as_dir/ in
1568   ./ | .// | /cC/* | \
1569   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1570   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1571   /usr/ucb/* ) ;;
1572   *)
1573     # OSF1 and SCO ODT 3.0 have their own names for install.
1574     # Don't use installbsd from OSF since it installs stuff as root
1575     # by default.
1576     for ac_prog in ginstall scoinst install; do
1577       for ac_exec_ext in '' $ac_executable_extensions; do
1578         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1579           if test $ac_prog = install &&
1580             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581             # AIX install.  It has an incompatible calling convention.
1582             :
1583           elif test $ac_prog = install &&
1584             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585             # program-specific install script used by HP pwplus--don't use.
1586             :
1587           else
1588             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1589             break 3
1590           fi
1591         fi
1592       done
1593     done
1594     ;;
1595 esac
1596 done
1597
1598
1599 fi
1600   if test "${ac_cv_path_install+set}" = set; then
1601     INSTALL=$ac_cv_path_install
1602   else
1603     # As a last resort, use the slow shell script.  We don't cache a
1604     # path for INSTALL within a source directory, because that will
1605     # break other packages using the cache if that directory is
1606     # removed, or if the path is relative.
1607     INSTALL=$ac_install_sh
1608   fi
1609 fi
1610 echo "$as_me:$LINENO: result: $INSTALL" >&5
1611 echo "${ECHO_T}$INSTALL" >&6
1612
1613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1614 # It thinks the first close brace ends the variable substitution.
1615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1616
1617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1618
1619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1620
1621 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1622 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1623 # Just in case
1624 sleep 1
1625 echo timestamp > conftest.file
1626 # Do `set' in a subshell so we don't clobber the current shell's
1627 # arguments.  Must try -L first in case configure is actually a
1628 # symlink; some systems play weird games with the mod time of symlinks
1629 # (eg FreeBSD returns the mod time of the symlink's containing
1630 # directory).
1631 if (
1632    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1633    if test "$*" = "X"; then
1634       # -L didn't work.
1635       set X `ls -t $srcdir/configure conftest.file`
1636    fi
1637    rm -f conftest.file
1638    if test "$*" != "X $srcdir/configure conftest.file" \
1639       && test "$*" != "X conftest.file $srcdir/configure"; then
1640
1641       # If neither matched, then we have a broken ls.  This can happen
1642       # if, for instance, CONFIG_SHELL is bash and it inherits a
1643       # broken ls alias from the environment.  This has actually
1644       # happened.  Such a system could not be considered "sane".
1645       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1646 alias in your environment" >&5
1647 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1648 alias in your environment" >&2;}
1649    { (exit 1); exit 1; }; }
1650    fi
1651
1652    test "$2" = conftest.file
1653    )
1654 then
1655    # Ok.
1656    :
1657 else
1658    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1659 Check your system clock" >&5
1660 echo "$as_me: error: newly created file is older than distributed files!
1661 Check your system clock" >&2;}
1662    { (exit 1); exit 1; }; }
1663 fi
1664 echo "$as_me:$LINENO: result: yes" >&5
1665 echo "${ECHO_T}yes" >&6
1666 test "$program_prefix" != NONE &&
1667   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1668 # Use a double $ so make ignores it.
1669 test "$program_suffix" != NONE &&
1670   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671 # Double any \ or $.  echo might interpret backslashes.
1672 # By default was `s,x,x', remove it if useless.
1673 cat <<\_ACEOF >conftest.sed
1674 s/[\\$]/&&/g;s/;s,x,x,$//
1675 _ACEOF
1676 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1677 rm conftest.sed
1678
1679
1680 # expand $ac_aux_dir to an absolute path
1681 am_aux_dir=`cd $ac_aux_dir && pwd`
1682
1683 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1684 # Use eval to expand $SHELL
1685 if eval "$MISSING --run true"; then
1686   am_missing_run="$MISSING --run "
1687 else
1688   am_missing_run=
1689   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1690 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1691 fi
1692
1693 for ac_prog in gawk mawk nawk awk
1694 do
1695   # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_AWK+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$AWK"; then
1703   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_AWK="$ac_prog"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 AWK=$ac_cv_prog_AWK
1722 if test -n "$AWK"; then
1723   echo "$as_me:$LINENO: result: $AWK" >&5
1724 echo "${ECHO_T}$AWK" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730   test -n "$AWK" && break
1731 done
1732
1733 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1734 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1735 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1736 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   cat >conftest.make <<\_ACEOF
1740 all:
1741         @echo 'ac_maketemp="$(MAKE)"'
1742 _ACEOF
1743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1744 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1745 if test -n "$ac_maketemp"; then
1746   eval ac_cv_prog_make_${ac_make}_set=yes
1747 else
1748   eval ac_cv_prog_make_${ac_make}_set=no
1749 fi
1750 rm -f conftest.make
1751 fi
1752 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1753   echo "$as_me:$LINENO: result: yes" >&5
1754 echo "${ECHO_T}yes" >&6
1755   SET_MAKE=
1756 else
1757   echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1759   SET_MAKE="MAKE=${MAKE-make}"
1760 fi
1761
1762  # test to see if srcdir already configured
1763 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1764    test -f $srcdir/config.status; then
1765   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1766 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1767    { (exit 1); exit 1; }; }
1768 fi
1769
1770 # Define the identity of the package.
1771  PACKAGE=suPHP
1772  VERSION=0.6.0-pre1
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE "$PACKAGE"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define VERSION "$VERSION"
1782 _ACEOF
1783
1784 # Some tools Automake needs.
1785
1786 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1787
1788
1789 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1790
1791
1792 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1793
1794
1795 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1796
1797
1798 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1799
1800
1801 AMTAR=${AMTAR-"${am_missing_run}tar"}
1802
1803 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1804
1805 # Installed binaries are usually stripped using `strip' when the user
1806 # run `make install-strip'.  However `strip' might not be the right
1807 # tool to use in cross-compilation environments, therefore Automake
1808 # will honor the `STRIP' environment variable to overrule this program.
1809 if test "$cross_compiling" != no; then
1810   if test -n "$ac_tool_prefix"; then
1811   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1812 set dummy ${ac_tool_prefix}strip; ac_word=$2
1813 echo "$as_me:$LINENO: checking for $ac_word" >&5
1814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815 if test "${ac_cv_prog_STRIP+set}" = set; then
1816   echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818   if test -n "$STRIP"; then
1819   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1820 else
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1823 do
1824   IFS=$as_save_IFS
1825   test -z "$as_dir" && as_dir=.
1826   for ac_exec_ext in '' $ac_executable_extensions; do
1827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830     break 2
1831   fi
1832 done
1833 done
1834
1835 fi
1836 fi
1837 STRIP=$ac_cv_prog_STRIP
1838 if test -n "$STRIP"; then
1839   echo "$as_me:$LINENO: result: $STRIP" >&5
1840 echo "${ECHO_T}$STRIP" >&6
1841 else
1842   echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1844 fi
1845
1846 fi
1847 if test -z "$ac_cv_prog_STRIP"; then
1848   ac_ct_STRIP=$STRIP
1849   # Extract the first word of "strip", so it can be a program name with args.
1850 set dummy strip; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1854   echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856   if test -n "$ac_ct_STRIP"; then
1857   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1858 else
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862   IFS=$as_save_IFS
1863   test -z "$as_dir" && as_dir=.
1864   for ac_exec_ext in '' $ac_executable_extensions; do
1865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866     ac_cv_prog_ac_ct_STRIP="strip"
1867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868     break 2
1869   fi
1870 done
1871 done
1872
1873   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1874 fi
1875 fi
1876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1877 if test -n "$ac_ct_STRIP"; then
1878   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1879 echo "${ECHO_T}$ac_ct_STRIP" >&6
1880 else
1881   echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1883 fi
1884
1885   STRIP=$ac_ct_STRIP
1886 else
1887   STRIP="$ac_cv_prog_STRIP"
1888 fi
1889
1890 fi
1891 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1892
1893 # We need awk for the "check" target.  The system "awk" is bad on
1894 # some platforms.
1895
1896
1897
1898 # Check for right directory
1899
1900 # Config headers for automake
1901 # Add the stamp file to the list of files AC keeps track of,
1902 # along with our hook.
1903           ac_config_headers="$ac_config_headers src/config.h"
1904
1905
1906
1907
1908 # Build time sanity check
1909 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1910 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1911 # Just in case
1912 sleep 1
1913 echo timestamp > conftest.file
1914 # Do `set' in a subshell so we don't clobber the current shell's
1915 # arguments.  Must try -L first in case configure is actually a
1916 # symlink; some systems play weird games with the mod time of symlinks
1917 # (eg FreeBSD returns the mod time of the symlink's containing
1918 # directory).
1919 if (
1920    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1921    if test "$*" = "X"; then
1922       # -L didn't work.
1923       set X `ls -t $srcdir/configure conftest.file`
1924    fi
1925    rm -f conftest.file
1926    if test "$*" != "X $srcdir/configure conftest.file" \
1927       && test "$*" != "X conftest.file $srcdir/configure"; then
1928
1929       # If neither matched, then we have a broken ls.  This can happen
1930       # if, for instance, CONFIG_SHELL is bash and it inherits a
1931       # broken ls alias from the environment.  This has actually
1932       # happened.  Such a system could not be considered "sane".
1933       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1934 alias in your environment" >&5
1935 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1936 alias in your environment" >&2;}
1937    { (exit 1); exit 1; }; }
1938    fi
1939
1940    test "$2" = conftest.file
1941    )
1942 then
1943    # Ok.
1944    :
1945 else
1946    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1947 Check your system clock" >&5
1948 echo "$as_me: error: newly created file is older than distributed files!
1949 Check your system clock" >&2;}
1950    { (exit 1); exit 1; }; }
1951 fi
1952 echo "$as_me:$LINENO: result: yes" >&5
1953 echo "${ECHO_T}yes" >&6
1954
1955 # Look for install program
1956 # Find a good install program.  We prefer a C program (faster),
1957 # so one script is as good as another.  But avoid the broken or
1958 # incompatible versions:
1959 # SysV /etc/install, /usr/sbin/install
1960 # SunOS /usr/etc/install
1961 # IRIX /sbin/install
1962 # AIX /bin/install
1963 # AmigaOS /C/install, which installs bootblocks on floppy discs
1964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967 # OS/2's system install, which has a completely different semantic
1968 # ./install, which can be erroneously created by make from ./install.sh.
1969 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1971 if test -z "$INSTALL"; then
1972 if test "${ac_cv_path_install+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   # Account for people who put trailing slashes in PATH elements.
1981 case $as_dir/ in
1982   ./ | .// | /cC/* | \
1983   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1984   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1985   /usr/ucb/* ) ;;
1986   *)
1987     # OSF1 and SCO ODT 3.0 have their own names for install.
1988     # Don't use installbsd from OSF since it installs stuff as root
1989     # by default.
1990     for ac_prog in ginstall scoinst install; do
1991       for ac_exec_ext in '' $ac_executable_extensions; do
1992         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1993           if test $ac_prog = install &&
1994             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1995             # AIX install.  It has an incompatible calling convention.
1996             :
1997           elif test $ac_prog = install &&
1998             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999             # program-specific install script used by HP pwplus--don't use.
2000             :
2001           else
2002             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2003             break 3
2004           fi
2005         fi
2006       done
2007     done
2008     ;;
2009 esac
2010 done
2011
2012
2013 fi
2014   if test "${ac_cv_path_install+set}" = set; then
2015     INSTALL=$ac_cv_path_install
2016   else
2017     # As a last resort, use the slow shell script.  We don't cache a
2018     # path for INSTALL within a source directory, because that will
2019     # break other packages using the cache if that directory is
2020     # removed, or if the path is relative.
2021     INSTALL=$ac_install_sh
2022   fi
2023 fi
2024 echo "$as_me:$LINENO: result: $INSTALL" >&5
2025 echo "${ECHO_T}$INSTALL" >&6
2026
2027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2028 # It thinks the first close brace ends the variable substitution.
2029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2030
2031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2032
2033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2034
2035
2036 # Look for compiler
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042 if test -n "$ac_tool_prefix"; then
2043   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$CC"; then
2051   ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066
2067 fi
2068 fi
2069 CC=$ac_cv_prog_CC
2070 if test -n "$CC"; then
2071   echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2073 else
2074   echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078 fi
2079 if test -z "$ac_cv_prog_CC"; then
2080   ac_ct_CC=$CC
2081   # Extract the first word of "gcc", so it can be a program name with args.
2082 set dummy gcc; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   if test -n "$ac_ct_CC"; then
2089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094   IFS=$as_save_IFS
2095   test -z "$as_dir" && as_dir=.
2096   for ac_exec_ext in '' $ac_executable_extensions; do
2097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098     ac_cv_prog_ac_ct_CC="gcc"
2099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100     break 2
2101   fi
2102 done
2103 done
2104
2105 fi
2106 fi
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2111 else
2112   echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2114 fi
2115
2116   CC=$ac_ct_CC
2117 else
2118   CC="$ac_cv_prog_CC"
2119 fi
2120
2121 if test -z "$CC"; then
2122   if test -n "$ac_tool_prefix"; then
2123   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2124 set dummy ${ac_tool_prefix}cc; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   if test -n "$CC"; then
2131   ac_cv_prog_CC="$CC" # Let the user override the test.
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136   IFS=$as_save_IFS
2137   test -z "$as_dir" && as_dir=.
2138   for ac_exec_ext in '' $ac_executable_extensions; do
2139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140     ac_cv_prog_CC="${ac_tool_prefix}cc"
2141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142     break 2
2143   fi
2144 done
2145 done
2146
2147 fi
2148 fi
2149 CC=$ac_cv_prog_CC
2150 if test -n "$CC"; then
2151   echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6
2153 else
2154   echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2156 fi
2157
2158 fi
2159 if test -z "$ac_cv_prog_CC"; then
2160   ac_ct_CC=$CC
2161   # Extract the first word of "cc", so it can be a program name with args.
2162 set dummy cc; ac_word=$2
2163 echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166   echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168   if test -n "$ac_ct_CC"; then
2169   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174   IFS=$as_save_IFS
2175   test -z "$as_dir" && as_dir=.
2176   for ac_exec_ext in '' $ac_executable_extensions; do
2177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178     ac_cv_prog_ac_ct_CC="cc"
2179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180     break 2
2181   fi
2182 done
2183 done
2184
2185 fi
2186 fi
2187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188 if test -n "$ac_ct_CC"; then
2189   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190 echo "${ECHO_T}$ac_ct_CC" >&6
2191 else
2192   echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2194 fi
2195
2196   CC=$ac_ct_CC
2197 else
2198   CC="$ac_cv_prog_CC"
2199 fi
2200
2201 fi
2202 if test -z "$CC"; then
2203   # Extract the first word of "cc", so it can be a program name with args.
2204 set dummy cc; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_CC+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   if test -n "$CC"; then
2211   ac_cv_prog_CC="$CC" # Let the user override the test.
2212 else
2213   ac_prog_rejected=no
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217   IFS=$as_save_IFS
2218   test -z "$as_dir" && as_dir=.
2219   for ac_exec_ext in '' $ac_executable_extensions; do
2220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2222        ac_prog_rejected=yes
2223        continue
2224      fi
2225     ac_cv_prog_CC="cc"
2226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227     break 2
2228   fi
2229 done
2230 done
2231
2232 if test $ac_prog_rejected = yes; then
2233   # We found a bogon in the path, so make sure we never use it.
2234   set dummy $ac_cv_prog_CC
2235   shift
2236   if test $# != 0; then
2237     # We chose a different compiler from the bogus one.
2238     # However, it has the same basename, so the bogon will be chosen
2239     # first if we set CC to just the basename; use the full file name.
2240     shift
2241     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2242   fi
2243 fi
2244 fi
2245 fi
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248   echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6
2250 else
2251   echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2253 fi
2254
2255 fi
2256 if test -z "$CC"; then
2257   if test -n "$ac_tool_prefix"; then
2258   for ac_prog in cl
2259   do
2260     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2262 echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   if test -n "$CC"; then
2268   ac_cv_prog_CC="$CC" # Let the user override the test.
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279     break 2
2280   fi
2281 done
2282 done
2283
2284 fi
2285 fi
2286 CC=$ac_cv_prog_CC
2287 if test -n "$CC"; then
2288   echo "$as_me:$LINENO: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6
2290 else
2291   echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2293 fi
2294
2295     test -n "$CC" && break
2296   done
2297 fi
2298 if test -z "$CC"; then
2299   ac_ct_CC=$CC
2300   for ac_prog in cl
2301 do
2302   # Extract the first word of "$ac_prog", so it can be a program name with args.
2303 set dummy $ac_prog; ac_word=$2
2304 echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307   echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309   if test -n "$ac_ct_CC"; then
2310   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317   for ac_exec_ext in '' $ac_executable_extensions; do
2318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319     ac_cv_prog_ac_ct_CC="$ac_prog"
2320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321     break 2
2322   fi
2323 done
2324 done
2325
2326 fi
2327 fi
2328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329 if test -n "$ac_ct_CC"; then
2330   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2331 echo "${ECHO_T}$ac_ct_CC" >&6
2332 else
2333   echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6
2335 fi
2336
2337   test -n "$ac_ct_CC" && break
2338 done
2339
2340   CC=$ac_ct_CC
2341 fi
2342
2343 fi
2344
2345
2346 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: no acceptable C compiler found in \$PATH
2349 See \`config.log' for more details." >&2;}
2350    { (exit 1); exit 1; }; }
2351
2352 # Provide some information about the compiler.
2353 echo "$as_me:$LINENO:" \
2354      "checking for C compiler version" >&5
2355 ac_compiler=`set X $ac_compile; echo $2`
2356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2357   (eval $ac_compiler --version </dev/null >&5) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }
2361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2362   (eval $ac_compiler -v </dev/null >&5) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }
2366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2367   (eval $ac_compiler -V </dev/null >&5) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }
2371
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h.  */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h.  */
2378
2379 int
2380 main ()
2381 {
2382
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2391 # of exeext.
2392 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2396   (eval $ac_link_default) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; then
2400   # Find the output, starting from the most likely.  This scheme is
2401 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2402 # resort.
2403
2404 # Be careful to initialize this variable, since it used to be cached.
2405 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2406 ac_cv_exeext=
2407 # b.out is created by i960 compilers.
2408 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2409 do
2410   test -f "$ac_file" || continue
2411   case $ac_file in
2412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2413         ;;
2414     conftest.$ac_ext )
2415         # This is the source file.
2416         ;;
2417     [ab].out )
2418         # We found the default executable, but exeext='' is most
2419         # certainly right.
2420         break;;
2421     *.* )
2422         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423         # FIXME: I believe we export ac_cv_exeext for Libtool,
2424         # but it would be cool to find out if it's true.  Does anybody
2425         # maintain Libtool? --akim.
2426         export ac_cv_exeext
2427         break;;
2428     * )
2429         break;;
2430   esac
2431 done
2432 else
2433   echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2435
2436 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: C compiler cannot create executables
2439 See \`config.log' for more details." >&2;}
2440    { (exit 77); exit 77; }; }
2441 fi
2442
2443 ac_exeext=$ac_cv_exeext
2444 echo "$as_me:$LINENO: result: $ac_file" >&5
2445 echo "${ECHO_T}$ac_file" >&6
2446
2447 # Check the compiler produces executables we can run.  If not, either
2448 # the compiler is broken, or we cross compile.
2449 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2450 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2451 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2452 # If not cross compiling, check that we can run a simple program.
2453 if test "$cross_compiling" != yes; then
2454   if { ac_try='./$ac_file'
2455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; }; then
2460     cross_compiling=no
2461   else
2462     if test "$cross_compiling" = maybe; then
2463         cross_compiling=yes
2464     else
2465         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2466 If you meant to cross compile, use \`--host'.
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot run C compiled programs.
2469 If you meant to cross compile, use \`--host'.
2470 See \`config.log' for more details." >&2;}
2471    { (exit 1); exit 1; }; }
2472     fi
2473   fi
2474 fi
2475 echo "$as_me:$LINENO: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6
2477
2478 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2479 ac_clean_files=$ac_clean_files_save
2480 # Check the compiler produces executables we can run.  If not, either
2481 # the compiler is broken, or we cross compile.
2482 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2483 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2484 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2485 echo "${ECHO_T}$cross_compiling" >&6
2486
2487 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2488 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2490   (eval $ac_link) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; then
2494   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2495 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2496 # work properly (i.e., refer to `conftest.exe'), while it won't with
2497 # `rm'.
2498 for ac_file in conftest.exe conftest conftest.*; do
2499   test -f "$ac_file" || continue
2500   case $ac_file in
2501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2502     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2503           export ac_cv_exeext
2504           break;;
2505     * ) break;;
2506   esac
2507 done
2508 else
2509   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&2;}
2513    { (exit 1); exit 1; }; }
2514 fi
2515
2516 rm -f conftest$ac_cv_exeext
2517 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518 echo "${ECHO_T}$ac_cv_exeext" >&6
2519
2520 rm -f conftest.$ac_ext
2521 EXEEXT=$ac_cv_exeext
2522 ac_exeext=$EXEEXT
2523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2525 if test "${ac_cv_objext+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534
2535 int
2536 main ()
2537 {
2538
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545   (eval $ac_compile) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; then
2549   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550   case $ac_file in
2551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553        break;;
2554   esac
2555 done
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }
2565 fi
2566
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 fi
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588 #ifndef __GNUC__
2589        choke me
2590 #endif
2591
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag"
2606                          || test ! -s conftest.err'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_compiler_gnu=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_compiler_gnu=no
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2627
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2631 GCC=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2634 CFLAGS="-g"
2635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cc_g+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_c_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cc_g=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_cv_prog_cc_g=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2688 if test "$ac_test_CFLAGS" = set; then
2689   CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691   if test "$GCC" = yes; then
2692     CFLAGS="-g -O2"
2693   else
2694     CFLAGS="-g"
2695   fi
2696 else
2697   if test "$GCC" = yes; then
2698     CFLAGS="-O2"
2699   else
2700     CFLAGS=
2701   fi
2702 fi
2703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   ac_cv_prog_cc_stdc=no
2709 ac_save_CC=$CC
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716 #include <stdarg.h>
2717 #include <stdio.h>
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2724      char **p;
2725      int i;
2726 {
2727   return p[i];
2728 }
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2730 {
2731   char *s;
2732   va_list v;
2733   va_start (v,p);
2734   s = g (p, va_arg (v,int));
2735   va_end (v);
2736   return s;
2737 }
2738
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2740    function prototypes and stuff, but not '\xHH' hex character constants.
2741    These don't provoke an error unfortunately, instead are silently treated
2742    as 'x'.  The following induces an error, until -std1 is added to get
2743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2744    array size at least.  It's necessary to write '\x00'==0 to get something
2745    that's true only with -std1.  */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2747
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2752 int argc;
2753 char **argv;
2754 int
2755 main ()
2756 {
2757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 # Don't try gcc -ansi; that turns off useful extensions and
2763 # breaks some systems' header files.
2764 # AIX                   -qlanglvl=ansi
2765 # Ultrix and OSF/1      -std1
2766 # HP-UX 10.20 and later -Ae
2767 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2768 # SVR4                  -Xc -D__EXTENSIONS__
2769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2770 do
2771   CC="$ac_save_CC $ac_arg"
2772   rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_c_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   ac_cv_prog_cc_stdc=$ac_arg
2795 break
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 fi
2801 rm -f conftest.err conftest.$ac_objext
2802 done
2803 rm -f conftest.$ac_ext conftest.$ac_objext
2804 CC=$ac_save_CC
2805
2806 fi
2807
2808 case "x$ac_cv_prog_cc_stdc" in
2809   x|xno)
2810     echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6 ;;
2812   *)
2813     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2815     CC="$CC $ac_cv_prog_cc_stdc" ;;
2816 esac
2817
2818 # Some people use a C++ compiler to compile C.  Since we use `exit',
2819 # in C++ we need to declare it.  In case someone uses the same compiler
2820 # for both compiling C and C++ we need to have the C++ compiler decide
2821 # the declaration of exit, since it's the most demanding environment.
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #ifndef __cplusplus
2824   choke me
2825 #endif
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829   (eval $ac_compile) 2>conftest.er1
2830   ac_status=$?
2831   grep -v '^ *+' conftest.er1 >conftest.err
2832   rm -f conftest.er1
2833   cat conftest.err >&5
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836          { ac_try='test -z "$ac_c_werror_flag"
2837                          || test ! -s conftest.err'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; } &&
2843          { ac_try='test -s conftest.$ac_objext'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849   for ac_declaration in \
2850    '' \
2851    'extern "C" void std::exit (int) throw (); using std::exit;' \
2852    'extern "C" void std::exit (int); using std::exit;' \
2853    'extern "C" void exit (int) throw ();' \
2854    'extern "C" void exit (int);' \
2855    'void exit (int);'
2856 do
2857   cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 $ac_declaration
2864 #include <stdlib.h>
2865 int
2866 main ()
2867 {
2868 exit (42);
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875   (eval $ac_compile) 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          { ac_try='test -z "$ac_c_werror_flag"
2883                          || test ! -s conftest.err'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; } &&
2889          { ac_try='test -s conftest.$ac_objext'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895   :
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 continue
2901 fi
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 $ac_declaration
2910 int
2911 main ()
2912 {
2913 exit (42);
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -z "$ac_c_werror_flag"
2928                          || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   break
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 fi
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 done
2948 rm -f conftest*
2949 if test -n "$ac_declaration"; then
2950   echo '#ifdef __cplusplus' >>confdefs.h
2951   echo $ac_declaration      >>confdefs.h
2952   echo '#endif'             >>confdefs.h
2953 fi
2954
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 fi
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 rm -f .deps 2>/dev/null
2967 mkdir .deps 2>/dev/null
2968 if test -d .deps; then
2969   DEPDIR=.deps
2970 else
2971   # MS-DOS does not allow filenames that begin with a dot.
2972   DEPDIR=_deps
2973 fi
2974 rmdir .deps 2>/dev/null
2975
2976
2977           ac_config_commands="$ac_config_commands depfiles"
2978
2979
2980 am_make=${MAKE-make}
2981 cat > confinc << 'END'
2982 doit:
2983         @echo done
2984 END
2985 # If we don't find an include directive, just comment out the code.
2986 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2987 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2988 am__include="#"
2989 am__quote=
2990 _am_result=none
2991 # First try GNU make style include.
2992 echo "include confinc" > confmf
2993 # We grep out `Entering directory' and `Leaving directory'
2994 # messages which can occur if `w' ends up in MAKEFLAGS.
2995 # In particular we don't look at `^make:' because GNU make might
2996 # be invoked under some other name (usually "gmake"), in which
2997 # case it prints its new name instead of `make'.
2998 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2999    am__include=include
3000    am__quote=
3001    _am_result=GNU
3002 fi
3003 # Now try BSD make style include.
3004 if test "$am__include" = "#"; then
3005    echo '.include "confinc"' > confmf
3006    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3007       am__include=.include
3008       am__quote="\""
3009       _am_result=BSD
3010    fi
3011 fi
3012
3013
3014 echo "$as_me:$LINENO: result: $_am_result" >&5
3015 echo "${ECHO_T}$_am_result" >&6
3016 rm -f confinc confmf
3017
3018 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3019 if test "${enable_dependency_tracking+set}" = set; then
3020   enableval="$enable_dependency_tracking"
3021
3022 fi;
3023 if test "x$enable_dependency_tracking" != xno; then
3024   am_depcomp="$ac_aux_dir/depcomp"
3025   AMDEPBACKSLASH='\'
3026 fi
3027
3028
3029 if test "x$enable_dependency_tracking" != xno; then
3030   AMDEP_TRUE=
3031   AMDEP_FALSE='#'
3032 else
3033   AMDEP_TRUE='#'
3034   AMDEP_FALSE=
3035 fi
3036
3037
3038
3039
3040 depcc="$CC"   am_compiler_list=
3041
3042 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3043 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3044 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3048   # We make a subdir and do the tests there.  Otherwise we can end up
3049   # making bogus files that we don't know about and never remove.  For
3050   # instance it was reported that on HP-UX the gcc test will end up
3051   # making a dummy file named `D' -- because `-MD' means `put the output
3052   # in D'.
3053   mkdir conftest.dir
3054   # Copy depcomp to subdir because otherwise we won't find it if we're
3055   # using a relative directory.
3056   cp "$am_depcomp" conftest.dir
3057   cd conftest.dir
3058
3059   am_cv_CC_dependencies_compiler_type=none
3060   if test "$am_compiler_list" = ""; then
3061      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3062   fi
3063   for depmode in $am_compiler_list; do
3064     # We need to recreate these files for each test, as the compiler may
3065     # overwrite some of them when testing with obscure command lines.
3066     # This happens at least with the AIX C compiler.
3067     echo '#include "conftest.h"' > conftest.c
3068     echo 'int i;' > conftest.h
3069     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3070
3071     case $depmode in
3072     nosideeffect)
3073       # after this tag, mechanisms are not by side-effect, so they'll
3074       # only be used when explicitly requested
3075       if test "x$enable_dependency_tracking" = xyes; then
3076         continue
3077       else
3078         break
3079       fi
3080       ;;
3081     none) break ;;
3082     esac
3083     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3084     # mode.  It turns out that the SunPro C++ compiler does not properly
3085     # handle `-M -o', and we need to detect this.
3086     if depmode=$depmode \
3087        source=conftest.c object=conftest.o \
3088        depfile=conftest.Po tmpdepfile=conftest.TPo \
3089        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3090        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3091        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3092       am_cv_CC_dependencies_compiler_type=$depmode
3093       break
3094     fi
3095   done
3096
3097   cd ..
3098   rm -rf conftest.dir
3099 else
3100   am_cv_CC_dependencies_compiler_type=none
3101 fi
3102
3103 fi
3104 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3105 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3106 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3107
3108
3109 ac_ext=cc
3110 ac_cpp='$CXXCPP $CPPFLAGS'
3111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3114 if test -n "$ac_tool_prefix"; then
3115   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3116   do
3117     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119 echo "$as_me:$LINENO: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_CXX+set}" = set; then
3122   echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124   if test -n "$CXX"; then
3125   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132   for ac_exec_ext in '' $ac_executable_extensions; do
3133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136     break 2
3137   fi
3138 done
3139 done
3140
3141 fi
3142 fi
3143 CXX=$ac_cv_prog_CXX
3144 if test -n "$CXX"; then
3145   echo "$as_me:$LINENO: result: $CXX" >&5
3146 echo "${ECHO_T}$CXX" >&6
3147 else
3148   echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3150 fi
3151
3152     test -n "$CXX" && break
3153   done
3154 fi
3155 if test -z "$CXX"; then
3156   ac_ct_CXX=$CXX
3157   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3158 do
3159   # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3164   echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166   if test -n "$ac_ct_CXX"; then
3167   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174   for ac_exec_ext in '' $ac_executable_extensions; do
3175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176     ac_cv_prog_ac_ct_CXX="$ac_prog"
3177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181 done
3182
3183 fi
3184 fi
3185 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3186 if test -n "$ac_ct_CXX"; then
3187   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3188 echo "${ECHO_T}$ac_ct_CXX" >&6
3189 else
3190   echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3192 fi
3193
3194   test -n "$ac_ct_CXX" && break
3195 done
3196 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3197
3198   CXX=$ac_ct_CXX
3199 fi
3200
3201
3202 # Provide some information about the compiler.
3203 echo "$as_me:$LINENO:" \
3204      "checking for C++ compiler version" >&5
3205 ac_compiler=`set X $ac_compile; echo $2`
3206 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3207   (eval $ac_compiler --version </dev/null >&5) 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }
3211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3212   (eval $ac_compiler -v </dev/null >&5) 2>&5
3213   ac_status=$?
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); }
3216 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3217   (eval $ac_compiler -V </dev/null >&5) 2>&5
3218   ac_status=$?
3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); }
3221
3222 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3223 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3224 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3225   echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227   cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h.  */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h.  */
3233
3234 int
3235 main ()
3236 {
3237 #ifndef __GNUC__
3238        choke me
3239 #endif
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247   (eval $ac_compile) 2>conftest.er1
3248   ac_status=$?
3249   grep -v '^ *+' conftest.er1 >conftest.err
3250   rm -f conftest.er1
3251   cat conftest.err >&5
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); } &&
3254          { ac_try='test -z "$ac_cxx_werror_flag"
3255                          || test ! -s conftest.err'
3256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257   (eval $ac_try) 2>&5
3258   ac_status=$?
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }; } &&
3261          { ac_try='test -s conftest.$ac_objext'
3262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263   (eval $ac_try) 2>&5
3264   ac_status=$?
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); }; }; then
3267   ac_compiler_gnu=yes
3268 else
3269   echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3271
3272 ac_compiler_gnu=no
3273 fi
3274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3276
3277 fi
3278 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3279 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3280 GXX=`test $ac_compiler_gnu = yes && echo yes`
3281 ac_test_CXXFLAGS=${CXXFLAGS+set}
3282 ac_save_CXXFLAGS=$CXXFLAGS
3283 CXXFLAGS="-g"
3284 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3285 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3286 if test "${ac_cv_prog_cxx_g+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295
3296 int
3297 main ()
3298 {
3299
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306   (eval $ac_compile) 2>conftest.er1
3307   ac_status=$?
3308   grep -v '^ *+' conftest.er1 >conftest.err
3309   rm -f conftest.er1
3310   cat conftest.err >&5
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } &&
3313          { ac_try='test -z "$ac_cxx_werror_flag"
3314                          || test ! -s conftest.err'
3315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316   (eval $ac_try) 2>&5
3317   ac_status=$?
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); }; } &&
3320          { ac_try='test -s conftest.$ac_objext'
3321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322   (eval $ac_try) 2>&5
3323   ac_status=$?
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); }; }; then
3326   ac_cv_prog_cxx_g=yes
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331 ac_cv_prog_cxx_g=no
3332 fi
3333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3334 fi
3335 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3336 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3337 if test "$ac_test_CXXFLAGS" = set; then
3338   CXXFLAGS=$ac_save_CXXFLAGS
3339 elif test $ac_cv_prog_cxx_g = yes; then
3340   if test "$GXX" = yes; then
3341     CXXFLAGS="-g -O2"
3342   else
3343     CXXFLAGS="-g"
3344   fi
3345 else
3346   if test "$GXX" = yes; then
3347     CXXFLAGS="-O2"
3348   else
3349     CXXFLAGS=
3350   fi
3351 fi
3352 for ac_declaration in \
3353    '' \
3354    'extern "C" void std::exit (int) throw (); using std::exit;' \
3355    'extern "C" void std::exit (int); using std::exit;' \
3356    'extern "C" void exit (int) throw ();' \
3357    'extern "C" void exit (int);' \
3358    'void exit (int);'
3359 do
3360   cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h.  */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h.  */
3366 $ac_declaration
3367 #include <stdlib.h>
3368 int
3369 main ()
3370 {
3371 exit (42);
3372   ;
3373   return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378   (eval $ac_compile) 2>conftest.er1
3379   ac_status=$?
3380   grep -v '^ *+' conftest.er1 >conftest.err
3381   rm -f conftest.er1
3382   cat conftest.err >&5
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } &&
3385          { ac_try='test -z "$ac_cxx_werror_flag"
3386                          || test ! -s conftest.err'
3387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388   (eval $ac_try) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; } &&
3392          { ac_try='test -s conftest.$ac_objext'
3393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394   (eval $ac_try) 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }; }; then
3398   :
3399 else
3400   echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 continue
3404 fi
3405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 $ac_declaration
3413 int
3414 main ()
3415 {
3416 exit (42);
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423   (eval $ac_compile) 2>conftest.er1
3424   ac_status=$?
3425   grep -v '^ *+' conftest.er1 >conftest.err
3426   rm -f conftest.er1
3427   cat conftest.err >&5
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); } &&
3430          { ac_try='test -z "$ac_cxx_werror_flag"
3431                          || test ! -s conftest.err'
3432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433   (eval $ac_try) 2>&5
3434   ac_status=$?
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); }; } &&
3437          { ac_try='test -s conftest.$ac_objext'
3438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439   (eval $ac_try) 2>&5
3440   ac_status=$?
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); }; }; then
3443   break
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 fi
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450 done
3451 rm -f conftest*
3452 if test -n "$ac_declaration"; then
3453   echo '#ifdef __cplusplus' >>confdefs.h
3454   echo $ac_declaration      >>confdefs.h
3455   echo '#endif'             >>confdefs.h
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464 depcc="$CXX"  am_compiler_list=
3465
3466 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3468 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3472   # We make a subdir and do the tests there.  Otherwise we can end up
3473   # making bogus files that we don't know about and never remove.  For
3474   # instance it was reported that on HP-UX the gcc test will end up
3475   # making a dummy file named `D' -- because `-MD' means `put the output
3476   # in D'.
3477   mkdir conftest.dir
3478   # Copy depcomp to subdir because otherwise we won't find it if we're
3479   # using a relative directory.
3480   cp "$am_depcomp" conftest.dir
3481   cd conftest.dir
3482
3483   am_cv_CXX_dependencies_compiler_type=none
3484   if test "$am_compiler_list" = ""; then
3485      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3486   fi
3487   for depmode in $am_compiler_list; do
3488     # We need to recreate these files for each test, as the compiler may
3489     # overwrite some of them when testing with obscure command lines.
3490     # This happens at least with the AIX C compiler.
3491     echo '#include "conftest.h"' > conftest.c
3492     echo 'int i;' > conftest.h
3493     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3494
3495     case $depmode in
3496     nosideeffect)
3497       # after this tag, mechanisms are not by side-effect, so they'll
3498       # only be used when explicitly requested
3499       if test "x$enable_dependency_tracking" = xyes; then
3500         continue
3501       else
3502         break
3503       fi
3504       ;;
3505     none) break ;;
3506     esac
3507     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3508     # mode.  It turns out that the SunPro C++ compiler does not properly
3509     # handle `-M -o', and we need to detect this.
3510     if depmode=$depmode \
3511        source=conftest.c object=conftest.o \
3512        depfile=conftest.Po tmpdepfile=conftest.TPo \
3513        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3514        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3515        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3516       am_cv_CXX_dependencies_compiler_type=$depmode
3517       break
3518     fi
3519   done
3520
3521   cd ..
3522   rm -rf conftest.dir
3523 else
3524   am_cv_CXX_dependencies_compiler_type=none
3525 fi
3526
3527 fi
3528 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3529 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3530 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3531
3532
3533 # Check whether --enable-shared or --disable-shared was given.
3534 if test "${enable_shared+set}" = set; then
3535   enableval="$enable_shared"
3536   p=${PACKAGE-default}
3537 case $enableval in
3538 yes) enable_shared=yes ;;
3539 no) enable_shared=no ;;
3540 *)
3541   enable_shared=no
3542   # Look at the argument we got.  We use all the common list separators.
3543   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3544   for pkg in $enableval; do
3545     if test "X$pkg" = "X$p"; then
3546       enable_shared=yes
3547     fi
3548   done
3549   IFS="$ac_save_ifs"
3550   ;;
3551 esac
3552 else
3553   enable_shared=yes
3554 fi;
3555 # Check whether --enable-static or --disable-static was given.
3556 if test "${enable_static+set}" = set; then
3557   enableval="$enable_static"
3558   p=${PACKAGE-default}
3559 case $enableval in
3560 yes) enable_static=yes ;;
3561 no) enable_static=no ;;
3562 *)
3563   enable_static=no
3564   # Look at the argument we got.  We use all the common list separators.
3565   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3566   for pkg in $enableval; do
3567     if test "X$pkg" = "X$p"; then
3568       enable_static=yes
3569     fi
3570   done
3571   IFS="$ac_save_ifs"
3572   ;;
3573 esac
3574 else
3575   enable_static=yes
3576 fi;
3577 # Check whether --enable-fast-install or --disable-fast-install was given.
3578 if test "${enable_fast_install+set}" = set; then
3579   enableval="$enable_fast_install"
3580   p=${PACKAGE-default}
3581 case $enableval in
3582 yes) enable_fast_install=yes ;;
3583 no) enable_fast_install=no ;;
3584 *)
3585   enable_fast_install=no
3586   # Look at the argument we got.  We use all the common list separators.
3587   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3588   for pkg in $enableval; do
3589     if test "X$pkg" = "X$p"; then
3590       enable_fast_install=yes
3591     fi
3592   done
3593   IFS="$ac_save_ifs"
3594   ;;
3595 esac
3596 else
3597   enable_fast_install=yes
3598 fi;
3599 # Make sure we can run config.sub.
3600 $ac_config_sub sun4 >/dev/null 2>&1 ||
3601   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3602 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3603    { (exit 1); exit 1; }; }
3604
3605 echo "$as_me:$LINENO: checking build system type" >&5
3606 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3607 if test "${ac_cv_build+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   ac_cv_build_alias=$build_alias
3611 test -z "$ac_cv_build_alias" &&
3612   ac_cv_build_alias=`$ac_config_guess`
3613 test -z "$ac_cv_build_alias" &&
3614   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3615 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3616    { (exit 1); exit 1; }; }
3617 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3618   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3619 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3620    { (exit 1); exit 1; }; }
3621
3622 fi
3623 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3624 echo "${ECHO_T}$ac_cv_build" >&6
3625 build=$ac_cv_build
3626 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3627 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3628 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3629
3630
3631 echo "$as_me:$LINENO: checking host system type" >&5
3632 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3633 if test "${ac_cv_host+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   ac_cv_host_alias=$host_alias
3637 test -z "$ac_cv_host_alias" &&
3638   ac_cv_host_alias=$ac_cv_build_alias
3639 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3640   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3641 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3642    { (exit 1); exit 1; }; }
3643
3644 fi
3645 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3646 echo "${ECHO_T}$ac_cv_host" >&6
3647 host=$ac_cv_host
3648 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3649 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3650 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3651
3652
3653 # Find the correct PATH separator.  Usually this is `:', but
3654 # DJGPP uses `;' like DOS.
3655 if test "X${PATH_SEPARATOR+set}" != Xset; then
3656   UNAME=${UNAME-`uname 2>/dev/null`}
3657   case X$UNAME in
3658     *-DOS) lt_cv_sys_path_separator=';' ;;
3659     *)     lt_cv_sys_path_separator=':' ;;
3660   esac
3661   PATH_SEPARATOR=$lt_cv_sys_path_separator
3662 fi
3663
3664
3665 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3666 if test "${with_gnu_ld+set}" = set; then
3667   withval="$with_gnu_ld"
3668   test "$withval" = no || with_gnu_ld=yes
3669 else
3670   with_gnu_ld=no
3671 fi;
3672 ac_prog=ld
3673 if test "$GCC" = yes; then
3674   # Check if gcc -print-prog-name=ld gives a path.
3675   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3676 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3677   case $host in
3678   *-*-mingw*)
3679     # gcc leaves a trailing carriage return which upsets mingw
3680     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3681   *)
3682     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3683   esac
3684   case $ac_prog in
3685     # Accept absolute paths.
3686     [\\/]* | [A-Za-z]:[\\/]*)
3687       re_direlt='/[^/][^/]*/\.\./'
3688       # Canonicalize the path of ld
3689       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3690       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3691         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3692       done
3693       test -z "$LD" && LD="$ac_prog"
3694       ;;
3695   "")
3696     # If it fails, then pretend we aren't using GCC.
3697     ac_prog=ld
3698     ;;
3699   *)
3700     # If it is relative, then search for the first ld in PATH.
3701     with_gnu_ld=unknown
3702     ;;
3703   esac
3704 elif test "$with_gnu_ld" = yes; then
3705   echo "$as_me:$LINENO: checking for GNU ld" >&5
3706 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3707 else
3708   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3709 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3710 fi
3711 if test "${lt_cv_path_LD+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   if test -z "$LD"; then
3715   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3716   for ac_dir in $PATH; do
3717     test -z "$ac_dir" && ac_dir=.
3718     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3719       lt_cv_path_LD="$ac_dir/$ac_prog"
3720       # Check to see if the program is GNU ld.  I'd rather use --version,
3721       # but apparently some GNU ld's only accept -v.
3722       # Break only if it was the GNU/non-GNU ld that we prefer.
3723       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3724         test "$with_gnu_ld" != no && break
3725       else
3726         test "$with_gnu_ld" != yes && break
3727       fi
3728     fi
3729   done
3730   IFS="$ac_save_ifs"
3731 else
3732   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3733 fi
3734 fi
3735
3736 LD="$lt_cv_path_LD"
3737 if test -n "$LD"; then
3738   echo "$as_me:$LINENO: result: $LD" >&5
3739 echo "${ECHO_T}$LD" >&6
3740 else
3741   echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3743 fi
3744 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3745 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3746    { (exit 1); exit 1; }; }
3747 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3748 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3749 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3750   echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3753 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3754   lt_cv_prog_gnu_ld=yes
3755 else
3756   lt_cv_prog_gnu_ld=no
3757 fi
3758 fi
3759 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3760 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3761 with_gnu_ld=$lt_cv_prog_gnu_ld
3762
3763
3764 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3765 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3766 if test "${lt_cv_ld_reload_flag+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   lt_cv_ld_reload_flag='-r'
3770 fi
3771 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3772 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3773 reload_flag=$lt_cv_ld_reload_flag
3774 test -n "$reload_flag" && reload_flag=" $reload_flag"
3775
3776 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3777 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3778 if test "${lt_cv_path_NM+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   if test -n "$NM"; then
3782   # Let the user override the test.
3783   lt_cv_path_NM="$NM"
3784 else
3785   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3786   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3787     test -z "$ac_dir" && ac_dir=.
3788     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3789     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3790       # Check to see if the nm accepts a BSD-compat flag.
3791       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3792       #   nm: unknown option "B" ignored
3793       # Tru64's nm complains that /dev/null is an invalid object file
3794       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3795         lt_cv_path_NM="$tmp_nm -B"
3796         break
3797       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3798         lt_cv_path_NM="$tmp_nm -p"
3799         break
3800       else
3801         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3802         continue # so that we can try to find one that supports BSD flags
3803       fi
3804     fi
3805   done
3806   IFS="$ac_save_ifs"
3807   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3808 fi
3809 fi
3810
3811 NM="$lt_cv_path_NM"
3812 echo "$as_me:$LINENO: result: $NM" >&5
3813 echo "${ECHO_T}$NM" >&6
3814
3815 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3816 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3817 if test "${lt_cv_path_SED+set}" = set; then
3818   echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820   # Loop through the user's path and test for sed and gsed.
3821 # Then use that list of sed's as ones to test for truncation.
3822 as_executable_p="test -f"
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3825 do
3826   IFS=$as_save_IFS
3827   test -z "$as_dir" && as_dir=.
3828   for ac_prog in sed gsed; do
3829     for ac_exec_ext in '' $ac_executable_extensions; do
3830       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3831         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3832       fi
3833     done
3834   done
3835 done
3836
3837   # Create a temporary directory, and hook for its removal unless debugging.
3838 $debug ||
3839 {
3840   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3841   trap '{ (exit 1); exit 1; }' 1 2 13 15
3842 }
3843
3844 # Create a (secure) tmp directory for tmp files.
3845 : ${TMPDIR=/tmp}
3846 {
3847   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3848   test -n "$tmp" && test -d "$tmp"
3849 }  ||
3850 {
3851   tmp=$TMPDIR/sed$$-$RANDOM
3852   (umask 077 && mkdir $tmp)
3853 } ||
3854 {
3855    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3856    { (exit 1); exit 1; }
3857 }
3858   _max=0
3859   _count=0
3860   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3861   # along with /bin/sed that truncates output.
3862   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3863     test ! -f ${_sed} && break
3864     cat /dev/null > "$tmp/sed.in"
3865     _count=0
3866     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3867     # Check for GNU sed and select it if it is found.
3868     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3869       lt_cv_path_SED=${_sed}
3870       break
3871     fi
3872     while true; do
3873       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3874       mv "$tmp/sed.tmp" "$tmp/sed.in"
3875       cp "$tmp/sed.in" "$tmp/sed.nl"
3876       echo >>"$tmp/sed.nl"
3877       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3878       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3879       # 40000 chars as input seems more than enough
3880       test $_count -gt 10 && break
3881       _count=`expr $_count + 1`
3882       if test $_count -gt $_max; then
3883         _max=$_count
3884         lt_cv_path_SED=$_sed
3885       fi
3886     done
3887   done
3888   rm -rf "$tmp"
3889
3890 fi
3891
3892 if test "X$SED" != "X"; then
3893   lt_cv_path_SED=$SED
3894 else
3895   SED=$lt_cv_path_SED
3896 fi
3897 echo "$as_me:$LINENO: result: $SED" >&5
3898 echo "${ECHO_T}$SED" >&6
3899
3900 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3901 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3902 LN_S=$as_ln_s
3903 if test "$LN_S" = "ln -s"; then
3904   echo "$as_me:$LINENO: result: yes" >&5
3905 echo "${ECHO_T}yes" >&6
3906 else
3907   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3908 echo "${ECHO_T}no, using $LN_S" >&6
3909 fi
3910
3911 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3912 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3913 if test "${lt_cv_deplibs_check_method+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   lt_cv_file_magic_cmd='$MAGIC_CMD'
3917 lt_cv_file_magic_test_file=
3918 lt_cv_deplibs_check_method='unknown'
3919 # Need to set the preceding variable on all platforms that support
3920 # interlibrary dependencies.
3921 # 'none' -- dependencies not supported.
3922 # `unknown' -- same as none, but documents that we really don't know.
3923 # 'pass_all' -- all dependencies passed with no checks.
3924 # 'test_compile' -- check by making test program.
3925 # 'file_magic [[regex]]' -- check by looking for files in library path
3926 # which responds to the $file_magic_cmd with a given egrep regex.
3927 # If you have `file' or equivalent on your system and you're not sure
3928 # whether `pass_all' will *always* work, you probably want this one.
3929
3930 case $host_os in
3931 aix4* | aix5*)
3932   lt_cv_deplibs_check_method=pass_all
3933   ;;
3934
3935 beos*)
3936   lt_cv_deplibs_check_method=pass_all
3937   ;;
3938
3939 bsdi4*)
3940   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3941   lt_cv_file_magic_cmd='/usr/bin/file -L'
3942   lt_cv_file_magic_test_file=/shlib/libc.so
3943   ;;
3944
3945 cygwin* | mingw* | pw32*)
3946   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3947   lt_cv_file_magic_cmd='$OBJDUMP -f'
3948   ;;
3949
3950 darwin* | rhapsody*)
3951   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3952   lt_cv_file_magic_cmd='/usr/bin/file -L'
3953   case "$host_os" in
3954   rhapsody* | darwin1.[012])
3955     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3956     ;;
3957   *) # Darwin 1.3 on
3958     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3959     ;;
3960   esac
3961   ;;
3962
3963 freebsd*)
3964   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3965     case $host_cpu in
3966     i*86 )
3967       # Not sure whether the presence of OpenBSD here was a mistake.
3968       # Let's accept both of them until this is cleared up.
3969       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3970       lt_cv_file_magic_cmd=/usr/bin/file
3971       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3972       ;;
3973     esac
3974   else
3975     lt_cv_deplibs_check_method=pass_all
3976   fi
3977   ;;
3978
3979 gnu*)
3980   lt_cv_deplibs_check_method=pass_all
3981   ;;
3982
3983 hpux10.20*|hpux11*)
3984   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3985   lt_cv_file_magic_cmd=/usr/bin/file
3986   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3987   ;;
3988
3989 irix5* | irix6* | nonstopux*)
3990   case $host_os in
3991   irix5* | nonstopux*)
3992     # this will be overridden with pass_all, but let us keep it just in case
3993     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3994     ;;
3995   *)
3996     case $LD in
3997     *-32|*"-32 ") libmagic=32-bit;;
3998     *-n32|*"-n32 ") libmagic=N32;;
3999     *-64|*"-64 ") libmagic=64-bit;;
4000     *) libmagic=never-match;;
4001     esac
4002     # this will be overridden with pass_all, but let us keep it just in case
4003     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4004     ;;
4005   esac
4006   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4007   lt_cv_deplibs_check_method=pass_all
4008   ;;
4009
4010 # This must be Linux ELF.
4011 linux-gnu*)
4012   case $host_cpu in
4013   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
4014     lt_cv_deplibs_check_method=pass_all ;;
4015   *)
4016     # glibc up to 2.1.1 does not perform some relocations on ARM
4017     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4018   esac
4019   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4020   ;;
4021
4022 linux-uclibc*)
4023   lt_cv_deplibs_check_method=pass_all
4024   lt_cv_file_magic_test_file=`echo /lib/libuClibc*.so`
4025   ;;
4026
4027 netbsd*)
4028   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4029     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4030   else
4031     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4032   fi
4033   ;;
4034
4035 newos6*)
4036   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4037   lt_cv_file_magic_cmd=/usr/bin/file
4038   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4039   ;;
4040
4041 openbsd*)
4042   lt_cv_file_magic_cmd=/usr/bin/file
4043   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4044   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4045     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4046   else
4047     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4048   fi
4049   ;;
4050
4051 osf3* | osf4* | osf5*)
4052   # this will be overridden with pass_all, but let us keep it just in case
4053   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4054   lt_cv_file_magic_test_file=/shlib/libc.so
4055   lt_cv_deplibs_check_method=pass_all
4056   ;;
4057
4058 sco3.2v5*)
4059   lt_cv_deplibs_check_method=pass_all
4060   ;;
4061
4062 solaris*)
4063   lt_cv_deplibs_check_method=pass_all
4064   lt_cv_file_magic_test_file=/lib/libc.so
4065   ;;
4066
4067 sysv5uw[78]* | sysv4*uw2*)
4068   lt_cv_deplibs_check_method=pass_all
4069   ;;
4070
4071 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4072   case $host_vendor in
4073   motorola)
4074     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]'
4075     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4076     ;;
4077   ncr)
4078     lt_cv_deplibs_check_method=pass_all
4079     ;;
4080   sequent)
4081     lt_cv_file_magic_cmd='/bin/file'
4082     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4083     ;;
4084   sni)
4085     lt_cv_file_magic_cmd='/bin/file'
4086     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4087     lt_cv_file_magic_test_file=/lib/libc.so
4088     ;;
4089   siemens)
4090     lt_cv_deplibs_check_method=pass_all
4091     ;;
4092   esac
4093   ;;
4094 esac
4095
4096 fi
4097 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4098 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4099 file_magic_cmd=$lt_cv_file_magic_cmd
4100 deplibs_check_method=$lt_cv_deplibs_check_method
4101
4102
4103
4104
4105
4106
4107
4108
4109 # Check for command to grab the raw symbol name followed by C symbol from nm.
4110 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4111 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4112 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115
4116 # These are sane defaults that work on at least a few old systems.
4117 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4118
4119 # Character class describing NM global symbol codes.
4120 symcode='[BCDEGRST]'
4121
4122 # Regexp to match symbols that can be accessed directly from C.
4123 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4124
4125 # Transform the above into a raw symbol and a C symbol.
4126 symxfrm='\1 \2\3 \3'
4127
4128 # Transform an extracted symbol line into a proper C declaration
4129 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4130
4131 # Transform an extracted symbol line into symbol name and symbol address
4132 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'"
4133
4134 # Define system-specific variables.
4135 case $host_os in
4136 aix*)
4137   symcode='[BCDT]'
4138   ;;
4139 cygwin* | mingw* | pw32*)
4140   symcode='[ABCDGISTW]'
4141   ;;
4142 hpux*) # Its linker distinguishes data from code symbols
4143   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4144   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'"
4145   ;;
4146 irix* | nonstopux*)
4147   symcode='[BCDEGRST]'
4148   ;;
4149 osf*)
4150   symcode='[BCDEGQRST]'
4151   ;;
4152 solaris* | sysv5*)
4153   symcode='[BDT]'
4154   ;;
4155 sysv4)
4156   symcode='[DFNSTU]'
4157   ;;
4158 esac
4159
4160 # Handle CRLF in mingw tool chain
4161 opt_cr=
4162 case $host_os in
4163 mingw*)
4164   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4165   ;;
4166 esac
4167
4168 # If we're using GNU nm, then use its standard symbol codes.
4169 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4170   symcode='[ABCDGISTW]'
4171 fi
4172
4173 # Try without a prefix undercore, then with it.
4174 for ac_symprfx in "" "_"; do
4175
4176   # Write the raw and C identifiers.
4177 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4178
4179   # Check to see that the pipe works correctly.
4180   pipe_works=no
4181   rm -f conftest*
4182   cat > conftest.$ac_ext <<EOF
4183 #ifdef __cplusplus
4184 extern "C" {
4185 #endif
4186 char nm_test_var;
4187 void nm_test_func(){}
4188 #ifdef __cplusplus
4189 }
4190 #endif
4191 int main(){nm_test_var='a';nm_test_func();return(0);}
4192 EOF
4193
4194   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195   (eval $ac_compile) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }; then
4199     # Now try to grab the symbols.
4200     nlist=conftest.nm
4201     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4202   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); } && test -s "$nlist"; then
4206       # Try sorting and uniquifying the output.
4207       if sort "$nlist" | uniq > "$nlist"T; then
4208         mv -f "$nlist"T "$nlist"
4209       else
4210         rm -f "$nlist"T
4211       fi
4212
4213       # Make sure that we snagged all the symbols we need.
4214       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4215         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4216           cat <<EOF > conftest.$ac_ext
4217 #ifdef __cplusplus
4218 extern "C" {
4219 #endif
4220
4221 EOF
4222           # Now generate the symbol file.
4223           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4224
4225           cat <<EOF >> conftest.$ac_ext
4226 #if defined (__STDC__) && __STDC__
4227 # define lt_ptr void *
4228 #else
4229 # define lt_ptr char *
4230 # define const
4231 #endif
4232
4233 /* The mapping between symbol names and symbols. */
4234 const struct {
4235   const char *name;
4236   lt_ptr address;
4237 }
4238 lt_preloaded_symbols[] =
4239 {
4240 EOF
4241           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4242           cat <<\EOF >> conftest.$ac_ext
4243   {0, (lt_ptr) 0}
4244 };
4245
4246 #ifdef __cplusplus
4247 }
4248 #endif
4249 EOF
4250           # Now try linking the two files.
4251           mv conftest.$ac_objext conftstm.$ac_objext
4252           save_LIBS="$LIBS"
4253           save_CFLAGS="$CFLAGS"
4254           LIBS="conftstm.$ac_objext"
4255           CFLAGS="$CFLAGS$no_builtin_flag"
4256           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4257   (eval $ac_link) 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } && test -s conftest$ac_exeext; then
4261             pipe_works=yes
4262           fi
4263           LIBS="$save_LIBS"
4264           CFLAGS="$save_CFLAGS"
4265         else
4266           echo "cannot find nm_test_func in $nlist" >&5
4267         fi
4268       else
4269         echo "cannot find nm_test_var in $nlist" >&5
4270       fi
4271     else
4272       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4273     fi
4274   else
4275     echo "$progname: failed program was:" >&5
4276     cat conftest.$ac_ext >&5
4277   fi
4278   rm -f conftest* conftst*
4279
4280   # Do not use the global_symbol_pipe unless it works.
4281   if test "$pipe_works" = yes; then
4282     break
4283   else
4284     lt_cv_sys_global_symbol_pipe=
4285   fi
4286 done
4287
4288 fi
4289
4290 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4291 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4292   global_symbol_to_cdecl=
4293   global_symbol_to_c_name_address=
4294 else
4295   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4296   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4297 fi
4298 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4299 then
4300   echo "$as_me:$LINENO: result: failed" >&5
4301 echo "${ECHO_T}failed" >&6
4302 else
4303   echo "$as_me:$LINENO: result: ok" >&5
4304 echo "${ECHO_T}ok" >&6
4305 fi
4306
4307 ac_ext=c
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4313 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4314 # On Suns, sometimes $CPP names a directory.
4315 if test -n "$CPP" && test -d "$CPP"; then
4316   CPP=
4317 fi
4318 if test -z "$CPP"; then
4319   if test "${ac_cv_prog_CPP+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322       # Double quotes because CPP needs to be expanded
4323     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4324     do
4325       ac_preproc_ok=false
4326 for ac_c_preproc_warn_flag in '' yes
4327 do
4328   # Use a header file that comes with gcc, so configuring glibc
4329   # with a fresh cross-compiler works.
4330   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331   # <limits.h> exists even on freestanding compilers.
4332   # On the NeXT, cc -E runs the code through the compiler's parser,
4333   # not just through cpp. "Syntax error" is here to catch this case.
4334   cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 #ifdef __STDC__
4341 # include <limits.h>
4342 #else
4343 # include <assert.h>
4344 #endif
4345                      Syntax error
4346 _ACEOF
4347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4348   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4349   ac_status=$?
4350   grep -v '^ *+' conftest.er1 >conftest.err
4351   rm -f conftest.er1
4352   cat conftest.err >&5
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); } >/dev/null; then
4355   if test -s conftest.err; then
4356     ac_cpp_err=$ac_c_preproc_warn_flag
4357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4358   else
4359     ac_cpp_err=
4360   fi
4361 else
4362   ac_cpp_err=yes
4363 fi
4364 if test -z "$ac_cpp_err"; then
4365   :
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370   # Broken: fails on valid input.
4371 continue
4372 fi
4373 rm -f conftest.err conftest.$ac_ext
4374
4375   # OK, works on sane cases.  Now check whether non-existent headers
4376   # can be detected and how.
4377   cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383 #include <ac_nonexistent.h>
4384 _ACEOF
4385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4387   ac_status=$?
4388   grep -v '^ *+' conftest.er1 >conftest.err
4389   rm -f conftest.er1
4390   cat conftest.err >&5
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } >/dev/null; then
4393   if test -s conftest.err; then
4394     ac_cpp_err=$ac_c_preproc_warn_flag
4395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4396   else
4397     ac_cpp_err=
4398   fi
4399 else
4400   ac_cpp_err=yes
4401 fi
4402 if test -z "$ac_cpp_err"; then
4403   # Broken: success on invalid input.
4404 continue
4405 else
4406   echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409   # Passes both tests.
4410 ac_preproc_ok=:
4411 break
4412 fi
4413 rm -f conftest.err conftest.$ac_ext
4414
4415 done
4416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4417 rm -f conftest.err conftest.$ac_ext
4418 if $ac_preproc_ok; then
4419   break
4420 fi
4421
4422     done
4423     ac_cv_prog_CPP=$CPP
4424
4425 fi
4426   CPP=$ac_cv_prog_CPP
4427 else
4428   ac_cv_prog_CPP=$CPP
4429 fi
4430 echo "$as_me:$LINENO: result: $CPP" >&5
4431 echo "${ECHO_T}$CPP" >&6
4432 ac_preproc_ok=false
4433 for ac_c_preproc_warn_flag in '' yes
4434 do
4435   # Use a header file that comes with gcc, so configuring glibc
4436   # with a fresh cross-compiler works.
4437   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4438   # <limits.h> exists even on freestanding compilers.
4439   # On the NeXT, cc -E runs the code through the compiler's parser,
4440   # not just through cpp. "Syntax error" is here to catch this case.
4441   cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447 #ifdef __STDC__
4448 # include <limits.h>
4449 #else
4450 # include <assert.h>
4451 #endif
4452                      Syntax error
4453 _ACEOF
4454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } >/dev/null; then
4462   if test -s conftest.err; then
4463     ac_cpp_err=$ac_c_preproc_warn_flag
4464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4465   else
4466     ac_cpp_err=
4467   fi
4468 else
4469   ac_cpp_err=yes
4470 fi
4471 if test -z "$ac_cpp_err"; then
4472   :
4473 else
4474   echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477   # Broken: fails on valid input.
4478 continue
4479 fi
4480 rm -f conftest.err conftest.$ac_ext
4481
4482   # OK, works on sane cases.  Now check whether non-existent headers
4483   # can be detected and how.
4484   cat >conftest.$ac_ext <<_ACEOF
4485 /* confdefs.h.  */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h.  */
4490 #include <ac_nonexistent.h>
4491 _ACEOF
4492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4494   ac_status=$?
4495   grep -v '^ *+' conftest.er1 >conftest.err
4496   rm -f conftest.er1
4497   cat conftest.err >&5
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } >/dev/null; then
4500   if test -s conftest.err; then
4501     ac_cpp_err=$ac_c_preproc_warn_flag
4502     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4503   else
4504     ac_cpp_err=
4505   fi
4506 else
4507   ac_cpp_err=yes
4508 fi
4509 if test -z "$ac_cpp_err"; then
4510   # Broken: success on invalid input.
4511 continue
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516   # Passes both tests.
4517 ac_preproc_ok=:
4518 break
4519 fi
4520 rm -f conftest.err conftest.$ac_ext
4521
4522 done
4523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4524 rm -f conftest.err conftest.$ac_ext
4525 if $ac_preproc_ok; then
4526   :
4527 else
4528   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4529 See \`config.log' for more details." >&5
4530 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4531 See \`config.log' for more details." >&2;}
4532    { (exit 1); exit 1; }; }
4533 fi
4534
4535 ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541
4542 echo "$as_me:$LINENO: checking for egrep" >&5
4543 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4544 if test "${ac_cv_prog_egrep+set}" = set; then
4545   echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4548     then ac_cv_prog_egrep='grep -E'
4549     else ac_cv_prog_egrep='egrep'
4550     fi
4551 fi
4552 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4553 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4554  EGREP=$ac_cv_prog_egrep
4555
4556
4557 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4558 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4559 if test "${ac_cv_header_stdc+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h.  */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h.  */
4568 #include <stdlib.h>
4569 #include <stdarg.h>
4570 #include <string.h>
4571 #include <float.h>
4572
4573 int
4574 main ()
4575 {
4576
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583   (eval $ac_compile) 2>conftest.er1
4584   ac_status=$?
4585   grep -v '^ *+' conftest.er1 >conftest.err
4586   rm -f conftest.er1
4587   cat conftest.err >&5
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); } &&
4590          { ac_try='test -z "$ac_c_werror_flag"
4591                          || test ! -s conftest.err'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; } &&
4597          { ac_try='test -s conftest.$ac_objext'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   ac_cv_header_stdc=yes
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 ac_cv_header_stdc=no
4609 fi
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611
4612 if test $ac_cv_header_stdc = yes; then
4613   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4614   cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620 #include <string.h>
4621
4622 _ACEOF
4623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624   $EGREP "memchr" >/dev/null 2>&1; then
4625   :
4626 else
4627   ac_cv_header_stdc=no
4628 fi
4629 rm -f conftest*
4630
4631 fi
4632
4633 if test $ac_cv_header_stdc = yes; then
4634   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4635   cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #include <stdlib.h>
4642
4643 _ACEOF
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645   $EGREP "free" >/dev/null 2>&1; then
4646   :
4647 else
4648   ac_cv_header_stdc=no
4649 fi
4650 rm -f conftest*
4651
4652 fi
4653
4654 if test $ac_cv_header_stdc = yes; then
4655   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4656   if test "$cross_compiling" = yes; then
4657   :
4658 else
4659   cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h.  */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h.  */
4665 #include <ctype.h>
4666 #if ((' ' & 0x0FF) == 0x020)
4667 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4668 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4669 #else
4670 # define ISLOWER(c) \
4671                    (('a' <= (c) && (c) <= 'i') \
4672                      || ('j' <= (c) && (c) <= 'r') \
4673                      || ('s' <= (c) && (c) <= 'z'))
4674 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4675 #endif
4676
4677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4678 int
4679 main ()
4680 {
4681   int i;
4682   for (i = 0; i < 256; i++)
4683     if (XOR (islower (i), ISLOWER (i))
4684         || toupper (i) != TOUPPER (i))
4685       exit(2);
4686   exit (0);
4687 }
4688 _ACEOF
4689 rm -f conftest$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691   (eval $ac_link) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; }; then
4700   :
4701 else
4702   echo "$as_me: program exited with status $ac_status" >&5
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ( exit $ac_status )
4707 ac_cv_header_stdc=no
4708 fi
4709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 fi
4712 fi
4713 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4714 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4715 if test $ac_cv_header_stdc = yes; then
4716
4717 cat >>confdefs.h <<\_ACEOF
4718 #define STDC_HEADERS 1
4719 _ACEOF
4720
4721 fi
4722
4723 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4734                   inttypes.h stdint.h unistd.h
4735 do
4736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737 echo "$as_me:$LINENO: checking for $ac_header" >&5
4738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h.  */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h.  */
4748 $ac_includes_default
4749
4750 #include <$ac_header>
4751 _ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754   (eval $ac_compile) 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
4758   cat conftest.err >&5
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } &&
4761          { ac_try='test -z "$ac_c_werror_flag"
4762                          || test ! -s conftest.err'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; } &&
4768          { ac_try='test -s conftest.$ac_objext'
4769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770   (eval $ac_try) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); }; }; then
4774   eval "$as_ac_Header=yes"
4775 else
4776   echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 eval "$as_ac_Header=no"
4780 fi
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782 fi
4783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786   cat >>confdefs.h <<_ACEOF
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788 _ACEOF
4789
4790 fi
4791
4792 done
4793
4794
4795
4796 for ac_header in dlfcn.h
4797 do
4798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4800   echo "$as_me:$LINENO: checking for $ac_header" >&5
4801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 fi
4805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4807 else
4808   # Is the header compilable?
4809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h.  */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h.  */
4817 $ac_includes_default
4818 #include <$ac_header>
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822   (eval $ac_compile) 2>conftest.er1
4823   ac_status=$?
4824   grep -v '^ *+' conftest.er1 >conftest.err
4825   rm -f conftest.er1
4826   cat conftest.err >&5
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } &&
4829          { ac_try='test -z "$ac_c_werror_flag"
4830                          || test ! -s conftest.err'
4831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832   (eval $ac_try) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; } &&
4836          { ac_try='test -s conftest.$ac_objext'
4837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838   (eval $ac_try) 2>&5
4839   ac_status=$?
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); }; }; then
4842   ac_header_compiler=yes
4843 else
4844   echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 ac_header_compiler=no
4848 fi
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4851 echo "${ECHO_T}$ac_header_compiler" >&6
4852
4853 # Is the header present?
4854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4856 cat >conftest.$ac_ext <<_ACEOF
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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4875   else
4876     ac_cpp_err=
4877   fi
4878 else
4879   ac_cpp_err=yes
4880 fi
4881 if test -z "$ac_cpp_err"; then
4882   ac_header_preproc=yes
4883 else
4884   echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887   ac_header_preproc=no
4888 fi
4889 rm -f conftest.err conftest.$ac_ext
4890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4891 echo "${ECHO_T}$ac_header_preproc" >&6
4892
4893 # So?  What about this header?
4894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4895   yes:no: )
4896     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4900     ac_header_preproc=yes
4901     ;;
4902   no:yes:* )
4903     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4905     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4906 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4907     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4909     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4910 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4913     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4915     (
4916       cat <<\_ASBOX
4917 ## -------------------------------------------- ##
4918 ## Report this to sebastian.marsching@suphp.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 *-*-linux*)
5287   # Test if the compiler is 64bit
5288   echo 'int i;' > conftest.$ac_ext
5289   lt_cv_cc_64bit_output=no
5290   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291   (eval $ac_compile) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }; then
5295     case `/usr/bin/file conftest.$ac_objext` in
5296     *"ELF 64"*)
5297       lt_cv_cc_64bit_output=yes
5298       ;;
5299     esac
5300   fi
5301   rm -rf conftest*
5302   ;;
5303
5304 *-*-sco3.2v5*)
5305   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5306   SAVE_CFLAGS="$CFLAGS"
5307   CFLAGS="$CFLAGS -belf"
5308   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5309 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5310 if test "${lt_cv_cc_needs_belf+set}" = set; then
5311   echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313
5314
5315      ac_ext=c
5316 ac_cpp='$CPP $CPPFLAGS'
5317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5320
5321      cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327
5328 int
5329 main ()
5330 {
5331
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338   (eval $ac_link) 2>conftest.er1
5339   ac_status=$?
5340   grep -v '^ *+' conftest.er1 >conftest.err
5341   rm -f conftest.er1
5342   cat conftest.err >&5
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); } &&
5345          { ac_try='test -z "$ac_c_werror_flag"
5346                          || test ! -s conftest.err'
5347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348   (eval $ac_try) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }; } &&
5352          { ac_try='test -s conftest$ac_exeext'
5353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354   (eval $ac_try) 2>&5
5355   ac_status=$?
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); }; }; then
5358   lt_cv_cc_needs_belf=yes
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 lt_cv_cc_needs_belf=no
5364 fi
5365 rm -f conftest.err conftest.$ac_objext \
5366       conftest$ac_exeext conftest.$ac_ext
5367      ac_ext=c
5368 ac_cpp='$CPP $CPPFLAGS'
5369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373 fi
5374 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5375 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5376   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5377     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5378     CFLAGS="$SAVE_CFLAGS"
5379   fi
5380   ;;
5381
5382
5383 esac
5384
5385 # Sed substitution that helps us do robust quoting.  It backslashifies
5386 # metacharacters that are still active within double-quoted strings.
5387 Xsed='sed -e s/^X//'
5388 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5389
5390 # Same as above, but do not quote variable references.
5391 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5392
5393 # Sed substitution to delay expansion of an escaped shell variable in a
5394 # double_quote_subst'ed string.
5395 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5396
5397 # Constants:
5398 rm="rm -f"
5399
5400 # Global variables:
5401 default_ofile=libtool
5402 can_build_shared=yes
5403
5404 # All known linkers require a `.a' archive for static linking (except M$VC,
5405 # which needs '.lib').
5406 libext=a
5407 ltmain="$ac_aux_dir/ltmain.sh"
5408 ofile="$default_ofile"
5409 with_gnu_ld="$lt_cv_prog_gnu_ld"
5410 need_locks="$enable_libtool_lock"
5411
5412 old_CC="$CC"
5413 old_CFLAGS="$CFLAGS"
5414
5415 # Set sane defaults for various variables
5416 test -z "$AR" && AR=ar
5417 test -z "$AR_FLAGS" && AR_FLAGS=cru
5418 test -z "$AS" && AS=as
5419 test -z "$CC" && CC=cc
5420 test -z "$DLLTOOL" && DLLTOOL=dlltool
5421 test -z "$LD" && LD=ld
5422 test -z "$LN_S" && LN_S="ln -s"
5423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5424 test -z "$NM" && NM=nm
5425 test -z "$OBJDUMP" && OBJDUMP=objdump
5426 test -z "$RANLIB" && RANLIB=:
5427 test -z "$STRIP" && STRIP=:
5428 test -z "$ac_objext" && ac_objext=o
5429
5430 if test x"$host" != x"$build"; then
5431   ac_tool_prefix=${host_alias}-
5432 else
5433   ac_tool_prefix=
5434 fi
5435
5436 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5437 case $host_os in
5438 linux-gnu*|linux-uclibc*) ;;
5439 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5440 esac
5441
5442 case $host_os in
5443 aix3*)
5444   # AIX sometimes has problems with the GCC collect2 program.  For some
5445   # reason, if we set the COLLECT_NAMES environment variable, the problems
5446   # vanish in a puff of smoke.
5447   if test "X${COLLECT_NAMES+set}" != Xset; then
5448     COLLECT_NAMES=
5449     export COLLECT_NAMES
5450   fi
5451   ;;
5452 esac
5453
5454 # Determine commands to create old-style static archives.
5455 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5456 old_postinstall_cmds='chmod 644 $oldlib'
5457 old_postuninstall_cmds=
5458
5459 if test -n "$RANLIB"; then
5460   case $host_os in
5461   openbsd*)
5462     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5463     ;;
5464   *)
5465     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5466     ;;
5467   esac
5468   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5469 fi
5470
5471 # Allow CC to be a program name with arguments.
5472 set dummy $CC
5473 compiler="$2"
5474
5475 echo "$as_me:$LINENO: checking for objdir" >&5
5476 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5477 rm -f .libs 2>/dev/null
5478 mkdir .libs 2>/dev/null
5479 if test -d .libs; then
5480   objdir=.libs
5481 else
5482   # MS-DOS does not allow filenames that begin with a dot.
5483   objdir=_libs
5484 fi
5485 rmdir .libs 2>/dev/null
5486 echo "$as_me:$LINENO: result: $objdir" >&5
5487 echo "${ECHO_T}$objdir" >&6
5488
5489
5490
5491 # Check whether --with-pic or --without-pic was given.
5492 if test "${with_pic+set}" = set; then
5493   withval="$with_pic"
5494   pic_mode="$withval"
5495 else
5496   pic_mode=default
5497 fi;
5498 test -z "$pic_mode" && pic_mode=default
5499
5500 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5501 # in isolation, and that seeing it set (from the cache) indicates that
5502 # the associated values are set (in the cache) correctly too.
5503 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5504 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5505 if test "${lt_cv_prog_cc_pic+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508    lt_cv_prog_cc_pic=
5509   lt_cv_prog_cc_shlib=
5510   lt_cv_prog_cc_wl=
5511   lt_cv_prog_cc_static=
5512   lt_cv_prog_cc_no_builtin=
5513   lt_cv_prog_cc_can_build_shared=$can_build_shared
5514
5515   if test "$GCC" = yes; then
5516     lt_cv_prog_cc_wl='-Wl,'
5517     lt_cv_prog_cc_static='-static'
5518
5519     case $host_os in
5520     aix*)
5521       # Below there is a dirty hack to force normal static linking with -ldl
5522       # The problem is because libdl dynamically linked with both libc and
5523       # libC (AIX C++ library), which obviously doesn't included in libraries
5524       # list by gcc. This cause undefined symbols with -static flags.
5525       # This hack allows C programs to be linked with "-static -ldl", but
5526       # not sure about C++ programs.
5527       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5528       ;;
5529     amigaos*)
5530       # FIXME: we need at least 68020 code to build shared libraries, but
5531       # adding the `-m68020' flag to GCC prevents building anything better,
5532       # like `-m68040'.
5533       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5534       ;;
5535     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5536       # PIC is the default for these OSes.
5537       ;;
5538     darwin* | rhapsody*)
5539       # PIC is the default on this platform
5540       # Common symbols not allowed in MH_DYLIB files
5541       lt_cv_prog_cc_pic='-fno-common'
5542       ;;
5543     cygwin* | mingw* | pw32* | os2*)
5544       # This hack is so that the source file can tell whether it is being
5545       # built for inclusion in a dll (and should export symbols for example).
5546       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5547       ;;
5548     sysv4*MP*)
5549       if test -d /usr/nec; then
5550          lt_cv_prog_cc_pic=-Kconform_pic
5551       fi
5552       ;;
5553     *)
5554       lt_cv_prog_cc_pic='-fPIC'
5555       ;;
5556     esac
5557   else
5558     # PORTME Check for PIC flags for the system compiler.
5559     case $host_os in
5560     aix3* | aix4* | aix5*)
5561       lt_cv_prog_cc_wl='-Wl,'
5562       # All AIX code is PIC.
5563       if test "$host_cpu" = ia64; then
5564         # AIX 5 now supports IA64 processor
5565         lt_cv_prog_cc_static='-Bstatic'
5566       else
5567         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5568       fi
5569       ;;
5570
5571     hpux9* | hpux10* | hpux11*)
5572       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5573       lt_cv_prog_cc_wl='-Wl,'
5574       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5575       lt_cv_prog_cc_pic='+Z'
5576       ;;
5577
5578     irix5* | irix6* | nonstopux*)
5579       lt_cv_prog_cc_wl='-Wl,'
5580       lt_cv_prog_cc_static='-non_shared'
5581       # PIC (with -KPIC) is the default.
5582       ;;
5583
5584     cygwin* | mingw* | pw32* | os2*)
5585       # This hack is so that the source file can tell whether it is being
5586       # built for inclusion in a dll (and should export symbols for example).
5587       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5588       ;;
5589
5590     newsos6)
5591       lt_cv_prog_cc_pic='-KPIC'
5592       lt_cv_prog_cc_static='-Bstatic'
5593       ;;
5594
5595     osf3* | osf4* | osf5*)
5596       # All OSF/1 code is PIC.
5597       lt_cv_prog_cc_wl='-Wl,'
5598       lt_cv_prog_cc_static='-non_shared'
5599       ;;
5600
5601     sco3.2v5*)
5602       lt_cv_prog_cc_pic='-Kpic'
5603       lt_cv_prog_cc_static='-dn'
5604       lt_cv_prog_cc_shlib='-belf'
5605       ;;
5606
5607     solaris*)
5608       lt_cv_prog_cc_pic='-KPIC'
5609       lt_cv_prog_cc_static='-Bstatic'
5610       lt_cv_prog_cc_wl='-Wl,'
5611       ;;
5612
5613     sunos4*)
5614       lt_cv_prog_cc_pic='-PIC'
5615       lt_cv_prog_cc_static='-Bstatic'
5616       lt_cv_prog_cc_wl='-Qoption ld '
5617       ;;
5618
5619     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5620       lt_cv_prog_cc_pic='-KPIC'
5621       lt_cv_prog_cc_static='-Bstatic'
5622       lt_cv_prog_cc_wl='-Wl,'
5623       ;;
5624
5625     uts4*)
5626       lt_cv_prog_cc_pic='-pic'
5627       lt_cv_prog_cc_static='-Bstatic'
5628       ;;
5629
5630     sysv4*MP*)
5631       if test -d /usr/nec ;then
5632         lt_cv_prog_cc_pic='-Kconform_pic'
5633         lt_cv_prog_cc_static='-Bstatic'
5634       fi
5635       ;;
5636
5637     *)
5638       lt_cv_prog_cc_can_build_shared=no
5639       ;;
5640     esac
5641   fi
5642
5643 fi
5644
5645 if test -z "$lt_cv_prog_cc_pic"; then
5646   echo "$as_me:$LINENO: result: none" >&5
5647 echo "${ECHO_T}none" >&6
5648 else
5649   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5650 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5651
5652   # Check to make sure the pic_flag actually works.
5653   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5654 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5655   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658       save_CFLAGS="$CFLAGS"
5659     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5660     cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h.  */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h.  */
5666
5667 int
5668 main ()
5669 {
5670
5671   ;
5672   return 0;
5673 }
5674 _ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677   (eval $ac_compile) 2>conftest.er1
5678   ac_status=$?
5679   grep -v '^ *+' conftest.er1 >conftest.err
5680   rm -f conftest.er1
5681   cat conftest.err >&5
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); } &&
5684          { ac_try='test -z "$ac_c_werror_flag"
5685                          || test ! -s conftest.err'
5686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687   (eval $ac_try) 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); }; } &&
5691          { ac_try='test -s conftest.$ac_objext'
5692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693   (eval $ac_try) 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }; }; then
5697         case $host_os in
5698       hpux9* | hpux10* | hpux11*)
5699         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5700         # they create non-PIC objects.  So, if there were any warnings, we
5701         # assume that PIC is not supported.
5702         if test -s conftest.err; then
5703           lt_cv_prog_cc_pic_works=no
5704         else
5705           lt_cv_prog_cc_pic_works=yes
5706         fi
5707         ;;
5708       *)
5709         lt_cv_prog_cc_pic_works=yes
5710         ;;
5711       esac
5712
5713 else
5714   echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5716
5717       lt_cv_prog_cc_pic_works=no
5718
5719 fi
5720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5721     CFLAGS="$save_CFLAGS"
5722
5723 fi
5724
5725
5726   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5727     lt_cv_prog_cc_pic=
5728     lt_cv_prog_cc_can_build_shared=no
5729   else
5730     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5731   fi
5732
5733   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5734 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5735 fi
5736
5737 # Check for any special shared library compilation flags.
5738 if test -n "$lt_cv_prog_cc_shlib"; then
5739   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5740 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5741   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5742   else
5743    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5744 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5745     lt_cv_prog_cc_can_build_shared=no
5746   fi
5747 fi
5748
5749 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5750 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5751 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754     lt_cv_prog_cc_static_works=no
5755   save_LDFLAGS="$LDFLAGS"
5756   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5757   cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763
5764 int
5765 main ()
5766 {
5767
5768   ;
5769   return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext conftest$ac_exeext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5774   (eval $ac_link) 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } &&
5781          { ac_try='test -z "$ac_c_werror_flag"
5782                          || test ! -s conftest.err'
5783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784   (eval $ac_try) 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); }; } &&
5788          { ac_try='test -s conftest$ac_exeext'
5789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790   (eval $ac_try) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }; }; then
5794   lt_cv_prog_cc_static_works=yes
5795 else
5796   echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799 fi
5800 rm -f conftest.err conftest.$ac_objext \
5801       conftest$ac_exeext conftest.$ac_ext
5802   LDFLAGS="$save_LDFLAGS"
5803
5804 fi
5805
5806
5807 # Belt *and* braces to stop my trousers falling down:
5808 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5809 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5810 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5811
5812 pic_flag="$lt_cv_prog_cc_pic"
5813 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5814 wl="$lt_cv_prog_cc_wl"
5815 link_static_flag="$lt_cv_prog_cc_static"
5816 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5817 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5818
5819
5820 # Check to see if options -o and -c are simultaneously supported by compiler
5821 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5823 if test "${lt_cv_compiler_c_o+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826
5827 $rm -r conftest 2>/dev/null
5828 mkdir conftest
5829 cd conftest
5830 echo "int some_variable = 0;" > conftest.$ac_ext
5831 mkdir out
5832 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5833 # that will create temporary files in the current directory regardless of
5834 # the output directory.  Thus, making CWD read-only will cause this test
5835 # to fail, enabling locking or at least warning the user not to do parallel
5836 # builds.
5837 chmod -w .
5838 save_CFLAGS="$CFLAGS"
5839 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5840 compiler_c_o=no
5841 if { (eval echo configure:5841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5842   # The compiler can only warn and ignore the option if not recognized
5843   # So say no if there are warnings
5844   if test -s out/conftest.err; then
5845     lt_cv_compiler_c_o=no
5846   else
5847     lt_cv_compiler_c_o=yes
5848   fi
5849 else
5850   # Append any errors to the config.log.
5851   cat out/conftest.err 1>&5
5852   lt_cv_compiler_c_o=no
5853 fi
5854 CFLAGS="$save_CFLAGS"
5855 chmod u+w .
5856 $rm conftest* out/*
5857 rmdir out
5858 cd ..
5859 rmdir conftest
5860 $rm -r conftest 2>/dev/null
5861
5862 fi
5863
5864 compiler_c_o=$lt_cv_compiler_c_o
5865 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5866 echo "${ECHO_T}$compiler_c_o" >&6
5867
5868 if test x"$compiler_c_o" = x"yes"; then
5869   # Check to see if we can write to a .lo
5870   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5871 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5872   if test "${lt_cv_compiler_o_lo+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875
5876   lt_cv_compiler_o_lo=no
5877   save_CFLAGS="$CFLAGS"
5878   CFLAGS="$CFLAGS -c -o conftest.lo"
5879   save_objext="$ac_objext"
5880   ac_objext=lo
5881   cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h.  */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h.  */
5887
5888 int
5889 main ()
5890 {
5891 int some_variable = 0;
5892   ;
5893   return 0;
5894 }
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898   (eval $ac_compile) 2>conftest.er1
5899   ac_status=$?
5900   grep -v '^ *+' conftest.er1 >conftest.err
5901   rm -f conftest.er1
5902   cat conftest.err >&5
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); } &&
5905          { ac_try='test -z "$ac_c_werror_flag"
5906                          || test ! -s conftest.err'
5907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908   (eval $ac_try) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; } &&
5912          { ac_try='test -s conftest.$ac_objext'
5913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914   (eval $ac_try) 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); }; }; then
5918       # The compiler can only warn and ignore the option if not recognized
5919     # So say no if there are warnings
5920     if test -s conftest.err; then
5921       lt_cv_compiler_o_lo=no
5922     else
5923       lt_cv_compiler_o_lo=yes
5924     fi
5925
5926 else
5927   echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 fi
5931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932   ac_objext="$save_objext"
5933   CFLAGS="$save_CFLAGS"
5934
5935 fi
5936
5937   compiler_o_lo=$lt_cv_compiler_o_lo
5938   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5939 echo "${ECHO_T}$compiler_o_lo" >&6
5940 else
5941   compiler_o_lo=no
5942 fi
5943
5944 # Check to see if we can do hard links to lock some files if needed
5945 hard_links="nottested"
5946 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5947   # do not overwrite the value of need_locks provided by the user
5948   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5949 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5950   hard_links=yes
5951   $rm conftest*
5952   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5953   touch conftest.a
5954   ln conftest.a conftest.b 2>&5 || hard_links=no
5955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5956   echo "$as_me:$LINENO: result: $hard_links" >&5
5957 echo "${ECHO_T}$hard_links" >&6
5958   if test "$hard_links" = no; then
5959     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5960 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5961     need_locks=warn
5962   fi
5963 else
5964   need_locks=no
5965 fi
5966
5967 if test "$GCC" = yes; then
5968   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5969   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5970 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5971   echo "int some_variable = 0;" > conftest.$ac_ext
5972   save_CFLAGS="$CFLAGS"
5973   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5974   compiler_rtti_exceptions=no
5975   cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981
5982 int
5983 main ()
5984 {
5985 int some_variable = 0;
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992   (eval $ac_compile) 2>conftest.er1
5993   ac_status=$?
5994   grep -v '^ *+' conftest.er1 >conftest.err
5995   rm -f conftest.er1
5996   cat conftest.err >&5
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } &&
5999          { ac_try='test -z "$ac_c_werror_flag"
6000                          || test ! -s conftest.err'
6001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002   (eval $ac_try) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); }; } &&
6006          { ac_try='test -s conftest.$ac_objext'
6007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008   (eval $ac_try) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }; }; then
6012       # The compiler can only warn and ignore the option if not recognized
6013     # So say no if there are warnings
6014     if test -s conftest.err; then
6015       compiler_rtti_exceptions=no
6016     else
6017       compiler_rtti_exceptions=yes
6018     fi
6019
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 fi
6025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026   CFLAGS="$save_CFLAGS"
6027   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6028 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6029
6030   if test "$compiler_rtti_exceptions" = "yes"; then
6031     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6032   else
6033     no_builtin_flag=' -fno-builtin'
6034   fi
6035 fi
6036
6037 # See if the linker supports building shared libraries.
6038 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6039 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6040
6041 allow_undefined_flag=
6042 no_undefined_flag=
6043 need_lib_prefix=unknown
6044 need_version=unknown
6045 # when you set need_version to no, make sure it does not cause -set_version
6046 # flags to be left without arguments
6047 archive_cmds=
6048 archive_expsym_cmds=
6049 old_archive_from_new_cmds=
6050 old_archive_from_expsyms_cmds=
6051 export_dynamic_flag_spec=
6052 whole_archive_flag_spec=
6053 thread_safe_flag_spec=
6054 hardcode_into_libs=no
6055 hardcode_libdir_flag_spec=
6056 hardcode_libdir_separator=
6057 hardcode_direct=no
6058 hardcode_minus_L=no
6059 hardcode_shlibpath_var=unsupported
6060 runpath_var=
6061 link_all_deplibs=unknown
6062 always_export_symbols=no
6063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6064 # include_expsyms should be a list of space-separated symbols to be *always*
6065 # included in the symbol list
6066 include_expsyms=
6067 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6069 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6070 # as well as any symbol that contains `d'.
6071 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6073 # platforms (ab)use it in PIC code, but their linkers get confused if
6074 # the symbol is explicitly referenced.  Since portable code cannot
6075 # rely on this symbol name, it's probably fine to never include it in
6076 # preloaded symbol tables.
6077 extract_expsyms_cmds=
6078
6079 case $host_os in
6080 cygwin* | mingw* | pw32*)
6081   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6082   # When not using gcc, we currently assume that we are using
6083   # Microsoft Visual C++.
6084   if test "$GCC" != yes; then
6085     with_gnu_ld=no
6086   fi
6087   ;;
6088 openbsd*)
6089   with_gnu_ld=no
6090   ;;
6091 esac
6092
6093 ld_shlibs=yes
6094 if test "$with_gnu_ld" = yes; then
6095   # If archive_cmds runs LD, not CC, wlarc should be empty
6096   wlarc='${wl}'
6097
6098   # See if GNU ld supports shared libraries.
6099   case $host_os in
6100   aix3* | aix4* | aix5*)
6101     # On AIX, the GNU linker is very broken
6102     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6103     ld_shlibs=no
6104     cat <<EOF 1>&2
6105
6106 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6107 *** to be unable to reliably create shared libraries on AIX.
6108 *** Therefore, libtool is disabling shared libraries support.  If you
6109 *** really care for shared libraries, you may want to modify your PATH
6110 *** so that a non-GNU linker is found, and then restart.
6111
6112 EOF
6113     ;;
6114
6115   amigaos*)
6116     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)'
6117     hardcode_libdir_flag_spec='-L$libdir'
6118     hardcode_minus_L=yes
6119
6120     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6121     # that the semantics of dynamic libraries on AmigaOS, at least up
6122     # to version 4, is to share data among multiple programs linked
6123     # with the same dynamic library.  Since this doesn't match the
6124     # behavior of shared libraries on other platforms, we can use
6125     # them.
6126     ld_shlibs=no
6127     ;;
6128
6129   beos*)
6130     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6131       allow_undefined_flag=unsupported
6132       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6133       # support --undefined.  This deserves some investigation.  FIXME
6134       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6135     else
6136       ld_shlibs=no
6137     fi
6138     ;;
6139
6140   cygwin* | mingw* | pw32*)
6141     # hardcode_libdir_flag_spec is actually meaningless, as there is
6142     # no search path for DLLs.
6143     hardcode_libdir_flag_spec='-L$libdir'
6144     allow_undefined_flag=unsupported
6145     always_export_symbols=yes
6146
6147     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6148       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6149       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6150       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6151       else $CC -o impgen impgen.c ; fi)~
6152       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6153
6154     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6155
6156     # cygwin and mingw dlls have different entry points and sets of symbols
6157     # to exclude.
6158     # FIXME: what about values for MSVC?
6159     dll_entry=__cygwin_dll_entry@12
6160     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6161     case $host_os in
6162     mingw*)
6163       # mingw values
6164       dll_entry=_DllMainCRTStartup@12
6165       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6166       ;;
6167     esac
6168
6169     # mingw and cygwin differ, and it's simplest to just exclude the union
6170     # of the two symbol sets.
6171     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6172
6173     # recent cygwin and mingw systems supply a stub DllMain which the user
6174     # can override, but on older systems we have to supply one (in ltdll.c)
6175     if test "x$lt_cv_need_dllmain" = "xyes"; then
6176       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6177       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~
6178         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6179     else
6180       ltdll_obj=
6181       ltdll_cmds=
6182     fi
6183
6184     # Extract the symbol export list from an `--export-all' def file,
6185     # then regenerate the def file from the symbol export list, so that
6186     # the compiled dll only exports the symbol export list.
6187     # Be careful not to strip the DATA tag left be newer dlltools.
6188     export_symbols_cmds="$ltdll_cmds"'
6189       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6190       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6191
6192     # If the export-symbols file already is a .def file (1st line
6193     # is EXPORTS), use it as is.
6194     # If DATA tags from a recent dlltool are present, honour them!
6195     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6196         cp $export_symbols $output_objdir/$soname-def;
6197       else
6198         echo EXPORTS > $output_objdir/$soname-def;
6199         _lt_hint=1;
6200         cat $export_symbols | while read symbol; do
6201          set dummy \$symbol;
6202          case \$# in
6203            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6204            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6205            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6206          esac;
6207          _lt_hint=`expr 1 + \$_lt_hint`;
6208         done;
6209       fi~
6210       '"$ltdll_cmds"'
6211       $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~
6212       $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~
6213       $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~
6214       $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~
6215       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6216     ;;
6217
6218   netbsd*)
6219     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6220       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6221       wlarc=
6222     else
6223       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6224       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6225     fi
6226     ;;
6227
6228   solaris* | sysv5*)
6229     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6230       ld_shlibs=no
6231       cat <<EOF 1>&2
6232
6233 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6234 *** create shared libraries on Solaris systems.  Therefore, libtool
6235 *** is disabling shared libraries support.  We urge you to upgrade GNU
6236 *** binutils to release 2.9.1 or newer.  Another option is to modify
6237 *** your PATH or compiler configuration so that the native linker is
6238 *** used, and then restart.
6239
6240 EOF
6241     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6242       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6243       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6244     else
6245       ld_shlibs=no
6246     fi
6247     ;;
6248
6249   sunos4*)
6250     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6251     wlarc=
6252     hardcode_direct=yes
6253     hardcode_shlibpath_var=no
6254     ;;
6255
6256   linux*)
6257     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6258       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6259       supports_anon_versioning=no
6260       case `$LD -v 2>/dev/null` in
6261         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6262         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6263         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6264         *\ 2.11.*) ;; # other 2.11 versions
6265         *) supports_anon_versioning=yes ;;
6266       esac
6267       if test $supports_anon_versioning = yes; then
6268         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6270 $echo "local: *; };" >> $output_objdir/$libname.ver~
6271         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6272       else
6273         $archive_expsym_cmds="$archive_cmds"
6274       fi
6275     else
6276       ld_shlibs=no
6277     fi
6278     ;;
6279
6280   *)
6281     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6282       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6283       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6284     else
6285       ld_shlibs=no
6286     fi
6287     ;;
6288   esac
6289
6290   if test "$ld_shlibs" = yes; then
6291     runpath_var=LD_RUN_PATH
6292     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6293     export_dynamic_flag_spec='${wl}--export-dynamic'
6294     case $host_os in
6295     cygwin* | mingw* | pw32*)
6296       # dlltool doesn't understand --whole-archive et. al.
6297       whole_archive_flag_spec=
6298       ;;
6299     *)
6300       # ancient GNU ld didn't support --whole-archive et. al.
6301       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6302         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6303       else
6304         whole_archive_flag_spec=
6305       fi
6306       ;;
6307     esac
6308   fi
6309 else
6310   # PORTME fill in a description of your system's linker (not GNU ld)
6311   case $host_os in
6312   aix3*)
6313     allow_undefined_flag=unsupported
6314     always_export_symbols=yes
6315     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'
6316     # Note: this linker hardcodes the directories in LIBPATH if there
6317     # are no directories specified by -L.
6318     hardcode_minus_L=yes
6319     if test "$GCC" = yes && test -z "$link_static_flag"; then
6320       # Neither direct hardcoding nor static linking is supported with a
6321       # broken collect2.
6322       hardcode_direct=unsupported
6323     fi
6324     ;;
6325
6326   aix4* | aix5*)
6327     if test "$host_cpu" = ia64; then
6328       # On IA64, the linker does run time linking by default, so we don't
6329       # have to do anything special.
6330       aix_use_runtimelinking=no
6331       exp_sym_flag='-Bexport'
6332       no_entry_flag=""
6333     else
6334       aix_use_runtimelinking=no
6335
6336       # Test if we are trying to use run time linking or normal
6337       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6338       # need to do runtime linking.
6339       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6340         for ld_flag in $LDFLAGS; do
6341           case $ld_flag in
6342           *-brtl*)
6343             aix_use_runtimelinking=yes
6344             break
6345           ;;
6346           esac
6347         done
6348       esac
6349
6350       exp_sym_flag='-bexport'
6351       no_entry_flag='-bnoentry'
6352     fi
6353
6354     # When large executables or shared objects are built, AIX ld can
6355     # have problems creating the table of contents.  If linking a library
6356     # or program results in "error TOC overflow" add -mminimal-toc to
6357     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6358     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6359
6360     hardcode_direct=yes
6361     archive_cmds=''
6362     hardcode_libdir_separator=':'
6363     if test "$GCC" = yes; then
6364       case $host_os in aix4.[012]|aix4.[012].*)
6365         collect2name=`${CC} -print-prog-name=collect2`
6366         if test -f "$collect2name" && \
6367           strings "$collect2name" | grep resolve_lib_name >/dev/null
6368         then
6369           # We have reworked collect2
6370           hardcode_direct=yes
6371         else
6372           # We have old collect2
6373           hardcode_direct=unsupported
6374           # It fails to find uninstalled libraries when the uninstalled
6375           # path is not listed in the libpath.  Setting hardcode_minus_L
6376           # to unsupported forces relinking
6377           hardcode_minus_L=yes
6378           hardcode_libdir_flag_spec='-L$libdir'
6379           hardcode_libdir_separator=
6380         fi
6381       esac
6382
6383       shared_flag='-shared'
6384     else
6385       # not using gcc
6386       if test "$host_cpu" = ia64; then
6387         shared_flag='${wl}-G'
6388       else
6389         if test "$aix_use_runtimelinking" = yes; then
6390           shared_flag='${wl}-G'
6391         else
6392           shared_flag='${wl}-bM:SRE'
6393         fi
6394       fi
6395     fi
6396
6397     # It seems that -bexpall can do strange things, so it is better to
6398     # generate a list of symbols to export.
6399     always_export_symbols=yes
6400     if test "$aix_use_runtimelinking" = yes; then
6401       # Warning - without using the other runtime loading flags (-brtl),
6402       # -berok will link without error, but may produce a broken library.
6403       allow_undefined_flag='-berok'
6404       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6405       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"
6406     else
6407       if test "$host_cpu" = ia64; then
6408         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6409         allow_undefined_flag="-z nodefs"
6410         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"
6411       else
6412         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6413         # Warning - without using the other run time loading flags,
6414         # -berok will link without error, but may produce a broken library.
6415         allow_undefined_flag='${wl}-berok'
6416         # This is a bit strange, but is similar to how AIX traditionally builds
6417         # it's shared libraries.
6418         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'
6419       fi
6420     fi
6421     ;;
6422
6423   amigaos*)
6424     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)'
6425     hardcode_libdir_flag_spec='-L$libdir'
6426     hardcode_minus_L=yes
6427     # see comment about different semantics on the GNU ld section
6428     ld_shlibs=no
6429     ;;
6430
6431   cygwin* | mingw* | pw32*)
6432     # When not using gcc, we currently assume that we are using
6433     # Microsoft Visual C++.
6434     # hardcode_libdir_flag_spec is actually meaningless, as there is
6435     # no search path for DLLs.
6436     hardcode_libdir_flag_spec=' '
6437     allow_undefined_flag=unsupported
6438     # Tell ltmain to make .lib files, not .a files.
6439     libext=lib
6440     # FIXME: Setting linknames here is a bad hack.
6441     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6442     # The linker will automatically build a .lib file if we build a DLL.
6443     old_archive_from_new_cmds='true'
6444     # FIXME: Should let the user specify the lib program.
6445     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6446     fix_srcfile_path='`cygpath -w "$srcfile"`'
6447     ;;
6448
6449   darwin* | rhapsody*)
6450     case "$host_os" in
6451     rhapsody* | darwin1.[012])
6452       allow_undefined_flag='-undefined suppress'
6453       ;;
6454     *) # Darwin 1.3 on
6455       allow_undefined_flag='-flat_namespace -undefined suppress'
6456       ;;
6457     esac
6458     # FIXME: Relying on posixy $() will cause problems for
6459     #        cross-compilation, but unfortunately the echo tests do not
6460     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6461     #        `"' quotes if we put them in here... so don't!
6462     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)'
6463     # We need to add '_' to the symbols in $export_symbols first
6464     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6465     hardcode_direct=yes
6466     hardcode_shlibpath_var=no
6467     whole_archive_flag_spec='-all_load $convenience'
6468     ;;
6469
6470   freebsd1*)
6471     ld_shlibs=no
6472     ;;
6473
6474   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6475   # support.  Future versions do this automatically, but an explicit c++rt0.o
6476   # does not break anything, and helps significantly (at the cost of a little
6477   # extra space).
6478   freebsd2.2*)
6479     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6480     hardcode_libdir_flag_spec='-R$libdir'
6481     hardcode_direct=yes
6482     hardcode_shlibpath_var=no
6483     ;;
6484
6485   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6486   freebsd2*)
6487     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6488     hardcode_direct=yes
6489     hardcode_minus_L=yes
6490     hardcode_shlibpath_var=no
6491     ;;
6492
6493   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6494   freebsd*)
6495     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6496     hardcode_libdir_flag_spec='-R$libdir'
6497     hardcode_direct=yes
6498     hardcode_shlibpath_var=no
6499     ;;
6500
6501   hpux9* | hpux10* | hpux11*)
6502     case $host_os in
6503     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' ;;
6504     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6505     esac
6506     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6507     hardcode_libdir_separator=:
6508     hardcode_direct=yes
6509     hardcode_minus_L=yes # Not in the search PATH, but as the default
6510                          # location of the library.
6511     export_dynamic_flag_spec='${wl}-E'
6512     ;;
6513
6514   irix5* | irix6* | nonstopux*)
6515     if test "$GCC" = yes; then
6516       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'
6517       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6518     else
6519       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'
6520       hardcode_libdir_flag_spec='-rpath $libdir'
6521     fi
6522     hardcode_libdir_separator=:
6523     link_all_deplibs=yes
6524     ;;
6525
6526   netbsd*)
6527     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6528       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6529     else
6530       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6531     fi
6532     hardcode_libdir_flag_spec='-R$libdir'
6533     hardcode_direct=yes
6534     hardcode_shlibpath_var=no
6535     ;;
6536
6537   newsos6)
6538     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6539     hardcode_direct=yes
6540     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6541     hardcode_libdir_separator=:
6542     hardcode_shlibpath_var=no
6543     ;;
6544
6545   openbsd*)
6546     hardcode_direct=yes
6547     hardcode_shlibpath_var=no
6548     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6549       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6550       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6551       export_dynamic_flag_spec='${wl}-E'
6552     else
6553       case "$host_os" in
6554       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6555         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6556         hardcode_libdir_flag_spec='-R$libdir'
6557         ;;
6558       *)
6559         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6560         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6561         ;;
6562       esac
6563     fi
6564     ;;
6565
6566   os2*)
6567     hardcode_libdir_flag_spec='-L$libdir'
6568     hardcode_minus_L=yes
6569     allow_undefined_flag=unsupported
6570     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'
6571     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6572     ;;
6573
6574   osf3*)
6575     if test "$GCC" = yes; then
6576       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6577       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'
6578     else
6579       allow_undefined_flag=' -expect_unresolved \*'
6580       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'
6581     fi
6582     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6583     hardcode_libdir_separator=:
6584     ;;
6585
6586   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6587     if test "$GCC" = yes; then
6588       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6589       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'
6590       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6591     else
6592       allow_undefined_flag=' -expect_unresolved \*'
6593       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'
6594       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6595       $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'
6596
6597       #Both c and cxx compiler support -rpath directly
6598       hardcode_libdir_flag_spec='-rpath $libdir'
6599     fi
6600     hardcode_libdir_separator=:
6601     ;;
6602
6603   sco3.2v5*)
6604     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6605     hardcode_shlibpath_var=no
6606     runpath_var=LD_RUN_PATH
6607     hardcode_runpath_var=yes
6608     export_dynamic_flag_spec='${wl}-Bexport'
6609     ;;
6610
6611   solaris*)
6612     # gcc --version < 3.0 without binutils cannot create self contained
6613     # shared libraries reliably, requiring libgcc.a to resolve some of
6614     # the object symbols generated in some cases.  Libraries that use
6615     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6616     # a copy of libgcc.a into every shared library to guarantee resolving
6617     # such symbols causes other problems:  According to Tim Van Holder
6618     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6619     # (to the application) exception stack for one thing.
6620     no_undefined_flag=' -z defs'
6621     if test "$GCC" = yes; then
6622       case `$CC --version 2>/dev/null` in
6623       [12].*)
6624         cat <<EOF 1>&2
6625
6626 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6627 *** create self contained shared libraries on Solaris systems, without
6628 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6629 *** -no-undefined support, which will at least allow you to build shared
6630 *** libraries.  However, you may find that when you link such libraries
6631 *** into an application without using GCC, you have to manually add
6632 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6633 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6634 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6635
6636 EOF
6637         no_undefined_flag=
6638         ;;
6639       esac
6640     fi
6641     # $CC -shared without GNU ld will not create a library from C++
6642     # object files and a static libstdc++, better avoid it by now
6643     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6644     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6645                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6646     hardcode_libdir_flag_spec='-R$libdir'
6647     hardcode_shlibpath_var=no
6648     case $host_os in
6649     solaris2.[0-5] | solaris2.[0-5].*) ;;
6650     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6651       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6652     esac
6653     link_all_deplibs=yes
6654     ;;
6655
6656   sunos4*)
6657     if test "x$host_vendor" = xsequent; then
6658       # Use $CC to link under sequent, because it throws in some extra .o
6659       # files that make .init and .fini sections work.
6660       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6661     else
6662       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6663     fi
6664     hardcode_libdir_flag_spec='-L$libdir'
6665     hardcode_direct=yes
6666     hardcode_minus_L=yes
6667     hardcode_shlibpath_var=no
6668     ;;
6669
6670   sysv4)
6671     case $host_vendor in
6672       sni)
6673         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6674         hardcode_direct=yes # is this really true???
6675         ;;
6676       siemens)
6677         ## LD is ld it makes a PLAMLIB
6678         ## CC just makes a GrossModule.
6679         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6680         reload_cmds='$CC -r -o $output$reload_objs'
6681         hardcode_direct=no
6682         ;;
6683       motorola)
6684         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6685         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6686         ;;
6687     esac
6688     runpath_var='LD_RUN_PATH'
6689     hardcode_shlibpath_var=no
6690     ;;
6691
6692   sysv4.3*)
6693     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6694     hardcode_shlibpath_var=no
6695     export_dynamic_flag_spec='-Bexport'
6696     ;;
6697
6698   sysv5*)
6699     no_undefined_flag=' -z text'
6700     # $CC -shared without GNU ld will not create a library from C++
6701     # object files and a static libstdc++, better avoid it by now
6702     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6703     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6704                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6705     hardcode_libdir_flag_spec=
6706     hardcode_shlibpath_var=no
6707     runpath_var='LD_RUN_PATH'
6708     ;;
6709
6710   uts4*)
6711     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6712     hardcode_libdir_flag_spec='-L$libdir'
6713     hardcode_shlibpath_var=no
6714     ;;
6715
6716   dgux*)
6717     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6718     hardcode_libdir_flag_spec='-L$libdir'
6719     hardcode_shlibpath_var=no
6720     ;;
6721
6722   sysv4*MP*)
6723     if test -d /usr/nec; then
6724       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6725       hardcode_shlibpath_var=no
6726       runpath_var=LD_RUN_PATH
6727       hardcode_runpath_var=yes
6728       ld_shlibs=yes
6729     fi
6730     ;;
6731
6732   sysv4.2uw2*)
6733     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6734     hardcode_direct=yes
6735     hardcode_minus_L=no
6736     hardcode_shlibpath_var=no
6737     hardcode_runpath_var=yes
6738     runpath_var=LD_RUN_PATH
6739     ;;
6740
6741   sysv5uw7* | unixware7*)
6742     no_undefined_flag='${wl}-z ${wl}text'
6743     if test "$GCC" = yes; then
6744       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6745     else
6746       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6747     fi
6748     runpath_var='LD_RUN_PATH'
6749     hardcode_shlibpath_var=no
6750     ;;
6751
6752   *)
6753     ld_shlibs=no
6754     ;;
6755   esac
6756 fi
6757 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6758 echo "${ECHO_T}$ld_shlibs" >&6
6759 test "$ld_shlibs" = no && can_build_shared=no
6760
6761 # Check hardcoding attributes.
6762 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6763 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6764 hardcode_action=
6765 if test -n "$hardcode_libdir_flag_spec" || \
6766    test -n "$runpath_var"; then
6767
6768   # We can hardcode non-existant directories.
6769   if test "$hardcode_direct" != no &&
6770      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6771      # have to relink, otherwise we might link with an installed library
6772      # when we should be linking with a yet-to-be-installed one
6773      ## test "$hardcode_shlibpath_var" != no &&
6774      test "$hardcode_minus_L" != no; then
6775     # Linking always hardcodes the temporary library directory.
6776     hardcode_action=relink
6777   else
6778     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6779     hardcode_action=immediate
6780   fi
6781 else
6782   # We cannot hardcode anything, or else we can only hardcode existing
6783   # directories.
6784   hardcode_action=unsupported
6785 fi
6786 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6787 echo "${ECHO_T}$hardcode_action" >&6
6788
6789 striplib=
6790 old_striplib=
6791 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6792 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6793 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6794   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6795   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6796   echo "$as_me:$LINENO: result: yes" >&5
6797 echo "${ECHO_T}yes" >&6
6798 else
6799   echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6
6801 fi
6802
6803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6804 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6805
6806 # PORTME Fill in your ld.so characteristics
6807 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6808 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6809 library_names_spec=
6810 libname_spec='lib$name'
6811 soname_spec=
6812 postinstall_cmds=
6813 postuninstall_cmds=
6814 finish_cmds=
6815 finish_eval=
6816 shlibpath_var=
6817 shlibpath_overrides_runpath=unknown
6818 version_type=none
6819 dynamic_linker="$host_os ld.so"
6820 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6821 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6822
6823 case $host_os in
6824 aix3*)
6825   version_type=linux
6826   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6827   shlibpath_var=LIBPATH
6828
6829   # AIX has no versioning support, so we append a major version to the name.
6830   soname_spec='${libname}${release}.so$major'
6831   ;;
6832
6833 aix4* | aix5*)
6834   version_type=linux
6835   need_lib_prefix=no
6836   need_version=no
6837   hardcode_into_libs=yes
6838   if test "$host_cpu" = ia64; then
6839     # AIX 5 supports IA64
6840     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6841     shlibpath_var=LD_LIBRARY_PATH
6842   else
6843     # With GCC up to 2.95.x, collect2 would create an import file
6844     # for dependence libraries.  The import file would start with
6845     # the line `#! .'.  This would cause the generated library to
6846     # depend on `.', always an invalid library.  This was fixed in
6847     # development snapshots of GCC prior to 3.0.
6848     case $host_os in
6849       aix4 | aix4.[01] | aix4.[01].*)
6850         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6851              echo ' yes '
6852              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6853           :
6854         else
6855           can_build_shared=no
6856         fi
6857         ;;
6858     esac
6859     # AIX (on Power*) has no versioning support, so currently we can
6860     # not hardcode correct soname into executable. Probably we can
6861     # add versioning support to collect2, so additional links can
6862     # be useful in future.
6863     if test "$aix_use_runtimelinking" = yes; then
6864       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6865       # instead of lib<name>.a to let people know that these are not
6866       # typical AIX shared libraries.
6867       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6868     else
6869       # We preserve .a as extension for shared libraries through AIX4.2
6870       # and later when we are not doing run time linking.
6871       library_names_spec='${libname}${release}.a $libname.a'
6872       soname_spec='${libname}${release}.so$major'
6873     fi
6874     shlibpath_var=LIBPATH
6875   fi
6876   hardcode_into_libs=yes
6877   ;;
6878
6879 amigaos*)
6880   library_names_spec='$libname.ixlibrary $libname.a'
6881   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6882   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'
6883   ;;
6884
6885 beos*)
6886   library_names_spec='${libname}.so'
6887   dynamic_linker="$host_os ld.so"
6888   shlibpath_var=LIBRARY_PATH
6889   ;;
6890
6891 bsdi4*)
6892   version_type=linux
6893   need_version=no
6894   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6895   soname_spec='${libname}${release}.so$major'
6896   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6897   shlibpath_var=LD_LIBRARY_PATH
6898   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6899   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6900   export_dynamic_flag_spec=-rdynamic
6901   # the default ld.so.conf also contains /usr/contrib/lib and
6902   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6903   # libtool to hard-code these into programs
6904   ;;
6905
6906 cygwin* | mingw* | pw32*)
6907   version_type=windows
6908   need_version=no
6909   need_lib_prefix=no
6910   case $GCC,$host_os in
6911   yes,cygwin*)
6912     library_names_spec='$libname.dll.a'
6913     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6914     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6915       dldir=$destdir/`dirname \$dlpath`~
6916       test -d \$dldir || mkdir -p \$dldir~
6917       $install_prog .libs/$dlname \$dldir/$dlname'
6918     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6919       dlpath=$dir/\$dldll~
6920        $rm \$dlpath'
6921     ;;
6922   yes,mingw*)
6923     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6924     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6925     ;;
6926   yes,pw32*)
6927     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6928     ;;
6929   *)
6930     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6931     ;;
6932   esac
6933   dynamic_linker='Win32 ld.exe'
6934   # FIXME: first we should search . and the directory the executable is in
6935   shlibpath_var=PATH
6936   ;;
6937
6938 darwin* | rhapsody*)
6939   dynamic_linker="$host_os dyld"
6940   version_type=darwin
6941   need_lib_prefix=no
6942   need_version=no
6943   # FIXME: Relying on posixy $() will cause problems for
6944   #        cross-compilation, but unfortunately the echo tests do not
6945   #        yet detect zsh echo's removal of \ escapes.
6946   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)'
6947   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6948   shlibpath_overrides_runpath=yes
6949   shlibpath_var=DYLD_LIBRARY_PATH
6950   ;;
6951
6952 freebsd1*)
6953   dynamic_linker=no
6954   ;;
6955
6956 freebsd*)
6957   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6958   version_type=freebsd-$objformat
6959   case $version_type in
6960     freebsd-elf*)
6961       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6962       need_version=no
6963       need_lib_prefix=no
6964       ;;
6965     freebsd-*)
6966       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6967       need_version=yes
6968       ;;
6969   esac
6970   shlibpath_var=LD_LIBRARY_PATH
6971   case $host_os in
6972   freebsd2*)
6973     shlibpath_overrides_runpath=yes
6974     ;;
6975   *)
6976     shlibpath_overrides_runpath=no
6977     hardcode_into_libs=yes
6978     ;;
6979   esac
6980   ;;
6981
6982 gnu*)
6983   version_type=linux
6984   need_lib_prefix=no
6985   need_version=no
6986   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6987   soname_spec='${libname}${release}.so$major'
6988   shlibpath_var=LD_LIBRARY_PATH
6989   hardcode_into_libs=yes
6990   ;;
6991
6992 hpux9* | hpux10* | hpux11*)
6993   # Give a soname corresponding to the major version so that dld.sl refuses to
6994   # link against other versions.
6995   dynamic_linker="$host_os dld.sl"
6996   version_type=sunos
6997   need_lib_prefix=no
6998   need_version=no
6999   shlibpath_var=SHLIB_PATH
7000   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7001   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7002   soname_spec='${libname}${release}.sl$major'
7003   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7004   postinstall_cmds='chmod 555 $lib'
7005   ;;
7006
7007 irix5* | irix6* | nonstopux*)
7008   case $host_os in
7009     nonstopux*) version_type=nonstopux ;;
7010     *)          version_type=irix ;;
7011   esac
7012   need_lib_prefix=no
7013   need_version=no
7014   soname_spec='${libname}${release}.so$major'
7015   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7016   case $host_os in
7017   irix5* | nonstopux*)
7018     libsuff= shlibsuff=
7019     ;;
7020   *)
7021     case $LD in # libtool.m4 will add one of these switches to LD
7022     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7023     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7024     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7025     *) libsuff= shlibsuff= libmagic=never-match;;
7026     esac
7027     ;;
7028   esac
7029   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7030   shlibpath_overrides_runpath=no
7031   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7032   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7033   ;;
7034
7035 # No shared lib support for Linux oldld, aout, or coff.
7036 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7037   dynamic_linker=no
7038   ;;
7039
7040 # This must be Linux ELF.
7041 linux-gnu*)
7042   version_type=linux
7043   need_lib_prefix=no
7044   need_version=no
7045   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7046   soname_spec='${libname}${release}.so$major'
7047   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7048   shlibpath_var=LD_LIBRARY_PATH
7049   shlibpath_overrides_runpath=no
7050   # This implies no fast_install, which is unacceptable.
7051   # Some rework will be needed to allow for fast_install
7052   # before this can be enabled.
7053   hardcode_into_libs=yes
7054
7055   case $host_cpu:$lt_cv_cc_64bit_output in
7056   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7057     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7058     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7059     ;;
7060   esac
7061
7062   # We used to test for /lib/ld.so.1 and disable shared libraries on
7063   # powerpc, because MkLinux only supported shared libraries with the
7064   # GNU dynamic linker.  Since this was broken with cross compilers,
7065   # most powerpc-linux boxes support dynamic linking these days and
7066   # people can always --disable-shared, the test was removed, and we
7067   # assume the GNU/Linux dynamic linker is in use.
7068   dynamic_linker='GNU/Linux ld.so'
7069
7070   # Find out which ABI we are using (multilib Linux x86_64 hack).
7071   libsuff=
7072   case "$host_cpu" in
7073   x86_64*)
7074     echo '#line 7074 "configure"' > conftest.$ac_ext
7075     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076   (eval $ac_compile) 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); }; then
7080       case `/usr/bin/file conftest.$ac_objext` in
7081       *64-bit*)
7082         libsuff=64
7083         ;;
7084       esac
7085     fi
7086     rm -rf conftest*
7087     ;;
7088   *)
7089     ;;
7090   esac
7091   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7092   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7093   ;;
7094
7095 linux-uclibc*)
7096   version_type=linux
7097   need_lib_prefix=no
7098   need_version=no
7099   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7100   soname_spec='${libname}${release}.so$major'
7101   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7102   shlibpath_var=LD_LIBRARY_PATH
7103   shlibpath_overrides_runpath=no
7104   # This implies no fast_install, which is unacceptable.
7105   # Some rework will be needed to allow for fast_install
7106   # before this can be enabled.
7107   # Note: copied from linux-gnu, and may not be appropriate.
7108   hardcode_into_libs=yes
7109   # Assume using the uClibc dynamic linker.
7110   dynamic_linker="uClibc ld.so"
7111   ;;
7112
7113 netbsd*)
7114   version_type=sunos
7115   need_lib_prefix=no
7116   need_version=no
7117   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7119     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7120     dynamic_linker='NetBSD (a.out) ld.so'
7121   else
7122     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7123     soname_spec='${libname}${release}.so$major'
7124     dynamic_linker='NetBSD ld.elf_so'
7125   fi
7126   shlibpath_var=LD_LIBRARY_PATH
7127   shlibpath_overrides_runpath=yes
7128   hardcode_into_libs=yes
7129   ;;
7130
7131 newsos6)
7132   version_type=linux
7133   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7134   shlibpath_var=LD_LIBRARY_PATH
7135   shlibpath_overrides_runpath=yes
7136   ;;
7137
7138 openbsd*)
7139   version_type=sunos
7140   need_lib_prefix=no
7141   need_version=no
7142   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7143     case "$host_os" in
7144     openbsd2.[89] | openbsd2.[89].*)
7145       shlibpath_overrides_runpath=no
7146       ;;
7147     *)
7148       shlibpath_overrides_runpath=yes
7149       ;;
7150     esac
7151   else
7152     shlibpath_overrides_runpath=yes
7153   fi
7154   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7156   shlibpath_var=LD_LIBRARY_PATH
7157   ;;
7158
7159 os2*)
7160   libname_spec='$name'
7161   need_lib_prefix=no
7162   library_names_spec='$libname.dll $libname.a'
7163   dynamic_linker='OS/2 ld.exe'
7164   shlibpath_var=LIBPATH
7165   ;;
7166
7167 osf3* | osf4* | osf5*)
7168   version_type=osf
7169   need_version=no
7170   soname_spec='${libname}${release}.so$major'
7171   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7172   shlibpath_var=LD_LIBRARY_PATH
7173   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7174   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7175   hardcode_into_libs=yes
7176   ;;
7177
7178 sco3.2v5*)
7179   version_type=osf
7180   soname_spec='${libname}${release}.so$major'
7181   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7182   shlibpath_var=LD_LIBRARY_PATH
7183   ;;
7184
7185 solaris*)
7186   version_type=linux
7187   need_lib_prefix=no
7188   need_version=no
7189   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7190   soname_spec='${libname}${release}.so$major'
7191   shlibpath_var=LD_LIBRARY_PATH
7192   shlibpath_overrides_runpath=yes
7193   hardcode_into_libs=yes
7194   # ldd complains unless libraries are executable
7195   postinstall_cmds='chmod +x $lib'
7196   ;;
7197
7198 sunos4*)
7199   version_type=sunos
7200   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7201   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7202   shlibpath_var=LD_LIBRARY_PATH
7203   shlibpath_overrides_runpath=yes
7204   if test "$with_gnu_ld" = yes; then
7205     need_lib_prefix=no
7206   fi
7207   need_version=yes
7208   ;;
7209
7210 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7211   version_type=linux
7212   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7213   soname_spec='${libname}${release}.so$major'
7214   shlibpath_var=LD_LIBRARY_PATH
7215   case $host_vendor in
7216     sni)
7217       shlibpath_overrides_runpath=no
7218       need_lib_prefix=no
7219       export_dynamic_flag_spec='${wl}-Blargedynsym'
7220       runpath_var=LD_RUN_PATH
7221       ;;
7222     siemens)
7223       need_lib_prefix=no
7224       ;;
7225     motorola)
7226       need_lib_prefix=no
7227       need_version=no
7228       shlibpath_overrides_runpath=no
7229       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7230       ;;
7231   esac
7232   ;;
7233
7234 uts4*)
7235   version_type=linux
7236   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7237   soname_spec='${libname}${release}.so$major'
7238   shlibpath_var=LD_LIBRARY_PATH
7239   ;;
7240
7241 dgux*)
7242   version_type=linux
7243   need_lib_prefix=no
7244   need_version=no
7245   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7246   soname_spec='${libname}${release}.so$major'
7247   shlibpath_var=LD_LIBRARY_PATH
7248   ;;
7249
7250 sysv4*MP*)
7251   if test -d /usr/nec ;then
7252     version_type=linux
7253     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7254     soname_spec='$libname.so.$major'
7255     shlibpath_var=LD_LIBRARY_PATH
7256   fi
7257   ;;
7258
7259 *)
7260   dynamic_linker=no
7261   ;;
7262 esac
7263 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7264 echo "${ECHO_T}$dynamic_linker" >&6
7265 test "$dynamic_linker" = no && can_build_shared=no
7266
7267 # Report the final consequences.
7268 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7269 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7270 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7271 echo "${ECHO_T}$can_build_shared" >&6
7272
7273 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7274 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7275 test "$can_build_shared" = "no" && enable_shared=no
7276
7277 # On AIX, shared libraries and static libraries use the same namespace, and
7278 # are all built from PIC.
7279 case "$host_os" in
7280 aix3*)
7281   test "$enable_shared" = yes && enable_static=no
7282   if test -n "$RANLIB"; then
7283     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7284     postinstall_cmds='$RANLIB $lib'
7285   fi
7286   ;;
7287
7288 aix4*)
7289   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7290     test "$enable_shared" = yes && enable_static=no
7291   fi
7292   ;;
7293 esac
7294 echo "$as_me:$LINENO: result: $enable_shared" >&5
7295 echo "${ECHO_T}$enable_shared" >&6
7296
7297 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7298 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7299 # Make sure either enable_shared or enable_static is yes.
7300 test "$enable_shared" = yes || enable_static=yes
7301 echo "$as_me:$LINENO: result: $enable_static" >&5
7302 echo "${ECHO_T}$enable_static" >&6
7303
7304 if test "$hardcode_action" = relink; then
7305   # Fast installation is not supported
7306   enable_fast_install=no
7307 elif test "$shlibpath_overrides_runpath" = yes ||
7308      test "$enable_shared" = no; then
7309   # Fast installation is not necessary
7310   enable_fast_install=needless
7311 fi
7312
7313 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7314 if test "$GCC" = yes; then
7315   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7316 fi
7317
7318 if test "x$enable_dlopen" != xyes; then
7319   enable_dlopen=unknown
7320   enable_dlopen_self=unknown
7321   enable_dlopen_self_static=unknown
7322 else
7323   lt_cv_dlopen=no
7324   lt_cv_dlopen_libs=
7325
7326   case $host_os in
7327   beos*)
7328     lt_cv_dlopen="load_add_on"
7329     lt_cv_dlopen_libs=
7330     lt_cv_dlopen_self=yes
7331     ;;
7332
7333   cygwin* | mingw* | pw32*)
7334     lt_cv_dlopen="LoadLibrary"
7335     lt_cv_dlopen_libs=
7336    ;;
7337
7338   *)
7339     echo "$as_me:$LINENO: checking for shl_load" >&5
7340 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7341 if test "${ac_cv_func_shl_load+set}" = set; then
7342   echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344   cat >conftest.$ac_ext <<_ACEOF
7345 /* confdefs.h.  */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h.  */
7350 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7352 #define shl_load innocuous_shl_load
7353
7354 /* System header to define __stub macros and hopefully few prototypes,
7355     which can conflict with char shl_load (); below.
7356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7357     <limits.h> exists even on freestanding compilers.  */
7358
7359 #ifdef __STDC__
7360 # include <limits.h>
7361 #else
7362 # include <assert.h>
7363 #endif
7364
7365 #undef shl_load
7366
7367 /* Override any gcc2 internal prototype to avoid an error.  */
7368 #ifdef __cplusplus
7369 extern "C"
7370 {
7371 #endif
7372 /* We use char because int might match the return type of a gcc2
7373    builtin and then its argument prototype would still apply.  */
7374 char shl_load ();
7375 /* The GNU C library defines this for functions which it implements
7376     to always fail with ENOSYS.  Some functions are actually named
7377     something starting with __ and the normal name is an alias.  */
7378 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7379 choke me
7380 #else
7381 char (*f) () = shl_load;
7382 #endif
7383 #ifdef __cplusplus
7384 }
7385 #endif
7386
7387 int
7388 main ()
7389 {
7390 return f != shl_load;
7391   ;
7392   return 0;
7393 }
7394 _ACEOF
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7397   (eval $ac_link) 2>conftest.er1
7398   ac_status=$?
7399   grep -v '^ *+' conftest.er1 >conftest.err
7400   rm -f conftest.er1
7401   cat conftest.err >&5
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); } &&
7404          { ac_try='test -z "$ac_c_werror_flag"
7405                          || test ! -s conftest.err'
7406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407   (eval $ac_try) 2>&5
7408   ac_status=$?
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); }; } &&
7411          { ac_try='test -s conftest$ac_exeext'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; }; then
7417   ac_cv_func_shl_load=yes
7418 else
7419   echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422 ac_cv_func_shl_load=no
7423 fi
7424 rm -f conftest.err conftest.$ac_objext \
7425       conftest$ac_exeext conftest.$ac_ext
7426 fi
7427 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7428 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7429 if test $ac_cv_func_shl_load = yes; then
7430   lt_cv_dlopen="shl_load"
7431 else
7432   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7433 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7434 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   ac_check_lib_save_LIBS=$LIBS
7438 LIBS="-ldld  $LIBS"
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445
7446 /* Override any gcc2 internal prototype to avoid an error.  */
7447 #ifdef __cplusplus
7448 extern "C"
7449 #endif
7450 /* We use char because int might match the return type of a gcc2
7451    builtin and then its argument prototype would still apply.  */
7452 char shl_load ();
7453 int
7454 main ()
7455 {
7456 shl_load ();
7457   ;
7458   return 0;
7459 }
7460 _ACEOF
7461 rm -f conftest.$ac_objext conftest$ac_exeext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7463   (eval $ac_link) 2>conftest.er1
7464   ac_status=$?
7465   grep -v '^ *+' conftest.er1 >conftest.err
7466   rm -f conftest.er1
7467   cat conftest.err >&5
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); } &&
7470          { ac_try='test -z "$ac_c_werror_flag"
7471                          || test ! -s conftest.err'
7472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473   (eval $ac_try) 2>&5
7474   ac_status=$?
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); }; } &&
7477          { ac_try='test -s conftest$ac_exeext'
7478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479   (eval $ac_try) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); }; }; then
7483   ac_cv_lib_dld_shl_load=yes
7484 else
7485   echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7487
7488 ac_cv_lib_dld_shl_load=no
7489 fi
7490 rm -f conftest.err conftest.$ac_objext \
7491       conftest$ac_exeext conftest.$ac_ext
7492 LIBS=$ac_check_lib_save_LIBS
7493 fi
7494 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7495 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7496 if test $ac_cv_lib_dld_shl_load = yes; then
7497   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7498 else
7499   echo "$as_me:$LINENO: checking for dlopen" >&5
7500 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7501 if test "${ac_cv_func_dlopen+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h.  */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h.  */
7510 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7512 #define dlopen innocuous_dlopen
7513
7514 /* System header to define __stub macros and hopefully few prototypes,
7515     which can conflict with char dlopen (); below.
7516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517     <limits.h> exists even on freestanding compilers.  */
7518
7519 #ifdef __STDC__
7520 # include <limits.h>
7521 #else
7522 # include <assert.h>
7523 #endif
7524
7525 #undef dlopen
7526
7527 /* Override any gcc2 internal prototype to avoid an error.  */
7528 #ifdef __cplusplus
7529 extern "C"
7530 {
7531 #endif
7532 /* We use char because int might match the return type of a gcc2
7533    builtin and then its argument prototype would still apply.  */
7534 char dlopen ();
7535 /* The GNU C library defines this for functions which it implements
7536     to always fail with ENOSYS.  Some functions are actually named
7537     something starting with __ and the normal name is an alias.  */
7538 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7539 choke me
7540 #else
7541 char (*f) () = dlopen;
7542 #endif
7543 #ifdef __cplusplus
7544 }
7545 #endif
7546
7547 int
7548 main ()
7549 {
7550 return f != dlopen;
7551   ;
7552   return 0;
7553 }
7554 _ACEOF
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557   (eval $ac_link) 2>conftest.er1
7558   ac_status=$?
7559   grep -v '^ *+' conftest.er1 >conftest.err
7560   rm -f conftest.er1
7561   cat conftest.err >&5
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); } &&
7564          { ac_try='test -z "$ac_c_werror_flag"
7565                          || test ! -s conftest.err'
7566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567   (eval $ac_try) 2>&5
7568   ac_status=$?
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); }; } &&
7571          { ac_try='test -s conftest$ac_exeext'
7572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573   (eval $ac_try) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); }; }; then
7577   ac_cv_func_dlopen=yes
7578 else
7579   echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7581
7582 ac_cv_func_dlopen=no
7583 fi
7584 rm -f conftest.err conftest.$ac_objext \
7585       conftest$ac_exeext conftest.$ac_ext
7586 fi
7587 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7588 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7589 if test $ac_cv_func_dlopen = yes; then
7590   lt_cv_dlopen="dlopen"
7591 else
7592   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7593 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7594 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   ac_check_lib_save_LIBS=$LIBS
7598 LIBS="-ldl  $LIBS"
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h.  */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h.  */
7605
7606 /* Override any gcc2 internal prototype to avoid an error.  */
7607 #ifdef __cplusplus
7608 extern "C"
7609 #endif
7610 /* We use char because int might match the return type of a gcc2
7611    builtin and then its argument prototype would still apply.  */
7612 char dlopen ();
7613 int
7614 main ()
7615 {
7616 dlopen ();
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623   (eval $ac_link) 2>conftest.er1
7624   ac_status=$?
7625   grep -v '^ *+' conftest.er1 >conftest.err
7626   rm -f conftest.er1
7627   cat conftest.err >&5
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } &&
7630          { ac_try='test -z "$ac_c_werror_flag"
7631                          || test ! -s conftest.err'
7632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; } &&
7637          { ac_try='test -s conftest$ac_exeext'
7638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639   (eval $ac_try) 2>&5
7640   ac_status=$?
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); }; }; then
7643   ac_cv_lib_dl_dlopen=yes
7644 else
7645   echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648 ac_cv_lib_dl_dlopen=no
7649 fi
7650 rm -f conftest.err conftest.$ac_objext \
7651       conftest$ac_exeext conftest.$ac_ext
7652 LIBS=$ac_check_lib_save_LIBS
7653 fi
7654 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7655 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7656 if test $ac_cv_lib_dl_dlopen = yes; then
7657   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7658 else
7659   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7660 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7661 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   ac_check_lib_save_LIBS=$LIBS
7665 LIBS="-lsvld  $LIBS"
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h.  */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h.  */
7672
7673 /* Override any gcc2 internal prototype to avoid an error.  */
7674 #ifdef __cplusplus
7675 extern "C"
7676 #endif
7677 /* We use char because int might match the return type of a gcc2
7678    builtin and then its argument prototype would still apply.  */
7679 char dlopen ();
7680 int
7681 main ()
7682 {
7683 dlopen ();
7684   ;
7685   return 0;
7686 }
7687 _ACEOF
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690   (eval $ac_link) 2>conftest.er1
7691   ac_status=$?
7692   grep -v '^ *+' conftest.er1 >conftest.err
7693   rm -f conftest.er1
7694   cat conftest.err >&5
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); } &&
7697          { ac_try='test -z "$ac_c_werror_flag"
7698                          || test ! -s conftest.err'
7699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700   (eval $ac_try) 2>&5
7701   ac_status=$?
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); }; } &&
7704          { ac_try='test -s conftest$ac_exeext'
7705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706   (eval $ac_try) 2>&5
7707   ac_status=$?
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); }; }; then
7710   ac_cv_lib_svld_dlopen=yes
7711 else
7712   echo "$as_me: failed program was:" >&5
7713 sed 's/^/| /' conftest.$ac_ext >&5
7714
7715 ac_cv_lib_svld_dlopen=no
7716 fi
7717 rm -f conftest.err conftest.$ac_objext \
7718       conftest$ac_exeext conftest.$ac_ext
7719 LIBS=$ac_check_lib_save_LIBS
7720 fi
7721 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7722 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7723 if test $ac_cv_lib_svld_dlopen = yes; then
7724   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7725 else
7726   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7727 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7728 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   ac_check_lib_save_LIBS=$LIBS
7732 LIBS="-ldld  $LIBS"
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h.  */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h.  */
7739
7740 /* Override any gcc2 internal prototype to avoid an error.  */
7741 #ifdef __cplusplus
7742 extern "C"
7743 #endif
7744 /* We use char because int might match the return type of a gcc2
7745    builtin and then its argument prototype would still apply.  */
7746 char dld_link ();
7747 int
7748 main ()
7749 {
7750 dld_link ();
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext conftest$ac_exeext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757   (eval $ac_link) 2>conftest.er1
7758   ac_status=$?
7759   grep -v '^ *+' conftest.er1 >conftest.err
7760   rm -f conftest.er1
7761   cat conftest.err >&5
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); } &&
7764          { ac_try='test -z "$ac_c_werror_flag"
7765                          || test ! -s conftest.err'
7766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767   (eval $ac_try) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; } &&
7771          { ac_try='test -s conftest$ac_exeext'
7772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773   (eval $ac_try) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); }; }; then
7777   ac_cv_lib_dld_dld_link=yes
7778 else
7779   echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 ac_cv_lib_dld_dld_link=no
7783 fi
7784 rm -f conftest.err conftest.$ac_objext \
7785       conftest$ac_exeext conftest.$ac_ext
7786 LIBS=$ac_check_lib_save_LIBS
7787 fi
7788 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7789 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7790 if test $ac_cv_lib_dld_dld_link = yes; then
7791   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7792 fi
7793
7794
7795 fi
7796
7797
7798 fi
7799
7800
7801 fi
7802
7803
7804 fi
7805
7806
7807 fi
7808
7809     ;;
7810   esac
7811
7812   if test "x$lt_cv_dlopen" != xno; then
7813     enable_dlopen=yes
7814   else
7815     enable_dlopen=no
7816   fi
7817
7818   case $lt_cv_dlopen in
7819   dlopen)
7820     save_CPPFLAGS="$CPPFLAGS"
7821         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7822
7823     save_LDFLAGS="$LDFLAGS"
7824     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7825
7826     save_LIBS="$LIBS"
7827     LIBS="$lt_cv_dlopen_libs $LIBS"
7828
7829     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7830 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7831 if test "${lt_cv_dlopen_self+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834           if test "$cross_compiling" = yes; then :
7835   lt_cv_dlopen_self=cross
7836 else
7837     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7838   lt_status=$lt_dlunknown
7839   cat > conftest.$ac_ext <<EOF
7840 #line 7840 "configure"
7841 #include "confdefs.h"
7842
7843 #if HAVE_DLFCN_H
7844 #include <dlfcn.h>
7845 #endif
7846
7847 #include <stdio.h>
7848
7849 #ifdef RTLD_GLOBAL
7850 #  define LT_DLGLOBAL           RTLD_GLOBAL
7851 #else
7852 #  ifdef DL_GLOBAL
7853 #    define LT_DLGLOBAL         DL_GLOBAL
7854 #  else
7855 #    define LT_DLGLOBAL         0
7856 #  endif
7857 #endif
7858
7859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7860    find out it does not work in some platform. */
7861 #ifndef LT_DLLAZY_OR_NOW
7862 #  ifdef RTLD_LAZY
7863 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7864 #  else
7865 #    ifdef DL_LAZY
7866 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7867 #    else
7868 #      ifdef RTLD_NOW
7869 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7870 #      else
7871 #        ifdef DL_NOW
7872 #          define LT_DLLAZY_OR_NOW      DL_NOW
7873 #        else
7874 #          define LT_DLLAZY_OR_NOW      0
7875 #        endif
7876 #      endif
7877 #    endif
7878 #  endif
7879 #endif
7880
7881 #ifdef __cplusplus
7882 extern "C" void exit (int);
7883 #endif
7884
7885 void fnord() { int i=42;}
7886 int main ()
7887 {
7888   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7889   int status = $lt_dlunknown;
7890
7891   if (self)
7892     {
7893       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7894       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7895       /* dlclose (self); */
7896     }
7897
7898     exit (status);
7899 }
7900 EOF
7901   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902   (eval $ac_link) 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7906     (./conftest; exit; ) 2>/dev/null
7907     lt_status=$?
7908     case x$lt_status in
7909       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7910       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7911       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7912     esac
7913   else :
7914     # compilation failed
7915     lt_cv_dlopen_self=no
7916   fi
7917 fi
7918 rm -fr conftest*
7919
7920
7921 fi
7922 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7923 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7924
7925     if test "x$lt_cv_dlopen_self" = xyes; then
7926       LDFLAGS="$LDFLAGS $link_static_flag"
7927       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7928 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7929 if test "${lt_cv_dlopen_self_static+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932           if test "$cross_compiling" = yes; then :
7933   lt_cv_dlopen_self_static=cross
7934 else
7935     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7936   lt_status=$lt_dlunknown
7937   cat > conftest.$ac_ext <<EOF
7938 #line 7938 "configure"
7939 #include "confdefs.h"
7940
7941 #if HAVE_DLFCN_H
7942 #include <dlfcn.h>
7943 #endif
7944
7945 #include <stdio.h>
7946
7947 #ifdef RTLD_GLOBAL
7948 #  define LT_DLGLOBAL           RTLD_GLOBAL
7949 #else
7950 #  ifdef DL_GLOBAL
7951 #    define LT_DLGLOBAL         DL_GLOBAL
7952 #  else
7953 #    define LT_DLGLOBAL         0
7954 #  endif
7955 #endif
7956
7957 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7958    find out it does not work in some platform. */
7959 #ifndef LT_DLLAZY_OR_NOW
7960 #  ifdef RTLD_LAZY
7961 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7962 #  else
7963 #    ifdef DL_LAZY
7964 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7965 #    else
7966 #      ifdef RTLD_NOW
7967 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7968 #      else
7969 #        ifdef DL_NOW
7970 #          define LT_DLLAZY_OR_NOW      DL_NOW
7971 #        else
7972 #          define LT_DLLAZY_OR_NOW      0
7973 #        endif
7974 #      endif
7975 #    endif
7976 #  endif
7977 #endif
7978
7979 #ifdef __cplusplus
7980 extern "C" void exit (int);
7981 #endif
7982
7983 void fnord() { int i=42;}
7984 int main ()
7985 {
7986   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7987   int status = $lt_dlunknown;
7988
7989   if (self)
7990     {
7991       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7992       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7993       /* dlclose (self); */
7994     }
7995
7996     exit (status);
7997 }
7998 EOF
7999   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000   (eval $ac_link) 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8004     (./conftest; exit; ) 2>/dev/null
8005     lt_status=$?
8006     case x$lt_status in
8007       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8008       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8009       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8010     esac
8011   else :
8012     # compilation failed
8013     lt_cv_dlopen_self_static=no
8014   fi
8015 fi
8016 rm -fr conftest*
8017
8018
8019 fi
8020 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8021 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8022     fi
8023
8024     CPPFLAGS="$save_CPPFLAGS"
8025     LDFLAGS="$save_LDFLAGS"
8026     LIBS="$save_LIBS"
8027     ;;
8028   esac
8029
8030   case $lt_cv_dlopen_self in
8031   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8032   *) enable_dlopen_self=unknown ;;
8033   esac
8034
8035   case $lt_cv_dlopen_self_static in
8036   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8037   *) enable_dlopen_self_static=unknown ;;
8038   esac
8039 fi
8040
8041
8042 if test "$enable_shared" = yes && test "$GCC" = yes; then
8043   case $archive_cmds in
8044   *'~'*)
8045     # FIXME: we may have to deal with multi-command sequences.
8046     ;;
8047   '$CC '*)
8048     # Test whether the compiler implicitly links with -lc since on some
8049     # systems, -lgcc has to come before -lc. If gcc already passes -lc
8050     # to ld, don't add -lc before -lgcc.
8051     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8053     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056   $rm conftest*
8057     echo 'static int dummy;' > conftest.$ac_ext
8058
8059     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060   (eval $ac_compile) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; then
8064       soname=conftest
8065       lib=conftest
8066       libobjs=conftest.$ac_objext
8067       deplibs=
8068       wl=$lt_cv_prog_cc_wl
8069       compiler_flags=-v
8070       linker_flags=-v
8071       verstring=
8072       output_objdir=.
8073       libname=conftest
8074       save_allow_undefined_flag=$allow_undefined_flag
8075       allow_undefined_flag=
8076       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8077   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }
8081       then
8082         lt_cv_archive_cmds_need_lc=no
8083       else
8084         lt_cv_archive_cmds_need_lc=yes
8085       fi
8086       allow_undefined_flag=$save_allow_undefined_flag
8087     else
8088       cat conftest.err 1>&5
8089     fi
8090 fi
8091
8092     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8093 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8094     ;;
8095   esac
8096 fi
8097 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8098
8099 # The second clause should only fire when bootstrapping the
8100 # libtool distribution, otherwise you forgot to ship ltmain.sh
8101 # with your package, and you will get complaints that there are
8102 # no rules to generate ltmain.sh.
8103 if test -f "$ltmain"; then
8104   :
8105 else
8106   # If there is no Makefile yet, we rely on a make rule to execute
8107   # `config.status --recheck' to rerun these tests and create the
8108   # libtool script then.
8109   test -f Makefile && make "$ltmain"
8110 fi
8111
8112 if test -f "$ltmain"; then
8113   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8114   $rm -f "${ofile}T"
8115
8116   echo creating $ofile
8117
8118   # Now quote all the things that may contain metacharacters while being
8119   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8120   # variables and quote the copies for generation of the libtool script.
8121   for var in echo old_CC old_CFLAGS SED \
8122     AR AR_FLAGS CC LD LN_S NM SHELL \
8123     reload_flag reload_cmds wl \
8124     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8125     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8126     library_names_spec soname_spec \
8127     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8128     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8129     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8130     old_striplib striplib file_magic_cmd export_symbols_cmds \
8131     deplibs_check_method allow_undefined_flag no_undefined_flag \
8132     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8133     global_symbol_to_c_name_address \
8134     hardcode_libdir_flag_spec hardcode_libdir_separator  \
8135     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8136     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8137
8138     case $var in
8139     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8140     old_postinstall_cmds | old_postuninstall_cmds | \
8141     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8142     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8143     postinstall_cmds | postuninstall_cmds | \
8144     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8145       # Double-quote double-evaled strings.
8146       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8147       ;;
8148     *)
8149       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8150       ;;
8151     esac
8152   done
8153
8154   cat <<__EOF__ > "${ofile}T"
8155 #! $SHELL
8156
8157 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8158 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8159 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8160 #
8161 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8162 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8163 #
8164 # This program is free software; you can redistribute it and/or modify
8165 # it under the terms of the GNU General Public License as published by
8166 # the Free Software Foundation; either version 2 of the License, or
8167 # (at your option) any later version.
8168 #
8169 # This program is distributed in the hope that it will be useful, but
8170 # WITHOUT ANY WARRANTY; without even the implied warranty of
8171 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8172 # General Public License for more details.
8173 #
8174 # You should have received a copy of the GNU General Public License
8175 # along with this program; if not, write to the Free Software
8176 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8177 #
8178 # As a special exception to the GNU General Public License, if you
8179 # distribute this file as part of a program that contains a
8180 # configuration script generated by Autoconf, you may include it under
8181 # the same distribution terms that you use for the rest of that program.
8182
8183 # A sed that does not truncate output.
8184 SED=$lt_SED
8185
8186 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8187 Xsed="${SED} -e s/^X//"
8188
8189 # The HP-UX ksh and POSIX shell print the target directory to stdout
8190 # if CDPATH is set.
8191 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8192
8193 # ### BEGIN LIBTOOL CONFIG
8194
8195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8196
8197 # Shell to use when invoking shell scripts.
8198 SHELL=$lt_SHELL
8199
8200 # Whether or not to build shared libraries.
8201 build_libtool_libs=$enable_shared
8202
8203 # Whether or not to build static libraries.
8204 build_old_libs=$enable_static
8205
8206 # Whether or not to add -lc for building shared libraries.
8207 build_libtool_need_lc=$need_lc
8208
8209 # Whether or not to optimize for fast installation.
8210 fast_install=$enable_fast_install
8211
8212 # The host system.
8213 host_alias=$host_alias
8214 host=$host
8215
8216 # An echo program that does not interpret backslashes.
8217 echo=$lt_echo
8218
8219 # The archiver.
8220 AR=$lt_AR
8221 AR_FLAGS=$lt_AR_FLAGS
8222
8223 # The default C compiler.
8224 CC=$lt_CC
8225
8226 # Is the compiler the GNU C compiler?
8227 with_gcc=$GCC
8228
8229 # The linker used to build libraries.
8230 LD=$lt_LD
8231
8232 # Whether we need hard or soft links.
8233 LN_S=$lt_LN_S
8234
8235 # A BSD-compatible nm program.
8236 NM=$lt_NM
8237
8238 # A symbol stripping program
8239 STRIP=$STRIP
8240
8241 # Used to examine libraries when file_magic_cmd begins "file"
8242 MAGIC_CMD=$MAGIC_CMD
8243
8244 # Used on cygwin: DLL creation program.
8245 DLLTOOL="$DLLTOOL"
8246
8247 # Used on cygwin: object dumper.
8248 OBJDUMP="$OBJDUMP"
8249
8250 # Used on cygwin: assembler.
8251 AS="$AS"
8252
8253 # The name of the directory that contains temporary libtool files.
8254 objdir=$objdir
8255
8256 # How to create reloadable object files.
8257 reload_flag=$lt_reload_flag
8258 reload_cmds=$lt_reload_cmds
8259
8260 # How to pass a linker flag through the compiler.
8261 wl=$lt_wl
8262
8263 # Object file suffix (normally "o").
8264 objext="$ac_objext"
8265
8266 # Old archive suffix (normally "a").
8267 libext="$libext"
8268
8269 # Executable file suffix (normally "").
8270 exeext="$exeext"
8271
8272 # Additional compiler flags for building library objects.
8273 pic_flag=$lt_pic_flag
8274 pic_mode=$pic_mode
8275
8276 # Does compiler simultaneously support -c and -o options?
8277 compiler_c_o=$lt_compiler_c_o
8278
8279 # Can we write directly to a .lo ?
8280 compiler_o_lo=$lt_compiler_o_lo
8281
8282 # Must we lock files when doing compilation ?
8283 need_locks=$lt_need_locks
8284
8285 # Do we need the lib prefix for modules?
8286 need_lib_prefix=$need_lib_prefix
8287
8288 # Do we need a version for libraries?
8289 need_version=$need_version
8290
8291 # Whether dlopen is supported.
8292 dlopen_support=$enable_dlopen
8293
8294 # Whether dlopen of programs is supported.
8295 dlopen_self=$enable_dlopen_self
8296
8297 # Whether dlopen of statically linked programs is supported.
8298 dlopen_self_static=$enable_dlopen_self_static
8299
8300 # Compiler flag to prevent dynamic linking.
8301 link_static_flag=$lt_link_static_flag
8302
8303 # Compiler flag to turn off builtin functions.
8304 no_builtin_flag=$lt_no_builtin_flag
8305
8306 # Compiler flag to allow reflexive dlopens.
8307 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8308
8309 # Compiler flag to generate shared objects directly from archives.
8310 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8311
8312 # Compiler flag to generate thread-safe objects.
8313 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8314
8315 # Library versioning type.
8316 version_type=$version_type
8317
8318 # Format of library name prefix.
8319 libname_spec=$lt_libname_spec
8320
8321 # List of archive names.  First name is the real one, the rest are links.
8322 # The last name is the one that the linker finds with -lNAME.
8323 library_names_spec=$lt_library_names_spec
8324
8325 # The coded name of the library, if different from the real name.
8326 soname_spec=$lt_soname_spec
8327
8328 # Commands used to build and install an old-style archive.
8329 RANLIB=$lt_RANLIB
8330 old_archive_cmds=$lt_old_archive_cmds
8331 old_postinstall_cmds=$lt_old_postinstall_cmds
8332 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8333
8334 # Create an old-style archive from a shared archive.
8335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8336
8337 # Create a temporary old-style archive to link instead of a shared archive.
8338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8339
8340 # Commands used to build and install a shared archive.
8341 archive_cmds=$lt_archive_cmds
8342 archive_expsym_cmds=$lt_archive_expsym_cmds
8343 postinstall_cmds=$lt_postinstall_cmds
8344 postuninstall_cmds=$lt_postuninstall_cmds
8345
8346 # Commands to strip libraries.
8347 old_striplib=$lt_old_striplib
8348 striplib=$lt_striplib
8349
8350 # Method to check whether dependent libraries are shared objects.
8351 deplibs_check_method=$lt_deplibs_check_method
8352
8353 # Command to use when deplibs_check_method == file_magic.
8354 file_magic_cmd=$lt_file_magic_cmd
8355
8356 # Flag that allows shared libraries with undefined symbols to be built.
8357 allow_undefined_flag=$lt_allow_undefined_flag
8358
8359 # Flag that forces no undefined symbols.
8360 no_undefined_flag=$lt_no_undefined_flag
8361
8362 # Commands used to finish a libtool library installation in a directory.
8363 finish_cmds=$lt_finish_cmds
8364
8365 # Same as above, but a single script fragment to be evaled but not shown.
8366 finish_eval=$lt_finish_eval
8367
8368 # Take the output of nm and produce a listing of raw symbols and C names.
8369 global_symbol_pipe=$lt_global_symbol_pipe
8370
8371 # Transform the output of nm in a proper C declaration
8372 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8373
8374 # Transform the output of nm in a C name address pair
8375 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8376
8377 # This is the shared library runtime path variable.
8378 runpath_var=$runpath_var
8379
8380 # This is the shared library path variable.
8381 shlibpath_var=$shlibpath_var
8382
8383 # Is shlibpath searched before the hard-coded library search path?
8384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8385
8386 # How to hardcode a shared library path into an executable.
8387 hardcode_action=$hardcode_action
8388
8389 # Whether we should hardcode library paths into libraries.
8390 hardcode_into_libs=$hardcode_into_libs
8391
8392 # Flag to hardcode \$libdir into a binary during linking.
8393 # This must work even if \$libdir does not exist.
8394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8395
8396 # Whether we need a single -rpath flag with a separated argument.
8397 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8398
8399 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8400 # resulting binary.
8401 hardcode_direct=$hardcode_direct
8402
8403 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8404 # resulting binary.
8405 hardcode_minus_L=$hardcode_minus_L
8406
8407 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8408 # the resulting binary.
8409 hardcode_shlibpath_var=$hardcode_shlibpath_var
8410
8411 # Variables whose values should be saved in libtool wrapper scripts and
8412 # restored at relink time.
8413 variables_saved_for_relink="$variables_saved_for_relink"
8414
8415 # Whether libtool must link a program against all its dependency libraries.
8416 link_all_deplibs=$link_all_deplibs
8417
8418 # Compile-time system search path for libraries
8419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8420
8421 # Run-time system search path for libraries
8422 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8423
8424 # Fix the shell variable \$srcfile for the compiler.
8425 fix_srcfile_path="$fix_srcfile_path"
8426
8427 # Set to yes if exported symbols are required.
8428 always_export_symbols=$always_export_symbols
8429
8430 # The commands to list exported symbols.
8431 export_symbols_cmds=$lt_export_symbols_cmds
8432
8433 # The commands to extract the exported symbol list from a shared archive.
8434 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8435
8436 # Symbols that should not be listed in the preloaded symbols.
8437 exclude_expsyms=$lt_exclude_expsyms
8438
8439 # Symbols that must always be exported.
8440 include_expsyms=$lt_include_expsyms
8441
8442 # ### END LIBTOOL CONFIG
8443
8444 __EOF__
8445
8446   case $host_os in
8447   aix3*)
8448     cat <<\EOF >> "${ofile}T"
8449
8450 # AIX sometimes has problems with the GCC collect2 program.  For some
8451 # reason, if we set the COLLECT_NAMES environment variable, the problems
8452 # vanish in a puff of smoke.
8453 if test "X${COLLECT_NAMES+set}" != Xset; then
8454   COLLECT_NAMES=
8455   export COLLECT_NAMES
8456 fi
8457 EOF
8458     ;;
8459   esac
8460
8461   case $host_os in
8462   cygwin* | mingw* | pw32* | os2*)
8463     cat <<'EOF' >> "${ofile}T"
8464       # This is a source program that is used to create dlls on Windows
8465       # Don't remove nor modify the starting and closing comments
8466 # /* ltdll.c starts here */
8467 # #define WIN32_LEAN_AND_MEAN
8468 # #include <windows.h>
8469 # #undef WIN32_LEAN_AND_MEAN
8470 # #include <stdio.h>
8471 #
8472 # #ifndef __CYGWIN__
8473 # #  ifdef __CYGWIN32__
8474 # #    define __CYGWIN__ __CYGWIN32__
8475 # #  endif
8476 # #endif
8477 #
8478 # #ifdef __cplusplus
8479 # extern "C" {
8480 # #endif
8481 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8482 # #ifdef __cplusplus
8483 # }
8484 # #endif
8485 #
8486 # #ifdef __CYGWIN__
8487 # #include <cygwin/cygwin_dll.h>
8488 # DECLARE_CYGWIN_DLL( DllMain );
8489 # #endif
8490 # HINSTANCE __hDllInstance_base;
8491 #
8492 # BOOL APIENTRY
8493 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8494 # {
8495 #   __hDllInstance_base = hInst;
8496 #   return TRUE;
8497 # }
8498 # /* ltdll.c ends here */
8499         # This is a source program that is used to create import libraries
8500         # on Windows for dlls which lack them. Don't remove nor modify the
8501         # starting and closing comments
8502 # /* impgen.c starts here */
8503 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8504 #
8505 #  This file is part of GNU libtool.
8506 #
8507 #  This program is free software; you can redistribute it and/or modify
8508 #  it under the terms of the GNU General Public License as published by
8509 #  the Free Software Foundation; either version 2 of the License, or
8510 #  (at your option) any later version.
8511 #
8512 #  This program is distributed in the hope that it will be useful,
8513 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8514 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8515 #  GNU General Public License for more details.
8516 #
8517 #  You should have received a copy of the GNU General Public License
8518 #  along with this program; if not, write to the Free Software
8519 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8520 #  */
8521 #
8522 # #include <stdio.h>            /* for printf() */
8523 # #include <unistd.h>           /* for open(), lseek(), read() */
8524 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8525 # #include <string.h>           /* for strdup() */
8526 #
8527 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8528 # #ifndef O_BINARY
8529 # #define O_BINARY 0
8530 # #endif
8531 #
8532 # static unsigned int
8533 # pe_get16 (fd, offset)
8534 #      int fd;
8535 #      int offset;
8536 # {
8537 #   unsigned char b[2];
8538 #   lseek (fd, offset, SEEK_SET);
8539 #   read (fd, b, 2);
8540 #   return b[0] + (b[1]<<8);
8541 # }
8542 #
8543 # static unsigned int
8544 # pe_get32 (fd, offset)
8545 #     int fd;
8546 #     int offset;
8547 # {
8548 #   unsigned char b[4];
8549 #   lseek (fd, offset, SEEK_SET);
8550 #   read (fd, b, 4);
8551 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8552 # }
8553 #
8554 # static unsigned int
8555 # pe_as32 (ptr)
8556 #      void *ptr;
8557 # {
8558 #   unsigned char *b = ptr;
8559 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8560 # }
8561 #
8562 # int
8563 # main (argc, argv)
8564 #     int argc;
8565 #     char *argv[];
8566 # {
8567 #     int dll;
8568 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8569 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8570 #     unsigned long name_rvas, nexp;
8571 #     unsigned char *expdata, *erva;
8572 #     char *filename, *dll_name;
8573 #
8574 #     filename = argv[1];
8575 #
8576 #     dll = open(filename, O_RDONLY|O_BINARY);
8577 #     if (dll < 1)
8578 #       return 1;
8579 #
8580 #     dll_name = filename;
8581 #
8582 #     for (i=0; filename[i]; i++)
8583 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8584 #           dll_name = filename + i +1;
8585 #
8586 #     pe_header_offset = pe_get32 (dll, 0x3c);
8587 #     opthdr_ofs = pe_header_offset + 4 + 20;
8588 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8589 #
8590 #     if (num_entries < 1) /* no exports */
8591 #       return 1;
8592 #
8593 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8594 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8595 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8596 #     secptr = (pe_header_offset + 4 + 20 +
8597 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8598 #
8599 #     expptr = 0;
8600 #     for (i = 0; i < nsections; i++)
8601 #     {
8602 #       char sname[8];
8603 #       unsigned long secptr1 = secptr + 40 * i;
8604 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8605 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8606 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8607 #       lseek(dll, secptr1, SEEK_SET);
8608 #       read(dll, sname, 8);
8609 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8610 #       {
8611 #           expptr = fptr + (export_rva - vaddr);
8612 #           if (export_rva + export_size > vaddr + vsize)
8613 #               export_size = vsize - (export_rva - vaddr);
8614 #           break;
8615 #       }
8616 #     }
8617 #
8618 #     expdata = (unsigned char*)malloc(export_size);
8619 #     lseek (dll, expptr, SEEK_SET);
8620 #     read (dll, expdata, export_size);
8621 #     erva = expdata - export_rva;
8622 #
8623 #     nexp = pe_as32 (expdata+24);
8624 #     name_rvas = pe_as32 (expdata+32);
8625 #
8626 #     printf ("EXPORTS\n");
8627 #     for (i = 0; i<nexp; i++)
8628 #     {
8629 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8630 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8631 #     }
8632 #
8633 #     return 0;
8634 # }
8635 # /* impgen.c ends here */
8636
8637 EOF
8638     ;;
8639   esac
8640
8641   # We use sed instead of cat because bash on DJGPP gets confused if
8642   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8643   # text mode, it properly converts lines to CR/LF.  This bash problem
8644   # is reportedly fixed, but why not run on old versions too?
8645   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8646
8647   mv -f "${ofile}T" "$ofile" || \
8648     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8649   chmod +x "$ofile"
8650 fi
8651
8652
8653
8654
8655
8656 # This can be used to rebuild libtool when needed
8657 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8658
8659 # Always use our own libtool.
8660 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8661
8662 # Prevent multiple expansion
8663
8664
8665
8666 # Checks for header files.
8667 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8668 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8669 if test "${ac_cv_header_stdc+set}" = set; then
8670   echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672   cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h.  */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h.  */
8678 #include <stdlib.h>
8679 #include <stdarg.h>
8680 #include <string.h>
8681 #include <float.h>
8682
8683 int
8684 main ()
8685 {
8686
8687   ;
8688   return 0;
8689 }
8690 _ACEOF
8691 rm -f conftest.$ac_objext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8693   (eval $ac_compile) 2>conftest.er1
8694   ac_status=$?
8695   grep -v '^ *+' conftest.er1 >conftest.err
8696   rm -f conftest.er1
8697   cat conftest.err >&5
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); } &&
8700          { ac_try='test -z "$ac_c_werror_flag"
8701                          || test ! -s conftest.err'
8702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703   (eval $ac_try) 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); }; } &&
8707          { ac_try='test -s conftest.$ac_objext'
8708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709   (eval $ac_try) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; }; then
8713   ac_cv_header_stdc=yes
8714 else
8715   echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718 ac_cv_header_stdc=no
8719 fi
8720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8721
8722 if test $ac_cv_header_stdc = yes; then
8723   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8724   cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h.  */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h.  */
8730 #include <string.h>
8731
8732 _ACEOF
8733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8734   $EGREP "memchr" >/dev/null 2>&1; then
8735   :
8736 else
8737   ac_cv_header_stdc=no
8738 fi
8739 rm -f conftest*
8740
8741 fi
8742
8743 if test $ac_cv_header_stdc = yes; then
8744   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8745   cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751 #include <stdlib.h>
8752
8753 _ACEOF
8754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8755   $EGREP "free" >/dev/null 2>&1; then
8756   :
8757 else
8758   ac_cv_header_stdc=no
8759 fi
8760 rm -f conftest*
8761
8762 fi
8763
8764 if test $ac_cv_header_stdc = yes; then
8765   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8766   if test "$cross_compiling" = yes; then
8767   :
8768 else
8769   cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h.  */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h.  */
8775 #include <ctype.h>
8776 #if ((' ' & 0x0FF) == 0x020)
8777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8779 #else
8780 # define ISLOWER(c) \
8781                    (('a' <= (c) && (c) <= 'i') \
8782                      || ('j' <= (c) && (c) <= 'r') \
8783                      || ('s' <= (c) && (c) <= 'z'))
8784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8785 #endif
8786
8787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8788 int
8789 main ()
8790 {
8791   int i;
8792   for (i = 0; i < 256; i++)
8793     if (XOR (islower (i), ISLOWER (i))
8794         || toupper (i) != TOUPPER (i))
8795       exit(2);
8796   exit (0);
8797 }
8798 _ACEOF
8799 rm -f conftest$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801   (eval $ac_link) 2>&5
8802   ac_status=$?
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806   (eval $ac_try) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); }; }; then
8810   :
8811 else
8812   echo "$as_me: program exited with status $ac_status" >&5
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8815
8816 ( exit $ac_status )
8817 ac_cv_header_stdc=no
8818 fi
8819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8820 fi
8821 fi
8822 fi
8823 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8824 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8825 if test $ac_cv_header_stdc = yes; then
8826
8827 cat >>confdefs.h <<\_ACEOF
8828 #define STDC_HEADERS 1
8829 _ACEOF
8830
8831 fi
8832
8833
8834
8835
8836
8837 for ac_header in fcntl.h stdlib.h string.h unistd.h
8838 do
8839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8841   echo "$as_me:$LINENO: checking for $ac_header" >&5
8842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 fi
8846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8848 else
8849   # Is the header compilable?
8850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h.  */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h.  */
8858 $ac_includes_default
8859 #include <$ac_header>
8860 _ACEOF
8861 rm -f conftest.$ac_objext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8863   (eval $ac_compile) 2>conftest.er1
8864   ac_status=$?
8865   grep -v '^ *+' conftest.er1 >conftest.err
8866   rm -f conftest.er1
8867   cat conftest.err >&5
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); } &&
8870          { ac_try='test -z "$ac_c_werror_flag"
8871                          || test ! -s conftest.err'
8872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873   (eval $ac_try) 2>&5
8874   ac_status=$?
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); }; } &&
8877          { ac_try='test -s conftest.$ac_objext'
8878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879   (eval $ac_try) 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); }; }; then
8883   ac_header_compiler=yes
8884 else
8885   echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888 ac_header_compiler=no
8889 fi
8890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8892 echo "${ECHO_T}$ac_header_compiler" >&6
8893
8894 # Is the header present?
8895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8897 cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h.  */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h.  */
8903 #include <$ac_header>
8904 _ACEOF
8905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8907   ac_status=$?
8908   grep -v '^ *+' conftest.er1 >conftest.err
8909   rm -f conftest.er1
8910   cat conftest.err >&5
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); } >/dev/null; then
8913   if test -s conftest.err; then
8914     ac_cpp_err=$ac_c_preproc_warn_flag
8915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8916   else
8917     ac_cpp_err=
8918   fi
8919 else
8920   ac_cpp_err=yes
8921 fi
8922 if test -z "$ac_cpp_err"; then
8923   ac_header_preproc=yes
8924 else
8925   echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8927
8928   ac_header_preproc=no
8929 fi
8930 rm -f conftest.err conftest.$ac_ext
8931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8932 echo "${ECHO_T}$ac_header_preproc" >&6
8933
8934 # So?  What about this header?
8935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8936   yes:no: )
8937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8941     ac_header_preproc=yes
8942     ;;
8943   no:yes:* )
8944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8956     (
8957       cat <<\_ASBOX
8958 ## -------------------------------------------- ##
8959 ## Report this to sebastian.marsching@suphp.org ##
8960 ## -------------------------------------------- ##
8961 _ASBOX
8962     ) |
8963       sed "s/^/$as_me: WARNING:     /" >&2
8964     ;;
8965 esac
8966 echo "$as_me:$LINENO: checking for $ac_header" >&5
8967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8969   echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971   eval "$as_ac_Header=\$ac_header_preproc"
8972 fi
8973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8975
8976 fi
8977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8978   cat >>confdefs.h <<_ACEOF
8979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8980 _ACEOF
8981
8982 fi
8983
8984 done
8985
8986
8987 # Determine Apache version and find apxs
8988
8989 echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
8990 echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6
8991
8992 # Check whether --with-apxs or --without-apxs was given.
8993 if test "${with_apxs+set}" = set; then
8994   withval="$with_apxs"
8995
8996             if test "$withval" = "yes"; then
8997               APXS=apxs
8998             else
8999               APXS="$withval"
9000             fi
9001
9002 fi;
9003
9004 if test -z "$APXS"; then
9005   APXS=`which apxs`
9006 fi
9007
9008 if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
9009   for i in /usr/sbin /usr/local/apache/bin ; do
9010     if test -f "$i/apxs"; then
9011       APXS="$i/apxs"
9012     fi
9013   done
9014 fi
9015
9016 if test -n "$APXS"; then
9017
9018
9019     APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
9020                     | grep "Server version" \
9021                     | cut -f2 -d":" \
9022                     | cut -f2 -d"/" \
9023                     | cut -f1 -d" "`
9024     major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
9025     if test "$major_version" = "2.0"; then
9026       APACHE_VERSION_2=true
9027       APACHE_VERSION_1_3=false
9028     else
9029       APACHE_VERSION_2=false
9030       APACHE_VERSION_1_3=true
9031     fi
9032
9033
9034
9035     APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
9036     APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
9037     if test x"{$APACHE_VERSION_2}" = xtrue ; then \
9038       APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS`
9039     fi
9040     if test x"${APACHE_VERSION_1_3}" = xtrue; then \
9041       APXS_EXTRA_CFLAGS=`$APXS -q CFLAGS`
9042     fi
9043
9044
9045
9046
9047     echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
9048 echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6
9049 else
9050     APXS="/notfound/"
9051
9052
9053     echo "$as_me:$LINENO: result: no" >&5
9054 echo "${ECHO_T}no" >&6
9055 fi
9056
9057
9058 # Get uid/gid mode
9059
9060 echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
9061 echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6
9062
9063 # Check whether --with-setid-mode or --without-setid-mode was given.
9064 if test "${with_setid_mode+set}" = set; then
9065   withval="$with_setid_mode"
9066
9067             if test "$withval" = "yes"; then
9068               SETID_MODE="paranoid"
9069             else
9070               SETID_MODE="$withval"
9071             fi
9072
9073 fi;
9074
9075 if test -z "$SETID_MODE" ; then
9076   SETID_MODE="paranoid"
9077 fi
9078
9079 if test -n "$SETID_MODE"; then
9080     case "$SETID_MODE" in
9081       owner)
9082         OPT_APACHEMOD_USERGROUP_DEF=""
9083
9084
9085 cat >>confdefs.h <<\_ACEOF
9086 #define OPT_USERGROUP_OWNER 1
9087 _ACEOF
9088
9089         ;;
9090       force)
9091         OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
9092
9093
9094 cat >>confdefs.h <<\_ACEOF
9095 #define OPT_USERGROUP_FORCE 1
9096 _ACEOF
9097
9098         ;;
9099       paranoid)
9100         OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
9101
9102
9103 cat >>confdefs.h <<\_ACEOF
9104 #define OPT_USERGROUP_PARANOID 1
9105 _ACEOF
9106
9107         ;;
9108       *)
9109         { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
9110 echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
9111    { (exit 1); exit 1; }; }
9112         ;;
9113     esac
9114     echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
9115 echo "${ECHO_T}ok - using $SETID_MODE" >&6
9116 fi
9117
9118
9119 # Checkpath (docroot) option
9120
9121 checkpath=yes
9122 # Check whether --enable-checkpath or --disable-checkpath was given.
9123 if test "${enable_checkpath+set}" = set; then
9124   enableval="$enable_checkpath"
9125
9126               if test "$enableval" = "no"; then
9127                 checkpath=no
9128
9129 cat >>confdefs.h <<\_ACEOF
9130 #define OPT_DISABLE_CHECKPATH 1
9131 _ACEOF
9132
9133               fi
9134
9135 fi;
9136
9137
9138 # Minimum UID
9139
9140
9141 # Check whether --with-min-uid or --without-min-uid was given.
9142 if test "${with_min_uid+set}" = set; then
9143   withval="$with_min_uid"
9144
9145              if test "$withval" -a ! "$withval" = "yes" ; then
9146
9147 cat >>confdefs.h <<_ACEOF
9148 #define OPT_MIN_UID $withval
9149 _ACEOF
9150
9151              fi
9152
9153 else
9154
9155
9156 cat >>confdefs.h <<\_ACEOF
9157 #define OPT_MIN_UID 100
9158 _ACEOF
9159
9160
9161 fi;
9162
9163 # Minimum GID
9164
9165
9166 # Check whether --with-min-gid or --without-min-gid was given.
9167 if test "${with_min_gid+set}" = set; then
9168   withval="$with_min_gid"
9169
9170              if test "$withval" -a ! "$withval" = "yes" ; then
9171
9172 cat >>confdefs.h <<_ACEOF
9173 #define OPT_MIN_GID $withval
9174 _ACEOF
9175
9176              fi
9177
9178 else
9179
9180
9181 cat >>confdefs.h <<\_ACEOF
9182 #define OPT_MIN_GID 100
9183 _ACEOF
9184
9185
9186 fi;
9187
9188
9189 # Webserver user
9190
9191
9192 # Check whether --with-apache-user or --without-apache-user was given.
9193 if test "${with_apache_user+set}" = set; then
9194   withval="$with_apache_user"
9195
9196              if test "$withval" -a ! "$withval" = "yes" ; then
9197
9198 cat >>confdefs.h <<_ACEOF
9199 #define OPT_APACHE_USER "$withval"
9200 _ACEOF
9201
9202              fi
9203
9204 else
9205
9206
9207 cat >>confdefs.h <<_ACEOF
9208 #define OPT_APACHE_USER "wwwrun"
9209 _ACEOF
9210
9211
9212 fi;
9213
9214 # Path to logfile
9215
9216
9217 # Check whether --with-logfile or --without-logfile was given.
9218 if test "${with_logfile+set}" = set; then
9219   withval="$with_logfile"
9220
9221              if test "$withval" -a ! "$withval" = "yes" ; then
9222
9223 cat >>confdefs.h <<_ACEOF
9224 #define OPT_LOGFILE "$withval"
9225 _ACEOF
9226
9227              fi
9228
9229 else
9230
9231
9232 cat >>confdefs.h <<_ACEOF
9233 #define OPT_LOGFILE "/var/log/httpd/suphp_log"
9234 _ACEOF
9235
9236
9237 fi;
9238
9239
9240 # Conditional building of Apache module
9241
9242
9243 if test x"$APACHE_VERSION_1_3" = xtrue; then
9244   COND_AP13_TRUE=
9245   COND_AP13_FALSE='#'
9246 else
9247   COND_AP13_TRUE='#'
9248   COND_AP13_FALSE=
9249 fi
9250
9251
9252
9253 if test x"$APACHE_VERSION_2" = xtrue; then
9254   COND_AP20_TRUE=
9255   COND_AP20_FALSE='#'
9256 else
9257   COND_AP20_TRUE='#'
9258   COND_AP20_FALSE=
9259 fi
9260
9261
9262 # Conditionally include UserGroup support
9263
9264
9265 if test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ; then
9266   COND_APUSERGROUP_TRUE=
9267   COND_APUSERGROUP_FALSE='#'
9268 else
9269   COND_APUSERGROUP_TRUE='#'
9270   COND_APUSERGROUP_FALSE=
9271 fi
9272
9273
9274                                         ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
9275
9276 cat >confcache <<\_ACEOF
9277 # This file is a shell script that caches the results of configure
9278 # tests run on this system so they can be shared between configure
9279 # scripts and configure runs, see configure's option --config-cache.
9280 # It is not useful on other systems.  If it contains results you don't
9281 # want to keep, you may remove or edit it.
9282 #
9283 # config.status only pays attention to the cache file if you give it
9284 # the --recheck option to rerun configure.
9285 #
9286 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9287 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9288 # following values.
9289
9290 _ACEOF
9291
9292 # The following way of writing the cache mishandles newlines in values,
9293 # but we know of no workaround that is simple, portable, and efficient.
9294 # So, don't put newlines in cache variables' values.
9295 # Ultrix sh set writes to stderr and can't be redirected directly,
9296 # and sets the high bit in the cache file unless we assign to the vars.
9297 {
9298   (set) 2>&1 |
9299     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9300     *ac_space=\ *)
9301       # `set' does not quote correctly, so add quotes (double-quote
9302       # substitution turns \\\\ into \\, and sed turns \\ into \).
9303       sed -n \
9304         "s/'/'\\\\''/g;
9305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9306       ;;
9307     *)
9308       # `set' quotes correctly as required by POSIX, so do not add quotes.
9309       sed -n \
9310         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9311       ;;
9312     esac;
9313 } |
9314   sed '
9315      t clear
9316      : clear
9317      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9318      t end
9319      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9320      : end' >>confcache
9321 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9322   if test -w $cache_file; then
9323     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9324     cat confcache >$cache_file
9325   else
9326     echo "not updating unwritable cache $cache_file"
9327   fi
9328 fi
9329 rm -f confcache
9330
9331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9332 # Let make expand exec_prefix.
9333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9334
9335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9337 # trailing colons and then remove the whole line if VPATH becomes empty
9338 # (actually we leave an empty line to preserve line numbers).
9339 if test "x$srcdir" = x.; then
9340   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9341 s/:*\$(srcdir):*/:/;
9342 s/:*\${srcdir}:*/:/;
9343 s/:*@srcdir@:*/:/;
9344 s/^\([^=]*=[     ]*\):*/\1/;
9345 s/:*$//;
9346 s/^[^=]*=[       ]*$//;
9347 }'
9348 fi
9349
9350 DEFS=-DHAVE_CONFIG_H
9351
9352 ac_libobjs=
9353 ac_ltlibobjs=
9354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9355   # 1. Remove the extension, and $U if already installed.
9356   ac_i=`echo "$ac_i" |
9357          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9358   # 2. Add them.
9359   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9360   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9361 done
9362 LIBOBJS=$ac_libobjs
9363
9364 LTLIBOBJS=$ac_ltlibobjs
9365
9366
9367 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9368   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9369 Usually this means the macro was only invoked conditionally." >&5
9370 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9371 Usually this means the macro was only invoked conditionally." >&2;}
9372    { (exit 1); exit 1; }; }
9373 fi
9374 if test -z "${COND_AP13_TRUE}" && test -z "${COND_AP13_FALSE}"; then
9375   { { echo "$as_me:$LINENO: error: conditional \"COND_AP13\" was never defined.
9376 Usually this means the macro was only invoked conditionally." >&5
9377 echo "$as_me: error: conditional \"COND_AP13\" was never defined.
9378 Usually this means the macro was only invoked conditionally." >&2;}
9379    { (exit 1); exit 1; }; }
9380 fi
9381 if test -z "${COND_AP20_TRUE}" && test -z "${COND_AP20_FALSE}"; then
9382   { { echo "$as_me:$LINENO: error: conditional \"COND_AP20\" was never defined.
9383 Usually this means the macro was only invoked conditionally." >&5
9384 echo "$as_me: error: conditional \"COND_AP20\" was never defined.
9385 Usually this means the macro was only invoked conditionally." >&2;}
9386    { (exit 1); exit 1; }; }
9387 fi
9388 if test -z "${COND_APUSERGROUP_TRUE}" && test -z "${COND_APUSERGROUP_FALSE}"; then
9389   { { echo "$as_me:$LINENO: error: conditional \"COND_APUSERGROUP\" was never defined.
9390 Usually this means the macro was only invoked conditionally." >&5
9391 echo "$as_me: error: conditional \"COND_APUSERGROUP\" was never defined.
9392 Usually this means the macro was only invoked conditionally." >&2;}
9393    { (exit 1); exit 1; }; }
9394 fi
9395
9396 : ${CONFIG_STATUS=./config.status}
9397 ac_clean_files_save=$ac_clean_files
9398 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9399 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9400 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9401 cat >$CONFIG_STATUS <<_ACEOF
9402 #! $SHELL
9403 # Generated by $as_me.
9404 # Run this file to recreate the current configuration.
9405 # Compiler output produced by configure, useful for debugging
9406 # configure, is in config.log if it exists.
9407
9408 debug=false
9409 ac_cs_recheck=false
9410 ac_cs_silent=false
9411 SHELL=\${CONFIG_SHELL-$SHELL}
9412 _ACEOF
9413
9414 cat >>$CONFIG_STATUS <<\_ACEOF
9415 ## --------------------- ##
9416 ## M4sh Initialization.  ##
9417 ## --------------------- ##
9418
9419 # Be Bourne compatible
9420 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9421   emulate sh
9422   NULLCMD=:
9423   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9424   # is contrary to our usage.  Disable this feature.
9425   alias -g '${1+"$@"}'='"$@"'
9426 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9427   set -o posix
9428 fi
9429 DUALCASE=1; export DUALCASE # for MKS sh
9430
9431 # Support unset when possible.
9432 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9433   as_unset=unset
9434 else
9435   as_unset=false
9436 fi
9437
9438
9439 # Work around bugs in pre-3.0 UWIN ksh.
9440 $as_unset ENV MAIL MAILPATH
9441 PS1='$ '
9442 PS2='> '
9443 PS4='+ '
9444
9445 # NLS nuisances.
9446 for as_var in \
9447   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9448   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9449   LC_TELEPHONE LC_TIME
9450 do
9451   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9452     eval $as_var=C; export $as_var
9453   else
9454     $as_unset $as_var
9455   fi
9456 done
9457
9458 # Required to use basename.
9459 if expr a : '\(a\)' >/dev/null 2>&1; then
9460   as_expr=expr
9461 else
9462   as_expr=false
9463 fi
9464
9465 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9466   as_basename=basename
9467 else
9468   as_basename=false
9469 fi
9470
9471
9472 # Name of the executable.
9473 as_me=`$as_basename "$0" ||
9474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9475          X"$0" : 'X\(//\)$' \| \
9476          X"$0" : 'X\(/\)$' \| \
9477          .     : '\(.\)' 2>/dev/null ||
9478 echo X/"$0" |
9479     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9480           /^X\/\(\/\/\)$/{ s//\1/; q; }
9481           /^X\/\(\/\).*/{ s//\1/; q; }
9482           s/.*/./; q'`
9483
9484
9485 # PATH needs CR, and LINENO needs CR and PATH.
9486 # Avoid depending upon Character Ranges.
9487 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9488 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9489 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9490 as_cr_digits='0123456789'
9491 as_cr_alnum=$as_cr_Letters$as_cr_digits
9492
9493 # The user is always right.
9494 if test "${PATH_SEPARATOR+set}" != set; then
9495   echo "#! /bin/sh" >conf$$.sh
9496   echo  "exit 0"   >>conf$$.sh
9497   chmod +x conf$$.sh
9498   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9499     PATH_SEPARATOR=';'
9500   else
9501     PATH_SEPARATOR=:
9502   fi
9503   rm -f conf$$.sh
9504 fi
9505
9506
9507   as_lineno_1=$LINENO
9508   as_lineno_2=$LINENO
9509   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9510   test "x$as_lineno_1" != "x$as_lineno_2" &&
9511   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9512   # Find who we are.  Look in the path if we contain no path at all
9513   # relative or not.
9514   case $0 in
9515     *[\\/]* ) as_myself=$0 ;;
9516     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9518 do
9519   IFS=$as_save_IFS
9520   test -z "$as_dir" && as_dir=.
9521   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9522 done
9523
9524        ;;
9525   esac
9526   # We did not find ourselves, most probably we were run as `sh COMMAND'
9527   # in which case we are not to be found in the path.
9528   if test "x$as_myself" = x; then
9529     as_myself=$0
9530   fi
9531   if test ! -f "$as_myself"; then
9532     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9533 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9534    { (exit 1); exit 1; }; }
9535   fi
9536   case $CONFIG_SHELL in
9537   '')
9538     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9540 do
9541   IFS=$as_save_IFS
9542   test -z "$as_dir" && as_dir=.
9543   for as_base in sh bash ksh sh5; do
9544          case $as_dir in
9545          /*)
9546            if ("$as_dir/$as_base" -c '
9547   as_lineno_1=$LINENO
9548   as_lineno_2=$LINENO
9549   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9550   test "x$as_lineno_1" != "x$as_lineno_2" &&
9551   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9552              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9553              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9554              CONFIG_SHELL=$as_dir/$as_base
9555              export CONFIG_SHELL
9556              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9557            fi;;
9558          esac
9559        done
9560 done
9561 ;;
9562   esac
9563
9564   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9565   # uniformly replaced by the line number.  The first 'sed' inserts a
9566   # line-number line before each line; the second 'sed' does the real
9567   # work.  The second script uses 'N' to pair each line-number line
9568   # with the numbered line, and appends trailing '-' during
9569   # substitution so that $LINENO is not a special case at line end.
9570   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9571   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9572   sed '=' <$as_myself |
9573     sed '
9574       N
9575       s,$,-,
9576       : loop
9577       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9578       t loop
9579       s,-$,,
9580       s,^['$as_cr_digits']*\n,,
9581     ' >$as_me.lineno &&
9582   chmod +x $as_me.lineno ||
9583     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9584 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9585    { (exit 1); exit 1; }; }
9586
9587   # Don't try to exec as it changes $[0], causing all sort of problems
9588   # (the dirname of $[0] is not the place where we might find the
9589   # original and so on.  Autoconf is especially sensible to this).
9590   . ./$as_me.lineno
9591   # Exit status is that of the last command.
9592   exit
9593 }
9594
9595
9596 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9597   *c*,-n*) ECHO_N= ECHO_C='
9598 ' ECHO_T='      ' ;;
9599   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9600   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9601 esac
9602
9603 if expr a : '\(a\)' >/dev/null 2>&1; then
9604   as_expr=expr
9605 else
9606   as_expr=false
9607 fi
9608
9609 rm -f conf$$ conf$$.exe conf$$.file
9610 echo >conf$$.file
9611 if ln -s conf$$.file conf$$ 2>/dev/null; then
9612   # We could just check for DJGPP; but this test a) works b) is more generic
9613   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9614   if test -f conf$$.exe; then
9615     # Don't use ln at all; we don't have any links
9616     as_ln_s='cp -p'
9617   else
9618     as_ln_s='ln -s'
9619   fi
9620 elif ln conf$$.file conf$$ 2>/dev/null; then
9621   as_ln_s=ln
9622 else
9623   as_ln_s='cp -p'
9624 fi
9625 rm -f conf$$ conf$$.exe conf$$.file
9626
9627 if mkdir -p . 2>/dev/null; then
9628   as_mkdir_p=:
9629 else
9630   test -d ./-p && rmdir ./-p
9631   as_mkdir_p=false
9632 fi
9633
9634 as_executable_p="test -f"
9635
9636 # Sed expression to map a string onto a valid CPP name.
9637 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9638
9639 # Sed expression to map a string onto a valid variable name.
9640 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9641
9642
9643 # IFS
9644 # We need space, tab and new line, in precisely that order.
9645 as_nl='
9646 '
9647 IFS="   $as_nl"
9648
9649 # CDPATH.
9650 $as_unset CDPATH
9651
9652 exec 6>&1
9653
9654 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9655 # report actual input values of CONFIG_FILES etc. instead of their
9656 # values after options handling.  Logging --version etc. is OK.
9657 exec 5>>config.log
9658 {
9659   echo
9660   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9661 ## Running $as_me. ##
9662 _ASBOX
9663 } >&5
9664 cat >&5 <<_CSEOF
9665
9666 This file was extended by suPHP $as_me 0.6.0, which was
9667 generated by GNU Autoconf 2.59.  Invocation command line was
9668
9669   CONFIG_FILES    = $CONFIG_FILES
9670   CONFIG_HEADERS  = $CONFIG_HEADERS
9671   CONFIG_LINKS    = $CONFIG_LINKS
9672   CONFIG_COMMANDS = $CONFIG_COMMANDS
9673   $ $0 $@
9674
9675 _CSEOF
9676 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9677 echo >&5
9678 _ACEOF
9679
9680 # Files that config.status was made for.
9681 if test -n "$ac_config_files"; then
9682   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9683 fi
9684
9685 if test -n "$ac_config_headers"; then
9686   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9687 fi
9688
9689 if test -n "$ac_config_links"; then
9690   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9691 fi
9692
9693 if test -n "$ac_config_commands"; then
9694   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9695 fi
9696
9697 cat >>$CONFIG_STATUS <<\_ACEOF
9698
9699 ac_cs_usage="\
9700 \`$as_me' instantiates files from templates according to the
9701 current configuration.
9702
9703 Usage: $0 [OPTIONS] [FILE]...
9704
9705   -h, --help       print this help, then exit
9706   -V, --version    print version number, then exit
9707   -q, --quiet      do not print progress messages
9708   -d, --debug      don't remove temporary files
9709       --recheck    update $as_me by reconfiguring in the same conditions
9710   --file=FILE[:TEMPLATE]
9711                    instantiate the configuration file FILE
9712   --header=FILE[:TEMPLATE]
9713                    instantiate the configuration header FILE
9714
9715 Configuration files:
9716 $config_files
9717
9718 Configuration headers:
9719 $config_headers
9720
9721 Configuration commands:
9722 $config_commands
9723
9724 Report bugs to <bug-autoconf@gnu.org>."
9725 _ACEOF
9726
9727 cat >>$CONFIG_STATUS <<_ACEOF
9728 ac_cs_version="\\
9729 suPHP config.status 0.6.0
9730 configured by $0, generated by GNU Autoconf 2.59,
9731   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9732
9733 Copyright (C) 2003 Free Software Foundation, Inc.
9734 This config.status script is free software; the Free Software Foundation
9735 gives unlimited permission to copy, distribute and modify it."
9736 srcdir=$srcdir
9737 INSTALL="$INSTALL"
9738 _ACEOF
9739
9740 cat >>$CONFIG_STATUS <<\_ACEOF
9741 # If no file are specified by the user, then we need to provide default
9742 # value.  By we need to know if files were specified by the user.
9743 ac_need_defaults=:
9744 while test $# != 0
9745 do
9746   case $1 in
9747   --*=*)
9748     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9749     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9750     ac_shift=:
9751     ;;
9752   -*)
9753     ac_option=$1
9754     ac_optarg=$2
9755     ac_shift=shift
9756     ;;
9757   *) # This is not an option, so the user has probably given explicit
9758      # arguments.
9759      ac_option=$1
9760      ac_need_defaults=false;;
9761   esac
9762
9763   case $ac_option in
9764   # Handling of the options.
9765 _ACEOF
9766 cat >>$CONFIG_STATUS <<\_ACEOF
9767   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9768     ac_cs_recheck=: ;;
9769   --version | --vers* | -V )
9770     echo "$ac_cs_version"; exit 0 ;;
9771   --he | --h)
9772     # Conflict between --help and --header
9773     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9774 Try \`$0 --help' for more information." >&5
9775 echo "$as_me: error: ambiguous option: $1
9776 Try \`$0 --help' for more information." >&2;}
9777    { (exit 1); exit 1; }; };;
9778   --help | --hel | -h )
9779     echo "$ac_cs_usage"; exit 0 ;;
9780   --debug | --d* | -d )
9781     debug=: ;;
9782   --file | --fil | --fi | --f )
9783     $ac_shift
9784     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9785     ac_need_defaults=false;;
9786   --header | --heade | --head | --hea )
9787     $ac_shift
9788     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9789     ac_need_defaults=false;;
9790   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9791   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9792     ac_cs_silent=: ;;
9793
9794   # This is an error.
9795   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9796 Try \`$0 --help' for more information." >&5
9797 echo "$as_me: error: unrecognized option: $1
9798 Try \`$0 --help' for more information." >&2;}
9799    { (exit 1); exit 1; }; } ;;
9800
9801   *) ac_config_targets="$ac_config_targets $1" ;;
9802
9803   esac
9804   shift
9805 done
9806
9807 ac_configure_extra_args=
9808
9809 if $ac_cs_silent; then
9810   exec 6>/dev/null
9811   ac_configure_extra_args="$ac_configure_extra_args --silent"
9812 fi
9813
9814 _ACEOF
9815 cat >>$CONFIG_STATUS <<_ACEOF
9816 if \$ac_cs_recheck; then
9817   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9818   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9819 fi
9820
9821 _ACEOF
9822
9823 cat >>$CONFIG_STATUS <<_ACEOF
9824 #
9825 # INIT-COMMANDS section.
9826 #
9827
9828 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9829
9830 _ACEOF
9831
9832
9833
9834 cat >>$CONFIG_STATUS <<\_ACEOF
9835 for ac_config_target in $ac_config_targets
9836 do
9837   case "$ac_config_target" in
9838   # Handling of arguments.
9839   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9840   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9841   "src/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
9842   "src/apache2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
9843   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9844   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9845   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9846 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9847    { (exit 1); exit 1; }; };;
9848   esac
9849 done
9850
9851 # If the user did not use the arguments to specify the items to instantiate,
9852 # then the envvar interface is used.  Set only those that are not.
9853 # We use the long form for the default assignment because of an extremely
9854 # bizarre bug on SunOS 4.1.3.
9855 if $ac_need_defaults; then
9856   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9857   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9858   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9859 fi
9860
9861 # Have a temporary directory for convenience.  Make it in the build tree
9862 # simply because there is no reason to put it here, and in addition,
9863 # creating and moving files from /tmp can sometimes cause problems.
9864 # Create a temporary directory, and hook for its removal unless debugging.
9865 $debug ||
9866 {
9867   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9868   trap '{ (exit 1); exit 1; }' 1 2 13 15
9869 }
9870
9871 # Create a (secure) tmp directory for tmp files.
9872
9873 {
9874   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9875   test -n "$tmp" && test -d "$tmp"
9876 }  ||
9877 {
9878   tmp=./confstat$$-$RANDOM
9879   (umask 077 && mkdir $tmp)
9880 } ||
9881 {
9882    echo "$me: cannot create a temporary directory in ." >&2
9883    { (exit 1); exit 1; }
9884 }
9885
9886 _ACEOF
9887
9888 cat >>$CONFIG_STATUS <<_ACEOF
9889
9890 #
9891 # CONFIG_FILES section.
9892 #
9893
9894 # No need to generate the scripts if there are no CONFIG_FILES.
9895 # This happens for instance when ./config.status config.h
9896 if test -n "\$CONFIG_FILES"; then
9897   # Protect against being on the right side of a sed subst in config.status.
9898   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9899    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9900 s,@SHELL@,$SHELL,;t t
9901 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9902 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9903 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9904 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9905 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9906 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9907 s,@exec_prefix@,$exec_prefix,;t t
9908 s,@prefix@,$prefix,;t t
9909 s,@program_transform_name@,$program_transform_name,;t t
9910 s,@bindir@,$bindir,;t t
9911 s,@sbindir@,$sbindir,;t t
9912 s,@libexecdir@,$libexecdir,;t t
9913 s,@datadir@,$datadir,;t t
9914 s,@sysconfdir@,$sysconfdir,;t t
9915 s,@sharedstatedir@,$sharedstatedir,;t t
9916 s,@localstatedir@,$localstatedir,;t t
9917 s,@libdir@,$libdir,;t t
9918 s,@includedir@,$includedir,;t t
9919 s,@oldincludedir@,$oldincludedir,;t t
9920 s,@infodir@,$infodir,;t t
9921 s,@mandir@,$mandir,;t t
9922 s,@build_alias@,$build_alias,;t t
9923 s,@host_alias@,$host_alias,;t t
9924 s,@target_alias@,$target_alias,;t t
9925 s,@DEFS@,$DEFS,;t t
9926 s,@ECHO_C@,$ECHO_C,;t t
9927 s,@ECHO_N@,$ECHO_N,;t t
9928 s,@ECHO_T@,$ECHO_T,;t t
9929 s,@LIBS@,$LIBS,;t t
9930 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9931 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9932 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9933 s,@PACKAGE@,$PACKAGE,;t t
9934 s,@VERSION@,$VERSION,;t t
9935 s,@ACLOCAL@,$ACLOCAL,;t t
9936 s,@AUTOCONF@,$AUTOCONF,;t t
9937 s,@AUTOMAKE@,$AUTOMAKE,;t t
9938 s,@AUTOHEADER@,$AUTOHEADER,;t t
9939 s,@MAKEINFO@,$MAKEINFO,;t t
9940 s,@AMTAR@,$AMTAR,;t t
9941 s,@install_sh@,$install_sh,;t t
9942 s,@STRIP@,$STRIP,;t t
9943 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9944 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9945 s,@AWK@,$AWK,;t t
9946 s,@SET_MAKE@,$SET_MAKE,;t t
9947 s,@CC@,$CC,;t t
9948 s,@CFLAGS@,$CFLAGS,;t t
9949 s,@LDFLAGS@,$LDFLAGS,;t t
9950 s,@CPPFLAGS@,$CPPFLAGS,;t t
9951 s,@ac_ct_CC@,$ac_ct_CC,;t t
9952 s,@EXEEXT@,$EXEEXT,;t t
9953 s,@OBJEXT@,$OBJEXT,;t t
9954 s,@DEPDIR@,$DEPDIR,;t t
9955 s,@am__include@,$am__include,;t t
9956 s,@am__quote@,$am__quote,;t t
9957 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9958 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9959 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9960 s,@CCDEPMODE@,$CCDEPMODE,;t t
9961 s,@CXX@,$CXX,;t t
9962 s,@CXXFLAGS@,$CXXFLAGS,;t t
9963 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9964 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9965 s,@build@,$build,;t t
9966 s,@build_cpu@,$build_cpu,;t t
9967 s,@build_vendor@,$build_vendor,;t t
9968 s,@build_os@,$build_os,;t t
9969 s,@host@,$host,;t t
9970 s,@host_cpu@,$host_cpu,;t t
9971 s,@host_vendor@,$host_vendor,;t t
9972 s,@host_os@,$host_os,;t t
9973 s,@LN_S@,$LN_S,;t t
9974 s,@ECHO@,$ECHO,;t t
9975 s,@RANLIB@,$RANLIB,;t t
9976 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9977 s,@CPP@,$CPP,;t t
9978 s,@EGREP@,$EGREP,;t t
9979 s,@LIBTOOL@,$LIBTOOL,;t t
9980 s,@APXS@,$APXS,;t t
9981 s,@APACHE_VERSION_1_3@,$APACHE_VERSION_1_3,;t t
9982 s,@APACHE_VERSION_2@,$APACHE_VERSION_2,;t t
9983 s,@APXS_INCLUDEDIR@,$APXS_INCLUDEDIR,;t t
9984 s,@APXS_LIBEXECDIR@,$APXS_LIBEXECDIR,;t t
9985 s,@APXS_EXTRA_CFLAGS@,$APXS_EXTRA_CFLAGS,;t t
9986 s,@OPT_APACHEMOD_USERGROUP_DEF@,$OPT_APACHEMOD_USERGROUP_DEF,;t t
9987 s,@COND_AP13_TRUE@,$COND_AP13_TRUE,;t t
9988 s,@COND_AP13_FALSE@,$COND_AP13_FALSE,;t t
9989 s,@COND_AP20_TRUE@,$COND_AP20_TRUE,;t t
9990 s,@COND_AP20_FALSE@,$COND_AP20_FALSE,;t t
9991 s,@COND_APUSERGROUP_TRUE@,$COND_APUSERGROUP_TRUE,;t t
9992 s,@COND_APUSERGROUP_FALSE@,$COND_APUSERGROUP_FALSE,;t t
9993 s,@LIBOBJS@,$LIBOBJS,;t t
9994 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9995 CEOF
9996
9997 _ACEOF
9998
9999   cat >>$CONFIG_STATUS <<\_ACEOF
10000   # Split the substitutions into bite-sized pieces for seds with
10001   # small command number limits, like on Digital OSF/1 and HP-UX.
10002   ac_max_sed_lines=48
10003   ac_sed_frag=1 # Number of current file.
10004   ac_beg=1 # First line for current file.
10005   ac_end=$ac_max_sed_lines # Line after last line for current file.
10006   ac_more_lines=:
10007   ac_sed_cmds=
10008   while $ac_more_lines; do
10009     if test $ac_beg -gt 1; then
10010       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10011     else
10012       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10013     fi
10014     if test ! -s $tmp/subs.frag; then
10015       ac_more_lines=false
10016     else
10017       # The purpose of the label and of the branching condition is to
10018       # speed up the sed processing (if there are no `@' at all, there
10019       # is no need to browse any of the substitutions).
10020       # These are the two extra sed commands mentioned above.
10021       (echo ':t
10022   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10023       if test -z "$ac_sed_cmds"; then
10024         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10025       else
10026         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10027       fi
10028       ac_sed_frag=`expr $ac_sed_frag + 1`
10029       ac_beg=$ac_end
10030       ac_end=`expr $ac_end + $ac_max_sed_lines`
10031     fi
10032   done
10033   if test -z "$ac_sed_cmds"; then
10034     ac_sed_cmds=cat
10035   fi
10036 fi # test -n "$CONFIG_FILES"
10037
10038 _ACEOF
10039 cat >>$CONFIG_STATUS <<\_ACEOF
10040 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10041   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10042   case $ac_file in
10043   - | *:- | *:-:* ) # input from stdin
10044         cat >$tmp/stdin
10045         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10046         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10047   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10048         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10049   * )   ac_file_in=$ac_file.in ;;
10050   esac
10051
10052   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10053   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10055          X"$ac_file" : 'X\(//\)[^/]' \| \
10056          X"$ac_file" : 'X\(//\)$' \| \
10057          X"$ac_file" : 'X\(/\)' \| \
10058          .     : '\(.\)' 2>/dev/null ||
10059 echo X"$ac_file" |
10060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10061           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10062           /^X\(\/\/\)$/{ s//\1/; q; }
10063           /^X\(\/\).*/{ s//\1/; q; }
10064           s/.*/./; q'`
10065   { if $as_mkdir_p; then
10066     mkdir -p "$ac_dir"
10067   else
10068     as_dir="$ac_dir"
10069     as_dirs=
10070     while test ! -d "$as_dir"; do
10071       as_dirs="$as_dir $as_dirs"
10072       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10074          X"$as_dir" : 'X\(//\)[^/]' \| \
10075          X"$as_dir" : 'X\(//\)$' \| \
10076          X"$as_dir" : 'X\(/\)' \| \
10077          .     : '\(.\)' 2>/dev/null ||
10078 echo X"$as_dir" |
10079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10080           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10081           /^X\(\/\/\)$/{ s//\1/; q; }
10082           /^X\(\/\).*/{ s//\1/; q; }
10083           s/.*/./; q'`
10084     done
10085     test ! -n "$as_dirs" || mkdir $as_dirs
10086   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10088    { (exit 1); exit 1; }; }; }
10089
10090   ac_builddir=.
10091
10092 if test "$ac_dir" != .; then
10093   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10094   # A "../" for each directory in $ac_dir_suffix.
10095   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10096 else
10097   ac_dir_suffix= ac_top_builddir=
10098 fi
10099
10100 case $srcdir in
10101   .)  # No --srcdir option.  We are building in place.
10102     ac_srcdir=.
10103     if test -z "$ac_top_builddir"; then
10104        ac_top_srcdir=.
10105     else
10106        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10107     fi ;;
10108   [\\/]* | ?:[\\/]* )  # Absolute path.
10109     ac_srcdir=$srcdir$ac_dir_suffix;
10110     ac_top_srcdir=$srcdir ;;
10111   *) # Relative path.
10112     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10113     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10114 esac
10115
10116 # Do not use `cd foo && pwd` to compute absolute paths, because
10117 # the directories may not exist.
10118 case `pwd` in
10119 .) ac_abs_builddir="$ac_dir";;
10120 *)
10121   case "$ac_dir" in
10122   .) ac_abs_builddir=`pwd`;;
10123   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10124   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10125   esac;;
10126 esac
10127 case $ac_abs_builddir in
10128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10129 *)
10130   case ${ac_top_builddir}. in
10131   .) ac_abs_top_builddir=$ac_abs_builddir;;
10132   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10133   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10134   esac;;
10135 esac
10136 case $ac_abs_builddir in
10137 .) ac_abs_srcdir=$ac_srcdir;;
10138 *)
10139   case $ac_srcdir in
10140   .) ac_abs_srcdir=$ac_abs_builddir;;
10141   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10142   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10143   esac;;
10144 esac
10145 case $ac_abs_builddir in
10146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10147 *)
10148   case $ac_top_srcdir in
10149   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10150   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10151   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10152   esac;;
10153 esac
10154
10155
10156   case $INSTALL in
10157   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10158   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10159   esac
10160
10161   if test x"$ac_file" != x-; then
10162     { echo "$as_me:$LINENO: creating $ac_file" >&5
10163 echo "$as_me: creating $ac_file" >&6;}
10164     rm -f "$ac_file"
10165   fi
10166   # Let's still pretend it is `configure' which instantiates (i.e., don't
10167   # use $as_me), people would be surprised to read:
10168   #    /* config.h.  Generated by config.status.  */
10169   if test x"$ac_file" = x-; then
10170     configure_input=
10171   else
10172     configure_input="$ac_file.  "
10173   fi
10174   configure_input=$configure_input"Generated from `echo $ac_file_in |
10175                                      sed 's,.*/,,'` by configure."
10176
10177   # First look for the input files in the build tree, otherwise in the
10178   # src tree.
10179   ac_file_inputs=`IFS=:
10180     for f in $ac_file_in; do
10181       case $f in
10182       -) echo $tmp/stdin ;;
10183       [\\/$]*)
10184          # Absolute (can't be DOS-style, as IFS=:)
10185          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10186 echo "$as_me: error: cannot find input file: $f" >&2;}
10187    { (exit 1); exit 1; }; }
10188          echo "$f";;
10189       *) # Relative
10190          if test -f "$f"; then
10191            # Build tree
10192            echo "$f"
10193          elif test -f "$srcdir/$f"; then
10194            # Source tree
10195            echo "$srcdir/$f"
10196          else
10197            # /dev/null tree
10198            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10199 echo "$as_me: error: cannot find input file: $f" >&2;}
10200    { (exit 1); exit 1; }; }
10201          fi;;
10202       esac
10203     done` || { (exit 1); exit 1; }
10204 _ACEOF
10205 cat >>$CONFIG_STATUS <<_ACEOF
10206   sed "$ac_vpsub
10207 $extrasub
10208 _ACEOF
10209 cat >>$CONFIG_STATUS <<\_ACEOF
10210 :t
10211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10212 s,@configure_input@,$configure_input,;t t
10213 s,@srcdir@,$ac_srcdir,;t t
10214 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10215 s,@top_srcdir@,$ac_top_srcdir,;t t
10216 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10217 s,@builddir@,$ac_builddir,;t t
10218 s,@abs_builddir@,$ac_abs_builddir,;t t
10219 s,@top_builddir@,$ac_top_builddir,;t t
10220 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10221 s,@INSTALL@,$ac_INSTALL,;t t
10222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10223   rm -f $tmp/stdin
10224   if test x"$ac_file" != x-; then
10225     mv $tmp/out $ac_file
10226   else
10227     cat $tmp/out
10228     rm -f $tmp/out
10229   fi
10230
10231 done
10232 _ACEOF
10233 cat >>$CONFIG_STATUS <<\_ACEOF
10234
10235 #
10236 # CONFIG_HEADER section.
10237 #
10238
10239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10241 #
10242 # ac_d sets the value in "#define NAME VALUE" lines.
10243 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10244 ac_dB='[         ].*$,\1#\2'
10245 ac_dC=' '
10246 ac_dD=',;t'
10247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10248 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10249 ac_uB='$,\1#\2define\3'
10250 ac_uC=' '
10251 ac_uD=',;t'
10252
10253 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10254   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10255   case $ac_file in
10256   - | *:- | *:-:* ) # input from stdin
10257         cat >$tmp/stdin
10258         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10259         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10260   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10261         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10262   * )   ac_file_in=$ac_file.in ;;
10263   esac
10264
10265   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10266 echo "$as_me: creating $ac_file" >&6;}
10267
10268   # First look for the input files in the build tree, otherwise in the
10269   # src tree.
10270   ac_file_inputs=`IFS=:
10271     for f in $ac_file_in; do
10272       case $f in
10273       -) echo $tmp/stdin ;;
10274       [\\/$]*)
10275          # Absolute (can't be DOS-style, as IFS=:)
10276          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10277 echo "$as_me: error: cannot find input file: $f" >&2;}
10278    { (exit 1); exit 1; }; }
10279          # Do quote $f, to prevent DOS paths from being IFS'd.
10280          echo "$f";;
10281       *) # Relative
10282          if test -f "$f"; then
10283            # Build tree
10284            echo "$f"
10285          elif test -f "$srcdir/$f"; then
10286            # Source tree
10287            echo "$srcdir/$f"
10288          else
10289            # /dev/null tree
10290            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10291 echo "$as_me: error: cannot find input file: $f" >&2;}
10292    { (exit 1); exit 1; }; }
10293          fi;;
10294       esac
10295     done` || { (exit 1); exit 1; }
10296   # Remove the trailing spaces.
10297   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10298
10299 _ACEOF
10300
10301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10302 # `conftest.undefs', that substitutes the proper values into
10303 # config.h.in to produce config.h.  The first handles `#define'
10304 # templates, and the second `#undef' templates.
10305 # And first: Protect against being on the right side of a sed subst in
10306 # config.status.  Protect against being in an unquoted here document
10307 # in config.status.
10308 rm -f conftest.defines conftest.undefs
10309 # Using a here document instead of a string reduces the quoting nightmare.
10310 # Putting comments in sed scripts is not portable.
10311 #
10312 # `end' is used to avoid that the second main sed command (meant for
10313 # 0-ary CPP macros) applies to n-ary macro definitions.
10314 # See the Autoconf documentation for `clear'.
10315 cat >confdef2sed.sed <<\_ACEOF
10316 s/[\\&,]/\\&/g
10317 s,[\\$`],\\&,g
10318 t clear
10319 : clear
10320 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10321 t end
10322 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10323 : end
10324 _ACEOF
10325 # If some macros were called several times there might be several times
10326 # the same #defines, which is useless.  Nevertheless, we may not want to
10327 # sort them, since we want the *last* AC-DEFINE to be honored.
10328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10330 rm -f confdef2sed.sed
10331
10332 # This sed command replaces #undef with comments.  This is necessary, for
10333 # example, in the case of _POSIX_SOURCE, which is predefined and required
10334 # on some systems where configure will not decide to define it.
10335 cat >>conftest.undefs <<\_ACEOF
10336 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10337 _ACEOF
10338
10339 # Break up conftest.defines because some shells have a limit on the size
10340 # of here documents, and old seds have small limits too (100 cmds).
10341 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10342 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10343 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10344 echo '  :' >>$CONFIG_STATUS
10345 rm -f conftest.tail
10346 while grep . conftest.defines >/dev/null
10347 do
10348   # Write a limited-size here document to $tmp/defines.sed.
10349   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10350   # Speed up: don't consider the non `#define' lines.
10351   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10352   # Work around the forget-to-reset-the-flag bug.
10353   echo 't clr' >>$CONFIG_STATUS
10354   echo ': clr' >>$CONFIG_STATUS
10355   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10356   echo 'CEOF
10357   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10358   rm -f $tmp/in
10359   mv $tmp/out $tmp/in
10360 ' >>$CONFIG_STATUS
10361   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10362   rm -f conftest.defines
10363   mv conftest.tail conftest.defines
10364 done
10365 rm -f conftest.defines
10366 echo '  fi # grep' >>$CONFIG_STATUS
10367 echo >>$CONFIG_STATUS
10368
10369 # Break up conftest.undefs because some shells have a limit on the size
10370 # of here documents, and old seds have small limits too (100 cmds).
10371 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10372 rm -f conftest.tail
10373 while grep . conftest.undefs >/dev/null
10374 do
10375   # Write a limited-size here document to $tmp/undefs.sed.
10376   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10377   # Speed up: don't consider the non `#undef'
10378   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10379   # Work around the forget-to-reset-the-flag bug.
10380   echo 't clr' >>$CONFIG_STATUS
10381   echo ': clr' >>$CONFIG_STATUS
10382   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10383   echo 'CEOF
10384   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10385   rm -f $tmp/in
10386   mv $tmp/out $tmp/in
10387 ' >>$CONFIG_STATUS
10388   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10389   rm -f conftest.undefs
10390   mv conftest.tail conftest.undefs
10391 done
10392 rm -f conftest.undefs
10393
10394 cat >>$CONFIG_STATUS <<\_ACEOF
10395   # Let's still pretend it is `configure' which instantiates (i.e., don't
10396   # use $as_me), people would be surprised to read:
10397   #    /* config.h.  Generated by config.status.  */
10398   if test x"$ac_file" = x-; then
10399     echo "/* Generated by configure.  */" >$tmp/config.h
10400   else
10401     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10402   fi
10403   cat $tmp/in >>$tmp/config.h
10404   rm -f $tmp/in
10405   if test x"$ac_file" != x-; then
10406     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10407       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10408 echo "$as_me: $ac_file is unchanged" >&6;}
10409     else
10410       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10412          X"$ac_file" : 'X\(//\)[^/]' \| \
10413          X"$ac_file" : 'X\(//\)$' \| \
10414          X"$ac_file" : 'X\(/\)' \| \
10415          .     : '\(.\)' 2>/dev/null ||
10416 echo X"$ac_file" |
10417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10418           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10419           /^X\(\/\/\)$/{ s//\1/; q; }
10420           /^X\(\/\).*/{ s//\1/; q; }
10421           s/.*/./; q'`
10422       { if $as_mkdir_p; then
10423     mkdir -p "$ac_dir"
10424   else
10425     as_dir="$ac_dir"
10426     as_dirs=
10427     while test ! -d "$as_dir"; do
10428       as_dirs="$as_dir $as_dirs"
10429       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10431          X"$as_dir" : 'X\(//\)[^/]' \| \
10432          X"$as_dir" : 'X\(//\)$' \| \
10433          X"$as_dir" : 'X\(/\)' \| \
10434          .     : '\(.\)' 2>/dev/null ||
10435 echo X"$as_dir" |
10436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10438           /^X\(\/\/\)$/{ s//\1/; q; }
10439           /^X\(\/\).*/{ s//\1/; q; }
10440           s/.*/./; q'`
10441     done
10442     test ! -n "$as_dirs" || mkdir $as_dirs
10443   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10445    { (exit 1); exit 1; }; }; }
10446
10447       rm -f $ac_file
10448       mv $tmp/config.h $ac_file
10449     fi
10450   else
10451     cat $tmp/config.h
10452     rm -f $tmp/config.h
10453   fi
10454   # Run the commands associated with the file.
10455   case $ac_file in
10456     src/config.h ) # update the timestamp
10457 echo 'timestamp for src/config.h' >"src/stamp-h1"
10458  ;;
10459   esac
10460 done
10461 _ACEOF
10462 cat >>$CONFIG_STATUS <<\_ACEOF
10463
10464 #
10465 # CONFIG_COMMANDS section.
10466 #
10467 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10468   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10469   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10470   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10471 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10472          X"$ac_dest" : 'X\(//\)[^/]' \| \
10473          X"$ac_dest" : 'X\(//\)$' \| \
10474          X"$ac_dest" : 'X\(/\)' \| \
10475          .     : '\(.\)' 2>/dev/null ||
10476 echo X"$ac_dest" |
10477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10478           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10479           /^X\(\/\/\)$/{ s//\1/; q; }
10480           /^X\(\/\).*/{ s//\1/; q; }
10481           s/.*/./; q'`
10482   { if $as_mkdir_p; then
10483     mkdir -p "$ac_dir"
10484   else
10485     as_dir="$ac_dir"
10486     as_dirs=
10487     while test ! -d "$as_dir"; do
10488       as_dirs="$as_dir $as_dirs"
10489       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10491          X"$as_dir" : 'X\(//\)[^/]' \| \
10492          X"$as_dir" : 'X\(//\)$' \| \
10493          X"$as_dir" : 'X\(/\)' \| \
10494          .     : '\(.\)' 2>/dev/null ||
10495 echo X"$as_dir" |
10496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10497           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10498           /^X\(\/\/\)$/{ s//\1/; q; }
10499           /^X\(\/\).*/{ s//\1/; q; }
10500           s/.*/./; q'`
10501     done
10502     test ! -n "$as_dirs" || mkdir $as_dirs
10503   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10505    { (exit 1); exit 1; }; }; }
10506
10507   ac_builddir=.
10508
10509 if test "$ac_dir" != .; then
10510   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10511   # A "../" for each directory in $ac_dir_suffix.
10512   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10513 else
10514   ac_dir_suffix= ac_top_builddir=
10515 fi
10516
10517 case $srcdir in
10518   .)  # No --srcdir option.  We are building in place.
10519     ac_srcdir=.
10520     if test -z "$ac_top_builddir"; then
10521        ac_top_srcdir=.
10522     else
10523        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10524     fi ;;
10525   [\\/]* | ?:[\\/]* )  # Absolute path.
10526     ac_srcdir=$srcdir$ac_dir_suffix;
10527     ac_top_srcdir=$srcdir ;;
10528   *) # Relative path.
10529     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10530     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10531 esac
10532
10533 # Do not use `cd foo && pwd` to compute absolute paths, because
10534 # the directories may not exist.
10535 case `pwd` in
10536 .) ac_abs_builddir="$ac_dir";;
10537 *)
10538   case "$ac_dir" in
10539   .) ac_abs_builddir=`pwd`;;
10540   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10541   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10542   esac;;
10543 esac
10544 case $ac_abs_builddir in
10545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10546 *)
10547   case ${ac_top_builddir}. in
10548   .) ac_abs_top_builddir=$ac_abs_builddir;;
10549   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10550   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10551   esac;;
10552 esac
10553 case $ac_abs_builddir in
10554 .) ac_abs_srcdir=$ac_srcdir;;
10555 *)
10556   case $ac_srcdir in
10557   .) ac_abs_srcdir=$ac_abs_builddir;;
10558   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10559   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10560   esac;;
10561 esac
10562 case $ac_abs_builddir in
10563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10564 *)
10565   case $ac_top_srcdir in
10566   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10567   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10568   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10569   esac;;
10570 esac
10571
10572
10573   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10574 echo "$as_me: executing $ac_dest commands" >&6;}
10575   case $ac_dest in
10576     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10577   # Strip MF so we end up with the name of the file.
10578   mf=`echo "$mf" | sed -e 's/:.*$//'`
10579   # Check whether this is an Automake generated Makefile or not.
10580   # We used to match only the files named `Makefile.in', but
10581   # some people rename them; so instead we look at the file content.
10582   # Grep'ing the first line is not enough: some people post-process
10583   # each Makefile.in and add a new line on top of each file to say so.
10584   # So let's grep whole file.
10585   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10586     dirpart=`(dirname "$mf") 2>/dev/null ||
10587 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10588          X"$mf" : 'X\(//\)[^/]' \| \
10589          X"$mf" : 'X\(//\)$' \| \
10590          X"$mf" : 'X\(/\)' \| \
10591          .     : '\(.\)' 2>/dev/null ||
10592 echo X"$mf" |
10593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10594           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10595           /^X\(\/\/\)$/{ s//\1/; q; }
10596           /^X\(\/\).*/{ s//\1/; q; }
10597           s/.*/./; q'`
10598   else
10599     continue
10600   fi
10601   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10602   # Extract the definition of DEP_FILES from the Makefile without
10603   # running `make'.
10604   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10605   test -z "$DEPDIR" && continue
10606   # When using ansi2knr, U may be empty or an underscore; expand it
10607   U=`sed -n -e '/^U = / s///p' < "$mf"`
10608   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10609   # We invoke sed twice because it is the simplest approach to
10610   # changing $(DEPDIR) to its actual value in the expansion.
10611   for file in `sed -n -e '
10612     /^DEP_FILES = .*\\\\$/ {
10613       s/^DEP_FILES = //
10614       :loop
10615         s/\\\\$//
10616         p
10617         n
10618         /\\\\$/ b loop
10619       p
10620     }
10621     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10622        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10623     # Make sure the directory exists.
10624     test -f "$dirpart/$file" && continue
10625     fdir=`(dirname "$file") 2>/dev/null ||
10626 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10627          X"$file" : 'X\(//\)[^/]' \| \
10628          X"$file" : 'X\(//\)$' \| \
10629          X"$file" : 'X\(/\)' \| \
10630          .     : '\(.\)' 2>/dev/null ||
10631 echo X"$file" |
10632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10633           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10634           /^X\(\/\/\)$/{ s//\1/; q; }
10635           /^X\(\/\).*/{ s//\1/; q; }
10636           s/.*/./; q'`
10637     { if $as_mkdir_p; then
10638     mkdir -p $dirpart/$fdir
10639   else
10640     as_dir=$dirpart/$fdir
10641     as_dirs=
10642     while test ! -d "$as_dir"; do
10643       as_dirs="$as_dir $as_dirs"
10644       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10646          X"$as_dir" : 'X\(//\)[^/]' \| \
10647          X"$as_dir" : 'X\(//\)$' \| \
10648          X"$as_dir" : 'X\(/\)' \| \
10649          .     : '\(.\)' 2>/dev/null ||
10650 echo X"$as_dir" |
10651     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10652           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10653           /^X\(\/\/\)$/{ s//\1/; q; }
10654           /^X\(\/\).*/{ s//\1/; q; }
10655           s/.*/./; q'`
10656     done
10657     test ! -n "$as_dirs" || mkdir $as_dirs
10658   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10659 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10660    { (exit 1); exit 1; }; }; }
10661
10662     # echo "creating $dirpart/$file"
10663     echo '# dummy' > "$dirpart/$file"
10664   done
10665 done
10666  ;;
10667   esac
10668 done
10669 _ACEOF
10670
10671 cat >>$CONFIG_STATUS <<\_ACEOF
10672
10673 { (exit 0); exit 0; }
10674 _ACEOF
10675 chmod +x $CONFIG_STATUS
10676 ac_clean_files=$ac_clean_files_save
10677
10678
10679 # configure is writing to config.log, and then calls config.status.
10680 # config.status does its own redirection, appending to config.log.
10681 # Unfortunately, on DOS this fails, as config.log is still kept open
10682 # by configure, so config.status won't be able to write to it; its
10683 # output is simply discarded.  So we exec the FD to /dev/null,
10684 # effectively closing config.log, so it can be properly (re)opened and
10685 # appended to by config.status.  When coming back to configure, we
10686 # need to make the FD available again.
10687 if test "$no_create" != yes; then
10688   ac_cs_success=:
10689   ac_config_status_args=
10690   test "$silent" = yes &&
10691     ac_config_status_args="$ac_config_status_args --quiet"
10692   exec 5>/dev/null
10693   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10694   exec 5>>config.log
10695   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10696   # would make configure fail if this is the last instruction.
10697   $ac_cs_success || { (exit 1); exit 1; }
10698 fi
10699
10700
10701 if test "$APXS" = "/notfound/"; then
10702   { echo "$as_me:$LINENO: WARNING:
10703 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10704 !!*** APXS was not found, so mod_suphp will not be built! ***!!
10705 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10706   " >&5
10707 echo "$as_me: WARNING:
10708 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10709 !!*** APXS was not found, so mod_suphp will not be built! ***!!
10710 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10711   " >&2;}
10712 fi
10713