xref: /sqlite-3.40.0/configure (revision 4249b3f5)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for sqlite 3.6.0.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $ECHO works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<_LT_EOF
274$*
275_LT_EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284  if test "X${echo_test_string+set}" != Xset; then
285    # find a string as large as possible, as long as the shell can cope with it
286    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290      then
291        break
292      fi
293    done
294  fi
295
296  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298     test "X$echo_testing_string" = "X$echo_test_string"; then
299    :
300  else
301    # The Solaris, AIX, and Digital Unix default echo programs unquote
302    # backslashes.  This makes it impossible to quote backslashes using
303    #   echo "$something" | sed 's/\\/\\\\/g'
304    #
305    # So, first we look for a working echo in the user's PATH.
306
307    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308    for dir in $PATH /usr/ucb; do
309      IFS="$lt_save_ifs"
310      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313         test "X$echo_testing_string" = "X$echo_test_string"; then
314        ECHO="$dir/echo"
315        break
316      fi
317    done
318    IFS="$lt_save_ifs"
319
320    if test "X$ECHO" = Xecho; then
321      # We didn't find a better echo, so look for alternatives.
322      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324         test "X$echo_testing_string" = "X$echo_test_string"; then
325        # This shell has a builtin print -r that does the trick.
326        ECHO='print -r'
327      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328	   test "X$CONFIG_SHELL" != X/bin/ksh; then
329        # If we have ksh, try running configure again with it.
330        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331        export ORIGINAL_CONFIG_SHELL
332        CONFIG_SHELL=/bin/ksh
333        export CONFIG_SHELL
334        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335      else
336        # Try using printf.
337        ECHO='printf %s\n'
338        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340	   test "X$echo_testing_string" = "X$echo_test_string"; then
341	  # Cool, printf works
342	  :
343        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344	     test "X$echo_testing_string" = 'X\t' &&
345	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346	     test "X$echo_testing_string" = "X$echo_test_string"; then
347	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348	  export CONFIG_SHELL
349	  SHELL="$CONFIG_SHELL"
350	  export SHELL
351	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
352        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353	     test "X$echo_testing_string" = 'X\t' &&
354	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355	     test "X$echo_testing_string" = "X$echo_test_string"; then
356	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
357        else
358	  # maybe with a smaller string...
359	  prev=:
360
361	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363	    then
364	      break
365	    fi
366	    prev="$cmd"
367	  done
368
369	  if test "$prev" != 'sed 50q "$0"'; then
370	    echo_test_string=`eval $prev`
371	    export echo_test_string
372	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373	  else
374	    # Oops.  We lost completely, so just stick with echo.
375	    ECHO=echo
376	  fi
377        fi
378      fi
379    fi
380  fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
403ac_default_prefix=/usr/local
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete.  It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME='sqlite'
418PACKAGE_TARNAME='sqlite'
419PACKAGE_VERSION='3.6.0'
420PACKAGE_STRING='sqlite 3.6.0'
421PACKAGE_BUGREPORT=''
422
423# Factoring default headers for most tests.
424ac_includes_default="\
425#include <stdio.h>
426#if HAVE_SYS_STAT_H
427# include <sys/stat.h>
428#endif
429#if STDC_HEADERS
430# include <stdlib.h>
431# include <stddef.h>
432#else
433#endif
434#if HAVE_STRING_H
435# if !STDC_HEADERS && HAVE_MEMORY_H
436#  include <memory.h>
437# endif
438# include <string.h>
439#endif
440#if HAVE_STRINGS_H
441# include <strings.h>
442#endif
443#if HAVE_INTTYPES_H
444# include <inttypes.h>
445#else
446# if HAVE_STDINT_H
447#  include <stdint.h>
448# endif
449#endif
450#if HAVE_UNISTD_H
451# include <unistd.h>
452#endif"
453
454ac_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 LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR STRIP ac_ct_STRIP RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK TCLSH_CMD program_prefix VERSION RELEASE VERSION_NUMBER BUILD_CC SQLITE_THREADSAFE XTHREADCONNECT THREADSOVERRIDELOCKS ALLOWRELEASE TEMP_STORE BUILD_EXEEXT SQLITE_OS_UNIX SQLITE_OS_WIN SQLITE_OS_OS2 TARGET_EXEEXT TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE TARGET_DEBUG USE_AMALGAMATION OPT_FEATURE_FLAGS USE_GCOV BUILD_CFLAGS LIBOBJS LTLIBOBJS'
455ac_subst_files=''
456
457# Initialize some variables set by options.
458ac_init_help=
459ac_init_version=false
460# The variables have the same names as the options, with
461# dashes changed to underlines.
462cache_file=/dev/null
463exec_prefix=NONE
464no_create=
465no_recursion=
466prefix=NONE
467program_prefix=NONE
468program_suffix=NONE
469program_transform_name=s,x,x,
470silent=
471site=
472srcdir=
473verbose=
474x_includes=NONE
475x_libraries=NONE
476
477# Installation directory options.
478# These are left unexpanded so users can "make install exec_prefix=/foo"
479# and all the variables that are supposed to be based on exec_prefix
480# by default will actually change.
481# Use braces instead of parens because sh, perl, etc. also accept them.
482bindir='${exec_prefix}/bin'
483sbindir='${exec_prefix}/sbin'
484libexecdir='${exec_prefix}/libexec'
485datadir='${prefix}/share'
486sysconfdir='${prefix}/etc'
487sharedstatedir='${prefix}/com'
488localstatedir='${prefix}/var'
489libdir='${exec_prefix}/lib'
490includedir='${prefix}/include'
491oldincludedir='/usr/include'
492infodir='${prefix}/info'
493mandir='${prefix}/man'
494
495ac_prev=
496for ac_option
497do
498  # If the previous option needs an argument, assign it.
499  if test -n "$ac_prev"; then
500    eval "$ac_prev=\$ac_option"
501    ac_prev=
502    continue
503  fi
504
505  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
506
507  # Accept the important Cygnus configure options, so we can diagnose typos.
508
509  case $ac_option in
510
511  -bindir | --bindir | --bindi | --bind | --bin | --bi)
512    ac_prev=bindir ;;
513  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
514    bindir=$ac_optarg ;;
515
516  -build | --build | --buil | --bui | --bu)
517    ac_prev=build_alias ;;
518  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
519    build_alias=$ac_optarg ;;
520
521  -cache-file | --cache-file | --cache-fil | --cache-fi \
522  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
523    ac_prev=cache_file ;;
524  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
525  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
526    cache_file=$ac_optarg ;;
527
528  --config-cache | -C)
529    cache_file=config.cache ;;
530
531  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
532    ac_prev=datadir ;;
533  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
534  | --da=*)
535    datadir=$ac_optarg ;;
536
537  -disable-* | --disable-*)
538    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
539    # Reject names that are not valid shell variable names.
540    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
541      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
542   { (exit 1); exit 1; }; }
543    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
544    eval "enable_$ac_feature=no" ;;
545
546  -enable-* | --enable-*)
547    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
548    # Reject names that are not valid shell variable names.
549    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551   { (exit 1); exit 1; }; }
552    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553    case $ac_option in
554      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
555      *) ac_optarg=yes ;;
556    esac
557    eval "enable_$ac_feature='$ac_optarg'" ;;
558
559  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
560  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
561  | --exec | --exe | --ex)
562    ac_prev=exec_prefix ;;
563  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
564  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
565  | --exec=* | --exe=* | --ex=*)
566    exec_prefix=$ac_optarg ;;
567
568  -gas | --gas | --ga | --g)
569    # Obsolete; use --with-gas.
570    with_gas=yes ;;
571
572  -help | --help | --hel | --he | -h)
573    ac_init_help=long ;;
574  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
575    ac_init_help=recursive ;;
576  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
577    ac_init_help=short ;;
578
579  -host | --host | --hos | --ho)
580    ac_prev=host_alias ;;
581  -host=* | --host=* | --hos=* | --ho=*)
582    host_alias=$ac_optarg ;;
583
584  -includedir | --includedir | --includedi | --included | --include \
585  | --includ | --inclu | --incl | --inc)
586    ac_prev=includedir ;;
587  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
588  | --includ=* | --inclu=* | --incl=* | --inc=*)
589    includedir=$ac_optarg ;;
590
591  -infodir | --infodir | --infodi | --infod | --info | --inf)
592    ac_prev=infodir ;;
593  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
594    infodir=$ac_optarg ;;
595
596  -libdir | --libdir | --libdi | --libd)
597    ac_prev=libdir ;;
598  -libdir=* | --libdir=* | --libdi=* | --libd=*)
599    libdir=$ac_optarg ;;
600
601  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
602  | --libexe | --libex | --libe)
603    ac_prev=libexecdir ;;
604  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
605  | --libexe=* | --libex=* | --libe=*)
606    libexecdir=$ac_optarg ;;
607
608  -localstatedir | --localstatedir | --localstatedi | --localstated \
609  | --localstate | --localstat | --localsta | --localst \
610  | --locals | --local | --loca | --loc | --lo)
611    ac_prev=localstatedir ;;
612  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
613  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
614  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
615    localstatedir=$ac_optarg ;;
616
617  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
618    ac_prev=mandir ;;
619  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
620    mandir=$ac_optarg ;;
621
622  -nfp | --nfp | --nf)
623    # Obsolete; use --without-fp.
624    with_fp=no ;;
625
626  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
627  | --no-cr | --no-c | -n)
628    no_create=yes ;;
629
630  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
631  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
632    no_recursion=yes ;;
633
634  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
635  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
636  | --oldin | --oldi | --old | --ol | --o)
637    ac_prev=oldincludedir ;;
638  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
639  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
640  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
641    oldincludedir=$ac_optarg ;;
642
643  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
644    ac_prev=prefix ;;
645  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
646    prefix=$ac_optarg ;;
647
648  -program-prefix | --program-prefix | --program-prefi | --program-pref \
649  | --program-pre | --program-pr | --program-p)
650    ac_prev=program_prefix ;;
651  -program-prefix=* | --program-prefix=* | --program-prefi=* \
652  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
653    program_prefix=$ac_optarg ;;
654
655  -program-suffix | --program-suffix | --program-suffi | --program-suff \
656  | --program-suf | --program-su | --program-s)
657    ac_prev=program_suffix ;;
658  -program-suffix=* | --program-suffix=* | --program-suffi=* \
659  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
660    program_suffix=$ac_optarg ;;
661
662  -program-transform-name | --program-transform-name \
663  | --program-transform-nam | --program-transform-na \
664  | --program-transform-n | --program-transform- \
665  | --program-transform | --program-transfor \
666  | --program-transfo | --program-transf \
667  | --program-trans | --program-tran \
668  | --progr-tra | --program-tr | --program-t)
669    ac_prev=program_transform_name ;;
670  -program-transform-name=* | --program-transform-name=* \
671  | --program-transform-nam=* | --program-transform-na=* \
672  | --program-transform-n=* | --program-transform-=* \
673  | --program-transform=* | --program-transfor=* \
674  | --program-transfo=* | --program-transf=* \
675  | --program-trans=* | --program-tran=* \
676  | --progr-tra=* | --program-tr=* | --program-t=*)
677    program_transform_name=$ac_optarg ;;
678
679  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
680  | -silent | --silent | --silen | --sile | --sil)
681    silent=yes ;;
682
683  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
684    ac_prev=sbindir ;;
685  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
686  | --sbi=* | --sb=*)
687    sbindir=$ac_optarg ;;
688
689  -sharedstatedir | --sharedstatedir | --sharedstatedi \
690  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
691  | --sharedst | --shareds | --shared | --share | --shar \
692  | --sha | --sh)
693    ac_prev=sharedstatedir ;;
694  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
695  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
696  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
697  | --sha=* | --sh=*)
698    sharedstatedir=$ac_optarg ;;
699
700  -site | --site | --sit)
701    ac_prev=site ;;
702  -site=* | --site=* | --sit=*)
703    site=$ac_optarg ;;
704
705  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
706    ac_prev=srcdir ;;
707  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
708    srcdir=$ac_optarg ;;
709
710  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
711  | --syscon | --sysco | --sysc | --sys | --sy)
712    ac_prev=sysconfdir ;;
713  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
714  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
715    sysconfdir=$ac_optarg ;;
716
717  -target | --target | --targe | --targ | --tar | --ta | --t)
718    ac_prev=target_alias ;;
719  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
720    target_alias=$ac_optarg ;;
721
722  -v | -verbose | --verbose | --verbos | --verbo | --verb)
723    verbose=yes ;;
724
725  -version | --version | --versio | --versi | --vers | -V)
726    ac_init_version=: ;;
727
728  -with-* | --with-*)
729    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
730    # Reject names that are not valid shell variable names.
731    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
732      { echo "$as_me: error: invalid package name: $ac_package" >&2
733   { (exit 1); exit 1; }; }
734    ac_package=`echo $ac_package| sed 's/-/_/g'`
735    case $ac_option in
736      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
737      *) ac_optarg=yes ;;
738    esac
739    eval "with_$ac_package='$ac_optarg'" ;;
740
741  -without-* | --without-*)
742    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package | sed 's/-/_/g'`
748    eval "with_$ac_package=no" ;;
749
750  --x)
751    # Obsolete; use --with-x.
752    with_x=yes ;;
753
754  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
755  | --x-incl | --x-inc | --x-in | --x-i)
756    ac_prev=x_includes ;;
757  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
758  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
759    x_includes=$ac_optarg ;;
760
761  -x-libraries | --x-libraries | --x-librarie | --x-librari \
762  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
763    ac_prev=x_libraries ;;
764  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
765  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
766    x_libraries=$ac_optarg ;;
767
768  -*) { echo "$as_me: error: unrecognized option: $ac_option
769Try \`$0 --help' for more information." >&2
770   { (exit 1); exit 1; }; }
771    ;;
772
773  *=*)
774    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
775    # Reject names that are not valid shell variable names.
776    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
777      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
778   { (exit 1); exit 1; }; }
779    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
780    eval "$ac_envvar='$ac_optarg'"
781    export $ac_envvar ;;
782
783  *)
784    # FIXME: should be removed in autoconf 3.0.
785    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
786    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
787      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
788    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
789    ;;
790
791  esac
792done
793
794if test -n "$ac_prev"; then
795  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
796  { echo "$as_me: error: missing argument to $ac_option" >&2
797   { (exit 1); exit 1; }; }
798fi
799
800# Be sure to have absolute paths.
801for ac_var in exec_prefix prefix
802do
803  eval ac_val=$`echo $ac_var`
804  case $ac_val in
805    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
806    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
807   { (exit 1); exit 1; }; };;
808  esac
809done
810
811# Be sure to have absolute paths.
812for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
813	      localstatedir libdir includedir oldincludedir infodir mandir
814do
815  eval ac_val=$`echo $ac_var`
816  case $ac_val in
817    [\\/$]* | ?:[\\/]* ) ;;
818    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819   { (exit 1); exit 1; }; };;
820  esac
821done
822
823# There might be people who depend on the old broken behavior: `$host'
824# used to hold the argument of --host etc.
825# FIXME: To remove some day.
826build=$build_alias
827host=$host_alias
828target=$target_alias
829
830# FIXME: To remove some day.
831if test "x$host_alias" != x; then
832  if test "x$build_alias" = x; then
833    cross_compiling=maybe
834    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
835    If a cross compiler is detected then cross compile mode will be used." >&2
836  elif test "x$build_alias" != "x$host_alias"; then
837    cross_compiling=yes
838  fi
839fi
840
841ac_tool_prefix=
842test -n "$host_alias" && ac_tool_prefix=$host_alias-
843
844test "$silent" = yes && exec 6>/dev/null
845
846
847# Find the source files, if location was not specified.
848if test -z "$srcdir"; then
849  ac_srcdir_defaulted=yes
850  # Try the directory containing this script, then its parent.
851  ac_confdir=`(dirname "$0") 2>/dev/null ||
852$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
853	 X"$0" : 'X\(//\)[^/]' \| \
854	 X"$0" : 'X\(//\)$' \| \
855	 X"$0" : 'X\(/\)' \| \
856	 .     : '\(.\)' 2>/dev/null ||
857echo X"$0" |
858    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
859  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
860  	  /^X\(\/\/\)$/{ s//\1/; q; }
861  	  /^X\(\/\).*/{ s//\1/; q; }
862  	  s/.*/./; q'`
863  srcdir=$ac_confdir
864  if test ! -r $srcdir/$ac_unique_file; then
865    srcdir=..
866  fi
867else
868  ac_srcdir_defaulted=no
869fi
870if test ! -r $srcdir/$ac_unique_file; then
871  if test "$ac_srcdir_defaulted" = yes; then
872    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
873   { (exit 1); exit 1; }; }
874  else
875    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
876   { (exit 1); exit 1; }; }
877  fi
878fi
879(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
880  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
881   { (exit 1); exit 1; }; }
882srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
883ac_env_build_alias_set=${build_alias+set}
884ac_env_build_alias_value=$build_alias
885ac_cv_env_build_alias_set=${build_alias+set}
886ac_cv_env_build_alias_value=$build_alias
887ac_env_host_alias_set=${host_alias+set}
888ac_env_host_alias_value=$host_alias
889ac_cv_env_host_alias_set=${host_alias+set}
890ac_cv_env_host_alias_value=$host_alias
891ac_env_target_alias_set=${target_alias+set}
892ac_env_target_alias_value=$target_alias
893ac_cv_env_target_alias_set=${target_alias+set}
894ac_cv_env_target_alias_value=$target_alias
895ac_env_CC_set=${CC+set}
896ac_env_CC_value=$CC
897ac_cv_env_CC_set=${CC+set}
898ac_cv_env_CC_value=$CC
899ac_env_CFLAGS_set=${CFLAGS+set}
900ac_env_CFLAGS_value=$CFLAGS
901ac_cv_env_CFLAGS_set=${CFLAGS+set}
902ac_cv_env_CFLAGS_value=$CFLAGS
903ac_env_LDFLAGS_set=${LDFLAGS+set}
904ac_env_LDFLAGS_value=$LDFLAGS
905ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
906ac_cv_env_LDFLAGS_value=$LDFLAGS
907ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_env_CPPFLAGS_value=$CPPFLAGS
909ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911ac_env_CPP_set=${CPP+set}
912ac_env_CPP_value=$CPP
913ac_cv_env_CPP_set=${CPP+set}
914ac_cv_env_CPP_value=$CPP
915
916#
917# Report the --help message.
918#
919if test "$ac_init_help" = "long"; then
920  # Omit some internal or obsolete options to make the list less imposing.
921  # This message is too long to be a string in the A/UX 3.1 sh.
922  cat <<_ACEOF
923\`configure' configures sqlite 3.6.0 to adapt to many kinds of systems.
924
925Usage: $0 [OPTION]... [VAR=VALUE]...
926
927To assign environment variables (e.g., CC, CFLAGS...), specify them as
928VAR=VALUE.  See below for descriptions of some of the useful variables.
929
930Defaults for the options are specified in brackets.
931
932Configuration:
933  -h, --help              display this help and exit
934      --help=short        display options specific to this package
935      --help=recursive    display the short help of all the included packages
936  -V, --version           display version information and exit
937  -q, --quiet, --silent   do not print \`checking...' messages
938      --cache-file=FILE   cache test results in FILE [disabled]
939  -C, --config-cache      alias for \`--cache-file=config.cache'
940  -n, --no-create         do not create output files
941      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
942
943_ACEOF
944
945  cat <<_ACEOF
946Installation directories:
947  --prefix=PREFIX         install architecture-independent files in PREFIX
948			  [$ac_default_prefix]
949  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
950			  [PREFIX]
951
952By default, \`make install' will install all the files in
953\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
954an installation prefix other than \`$ac_default_prefix' using \`--prefix',
955for instance \`--prefix=\$HOME'.
956
957For better control, use the options below.
958
959Fine tuning of the installation directories:
960  --bindir=DIR           user executables [EPREFIX/bin]
961  --sbindir=DIR          system admin executables [EPREFIX/sbin]
962  --libexecdir=DIR       program executables [EPREFIX/libexec]
963  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
964  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
965  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
966  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
967  --libdir=DIR           object code libraries [EPREFIX/lib]
968  --includedir=DIR       C header files [PREFIX/include]
969  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
970  --infodir=DIR          info documentation [PREFIX/info]
971  --mandir=DIR           man documentation [PREFIX/man]
972_ACEOF
973
974  cat <<\_ACEOF
975
976System types:
977  --build=BUILD     configure for building on BUILD [guessed]
978  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
979_ACEOF
980fi
981
982if test -n "$ac_init_help"; then
983  case $ac_init_help in
984     short | recursive ) echo "Configuration of sqlite 3.6.0:";;
985   esac
986  cat <<\_ACEOF
987
988Optional Features:
989  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
990  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
991  --enable-shared[=PKGS]
992                          build shared libraries [default=yes]
993  --enable-static[=PKGS]
994                          build static libraries [default=yes]
995  --enable-fast-install[=PKGS]
996                          optimize for fast installation [default=yes]
997  --disable-libtool-lock  avoid locking (might break parallel builds)
998  --disable-largefile     omit support for large files
999  --enable-threadsafe     Support threadsafe operation
1000  --enable-cross-thread-connections
1001                          Allow connection sharing across threads
1002  --enable-threads-override-locks
1003                          Threads can override each others locks
1004  --enable-releasemode    Support libtool link to release mode
1005  --enable-tempstore      Use an in-ram database for temporary tables
1006                          (never,no,yes,always)
1007  --disable-tcl           do not build TCL extension
1008  --disable-readline      disable readline support [default=detect]
1009  --enable-debug          enable debugging & verbose explain
1010  --disable-amalgamation  Disable the amalgamation and instead build all files
1011                          separately
1012  --enable-load-extension Enable loading of external extensions
1013  --enable-gcov           Enable coverage testing using gcov
1014
1015Optional Packages:
1016  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1017  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1018  --with-pic              try to use only PIC/non-PIC objects [default=use
1019                          both]
1020  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1021  --with-hints=FILE       Read configuration options from FILE
1022  --with-tcl=DIR          directory containing tcl configuration
1023                          (tclConfig.sh)
1024  --with-readline-lib     specify readline library
1025  --with-readline-inc     specify readline include paths
1026
1027Some influential environment variables:
1028  CC          C compiler command
1029  CFLAGS      C compiler flags
1030  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1031              nonstandard directory <lib dir>
1032  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033              headers in a nonstandard directory <include dir>
1034  CPP         C preprocessor
1035
1036Use these variables to override the choices made by `configure' or to help
1037it to find libraries and programs with nonstandard names/locations.
1038
1039_ACEOF
1040fi
1041
1042if test "$ac_init_help" = "recursive"; then
1043  # If there are subdirs, report their specific --help.
1044  ac_popdir=`pwd`
1045  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1046    test -d $ac_dir || continue
1047    ac_builddir=.
1048
1049if test "$ac_dir" != .; then
1050  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1051  # A "../" for each directory in $ac_dir_suffix.
1052  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053else
1054  ac_dir_suffix= ac_top_builddir=
1055fi
1056
1057case $srcdir in
1058  .)  # No --srcdir option.  We are building in place.
1059    ac_srcdir=.
1060    if test -z "$ac_top_builddir"; then
1061       ac_top_srcdir=.
1062    else
1063       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1064    fi ;;
1065  [\\/]* | ?:[\\/]* )  # Absolute path.
1066    ac_srcdir=$srcdir$ac_dir_suffix;
1067    ac_top_srcdir=$srcdir ;;
1068  *) # Relative path.
1069    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1070    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1071esac
1072
1073# Do not use `cd foo && pwd` to compute absolute paths, because
1074# the directories may not exist.
1075case `pwd` in
1076.) ac_abs_builddir="$ac_dir";;
1077*)
1078  case "$ac_dir" in
1079  .) ac_abs_builddir=`pwd`;;
1080  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1081  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1082  esac;;
1083esac
1084case $ac_abs_builddir in
1085.) ac_abs_top_builddir=${ac_top_builddir}.;;
1086*)
1087  case ${ac_top_builddir}. in
1088  .) ac_abs_top_builddir=$ac_abs_builddir;;
1089  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1090  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1091  esac;;
1092esac
1093case $ac_abs_builddir in
1094.) ac_abs_srcdir=$ac_srcdir;;
1095*)
1096  case $ac_srcdir in
1097  .) ac_abs_srcdir=$ac_abs_builddir;;
1098  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1099  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1100  esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_top_srcdir=$ac_top_srcdir;;
1104*)
1105  case $ac_top_srcdir in
1106  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1107  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1108  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1109  esac;;
1110esac
1111
1112    cd $ac_dir
1113    # Check for guested configure; otherwise get Cygnus style configure.
1114    if test -f $ac_srcdir/configure.gnu; then
1115      echo
1116      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117    elif test -f $ac_srcdir/configure; then
1118      echo
1119      $SHELL $ac_srcdir/configure  --help=recursive
1120    elif test -f $ac_srcdir/configure.ac ||
1121	   test -f $ac_srcdir/configure.in; then
1122      echo
1123      $ac_configure --help
1124    else
1125      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126    fi
1127    cd $ac_popdir
1128  done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133  cat <<\_ACEOF
1134sqlite configure 3.6.0
1135generated by GNU Autoconf 2.59
1136
1137Copyright (C) 2003 Free Software Foundation, Inc.
1138This configure script is free software; the Free Software Foundation
1139gives unlimited permission to copy, distribute and modify it.
1140_ACEOF
1141  exit 0
1142fi
1143exec 5>config.log
1144cat >&5 <<_ACEOF
1145This file contains any messages produced by compilers while
1146running configure, to aid debugging if configure makes a mistake.
1147
1148It was created by sqlite $as_me 3.6.0, which was
1149generated by GNU Autoconf 2.59.  Invocation command line was
1150
1151  $ $0 $@
1152
1153_ACEOF
1154{
1155cat <<_ASUNAME
1156## --------- ##
1157## Platform. ##
1158## --------- ##
1159
1160hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165
1166/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1168
1169/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1170/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1171/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1173/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1174/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1175/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1176
1177_ASUNAME
1178
1179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180for as_dir in $PATH
1181do
1182  IFS=$as_save_IFS
1183  test -z "$as_dir" && as_dir=.
1184  echo "PATH: $as_dir"
1185done
1186
1187} >&5
1188
1189cat >&5 <<_ACEOF
1190
1191
1192## ----------- ##
1193## Core tests. ##
1194## ----------- ##
1195
1196_ACEOF
1197
1198
1199# Keep a trace of the command line.
1200# Strip out --no-create and --no-recursion so they do not pile up.
1201# Strip out --silent because we don't want to record it for future runs.
1202# Also quote any args containing shell meta-characters.
1203# Make two passes to allow for proper duplicate-argument suppression.
1204ac_configure_args=
1205ac_configure_args0=
1206ac_configure_args1=
1207ac_sep=
1208ac_must_keep_next=false
1209for ac_pass in 1 2
1210do
1211  for ac_arg
1212  do
1213    case $ac_arg in
1214    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216    | -silent | --silent | --silen | --sile | --sil)
1217      continue ;;
1218    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1220    esac
1221    case $ac_pass in
1222    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223    2)
1224      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225      if test $ac_must_keep_next = true; then
1226	ac_must_keep_next=false # Got value, back to normal.
1227      else
1228	case $ac_arg in
1229	  *=* | --config-cache | -C | -disable-* | --disable-* \
1230	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232	  | -with-* | --with-* | -without-* | --without-* | --x)
1233	    case "$ac_configure_args0 " in
1234	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235	    esac
1236	    ;;
1237	  -* ) ac_must_keep_next=true ;;
1238	esac
1239      fi
1240      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241      # Get rid of the leading space.
1242      ac_sep=" "
1243      ;;
1244    esac
1245  done
1246done
1247$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249
1250# When interrupted or exit'd, cleanup temporary files, and complete
1251# config.log.  We remove comments because anyway the quotes in there
1252# would cause problems or look ugly.
1253# WARNING: Be sure not to use single quotes in there, as some shells,
1254# such as our DU 5.0 friend, will then `close' the trap.
1255trap 'exit_status=$?
1256  # Save into config.log some information that might help in debugging.
1257  {
1258    echo
1259
1260    cat <<\_ASBOX
1261## ---------------- ##
1262## Cache variables. ##
1263## ---------------- ##
1264_ASBOX
1265    echo
1266    # The following way of writing the cache mishandles newlines in values,
1267{
1268  (set) 2>&1 |
1269    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270    *ac_space=\ *)
1271      sed -n \
1272	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274      ;;
1275    *)
1276      sed -n \
1277	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278      ;;
1279    esac;
1280}
1281    echo
1282
1283    cat <<\_ASBOX
1284## ----------------- ##
1285## Output variables. ##
1286## ----------------- ##
1287_ASBOX
1288    echo
1289    for ac_var in $ac_subst_vars
1290    do
1291      eval ac_val=$`echo $ac_var`
1292      echo "$ac_var='"'"'$ac_val'"'"'"
1293    done | sort
1294    echo
1295
1296    if test -n "$ac_subst_files"; then
1297      cat <<\_ASBOX
1298## ------------- ##
1299## Output files. ##
1300## ------------- ##
1301_ASBOX
1302      echo
1303      for ac_var in $ac_subst_files
1304      do
1305	eval ac_val=$`echo $ac_var`
1306	echo "$ac_var='"'"'$ac_val'"'"'"
1307      done | sort
1308      echo
1309    fi
1310
1311    if test -s confdefs.h; then
1312      cat <<\_ASBOX
1313## ----------- ##
1314## confdefs.h. ##
1315## ----------- ##
1316_ASBOX
1317      echo
1318      sed "/^$/d" confdefs.h | sort
1319      echo
1320    fi
1321    test "$ac_signal" != 0 &&
1322      echo "$as_me: caught signal $ac_signal"
1323    echo "$as_me: exit $exit_status"
1324  } >&5
1325  rm -f core *.core &&
1326  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1327    exit $exit_status
1328     ' 0
1329for ac_signal in 1 2 13 15; do
1330  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331done
1332ac_signal=0
1333
1334# confdefs.h avoids OS command line length limits that DEFS can exceed.
1335rm -rf conftest* confdefs.h
1336# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337echo >confdefs.h
1338
1339# Predefined preprocessor variables.
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_NAME "$PACKAGE_NAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_VERSION "$PACKAGE_VERSION"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_STRING "$PACKAGE_STRING"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363_ACEOF
1364
1365
1366# Let the site file select an alternate cache file if it wants to.
1367# Prefer explicitly selected file to automatically selected ones.
1368if test -z "$CONFIG_SITE"; then
1369  if test "x$prefix" != xNONE; then
1370    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371  else
1372    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373  fi
1374fi
1375for ac_site_file in $CONFIG_SITE; do
1376  if test -r "$ac_site_file"; then
1377    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378echo "$as_me: loading site script $ac_site_file" >&6;}
1379    sed 's/^/| /' "$ac_site_file" >&5
1380    . "$ac_site_file"
1381  fi
1382done
1383
1384if test -r "$cache_file"; then
1385  # Some versions of bash will fail to source /dev/null (special
1386  # files actually), so we avoid doing that.
1387  if test -f "$cache_file"; then
1388    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389echo "$as_me: loading cache $cache_file" >&6;}
1390    case $cache_file in
1391      [\\/]* | ?:[\\/]* ) . $cache_file;;
1392      *)                      . ./$cache_file;;
1393    esac
1394  fi
1395else
1396  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397echo "$as_me: creating cache $cache_file" >&6;}
1398  >$cache_file
1399fi
1400
1401# Check that the precious variables saved in the cache have kept the same
1402# value.
1403ac_cache_corrupted=false
1404for ac_var in `(set) 2>&1 |
1405	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1406  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407  eval ac_new_set=\$ac_env_${ac_var}_set
1408  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409  eval ac_new_val="\$ac_env_${ac_var}_value"
1410  case $ac_old_set,$ac_new_set in
1411    set,)
1412      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414      ac_cache_corrupted=: ;;
1415    ,set)
1416      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418      ac_cache_corrupted=: ;;
1419    ,);;
1420    *)
1421      if test "x$ac_old_val" != "x$ac_new_val"; then
1422	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1423echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1424	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1425echo "$as_me:   former value:  $ac_old_val" >&2;}
1426	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1427echo "$as_me:   current value: $ac_new_val" >&2;}
1428	ac_cache_corrupted=:
1429      fi;;
1430  esac
1431  # Pass precious variables to config.status.
1432  if test "$ac_new_set" = set; then
1433    case $ac_new_val in
1434    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1435      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1436    *) ac_arg=$ac_var=$ac_new_val ;;
1437    esac
1438    case " $ac_configure_args " in
1439      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1440      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1441    esac
1442  fi
1443done
1444if $ac_cache_corrupted; then
1445  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1446echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1447  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1448echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1449   { (exit 1); exit 1; }; }
1450fi
1451
1452ac_ext=c
1453ac_cpp='$CPP $CPPFLAGS'
1454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1456ac_compiler_gnu=$ac_cv_c_compiler_gnu
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485# The following RCS revision string applies to configure.in
1486# $Revision: 1.62 $
1487
1488#########
1489# Programs needed
1490#
1491case `pwd` in
1492  *\ * | *\	*)
1493    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
1494echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1495esac
1496
1497
1498
1499macro_version='2.2.4'
1500macro_revision='1.2976'
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514ltmain="$ac_aux_dir/ltmain.sh"
1515
1516ac_aux_dir=
1517for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1518  if test -f $ac_dir/install-sh; then
1519    ac_aux_dir=$ac_dir
1520    ac_install_sh="$ac_aux_dir/install-sh -c"
1521    break
1522  elif test -f $ac_dir/install.sh; then
1523    ac_aux_dir=$ac_dir
1524    ac_install_sh="$ac_aux_dir/install.sh -c"
1525    break
1526  elif test -f $ac_dir/shtool; then
1527    ac_aux_dir=$ac_dir
1528    ac_install_sh="$ac_aux_dir/shtool install -c"
1529    break
1530  fi
1531done
1532if test -z "$ac_aux_dir"; then
1533  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1534echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1535   { (exit 1); exit 1; }; }
1536fi
1537ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1538ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1539ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1540
1541# Make sure we can run config.sub.
1542$ac_config_sub sun4 >/dev/null 2>&1 ||
1543  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1544echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1545   { (exit 1); exit 1; }; }
1546
1547echo "$as_me:$LINENO: checking build system type" >&5
1548echo $ECHO_N "checking build system type... $ECHO_C" >&6
1549if test "${ac_cv_build+set}" = set; then
1550  echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552  ac_cv_build_alias=$build_alias
1553test -z "$ac_cv_build_alias" &&
1554  ac_cv_build_alias=`$ac_config_guess`
1555test -z "$ac_cv_build_alias" &&
1556  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1557echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1558   { (exit 1); exit 1; }; }
1559ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1560  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1561echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1562   { (exit 1); exit 1; }; }
1563
1564fi
1565echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1566echo "${ECHO_T}$ac_cv_build" >&6
1567build=$ac_cv_build
1568build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573echo "$as_me:$LINENO: checking host system type" >&5
1574echo $ECHO_N "checking host system type... $ECHO_C" >&6
1575if test "${ac_cv_host+set}" = set; then
1576  echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578  ac_cv_host_alias=$host_alias
1579test -z "$ac_cv_host_alias" &&
1580  ac_cv_host_alias=$ac_cv_build_alias
1581ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1582  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1583echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1584   { (exit 1); exit 1; }; }
1585
1586fi
1587echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1588echo "${ECHO_T}$ac_cv_host" >&6
1589host=$ac_cv_host
1590host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595ac_ext=c
1596ac_cpp='$CPP $CPPFLAGS'
1597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1599ac_compiler_gnu=$ac_cv_c_compiler_gnu
1600if test -n "$ac_tool_prefix"; then
1601  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1602set dummy ${ac_tool_prefix}gcc; ac_word=$2
1603echo "$as_me:$LINENO: checking for $ac_word" >&5
1604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605if test "${ac_cv_prog_CC+set}" = set; then
1606  echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608  if test -n "$CC"; then
1609  ac_cv_prog_CC="$CC" # Let the user override the test.
1610else
1611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614  IFS=$as_save_IFS
1615  test -z "$as_dir" && as_dir=.
1616  for ac_exec_ext in '' $ac_executable_extensions; do
1617  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620    break 2
1621  fi
1622done
1623done
1624
1625fi
1626fi
1627CC=$ac_cv_prog_CC
1628if test -n "$CC"; then
1629  echo "$as_me:$LINENO: result: $CC" >&5
1630echo "${ECHO_T}$CC" >&6
1631else
1632  echo "$as_me:$LINENO: result: no" >&5
1633echo "${ECHO_T}no" >&6
1634fi
1635
1636fi
1637if test -z "$ac_cv_prog_CC"; then
1638  ac_ct_CC=$CC
1639  # Extract the first word of "gcc", so it can be a program name with args.
1640set dummy gcc; ac_word=$2
1641echo "$as_me:$LINENO: checking for $ac_word" >&5
1642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1644  echo $ECHO_N "(cached) $ECHO_C" >&6
1645else
1646  if test -n "$ac_ct_CC"; then
1647  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648else
1649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650for as_dir in $PATH
1651do
1652  IFS=$as_save_IFS
1653  test -z "$as_dir" && as_dir=.
1654  for ac_exec_ext in '' $ac_executable_extensions; do
1655  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656    ac_cv_prog_ac_ct_CC="gcc"
1657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658    break 2
1659  fi
1660done
1661done
1662
1663fi
1664fi
1665ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666if test -n "$ac_ct_CC"; then
1667  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1668echo "${ECHO_T}$ac_ct_CC" >&6
1669else
1670  echo "$as_me:$LINENO: result: no" >&5
1671echo "${ECHO_T}no" >&6
1672fi
1673
1674  CC=$ac_ct_CC
1675else
1676  CC="$ac_cv_prog_CC"
1677fi
1678
1679if test -z "$CC"; then
1680  if test -n "$ac_tool_prefix"; then
1681  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1682set dummy ${ac_tool_prefix}cc; ac_word=$2
1683echo "$as_me:$LINENO: checking for $ac_word" >&5
1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685if test "${ac_cv_prog_CC+set}" = set; then
1686  echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
1688  if test -n "$CC"; then
1689  ac_cv_prog_CC="$CC" # Let the user override the test.
1690else
1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694  IFS=$as_save_IFS
1695  test -z "$as_dir" && as_dir=.
1696  for ac_exec_ext in '' $ac_executable_extensions; do
1697  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698    ac_cv_prog_CC="${ac_tool_prefix}cc"
1699    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700    break 2
1701  fi
1702done
1703done
1704
1705fi
1706fi
1707CC=$ac_cv_prog_CC
1708if test -n "$CC"; then
1709  echo "$as_me:$LINENO: result: $CC" >&5
1710echo "${ECHO_T}$CC" >&6
1711else
1712  echo "$as_me:$LINENO: result: no" >&5
1713echo "${ECHO_T}no" >&6
1714fi
1715
1716fi
1717if test -z "$ac_cv_prog_CC"; then
1718  ac_ct_CC=$CC
1719  # Extract the first word of "cc", so it can be a program name with args.
1720set dummy cc; ac_word=$2
1721echo "$as_me:$LINENO: checking for $ac_word" >&5
1722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1724  echo $ECHO_N "(cached) $ECHO_C" >&6
1725else
1726  if test -n "$ac_ct_CC"; then
1727  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1728else
1729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730for as_dir in $PATH
1731do
1732  IFS=$as_save_IFS
1733  test -z "$as_dir" && as_dir=.
1734  for ac_exec_ext in '' $ac_executable_extensions; do
1735  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736    ac_cv_prog_ac_ct_CC="cc"
1737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738    break 2
1739  fi
1740done
1741done
1742
1743fi
1744fi
1745ac_ct_CC=$ac_cv_prog_ac_ct_CC
1746if test -n "$ac_ct_CC"; then
1747  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1748echo "${ECHO_T}$ac_ct_CC" >&6
1749else
1750  echo "$as_me:$LINENO: result: no" >&5
1751echo "${ECHO_T}no" >&6
1752fi
1753
1754  CC=$ac_ct_CC
1755else
1756  CC="$ac_cv_prog_CC"
1757fi
1758
1759fi
1760if test -z "$CC"; then
1761  # Extract the first word of "cc", so it can be a program name with args.
1762set dummy cc; ac_word=$2
1763echo "$as_me:$LINENO: checking for $ac_word" >&5
1764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765if test "${ac_cv_prog_CC+set}" = set; then
1766  echo $ECHO_N "(cached) $ECHO_C" >&6
1767else
1768  if test -n "$CC"; then
1769  ac_cv_prog_CC="$CC" # Let the user override the test.
1770else
1771  ac_prog_rejected=no
1772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773for as_dir in $PATH
1774do
1775  IFS=$as_save_IFS
1776  test -z "$as_dir" && as_dir=.
1777  for ac_exec_ext in '' $ac_executable_extensions; do
1778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1780       ac_prog_rejected=yes
1781       continue
1782     fi
1783    ac_cv_prog_CC="cc"
1784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785    break 2
1786  fi
1787done
1788done
1789
1790if test $ac_prog_rejected = yes; then
1791  # We found a bogon in the path, so make sure we never use it.
1792  set dummy $ac_cv_prog_CC
1793  shift
1794  if test $# != 0; then
1795    # We chose a different compiler from the bogus one.
1796    # However, it has the same basename, so the bogon will be chosen
1797    # first if we set CC to just the basename; use the full file name.
1798    shift
1799    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1800  fi
1801fi
1802fi
1803fi
1804CC=$ac_cv_prog_CC
1805if test -n "$CC"; then
1806  echo "$as_me:$LINENO: result: $CC" >&5
1807echo "${ECHO_T}$CC" >&6
1808else
1809  echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811fi
1812
1813fi
1814if test -z "$CC"; then
1815  if test -n "$ac_tool_prefix"; then
1816  for ac_prog in cl
1817  do
1818    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1820echo "$as_me:$LINENO: checking for $ac_word" >&5
1821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822if test "${ac_cv_prog_CC+set}" = set; then
1823  echo $ECHO_N "(cached) $ECHO_C" >&6
1824else
1825  if test -n "$CC"; then
1826  ac_cv_prog_CC="$CC" # Let the user override the test.
1827else
1828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829for as_dir in $PATH
1830do
1831  IFS=$as_save_IFS
1832  test -z "$as_dir" && as_dir=.
1833  for ac_exec_ext in '' $ac_executable_extensions; do
1834  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837    break 2
1838  fi
1839done
1840done
1841
1842fi
1843fi
1844CC=$ac_cv_prog_CC
1845if test -n "$CC"; then
1846  echo "$as_me:$LINENO: result: $CC" >&5
1847echo "${ECHO_T}$CC" >&6
1848else
1849  echo "$as_me:$LINENO: result: no" >&5
1850echo "${ECHO_T}no" >&6
1851fi
1852
1853    test -n "$CC" && break
1854  done
1855fi
1856if test -z "$CC"; then
1857  ac_ct_CC=$CC
1858  for ac_prog in cl
1859do
1860  # Extract the first word of "$ac_prog", so it can be a program name with args.
1861set dummy $ac_prog; ac_word=$2
1862echo "$as_me:$LINENO: checking for $ac_word" >&5
1863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865  echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867  if test -n "$ac_ct_CC"; then
1868  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869else
1870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871for as_dir in $PATH
1872do
1873  IFS=$as_save_IFS
1874  test -z "$as_dir" && as_dir=.
1875  for ac_exec_ext in '' $ac_executable_extensions; do
1876  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877    ac_cv_prog_ac_ct_CC="$ac_prog"
1878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879    break 2
1880  fi
1881done
1882done
1883
1884fi
1885fi
1886ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887if test -n "$ac_ct_CC"; then
1888  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889echo "${ECHO_T}$ac_ct_CC" >&6
1890else
1891  echo "$as_me:$LINENO: result: no" >&5
1892echo "${ECHO_T}no" >&6
1893fi
1894
1895  test -n "$ac_ct_CC" && break
1896done
1897
1898  CC=$ac_ct_CC
1899fi
1900
1901fi
1902
1903
1904test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1905See \`config.log' for more details." >&5
1906echo "$as_me: error: no acceptable C compiler found in \$PATH
1907See \`config.log' for more details." >&2;}
1908   { (exit 1); exit 1; }; }
1909
1910# Provide some information about the compiler.
1911echo "$as_me:$LINENO:" \
1912     "checking for C compiler version" >&5
1913ac_compiler=`set X $ac_compile; echo $2`
1914{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1915  (eval $ac_compiler --version </dev/null >&5) 2>&5
1916  ac_status=$?
1917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918  (exit $ac_status); }
1919{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1920  (eval $ac_compiler -v </dev/null >&5) 2>&5
1921  ac_status=$?
1922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923  (exit $ac_status); }
1924{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1925  (eval $ac_compiler -V </dev/null >&5) 2>&5
1926  ac_status=$?
1927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928  (exit $ac_status); }
1929
1930cat >conftest.$ac_ext <<_ACEOF
1931/* confdefs.h.  */
1932_ACEOF
1933cat confdefs.h >>conftest.$ac_ext
1934cat >>conftest.$ac_ext <<_ACEOF
1935/* end confdefs.h.  */
1936
1937int
1938main ()
1939{
1940
1941  ;
1942  return 0;
1943}
1944_ACEOF
1945ac_clean_files_save=$ac_clean_files
1946ac_clean_files="$ac_clean_files a.out a.exe b.out"
1947# Try to create an executable without -o first, disregard a.out.
1948# It will help us diagnose broken compilers, and finding out an intuition
1949# of exeext.
1950echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1951echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1952ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1953if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1954  (eval $ac_link_default) 2>&5
1955  ac_status=$?
1956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957  (exit $ac_status); }; then
1958  # Find the output, starting from the most likely.  This scheme is
1959# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1960# resort.
1961
1962# Be careful to initialize this variable, since it used to be cached.
1963# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1964ac_cv_exeext=
1965# b.out is created by i960 compilers.
1966for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1967do
1968  test -f "$ac_file" || continue
1969  case $ac_file in
1970    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1971	;;
1972    conftest.$ac_ext )
1973	# This is the source file.
1974	;;
1975    [ab].out )
1976	# We found the default executable, but exeext='' is most
1977	# certainly right.
1978	break;;
1979    *.* )
1980	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981	# FIXME: I believe we export ac_cv_exeext for Libtool,
1982	# but it would be cool to find out if it's true.  Does anybody
1983	# maintain Libtool? --akim.
1984	export ac_cv_exeext
1985	break;;
1986    * )
1987	break;;
1988  esac
1989done
1990else
1991  echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
1993
1994{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1995See \`config.log' for more details." >&5
1996echo "$as_me: error: C compiler cannot create executables
1997See \`config.log' for more details." >&2;}
1998   { (exit 77); exit 77; }; }
1999fi
2000
2001ac_exeext=$ac_cv_exeext
2002echo "$as_me:$LINENO: result: $ac_file" >&5
2003echo "${ECHO_T}$ac_file" >&6
2004
2005# Check the compiler produces executables we can run.  If not, either
2006# the compiler is broken, or we cross compile.
2007echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2008echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2009# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2010# If not cross compiling, check that we can run a simple program.
2011if test "$cross_compiling" != yes; then
2012  if { ac_try='./$ac_file'
2013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014  (eval $ac_try) 2>&5
2015  ac_status=$?
2016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017  (exit $ac_status); }; }; then
2018    cross_compiling=no
2019  else
2020    if test "$cross_compiling" = maybe; then
2021	cross_compiling=yes
2022    else
2023	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2024If you meant to cross compile, use \`--host'.
2025See \`config.log' for more details." >&5
2026echo "$as_me: error: cannot run C compiled programs.
2027If you meant to cross compile, use \`--host'.
2028See \`config.log' for more details." >&2;}
2029   { (exit 1); exit 1; }; }
2030    fi
2031  fi
2032fi
2033echo "$as_me:$LINENO: result: yes" >&5
2034echo "${ECHO_T}yes" >&6
2035
2036rm -f a.out a.exe conftest$ac_cv_exeext b.out
2037ac_clean_files=$ac_clean_files_save
2038# Check the compiler produces executables we can run.  If not, either
2039# the compiler is broken, or we cross compile.
2040echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2041echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2042echo "$as_me:$LINENO: result: $cross_compiling" >&5
2043echo "${ECHO_T}$cross_compiling" >&6
2044
2045echo "$as_me:$LINENO: checking for suffix of executables" >&5
2046echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2048  (eval $ac_link) 2>&5
2049  ac_status=$?
2050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051  (exit $ac_status); }; then
2052  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2053# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2054# work properly (i.e., refer to `conftest.exe'), while it won't with
2055# `rm'.
2056for ac_file in conftest.exe conftest conftest.*; do
2057  test -f "$ac_file" || continue
2058  case $ac_file in
2059    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2060    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061	  export ac_cv_exeext
2062	  break;;
2063    * ) break;;
2064  esac
2065done
2066else
2067  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2068See \`config.log' for more details." >&5
2069echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2070See \`config.log' for more details." >&2;}
2071   { (exit 1); exit 1; }; }
2072fi
2073
2074rm -f conftest$ac_cv_exeext
2075echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2076echo "${ECHO_T}$ac_cv_exeext" >&6
2077
2078rm -f conftest.$ac_ext
2079EXEEXT=$ac_cv_exeext
2080ac_exeext=$EXEEXT
2081echo "$as_me:$LINENO: checking for suffix of object files" >&5
2082echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2083if test "${ac_cv_objext+set}" = set; then
2084  echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086  cat >conftest.$ac_ext <<_ACEOF
2087/* confdefs.h.  */
2088_ACEOF
2089cat confdefs.h >>conftest.$ac_ext
2090cat >>conftest.$ac_ext <<_ACEOF
2091/* end confdefs.h.  */
2092
2093int
2094main ()
2095{
2096
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101rm -f conftest.o conftest.obj
2102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103  (eval $ac_compile) 2>&5
2104  ac_status=$?
2105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106  (exit $ac_status); }; then
2107  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2108  case $ac_file in
2109    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2110    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2111       break;;
2112  esac
2113done
2114else
2115  echo "$as_me: failed program was:" >&5
2116sed 's/^/| /' conftest.$ac_ext >&5
2117
2118{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2119See \`config.log' for more details." >&5
2120echo "$as_me: error: cannot compute suffix of object files: cannot compile
2121See \`config.log' for more details." >&2;}
2122   { (exit 1); exit 1; }; }
2123fi
2124
2125rm -f conftest.$ac_cv_objext conftest.$ac_ext
2126fi
2127echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2128echo "${ECHO_T}$ac_cv_objext" >&6
2129OBJEXT=$ac_cv_objext
2130ac_objext=$OBJEXT
2131echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2132echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2133if test "${ac_cv_c_compiler_gnu+set}" = set; then
2134  echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136  cat >conftest.$ac_ext <<_ACEOF
2137/* confdefs.h.  */
2138_ACEOF
2139cat confdefs.h >>conftest.$ac_ext
2140cat >>conftest.$ac_ext <<_ACEOF
2141/* end confdefs.h.  */
2142
2143int
2144main ()
2145{
2146#ifndef __GNUC__
2147       choke me
2148#endif
2149
2150  ;
2151  return 0;
2152}
2153_ACEOF
2154rm -f conftest.$ac_objext
2155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2156  (eval $ac_compile) 2>conftest.er1
2157  ac_status=$?
2158  grep -v '^ *+' conftest.er1 >conftest.err
2159  rm -f conftest.er1
2160  cat conftest.err >&5
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); } &&
2163	 { ac_try='test -z "$ac_c_werror_flag"
2164			 || test ! -s conftest.err'
2165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166  (eval $ac_try) 2>&5
2167  ac_status=$?
2168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169  (exit $ac_status); }; } &&
2170	 { ac_try='test -s conftest.$ac_objext'
2171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172  (eval $ac_try) 2>&5
2173  ac_status=$?
2174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175  (exit $ac_status); }; }; then
2176  ac_compiler_gnu=yes
2177else
2178  echo "$as_me: failed program was:" >&5
2179sed 's/^/| /' conftest.$ac_ext >&5
2180
2181ac_compiler_gnu=no
2182fi
2183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2184ac_cv_c_compiler_gnu=$ac_compiler_gnu
2185
2186fi
2187echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2188echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2189GCC=`test $ac_compiler_gnu = yes && echo yes`
2190ac_test_CFLAGS=${CFLAGS+set}
2191ac_save_CFLAGS=$CFLAGS
2192CFLAGS="-g"
2193echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2194echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2195if test "${ac_cv_prog_cc_g+set}" = set; then
2196  echo $ECHO_N "(cached) $ECHO_C" >&6
2197else
2198  cat >conftest.$ac_ext <<_ACEOF
2199/* confdefs.h.  */
2200_ACEOF
2201cat confdefs.h >>conftest.$ac_ext
2202cat >>conftest.$ac_ext <<_ACEOF
2203/* end confdefs.h.  */
2204
2205int
2206main ()
2207{
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213rm -f conftest.$ac_objext
2214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215  (eval $ac_compile) 2>conftest.er1
2216  ac_status=$?
2217  grep -v '^ *+' conftest.er1 >conftest.err
2218  rm -f conftest.er1
2219  cat conftest.err >&5
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); } &&
2222	 { ac_try='test -z "$ac_c_werror_flag"
2223			 || test ! -s conftest.err'
2224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225  (eval $ac_try) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; } &&
2229	 { ac_try='test -s conftest.$ac_objext'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; }; then
2235  ac_cv_prog_cc_g=yes
2236else
2237  echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240ac_cv_prog_cc_g=no
2241fi
2242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2243fi
2244echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2245echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2246if test "$ac_test_CFLAGS" = set; then
2247  CFLAGS=$ac_save_CFLAGS
2248elif test $ac_cv_prog_cc_g = yes; then
2249  if test "$GCC" = yes; then
2250    CFLAGS="-g -O2"
2251  else
2252    CFLAGS="-g"
2253  fi
2254else
2255  if test "$GCC" = yes; then
2256    CFLAGS="-O2"
2257  else
2258    CFLAGS=
2259  fi
2260fi
2261echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2262echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2263if test "${ac_cv_prog_cc_stdc+set}" = set; then
2264  echo $ECHO_N "(cached) $ECHO_C" >&6
2265else
2266  ac_cv_prog_cc_stdc=no
2267ac_save_CC=$CC
2268cat >conftest.$ac_ext <<_ACEOF
2269/* confdefs.h.  */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h.  */
2274#include <stdarg.h>
2275#include <stdio.h>
2276#include <sys/types.h>
2277#include <sys/stat.h>
2278/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2279struct buf { int x; };
2280FILE * (*rcsopen) (struct buf *, struct stat *, int);
2281static char *e (p, i)
2282     char **p;
2283     int i;
2284{
2285  return p[i];
2286}
2287static char *f (char * (*g) (char **, int), char **p, ...)
2288{
2289  char *s;
2290  va_list v;
2291  va_start (v,p);
2292  s = g (p, va_arg (v,int));
2293  va_end (v);
2294  return s;
2295}
2296
2297/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2298   function prototypes and stuff, but not '\xHH' hex character constants.
2299   These don't provoke an error unfortunately, instead are silently treated
2300   as 'x'.  The following induces an error, until -std1 is added to get
2301   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2302   array size at least.  It's necessary to write '\x00'==0 to get something
2303   that's true only with -std1.  */
2304int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2305
2306int test (int i, double x);
2307struct s1 {int (*f) (int a);};
2308struct s2 {int (*f) (double a);};
2309int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2310int argc;
2311char **argv;
2312int
2313main ()
2314{
2315return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320# Don't try gcc -ansi; that turns off useful extensions and
2321# breaks some systems' header files.
2322# AIX			-qlanglvl=ansi
2323# Ultrix and OSF/1	-std1
2324# HP-UX 10.20 and later	-Ae
2325# HP-UX older versions	-Aa -D_HPUX_SOURCE
2326# SVR4			-Xc -D__EXTENSIONS__
2327for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2328do
2329  CC="$ac_save_CC $ac_arg"
2330  rm -f conftest.$ac_objext
2331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332  (eval $ac_compile) 2>conftest.er1
2333  ac_status=$?
2334  grep -v '^ *+' conftest.er1 >conftest.err
2335  rm -f conftest.er1
2336  cat conftest.err >&5
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); } &&
2339	 { ac_try='test -z "$ac_c_werror_flag"
2340			 || test ! -s conftest.err'
2341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342  (eval $ac_try) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; } &&
2346	 { ac_try='test -s conftest.$ac_objext'
2347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348  (eval $ac_try) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; }; then
2352  ac_cv_prog_cc_stdc=$ac_arg
2353break
2354else
2355  echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358fi
2359rm -f conftest.err conftest.$ac_objext
2360done
2361rm -f conftest.$ac_ext conftest.$ac_objext
2362CC=$ac_save_CC
2363
2364fi
2365
2366case "x$ac_cv_prog_cc_stdc" in
2367  x|xno)
2368    echo "$as_me:$LINENO: result: none needed" >&5
2369echo "${ECHO_T}none needed" >&6 ;;
2370  *)
2371    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2372echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2373    CC="$CC $ac_cv_prog_cc_stdc" ;;
2374esac
2375
2376# Some people use a C++ compiler to compile C.  Since we use `exit',
2377# in C++ we need to declare it.  In case someone uses the same compiler
2378# for both compiling C and C++ we need to have the C++ compiler decide
2379# the declaration of exit, since it's the most demanding environment.
2380cat >conftest.$ac_ext <<_ACEOF
2381#ifndef __cplusplus
2382  choke me
2383#endif
2384_ACEOF
2385rm -f conftest.$ac_objext
2386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387  (eval $ac_compile) 2>conftest.er1
2388  ac_status=$?
2389  grep -v '^ *+' conftest.er1 >conftest.err
2390  rm -f conftest.er1
2391  cat conftest.err >&5
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); } &&
2394	 { ac_try='test -z "$ac_c_werror_flag"
2395			 || test ! -s conftest.err'
2396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397  (eval $ac_try) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }; } &&
2401	 { ac_try='test -s conftest.$ac_objext'
2402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403  (eval $ac_try) 2>&5
2404  ac_status=$?
2405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406  (exit $ac_status); }; }; then
2407  for ac_declaration in \
2408   '' \
2409   'extern "C" void std::exit (int) throw (); using std::exit;' \
2410   'extern "C" void std::exit (int); using std::exit;' \
2411   'extern "C" void exit (int) throw ();' \
2412   'extern "C" void exit (int);' \
2413   'void exit (int);'
2414do
2415  cat >conftest.$ac_ext <<_ACEOF
2416/* confdefs.h.  */
2417_ACEOF
2418cat confdefs.h >>conftest.$ac_ext
2419cat >>conftest.$ac_ext <<_ACEOF
2420/* end confdefs.h.  */
2421$ac_declaration
2422#include <stdlib.h>
2423int
2424main ()
2425{
2426exit (42);
2427  ;
2428  return 0;
2429}
2430_ACEOF
2431rm -f conftest.$ac_objext
2432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433  (eval $ac_compile) 2>conftest.er1
2434  ac_status=$?
2435  grep -v '^ *+' conftest.er1 >conftest.err
2436  rm -f conftest.er1
2437  cat conftest.err >&5
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); } &&
2440	 { ac_try='test -z "$ac_c_werror_flag"
2441			 || test ! -s conftest.err'
2442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443  (eval $ac_try) 2>&5
2444  ac_status=$?
2445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446  (exit $ac_status); }; } &&
2447	 { ac_try='test -s conftest.$ac_objext'
2448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449  (eval $ac_try) 2>&5
2450  ac_status=$?
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); }; }; then
2453  :
2454else
2455  echo "$as_me: failed program was:" >&5
2456sed 's/^/| /' conftest.$ac_ext >&5
2457
2458continue
2459fi
2460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461  cat >conftest.$ac_ext <<_ACEOF
2462/* confdefs.h.  */
2463_ACEOF
2464cat confdefs.h >>conftest.$ac_ext
2465cat >>conftest.$ac_ext <<_ACEOF
2466/* end confdefs.h.  */
2467$ac_declaration
2468int
2469main ()
2470{
2471exit (42);
2472  ;
2473  return 0;
2474}
2475_ACEOF
2476rm -f conftest.$ac_objext
2477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478  (eval $ac_compile) 2>conftest.er1
2479  ac_status=$?
2480  grep -v '^ *+' conftest.er1 >conftest.err
2481  rm -f conftest.er1
2482  cat conftest.err >&5
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); } &&
2485	 { ac_try='test -z "$ac_c_werror_flag"
2486			 || test ! -s conftest.err'
2487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }; } &&
2492	 { ac_try='test -s conftest.$ac_objext'
2493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494  (eval $ac_try) 2>&5
2495  ac_status=$?
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); }; }; then
2498  break
2499else
2500  echo "$as_me: failed program was:" >&5
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
2503fi
2504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505done
2506rm -f conftest*
2507if test -n "$ac_declaration"; then
2508  echo '#ifdef __cplusplus' >>confdefs.h
2509  echo $ac_declaration      >>confdefs.h
2510  echo '#endif'             >>confdefs.h
2511fi
2512
2513else
2514  echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517fi
2518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519ac_ext=c
2520ac_cpp='$CPP $CPPFLAGS'
2521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
2525echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2526echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2527if test "${lt_cv_path_SED+set}" = set; then
2528  echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530  # Loop through the user's path and test for sed and gsed.
2531# Then use that list of sed's as ones to test for truncation.
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535  IFS=$as_save_IFS
2536  test -z "$as_dir" && as_dir=.
2537  for lt_ac_prog in sed gsed; do
2538    for ac_exec_ext in '' $ac_executable_extensions; do
2539      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2540        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2541      fi
2542    done
2543  done
2544done
2545IFS=$as_save_IFS
2546lt_ac_max=0
2547lt_ac_count=0
2548# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2549# along with /bin/sed that truncates output.
2550for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2551  test ! -f $lt_ac_sed && continue
2552  cat /dev/null > conftest.in
2553  lt_ac_count=0
2554  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2555  # Check for GNU sed and select it if it is found.
2556  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2557    lt_cv_path_SED=$lt_ac_sed
2558    break
2559  fi
2560  while true; do
2561    cat conftest.in conftest.in >conftest.tmp
2562    mv conftest.tmp conftest.in
2563    cp conftest.in conftest.nl
2564    echo >>conftest.nl
2565    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2566    cmp -s conftest.out conftest.nl || break
2567    # 10000 chars as input seems more than enough
2568    test $lt_ac_count -gt 10 && break
2569    lt_ac_count=`expr $lt_ac_count + 1`
2570    if test $lt_ac_count -gt $lt_ac_max; then
2571      lt_ac_max=$lt_ac_count
2572      lt_cv_path_SED=$lt_ac_sed
2573    fi
2574  done
2575done
2576
2577fi
2578
2579SED=$lt_cv_path_SED
2580
2581echo "$as_me:$LINENO: result: $SED" >&5
2582echo "${ECHO_T}$SED" >&6
2583
2584test -z "$SED" && SED=sed
2585Xsed="$SED -e 1s/^X//"
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597echo "$as_me:$LINENO: checking for egrep" >&5
2598echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2599if test "${ac_cv_prog_egrep+set}" = set; then
2600  echo $ECHO_N "(cached) $ECHO_C" >&6
2601else
2602  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2603    then ac_cv_prog_egrep='grep -E'
2604    else ac_cv_prog_egrep='egrep'
2605    fi
2606fi
2607echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2608echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2609 EGREP=$ac_cv_prog_egrep
2610
2611
2612echo "$as_me:$LINENO: checking for fgrep" >&5
2613echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
2614if test "${ac_cv_prog_fgrep+set}" = set; then
2615  echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
2618    then ac_cv_prog_fgrep='grep -F'
2619    else ac_cv_prog_fgrep='fgrep'
2620    fi
2621fi
2622echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
2623echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
2624 FGREP=$ac_cv_prog_fgrep
2625
2626
2627test -z "$GREP" && GREP=grep
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647# Check whether --with-gnu-ld or --without-gnu-ld was given.
2648if test "${with_gnu_ld+set}" = set; then
2649  withval="$with_gnu_ld"
2650  test "$withval" = no || with_gnu_ld=yes
2651else
2652  with_gnu_ld=no
2653fi;
2654ac_prog=ld
2655if test "$GCC" = yes; then
2656  # Check if gcc -print-prog-name=ld gives a path.
2657  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2658echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2659  case $host in
2660  *-*-mingw*)
2661    # gcc leaves a trailing carriage return which upsets mingw
2662    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2663  *)
2664    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2665  esac
2666  case $ac_prog in
2667    # Accept absolute paths.
2668    [\\/]* | ?:[\\/]*)
2669      re_direlt='/[^/][^/]*/\.\./'
2670      # Canonicalize the pathname of ld
2671      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2672      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2673	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2674      done
2675      test -z "$LD" && LD="$ac_prog"
2676      ;;
2677  "")
2678    # If it fails, then pretend we aren't using GCC.
2679    ac_prog=ld
2680    ;;
2681  *)
2682    # If it is relative, then search for the first ld in PATH.
2683    with_gnu_ld=unknown
2684    ;;
2685  esac
2686elif test "$with_gnu_ld" = yes; then
2687  echo "$as_me:$LINENO: checking for GNU ld" >&5
2688echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2689else
2690  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2691echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2692fi
2693if test "${lt_cv_path_LD+set}" = set; then
2694  echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696  if test -z "$LD"; then
2697  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2698  for ac_dir in $PATH; do
2699    IFS="$lt_save_ifs"
2700    test -z "$ac_dir" && ac_dir=.
2701    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2702      lt_cv_path_LD="$ac_dir/$ac_prog"
2703      # Check to see if the program is GNU ld.  I'd rather use --version,
2704      # but apparently some variants of GNU ld only accept -v.
2705      # Break only if it was the GNU/non-GNU ld that we prefer.
2706      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2707      *GNU* | *'with BFD'*)
2708	test "$with_gnu_ld" != no && break
2709	;;
2710      *)
2711	test "$with_gnu_ld" != yes && break
2712	;;
2713      esac
2714    fi
2715  done
2716  IFS="$lt_save_ifs"
2717else
2718  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2719fi
2720fi
2721
2722LD="$lt_cv_path_LD"
2723if test -n "$LD"; then
2724  echo "$as_me:$LINENO: result: $LD" >&5
2725echo "${ECHO_T}$LD" >&6
2726else
2727  echo "$as_me:$LINENO: result: no" >&5
2728echo "${ECHO_T}no" >&6
2729fi
2730test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2731echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2732   { (exit 1); exit 1; }; }
2733echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2734echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2735if test "${lt_cv_prog_gnu_ld+set}" = set; then
2736  echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738  # I'd rather use --version here, but apparently some GNU lds only accept -v.
2739case `$LD -v 2>&1 </dev/null` in
2740*GNU* | *'with BFD'*)
2741  lt_cv_prog_gnu_ld=yes
2742  ;;
2743*)
2744  lt_cv_prog_gnu_ld=no
2745  ;;
2746esac
2747fi
2748echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2749echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2750with_gnu_ld=$lt_cv_prog_gnu_ld
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
2761echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
2762if test "${lt_cv_path_NM+set}" = set; then
2763  echo $ECHO_N "(cached) $ECHO_C" >&6
2764else
2765  if test -n "$NM"; then
2766  # Let the user override the test.
2767  lt_cv_path_NM="$NM"
2768else
2769  lt_nm_to_check="${ac_tool_prefix}nm"
2770  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2771    lt_nm_to_check="$lt_nm_to_check nm"
2772  fi
2773  for lt_tmp_nm in $lt_nm_to_check; do
2774    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2775    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2776      IFS="$lt_save_ifs"
2777      test -z "$ac_dir" && ac_dir=.
2778      tmp_nm="$ac_dir/$lt_tmp_nm"
2779      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2780	# Check to see if the nm accepts a BSD-compat flag.
2781	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2782	#   nm: unknown option "B" ignored
2783	# Tru64's nm complains that /dev/null is an invalid object file
2784	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2785	*/dev/null* | *'Invalid file or object type'*)
2786	  lt_cv_path_NM="$tmp_nm -B"
2787	  break
2788	  ;;
2789	*)
2790	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2791	  */dev/null*)
2792	    lt_cv_path_NM="$tmp_nm -p"
2793	    break
2794	    ;;
2795	  *)
2796	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2797	    continue # so that we can try to find one that supports BSD flags
2798	    ;;
2799	  esac
2800	  ;;
2801	esac
2802      fi
2803    done
2804    IFS="$lt_save_ifs"
2805  done
2806  : ${lt_cv_path_NM=no}
2807fi
2808fi
2809echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2810echo "${ECHO_T}$lt_cv_path_NM" >&6
2811if test "$lt_cv_path_NM" != "no"; then
2812  NM="$lt_cv_path_NM"
2813else
2814  # Didn't find any BSD compatible name lister, look for dumpbin.
2815  if test -n "$ac_tool_prefix"; then
2816  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
2817  do
2818    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2820echo "$as_me:$LINENO: checking for $ac_word" >&5
2821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822if test "${ac_cv_prog_DUMPBIN+set}" = set; then
2823  echo $ECHO_N "(cached) $ECHO_C" >&6
2824else
2825  if test -n "$DUMPBIN"; then
2826  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  test -z "$as_dir" && as_dir=.
2833  for ac_exec_ext in '' $ac_executable_extensions; do
2834  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
2836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840done
2841
2842fi
2843fi
2844DUMPBIN=$ac_cv_prog_DUMPBIN
2845if test -n "$DUMPBIN"; then
2846  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
2847echo "${ECHO_T}$DUMPBIN" >&6
2848else
2849  echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6
2851fi
2852
2853    test -n "$DUMPBIN" && break
2854  done
2855fi
2856if test -z "$DUMPBIN"; then
2857  ac_ct_DUMPBIN=$DUMPBIN
2858  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
2859do
2860  # Extract the first word of "$ac_prog", so it can be a program name with args.
2861set dummy $ac_prog; ac_word=$2
2862echo "$as_me:$LINENO: checking for $ac_word" >&5
2863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
2865  echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
2867  if test -n "$ac_ct_DUMPBIN"; then
2868  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
2869else
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873  IFS=$as_save_IFS
2874  test -z "$as_dir" && as_dir=.
2875  for ac_exec_ext in '' $ac_executable_extensions; do
2876  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
2878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879    break 2
2880  fi
2881done
2882done
2883
2884fi
2885fi
2886ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
2887if test -n "$ac_ct_DUMPBIN"; then
2888  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
2889echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
2890else
2891  echo "$as_me:$LINENO: result: no" >&5
2892echo "${ECHO_T}no" >&6
2893fi
2894
2895  test -n "$ac_ct_DUMPBIN" && break
2896done
2897test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
2898
2899  DUMPBIN=$ac_ct_DUMPBIN
2900fi
2901
2902
2903  if test "$DUMPBIN" != ":"; then
2904    NM="$DUMPBIN"
2905  fi
2906fi
2907test -z "$NM" && NM=nm
2908
2909
2910
2911
2912
2913
2914echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
2915echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
2916if test "${lt_cv_nm_interface+set}" = set; then
2917  echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919  lt_cv_nm_interface="BSD nm"
2920  echo "int some_variable = 0;" > conftest.$ac_ext
2921  (eval echo "\"\$as_me:2927: $ac_compile\"" >&5)
2922  (eval "$ac_compile" 2>conftest.err)
2923  cat conftest.err >&5
2924  (eval echo "\"\$as_me:2930: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
2925  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
2926  cat conftest.err >&5
2927  (eval echo "\"\$as_me:2933: output\"" >&5)
2928  cat conftest.out >&5
2929  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
2930    lt_cv_nm_interface="MS dumpbin"
2931  fi
2932  rm -f conftest*
2933fi
2934echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
2935echo "${ECHO_T}$lt_cv_nm_interface" >&6
2936
2937echo "$as_me:$LINENO: checking whether ln -s works" >&5
2938echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2939LN_S=$as_ln_s
2940if test "$LN_S" = "ln -s"; then
2941  echo "$as_me:$LINENO: result: yes" >&5
2942echo "${ECHO_T}yes" >&6
2943else
2944  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2945echo "${ECHO_T}no, using $LN_S" >&6
2946fi
2947
2948# find the maximum length of command line arguments
2949echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
2950echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
2951if test "${lt_cv_sys_max_cmd_len+set}" = set; then
2952  echo $ECHO_N "(cached) $ECHO_C" >&6
2953else
2954    i=0
2955  teststring="ABCD"
2956
2957  case $build_os in
2958  msdosdjgpp*)
2959    # On DJGPP, this test can blow up pretty badly due to problems in libc
2960    # (any single argument exceeding 2000 bytes causes a buffer overrun
2961    # during glob expansion).  Even if it were fixed, the result of this
2962    # check would be larger than it should be.
2963    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
2964    ;;
2965
2966  gnu*)
2967    # Under GNU Hurd, this test is not required because there is
2968    # no limit to the length of command line arguments.
2969    # Libtool will interpret -1 as no limit whatsoever
2970    lt_cv_sys_max_cmd_len=-1;
2971    ;;
2972
2973  cygwin* | mingw*)
2974    # On Win9x/ME, this test blows up -- it succeeds, but takes
2975    # about 5 minutes as the teststring grows exponentially.
2976    # Worse, since 9x/ME are not pre-emptively multitasking,
2977    # you end up with a "frozen" computer, even though with patience
2978    # the test eventually succeeds (with a max line length of 256k).
2979    # Instead, let's just punt: use the minimum linelength reported by
2980    # all of the supported platforms: 8192 (on NT/2K/XP).
2981    lt_cv_sys_max_cmd_len=8192;
2982    ;;
2983
2984  amigaos*)
2985    # On AmigaOS with pdksh, this test takes hours, literally.
2986    # So we just punt and use a minimum line length of 8192.
2987    lt_cv_sys_max_cmd_len=8192;
2988    ;;
2989
2990  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2991    # This has been around since 386BSD, at least.  Likely further.
2992    if test -x /sbin/sysctl; then
2993      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2994    elif test -x /usr/sbin/sysctl; then
2995      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2996    else
2997      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
2998    fi
2999    # And add a safety zone
3000    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3001    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3002    ;;
3003
3004  interix*)
3005    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3006    lt_cv_sys_max_cmd_len=196608
3007    ;;
3008
3009  osf*)
3010    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3011    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3012    # nice to cause kernel panics so lets avoid the loop below.
3013    # First set a reasonable default.
3014    lt_cv_sys_max_cmd_len=16384
3015    #
3016    if test -x /sbin/sysconfig; then
3017      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3018        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3019      esac
3020    fi
3021    ;;
3022  sco3.2v5*)
3023    lt_cv_sys_max_cmd_len=102400
3024    ;;
3025  sysv5* | sco5v6* | sysv4.2uw2*)
3026    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3027    if test -n "$kargmax"; then
3028      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
3029    else
3030      lt_cv_sys_max_cmd_len=32768
3031    fi
3032    ;;
3033  *)
3034    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3035    if test -n "$lt_cv_sys_max_cmd_len"; then
3036      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3037      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3038    else
3039      # Make teststring a little bigger before we do anything with it.
3040      # a 1K string should be a reasonable start.
3041      for i in 1 2 3 4 5 6 7 8 ; do
3042        teststring=$teststring$teststring
3043      done
3044      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3045      # If test is not a shell built-in, we'll probably end up computing a
3046      # maximum length that is only half of the actual maximum length, but
3047      # we can't tell.
3048      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3049	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3050	      test $i != 17 # 1/2 MB should be enough
3051      do
3052        i=`expr $i + 1`
3053        teststring=$teststring$teststring
3054      done
3055      # Only check the string length outside the loop.
3056      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3057      teststring=
3058      # Add a significant safety factor because C++ compilers can tack on
3059      # massive amounts of additional arguments before passing them to the
3060      # linker.  It appears as though 1/2 is a usable value.
3061      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3062    fi
3063    ;;
3064  esac
3065
3066fi
3067
3068if test -n $lt_cv_sys_max_cmd_len ; then
3069  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3070echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3071else
3072  echo "$as_me:$LINENO: result: none" >&5
3073echo "${ECHO_T}none" >&6
3074fi
3075max_cmd_len=$lt_cv_sys_max_cmd_len
3076
3077
3078
3079
3080
3081
3082: ${CP="cp -f"}
3083: ${MV="mv -f"}
3084: ${RM="rm -f"}
3085
3086echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3087echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3088# Try some XSI features
3089xsi_shell=no
3090( _lt_dummy="a/b/c"
3091  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3092      = c,a/b,, \
3093    && eval 'test $(( 1 + 1 )) -eq 2 \
3094    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3095  && xsi_shell=yes
3096echo "$as_me:$LINENO: result: $xsi_shell" >&5
3097echo "${ECHO_T}$xsi_shell" >&6
3098
3099
3100echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3101echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3102lt_shell_append=no
3103( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3104    >/dev/null 2>&1 \
3105  && lt_shell_append=yes
3106echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3107echo "${ECHO_T}$lt_shell_append" >&6
3108
3109
3110if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3111  lt_unset=unset
3112else
3113  lt_unset=false
3114fi
3115
3116
3117
3118
3119
3120# test EBCDIC or ASCII
3121case `echo X|tr X '\101'` in
3122 A) # ASCII based system
3123    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3124  lt_SP2NL='tr \040 \012'
3125  lt_NL2SP='tr \015\012 \040\040'
3126  ;;
3127 *) # EBCDIC based system
3128  lt_SP2NL='tr \100 \n'
3129  lt_NL2SP='tr \r\n \100\100'
3130  ;;
3131esac
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3142echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3143if test "${lt_cv_ld_reload_flag+set}" = set; then
3144  echo $ECHO_N "(cached) $ECHO_C" >&6
3145else
3146  lt_cv_ld_reload_flag='-r'
3147fi
3148echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3149echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3150reload_flag=$lt_cv_ld_reload_flag
3151case $reload_flag in
3152"" | " "*) ;;
3153*) reload_flag=" $reload_flag" ;;
3154esac
3155reload_cmds='$LD$reload_flag -o $output$reload_objs'
3156case $host_os in
3157  darwin*)
3158    if test "$GCC" = yes; then
3159      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3160    else
3161      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3162    fi
3163    ;;
3164esac
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3176echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
3177if test "${lt_cv_deplibs_check_method+set}" = set; then
3178  echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180  lt_cv_file_magic_cmd='$MAGIC_CMD'
3181lt_cv_file_magic_test_file=
3182lt_cv_deplibs_check_method='unknown'
3183# Need to set the preceding variable on all platforms that support
3184# interlibrary dependencies.
3185# 'none' -- dependencies not supported.
3186# `unknown' -- same as none, but documents that we really don't know.
3187# 'pass_all' -- all dependencies passed with no checks.
3188# 'test_compile' -- check by making test program.
3189# 'file_magic [[regex]]' -- check by looking for files in library path
3190# which responds to the $file_magic_cmd with a given extended regex.
3191# If you have `file' or equivalent on your system and you're not sure
3192# whether `pass_all' will *always* work, you probably want this one.
3193
3194case $host_os in
3195aix[4-9]*)
3196  lt_cv_deplibs_check_method=pass_all
3197  ;;
3198
3199beos*)
3200  lt_cv_deplibs_check_method=pass_all
3201  ;;
3202
3203bsdi[45]*)
3204  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3205  lt_cv_file_magic_cmd='/usr/bin/file -L'
3206  lt_cv_file_magic_test_file=/shlib/libc.so
3207  ;;
3208
3209cygwin*)
3210  # func_win32_libid is a shell function defined in ltmain.sh
3211  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3212  lt_cv_file_magic_cmd='func_win32_libid'
3213  ;;
3214
3215mingw* | pw32*)
3216  # Base MSYS/MinGW do not provide the 'file' command needed by
3217  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3218  # unless we find 'file', for example because we are cross-compiling.
3219  if ( file / ) >/dev/null 2>&1; then
3220    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3221    lt_cv_file_magic_cmd='func_win32_libid'
3222  else
3223    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3224    lt_cv_file_magic_cmd='$OBJDUMP -f'
3225  fi
3226  ;;
3227
3228darwin* | rhapsody*)
3229  lt_cv_deplibs_check_method=pass_all
3230  ;;
3231
3232freebsd* | dragonfly*)
3233  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3234    case $host_cpu in
3235    i*86 )
3236      # Not sure whether the presence of OpenBSD here was a mistake.
3237      # Let's accept both of them until this is cleared up.
3238      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3239      lt_cv_file_magic_cmd=/usr/bin/file
3240      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3241      ;;
3242    esac
3243  else
3244    lt_cv_deplibs_check_method=pass_all
3245  fi
3246  ;;
3247
3248gnu*)
3249  lt_cv_deplibs_check_method=pass_all
3250  ;;
3251
3252hpux10.20* | hpux11*)
3253  lt_cv_file_magic_cmd=/usr/bin/file
3254  case $host_cpu in
3255  ia64*)
3256    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3257    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3258    ;;
3259  hppa*64*)
3260    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3261    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3262    ;;
3263  *)
3264    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3265    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3266    ;;
3267  esac
3268  ;;
3269
3270interix[3-9]*)
3271  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3272  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3273  ;;
3274
3275irix5* | irix6* | nonstopux*)
3276  case $LD in
3277  *-32|*"-32 ") libmagic=32-bit;;
3278  *-n32|*"-n32 ") libmagic=N32;;
3279  *-64|*"-64 ") libmagic=64-bit;;
3280  *) libmagic=never-match;;
3281  esac
3282  lt_cv_deplibs_check_method=pass_all
3283  ;;
3284
3285# This must be Linux ELF.
3286linux* | k*bsd*-gnu)
3287  lt_cv_deplibs_check_method=pass_all
3288  ;;
3289
3290netbsd*)
3291  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3292    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3293  else
3294    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3295  fi
3296  ;;
3297
3298newos6*)
3299  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3300  lt_cv_file_magic_cmd=/usr/bin/file
3301  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3302  ;;
3303
3304*nto* | *qnx*)
3305  lt_cv_deplibs_check_method=pass_all
3306  ;;
3307
3308openbsd*)
3309  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3310    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3311  else
3312    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3313  fi
3314  ;;
3315
3316osf3* | osf4* | osf5*)
3317  lt_cv_deplibs_check_method=pass_all
3318  ;;
3319
3320rdos*)
3321  lt_cv_deplibs_check_method=pass_all
3322  ;;
3323
3324solaris*)
3325  lt_cv_deplibs_check_method=pass_all
3326  ;;
3327
3328sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3329  lt_cv_deplibs_check_method=pass_all
3330  ;;
3331
3332sysv4 | sysv4.3*)
3333  case $host_vendor in
3334  motorola)
3335    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]'
3336    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3337    ;;
3338  ncr)
3339    lt_cv_deplibs_check_method=pass_all
3340    ;;
3341  sequent)
3342    lt_cv_file_magic_cmd='/bin/file'
3343    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3344    ;;
3345  sni)
3346    lt_cv_file_magic_cmd='/bin/file'
3347    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3348    lt_cv_file_magic_test_file=/lib/libc.so
3349    ;;
3350  siemens)
3351    lt_cv_deplibs_check_method=pass_all
3352    ;;
3353  pc)
3354    lt_cv_deplibs_check_method=pass_all
3355    ;;
3356  esac
3357  ;;
3358
3359tpf*)
3360  lt_cv_deplibs_check_method=pass_all
3361  ;;
3362esac
3363
3364fi
3365echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3366echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3367file_magic_cmd=$lt_cv_file_magic_cmd
3368deplibs_check_method=$lt_cv_deplibs_check_method
3369test -z "$deplibs_check_method" && deplibs_check_method=unknown
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382if test -n "$ac_tool_prefix"; then
3383  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3384set dummy ${ac_tool_prefix}ar; ac_word=$2
3385echo "$as_me:$LINENO: checking for $ac_word" >&5
3386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3387if test "${ac_cv_prog_AR+set}" = set; then
3388  echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
3390  if test -n "$AR"; then
3391  ac_cv_prog_AR="$AR" # Let the user override the test.
3392else
3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396  IFS=$as_save_IFS
3397  test -z "$as_dir" && as_dir=.
3398  for ac_exec_ext in '' $ac_executable_extensions; do
3399  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400    ac_cv_prog_AR="${ac_tool_prefix}ar"
3401    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402    break 2
3403  fi
3404done
3405done
3406
3407fi
3408fi
3409AR=$ac_cv_prog_AR
3410if test -n "$AR"; then
3411  echo "$as_me:$LINENO: result: $AR" >&5
3412echo "${ECHO_T}$AR" >&6
3413else
3414  echo "$as_me:$LINENO: result: no" >&5
3415echo "${ECHO_T}no" >&6
3416fi
3417
3418fi
3419if test -z "$ac_cv_prog_AR"; then
3420  ac_ct_AR=$AR
3421  # Extract the first word of "ar", so it can be a program name with args.
3422set dummy ar; ac_word=$2
3423echo "$as_me:$LINENO: checking for $ac_word" >&5
3424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3426  echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428  if test -n "$ac_ct_AR"; then
3429  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434  IFS=$as_save_IFS
3435  test -z "$as_dir" && as_dir=.
3436  for ac_exec_ext in '' $ac_executable_extensions; do
3437  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438    ac_cv_prog_ac_ct_AR="ar"
3439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440    break 2
3441  fi
3442done
3443done
3444
3445  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
3446fi
3447fi
3448ac_ct_AR=$ac_cv_prog_ac_ct_AR
3449if test -n "$ac_ct_AR"; then
3450  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3451echo "${ECHO_T}$ac_ct_AR" >&6
3452else
3453  echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6
3455fi
3456
3457  AR=$ac_ct_AR
3458else
3459  AR="$ac_cv_prog_AR"
3460fi
3461
3462test -z "$AR" && AR=ar
3463test -z "$AR_FLAGS" && AR_FLAGS=cru
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475if test -n "$ac_tool_prefix"; then
3476  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3477set dummy ${ac_tool_prefix}strip; ac_word=$2
3478echo "$as_me:$LINENO: checking for $ac_word" >&5
3479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3480if test "${ac_cv_prog_STRIP+set}" = set; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483  if test -n "$STRIP"; then
3484  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3485else
3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH
3488do
3489  IFS=$as_save_IFS
3490  test -z "$as_dir" && as_dir=.
3491  for ac_exec_ext in '' $ac_executable_extensions; do
3492  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495    break 2
3496  fi
3497done
3498done
3499
3500fi
3501fi
3502STRIP=$ac_cv_prog_STRIP
3503if test -n "$STRIP"; then
3504  echo "$as_me:$LINENO: result: $STRIP" >&5
3505echo "${ECHO_T}$STRIP" >&6
3506else
3507  echo "$as_me:$LINENO: result: no" >&5
3508echo "${ECHO_T}no" >&6
3509fi
3510
3511fi
3512if test -z "$ac_cv_prog_STRIP"; then
3513  ac_ct_STRIP=$STRIP
3514  # Extract the first word of "strip", so it can be a program name with args.
3515set dummy strip; ac_word=$2
3516echo "$as_me:$LINENO: checking for $ac_word" >&5
3517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3518if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3519  echo $ECHO_N "(cached) $ECHO_C" >&6
3520else
3521  if test -n "$ac_ct_STRIP"; then
3522  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3523else
3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527  IFS=$as_save_IFS
3528  test -z "$as_dir" && as_dir=.
3529  for ac_exec_ext in '' $ac_executable_extensions; do
3530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531    ac_cv_prog_ac_ct_STRIP="strip"
3532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3533    break 2
3534  fi
3535done
3536done
3537
3538  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3539fi
3540fi
3541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3542if test -n "$ac_ct_STRIP"; then
3543  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3544echo "${ECHO_T}$ac_ct_STRIP" >&6
3545else
3546  echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
3548fi
3549
3550  STRIP=$ac_ct_STRIP
3551else
3552  STRIP="$ac_cv_prog_STRIP"
3553fi
3554
3555test -z "$STRIP" && STRIP=:
3556
3557
3558
3559
3560
3561
3562if test -n "$ac_tool_prefix"; then
3563  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3564set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3565echo "$as_me:$LINENO: checking for $ac_word" >&5
3566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3567if test "${ac_cv_prog_RANLIB+set}" = set; then
3568  echo $ECHO_N "(cached) $ECHO_C" >&6
3569else
3570  if test -n "$RANLIB"; then
3571  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3572else
3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576  IFS=$as_save_IFS
3577  test -z "$as_dir" && as_dir=.
3578  for ac_exec_ext in '' $ac_executable_extensions; do
3579  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3581    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3582    break 2
3583  fi
3584done
3585done
3586
3587fi
3588fi
3589RANLIB=$ac_cv_prog_RANLIB
3590if test -n "$RANLIB"; then
3591  echo "$as_me:$LINENO: result: $RANLIB" >&5
3592echo "${ECHO_T}$RANLIB" >&6
3593else
3594  echo "$as_me:$LINENO: result: no" >&5
3595echo "${ECHO_T}no" >&6
3596fi
3597
3598fi
3599if test -z "$ac_cv_prog_RANLIB"; then
3600  ac_ct_RANLIB=$RANLIB
3601  # Extract the first word of "ranlib", so it can be a program name with args.
3602set dummy ranlib; ac_word=$2
3603echo "$as_me:$LINENO: checking for $ac_word" >&5
3604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3606  echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608  if test -n "$ac_ct_RANLIB"; then
3609  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3610else
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614  IFS=$as_save_IFS
3615  test -z "$as_dir" && as_dir=.
3616  for ac_exec_ext in '' $ac_executable_extensions; do
3617  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618    ac_cv_prog_ac_ct_RANLIB="ranlib"
3619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620    break 2
3621  fi
3622done
3623done
3624
3625  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3626fi
3627fi
3628ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3629if test -n "$ac_ct_RANLIB"; then
3630  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3631echo "${ECHO_T}$ac_ct_RANLIB" >&6
3632else
3633  echo "$as_me:$LINENO: result: no" >&5
3634echo "${ECHO_T}no" >&6
3635fi
3636
3637  RANLIB=$ac_ct_RANLIB
3638else
3639  RANLIB="$ac_cv_prog_RANLIB"
3640fi
3641
3642test -z "$RANLIB" && RANLIB=:
3643
3644
3645
3646
3647
3648
3649# Determine commands to create old-style static archives.
3650old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
3651old_postinstall_cmds='chmod 644 $oldlib'
3652old_postuninstall_cmds=
3653
3654if test -n "$RANLIB"; then
3655  case $host_os in
3656  openbsd*)
3657    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
3658    ;;
3659  *)
3660    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
3661    ;;
3662  esac
3663  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3664fi
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699# If no C compiler was specified, use CC.
3700LTCC=${LTCC-"$CC"}
3701
3702# If no C compiler flags were specified, use CFLAGS.
3703LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3704
3705# Allow CC to be a program name with arguments.
3706compiler=$CC
3707
3708
3709# Check for command to grab the raw symbol name followed by C symbol from nm.
3710echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
3711echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
3712if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3713  echo $ECHO_N "(cached) $ECHO_C" >&6
3714else
3715
3716# These are sane defaults that work on at least a few old systems.
3717# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3718
3719# Character class describing NM global symbol codes.
3720symcode='[BCDEGRST]'
3721
3722# Regexp to match symbols that can be accessed directly from C.
3723sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3724
3725# Define system-specific variables.
3726case $host_os in
3727aix*)
3728  symcode='[BCDT]'
3729  ;;
3730cygwin* | mingw* | pw32*)
3731  symcode='[ABCDGISTW]'
3732  ;;
3733hpux*)
3734  if test "$host_cpu" = ia64; then
3735    symcode='[ABCDEGRST]'
3736  fi
3737  ;;
3738irix* | nonstopux*)
3739  symcode='[BCDEGRST]'
3740  ;;
3741osf*)
3742  symcode='[BCDEGQRST]'
3743  ;;
3744solaris*)
3745  symcode='[BDRT]'
3746  ;;
3747sco3.2v5*)
3748  symcode='[DT]'
3749  ;;
3750sysv4.2uw2*)
3751  symcode='[DT]'
3752  ;;
3753sysv5* | sco5v6* | unixware* | OpenUNIX*)
3754  symcode='[ABDT]'
3755  ;;
3756sysv4)
3757  symcode='[DFNSTU]'
3758  ;;
3759esac
3760
3761# If we're using GNU nm, then use its standard symbol codes.
3762case `$NM -V 2>&1` in
3763*GNU* | *'with BFD'*)
3764  symcode='[ABCDGIRSTW]' ;;
3765esac
3766
3767# Transform an extracted symbol line into a proper C declaration.
3768# Some systems (esp. on ia64) link data and code symbols differently,
3769# so use this general approach.
3770lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3771
3772# Transform an extracted symbol line into symbol name and symbol address
3773lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
3774lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
3775
3776# Handle CRLF in mingw tool chain
3777opt_cr=
3778case $build_os in
3779mingw*)
3780  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3781  ;;
3782esac
3783
3784# Try without a prefix underscore, then with it.
3785for ac_symprfx in "" "_"; do
3786
3787  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3788  symxfrm="\\1 $ac_symprfx\\2 \\2"
3789
3790  # Write the raw and C identifiers.
3791  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3792    # Fake it for dumpbin and say T for any non-static function
3793    # and D for any global variable.
3794    # Also find C++ and __fastcall symbols from MSVC++,
3795    # which start with @ or ?.
3796    lt_cv_sys_global_symbol_pipe="$AWK '"\
3797"     {last_section=section; section=\$ 3};"\
3798"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3799"     \$ 0!~/External *\|/{next};"\
3800"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3801"     {if(hide[section]) next};"\
3802"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3803"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3804"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
3805"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3806"     ' prfx=^$ac_symprfx"
3807  else
3808    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3809  fi
3810
3811  # Check to see that the pipe works correctly.
3812  pipe_works=no
3813
3814  rm -f conftest*
3815  cat > conftest.$ac_ext <<_LT_EOF
3816#ifdef __cplusplus
3817extern "C" {
3818#endif
3819char nm_test_var;
3820void nm_test_func(void);
3821void nm_test_func(void){}
3822#ifdef __cplusplus
3823}
3824#endif
3825int main(){nm_test_var='a';nm_test_func();return(0);}
3826_LT_EOF
3827
3828  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829  (eval $ac_compile) 2>&5
3830  ac_status=$?
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); }; then
3833    # Now try to grab the symbols.
3834    nlist=conftest.nm
3835    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3836  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); } && test -s "$nlist"; then
3840      # Try sorting and uniquifying the output.
3841      if sort "$nlist" | uniq > "$nlist"T; then
3842	mv -f "$nlist"T "$nlist"
3843      else
3844	rm -f "$nlist"T
3845      fi
3846
3847      # Make sure that we snagged all the symbols we need.
3848      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3849	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3850	  cat <<_LT_EOF > conftest.$ac_ext
3851#ifdef __cplusplus
3852extern "C" {
3853#endif
3854
3855_LT_EOF
3856	  # Now generate the symbol file.
3857	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3858
3859	  cat <<_LT_EOF >> conftest.$ac_ext
3860
3861/* The mapping between symbol names and symbols.  */
3862const struct {
3863  const char *name;
3864  void       *address;
3865}
3866lt__PROGRAM__LTX_preloaded_symbols[] =
3867{
3868  { "@PROGRAM@", (void *) 0 },
3869_LT_EOF
3870	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3871	  cat <<\_LT_EOF >> conftest.$ac_ext
3872  {0, (void *) 0}
3873};
3874
3875/* This works around a problem in FreeBSD linker */
3876#ifdef FREEBSD_WORKAROUND
3877static const void *lt_preloaded_setup() {
3878  return lt__PROGRAM__LTX_preloaded_symbols;
3879}
3880#endif
3881
3882#ifdef __cplusplus
3883}
3884#endif
3885_LT_EOF
3886	  # Now try linking the two files.
3887	  mv conftest.$ac_objext conftstm.$ac_objext
3888	  lt_save_LIBS="$LIBS"
3889	  lt_save_CFLAGS="$CFLAGS"
3890	  LIBS="conftstm.$ac_objext"
3891	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
3892	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893  (eval $ac_link) 2>&5
3894  ac_status=$?
3895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896  (exit $ac_status); } && test -s conftest${ac_exeext}; then
3897	    pipe_works=yes
3898	  fi
3899	  LIBS="$lt_save_LIBS"
3900	  CFLAGS="$lt_save_CFLAGS"
3901	else
3902	  echo "cannot find nm_test_func in $nlist" >&5
3903	fi
3904      else
3905	echo "cannot find nm_test_var in $nlist" >&5
3906      fi
3907    else
3908      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3909    fi
3910  else
3911    echo "$progname: failed program was:" >&5
3912    cat conftest.$ac_ext >&5
3913  fi
3914  rm -rf conftest* conftst*
3915
3916  # Do not use the global_symbol_pipe unless it works.
3917  if test "$pipe_works" = yes; then
3918    break
3919  else
3920    lt_cv_sys_global_symbol_pipe=
3921  fi
3922done
3923
3924fi
3925
3926if test -z "$lt_cv_sys_global_symbol_pipe"; then
3927  lt_cv_sys_global_symbol_to_cdecl=
3928fi
3929if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3930  echo "$as_me:$LINENO: result: failed" >&5
3931echo "${ECHO_T}failed" >&6
3932else
3933  echo "$as_me:$LINENO: result: ok" >&5
3934echo "${ECHO_T}ok" >&6
3935fi
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3960if test "${enable_libtool_lock+set}" = set; then
3961  enableval="$enable_libtool_lock"
3962
3963fi;
3964test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3965
3966# Some flags need to be propagated to the compiler or linker for good
3967# libtool support.
3968case $host in
3969ia64-*-hpux*)
3970  # Find out which ABI we are using.
3971  echo 'int i;' > conftest.$ac_ext
3972  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973  (eval $ac_compile) 2>&5
3974  ac_status=$?
3975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976  (exit $ac_status); }; then
3977    case `/usr/bin/file conftest.$ac_objext` in
3978      *ELF-32*)
3979	HPUX_IA64_MODE="32"
3980	;;
3981      *ELF-64*)
3982	HPUX_IA64_MODE="64"
3983	;;
3984    esac
3985  fi
3986  rm -rf conftest*
3987  ;;
3988*-*-irix6*)
3989  # Find out which ABI we are using.
3990  echo '#line 3996 "configure"' > conftest.$ac_ext
3991  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3992  (eval $ac_compile) 2>&5
3993  ac_status=$?
3994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995  (exit $ac_status); }; then
3996    if test "$lt_cv_prog_gnu_ld" = yes; then
3997      case `/usr/bin/file conftest.$ac_objext` in
3998	*32-bit*)
3999	  LD="${LD-ld} -melf32bsmip"
4000	  ;;
4001	*N32*)
4002	  LD="${LD-ld} -melf32bmipn32"
4003	  ;;
4004	*64-bit*)
4005	  LD="${LD-ld} -melf64bmip"
4006	;;
4007      esac
4008    else
4009      case `/usr/bin/file conftest.$ac_objext` in
4010	*32-bit*)
4011	  LD="${LD-ld} -32"
4012	  ;;
4013	*N32*)
4014	  LD="${LD-ld} -n32"
4015	  ;;
4016	*64-bit*)
4017	  LD="${LD-ld} -64"
4018	  ;;
4019      esac
4020    fi
4021  fi
4022  rm -rf conftest*
4023  ;;
4024
4025x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4026s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4027  # Find out which ABI we are using.
4028  echo 'int i;' > conftest.$ac_ext
4029  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030  (eval $ac_compile) 2>&5
4031  ac_status=$?
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); }; then
4034    case `/usr/bin/file conftest.o` in
4035      *32-bit*)
4036	case $host in
4037	  x86_64-*kfreebsd*-gnu)
4038	    LD="${LD-ld} -m elf_i386_fbsd"
4039	    ;;
4040	  x86_64-*linux*)
4041	    LD="${LD-ld} -m elf_i386"
4042	    ;;
4043	  ppc64-*linux*|powerpc64-*linux*)
4044	    LD="${LD-ld} -m elf32ppclinux"
4045	    ;;
4046	  s390x-*linux*)
4047	    LD="${LD-ld} -m elf_s390"
4048	    ;;
4049	  sparc64-*linux*)
4050	    LD="${LD-ld} -m elf32_sparc"
4051	    ;;
4052	esac
4053	;;
4054      *64-bit*)
4055	case $host in
4056	  x86_64-*kfreebsd*-gnu)
4057	    LD="${LD-ld} -m elf_x86_64_fbsd"
4058	    ;;
4059	  x86_64-*linux*)
4060	    LD="${LD-ld} -m elf_x86_64"
4061	    ;;
4062	  ppc*-*linux*|powerpc*-*linux*)
4063	    LD="${LD-ld} -m elf64ppc"
4064	    ;;
4065	  s390*-*linux*|s390*-*tpf*)
4066	    LD="${LD-ld} -m elf64_s390"
4067	    ;;
4068	  sparc*-*linux*)
4069	    LD="${LD-ld} -m elf64_sparc"
4070	    ;;
4071	esac
4072	;;
4073    esac
4074  fi
4075  rm -rf conftest*
4076  ;;
4077
4078*-*-sco3.2v5*)
4079  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4080  SAVE_CFLAGS="$CFLAGS"
4081  CFLAGS="$CFLAGS -belf"
4082  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4083echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4084if test "${lt_cv_cc_needs_belf+set}" = set; then
4085  echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087  ac_ext=c
4088ac_cpp='$CPP $CPPFLAGS'
4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092
4093     cat >conftest.$ac_ext <<_ACEOF
4094/* confdefs.h.  */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h.  */
4099
4100int
4101main ()
4102{
4103
4104  ;
4105  return 0;
4106}
4107_ACEOF
4108rm -f conftest.$ac_objext conftest$ac_exeext
4109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4110  (eval $ac_link) 2>conftest.er1
4111  ac_status=$?
4112  grep -v '^ *+' conftest.er1 >conftest.err
4113  rm -f conftest.er1
4114  cat conftest.err >&5
4115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116  (exit $ac_status); } &&
4117	 { ac_try='test -z "$ac_c_werror_flag"
4118			 || test ! -s conftest.err'
4119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120  (eval $ac_try) 2>&5
4121  ac_status=$?
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); }; } &&
4124	 { ac_try='test -s conftest$ac_exeext'
4125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126  (eval $ac_try) 2>&5
4127  ac_status=$?
4128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129  (exit $ac_status); }; }; then
4130  lt_cv_cc_needs_belf=yes
4131else
4132  echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135lt_cv_cc_needs_belf=no
4136fi
4137rm -f conftest.err conftest.$ac_objext \
4138      conftest$ac_exeext conftest.$ac_ext
4139     ac_ext=c
4140ac_cpp='$CPP $CPPFLAGS'
4141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144
4145fi
4146echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4147echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4148  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4149    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4150    CFLAGS="$SAVE_CFLAGS"
4151  fi
4152  ;;
4153sparc*-*solaris*)
4154  # Find out which ABI we are using.
4155  echo 'int i;' > conftest.$ac_ext
4156  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157  (eval $ac_compile) 2>&5
4158  ac_status=$?
4159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160  (exit $ac_status); }; then
4161    case `/usr/bin/file conftest.o` in
4162    *64-bit*)
4163      case $lt_cv_prog_gnu_ld in
4164      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4165      *)
4166	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4167	  LD="${LD-ld} -64"
4168	fi
4169	;;
4170      esac
4171      ;;
4172    esac
4173  fi
4174  rm -rf conftest*
4175  ;;
4176esac
4177
4178need_locks="$enable_libtool_lock"
4179
4180
4181  case $host_os in
4182    rhapsody* | darwin*)
4183    if test -n "$ac_tool_prefix"; then
4184  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
4185set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
4186echo "$as_me:$LINENO: checking for $ac_word" >&5
4187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
4189  echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191  if test -n "$DSYMUTIL"; then
4192  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
4193else
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197  IFS=$as_save_IFS
4198  test -z "$as_dir" && as_dir=.
4199  for ac_exec_ext in '' $ac_executable_extensions; do
4200  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
4202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203    break 2
4204  fi
4205done
4206done
4207
4208fi
4209fi
4210DSYMUTIL=$ac_cv_prog_DSYMUTIL
4211if test -n "$DSYMUTIL"; then
4212  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
4213echo "${ECHO_T}$DSYMUTIL" >&6
4214else
4215  echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
4217fi
4218
4219fi
4220if test -z "$ac_cv_prog_DSYMUTIL"; then
4221  ac_ct_DSYMUTIL=$DSYMUTIL
4222  # Extract the first word of "dsymutil", so it can be a program name with args.
4223set dummy dsymutil; ac_word=$2
4224echo "$as_me:$LINENO: checking for $ac_word" >&5
4225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4226if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
4227  echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229  if test -n "$ac_ct_DSYMUTIL"; then
4230  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
4231else
4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235  IFS=$as_save_IFS
4236  test -z "$as_dir" && as_dir=.
4237  for ac_exec_ext in '' $ac_executable_extensions; do
4238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
4240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241    break 2
4242  fi
4243done
4244done
4245
4246  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
4247fi
4248fi
4249ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
4250if test -n "$ac_ct_DSYMUTIL"; then
4251  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
4252echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
4253else
4254  echo "$as_me:$LINENO: result: no" >&5
4255echo "${ECHO_T}no" >&6
4256fi
4257
4258  DSYMUTIL=$ac_ct_DSYMUTIL
4259else
4260  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
4261fi
4262
4263    if test -n "$ac_tool_prefix"; then
4264  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
4265set dummy ${ac_tool_prefix}nmedit; ac_word=$2
4266echo "$as_me:$LINENO: checking for $ac_word" >&5
4267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4268if test "${ac_cv_prog_NMEDIT+set}" = set; then
4269  echo $ECHO_N "(cached) $ECHO_C" >&6
4270else
4271  if test -n "$NMEDIT"; then
4272  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277  IFS=$as_save_IFS
4278  test -z "$as_dir" && as_dir=.
4279  for ac_exec_ext in '' $ac_executable_extensions; do
4280  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
4282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283    break 2
4284  fi
4285done
4286done
4287
4288fi
4289fi
4290NMEDIT=$ac_cv_prog_NMEDIT
4291if test -n "$NMEDIT"; then
4292  echo "$as_me:$LINENO: result: $NMEDIT" >&5
4293echo "${ECHO_T}$NMEDIT" >&6
4294else
4295  echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297fi
4298
4299fi
4300if test -z "$ac_cv_prog_NMEDIT"; then
4301  ac_ct_NMEDIT=$NMEDIT
4302  # Extract the first word of "nmedit", so it can be a program name with args.
4303set dummy nmedit; ac_word=$2
4304echo "$as_me:$LINENO: checking for $ac_word" >&5
4305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4306if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
4307  echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309  if test -n "$ac_ct_NMEDIT"; then
4310  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315  IFS=$as_save_IFS
4316  test -z "$as_dir" && as_dir=.
4317  for ac_exec_ext in '' $ac_executable_extensions; do
4318  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319    ac_cv_prog_ac_ct_NMEDIT="nmedit"
4320    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321    break 2
4322  fi
4323done
4324done
4325
4326  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
4327fi
4328fi
4329ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
4330if test -n "$ac_ct_NMEDIT"; then
4331  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
4332echo "${ECHO_T}$ac_ct_NMEDIT" >&6
4333else
4334  echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
4336fi
4337
4338  NMEDIT=$ac_ct_NMEDIT
4339else
4340  NMEDIT="$ac_cv_prog_NMEDIT"
4341fi
4342
4343    if test -n "$ac_tool_prefix"; then
4344  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
4345set dummy ${ac_tool_prefix}lipo; ac_word=$2
4346echo "$as_me:$LINENO: checking for $ac_word" >&5
4347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4348if test "${ac_cv_prog_LIPO+set}" = set; then
4349  echo $ECHO_N "(cached) $ECHO_C" >&6
4350else
4351  if test -n "$LIPO"; then
4352  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4353else
4354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH
4356do
4357  IFS=$as_save_IFS
4358  test -z "$as_dir" && as_dir=.
4359  for ac_exec_ext in '' $ac_executable_extensions; do
4360  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
4362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363    break 2
4364  fi
4365done
4366done
4367
4368fi
4369fi
4370LIPO=$ac_cv_prog_LIPO
4371if test -n "$LIPO"; then
4372  echo "$as_me:$LINENO: result: $LIPO" >&5
4373echo "${ECHO_T}$LIPO" >&6
4374else
4375  echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
4377fi
4378
4379fi
4380if test -z "$ac_cv_prog_LIPO"; then
4381  ac_ct_LIPO=$LIPO
4382  # Extract the first word of "lipo", so it can be a program name with args.
4383set dummy lipo; ac_word=$2
4384echo "$as_me:$LINENO: checking for $ac_word" >&5
4385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
4387  echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389  if test -n "$ac_ct_LIPO"; then
4390  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395  IFS=$as_save_IFS
4396  test -z "$as_dir" && as_dir=.
4397  for ac_exec_ext in '' $ac_executable_extensions; do
4398  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399    ac_cv_prog_ac_ct_LIPO="lipo"
4400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401    break 2
4402  fi
4403done
4404done
4405
4406  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
4407fi
4408fi
4409ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
4410if test -n "$ac_ct_LIPO"; then
4411  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
4412echo "${ECHO_T}$ac_ct_LIPO" >&6
4413else
4414  echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6
4416fi
4417
4418  LIPO=$ac_ct_LIPO
4419else
4420  LIPO="$ac_cv_prog_LIPO"
4421fi
4422
4423    if test -n "$ac_tool_prefix"; then
4424  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
4425set dummy ${ac_tool_prefix}otool; ac_word=$2
4426echo "$as_me:$LINENO: checking for $ac_word" >&5
4427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4428if test "${ac_cv_prog_OTOOL+set}" = set; then
4429  echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431  if test -n "$OTOOL"; then
4432  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
4433else
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437  IFS=$as_save_IFS
4438  test -z "$as_dir" && as_dir=.
4439  for ac_exec_ext in '' $ac_executable_extensions; do
4440  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
4442    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443    break 2
4444  fi
4445done
4446done
4447
4448fi
4449fi
4450OTOOL=$ac_cv_prog_OTOOL
4451if test -n "$OTOOL"; then
4452  echo "$as_me:$LINENO: result: $OTOOL" >&5
4453echo "${ECHO_T}$OTOOL" >&6
4454else
4455  echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6
4457fi
4458
4459fi
4460if test -z "$ac_cv_prog_OTOOL"; then
4461  ac_ct_OTOOL=$OTOOL
4462  # Extract the first word of "otool", so it can be a program name with args.
4463set dummy otool; ac_word=$2
4464echo "$as_me:$LINENO: checking for $ac_word" >&5
4465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
4467  echo $ECHO_N "(cached) $ECHO_C" >&6
4468else
4469  if test -n "$ac_ct_OTOOL"; then
4470  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
4471else
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475  IFS=$as_save_IFS
4476  test -z "$as_dir" && as_dir=.
4477  for ac_exec_ext in '' $ac_executable_extensions; do
4478  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479    ac_cv_prog_ac_ct_OTOOL="otool"
4480    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481    break 2
4482  fi
4483done
4484done
4485
4486  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
4487fi
4488fi
4489ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
4490if test -n "$ac_ct_OTOOL"; then
4491  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
4492echo "${ECHO_T}$ac_ct_OTOOL" >&6
4493else
4494  echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6
4496fi
4497
4498  OTOOL=$ac_ct_OTOOL
4499else
4500  OTOOL="$ac_cv_prog_OTOOL"
4501fi
4502
4503    if test -n "$ac_tool_prefix"; then
4504  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
4505set dummy ${ac_tool_prefix}otool64; ac_word=$2
4506echo "$as_me:$LINENO: checking for $ac_word" >&5
4507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4508if test "${ac_cv_prog_OTOOL64+set}" = set; then
4509  echo $ECHO_N "(cached) $ECHO_C" >&6
4510else
4511  if test -n "$OTOOL64"; then
4512  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
4513else
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517  IFS=$as_save_IFS
4518  test -z "$as_dir" && as_dir=.
4519  for ac_exec_ext in '' $ac_executable_extensions; do
4520  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
4522    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523    break 2
4524  fi
4525done
4526done
4527
4528fi
4529fi
4530OTOOL64=$ac_cv_prog_OTOOL64
4531if test -n "$OTOOL64"; then
4532  echo "$as_me:$LINENO: result: $OTOOL64" >&5
4533echo "${ECHO_T}$OTOOL64" >&6
4534else
4535  echo "$as_me:$LINENO: result: no" >&5
4536echo "${ECHO_T}no" >&6
4537fi
4538
4539fi
4540if test -z "$ac_cv_prog_OTOOL64"; then
4541  ac_ct_OTOOL64=$OTOOL64
4542  # Extract the first word of "otool64", so it can be a program name with args.
4543set dummy otool64; ac_word=$2
4544echo "$as_me:$LINENO: checking for $ac_word" >&5
4545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
4547  echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549  if test -n "$ac_ct_OTOOL64"; then
4550  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555  IFS=$as_save_IFS
4556  test -z "$as_dir" && as_dir=.
4557  for ac_exec_ext in '' $ac_executable_extensions; do
4558  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559    ac_cv_prog_ac_ct_OTOOL64="otool64"
4560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561    break 2
4562  fi
4563done
4564done
4565
4566  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
4567fi
4568fi
4569ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
4570if test -n "$ac_ct_OTOOL64"; then
4571  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
4572echo "${ECHO_T}$ac_ct_OTOOL64" >&6
4573else
4574  echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6
4576fi
4577
4578  OTOOL64=$ac_ct_OTOOL64
4579else
4580  OTOOL64="$ac_cv_prog_OTOOL64"
4581fi
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
4610echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
4611if test "${lt_cv_apple_cc_single_mod+set}" = set; then
4612  echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
4614  lt_cv_apple_cc_single_mod=no
4615      if test -z "${LT_MULTI_MODULE}"; then
4616	# By default we will add the -single_module flag. You can override
4617	# by either setting the environment variable LT_MULTI_MODULE
4618	# non-empty at configure time, or by adding -multi_module to the
4619	# link flags.
4620	rm -rf libconftest.dylib*
4621	echo "int foo(void){return 1;}" > conftest.c
4622	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
4623-dynamiclib -Wl,-single_module conftest.c" >&5
4624	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
4625	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
4626        _lt_result=$?
4627	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
4628	  lt_cv_apple_cc_single_mod=yes
4629	else
4630	  cat conftest.err >&5
4631	fi
4632	rm -rf libconftest.dylib*
4633	rm -f conftest.*
4634      fi
4635fi
4636echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
4637echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
4638    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
4639echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
4640if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
4641  echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643  lt_cv_ld_exported_symbols_list=no
4644      save_LDFLAGS=$LDFLAGS
4645      echo "_main" > conftest.sym
4646      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
4647      cat >conftest.$ac_ext <<_ACEOF
4648/* confdefs.h.  */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h.  */
4653
4654int
4655main ()
4656{
4657
4658  ;
4659  return 0;
4660}
4661_ACEOF
4662rm -f conftest.$ac_objext conftest$ac_exeext
4663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664  (eval $ac_link) 2>conftest.er1
4665  ac_status=$?
4666  grep -v '^ *+' conftest.er1 >conftest.err
4667  rm -f conftest.er1
4668  cat conftest.err >&5
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); } &&
4671	 { ac_try='test -z "$ac_c_werror_flag"
4672			 || test ! -s conftest.err'
4673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674  (eval $ac_try) 2>&5
4675  ac_status=$?
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); }; } &&
4678	 { ac_try='test -s conftest$ac_exeext'
4679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680  (eval $ac_try) 2>&5
4681  ac_status=$?
4682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683  (exit $ac_status); }; }; then
4684  lt_cv_ld_exported_symbols_list=yes
4685else
4686  echo "$as_me: failed program was:" >&5
4687sed 's/^/| /' conftest.$ac_ext >&5
4688
4689lt_cv_ld_exported_symbols_list=no
4690fi
4691rm -f conftest.err conftest.$ac_objext \
4692      conftest$ac_exeext conftest.$ac_ext
4693	LDFLAGS="$save_LDFLAGS"
4694
4695fi
4696echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
4697echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
4698    case $host_os in
4699    rhapsody* | darwin1.[012])
4700      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
4701    darwin1.*)
4702      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
4703    darwin*) # darwin 5.x on
4704      # if running on 10.5 or later, the deployment target defaults
4705      # to the OS version, if on x86, and 10.4, the deployment
4706      # target defaults to 10.4. Don't you love it?
4707      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
4708	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
4709	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
4710	10.[012]*)
4711	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
4712	10.*)
4713	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
4714      esac
4715    ;;
4716  esac
4717    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
4718      _lt_dar_single_mod='$single_module'
4719    fi
4720    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
4721      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
4722    else
4723      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
4724    fi
4725    if test "$DSYMUTIL" != ":"; then
4726      _lt_dsymutil='~$DSYMUTIL $lib || :'
4727    else
4728      _lt_dsymutil=
4729    fi
4730    ;;
4731  esac
4732
4733ac_ext=c
4734ac_cpp='$CPP $CPPFLAGS'
4735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4739echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4740# On Suns, sometimes $CPP names a directory.
4741if test -n "$CPP" && test -d "$CPP"; then
4742  CPP=
4743fi
4744if test -z "$CPP"; then
4745  if test "${ac_cv_prog_CPP+set}" = set; then
4746  echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748      # Double quotes because CPP needs to be expanded
4749    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4750    do
4751      ac_preproc_ok=false
4752for ac_c_preproc_warn_flag in '' yes
4753do
4754  # Use a header file that comes with gcc, so configuring glibc
4755  # with a fresh cross-compiler works.
4756  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4757  # <limits.h> exists even on freestanding compilers.
4758  # On the NeXT, cc -E runs the code through the compiler's parser,
4759  # not just through cpp. "Syntax error" is here to catch this case.
4760  cat >conftest.$ac_ext <<_ACEOF
4761/* confdefs.h.  */
4762_ACEOF
4763cat confdefs.h >>conftest.$ac_ext
4764cat >>conftest.$ac_ext <<_ACEOF
4765/* end confdefs.h.  */
4766#ifdef __STDC__
4767# include <limits.h>
4768#else
4769# include <assert.h>
4770#endif
4771		     Syntax error
4772_ACEOF
4773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4774  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4775  ac_status=$?
4776  grep -v '^ *+' conftest.er1 >conftest.err
4777  rm -f conftest.er1
4778  cat conftest.err >&5
4779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780  (exit $ac_status); } >/dev/null; then
4781  if test -s conftest.err; then
4782    ac_cpp_err=$ac_c_preproc_warn_flag
4783    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4784  else
4785    ac_cpp_err=
4786  fi
4787else
4788  ac_cpp_err=yes
4789fi
4790if test -z "$ac_cpp_err"; then
4791  :
4792else
4793  echo "$as_me: failed program was:" >&5
4794sed 's/^/| /' conftest.$ac_ext >&5
4795
4796  # Broken: fails on valid input.
4797continue
4798fi
4799rm -f conftest.err conftest.$ac_ext
4800
4801  # OK, works on sane cases.  Now check whether non-existent headers
4802  # can be detected and how.
4803  cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h.  */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h.  */
4809#include <ac_nonexistent.h>
4810_ACEOF
4811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4812  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4813  ac_status=$?
4814  grep -v '^ *+' conftest.er1 >conftest.err
4815  rm -f conftest.er1
4816  cat conftest.err >&5
4817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818  (exit $ac_status); } >/dev/null; then
4819  if test -s conftest.err; then
4820    ac_cpp_err=$ac_c_preproc_warn_flag
4821    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4822  else
4823    ac_cpp_err=
4824  fi
4825else
4826  ac_cpp_err=yes
4827fi
4828if test -z "$ac_cpp_err"; then
4829  # Broken: success on invalid input.
4830continue
4831else
4832  echo "$as_me: failed program was:" >&5
4833sed 's/^/| /' conftest.$ac_ext >&5
4834
4835  # Passes both tests.
4836ac_preproc_ok=:
4837break
4838fi
4839rm -f conftest.err conftest.$ac_ext
4840
4841done
4842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4843rm -f conftest.err conftest.$ac_ext
4844if $ac_preproc_ok; then
4845  break
4846fi
4847
4848    done
4849    ac_cv_prog_CPP=$CPP
4850
4851fi
4852  CPP=$ac_cv_prog_CPP
4853else
4854  ac_cv_prog_CPP=$CPP
4855fi
4856echo "$as_me:$LINENO: result: $CPP" >&5
4857echo "${ECHO_T}$CPP" >&6
4858ac_preproc_ok=false
4859for ac_c_preproc_warn_flag in '' yes
4860do
4861  # Use a header file that comes with gcc, so configuring glibc
4862  # with a fresh cross-compiler works.
4863  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4864  # <limits.h> exists even on freestanding compilers.
4865  # On the NeXT, cc -E runs the code through the compiler's parser,
4866  # not just through cpp. "Syntax error" is here to catch this case.
4867  cat >conftest.$ac_ext <<_ACEOF
4868/* confdefs.h.  */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h.  */
4873#ifdef __STDC__
4874# include <limits.h>
4875#else
4876# include <assert.h>
4877#endif
4878		     Syntax error
4879_ACEOF
4880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4881  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4882  ac_status=$?
4883  grep -v '^ *+' conftest.er1 >conftest.err
4884  rm -f conftest.er1
4885  cat conftest.err >&5
4886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887  (exit $ac_status); } >/dev/null; then
4888  if test -s conftest.err; then
4889    ac_cpp_err=$ac_c_preproc_warn_flag
4890    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4891  else
4892    ac_cpp_err=
4893  fi
4894else
4895  ac_cpp_err=yes
4896fi
4897if test -z "$ac_cpp_err"; then
4898  :
4899else
4900  echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903  # Broken: fails on valid input.
4904continue
4905fi
4906rm -f conftest.err conftest.$ac_ext
4907
4908  # OK, works on sane cases.  Now check whether non-existent headers
4909  # can be detected and how.
4910  cat >conftest.$ac_ext <<_ACEOF
4911/* confdefs.h.  */
4912_ACEOF
4913cat confdefs.h >>conftest.$ac_ext
4914cat >>conftest.$ac_ext <<_ACEOF
4915/* end confdefs.h.  */
4916#include <ac_nonexistent.h>
4917_ACEOF
4918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4919  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4920  ac_status=$?
4921  grep -v '^ *+' conftest.er1 >conftest.err
4922  rm -f conftest.er1
4923  cat conftest.err >&5
4924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925  (exit $ac_status); } >/dev/null; then
4926  if test -s conftest.err; then
4927    ac_cpp_err=$ac_c_preproc_warn_flag
4928    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4929  else
4930    ac_cpp_err=
4931  fi
4932else
4933  ac_cpp_err=yes
4934fi
4935if test -z "$ac_cpp_err"; then
4936  # Broken: success on invalid input.
4937continue
4938else
4939  echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
4942  # Passes both tests.
4943ac_preproc_ok=:
4944break
4945fi
4946rm -f conftest.err conftest.$ac_ext
4947
4948done
4949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4950rm -f conftest.err conftest.$ac_ext
4951if $ac_preproc_ok; then
4952  :
4953else
4954  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4955See \`config.log' for more details." >&5
4956echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4957See \`config.log' for more details." >&2;}
4958   { (exit 1); exit 1; }; }
4959fi
4960
4961ac_ext=c
4962ac_cpp='$CPP $CPPFLAGS'
4963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966
4967
4968echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4969echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4970if test "${ac_cv_header_stdc+set}" = set; then
4971  echo $ECHO_N "(cached) $ECHO_C" >&6
4972else
4973  cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h.  */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h.  */
4979#include <stdlib.h>
4980#include <stdarg.h>
4981#include <string.h>
4982#include <float.h>
4983
4984int
4985main ()
4986{
4987
4988  ;
4989  return 0;
4990}
4991_ACEOF
4992rm -f conftest.$ac_objext
4993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994  (eval $ac_compile) 2>conftest.er1
4995  ac_status=$?
4996  grep -v '^ *+' conftest.er1 >conftest.err
4997  rm -f conftest.er1
4998  cat conftest.err >&5
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); } &&
5001	 { ac_try='test -z "$ac_c_werror_flag"
5002			 || test ! -s conftest.err'
5003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004  (eval $ac_try) 2>&5
5005  ac_status=$?
5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007  (exit $ac_status); }; } &&
5008	 { ac_try='test -s conftest.$ac_objext'
5009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010  (eval $ac_try) 2>&5
5011  ac_status=$?
5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013  (exit $ac_status); }; }; then
5014  ac_cv_header_stdc=yes
5015else
5016  echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
5019ac_cv_header_stdc=no
5020fi
5021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022
5023if test $ac_cv_header_stdc = yes; then
5024  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5025  cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h.  */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h.  */
5031#include <string.h>
5032
5033_ACEOF
5034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5035  $EGREP "memchr" >/dev/null 2>&1; then
5036  :
5037else
5038  ac_cv_header_stdc=no
5039fi
5040rm -f conftest*
5041
5042fi
5043
5044if test $ac_cv_header_stdc = yes; then
5045  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5046  cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h.  */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h.  */
5052#include <stdlib.h>
5053
5054_ACEOF
5055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5056  $EGREP "free" >/dev/null 2>&1; then
5057  :
5058else
5059  ac_cv_header_stdc=no
5060fi
5061rm -f conftest*
5062
5063fi
5064
5065if test $ac_cv_header_stdc = yes; then
5066  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5067  if test "$cross_compiling" = yes; then
5068  :
5069else
5070  cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h.  */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h.  */
5076#include <ctype.h>
5077#if ((' ' & 0x0FF) == 0x020)
5078# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5079# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5080#else
5081# define ISLOWER(c) \
5082		   (('a' <= (c) && (c) <= 'i') \
5083		     || ('j' <= (c) && (c) <= 'r') \
5084		     || ('s' <= (c) && (c) <= 'z'))
5085# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5086#endif
5087
5088#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5089int
5090main ()
5091{
5092  int i;
5093  for (i = 0; i < 256; i++)
5094    if (XOR (islower (i), ISLOWER (i))
5095	|| toupper (i) != TOUPPER (i))
5096      exit(2);
5097  exit (0);
5098}
5099_ACEOF
5100rm -f conftest$ac_exeext
5101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5102  (eval $ac_link) 2>&5
5103  ac_status=$?
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107  (eval $ac_try) 2>&5
5108  ac_status=$?
5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110  (exit $ac_status); }; }; then
5111  :
5112else
5113  echo "$as_me: program exited with status $ac_status" >&5
5114echo "$as_me: failed program was:" >&5
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117( exit $ac_status )
5118ac_cv_header_stdc=no
5119fi
5120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5121fi
5122fi
5123fi
5124echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5125echo "${ECHO_T}$ac_cv_header_stdc" >&6
5126if test $ac_cv_header_stdc = yes; then
5127
5128cat >>confdefs.h <<\_ACEOF
5129#define STDC_HEADERS 1
5130_ACEOF
5131
5132fi
5133
5134# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5145		  inttypes.h stdint.h unistd.h
5146do
5147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5148echo "$as_me:$LINENO: checking for $ac_header" >&5
5149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5150if eval "test \"\${$as_ac_Header+set}\" = set"; then
5151  echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153  cat >conftest.$ac_ext <<_ACEOF
5154/* confdefs.h.  */
5155_ACEOF
5156cat confdefs.h >>conftest.$ac_ext
5157cat >>conftest.$ac_ext <<_ACEOF
5158/* end confdefs.h.  */
5159$ac_includes_default
5160
5161#include <$ac_header>
5162_ACEOF
5163rm -f conftest.$ac_objext
5164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5165  (eval $ac_compile) 2>conftest.er1
5166  ac_status=$?
5167  grep -v '^ *+' conftest.er1 >conftest.err
5168  rm -f conftest.er1
5169  cat conftest.err >&5
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); } &&
5172	 { ac_try='test -z "$ac_c_werror_flag"
5173			 || test ! -s conftest.err'
5174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175  (eval $ac_try) 2>&5
5176  ac_status=$?
5177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178  (exit $ac_status); }; } &&
5179	 { ac_try='test -s conftest.$ac_objext'
5180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181  (eval $ac_try) 2>&5
5182  ac_status=$?
5183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184  (exit $ac_status); }; }; then
5185  eval "$as_ac_Header=yes"
5186else
5187  echo "$as_me: failed program was:" >&5
5188sed 's/^/| /' conftest.$ac_ext >&5
5189
5190eval "$as_ac_Header=no"
5191fi
5192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5193fi
5194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5196if test `eval echo '${'$as_ac_Header'}'` = yes; then
5197  cat >>confdefs.h <<_ACEOF
5198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5199_ACEOF
5200
5201fi
5202
5203done
5204
5205
5206
5207for ac_header in dlfcn.h
5208do
5209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5210echo "$as_me:$LINENO: checking for $ac_header" >&5
5211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5212if eval "test \"\${$as_ac_Header+set}\" = set"; then
5213  echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215  cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h.  */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h.  */
5221$ac_includes_default
5222
5223#include <$ac_header>
5224_ACEOF
5225rm -f conftest.$ac_objext
5226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5227  (eval $ac_compile) 2>conftest.er1
5228  ac_status=$?
5229  grep -v '^ *+' conftest.er1 >conftest.err
5230  rm -f conftest.er1
5231  cat conftest.err >&5
5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); } &&
5234	 { ac_try='test -z "$ac_c_werror_flag"
5235			 || test ! -s conftest.err'
5236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237  (eval $ac_try) 2>&5
5238  ac_status=$?
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); }; } &&
5241	 { ac_try='test -s conftest.$ac_objext'
5242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243  (eval $ac_try) 2>&5
5244  ac_status=$?
5245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246  (exit $ac_status); }; }; then
5247  eval "$as_ac_Header=yes"
5248else
5249  echo "$as_me: failed program was:" >&5
5250sed 's/^/| /' conftest.$ac_ext >&5
5251
5252eval "$as_ac_Header=no"
5253fi
5254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5255fi
5256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5258if test `eval echo '${'$as_ac_Header'}'` = yes; then
5259  cat >>confdefs.h <<_ACEOF
5260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5261_ACEOF
5262
5263fi
5264
5265done
5266
5267
5268
5269# Set options
5270
5271
5272
5273        enable_dlopen=no
5274
5275
5276  enable_win32_dll=no
5277
5278
5279            # Check whether --enable-shared or --disable-shared was given.
5280if test "${enable_shared+set}" = set; then
5281  enableval="$enable_shared"
5282  p=${PACKAGE-default}
5283    case $enableval in
5284    yes) enable_shared=yes ;;
5285    no) enable_shared=no ;;
5286    *)
5287      enable_shared=no
5288      # Look at the argument we got.  We use all the common list separators.
5289      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5290      for pkg in $enableval; do
5291	IFS="$lt_save_ifs"
5292	if test "X$pkg" = "X$p"; then
5293	  enable_shared=yes
5294	fi
5295      done
5296      IFS="$lt_save_ifs"
5297      ;;
5298    esac
5299else
5300  enable_shared=yes
5301fi;
5302
5303
5304
5305
5306
5307
5308
5309
5310  # Check whether --enable-static or --disable-static was given.
5311if test "${enable_static+set}" = set; then
5312  enableval="$enable_static"
5313  p=${PACKAGE-default}
5314    case $enableval in
5315    yes) enable_static=yes ;;
5316    no) enable_static=no ;;
5317    *)
5318     enable_static=no
5319      # Look at the argument we got.  We use all the common list separators.
5320      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5321      for pkg in $enableval; do
5322	IFS="$lt_save_ifs"
5323	if test "X$pkg" = "X$p"; then
5324	  enable_static=yes
5325	fi
5326      done
5327      IFS="$lt_save_ifs"
5328      ;;
5329    esac
5330else
5331  enable_static=yes
5332fi;
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342# Check whether --with-pic or --without-pic was given.
5343if test "${with_pic+set}" = set; then
5344  withval="$with_pic"
5345  pic_mode="$withval"
5346else
5347  pic_mode=default
5348fi;
5349
5350test -z "$pic_mode" && pic_mode=default
5351
5352
5353
5354
5355
5356
5357
5358  # Check whether --enable-fast-install or --disable-fast-install was given.
5359if test "${enable_fast_install+set}" = set; then
5360  enableval="$enable_fast_install"
5361  p=${PACKAGE-default}
5362    case $enableval in
5363    yes) enable_fast_install=yes ;;
5364    no) enable_fast_install=no ;;
5365    *)
5366      enable_fast_install=no
5367      # Look at the argument we got.  We use all the common list separators.
5368      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5369      for pkg in $enableval; do
5370	IFS="$lt_save_ifs"
5371	if test "X$pkg" = "X$p"; then
5372	  enable_fast_install=yes
5373	fi
5374      done
5375      IFS="$lt_save_ifs"
5376      ;;
5377    esac
5378else
5379  enable_fast_install=yes
5380fi;
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391# This can be used to rebuild libtool when needed
5392LIBTOOL_DEPS="$ltmain"
5393
5394# Always use our own libtool.
5395LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421test -z "$LN_S" && LN_S="ln -s"
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436if test -n "${ZSH_VERSION+set}" ; then
5437   setopt NO_GLOB_SUBST
5438fi
5439
5440echo "$as_me:$LINENO: checking for objdir" >&5
5441echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5442if test "${lt_cv_objdir+set}" = set; then
5443  echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445  rm -f .libs 2>/dev/null
5446mkdir .libs 2>/dev/null
5447if test -d .libs; then
5448  lt_cv_objdir=.libs
5449else
5450  # MS-DOS does not allow filenames that begin with a dot.
5451  lt_cv_objdir=_libs
5452fi
5453rmdir .libs 2>/dev/null
5454fi
5455echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5456echo "${ECHO_T}$lt_cv_objdir" >&6
5457objdir=$lt_cv_objdir
5458
5459
5460
5461
5462
5463cat >>confdefs.h <<_ACEOF
5464#define LT_OBJDIR "$lt_cv_objdir/"
5465_ACEOF
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483case $host_os in
5484aix3*)
5485  # AIX sometimes has problems with the GCC collect2 program.  For some
5486  # reason, if we set the COLLECT_NAMES environment variable, the problems
5487  # vanish in a puff of smoke.
5488  if test "X${COLLECT_NAMES+set}" != Xset; then
5489    COLLECT_NAMES=
5490    export COLLECT_NAMES
5491  fi
5492  ;;
5493esac
5494
5495# Sed substitution that helps us do robust quoting.  It backslashifies
5496# metacharacters that are still active within double-quoted strings.
5497sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5498
5499# Same as above, but do not quote variable references.
5500double_quote_subst='s/\(["`\\]\)/\\\1/g'
5501
5502# Sed substitution to delay expansion of an escaped shell variable in a
5503# double_quote_subst'ed string.
5504delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5505
5506# Sed substitution to delay expansion of an escaped single quote.
5507delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5508
5509# Sed substitution to avoid accidental globbing in evaled expressions
5510no_glob_subst='s/\*/\\\*/g'
5511
5512# Global variables:
5513ofile=libtool
5514can_build_shared=yes
5515
5516# All known linkers require a `.a' archive for static linking (except MSVC,
5517# which needs '.lib').
5518libext=a
5519
5520with_gnu_ld="$lt_cv_prog_gnu_ld"
5521
5522old_CC="$CC"
5523old_CFLAGS="$CFLAGS"
5524
5525# Set sane defaults for various variables
5526test -z "$CC" && CC=cc
5527test -z "$LTCC" && LTCC=$CC
5528test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5529test -z "$LD" && LD=ld
5530test -z "$ac_objext" && ac_objext=o
5531
5532for cc_temp in $compiler""; do
5533  case $cc_temp in
5534    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5535    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5536    \-*) ;;
5537    *) break;;
5538  esac
5539done
5540cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5541
5542
5543# Only perform the check for file, if the check method requires it
5544test -z "$MAGIC_CMD" && MAGIC_CMD=file
5545case $deplibs_check_method in
5546file_magic*)
5547  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5548    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5549echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5550if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5551  echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
5553  case $MAGIC_CMD in
5554[\\/*] |  ?:[\\/]*)
5555  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5556  ;;
5557*)
5558  lt_save_MAGIC_CMD="$MAGIC_CMD"
5559  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5560  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5561  for ac_dir in $ac_dummy; do
5562    IFS="$lt_save_ifs"
5563    test -z "$ac_dir" && ac_dir=.
5564    if test -f $ac_dir/${ac_tool_prefix}file; then
5565      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5566      if test -n "$file_magic_test_file"; then
5567	case $deplibs_check_method in
5568	"file_magic "*)
5569	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5570	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5571	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5572	    $EGREP "$file_magic_regex" > /dev/null; then
5573	    :
5574	  else
5575	    cat <<_LT_EOF 1>&2
5576
5577*** Warning: the command libtool uses to detect shared libraries,
5578*** $file_magic_cmd, produces output that libtool cannot recognize.
5579*** The result is that libtool may fail to recognize shared libraries
5580*** as such.  This will affect the creation of libtool libraries that
5581*** depend on shared libraries, but programs linked with such libtool
5582*** libraries will work regardless of this problem.  Nevertheless, you
5583*** may want to report the problem to your system manager and/or to
5584*** [email protected]
5585
5586_LT_EOF
5587	  fi ;;
5588	esac
5589      fi
5590      break
5591    fi
5592  done
5593  IFS="$lt_save_ifs"
5594  MAGIC_CMD="$lt_save_MAGIC_CMD"
5595  ;;
5596esac
5597fi
5598
5599MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5600if test -n "$MAGIC_CMD"; then
5601  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5602echo "${ECHO_T}$MAGIC_CMD" >&6
5603else
5604  echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606fi
5607
5608
5609
5610
5611
5612if test -z "$lt_cv_path_MAGIC_CMD"; then
5613  if test -n "$ac_tool_prefix"; then
5614    echo "$as_me:$LINENO: checking for file" >&5
5615echo $ECHO_N "checking for file... $ECHO_C" >&6
5616if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5617  echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619  case $MAGIC_CMD in
5620[\\/*] |  ?:[\\/]*)
5621  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5622  ;;
5623*)
5624  lt_save_MAGIC_CMD="$MAGIC_CMD"
5625  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5626  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5627  for ac_dir in $ac_dummy; do
5628    IFS="$lt_save_ifs"
5629    test -z "$ac_dir" && ac_dir=.
5630    if test -f $ac_dir/file; then
5631      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5632      if test -n "$file_magic_test_file"; then
5633	case $deplibs_check_method in
5634	"file_magic "*)
5635	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5636	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5637	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5638	    $EGREP "$file_magic_regex" > /dev/null; then
5639	    :
5640	  else
5641	    cat <<_LT_EOF 1>&2
5642
5643*** Warning: the command libtool uses to detect shared libraries,
5644*** $file_magic_cmd, produces output that libtool cannot recognize.
5645*** The result is that libtool may fail to recognize shared libraries
5646*** as such.  This will affect the creation of libtool libraries that
5647*** depend on shared libraries, but programs linked with such libtool
5648*** libraries will work regardless of this problem.  Nevertheless, you
5649*** may want to report the problem to your system manager and/or to
5650*** [email protected]
5651
5652_LT_EOF
5653	  fi ;;
5654	esac
5655      fi
5656      break
5657    fi
5658  done
5659  IFS="$lt_save_ifs"
5660  MAGIC_CMD="$lt_save_MAGIC_CMD"
5661  ;;
5662esac
5663fi
5664
5665MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5666if test -n "$MAGIC_CMD"; then
5667  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5668echo "${ECHO_T}$MAGIC_CMD" >&6
5669else
5670  echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672fi
5673
5674
5675  else
5676    MAGIC_CMD=:
5677  fi
5678fi
5679
5680  fi
5681  ;;
5682esac
5683
5684# Use C for the default configuration in the libtool script
5685
5686lt_save_CC="$CC"
5687ac_ext=c
5688ac_cpp='$CPP $CPPFLAGS'
5689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692
5693
5694# Source file extension for C test sources.
5695ac_ext=c
5696
5697# Object file extension for compiled C test sources.
5698objext=o
5699objext=$objext
5700
5701# Code to be used in simple compile tests
5702lt_simple_compile_test_code="int some_variable = 0;"
5703
5704# Code to be used in simple link tests
5705lt_simple_link_test_code='int main(){return(0);}'
5706
5707
5708
5709
5710
5711
5712
5713# If no C compiler was specified, use CC.
5714LTCC=${LTCC-"$CC"}
5715
5716# If no C compiler flags were specified, use CFLAGS.
5717LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5718
5719# Allow CC to be a program name with arguments.
5720compiler=$CC
5721
5722# Save the default compiler, since it gets overwritten when the other
5723# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5724compiler_DEFAULT=$CC
5725
5726# save warnings/boilerplate of simple test code
5727ac_outfile=conftest.$ac_objext
5728echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5729eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5730_lt_compiler_boilerplate=`cat conftest.err`
5731$RM conftest*
5732
5733ac_outfile=conftest.$ac_objext
5734echo "$lt_simple_link_test_code" >conftest.$ac_ext
5735eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5736_lt_linker_boilerplate=`cat conftest.err`
5737$RM -r conftest*
5738
5739
5740if test -n "$compiler"; then
5741
5742lt_prog_compiler_no_builtin_flag=
5743
5744if test "$GCC" = yes; then
5745  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5746
5747  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5748echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5749if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5750  echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752  lt_cv_prog_compiler_rtti_exceptions=no
5753   ac_outfile=conftest.$ac_objext
5754   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5755   lt_compiler_flag="-fno-rtti -fno-exceptions"
5756   # Insert the option either (1) after the last *FLAGS variable, or
5757   # (2) before a word containing "conftest.", or (3) at the end.
5758   # Note that $ac_compile itself does not contain backslashes and begins
5759   # with a dollar sign (not a hyphen), so the echo should work correctly.
5760   # The option is referenced via a variable to avoid confusing sed.
5761   lt_compile=`echo "$ac_compile" | $SED \
5762   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5763   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5764   -e 's:$: $lt_compiler_flag:'`
5765   (eval echo "\"\$as_me:5771: $lt_compile\"" >&5)
5766   (eval "$lt_compile" 2>conftest.err)
5767   ac_status=$?
5768   cat conftest.err >&5
5769   echo "$as_me:5775: \$? = $ac_status" >&5
5770   if (exit $ac_status) && test -s "$ac_outfile"; then
5771     # The compiler can only warn and ignore the option if not recognized
5772     # So say no if there are warnings other than the usual output.
5773     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5774     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5775     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5776       lt_cv_prog_compiler_rtti_exceptions=yes
5777     fi
5778   fi
5779   $RM conftest*
5780
5781fi
5782echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5783echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5784
5785if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5786    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5787else
5788    :
5789fi
5790
5791fi
5792
5793
5794
5795
5796
5797
5798  lt_prog_compiler_wl=
5799lt_prog_compiler_pic=
5800lt_prog_compiler_static=
5801
5802echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5803echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5804
5805  if test "$GCC" = yes; then
5806    lt_prog_compiler_wl='-Wl,'
5807    lt_prog_compiler_static='-static'
5808
5809    case $host_os in
5810      aix*)
5811      # All AIX code is PIC.
5812      if test "$host_cpu" = ia64; then
5813	# AIX 5 now supports IA64 processor
5814	lt_prog_compiler_static='-Bstatic'
5815      fi
5816      ;;
5817
5818    amigaos*)
5819      case $host_cpu in
5820      powerpc)
5821            # see comment about AmigaOS4 .so support
5822            lt_prog_compiler_pic='-fPIC'
5823        ;;
5824      m68k)
5825            # FIXME: we need at least 68020 code to build shared libraries, but
5826            # adding the `-m68020' flag to GCC prevents building anything better,
5827            # like `-m68040'.
5828            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5829        ;;
5830      esac
5831      ;;
5832
5833    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5834      # PIC is the default for these OSes.
5835      ;;
5836
5837    mingw* | cygwin* | pw32* | os2*)
5838      # This hack is so that the source file can tell whether it is being
5839      # built for inclusion in a dll (and should export symbols for example).
5840      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5841      # (--disable-auto-import) libraries
5842      lt_prog_compiler_pic='-DDLL_EXPORT'
5843      ;;
5844
5845    darwin* | rhapsody*)
5846      # PIC is the default on this platform
5847      # Common symbols not allowed in MH_DYLIB files
5848      lt_prog_compiler_pic='-fno-common'
5849      ;;
5850
5851    hpux*)
5852      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5853      # not for PA HP-UX.
5854      case $host_cpu in
5855      hppa*64*|ia64*)
5856	# +Z the default
5857	;;
5858      *)
5859	lt_prog_compiler_pic='-fPIC'
5860	;;
5861      esac
5862      ;;
5863
5864    interix[3-9]*)
5865      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5866      # Instead, we relocate shared libraries at runtime.
5867      ;;
5868
5869    msdosdjgpp*)
5870      # Just because we use GCC doesn't mean we suddenly get shared libraries
5871      # on systems that don't support them.
5872      lt_prog_compiler_can_build_shared=no
5873      enable_shared=no
5874      ;;
5875
5876    *nto* | *qnx*)
5877      # QNX uses GNU C++, but need to define -shared option too, otherwise
5878      # it will coredump.
5879      lt_prog_compiler_pic='-fPIC -shared'
5880      ;;
5881
5882    sysv4*MP*)
5883      if test -d /usr/nec; then
5884	lt_prog_compiler_pic=-Kconform_pic
5885      fi
5886      ;;
5887
5888    *)
5889      lt_prog_compiler_pic='-fPIC'
5890      ;;
5891    esac
5892  else
5893    # PORTME Check for flag to pass linker flags through the system compiler.
5894    case $host_os in
5895    aix*)
5896      lt_prog_compiler_wl='-Wl,'
5897      if test "$host_cpu" = ia64; then
5898	# AIX 5 now supports IA64 processor
5899	lt_prog_compiler_static='-Bstatic'
5900      else
5901	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5902      fi
5903      ;;
5904
5905    mingw* | cygwin* | pw32* | os2*)
5906      # This hack is so that the source file can tell whether it is being
5907      # built for inclusion in a dll (and should export symbols for example).
5908      lt_prog_compiler_pic='-DDLL_EXPORT'
5909      ;;
5910
5911    hpux9* | hpux10* | hpux11*)
5912      lt_prog_compiler_wl='-Wl,'
5913      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5914      # not for PA HP-UX.
5915      case $host_cpu in
5916      hppa*64*|ia64*)
5917	# +Z the default
5918	;;
5919      *)
5920	lt_prog_compiler_pic='+Z'
5921	;;
5922      esac
5923      # Is there a better lt_prog_compiler_static that works with the bundled CC?
5924      lt_prog_compiler_static='${wl}-a ${wl}archive'
5925      ;;
5926
5927    irix5* | irix6* | nonstopux*)
5928      lt_prog_compiler_wl='-Wl,'
5929      # PIC (with -KPIC) is the default.
5930      lt_prog_compiler_static='-non_shared'
5931      ;;
5932
5933    linux* | k*bsd*-gnu)
5934      case $cc_basename in
5935      icc* | ecc* | ifort*)
5936	lt_prog_compiler_wl='-Wl,'
5937	lt_prog_compiler_pic='-KPIC'
5938	lt_prog_compiler_static='-static'
5939        ;;
5940      pgcc* | pgf77* | pgf90* | pgf95*)
5941        # Portland Group compilers (*not* the Pentium gcc compiler,
5942	# which looks to be a dead project)
5943	lt_prog_compiler_wl='-Wl,'
5944	lt_prog_compiler_pic='-fpic'
5945	lt_prog_compiler_static='-Bstatic'
5946        ;;
5947      ccc*)
5948        lt_prog_compiler_wl='-Wl,'
5949        # All Alpha code is PIC.
5950        lt_prog_compiler_static='-non_shared'
5951        ;;
5952      xl*)
5953	# IBM XL C 8.0/Fortran 10.1 on PPC
5954	lt_prog_compiler_wl='-Wl,'
5955	lt_prog_compiler_pic='-qpic'
5956	lt_prog_compiler_static='-qstaticlink'
5957	;;
5958      *)
5959	case `$CC -V 2>&1 | sed 5q` in
5960	*Sun\ C*)
5961	  # Sun C 5.9
5962	  lt_prog_compiler_pic='-KPIC'
5963	  lt_prog_compiler_static='-Bstatic'
5964	  lt_prog_compiler_wl='-Wl,'
5965	  ;;
5966	*Sun\ F*)
5967	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
5968	  lt_prog_compiler_pic='-KPIC'
5969	  lt_prog_compiler_static='-Bstatic'
5970	  lt_prog_compiler_wl=''
5971	  ;;
5972	esac
5973	;;
5974      esac
5975      ;;
5976
5977    newsos6)
5978      lt_prog_compiler_pic='-KPIC'
5979      lt_prog_compiler_static='-Bstatic'
5980      ;;
5981
5982    *nto* | *qnx*)
5983      # QNX uses GNU C++, but need to define -shared option too, otherwise
5984      # it will coredump.
5985      lt_prog_compiler_pic='-fPIC -shared'
5986      ;;
5987
5988    osf3* | osf4* | osf5*)
5989      lt_prog_compiler_wl='-Wl,'
5990      # All OSF/1 code is PIC.
5991      lt_prog_compiler_static='-non_shared'
5992      ;;
5993
5994    rdos*)
5995      lt_prog_compiler_static='-non_shared'
5996      ;;
5997
5998    solaris*)
5999      lt_prog_compiler_pic='-KPIC'
6000      lt_prog_compiler_static='-Bstatic'
6001      case $cc_basename in
6002      f77* | f90* | f95*)
6003	lt_prog_compiler_wl='-Qoption ld ';;
6004      *)
6005	lt_prog_compiler_wl='-Wl,';;
6006      esac
6007      ;;
6008
6009    sunos4*)
6010      lt_prog_compiler_wl='-Qoption ld '
6011      lt_prog_compiler_pic='-PIC'
6012      lt_prog_compiler_static='-Bstatic'
6013      ;;
6014
6015    sysv4 | sysv4.2uw2* | sysv4.3*)
6016      lt_prog_compiler_wl='-Wl,'
6017      lt_prog_compiler_pic='-KPIC'
6018      lt_prog_compiler_static='-Bstatic'
6019      ;;
6020
6021    sysv4*MP*)
6022      if test -d /usr/nec ;then
6023	lt_prog_compiler_pic='-Kconform_pic'
6024	lt_prog_compiler_static='-Bstatic'
6025      fi
6026      ;;
6027
6028    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6029      lt_prog_compiler_wl='-Wl,'
6030      lt_prog_compiler_pic='-KPIC'
6031      lt_prog_compiler_static='-Bstatic'
6032      ;;
6033
6034    unicos*)
6035      lt_prog_compiler_wl='-Wl,'
6036      lt_prog_compiler_can_build_shared=no
6037      ;;
6038
6039    uts4*)
6040      lt_prog_compiler_pic='-pic'
6041      lt_prog_compiler_static='-Bstatic'
6042      ;;
6043
6044    *)
6045      lt_prog_compiler_can_build_shared=no
6046      ;;
6047    esac
6048  fi
6049
6050case $host_os in
6051  # For platforms which do not support PIC, -DPIC is meaningless:
6052  *djgpp*)
6053    lt_prog_compiler_pic=
6054    ;;
6055  *)
6056    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6057    ;;
6058esac
6059echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6060echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6061
6062
6063
6064
6065
6066
6067#
6068# Check to make sure the PIC flag actually works.
6069#
6070if test -n "$lt_prog_compiler_pic"; then
6071  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6072echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6073if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
6074  echo $ECHO_N "(cached) $ECHO_C" >&6
6075else
6076  lt_cv_prog_compiler_pic_works=no
6077   ac_outfile=conftest.$ac_objext
6078   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6079   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6080   # Insert the option either (1) after the last *FLAGS variable, or
6081   # (2) before a word containing "conftest.", or (3) at the end.
6082   # Note that $ac_compile itself does not contain backslashes and begins
6083   # with a dollar sign (not a hyphen), so the echo should work correctly.
6084   # The option is referenced via a variable to avoid confusing sed.
6085   lt_compile=`echo "$ac_compile" | $SED \
6086   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6087   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6088   -e 's:$: $lt_compiler_flag:'`
6089   (eval echo "\"\$as_me:6095: $lt_compile\"" >&5)
6090   (eval "$lt_compile" 2>conftest.err)
6091   ac_status=$?
6092   cat conftest.err >&5
6093   echo "$as_me:6099: \$? = $ac_status" >&5
6094   if (exit $ac_status) && test -s "$ac_outfile"; then
6095     # The compiler can only warn and ignore the option if not recognized
6096     # So say no if there are warnings other than the usual output.
6097     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6098     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6099     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6100       lt_cv_prog_compiler_pic_works=yes
6101     fi
6102   fi
6103   $RM conftest*
6104
6105fi
6106echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
6107echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
6108
6109if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6110    case $lt_prog_compiler_pic in
6111     "" | " "*) ;;
6112     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6113     esac
6114else
6115    lt_prog_compiler_pic=
6116     lt_prog_compiler_can_build_shared=no
6117fi
6118
6119fi
6120
6121
6122
6123
6124
6125
6126#
6127# Check to make sure the static flag actually works.
6128#
6129wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6130echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6131echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6132if test "${lt_cv_prog_compiler_static_works+set}" = set; then
6133  echo $ECHO_N "(cached) $ECHO_C" >&6
6134else
6135  lt_cv_prog_compiler_static_works=no
6136   save_LDFLAGS="$LDFLAGS"
6137   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6138   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6139   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6140     # The linker can only warn and ignore the option if not recognized
6141     # So say no if there are warnings
6142     if test -s conftest.err; then
6143       # Append any errors to the config.log.
6144       cat conftest.err 1>&5
6145       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6146       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6147       if diff conftest.exp conftest.er2 >/dev/null; then
6148         lt_cv_prog_compiler_static_works=yes
6149       fi
6150     else
6151       lt_cv_prog_compiler_static_works=yes
6152     fi
6153   fi
6154   $RM -r conftest*
6155   LDFLAGS="$save_LDFLAGS"
6156
6157fi
6158echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
6159echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
6160
6161if test x"$lt_cv_prog_compiler_static_works" = xyes; then
6162    :
6163else
6164    lt_prog_compiler_static=
6165fi
6166
6167
6168
6169
6170
6171
6172
6173  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6174echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6175if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6176  echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178  lt_cv_prog_compiler_c_o=no
6179   $RM -r conftest 2>/dev/null
6180   mkdir conftest
6181   cd conftest
6182   mkdir out
6183   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6184
6185   lt_compiler_flag="-o out/conftest2.$ac_objext"
6186   # Insert the option either (1) after the last *FLAGS variable, or
6187   # (2) before a word containing "conftest.", or (3) at the end.
6188   # Note that $ac_compile itself does not contain backslashes and begins
6189   # with a dollar sign (not a hyphen), so the echo should work correctly.
6190   lt_compile=`echo "$ac_compile" | $SED \
6191   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6192   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6193   -e 's:$: $lt_compiler_flag:'`
6194   (eval echo "\"\$as_me:6200: $lt_compile\"" >&5)
6195   (eval "$lt_compile" 2>out/conftest.err)
6196   ac_status=$?
6197   cat out/conftest.err >&5
6198   echo "$as_me:6204: \$? = $ac_status" >&5
6199   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6200   then
6201     # The compiler can only warn and ignore the option if not recognized
6202     # So say no if there are warnings
6203     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6204     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6205     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6206       lt_cv_prog_compiler_c_o=yes
6207     fi
6208   fi
6209   chmod u+w . 2>&5
6210   $RM conftest*
6211   # SGI C++ compiler will create directory out/ii_files/ for
6212   # template instantiation
6213   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6214   $RM out/* && rmdir out
6215   cd ..
6216   $RM -r conftest
6217   $RM conftest*
6218
6219fi
6220echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6221echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6222
6223
6224
6225
6226
6227
6228  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6229echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6230if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6231  echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233  lt_cv_prog_compiler_c_o=no
6234   $RM -r conftest 2>/dev/null
6235   mkdir conftest
6236   cd conftest
6237   mkdir out
6238   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6239
6240   lt_compiler_flag="-o out/conftest2.$ac_objext"
6241   # Insert the option either (1) after the last *FLAGS variable, or
6242   # (2) before a word containing "conftest.", or (3) at the end.
6243   # Note that $ac_compile itself does not contain backslashes and begins
6244   # with a dollar sign (not a hyphen), so the echo should work correctly.
6245   lt_compile=`echo "$ac_compile" | $SED \
6246   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6247   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6248   -e 's:$: $lt_compiler_flag:'`
6249   (eval echo "\"\$as_me:6255: $lt_compile\"" >&5)
6250   (eval "$lt_compile" 2>out/conftest.err)
6251   ac_status=$?
6252   cat out/conftest.err >&5
6253   echo "$as_me:6259: \$? = $ac_status" >&5
6254   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6255   then
6256     # The compiler can only warn and ignore the option if not recognized
6257     # So say no if there are warnings
6258     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6259     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6260     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6261       lt_cv_prog_compiler_c_o=yes
6262     fi
6263   fi
6264   chmod u+w . 2>&5
6265   $RM conftest*
6266   # SGI C++ compiler will create directory out/ii_files/ for
6267   # template instantiation
6268   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6269   $RM out/* && rmdir out
6270   cd ..
6271   $RM -r conftest
6272   $RM conftest*
6273
6274fi
6275echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6276echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6277
6278
6279
6280
6281hard_links="nottested"
6282if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6283  # do not overwrite the value of need_locks provided by the user
6284  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6285echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6286  hard_links=yes
6287  $RM conftest*
6288  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6289  touch conftest.a
6290  ln conftest.a conftest.b 2>&5 || hard_links=no
6291  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6292  echo "$as_me:$LINENO: result: $hard_links" >&5
6293echo "${ECHO_T}$hard_links" >&6
6294  if test "$hard_links" = no; then
6295    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6296echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6297    need_locks=warn
6298  fi
6299else
6300  need_locks=no
6301fi
6302
6303
6304
6305
6306
6307
6308  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6309echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6310
6311  runpath_var=
6312  allow_undefined_flag=
6313  always_export_symbols=no
6314  archive_cmds=
6315  archive_expsym_cmds=
6316  compiler_needs_object=no
6317  enable_shared_with_static_runtimes=no
6318  export_dynamic_flag_spec=
6319  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6320  hardcode_automatic=no
6321  hardcode_direct=no
6322  hardcode_direct_absolute=no
6323  hardcode_libdir_flag_spec=
6324  hardcode_libdir_flag_spec_ld=
6325  hardcode_libdir_separator=
6326  hardcode_minus_L=no
6327  hardcode_shlibpath_var=unsupported
6328  inherit_rpath=no
6329  link_all_deplibs=unknown
6330  module_cmds=
6331  module_expsym_cmds=
6332  old_archive_from_new_cmds=
6333  old_archive_from_expsyms_cmds=
6334  thread_safe_flag_spec=
6335  whole_archive_flag_spec=
6336  # include_expsyms should be a list of space-separated symbols to be *always*
6337  # included in the symbol list
6338  include_expsyms=
6339  # exclude_expsyms can be an extended regexp of symbols to exclude
6340  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6341  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6342  # as well as any symbol that contains `d'.
6343  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
6344  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6345  # platforms (ab)use it in PIC code, but their linkers get confused if
6346  # the symbol is explicitly referenced.  Since portable code cannot
6347  # rely on this symbol name, it's probably fine to never include it in
6348  # preloaded symbol tables.
6349  # Exclude shared library initialization/finalization symbols.
6350  extract_expsyms_cmds=
6351
6352  case $host_os in
6353  cygwin* | mingw* | pw32*)
6354    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6355    # When not using gcc, we currently assume that we are using
6356    # Microsoft Visual C++.
6357    if test "$GCC" != yes; then
6358      with_gnu_ld=no
6359    fi
6360    ;;
6361  interix*)
6362    # we just hope/assume this is gcc and not c89 (= MSVC++)
6363    with_gnu_ld=yes
6364    ;;
6365  openbsd*)
6366    with_gnu_ld=no
6367    ;;
6368  esac
6369
6370  ld_shlibs=yes
6371  if test "$with_gnu_ld" = yes; then
6372    # If archive_cmds runs LD, not CC, wlarc should be empty
6373    wlarc='${wl}'
6374
6375    # Set some defaults for GNU ld with shared library support. These
6376    # are reset later if shared libraries are not supported. Putting them
6377    # here allows them to be overridden if necessary.
6378    runpath_var=LD_RUN_PATH
6379    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6380    export_dynamic_flag_spec='${wl}--export-dynamic'
6381    # ancient GNU ld didn't support --whole-archive et. al.
6382    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6383      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6384    else
6385      whole_archive_flag_spec=
6386    fi
6387    supports_anon_versioning=no
6388    case `$LD -v 2>&1` in
6389      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6390      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6391      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6392      *\ 2.11.*) ;; # other 2.11 versions
6393      *) supports_anon_versioning=yes ;;
6394    esac
6395
6396    # See if GNU ld supports shared libraries.
6397    case $host_os in
6398    aix[3-9]*)
6399      # On AIX/PPC, the GNU linker is very broken
6400      if test "$host_cpu" != ia64; then
6401	ld_shlibs=no
6402	cat <<_LT_EOF 1>&2
6403
6404*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6405*** to be unable to reliably create shared libraries on AIX.
6406*** Therefore, libtool is disabling shared libraries support.  If you
6407*** really care for shared libraries, you may want to modify your PATH
6408*** so that a non-GNU linker is found, and then restart.
6409
6410_LT_EOF
6411      fi
6412      ;;
6413
6414    amigaos*)
6415      case $host_cpu in
6416      powerpc)
6417            # see comment about AmigaOS4 .so support
6418            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6419            archive_expsym_cmds=''
6420        ;;
6421      m68k)
6422            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)'
6423            hardcode_libdir_flag_spec='-L$libdir'
6424            hardcode_minus_L=yes
6425        ;;
6426      esac
6427      ;;
6428
6429    beos*)
6430      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6431	allow_undefined_flag=unsupported
6432	# Joseph Beckenbach <[email protected]> says some releases of gcc
6433	# support --undefined.  This deserves some investigation.  FIXME
6434	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6435      else
6436	ld_shlibs=no
6437      fi
6438      ;;
6439
6440    cygwin* | mingw* | pw32*)
6441      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6442      # as there is no search path for DLLs.
6443      hardcode_libdir_flag_spec='-L$libdir'
6444      allow_undefined_flag=unsupported
6445      always_export_symbols=no
6446      enable_shared_with_static_runtimes=yes
6447      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6448
6449      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6450        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6451	# If the export-symbols file already is a .def file (1st line
6452	# is EXPORTS), use it as is; otherwise, prepend...
6453	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6454	  cp $export_symbols $output_objdir/$soname.def;
6455	else
6456	  echo EXPORTS > $output_objdir/$soname.def;
6457	  cat $export_symbols >> $output_objdir/$soname.def;
6458	fi~
6459	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6460      else
6461	ld_shlibs=no
6462      fi
6463      ;;
6464
6465    interix[3-9]*)
6466      hardcode_direct=no
6467      hardcode_shlibpath_var=no
6468      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6469      export_dynamic_flag_spec='${wl}-E'
6470      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6471      # Instead, shared libraries are loaded at an image base (0x10000000 by
6472      # default) and relocated if they conflict, which is a slow very memory
6473      # consuming and fragmenting process.  To avoid this, we pick a random,
6474      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6475      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6476      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6477      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6478      ;;
6479
6480    gnu* | linux* | tpf* | k*bsd*-gnu)
6481      tmp_diet=no
6482      if test "$host_os" = linux-dietlibc; then
6483	case $cc_basename in
6484	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
6485	esac
6486      fi
6487      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6488	 && test "$tmp_diet" = no
6489      then
6490	tmp_addflag=
6491	tmp_sharedflag='-shared'
6492	case $cc_basename,$host_cpu in
6493        pgcc*)				# Portland Group C compiler
6494	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6495	  tmp_addflag=' $pic_flag'
6496	  ;;
6497	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6498	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6499	  tmp_addflag=' $pic_flag -Mnomain' ;;
6500	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
6501	  tmp_addflag=' -i_dynamic' ;;
6502	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6503	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6504	ifc* | ifort*)			# Intel Fortran compiler
6505	  tmp_addflag=' -nofor_main' ;;
6506	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
6507	  tmp_sharedflag='-qmkshrobj'
6508	  tmp_addflag= ;;
6509	esac
6510	case `$CC -V 2>&1 | sed 5q` in
6511	*Sun\ C*)			# Sun C 5.9
6512	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6513	  compiler_needs_object=yes
6514	  tmp_sharedflag='-G' ;;
6515	*Sun\ F*)			# Sun Fortran 8.3
6516	  tmp_sharedflag='-G' ;;
6517	esac
6518	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6519
6520        if test "x$supports_anon_versioning" = xyes; then
6521          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6522	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6523	    echo "local: *; };" >> $output_objdir/$libname.ver~
6524	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6525        fi
6526
6527	case $cc_basename in
6528	xlf*)
6529	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6530	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
6531	  hardcode_libdir_flag_spec=
6532	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
6533	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
6534	  if test "x$supports_anon_versioning" = xyes; then
6535	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6536	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6537	      echo "local: *; };" >> $output_objdir/$libname.ver~
6538	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6539	  fi
6540	  ;;
6541	esac
6542      else
6543        ld_shlibs=no
6544      fi
6545      ;;
6546
6547    netbsd*)
6548      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6549	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6550	wlarc=
6551      else
6552	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6553	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6554      fi
6555      ;;
6556
6557    solaris*)
6558      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6559	ld_shlibs=no
6560	cat <<_LT_EOF 1>&2
6561
6562*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6563*** create shared libraries on Solaris systems.  Therefore, libtool
6564*** is disabling shared libraries support.  We urge you to upgrade GNU
6565*** binutils to release 2.9.1 or newer.  Another option is to modify
6566*** your PATH or compiler configuration so that the native linker is
6567*** used, and then restart.
6568
6569_LT_EOF
6570      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6571	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6572	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6573      else
6574	ld_shlibs=no
6575      fi
6576      ;;
6577
6578    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6579      case `$LD -v 2>&1` in
6580        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6581	ld_shlibs=no
6582	cat <<_LT_EOF 1>&2
6583
6584*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6585*** reliably create shared libraries on SCO systems.  Therefore, libtool
6586*** is disabling shared libraries support.  We urge you to upgrade GNU
6587*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6588*** your PATH or compiler configuration so that the native linker is
6589*** used, and then restart.
6590
6591_LT_EOF
6592	;;
6593	*)
6594	  # For security reasons, it is highly recommended that you always
6595	  # use absolute paths for naming shared libraries, and exclude the
6596	  # DT_RUNPATH tag from executables and libraries.  But doing so
6597	  # requires that you compile everything twice, which is a pain.
6598	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6599	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6600	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6601	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6602	  else
6603	    ld_shlibs=no
6604	  fi
6605	;;
6606      esac
6607      ;;
6608
6609    sunos4*)
6610      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6611      wlarc=
6612      hardcode_direct=yes
6613      hardcode_shlibpath_var=no
6614      ;;
6615
6616    *)
6617      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6618	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6619	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6620      else
6621	ld_shlibs=no
6622      fi
6623      ;;
6624    esac
6625
6626    if test "$ld_shlibs" = no; then
6627      runpath_var=
6628      hardcode_libdir_flag_spec=
6629      export_dynamic_flag_spec=
6630      whole_archive_flag_spec=
6631    fi
6632  else
6633    # PORTME fill in a description of your system's linker (not GNU ld)
6634    case $host_os in
6635    aix3*)
6636      allow_undefined_flag=unsupported
6637      always_export_symbols=yes
6638      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'
6639      # Note: this linker hardcodes the directories in LIBPATH if there
6640      # are no directories specified by -L.
6641      hardcode_minus_L=yes
6642      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6643	# Neither direct hardcoding nor static linking is supported with a
6644	# broken collect2.
6645	hardcode_direct=unsupported
6646      fi
6647      ;;
6648
6649    aix[4-9]*)
6650      if test "$host_cpu" = ia64; then
6651	# On IA64, the linker does run time linking by default, so we don't
6652	# have to do anything special.
6653	aix_use_runtimelinking=no
6654	exp_sym_flag='-Bexport'
6655	no_entry_flag=""
6656      else
6657	# If we're using GNU nm, then we don't want the "-C" option.
6658	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6659	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6660	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6661	else
6662	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6663	fi
6664	aix_use_runtimelinking=no
6665
6666	# Test if we are trying to use run time linking or normal
6667	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6668	# need to do runtime linking.
6669	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
6670	  for ld_flag in $LDFLAGS; do
6671	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6672	    aix_use_runtimelinking=yes
6673	    break
6674	  fi
6675	  done
6676	  ;;
6677	esac
6678
6679	exp_sym_flag='-bexport'
6680	no_entry_flag='-bnoentry'
6681      fi
6682
6683      # When large executables or shared objects are built, AIX ld can
6684      # have problems creating the table of contents.  If linking a library
6685      # or program results in "error TOC overflow" add -mminimal-toc to
6686      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6687      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6688
6689      archive_cmds=''
6690      hardcode_direct=yes
6691      hardcode_direct_absolute=yes
6692      hardcode_libdir_separator=':'
6693      link_all_deplibs=yes
6694      file_list_spec='${wl}-f,'
6695
6696      if test "$GCC" = yes; then
6697	case $host_os in aix4.[012]|aix4.[012].*)
6698	# We only want to do this on AIX 4.2 and lower, the check
6699	# below for broken collect2 doesn't work under 4.3+
6700	  collect2name=`${CC} -print-prog-name=collect2`
6701	  if test -f "$collect2name" &&
6702	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6703	  then
6704	  # We have reworked collect2
6705	  :
6706	  else
6707	  # We have old collect2
6708	  hardcode_direct=unsupported
6709	  # It fails to find uninstalled libraries when the uninstalled
6710	  # path is not listed in the libpath.  Setting hardcode_minus_L
6711	  # to unsupported forces relinking
6712	  hardcode_minus_L=yes
6713	  hardcode_libdir_flag_spec='-L$libdir'
6714	  hardcode_libdir_separator=
6715	  fi
6716	  ;;
6717	esac
6718	shared_flag='-shared'
6719	if test "$aix_use_runtimelinking" = yes; then
6720	  shared_flag="$shared_flag "'${wl}-G'
6721	fi
6722      else
6723	# not using gcc
6724	if test "$host_cpu" = ia64; then
6725	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6726	# chokes on -Wl,-G. The following line is correct:
6727	  shared_flag='-G'
6728	else
6729	  if test "$aix_use_runtimelinking" = yes; then
6730	    shared_flag='${wl}-G'
6731	  else
6732	    shared_flag='${wl}-bM:SRE'
6733	  fi
6734	fi
6735      fi
6736
6737      # It seems that -bexpall does not export symbols beginning with
6738      # underscore (_), so it is better to generate a list of symbols to export.
6739      always_export_symbols=yes
6740      if test "$aix_use_runtimelinking" = yes; then
6741	# Warning - without using the other runtime loading flags (-brtl),
6742	# -berok will link without error, but may produce a broken library.
6743	allow_undefined_flag='-berok'
6744        # Determine the default libpath from the value encoded in an
6745        # empty executable.
6746        cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h.  */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h.  */
6752
6753int
6754main ()
6755{
6756
6757  ;
6758  return 0;
6759}
6760_ACEOF
6761rm -f conftest.$ac_objext conftest$ac_exeext
6762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6763  (eval $ac_link) 2>conftest.er1
6764  ac_status=$?
6765  grep -v '^ *+' conftest.er1 >conftest.err
6766  rm -f conftest.er1
6767  cat conftest.err >&5
6768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769  (exit $ac_status); } &&
6770	 { ac_try='test -z "$ac_c_werror_flag"
6771			 || test ! -s conftest.err'
6772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773  (eval $ac_try) 2>&5
6774  ac_status=$?
6775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776  (exit $ac_status); }; } &&
6777	 { ac_try='test -s conftest$ac_exeext'
6778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779  (eval $ac_try) 2>&5
6780  ac_status=$?
6781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782  (exit $ac_status); }; }; then
6783
6784lt_aix_libpath_sed='
6785    /Import File Strings/,/^$/ {
6786	/^0/ {
6787	    s/^0  *\(.*\)$/\1/
6788	    p
6789	}
6790    }'
6791aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6792# Check for a 64-bit object if we didn't find anything.
6793if test -z "$aix_libpath"; then
6794  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6795fi
6796else
6797  echo "$as_me: failed program was:" >&5
6798sed 's/^/| /' conftest.$ac_ext >&5
6799
6800fi
6801rm -f conftest.err conftest.$ac_objext \
6802      conftest$ac_exeext conftest.$ac_ext
6803if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6804
6805        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6806        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6807      else
6808	if test "$host_cpu" = ia64; then
6809	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6810	  allow_undefined_flag="-z nodefs"
6811	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6812	else
6813	 # Determine the default libpath from the value encoded in an
6814	 # empty executable.
6815	 cat >conftest.$ac_ext <<_ACEOF
6816/* confdefs.h.  */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h.  */
6821
6822int
6823main ()
6824{
6825
6826  ;
6827  return 0;
6828}
6829_ACEOF
6830rm -f conftest.$ac_objext conftest$ac_exeext
6831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832  (eval $ac_link) 2>conftest.er1
6833  ac_status=$?
6834  grep -v '^ *+' conftest.er1 >conftest.err
6835  rm -f conftest.er1
6836  cat conftest.err >&5
6837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838  (exit $ac_status); } &&
6839	 { ac_try='test -z "$ac_c_werror_flag"
6840			 || test ! -s conftest.err'
6841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842  (eval $ac_try) 2>&5
6843  ac_status=$?
6844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845  (exit $ac_status); }; } &&
6846	 { ac_try='test -s conftest$ac_exeext'
6847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848  (eval $ac_try) 2>&5
6849  ac_status=$?
6850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851  (exit $ac_status); }; }; then
6852
6853lt_aix_libpath_sed='
6854    /Import File Strings/,/^$/ {
6855	/^0/ {
6856	    s/^0  *\(.*\)$/\1/
6857	    p
6858	}
6859    }'
6860aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6861# Check for a 64-bit object if we didn't find anything.
6862if test -z "$aix_libpath"; then
6863  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6864fi
6865else
6866  echo "$as_me: failed program was:" >&5
6867sed 's/^/| /' conftest.$ac_ext >&5
6868
6869fi
6870rm -f conftest.err conftest.$ac_objext \
6871      conftest$ac_exeext conftest.$ac_ext
6872if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6873
6874	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6875	  # Warning - without using the other run time loading flags,
6876	  # -berok will link without error, but may produce a broken library.
6877	  no_undefined_flag=' ${wl}-bernotok'
6878	  allow_undefined_flag=' ${wl}-berok'
6879	  # Exported symbols can be pulled into shared objects from archives
6880	  whole_archive_flag_spec='$convenience'
6881	  archive_cmds_need_lc=yes
6882	  # This is similar to how AIX traditionally builds its shared libraries.
6883	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6884	fi
6885      fi
6886      ;;
6887
6888    amigaos*)
6889      case $host_cpu in
6890      powerpc)
6891            # see comment about AmigaOS4 .so support
6892            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6893            archive_expsym_cmds=''
6894        ;;
6895      m68k)
6896            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)'
6897            hardcode_libdir_flag_spec='-L$libdir'
6898            hardcode_minus_L=yes
6899        ;;
6900      esac
6901      ;;
6902
6903    bsdi[45]*)
6904      export_dynamic_flag_spec=-rdynamic
6905      ;;
6906
6907    cygwin* | mingw* | pw32*)
6908      # When not using gcc, we currently assume that we are using
6909      # Microsoft Visual C++.
6910      # hardcode_libdir_flag_spec is actually meaningless, as there is
6911      # no search path for DLLs.
6912      hardcode_libdir_flag_spec=' '
6913      allow_undefined_flag=unsupported
6914      # Tell ltmain to make .lib files, not .a files.
6915      libext=lib
6916      # Tell ltmain to make .dll files, not .so files.
6917      shrext_cmds=".dll"
6918      # FIXME: Setting linknames here is a bad hack.
6919      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6920      # The linker will automatically build a .lib file if we build a DLL.
6921      old_archive_from_new_cmds='true'
6922      # FIXME: Should let the user specify the lib program.
6923      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
6924      fix_srcfile_path='`cygpath -w "$srcfile"`'
6925      enable_shared_with_static_runtimes=yes
6926      ;;
6927
6928    darwin* | rhapsody*)
6929
6930
6931  archive_cmds_need_lc=no
6932  hardcode_direct=no
6933  hardcode_automatic=yes
6934  hardcode_shlibpath_var=unsupported
6935  whole_archive_flag_spec=''
6936  link_all_deplibs=yes
6937  allow_undefined_flag="$_lt_dar_allow_undefined"
6938  if test "$GCC" = "yes"; then
6939    output_verbose_link_cmd=echo
6940    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6941    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6942    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6943    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6944
6945  else
6946  ld_shlibs=no
6947  fi
6948
6949      ;;
6950
6951    dgux*)
6952      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6953      hardcode_libdir_flag_spec='-L$libdir'
6954      hardcode_shlibpath_var=no
6955      ;;
6956
6957    freebsd1*)
6958      ld_shlibs=no
6959      ;;
6960
6961    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6962    # support.  Future versions do this automatically, but an explicit c++rt0.o
6963    # does not break anything, and helps significantly (at the cost of a little
6964    # extra space).
6965    freebsd2.2*)
6966      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6967      hardcode_libdir_flag_spec='-R$libdir'
6968      hardcode_direct=yes
6969      hardcode_shlibpath_var=no
6970      ;;
6971
6972    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6973    freebsd2*)
6974      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6975      hardcode_direct=yes
6976      hardcode_minus_L=yes
6977      hardcode_shlibpath_var=no
6978      ;;
6979
6980    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6981    freebsd* | dragonfly*)
6982      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6983      hardcode_libdir_flag_spec='-R$libdir'
6984      hardcode_direct=yes
6985      hardcode_shlibpath_var=no
6986      ;;
6987
6988    hpux9*)
6989      if test "$GCC" = yes; then
6990	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6991      else
6992	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'
6993      fi
6994      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6995      hardcode_libdir_separator=:
6996      hardcode_direct=yes
6997
6998      # hardcode_minus_L: Not really in the search PATH,
6999      # but as the default location of the library.
7000      hardcode_minus_L=yes
7001      export_dynamic_flag_spec='${wl}-E'
7002      ;;
7003
7004    hpux10*)
7005      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7006	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7007      else
7008	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7009      fi
7010      if test "$with_gnu_ld" = no; then
7011	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7012	hardcode_libdir_flag_spec_ld='+b $libdir'
7013	hardcode_libdir_separator=:
7014	hardcode_direct=yes
7015	hardcode_direct_absolute=yes
7016	export_dynamic_flag_spec='${wl}-E'
7017	# hardcode_minus_L: Not really in the search PATH,
7018	# but as the default location of the library.
7019	hardcode_minus_L=yes
7020      fi
7021      ;;
7022
7023    hpux11*)
7024      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7025	case $host_cpu in
7026	hppa*64*)
7027	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7028	  ;;
7029	ia64*)
7030	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7031	  ;;
7032	*)
7033	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7034	  ;;
7035	esac
7036      else
7037	case $host_cpu in
7038	hppa*64*)
7039	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7040	  ;;
7041	ia64*)
7042	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7043	  ;;
7044	*)
7045	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7046	  ;;
7047	esac
7048      fi
7049      if test "$with_gnu_ld" = no; then
7050	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7051	hardcode_libdir_separator=:
7052
7053	case $host_cpu in
7054	hppa*64*|ia64*)
7055	  hardcode_direct=no
7056	  hardcode_shlibpath_var=no
7057	  ;;
7058	*)
7059	  hardcode_direct=yes
7060	  hardcode_direct_absolute=yes
7061	  export_dynamic_flag_spec='${wl}-E'
7062
7063	  # hardcode_minus_L: Not really in the search PATH,
7064	  # but as the default location of the library.
7065	  hardcode_minus_L=yes
7066	  ;;
7067	esac
7068      fi
7069      ;;
7070
7071    irix5* | irix6* | nonstopux*)
7072      if test "$GCC" = yes; then
7073	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7074	# Try to use the -exported_symbol ld option, if it does not
7075	# work, assume that -exports_file does not work either and
7076	# implicitly export all symbols.
7077        save_LDFLAGS="$LDFLAGS"
7078        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7079        cat >conftest.$ac_ext <<_ACEOF
7080int foo(void) {}
7081_ACEOF
7082rm -f conftest.$ac_objext conftest$ac_exeext
7083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7084  (eval $ac_link) 2>conftest.er1
7085  ac_status=$?
7086  grep -v '^ *+' conftest.er1 >conftest.err
7087  rm -f conftest.er1
7088  cat conftest.err >&5
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); } &&
7091	 { ac_try='test -z "$ac_c_werror_flag"
7092			 || test ! -s conftest.err'
7093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094  (eval $ac_try) 2>&5
7095  ac_status=$?
7096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097  (exit $ac_status); }; } &&
7098	 { ac_try='test -s conftest$ac_exeext'
7099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100  (eval $ac_try) 2>&5
7101  ac_status=$?
7102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103  (exit $ac_status); }; }; then
7104  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7105
7106else
7107  echo "$as_me: failed program was:" >&5
7108sed 's/^/| /' conftest.$ac_ext >&5
7109
7110fi
7111rm -f conftest.err conftest.$ac_objext \
7112      conftest$ac_exeext conftest.$ac_ext
7113        LDFLAGS="$save_LDFLAGS"
7114      else
7115	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7116	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7117      fi
7118      archive_cmds_need_lc='no'
7119      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7120      hardcode_libdir_separator=:
7121      inherit_rpath=yes
7122      link_all_deplibs=yes
7123      ;;
7124
7125    netbsd*)
7126      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7127	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7128      else
7129	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7130      fi
7131      hardcode_libdir_flag_spec='-R$libdir'
7132      hardcode_direct=yes
7133      hardcode_shlibpath_var=no
7134      ;;
7135
7136    newsos6)
7137      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7138      hardcode_direct=yes
7139      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7140      hardcode_libdir_separator=:
7141      hardcode_shlibpath_var=no
7142      ;;
7143
7144    *nto* | *qnx*)
7145      ;;
7146
7147    openbsd*)
7148      if test -f /usr/libexec/ld.so; then
7149	hardcode_direct=yes
7150	hardcode_shlibpath_var=no
7151	hardcode_direct_absolute=yes
7152	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7153	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7154	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7155	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7156	  export_dynamic_flag_spec='${wl}-E'
7157	else
7158	  case $host_os in
7159	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7160	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7161	     hardcode_libdir_flag_spec='-R$libdir'
7162	     ;;
7163	   *)
7164	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7165	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7166	     ;;
7167	  esac
7168	fi
7169      else
7170	ld_shlibs=no
7171      fi
7172      ;;
7173
7174    os2*)
7175      hardcode_libdir_flag_spec='-L$libdir'
7176      hardcode_minus_L=yes
7177      allow_undefined_flag=unsupported
7178      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'
7179      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7180      ;;
7181
7182    osf3*)
7183      if test "$GCC" = yes; then
7184	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7185	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7186      else
7187	allow_undefined_flag=' -expect_unresolved \*'
7188	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7189      fi
7190      archive_cmds_need_lc='no'
7191      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7192      hardcode_libdir_separator=:
7193      ;;
7194
7195    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7196      if test "$GCC" = yes; then
7197	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7198	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7199	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200      else
7201	allow_undefined_flag=' -expect_unresolved \*'
7202	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7203	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7204	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7205
7206	# Both c and cxx compiler support -rpath directly
7207	hardcode_libdir_flag_spec='-rpath $libdir'
7208      fi
7209      archive_cmds_need_lc='no'
7210      hardcode_libdir_separator=:
7211      ;;
7212
7213    solaris*)
7214      no_undefined_flag=' -z defs'
7215      if test "$GCC" = yes; then
7216	wlarc='${wl}'
7217	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7218	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7219	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7220      else
7221	case `$CC -V 2>&1` in
7222	*"Compilers 5.0"*)
7223	  wlarc=''
7224	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7225	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7226	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7227	  ;;
7228	*)
7229	  wlarc='${wl}'
7230	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7231	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7232	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7233	  ;;
7234	esac
7235      fi
7236      hardcode_libdir_flag_spec='-R$libdir'
7237      hardcode_shlibpath_var=no
7238      case $host_os in
7239      solaris2.[0-5] | solaris2.[0-5].*) ;;
7240      *)
7241	# The compiler driver will combine and reorder linker options,
7242	# but understands `-z linker_flag'.  GCC discards it without `$wl',
7243	# but is careful enough not to reorder.
7244	# Supported since Solaris 2.6 (maybe 2.5.1?)
7245	if test "$GCC" = yes; then
7246	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7247	else
7248	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7249	fi
7250	;;
7251      esac
7252      link_all_deplibs=yes
7253      ;;
7254
7255    sunos4*)
7256      if test "x$host_vendor" = xsequent; then
7257	# Use $CC to link under sequent, because it throws in some extra .o
7258	# files that make .init and .fini sections work.
7259	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7260      else
7261	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7262      fi
7263      hardcode_libdir_flag_spec='-L$libdir'
7264      hardcode_direct=yes
7265      hardcode_minus_L=yes
7266      hardcode_shlibpath_var=no
7267      ;;
7268
7269    sysv4)
7270      case $host_vendor in
7271	sni)
7272	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273	  hardcode_direct=yes # is this really true???
7274	;;
7275	siemens)
7276	  ## LD is ld it makes a PLAMLIB
7277	  ## CC just makes a GrossModule.
7278	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7279	  reload_cmds='$CC -r -o $output$reload_objs'
7280	  hardcode_direct=no
7281        ;;
7282	motorola)
7283	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7285	;;
7286      esac
7287      runpath_var='LD_RUN_PATH'
7288      hardcode_shlibpath_var=no
7289      ;;
7290
7291    sysv4.3*)
7292      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7293      hardcode_shlibpath_var=no
7294      export_dynamic_flag_spec='-Bexport'
7295      ;;
7296
7297    sysv4*MP*)
7298      if test -d /usr/nec; then
7299	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7300	hardcode_shlibpath_var=no
7301	runpath_var=LD_RUN_PATH
7302	hardcode_runpath_var=yes
7303	ld_shlibs=yes
7304      fi
7305      ;;
7306
7307    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7308      no_undefined_flag='${wl}-z,text'
7309      archive_cmds_need_lc=no
7310      hardcode_shlibpath_var=no
7311      runpath_var='LD_RUN_PATH'
7312
7313      if test "$GCC" = yes; then
7314	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7315	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7316      else
7317	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7318	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7319      fi
7320      ;;
7321
7322    sysv5* | sco3.2v5* | sco5v6*)
7323      # Note: We can NOT use -z defs as we might desire, because we do not
7324      # link with -lc, and that would cause any symbols used from libc to
7325      # always be unresolved, which means just about no library would
7326      # ever link correctly.  If we're not using GNU ld we use -z text
7327      # though, which does catch some bad symbols but isn't as heavy-handed
7328      # as -z defs.
7329      no_undefined_flag='${wl}-z,text'
7330      allow_undefined_flag='${wl}-z,nodefs'
7331      archive_cmds_need_lc=no
7332      hardcode_shlibpath_var=no
7333      hardcode_libdir_flag_spec='${wl}-R,$libdir'
7334      hardcode_libdir_separator=':'
7335      link_all_deplibs=yes
7336      export_dynamic_flag_spec='${wl}-Bexport'
7337      runpath_var='LD_RUN_PATH'
7338
7339      if test "$GCC" = yes; then
7340	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7341	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7342      else
7343	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7344	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7345      fi
7346      ;;
7347
7348    uts4*)
7349      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7350      hardcode_libdir_flag_spec='-L$libdir'
7351      hardcode_shlibpath_var=no
7352      ;;
7353
7354    *)
7355      ld_shlibs=no
7356      ;;
7357    esac
7358
7359    if test x$host_vendor = xsni; then
7360      case $host in
7361      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7362	export_dynamic_flag_spec='${wl}-Blargedynsym'
7363	;;
7364      esac
7365    fi
7366  fi
7367
7368echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7369echo "${ECHO_T}$ld_shlibs" >&6
7370test "$ld_shlibs" = no && can_build_shared=no
7371
7372with_gnu_ld=$with_gnu_ld
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388#
7389# Do we need to explicitly link libc?
7390#
7391case "x$archive_cmds_need_lc" in
7392x|xyes)
7393  # Assume -lc should be added
7394  archive_cmds_need_lc=yes
7395
7396  if test "$enable_shared" = yes && test "$GCC" = yes; then
7397    case $archive_cmds in
7398    *'~'*)
7399      # FIXME: we may have to deal with multi-command sequences.
7400      ;;
7401    '$CC '*)
7402      # Test whether the compiler implicitly links with -lc since on some
7403      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7404      # to ld, don't add -lc before -lgcc.
7405      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7406echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7407      $RM conftest*
7408      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7409
7410      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411  (eval $ac_compile) 2>&5
7412  ac_status=$?
7413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414  (exit $ac_status); } 2>conftest.err; then
7415        soname=conftest
7416        lib=conftest
7417        libobjs=conftest.$ac_objext
7418        deplibs=
7419        wl=$lt_prog_compiler_wl
7420	pic_flag=$lt_prog_compiler_pic
7421        compiler_flags=-v
7422        linker_flags=-v
7423        verstring=
7424        output_objdir=.
7425        libname=conftest
7426        lt_save_allow_undefined_flag=$allow_undefined_flag
7427        allow_undefined_flag=
7428        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7429  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7430  ac_status=$?
7431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432  (exit $ac_status); }
7433        then
7434	  archive_cmds_need_lc=no
7435        else
7436	  archive_cmds_need_lc=yes
7437        fi
7438        allow_undefined_flag=$lt_save_allow_undefined_flag
7439      else
7440        cat conftest.err 1>&5
7441      fi
7442      $RM conftest*
7443      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7444echo "${ECHO_T}$archive_cmds_need_lc" >&6
7445      ;;
7446    esac
7447  fi
7448  ;;
7449esac
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7608echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7609
7610if test "$GCC" = yes; then
7611  case $host_os in
7612    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7613    *) lt_awk_arg="/^libraries:/" ;;
7614  esac
7615  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7616  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7617    # if the path contains ";" then we assume it to be the separator
7618    # otherwise default to the standard path separator (i.e. ":") - it is
7619    # assumed that no part of a normal pathname contains ";" but that should
7620    # okay in the real world where ";" in dirpaths is itself problematic.
7621    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7622  else
7623    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7624  fi
7625  # Ok, now we have the path, separated by spaces, we can step through it
7626  # and add multilib dir if necessary.
7627  lt_tmp_lt_search_path_spec=
7628  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7629  for lt_sys_path in $lt_search_path_spec; do
7630    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7631      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7632    else
7633      test -d "$lt_sys_path" && \
7634	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7635    fi
7636  done
7637  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7638BEGIN {RS=" "; FS="/|\n";} {
7639  lt_foo="";
7640  lt_count=0;
7641  for (lt_i = NF; lt_i > 0; lt_i--) {
7642    if ($lt_i != "" && $lt_i != ".") {
7643      if ($lt_i == "..") {
7644        lt_count++;
7645      } else {
7646        if (lt_count == 0) {
7647          lt_foo="/" $lt_i lt_foo;
7648        } else {
7649          lt_count--;
7650        }
7651      }
7652    }
7653  }
7654  if (lt_foo != "") { lt_freq[lt_foo]++; }
7655  if (lt_freq[lt_foo] == 1) { print lt_foo; }
7656}'`
7657  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7658else
7659  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7660fi
7661library_names_spec=
7662libname_spec='lib$name'
7663soname_spec=
7664shrext_cmds=".so"
7665postinstall_cmds=
7666postuninstall_cmds=
7667finish_cmds=
7668finish_eval=
7669shlibpath_var=
7670shlibpath_overrides_runpath=unknown
7671version_type=none
7672dynamic_linker="$host_os ld.so"
7673sys_lib_dlsearch_path_spec="/lib /usr/lib"
7674need_lib_prefix=unknown
7675hardcode_into_libs=no
7676
7677# when you set need_version to no, make sure it does not cause -set_version
7678# flags to be left without arguments
7679need_version=unknown
7680
7681case $host_os in
7682aix3*)
7683  version_type=linux
7684  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7685  shlibpath_var=LIBPATH
7686
7687  # AIX 3 has no versioning support, so we append a major version to the name.
7688  soname_spec='${libname}${release}${shared_ext}$major'
7689  ;;
7690
7691aix[4-9]*)
7692  version_type=linux
7693  need_lib_prefix=no
7694  need_version=no
7695  hardcode_into_libs=yes
7696  if test "$host_cpu" = ia64; then
7697    # AIX 5 supports IA64
7698    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7699    shlibpath_var=LD_LIBRARY_PATH
7700  else
7701    # With GCC up to 2.95.x, collect2 would create an import file
7702    # for dependence libraries.  The import file would start with
7703    # the line `#! .'.  This would cause the generated library to
7704    # depend on `.', always an invalid library.  This was fixed in
7705    # development snapshots of GCC prior to 3.0.
7706    case $host_os in
7707      aix4 | aix4.[01] | aix4.[01].*)
7708      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7709	   echo ' yes '
7710	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7711	:
7712      else
7713	can_build_shared=no
7714      fi
7715      ;;
7716    esac
7717    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7718    # soname into executable. Probably we can add versioning support to
7719    # collect2, so additional links can be useful in future.
7720    if test "$aix_use_runtimelinking" = yes; then
7721      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7722      # instead of lib<name>.a to let people know that these are not
7723      # typical AIX shared libraries.
7724      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7725    else
7726      # We preserve .a as extension for shared libraries through AIX4.2
7727      # and later when we are not doing run time linking.
7728      library_names_spec='${libname}${release}.a $libname.a'
7729      soname_spec='${libname}${release}${shared_ext}$major'
7730    fi
7731    shlibpath_var=LIBPATH
7732  fi
7733  ;;
7734
7735amigaos*)
7736  case $host_cpu in
7737  powerpc)
7738    # Since July 2007 AmigaOS4 officially supports .so libraries.
7739    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
7740    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7741    ;;
7742  m68k)
7743    library_names_spec='$libname.ixlibrary $libname.a'
7744    # Create ${libname}_ixlibrary.a entries in /sys/libs.
7745    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'
7746    ;;
7747  esac
7748  ;;
7749
7750beos*)
7751  library_names_spec='${libname}${shared_ext}'
7752  dynamic_linker="$host_os ld.so"
7753  shlibpath_var=LIBRARY_PATH
7754  ;;
7755
7756bsdi[45]*)
7757  version_type=linux
7758  need_version=no
7759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7760  soname_spec='${libname}${release}${shared_ext}$major'
7761  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7762  shlibpath_var=LD_LIBRARY_PATH
7763  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7764  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7765  # the default ld.so.conf also contains /usr/contrib/lib and
7766  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7767  # libtool to hard-code these into programs
7768  ;;
7769
7770cygwin* | mingw* | pw32*)
7771  version_type=windows
7772  shrext_cmds=".dll"
7773  need_version=no
7774  need_lib_prefix=no
7775
7776  case $GCC,$host_os in
7777  yes,cygwin* | yes,mingw* | yes,pw32*)
7778    library_names_spec='$libname.dll.a'
7779    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7780    postinstall_cmds='base_file=`basename \${file}`~
7781      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7782      dldir=$destdir/`dirname \$dlpath`~
7783      test -d \$dldir || mkdir -p \$dldir~
7784      $install_prog $dir/$dlname \$dldir/$dlname~
7785      chmod a+x \$dldir/$dlname~
7786      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7787        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7788      fi'
7789    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7790      dlpath=$dir/\$dldll~
7791       $RM \$dlpath'
7792    shlibpath_overrides_runpath=yes
7793
7794    case $host_os in
7795    cygwin*)
7796      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7797      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7798      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7799      ;;
7800    mingw*)
7801      # MinGW DLLs use traditional 'lib' prefix
7802      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7803      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7804      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7805        # It is most probably a Windows format PATH printed by
7806        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7807        # path with ; separators, and with drive letters. We can handle the
7808        # drive letters (cygwin fileutils understands them), so leave them,
7809        # especially as we might pass files found there to a mingw objdump,
7810        # which wouldn't understand a cygwinified path. Ahh.
7811        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7812      else
7813        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7814      fi
7815      ;;
7816    pw32*)
7817      # pw32 DLLs use 'pw' prefix rather than 'lib'
7818      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7819      ;;
7820    esac
7821    ;;
7822
7823  *)
7824    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7825    ;;
7826  esac
7827  dynamic_linker='Win32 ld.exe'
7828  # FIXME: first we should search . and the directory the executable is in
7829  shlibpath_var=PATH
7830  ;;
7831
7832darwin* | rhapsody*)
7833  dynamic_linker="$host_os dyld"
7834  version_type=darwin
7835  need_lib_prefix=no
7836  need_version=no
7837  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7838  soname_spec='${libname}${release}${major}$shared_ext'
7839  shlibpath_overrides_runpath=yes
7840  shlibpath_var=DYLD_LIBRARY_PATH
7841  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7842
7843  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
7844  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7845  ;;
7846
7847dgux*)
7848  version_type=linux
7849  need_lib_prefix=no
7850  need_version=no
7851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7852  soname_spec='${libname}${release}${shared_ext}$major'
7853  shlibpath_var=LD_LIBRARY_PATH
7854  ;;
7855
7856freebsd1*)
7857  dynamic_linker=no
7858  ;;
7859
7860freebsd* | dragonfly*)
7861  # DragonFly does not have aout.  When/if they implement a new
7862  # versioning mechanism, adjust this.
7863  if test -x /usr/bin/objformat; then
7864    objformat=`/usr/bin/objformat`
7865  else
7866    case $host_os in
7867    freebsd[123]*) objformat=aout ;;
7868    *) objformat=elf ;;
7869    esac
7870  fi
7871  # Handle Gentoo/FreeBSD as it was Linux
7872  case $host_vendor in
7873    gentoo)
7874      version_type=linux ;;
7875    *)
7876      version_type=freebsd-$objformat ;;
7877  esac
7878
7879  case $version_type in
7880    freebsd-elf*)
7881      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7882      need_version=no
7883      need_lib_prefix=no
7884      ;;
7885    freebsd-*)
7886      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7887      need_version=yes
7888      ;;
7889    linux)
7890      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7891      soname_spec='${libname}${release}${shared_ext}$major'
7892      need_lib_prefix=no
7893      need_version=no
7894      ;;
7895  esac
7896  shlibpath_var=LD_LIBRARY_PATH
7897  case $host_os in
7898  freebsd2*)
7899    shlibpath_overrides_runpath=yes
7900    ;;
7901  freebsd3.[01]* | freebsdelf3.[01]*)
7902    shlibpath_overrides_runpath=yes
7903    hardcode_into_libs=yes
7904    ;;
7905  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7906  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7907    shlibpath_overrides_runpath=no
7908    hardcode_into_libs=yes
7909    ;;
7910  *) # from 4.6 on, and DragonFly
7911    shlibpath_overrides_runpath=yes
7912    hardcode_into_libs=yes
7913    ;;
7914  esac
7915  ;;
7916
7917gnu*)
7918  version_type=linux
7919  need_lib_prefix=no
7920  need_version=no
7921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7922  soname_spec='${libname}${release}${shared_ext}$major'
7923  shlibpath_var=LD_LIBRARY_PATH
7924  hardcode_into_libs=yes
7925  ;;
7926
7927hpux9* | hpux10* | hpux11*)
7928  # Give a soname corresponding to the major version so that dld.sl refuses to
7929  # link against other versions.
7930  version_type=sunos
7931  need_lib_prefix=no
7932  need_version=no
7933  case $host_cpu in
7934  ia64*)
7935    shrext_cmds='.so'
7936    hardcode_into_libs=yes
7937    dynamic_linker="$host_os dld.so"
7938    shlibpath_var=LD_LIBRARY_PATH
7939    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7940    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7941    soname_spec='${libname}${release}${shared_ext}$major'
7942    if test "X$HPUX_IA64_MODE" = X32; then
7943      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7944    else
7945      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7946    fi
7947    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7948    ;;
7949  hppa*64*)
7950    shrext_cmds='.sl'
7951    hardcode_into_libs=yes
7952    dynamic_linker="$host_os dld.sl"
7953    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7954    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7955    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956    soname_spec='${libname}${release}${shared_ext}$major'
7957    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7958    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7959    ;;
7960  *)
7961    shrext_cmds='.sl'
7962    dynamic_linker="$host_os dld.sl"
7963    shlibpath_var=SHLIB_PATH
7964    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7965    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966    soname_spec='${libname}${release}${shared_ext}$major'
7967    ;;
7968  esac
7969  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7970  postinstall_cmds='chmod 555 $lib'
7971  ;;
7972
7973interix[3-9]*)
7974  version_type=linux
7975  need_lib_prefix=no
7976  need_version=no
7977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7978  soname_spec='${libname}${release}${shared_ext}$major'
7979  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7980  shlibpath_var=LD_LIBRARY_PATH
7981  shlibpath_overrides_runpath=no
7982  hardcode_into_libs=yes
7983  ;;
7984
7985irix5* | irix6* | nonstopux*)
7986  case $host_os in
7987    nonstopux*) version_type=nonstopux ;;
7988    *)
7989	if test "$lt_cv_prog_gnu_ld" = yes; then
7990		version_type=linux
7991	else
7992		version_type=irix
7993	fi ;;
7994  esac
7995  need_lib_prefix=no
7996  need_version=no
7997  soname_spec='${libname}${release}${shared_ext}$major'
7998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7999  case $host_os in
8000  irix5* | nonstopux*)
8001    libsuff= shlibsuff=
8002    ;;
8003  *)
8004    case $LD in # libtool.m4 will add one of these switches to LD
8005    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8006      libsuff= shlibsuff= libmagic=32-bit;;
8007    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8008      libsuff=32 shlibsuff=N32 libmagic=N32;;
8009    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8010      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8011    *) libsuff= shlibsuff= libmagic=never-match;;
8012    esac
8013    ;;
8014  esac
8015  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8016  shlibpath_overrides_runpath=no
8017  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8018  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8019  hardcode_into_libs=yes
8020  ;;
8021
8022# No shared lib support for Linux oldld, aout, or coff.
8023linux*oldld* | linux*aout* | linux*coff*)
8024  dynamic_linker=no
8025  ;;
8026
8027# This must be Linux ELF.
8028linux* | k*bsd*-gnu)
8029  version_type=linux
8030  need_lib_prefix=no
8031  need_version=no
8032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033  soname_spec='${libname}${release}${shared_ext}$major'
8034  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8035  shlibpath_var=LD_LIBRARY_PATH
8036  shlibpath_overrides_runpath=no
8037  # Some binutils ld are patched to set DT_RUNPATH
8038  save_LDFLAGS=$LDFLAGS
8039  save_libdir=$libdir
8040  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8041       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8042  cat >conftest.$ac_ext <<_ACEOF
8043/* confdefs.h.  */
8044_ACEOF
8045cat confdefs.h >>conftest.$ac_ext
8046cat >>conftest.$ac_ext <<_ACEOF
8047/* end confdefs.h.  */
8048
8049int
8050main ()
8051{
8052
8053  ;
8054  return 0;
8055}
8056_ACEOF
8057rm -f conftest.$ac_objext conftest$ac_exeext
8058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8059  (eval $ac_link) 2>conftest.er1
8060  ac_status=$?
8061  grep -v '^ *+' conftest.er1 >conftest.err
8062  rm -f conftest.er1
8063  cat conftest.err >&5
8064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065  (exit $ac_status); } &&
8066	 { ac_try='test -z "$ac_c_werror_flag"
8067			 || test ! -s conftest.err'
8068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069  (eval $ac_try) 2>&5
8070  ac_status=$?
8071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072  (exit $ac_status); }; } &&
8073	 { ac_try='test -s conftest$ac_exeext'
8074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075  (eval $ac_try) 2>&5
8076  ac_status=$?
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); }; }; then
8079  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
8080  shlibpath_overrides_runpath=yes
8081fi
8082
8083else
8084  echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
8087fi
8088rm -f conftest.err conftest.$ac_objext \
8089      conftest$ac_exeext conftest.$ac_ext
8090  LDFLAGS=$save_LDFLAGS
8091  libdir=$save_libdir
8092
8093  # This implies no fast_install, which is unacceptable.
8094  # Some rework will be needed to allow for fast_install
8095  # before this can be enabled.
8096  hardcode_into_libs=yes
8097
8098  # Append ld.so.conf contents to the search path
8099  if test -f /etc/ld.so.conf; then
8100    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8101    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8102  fi
8103
8104  # We used to test for /lib/ld.so.1 and disable shared libraries on
8105  # powerpc, because MkLinux only supported shared libraries with the
8106  # GNU dynamic linker.  Since this was broken with cross compilers,
8107  # most powerpc-linux boxes support dynamic linking these days and
8108  # people can always --disable-shared, the test was removed, and we
8109  # assume the GNU/Linux dynamic linker is in use.
8110  dynamic_linker='GNU/Linux ld.so'
8111  ;;
8112
8113netbsd*)
8114  version_type=sunos
8115  need_lib_prefix=no
8116  need_version=no
8117  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8118    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8119    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8120    dynamic_linker='NetBSD (a.out) ld.so'
8121  else
8122    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8123    soname_spec='${libname}${release}${shared_ext}$major'
8124    dynamic_linker='NetBSD ld.elf_so'
8125  fi
8126  shlibpath_var=LD_LIBRARY_PATH
8127  shlibpath_overrides_runpath=yes
8128  hardcode_into_libs=yes
8129  ;;
8130
8131newsos6)
8132  version_type=linux
8133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8134  shlibpath_var=LD_LIBRARY_PATH
8135  shlibpath_overrides_runpath=yes
8136  ;;
8137
8138*nto* | *qnx*)
8139  version_type=qnx
8140  need_lib_prefix=no
8141  need_version=no
8142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8143  soname_spec='${libname}${release}${shared_ext}$major'
8144  shlibpath_var=LD_LIBRARY_PATH
8145  shlibpath_overrides_runpath=no
8146  hardcode_into_libs=yes
8147  dynamic_linker='ldqnx.so'
8148  ;;
8149
8150openbsd*)
8151  version_type=sunos
8152  sys_lib_dlsearch_path_spec="/usr/lib"
8153  need_lib_prefix=no
8154  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8155  case $host_os in
8156    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
8157    *)				need_version=no  ;;
8158  esac
8159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8160  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8161  shlibpath_var=LD_LIBRARY_PATH
8162  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8163    case $host_os in
8164      openbsd2.[89] | openbsd2.[89].*)
8165	shlibpath_overrides_runpath=no
8166	;;
8167      *)
8168	shlibpath_overrides_runpath=yes
8169	;;
8170      esac
8171  else
8172    shlibpath_overrides_runpath=yes
8173  fi
8174  ;;
8175
8176os2*)
8177  libname_spec='$name'
8178  shrext_cmds=".dll"
8179  need_lib_prefix=no
8180  library_names_spec='$libname${shared_ext} $libname.a'
8181  dynamic_linker='OS/2 ld.exe'
8182  shlibpath_var=LIBPATH
8183  ;;
8184
8185osf3* | osf4* | osf5*)
8186  version_type=osf
8187  need_lib_prefix=no
8188  need_version=no
8189  soname_spec='${libname}${release}${shared_ext}$major'
8190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8191  shlibpath_var=LD_LIBRARY_PATH
8192  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8193  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8194  ;;
8195
8196rdos*)
8197  dynamic_linker=no
8198  ;;
8199
8200solaris*)
8201  version_type=linux
8202  need_lib_prefix=no
8203  need_version=no
8204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8205  soname_spec='${libname}${release}${shared_ext}$major'
8206  shlibpath_var=LD_LIBRARY_PATH
8207  shlibpath_overrides_runpath=yes
8208  hardcode_into_libs=yes
8209  # ldd complains unless libraries are executable
8210  postinstall_cmds='chmod +x $lib'
8211  ;;
8212
8213sunos4*)
8214  version_type=sunos
8215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8216  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8217  shlibpath_var=LD_LIBRARY_PATH
8218  shlibpath_overrides_runpath=yes
8219  if test "$with_gnu_ld" = yes; then
8220    need_lib_prefix=no
8221  fi
8222  need_version=yes
8223  ;;
8224
8225sysv4 | sysv4.3*)
8226  version_type=linux
8227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228  soname_spec='${libname}${release}${shared_ext}$major'
8229  shlibpath_var=LD_LIBRARY_PATH
8230  case $host_vendor in
8231    sni)
8232      shlibpath_overrides_runpath=no
8233      need_lib_prefix=no
8234      runpath_var=LD_RUN_PATH
8235      ;;
8236    siemens)
8237      need_lib_prefix=no
8238      ;;
8239    motorola)
8240      need_lib_prefix=no
8241      need_version=no
8242      shlibpath_overrides_runpath=no
8243      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8244      ;;
8245  esac
8246  ;;
8247
8248sysv4*MP*)
8249  if test -d /usr/nec ;then
8250    version_type=linux
8251    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8252    soname_spec='$libname${shared_ext}.$major'
8253    shlibpath_var=LD_LIBRARY_PATH
8254  fi
8255  ;;
8256
8257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8258  version_type=freebsd-elf
8259  need_lib_prefix=no
8260  need_version=no
8261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8262  soname_spec='${libname}${release}${shared_ext}$major'
8263  shlibpath_var=LD_LIBRARY_PATH
8264  shlibpath_overrides_runpath=yes
8265  hardcode_into_libs=yes
8266  if test "$with_gnu_ld" = yes; then
8267    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8268  else
8269    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8270    case $host_os in
8271      sco3.2v5*)
8272        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8273	;;
8274    esac
8275  fi
8276  sys_lib_dlsearch_path_spec='/usr/lib'
8277  ;;
8278
8279tpf*)
8280  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8281  version_type=linux
8282  need_lib_prefix=no
8283  need_version=no
8284  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285  shlibpath_var=LD_LIBRARY_PATH
8286  shlibpath_overrides_runpath=no
8287  hardcode_into_libs=yes
8288  ;;
8289
8290uts4*)
8291  version_type=linux
8292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8293  soname_spec='${libname}${release}${shared_ext}$major'
8294  shlibpath_var=LD_LIBRARY_PATH
8295  ;;
8296
8297*)
8298  dynamic_linker=no
8299  ;;
8300esac
8301echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8302echo "${ECHO_T}$dynamic_linker" >&6
8303test "$dynamic_linker" = no && can_build_shared=no
8304
8305variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8306if test "$GCC" = yes; then
8307  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8308fi
8309
8310if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8311  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8312fi
8313if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8314  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8315fi
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8404echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8405hardcode_action=
8406if test -n "$hardcode_libdir_flag_spec" ||
8407   test -n "$runpath_var" ||
8408   test "X$hardcode_automatic" = "Xyes" ; then
8409
8410  # We can hardcode non-existent directories.
8411  if test "$hardcode_direct" != no &&
8412     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8413     # have to relink, otherwise we might link with an installed library
8414     # when we should be linking with a yet-to-be-installed one
8415     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8416     test "$hardcode_minus_L" != no; then
8417    # Linking always hardcodes the temporary library directory.
8418    hardcode_action=relink
8419  else
8420    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8421    hardcode_action=immediate
8422  fi
8423else
8424  # We cannot hardcode anything, or else we can only hardcode existing
8425  # directories.
8426  hardcode_action=unsupported
8427fi
8428echo "$as_me:$LINENO: result: $hardcode_action" >&5
8429echo "${ECHO_T}$hardcode_action" >&6
8430
8431if test "$hardcode_action" = relink ||
8432   test "$inherit_rpath" = yes; then
8433  # Fast installation is not supported
8434  enable_fast_install=no
8435elif test "$shlibpath_overrides_runpath" = yes ||
8436     test "$enable_shared" = no; then
8437  # Fast installation is not necessary
8438  enable_fast_install=needless
8439fi
8440
8441
8442
8443
8444
8445
8446  if test "x$enable_dlopen" != xyes; then
8447  enable_dlopen=unknown
8448  enable_dlopen_self=unknown
8449  enable_dlopen_self_static=unknown
8450else
8451  lt_cv_dlopen=no
8452  lt_cv_dlopen_libs=
8453
8454  case $host_os in
8455  beos*)
8456    lt_cv_dlopen="load_add_on"
8457    lt_cv_dlopen_libs=
8458    lt_cv_dlopen_self=yes
8459    ;;
8460
8461  mingw* | pw32*)
8462    lt_cv_dlopen="LoadLibrary"
8463    lt_cv_dlopen_libs=
8464    ;;
8465
8466  cygwin*)
8467    lt_cv_dlopen="dlopen"
8468    lt_cv_dlopen_libs=
8469    ;;
8470
8471  darwin*)
8472  # if libdl is installed we need to link against it
8473    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8474echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8475if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8476  echo $ECHO_N "(cached) $ECHO_C" >&6
8477else
8478  ac_check_lib_save_LIBS=$LIBS
8479LIBS="-ldl  $LIBS"
8480cat >conftest.$ac_ext <<_ACEOF
8481/* confdefs.h.  */
8482_ACEOF
8483cat confdefs.h >>conftest.$ac_ext
8484cat >>conftest.$ac_ext <<_ACEOF
8485/* end confdefs.h.  */
8486
8487/* Override any gcc2 internal prototype to avoid an error.  */
8488#ifdef __cplusplus
8489extern "C"
8490#endif
8491/* We use char because int might match the return type of a gcc2
8492   builtin and then its argument prototype would still apply.  */
8493char dlopen ();
8494int
8495main ()
8496{
8497dlopen ();
8498  ;
8499  return 0;
8500}
8501_ACEOF
8502rm -f conftest.$ac_objext conftest$ac_exeext
8503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504  (eval $ac_link) 2>conftest.er1
8505  ac_status=$?
8506  grep -v '^ *+' conftest.er1 >conftest.err
8507  rm -f conftest.er1
8508  cat conftest.err >&5
8509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510  (exit $ac_status); } &&
8511	 { ac_try='test -z "$ac_c_werror_flag"
8512			 || test ! -s conftest.err'
8513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514  (eval $ac_try) 2>&5
8515  ac_status=$?
8516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517  (exit $ac_status); }; } &&
8518	 { ac_try='test -s conftest$ac_exeext'
8519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520  (eval $ac_try) 2>&5
8521  ac_status=$?
8522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523  (exit $ac_status); }; }; then
8524  ac_cv_lib_dl_dlopen=yes
8525else
8526  echo "$as_me: failed program was:" >&5
8527sed 's/^/| /' conftest.$ac_ext >&5
8528
8529ac_cv_lib_dl_dlopen=no
8530fi
8531rm -f conftest.err conftest.$ac_objext \
8532      conftest$ac_exeext conftest.$ac_ext
8533LIBS=$ac_check_lib_save_LIBS
8534fi
8535echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8536echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8537if test $ac_cv_lib_dl_dlopen = yes; then
8538  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8539else
8540
8541    lt_cv_dlopen="dyld"
8542    lt_cv_dlopen_libs=
8543    lt_cv_dlopen_self=yes
8544
8545fi
8546
8547    ;;
8548
8549  *)
8550    echo "$as_me:$LINENO: checking for shl_load" >&5
8551echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8552if test "${ac_cv_func_shl_load+set}" = set; then
8553  echo $ECHO_N "(cached) $ECHO_C" >&6
8554else
8555  cat >conftest.$ac_ext <<_ACEOF
8556/* confdefs.h.  */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h.  */
8561/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8562   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8563#define shl_load innocuous_shl_load
8564
8565/* System header to define __stub macros and hopefully few prototypes,
8566    which can conflict with char shl_load (); below.
8567    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8568    <limits.h> exists even on freestanding compilers.  */
8569
8570#ifdef __STDC__
8571# include <limits.h>
8572#else
8573# include <assert.h>
8574#endif
8575
8576#undef shl_load
8577
8578/* Override any gcc2 internal prototype to avoid an error.  */
8579#ifdef __cplusplus
8580extern "C"
8581{
8582#endif
8583/* We use char because int might match the return type of a gcc2
8584   builtin and then its argument prototype would still apply.  */
8585char shl_load ();
8586/* The GNU C library defines this for functions which it implements
8587    to always fail with ENOSYS.  Some functions are actually named
8588    something starting with __ and the normal name is an alias.  */
8589#if defined (__stub_shl_load) || defined (__stub___shl_load)
8590choke me
8591#else
8592char (*f) () = shl_load;
8593#endif
8594#ifdef __cplusplus
8595}
8596#endif
8597
8598int
8599main ()
8600{
8601return f != shl_load;
8602  ;
8603  return 0;
8604}
8605_ACEOF
8606rm -f conftest.$ac_objext conftest$ac_exeext
8607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608  (eval $ac_link) 2>conftest.er1
8609  ac_status=$?
8610  grep -v '^ *+' conftest.er1 >conftest.err
8611  rm -f conftest.er1
8612  cat conftest.err >&5
8613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614  (exit $ac_status); } &&
8615	 { ac_try='test -z "$ac_c_werror_flag"
8616			 || test ! -s conftest.err'
8617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618  (eval $ac_try) 2>&5
8619  ac_status=$?
8620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621  (exit $ac_status); }; } &&
8622	 { ac_try='test -s conftest$ac_exeext'
8623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624  (eval $ac_try) 2>&5
8625  ac_status=$?
8626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627  (exit $ac_status); }; }; then
8628  ac_cv_func_shl_load=yes
8629else
8630  echo "$as_me: failed program was:" >&5
8631sed 's/^/| /' conftest.$ac_ext >&5
8632
8633ac_cv_func_shl_load=no
8634fi
8635rm -f conftest.err conftest.$ac_objext \
8636      conftest$ac_exeext conftest.$ac_ext
8637fi
8638echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8639echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8640if test $ac_cv_func_shl_load = yes; then
8641  lt_cv_dlopen="shl_load"
8642else
8643  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8644echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8645if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8646  echo $ECHO_N "(cached) $ECHO_C" >&6
8647else
8648  ac_check_lib_save_LIBS=$LIBS
8649LIBS="-ldld  $LIBS"
8650cat >conftest.$ac_ext <<_ACEOF
8651/* confdefs.h.  */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h.  */
8656
8657/* Override any gcc2 internal prototype to avoid an error.  */
8658#ifdef __cplusplus
8659extern "C"
8660#endif
8661/* We use char because int might match the return type of a gcc2
8662   builtin and then its argument prototype would still apply.  */
8663char shl_load ();
8664int
8665main ()
8666{
8667shl_load ();
8668  ;
8669  return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext conftest$ac_exeext
8673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674  (eval $ac_link) 2>conftest.er1
8675  ac_status=$?
8676  grep -v '^ *+' conftest.er1 >conftest.err
8677  rm -f conftest.er1
8678  cat conftest.err >&5
8679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680  (exit $ac_status); } &&
8681	 { ac_try='test -z "$ac_c_werror_flag"
8682			 || test ! -s conftest.err'
8683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684  (eval $ac_try) 2>&5
8685  ac_status=$?
8686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687  (exit $ac_status); }; } &&
8688	 { ac_try='test -s conftest$ac_exeext'
8689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690  (eval $ac_try) 2>&5
8691  ac_status=$?
8692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693  (exit $ac_status); }; }; then
8694  ac_cv_lib_dld_shl_load=yes
8695else
8696  echo "$as_me: failed program was:" >&5
8697sed 's/^/| /' conftest.$ac_ext >&5
8698
8699ac_cv_lib_dld_shl_load=no
8700fi
8701rm -f conftest.err conftest.$ac_objext \
8702      conftest$ac_exeext conftest.$ac_ext
8703LIBS=$ac_check_lib_save_LIBS
8704fi
8705echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8706echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8707if test $ac_cv_lib_dld_shl_load = yes; then
8708  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
8709else
8710  echo "$as_me:$LINENO: checking for dlopen" >&5
8711echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8712if test "${ac_cv_func_dlopen+set}" = set; then
8713  echo $ECHO_N "(cached) $ECHO_C" >&6
8714else
8715  cat >conftest.$ac_ext <<_ACEOF
8716/* confdefs.h.  */
8717_ACEOF
8718cat confdefs.h >>conftest.$ac_ext
8719cat >>conftest.$ac_ext <<_ACEOF
8720/* end confdefs.h.  */
8721/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8722   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8723#define dlopen innocuous_dlopen
8724
8725/* System header to define __stub macros and hopefully few prototypes,
8726    which can conflict with char dlopen (); below.
8727    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8728    <limits.h> exists even on freestanding compilers.  */
8729
8730#ifdef __STDC__
8731# include <limits.h>
8732#else
8733# include <assert.h>
8734#endif
8735
8736#undef dlopen
8737
8738/* Override any gcc2 internal prototype to avoid an error.  */
8739#ifdef __cplusplus
8740extern "C"
8741{
8742#endif
8743/* We use char because int might match the return type of a gcc2
8744   builtin and then its argument prototype would still apply.  */
8745char dlopen ();
8746/* The GNU C library defines this for functions which it implements
8747    to always fail with ENOSYS.  Some functions are actually named
8748    something starting with __ and the normal name is an alias.  */
8749#if defined (__stub_dlopen) || defined (__stub___dlopen)
8750choke me
8751#else
8752char (*f) () = dlopen;
8753#endif
8754#ifdef __cplusplus
8755}
8756#endif
8757
8758int
8759main ()
8760{
8761return f != dlopen;
8762  ;
8763  return 0;
8764}
8765_ACEOF
8766rm -f conftest.$ac_objext conftest$ac_exeext
8767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8768  (eval $ac_link) 2>conftest.er1
8769  ac_status=$?
8770  grep -v '^ *+' conftest.er1 >conftest.err
8771  rm -f conftest.er1
8772  cat conftest.err >&5
8773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774  (exit $ac_status); } &&
8775	 { ac_try='test -z "$ac_c_werror_flag"
8776			 || test ! -s conftest.err'
8777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778  (eval $ac_try) 2>&5
8779  ac_status=$?
8780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781  (exit $ac_status); }; } &&
8782	 { ac_try='test -s conftest$ac_exeext'
8783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784  (eval $ac_try) 2>&5
8785  ac_status=$?
8786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787  (exit $ac_status); }; }; then
8788  ac_cv_func_dlopen=yes
8789else
8790  echo "$as_me: failed program was:" >&5
8791sed 's/^/| /' conftest.$ac_ext >&5
8792
8793ac_cv_func_dlopen=no
8794fi
8795rm -f conftest.err conftest.$ac_objext \
8796      conftest$ac_exeext conftest.$ac_ext
8797fi
8798echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8799echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8800if test $ac_cv_func_dlopen = yes; then
8801  lt_cv_dlopen="dlopen"
8802else
8803  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8804echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8805if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8806  echo $ECHO_N "(cached) $ECHO_C" >&6
8807else
8808  ac_check_lib_save_LIBS=$LIBS
8809LIBS="-ldl  $LIBS"
8810cat >conftest.$ac_ext <<_ACEOF
8811/* confdefs.h.  */
8812_ACEOF
8813cat confdefs.h >>conftest.$ac_ext
8814cat >>conftest.$ac_ext <<_ACEOF
8815/* end confdefs.h.  */
8816
8817/* Override any gcc2 internal prototype to avoid an error.  */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821/* We use char because int might match the return type of a gcc2
8822   builtin and then its argument prototype would still apply.  */
8823char dlopen ();
8824int
8825main ()
8826{
8827dlopen ();
8828  ;
8829  return 0;
8830}
8831_ACEOF
8832rm -f conftest.$ac_objext conftest$ac_exeext
8833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834  (eval $ac_link) 2>conftest.er1
8835  ac_status=$?
8836  grep -v '^ *+' conftest.er1 >conftest.err
8837  rm -f conftest.er1
8838  cat conftest.err >&5
8839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840  (exit $ac_status); } &&
8841	 { ac_try='test -z "$ac_c_werror_flag"
8842			 || test ! -s conftest.err'
8843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844  (eval $ac_try) 2>&5
8845  ac_status=$?
8846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847  (exit $ac_status); }; } &&
8848	 { ac_try='test -s conftest$ac_exeext'
8849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850  (eval $ac_try) 2>&5
8851  ac_status=$?
8852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853  (exit $ac_status); }; }; then
8854  ac_cv_lib_dl_dlopen=yes
8855else
8856  echo "$as_me: failed program was:" >&5
8857sed 's/^/| /' conftest.$ac_ext >&5
8858
8859ac_cv_lib_dl_dlopen=no
8860fi
8861rm -f conftest.err conftest.$ac_objext \
8862      conftest$ac_exeext conftest.$ac_ext
8863LIBS=$ac_check_lib_save_LIBS
8864fi
8865echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8866echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8867if test $ac_cv_lib_dl_dlopen = yes; then
8868  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8869else
8870  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8871echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8872if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8873  echo $ECHO_N "(cached) $ECHO_C" >&6
8874else
8875  ac_check_lib_save_LIBS=$LIBS
8876LIBS="-lsvld  $LIBS"
8877cat >conftest.$ac_ext <<_ACEOF
8878/* confdefs.h.  */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h.  */
8883
8884/* Override any gcc2 internal prototype to avoid an error.  */
8885#ifdef __cplusplus
8886extern "C"
8887#endif
8888/* We use char because int might match the return type of a gcc2
8889   builtin and then its argument prototype would still apply.  */
8890char dlopen ();
8891int
8892main ()
8893{
8894dlopen ();
8895  ;
8896  return 0;
8897}
8898_ACEOF
8899rm -f conftest.$ac_objext conftest$ac_exeext
8900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901  (eval $ac_link) 2>conftest.er1
8902  ac_status=$?
8903  grep -v '^ *+' conftest.er1 >conftest.err
8904  rm -f conftest.er1
8905  cat conftest.err >&5
8906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907  (exit $ac_status); } &&
8908	 { ac_try='test -z "$ac_c_werror_flag"
8909			 || test ! -s conftest.err'
8910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911  (eval $ac_try) 2>&5
8912  ac_status=$?
8913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914  (exit $ac_status); }; } &&
8915	 { ac_try='test -s conftest$ac_exeext'
8916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917  (eval $ac_try) 2>&5
8918  ac_status=$?
8919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920  (exit $ac_status); }; }; then
8921  ac_cv_lib_svld_dlopen=yes
8922else
8923  echo "$as_me: failed program was:" >&5
8924sed 's/^/| /' conftest.$ac_ext >&5
8925
8926ac_cv_lib_svld_dlopen=no
8927fi
8928rm -f conftest.err conftest.$ac_objext \
8929      conftest$ac_exeext conftest.$ac_ext
8930LIBS=$ac_check_lib_save_LIBS
8931fi
8932echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8933echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8934if test $ac_cv_lib_svld_dlopen = yes; then
8935  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8936else
8937  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8938echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8939if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8940  echo $ECHO_N "(cached) $ECHO_C" >&6
8941else
8942  ac_check_lib_save_LIBS=$LIBS
8943LIBS="-ldld  $LIBS"
8944cat >conftest.$ac_ext <<_ACEOF
8945/* confdefs.h.  */
8946_ACEOF
8947cat confdefs.h >>conftest.$ac_ext
8948cat >>conftest.$ac_ext <<_ACEOF
8949/* end confdefs.h.  */
8950
8951/* Override any gcc2 internal prototype to avoid an error.  */
8952#ifdef __cplusplus
8953extern "C"
8954#endif
8955/* We use char because int might match the return type of a gcc2
8956   builtin and then its argument prototype would still apply.  */
8957char dld_link ();
8958int
8959main ()
8960{
8961dld_link ();
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext conftest$ac_exeext
8967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968  (eval $ac_link) 2>conftest.er1
8969  ac_status=$?
8970  grep -v '^ *+' conftest.er1 >conftest.err
8971  rm -f conftest.er1
8972  cat conftest.err >&5
8973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974  (exit $ac_status); } &&
8975	 { ac_try='test -z "$ac_c_werror_flag"
8976			 || test ! -s conftest.err'
8977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978  (eval $ac_try) 2>&5
8979  ac_status=$?
8980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981  (exit $ac_status); }; } &&
8982	 { ac_try='test -s conftest$ac_exeext'
8983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984  (eval $ac_try) 2>&5
8985  ac_status=$?
8986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987  (exit $ac_status); }; }; then
8988  ac_cv_lib_dld_dld_link=yes
8989else
8990  echo "$as_me: failed program was:" >&5
8991sed 's/^/| /' conftest.$ac_ext >&5
8992
8993ac_cv_lib_dld_dld_link=no
8994fi
8995rm -f conftest.err conftest.$ac_objext \
8996      conftest$ac_exeext conftest.$ac_ext
8997LIBS=$ac_check_lib_save_LIBS
8998fi
8999echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9000echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9001if test $ac_cv_lib_dld_dld_link = yes; then
9002  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9003fi
9004
9005
9006fi
9007
9008
9009fi
9010
9011
9012fi
9013
9014
9015fi
9016
9017
9018fi
9019
9020    ;;
9021  esac
9022
9023  if test "x$lt_cv_dlopen" != xno; then
9024    enable_dlopen=yes
9025  else
9026    enable_dlopen=no
9027  fi
9028
9029  case $lt_cv_dlopen in
9030  dlopen)
9031    save_CPPFLAGS="$CPPFLAGS"
9032    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9033
9034    save_LDFLAGS="$LDFLAGS"
9035    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9036
9037    save_LIBS="$LIBS"
9038    LIBS="$lt_cv_dlopen_libs $LIBS"
9039
9040    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9041echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9042if test "${lt_cv_dlopen_self+set}" = set; then
9043  echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045  	  if test "$cross_compiling" = yes; then :
9046  lt_cv_dlopen_self=cross
9047else
9048  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9049  lt_status=$lt_dlunknown
9050  cat > conftest.$ac_ext <<_LT_EOF
9051#line 9057 "configure"
9052#include "confdefs.h"
9053
9054#if HAVE_DLFCN_H
9055#include <dlfcn.h>
9056#endif
9057
9058#include <stdio.h>
9059
9060#ifdef RTLD_GLOBAL
9061#  define LT_DLGLOBAL		RTLD_GLOBAL
9062#else
9063#  ifdef DL_GLOBAL
9064#    define LT_DLGLOBAL		DL_GLOBAL
9065#  else
9066#    define LT_DLGLOBAL		0
9067#  endif
9068#endif
9069
9070/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9071   find out it does not work in some platform. */
9072#ifndef LT_DLLAZY_OR_NOW
9073#  ifdef RTLD_LAZY
9074#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9075#  else
9076#    ifdef DL_LAZY
9077#      define LT_DLLAZY_OR_NOW		DL_LAZY
9078#    else
9079#      ifdef RTLD_NOW
9080#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9081#      else
9082#        ifdef DL_NOW
9083#          define LT_DLLAZY_OR_NOW	DL_NOW
9084#        else
9085#          define LT_DLLAZY_OR_NOW	0
9086#        endif
9087#      endif
9088#    endif
9089#  endif
9090#endif
9091
9092#ifdef __cplusplus
9093extern "C" void exit (int);
9094#endif
9095
9096void fnord() { int i=42;}
9097int main ()
9098{
9099  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9100  int status = $lt_dlunknown;
9101
9102  if (self)
9103    {
9104      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9105      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9106      /* dlclose (self); */
9107    }
9108  else
9109    puts (dlerror ());
9110
9111    exit (status);
9112}
9113_LT_EOF
9114  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115  (eval $ac_link) 2>&5
9116  ac_status=$?
9117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9119    (./conftest; exit; ) >&5 2>/dev/null
9120    lt_status=$?
9121    case x$lt_status in
9122      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9123      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9124      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9125    esac
9126  else :
9127    # compilation failed
9128    lt_cv_dlopen_self=no
9129  fi
9130fi
9131rm -fr conftest*
9132
9133
9134fi
9135echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9136echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9137
9138    if test "x$lt_cv_dlopen_self" = xyes; then
9139      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9140      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9141echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9142if test "${lt_cv_dlopen_self_static+set}" = set; then
9143  echo $ECHO_N "(cached) $ECHO_C" >&6
9144else
9145  	  if test "$cross_compiling" = yes; then :
9146  lt_cv_dlopen_self_static=cross
9147else
9148  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9149  lt_status=$lt_dlunknown
9150  cat > conftest.$ac_ext <<_LT_EOF
9151#line 9157 "configure"
9152#include "confdefs.h"
9153
9154#if HAVE_DLFCN_H
9155#include <dlfcn.h>
9156#endif
9157
9158#include <stdio.h>
9159
9160#ifdef RTLD_GLOBAL
9161#  define LT_DLGLOBAL		RTLD_GLOBAL
9162#else
9163#  ifdef DL_GLOBAL
9164#    define LT_DLGLOBAL		DL_GLOBAL
9165#  else
9166#    define LT_DLGLOBAL		0
9167#  endif
9168#endif
9169
9170/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9171   find out it does not work in some platform. */
9172#ifndef LT_DLLAZY_OR_NOW
9173#  ifdef RTLD_LAZY
9174#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9175#  else
9176#    ifdef DL_LAZY
9177#      define LT_DLLAZY_OR_NOW		DL_LAZY
9178#    else
9179#      ifdef RTLD_NOW
9180#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9181#      else
9182#        ifdef DL_NOW
9183#          define LT_DLLAZY_OR_NOW	DL_NOW
9184#        else
9185#          define LT_DLLAZY_OR_NOW	0
9186#        endif
9187#      endif
9188#    endif
9189#  endif
9190#endif
9191
9192#ifdef __cplusplus
9193extern "C" void exit (int);
9194#endif
9195
9196void fnord() { int i=42;}
9197int main ()
9198{
9199  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9200  int status = $lt_dlunknown;
9201
9202  if (self)
9203    {
9204      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9205      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9206      /* dlclose (self); */
9207    }
9208  else
9209    puts (dlerror ());
9210
9211    exit (status);
9212}
9213_LT_EOF
9214  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9215  (eval $ac_link) 2>&5
9216  ac_status=$?
9217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9219    (./conftest; exit; ) >&5 2>/dev/null
9220    lt_status=$?
9221    case x$lt_status in
9222      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9223      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9224      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9225    esac
9226  else :
9227    # compilation failed
9228    lt_cv_dlopen_self_static=no
9229  fi
9230fi
9231rm -fr conftest*
9232
9233
9234fi
9235echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9236echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9237    fi
9238
9239    CPPFLAGS="$save_CPPFLAGS"
9240    LDFLAGS="$save_LDFLAGS"
9241    LIBS="$save_LIBS"
9242    ;;
9243  esac
9244
9245  case $lt_cv_dlopen_self in
9246  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9247  *) enable_dlopen_self=unknown ;;
9248  esac
9249
9250  case $lt_cv_dlopen_self_static in
9251  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9252  *) enable_dlopen_self_static=unknown ;;
9253  esac
9254fi
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272striplib=
9273old_striplib=
9274echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9275echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9276if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9277  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9278  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9279  echo "$as_me:$LINENO: result: yes" >&5
9280echo "${ECHO_T}yes" >&6
9281else
9282# FIXME - insert some real tests, host_os isn't really good enough
9283  case $host_os in
9284  darwin*)
9285    if test -n "$STRIP" ; then
9286      striplib="$STRIP -x"
9287      old_striplib="$STRIP -S"
9288      echo "$as_me:$LINENO: result: yes" >&5
9289echo "${ECHO_T}yes" >&6
9290    else
9291      echo "$as_me:$LINENO: result: no" >&5
9292echo "${ECHO_T}no" >&6
9293    fi
9294    ;;
9295  *)
9296    echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6
9298    ;;
9299  esac
9300fi
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313  # Report which library types will actually be built
9314  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9315echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9316  echo "$as_me:$LINENO: result: $can_build_shared" >&5
9317echo "${ECHO_T}$can_build_shared" >&6
9318
9319  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9320echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9321  test "$can_build_shared" = "no" && enable_shared=no
9322
9323  # On AIX, shared libraries and static libraries use the same namespace, and
9324  # are all built from PIC.
9325  case $host_os in
9326  aix3*)
9327    test "$enable_shared" = yes && enable_static=no
9328    if test -n "$RANLIB"; then
9329      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9330      postinstall_cmds='$RANLIB $lib'
9331    fi
9332    ;;
9333
9334  aix[4-9]*)
9335    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9336      test "$enable_shared" = yes && enable_static=no
9337    fi
9338    ;;
9339  esac
9340  echo "$as_me:$LINENO: result: $enable_shared" >&5
9341echo "${ECHO_T}$enable_shared" >&6
9342
9343  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9344echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9345  # Make sure either enable_shared or enable_static is yes.
9346  test "$enable_shared" = yes || enable_static=yes
9347  echo "$as_me:$LINENO: result: $enable_static" >&5
9348echo "${ECHO_T}$enable_static" >&6
9349
9350
9351
9352
9353fi
9354ac_ext=c
9355ac_cpp='$CPP $CPPFLAGS'
9356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358ac_compiler_gnu=$ac_cv_c_compiler_gnu
9359
9360CC="$lt_save_CC"
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374                  ac_config_commands="$ac_config_commands libtool"
9375
9376
9377
9378
9379# Only expand once:
9380
9381
9382# Find a good install program.  We prefer a C program (faster),
9383# so one script is as good as another.  But avoid the broken or
9384# incompatible versions:
9385# SysV /etc/install, /usr/sbin/install
9386# SunOS /usr/etc/install
9387# IRIX /sbin/install
9388# AIX /bin/install
9389# AmigaOS /C/install, which installs bootblocks on floppy discs
9390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9391# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9393# OS/2's system install, which has a completely different semantic
9394# ./install, which can be erroneously created by make from ./install.sh.
9395echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9396echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9397if test -z "$INSTALL"; then
9398if test "${ac_cv_path_install+set}" = set; then
9399  echo $ECHO_N "(cached) $ECHO_C" >&6
9400else
9401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402for as_dir in $PATH
9403do
9404  IFS=$as_save_IFS
9405  test -z "$as_dir" && as_dir=.
9406  # Account for people who put trailing slashes in PATH elements.
9407case $as_dir/ in
9408  ./ | .// | /cC/* | \
9409  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9410  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9411  /usr/ucb/* ) ;;
9412  *)
9413    # OSF1 and SCO ODT 3.0 have their own names for install.
9414    # Don't use installbsd from OSF since it installs stuff as root
9415    # by default.
9416    for ac_prog in ginstall scoinst install; do
9417      for ac_exec_ext in '' $ac_executable_extensions; do
9418	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9419	  if test $ac_prog = install &&
9420	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9421	    # AIX install.  It has an incompatible calling convention.
9422	    :
9423	  elif test $ac_prog = install &&
9424	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9425	    # program-specific install script used by HP pwplus--don't use.
9426	    :
9427	  else
9428	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9429	    break 3
9430	  fi
9431	fi
9432      done
9433    done
9434    ;;
9435esac
9436done
9437
9438
9439fi
9440  if test "${ac_cv_path_install+set}" = set; then
9441    INSTALL=$ac_cv_path_install
9442  else
9443    # As a last resort, use the slow shell script.  We don't cache a
9444    # path for INSTALL within a source directory, because that will
9445    # break other packages using the cache if that directory is
9446    # removed, or if the path is relative.
9447    INSTALL=$ac_install_sh
9448  fi
9449fi
9450echo "$as_me:$LINENO: result: $INSTALL" >&5
9451echo "${ECHO_T}$INSTALL" >&6
9452
9453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9454# It thinks the first close brace ends the variable substitution.
9455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9456
9457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9458
9459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9460
9461for ac_prog in gawk mawk nawk awk
9462do
9463  # Extract the first word of "$ac_prog", so it can be a program name with args.
9464set dummy $ac_prog; ac_word=$2
9465echo "$as_me:$LINENO: checking for $ac_word" >&5
9466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9467if test "${ac_cv_prog_AWK+set}" = set; then
9468  echo $ECHO_N "(cached) $ECHO_C" >&6
9469else
9470  if test -n "$AWK"; then
9471  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9472else
9473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474for as_dir in $PATH
9475do
9476  IFS=$as_save_IFS
9477  test -z "$as_dir" && as_dir=.
9478  for ac_exec_ext in '' $ac_executable_extensions; do
9479  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9480    ac_cv_prog_AWK="$ac_prog"
9481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9482    break 2
9483  fi
9484done
9485done
9486
9487fi
9488fi
9489AWK=$ac_cv_prog_AWK
9490if test -n "$AWK"; then
9491  echo "$as_me:$LINENO: result: $AWK" >&5
9492echo "${ECHO_T}$AWK" >&6
9493else
9494  echo "$as_me:$LINENO: result: no" >&5
9495echo "${ECHO_T}no" >&6
9496fi
9497
9498  test -n "$AWK" && break
9499done
9500
9501
9502#########
9503# Enable large file support (if special flags are necessary)
9504#
9505# Check whether --enable-largefile or --disable-largefile was given.
9506if test "${enable_largefile+set}" = set; then
9507  enableval="$enable_largefile"
9508
9509fi;
9510if test "$enable_largefile" != no; then
9511
9512  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9513echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9514if test "${ac_cv_sys_largefile_CC+set}" = set; then
9515  echo $ECHO_N "(cached) $ECHO_C" >&6
9516else
9517  ac_cv_sys_largefile_CC=no
9518     if test "$GCC" != yes; then
9519       ac_save_CC=$CC
9520       while :; do
9521     	 # IRIX 6.2 and later do not support large files by default,
9522     	 # so use the C compiler's -n32 option if that helps.
9523	 cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h.  */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h.  */
9529#include <sys/types.h>
9530 /* Check that off_t can represent 2**63 - 1 correctly.
9531    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9532    since some C++ compilers masquerading as C compilers
9533    incorrectly reject 9223372036854775807.  */
9534#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9535  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9536		       && LARGE_OFF_T % 2147483647 == 1)
9537		      ? 1 : -1];
9538int
9539main ()
9540{
9541
9542  ;
9543  return 0;
9544}
9545_ACEOF
9546     	 rm -f conftest.$ac_objext
9547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9548  (eval $ac_compile) 2>conftest.er1
9549  ac_status=$?
9550  grep -v '^ *+' conftest.er1 >conftest.err
9551  rm -f conftest.er1
9552  cat conftest.err >&5
9553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554  (exit $ac_status); } &&
9555	 { ac_try='test -z "$ac_c_werror_flag"
9556			 || test ! -s conftest.err'
9557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558  (eval $ac_try) 2>&5
9559  ac_status=$?
9560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561  (exit $ac_status); }; } &&
9562	 { ac_try='test -s conftest.$ac_objext'
9563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564  (eval $ac_try) 2>&5
9565  ac_status=$?
9566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567  (exit $ac_status); }; }; then
9568  break
9569else
9570  echo "$as_me: failed program was:" >&5
9571sed 's/^/| /' conftest.$ac_ext >&5
9572
9573fi
9574rm -f conftest.err conftest.$ac_objext
9575     	 CC="$CC -n32"
9576     	 rm -f conftest.$ac_objext
9577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578  (eval $ac_compile) 2>conftest.er1
9579  ac_status=$?
9580  grep -v '^ *+' conftest.er1 >conftest.err
9581  rm -f conftest.er1
9582  cat conftest.err >&5
9583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584  (exit $ac_status); } &&
9585	 { ac_try='test -z "$ac_c_werror_flag"
9586			 || test ! -s conftest.err'
9587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588  (eval $ac_try) 2>&5
9589  ac_status=$?
9590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591  (exit $ac_status); }; } &&
9592	 { ac_try='test -s conftest.$ac_objext'
9593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594  (eval $ac_try) 2>&5
9595  ac_status=$?
9596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597  (exit $ac_status); }; }; then
9598  ac_cv_sys_largefile_CC=' -n32'; break
9599else
9600  echo "$as_me: failed program was:" >&5
9601sed 's/^/| /' conftest.$ac_ext >&5
9602
9603fi
9604rm -f conftest.err conftest.$ac_objext
9605	 break
9606       done
9607       CC=$ac_save_CC
9608       rm -f conftest.$ac_ext
9609    fi
9610fi
9611echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9612echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9613  if test "$ac_cv_sys_largefile_CC" != no; then
9614    CC=$CC$ac_cv_sys_largefile_CC
9615  fi
9616
9617  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9618echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9619if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9620  echo $ECHO_N "(cached) $ECHO_C" >&6
9621else
9622  while :; do
9623  ac_cv_sys_file_offset_bits=no
9624  cat >conftest.$ac_ext <<_ACEOF
9625/* confdefs.h.  */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h.  */
9630#include <sys/types.h>
9631 /* Check that off_t can represent 2**63 - 1 correctly.
9632    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9633    since some C++ compilers masquerading as C compilers
9634    incorrectly reject 9223372036854775807.  */
9635#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9636  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9637		       && LARGE_OFF_T % 2147483647 == 1)
9638		      ? 1 : -1];
9639int
9640main ()
9641{
9642
9643  ;
9644  return 0;
9645}
9646_ACEOF
9647rm -f conftest.$ac_objext
9648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9649  (eval $ac_compile) 2>conftest.er1
9650  ac_status=$?
9651  grep -v '^ *+' conftest.er1 >conftest.err
9652  rm -f conftest.er1
9653  cat conftest.err >&5
9654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655  (exit $ac_status); } &&
9656	 { ac_try='test -z "$ac_c_werror_flag"
9657			 || test ! -s conftest.err'
9658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659  (eval $ac_try) 2>&5
9660  ac_status=$?
9661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662  (exit $ac_status); }; } &&
9663	 { ac_try='test -s conftest.$ac_objext'
9664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665  (eval $ac_try) 2>&5
9666  ac_status=$?
9667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668  (exit $ac_status); }; }; then
9669  break
9670else
9671  echo "$as_me: failed program was:" >&5
9672sed 's/^/| /' conftest.$ac_ext >&5
9673
9674fi
9675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9676  cat >conftest.$ac_ext <<_ACEOF
9677/* confdefs.h.  */
9678_ACEOF
9679cat confdefs.h >>conftest.$ac_ext
9680cat >>conftest.$ac_ext <<_ACEOF
9681/* end confdefs.h.  */
9682#define _FILE_OFFSET_BITS 64
9683#include <sys/types.h>
9684 /* Check that off_t can represent 2**63 - 1 correctly.
9685    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9686    since some C++ compilers masquerading as C compilers
9687    incorrectly reject 9223372036854775807.  */
9688#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9689  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9690		       && LARGE_OFF_T % 2147483647 == 1)
9691		      ? 1 : -1];
9692int
9693main ()
9694{
9695
9696  ;
9697  return 0;
9698}
9699_ACEOF
9700rm -f conftest.$ac_objext
9701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702  (eval $ac_compile) 2>conftest.er1
9703  ac_status=$?
9704  grep -v '^ *+' conftest.er1 >conftest.err
9705  rm -f conftest.er1
9706  cat conftest.err >&5
9707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708  (exit $ac_status); } &&
9709	 { ac_try='test -z "$ac_c_werror_flag"
9710			 || test ! -s conftest.err'
9711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712  (eval $ac_try) 2>&5
9713  ac_status=$?
9714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715  (exit $ac_status); }; } &&
9716	 { ac_try='test -s conftest.$ac_objext'
9717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718  (eval $ac_try) 2>&5
9719  ac_status=$?
9720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721  (exit $ac_status); }; }; then
9722  ac_cv_sys_file_offset_bits=64; break
9723else
9724  echo "$as_me: failed program was:" >&5
9725sed 's/^/| /' conftest.$ac_ext >&5
9726
9727fi
9728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9729  break
9730done
9731fi
9732echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9733echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9734if test "$ac_cv_sys_file_offset_bits" != no; then
9735
9736cat >>confdefs.h <<_ACEOF
9737#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9738_ACEOF
9739
9740fi
9741rm -f conftest*
9742  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9743echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9744if test "${ac_cv_sys_large_files+set}" = set; then
9745  echo $ECHO_N "(cached) $ECHO_C" >&6
9746else
9747  while :; do
9748  ac_cv_sys_large_files=no
9749  cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h.  */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h.  */
9755#include <sys/types.h>
9756 /* Check that off_t can represent 2**63 - 1 correctly.
9757    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9758    since some C++ compilers masquerading as C compilers
9759    incorrectly reject 9223372036854775807.  */
9760#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9761  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9762		       && LARGE_OFF_T % 2147483647 == 1)
9763		      ? 1 : -1];
9764int
9765main ()
9766{
9767
9768  ;
9769  return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext
9773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9774  (eval $ac_compile) 2>conftest.er1
9775  ac_status=$?
9776  grep -v '^ *+' conftest.er1 >conftest.err
9777  rm -f conftest.er1
9778  cat conftest.err >&5
9779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780  (exit $ac_status); } &&
9781	 { ac_try='test -z "$ac_c_werror_flag"
9782			 || test ! -s conftest.err'
9783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784  (eval $ac_try) 2>&5
9785  ac_status=$?
9786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787  (exit $ac_status); }; } &&
9788	 { ac_try='test -s conftest.$ac_objext'
9789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790  (eval $ac_try) 2>&5
9791  ac_status=$?
9792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793  (exit $ac_status); }; }; then
9794  break
9795else
9796  echo "$as_me: failed program was:" >&5
9797sed 's/^/| /' conftest.$ac_ext >&5
9798
9799fi
9800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9801  cat >conftest.$ac_ext <<_ACEOF
9802/* confdefs.h.  */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h.  */
9807#define _LARGE_FILES 1
9808#include <sys/types.h>
9809 /* Check that off_t can represent 2**63 - 1 correctly.
9810    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9811    since some C++ compilers masquerading as C compilers
9812    incorrectly reject 9223372036854775807.  */
9813#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9814  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9815		       && LARGE_OFF_T % 2147483647 == 1)
9816		      ? 1 : -1];
9817int
9818main ()
9819{
9820
9821  ;
9822  return 0;
9823}
9824_ACEOF
9825rm -f conftest.$ac_objext
9826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827  (eval $ac_compile) 2>conftest.er1
9828  ac_status=$?
9829  grep -v '^ *+' conftest.er1 >conftest.err
9830  rm -f conftest.er1
9831  cat conftest.err >&5
9832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833  (exit $ac_status); } &&
9834	 { ac_try='test -z "$ac_c_werror_flag"
9835			 || test ! -s conftest.err'
9836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837  (eval $ac_try) 2>&5
9838  ac_status=$?
9839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840  (exit $ac_status); }; } &&
9841	 { ac_try='test -s conftest.$ac_objext'
9842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843  (eval $ac_try) 2>&5
9844  ac_status=$?
9845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846  (exit $ac_status); }; }; then
9847  ac_cv_sys_large_files=1; break
9848else
9849  echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
9852fi
9853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9854  break
9855done
9856fi
9857echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9858echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9859if test "$ac_cv_sys_large_files" != no; then
9860
9861cat >>confdefs.h <<_ACEOF
9862#define _LARGE_FILES $ac_cv_sys_large_files
9863_ACEOF
9864
9865fi
9866rm -f conftest*
9867fi
9868
9869
9870#########
9871# Check for needed/wanted data types
9872echo "$as_me:$LINENO: checking for int8_t" >&5
9873echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
9874if test "${ac_cv_type_int8_t+set}" = set; then
9875  echo $ECHO_N "(cached) $ECHO_C" >&6
9876else
9877  cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h.  */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h.  */
9883$ac_includes_default
9884int
9885main ()
9886{
9887if ((int8_t *) 0)
9888  return 0;
9889if (sizeof (int8_t))
9890  return 0;
9891  ;
9892  return 0;
9893}
9894_ACEOF
9895rm -f conftest.$ac_objext
9896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9897  (eval $ac_compile) 2>conftest.er1
9898  ac_status=$?
9899  grep -v '^ *+' conftest.er1 >conftest.err
9900  rm -f conftest.er1
9901  cat conftest.err >&5
9902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903  (exit $ac_status); } &&
9904	 { ac_try='test -z "$ac_c_werror_flag"
9905			 || test ! -s conftest.err'
9906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907  (eval $ac_try) 2>&5
9908  ac_status=$?
9909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910  (exit $ac_status); }; } &&
9911	 { ac_try='test -s conftest.$ac_objext'
9912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913  (eval $ac_try) 2>&5
9914  ac_status=$?
9915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916  (exit $ac_status); }; }; then
9917  ac_cv_type_int8_t=yes
9918else
9919  echo "$as_me: failed program was:" >&5
9920sed 's/^/| /' conftest.$ac_ext >&5
9921
9922ac_cv_type_int8_t=no
9923fi
9924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9925fi
9926echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9927echo "${ECHO_T}$ac_cv_type_int8_t" >&6
9928if test $ac_cv_type_int8_t = yes; then
9929
9930cat >>confdefs.h <<_ACEOF
9931#define HAVE_INT8_T 1
9932_ACEOF
9933
9934
9935fi
9936echo "$as_me:$LINENO: checking for int16_t" >&5
9937echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9938if test "${ac_cv_type_int16_t+set}" = set; then
9939  echo $ECHO_N "(cached) $ECHO_C" >&6
9940else
9941  cat >conftest.$ac_ext <<_ACEOF
9942/* confdefs.h.  */
9943_ACEOF
9944cat confdefs.h >>conftest.$ac_ext
9945cat >>conftest.$ac_ext <<_ACEOF
9946/* end confdefs.h.  */
9947$ac_includes_default
9948int
9949main ()
9950{
9951if ((int16_t *) 0)
9952  return 0;
9953if (sizeof (int16_t))
9954  return 0;
9955  ;
9956  return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext
9960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9961  (eval $ac_compile) 2>conftest.er1
9962  ac_status=$?
9963  grep -v '^ *+' conftest.er1 >conftest.err
9964  rm -f conftest.er1
9965  cat conftest.err >&5
9966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967  (exit $ac_status); } &&
9968	 { ac_try='test -z "$ac_c_werror_flag"
9969			 || test ! -s conftest.err'
9970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971  (eval $ac_try) 2>&5
9972  ac_status=$?
9973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974  (exit $ac_status); }; } &&
9975	 { ac_try='test -s conftest.$ac_objext'
9976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977  (eval $ac_try) 2>&5
9978  ac_status=$?
9979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980  (exit $ac_status); }; }; then
9981  ac_cv_type_int16_t=yes
9982else
9983  echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986ac_cv_type_int16_t=no
9987fi
9988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9989fi
9990echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
9991echo "${ECHO_T}$ac_cv_type_int16_t" >&6
9992if test $ac_cv_type_int16_t = yes; then
9993
9994cat >>confdefs.h <<_ACEOF
9995#define HAVE_INT16_T 1
9996_ACEOF
9997
9998
9999fi
10000echo "$as_me:$LINENO: checking for int32_t" >&5
10001echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
10002if test "${ac_cv_type_int32_t+set}" = set; then
10003  echo $ECHO_N "(cached) $ECHO_C" >&6
10004else
10005  cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h.  */
10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h.  */
10011$ac_includes_default
10012int
10013main ()
10014{
10015if ((int32_t *) 0)
10016  return 0;
10017if (sizeof (int32_t))
10018  return 0;
10019  ;
10020  return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext
10024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025  (eval $ac_compile) 2>conftest.er1
10026  ac_status=$?
10027  grep -v '^ *+' conftest.er1 >conftest.err
10028  rm -f conftest.er1
10029  cat conftest.err >&5
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); } &&
10032	 { ac_try='test -z "$ac_c_werror_flag"
10033			 || test ! -s conftest.err'
10034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035  (eval $ac_try) 2>&5
10036  ac_status=$?
10037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038  (exit $ac_status); }; } &&
10039	 { ac_try='test -s conftest.$ac_objext'
10040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041  (eval $ac_try) 2>&5
10042  ac_status=$?
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); }; }; then
10045  ac_cv_type_int32_t=yes
10046else
10047  echo "$as_me: failed program was:" >&5
10048sed 's/^/| /' conftest.$ac_ext >&5
10049
10050ac_cv_type_int32_t=no
10051fi
10052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10053fi
10054echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10055echo "${ECHO_T}$ac_cv_type_int32_t" >&6
10056if test $ac_cv_type_int32_t = yes; then
10057
10058cat >>confdefs.h <<_ACEOF
10059#define HAVE_INT32_T 1
10060_ACEOF
10061
10062
10063fi
10064echo "$as_me:$LINENO: checking for int64_t" >&5
10065echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
10066if test "${ac_cv_type_int64_t+set}" = set; then
10067  echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069  cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h.  */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
10074/* end confdefs.h.  */
10075$ac_includes_default
10076int
10077main ()
10078{
10079if ((int64_t *) 0)
10080  return 0;
10081if (sizeof (int64_t))
10082  return 0;
10083  ;
10084  return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext
10088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089  (eval $ac_compile) 2>conftest.er1
10090  ac_status=$?
10091  grep -v '^ *+' conftest.er1 >conftest.err
10092  rm -f conftest.er1
10093  cat conftest.err >&5
10094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095  (exit $ac_status); } &&
10096	 { ac_try='test -z "$ac_c_werror_flag"
10097			 || test ! -s conftest.err'
10098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099  (eval $ac_try) 2>&5
10100  ac_status=$?
10101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102  (exit $ac_status); }; } &&
10103	 { ac_try='test -s conftest.$ac_objext'
10104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105  (eval $ac_try) 2>&5
10106  ac_status=$?
10107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108  (exit $ac_status); }; }; then
10109  ac_cv_type_int64_t=yes
10110else
10111  echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
10114ac_cv_type_int64_t=no
10115fi
10116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10117fi
10118echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10119echo "${ECHO_T}$ac_cv_type_int64_t" >&6
10120if test $ac_cv_type_int64_t = yes; then
10121
10122cat >>confdefs.h <<_ACEOF
10123#define HAVE_INT64_T 1
10124_ACEOF
10125
10126
10127fi
10128
10129echo "$as_me:$LINENO: checking for uint8_t" >&5
10130echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
10131if test "${ac_cv_type_uint8_t+set}" = set; then
10132  echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134  cat >conftest.$ac_ext <<_ACEOF
10135/* confdefs.h.  */
10136_ACEOF
10137cat confdefs.h >>conftest.$ac_ext
10138cat >>conftest.$ac_ext <<_ACEOF
10139/* end confdefs.h.  */
10140$ac_includes_default
10141int
10142main ()
10143{
10144if ((uint8_t *) 0)
10145  return 0;
10146if (sizeof (uint8_t))
10147  return 0;
10148  ;
10149  return 0;
10150}
10151_ACEOF
10152rm -f conftest.$ac_objext
10153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154  (eval $ac_compile) 2>conftest.er1
10155  ac_status=$?
10156  grep -v '^ *+' conftest.er1 >conftest.err
10157  rm -f conftest.er1
10158  cat conftest.err >&5
10159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160  (exit $ac_status); } &&
10161	 { ac_try='test -z "$ac_c_werror_flag"
10162			 || test ! -s conftest.err'
10163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164  (eval $ac_try) 2>&5
10165  ac_status=$?
10166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167  (exit $ac_status); }; } &&
10168	 { ac_try='test -s conftest.$ac_objext'
10169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170  (eval $ac_try) 2>&5
10171  ac_status=$?
10172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173  (exit $ac_status); }; }; then
10174  ac_cv_type_uint8_t=yes
10175else
10176  echo "$as_me: failed program was:" >&5
10177sed 's/^/| /' conftest.$ac_ext >&5
10178
10179ac_cv_type_uint8_t=no
10180fi
10181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10182fi
10183echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
10184echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
10185if test $ac_cv_type_uint8_t = yes; then
10186
10187cat >>confdefs.h <<_ACEOF
10188#define HAVE_UINT8_T 1
10189_ACEOF
10190
10191
10192fi
10193echo "$as_me:$LINENO: checking for uint16_t" >&5
10194echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
10195if test "${ac_cv_type_uint16_t+set}" = set; then
10196  echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198  cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h.  */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h.  */
10204$ac_includes_default
10205int
10206main ()
10207{
10208if ((uint16_t *) 0)
10209  return 0;
10210if (sizeof (uint16_t))
10211  return 0;
10212  ;
10213  return 0;
10214}
10215_ACEOF
10216rm -f conftest.$ac_objext
10217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218  (eval $ac_compile) 2>conftest.er1
10219  ac_status=$?
10220  grep -v '^ *+' conftest.er1 >conftest.err
10221  rm -f conftest.er1
10222  cat conftest.err >&5
10223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224  (exit $ac_status); } &&
10225	 { ac_try='test -z "$ac_c_werror_flag"
10226			 || test ! -s conftest.err'
10227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228  (eval $ac_try) 2>&5
10229  ac_status=$?
10230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231  (exit $ac_status); }; } &&
10232	 { ac_try='test -s conftest.$ac_objext'
10233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234  (eval $ac_try) 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); }; }; then
10238  ac_cv_type_uint16_t=yes
10239else
10240  echo "$as_me: failed program was:" >&5
10241sed 's/^/| /' conftest.$ac_ext >&5
10242
10243ac_cv_type_uint16_t=no
10244fi
10245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10246fi
10247echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
10248echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
10249if test $ac_cv_type_uint16_t = yes; then
10250
10251cat >>confdefs.h <<_ACEOF
10252#define HAVE_UINT16_T 1
10253_ACEOF
10254
10255
10256fi
10257echo "$as_me:$LINENO: checking for uint32_t" >&5
10258echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
10259if test "${ac_cv_type_uint32_t+set}" = set; then
10260  echo $ECHO_N "(cached) $ECHO_C" >&6
10261else
10262  cat >conftest.$ac_ext <<_ACEOF
10263/* confdefs.h.  */
10264_ACEOF
10265cat confdefs.h >>conftest.$ac_ext
10266cat >>conftest.$ac_ext <<_ACEOF
10267/* end confdefs.h.  */
10268$ac_includes_default
10269int
10270main ()
10271{
10272if ((uint32_t *) 0)
10273  return 0;
10274if (sizeof (uint32_t))
10275  return 0;
10276  ;
10277  return 0;
10278}
10279_ACEOF
10280rm -f conftest.$ac_objext
10281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10282  (eval $ac_compile) 2>conftest.er1
10283  ac_status=$?
10284  grep -v '^ *+' conftest.er1 >conftest.err
10285  rm -f conftest.er1
10286  cat conftest.err >&5
10287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288  (exit $ac_status); } &&
10289	 { ac_try='test -z "$ac_c_werror_flag"
10290			 || test ! -s conftest.err'
10291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292  (eval $ac_try) 2>&5
10293  ac_status=$?
10294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295  (exit $ac_status); }; } &&
10296	 { ac_try='test -s conftest.$ac_objext'
10297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298  (eval $ac_try) 2>&5
10299  ac_status=$?
10300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301  (exit $ac_status); }; }; then
10302  ac_cv_type_uint32_t=yes
10303else
10304  echo "$as_me: failed program was:" >&5
10305sed 's/^/| /' conftest.$ac_ext >&5
10306
10307ac_cv_type_uint32_t=no
10308fi
10309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10310fi
10311echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
10312echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
10313if test $ac_cv_type_uint32_t = yes; then
10314
10315cat >>confdefs.h <<_ACEOF
10316#define HAVE_UINT32_T 1
10317_ACEOF
10318
10319
10320fi
10321echo "$as_me:$LINENO: checking for uint64_t" >&5
10322echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
10323if test "${ac_cv_type_uint64_t+set}" = set; then
10324  echo $ECHO_N "(cached) $ECHO_C" >&6
10325else
10326  cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h.  */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h.  */
10332$ac_includes_default
10333int
10334main ()
10335{
10336if ((uint64_t *) 0)
10337  return 0;
10338if (sizeof (uint64_t))
10339  return 0;
10340  ;
10341  return 0;
10342}
10343_ACEOF
10344rm -f conftest.$ac_objext
10345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10346  (eval $ac_compile) 2>conftest.er1
10347  ac_status=$?
10348  grep -v '^ *+' conftest.er1 >conftest.err
10349  rm -f conftest.er1
10350  cat conftest.err >&5
10351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352  (exit $ac_status); } &&
10353	 { ac_try='test -z "$ac_c_werror_flag"
10354			 || test ! -s conftest.err'
10355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356  (eval $ac_try) 2>&5
10357  ac_status=$?
10358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359  (exit $ac_status); }; } &&
10360	 { ac_try='test -s conftest.$ac_objext'
10361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362  (eval $ac_try) 2>&5
10363  ac_status=$?
10364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365  (exit $ac_status); }; }; then
10366  ac_cv_type_uint64_t=yes
10367else
10368  echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
10371ac_cv_type_uint64_t=no
10372fi
10373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10374fi
10375echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
10376echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
10377if test $ac_cv_type_uint64_t = yes; then
10378
10379cat >>confdefs.h <<_ACEOF
10380#define HAVE_UINT64_T 1
10381_ACEOF
10382
10383
10384fi
10385
10386rm -f conftest.$ac_objext
10387
10388
10389#########
10390# Check for needed/wanted headers
10391
10392
10393
10394
10395for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
10396do
10397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10398if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399  echo "$as_me:$LINENO: checking for $ac_header" >&5
10400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402  echo $ECHO_N "(cached) $ECHO_C" >&6
10403fi
10404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10406else
10407  # Is the header compilable?
10408echo "$as_me:$LINENO: checking $ac_header usability" >&5
10409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10410cat >conftest.$ac_ext <<_ACEOF
10411/* confdefs.h.  */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h.  */
10416$ac_includes_default
10417#include <$ac_header>
10418_ACEOF
10419rm -f conftest.$ac_objext
10420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421  (eval $ac_compile) 2>conftest.er1
10422  ac_status=$?
10423  grep -v '^ *+' conftest.er1 >conftest.err
10424  rm -f conftest.er1
10425  cat conftest.err >&5
10426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427  (exit $ac_status); } &&
10428	 { ac_try='test -z "$ac_c_werror_flag"
10429			 || test ! -s conftest.err'
10430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431  (eval $ac_try) 2>&5
10432  ac_status=$?
10433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434  (exit $ac_status); }; } &&
10435	 { ac_try='test -s conftest.$ac_objext'
10436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437  (eval $ac_try) 2>&5
10438  ac_status=$?
10439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); }; }; then
10441  ac_header_compiler=yes
10442else
10443  echo "$as_me: failed program was:" >&5
10444sed 's/^/| /' conftest.$ac_ext >&5
10445
10446ac_header_compiler=no
10447fi
10448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10450echo "${ECHO_T}$ac_header_compiler" >&6
10451
10452# Is the header present?
10453echo "$as_me:$LINENO: checking $ac_header presence" >&5
10454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10455cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h.  */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h.  */
10461#include <$ac_header>
10462_ACEOF
10463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10464  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10465  ac_status=$?
10466  grep -v '^ *+' conftest.er1 >conftest.err
10467  rm -f conftest.er1
10468  cat conftest.err >&5
10469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470  (exit $ac_status); } >/dev/null; then
10471  if test -s conftest.err; then
10472    ac_cpp_err=$ac_c_preproc_warn_flag
10473    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10474  else
10475    ac_cpp_err=
10476  fi
10477else
10478  ac_cpp_err=yes
10479fi
10480if test -z "$ac_cpp_err"; then
10481  ac_header_preproc=yes
10482else
10483  echo "$as_me: failed program was:" >&5
10484sed 's/^/| /' conftest.$ac_ext >&5
10485
10486  ac_header_preproc=no
10487fi
10488rm -f conftest.err conftest.$ac_ext
10489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10490echo "${ECHO_T}$ac_header_preproc" >&6
10491
10492# So?  What about this header?
10493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10494  yes:no: )
10495    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10497    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10499    ac_header_preproc=yes
10500    ;;
10501  no:yes:* )
10502    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10504    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10505echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10506    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10508    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10509echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10510    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10514    (
10515      cat <<\_ASBOX
10516## --------------------------------- ##
10517## Report this to the sqlite lists.  ##
10518## --------------------------------- ##
10519_ASBOX
10520    ) |
10521      sed "s/^/$as_me: WARNING:     /" >&2
10522    ;;
10523esac
10524echo "$as_me:$LINENO: checking for $ac_header" >&5
10525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10526if eval "test \"\${$as_ac_Header+set}\" = set"; then
10527  echo $ECHO_N "(cached) $ECHO_C" >&6
10528else
10529  eval "$as_ac_Header=\$ac_header_preproc"
10530fi
10531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10533
10534fi
10535if test `eval echo '${'$as_ac_Header'}'` = yes; then
10536  cat >>confdefs.h <<_ACEOF
10537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10538_ACEOF
10539
10540fi
10541
10542done
10543
10544
10545#########
10546# Figure out whether or not we have these functions
10547#
10548
10549
10550
10551
10552for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
10553do
10554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10555echo "$as_me:$LINENO: checking for $ac_func" >&5
10556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10557if eval "test \"\${$as_ac_var+set}\" = set"; then
10558  echo $ECHO_N "(cached) $ECHO_C" >&6
10559else
10560  cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h.  */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h.  */
10566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10567   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10568#define $ac_func innocuous_$ac_func
10569
10570/* System header to define __stub macros and hopefully few prototypes,
10571    which can conflict with char $ac_func (); below.
10572    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10573    <limits.h> exists even on freestanding compilers.  */
10574
10575#ifdef __STDC__
10576# include <limits.h>
10577#else
10578# include <assert.h>
10579#endif
10580
10581#undef $ac_func
10582
10583/* Override any gcc2 internal prototype to avoid an error.  */
10584#ifdef __cplusplus
10585extern "C"
10586{
10587#endif
10588/* We use char because int might match the return type of a gcc2
10589   builtin and then its argument prototype would still apply.  */
10590char $ac_func ();
10591/* The GNU C library defines this for functions which it implements
10592    to always fail with ENOSYS.  Some functions are actually named
10593    something starting with __ and the normal name is an alias.  */
10594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10595choke me
10596#else
10597char (*f) () = $ac_func;
10598#endif
10599#ifdef __cplusplus
10600}
10601#endif
10602
10603int
10604main ()
10605{
10606return f != $ac_func;
10607  ;
10608  return 0;
10609}
10610_ACEOF
10611rm -f conftest.$ac_objext conftest$ac_exeext
10612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613  (eval $ac_link) 2>conftest.er1
10614  ac_status=$?
10615  grep -v '^ *+' conftest.er1 >conftest.err
10616  rm -f conftest.er1
10617  cat conftest.err >&5
10618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619  (exit $ac_status); } &&
10620	 { ac_try='test -z "$ac_c_werror_flag"
10621			 || test ! -s conftest.err'
10622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623  (eval $ac_try) 2>&5
10624  ac_status=$?
10625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626  (exit $ac_status); }; } &&
10627	 { ac_try='test -s conftest$ac_exeext'
10628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629  (eval $ac_try) 2>&5
10630  ac_status=$?
10631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632  (exit $ac_status); }; }; then
10633  eval "$as_ac_var=yes"
10634else
10635  echo "$as_me: failed program was:" >&5
10636sed 's/^/| /' conftest.$ac_ext >&5
10637
10638eval "$as_ac_var=no"
10639fi
10640rm -f conftest.err conftest.$ac_objext \
10641      conftest$ac_exeext conftest.$ac_ext
10642fi
10643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10645if test `eval echo '${'$as_ac_var'}'` = yes; then
10646  cat >>confdefs.h <<_ACEOF
10647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10648_ACEOF
10649
10650fi
10651done
10652
10653
10654#########
10655# By default, we use the amalgamation (this may be changed below...)
10656#
10657USE_AMALGAMATION=1
10658
10659#########
10660# See whether we can run specific tclsh versions known to work well;
10661# if not, then we fall back to plain tclsh.
10662# TODO: try other versions before falling back?
10663#
10664for ac_prog in tclsh8.4 tclsh
10665do
10666  # Extract the first word of "$ac_prog", so it can be a program name with args.
10667set dummy $ac_prog; ac_word=$2
10668echo "$as_me:$LINENO: checking for $ac_word" >&5
10669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10670if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
10671  echo $ECHO_N "(cached) $ECHO_C" >&6
10672else
10673  if test -n "$TCLSH_CMD"; then
10674  ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10675else
10676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677for as_dir in $PATH
10678do
10679  IFS=$as_save_IFS
10680  test -z "$as_dir" && as_dir=.
10681  for ac_exec_ext in '' $ac_executable_extensions; do
10682  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10683    ac_cv_prog_TCLSH_CMD="$ac_prog"
10684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10685    break 2
10686  fi
10687done
10688done
10689
10690fi
10691fi
10692TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10693if test -n "$TCLSH_CMD"; then
10694  echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
10695echo "${ECHO_T}$TCLSH_CMD" >&6
10696else
10697  echo "$as_me:$LINENO: result: no" >&5
10698echo "${ECHO_T}no" >&6
10699fi
10700
10701  test -n "$TCLSH_CMD" && break
10702done
10703test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10704
10705if test "$TCLSH_CMD" = "none"; then
10706  # If we can't find a local tclsh, then building the amalgamation will fail.
10707  # We act as though --disable-amalgamation has been used.
10708  echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10709  USE_AMALGAMATION=0
10710  TCLSH_CMD="tclsh"
10711fi
10712
10713
10714
10715#########
10716# Set up an appropriate program prefix
10717#
10718if test "$program_prefix" = "NONE"; then
10719  program_prefix=""
10720fi
10721
10722
10723VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10724echo "Version set to $VERSION"
10725
10726RELEASE=`cat $srcdir/VERSION`
10727echo "Release set to $RELEASE"
10728
10729VERSION_NUMBER=`cat $srcdir/VERSION  \
10730                           | sed 's/[^0-9]/ /g' \
10731                | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10732echo "Version number set to $VERSION_NUMBER"
10733
10734
10735#########
10736# Check to see if the --with-hints=FILE option is used.  If there is none,
10737# then check for a files named "$host.hints" and ../$hosts.hints where
10738# $host is the hostname of the build system.  If still no hints are
10739# found, try looking in $system.hints and ../$system.hints where
10740# $system is the result of uname -s.
10741#
10742
10743# Check whether --with-hints or --without-hints was given.
10744if test "${with_hints+set}" = set; then
10745  withval="$with_hints"
10746  hints=$withval
10747fi;
10748if test "$hints" = ""; then
10749  host=`hostname | sed 's/\..*//'`
10750  if test -r $host.hints; then
10751    hints=$host.hints
10752  else
10753     if test -r ../$host.hints; then
10754       hints=../$host.hints
10755     fi
10756  fi
10757fi
10758if test "$hints" = ""; then
10759  sys=`uname -s`
10760  if test -r $sys.hints; then
10761    hints=$sys.hints
10762  else
10763     if test -r ../$sys.hints; then
10764       hints=../$sys.hints
10765     fi
10766  fi
10767fi
10768if test "$hints" != ""; then
10769  echo "$as_me:$LINENO: result: reading hints from $hints" >&5
10770echo "${ECHO_T}reading hints from $hints" >&6
10771  . $hints
10772fi
10773
10774#########
10775# Locate a compiler for the build machine.  This compiler should
10776# generate command-line programs that run on the build machine.
10777#
10778if test x"$cross_compiling" = xno; then
10779	BUILD_CC=$CC
10780	BUILD_CFLAGS=$CFLAGS
10781else
10782	if test "${BUILD_CC+set}" != set; then
10783		for ac_prog in gcc cc cl
10784do
10785  # Extract the first word of "$ac_prog", so it can be a program name with args.
10786set dummy $ac_prog; ac_word=$2
10787echo "$as_me:$LINENO: checking for $ac_word" >&5
10788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10789if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10790  echo $ECHO_N "(cached) $ECHO_C" >&6
10791else
10792  if test -n "$BUILD_CC"; then
10793  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10794else
10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798  IFS=$as_save_IFS
10799  test -z "$as_dir" && as_dir=.
10800  for ac_exec_ext in '' $ac_executable_extensions; do
10801  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802    ac_cv_prog_BUILD_CC="$ac_prog"
10803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10804    break 2
10805  fi
10806done
10807done
10808
10809fi
10810fi
10811BUILD_CC=$ac_cv_prog_BUILD_CC
10812if test -n "$BUILD_CC"; then
10813  echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10814echo "${ECHO_T}$BUILD_CC" >&6
10815else
10816  echo "$as_me:$LINENO: result: no" >&5
10817echo "${ECHO_T}no" >&6
10818fi
10819
10820  test -n "$BUILD_CC" && break
10821done
10822
10823	fi
10824	if test "${BUILD_CFLAGS+set}" != set; then
10825		BUILD_CFLAGS="-g"
10826	fi
10827fi
10828
10829
10830##########
10831# Do we want to support multithreaded use of sqlite
10832#
10833# Check whether --enable-threadsafe or --disable-threadsafe was given.
10834if test "${enable_threadsafe+set}" = set; then
10835  enableval="$enable_threadsafe"
10836
10837else
10838  enable_threadsafe=yes
10839fi;
10840echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
10841echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
10842if test "$enable_threadsafe" = "no"; then
10843  SQLITE_THREADSAFE=0
10844  echo "$as_me:$LINENO: result: no" >&5
10845echo "${ECHO_T}no" >&6
10846else
10847  SQLITE_THREADSAFE=1
10848  echo "$as_me:$LINENO: result: yes" >&5
10849echo "${ECHO_T}yes" >&6
10850fi
10851
10852
10853if test "$SQLITE_THREADSAFE" = "1"; then
10854  echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
10855echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6
10856if test "${ac_cv_search_pthread_create+set}" = set; then
10857  echo $ECHO_N "(cached) $ECHO_C" >&6
10858else
10859  ac_func_search_save_LIBS=$LIBS
10860ac_cv_search_pthread_create=no
10861cat >conftest.$ac_ext <<_ACEOF
10862/* confdefs.h.  */
10863_ACEOF
10864cat confdefs.h >>conftest.$ac_ext
10865cat >>conftest.$ac_ext <<_ACEOF
10866/* end confdefs.h.  */
10867
10868/* Override any gcc2 internal prototype to avoid an error.  */
10869#ifdef __cplusplus
10870extern "C"
10871#endif
10872/* We use char because int might match the return type of a gcc2
10873   builtin and then its argument prototype would still apply.  */
10874char pthread_create ();
10875int
10876main ()
10877{
10878pthread_create ();
10879  ;
10880  return 0;
10881}
10882_ACEOF
10883rm -f conftest.$ac_objext conftest$ac_exeext
10884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885  (eval $ac_link) 2>conftest.er1
10886  ac_status=$?
10887  grep -v '^ *+' conftest.er1 >conftest.err
10888  rm -f conftest.er1
10889  cat conftest.err >&5
10890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891  (exit $ac_status); } &&
10892	 { ac_try='test -z "$ac_c_werror_flag"
10893			 || test ! -s conftest.err'
10894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895  (eval $ac_try) 2>&5
10896  ac_status=$?
10897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898  (exit $ac_status); }; } &&
10899	 { ac_try='test -s conftest$ac_exeext'
10900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901  (eval $ac_try) 2>&5
10902  ac_status=$?
10903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904  (exit $ac_status); }; }; then
10905  ac_cv_search_pthread_create="none required"
10906else
10907  echo "$as_me: failed program was:" >&5
10908sed 's/^/| /' conftest.$ac_ext >&5
10909
10910fi
10911rm -f conftest.err conftest.$ac_objext \
10912      conftest$ac_exeext conftest.$ac_ext
10913if test "$ac_cv_search_pthread_create" = no; then
10914  for ac_lib in pthread; do
10915    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10916    cat >conftest.$ac_ext <<_ACEOF
10917/* confdefs.h.  */
10918_ACEOF
10919cat confdefs.h >>conftest.$ac_ext
10920cat >>conftest.$ac_ext <<_ACEOF
10921/* end confdefs.h.  */
10922
10923/* Override any gcc2 internal prototype to avoid an error.  */
10924#ifdef __cplusplus
10925extern "C"
10926#endif
10927/* We use char because int might match the return type of a gcc2
10928   builtin and then its argument prototype would still apply.  */
10929char pthread_create ();
10930int
10931main ()
10932{
10933pthread_create ();
10934  ;
10935  return 0;
10936}
10937_ACEOF
10938rm -f conftest.$ac_objext conftest$ac_exeext
10939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10940  (eval $ac_link) 2>conftest.er1
10941  ac_status=$?
10942  grep -v '^ *+' conftest.er1 >conftest.err
10943  rm -f conftest.er1
10944  cat conftest.err >&5
10945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946  (exit $ac_status); } &&
10947	 { ac_try='test -z "$ac_c_werror_flag"
10948			 || test ! -s conftest.err'
10949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950  (eval $ac_try) 2>&5
10951  ac_status=$?
10952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953  (exit $ac_status); }; } &&
10954	 { ac_try='test -s conftest$ac_exeext'
10955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956  (eval $ac_try) 2>&5
10957  ac_status=$?
10958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959  (exit $ac_status); }; }; then
10960  ac_cv_search_pthread_create="-l$ac_lib"
10961break
10962else
10963  echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
10965
10966fi
10967rm -f conftest.err conftest.$ac_objext \
10968      conftest$ac_exeext conftest.$ac_ext
10969  done
10970fi
10971LIBS=$ac_func_search_save_LIBS
10972fi
10973echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
10974echo "${ECHO_T}$ac_cv_search_pthread_create" >&6
10975if test "$ac_cv_search_pthread_create" != no; then
10976  test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS"
10977
10978fi
10979
10980fi
10981
10982##########
10983# Do we want to allow a connection created in one thread to be used
10984# in another thread.  This does not work on many Linux systems (ex: RedHat 9)
10985# due to bugs in the threading implementations.  This is thus off by default.
10986#
10987# Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given.
10988if test "${enable_cross_thread_connections+set}" = set; then
10989  enableval="$enable_cross_thread_connections"
10990
10991else
10992  enable_xthreadconnect=no
10993fi;
10994echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
10995echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6
10996if test "$enable_xthreadconnect" = "no"; then
10997  XTHREADCONNECT=''
10998  echo "$as_me:$LINENO: result: no" >&5
10999echo "${ECHO_T}no" >&6
11000else
11001  XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
11002  echo "$as_me:$LINENO: result: yes" >&5
11003echo "${ECHO_T}yes" >&6
11004fi
11005
11006
11007##########
11008# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
11009# default. Normally, a test at runtime is performed to determine the
11010# appropriate value of this variable. Use this option only if you're sure that
11011# threads can safely override each others locks in all runtime situations.
11012#
11013# Check whether --enable-threads-override-locks or --disable-threads-override-locks was given.
11014if test "${enable_threads_override_locks+set}" = set; then
11015  enableval="$enable_threads_override_locks"
11016
11017else
11018  enable_threads_override_locks=no
11019fi;
11020echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
11021echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6
11022if test "$enable_threads_override_locks" = "no"; then
11023  THREADSOVERRIDELOCKS='-1'
11024  echo "$as_me:$LINENO: result: no" >&5
11025echo "${ECHO_T}no" >&6
11026else
11027  THREADSOVERRIDELOCKS='1'
11028  echo "$as_me:$LINENO: result: yes" >&5
11029echo "${ECHO_T}yes" >&6
11030fi
11031
11032
11033##########
11034# Do we want to support release
11035#
11036# Check whether --enable-releasemode or --disable-releasemode was given.
11037if test "${enable_releasemode+set}" = set; then
11038  enableval="$enable_releasemode"
11039
11040else
11041  enable_releasemode=no
11042fi;
11043echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
11044echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
11045if test "$enable_releasemode" = "no"; then
11046  ALLOWRELEASE=""
11047  echo "$as_me:$LINENO: result: no" >&5
11048echo "${ECHO_T}no" >&6
11049else
11050  ALLOWRELEASE="-release `cat $srcdir/VERSION`"
11051  echo "$as_me:$LINENO: result: yes" >&5
11052echo "${ECHO_T}yes" >&6
11053fi
11054
11055
11056##########
11057# Do we want temporary databases in memory
11058#
11059# Check whether --enable-tempstore or --disable-tempstore was given.
11060if test "${enable_tempstore+set}" = set; then
11061  enableval="$enable_tempstore"
11062
11063else
11064  enable_tempstore=no
11065fi;
11066echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
11067echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
11068case "$enable_tempstore" in
11069  never )
11070    TEMP_STORE=0
11071    echo "$as_me:$LINENO: result: never" >&5
11072echo "${ECHO_T}never" >&6
11073  ;;
11074  no )
11075    TEMP_STORE=1
11076    echo "$as_me:$LINENO: result: no" >&5
11077echo "${ECHO_T}no" >&6
11078  ;;
11079  always )
11080     TEMP_STORE=3
11081    echo "$as_me:$LINENO: result: always" >&5
11082echo "${ECHO_T}always" >&6
11083  ;;
11084  yes )
11085     TEMP_STORE=3
11086    echo "$as_me:$LINENO: result: always" >&5
11087echo "${ECHO_T}always" >&6
11088  ;;
11089  * )
11090    TEMP_STORE=1
11091    echo "$as_me:$LINENO: result: yes" >&5
11092echo "${ECHO_T}yes" >&6
11093  ;;
11094esac
11095
11096
11097
11098###########
11099# Lots of things are different if we are compiling for Windows using
11100# the CYGWIN environment.  So check for that special case and handle
11101# things accordingly.
11102#
11103echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
11104echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
11105if test "$config_BUILD_EXEEXT" = ".exe"; then
11106  CYGWIN=yes
11107  echo "$as_me:$LINENO: result: yes" >&5
11108echo "${ECHO_T}yes" >&6
11109else
11110  echo "$as_me:$LINENO: result: unknown" >&5
11111echo "${ECHO_T}unknown" >&6
11112fi
11113if test "$CYGWIN" != "yes"; then
11114
11115case $host_os in
11116  *cygwin* ) CYGWIN=yes;;
11117	 * ) CYGWIN=no;;
11118esac
11119
11120fi
11121if test "$CYGWIN" = "yes"; then
11122  BUILD_EXEEXT=.exe
11123else
11124  BUILD_EXEEXT=$EXEEXT
11125fi
11126if test x"$cross_compiling" = xno; then
11127  TARGET_EXEEXT=$BUILD_EXEEXT
11128else
11129  TARGET_EXEEXT=$config_TARGET_EXEEXT
11130fi
11131if test "$TARGET_EXEEXT" = ".exe"; then
11132  if test $OS2_SHELL ; then
11133    SQLITE_OS_UNIX=0
11134    SQLITE_OS_WIN=0
11135    SQLITE_OS_OS2=1
11136    CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
11137    if test "$ac_compiler_gnu" = "yes" ; then
11138      CFLAGS="$CFLAGS -Zomf -Zexe -Zmap"
11139      BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
11140    fi
11141  else
11142    SQLITE_OS_UNIX=0
11143    SQLITE_OS_WIN=1
11144    SQLITE_OS_OS2=0
11145    CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
11146  fi
11147else
11148  SQLITE_OS_UNIX=1
11149  SQLITE_OS_WIN=0
11150  SQLITE_OS_OS2=0
11151  CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
11152fi
11153
11154
11155
11156
11157
11158
11159
11160##########
11161# Figure out all the parameters needed to compile against Tcl.
11162#
11163# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
11164# macros in the in the tcl.m4 file of the standard TCL distribution.
11165# Those macros could not be used directly since we have to make some
11166# minor changes to accomodate systems that do not have TCL installed.
11167#
11168# Check whether --enable-tcl or --disable-tcl was given.
11169if test "${enable_tcl+set}" = set; then
11170  enableval="$enable_tcl"
11171  use_tcl=$enableval
11172else
11173  use_tcl=yes
11174fi;
11175if test "${use_tcl}" = "yes" ; then
11176
11177# Check whether --with-tcl or --without-tcl was given.
11178if test "${with_tcl+set}" = set; then
11179  withval="$with_tcl"
11180  with_tclconfig=${withval}
11181fi;
11182  echo "$as_me:$LINENO: checking for Tcl configuration" >&5
11183echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
11184  if test "${ac_cv_c_tclconfig+set}" = set; then
11185  echo $ECHO_N "(cached) $ECHO_C" >&6
11186else
11187
11188    # First check to see if --with-tcl was specified.
11189    if test x"${with_tclconfig}" != x ; then
11190      if test -f "${with_tclconfig}/tclConfig.sh" ; then
11191        ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
11192      else
11193        { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
11194echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
11195   { (exit 1); exit 1; }; }
11196      fi
11197    fi
11198    # then check for a private Tcl installation
11199    if test x"${ac_cv_c_tclconfig}" = x ; then
11200      for i in \
11201            ../tcl \
11202            `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11203            `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
11204            `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
11205            ../../tcl \
11206            `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11207            `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
11208            `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
11209            ../../../tcl \
11210            `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11211            `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
11212            `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
11213      do
11214        if test -f "$i/unix/tclConfig.sh" ; then
11215          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
11216          break
11217        fi
11218      done
11219    fi
11220
11221    # check in a few common install locations
11222    if test x"${ac_cv_c_tclconfig}" = x ; then
11223      for i in \
11224            `ls -d ${libdir} 2>/dev/null` \
11225            `ls -d /usr/local/lib 2>/dev/null` \
11226            `ls -d /usr/contrib/lib 2>/dev/null` \
11227            `ls -d /usr/lib 2>/dev/null`
11228      do
11229        if test -f "$i/tclConfig.sh" ; then
11230           ac_cv_c_tclconfig=`(cd $i; pwd)`
11231           break
11232        fi
11233      done
11234    fi
11235
11236    # check in a few other private locations
11237    if test x"${ac_cv_c_tclconfig}" = x ; then
11238      for i in \
11239         ${srcdir}/../tcl \
11240         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11241         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
11242         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
11243      do
11244        if test -f "$i/unix/tclConfig.sh" ; then
11245          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
11246          break
11247        fi
11248      done
11249    fi
11250
11251fi
11252
11253
11254  if test x"${ac_cv_c_tclconfig}" = x ; then
11255    use_tcl=no
11256    { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
11257echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
11258    { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
11259echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
11260    { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
11261echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
11262  else
11263    TCL_BIN_DIR=${ac_cv_c_tclconfig}
11264    echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
11265echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
11266
11267    echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
11268echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
11269    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
11270      echo "$as_me:$LINENO: result: loading" >&5
11271echo "${ECHO_T}loading" >&6
11272      . $TCL_BIN_DIR/tclConfig.sh
11273    else
11274      echo "$as_me:$LINENO: result: file not found" >&5
11275echo "${ECHO_T}file not found" >&6
11276    fi
11277
11278    #
11279    # If the TCL_BIN_DIR is the build directory (not the install directory),
11280    # then set the common variable name to the value of the build variables.
11281    # For example, the variable TCL_LIB_SPEC will be set to the value
11282    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
11283    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
11284    # installed and uninstalled version of Tcl.
11285    #
11286
11287    if test -f $TCL_BIN_DIR/Makefile ; then
11288      TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
11289      TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
11290      TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
11291    fi
11292
11293    #
11294    # eval is required to do the TCL_DBGX substitution
11295    #
11296
11297    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
11298    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
11299    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
11300
11301    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
11302    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
11303    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318  fi
11319fi
11320if test "${use_tcl}" = "no" ; then
11321  HAVE_TCL=""
11322else
11323  HAVE_TCL=1
11324fi
11325
11326
11327##########
11328# Figure out what C libraries are required to compile programs
11329# that use "readline()" library.
11330#
11331TARGET_READLINE_LIBS=""
11332TARGET_READLINE_INC=""
11333TARGET_HAVE_READLINE=0
11334# Check whether --enable-readline or --disable-readline was given.
11335if test "${enable_readline+set}" = set; then
11336  enableval="$enable_readline"
11337  with_readline=$enableval
11338else
11339  with_readline=auto
11340fi;
11341
11342if test x"$with_readline" != xno; then
11343	found="yes"
11344
11345
11346# Check whether --with-readline-lib or --without-readline-lib was given.
11347if test "${with_readline_lib+set}" = set; then
11348  withval="$with_readline_lib"
11349  with_readline_lib=$withval
11350else
11351  with_readline_lib="auto"
11352fi;
11353	if test "x$with_readline_lib" = xauto; then
11354		save_LIBS="$LIBS"
11355		LIBS=""
11356		echo "$as_me:$LINENO: checking for library containing tgetent" >&5
11357echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
11358if test "${ac_cv_search_tgetent+set}" = set; then
11359  echo $ECHO_N "(cached) $ECHO_C" >&6
11360else
11361  ac_func_search_save_LIBS=$LIBS
11362ac_cv_search_tgetent=no
11363cat >conftest.$ac_ext <<_ACEOF
11364/* confdefs.h.  */
11365_ACEOF
11366cat confdefs.h >>conftest.$ac_ext
11367cat >>conftest.$ac_ext <<_ACEOF
11368/* end confdefs.h.  */
11369
11370/* Override any gcc2 internal prototype to avoid an error.  */
11371#ifdef __cplusplus
11372extern "C"
11373#endif
11374/* We use char because int might match the return type of a gcc2
11375   builtin and then its argument prototype would still apply.  */
11376char tgetent ();
11377int
11378main ()
11379{
11380tgetent ();
11381  ;
11382  return 0;
11383}
11384_ACEOF
11385rm -f conftest.$ac_objext conftest$ac_exeext
11386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11387  (eval $ac_link) 2>conftest.er1
11388  ac_status=$?
11389  grep -v '^ *+' conftest.er1 >conftest.err
11390  rm -f conftest.er1
11391  cat conftest.err >&5
11392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393  (exit $ac_status); } &&
11394	 { ac_try='test -z "$ac_c_werror_flag"
11395			 || test ! -s conftest.err'
11396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397  (eval $ac_try) 2>&5
11398  ac_status=$?
11399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400  (exit $ac_status); }; } &&
11401	 { ac_try='test -s conftest$ac_exeext'
11402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403  (eval $ac_try) 2>&5
11404  ac_status=$?
11405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406  (exit $ac_status); }; }; then
11407  ac_cv_search_tgetent="none required"
11408else
11409  echo "$as_me: failed program was:" >&5
11410sed 's/^/| /' conftest.$ac_ext >&5
11411
11412fi
11413rm -f conftest.err conftest.$ac_objext \
11414      conftest$ac_exeext conftest.$ac_ext
11415if test "$ac_cv_search_tgetent" = no; then
11416  for ac_lib in readline ncurses curses termcap; do
11417    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11418    cat >conftest.$ac_ext <<_ACEOF
11419/* confdefs.h.  */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h.  */
11424
11425/* Override any gcc2 internal prototype to avoid an error.  */
11426#ifdef __cplusplus
11427extern "C"
11428#endif
11429/* We use char because int might match the return type of a gcc2
11430   builtin and then its argument prototype would still apply.  */
11431char tgetent ();
11432int
11433main ()
11434{
11435tgetent ();
11436  ;
11437  return 0;
11438}
11439_ACEOF
11440rm -f conftest.$ac_objext conftest$ac_exeext
11441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11442  (eval $ac_link) 2>conftest.er1
11443  ac_status=$?
11444  grep -v '^ *+' conftest.er1 >conftest.err
11445  rm -f conftest.er1
11446  cat conftest.err >&5
11447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448  (exit $ac_status); } &&
11449	 { ac_try='test -z "$ac_c_werror_flag"
11450			 || test ! -s conftest.err'
11451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452  (eval $ac_try) 2>&5
11453  ac_status=$?
11454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455  (exit $ac_status); }; } &&
11456	 { ac_try='test -s conftest$ac_exeext'
11457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458  (eval $ac_try) 2>&5
11459  ac_status=$?
11460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461  (exit $ac_status); }; }; then
11462  ac_cv_search_tgetent="-l$ac_lib"
11463break
11464else
11465  echo "$as_me: failed program was:" >&5
11466sed 's/^/| /' conftest.$ac_ext >&5
11467
11468fi
11469rm -f conftest.err conftest.$ac_objext \
11470      conftest$ac_exeext conftest.$ac_ext
11471  done
11472fi
11473LIBS=$ac_func_search_save_LIBS
11474fi
11475echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
11476echo "${ECHO_T}$ac_cv_search_tgetent" >&6
11477if test "$ac_cv_search_tgetent" != no; then
11478  test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
11479  term_LIBS="$LIBS"
11480else
11481  term_LIBS=""
11482fi
11483
11484		echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
11485echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
11486if test "${ac_cv_lib_readline_readline+set}" = set; then
11487  echo $ECHO_N "(cached) $ECHO_C" >&6
11488else
11489  ac_check_lib_save_LIBS=$LIBS
11490LIBS="-lreadline  $LIBS"
11491cat >conftest.$ac_ext <<_ACEOF
11492/* confdefs.h.  */
11493_ACEOF
11494cat confdefs.h >>conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h.  */
11497
11498/* Override any gcc2 internal prototype to avoid an error.  */
11499#ifdef __cplusplus
11500extern "C"
11501#endif
11502/* We use char because int might match the return type of a gcc2
11503   builtin and then its argument prototype would still apply.  */
11504char readline ();
11505int
11506main ()
11507{
11508readline ();
11509  ;
11510  return 0;
11511}
11512_ACEOF
11513rm -f conftest.$ac_objext conftest$ac_exeext
11514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515  (eval $ac_link) 2>conftest.er1
11516  ac_status=$?
11517  grep -v '^ *+' conftest.er1 >conftest.err
11518  rm -f conftest.er1
11519  cat conftest.err >&5
11520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521  (exit $ac_status); } &&
11522	 { ac_try='test -z "$ac_c_werror_flag"
11523			 || test ! -s conftest.err'
11524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525  (eval $ac_try) 2>&5
11526  ac_status=$?
11527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528  (exit $ac_status); }; } &&
11529	 { ac_try='test -s conftest$ac_exeext'
11530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531  (eval $ac_try) 2>&5
11532  ac_status=$?
11533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534  (exit $ac_status); }; }; then
11535  ac_cv_lib_readline_readline=yes
11536else
11537  echo "$as_me: failed program was:" >&5
11538sed 's/^/| /' conftest.$ac_ext >&5
11539
11540ac_cv_lib_readline_readline=no
11541fi
11542rm -f conftest.err conftest.$ac_objext \
11543      conftest$ac_exeext conftest.$ac_ext
11544LIBS=$ac_check_lib_save_LIBS
11545fi
11546echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
11547echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
11548if test $ac_cv_lib_readline_readline = yes; then
11549  TARGET_READLINE_LIBS="-lreadline"
11550else
11551  found="no"
11552fi
11553
11554		TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11555		LIBS="$save_LIBS"
11556	else
11557		TARGET_READLINE_LIBS="$with_readline_lib"
11558	fi
11559
11560
11561# Check whether --with-readline-inc or --without-readline-inc was given.
11562if test "${with_readline_inc+set}" = set; then
11563  withval="$with_readline_inc"
11564  with_readline_inc=$withval
11565else
11566  with_readline_inc="auto"
11567fi;
11568	if test "x$with_readline_inc" = xauto; then
11569		if test "${ac_cv_header_readline_h+set}" = set; then
11570  echo "$as_me:$LINENO: checking for readline.h" >&5
11571echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
11572if test "${ac_cv_header_readline_h+set}" = set; then
11573  echo $ECHO_N "(cached) $ECHO_C" >&6
11574fi
11575echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
11576echo "${ECHO_T}$ac_cv_header_readline_h" >&6
11577else
11578  # Is the header compilable?
11579echo "$as_me:$LINENO: checking readline.h usability" >&5
11580echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
11581cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h.  */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h.  */
11587$ac_includes_default
11588#include <readline.h>
11589_ACEOF
11590rm -f conftest.$ac_objext
11591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592  (eval $ac_compile) 2>conftest.er1
11593  ac_status=$?
11594  grep -v '^ *+' conftest.er1 >conftest.err
11595  rm -f conftest.er1
11596  cat conftest.err >&5
11597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598  (exit $ac_status); } &&
11599	 { ac_try='test -z "$ac_c_werror_flag"
11600			 || test ! -s conftest.err'
11601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602  (eval $ac_try) 2>&5
11603  ac_status=$?
11604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605  (exit $ac_status); }; } &&
11606	 { ac_try='test -s conftest.$ac_objext'
11607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608  (eval $ac_try) 2>&5
11609  ac_status=$?
11610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611  (exit $ac_status); }; }; then
11612  ac_header_compiler=yes
11613else
11614  echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
11617ac_header_compiler=no
11618fi
11619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11621echo "${ECHO_T}$ac_header_compiler" >&6
11622
11623# Is the header present?
11624echo "$as_me:$LINENO: checking readline.h presence" >&5
11625echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
11626cat >conftest.$ac_ext <<_ACEOF
11627/* confdefs.h.  */
11628_ACEOF
11629cat confdefs.h >>conftest.$ac_ext
11630cat >>conftest.$ac_ext <<_ACEOF
11631/* end confdefs.h.  */
11632#include <readline.h>
11633_ACEOF
11634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11635  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11636  ac_status=$?
11637  grep -v '^ *+' conftest.er1 >conftest.err
11638  rm -f conftest.er1
11639  cat conftest.err >&5
11640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641  (exit $ac_status); } >/dev/null; then
11642  if test -s conftest.err; then
11643    ac_cpp_err=$ac_c_preproc_warn_flag
11644    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11645  else
11646    ac_cpp_err=
11647  fi
11648else
11649  ac_cpp_err=yes
11650fi
11651if test -z "$ac_cpp_err"; then
11652  ac_header_preproc=yes
11653else
11654  echo "$as_me: failed program was:" >&5
11655sed 's/^/| /' conftest.$ac_ext >&5
11656
11657  ac_header_preproc=no
11658fi
11659rm -f conftest.err conftest.$ac_ext
11660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11661echo "${ECHO_T}$ac_header_preproc" >&6
11662
11663# So?  What about this header?
11664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11665  yes:no: )
11666    { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
11667echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11668    { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
11669echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
11670    ac_header_preproc=yes
11671    ;;
11672  no:yes:* )
11673    { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
11674echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
11675    { echo "$as_me:$LINENO: WARNING: readline.h:     check for missing prerequisite headers?" >&5
11676echo "$as_me: WARNING: readline.h:     check for missing prerequisite headers?" >&2;}
11677    { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
11678echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
11679    { echo "$as_me:$LINENO: WARNING: readline.h:     section \"Present But Cannot Be Compiled\"" >&5
11680echo "$as_me: WARNING: readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11681    { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
11682echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
11683    { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
11684echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
11685    (
11686      cat <<\_ASBOX
11687## --------------------------------- ##
11688## Report this to the sqlite lists.  ##
11689## --------------------------------- ##
11690_ASBOX
11691    ) |
11692      sed "s/^/$as_me: WARNING:     /" >&2
11693    ;;
11694esac
11695echo "$as_me:$LINENO: checking for readline.h" >&5
11696echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
11697if test "${ac_cv_header_readline_h+set}" = set; then
11698  echo $ECHO_N "(cached) $ECHO_C" >&6
11699else
11700  ac_cv_header_readline_h=$ac_header_preproc
11701fi
11702echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
11703echo "${ECHO_T}$ac_cv_header_readline_h" >&6
11704
11705fi
11706if test $ac_cv_header_readline_h = yes; then
11707  found="yes"
11708else
11709
11710			found="no"
11711			if test "$cross_compiling" != yes; then
11712				for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11713					for subdir in include include/readline; do
11714						as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11715echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
11716echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6
11717if eval "test \"\${$as_ac_File+set}\" = set"; then
11718  echo $ECHO_N "(cached) $ECHO_C" >&6
11719else
11720  test "$cross_compiling" = yes &&
11721  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11722echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11723   { (exit 1); exit 1; }; }
11724if test -r "$dir/$subdir/readline.h"; then
11725  eval "$as_ac_File=yes"
11726else
11727  eval "$as_ac_File=no"
11728fi
11729fi
11730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11731echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11732if test `eval echo '${'$as_ac_File'}'` = yes; then
11733  found=yes
11734fi
11735
11736						if test "$found" = "yes"; then
11737							TARGET_READLINE_INC="-I$dir/$subdir"
11738							break
11739						fi
11740					done
11741					test "$found" = "yes" && break
11742				done
11743			fi
11744
11745fi
11746
11747
11748	else
11749		TARGET_READLINE_INC="$with_readline_inc"
11750	fi
11751
11752	if test x"$found" = xno; then
11753		TARGET_READLINE_LIBS=""
11754		TARGET_READLINE_INC=""
11755		TARGET_HAVE_READLINE=0
11756	else
11757		TARGET_HAVE_READLINE=1
11758	fi
11759fi
11760
11761
11762
11763
11764
11765##########
11766# Figure out what C libraries are required to compile programs
11767# that use "fdatasync()" function.
11768#
11769echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
11770echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
11771if test "${ac_cv_search_fdatasync+set}" = set; then
11772  echo $ECHO_N "(cached) $ECHO_C" >&6
11773else
11774  ac_func_search_save_LIBS=$LIBS
11775ac_cv_search_fdatasync=no
11776cat >conftest.$ac_ext <<_ACEOF
11777/* confdefs.h.  */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h.  */
11782
11783/* Override any gcc2 internal prototype to avoid an error.  */
11784#ifdef __cplusplus
11785extern "C"
11786#endif
11787/* We use char because int might match the return type of a gcc2
11788   builtin and then its argument prototype would still apply.  */
11789char fdatasync ();
11790int
11791main ()
11792{
11793fdatasync ();
11794  ;
11795  return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext conftest$ac_exeext
11799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800  (eval $ac_link) 2>conftest.er1
11801  ac_status=$?
11802  grep -v '^ *+' conftest.er1 >conftest.err
11803  rm -f conftest.er1
11804  cat conftest.err >&5
11805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806  (exit $ac_status); } &&
11807	 { ac_try='test -z "$ac_c_werror_flag"
11808			 || test ! -s conftest.err'
11809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810  (eval $ac_try) 2>&5
11811  ac_status=$?
11812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813  (exit $ac_status); }; } &&
11814	 { ac_try='test -s conftest$ac_exeext'
11815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816  (eval $ac_try) 2>&5
11817  ac_status=$?
11818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819  (exit $ac_status); }; }; then
11820  ac_cv_search_fdatasync="none required"
11821else
11822  echo "$as_me: failed program was:" >&5
11823sed 's/^/| /' conftest.$ac_ext >&5
11824
11825fi
11826rm -f conftest.err conftest.$ac_objext \
11827      conftest$ac_exeext conftest.$ac_ext
11828if test "$ac_cv_search_fdatasync" = no; then
11829  for ac_lib in rt; do
11830    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11831    cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h.  */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h.  */
11837
11838/* Override any gcc2 internal prototype to avoid an error.  */
11839#ifdef __cplusplus
11840extern "C"
11841#endif
11842/* We use char because int might match the return type of a gcc2
11843   builtin and then its argument prototype would still apply.  */
11844char fdatasync ();
11845int
11846main ()
11847{
11848fdatasync ();
11849  ;
11850  return 0;
11851}
11852_ACEOF
11853rm -f conftest.$ac_objext conftest$ac_exeext
11854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855  (eval $ac_link) 2>conftest.er1
11856  ac_status=$?
11857  grep -v '^ *+' conftest.er1 >conftest.err
11858  rm -f conftest.er1
11859  cat conftest.err >&5
11860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861  (exit $ac_status); } &&
11862	 { ac_try='test -z "$ac_c_werror_flag"
11863			 || test ! -s conftest.err'
11864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865  (eval $ac_try) 2>&5
11866  ac_status=$?
11867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868  (exit $ac_status); }; } &&
11869	 { ac_try='test -s conftest$ac_exeext'
11870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871  (eval $ac_try) 2>&5
11872  ac_status=$?
11873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874  (exit $ac_status); }; }; then
11875  ac_cv_search_fdatasync="-l$ac_lib"
11876break
11877else
11878  echo "$as_me: failed program was:" >&5
11879sed 's/^/| /' conftest.$ac_ext >&5
11880
11881fi
11882rm -f conftest.err conftest.$ac_objext \
11883      conftest$ac_exeext conftest.$ac_ext
11884  done
11885fi
11886LIBS=$ac_func_search_save_LIBS
11887fi
11888echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
11889echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
11890if test "$ac_cv_search_fdatasync" != no; then
11891  test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
11892
11893fi
11894
11895
11896#########
11897# check for debug enabled
11898# Check whether --enable-debug or --disable-debug was given.
11899if test "${enable_debug+set}" = set; then
11900  enableval="$enable_debug"
11901  use_debug=$enableval
11902else
11903  use_debug=no
11904fi;
11905if test "${use_debug}" = "yes" ; then
11906  TARGET_DEBUG="-DSQLITE_DEBUG=1"
11907else
11908  TARGET_DEBUG="-DNDEBUG"
11909fi
11910
11911
11912#########
11913# See whether we should use the amalgamation to build
11914# Check whether --enable-amalgamation or --disable-amalgamation was given.
11915if test "${enable_amalgamation+set}" = set; then
11916  enableval="$enable_amalgamation"
11917  use_amalgamation=$enableval
11918else
11919  use_amalgamation=yes
11920fi;
11921if test "${use_amalgamation}" != "yes" ; then
11922  USE_AMALGAMATION=0
11923fi
11924
11925
11926#########
11927# See whether we should allow loadable extensions
11928# Check whether --enable-load-extension or --disable-load-extension was given.
11929if test "${enable_load_extension+set}" = set; then
11930  enableval="$enable_load_extension"
11931  use_loadextension=$enableval
11932else
11933  use_loadextension=no
11934fi;
11935if test "${use_loadextension}" = "yes" ; then
11936  OPT_FEATURE_FLAGS=""
11937else
11938  OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11939fi
11940
11941
11942#########
11943# attempt to duplicate any OMITS into the $(OPT_FEATURE_FLAGS) parameter
11944for option in $CFLAGS $CPPFLAGS
11945do
11946  case $option in
11947    -DSQLITE_OMIT*) OPT_FEATURE_FLAGS+=" $option";;
11948  esac
11949done
11950
11951
11952# attempt to remove any OMITS from the $(CFLAGS) parameter
11953ac_temp_CFLAGS=""
11954for option in $CFLAGS
11955do
11956  case $option in
11957    -DSQLITE_OMIT*) ;;
11958    *) ac_temp_CFLAGS+=" $option";;
11959  esac
11960done
11961CFLAGS=$ac_temp_CFLAGS
11962
11963
11964# attempt to remove any OMITS from the $(CPPFLAGS) parameter
11965ac_temp_CPPFLAGS=""
11966for option in $CPPFLAGS
11967do
11968  case $option in
11969    -DSQLITE_OMIT*) ;;
11970    *) ac_temp_CPPFLAGS+=" $option";;
11971  esac
11972done
11973CPPFLAGS=$ac_temp_CPPFLAGS
11974
11975# attempt to remove any OMITS from the $(BUILD_CFLAGS) parameter
11976ac_temp_BUILD_CFLAGS=""
11977for option in $BUILD_CFLAGS
11978do
11979  case $option in
11980    -DSQLITE_OMIT*) ;;
11981    *) ac_temp_BUILD_CFLAGS+=" $option";;
11982  esac
11983done
11984BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11985
11986
11987#########
11988# See whether we should use GCOV
11989# Check whether --enable-gcov or --disable-gcov was given.
11990if test "${enable_gcov+set}" = set; then
11991  enableval="$enable_gcov"
11992  use_gcov=$enableval
11993else
11994  use_gcov=no
11995fi;
11996if test "${use_gcov}" = "yes" ; then
11997  USE_GCOV=1
11998else
11999  USE_GCOV=0
12000fi
12001
12002
12003#########
12004# Output the config header
12005          ac_config_headers="$ac_config_headers config.h"
12006
12007
12008#########
12009# Generate the output files.
12010#
12011
12012                    ac_config_files="$ac_config_files Makefile sqlite3.pc"
12013cat >confcache <<\_ACEOF
12014# This file is a shell script that caches the results of configure
12015# tests run on this system so they can be shared between configure
12016# scripts and configure runs, see configure's option --config-cache.
12017# It is not useful on other systems.  If it contains results you don't
12018# want to keep, you may remove or edit it.
12019#
12020# config.status only pays attention to the cache file if you give it
12021# the --recheck option to rerun configure.
12022#
12023# `ac_cv_env_foo' variables (set or unset) will be overridden when
12024# loading this file, other *unset* `ac_cv_foo' will be assigned the
12025# following values.
12026
12027_ACEOF
12028
12029# The following way of writing the cache mishandles newlines in values,
12030# but we know of no workaround that is simple, portable, and efficient.
12031# So, don't put newlines in cache variables' values.
12032# Ultrix sh set writes to stderr and can't be redirected directly,
12033# and sets the high bit in the cache file unless we assign to the vars.
12034{
12035  (set) 2>&1 |
12036    case `(ac_space=' '; set | grep ac_space) 2>&1` in
12037    *ac_space=\ *)
12038      # `set' does not quote correctly, so add quotes (double-quote
12039      # substitution turns \\\\ into \\, and sed turns \\ into \).
12040      sed -n \
12041	"s/'/'\\\\''/g;
12042	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12043      ;;
12044    *)
12045      # `set' quotes correctly as required by POSIX, so do not add quotes.
12046      sed -n \
12047	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12048      ;;
12049    esac;
12050} |
12051  sed '
12052     t clear
12053     : clear
12054     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12055     t end
12056     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12057     : end' >>confcache
12058if diff $cache_file confcache >/dev/null 2>&1; then :; else
12059  if test -w $cache_file; then
12060    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12061    cat confcache >$cache_file
12062  else
12063    echo "not updating unwritable cache $cache_file"
12064  fi
12065fi
12066rm -f confcache
12067
12068test "x$prefix" = xNONE && prefix=$ac_default_prefix
12069# Let make expand exec_prefix.
12070test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12071
12072# VPATH may cause trouble with some makes, so we remove $(srcdir),
12073# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12074# trailing colons and then remove the whole line if VPATH becomes empty
12075# (actually we leave an empty line to preserve line numbers).
12076if test "x$srcdir" = x.; then
12077  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12078s/:*\$(srcdir):*/:/;
12079s/:*\${srcdir}:*/:/;
12080s/:*@srcdir@:*/:/;
12081s/^\([^=]*=[	 ]*\):*/\1/;
12082s/:*$//;
12083s/^[^=]*=[	 ]*$//;
12084}'
12085fi
12086
12087DEFS=-DHAVE_CONFIG_H
12088
12089ac_libobjs=
12090ac_ltlibobjs=
12091for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12092  # 1. Remove the extension, and $U if already installed.
12093  ac_i=`echo "$ac_i" |
12094	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12095  # 2. Add them.
12096  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12097  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12098done
12099LIBOBJS=$ac_libobjs
12100
12101LTLIBOBJS=$ac_ltlibobjs
12102
12103
12104
12105: ${CONFIG_STATUS=./config.status}
12106ac_clean_files_save=$ac_clean_files
12107ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12108{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12109echo "$as_me: creating $CONFIG_STATUS" >&6;}
12110cat >$CONFIG_STATUS <<_ACEOF
12111#! $SHELL
12112# Generated by $as_me.
12113# Run this file to recreate the current configuration.
12114# Compiler output produced by configure, useful for debugging
12115# configure, is in config.log if it exists.
12116
12117debug=false
12118ac_cs_recheck=false
12119ac_cs_silent=false
12120SHELL=\${CONFIG_SHELL-$SHELL}
12121_ACEOF
12122
12123cat >>$CONFIG_STATUS <<\_ACEOF
12124## --------------------- ##
12125## M4sh Initialization.  ##
12126## --------------------- ##
12127
12128# Be Bourne compatible
12129if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12130  emulate sh
12131  NULLCMD=:
12132  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12133  # is contrary to our usage.  Disable this feature.
12134  alias -g '${1+"$@"}'='"$@"'
12135elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12136  set -o posix
12137fi
12138DUALCASE=1; export DUALCASE # for MKS sh
12139
12140# Support unset when possible.
12141if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12142  as_unset=unset
12143else
12144  as_unset=false
12145fi
12146
12147
12148# Work around bugs in pre-3.0 UWIN ksh.
12149$as_unset ENV MAIL MAILPATH
12150PS1='$ '
12151PS2='> '
12152PS4='+ '
12153
12154# NLS nuisances.
12155for as_var in \
12156  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12157  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12158  LC_TELEPHONE LC_TIME
12159do
12160  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12161    eval $as_var=C; export $as_var
12162  else
12163    $as_unset $as_var
12164  fi
12165done
12166
12167# Required to use basename.
12168if expr a : '\(a\)' >/dev/null 2>&1; then
12169  as_expr=expr
12170else
12171  as_expr=false
12172fi
12173
12174if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12175  as_basename=basename
12176else
12177  as_basename=false
12178fi
12179
12180
12181# Name of the executable.
12182as_me=`$as_basename "$0" ||
12183$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12184	 X"$0" : 'X\(//\)$' \| \
12185	 X"$0" : 'X\(/\)$' \| \
12186	 .     : '\(.\)' 2>/dev/null ||
12187echo X/"$0" |
12188    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12189  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
12190  	  /^X\/\(\/\).*/{ s//\1/; q; }
12191  	  s/.*/./; q'`
12192
12193
12194# PATH needs CR, and LINENO needs CR and PATH.
12195# Avoid depending upon Character Ranges.
12196as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12197as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12198as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12199as_cr_digits='0123456789'
12200as_cr_alnum=$as_cr_Letters$as_cr_digits
12201
12202# The user is always right.
12203if test "${PATH_SEPARATOR+set}" != set; then
12204  echo "#! /bin/sh" >conf$$.sh
12205  echo  "exit 0"   >>conf$$.sh
12206  chmod +x conf$$.sh
12207  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12208    PATH_SEPARATOR=';'
12209  else
12210    PATH_SEPARATOR=:
12211  fi
12212  rm -f conf$$.sh
12213fi
12214
12215
12216  as_lineno_1=$LINENO
12217  as_lineno_2=$LINENO
12218  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12219  test "x$as_lineno_1" != "x$as_lineno_2" &&
12220  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12221  # Find who we are.  Look in the path if we contain no path at all
12222  # relative or not.
12223  case $0 in
12224    *[\\/]* ) as_myself=$0 ;;
12225    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226for as_dir in $PATH
12227do
12228  IFS=$as_save_IFS
12229  test -z "$as_dir" && as_dir=.
12230  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12231done
12232
12233       ;;
12234  esac
12235  # We did not find ourselves, most probably we were run as `sh COMMAND'
12236  # in which case we are not to be found in the path.
12237  if test "x$as_myself" = x; then
12238    as_myself=$0
12239  fi
12240  if test ! -f "$as_myself"; then
12241    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12242echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12243   { (exit 1); exit 1; }; }
12244  fi
12245  case $CONFIG_SHELL in
12246  '')
12247    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12249do
12250  IFS=$as_save_IFS
12251  test -z "$as_dir" && as_dir=.
12252  for as_base in sh bash ksh sh5; do
12253	 case $as_dir in
12254	 /*)
12255	   if ("$as_dir/$as_base" -c '
12256  as_lineno_1=$LINENO
12257  as_lineno_2=$LINENO
12258  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12259  test "x$as_lineno_1" != "x$as_lineno_2" &&
12260  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12261	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12262	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12263	     CONFIG_SHELL=$as_dir/$as_base
12264	     export CONFIG_SHELL
12265	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12266	   fi;;
12267	 esac
12268       done
12269done
12270;;
12271  esac
12272
12273  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12274  # uniformly replaced by the line number.  The first 'sed' inserts a
12275  # line-number line before each line; the second 'sed' does the real
12276  # work.  The second script uses 'N' to pair each line-number line
12277  # with the numbered line, and appends trailing '-' during
12278  # substitution so that $LINENO is not a special case at line end.
12279  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12280  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12281  sed '=' <$as_myself |
12282    sed '
12283      N
12284      s,$,-,
12285      : loop
12286      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12287      t loop
12288      s,-$,,
12289      s,^['$as_cr_digits']*\n,,
12290    ' >$as_me.lineno &&
12291  chmod +x $as_me.lineno ||
12292    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12293echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12294   { (exit 1); exit 1; }; }
12295
12296  # Don't try to exec as it changes $[0], causing all sort of problems
12297  # (the dirname of $[0] is not the place where we might find the
12298  # original and so on.  Autoconf is especially sensible to this).
12299  . ./$as_me.lineno
12300  # Exit status is that of the last command.
12301  exit
12302}
12303
12304
12305case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12306  *c*,-n*) ECHO_N= ECHO_C='
12307' ECHO_T='	' ;;
12308  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12309  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12310esac
12311
12312if expr a : '\(a\)' >/dev/null 2>&1; then
12313  as_expr=expr
12314else
12315  as_expr=false
12316fi
12317
12318rm -f conf$$ conf$$.exe conf$$.file
12319echo >conf$$.file
12320if ln -s conf$$.file conf$$ 2>/dev/null; then
12321  # We could just check for DJGPP; but this test a) works b) is more generic
12322  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12323  if test -f conf$$.exe; then
12324    # Don't use ln at all; we don't have any links
12325    as_ln_s='cp -p'
12326  else
12327    as_ln_s='ln -s'
12328  fi
12329elif ln conf$$.file conf$$ 2>/dev/null; then
12330  as_ln_s=ln
12331else
12332  as_ln_s='cp -p'
12333fi
12334rm -f conf$$ conf$$.exe conf$$.file
12335
12336if mkdir -p . 2>/dev/null; then
12337  as_mkdir_p=:
12338else
12339  test -d ./-p && rmdir ./-p
12340  as_mkdir_p=false
12341fi
12342
12343as_executable_p="test -f"
12344
12345# Sed expression to map a string onto a valid CPP name.
12346as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12347
12348# Sed expression to map a string onto a valid variable name.
12349as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12350
12351
12352# IFS
12353# We need space, tab and new line, in precisely that order.
12354as_nl='
12355'
12356IFS=" 	$as_nl"
12357
12358# CDPATH.
12359$as_unset CDPATH
12360
12361exec 6>&1
12362
12363# Open the log real soon, to keep \$[0] and so on meaningful, and to
12364# report actual input values of CONFIG_FILES etc. instead of their
12365# values after options handling.  Logging --version etc. is OK.
12366exec 5>>config.log
12367{
12368  echo
12369  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12370## Running $as_me. ##
12371_ASBOX
12372} >&5
12373cat >&5 <<_CSEOF
12374
12375This file was extended by sqlite $as_me 3.6.0, which was
12376generated by GNU Autoconf 2.59.  Invocation command line was
12377
12378  CONFIG_FILES    = $CONFIG_FILES
12379  CONFIG_HEADERS  = $CONFIG_HEADERS
12380  CONFIG_LINKS    = $CONFIG_LINKS
12381  CONFIG_COMMANDS = $CONFIG_COMMANDS
12382  $ $0 $@
12383
12384_CSEOF
12385echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12386echo >&5
12387_ACEOF
12388
12389# Files that config.status was made for.
12390if test -n "$ac_config_files"; then
12391  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12392fi
12393
12394if test -n "$ac_config_headers"; then
12395  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12396fi
12397
12398if test -n "$ac_config_links"; then
12399  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12400fi
12401
12402if test -n "$ac_config_commands"; then
12403  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12404fi
12405
12406cat >>$CONFIG_STATUS <<\_ACEOF
12407
12408ac_cs_usage="\
12409\`$as_me' instantiates files from templates according to the
12410current configuration.
12411
12412Usage: $0 [OPTIONS] [FILE]...
12413
12414  -h, --help       print this help, then exit
12415  -V, --version    print version number, then exit
12416  -q, --quiet      do not print progress messages
12417  -d, --debug      don't remove temporary files
12418      --recheck    update $as_me by reconfiguring in the same conditions
12419  --file=FILE[:TEMPLATE]
12420		   instantiate the configuration file FILE
12421  --header=FILE[:TEMPLATE]
12422		   instantiate the configuration header FILE
12423
12424Configuration files:
12425$config_files
12426
12427Configuration headers:
12428$config_headers
12429
12430Configuration commands:
12431$config_commands
12432
12433Report bugs to <[email protected]>."
12434_ACEOF
12435
12436cat >>$CONFIG_STATUS <<_ACEOF
12437ac_cs_version="\\
12438sqlite config.status 3.6.0
12439configured by $0, generated by GNU Autoconf 2.59,
12440  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12441
12442Copyright (C) 2003 Free Software Foundation, Inc.
12443This config.status script is free software; the Free Software Foundation
12444gives unlimited permission to copy, distribute and modify it."
12445srcdir=$srcdir
12446INSTALL="$INSTALL"
12447_ACEOF
12448
12449cat >>$CONFIG_STATUS <<\_ACEOF
12450# If no file are specified by the user, then we need to provide default
12451# value.  By we need to know if files were specified by the user.
12452ac_need_defaults=:
12453while test $# != 0
12454do
12455  case $1 in
12456  --*=*)
12457    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12458    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12459    ac_shift=:
12460    ;;
12461  -*)
12462    ac_option=$1
12463    ac_optarg=$2
12464    ac_shift=shift
12465    ;;
12466  *) # This is not an option, so the user has probably given explicit
12467     # arguments.
12468     ac_option=$1
12469     ac_need_defaults=false;;
12470  esac
12471
12472  case $ac_option in
12473  # Handling of the options.
12474_ACEOF
12475cat >>$CONFIG_STATUS <<\_ACEOF
12476  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12477    ac_cs_recheck=: ;;
12478  --version | --vers* | -V )
12479    echo "$ac_cs_version"; exit 0 ;;
12480  --he | --h)
12481    # Conflict between --help and --header
12482    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12483Try \`$0 --help' for more information." >&5
12484echo "$as_me: error: ambiguous option: $1
12485Try \`$0 --help' for more information." >&2;}
12486   { (exit 1); exit 1; }; };;
12487  --help | --hel | -h )
12488    echo "$ac_cs_usage"; exit 0 ;;
12489  --debug | --d* | -d )
12490    debug=: ;;
12491  --file | --fil | --fi | --f )
12492    $ac_shift
12493    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12494    ac_need_defaults=false;;
12495  --header | --heade | --head | --hea )
12496    $ac_shift
12497    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12498    ac_need_defaults=false;;
12499  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12500  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12501    ac_cs_silent=: ;;
12502
12503  # This is an error.
12504  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12505Try \`$0 --help' for more information." >&5
12506echo "$as_me: error: unrecognized option: $1
12507Try \`$0 --help' for more information." >&2;}
12508   { (exit 1); exit 1; }; } ;;
12509
12510  *) ac_config_targets="$ac_config_targets $1" ;;
12511
12512  esac
12513  shift
12514done
12515
12516ac_configure_extra_args=
12517
12518if $ac_cs_silent; then
12519  exec 6>/dev/null
12520  ac_configure_extra_args="$ac_configure_extra_args --silent"
12521fi
12522
12523_ACEOF
12524cat >>$CONFIG_STATUS <<_ACEOF
12525if \$ac_cs_recheck; then
12526  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12527  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12528fi
12529
12530_ACEOF
12531
12532cat >>$CONFIG_STATUS <<_ACEOF
12533#
12534# INIT-COMMANDS section.
12535#
12536
12537
12538
12539# The HP-UX ksh and POSIX shell print the target directory to stdout
12540# if CDPATH is set.
12541(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12542
12543sed_quote_subst='$sed_quote_subst'
12544double_quote_subst='$double_quote_subst'
12545delay_variable_subst='$delay_variable_subst'
12546macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12547macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12548enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12549enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12550pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12551enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12552host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12553host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12554host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12555build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12556build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12557build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12558SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12559Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12560GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12561EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12562FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12563LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12564NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12565LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12566max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12567ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12568exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12569lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12570lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12571lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12572reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12573reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12574deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12575file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12576AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12577AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12578STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12579RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12580old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12581old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12582old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12583CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12584CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12585compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12586GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12587lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12588lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12589lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12590lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12591objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12592SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12593ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12594MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12595lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12596lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12597lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12598lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12599lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12600need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12601DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12602NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12603LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12604OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12605OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12606libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12607shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12608extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12609archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12610enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12611export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12612whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12613compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12614old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12615old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12616archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12617archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12618module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12619module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12620with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12621allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12622no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12623hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12624hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12625hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12626hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12627hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12628hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12629hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12630hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12631inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12632link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12633fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12634always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12635export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12636exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12637include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12638prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12639file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12640variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12641need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12642need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12643version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12644runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12645shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12646shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12647libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12648library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12649soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12650postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12651postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12652finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12653finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12654hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12655sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12656sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12657hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12658enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12659enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12660enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12661old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12662striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12663
12664LTCC='$LTCC'
12665LTCFLAGS='$LTCFLAGS'
12666compiler='$compiler_DEFAULT'
12667
12668# Quote evaled strings.
12669for var in SED \
12670GREP \
12671EGREP \
12672FGREP \
12673LD \
12674NM \
12675LN_S \
12676lt_SP2NL \
12677lt_NL2SP \
12678reload_flag \
12679deplibs_check_method \
12680file_magic_cmd \
12681AR \
12682AR_FLAGS \
12683STRIP \
12684RANLIB \
12685CC \
12686CFLAGS \
12687compiler \
12688lt_cv_sys_global_symbol_pipe \
12689lt_cv_sys_global_symbol_to_cdecl \
12690lt_cv_sys_global_symbol_to_c_name_address \
12691lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12692SHELL \
12693ECHO \
12694lt_prog_compiler_no_builtin_flag \
12695lt_prog_compiler_wl \
12696lt_prog_compiler_pic \
12697lt_prog_compiler_static \
12698lt_cv_prog_compiler_c_o \
12699need_locks \
12700DSYMUTIL \
12701NMEDIT \
12702LIPO \
12703OTOOL \
12704OTOOL64 \
12705shrext_cmds \
12706export_dynamic_flag_spec \
12707whole_archive_flag_spec \
12708compiler_needs_object \
12709with_gnu_ld \
12710allow_undefined_flag \
12711no_undefined_flag \
12712hardcode_libdir_flag_spec \
12713hardcode_libdir_flag_spec_ld \
12714hardcode_libdir_separator \
12715fix_srcfile_path \
12716exclude_expsyms \
12717include_expsyms \
12718file_list_spec \
12719variables_saved_for_relink \
12720libname_spec \
12721library_names_spec \
12722soname_spec \
12723finish_eval \
12724old_striplib \
12725striplib; do
12726    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12727    *[\\\\\\\`\\"\\\$]*)
12728      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12729      ;;
12730    *)
12731      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12732      ;;
12733    esac
12734done
12735
12736# Double-quote double-evaled strings.
12737for var in reload_cmds \
12738old_postinstall_cmds \
12739old_postuninstall_cmds \
12740old_archive_cmds \
12741extract_expsyms_cmds \
12742old_archive_from_new_cmds \
12743old_archive_from_expsyms_cmds \
12744archive_cmds \
12745archive_expsym_cmds \
12746module_cmds \
12747module_expsym_cmds \
12748export_symbols_cmds \
12749prelink_cmds \
12750postinstall_cmds \
12751postuninstall_cmds \
12752finish_cmds \
12753sys_lib_search_path_spec \
12754sys_lib_dlsearch_path_spec; do
12755    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12756    *[\\\\\\\`\\"\\\$]*)
12757      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12758      ;;
12759    *)
12760      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12761      ;;
12762    esac
12763done
12764
12765# Fix-up fallback echo if it was mangled by the above quoting rules.
12766case \$lt_ECHO in
12767*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12768  ;;
12769esac
12770
12771ac_aux_dir='$ac_aux_dir'
12772xsi_shell='$xsi_shell'
12773lt_shell_append='$lt_shell_append'
12774
12775# See if we are running on zsh, and set the options which allow our
12776# commands through without removal of \ escapes INIT.
12777if test -n "\${ZSH_VERSION+set}" ; then
12778   setopt NO_GLOB_SUBST
12779fi
12780
12781
12782    PACKAGE='$PACKAGE'
12783    VERSION='$VERSION'
12784    TIMESTAMP='$TIMESTAMP'
12785    RM='$RM'
12786    ofile='$ofile'
12787
12788
12789
12790
12791_ACEOF
12792
12793
12794
12795cat >>$CONFIG_STATUS <<\_ACEOF
12796for ac_config_target in $ac_config_targets
12797do
12798  case "$ac_config_target" in
12799  # Handling of arguments.
12800  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12801  "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12802  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12803  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12804  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12805echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12806   { (exit 1); exit 1; }; };;
12807  esac
12808done
12809
12810# If the user did not use the arguments to specify the items to instantiate,
12811# then the envvar interface is used.  Set only those that are not.
12812# We use the long form for the default assignment because of an extremely
12813# bizarre bug on SunOS 4.1.3.
12814if $ac_need_defaults; then
12815  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12816  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12817  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12818fi
12819
12820# Have a temporary directory for convenience.  Make it in the build tree
12821# simply because there is no reason to put it here, and in addition,
12822# creating and moving files from /tmp can sometimes cause problems.
12823# Create a temporary directory, and hook for its removal unless debugging.
12824$debug ||
12825{
12826  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12827  trap '{ (exit 1); exit 1; }' 1 2 13 15
12828}
12829
12830# Create a (secure) tmp directory for tmp files.
12831
12832{
12833  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12834  test -n "$tmp" && test -d "$tmp"
12835}  ||
12836{
12837  tmp=./confstat$$-$RANDOM
12838  (umask 077 && mkdir $tmp)
12839} ||
12840{
12841   echo "$me: cannot create a temporary directory in ." >&2
12842   { (exit 1); exit 1; }
12843}
12844
12845_ACEOF
12846
12847cat >>$CONFIG_STATUS <<_ACEOF
12848
12849#
12850# CONFIG_FILES section.
12851#
12852
12853# No need to generate the scripts if there are no CONFIG_FILES.
12854# This happens for instance when ./config.status config.h
12855if test -n "\$CONFIG_FILES"; then
12856  # Protect against being on the right side of a sed subst in config.status.
12857  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12858   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12859s,@SHELL@,$SHELL,;t t
12860s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12861s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12862s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12863s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12864s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12865s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12866s,@exec_prefix@,$exec_prefix,;t t
12867s,@prefix@,$prefix,;t t
12868s,@program_transform_name@,$program_transform_name,;t t
12869s,@bindir@,$bindir,;t t
12870s,@sbindir@,$sbindir,;t t
12871s,@libexecdir@,$libexecdir,;t t
12872s,@datadir@,$datadir,;t t
12873s,@sysconfdir@,$sysconfdir,;t t
12874s,@sharedstatedir@,$sharedstatedir,;t t
12875s,@localstatedir@,$localstatedir,;t t
12876s,@libdir@,$libdir,;t t
12877s,@includedir@,$includedir,;t t
12878s,@oldincludedir@,$oldincludedir,;t t
12879s,@infodir@,$infodir,;t t
12880s,@mandir@,$mandir,;t t
12881s,@build_alias@,$build_alias,;t t
12882s,@host_alias@,$host_alias,;t t
12883s,@target_alias@,$target_alias,;t t
12884s,@DEFS@,$DEFS,;t t
12885s,@ECHO_C@,$ECHO_C,;t t
12886s,@ECHO_N@,$ECHO_N,;t t
12887s,@ECHO_T@,$ECHO_T,;t t
12888s,@LIBS@,$LIBS,;t t
12889s,@LIBTOOL@,$LIBTOOL,;t t
12890s,@build@,$build,;t t
12891s,@build_cpu@,$build_cpu,;t t
12892s,@build_vendor@,$build_vendor,;t t
12893s,@build_os@,$build_os,;t t
12894s,@host@,$host,;t t
12895s,@host_cpu@,$host_cpu,;t t
12896s,@host_vendor@,$host_vendor,;t t
12897s,@host_os@,$host_os,;t t
12898s,@CC@,$CC,;t t
12899s,@CFLAGS@,$CFLAGS,;t t
12900s,@LDFLAGS@,$LDFLAGS,;t t
12901s,@CPPFLAGS@,$CPPFLAGS,;t t
12902s,@ac_ct_CC@,$ac_ct_CC,;t t
12903s,@EXEEXT@,$EXEEXT,;t t
12904s,@OBJEXT@,$OBJEXT,;t t
12905s,@SED@,$SED,;t t
12906s,@EGREP@,$EGREP,;t t
12907s,@FGREP@,$FGREP,;t t
12908s,@GREP@,$GREP,;t t
12909s,@LD@,$LD,;t t
12910s,@DUMPBIN@,$DUMPBIN,;t t
12911s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12912s,@NM@,$NM,;t t
12913s,@LN_S@,$LN_S,;t t
12914s,@AR@,$AR,;t t
12915s,@ac_ct_AR@,$ac_ct_AR,;t t
12916s,@STRIP@,$STRIP,;t t
12917s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12918s,@RANLIB@,$RANLIB,;t t
12919s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12920s,@lt_ECHO@,$lt_ECHO,;t t
12921s,@DSYMUTIL@,$DSYMUTIL,;t t
12922s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12923s,@NMEDIT@,$NMEDIT,;t t
12924s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12925s,@LIPO@,$LIPO,;t t
12926s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12927s,@OTOOL@,$OTOOL,;t t
12928s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12929s,@OTOOL64@,$OTOOL64,;t t
12930s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12931s,@CPP@,$CPP,;t t
12932s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12933s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12934s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12935s,@AWK@,$AWK,;t t
12936s,@TCLSH_CMD@,$TCLSH_CMD,;t t
12937s,@program_prefix@,$program_prefix,;t t
12938s,@VERSION@,$VERSION,;t t
12939s,@RELEASE@,$RELEASE,;t t
12940s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
12941s,@BUILD_CC@,$BUILD_CC,;t t
12942s,@SQLITE_THREADSAFE@,$SQLITE_THREADSAFE,;t t
12943s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t
12944s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t
12945s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
12946s,@TEMP_STORE@,$TEMP_STORE,;t t
12947s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
12948s,@SQLITE_OS_UNIX@,$SQLITE_OS_UNIX,;t t
12949s,@SQLITE_OS_WIN@,$SQLITE_OS_WIN,;t t
12950s,@SQLITE_OS_OS2@,$SQLITE_OS_OS2,;t t
12951s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
12952s,@TCL_VERSION@,$TCL_VERSION,;t t
12953s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
12954s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
12955s,@TCL_LIBS@,$TCL_LIBS,;t t
12956s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
12957s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
12958s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
12959s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
12960s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
12961s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
12962s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
12963s,@HAVE_TCL@,$HAVE_TCL,;t t
12964s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
12965s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
12966s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
12967s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t
12968s,@USE_AMALGAMATION@,$USE_AMALGAMATION,;t t
12969s,@OPT_FEATURE_FLAGS@,$OPT_FEATURE_FLAGS,;t t
12970s,@USE_GCOV@,$USE_GCOV,;t t
12971s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12972s,@LIBOBJS@,$LIBOBJS,;t t
12973s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12974CEOF
12975
12976_ACEOF
12977
12978  cat >>$CONFIG_STATUS <<\_ACEOF
12979  # Split the substitutions into bite-sized pieces for seds with
12980  # small command number limits, like on Digital OSF/1 and HP-UX.
12981  ac_max_sed_lines=48
12982  ac_sed_frag=1 # Number of current file.
12983  ac_beg=1 # First line for current file.
12984  ac_end=$ac_max_sed_lines # Line after last line for current file.
12985  ac_more_lines=:
12986  ac_sed_cmds=
12987  while $ac_more_lines; do
12988    if test $ac_beg -gt 1; then
12989      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12990    else
12991      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12992    fi
12993    if test ! -s $tmp/subs.frag; then
12994      ac_more_lines=false
12995    else
12996      # The purpose of the label and of the branching condition is to
12997      # speed up the sed processing (if there are no `@' at all, there
12998      # is no need to browse any of the substitutions).
12999      # These are the two extra sed commands mentioned above.
13000      (echo ':t
13001  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13002      if test -z "$ac_sed_cmds"; then
13003	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13004      else
13005	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13006      fi
13007      ac_sed_frag=`expr $ac_sed_frag + 1`
13008      ac_beg=$ac_end
13009      ac_end=`expr $ac_end + $ac_max_sed_lines`
13010    fi
13011  done
13012  if test -z "$ac_sed_cmds"; then
13013    ac_sed_cmds=cat
13014  fi
13015fi # test -n "$CONFIG_FILES"
13016
13017_ACEOF
13018cat >>$CONFIG_STATUS <<\_ACEOF
13019for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13020  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13021  case $ac_file in
13022  - | *:- | *:-:* ) # input from stdin
13023	cat >$tmp/stdin
13024	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13025	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13026  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13027	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13028  * )   ac_file_in=$ac_file.in ;;
13029  esac
13030
13031  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13032  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13033$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13034	 X"$ac_file" : 'X\(//\)[^/]' \| \
13035	 X"$ac_file" : 'X\(//\)$' \| \
13036	 X"$ac_file" : 'X\(/\)' \| \
13037	 .     : '\(.\)' 2>/dev/null ||
13038echo X"$ac_file" |
13039    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13040  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13041  	  /^X\(\/\/\)$/{ s//\1/; q; }
13042  	  /^X\(\/\).*/{ s//\1/; q; }
13043  	  s/.*/./; q'`
13044  { if $as_mkdir_p; then
13045    mkdir -p "$ac_dir"
13046  else
13047    as_dir="$ac_dir"
13048    as_dirs=
13049    while test ! -d "$as_dir"; do
13050      as_dirs="$as_dir $as_dirs"
13051      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13052$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13053	 X"$as_dir" : 'X\(//\)[^/]' \| \
13054	 X"$as_dir" : 'X\(//\)$' \| \
13055	 X"$as_dir" : 'X\(/\)' \| \
13056	 .     : '\(.\)' 2>/dev/null ||
13057echo X"$as_dir" |
13058    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13059  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13060  	  /^X\(\/\/\)$/{ s//\1/; q; }
13061  	  /^X\(\/\).*/{ s//\1/; q; }
13062  	  s/.*/./; q'`
13063    done
13064    test ! -n "$as_dirs" || mkdir $as_dirs
13065  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13066echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13067   { (exit 1); exit 1; }; }; }
13068
13069  ac_builddir=.
13070
13071if test "$ac_dir" != .; then
13072  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13073  # A "../" for each directory in $ac_dir_suffix.
13074  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13075else
13076  ac_dir_suffix= ac_top_builddir=
13077fi
13078
13079case $srcdir in
13080  .)  # No --srcdir option.  We are building in place.
13081    ac_srcdir=.
13082    if test -z "$ac_top_builddir"; then
13083       ac_top_srcdir=.
13084    else
13085       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13086    fi ;;
13087  [\\/]* | ?:[\\/]* )  # Absolute path.
13088    ac_srcdir=$srcdir$ac_dir_suffix;
13089    ac_top_srcdir=$srcdir ;;
13090  *) # Relative path.
13091    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13092    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13093esac
13094
13095# Do not use `cd foo && pwd` to compute absolute paths, because
13096# the directories may not exist.
13097case `pwd` in
13098.) ac_abs_builddir="$ac_dir";;
13099*)
13100  case "$ac_dir" in
13101  .) ac_abs_builddir=`pwd`;;
13102  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13103  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13104  esac;;
13105esac
13106case $ac_abs_builddir in
13107.) ac_abs_top_builddir=${ac_top_builddir}.;;
13108*)
13109  case ${ac_top_builddir}. in
13110  .) ac_abs_top_builddir=$ac_abs_builddir;;
13111  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13112  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13113  esac;;
13114esac
13115case $ac_abs_builddir in
13116.) ac_abs_srcdir=$ac_srcdir;;
13117*)
13118  case $ac_srcdir in
13119  .) ac_abs_srcdir=$ac_abs_builddir;;
13120  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13121  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13122  esac;;
13123esac
13124case $ac_abs_builddir in
13125.) ac_abs_top_srcdir=$ac_top_srcdir;;
13126*)
13127  case $ac_top_srcdir in
13128  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13129  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13130  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13131  esac;;
13132esac
13133
13134
13135  case $INSTALL in
13136  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13137  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13138  esac
13139
13140  if test x"$ac_file" != x-; then
13141    { echo "$as_me:$LINENO: creating $ac_file" >&5
13142echo "$as_me: creating $ac_file" >&6;}
13143    rm -f "$ac_file"
13144  fi
13145  # Let's still pretend it is `configure' which instantiates (i.e., don't
13146  # use $as_me), people would be surprised to read:
13147  #    /* config.h.  Generated by config.status.  */
13148  if test x"$ac_file" = x-; then
13149    configure_input=
13150  else
13151    configure_input="$ac_file.  "
13152  fi
13153  configure_input=$configure_input"Generated from `echo $ac_file_in |
13154				     sed 's,.*/,,'` by configure."
13155
13156  # First look for the input files in the build tree, otherwise in the
13157  # src tree.
13158  ac_file_inputs=`IFS=:
13159    for f in $ac_file_in; do
13160      case $f in
13161      -) echo $tmp/stdin ;;
13162      [\\/$]*)
13163	 # Absolute (can't be DOS-style, as IFS=:)
13164	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13165echo "$as_me: error: cannot find input file: $f" >&2;}
13166   { (exit 1); exit 1; }; }
13167	 echo "$f";;
13168      *) # Relative
13169	 if test -f "$f"; then
13170	   # Build tree
13171	   echo "$f"
13172	 elif test -f "$srcdir/$f"; then
13173	   # Source tree
13174	   echo "$srcdir/$f"
13175	 else
13176	   # /dev/null tree
13177	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13178echo "$as_me: error: cannot find input file: $f" >&2;}
13179   { (exit 1); exit 1; }; }
13180	 fi;;
13181      esac
13182    done` || { (exit 1); exit 1; }
13183_ACEOF
13184cat >>$CONFIG_STATUS <<_ACEOF
13185  sed "$ac_vpsub
13186$extrasub
13187_ACEOF
13188cat >>$CONFIG_STATUS <<\_ACEOF
13189:t
13190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13191s,@configure_input@,$configure_input,;t t
13192s,@srcdir@,$ac_srcdir,;t t
13193s,@abs_srcdir@,$ac_abs_srcdir,;t t
13194s,@top_srcdir@,$ac_top_srcdir,;t t
13195s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13196s,@builddir@,$ac_builddir,;t t
13197s,@abs_builddir@,$ac_abs_builddir,;t t
13198s,@top_builddir@,$ac_top_builddir,;t t
13199s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13200s,@INSTALL@,$ac_INSTALL,;t t
13201" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13202  rm -f $tmp/stdin
13203  if test x"$ac_file" != x-; then
13204    mv $tmp/out $ac_file
13205  else
13206    cat $tmp/out
13207    rm -f $tmp/out
13208  fi
13209
13210done
13211_ACEOF
13212cat >>$CONFIG_STATUS <<\_ACEOF
13213
13214#
13215# CONFIG_HEADER section.
13216#
13217
13218# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13219# NAME is the cpp macro being defined and VALUE is the value it is being given.
13220#
13221# ac_d sets the value in "#define NAME VALUE" lines.
13222ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
13223ac_dB='[	 ].*$,\1#\2'
13224ac_dC=' '
13225ac_dD=',;t'
13226# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13227ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
13228ac_uB='$,\1#\2define\3'
13229ac_uC=' '
13230ac_uD=',;t'
13231
13232for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13233  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13234  case $ac_file in
13235  - | *:- | *:-:* ) # input from stdin
13236	cat >$tmp/stdin
13237	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13238	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13239  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13240	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13241  * )   ac_file_in=$ac_file.in ;;
13242  esac
13243
13244  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13245echo "$as_me: creating $ac_file" >&6;}
13246
13247  # First look for the input files in the build tree, otherwise in the
13248  # src tree.
13249  ac_file_inputs=`IFS=:
13250    for f in $ac_file_in; do
13251      case $f in
13252      -) echo $tmp/stdin ;;
13253      [\\/$]*)
13254	 # Absolute (can't be DOS-style, as IFS=:)
13255	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13256echo "$as_me: error: cannot find input file: $f" >&2;}
13257   { (exit 1); exit 1; }; }
13258	 # Do quote $f, to prevent DOS paths from being IFS'd.
13259	 echo "$f";;
13260      *) # Relative
13261	 if test -f "$f"; then
13262	   # Build tree
13263	   echo "$f"
13264	 elif test -f "$srcdir/$f"; then
13265	   # Source tree
13266	   echo "$srcdir/$f"
13267	 else
13268	   # /dev/null tree
13269	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13270echo "$as_me: error: cannot find input file: $f" >&2;}
13271   { (exit 1); exit 1; }; }
13272	 fi;;
13273      esac
13274    done` || { (exit 1); exit 1; }
13275  # Remove the trailing spaces.
13276  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
13277
13278_ACEOF
13279
13280# Transform confdefs.h into two sed scripts, `conftest.defines' and
13281# `conftest.undefs', that substitutes the proper values into
13282# config.h.in to produce config.h.  The first handles `#define'
13283# templates, and the second `#undef' templates.
13284# And first: Protect against being on the right side of a sed subst in
13285# config.status.  Protect against being in an unquoted here document
13286# in config.status.
13287rm -f conftest.defines conftest.undefs
13288# Using a here document instead of a string reduces the quoting nightmare.
13289# Putting comments in sed scripts is not portable.
13290#
13291# `end' is used to avoid that the second main sed command (meant for
13292# 0-ary CPP macros) applies to n-ary macro definitions.
13293# See the Autoconf documentation for `clear'.
13294cat >confdef2sed.sed <<\_ACEOF
13295s/[\\&,]/\\&/g
13296s,[\\$`],\\&,g
13297t clear
13298: clear
13299s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13300t end
13301s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13302: end
13303_ACEOF
13304# If some macros were called several times there might be several times
13305# the same #defines, which is useless.  Nevertheless, we may not want to
13306# sort them, since we want the *last* AC-DEFINE to be honored.
13307uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13308sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13309rm -f confdef2sed.sed
13310
13311# This sed command replaces #undef with comments.  This is necessary, for
13312# example, in the case of _POSIX_SOURCE, which is predefined and required
13313# on some systems where configure will not decide to define it.
13314cat >>conftest.undefs <<\_ACEOF
13315s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13316_ACEOF
13317
13318# Break up conftest.defines because some shells have a limit on the size
13319# of here documents, and old seds have small limits too (100 cmds).
13320echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13321echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13322echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13323echo '  :' >>$CONFIG_STATUS
13324rm -f conftest.tail
13325while grep . conftest.defines >/dev/null
13326do
13327  # Write a limited-size here document to $tmp/defines.sed.
13328  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13329  # Speed up: don't consider the non `#define' lines.
13330  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
13331  # Work around the forget-to-reset-the-flag bug.
13332  echo 't clr' >>$CONFIG_STATUS
13333  echo ': clr' >>$CONFIG_STATUS
13334  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13335  echo 'CEOF
13336  sed -f $tmp/defines.sed $tmp/in >$tmp/out
13337  rm -f $tmp/in
13338  mv $tmp/out $tmp/in
13339' >>$CONFIG_STATUS
13340  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13341  rm -f conftest.defines
13342  mv conftest.tail conftest.defines
13343done
13344rm -f conftest.defines
13345echo '  fi # grep' >>$CONFIG_STATUS
13346echo >>$CONFIG_STATUS
13347
13348# Break up conftest.undefs because some shells have a limit on the size
13349# of here documents, and old seds have small limits too (100 cmds).
13350echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13351rm -f conftest.tail
13352while grep . conftest.undefs >/dev/null
13353do
13354  # Write a limited-size here document to $tmp/undefs.sed.
13355  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13356  # Speed up: don't consider the non `#undef'
13357  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
13358  # Work around the forget-to-reset-the-flag bug.
13359  echo 't clr' >>$CONFIG_STATUS
13360  echo ': clr' >>$CONFIG_STATUS
13361  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13362  echo 'CEOF
13363  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13364  rm -f $tmp/in
13365  mv $tmp/out $tmp/in
13366' >>$CONFIG_STATUS
13367  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13368  rm -f conftest.undefs
13369  mv conftest.tail conftest.undefs
13370done
13371rm -f conftest.undefs
13372
13373cat >>$CONFIG_STATUS <<\_ACEOF
13374  # Let's still pretend it is `configure' which instantiates (i.e., don't
13375  # use $as_me), people would be surprised to read:
13376  #    /* config.h.  Generated by config.status.  */
13377  if test x"$ac_file" = x-; then
13378    echo "/* Generated by configure.  */" >$tmp/config.h
13379  else
13380    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13381  fi
13382  cat $tmp/in >>$tmp/config.h
13383  rm -f $tmp/in
13384  if test x"$ac_file" != x-; then
13385    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13386      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13387echo "$as_me: $ac_file is unchanged" >&6;}
13388    else
13389      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13390$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13391	 X"$ac_file" : 'X\(//\)[^/]' \| \
13392	 X"$ac_file" : 'X\(//\)$' \| \
13393	 X"$ac_file" : 'X\(/\)' \| \
13394	 .     : '\(.\)' 2>/dev/null ||
13395echo X"$ac_file" |
13396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13397  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13398  	  /^X\(\/\/\)$/{ s//\1/; q; }
13399  	  /^X\(\/\).*/{ s//\1/; q; }
13400  	  s/.*/./; q'`
13401      { if $as_mkdir_p; then
13402    mkdir -p "$ac_dir"
13403  else
13404    as_dir="$ac_dir"
13405    as_dirs=
13406    while test ! -d "$as_dir"; do
13407      as_dirs="$as_dir $as_dirs"
13408      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13409$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13410	 X"$as_dir" : 'X\(//\)[^/]' \| \
13411	 X"$as_dir" : 'X\(//\)$' \| \
13412	 X"$as_dir" : 'X\(/\)' \| \
13413	 .     : '\(.\)' 2>/dev/null ||
13414echo X"$as_dir" |
13415    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13416  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13417  	  /^X\(\/\/\)$/{ s//\1/; q; }
13418  	  /^X\(\/\).*/{ s//\1/; q; }
13419  	  s/.*/./; q'`
13420    done
13421    test ! -n "$as_dirs" || mkdir $as_dirs
13422  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13423echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13424   { (exit 1); exit 1; }; }; }
13425
13426      rm -f $ac_file
13427      mv $tmp/config.h $ac_file
13428    fi
13429  else
13430    cat $tmp/config.h
13431    rm -f $tmp/config.h
13432  fi
13433done
13434_ACEOF
13435cat >>$CONFIG_STATUS <<\_ACEOF
13436
13437#
13438# CONFIG_COMMANDS section.
13439#
13440for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13441  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13442  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13443  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13444$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13445	 X"$ac_dest" : 'X\(//\)[^/]' \| \
13446	 X"$ac_dest" : 'X\(//\)$' \| \
13447	 X"$ac_dest" : 'X\(/\)' \| \
13448	 .     : '\(.\)' 2>/dev/null ||
13449echo X"$ac_dest" |
13450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13451  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13452  	  /^X\(\/\/\)$/{ s//\1/; q; }
13453  	  /^X\(\/\).*/{ s//\1/; q; }
13454  	  s/.*/./; q'`
13455  { if $as_mkdir_p; then
13456    mkdir -p "$ac_dir"
13457  else
13458    as_dir="$ac_dir"
13459    as_dirs=
13460    while test ! -d "$as_dir"; do
13461      as_dirs="$as_dir $as_dirs"
13462      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13464	 X"$as_dir" : 'X\(//\)[^/]' \| \
13465	 X"$as_dir" : 'X\(//\)$' \| \
13466	 X"$as_dir" : 'X\(/\)' \| \
13467	 .     : '\(.\)' 2>/dev/null ||
13468echo X"$as_dir" |
13469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13470  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13471  	  /^X\(\/\/\)$/{ s//\1/; q; }
13472  	  /^X\(\/\).*/{ s//\1/; q; }
13473  	  s/.*/./; q'`
13474    done
13475    test ! -n "$as_dirs" || mkdir $as_dirs
13476  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13477echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13478   { (exit 1); exit 1; }; }; }
13479
13480  ac_builddir=.
13481
13482if test "$ac_dir" != .; then
13483  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13484  # A "../" for each directory in $ac_dir_suffix.
13485  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13486else
13487  ac_dir_suffix= ac_top_builddir=
13488fi
13489
13490case $srcdir in
13491  .)  # No --srcdir option.  We are building in place.
13492    ac_srcdir=.
13493    if test -z "$ac_top_builddir"; then
13494       ac_top_srcdir=.
13495    else
13496       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13497    fi ;;
13498  [\\/]* | ?:[\\/]* )  # Absolute path.
13499    ac_srcdir=$srcdir$ac_dir_suffix;
13500    ac_top_srcdir=$srcdir ;;
13501  *) # Relative path.
13502    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13503    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13504esac
13505
13506# Do not use `cd foo && pwd` to compute absolute paths, because
13507# the directories may not exist.
13508case `pwd` in
13509.) ac_abs_builddir="$ac_dir";;
13510*)
13511  case "$ac_dir" in
13512  .) ac_abs_builddir=`pwd`;;
13513  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13514  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13515  esac;;
13516esac
13517case $ac_abs_builddir in
13518.) ac_abs_top_builddir=${ac_top_builddir}.;;
13519*)
13520  case ${ac_top_builddir}. in
13521  .) ac_abs_top_builddir=$ac_abs_builddir;;
13522  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13523  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13524  esac;;
13525esac
13526case $ac_abs_builddir in
13527.) ac_abs_srcdir=$ac_srcdir;;
13528*)
13529  case $ac_srcdir in
13530  .) ac_abs_srcdir=$ac_abs_builddir;;
13531  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13532  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13533  esac;;
13534esac
13535case $ac_abs_builddir in
13536.) ac_abs_top_srcdir=$ac_top_srcdir;;
13537*)
13538  case $ac_top_srcdir in
13539  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13540  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13541  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13542  esac;;
13543esac
13544
13545
13546  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13547echo "$as_me: executing $ac_dest commands" >&6;}
13548  case $ac_dest in
13549    libtool )
13550
13551    # See if we are running on zsh, and set the options which allow our
13552    # commands through without removal of \ escapes.
13553    if test -n "${ZSH_VERSION+set}" ; then
13554      setopt NO_GLOB_SUBST
13555    fi
13556
13557    cfgfile="${ofile}T"
13558    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13559    $RM "$cfgfile"
13560
13561    cat <<_LT_EOF >> "$cfgfile"
13562#! $SHELL
13563
13564# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13565# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13566# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13567# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13568#
13569#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13570#                 2006, 2007, 2008 Free Software Foundation, Inc.
13571#   Written by Gordon Matzigkeit, 1996
13572#
13573#   This file is part of GNU Libtool.
13574#
13575# GNU Libtool is free software; you can redistribute it and/or
13576# modify it under the terms of the GNU General Public License as
13577# published by the Free Software Foundation; either version 2 of
13578# the License, or (at your option) any later version.
13579#
13580# As a special exception to the GNU General Public License,
13581# if you distribute this file as part of a program or library that
13582# is built using GNU Libtool, you may include this file under the
13583# same distribution terms that you use for the rest of that program.
13584#
13585# GNU Libtool is distributed in the hope that it will be useful,
13586# but WITHOUT ANY WARRANTY; without even the implied warranty of
13587# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13588# GNU General Public License for more details.
13589#
13590# You should have received a copy of the GNU General Public License
13591# along with GNU Libtool; see the file COPYING.  If not, a copy
13592# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13593# obtained by writing to the Free Software Foundation, Inc.,
13594# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13595
13596
13597# The names of the tagged configurations supported by this script.
13598available_tags=""
13599
13600# ### BEGIN LIBTOOL CONFIG
13601
13602# Which release of libtool.m4 was used?
13603macro_version=$macro_version
13604macro_revision=$macro_revision
13605
13606# Whether or not to build shared libraries.
13607build_libtool_libs=$enable_shared
13608
13609# Whether or not to build static libraries.
13610build_old_libs=$enable_static
13611
13612# What type of objects to build.
13613pic_mode=$pic_mode
13614
13615# Whether or not to optimize for fast installation.
13616fast_install=$enable_fast_install
13617
13618# The host system.
13619host_alias=$host_alias
13620host=$host
13621host_os=$host_os
13622
13623# The build system.
13624build_alias=$build_alias
13625build=$build
13626build_os=$build_os
13627
13628# A sed program that does not truncate output.
13629SED=$lt_SED
13630
13631# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13632Xsed="\$SED -e 1s/^X//"
13633
13634# A grep program that handles long lines.
13635GREP=$lt_GREP
13636
13637# An ERE matcher.
13638EGREP=$lt_EGREP
13639
13640# A literal string matcher.
13641FGREP=$lt_FGREP
13642
13643# A BSD- or MS-compatible name lister.
13644NM=$lt_NM
13645
13646# Whether we need soft or hard links.
13647LN_S=$lt_LN_S
13648
13649# What is the maximum length of a command?
13650max_cmd_len=$max_cmd_len
13651
13652# Object file suffix (normally "o").
13653objext=$ac_objext
13654
13655# Executable file suffix (normally "").
13656exeext=$exeext
13657
13658# whether the shell understands "unset".
13659lt_unset=$lt_unset
13660
13661# turn spaces into newlines.
13662SP2NL=$lt_lt_SP2NL
13663
13664# turn newlines into spaces.
13665NL2SP=$lt_lt_NL2SP
13666
13667# How to create reloadable object files.
13668reload_flag=$lt_reload_flag
13669reload_cmds=$lt_reload_cmds
13670
13671# Method to check whether dependent libraries are shared objects.
13672deplibs_check_method=$lt_deplibs_check_method
13673
13674# Command to use when deplibs_check_method == "file_magic".
13675file_magic_cmd=$lt_file_magic_cmd
13676
13677# The archiver.
13678AR=$lt_AR
13679AR_FLAGS=$lt_AR_FLAGS
13680
13681# A symbol stripping program.
13682STRIP=$lt_STRIP
13683
13684# Commands used to install an old-style archive.
13685RANLIB=$lt_RANLIB
13686old_postinstall_cmds=$lt_old_postinstall_cmds
13687old_postuninstall_cmds=$lt_old_postuninstall_cmds
13688
13689# A C compiler.
13690LTCC=$lt_CC
13691
13692# LTCC compiler flags.
13693LTCFLAGS=$lt_CFLAGS
13694
13695# Take the output of nm and produce a listing of raw symbols and C names.
13696global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13697
13698# Transform the output of nm in a proper C declaration.
13699global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13700
13701# Transform the output of nm in a C name address pair.
13702global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13703
13704# Transform the output of nm in a C name address pair when lib prefix is needed.
13705global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13706
13707# The name of the directory that contains temporary libtool files.
13708objdir=$objdir
13709
13710# Shell to use when invoking shell scripts.
13711SHELL=$lt_SHELL
13712
13713# An echo program that does not interpret backslashes.
13714ECHO=$lt_ECHO
13715
13716# Used to examine libraries when file_magic_cmd begins with "file".
13717MAGIC_CMD=$MAGIC_CMD
13718
13719# Must we lock files when doing compilation?
13720need_locks=$lt_need_locks
13721
13722# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13723DSYMUTIL=$lt_DSYMUTIL
13724
13725# Tool to change global to local symbols on Mac OS X.
13726NMEDIT=$lt_NMEDIT
13727
13728# Tool to manipulate fat objects and archives on Mac OS X.
13729LIPO=$lt_LIPO
13730
13731# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13732OTOOL=$lt_OTOOL
13733
13734# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13735OTOOL64=$lt_OTOOL64
13736
13737# Old archive suffix (normally "a").
13738libext=$libext
13739
13740# Shared library suffix (normally ".so").
13741shrext_cmds=$lt_shrext_cmds
13742
13743# The commands to extract the exported symbol list from a shared archive.
13744extract_expsyms_cmds=$lt_extract_expsyms_cmds
13745
13746# Variables whose values should be saved in libtool wrapper scripts and
13747# restored at link time.
13748variables_saved_for_relink=$lt_variables_saved_for_relink
13749
13750# Do we need the "lib" prefix for modules?
13751need_lib_prefix=$need_lib_prefix
13752
13753# Do we need a version for libraries?
13754need_version=$need_version
13755
13756# Library versioning type.
13757version_type=$version_type
13758
13759# Shared library runtime path variable.
13760runpath_var=$runpath_var
13761
13762# Shared library path variable.
13763shlibpath_var=$shlibpath_var
13764
13765# Is shlibpath searched before the hard-coded library search path?
13766shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13767
13768# Format of library name prefix.
13769libname_spec=$lt_libname_spec
13770
13771# List of archive names.  First name is the real one, the rest are links.
13772# The last name is the one that the linker finds with -lNAME
13773library_names_spec=$lt_library_names_spec
13774
13775# The coded name of the library, if different from the real name.
13776soname_spec=$lt_soname_spec
13777
13778# Command to use after installation of a shared archive.
13779postinstall_cmds=$lt_postinstall_cmds
13780
13781# Command to use after uninstallation of a shared archive.
13782postuninstall_cmds=$lt_postuninstall_cmds
13783
13784# Commands used to finish a libtool library installation in a directory.
13785finish_cmds=$lt_finish_cmds
13786
13787# As "finish_cmds", except a single script fragment to be evaled but
13788# not shown.
13789finish_eval=$lt_finish_eval
13790
13791# Whether we should hardcode library paths into libraries.
13792hardcode_into_libs=$hardcode_into_libs
13793
13794# Compile-time system search path for libraries.
13795sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13796
13797# Run-time system search path for libraries.
13798sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13799
13800# Whether dlopen is supported.
13801dlopen_support=$enable_dlopen
13802
13803# Whether dlopen of programs is supported.
13804dlopen_self=$enable_dlopen_self
13805
13806# Whether dlopen of statically linked programs is supported.
13807dlopen_self_static=$enable_dlopen_self_static
13808
13809# Commands to strip libraries.
13810old_striplib=$lt_old_striplib
13811striplib=$lt_striplib
13812
13813
13814# The linker used to build libraries.
13815LD=$lt_LD
13816
13817# Commands used to build an old-style archive.
13818old_archive_cmds=$lt_old_archive_cmds
13819
13820# A language specific compiler.
13821CC=$lt_compiler
13822
13823# Is the compiler the GNU compiler?
13824with_gcc=$GCC
13825
13826# Compiler flag to turn off builtin functions.
13827no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13828
13829# How to pass a linker flag through the compiler.
13830wl=$lt_lt_prog_compiler_wl
13831
13832# Additional compiler flags for building library objects.
13833pic_flag=$lt_lt_prog_compiler_pic
13834
13835# Compiler flag to prevent dynamic linking.
13836link_static_flag=$lt_lt_prog_compiler_static
13837
13838# Does compiler simultaneously support -c and -o options?
13839compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13840
13841# Whether or not to add -lc for building shared libraries.
13842build_libtool_need_lc=$archive_cmds_need_lc
13843
13844# Whether or not to disallow shared libs when runtime libs are static.
13845allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13846
13847# Compiler flag to allow reflexive dlopens.
13848export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13849
13850# Compiler flag to generate shared objects directly from archives.
13851whole_archive_flag_spec=$lt_whole_archive_flag_spec
13852
13853# Whether the compiler copes with passing no objects directly.
13854compiler_needs_object=$lt_compiler_needs_object
13855
13856# Create an old-style archive from a shared archive.
13857old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13858
13859# Create a temporary old-style archive to link instead of a shared archive.
13860old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13861
13862# Commands used to build a shared archive.
13863archive_cmds=$lt_archive_cmds
13864archive_expsym_cmds=$lt_archive_expsym_cmds
13865
13866# Commands used to build a loadable module if different from building
13867# a shared archive.
13868module_cmds=$lt_module_cmds
13869module_expsym_cmds=$lt_module_expsym_cmds
13870
13871# Whether we are building with GNU ld or not.
13872with_gnu_ld=$lt_with_gnu_ld
13873
13874# Flag that allows shared libraries with undefined symbols to be built.
13875allow_undefined_flag=$lt_allow_undefined_flag
13876
13877# Flag that enforces no undefined symbols.
13878no_undefined_flag=$lt_no_undefined_flag
13879
13880# Flag to hardcode \$libdir into a binary during linking.
13881# This must work even if \$libdir does not exist
13882hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13883
13884# If ld is used when linking, flag to hardcode \$libdir into a binary
13885# during linking.  This must work even if \$libdir does not exist.
13886hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13887
13888# Whether we need a single "-rpath" flag with a separated argument.
13889hardcode_libdir_separator=$lt_hardcode_libdir_separator
13890
13891# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13892# DIR into the resulting binary.
13893hardcode_direct=$hardcode_direct
13894
13895# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13896# DIR into the resulting binary and the resulting library dependency is
13897# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13898# library is relocated.
13899hardcode_direct_absolute=$hardcode_direct_absolute
13900
13901# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13902# into the resulting binary.
13903hardcode_minus_L=$hardcode_minus_L
13904
13905# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13906# into the resulting binary.
13907hardcode_shlibpath_var=$hardcode_shlibpath_var
13908
13909# Set to "yes" if building a shared library automatically hardcodes DIR
13910# into the library and all subsequent libraries and executables linked
13911# against it.
13912hardcode_automatic=$hardcode_automatic
13913
13914# Set to yes if linker adds runtime paths of dependent libraries
13915# to runtime path list.
13916inherit_rpath=$inherit_rpath
13917
13918# Whether libtool must link a program against all its dependency libraries.
13919link_all_deplibs=$link_all_deplibs
13920
13921# Fix the shell variable \$srcfile for the compiler.
13922fix_srcfile_path=$lt_fix_srcfile_path
13923
13924# Set to "yes" if exported symbols are required.
13925always_export_symbols=$always_export_symbols
13926
13927# The commands to list exported symbols.
13928export_symbols_cmds=$lt_export_symbols_cmds
13929
13930# Symbols that should not be listed in the preloaded symbols.
13931exclude_expsyms=$lt_exclude_expsyms
13932
13933# Symbols that must always be exported.
13934include_expsyms=$lt_include_expsyms
13935
13936# Commands necessary for linking programs (against libraries) with templates.
13937prelink_cmds=$lt_prelink_cmds
13938
13939# Specify filename containing input files.
13940file_list_spec=$lt_file_list_spec
13941
13942# How to hardcode a shared library path into an executable.
13943hardcode_action=$hardcode_action
13944
13945# ### END LIBTOOL CONFIG
13946
13947_LT_EOF
13948
13949  case $host_os in
13950  aix3*)
13951    cat <<\_LT_EOF >> "$cfgfile"
13952# AIX sometimes has problems with the GCC collect2 program.  For some
13953# reason, if we set the COLLECT_NAMES environment variable, the problems
13954# vanish in a puff of smoke.
13955if test "X${COLLECT_NAMES+set}" != Xset; then
13956  COLLECT_NAMES=
13957  export COLLECT_NAMES
13958fi
13959_LT_EOF
13960    ;;
13961  esac
13962
13963
13964ltmain="$ac_aux_dir/ltmain.sh"
13965
13966
13967  # We use sed instead of cat because bash on DJGPP gets confused if
13968  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13969  # text mode, it properly converts lines to CR/LF.  This bash problem
13970  # is reportedly fixed, but why not run on old versions too?
13971  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13972    || (rm -f "$cfgfile"; exit 1)
13973
13974  case $xsi_shell in
13975  yes)
13976    cat << \_LT_EOF >> "$cfgfile"
13977
13978# func_dirname file append nondir_replacement
13979# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13980# otherwise set result to NONDIR_REPLACEMENT.
13981func_dirname ()
13982{
13983  case ${1} in
13984    */*) func_dirname_result="${1%/*}${2}" ;;
13985    *  ) func_dirname_result="${3}" ;;
13986  esac
13987}
13988
13989# func_basename file
13990func_basename ()
13991{
13992  func_basename_result="${1##*/}"
13993}
13994
13995# func_dirname_and_basename file append nondir_replacement
13996# perform func_basename and func_dirname in a single function
13997# call:
13998#   dirname:  Compute the dirname of FILE.  If nonempty,
13999#             add APPEND to the result, otherwise set result
14000#             to NONDIR_REPLACEMENT.
14001#             value returned in "$func_dirname_result"
14002#   basename: Compute filename of FILE.
14003#             value retuned in "$func_basename_result"
14004# Implementation must be kept synchronized with func_dirname
14005# and func_basename. For efficiency, we do not delegate to
14006# those functions but instead duplicate the functionality here.
14007func_dirname_and_basename ()
14008{
14009  case ${1} in
14010    */*) func_dirname_result="${1%/*}${2}" ;;
14011    *  ) func_dirname_result="${3}" ;;
14012  esac
14013  func_basename_result="${1##*/}"
14014}
14015
14016# func_stripname prefix suffix name
14017# strip PREFIX and SUFFIX off of NAME.
14018# PREFIX and SUFFIX must not contain globbing or regex special
14019# characters, hashes, percent signs, but SUFFIX may contain a leading
14020# dot (in which case that matches only a dot).
14021func_stripname ()
14022{
14023  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14024  # positional parameters, so assign one to ordinary parameter first.
14025  func_stripname_result=${3}
14026  func_stripname_result=${func_stripname_result#"${1}"}
14027  func_stripname_result=${func_stripname_result%"${2}"}
14028}
14029
14030# func_opt_split
14031func_opt_split ()
14032{
14033  func_opt_split_opt=${1%%=*}
14034  func_opt_split_arg=${1#*=}
14035}
14036
14037# func_lo2o object
14038func_lo2o ()
14039{
14040  case ${1} in
14041    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14042    *)    func_lo2o_result=${1} ;;
14043  esac
14044}
14045
14046# func_xform libobj-or-source
14047func_xform ()
14048{
14049  func_xform_result=${1%.*}.lo
14050}
14051
14052# func_arith arithmetic-term...
14053func_arith ()
14054{
14055  func_arith_result=$(( $* ))
14056}
14057
14058# func_len string
14059# STRING may not start with a hyphen.
14060func_len ()
14061{
14062  func_len_result=${#1}
14063}
14064
14065_LT_EOF
14066    ;;
14067  *) # Bourne compatible functions.
14068    cat << \_LT_EOF >> "$cfgfile"
14069
14070# func_dirname file append nondir_replacement
14071# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14072# otherwise set result to NONDIR_REPLACEMENT.
14073func_dirname ()
14074{
14075  # Extract subdirectory from the argument.
14076  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14077  if test "X$func_dirname_result" = "X${1}"; then
14078    func_dirname_result="${3}"
14079  else
14080    func_dirname_result="$func_dirname_result${2}"
14081  fi
14082}
14083
14084# func_basename file
14085func_basename ()
14086{
14087  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14088}
14089
14090
14091# func_stripname prefix suffix name
14092# strip PREFIX and SUFFIX off of NAME.
14093# PREFIX and SUFFIX must not contain globbing or regex special
14094# characters, hashes, percent signs, but SUFFIX may contain a leading
14095# dot (in which case that matches only a dot).
14096# func_strip_suffix prefix name
14097func_stripname ()
14098{
14099  case ${2} in
14100    .*) func_stripname_result=`$ECHO "X${3}" \
14101           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14102    *)  func_stripname_result=`$ECHO "X${3}" \
14103           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14104  esac
14105}
14106
14107# sed scripts:
14108my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14109my_sed_long_arg='1s/^-[^=]*=//'
14110
14111# func_opt_split
14112func_opt_split ()
14113{
14114  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14115  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14116}
14117
14118# func_lo2o object
14119func_lo2o ()
14120{
14121  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14122}
14123
14124# func_xform libobj-or-source
14125func_xform ()
14126{
14127  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14128}
14129
14130# func_arith arithmetic-term...
14131func_arith ()
14132{
14133  func_arith_result=`expr "$@"`
14134}
14135
14136# func_len string
14137# STRING may not start with a hyphen.
14138func_len ()
14139{
14140  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14141}
14142
14143_LT_EOF
14144esac
14145
14146case $lt_shell_append in
14147  yes)
14148    cat << \_LT_EOF >> "$cfgfile"
14149
14150# func_append var value
14151# Append VALUE to the end of shell variable VAR.
14152func_append ()
14153{
14154  eval "$1+=\$2"
14155}
14156_LT_EOF
14157    ;;
14158  *)
14159    cat << \_LT_EOF >> "$cfgfile"
14160
14161# func_append var value
14162# Append VALUE to the end of shell variable VAR.
14163func_append ()
14164{
14165  eval "$1=\$$1\$2"
14166}
14167
14168_LT_EOF
14169    ;;
14170  esac
14171
14172
14173  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14174    || (rm -f "$cfgfile"; exit 1)
14175
14176  mv -f "$cfgfile" "$ofile" ||
14177    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14178  chmod +x "$ofile"
14179
14180 ;;
14181  esac
14182done
14183_ACEOF
14184
14185cat >>$CONFIG_STATUS <<\_ACEOF
14186
14187{ (exit 0); exit 0; }
14188_ACEOF
14189chmod +x $CONFIG_STATUS
14190ac_clean_files=$ac_clean_files_save
14191
14192
14193# configure is writing to config.log, and then calls config.status.
14194# config.status does its own redirection, appending to config.log.
14195# Unfortunately, on DOS this fails, as config.log is still kept open
14196# by configure, so config.status won't be able to write to it; its
14197# output is simply discarded.  So we exec the FD to /dev/null,
14198# effectively closing config.log, so it can be properly (re)opened and
14199# appended to by config.status.  When coming back to configure, we
14200# need to make the FD available again.
14201if test "$no_create" != yes; then
14202  ac_cs_success=:
14203  ac_config_status_args=
14204  test "$silent" = yes &&
14205    ac_config_status_args="$ac_config_status_args --quiet"
14206  exec 5>/dev/null
14207  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14208  exec 5>>config.log
14209  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14210  # would make configure fail if this is the last instruction.
14211  $ac_cs_success || { (exit 1); exit 1; }
14212fi
14213
14214