1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62 for sqlite 3.7.6.3.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580  # Remove one level of quotation (which was required for Make).
581  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582  ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587  # Discard the --no-reexec flag, and continue.
588  shift
589elif test "X$1" = X--fallback-echo; then
590  # Avoid inline document here, it may be left over
591  :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593  # Yippee, $ECHO works!
594  :
595else
596  # Restart under the correct shell.
597  exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601  # used as fallback echo
602  shift
603  cat <<_LT_EOF
604$*
605_LT_EOF
606  exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614  if test "X${echo_test_string+set}" != Xset; then
615    # find a string as large as possible, as long as the shell can cope with it
616    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620      then
621        break
622      fi
623    done
624  fi
625
626  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628     test "X$echo_testing_string" = "X$echo_test_string"; then
629    :
630  else
631    # The Solaris, AIX, and Digital Unix default echo programs unquote
632    # backslashes.  This makes it impossible to quote backslashes using
633    #   echo "$something" | sed 's/\\/\\\\/g'
634    #
635    # So, first we look for a working echo in the user's PATH.
636
637    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638    for dir in $PATH /usr/ucb; do
639      IFS="$lt_save_ifs"
640      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643         test "X$echo_testing_string" = "X$echo_test_string"; then
644        ECHO="$dir/echo"
645        break
646      fi
647    done
648    IFS="$lt_save_ifs"
649
650    if test "X$ECHO" = Xecho; then
651      # We didn't find a better echo, so look for alternatives.
652      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654         test "X$echo_testing_string" = "X$echo_test_string"; then
655        # This shell has a builtin print -r that does the trick.
656        ECHO='print -r'
657      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658	   test "X$CONFIG_SHELL" != X/bin/ksh; then
659        # If we have ksh, try running configure again with it.
660        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661        export ORIGINAL_CONFIG_SHELL
662        CONFIG_SHELL=/bin/ksh
663        export CONFIG_SHELL
664        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665      else
666        # Try using printf.
667        ECHO='printf %s\n'
668        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670	   test "X$echo_testing_string" = "X$echo_test_string"; then
671	  # Cool, printf works
672	  :
673        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674	     test "X$echo_testing_string" = 'X\t' &&
675	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676	     test "X$echo_testing_string" = "X$echo_test_string"; then
677	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678	  export CONFIG_SHELL
679	  SHELL="$CONFIG_SHELL"
680	  export SHELL
681	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
682        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683	     test "X$echo_testing_string" = 'X\t' &&
684	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685	     test "X$echo_testing_string" = "X$echo_test_string"; then
686	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
687        else
688	  # maybe with a smaller string...
689	  prev=:
690
691	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693	    then
694	      break
695	    fi
696	    prev="$cmd"
697	  done
698
699	  if test "$prev" != 'sed 50q "$0"'; then
700	    echo_test_string=`eval $prev`
701	    export echo_test_string
702	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703	  else
704	    # Oops.  We lost completely, so just stick with echo.
705	    ECHO=echo
706	  fi
707        fi
708      fi
709    fi
710  fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME='sqlite'
745PACKAGE_TARNAME='sqlite'
746PACKAGE_VERSION='3.7.6.3'
747PACKAGE_STRING='sqlite 3.7.6.3'
748PACKAGE_BUGREPORT=''
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764#  include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769#  include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786ac_subst_vars='SHELL
787PATH_SEPARATOR
788PACKAGE_NAME
789PACKAGE_TARNAME
790PACKAGE_VERSION
791PACKAGE_STRING
792PACKAGE_BUGREPORT
793exec_prefix
794prefix
795program_transform_name
796bindir
797sbindir
798libexecdir
799datarootdir
800datadir
801sysconfdir
802sharedstatedir
803localstatedir
804includedir
805oldincludedir
806docdir
807infodir
808htmldir
809dvidir
810pdfdir
811psdir
812libdir
813localedir
814mandir
815DEFS
816ECHO_C
817ECHO_N
818ECHO_T
819LIBS
820build_alias
821host_alias
822target_alias
823LIBTOOL
824build
825build_cpu
826build_vendor
827build_os
828host
829host_cpu
830host_vendor
831host_os
832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839SED
840GREP
841EGREP
842FGREP
843LD
844DUMPBIN
845ac_ct_DUMPBIN
846NM
847LN_S
848OBJDUMP
849AR
850STRIP
851RANLIB
852lt_ECHO
853DSYMUTIL
854NMEDIT
855LIPO
856OTOOL
857OTOOL64
858CPP
859INSTALL_PROGRAM
860INSTALL_SCRIPT
861INSTALL_DATA
862AWK
863TCLSH_CMD
864TCLLIBDIR
865program_prefix
866VERSION
867RELEASE
868VERSION_NUMBER
869BUILD_CC
870SQLITE_THREADSAFE
871XTHREADCONNECT
872ALLOWRELEASE
873TEMP_STORE
874BUILD_EXEEXT
875SQLITE_OS_UNIX
876SQLITE_OS_WIN
877SQLITE_OS_OS2
878TARGET_EXEEXT
879TCL_VERSION
880TCL_BIN_DIR
881TCL_SRC_DIR
882TCL_LIBS
883TCL_INCLUDE_SPEC
884TCL_LIB_FILE
885TCL_LIB_FLAG
886TCL_LIB_SPEC
887TCL_STUB_LIB_FILE
888TCL_STUB_LIB_FLAG
889TCL_STUB_LIB_SPEC
890HAVE_TCL
891TARGET_READLINE_LIBS
892TARGET_READLINE_INC
893TARGET_HAVE_READLINE
894TARGET_DEBUG
895USE_AMALGAMATION
896OPT_FEATURE_FLAGS
897USE_GCOV
898BUILD_CFLAGS
899LIBOBJS
900LTLIBOBJS'
901ac_subst_files=''
902ac_user_opts='
903enable_option_checking
904enable_shared
905enable_static
906with_pic
907enable_fast_install
908with_gnu_ld
909enable_libtool_lock
910enable_largefile
911with_hints
912enable_threadsafe
913enable_cross_thread_connections
914enable_releasemode
915enable_tempstore
916enable_tcl
917with_tcl
918enable_readline
919with_readline_lib
920with_readline_inc
921enable_debug
922enable_amalgamation
923enable_load_extension
924enable_gcov
925'
926      ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932LIBS
933CPPFLAGS
934CPP
935TCLLIBDIR'
936
937
938# Initialize some variables set by options.
939ac_init_help=
940ac_init_version=false
941ac_unrecognized_opts=
942ac_unrecognized_sep=
943# The variables have the same names as the options, with
944# dashes changed to underlines.
945cache_file=/dev/null
946exec_prefix=NONE
947no_create=
948no_recursion=
949prefix=NONE
950program_prefix=NONE
951program_suffix=NONE
952program_transform_name=s,x,x,
953silent=
954site=
955srcdir=
956verbose=
957x_includes=NONE
958x_libraries=NONE
959
960# Installation directory options.
961# These are left unexpanded so users can "make install exec_prefix=/foo"
962# and all the variables that are supposed to be based on exec_prefix
963# by default will actually change.
964# Use braces instead of parens because sh, perl, etc. also accept them.
965# (The list follows the same order as the GNU Coding Standards.)
966bindir='${exec_prefix}/bin'
967sbindir='${exec_prefix}/sbin'
968libexecdir='${exec_prefix}/libexec'
969datarootdir='${prefix}/share'
970datadir='${datarootdir}'
971sysconfdir='${prefix}/etc'
972sharedstatedir='${prefix}/com'
973localstatedir='${prefix}/var'
974includedir='${prefix}/include'
975oldincludedir='/usr/include'
976docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
977infodir='${datarootdir}/info'
978htmldir='${docdir}'
979dvidir='${docdir}'
980pdfdir='${docdir}'
981psdir='${docdir}'
982libdir='${exec_prefix}/lib'
983localedir='${datarootdir}/locale'
984mandir='${datarootdir}/man'
985
986ac_prev=
987ac_dashdash=
988for ac_option
989do
990  # If the previous option needs an argument, assign it.
991  if test -n "$ac_prev"; then
992    eval $ac_prev=\$ac_option
993    ac_prev=
994    continue
995  fi
996
997  case $ac_option in
998  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999  *)	ac_optarg=yes ;;
1000  esac
1001
1002  # Accept the important Cygnus configure options, so we can diagnose typos.
1003
1004  case $ac_dashdash$ac_option in
1005  --)
1006    ac_dashdash=yes ;;
1007
1008  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009    ac_prev=bindir ;;
1010  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011    bindir=$ac_optarg ;;
1012
1013  -build | --build | --buil | --bui | --bu)
1014    ac_prev=build_alias ;;
1015  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016    build_alias=$ac_optarg ;;
1017
1018  -cache-file | --cache-file | --cache-fil | --cache-fi \
1019  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020    ac_prev=cache_file ;;
1021  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023    cache_file=$ac_optarg ;;
1024
1025  --config-cache | -C)
1026    cache_file=config.cache ;;
1027
1028  -datadir | --datadir | --datadi | --datad)
1029    ac_prev=datadir ;;
1030  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031    datadir=$ac_optarg ;;
1032
1033  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034  | --dataroo | --dataro | --datar)
1035    ac_prev=datarootdir ;;
1036  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038    datarootdir=$ac_optarg ;;
1039
1040  -disable-* | --disable-*)
1041    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042    # Reject names that are not valid shell variable names.
1043    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1045   { (exit 1); exit 1; }; }
1046    ac_useropt_orig=$ac_useropt
1047    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048    case $ac_user_opts in
1049      *"
1050"enable_$ac_useropt"
1051"*) ;;
1052      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053	 ac_unrecognized_sep=', ';;
1054    esac
1055    eval enable_$ac_useropt=no ;;
1056
1057  -docdir | --docdir | --docdi | --doc | --do)
1058    ac_prev=docdir ;;
1059  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060    docdir=$ac_optarg ;;
1061
1062  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063    ac_prev=dvidir ;;
1064  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065    dvidir=$ac_optarg ;;
1066
1067  -enable-* | --enable-*)
1068    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069    # Reject names that are not valid shell variable names.
1070    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072   { (exit 1); exit 1; }; }
1073    ac_useropt_orig=$ac_useropt
1074    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075    case $ac_user_opts in
1076      *"
1077"enable_$ac_useropt"
1078"*) ;;
1079      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080	 ac_unrecognized_sep=', ';;
1081    esac
1082    eval enable_$ac_useropt=\$ac_optarg ;;
1083
1084  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086  | --exec | --exe | --ex)
1087    ac_prev=exec_prefix ;;
1088  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090  | --exec=* | --exe=* | --ex=*)
1091    exec_prefix=$ac_optarg ;;
1092
1093  -gas | --gas | --ga | --g)
1094    # Obsolete; use --with-gas.
1095    with_gas=yes ;;
1096
1097  -help | --help | --hel | --he | -h)
1098    ac_init_help=long ;;
1099  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100    ac_init_help=recursive ;;
1101  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102    ac_init_help=short ;;
1103
1104  -host | --host | --hos | --ho)
1105    ac_prev=host_alias ;;
1106  -host=* | --host=* | --hos=* | --ho=*)
1107    host_alias=$ac_optarg ;;
1108
1109  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110    ac_prev=htmldir ;;
1111  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112  | --ht=*)
1113    htmldir=$ac_optarg ;;
1114
1115  -includedir | --includedir | --includedi | --included | --include \
1116  | --includ | --inclu | --incl | --inc)
1117    ac_prev=includedir ;;
1118  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119  | --includ=* | --inclu=* | --incl=* | --inc=*)
1120    includedir=$ac_optarg ;;
1121
1122  -infodir | --infodir | --infodi | --infod | --info | --inf)
1123    ac_prev=infodir ;;
1124  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125    infodir=$ac_optarg ;;
1126
1127  -libdir | --libdir | --libdi | --libd)
1128    ac_prev=libdir ;;
1129  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130    libdir=$ac_optarg ;;
1131
1132  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133  | --libexe | --libex | --libe)
1134    ac_prev=libexecdir ;;
1135  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136  | --libexe=* | --libex=* | --libe=*)
1137    libexecdir=$ac_optarg ;;
1138
1139  -localedir | --localedir | --localedi | --localed | --locale)
1140    ac_prev=localedir ;;
1141  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142    localedir=$ac_optarg ;;
1143
1144  -localstatedir | --localstatedir | --localstatedi | --localstated \
1145  | --localstate | --localstat | --localsta | --localst | --locals)
1146    ac_prev=localstatedir ;;
1147  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149    localstatedir=$ac_optarg ;;
1150
1151  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152    ac_prev=mandir ;;
1153  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154    mandir=$ac_optarg ;;
1155
1156  -nfp | --nfp | --nf)
1157    # Obsolete; use --without-fp.
1158    with_fp=no ;;
1159
1160  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161  | --no-cr | --no-c | -n)
1162    no_create=yes ;;
1163
1164  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166    no_recursion=yes ;;
1167
1168  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170  | --oldin | --oldi | --old | --ol | --o)
1171    ac_prev=oldincludedir ;;
1172  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175    oldincludedir=$ac_optarg ;;
1176
1177  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178    ac_prev=prefix ;;
1179  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180    prefix=$ac_optarg ;;
1181
1182  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183  | --program-pre | --program-pr | --program-p)
1184    ac_prev=program_prefix ;;
1185  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187    program_prefix=$ac_optarg ;;
1188
1189  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190  | --program-suf | --program-su | --program-s)
1191    ac_prev=program_suffix ;;
1192  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194    program_suffix=$ac_optarg ;;
1195
1196  -program-transform-name | --program-transform-name \
1197  | --program-transform-nam | --program-transform-na \
1198  | --program-transform-n | --program-transform- \
1199  | --program-transform | --program-transfor \
1200  | --program-transfo | --program-transf \
1201  | --program-trans | --program-tran \
1202  | --progr-tra | --program-tr | --program-t)
1203    ac_prev=program_transform_name ;;
1204  -program-transform-name=* | --program-transform-name=* \
1205  | --program-transform-nam=* | --program-transform-na=* \
1206  | --program-transform-n=* | --program-transform-=* \
1207  | --program-transform=* | --program-transfor=* \
1208  | --program-transfo=* | --program-transf=* \
1209  | --program-trans=* | --program-tran=* \
1210  | --progr-tra=* | --program-tr=* | --program-t=*)
1211    program_transform_name=$ac_optarg ;;
1212
1213  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214    ac_prev=pdfdir ;;
1215  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216    pdfdir=$ac_optarg ;;
1217
1218  -psdir | --psdir | --psdi | --psd | --ps)
1219    ac_prev=psdir ;;
1220  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221    psdir=$ac_optarg ;;
1222
1223  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224  | -silent | --silent | --silen | --sile | --sil)
1225    silent=yes ;;
1226
1227  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228    ac_prev=sbindir ;;
1229  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230  | --sbi=* | --sb=*)
1231    sbindir=$ac_optarg ;;
1232
1233  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235  | --sharedst | --shareds | --shared | --share | --shar \
1236  | --sha | --sh)
1237    ac_prev=sharedstatedir ;;
1238  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241  | --sha=* | --sh=*)
1242    sharedstatedir=$ac_optarg ;;
1243
1244  -site | --site | --sit)
1245    ac_prev=site ;;
1246  -site=* | --site=* | --sit=*)
1247    site=$ac_optarg ;;
1248
1249  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250    ac_prev=srcdir ;;
1251  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252    srcdir=$ac_optarg ;;
1253
1254  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255  | --syscon | --sysco | --sysc | --sys | --sy)
1256    ac_prev=sysconfdir ;;
1257  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259    sysconfdir=$ac_optarg ;;
1260
1261  -target | --target | --targe | --targ | --tar | --ta | --t)
1262    ac_prev=target_alias ;;
1263  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264    target_alias=$ac_optarg ;;
1265
1266  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267    verbose=yes ;;
1268
1269  -version | --version | --versio | --versi | --vers | -V)
1270    ac_init_version=: ;;
1271
1272  -with-* | --with-*)
1273    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274    # Reject names that are not valid shell variable names.
1275    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1277   { (exit 1); exit 1; }; }
1278    ac_useropt_orig=$ac_useropt
1279    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280    case $ac_user_opts in
1281      *"
1282"with_$ac_useropt"
1283"*) ;;
1284      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285	 ac_unrecognized_sep=', ';;
1286    esac
1287    eval with_$ac_useropt=\$ac_optarg ;;
1288
1289  -without-* | --without-*)
1290    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291    # Reject names that are not valid shell variable names.
1292    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1294   { (exit 1); exit 1; }; }
1295    ac_useropt_orig=$ac_useropt
1296    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297    case $ac_user_opts in
1298      *"
1299"with_$ac_useropt"
1300"*) ;;
1301      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302	 ac_unrecognized_sep=', ';;
1303    esac
1304    eval with_$ac_useropt=no ;;
1305
1306  --x)
1307    # Obsolete; use --with-x.
1308    with_x=yes ;;
1309
1310  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311  | --x-incl | --x-inc | --x-in | --x-i)
1312    ac_prev=x_includes ;;
1313  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315    x_includes=$ac_optarg ;;
1316
1317  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319    ac_prev=x_libraries ;;
1320  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322    x_libraries=$ac_optarg ;;
1323
1324  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1325Try \`$0 --help' for more information." >&2
1326   { (exit 1); exit 1; }; }
1327    ;;
1328
1329  *=*)
1330    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331    # Reject names that are not valid shell variable names.
1332    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334   { (exit 1); exit 1; }; }
1335    eval $ac_envvar=\$ac_optarg
1336    export $ac_envvar ;;
1337
1338  *)
1339    # FIXME: should be removed in autoconf 3.0.
1340    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344    ;;
1345
1346  esac
1347done
1348
1349if test -n "$ac_prev"; then
1350  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1352   { (exit 1); exit 1; }; }
1353fi
1354
1355if test -n "$ac_unrecognized_opts"; then
1356  case $enable_option_checking in
1357    no) ;;
1358    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1359   { (exit 1); exit 1; }; } ;;
1360    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361  esac
1362fi
1363
1364# Check all directory arguments for consistency.
1365for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366		datadir sysconfdir sharedstatedir localstatedir includedir \
1367		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368		libdir localedir mandir
1369do
1370  eval ac_val=\$$ac_var
1371  # Remove trailing slashes.
1372  case $ac_val in
1373    */ )
1374      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375      eval $ac_var=\$ac_val;;
1376  esac
1377  # Be sure to have absolute directory names.
1378  case $ac_val in
1379    [\\/$]* | ?:[\\/]* )  continue;;
1380    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381  esac
1382  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1383   { (exit 1); exit 1; }; }
1384done
1385
1386# There might be people who depend on the old broken behavior: `$host'
1387# used to hold the argument of --host etc.
1388# FIXME: To remove some day.
1389build=$build_alias
1390host=$host_alias
1391target=$target_alias
1392
1393# FIXME: To remove some day.
1394if test "x$host_alias" != x; then
1395  if test "x$build_alias" = x; then
1396    cross_compiling=maybe
1397    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398    If a cross compiler is detected then cross compile mode will be used." >&2
1399  elif test "x$build_alias" != "x$host_alias"; then
1400    cross_compiling=yes
1401  fi
1402fi
1403
1404ac_tool_prefix=
1405test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407test "$silent" = yes && exec 6>/dev/null
1408
1409
1410ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411ac_ls_di=`ls -di .` &&
1412ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1414   { (exit 1); exit 1; }; }
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1417   { (exit 1); exit 1; }; }
1418
1419
1420# Find the source files, if location was not specified.
1421if test -z "$srcdir"; then
1422  ac_srcdir_defaulted=yes
1423  # Try the directory containing this script, then the parent directory.
1424  ac_confdir=`$as_dirname -- "$as_myself" ||
1425$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426	 X"$as_myself" : 'X\(//\)[^/]' \| \
1427	 X"$as_myself" : 'X\(//\)$' \| \
1428	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429$as_echo X"$as_myself" |
1430    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431	    s//\1/
1432	    q
1433	  }
1434	  /^X\(\/\/\)[^/].*/{
1435	    s//\1/
1436	    q
1437	  }
1438	  /^X\(\/\/\)$/{
1439	    s//\1/
1440	    q
1441	  }
1442	  /^X\(\/\).*/{
1443	    s//\1/
1444	    q
1445	  }
1446	  s/.*/./; q'`
1447  srcdir=$ac_confdir
1448  if test ! -r "$srcdir/$ac_unique_file"; then
1449    srcdir=..
1450  fi
1451else
1452  ac_srcdir_defaulted=no
1453fi
1454if test ! -r "$srcdir/$ac_unique_file"; then
1455  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1457   { (exit 1); exit 1; }; }
1458fi
1459ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460ac_abs_confdir=`(
1461	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1462   { (exit 1); exit 1; }; }
1463	pwd)`
1464# When building in place, set srcdir=.
1465if test "$ac_abs_confdir" = "$ac_pwd"; then
1466  srcdir=.
1467fi
1468# Remove unnecessary trailing slashes from srcdir.
1469# Double slashes in file names in object file debugging info
1470# mess up M-x gdb in Emacs.
1471case $srcdir in
1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473esac
1474for ac_var in $ac_precious_vars; do
1475  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476  eval ac_env_${ac_var}_value=\$${ac_var}
1477  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479done
1480
1481#
1482# Report the --help message.
1483#
1484if test "$ac_init_help" = "long"; then
1485  # Omit some internal or obsolete options to make the list less imposing.
1486  # This message is too long to be a string in the A/UX 3.1 sh.
1487  cat <<_ACEOF
1488\`configure' configures sqlite 3.7.6.3 to adapt to many kinds of systems.
1489
1490Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493VAR=VALUE.  See below for descriptions of some of the useful variables.
1494
1495Defaults for the options are specified in brackets.
1496
1497Configuration:
1498  -h, --help              display this help and exit
1499      --help=short        display options specific to this package
1500      --help=recursive    display the short help of all the included packages
1501  -V, --version           display version information and exit
1502  -q, --quiet, --silent   do not print \`checking...' messages
1503      --cache-file=FILE   cache test results in FILE [disabled]
1504  -C, --config-cache      alias for \`--cache-file=config.cache'
1505  -n, --no-create         do not create output files
1506      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1507
1508Installation directories:
1509  --prefix=PREFIX         install architecture-independent files in PREFIX
1510                          [$ac_default_prefix]
1511  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1512                          [PREFIX]
1513
1514By default, \`make install' will install all the files in
1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1516an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517for instance \`--prefix=\$HOME'.
1518
1519For better control, use the options below.
1520
1521Fine tuning of the installation directories:
1522  --bindir=DIR            user executables [EPREFIX/bin]
1523  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1524  --libexecdir=DIR        program executables [EPREFIX/libexec]
1525  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1526  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1527  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1528  --libdir=DIR            object code libraries [EPREFIX/lib]
1529  --includedir=DIR        C header files [PREFIX/include]
1530  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533  --infodir=DIR           info documentation [DATAROOTDIR/info]
1534  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535  --mandir=DIR            man documentation [DATAROOTDIR/man]
1536  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1537  --htmldir=DIR           html documentation [DOCDIR]
1538  --dvidir=DIR            dvi documentation [DOCDIR]
1539  --pdfdir=DIR            pdf documentation [DOCDIR]
1540  --psdir=DIR             ps documentation [DOCDIR]
1541_ACEOF
1542
1543  cat <<\_ACEOF
1544
1545System types:
1546  --build=BUILD     configure for building on BUILD [guessed]
1547  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1548_ACEOF
1549fi
1550
1551if test -n "$ac_init_help"; then
1552  case $ac_init_help in
1553     short | recursive ) echo "Configuration of sqlite 3.7.6.3:";;
1554   esac
1555  cat <<\_ACEOF
1556
1557Optional Features:
1558  --disable-option-checking  ignore unrecognized --enable/--with options
1559  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1560  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1561  --enable-shared[=PKGS]  build shared libraries [default=yes]
1562  --enable-static[=PKGS]  build static libraries [default=yes]
1563  --enable-fast-install[=PKGS]
1564                          optimize for fast installation [default=yes]
1565  --disable-libtool-lock  avoid locking (might break parallel builds)
1566  --disable-largefile     omit support for large files
1567  --enable-threadsafe     Support threadsafe operation
1568  --enable-cross-thread-connections
1569                          Allow connection sharing across threads
1570  --enable-releasemode    Support libtool link to release mode
1571  --enable-tempstore      Use an in-ram database for temporary tables
1572                          (never,no,yes,always)
1573  --disable-tcl           do not build TCL extension
1574  --disable-readline      disable readline support [default=detect]
1575  --enable-debug          enable debugging & verbose explain
1576  --disable-amalgamation  Disable the amalgamation and instead build all files
1577                          separately
1578  --enable-load-extension Enable loading of external extensions
1579  --enable-gcov           Enable coverage testing using gcov
1580
1581Optional Packages:
1582  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1583  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1584  --with-pic              try to use only PIC/non-PIC objects [default=use
1585                          both]
1586  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1587  --with-hints=FILE       Read configuration options from FILE
1588  --with-tcl=DIR          directory containing tcl configuration
1589                          (tclConfig.sh)
1590  --with-readline-lib     specify readline library
1591  --with-readline-inc     specify readline include paths
1592
1593Some influential environment variables:
1594  CC          C compiler command
1595  CFLAGS      C compiler flags
1596  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1597              nonstandard directory <lib dir>
1598  LIBS        libraries to pass to the linker, e.g. -l<library>
1599  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1600              you have headers in a nonstandard directory <include dir>
1601  CPP         C preprocessor
1602  TCLLIBDIR   Where to install tcl plugin
1603
1604Use these variables to override the choices made by `configure' or to help
1605it to find libraries and programs with nonstandard names/locations.
1606
1607_ACEOF
1608ac_status=$?
1609fi
1610
1611if test "$ac_init_help" = "recursive"; then
1612  # If there are subdirs, report their specific --help.
1613  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614    test -d "$ac_dir" ||
1615      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616      continue
1617    ac_builddir=.
1618
1619case "$ac_dir" in
1620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621*)
1622  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1623  # A ".." for each directory in $ac_dir_suffix.
1624  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625  case $ac_top_builddir_sub in
1626  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628  esac ;;
1629esac
1630ac_abs_top_builddir=$ac_pwd
1631ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632# for backward compatibility:
1633ac_top_builddir=$ac_top_build_prefix
1634
1635case $srcdir in
1636  .)  # We are building in place.
1637    ac_srcdir=.
1638    ac_top_srcdir=$ac_top_builddir_sub
1639    ac_abs_top_srcdir=$ac_pwd ;;
1640  [\\/]* | ?:[\\/]* )  # Absolute name.
1641    ac_srcdir=$srcdir$ac_dir_suffix;
1642    ac_top_srcdir=$srcdir
1643    ac_abs_top_srcdir=$srcdir ;;
1644  *) # Relative name.
1645    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646    ac_top_srcdir=$ac_top_build_prefix$srcdir
1647    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648esac
1649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650
1651    cd "$ac_dir" || { ac_status=$?; continue; }
1652    # Check for guested configure.
1653    if test -f "$ac_srcdir/configure.gnu"; then
1654      echo &&
1655      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656    elif test -f "$ac_srcdir/configure"; then
1657      echo &&
1658      $SHELL "$ac_srcdir/configure" --help=recursive
1659    else
1660      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661    fi || ac_status=$?
1662    cd "$ac_pwd" || { ac_status=$?; break; }
1663  done
1664fi
1665
1666test -n "$ac_init_help" && exit $ac_status
1667if $ac_init_version; then
1668  cat <<\_ACEOF
1669sqlite configure 3.7.6.3
1670generated by GNU Autoconf 2.62
1671
1672Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16732002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1674This configure script is free software; the Free Software Foundation
1675gives unlimited permission to copy, distribute and modify it.
1676_ACEOF
1677  exit
1678fi
1679cat >config.log <<_ACEOF
1680This file contains any messages produced by compilers while
1681running configure, to aid debugging if configure makes a mistake.
1682
1683It was created by sqlite $as_me 3.7.6.3, which was
1684generated by GNU Autoconf 2.62.  Invocation command line was
1685
1686  $ $0 $@
1687
1688_ACEOF
1689exec 5>>config.log
1690{
1691cat <<_ASUNAME
1692## --------- ##
1693## Platform. ##
1694## --------- ##
1695
1696hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701
1702/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1704
1705/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1706/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1707/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1708/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1709/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1710/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1711/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1712
1713_ASUNAME
1714
1715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716for as_dir in $PATH
1717do
1718  IFS=$as_save_IFS
1719  test -z "$as_dir" && as_dir=.
1720  $as_echo "PATH: $as_dir"
1721done
1722IFS=$as_save_IFS
1723
1724} >&5
1725
1726cat >&5 <<_ACEOF
1727
1728
1729## ----------- ##
1730## Core tests. ##
1731## ----------- ##
1732
1733_ACEOF
1734
1735
1736# Keep a trace of the command line.
1737# Strip out --no-create and --no-recursion so they do not pile up.
1738# Strip out --silent because we don't want to record it for future runs.
1739# Also quote any args containing shell meta-characters.
1740# Make two passes to allow for proper duplicate-argument suppression.
1741ac_configure_args=
1742ac_configure_args0=
1743ac_configure_args1=
1744ac_must_keep_next=false
1745for ac_pass in 1 2
1746do
1747  for ac_arg
1748  do
1749    case $ac_arg in
1750    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752    | -silent | --silent | --silen | --sile | --sil)
1753      continue ;;
1754    *\'*)
1755      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1756    esac
1757    case $ac_pass in
1758    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759    2)
1760      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761      if test $ac_must_keep_next = true; then
1762	ac_must_keep_next=false # Got value, back to normal.
1763      else
1764	case $ac_arg in
1765	  *=* | --config-cache | -C | -disable-* | --disable-* \
1766	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768	  | -with-* | --with-* | -without-* | --without-* | --x)
1769	    case "$ac_configure_args0 " in
1770	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771	    esac
1772	    ;;
1773	  -* ) ac_must_keep_next=true ;;
1774	esac
1775      fi
1776      ac_configure_args="$ac_configure_args '$ac_arg'"
1777      ;;
1778    esac
1779  done
1780done
1781$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1783
1784# When interrupted or exit'd, cleanup temporary files, and complete
1785# config.log.  We remove comments because anyway the quotes in there
1786# would cause problems or look ugly.
1787# WARNING: Use '\'' to represent an apostrophe within the trap.
1788# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1789trap 'exit_status=$?
1790  # Save into config.log some information that might help in debugging.
1791  {
1792    echo
1793
1794    cat <<\_ASBOX
1795## ---------------- ##
1796## Cache variables. ##
1797## ---------------- ##
1798_ASBOX
1799    echo
1800    # The following way of writing the cache mishandles newlines in values,
1801(
1802  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803    eval ac_val=\$$ac_var
1804    case $ac_val in #(
1805    *${as_nl}*)
1806      case $ac_var in #(
1807      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1809      esac
1810      case $ac_var in #(
1811      _ | IFS | as_nl) ;; #(
1812      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1813      *) $as_unset $ac_var ;;
1814      esac ;;
1815    esac
1816  done
1817  (set) 2>&1 |
1818    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819    *${as_nl}ac_space=\ *)
1820      sed -n \
1821	"s/'\''/'\''\\\\'\'''\''/g;
1822	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823      ;; #(
1824    *)
1825      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1826      ;;
1827    esac |
1828    sort
1829)
1830    echo
1831
1832    cat <<\_ASBOX
1833## ----------------- ##
1834## Output variables. ##
1835## ----------------- ##
1836_ASBOX
1837    echo
1838    for ac_var in $ac_subst_vars
1839    do
1840      eval ac_val=\$$ac_var
1841      case $ac_val in
1842      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843      esac
1844      $as_echo "$ac_var='\''$ac_val'\''"
1845    done | sort
1846    echo
1847
1848    if test -n "$ac_subst_files"; then
1849      cat <<\_ASBOX
1850## ------------------- ##
1851## File substitutions. ##
1852## ------------------- ##
1853_ASBOX
1854      echo
1855      for ac_var in $ac_subst_files
1856      do
1857	eval ac_val=\$$ac_var
1858	case $ac_val in
1859	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860	esac
1861	$as_echo "$ac_var='\''$ac_val'\''"
1862      done | sort
1863      echo
1864    fi
1865
1866    if test -s confdefs.h; then
1867      cat <<\_ASBOX
1868## ----------- ##
1869## confdefs.h. ##
1870## ----------- ##
1871_ASBOX
1872      echo
1873      cat confdefs.h
1874      echo
1875    fi
1876    test "$ac_signal" != 0 &&
1877      $as_echo "$as_me: caught signal $ac_signal"
1878    $as_echo "$as_me: exit $exit_status"
1879  } >&5
1880  rm -f core *.core core.conftest.* &&
1881    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1882    exit $exit_status
1883' 0
1884for ac_signal in 1 2 13 15; do
1885  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886done
1887ac_signal=0
1888
1889# confdefs.h avoids OS command line length limits that DEFS can exceed.
1890rm -f -r conftest* confdefs.h
1891
1892# Predefined preprocessor variables.
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_NAME "$PACKAGE_NAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_VERSION "$PACKAGE_VERSION"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_STRING "$PACKAGE_STRING"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916_ACEOF
1917
1918
1919# Let the site file select an alternate cache file if it wants to.
1920# Prefer an explicitly selected file to automatically selected ones.
1921ac_site_file1=NONE
1922ac_site_file2=NONE
1923if test -n "$CONFIG_SITE"; then
1924  ac_site_file1=$CONFIG_SITE
1925elif test "x$prefix" != xNONE; then
1926  ac_site_file1=$prefix/share/config.site
1927  ac_site_file2=$prefix/etc/config.site
1928else
1929  ac_site_file1=$ac_default_prefix/share/config.site
1930  ac_site_file2=$ac_default_prefix/etc/config.site
1931fi
1932for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1933do
1934  test "x$ac_site_file" = xNONE && continue
1935  if test -r "$ac_site_file"; then
1936    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1937$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1938    sed 's/^/| /' "$ac_site_file" >&5
1939    . "$ac_site_file"
1940  fi
1941done
1942
1943if test -r "$cache_file"; then
1944  # Some versions of bash will fail to source /dev/null (special
1945  # files actually), so we avoid doing that.
1946  if test -f "$cache_file"; then
1947    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1948$as_echo "$as_me: loading cache $cache_file" >&6;}
1949    case $cache_file in
1950      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1951      *)                      . "./$cache_file";;
1952    esac
1953  fi
1954else
1955  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1956$as_echo "$as_me: creating cache $cache_file" >&6;}
1957  >$cache_file
1958fi
1959
1960# Check that the precious variables saved in the cache have kept the same
1961# value.
1962ac_cache_corrupted=false
1963for ac_var in $ac_precious_vars; do
1964  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1965  eval ac_new_set=\$ac_env_${ac_var}_set
1966  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1967  eval ac_new_val=\$ac_env_${ac_var}_value
1968  case $ac_old_set,$ac_new_set in
1969    set,)
1970      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1971$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1972      ac_cache_corrupted=: ;;
1973    ,set)
1974      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1975$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1976      ac_cache_corrupted=: ;;
1977    ,);;
1978    *)
1979      if test "x$ac_old_val" != "x$ac_new_val"; then
1980	# differences in whitespace do not lead to failure.
1981	ac_old_val_w=`echo x $ac_old_val`
1982	ac_new_val_w=`echo x $ac_new_val`
1983	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1984	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1985$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1986	  ac_cache_corrupted=:
1987	else
1988	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1989$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1990	  eval $ac_var=\$ac_old_val
1991	fi
1992	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1993$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1994	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1995$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1996      fi;;
1997  esac
1998  # Pass precious variables to config.status.
1999  if test "$ac_new_set" = set; then
2000    case $ac_new_val in
2001    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2002    *) ac_arg=$ac_var=$ac_new_val ;;
2003    esac
2004    case " $ac_configure_args " in
2005      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2006      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2007    esac
2008  fi
2009done
2010if $ac_cache_corrupted; then
2011  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2012$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2013  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2014$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2015   { (exit 1); exit 1; }; }
2016fi
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042ac_ext=c
2043ac_cpp='$CPP $CPPFLAGS'
2044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047
2048
2049
2050sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2051if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2052{ { $as_echo "$as_me:$LINENO: error: configure script is out of date:
2053 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2054 top level VERSION file     = $sqlite_version_sanity_check
2055please regen with autoconf" >&5
2056$as_echo "$as_me: error: configure script is out of date:
2057 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2058 top level VERSION file     = $sqlite_version_sanity_check
2059please regen with autoconf" >&2;}
2060   { (exit 1); exit 1; }; }
2061fi
2062
2063# The following RCS revision string applies to configure.in
2064# $Revision: 1.56 $
2065
2066#########
2067# Programs needed
2068#
2069case `pwd` in
2070  *\ * | *\	*)
2071    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2072$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2073esac
2074
2075
2076
2077macro_version='2.2.6'
2078macro_revision='1.3012'
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092ltmain="$ac_aux_dir/ltmain.sh"
2093
2094ac_aux_dir=
2095for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2096  if test -f "$ac_dir/install-sh"; then
2097    ac_aux_dir=$ac_dir
2098    ac_install_sh="$ac_aux_dir/install-sh -c"
2099    break
2100  elif test -f "$ac_dir/install.sh"; then
2101    ac_aux_dir=$ac_dir
2102    ac_install_sh="$ac_aux_dir/install.sh -c"
2103    break
2104  elif test -f "$ac_dir/shtool"; then
2105    ac_aux_dir=$ac_dir
2106    ac_install_sh="$ac_aux_dir/shtool install -c"
2107    break
2108  fi
2109done
2110if test -z "$ac_aux_dir"; then
2111  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2112$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2113   { (exit 1); exit 1; }; }
2114fi
2115
2116# These three variables are undocumented and unsupported,
2117# and are intended to be withdrawn in a future Autoconf release.
2118# They can cause serious problems if a builder's source tree is in a directory
2119# whose full name contains unusual characters.
2120ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2121ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2122ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2123
2124
2125# Make sure we can run config.sub.
2126$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129   { (exit 1); exit 1; }; }
2130
2131{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2132$as_echo_n "checking build system type... " >&6; }
2133if test "${ac_cv_build+set}" = set; then
2134  $as_echo_n "(cached) " >&6
2135else
2136  ac_build_alias=$build_alias
2137test "x$ac_build_alias" = x &&
2138  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139test "x$ac_build_alias" = x &&
2140  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142   { (exit 1); exit 1; }; }
2143ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146   { (exit 1); exit 1; }; }
2147
2148fi
2149{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150$as_echo "$ac_cv_build" >&6; }
2151case $ac_cv_build in
2152*-*-*) ;;
2153*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2155   { (exit 1); exit 1; }; };;
2156esac
2157build=$ac_cv_build
2158ac_save_IFS=$IFS; IFS='-'
2159set x $ac_cv_build
2160shift
2161build_cpu=$1
2162build_vendor=$2
2163shift; shift
2164# Remember, the first character of IFS is used to create $*,
2165# except with old shells:
2166build_os=$*
2167IFS=$ac_save_IFS
2168case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169
2170
2171{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2172$as_echo_n "checking host system type... " >&6; }
2173if test "${ac_cv_host+set}" = set; then
2174  $as_echo_n "(cached) " >&6
2175else
2176  if test "x$host_alias" = x; then
2177  ac_cv_host=$ac_cv_build
2178else
2179  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182   { (exit 1); exit 1; }; }
2183fi
2184
2185fi
2186{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187$as_echo "$ac_cv_host" >&6; }
2188case $ac_cv_host in
2189*-*-*) ;;
2190*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2192   { (exit 1); exit 1; }; };;
2193esac
2194host=$ac_cv_host
2195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_host
2197shift
2198host_cpu=$1
2199host_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203host_os=$*
2204IFS=$ac_save_IFS
2205case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206
2207
2208ac_ext=c
2209ac_cpp='$CPP $CPPFLAGS'
2210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213if test -n "$ac_tool_prefix"; then
2214  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2215set dummy ${ac_tool_prefix}gcc; ac_word=$2
2216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2217$as_echo_n "checking for $ac_word... " >&6; }
2218if test "${ac_cv_prog_CC+set}" = set; then
2219  $as_echo_n "(cached) " >&6
2220else
2221  if test -n "$CC"; then
2222  ac_cv_prog_CC="$CC" # Let the user override the test.
2223else
2224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225for as_dir in $PATH
2226do
2227  IFS=$as_save_IFS
2228  test -z "$as_dir" && as_dir=.
2229  for ac_exec_ext in '' $ac_executable_extensions; do
2230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2232    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233    break 2
2234  fi
2235done
2236done
2237IFS=$as_save_IFS
2238
2239fi
2240fi
2241CC=$ac_cv_prog_CC
2242if test -n "$CC"; then
2243  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2244$as_echo "$CC" >&6; }
2245else
2246  { $as_echo "$as_me:$LINENO: result: no" >&5
2247$as_echo "no" >&6; }
2248fi
2249
2250
2251fi
2252if test -z "$ac_cv_prog_CC"; then
2253  ac_ct_CC=$CC
2254  # Extract the first word of "gcc", so it can be a program name with args.
2255set dummy gcc; ac_word=$2
2256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2257$as_echo_n "checking for $ac_word... " >&6; }
2258if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259  $as_echo_n "(cached) " >&6
2260else
2261  if test -n "$ac_ct_CC"; then
2262  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263else
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267  IFS=$as_save_IFS
2268  test -z "$as_dir" && as_dir=.
2269  for ac_exec_ext in '' $ac_executable_extensions; do
2270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271    ac_cv_prog_ac_ct_CC="gcc"
2272    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273    break 2
2274  fi
2275done
2276done
2277IFS=$as_save_IFS
2278
2279fi
2280fi
2281ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282if test -n "$ac_ct_CC"; then
2283  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284$as_echo "$ac_ct_CC" >&6; }
2285else
2286  { $as_echo "$as_me:$LINENO: result: no" >&5
2287$as_echo "no" >&6; }
2288fi
2289
2290  if test "x$ac_ct_CC" = x; then
2291    CC=""
2292  else
2293    case $cross_compiling:$ac_tool_warned in
2294yes:)
2295{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2296whose name does not start with the host triplet.  If you think this
2297configuration is useful to you, please write to autoconf@gnu.org." >&5
2298$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2299whose name does not start with the host triplet.  If you think this
2300configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2301ac_tool_warned=yes ;;
2302esac
2303    CC=$ac_ct_CC
2304  fi
2305else
2306  CC="$ac_cv_prog_CC"
2307fi
2308
2309if test -z "$CC"; then
2310          if test -n "$ac_tool_prefix"; then
2311    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2312set dummy ${ac_tool_prefix}cc; ac_word=$2
2313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2314$as_echo_n "checking for $ac_word... " >&6; }
2315if test "${ac_cv_prog_CC+set}" = set; then
2316  $as_echo_n "(cached) " >&6
2317else
2318  if test -n "$CC"; then
2319  ac_cv_prog_CC="$CC" # Let the user override the test.
2320else
2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324  IFS=$as_save_IFS
2325  test -z "$as_dir" && as_dir=.
2326  for ac_exec_ext in '' $ac_executable_extensions; do
2327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328    ac_cv_prog_CC="${ac_tool_prefix}cc"
2329    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330    break 2
2331  fi
2332done
2333done
2334IFS=$as_save_IFS
2335
2336fi
2337fi
2338CC=$ac_cv_prog_CC
2339if test -n "$CC"; then
2340  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2341$as_echo "$CC" >&6; }
2342else
2343  { $as_echo "$as_me:$LINENO: result: no" >&5
2344$as_echo "no" >&6; }
2345fi
2346
2347
2348  fi
2349fi
2350if test -z "$CC"; then
2351  # Extract the first word of "cc", so it can be a program name with args.
2352set dummy cc; ac_word=$2
2353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2354$as_echo_n "checking for $ac_word... " >&6; }
2355if test "${ac_cv_prog_CC+set}" = set; then
2356  $as_echo_n "(cached) " >&6
2357else
2358  if test -n "$CC"; then
2359  ac_cv_prog_CC="$CC" # Let the user override the test.
2360else
2361  ac_prog_rejected=no
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365  IFS=$as_save_IFS
2366  test -z "$as_dir" && as_dir=.
2367  for ac_exec_ext in '' $ac_executable_extensions; do
2368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2370       ac_prog_rejected=yes
2371       continue
2372     fi
2373    ac_cv_prog_CC="cc"
2374    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375    break 2
2376  fi
2377done
2378done
2379IFS=$as_save_IFS
2380
2381if test $ac_prog_rejected = yes; then
2382  # We found a bogon in the path, so make sure we never use it.
2383  set dummy $ac_cv_prog_CC
2384  shift
2385  if test $# != 0; then
2386    # We chose a different compiler from the bogus one.
2387    # However, it has the same basename, so the bogon will be chosen
2388    # first if we set CC to just the basename; use the full file name.
2389    shift
2390    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2391  fi
2392fi
2393fi
2394fi
2395CC=$ac_cv_prog_CC
2396if test -n "$CC"; then
2397  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2398$as_echo "$CC" >&6; }
2399else
2400  { $as_echo "$as_me:$LINENO: result: no" >&5
2401$as_echo "no" >&6; }
2402fi
2403
2404
2405fi
2406if test -z "$CC"; then
2407  if test -n "$ac_tool_prefix"; then
2408  for ac_prog in cl.exe
2409  do
2410    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2411set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2413$as_echo_n "checking for $ac_word... " >&6; }
2414if test "${ac_cv_prog_CC+set}" = set; then
2415  $as_echo_n "(cached) " >&6
2416else
2417  if test -n "$CC"; then
2418  ac_cv_prog_CC="$CC" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423  IFS=$as_save_IFS
2424  test -z "$as_dir" && as_dir=.
2425  for ac_exec_ext in '' $ac_executable_extensions; do
2426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2428    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429    break 2
2430  fi
2431done
2432done
2433IFS=$as_save_IFS
2434
2435fi
2436fi
2437CC=$ac_cv_prog_CC
2438if test -n "$CC"; then
2439  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2440$as_echo "$CC" >&6; }
2441else
2442  { $as_echo "$as_me:$LINENO: result: no" >&5
2443$as_echo "no" >&6; }
2444fi
2445
2446
2447    test -n "$CC" && break
2448  done
2449fi
2450if test -z "$CC"; then
2451  ac_ct_CC=$CC
2452  for ac_prog in cl.exe
2453do
2454  # Extract the first word of "$ac_prog", so it can be a program name with args.
2455set dummy $ac_prog; ac_word=$2
2456{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
2458if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2459  $as_echo_n "(cached) " >&6
2460else
2461  if test -n "$ac_ct_CC"; then
2462  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467  IFS=$as_save_IFS
2468  test -z "$as_dir" && as_dir=.
2469  for ac_exec_ext in '' $ac_executable_extensions; do
2470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471    ac_cv_prog_ac_ct_CC="$ac_prog"
2472    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473    break 2
2474  fi
2475done
2476done
2477IFS=$as_save_IFS
2478
2479fi
2480fi
2481ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482if test -n "$ac_ct_CC"; then
2483  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2484$as_echo "$ac_ct_CC" >&6; }
2485else
2486  { $as_echo "$as_me:$LINENO: result: no" >&5
2487$as_echo "no" >&6; }
2488fi
2489
2490
2491  test -n "$ac_ct_CC" && break
2492done
2493
2494  if test "x$ac_ct_CC" = x; then
2495    CC=""
2496  else
2497    case $cross_compiling:$ac_tool_warned in
2498yes:)
2499{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2500whose name does not start with the host triplet.  If you think this
2501configuration is useful to you, please write to autoconf@gnu.org." >&5
2502$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2503whose name does not start with the host triplet.  If you think this
2504configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2505ac_tool_warned=yes ;;
2506esac
2507    CC=$ac_ct_CC
2508  fi
2509fi
2510
2511fi
2512
2513
2514test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2515See \`config.log' for more details." >&5
2516$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2517See \`config.log' for more details." >&2;}
2518   { (exit 1); exit 1; }; }
2519
2520# Provide some information about the compiler.
2521$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2522set X $ac_compile
2523ac_compiler=$2
2524{ (ac_try="$ac_compiler --version >&5"
2525case "(($ac_try" in
2526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527  *) ac_try_echo=$ac_try;;
2528esac
2529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2530$as_echo "$ac_try_echo") >&5
2531  (eval "$ac_compiler --version >&5") 2>&5
2532  ac_status=$?
2533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }
2535{ (ac_try="$ac_compiler -v >&5"
2536case "(($ac_try" in
2537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538  *) ac_try_echo=$ac_try;;
2539esac
2540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2541$as_echo "$ac_try_echo") >&5
2542  (eval "$ac_compiler -v >&5") 2>&5
2543  ac_status=$?
2544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545  (exit $ac_status); }
2546{ (ac_try="$ac_compiler -V >&5"
2547case "(($ac_try" in
2548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549  *) ac_try_echo=$ac_try;;
2550esac
2551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2552$as_echo "$ac_try_echo") >&5
2553  (eval "$ac_compiler -V >&5") 2>&5
2554  ac_status=$?
2555  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }
2557
2558cat >conftest.$ac_ext <<_ACEOF
2559/* confdefs.h.  */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h.  */
2564
2565int
2566main ()
2567{
2568
2569  ;
2570  return 0;
2571}
2572_ACEOF
2573ac_clean_files_save=$ac_clean_files
2574ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2575# Try to create an executable without -o first, disregard a.out.
2576# It will help us diagnose broken compilers, and finding out an intuition
2577# of exeext.
2578{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2579$as_echo_n "checking for C compiler default output file name... " >&6; }
2580ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2581
2582# The possible output files:
2583ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2584
2585ac_rmfiles=
2586for ac_file in $ac_files
2587do
2588  case $ac_file in
2589    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2590    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2591  esac
2592done
2593rm -f $ac_rmfiles
2594
2595if { (ac_try="$ac_link_default"
2596case "(($ac_try" in
2597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598  *) ac_try_echo=$ac_try;;
2599esac
2600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2601$as_echo "$ac_try_echo") >&5
2602  (eval "$ac_link_default") 2>&5
2603  ac_status=$?
2604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; then
2606  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2607# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2608# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2609# so that the user can short-circuit this test for compilers unknown to
2610# Autoconf.
2611for ac_file in $ac_files ''
2612do
2613  test -f "$ac_file" || continue
2614  case $ac_file in
2615    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2616	;;
2617    [ab].out )
2618	# We found the default executable, but exeext='' is most
2619	# certainly right.
2620	break;;
2621    *.* )
2622        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2623	then :; else
2624	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2625	fi
2626	# We set ac_cv_exeext here because the later test for it is not
2627	# safe: cross compilers may not add the suffix if given an `-o'
2628	# argument, so we may need to know it at that point already.
2629	# Even if this section looks crufty: it has the advantage of
2630	# actually working.
2631	break;;
2632    * )
2633	break;;
2634  esac
2635done
2636test "$ac_cv_exeext" = no && ac_cv_exeext=
2637
2638else
2639  ac_file=''
2640fi
2641
2642{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2643$as_echo "$ac_file" >&6; }
2644if test -z "$ac_file"; then
2645  $as_echo "$as_me: failed program was:" >&5
2646sed 's/^/| /' conftest.$ac_ext >&5
2647
2648{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2649See \`config.log' for more details." >&5
2650$as_echo "$as_me: error: C compiler cannot create executables
2651See \`config.log' for more details." >&2;}
2652   { (exit 77); exit 77; }; }
2653fi
2654
2655ac_exeext=$ac_cv_exeext
2656
2657# Check that the compiler produces executables we can run.  If not, either
2658# the compiler is broken, or we cross compile.
2659{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2660$as_echo_n "checking whether the C compiler works... " >&6; }
2661# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2662# If not cross compiling, check that we can run a simple program.
2663if test "$cross_compiling" != yes; then
2664  if { ac_try='./$ac_file'
2665  { (case "(($ac_try" in
2666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667  *) ac_try_echo=$ac_try;;
2668esac
2669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2670$as_echo "$ac_try_echo") >&5
2671  (eval "$ac_try") 2>&5
2672  ac_status=$?
2673  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; }; then
2675    cross_compiling=no
2676  else
2677    if test "$cross_compiling" = maybe; then
2678	cross_compiling=yes
2679    else
2680	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2681If you meant to cross compile, use \`--host'.
2682See \`config.log' for more details." >&5
2683$as_echo "$as_me: error: cannot run C compiled programs.
2684If you meant to cross compile, use \`--host'.
2685See \`config.log' for more details." >&2;}
2686   { (exit 1); exit 1; }; }
2687    fi
2688  fi
2689fi
2690{ $as_echo "$as_me:$LINENO: result: yes" >&5
2691$as_echo "yes" >&6; }
2692
2693rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2694ac_clean_files=$ac_clean_files_save
2695# Check that the compiler produces executables we can run.  If not, either
2696# the compiler is broken, or we cross compile.
2697{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2698$as_echo_n "checking whether we are cross compiling... " >&6; }
2699{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2700$as_echo "$cross_compiling" >&6; }
2701
2702{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2703$as_echo_n "checking for suffix of executables... " >&6; }
2704if { (ac_try="$ac_link"
2705case "(($ac_try" in
2706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707  *) ac_try_echo=$ac_try;;
2708esac
2709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2710$as_echo "$ac_try_echo") >&5
2711  (eval "$ac_link") 2>&5
2712  ac_status=$?
2713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; then
2715  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2716# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2717# work properly (i.e., refer to `conftest.exe'), while it won't with
2718# `rm'.
2719for ac_file in conftest.exe conftest conftest.*; do
2720  test -f "$ac_file" || continue
2721  case $ac_file in
2722    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2723    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2724	  break;;
2725    * ) break;;
2726  esac
2727done
2728else
2729  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2730See \`config.log' for more details." >&5
2731$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2732See \`config.log' for more details." >&2;}
2733   { (exit 1); exit 1; }; }
2734fi
2735
2736rm -f conftest$ac_cv_exeext
2737{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2738$as_echo "$ac_cv_exeext" >&6; }
2739
2740rm -f conftest.$ac_ext
2741EXEEXT=$ac_cv_exeext
2742ac_exeext=$EXEEXT
2743{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2744$as_echo_n "checking for suffix of object files... " >&6; }
2745if test "${ac_cv_objext+set}" = set; then
2746  $as_echo_n "(cached) " >&6
2747else
2748  cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754
2755int
2756main ()
2757{
2758
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.o conftest.obj
2764if { (ac_try="$ac_compile"
2765case "(($ac_try" in
2766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767  *) ac_try_echo=$ac_try;;
2768esac
2769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2770$as_echo "$ac_try_echo") >&5
2771  (eval "$ac_compile") 2>&5
2772  ac_status=$?
2773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); }; then
2775  for ac_file in conftest.o conftest.obj conftest.*; do
2776  test -f "$ac_file" || continue;
2777  case $ac_file in
2778    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2779    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2780       break;;
2781  esac
2782done
2783else
2784  $as_echo "$as_me: failed program was:" >&5
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
2787{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2788See \`config.log' for more details." >&5
2789$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2790See \`config.log' for more details." >&2;}
2791   { (exit 1); exit 1; }; }
2792fi
2793
2794rm -f conftest.$ac_cv_objext conftest.$ac_ext
2795fi
2796{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2797$as_echo "$ac_cv_objext" >&6; }
2798OBJEXT=$ac_cv_objext
2799ac_objext=$OBJEXT
2800{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2801$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2802if test "${ac_cv_c_compiler_gnu+set}" = set; then
2803  $as_echo_n "(cached) " >&6
2804else
2805  cat >conftest.$ac_ext <<_ACEOF
2806/* confdefs.h.  */
2807_ACEOF
2808cat confdefs.h >>conftest.$ac_ext
2809cat >>conftest.$ac_ext <<_ACEOF
2810/* end confdefs.h.  */
2811
2812int
2813main ()
2814{
2815#ifndef __GNUC__
2816       choke me
2817#endif
2818
2819  ;
2820  return 0;
2821}
2822_ACEOF
2823rm -f conftest.$ac_objext
2824if { (ac_try="$ac_compile"
2825case "(($ac_try" in
2826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827  *) ac_try_echo=$ac_try;;
2828esac
2829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2830$as_echo "$ac_try_echo") >&5
2831  (eval "$ac_compile") 2>conftest.er1
2832  ac_status=$?
2833  grep -v '^ *+' conftest.er1 >conftest.err
2834  rm -f conftest.er1
2835  cat conftest.err >&5
2836  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); } && {
2838	 test -z "$ac_c_werror_flag" ||
2839	 test ! -s conftest.err
2840       } && test -s conftest.$ac_objext; then
2841  ac_compiler_gnu=yes
2842else
2843  $as_echo "$as_me: failed program was:" >&5
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846	ac_compiler_gnu=no
2847fi
2848
2849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850ac_cv_c_compiler_gnu=$ac_compiler_gnu
2851
2852fi
2853{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2854$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2855if test $ac_compiler_gnu = yes; then
2856  GCC=yes
2857else
2858  GCC=
2859fi
2860ac_test_CFLAGS=${CFLAGS+set}
2861ac_save_CFLAGS=$CFLAGS
2862{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2863$as_echo_n "checking whether $CC accepts -g... " >&6; }
2864if test "${ac_cv_prog_cc_g+set}" = set; then
2865  $as_echo_n "(cached) " >&6
2866else
2867  ac_save_c_werror_flag=$ac_c_werror_flag
2868   ac_c_werror_flag=yes
2869   ac_cv_prog_cc_g=no
2870   CFLAGS="-g"
2871   cat >conftest.$ac_ext <<_ACEOF
2872/* confdefs.h.  */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h.  */
2877
2878int
2879main ()
2880{
2881
2882  ;
2883  return 0;
2884}
2885_ACEOF
2886rm -f conftest.$ac_objext
2887if { (ac_try="$ac_compile"
2888case "(($ac_try" in
2889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890  *) ac_try_echo=$ac_try;;
2891esac
2892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2893$as_echo "$ac_try_echo") >&5
2894  (eval "$ac_compile") 2>conftest.er1
2895  ac_status=$?
2896  grep -v '^ *+' conftest.er1 >conftest.err
2897  rm -f conftest.er1
2898  cat conftest.err >&5
2899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); } && {
2901	 test -z "$ac_c_werror_flag" ||
2902	 test ! -s conftest.err
2903       } && test -s conftest.$ac_objext; then
2904  ac_cv_prog_cc_g=yes
2905else
2906  $as_echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909	CFLAGS=""
2910      cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h.  */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h.  */
2916
2917int
2918main ()
2919{
2920
2921  ;
2922  return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext
2926if { (ac_try="$ac_compile"
2927case "(($ac_try" in
2928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929  *) ac_try_echo=$ac_try;;
2930esac
2931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932$as_echo "$ac_try_echo") >&5
2933  (eval "$ac_compile") 2>conftest.er1
2934  ac_status=$?
2935  grep -v '^ *+' conftest.er1 >conftest.err
2936  rm -f conftest.er1
2937  cat conftest.err >&5
2938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); } && {
2940	 test -z "$ac_c_werror_flag" ||
2941	 test ! -s conftest.err
2942       } && test -s conftest.$ac_objext; then
2943  :
2944else
2945  $as_echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948	ac_c_werror_flag=$ac_save_c_werror_flag
2949	 CFLAGS="-g"
2950	 cat >conftest.$ac_ext <<_ACEOF
2951/* confdefs.h.  */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h.  */
2956
2957int
2958main ()
2959{
2960
2961  ;
2962  return 0;
2963}
2964_ACEOF
2965rm -f conftest.$ac_objext
2966if { (ac_try="$ac_compile"
2967case "(($ac_try" in
2968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969  *) ac_try_echo=$ac_try;;
2970esac
2971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2972$as_echo "$ac_try_echo") >&5
2973  (eval "$ac_compile") 2>conftest.er1
2974  ac_status=$?
2975  grep -v '^ *+' conftest.er1 >conftest.err
2976  rm -f conftest.er1
2977  cat conftest.err >&5
2978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); } && {
2980	 test -z "$ac_c_werror_flag" ||
2981	 test ! -s conftest.err
2982       } && test -s conftest.$ac_objext; then
2983  ac_cv_prog_cc_g=yes
2984else
2985  $as_echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988
2989fi
2990
2991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992fi
2993
2994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995fi
2996
2997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998   ac_c_werror_flag=$ac_save_c_werror_flag
2999fi
3000{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3001$as_echo "$ac_cv_prog_cc_g" >&6; }
3002if test "$ac_test_CFLAGS" = set; then
3003  CFLAGS=$ac_save_CFLAGS
3004elif test $ac_cv_prog_cc_g = yes; then
3005  if test "$GCC" = yes; then
3006    CFLAGS="-g -O2"
3007  else
3008    CFLAGS="-g"
3009  fi
3010else
3011  if test "$GCC" = yes; then
3012    CFLAGS="-O2"
3013  else
3014    CFLAGS=
3015  fi
3016fi
3017{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3018$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3019if test "${ac_cv_prog_cc_c89+set}" = set; then
3020  $as_echo_n "(cached) " >&6
3021else
3022  ac_cv_prog_cc_c89=no
3023ac_save_CC=$CC
3024cat >conftest.$ac_ext <<_ACEOF
3025/* confdefs.h.  */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h.  */
3030#include <stdarg.h>
3031#include <stdio.h>
3032#include <sys/types.h>
3033#include <sys/stat.h>
3034/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3035struct buf { int x; };
3036FILE * (*rcsopen) (struct buf *, struct stat *, int);
3037static char *e (p, i)
3038     char **p;
3039     int i;
3040{
3041  return p[i];
3042}
3043static char *f (char * (*g) (char **, int), char **p, ...)
3044{
3045  char *s;
3046  va_list v;
3047  va_start (v,p);
3048  s = g (p, va_arg (v,int));
3049  va_end (v);
3050  return s;
3051}
3052
3053/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3054   function prototypes and stuff, but not '\xHH' hex character constants.
3055   These don't provoke an error unfortunately, instead are silently treated
3056   as 'x'.  The following induces an error, until -std is added to get
3057   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3058   array size at least.  It's necessary to write '\x00'==0 to get something
3059   that's true only with -std.  */
3060int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3061
3062/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3063   inside strings and character constants.  */
3064#define FOO(x) 'x'
3065int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3066
3067int test (int i, double x);
3068struct s1 {int (*f) (int a);};
3069struct s2 {int (*f) (double a);};
3070int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3071int argc;
3072char **argv;
3073int
3074main ()
3075{
3076return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3082	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3083do
3084  CC="$ac_save_CC $ac_arg"
3085  rm -f conftest.$ac_objext
3086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092$as_echo "$ac_try_echo") >&5
3093  (eval "$ac_compile") 2>conftest.er1
3094  ac_status=$?
3095  grep -v '^ *+' conftest.er1 >conftest.err
3096  rm -f conftest.er1
3097  cat conftest.err >&5
3098  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); } && {
3100	 test -z "$ac_c_werror_flag" ||
3101	 test ! -s conftest.err
3102       } && test -s conftest.$ac_objext; then
3103  ac_cv_prog_cc_c89=$ac_arg
3104else
3105  $as_echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108
3109fi
3110
3111rm -f core conftest.err conftest.$ac_objext
3112  test "x$ac_cv_prog_cc_c89" != "xno" && break
3113done
3114rm -f conftest.$ac_ext
3115CC=$ac_save_CC
3116
3117fi
3118# AC_CACHE_VAL
3119case "x$ac_cv_prog_cc_c89" in
3120  x)
3121    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3122$as_echo "none needed" >&6; } ;;
3123  xno)
3124    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3125$as_echo "unsupported" >&6; } ;;
3126  *)
3127    CC="$CC $ac_cv_prog_cc_c89"
3128    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3129$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3130esac
3131
3132
3133ac_ext=c
3134ac_cpp='$CPP $CPPFLAGS'
3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138
3139{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3140$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3141if test "${ac_cv_path_SED+set}" = set; then
3142  $as_echo_n "(cached) " >&6
3143else
3144            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3145     for ac_i in 1 2 3 4 5 6 7; do
3146       ac_script="$ac_script$as_nl$ac_script"
3147     done
3148     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3149     $as_unset ac_script || ac_script=
3150     if test -z "$SED"; then
3151  ac_path_SED_found=false
3152  # Loop through the user's path and test for each of PROGNAME-LIST
3153  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156  IFS=$as_save_IFS
3157  test -z "$as_dir" && as_dir=.
3158  for ac_prog in sed gsed; do
3159    for ac_exec_ext in '' $ac_executable_extensions; do
3160      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3161      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3162# Check for GNU ac_path_SED and select it if it is found.
3163  # Check for GNU $ac_path_SED
3164case `"$ac_path_SED" --version 2>&1` in
3165*GNU*)
3166  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3167*)
3168  ac_count=0
3169  $as_echo_n 0123456789 >"conftest.in"
3170  while :
3171  do
3172    cat "conftest.in" "conftest.in" >"conftest.tmp"
3173    mv "conftest.tmp" "conftest.in"
3174    cp "conftest.in" "conftest.nl"
3175    $as_echo '' >> "conftest.nl"
3176    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3177    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3178    ac_count=`expr $ac_count + 1`
3179    if test $ac_count -gt ${ac_path_SED_max-0}; then
3180      # Best one so far, save it but keep looking for a better one
3181      ac_cv_path_SED="$ac_path_SED"
3182      ac_path_SED_max=$ac_count
3183    fi
3184    # 10*(2^10) chars as input seems more than enough
3185    test $ac_count -gt 10 && break
3186  done
3187  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3188esac
3189
3190      $ac_path_SED_found && break 3
3191    done
3192  done
3193done
3194IFS=$as_save_IFS
3195  if test -z "$ac_cv_path_SED"; then
3196    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3197$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3198   { (exit 1); exit 1; }; }
3199  fi
3200else
3201  ac_cv_path_SED=$SED
3202fi
3203
3204fi
3205{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3206$as_echo "$ac_cv_path_SED" >&6; }
3207 SED="$ac_cv_path_SED"
3208  rm -f conftest.sed
3209
3210test -z "$SED" && SED=sed
3211Xsed="$SED -e 1s/^X//"
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3224$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3225if test "${ac_cv_path_GREP+set}" = set; then
3226  $as_echo_n "(cached) " >&6
3227else
3228  if test -z "$GREP"; then
3229  ac_path_GREP_found=false
3230  # Loop through the user's path and test for each of PROGNAME-LIST
3231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3233do
3234  IFS=$as_save_IFS
3235  test -z "$as_dir" && as_dir=.
3236  for ac_prog in grep ggrep; do
3237    for ac_exec_ext in '' $ac_executable_extensions; do
3238      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3239      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3240# Check for GNU ac_path_GREP and select it if it is found.
3241  # Check for GNU $ac_path_GREP
3242case `"$ac_path_GREP" --version 2>&1` in
3243*GNU*)
3244  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3245*)
3246  ac_count=0
3247  $as_echo_n 0123456789 >"conftest.in"
3248  while :
3249  do
3250    cat "conftest.in" "conftest.in" >"conftest.tmp"
3251    mv "conftest.tmp" "conftest.in"
3252    cp "conftest.in" "conftest.nl"
3253    $as_echo 'GREP' >> "conftest.nl"
3254    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3255    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3256    ac_count=`expr $ac_count + 1`
3257    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3258      # Best one so far, save it but keep looking for a better one
3259      ac_cv_path_GREP="$ac_path_GREP"
3260      ac_path_GREP_max=$ac_count
3261    fi
3262    # 10*(2^10) chars as input seems more than enough
3263    test $ac_count -gt 10 && break
3264  done
3265  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3266esac
3267
3268      $ac_path_GREP_found && break 3
3269    done
3270  done
3271done
3272IFS=$as_save_IFS
3273  if test -z "$ac_cv_path_GREP"; then
3274    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3275$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3276   { (exit 1); exit 1; }; }
3277  fi
3278else
3279  ac_cv_path_GREP=$GREP
3280fi
3281
3282fi
3283{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3284$as_echo "$ac_cv_path_GREP" >&6; }
3285 GREP="$ac_cv_path_GREP"
3286
3287
3288{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3289$as_echo_n "checking for egrep... " >&6; }
3290if test "${ac_cv_path_EGREP+set}" = set; then
3291  $as_echo_n "(cached) " >&6
3292else
3293  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3294   then ac_cv_path_EGREP="$GREP -E"
3295   else
3296     if test -z "$EGREP"; then
3297  ac_path_EGREP_found=false
3298  # Loop through the user's path and test for each of PROGNAME-LIST
3299  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3301do
3302  IFS=$as_save_IFS
3303  test -z "$as_dir" && as_dir=.
3304  for ac_prog in egrep; do
3305    for ac_exec_ext in '' $ac_executable_extensions; do
3306      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3307      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3308# Check for GNU ac_path_EGREP and select it if it is found.
3309  # Check for GNU $ac_path_EGREP
3310case `"$ac_path_EGREP" --version 2>&1` in
3311*GNU*)
3312  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3313*)
3314  ac_count=0
3315  $as_echo_n 0123456789 >"conftest.in"
3316  while :
3317  do
3318    cat "conftest.in" "conftest.in" >"conftest.tmp"
3319    mv "conftest.tmp" "conftest.in"
3320    cp "conftest.in" "conftest.nl"
3321    $as_echo 'EGREP' >> "conftest.nl"
3322    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3323    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3324    ac_count=`expr $ac_count + 1`
3325    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3326      # Best one so far, save it but keep looking for a better one
3327      ac_cv_path_EGREP="$ac_path_EGREP"
3328      ac_path_EGREP_max=$ac_count
3329    fi
3330    # 10*(2^10) chars as input seems more than enough
3331    test $ac_count -gt 10 && break
3332  done
3333  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3334esac
3335
3336      $ac_path_EGREP_found && break 3
3337    done
3338  done
3339done
3340IFS=$as_save_IFS
3341  if test -z "$ac_cv_path_EGREP"; then
3342    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3343$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3344   { (exit 1); exit 1; }; }
3345  fi
3346else
3347  ac_cv_path_EGREP=$EGREP
3348fi
3349
3350   fi
3351fi
3352{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3353$as_echo "$ac_cv_path_EGREP" >&6; }
3354 EGREP="$ac_cv_path_EGREP"
3355
3356
3357{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3358$as_echo_n "checking for fgrep... " >&6; }
3359if test "${ac_cv_path_FGREP+set}" = set; then
3360  $as_echo_n "(cached) " >&6
3361else
3362  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3363   then ac_cv_path_FGREP="$GREP -F"
3364   else
3365     if test -z "$FGREP"; then
3366  ac_path_FGREP_found=false
3367  # Loop through the user's path and test for each of PROGNAME-LIST
3368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3370do
3371  IFS=$as_save_IFS
3372  test -z "$as_dir" && as_dir=.
3373  for ac_prog in fgrep; do
3374    for ac_exec_ext in '' $ac_executable_extensions; do
3375      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3376      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3377# Check for GNU ac_path_FGREP and select it if it is found.
3378  # Check for GNU $ac_path_FGREP
3379case `"$ac_path_FGREP" --version 2>&1` in
3380*GNU*)
3381  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3382*)
3383  ac_count=0
3384  $as_echo_n 0123456789 >"conftest.in"
3385  while :
3386  do
3387    cat "conftest.in" "conftest.in" >"conftest.tmp"
3388    mv "conftest.tmp" "conftest.in"
3389    cp "conftest.in" "conftest.nl"
3390    $as_echo 'FGREP' >> "conftest.nl"
3391    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3392    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3393    ac_count=`expr $ac_count + 1`
3394    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3395      # Best one so far, save it but keep looking for a better one
3396      ac_cv_path_FGREP="$ac_path_FGREP"
3397      ac_path_FGREP_max=$ac_count
3398    fi
3399    # 10*(2^10) chars as input seems more than enough
3400    test $ac_count -gt 10 && break
3401  done
3402  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3403esac
3404
3405      $ac_path_FGREP_found && break 3
3406    done
3407  done
3408done
3409IFS=$as_save_IFS
3410  if test -z "$ac_cv_path_FGREP"; then
3411    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3412$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3413   { (exit 1); exit 1; }; }
3414  fi
3415else
3416  ac_cv_path_FGREP=$FGREP
3417fi
3418
3419   fi
3420fi
3421{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3422$as_echo "$ac_cv_path_FGREP" >&6; }
3423 FGREP="$ac_cv_path_FGREP"
3424
3425
3426test -z "$GREP" && GREP=grep
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446# Check whether --with-gnu-ld was given.
3447if test "${with_gnu_ld+set}" = set; then
3448  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3449else
3450  with_gnu_ld=no
3451fi
3452
3453ac_prog=ld
3454if test "$GCC" = yes; then
3455  # Check if gcc -print-prog-name=ld gives a path.
3456  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3457$as_echo_n "checking for ld used by $CC... " >&6; }
3458  case $host in
3459  *-*-mingw*)
3460    # gcc leaves a trailing carriage return which upsets mingw
3461    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3462  *)
3463    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3464  esac
3465  case $ac_prog in
3466    # Accept absolute paths.
3467    [\\/]* | ?:[\\/]*)
3468      re_direlt='/[^/][^/]*/\.\./'
3469      # Canonicalize the pathname of ld
3470      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3471      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3472	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3473      done
3474      test -z "$LD" && LD="$ac_prog"
3475      ;;
3476  "")
3477    # If it fails, then pretend we aren't using GCC.
3478    ac_prog=ld
3479    ;;
3480  *)
3481    # If it is relative, then search for the first ld in PATH.
3482    with_gnu_ld=unknown
3483    ;;
3484  esac
3485elif test "$with_gnu_ld" = yes; then
3486  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3487$as_echo_n "checking for GNU ld... " >&6; }
3488else
3489  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3490$as_echo_n "checking for non-GNU ld... " >&6; }
3491fi
3492if test "${lt_cv_path_LD+set}" = set; then
3493  $as_echo_n "(cached) " >&6
3494else
3495  if test -z "$LD"; then
3496  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3497  for ac_dir in $PATH; do
3498    IFS="$lt_save_ifs"
3499    test -z "$ac_dir" && ac_dir=.
3500    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3501      lt_cv_path_LD="$ac_dir/$ac_prog"
3502      # Check to see if the program is GNU ld.  I'd rather use --version,
3503      # but apparently some variants of GNU ld only accept -v.
3504      # Break only if it was the GNU/non-GNU ld that we prefer.
3505      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3506      *GNU* | *'with BFD'*)
3507	test "$with_gnu_ld" != no && break
3508	;;
3509      *)
3510	test "$with_gnu_ld" != yes && break
3511	;;
3512      esac
3513    fi
3514  done
3515  IFS="$lt_save_ifs"
3516else
3517  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3518fi
3519fi
3520
3521LD="$lt_cv_path_LD"
3522if test -n "$LD"; then
3523  { $as_echo "$as_me:$LINENO: result: $LD" >&5
3524$as_echo "$LD" >&6; }
3525else
3526  { $as_echo "$as_me:$LINENO: result: no" >&5
3527$as_echo "no" >&6; }
3528fi
3529test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3530$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3531   { (exit 1); exit 1; }; }
3532{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3533$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3534if test "${lt_cv_prog_gnu_ld+set}" = set; then
3535  $as_echo_n "(cached) " >&6
3536else
3537  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3538case `$LD -v 2>&1 </dev/null` in
3539*GNU* | *'with BFD'*)
3540  lt_cv_prog_gnu_ld=yes
3541  ;;
3542*)
3543  lt_cv_prog_gnu_ld=no
3544  ;;
3545esac
3546fi
3547{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3548$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3549with_gnu_ld=$lt_cv_prog_gnu_ld
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3560$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3561if test "${lt_cv_path_NM+set}" = set; then
3562  $as_echo_n "(cached) " >&6
3563else
3564  if test -n "$NM"; then
3565  # Let the user override the test.
3566  lt_cv_path_NM="$NM"
3567else
3568  lt_nm_to_check="${ac_tool_prefix}nm"
3569  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3570    lt_nm_to_check="$lt_nm_to_check nm"
3571  fi
3572  for lt_tmp_nm in $lt_nm_to_check; do
3573    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3574    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3575      IFS="$lt_save_ifs"
3576      test -z "$ac_dir" && ac_dir=.
3577      tmp_nm="$ac_dir/$lt_tmp_nm"
3578      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3579	# Check to see if the nm accepts a BSD-compat flag.
3580	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3581	#   nm: unknown option "B" ignored
3582	# Tru64's nm complains that /dev/null is an invalid object file
3583	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3584	*/dev/null* | *'Invalid file or object type'*)
3585	  lt_cv_path_NM="$tmp_nm -B"
3586	  break
3587	  ;;
3588	*)
3589	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3590	  */dev/null*)
3591	    lt_cv_path_NM="$tmp_nm -p"
3592	    break
3593	    ;;
3594	  *)
3595	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3596	    continue # so that we can try to find one that supports BSD flags
3597	    ;;
3598	  esac
3599	  ;;
3600	esac
3601      fi
3602    done
3603    IFS="$lt_save_ifs"
3604  done
3605  : ${lt_cv_path_NM=no}
3606fi
3607fi
3608{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3609$as_echo "$lt_cv_path_NM" >&6; }
3610if test "$lt_cv_path_NM" != "no"; then
3611  NM="$lt_cv_path_NM"
3612else
3613  # Didn't find any BSD compatible name lister, look for dumpbin.
3614  if test -n "$ac_tool_prefix"; then
3615  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3616  do
3617    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3618set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3619{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3620$as_echo_n "checking for $ac_word... " >&6; }
3621if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3622  $as_echo_n "(cached) " >&6
3623else
3624  if test -n "$DUMPBIN"; then
3625  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3626else
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630  IFS=$as_save_IFS
3631  test -z "$as_dir" && as_dir=.
3632  for ac_exec_ext in '' $ac_executable_extensions; do
3633  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3635    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636    break 2
3637  fi
3638done
3639done
3640IFS=$as_save_IFS
3641
3642fi
3643fi
3644DUMPBIN=$ac_cv_prog_DUMPBIN
3645if test -n "$DUMPBIN"; then
3646  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3647$as_echo "$DUMPBIN" >&6; }
3648else
3649  { $as_echo "$as_me:$LINENO: result: no" >&5
3650$as_echo "no" >&6; }
3651fi
3652
3653
3654    test -n "$DUMPBIN" && break
3655  done
3656fi
3657if test -z "$DUMPBIN"; then
3658  ac_ct_DUMPBIN=$DUMPBIN
3659  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3660do
3661  # Extract the first word of "$ac_prog", so it can be a program name with args.
3662set dummy $ac_prog; ac_word=$2
3663{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3664$as_echo_n "checking for $ac_word... " >&6; }
3665if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3666  $as_echo_n "(cached) " >&6
3667else
3668  if test -n "$ac_ct_DUMPBIN"; then
3669  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3670else
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674  IFS=$as_save_IFS
3675  test -z "$as_dir" && as_dir=.
3676  for ac_exec_ext in '' $ac_executable_extensions; do
3677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3679    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680    break 2
3681  fi
3682done
3683done
3684IFS=$as_save_IFS
3685
3686fi
3687fi
3688ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3689if test -n "$ac_ct_DUMPBIN"; then
3690  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3691$as_echo "$ac_ct_DUMPBIN" >&6; }
3692else
3693  { $as_echo "$as_me:$LINENO: result: no" >&5
3694$as_echo "no" >&6; }
3695fi
3696
3697
3698  test -n "$ac_ct_DUMPBIN" && break
3699done
3700
3701  if test "x$ac_ct_DUMPBIN" = x; then
3702    DUMPBIN=":"
3703  else
3704    case $cross_compiling:$ac_tool_warned in
3705yes:)
3706{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3707whose name does not start with the host triplet.  If you think this
3708configuration is useful to you, please write to autoconf@gnu.org." >&5
3709$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3710whose name does not start with the host triplet.  If you think this
3711configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3712ac_tool_warned=yes ;;
3713esac
3714    DUMPBIN=$ac_ct_DUMPBIN
3715  fi
3716fi
3717
3718
3719  if test "$DUMPBIN" != ":"; then
3720    NM="$DUMPBIN"
3721  fi
3722fi
3723test -z "$NM" && NM=nm
3724
3725
3726
3727
3728
3729
3730{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3731$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3732if test "${lt_cv_nm_interface+set}" = set; then
3733  $as_echo_n "(cached) " >&6
3734else
3735  lt_cv_nm_interface="BSD nm"
3736  echo "int some_variable = 0;" > conftest.$ac_ext
3737  (eval echo "\"\$as_me:3737: $ac_compile\"" >&5)
3738  (eval "$ac_compile" 2>conftest.err)
3739  cat conftest.err >&5
3740  (eval echo "\"\$as_me:3740: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3741  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3742  cat conftest.err >&5
3743  (eval echo "\"\$as_me:3743: output\"" >&5)
3744  cat conftest.out >&5
3745  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3746    lt_cv_nm_interface="MS dumpbin"
3747  fi
3748  rm -f conftest*
3749fi
3750{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3751$as_echo "$lt_cv_nm_interface" >&6; }
3752
3753{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3754$as_echo_n "checking whether ln -s works... " >&6; }
3755LN_S=$as_ln_s
3756if test "$LN_S" = "ln -s"; then
3757  { $as_echo "$as_me:$LINENO: result: yes" >&5
3758$as_echo "yes" >&6; }
3759else
3760  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3761$as_echo "no, using $LN_S" >&6; }
3762fi
3763
3764# find the maximum length of command line arguments
3765{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3766$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3767if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3768  $as_echo_n "(cached) " >&6
3769else
3770    i=0
3771  teststring="ABCD"
3772
3773  case $build_os in
3774  msdosdjgpp*)
3775    # On DJGPP, this test can blow up pretty badly due to problems in libc
3776    # (any single argument exceeding 2000 bytes causes a buffer overrun
3777    # during glob expansion).  Even if it were fixed, the result of this
3778    # check would be larger than it should be.
3779    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3780    ;;
3781
3782  gnu*)
3783    # Under GNU Hurd, this test is not required because there is
3784    # no limit to the length of command line arguments.
3785    # Libtool will interpret -1 as no limit whatsoever
3786    lt_cv_sys_max_cmd_len=-1;
3787    ;;
3788
3789  cygwin* | mingw* | cegcc*)
3790    # On Win9x/ME, this test blows up -- it succeeds, but takes
3791    # about 5 minutes as the teststring grows exponentially.
3792    # Worse, since 9x/ME are not pre-emptively multitasking,
3793    # you end up with a "frozen" computer, even though with patience
3794    # the test eventually succeeds (with a max line length of 256k).
3795    # Instead, let's just punt: use the minimum linelength reported by
3796    # all of the supported platforms: 8192 (on NT/2K/XP).
3797    lt_cv_sys_max_cmd_len=8192;
3798    ;;
3799
3800  amigaos*)
3801    # On AmigaOS with pdksh, this test takes hours, literally.
3802    # So we just punt and use a minimum line length of 8192.
3803    lt_cv_sys_max_cmd_len=8192;
3804    ;;
3805
3806  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3807    # This has been around since 386BSD, at least.  Likely further.
3808    if test -x /sbin/sysctl; then
3809      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3810    elif test -x /usr/sbin/sysctl; then
3811      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3812    else
3813      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
3814    fi
3815    # And add a safety zone
3816    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3817    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3818    ;;
3819
3820  interix*)
3821    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3822    lt_cv_sys_max_cmd_len=196608
3823    ;;
3824
3825  osf*)
3826    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3827    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3828    # nice to cause kernel panics so lets avoid the loop below.
3829    # First set a reasonable default.
3830    lt_cv_sys_max_cmd_len=16384
3831    #
3832    if test -x /sbin/sysconfig; then
3833      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3834        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3835      esac
3836    fi
3837    ;;
3838  sco3.2v5*)
3839    lt_cv_sys_max_cmd_len=102400
3840    ;;
3841  sysv5* | sco5v6* | sysv4.2uw2*)
3842    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3843    if test -n "$kargmax"; then
3844      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
3845    else
3846      lt_cv_sys_max_cmd_len=32768
3847    fi
3848    ;;
3849  *)
3850    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3851    if test -n "$lt_cv_sys_max_cmd_len"; then
3852      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3853      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3854    else
3855      # Make teststring a little bigger before we do anything with it.
3856      # a 1K string should be a reasonable start.
3857      for i in 1 2 3 4 5 6 7 8 ; do
3858        teststring=$teststring$teststring
3859      done
3860      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3861      # If test is not a shell built-in, we'll probably end up computing a
3862      # maximum length that is only half of the actual maximum length, but
3863      # we can't tell.
3864      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3865	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3866	      test $i != 17 # 1/2 MB should be enough
3867      do
3868        i=`expr $i + 1`
3869        teststring=$teststring$teststring
3870      done
3871      # Only check the string length outside the loop.
3872      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3873      teststring=
3874      # Add a significant safety factor because C++ compilers can tack on
3875      # massive amounts of additional arguments before passing them to the
3876      # linker.  It appears as though 1/2 is a usable value.
3877      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3878    fi
3879    ;;
3880  esac
3881
3882fi
3883
3884if test -n $lt_cv_sys_max_cmd_len ; then
3885  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3886$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3887else
3888  { $as_echo "$as_me:$LINENO: result: none" >&5
3889$as_echo "none" >&6; }
3890fi
3891max_cmd_len=$lt_cv_sys_max_cmd_len
3892
3893
3894
3895
3896
3897
3898: ${CP="cp -f"}
3899: ${MV="mv -f"}
3900: ${RM="rm -f"}
3901
3902{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3903$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3904# Try some XSI features
3905xsi_shell=no
3906( _lt_dummy="a/b/c"
3907  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3908      = c,a/b,, \
3909    && eval 'test $(( 1 + 1 )) -eq 2 \
3910    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3911  && xsi_shell=yes
3912{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3913$as_echo "$xsi_shell" >&6; }
3914
3915
3916{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3917$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3918lt_shell_append=no
3919( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3920    >/dev/null 2>&1 \
3921  && lt_shell_append=yes
3922{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3923$as_echo "$lt_shell_append" >&6; }
3924
3925
3926if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3927  lt_unset=unset
3928else
3929  lt_unset=false
3930fi
3931
3932
3933
3934
3935
3936# test EBCDIC or ASCII
3937case `echo X|tr X '\101'` in
3938 A) # ASCII based system
3939    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3940  lt_SP2NL='tr \040 \012'
3941  lt_NL2SP='tr \015\012 \040\040'
3942  ;;
3943 *) # EBCDIC based system
3944  lt_SP2NL='tr \100 \n'
3945  lt_NL2SP='tr \r\n \100\100'
3946  ;;
3947esac
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3958$as_echo_n "checking for $LD option to reload object files... " >&6; }
3959if test "${lt_cv_ld_reload_flag+set}" = set; then
3960  $as_echo_n "(cached) " >&6
3961else
3962  lt_cv_ld_reload_flag='-r'
3963fi
3964{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3965$as_echo "$lt_cv_ld_reload_flag" >&6; }
3966reload_flag=$lt_cv_ld_reload_flag
3967case $reload_flag in
3968"" | " "*) ;;
3969*) reload_flag=" $reload_flag" ;;
3970esac
3971reload_cmds='$LD$reload_flag -o $output$reload_objs'
3972case $host_os in
3973  darwin*)
3974    if test "$GCC" = yes; then
3975      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3976    else
3977      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3978    fi
3979    ;;
3980esac
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990if test -n "$ac_tool_prefix"; then
3991  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3992set dummy ${ac_tool_prefix}objdump; ac_word=$2
3993{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3994$as_echo_n "checking for $ac_word... " >&6; }
3995if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3996  $as_echo_n "(cached) " >&6
3997else
3998  if test -n "$OBJDUMP"; then
3999  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4000else
4001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH
4003do
4004  IFS=$as_save_IFS
4005  test -z "$as_dir" && as_dir=.
4006  for ac_exec_ext in '' $ac_executable_extensions; do
4007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4009    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010    break 2
4011  fi
4012done
4013done
4014IFS=$as_save_IFS
4015
4016fi
4017fi
4018OBJDUMP=$ac_cv_prog_OBJDUMP
4019if test -n "$OBJDUMP"; then
4020  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4021$as_echo "$OBJDUMP" >&6; }
4022else
4023  { $as_echo "$as_me:$LINENO: result: no" >&5
4024$as_echo "no" >&6; }
4025fi
4026
4027
4028fi
4029if test -z "$ac_cv_prog_OBJDUMP"; then
4030  ac_ct_OBJDUMP=$OBJDUMP
4031  # Extract the first word of "objdump", so it can be a program name with args.
4032set dummy objdump; ac_word=$2
4033{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
4035if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4036  $as_echo_n "(cached) " >&6
4037else
4038  if test -n "$ac_ct_OBJDUMP"; then
4039  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4040else
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044  IFS=$as_save_IFS
4045  test -z "$as_dir" && as_dir=.
4046  for ac_exec_ext in '' $ac_executable_extensions; do
4047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4049    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050    break 2
4051  fi
4052done
4053done
4054IFS=$as_save_IFS
4055
4056fi
4057fi
4058ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4059if test -n "$ac_ct_OBJDUMP"; then
4060  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4061$as_echo "$ac_ct_OBJDUMP" >&6; }
4062else
4063  { $as_echo "$as_me:$LINENO: result: no" >&5
4064$as_echo "no" >&6; }
4065fi
4066
4067  if test "x$ac_ct_OBJDUMP" = x; then
4068    OBJDUMP="false"
4069  else
4070    case $cross_compiling:$ac_tool_warned in
4071yes:)
4072{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4073whose name does not start with the host triplet.  If you think this
4074configuration is useful to you, please write to autoconf@gnu.org." >&5
4075$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4076whose name does not start with the host triplet.  If you think this
4077configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4078ac_tool_warned=yes ;;
4079esac
4080    OBJDUMP=$ac_ct_OBJDUMP
4081  fi
4082else
4083  OBJDUMP="$ac_cv_prog_OBJDUMP"
4084fi
4085
4086test -z "$OBJDUMP" && OBJDUMP=objdump
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4097$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4098if test "${lt_cv_deplibs_check_method+set}" = set; then
4099  $as_echo_n "(cached) " >&6
4100else
4101  lt_cv_file_magic_cmd='$MAGIC_CMD'
4102lt_cv_file_magic_test_file=
4103lt_cv_deplibs_check_method='unknown'
4104# Need to set the preceding variable on all platforms that support
4105# interlibrary dependencies.
4106# 'none' -- dependencies not supported.
4107# `unknown' -- same as none, but documents that we really don't know.
4108# 'pass_all' -- all dependencies passed with no checks.
4109# 'test_compile' -- check by making test program.
4110# 'file_magic [[regex]]' -- check by looking for files in library path
4111# which responds to the $file_magic_cmd with a given extended regex.
4112# If you have `file' or equivalent on your system and you're not sure
4113# whether `pass_all' will *always* work, you probably want this one.
4114
4115case $host_os in
4116aix[4-9]*)
4117  lt_cv_deplibs_check_method=pass_all
4118  ;;
4119
4120beos*)
4121  lt_cv_deplibs_check_method=pass_all
4122  ;;
4123
4124bsdi[45]*)
4125  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4126  lt_cv_file_magic_cmd='/usr/bin/file -L'
4127  lt_cv_file_magic_test_file=/shlib/libc.so
4128  ;;
4129
4130cygwin*)
4131  # func_win32_libid is a shell function defined in ltmain.sh
4132  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4133  lt_cv_file_magic_cmd='func_win32_libid'
4134  ;;
4135
4136mingw* | pw32*)
4137  # Base MSYS/MinGW do not provide the 'file' command needed by
4138  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4139  # unless we find 'file', for example because we are cross-compiling.
4140  if ( file / ) >/dev/null 2>&1; then
4141    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4142    lt_cv_file_magic_cmd='func_win32_libid'
4143  else
4144    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4145    lt_cv_file_magic_cmd='$OBJDUMP -f'
4146  fi
4147  ;;
4148
4149cegcc)
4150  # use the weaker test based on 'objdump'. See mingw*.
4151  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4152  lt_cv_file_magic_cmd='$OBJDUMP -f'
4153  ;;
4154
4155darwin* | rhapsody*)
4156  lt_cv_deplibs_check_method=pass_all
4157  ;;
4158
4159freebsd* | dragonfly*)
4160  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4161    case $host_cpu in
4162    i*86 )
4163      # Not sure whether the presence of OpenBSD here was a mistake.
4164      # Let's accept both of them until this is cleared up.
4165      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4166      lt_cv_file_magic_cmd=/usr/bin/file
4167      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4168      ;;
4169    esac
4170  else
4171    lt_cv_deplibs_check_method=pass_all
4172  fi
4173  ;;
4174
4175gnu*)
4176  lt_cv_deplibs_check_method=pass_all
4177  ;;
4178
4179hpux10.20* | hpux11*)
4180  lt_cv_file_magic_cmd=/usr/bin/file
4181  case $host_cpu in
4182  ia64*)
4183    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4184    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4185    ;;
4186  hppa*64*)
4187    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]'
4188    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4189    ;;
4190  *)
4191    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4192    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4193    ;;
4194  esac
4195  ;;
4196
4197interix[3-9]*)
4198  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4199  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4200  ;;
4201
4202irix5* | irix6* | nonstopux*)
4203  case $LD in
4204  *-32|*"-32 ") libmagic=32-bit;;
4205  *-n32|*"-n32 ") libmagic=N32;;
4206  *-64|*"-64 ") libmagic=64-bit;;
4207  *) libmagic=never-match;;
4208  esac
4209  lt_cv_deplibs_check_method=pass_all
4210  ;;
4211
4212# This must be Linux ELF.
4213linux* | k*bsd*-gnu)
4214  lt_cv_deplibs_check_method=pass_all
4215  ;;
4216
4217netbsd*)
4218  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4219    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4220  else
4221    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4222  fi
4223  ;;
4224
4225newos6*)
4226  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4227  lt_cv_file_magic_cmd=/usr/bin/file
4228  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4229  ;;
4230
4231*nto* | *qnx*)
4232  lt_cv_deplibs_check_method=pass_all
4233  ;;
4234
4235openbsd*)
4236  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4237    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4238  else
4239    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4240  fi
4241  ;;
4242
4243osf3* | osf4* | osf5*)
4244  lt_cv_deplibs_check_method=pass_all
4245  ;;
4246
4247rdos*)
4248  lt_cv_deplibs_check_method=pass_all
4249  ;;
4250
4251solaris*)
4252  lt_cv_deplibs_check_method=pass_all
4253  ;;
4254
4255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4256  lt_cv_deplibs_check_method=pass_all
4257  ;;
4258
4259sysv4 | sysv4.3*)
4260  case $host_vendor in
4261  motorola)
4262    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]'
4263    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4264    ;;
4265  ncr)
4266    lt_cv_deplibs_check_method=pass_all
4267    ;;
4268  sequent)
4269    lt_cv_file_magic_cmd='/bin/file'
4270    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4271    ;;
4272  sni)
4273    lt_cv_file_magic_cmd='/bin/file'
4274    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4275    lt_cv_file_magic_test_file=/lib/libc.so
4276    ;;
4277  siemens)
4278    lt_cv_deplibs_check_method=pass_all
4279    ;;
4280  pc)
4281    lt_cv_deplibs_check_method=pass_all
4282    ;;
4283  esac
4284  ;;
4285
4286tpf*)
4287  lt_cv_deplibs_check_method=pass_all
4288  ;;
4289esac
4290
4291fi
4292{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4293$as_echo "$lt_cv_deplibs_check_method" >&6; }
4294file_magic_cmd=$lt_cv_file_magic_cmd
4295deplibs_check_method=$lt_cv_deplibs_check_method
4296test -z "$deplibs_check_method" && deplibs_check_method=unknown
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309if test -n "$ac_tool_prefix"; then
4310  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4311set dummy ${ac_tool_prefix}ar; ac_word=$2
4312{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4313$as_echo_n "checking for $ac_word... " >&6; }
4314if test "${ac_cv_prog_AR+set}" = set; then
4315  $as_echo_n "(cached) " >&6
4316else
4317  if test -n "$AR"; then
4318  ac_cv_prog_AR="$AR" # Let the user override the test.
4319else
4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323  IFS=$as_save_IFS
4324  test -z "$as_dir" && as_dir=.
4325  for ac_exec_ext in '' $ac_executable_extensions; do
4326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4327    ac_cv_prog_AR="${ac_tool_prefix}ar"
4328    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329    break 2
4330  fi
4331done
4332done
4333IFS=$as_save_IFS
4334
4335fi
4336fi
4337AR=$ac_cv_prog_AR
4338if test -n "$AR"; then
4339  { $as_echo "$as_me:$LINENO: result: $AR" >&5
4340$as_echo "$AR" >&6; }
4341else
4342  { $as_echo "$as_me:$LINENO: result: no" >&5
4343$as_echo "no" >&6; }
4344fi
4345
4346
4347fi
4348if test -z "$ac_cv_prog_AR"; then
4349  ac_ct_AR=$AR
4350  # Extract the first word of "ar", so it can be a program name with args.
4351set dummy ar; ac_word=$2
4352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4353$as_echo_n "checking for $ac_word... " >&6; }
4354if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4355  $as_echo_n "(cached) " >&6
4356else
4357  if test -n "$ac_ct_AR"; then
4358  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363  IFS=$as_save_IFS
4364  test -z "$as_dir" && as_dir=.
4365  for ac_exec_ext in '' $ac_executable_extensions; do
4366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367    ac_cv_prog_ac_ct_AR="ar"
4368    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369    break 2
4370  fi
4371done
4372done
4373IFS=$as_save_IFS
4374
4375fi
4376fi
4377ac_ct_AR=$ac_cv_prog_ac_ct_AR
4378if test -n "$ac_ct_AR"; then
4379  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4380$as_echo "$ac_ct_AR" >&6; }
4381else
4382  { $as_echo "$as_me:$LINENO: result: no" >&5
4383$as_echo "no" >&6; }
4384fi
4385
4386  if test "x$ac_ct_AR" = x; then
4387    AR="false"
4388  else
4389    case $cross_compiling:$ac_tool_warned in
4390yes:)
4391{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4392whose name does not start with the host triplet.  If you think this
4393configuration is useful to you, please write to autoconf@gnu.org." >&5
4394$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4395whose name does not start with the host triplet.  If you think this
4396configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4397ac_tool_warned=yes ;;
4398esac
4399    AR=$ac_ct_AR
4400  fi
4401else
4402  AR="$ac_cv_prog_AR"
4403fi
4404
4405test -z "$AR" && AR=ar
4406test -z "$AR_FLAGS" && AR_FLAGS=cru
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418if test -n "$ac_tool_prefix"; then
4419  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4420set dummy ${ac_tool_prefix}strip; ac_word=$2
4421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4422$as_echo_n "checking for $ac_word... " >&6; }
4423if test "${ac_cv_prog_STRIP+set}" = set; then
4424  $as_echo_n "(cached) " >&6
4425else
4426  if test -n "$STRIP"; then
4427  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4428else
4429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432  IFS=$as_save_IFS
4433  test -z "$as_dir" && as_dir=.
4434  for ac_exec_ext in '' $ac_executable_extensions; do
4435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4437    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438    break 2
4439  fi
4440done
4441done
4442IFS=$as_save_IFS
4443
4444fi
4445fi
4446STRIP=$ac_cv_prog_STRIP
4447if test -n "$STRIP"; then
4448  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4449$as_echo "$STRIP" >&6; }
4450else
4451  { $as_echo "$as_me:$LINENO: result: no" >&5
4452$as_echo "no" >&6; }
4453fi
4454
4455
4456fi
4457if test -z "$ac_cv_prog_STRIP"; then
4458  ac_ct_STRIP=$STRIP
4459  # Extract the first word of "strip", so it can be a program name with args.
4460set dummy strip; ac_word=$2
4461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4462$as_echo_n "checking for $ac_word... " >&6; }
4463if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4464  $as_echo_n "(cached) " >&6
4465else
4466  if test -n "$ac_ct_STRIP"; then
4467  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472  IFS=$as_save_IFS
4473  test -z "$as_dir" && as_dir=.
4474  for ac_exec_ext in '' $ac_executable_extensions; do
4475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4476    ac_cv_prog_ac_ct_STRIP="strip"
4477    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478    break 2
4479  fi
4480done
4481done
4482IFS=$as_save_IFS
4483
4484fi
4485fi
4486ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4487if test -n "$ac_ct_STRIP"; then
4488  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4489$as_echo "$ac_ct_STRIP" >&6; }
4490else
4491  { $as_echo "$as_me:$LINENO: result: no" >&5
4492$as_echo "no" >&6; }
4493fi
4494
4495  if test "x$ac_ct_STRIP" = x; then
4496    STRIP=":"
4497  else
4498    case $cross_compiling:$ac_tool_warned in
4499yes:)
4500{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4501whose name does not start with the host triplet.  If you think this
4502configuration is useful to you, please write to autoconf@gnu.org." >&5
4503$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4504whose name does not start with the host triplet.  If you think this
4505configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4506ac_tool_warned=yes ;;
4507esac
4508    STRIP=$ac_ct_STRIP
4509  fi
4510else
4511  STRIP="$ac_cv_prog_STRIP"
4512fi
4513
4514test -z "$STRIP" && STRIP=:
4515
4516
4517
4518
4519
4520
4521if test -n "$ac_tool_prefix"; then
4522  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4523set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4524{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4525$as_echo_n "checking for $ac_word... " >&6; }
4526if test "${ac_cv_prog_RANLIB+set}" = set; then
4527  $as_echo_n "(cached) " >&6
4528else
4529  if test -n "$RANLIB"; then
4530  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4531else
4532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533for as_dir in $PATH
4534do
4535  IFS=$as_save_IFS
4536  test -z "$as_dir" && as_dir=.
4537  for ac_exec_ext in '' $ac_executable_extensions; do
4538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4540    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541    break 2
4542  fi
4543done
4544done
4545IFS=$as_save_IFS
4546
4547fi
4548fi
4549RANLIB=$ac_cv_prog_RANLIB
4550if test -n "$RANLIB"; then
4551  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4552$as_echo "$RANLIB" >&6; }
4553else
4554  { $as_echo "$as_me:$LINENO: result: no" >&5
4555$as_echo "no" >&6; }
4556fi
4557
4558
4559fi
4560if test -z "$ac_cv_prog_RANLIB"; then
4561  ac_ct_RANLIB=$RANLIB
4562  # Extract the first word of "ranlib", so it can be a program name with args.
4563set dummy ranlib; ac_word=$2
4564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4565$as_echo_n "checking for $ac_word... " >&6; }
4566if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4567  $as_echo_n "(cached) " >&6
4568else
4569  if test -n "$ac_ct_RANLIB"; then
4570  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575  IFS=$as_save_IFS
4576  test -z "$as_dir" && as_dir=.
4577  for ac_exec_ext in '' $ac_executable_extensions; do
4578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579    ac_cv_prog_ac_ct_RANLIB="ranlib"
4580    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581    break 2
4582  fi
4583done
4584done
4585IFS=$as_save_IFS
4586
4587fi
4588fi
4589ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4590if test -n "$ac_ct_RANLIB"; then
4591  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4592$as_echo "$ac_ct_RANLIB" >&6; }
4593else
4594  { $as_echo "$as_me:$LINENO: result: no" >&5
4595$as_echo "no" >&6; }
4596fi
4597
4598  if test "x$ac_ct_RANLIB" = x; then
4599    RANLIB=":"
4600  else
4601    case $cross_compiling:$ac_tool_warned in
4602yes:)
4603{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4604whose name does not start with the host triplet.  If you think this
4605configuration is useful to you, please write to autoconf@gnu.org." >&5
4606$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4607whose name does not start with the host triplet.  If you think this
4608configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4609ac_tool_warned=yes ;;
4610esac
4611    RANLIB=$ac_ct_RANLIB
4612  fi
4613else
4614  RANLIB="$ac_cv_prog_RANLIB"
4615fi
4616
4617test -z "$RANLIB" && RANLIB=:
4618
4619
4620
4621
4622
4623
4624# Determine commands to create old-style static archives.
4625old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4626old_postinstall_cmds='chmod 644 $oldlib'
4627old_postuninstall_cmds=
4628
4629if test -n "$RANLIB"; then
4630  case $host_os in
4631  openbsd*)
4632    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4633    ;;
4634  *)
4635    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4636    ;;
4637  esac
4638  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4639fi
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674# If no C compiler was specified, use CC.
4675LTCC=${LTCC-"$CC"}
4676
4677# If no C compiler flags were specified, use CFLAGS.
4678LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4679
4680# Allow CC to be a program name with arguments.
4681compiler=$CC
4682
4683
4684# Check for command to grab the raw symbol name followed by C symbol from nm.
4685{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4686$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4687if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4688  $as_echo_n "(cached) " >&6
4689else
4690
4691# These are sane defaults that work on at least a few old systems.
4692# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4693
4694# Character class describing NM global symbol codes.
4695symcode='[BCDEGRST]'
4696
4697# Regexp to match symbols that can be accessed directly from C.
4698sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4699
4700# Define system-specific variables.
4701case $host_os in
4702aix*)
4703  symcode='[BCDT]'
4704  ;;
4705cygwin* | mingw* | pw32* | cegcc*)
4706  symcode='[ABCDGISTW]'
4707  ;;
4708hpux*)
4709  if test "$host_cpu" = ia64; then
4710    symcode='[ABCDEGRST]'
4711  fi
4712  ;;
4713irix* | nonstopux*)
4714  symcode='[BCDEGRST]'
4715  ;;
4716osf*)
4717  symcode='[BCDEGQRST]'
4718  ;;
4719solaris*)
4720  symcode='[BDRT]'
4721  ;;
4722sco3.2v5*)
4723  symcode='[DT]'
4724  ;;
4725sysv4.2uw2*)
4726  symcode='[DT]'
4727  ;;
4728sysv5* | sco5v6* | unixware* | OpenUNIX*)
4729  symcode='[ABDT]'
4730  ;;
4731sysv4)
4732  symcode='[DFNSTU]'
4733  ;;
4734esac
4735
4736# If we're using GNU nm, then use its standard symbol codes.
4737case `$NM -V 2>&1` in
4738*GNU* | *'with BFD'*)
4739  symcode='[ABCDGIRSTW]' ;;
4740esac
4741
4742# Transform an extracted symbol line into a proper C declaration.
4743# Some systems (esp. on ia64) link data and code symbols differently,
4744# so use this general approach.
4745lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4746
4747# Transform an extracted symbol line into symbol name and symbol address
4748lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4749lt_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'"
4750
4751# Handle CRLF in mingw tool chain
4752opt_cr=
4753case $build_os in
4754mingw*)
4755  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4756  ;;
4757esac
4758
4759# Try without a prefix underscore, then with it.
4760for ac_symprfx in "" "_"; do
4761
4762  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4763  symxfrm="\\1 $ac_symprfx\\2 \\2"
4764
4765  # Write the raw and C identifiers.
4766  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4767    # Fake it for dumpbin and say T for any non-static function
4768    # and D for any global variable.
4769    # Also find C++ and __fastcall symbols from MSVC++,
4770    # which start with @ or ?.
4771    lt_cv_sys_global_symbol_pipe="$AWK '"\
4772"     {last_section=section; section=\$ 3};"\
4773"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4774"     \$ 0!~/External *\|/{next};"\
4775"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4776"     {if(hide[section]) next};"\
4777"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4778"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4779"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4780"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4781"     ' prfx=^$ac_symprfx"
4782  else
4783    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4784  fi
4785
4786  # Check to see that the pipe works correctly.
4787  pipe_works=no
4788
4789  rm -f conftest*
4790  cat > conftest.$ac_ext <<_LT_EOF
4791#ifdef __cplusplus
4792extern "C" {
4793#endif
4794char nm_test_var;
4795void nm_test_func(void);
4796void nm_test_func(void){}
4797#ifdef __cplusplus
4798}
4799#endif
4800int main(){nm_test_var='a';nm_test_func();return(0);}
4801_LT_EOF
4802
4803  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804  (eval $ac_compile) 2>&5
4805  ac_status=$?
4806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807  (exit $ac_status); }; then
4808    # Now try to grab the symbols.
4809    nlist=conftest.nm
4810    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4811  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4812  ac_status=$?
4813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814  (exit $ac_status); } && test -s "$nlist"; then
4815      # Try sorting and uniquifying the output.
4816      if sort "$nlist" | uniq > "$nlist"T; then
4817	mv -f "$nlist"T "$nlist"
4818      else
4819	rm -f "$nlist"T
4820      fi
4821
4822      # Make sure that we snagged all the symbols we need.
4823      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4824	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4825	  cat <<_LT_EOF > conftest.$ac_ext
4826#ifdef __cplusplus
4827extern "C" {
4828#endif
4829
4830_LT_EOF
4831	  # Now generate the symbol file.
4832	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4833
4834	  cat <<_LT_EOF >> conftest.$ac_ext
4835
4836/* The mapping between symbol names and symbols.  */
4837const struct {
4838  const char *name;
4839  void       *address;
4840}
4841lt__PROGRAM__LTX_preloaded_symbols[] =
4842{
4843  { "@PROGRAM@", (void *) 0 },
4844_LT_EOF
4845	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4846	  cat <<\_LT_EOF >> conftest.$ac_ext
4847  {0, (void *) 0}
4848};
4849
4850/* This works around a problem in FreeBSD linker */
4851#ifdef FREEBSD_WORKAROUND
4852static const void *lt_preloaded_setup() {
4853  return lt__PROGRAM__LTX_preloaded_symbols;
4854}
4855#endif
4856
4857#ifdef __cplusplus
4858}
4859#endif
4860_LT_EOF
4861	  # Now try linking the two files.
4862	  mv conftest.$ac_objext conftstm.$ac_objext
4863	  lt_save_LIBS="$LIBS"
4864	  lt_save_CFLAGS="$CFLAGS"
4865	  LIBS="conftstm.$ac_objext"
4866	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4867	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4868  (eval $ac_link) 2>&5
4869  ac_status=$?
4870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4872	    pipe_works=yes
4873	  fi
4874	  LIBS="$lt_save_LIBS"
4875	  CFLAGS="$lt_save_CFLAGS"
4876	else
4877	  echo "cannot find nm_test_func in $nlist" >&5
4878	fi
4879      else
4880	echo "cannot find nm_test_var in $nlist" >&5
4881      fi
4882    else
4883      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4884    fi
4885  else
4886    echo "$progname: failed program was:" >&5
4887    cat conftest.$ac_ext >&5
4888  fi
4889  rm -rf conftest* conftst*
4890
4891  # Do not use the global_symbol_pipe unless it works.
4892  if test "$pipe_works" = yes; then
4893    break
4894  else
4895    lt_cv_sys_global_symbol_pipe=
4896  fi
4897done
4898
4899fi
4900
4901if test -z "$lt_cv_sys_global_symbol_pipe"; then
4902  lt_cv_sys_global_symbol_to_cdecl=
4903fi
4904if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4905  { $as_echo "$as_me:$LINENO: result: failed" >&5
4906$as_echo "failed" >&6; }
4907else
4908  { $as_echo "$as_me:$LINENO: result: ok" >&5
4909$as_echo "ok" >&6; }
4910fi
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934# Check whether --enable-libtool-lock was given.
4935if test "${enable_libtool_lock+set}" = set; then
4936  enableval=$enable_libtool_lock;
4937fi
4938
4939test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4940
4941# Some flags need to be propagated to the compiler or linker for good
4942# libtool support.
4943case $host in
4944ia64-*-hpux*)
4945  # Find out which ABI we are using.
4946  echo 'int i;' > conftest.$ac_ext
4947  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948  (eval $ac_compile) 2>&5
4949  ac_status=$?
4950  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951  (exit $ac_status); }; then
4952    case `/usr/bin/file conftest.$ac_objext` in
4953      *ELF-32*)
4954	HPUX_IA64_MODE="32"
4955	;;
4956      *ELF-64*)
4957	HPUX_IA64_MODE="64"
4958	;;
4959    esac
4960  fi
4961  rm -rf conftest*
4962  ;;
4963*-*-irix6*)
4964  # Find out which ABI we are using.
4965  echo '#line 4965 "configure"' > conftest.$ac_ext
4966  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967  (eval $ac_compile) 2>&5
4968  ac_status=$?
4969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); }; then
4971    if test "$lt_cv_prog_gnu_ld" = yes; then
4972      case `/usr/bin/file conftest.$ac_objext` in
4973	*32-bit*)
4974	  LD="${LD-ld} -melf32bsmip"
4975	  ;;
4976	*N32*)
4977	  LD="${LD-ld} -melf32bmipn32"
4978	  ;;
4979	*64-bit*)
4980	  LD="${LD-ld} -melf64bmip"
4981	;;
4982      esac
4983    else
4984      case `/usr/bin/file conftest.$ac_objext` in
4985	*32-bit*)
4986	  LD="${LD-ld} -32"
4987	  ;;
4988	*N32*)
4989	  LD="${LD-ld} -n32"
4990	  ;;
4991	*64-bit*)
4992	  LD="${LD-ld} -64"
4993	  ;;
4994      esac
4995    fi
4996  fi
4997  rm -rf conftest*
4998  ;;
4999
5000x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5001s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5002  # Find out which ABI we are using.
5003  echo 'int i;' > conftest.$ac_ext
5004  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005  (eval $ac_compile) 2>&5
5006  ac_status=$?
5007  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); }; then
5009    case `/usr/bin/file conftest.o` in
5010      *32-bit*)
5011	case $host in
5012	  x86_64-*kfreebsd*-gnu)
5013	    LD="${LD-ld} -m elf_i386_fbsd"
5014	    ;;
5015	  x86_64-*linux*)
5016	    LD="${LD-ld} -m elf_i386"
5017	    ;;
5018	  ppc64-*linux*|powerpc64-*linux*)
5019	    LD="${LD-ld} -m elf32ppclinux"
5020	    ;;
5021	  s390x-*linux*)
5022	    LD="${LD-ld} -m elf_s390"
5023	    ;;
5024	  sparc64-*linux*)
5025	    LD="${LD-ld} -m elf32_sparc"
5026	    ;;
5027	esac
5028	;;
5029      *64-bit*)
5030	case $host in
5031	  x86_64-*kfreebsd*-gnu)
5032	    LD="${LD-ld} -m elf_x86_64_fbsd"
5033	    ;;
5034	  x86_64-*linux*)
5035	    LD="${LD-ld} -m elf_x86_64"
5036	    ;;
5037	  ppc*-*linux*|powerpc*-*linux*)
5038	    LD="${LD-ld} -m elf64ppc"
5039	    ;;
5040	  s390*-*linux*|s390*-*tpf*)
5041	    LD="${LD-ld} -m elf64_s390"
5042	    ;;
5043	  sparc*-*linux*)
5044	    LD="${LD-ld} -m elf64_sparc"
5045	    ;;
5046	esac
5047	;;
5048    esac
5049  fi
5050  rm -rf conftest*
5051  ;;
5052
5053*-*-sco3.2v5*)
5054  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5055  SAVE_CFLAGS="$CFLAGS"
5056  CFLAGS="$CFLAGS -belf"
5057  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5058$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5059if test "${lt_cv_cc_needs_belf+set}" = set; then
5060  $as_echo_n "(cached) " >&6
5061else
5062  ac_ext=c
5063ac_cpp='$CPP $CPPFLAGS'
5064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066ac_compiler_gnu=$ac_cv_c_compiler_gnu
5067
5068     cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h.  */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h.  */
5074
5075int
5076main ()
5077{
5078
5079  ;
5080  return 0;
5081}
5082_ACEOF
5083rm -f conftest.$ac_objext conftest$ac_exeext
5084if { (ac_try="$ac_link"
5085case "(($ac_try" in
5086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087  *) ac_try_echo=$ac_try;;
5088esac
5089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5090$as_echo "$ac_try_echo") >&5
5091  (eval "$ac_link") 2>conftest.er1
5092  ac_status=$?
5093  grep -v '^ *+' conftest.er1 >conftest.err
5094  rm -f conftest.er1
5095  cat conftest.err >&5
5096  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097  (exit $ac_status); } && {
5098	 test -z "$ac_c_werror_flag" ||
5099	 test ! -s conftest.err
5100       } && test -s conftest$ac_exeext && {
5101	 test "$cross_compiling" = yes ||
5102	 $as_test_x conftest$ac_exeext
5103       }; then
5104  lt_cv_cc_needs_belf=yes
5105else
5106  $as_echo "$as_me: failed program was:" >&5
5107sed 's/^/| /' conftest.$ac_ext >&5
5108
5109	lt_cv_cc_needs_belf=no
5110fi
5111
5112rm -rf conftest.dSYM
5113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5114      conftest$ac_exeext conftest.$ac_ext
5115     ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
5121fi
5122{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5123$as_echo "$lt_cv_cc_needs_belf" >&6; }
5124  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5125    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5126    CFLAGS="$SAVE_CFLAGS"
5127  fi
5128  ;;
5129sparc*-*solaris*)
5130  # Find out which ABI we are using.
5131  echo 'int i;' > conftest.$ac_ext
5132  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133  (eval $ac_compile) 2>&5
5134  ac_status=$?
5135  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); }; then
5137    case `/usr/bin/file conftest.o` in
5138    *64-bit*)
5139      case $lt_cv_prog_gnu_ld in
5140      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5141      *)
5142	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5143	  LD="${LD-ld} -64"
5144	fi
5145	;;
5146      esac
5147      ;;
5148    esac
5149  fi
5150  rm -rf conftest*
5151  ;;
5152esac
5153
5154need_locks="$enable_libtool_lock"
5155
5156
5157  case $host_os in
5158    rhapsody* | darwin*)
5159    if test -n "$ac_tool_prefix"; then
5160  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5161set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5162{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163$as_echo_n "checking for $ac_word... " >&6; }
5164if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5165  $as_echo_n "(cached) " >&6
5166else
5167  if test -n "$DSYMUTIL"; then
5168  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5169else
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173  IFS=$as_save_IFS
5174  test -z "$as_dir" && as_dir=.
5175  for ac_exec_ext in '' $ac_executable_extensions; do
5176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5178    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179    break 2
5180  fi
5181done
5182done
5183IFS=$as_save_IFS
5184
5185fi
5186fi
5187DSYMUTIL=$ac_cv_prog_DSYMUTIL
5188if test -n "$DSYMUTIL"; then
5189  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5190$as_echo "$DSYMUTIL" >&6; }
5191else
5192  { $as_echo "$as_me:$LINENO: result: no" >&5
5193$as_echo "no" >&6; }
5194fi
5195
5196
5197fi
5198if test -z "$ac_cv_prog_DSYMUTIL"; then
5199  ac_ct_DSYMUTIL=$DSYMUTIL
5200  # Extract the first word of "dsymutil", so it can be a program name with args.
5201set dummy dsymutil; ac_word=$2
5202{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5203$as_echo_n "checking for $ac_word... " >&6; }
5204if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5205  $as_echo_n "(cached) " >&6
5206else
5207  if test -n "$ac_ct_DSYMUTIL"; then
5208  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213  IFS=$as_save_IFS
5214  test -z "$as_dir" && as_dir=.
5215  for ac_exec_ext in '' $ac_executable_extensions; do
5216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5218    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219    break 2
5220  fi
5221done
5222done
5223IFS=$as_save_IFS
5224
5225fi
5226fi
5227ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5228if test -n "$ac_ct_DSYMUTIL"; then
5229  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5230$as_echo "$ac_ct_DSYMUTIL" >&6; }
5231else
5232  { $as_echo "$as_me:$LINENO: result: no" >&5
5233$as_echo "no" >&6; }
5234fi
5235
5236  if test "x$ac_ct_DSYMUTIL" = x; then
5237    DSYMUTIL=":"
5238  else
5239    case $cross_compiling:$ac_tool_warned in
5240yes:)
5241{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5242whose name does not start with the host triplet.  If you think this
5243configuration is useful to you, please write to autoconf@gnu.org." >&5
5244$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5245whose name does not start with the host triplet.  If you think this
5246configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5247ac_tool_warned=yes ;;
5248esac
5249    DSYMUTIL=$ac_ct_DSYMUTIL
5250  fi
5251else
5252  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5253fi
5254
5255    if test -n "$ac_tool_prefix"; then
5256  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5257set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5258{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5259$as_echo_n "checking for $ac_word... " >&6; }
5260if test "${ac_cv_prog_NMEDIT+set}" = set; then
5261  $as_echo_n "(cached) " >&6
5262else
5263  if test -n "$NMEDIT"; then
5264  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269  IFS=$as_save_IFS
5270  test -z "$as_dir" && as_dir=.
5271  for ac_exec_ext in '' $ac_executable_extensions; do
5272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5274    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275    break 2
5276  fi
5277done
5278done
5279IFS=$as_save_IFS
5280
5281fi
5282fi
5283NMEDIT=$ac_cv_prog_NMEDIT
5284if test -n "$NMEDIT"; then
5285  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5286$as_echo "$NMEDIT" >&6; }
5287else
5288  { $as_echo "$as_me:$LINENO: result: no" >&5
5289$as_echo "no" >&6; }
5290fi
5291
5292
5293fi
5294if test -z "$ac_cv_prog_NMEDIT"; then
5295  ac_ct_NMEDIT=$NMEDIT
5296  # Extract the first word of "nmedit", so it can be a program name with args.
5297set dummy nmedit; ac_word=$2
5298{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5299$as_echo_n "checking for $ac_word... " >&6; }
5300if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5301  $as_echo_n "(cached) " >&6
5302else
5303  if test -n "$ac_ct_NMEDIT"; then
5304  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309  IFS=$as_save_IFS
5310  test -z "$as_dir" && as_dir=.
5311  for ac_exec_ext in '' $ac_executable_extensions; do
5312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5314    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315    break 2
5316  fi
5317done
5318done
5319IFS=$as_save_IFS
5320
5321fi
5322fi
5323ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5324if test -n "$ac_ct_NMEDIT"; then
5325  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5326$as_echo "$ac_ct_NMEDIT" >&6; }
5327else
5328  { $as_echo "$as_me:$LINENO: result: no" >&5
5329$as_echo "no" >&6; }
5330fi
5331
5332  if test "x$ac_ct_NMEDIT" = x; then
5333    NMEDIT=":"
5334  else
5335    case $cross_compiling:$ac_tool_warned in
5336yes:)
5337{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5338whose name does not start with the host triplet.  If you think this
5339configuration is useful to you, please write to autoconf@gnu.org." >&5
5340$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5341whose name does not start with the host triplet.  If you think this
5342configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5343ac_tool_warned=yes ;;
5344esac
5345    NMEDIT=$ac_ct_NMEDIT
5346  fi
5347else
5348  NMEDIT="$ac_cv_prog_NMEDIT"
5349fi
5350
5351    if test -n "$ac_tool_prefix"; then
5352  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5353set dummy ${ac_tool_prefix}lipo; ac_word=$2
5354{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5355$as_echo_n "checking for $ac_word... " >&6; }
5356if test "${ac_cv_prog_LIPO+set}" = set; then
5357  $as_echo_n "(cached) " >&6
5358else
5359  if test -n "$LIPO"; then
5360  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5361else
5362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH
5364do
5365  IFS=$as_save_IFS
5366  test -z "$as_dir" && as_dir=.
5367  for ac_exec_ext in '' $ac_executable_extensions; do
5368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5370    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371    break 2
5372  fi
5373done
5374done
5375IFS=$as_save_IFS
5376
5377fi
5378fi
5379LIPO=$ac_cv_prog_LIPO
5380if test -n "$LIPO"; then
5381  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5382$as_echo "$LIPO" >&6; }
5383else
5384  { $as_echo "$as_me:$LINENO: result: no" >&5
5385$as_echo "no" >&6; }
5386fi
5387
5388
5389fi
5390if test -z "$ac_cv_prog_LIPO"; then
5391  ac_ct_LIPO=$LIPO
5392  # Extract the first word of "lipo", so it can be a program name with args.
5393set dummy lipo; ac_word=$2
5394{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5395$as_echo_n "checking for $ac_word... " >&6; }
5396if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5397  $as_echo_n "(cached) " >&6
5398else
5399  if test -n "$ac_ct_LIPO"; then
5400  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405  IFS=$as_save_IFS
5406  test -z "$as_dir" && as_dir=.
5407  for ac_exec_ext in '' $ac_executable_extensions; do
5408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409    ac_cv_prog_ac_ct_LIPO="lipo"
5410    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411    break 2
5412  fi
5413done
5414done
5415IFS=$as_save_IFS
5416
5417fi
5418fi
5419ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5420if test -n "$ac_ct_LIPO"; then
5421  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5422$as_echo "$ac_ct_LIPO" >&6; }
5423else
5424  { $as_echo "$as_me:$LINENO: result: no" >&5
5425$as_echo "no" >&6; }
5426fi
5427
5428  if test "x$ac_ct_LIPO" = x; then
5429    LIPO=":"
5430  else
5431    case $cross_compiling:$ac_tool_warned in
5432yes:)
5433{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5434whose name does not start with the host triplet.  If you think this
5435configuration is useful to you, please write to autoconf@gnu.org." >&5
5436$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5437whose name does not start with the host triplet.  If you think this
5438configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5439ac_tool_warned=yes ;;
5440esac
5441    LIPO=$ac_ct_LIPO
5442  fi
5443else
5444  LIPO="$ac_cv_prog_LIPO"
5445fi
5446
5447    if test -n "$ac_tool_prefix"; then
5448  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5449set dummy ${ac_tool_prefix}otool; ac_word=$2
5450{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5451$as_echo_n "checking for $ac_word... " >&6; }
5452if test "${ac_cv_prog_OTOOL+set}" = set; then
5453  $as_echo_n "(cached) " >&6
5454else
5455  if test -n "$OTOOL"; then
5456  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461  IFS=$as_save_IFS
5462  test -z "$as_dir" && as_dir=.
5463  for ac_exec_ext in '' $ac_executable_extensions; do
5464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5466    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467    break 2
5468  fi
5469done
5470done
5471IFS=$as_save_IFS
5472
5473fi
5474fi
5475OTOOL=$ac_cv_prog_OTOOL
5476if test -n "$OTOOL"; then
5477  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5478$as_echo "$OTOOL" >&6; }
5479else
5480  { $as_echo "$as_me:$LINENO: result: no" >&5
5481$as_echo "no" >&6; }
5482fi
5483
5484
5485fi
5486if test -z "$ac_cv_prog_OTOOL"; then
5487  ac_ct_OTOOL=$OTOOL
5488  # Extract the first word of "otool", so it can be a program name with args.
5489set dummy otool; ac_word=$2
5490{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
5492if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5493  $as_echo_n "(cached) " >&6
5494else
5495  if test -n "$ac_ct_OTOOL"; then
5496  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501  IFS=$as_save_IFS
5502  test -z "$as_dir" && as_dir=.
5503  for ac_exec_ext in '' $ac_executable_extensions; do
5504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505    ac_cv_prog_ac_ct_OTOOL="otool"
5506    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507    break 2
5508  fi
5509done
5510done
5511IFS=$as_save_IFS
5512
5513fi
5514fi
5515ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5516if test -n "$ac_ct_OTOOL"; then
5517  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5518$as_echo "$ac_ct_OTOOL" >&6; }
5519else
5520  { $as_echo "$as_me:$LINENO: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523
5524  if test "x$ac_ct_OTOOL" = x; then
5525    OTOOL=":"
5526  else
5527    case $cross_compiling:$ac_tool_warned in
5528yes:)
5529{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5530whose name does not start with the host triplet.  If you think this
5531configuration is useful to you, please write to autoconf@gnu.org." >&5
5532$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5533whose name does not start with the host triplet.  If you think this
5534configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5535ac_tool_warned=yes ;;
5536esac
5537    OTOOL=$ac_ct_OTOOL
5538  fi
5539else
5540  OTOOL="$ac_cv_prog_OTOOL"
5541fi
5542
5543    if test -n "$ac_tool_prefix"; then
5544  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5545set dummy ${ac_tool_prefix}otool64; ac_word=$2
5546{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5547$as_echo_n "checking for $ac_word... " >&6; }
5548if test "${ac_cv_prog_OTOOL64+set}" = set; then
5549  $as_echo_n "(cached) " >&6
5550else
5551  if test -n "$OTOOL64"; then
5552  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557  IFS=$as_save_IFS
5558  test -z "$as_dir" && as_dir=.
5559  for ac_exec_ext in '' $ac_executable_extensions; do
5560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5562    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563    break 2
5564  fi
5565done
5566done
5567IFS=$as_save_IFS
5568
5569fi
5570fi
5571OTOOL64=$ac_cv_prog_OTOOL64
5572if test -n "$OTOOL64"; then
5573  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5574$as_echo "$OTOOL64" >&6; }
5575else
5576  { $as_echo "$as_me:$LINENO: result: no" >&5
5577$as_echo "no" >&6; }
5578fi
5579
5580
5581fi
5582if test -z "$ac_cv_prog_OTOOL64"; then
5583  ac_ct_OTOOL64=$OTOOL64
5584  # Extract the first word of "otool64", so it can be a program name with args.
5585set dummy otool64; ac_word=$2
5586{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5587$as_echo_n "checking for $ac_word... " >&6; }
5588if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5589  $as_echo_n "(cached) " >&6
5590else
5591  if test -n "$ac_ct_OTOOL64"; then
5592  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5593else
5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595for as_dir in $PATH
5596do
5597  IFS=$as_save_IFS
5598  test -z "$as_dir" && as_dir=.
5599  for ac_exec_ext in '' $ac_executable_extensions; do
5600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5601    ac_cv_prog_ac_ct_OTOOL64="otool64"
5602    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5603    break 2
5604  fi
5605done
5606done
5607IFS=$as_save_IFS
5608
5609fi
5610fi
5611ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5612if test -n "$ac_ct_OTOOL64"; then
5613  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5614$as_echo "$ac_ct_OTOOL64" >&6; }
5615else
5616  { $as_echo "$as_me:$LINENO: result: no" >&5
5617$as_echo "no" >&6; }
5618fi
5619
5620  if test "x$ac_ct_OTOOL64" = x; then
5621    OTOOL64=":"
5622  else
5623    case $cross_compiling:$ac_tool_warned in
5624yes:)
5625{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5626whose name does not start with the host triplet.  If you think this
5627configuration is useful to you, please write to autoconf@gnu.org." >&5
5628$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5629whose name does not start with the host triplet.  If you think this
5630configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5631ac_tool_warned=yes ;;
5632esac
5633    OTOOL64=$ac_ct_OTOOL64
5634  fi
5635else
5636  OTOOL64="$ac_cv_prog_OTOOL64"
5637fi
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5666$as_echo_n "checking for -single_module linker flag... " >&6; }
5667if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5668  $as_echo_n "(cached) " >&6
5669else
5670  lt_cv_apple_cc_single_mod=no
5671      if test -z "${LT_MULTI_MODULE}"; then
5672	# By default we will add the -single_module flag. You can override
5673	# by either setting the environment variable LT_MULTI_MODULE
5674	# non-empty at configure time, or by adding -multi_module to the
5675	# link flags.
5676	rm -rf libconftest.dylib*
5677	echo "int foo(void){return 1;}" > conftest.c
5678	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5679-dynamiclib -Wl,-single_module conftest.c" >&5
5680	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5681	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5682        _lt_result=$?
5683	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5684	  lt_cv_apple_cc_single_mod=yes
5685	else
5686	  cat conftest.err >&5
5687	fi
5688	rm -rf libconftest.dylib*
5689	rm -f conftest.*
5690      fi
5691fi
5692{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5693$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5694    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5695$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5696if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5697  $as_echo_n "(cached) " >&6
5698else
5699  lt_cv_ld_exported_symbols_list=no
5700      save_LDFLAGS=$LDFLAGS
5701      echo "_main" > conftest.sym
5702      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5703      cat >conftest.$ac_ext <<_ACEOF
5704/* confdefs.h.  */
5705_ACEOF
5706cat confdefs.h >>conftest.$ac_ext
5707cat >>conftest.$ac_ext <<_ACEOF
5708/* end confdefs.h.  */
5709
5710int
5711main ()
5712{
5713
5714  ;
5715  return 0;
5716}
5717_ACEOF
5718rm -f conftest.$ac_objext conftest$ac_exeext
5719if { (ac_try="$ac_link"
5720case "(($ac_try" in
5721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722  *) ac_try_echo=$ac_try;;
5723esac
5724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725$as_echo "$ac_try_echo") >&5
5726  (eval "$ac_link") 2>conftest.er1
5727  ac_status=$?
5728  grep -v '^ *+' conftest.er1 >conftest.err
5729  rm -f conftest.er1
5730  cat conftest.err >&5
5731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732  (exit $ac_status); } && {
5733	 test -z "$ac_c_werror_flag" ||
5734	 test ! -s conftest.err
5735       } && test -s conftest$ac_exeext && {
5736	 test "$cross_compiling" = yes ||
5737	 $as_test_x conftest$ac_exeext
5738       }; then
5739  lt_cv_ld_exported_symbols_list=yes
5740else
5741  $as_echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
5744	lt_cv_ld_exported_symbols_list=no
5745fi
5746
5747rm -rf conftest.dSYM
5748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5749      conftest$ac_exeext conftest.$ac_ext
5750	LDFLAGS="$save_LDFLAGS"
5751
5752fi
5753{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5754$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5755    case $host_os in
5756    rhapsody* | darwin1.[012])
5757      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5758    darwin1.*)
5759      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5760    darwin*) # darwin 5.x on
5761      # if running on 10.5 or later, the deployment target defaults
5762      # to the OS version, if on x86, and 10.4, the deployment
5763      # target defaults to 10.4. Don't you love it?
5764      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5765	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5766	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5767	10.[012]*)
5768	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5769	10.*)
5770	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5771      esac
5772    ;;
5773  esac
5774    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5775      _lt_dar_single_mod='$single_module'
5776    fi
5777    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5778      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5779    else
5780      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5781    fi
5782    if test "$DSYMUTIL" != ":"; then
5783      _lt_dsymutil='~$DSYMUTIL $lib || :'
5784    else
5785      _lt_dsymutil=
5786    fi
5787    ;;
5788  esac
5789
5790ac_ext=c
5791ac_cpp='$CPP $CPPFLAGS'
5792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5796$as_echo_n "checking how to run the C preprocessor... " >&6; }
5797# On Suns, sometimes $CPP names a directory.
5798if test -n "$CPP" && test -d "$CPP"; then
5799  CPP=
5800fi
5801if test -z "$CPP"; then
5802  if test "${ac_cv_prog_CPP+set}" = set; then
5803  $as_echo_n "(cached) " >&6
5804else
5805      # Double quotes because CPP needs to be expanded
5806    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5807    do
5808      ac_preproc_ok=false
5809for ac_c_preproc_warn_flag in '' yes
5810do
5811  # Use a header file that comes with gcc, so configuring glibc
5812  # with a fresh cross-compiler works.
5813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814  # <limits.h> exists even on freestanding compilers.
5815  # On the NeXT, cc -E runs the code through the compiler's parser,
5816  # not just through cpp. "Syntax error" is here to catch this case.
5817  cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h.  */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h.  */
5823#ifdef __STDC__
5824# include <limits.h>
5825#else
5826# include <assert.h>
5827#endif
5828		     Syntax error
5829_ACEOF
5830if { (ac_try="$ac_cpp conftest.$ac_ext"
5831case "(($ac_try" in
5832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833  *) ac_try_echo=$ac_try;;
5834esac
5835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5836$as_echo "$ac_try_echo") >&5
5837  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5838  ac_status=$?
5839  grep -v '^ *+' conftest.er1 >conftest.err
5840  rm -f conftest.er1
5841  cat conftest.err >&5
5842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); } >/dev/null && {
5844	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5845	 test ! -s conftest.err
5846       }; then
5847  :
5848else
5849  $as_echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852  # Broken: fails on valid input.
5853continue
5854fi
5855
5856rm -f conftest.err conftest.$ac_ext
5857
5858  # OK, works on sane cases.  Now check whether nonexistent headers
5859  # can be detected and how.
5860  cat >conftest.$ac_ext <<_ACEOF
5861/* confdefs.h.  */
5862_ACEOF
5863cat confdefs.h >>conftest.$ac_ext
5864cat >>conftest.$ac_ext <<_ACEOF
5865/* end confdefs.h.  */
5866#include <ac_nonexistent.h>
5867_ACEOF
5868if { (ac_try="$ac_cpp conftest.$ac_ext"
5869case "(($ac_try" in
5870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871  *) ac_try_echo=$ac_try;;
5872esac
5873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5874$as_echo "$ac_try_echo") >&5
5875  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5876  ac_status=$?
5877  grep -v '^ *+' conftest.er1 >conftest.err
5878  rm -f conftest.er1
5879  cat conftest.err >&5
5880  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881  (exit $ac_status); } >/dev/null && {
5882	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5883	 test ! -s conftest.err
5884       }; then
5885  # Broken: success on invalid input.
5886continue
5887else
5888  $as_echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
5891  # Passes both tests.
5892ac_preproc_ok=:
5893break
5894fi
5895
5896rm -f conftest.err conftest.$ac_ext
5897
5898done
5899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900rm -f conftest.err conftest.$ac_ext
5901if $ac_preproc_ok; then
5902  break
5903fi
5904
5905    done
5906    ac_cv_prog_CPP=$CPP
5907
5908fi
5909  CPP=$ac_cv_prog_CPP
5910else
5911  ac_cv_prog_CPP=$CPP
5912fi
5913{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5914$as_echo "$CPP" >&6; }
5915ac_preproc_ok=false
5916for ac_c_preproc_warn_flag in '' yes
5917do
5918  # Use a header file that comes with gcc, so configuring glibc
5919  # with a fresh cross-compiler works.
5920  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921  # <limits.h> exists even on freestanding compilers.
5922  # On the NeXT, cc -E runs the code through the compiler's parser,
5923  # not just through cpp. "Syntax error" is here to catch this case.
5924  cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h.  */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h.  */
5930#ifdef __STDC__
5931# include <limits.h>
5932#else
5933# include <assert.h>
5934#endif
5935		     Syntax error
5936_ACEOF
5937if { (ac_try="$ac_cpp conftest.$ac_ext"
5938case "(($ac_try" in
5939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940  *) ac_try_echo=$ac_try;;
5941esac
5942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5943$as_echo "$ac_try_echo") >&5
5944  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945  ac_status=$?
5946  grep -v '^ *+' conftest.er1 >conftest.err
5947  rm -f conftest.er1
5948  cat conftest.err >&5
5949  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950  (exit $ac_status); } >/dev/null && {
5951	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5952	 test ! -s conftest.err
5953       }; then
5954  :
5955else
5956  $as_echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959  # Broken: fails on valid input.
5960continue
5961fi
5962
5963rm -f conftest.err conftest.$ac_ext
5964
5965  # OK, works on sane cases.  Now check whether nonexistent headers
5966  # can be detected and how.
5967  cat >conftest.$ac_ext <<_ACEOF
5968/* confdefs.h.  */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h.  */
5973#include <ac_nonexistent.h>
5974_ACEOF
5975if { (ac_try="$ac_cpp conftest.$ac_ext"
5976case "(($ac_try" in
5977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978  *) ac_try_echo=$ac_try;;
5979esac
5980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981$as_echo "$ac_try_echo") >&5
5982  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5983  ac_status=$?
5984  grep -v '^ *+' conftest.er1 >conftest.err
5985  rm -f conftest.er1
5986  cat conftest.err >&5
5987  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988  (exit $ac_status); } >/dev/null && {
5989	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5990	 test ! -s conftest.err
5991       }; then
5992  # Broken: success on invalid input.
5993continue
5994else
5995  $as_echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998  # Passes both tests.
5999ac_preproc_ok=:
6000break
6001fi
6002
6003rm -f conftest.err conftest.$ac_ext
6004
6005done
6006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6007rm -f conftest.err conftest.$ac_ext
6008if $ac_preproc_ok; then
6009  :
6010else
6011  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6012See \`config.log' for more details." >&5
6013$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6014See \`config.log' for more details." >&2;}
6015   { (exit 1); exit 1; }; }
6016fi
6017
6018ac_ext=c
6019ac_cpp='$CPP $CPPFLAGS'
6020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023
6024
6025{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6026$as_echo_n "checking for ANSI C header files... " >&6; }
6027if test "${ac_cv_header_stdc+set}" = set; then
6028  $as_echo_n "(cached) " >&6
6029else
6030  cat >conftest.$ac_ext <<_ACEOF
6031/* confdefs.h.  */
6032_ACEOF
6033cat confdefs.h >>conftest.$ac_ext
6034cat >>conftest.$ac_ext <<_ACEOF
6035/* end confdefs.h.  */
6036#include <stdlib.h>
6037#include <stdarg.h>
6038#include <string.h>
6039#include <float.h>
6040
6041int
6042main ()
6043{
6044
6045  ;
6046  return 0;
6047}
6048_ACEOF
6049rm -f conftest.$ac_objext
6050if { (ac_try="$ac_compile"
6051case "(($ac_try" in
6052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053  *) ac_try_echo=$ac_try;;
6054esac
6055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6056$as_echo "$ac_try_echo") >&5
6057  (eval "$ac_compile") 2>conftest.er1
6058  ac_status=$?
6059  grep -v '^ *+' conftest.er1 >conftest.err
6060  rm -f conftest.er1
6061  cat conftest.err >&5
6062  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063  (exit $ac_status); } && {
6064	 test -z "$ac_c_werror_flag" ||
6065	 test ! -s conftest.err
6066       } && test -s conftest.$ac_objext; then
6067  ac_cv_header_stdc=yes
6068else
6069  $as_echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072	ac_cv_header_stdc=no
6073fi
6074
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076
6077if test $ac_cv_header_stdc = yes; then
6078  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6079  cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h.  */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h.  */
6085#include <string.h>
6086
6087_ACEOF
6088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6089  $EGREP "memchr" >/dev/null 2>&1; then
6090  :
6091else
6092  ac_cv_header_stdc=no
6093fi
6094rm -f conftest*
6095
6096fi
6097
6098if test $ac_cv_header_stdc = yes; then
6099  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6100  cat >conftest.$ac_ext <<_ACEOF
6101/* confdefs.h.  */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h.  */
6106#include <stdlib.h>
6107
6108_ACEOF
6109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6110  $EGREP "free" >/dev/null 2>&1; then
6111  :
6112else
6113  ac_cv_header_stdc=no
6114fi
6115rm -f conftest*
6116
6117fi
6118
6119if test $ac_cv_header_stdc = yes; then
6120  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6121  if test "$cross_compiling" = yes; then
6122  :
6123else
6124  cat >conftest.$ac_ext <<_ACEOF
6125/* confdefs.h.  */
6126_ACEOF
6127cat confdefs.h >>conftest.$ac_ext
6128cat >>conftest.$ac_ext <<_ACEOF
6129/* end confdefs.h.  */
6130#include <ctype.h>
6131#include <stdlib.h>
6132#if ((' ' & 0x0FF) == 0x020)
6133# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6134# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6135#else
6136# define ISLOWER(c) \
6137		   (('a' <= (c) && (c) <= 'i') \
6138		     || ('j' <= (c) && (c) <= 'r') \
6139		     || ('s' <= (c) && (c) <= 'z'))
6140# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6141#endif
6142
6143#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6144int
6145main ()
6146{
6147  int i;
6148  for (i = 0; i < 256; i++)
6149    if (XOR (islower (i), ISLOWER (i))
6150	|| toupper (i) != TOUPPER (i))
6151      return 2;
6152  return 0;
6153}
6154_ACEOF
6155rm -f conftest$ac_exeext
6156if { (ac_try="$ac_link"
6157case "(($ac_try" in
6158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159  *) ac_try_echo=$ac_try;;
6160esac
6161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6162$as_echo "$ac_try_echo") >&5
6163  (eval "$ac_link") 2>&5
6164  ac_status=$?
6165  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6167  { (case "(($ac_try" in
6168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169  *) ac_try_echo=$ac_try;;
6170esac
6171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6172$as_echo "$ac_try_echo") >&5
6173  (eval "$ac_try") 2>&5
6174  ac_status=$?
6175  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176  (exit $ac_status); }; }; then
6177  :
6178else
6179  $as_echo "$as_me: program exited with status $ac_status" >&5
6180$as_echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183( exit $ac_status )
6184ac_cv_header_stdc=no
6185fi
6186rm -rf conftest.dSYM
6187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6188fi
6189
6190
6191fi
6192fi
6193{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6194$as_echo "$ac_cv_header_stdc" >&6; }
6195if test $ac_cv_header_stdc = yes; then
6196
6197cat >>confdefs.h <<\_ACEOF
6198#define STDC_HEADERS 1
6199_ACEOF
6200
6201fi
6202
6203# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6214		  inttypes.h stdint.h unistd.h
6215do
6216as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6218$as_echo_n "checking for $ac_header... " >&6; }
6219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6220  $as_echo_n "(cached) " >&6
6221else
6222  cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h.  */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h.  */
6228$ac_includes_default
6229
6230#include <$ac_header>
6231_ACEOF
6232rm -f conftest.$ac_objext
6233if { (ac_try="$ac_compile"
6234case "(($ac_try" in
6235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236  *) ac_try_echo=$ac_try;;
6237esac
6238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6239$as_echo "$ac_try_echo") >&5
6240  (eval "$ac_compile") 2>conftest.er1
6241  ac_status=$?
6242  grep -v '^ *+' conftest.er1 >conftest.err
6243  rm -f conftest.er1
6244  cat conftest.err >&5
6245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246  (exit $ac_status); } && {
6247	 test -z "$ac_c_werror_flag" ||
6248	 test ! -s conftest.err
6249       } && test -s conftest.$ac_objext; then
6250  eval "$as_ac_Header=yes"
6251else
6252  $as_echo "$as_me: failed program was:" >&5
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
6255	eval "$as_ac_Header=no"
6256fi
6257
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259fi
6260ac_res=`eval 'as_val=${'$as_ac_Header'}
6261		 $as_echo "$as_val"'`
6262	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6263$as_echo "$ac_res" >&6; }
6264if test `eval 'as_val=${'$as_ac_Header'}
6265		 $as_echo "$as_val"'` = yes; then
6266  cat >>confdefs.h <<_ACEOF
6267#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6268_ACEOF
6269
6270fi
6271
6272done
6273
6274
6275
6276for ac_header in dlfcn.h
6277do
6278as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6279{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6280$as_echo_n "checking for $ac_header... " >&6; }
6281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6282  $as_echo_n "(cached) " >&6
6283else
6284  cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h.  */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h.  */
6290$ac_includes_default
6291
6292#include <$ac_header>
6293_ACEOF
6294rm -f conftest.$ac_objext
6295if { (ac_try="$ac_compile"
6296case "(($ac_try" in
6297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298  *) ac_try_echo=$ac_try;;
6299esac
6300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6301$as_echo "$ac_try_echo") >&5
6302  (eval "$ac_compile") 2>conftest.er1
6303  ac_status=$?
6304  grep -v '^ *+' conftest.er1 >conftest.err
6305  rm -f conftest.er1
6306  cat conftest.err >&5
6307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); } && {
6309	 test -z "$ac_c_werror_flag" ||
6310	 test ! -s conftest.err
6311       } && test -s conftest.$ac_objext; then
6312  eval "$as_ac_Header=yes"
6313else
6314  $as_echo "$as_me: failed program was:" >&5
6315sed 's/^/| /' conftest.$ac_ext >&5
6316
6317	eval "$as_ac_Header=no"
6318fi
6319
6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321fi
6322ac_res=`eval 'as_val=${'$as_ac_Header'}
6323		 $as_echo "$as_val"'`
6324	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6325$as_echo "$ac_res" >&6; }
6326if test `eval 'as_val=${'$as_ac_Header'}
6327		 $as_echo "$as_val"'` = yes; then
6328  cat >>confdefs.h <<_ACEOF
6329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6330_ACEOF
6331
6332fi
6333
6334done
6335
6336
6337
6338# Set options
6339
6340
6341
6342        enable_dlopen=no
6343
6344
6345  enable_win32_dll=no
6346
6347
6348            # Check whether --enable-shared was given.
6349if test "${enable_shared+set}" = set; then
6350  enableval=$enable_shared; p=${PACKAGE-default}
6351    case $enableval in
6352    yes) enable_shared=yes ;;
6353    no) enable_shared=no ;;
6354    *)
6355      enable_shared=no
6356      # Look at the argument we got.  We use all the common list separators.
6357      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6358      for pkg in $enableval; do
6359	IFS="$lt_save_ifs"
6360	if test "X$pkg" = "X$p"; then
6361	  enable_shared=yes
6362	fi
6363      done
6364      IFS="$lt_save_ifs"
6365      ;;
6366    esac
6367else
6368  enable_shared=yes
6369fi
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379  # Check whether --enable-static was given.
6380if test "${enable_static+set}" = set; then
6381  enableval=$enable_static; p=${PACKAGE-default}
6382    case $enableval in
6383    yes) enable_static=yes ;;
6384    no) enable_static=no ;;
6385    *)
6386     enable_static=no
6387      # Look at the argument we got.  We use all the common list separators.
6388      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6389      for pkg in $enableval; do
6390	IFS="$lt_save_ifs"
6391	if test "X$pkg" = "X$p"; then
6392	  enable_static=yes
6393	fi
6394      done
6395      IFS="$lt_save_ifs"
6396      ;;
6397    esac
6398else
6399  enable_static=yes
6400fi
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411# Check whether --with-pic was given.
6412if test "${with_pic+set}" = set; then
6413  withval=$with_pic; pic_mode="$withval"
6414else
6415  pic_mode=default
6416fi
6417
6418
6419test -z "$pic_mode" && pic_mode=default
6420
6421
6422
6423
6424
6425
6426
6427  # Check whether --enable-fast-install was given.
6428if test "${enable_fast_install+set}" = set; then
6429  enableval=$enable_fast_install; p=${PACKAGE-default}
6430    case $enableval in
6431    yes) enable_fast_install=yes ;;
6432    no) enable_fast_install=no ;;
6433    *)
6434      enable_fast_install=no
6435      # Look at the argument we got.  We use all the common list separators.
6436      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6437      for pkg in $enableval; do
6438	IFS="$lt_save_ifs"
6439	if test "X$pkg" = "X$p"; then
6440	  enable_fast_install=yes
6441	fi
6442      done
6443      IFS="$lt_save_ifs"
6444      ;;
6445    esac
6446else
6447  enable_fast_install=yes
6448fi
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460# This can be used to rebuild libtool when needed
6461LIBTOOL_DEPS="$ltmain"
6462
6463# Always use our own libtool.
6464LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490test -z "$LN_S" && LN_S="ln -s"
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505if test -n "${ZSH_VERSION+set}" ; then
6506   setopt NO_GLOB_SUBST
6507fi
6508
6509{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6510$as_echo_n "checking for objdir... " >&6; }
6511if test "${lt_cv_objdir+set}" = set; then
6512  $as_echo_n "(cached) " >&6
6513else
6514  rm -f .libs 2>/dev/null
6515mkdir .libs 2>/dev/null
6516if test -d .libs; then
6517  lt_cv_objdir=.libs
6518else
6519  # MS-DOS does not allow filenames that begin with a dot.
6520  lt_cv_objdir=_libs
6521fi
6522rmdir .libs 2>/dev/null
6523fi
6524{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6525$as_echo "$lt_cv_objdir" >&6; }
6526objdir=$lt_cv_objdir
6527
6528
6529
6530
6531
6532cat >>confdefs.h <<_ACEOF
6533#define LT_OBJDIR "$lt_cv_objdir/"
6534_ACEOF
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552case $host_os in
6553aix3*)
6554  # AIX sometimes has problems with the GCC collect2 program.  For some
6555  # reason, if we set the COLLECT_NAMES environment variable, the problems
6556  # vanish in a puff of smoke.
6557  if test "X${COLLECT_NAMES+set}" != Xset; then
6558    COLLECT_NAMES=
6559    export COLLECT_NAMES
6560  fi
6561  ;;
6562esac
6563
6564# Sed substitution that helps us do robust quoting.  It backslashifies
6565# metacharacters that are still active within double-quoted strings.
6566sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6567
6568# Same as above, but do not quote variable references.
6569double_quote_subst='s/\(["`\\]\)/\\\1/g'
6570
6571# Sed substitution to delay expansion of an escaped shell variable in a
6572# double_quote_subst'ed string.
6573delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6574
6575# Sed substitution to delay expansion of an escaped single quote.
6576delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6577
6578# Sed substitution to avoid accidental globbing in evaled expressions
6579no_glob_subst='s/\*/\\\*/g'
6580
6581# Global variables:
6582ofile=libtool
6583can_build_shared=yes
6584
6585# All known linkers require a `.a' archive for static linking (except MSVC,
6586# which needs '.lib').
6587libext=a
6588
6589with_gnu_ld="$lt_cv_prog_gnu_ld"
6590
6591old_CC="$CC"
6592old_CFLAGS="$CFLAGS"
6593
6594# Set sane defaults for various variables
6595test -z "$CC" && CC=cc
6596test -z "$LTCC" && LTCC=$CC
6597test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6598test -z "$LD" && LD=ld
6599test -z "$ac_objext" && ac_objext=o
6600
6601for cc_temp in $compiler""; do
6602  case $cc_temp in
6603    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6604    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6605    \-*) ;;
6606    *) break;;
6607  esac
6608done
6609cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6610
6611
6612# Only perform the check for file, if the check method requires it
6613test -z "$MAGIC_CMD" && MAGIC_CMD=file
6614case $deplibs_check_method in
6615file_magic*)
6616  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6617    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6618$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6619if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6620  $as_echo_n "(cached) " >&6
6621else
6622  case $MAGIC_CMD in
6623[\\/*] |  ?:[\\/]*)
6624  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6625  ;;
6626*)
6627  lt_save_MAGIC_CMD="$MAGIC_CMD"
6628  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6629  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6630  for ac_dir in $ac_dummy; do
6631    IFS="$lt_save_ifs"
6632    test -z "$ac_dir" && ac_dir=.
6633    if test -f $ac_dir/${ac_tool_prefix}file; then
6634      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6635      if test -n "$file_magic_test_file"; then
6636	case $deplibs_check_method in
6637	"file_magic "*)
6638	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6639	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6640	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6641	    $EGREP "$file_magic_regex" > /dev/null; then
6642	    :
6643	  else
6644	    cat <<_LT_EOF 1>&2
6645
6646*** Warning: the command libtool uses to detect shared libraries,
6647*** $file_magic_cmd, produces output that libtool cannot recognize.
6648*** The result is that libtool may fail to recognize shared libraries
6649*** as such.  This will affect the creation of libtool libraries that
6650*** depend on shared libraries, but programs linked with such libtool
6651*** libraries will work regardless of this problem.  Nevertheless, you
6652*** may want to report the problem to your system manager and/or to
6653*** bug-libtool@gnu.org
6654
6655_LT_EOF
6656	  fi ;;
6657	esac
6658      fi
6659      break
6660    fi
6661  done
6662  IFS="$lt_save_ifs"
6663  MAGIC_CMD="$lt_save_MAGIC_CMD"
6664  ;;
6665esac
6666fi
6667
6668MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6669if test -n "$MAGIC_CMD"; then
6670  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6671$as_echo "$MAGIC_CMD" >&6; }
6672else
6673  { $as_echo "$as_me:$LINENO: result: no" >&5
6674$as_echo "no" >&6; }
6675fi
6676
6677
6678
6679
6680
6681if test -z "$lt_cv_path_MAGIC_CMD"; then
6682  if test -n "$ac_tool_prefix"; then
6683    { $as_echo "$as_me:$LINENO: checking for file" >&5
6684$as_echo_n "checking for file... " >&6; }
6685if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6686  $as_echo_n "(cached) " >&6
6687else
6688  case $MAGIC_CMD in
6689[\\/*] |  ?:[\\/]*)
6690  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6691  ;;
6692*)
6693  lt_save_MAGIC_CMD="$MAGIC_CMD"
6694  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6695  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6696  for ac_dir in $ac_dummy; do
6697    IFS="$lt_save_ifs"
6698    test -z "$ac_dir" && ac_dir=.
6699    if test -f $ac_dir/file; then
6700      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6701      if test -n "$file_magic_test_file"; then
6702	case $deplibs_check_method in
6703	"file_magic "*)
6704	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6705	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6706	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6707	    $EGREP "$file_magic_regex" > /dev/null; then
6708	    :
6709	  else
6710	    cat <<_LT_EOF 1>&2
6711
6712*** Warning: the command libtool uses to detect shared libraries,
6713*** $file_magic_cmd, produces output that libtool cannot recognize.
6714*** The result is that libtool may fail to recognize shared libraries
6715*** as such.  This will affect the creation of libtool libraries that
6716*** depend on shared libraries, but programs linked with such libtool
6717*** libraries will work regardless of this problem.  Nevertheless, you
6718*** may want to report the problem to your system manager and/or to
6719*** bug-libtool@gnu.org
6720
6721_LT_EOF
6722	  fi ;;
6723	esac
6724      fi
6725      break
6726    fi
6727  done
6728  IFS="$lt_save_ifs"
6729  MAGIC_CMD="$lt_save_MAGIC_CMD"
6730  ;;
6731esac
6732fi
6733
6734MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6735if test -n "$MAGIC_CMD"; then
6736  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6737$as_echo "$MAGIC_CMD" >&6; }
6738else
6739  { $as_echo "$as_me:$LINENO: result: no" >&5
6740$as_echo "no" >&6; }
6741fi
6742
6743
6744  else
6745    MAGIC_CMD=:
6746  fi
6747fi
6748
6749  fi
6750  ;;
6751esac
6752
6753# Use C for the default configuration in the libtool script
6754
6755lt_save_CC="$CC"
6756ac_ext=c
6757ac_cpp='$CPP $CPPFLAGS'
6758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760ac_compiler_gnu=$ac_cv_c_compiler_gnu
6761
6762
6763# Source file extension for C test sources.
6764ac_ext=c
6765
6766# Object file extension for compiled C test sources.
6767objext=o
6768objext=$objext
6769
6770# Code to be used in simple compile tests
6771lt_simple_compile_test_code="int some_variable = 0;"
6772
6773# Code to be used in simple link tests
6774lt_simple_link_test_code='int main(){return(0);}'
6775
6776
6777
6778
6779
6780
6781
6782# If no C compiler was specified, use CC.
6783LTCC=${LTCC-"$CC"}
6784
6785# If no C compiler flags were specified, use CFLAGS.
6786LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6787
6788# Allow CC to be a program name with arguments.
6789compiler=$CC
6790
6791# Save the default compiler, since it gets overwritten when the other
6792# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6793compiler_DEFAULT=$CC
6794
6795# save warnings/boilerplate of simple test code
6796ac_outfile=conftest.$ac_objext
6797echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6798eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6799_lt_compiler_boilerplate=`cat conftest.err`
6800$RM conftest*
6801
6802ac_outfile=conftest.$ac_objext
6803echo "$lt_simple_link_test_code" >conftest.$ac_ext
6804eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6805_lt_linker_boilerplate=`cat conftest.err`
6806$RM -r conftest*
6807
6808
6809if test -n "$compiler"; then
6810
6811lt_prog_compiler_no_builtin_flag=
6812
6813if test "$GCC" = yes; then
6814  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6815
6816  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6817$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6818if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6819  $as_echo_n "(cached) " >&6
6820else
6821  lt_cv_prog_compiler_rtti_exceptions=no
6822   ac_outfile=conftest.$ac_objext
6823   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6824   lt_compiler_flag="-fno-rtti -fno-exceptions"
6825   # Insert the option either (1) after the last *FLAGS variable, or
6826   # (2) before a word containing "conftest.", or (3) at the end.
6827   # Note that $ac_compile itself does not contain backslashes and begins
6828   # with a dollar sign (not a hyphen), so the echo should work correctly.
6829   # The option is referenced via a variable to avoid confusing sed.
6830   lt_compile=`echo "$ac_compile" | $SED \
6831   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6832   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6833   -e 's:$: $lt_compiler_flag:'`
6834   (eval echo "\"\$as_me:6834: $lt_compile\"" >&5)
6835   (eval "$lt_compile" 2>conftest.err)
6836   ac_status=$?
6837   cat conftest.err >&5
6838   echo "$as_me:6838: \$? = $ac_status" >&5
6839   if (exit $ac_status) && test -s "$ac_outfile"; then
6840     # The compiler can only warn and ignore the option if not recognized
6841     # So say no if there are warnings other than the usual output.
6842     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6843     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6844     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6845       lt_cv_prog_compiler_rtti_exceptions=yes
6846     fi
6847   fi
6848   $RM conftest*
6849
6850fi
6851{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6852$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6853
6854if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6855    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6856else
6857    :
6858fi
6859
6860fi
6861
6862
6863
6864
6865
6866
6867  lt_prog_compiler_wl=
6868lt_prog_compiler_pic=
6869lt_prog_compiler_static=
6870
6871{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6872$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6873
6874  if test "$GCC" = yes; then
6875    lt_prog_compiler_wl='-Wl,'
6876    lt_prog_compiler_static='-static'
6877
6878    case $host_os in
6879      aix*)
6880      # All AIX code is PIC.
6881      if test "$host_cpu" = ia64; then
6882	# AIX 5 now supports IA64 processor
6883	lt_prog_compiler_static='-Bstatic'
6884      fi
6885      ;;
6886
6887    amigaos*)
6888      case $host_cpu in
6889      powerpc)
6890            # see comment about AmigaOS4 .so support
6891            lt_prog_compiler_pic='-fPIC'
6892        ;;
6893      m68k)
6894            # FIXME: we need at least 68020 code to build shared libraries, but
6895            # adding the `-m68020' flag to GCC prevents building anything better,
6896            # like `-m68040'.
6897            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6898        ;;
6899      esac
6900      ;;
6901
6902    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6903      # PIC is the default for these OSes.
6904      ;;
6905
6906    mingw* | cygwin* | pw32* | os2* | cegcc*)
6907      # This hack is so that the source file can tell whether it is being
6908      # built for inclusion in a dll (and should export symbols for example).
6909      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6910      # (--disable-auto-import) libraries
6911      lt_prog_compiler_pic='-DDLL_EXPORT'
6912      ;;
6913
6914    darwin* | rhapsody*)
6915      # PIC is the default on this platform
6916      # Common symbols not allowed in MH_DYLIB files
6917      lt_prog_compiler_pic='-fno-common'
6918      ;;
6919
6920    hpux*)
6921      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6922      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6923      # sets the default TLS model and affects inlining.
6924      case $host_cpu in
6925      hppa*64*)
6926	# +Z the default
6927	;;
6928      *)
6929	lt_prog_compiler_pic='-fPIC'
6930	;;
6931      esac
6932      ;;
6933
6934    interix[3-9]*)
6935      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6936      # Instead, we relocate shared libraries at runtime.
6937      ;;
6938
6939    msdosdjgpp*)
6940      # Just because we use GCC doesn't mean we suddenly get shared libraries
6941      # on systems that don't support them.
6942      lt_prog_compiler_can_build_shared=no
6943      enable_shared=no
6944      ;;
6945
6946    *nto* | *qnx*)
6947      # QNX uses GNU C++, but need to define -shared option too, otherwise
6948      # it will coredump.
6949      lt_prog_compiler_pic='-fPIC -shared'
6950      ;;
6951
6952    sysv4*MP*)
6953      if test -d /usr/nec; then
6954	lt_prog_compiler_pic=-Kconform_pic
6955      fi
6956      ;;
6957
6958    *)
6959      lt_prog_compiler_pic='-fPIC'
6960      ;;
6961    esac
6962  else
6963    # PORTME Check for flag to pass linker flags through the system compiler.
6964    case $host_os in
6965    aix*)
6966      lt_prog_compiler_wl='-Wl,'
6967      if test "$host_cpu" = ia64; then
6968	# AIX 5 now supports IA64 processor
6969	lt_prog_compiler_static='-Bstatic'
6970      else
6971	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6972      fi
6973      ;;
6974
6975    mingw* | cygwin* | pw32* | os2* | cegcc*)
6976      # This hack is so that the source file can tell whether it is being
6977      # built for inclusion in a dll (and should export symbols for example).
6978      lt_prog_compiler_pic='-DDLL_EXPORT'
6979      ;;
6980
6981    hpux9* | hpux10* | hpux11*)
6982      lt_prog_compiler_wl='-Wl,'
6983      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6984      # not for PA HP-UX.
6985      case $host_cpu in
6986      hppa*64*|ia64*)
6987	# +Z the default
6988	;;
6989      *)
6990	lt_prog_compiler_pic='+Z'
6991	;;
6992      esac
6993      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6994      lt_prog_compiler_static='${wl}-a ${wl}archive'
6995      ;;
6996
6997    irix5* | irix6* | nonstopux*)
6998      lt_prog_compiler_wl='-Wl,'
6999      # PIC (with -KPIC) is the default.
7000      lt_prog_compiler_static='-non_shared'
7001      ;;
7002
7003    linux* | k*bsd*-gnu)
7004      case $cc_basename in
7005      # old Intel for x86_64 which still supported -KPIC.
7006      ecc*)
7007	lt_prog_compiler_wl='-Wl,'
7008	lt_prog_compiler_pic='-KPIC'
7009	lt_prog_compiler_static='-static'
7010        ;;
7011      # icc used to be incompatible with GCC.
7012      # ICC 10 doesn't accept -KPIC any more.
7013      icc* | ifort*)
7014	lt_prog_compiler_wl='-Wl,'
7015	lt_prog_compiler_pic='-fPIC'
7016	lt_prog_compiler_static='-static'
7017        ;;
7018      # Lahey Fortran 8.1.
7019      lf95*)
7020	lt_prog_compiler_wl='-Wl,'
7021	lt_prog_compiler_pic='--shared'
7022	lt_prog_compiler_static='--static'
7023	;;
7024      pgcc* | pgf77* | pgf90* | pgf95*)
7025        # Portland Group compilers (*not* the Pentium gcc compiler,
7026	# which looks to be a dead project)
7027	lt_prog_compiler_wl='-Wl,'
7028	lt_prog_compiler_pic='-fpic'
7029	lt_prog_compiler_static='-Bstatic'
7030        ;;
7031      ccc*)
7032        lt_prog_compiler_wl='-Wl,'
7033        # All Alpha code is PIC.
7034        lt_prog_compiler_static='-non_shared'
7035        ;;
7036      xl*)
7037	# IBM XL C 8.0/Fortran 10.1 on PPC
7038	lt_prog_compiler_wl='-Wl,'
7039	lt_prog_compiler_pic='-qpic'
7040	lt_prog_compiler_static='-qstaticlink'
7041	;;
7042      *)
7043	case `$CC -V 2>&1 | sed 5q` in
7044	*Sun\ C*)
7045	  # Sun C 5.9
7046	  lt_prog_compiler_pic='-KPIC'
7047	  lt_prog_compiler_static='-Bstatic'
7048	  lt_prog_compiler_wl='-Wl,'
7049	  ;;
7050	*Sun\ F*)
7051	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7052	  lt_prog_compiler_pic='-KPIC'
7053	  lt_prog_compiler_static='-Bstatic'
7054	  lt_prog_compiler_wl=''
7055	  ;;
7056	esac
7057	;;
7058      esac
7059      ;;
7060
7061    newsos6)
7062      lt_prog_compiler_pic='-KPIC'
7063      lt_prog_compiler_static='-Bstatic'
7064      ;;
7065
7066    *nto* | *qnx*)
7067      # QNX uses GNU C++, but need to define -shared option too, otherwise
7068      # it will coredump.
7069      lt_prog_compiler_pic='-fPIC -shared'
7070      ;;
7071
7072    osf3* | osf4* | osf5*)
7073      lt_prog_compiler_wl='-Wl,'
7074      # All OSF/1 code is PIC.
7075      lt_prog_compiler_static='-non_shared'
7076      ;;
7077
7078    rdos*)
7079      lt_prog_compiler_static='-non_shared'
7080      ;;
7081
7082    solaris*)
7083      lt_prog_compiler_pic='-KPIC'
7084      lt_prog_compiler_static='-Bstatic'
7085      case $cc_basename in
7086      f77* | f90* | f95*)
7087	lt_prog_compiler_wl='-Qoption ld ';;
7088      *)
7089	lt_prog_compiler_wl='-Wl,';;
7090      esac
7091      ;;
7092
7093    sunos4*)
7094      lt_prog_compiler_wl='-Qoption ld '
7095      lt_prog_compiler_pic='-PIC'
7096      lt_prog_compiler_static='-Bstatic'
7097      ;;
7098
7099    sysv4 | sysv4.2uw2* | sysv4.3*)
7100      lt_prog_compiler_wl='-Wl,'
7101      lt_prog_compiler_pic='-KPIC'
7102      lt_prog_compiler_static='-Bstatic'
7103      ;;
7104
7105    sysv4*MP*)
7106      if test -d /usr/nec ;then
7107	lt_prog_compiler_pic='-Kconform_pic'
7108	lt_prog_compiler_static='-Bstatic'
7109      fi
7110      ;;
7111
7112    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7113      lt_prog_compiler_wl='-Wl,'
7114      lt_prog_compiler_pic='-KPIC'
7115      lt_prog_compiler_static='-Bstatic'
7116      ;;
7117
7118    unicos*)
7119      lt_prog_compiler_wl='-Wl,'
7120      lt_prog_compiler_can_build_shared=no
7121      ;;
7122
7123    uts4*)
7124      lt_prog_compiler_pic='-pic'
7125      lt_prog_compiler_static='-Bstatic'
7126      ;;
7127
7128    *)
7129      lt_prog_compiler_can_build_shared=no
7130      ;;
7131    esac
7132  fi
7133
7134case $host_os in
7135  # For platforms which do not support PIC, -DPIC is meaningless:
7136  *djgpp*)
7137    lt_prog_compiler_pic=
7138    ;;
7139  *)
7140    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7141    ;;
7142esac
7143{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7144$as_echo "$lt_prog_compiler_pic" >&6; }
7145
7146
7147
7148
7149
7150
7151#
7152# Check to make sure the PIC flag actually works.
7153#
7154if test -n "$lt_prog_compiler_pic"; then
7155  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7156$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7157if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7158  $as_echo_n "(cached) " >&6
7159else
7160  lt_cv_prog_compiler_pic_works=no
7161   ac_outfile=conftest.$ac_objext
7162   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7163   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7164   # Insert the option either (1) after the last *FLAGS variable, or
7165   # (2) before a word containing "conftest.", or (3) at the end.
7166   # Note that $ac_compile itself does not contain backslashes and begins
7167   # with a dollar sign (not a hyphen), so the echo should work correctly.
7168   # The option is referenced via a variable to avoid confusing sed.
7169   lt_compile=`echo "$ac_compile" | $SED \
7170   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7171   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172   -e 's:$: $lt_compiler_flag:'`
7173   (eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
7174   (eval "$lt_compile" 2>conftest.err)
7175   ac_status=$?
7176   cat conftest.err >&5
7177   echo "$as_me:7177: \$? = $ac_status" >&5
7178   if (exit $ac_status) && test -s "$ac_outfile"; then
7179     # The compiler can only warn and ignore the option if not recognized
7180     # So say no if there are warnings other than the usual output.
7181     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7182     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7183     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7184       lt_cv_prog_compiler_pic_works=yes
7185     fi
7186   fi
7187   $RM conftest*
7188
7189fi
7190{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7191$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7192
7193if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7194    case $lt_prog_compiler_pic in
7195     "" | " "*) ;;
7196     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7197     esac
7198else
7199    lt_prog_compiler_pic=
7200     lt_prog_compiler_can_build_shared=no
7201fi
7202
7203fi
7204
7205
7206
7207
7208
7209
7210#
7211# Check to make sure the static flag actually works.
7212#
7213wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7214{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7215$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7216if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7217  $as_echo_n "(cached) " >&6
7218else
7219  lt_cv_prog_compiler_static_works=no
7220   save_LDFLAGS="$LDFLAGS"
7221   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7222   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7223   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7224     # The linker can only warn and ignore the option if not recognized
7225     # So say no if there are warnings
7226     if test -s conftest.err; then
7227       # Append any errors to the config.log.
7228       cat conftest.err 1>&5
7229       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7230       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7231       if diff conftest.exp conftest.er2 >/dev/null; then
7232         lt_cv_prog_compiler_static_works=yes
7233       fi
7234     else
7235       lt_cv_prog_compiler_static_works=yes
7236     fi
7237   fi
7238   $RM -r conftest*
7239   LDFLAGS="$save_LDFLAGS"
7240
7241fi
7242{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7243$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7244
7245if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7246    :
7247else
7248    lt_prog_compiler_static=
7249fi
7250
7251
7252
7253
7254
7255
7256
7257  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7258$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7259if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7260  $as_echo_n "(cached) " >&6
7261else
7262  lt_cv_prog_compiler_c_o=no
7263   $RM -r conftest 2>/dev/null
7264   mkdir conftest
7265   cd conftest
7266   mkdir out
7267   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7268
7269   lt_compiler_flag="-o out/conftest2.$ac_objext"
7270   # Insert the option either (1) after the last *FLAGS variable, or
7271   # (2) before a word containing "conftest.", or (3) at the end.
7272   # Note that $ac_compile itself does not contain backslashes and begins
7273   # with a dollar sign (not a hyphen), so the echo should work correctly.
7274   lt_compile=`echo "$ac_compile" | $SED \
7275   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7276   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7277   -e 's:$: $lt_compiler_flag:'`
7278   (eval echo "\"\$as_me:7278: $lt_compile\"" >&5)
7279   (eval "$lt_compile" 2>out/conftest.err)
7280   ac_status=$?
7281   cat out/conftest.err >&5
7282   echo "$as_me:7282: \$? = $ac_status" >&5
7283   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7284   then
7285     # The compiler can only warn and ignore the option if not recognized
7286     # So say no if there are warnings
7287     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7288     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7289     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7290       lt_cv_prog_compiler_c_o=yes
7291     fi
7292   fi
7293   chmod u+w . 2>&5
7294   $RM conftest*
7295   # SGI C++ compiler will create directory out/ii_files/ for
7296   # template instantiation
7297   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7298   $RM out/* && rmdir out
7299   cd ..
7300   $RM -r conftest
7301   $RM conftest*
7302
7303fi
7304{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7305$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7306
7307
7308
7309
7310
7311
7312  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7313$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7314if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7315  $as_echo_n "(cached) " >&6
7316else
7317  lt_cv_prog_compiler_c_o=no
7318   $RM -r conftest 2>/dev/null
7319   mkdir conftest
7320   cd conftest
7321   mkdir out
7322   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7323
7324   lt_compiler_flag="-o out/conftest2.$ac_objext"
7325   # Insert the option either (1) after the last *FLAGS variable, or
7326   # (2) before a word containing "conftest.", or (3) at the end.
7327   # Note that $ac_compile itself does not contain backslashes and begins
7328   # with a dollar sign (not a hyphen), so the echo should work correctly.
7329   lt_compile=`echo "$ac_compile" | $SED \
7330   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7331   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7332   -e 's:$: $lt_compiler_flag:'`
7333   (eval echo "\"\$as_me:7333: $lt_compile\"" >&5)
7334   (eval "$lt_compile" 2>out/conftest.err)
7335   ac_status=$?
7336   cat out/conftest.err >&5
7337   echo "$as_me:7337: \$? = $ac_status" >&5
7338   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7339   then
7340     # The compiler can only warn and ignore the option if not recognized
7341     # So say no if there are warnings
7342     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7343     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7344     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7345       lt_cv_prog_compiler_c_o=yes
7346     fi
7347   fi
7348   chmod u+w . 2>&5
7349   $RM conftest*
7350   # SGI C++ compiler will create directory out/ii_files/ for
7351   # template instantiation
7352   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7353   $RM out/* && rmdir out
7354   cd ..
7355   $RM -r conftest
7356   $RM conftest*
7357
7358fi
7359{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7360$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7361
7362
7363
7364
7365hard_links="nottested"
7366if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7367  # do not overwrite the value of need_locks provided by the user
7368  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7369$as_echo_n "checking if we can lock with hard links... " >&6; }
7370  hard_links=yes
7371  $RM conftest*
7372  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7373  touch conftest.a
7374  ln conftest.a conftest.b 2>&5 || hard_links=no
7375  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7376  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7377$as_echo "$hard_links" >&6; }
7378  if test "$hard_links" = no; then
7379    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7380$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7381    need_locks=warn
7382  fi
7383else
7384  need_locks=no
7385fi
7386
7387
7388
7389
7390
7391
7392  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7393$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7394
7395  runpath_var=
7396  allow_undefined_flag=
7397  always_export_symbols=no
7398  archive_cmds=
7399  archive_expsym_cmds=
7400  compiler_needs_object=no
7401  enable_shared_with_static_runtimes=no
7402  export_dynamic_flag_spec=
7403  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7404  hardcode_automatic=no
7405  hardcode_direct=no
7406  hardcode_direct_absolute=no
7407  hardcode_libdir_flag_spec=
7408  hardcode_libdir_flag_spec_ld=
7409  hardcode_libdir_separator=
7410  hardcode_minus_L=no
7411  hardcode_shlibpath_var=unsupported
7412  inherit_rpath=no
7413  link_all_deplibs=unknown
7414  module_cmds=
7415  module_expsym_cmds=
7416  old_archive_from_new_cmds=
7417  old_archive_from_expsyms_cmds=
7418  thread_safe_flag_spec=
7419  whole_archive_flag_spec=
7420  # include_expsyms should be a list of space-separated symbols to be *always*
7421  # included in the symbol list
7422  include_expsyms=
7423  # exclude_expsyms can be an extended regexp of symbols to exclude
7424  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7425  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7426  # as well as any symbol that contains `d'.
7427  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7428  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7429  # platforms (ab)use it in PIC code, but their linkers get confused if
7430  # the symbol is explicitly referenced.  Since portable code cannot
7431  # rely on this symbol name, it's probably fine to never include it in
7432  # preloaded symbol tables.
7433  # Exclude shared library initialization/finalization symbols.
7434  extract_expsyms_cmds=
7435
7436  case $host_os in
7437  cygwin* | mingw* | pw32* | cegcc*)
7438    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7439    # When not using gcc, we currently assume that we are using
7440    # Microsoft Visual C++.
7441    if test "$GCC" != yes; then
7442      with_gnu_ld=no
7443    fi
7444    ;;
7445  interix*)
7446    # we just hope/assume this is gcc and not c89 (= MSVC++)
7447    with_gnu_ld=yes
7448    ;;
7449  openbsd*)
7450    with_gnu_ld=no
7451    ;;
7452  esac
7453
7454  ld_shlibs=yes
7455  if test "$with_gnu_ld" = yes; then
7456    # If archive_cmds runs LD, not CC, wlarc should be empty
7457    wlarc='${wl}'
7458
7459    # Set some defaults for GNU ld with shared library support. These
7460    # are reset later if shared libraries are not supported. Putting them
7461    # here allows them to be overridden if necessary.
7462    runpath_var=LD_RUN_PATH
7463    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7464    export_dynamic_flag_spec='${wl}--export-dynamic'
7465    # ancient GNU ld didn't support --whole-archive et. al.
7466    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7467      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7468    else
7469      whole_archive_flag_spec=
7470    fi
7471    supports_anon_versioning=no
7472    case `$LD -v 2>&1` in
7473      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7474      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7475      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7476      *\ 2.11.*) ;; # other 2.11 versions
7477      *) supports_anon_versioning=yes ;;
7478    esac
7479
7480    # See if GNU ld supports shared libraries.
7481    case $host_os in
7482    aix[3-9]*)
7483      # On AIX/PPC, the GNU linker is very broken
7484      if test "$host_cpu" != ia64; then
7485	ld_shlibs=no
7486	cat <<_LT_EOF 1>&2
7487
7488*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7489*** to be unable to reliably create shared libraries on AIX.
7490*** Therefore, libtool is disabling shared libraries support.  If you
7491*** really care for shared libraries, you may want to modify your PATH
7492*** so that a non-GNU linker is found, and then restart.
7493
7494_LT_EOF
7495      fi
7496      ;;
7497
7498    amigaos*)
7499      case $host_cpu in
7500      powerpc)
7501            # see comment about AmigaOS4 .so support
7502            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7503            archive_expsym_cmds=''
7504        ;;
7505      m68k)
7506            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)'
7507            hardcode_libdir_flag_spec='-L$libdir'
7508            hardcode_minus_L=yes
7509        ;;
7510      esac
7511      ;;
7512
7513    beos*)
7514      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7515	allow_undefined_flag=unsupported
7516	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7517	# support --undefined.  This deserves some investigation.  FIXME
7518	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7519      else
7520	ld_shlibs=no
7521      fi
7522      ;;
7523
7524    cygwin* | mingw* | pw32* | cegcc*)
7525      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7526      # as there is no search path for DLLs.
7527      hardcode_libdir_flag_spec='-L$libdir'
7528      allow_undefined_flag=unsupported
7529      always_export_symbols=no
7530      enable_shared_with_static_runtimes=yes
7531      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7532
7533      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7534        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7535	# If the export-symbols file already is a .def file (1st line
7536	# is EXPORTS), use it as is; otherwise, prepend...
7537	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7538	  cp $export_symbols $output_objdir/$soname.def;
7539	else
7540	  echo EXPORTS > $output_objdir/$soname.def;
7541	  cat $export_symbols >> $output_objdir/$soname.def;
7542	fi~
7543	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7544      else
7545	ld_shlibs=no
7546      fi
7547      ;;
7548
7549    interix[3-9]*)
7550      hardcode_direct=no
7551      hardcode_shlibpath_var=no
7552      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7553      export_dynamic_flag_spec='${wl}-E'
7554      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7555      # Instead, shared libraries are loaded at an image base (0x10000000 by
7556      # default) and relocated if they conflict, which is a slow very memory
7557      # consuming and fragmenting process.  To avoid this, we pick a random,
7558      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7559      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7560      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7561      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'
7562      ;;
7563
7564    gnu* | linux* | tpf* | k*bsd*-gnu)
7565      tmp_diet=no
7566      if test "$host_os" = linux-dietlibc; then
7567	case $cc_basename in
7568	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7569	esac
7570      fi
7571      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7572	 && test "$tmp_diet" = no
7573      then
7574	tmp_addflag=
7575	tmp_sharedflag='-shared'
7576	case $cc_basename,$host_cpu in
7577        pgcc*)				# Portland Group C compiler
7578	  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'
7579	  tmp_addflag=' $pic_flag'
7580	  ;;
7581	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7582	  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'
7583	  tmp_addflag=' $pic_flag -Mnomain' ;;
7584	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7585	  tmp_addflag=' -i_dynamic' ;;
7586	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7587	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7588	ifc* | ifort*)			# Intel Fortran compiler
7589	  tmp_addflag=' -nofor_main' ;;
7590	lf95*)				# Lahey Fortran 8.1
7591	  whole_archive_flag_spec=
7592	  tmp_sharedflag='--shared' ;;
7593	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7594	  tmp_sharedflag='-qmkshrobj'
7595	  tmp_addflag= ;;
7596	esac
7597	case `$CC -V 2>&1 | sed 5q` in
7598	*Sun\ C*)			# Sun C 5.9
7599	  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'
7600	  compiler_needs_object=yes
7601	  tmp_sharedflag='-G' ;;
7602	*Sun\ F*)			# Sun Fortran 8.3
7603	  tmp_sharedflag='-G' ;;
7604	esac
7605	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7606
7607        if test "x$supports_anon_versioning" = xyes; then
7608          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7609	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7610	    echo "local: *; };" >> $output_objdir/$libname.ver~
7611	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7612        fi
7613
7614	case $cc_basename in
7615	xlf*)
7616	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7617	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7618	  hardcode_libdir_flag_spec=
7619	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7620	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7621	  if test "x$supports_anon_versioning" = xyes; then
7622	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7623	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7624	      echo "local: *; };" >> $output_objdir/$libname.ver~
7625	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7626	  fi
7627	  ;;
7628	esac
7629      else
7630        ld_shlibs=no
7631      fi
7632      ;;
7633
7634    netbsd*)
7635      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7636	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7637	wlarc=
7638      else
7639	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7640	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7641      fi
7642      ;;
7643
7644    solaris*)
7645      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7646	ld_shlibs=no
7647	cat <<_LT_EOF 1>&2
7648
7649*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7650*** create shared libraries on Solaris systems.  Therefore, libtool
7651*** is disabling shared libraries support.  We urge you to upgrade GNU
7652*** binutils to release 2.9.1 or newer.  Another option is to modify
7653*** your PATH or compiler configuration so that the native linker is
7654*** used, and then restart.
7655
7656_LT_EOF
7657      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7658	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7659	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7660      else
7661	ld_shlibs=no
7662      fi
7663      ;;
7664
7665    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7666      case `$LD -v 2>&1` in
7667        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7668	ld_shlibs=no
7669	cat <<_LT_EOF 1>&2
7670
7671*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7672*** reliably create shared libraries on SCO systems.  Therefore, libtool
7673*** is disabling shared libraries support.  We urge you to upgrade GNU
7674*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7675*** your PATH or compiler configuration so that the native linker is
7676*** used, and then restart.
7677
7678_LT_EOF
7679	;;
7680	*)
7681	  # For security reasons, it is highly recommended that you always
7682	  # use absolute paths for naming shared libraries, and exclude the
7683	  # DT_RUNPATH tag from executables and libraries.  But doing so
7684	  # requires that you compile everything twice, which is a pain.
7685	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7686	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7687	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7688	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7689	  else
7690	    ld_shlibs=no
7691	  fi
7692	;;
7693      esac
7694      ;;
7695
7696    sunos4*)
7697      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7698      wlarc=
7699      hardcode_direct=yes
7700      hardcode_shlibpath_var=no
7701      ;;
7702
7703    *)
7704      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7705	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7706	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7707      else
7708	ld_shlibs=no
7709      fi
7710      ;;
7711    esac
7712
7713    if test "$ld_shlibs" = no; then
7714      runpath_var=
7715      hardcode_libdir_flag_spec=
7716      export_dynamic_flag_spec=
7717      whole_archive_flag_spec=
7718    fi
7719  else
7720    # PORTME fill in a description of your system's linker (not GNU ld)
7721    case $host_os in
7722    aix3*)
7723      allow_undefined_flag=unsupported
7724      always_export_symbols=yes
7725      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'
7726      # Note: this linker hardcodes the directories in LIBPATH if there
7727      # are no directories specified by -L.
7728      hardcode_minus_L=yes
7729      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7730	# Neither direct hardcoding nor static linking is supported with a
7731	# broken collect2.
7732	hardcode_direct=unsupported
7733      fi
7734      ;;
7735
7736    aix[4-9]*)
7737      if test "$host_cpu" = ia64; then
7738	# On IA64, the linker does run time linking by default, so we don't
7739	# have to do anything special.
7740	aix_use_runtimelinking=no
7741	exp_sym_flag='-Bexport'
7742	no_entry_flag=""
7743      else
7744	# If we're using GNU nm, then we don't want the "-C" option.
7745	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7746	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7747	  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'
7748	else
7749	  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'
7750	fi
7751	aix_use_runtimelinking=no
7752
7753	# Test if we are trying to use run time linking or normal
7754	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7755	# need to do runtime linking.
7756	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7757	  for ld_flag in $LDFLAGS; do
7758	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7759	    aix_use_runtimelinking=yes
7760	    break
7761	  fi
7762	  done
7763	  ;;
7764	esac
7765
7766	exp_sym_flag='-bexport'
7767	no_entry_flag='-bnoentry'
7768      fi
7769
7770      # When large executables or shared objects are built, AIX ld can
7771      # have problems creating the table of contents.  If linking a library
7772      # or program results in "error TOC overflow" add -mminimal-toc to
7773      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7774      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7775
7776      archive_cmds=''
7777      hardcode_direct=yes
7778      hardcode_direct_absolute=yes
7779      hardcode_libdir_separator=':'
7780      link_all_deplibs=yes
7781      file_list_spec='${wl}-f,'
7782
7783      if test "$GCC" = yes; then
7784	case $host_os in aix4.[012]|aix4.[012].*)
7785	# We only want to do this on AIX 4.2 and lower, the check
7786	# below for broken collect2 doesn't work under 4.3+
7787	  collect2name=`${CC} -print-prog-name=collect2`
7788	  if test -f "$collect2name" &&
7789	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7790	  then
7791	  # We have reworked collect2
7792	  :
7793	  else
7794	  # We have old collect2
7795	  hardcode_direct=unsupported
7796	  # It fails to find uninstalled libraries when the uninstalled
7797	  # path is not listed in the libpath.  Setting hardcode_minus_L
7798	  # to unsupported forces relinking
7799	  hardcode_minus_L=yes
7800	  hardcode_libdir_flag_spec='-L$libdir'
7801	  hardcode_libdir_separator=
7802	  fi
7803	  ;;
7804	esac
7805	shared_flag='-shared'
7806	if test "$aix_use_runtimelinking" = yes; then
7807	  shared_flag="$shared_flag "'${wl}-G'
7808	fi
7809      else
7810	# not using gcc
7811	if test "$host_cpu" = ia64; then
7812	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7813	# chokes on -Wl,-G. The following line is correct:
7814	  shared_flag='-G'
7815	else
7816	  if test "$aix_use_runtimelinking" = yes; then
7817	    shared_flag='${wl}-G'
7818	  else
7819	    shared_flag='${wl}-bM:SRE'
7820	  fi
7821	fi
7822      fi
7823
7824      export_dynamic_flag_spec='${wl}-bexpall'
7825      # It seems that -bexpall does not export symbols beginning with
7826      # underscore (_), so it is better to generate a list of symbols to export.
7827      always_export_symbols=yes
7828      if test "$aix_use_runtimelinking" = yes; then
7829	# Warning - without using the other runtime loading flags (-brtl),
7830	# -berok will link without error, but may produce a broken library.
7831	allow_undefined_flag='-berok'
7832        # Determine the default libpath from the value encoded in an
7833        # empty executable.
7834        cat >conftest.$ac_ext <<_ACEOF
7835/* confdefs.h.  */
7836_ACEOF
7837cat confdefs.h >>conftest.$ac_ext
7838cat >>conftest.$ac_ext <<_ACEOF
7839/* end confdefs.h.  */
7840
7841int
7842main ()
7843{
7844
7845  ;
7846  return 0;
7847}
7848_ACEOF
7849rm -f conftest.$ac_objext conftest$ac_exeext
7850if { (ac_try="$ac_link"
7851case "(($ac_try" in
7852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853  *) ac_try_echo=$ac_try;;
7854esac
7855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7856$as_echo "$ac_try_echo") >&5
7857  (eval "$ac_link") 2>conftest.er1
7858  ac_status=$?
7859  grep -v '^ *+' conftest.er1 >conftest.err
7860  rm -f conftest.er1
7861  cat conftest.err >&5
7862  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863  (exit $ac_status); } && {
7864	 test -z "$ac_c_werror_flag" ||
7865	 test ! -s conftest.err
7866       } && test -s conftest$ac_exeext && {
7867	 test "$cross_compiling" = yes ||
7868	 $as_test_x conftest$ac_exeext
7869       }; then
7870
7871lt_aix_libpath_sed='
7872    /Import File Strings/,/^$/ {
7873	/^0/ {
7874	    s/^0  *\(.*\)$/\1/
7875	    p
7876	}
7877    }'
7878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7879# Check for a 64-bit object if we didn't find anything.
7880if test -z "$aix_libpath"; then
7881  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7882fi
7883else
7884  $as_echo "$as_me: failed program was:" >&5
7885sed 's/^/| /' conftest.$ac_ext >&5
7886
7887
7888fi
7889
7890rm -rf conftest.dSYM
7891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7892      conftest$ac_exeext conftest.$ac_ext
7893if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7894
7895        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7896        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"
7897      else
7898	if test "$host_cpu" = ia64; then
7899	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7900	  allow_undefined_flag="-z nodefs"
7901	  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"
7902	else
7903	 # Determine the default libpath from the value encoded in an
7904	 # empty executable.
7905	 cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h.  */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h.  */
7911
7912int
7913main ()
7914{
7915
7916  ;
7917  return 0;
7918}
7919_ACEOF
7920rm -f conftest.$ac_objext conftest$ac_exeext
7921if { (ac_try="$ac_link"
7922case "(($ac_try" in
7923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924  *) ac_try_echo=$ac_try;;
7925esac
7926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7927$as_echo "$ac_try_echo") >&5
7928  (eval "$ac_link") 2>conftest.er1
7929  ac_status=$?
7930  grep -v '^ *+' conftest.er1 >conftest.err
7931  rm -f conftest.er1
7932  cat conftest.err >&5
7933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934  (exit $ac_status); } && {
7935	 test -z "$ac_c_werror_flag" ||
7936	 test ! -s conftest.err
7937       } && test -s conftest$ac_exeext && {
7938	 test "$cross_compiling" = yes ||
7939	 $as_test_x conftest$ac_exeext
7940       }; then
7941
7942lt_aix_libpath_sed='
7943    /Import File Strings/,/^$/ {
7944	/^0/ {
7945	    s/^0  *\(.*\)$/\1/
7946	    p
7947	}
7948    }'
7949aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7950# Check for a 64-bit object if we didn't find anything.
7951if test -z "$aix_libpath"; then
7952  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7953fi
7954else
7955  $as_echo "$as_me: failed program was:" >&5
7956sed 's/^/| /' conftest.$ac_ext >&5
7957
7958
7959fi
7960
7961rm -rf conftest.dSYM
7962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7963      conftest$ac_exeext conftest.$ac_ext
7964if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7965
7966	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7967	  # Warning - without using the other run time loading flags,
7968	  # -berok will link without error, but may produce a broken library.
7969	  no_undefined_flag=' ${wl}-bernotok'
7970	  allow_undefined_flag=' ${wl}-berok'
7971	  # Exported symbols can be pulled into shared objects from archives
7972	  whole_archive_flag_spec='$convenience'
7973	  archive_cmds_need_lc=yes
7974	  # This is similar to how AIX traditionally builds its shared libraries.
7975	  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'
7976	fi
7977      fi
7978      ;;
7979
7980    amigaos*)
7981      case $host_cpu in
7982      powerpc)
7983            # see comment about AmigaOS4 .so support
7984            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985            archive_expsym_cmds=''
7986        ;;
7987      m68k)
7988            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)'
7989            hardcode_libdir_flag_spec='-L$libdir'
7990            hardcode_minus_L=yes
7991        ;;
7992      esac
7993      ;;
7994
7995    bsdi[45]*)
7996      export_dynamic_flag_spec=-rdynamic
7997      ;;
7998
7999    cygwin* | mingw* | pw32* | cegcc*)
8000      # When not using gcc, we currently assume that we are using
8001      # Microsoft Visual C++.
8002      # hardcode_libdir_flag_spec is actually meaningless, as there is
8003      # no search path for DLLs.
8004      hardcode_libdir_flag_spec=' '
8005      allow_undefined_flag=unsupported
8006      # Tell ltmain to make .lib files, not .a files.
8007      libext=lib
8008      # Tell ltmain to make .dll files, not .so files.
8009      shrext_cmds=".dll"
8010      # FIXME: Setting linknames here is a bad hack.
8011      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8012      # The linker will automatically build a .lib file if we build a DLL.
8013      old_archive_from_new_cmds='true'
8014      # FIXME: Should let the user specify the lib program.
8015      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8016      fix_srcfile_path='`cygpath -w "$srcfile"`'
8017      enable_shared_with_static_runtimes=yes
8018      ;;
8019
8020    darwin* | rhapsody*)
8021
8022
8023  archive_cmds_need_lc=no
8024  hardcode_direct=no
8025  hardcode_automatic=yes
8026  hardcode_shlibpath_var=unsupported
8027  whole_archive_flag_spec=''
8028  link_all_deplibs=yes
8029  allow_undefined_flag="$_lt_dar_allow_undefined"
8030  case $cc_basename in
8031     ifort*) _lt_dar_can_shared=yes ;;
8032     *) _lt_dar_can_shared=$GCC ;;
8033  esac
8034  if test "$_lt_dar_can_shared" = "yes"; then
8035    output_verbose_link_cmd=echo
8036    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8037    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8038    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}"
8039    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}"
8040
8041  else
8042  ld_shlibs=no
8043  fi
8044
8045      ;;
8046
8047    dgux*)
8048      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8049      hardcode_libdir_flag_spec='-L$libdir'
8050      hardcode_shlibpath_var=no
8051      ;;
8052
8053    freebsd1*)
8054      ld_shlibs=no
8055      ;;
8056
8057    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8058    # support.  Future versions do this automatically, but an explicit c++rt0.o
8059    # does not break anything, and helps significantly (at the cost of a little
8060    # extra space).
8061    freebsd2.2*)
8062      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8063      hardcode_libdir_flag_spec='-R$libdir'
8064      hardcode_direct=yes
8065      hardcode_shlibpath_var=no
8066      ;;
8067
8068    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8069    freebsd2*)
8070      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8071      hardcode_direct=yes
8072      hardcode_minus_L=yes
8073      hardcode_shlibpath_var=no
8074      ;;
8075
8076    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8077    freebsd* | dragonfly*)
8078      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8079      hardcode_libdir_flag_spec='-R$libdir'
8080      hardcode_direct=yes
8081      hardcode_shlibpath_var=no
8082      ;;
8083
8084    hpux9*)
8085      if test "$GCC" = yes; then
8086	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'
8087      else
8088	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'
8089      fi
8090      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8091      hardcode_libdir_separator=:
8092      hardcode_direct=yes
8093
8094      # hardcode_minus_L: Not really in the search PATH,
8095      # but as the default location of the library.
8096      hardcode_minus_L=yes
8097      export_dynamic_flag_spec='${wl}-E'
8098      ;;
8099
8100    hpux10*)
8101      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8102	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8103      else
8104	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8105      fi
8106      if test "$with_gnu_ld" = no; then
8107	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8108	hardcode_libdir_flag_spec_ld='+b $libdir'
8109	hardcode_libdir_separator=:
8110	hardcode_direct=yes
8111	hardcode_direct_absolute=yes
8112	export_dynamic_flag_spec='${wl}-E'
8113	# hardcode_minus_L: Not really in the search PATH,
8114	# but as the default location of the library.
8115	hardcode_minus_L=yes
8116      fi
8117      ;;
8118
8119    hpux11*)
8120      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8121	case $host_cpu in
8122	hppa*64*)
8123	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8124	  ;;
8125	ia64*)
8126	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8127	  ;;
8128	*)
8129	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8130	  ;;
8131	esac
8132      else
8133	case $host_cpu in
8134	hppa*64*)
8135	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8136	  ;;
8137	ia64*)
8138	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8139	  ;;
8140	*)
8141	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8142	  ;;
8143	esac
8144      fi
8145      if test "$with_gnu_ld" = no; then
8146	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8147	hardcode_libdir_separator=:
8148
8149	case $host_cpu in
8150	hppa*64*|ia64*)
8151	  hardcode_direct=no
8152	  hardcode_shlibpath_var=no
8153	  ;;
8154	*)
8155	  hardcode_direct=yes
8156	  hardcode_direct_absolute=yes
8157	  export_dynamic_flag_spec='${wl}-E'
8158
8159	  # hardcode_minus_L: Not really in the search PATH,
8160	  # but as the default location of the library.
8161	  hardcode_minus_L=yes
8162	  ;;
8163	esac
8164      fi
8165      ;;
8166
8167    irix5* | irix6* | nonstopux*)
8168      if test "$GCC" = yes; then
8169	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'
8170	# Try to use the -exported_symbol ld option, if it does not
8171	# work, assume that -exports_file does not work either and
8172	# implicitly export all symbols.
8173        save_LDFLAGS="$LDFLAGS"
8174        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8175        cat >conftest.$ac_ext <<_ACEOF
8176int foo(void) {}
8177_ACEOF
8178rm -f conftest.$ac_objext conftest$ac_exeext
8179if { (ac_try="$ac_link"
8180case "(($ac_try" in
8181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182  *) ac_try_echo=$ac_try;;
8183esac
8184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185$as_echo "$ac_try_echo") >&5
8186  (eval "$ac_link") 2>conftest.er1
8187  ac_status=$?
8188  grep -v '^ *+' conftest.er1 >conftest.err
8189  rm -f conftest.er1
8190  cat conftest.err >&5
8191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192  (exit $ac_status); } && {
8193	 test -z "$ac_c_werror_flag" ||
8194	 test ! -s conftest.err
8195       } && test -s conftest$ac_exeext && {
8196	 test "$cross_compiling" = yes ||
8197	 $as_test_x conftest$ac_exeext
8198       }; then
8199  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'
8200
8201else
8202  $as_echo "$as_me: failed program was:" >&5
8203sed 's/^/| /' conftest.$ac_ext >&5
8204
8205
8206fi
8207
8208rm -rf conftest.dSYM
8209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8210      conftest$ac_exeext conftest.$ac_ext
8211        LDFLAGS="$save_LDFLAGS"
8212      else
8213	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'
8214	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'
8215      fi
8216      archive_cmds_need_lc='no'
8217      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218      hardcode_libdir_separator=:
8219      inherit_rpath=yes
8220      link_all_deplibs=yes
8221      ;;
8222
8223    netbsd*)
8224      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8225	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8226      else
8227	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8228      fi
8229      hardcode_libdir_flag_spec='-R$libdir'
8230      hardcode_direct=yes
8231      hardcode_shlibpath_var=no
8232      ;;
8233
8234    newsos6)
8235      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8236      hardcode_direct=yes
8237      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8238      hardcode_libdir_separator=:
8239      hardcode_shlibpath_var=no
8240      ;;
8241
8242    *nto* | *qnx*)
8243      ;;
8244
8245    openbsd*)
8246      if test -f /usr/libexec/ld.so; then
8247	hardcode_direct=yes
8248	hardcode_shlibpath_var=no
8249	hardcode_direct_absolute=yes
8250	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8251	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8252	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8253	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8254	  export_dynamic_flag_spec='${wl}-E'
8255	else
8256	  case $host_os in
8257	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8258	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8259	     hardcode_libdir_flag_spec='-R$libdir'
8260	     ;;
8261	   *)
8262	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8263	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8264	     ;;
8265	  esac
8266	fi
8267      else
8268	ld_shlibs=no
8269      fi
8270      ;;
8271
8272    os2*)
8273      hardcode_libdir_flag_spec='-L$libdir'
8274      hardcode_minus_L=yes
8275      allow_undefined_flag=unsupported
8276      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'
8277      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8278      ;;
8279
8280    osf3*)
8281      if test "$GCC" = yes; then
8282	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8283	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'
8284      else
8285	allow_undefined_flag=' -expect_unresolved \*'
8286	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'
8287      fi
8288      archive_cmds_need_lc='no'
8289      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8290      hardcode_libdir_separator=:
8291      ;;
8292
8293    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8294      if test "$GCC" = yes; then
8295	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8296	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'
8297	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8298      else
8299	allow_undefined_flag=' -expect_unresolved \*'
8300	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'
8301	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~
8302	$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'
8303
8304	# Both c and cxx compiler support -rpath directly
8305	hardcode_libdir_flag_spec='-rpath $libdir'
8306      fi
8307      archive_cmds_need_lc='no'
8308      hardcode_libdir_separator=:
8309      ;;
8310
8311    solaris*)
8312      no_undefined_flag=' -z defs'
8313      if test "$GCC" = yes; then
8314	wlarc='${wl}'
8315	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8316	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8317	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8318      else
8319	case `$CC -V 2>&1` in
8320	*"Compilers 5.0"*)
8321	  wlarc=''
8322	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8323	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8324	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8325	  ;;
8326	*)
8327	  wlarc='${wl}'
8328	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8329	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8330	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8331	  ;;
8332	esac
8333      fi
8334      hardcode_libdir_flag_spec='-R$libdir'
8335      hardcode_shlibpath_var=no
8336      case $host_os in
8337      solaris2.[0-5] | solaris2.[0-5].*) ;;
8338      *)
8339	# The compiler driver will combine and reorder linker options,
8340	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8341	# but is careful enough not to reorder.
8342	# Supported since Solaris 2.6 (maybe 2.5.1?)
8343	if test "$GCC" = yes; then
8344	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8345	else
8346	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8347	fi
8348	;;
8349      esac
8350      link_all_deplibs=yes
8351      ;;
8352
8353    sunos4*)
8354      if test "x$host_vendor" = xsequent; then
8355	# Use $CC to link under sequent, because it throws in some extra .o
8356	# files that make .init and .fini sections work.
8357	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8358      else
8359	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8360      fi
8361      hardcode_libdir_flag_spec='-L$libdir'
8362      hardcode_direct=yes
8363      hardcode_minus_L=yes
8364      hardcode_shlibpath_var=no
8365      ;;
8366
8367    sysv4)
8368      case $host_vendor in
8369	sni)
8370	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371	  hardcode_direct=yes # is this really true???
8372	;;
8373	siemens)
8374	  ## LD is ld it makes a PLAMLIB
8375	  ## CC just makes a GrossModule.
8376	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8377	  reload_cmds='$CC -r -o $output$reload_objs'
8378	  hardcode_direct=no
8379        ;;
8380	motorola)
8381	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8383	;;
8384      esac
8385      runpath_var='LD_RUN_PATH'
8386      hardcode_shlibpath_var=no
8387      ;;
8388
8389    sysv4.3*)
8390      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391      hardcode_shlibpath_var=no
8392      export_dynamic_flag_spec='-Bexport'
8393      ;;
8394
8395    sysv4*MP*)
8396      if test -d /usr/nec; then
8397	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8398	hardcode_shlibpath_var=no
8399	runpath_var=LD_RUN_PATH
8400	hardcode_runpath_var=yes
8401	ld_shlibs=yes
8402      fi
8403      ;;
8404
8405    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8406      no_undefined_flag='${wl}-z,text'
8407      archive_cmds_need_lc=no
8408      hardcode_shlibpath_var=no
8409      runpath_var='LD_RUN_PATH'
8410
8411      if test "$GCC" = yes; then
8412	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8413	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8414      else
8415	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8416	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8417      fi
8418      ;;
8419
8420    sysv5* | sco3.2v5* | sco5v6*)
8421      # Note: We can NOT use -z defs as we might desire, because we do not
8422      # link with -lc, and that would cause any symbols used from libc to
8423      # always be unresolved, which means just about no library would
8424      # ever link correctly.  If we're not using GNU ld we use -z text
8425      # though, which does catch some bad symbols but isn't as heavy-handed
8426      # as -z defs.
8427      no_undefined_flag='${wl}-z,text'
8428      allow_undefined_flag='${wl}-z,nodefs'
8429      archive_cmds_need_lc=no
8430      hardcode_shlibpath_var=no
8431      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8432      hardcode_libdir_separator=':'
8433      link_all_deplibs=yes
8434      export_dynamic_flag_spec='${wl}-Bexport'
8435      runpath_var='LD_RUN_PATH'
8436
8437      if test "$GCC" = yes; then
8438	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8439	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8440      else
8441	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8442	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8443      fi
8444      ;;
8445
8446    uts4*)
8447      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448      hardcode_libdir_flag_spec='-L$libdir'
8449      hardcode_shlibpath_var=no
8450      ;;
8451
8452    *)
8453      ld_shlibs=no
8454      ;;
8455    esac
8456
8457    if test x$host_vendor = xsni; then
8458      case $host in
8459      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8460	export_dynamic_flag_spec='${wl}-Blargedynsym'
8461	;;
8462      esac
8463    fi
8464  fi
8465
8466{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8467$as_echo "$ld_shlibs" >&6; }
8468test "$ld_shlibs" = no && can_build_shared=no
8469
8470with_gnu_ld=$with_gnu_ld
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486#
8487# Do we need to explicitly link libc?
8488#
8489case "x$archive_cmds_need_lc" in
8490x|xyes)
8491  # Assume -lc should be added
8492  archive_cmds_need_lc=yes
8493
8494  if test "$enable_shared" = yes && test "$GCC" = yes; then
8495    case $archive_cmds in
8496    *'~'*)
8497      # FIXME: we may have to deal with multi-command sequences.
8498      ;;
8499    '$CC '*)
8500      # Test whether the compiler implicitly links with -lc since on some
8501      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8502      # to ld, don't add -lc before -lgcc.
8503      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8504$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8505      $RM conftest*
8506      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8507
8508      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8509  (eval $ac_compile) 2>&5
8510  ac_status=$?
8511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512  (exit $ac_status); } 2>conftest.err; then
8513        soname=conftest
8514        lib=conftest
8515        libobjs=conftest.$ac_objext
8516        deplibs=
8517        wl=$lt_prog_compiler_wl
8518	pic_flag=$lt_prog_compiler_pic
8519        compiler_flags=-v
8520        linker_flags=-v
8521        verstring=
8522        output_objdir=.
8523        libname=conftest
8524        lt_save_allow_undefined_flag=$allow_undefined_flag
8525        allow_undefined_flag=
8526        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8527  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8528  ac_status=$?
8529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530  (exit $ac_status); }
8531        then
8532	  archive_cmds_need_lc=no
8533        else
8534	  archive_cmds_need_lc=yes
8535        fi
8536        allow_undefined_flag=$lt_save_allow_undefined_flag
8537      else
8538        cat conftest.err 1>&5
8539      fi
8540      $RM conftest*
8541      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8542$as_echo "$archive_cmds_need_lc" >&6; }
8543      ;;
8544    esac
8545  fi
8546  ;;
8547esac
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8706$as_echo_n "checking dynamic linker characteristics... " >&6; }
8707
8708if test "$GCC" = yes; then
8709  case $host_os in
8710    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8711    *) lt_awk_arg="/^libraries:/" ;;
8712  esac
8713  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8714  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8715    # if the path contains ";" then we assume it to be the separator
8716    # otherwise default to the standard path separator (i.e. ":") - it is
8717    # assumed that no part of a normal pathname contains ";" but that should
8718    # okay in the real world where ";" in dirpaths is itself problematic.
8719    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8720  else
8721    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8722  fi
8723  # Ok, now we have the path, separated by spaces, we can step through it
8724  # and add multilib dir if necessary.
8725  lt_tmp_lt_search_path_spec=
8726  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8727  for lt_sys_path in $lt_search_path_spec; do
8728    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8729      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8730    else
8731      test -d "$lt_sys_path" && \
8732	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8733    fi
8734  done
8735  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8736BEGIN {RS=" "; FS="/|\n";} {
8737  lt_foo="";
8738  lt_count=0;
8739  for (lt_i = NF; lt_i > 0; lt_i--) {
8740    if ($lt_i != "" && $lt_i != ".") {
8741      if ($lt_i == "..") {
8742        lt_count++;
8743      } else {
8744        if (lt_count == 0) {
8745          lt_foo="/" $lt_i lt_foo;
8746        } else {
8747          lt_count--;
8748        }
8749      }
8750    }
8751  }
8752  if (lt_foo != "") { lt_freq[lt_foo]++; }
8753  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8754}'`
8755  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8756else
8757  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8758fi
8759library_names_spec=
8760libname_spec='lib$name'
8761soname_spec=
8762shrext_cmds=".so"
8763postinstall_cmds=
8764postuninstall_cmds=
8765finish_cmds=
8766finish_eval=
8767shlibpath_var=
8768shlibpath_overrides_runpath=unknown
8769version_type=none
8770dynamic_linker="$host_os ld.so"
8771sys_lib_dlsearch_path_spec="/lib /usr/lib"
8772need_lib_prefix=unknown
8773hardcode_into_libs=no
8774
8775# when you set need_version to no, make sure it does not cause -set_version
8776# flags to be left without arguments
8777need_version=unknown
8778
8779case $host_os in
8780aix3*)
8781  version_type=linux
8782  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8783  shlibpath_var=LIBPATH
8784
8785  # AIX 3 has no versioning support, so we append a major version to the name.
8786  soname_spec='${libname}${release}${shared_ext}$major'
8787  ;;
8788
8789aix[4-9]*)
8790  version_type=linux
8791  need_lib_prefix=no
8792  need_version=no
8793  hardcode_into_libs=yes
8794  if test "$host_cpu" = ia64; then
8795    # AIX 5 supports IA64
8796    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8797    shlibpath_var=LD_LIBRARY_PATH
8798  else
8799    # With GCC up to 2.95.x, collect2 would create an import file
8800    # for dependence libraries.  The import file would start with
8801    # the line `#! .'.  This would cause the generated library to
8802    # depend on `.', always an invalid library.  This was fixed in
8803    # development snapshots of GCC prior to 3.0.
8804    case $host_os in
8805      aix4 | aix4.[01] | aix4.[01].*)
8806      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8807	   echo ' yes '
8808	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8809	:
8810      else
8811	can_build_shared=no
8812      fi
8813      ;;
8814    esac
8815    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8816    # soname into executable. Probably we can add versioning support to
8817    # collect2, so additional links can be useful in future.
8818    if test "$aix_use_runtimelinking" = yes; then
8819      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8820      # instead of lib<name>.a to let people know that these are not
8821      # typical AIX shared libraries.
8822      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823    else
8824      # We preserve .a as extension for shared libraries through AIX4.2
8825      # and later when we are not doing run time linking.
8826      library_names_spec='${libname}${release}.a $libname.a'
8827      soname_spec='${libname}${release}${shared_ext}$major'
8828    fi
8829    shlibpath_var=LIBPATH
8830  fi
8831  ;;
8832
8833amigaos*)
8834  case $host_cpu in
8835  powerpc)
8836    # Since July 2007 AmigaOS4 officially supports .so libraries.
8837    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8838    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8839    ;;
8840  m68k)
8841    library_names_spec='$libname.ixlibrary $libname.a'
8842    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8843    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'
8844    ;;
8845  esac
8846  ;;
8847
8848beos*)
8849  library_names_spec='${libname}${shared_ext}'
8850  dynamic_linker="$host_os ld.so"
8851  shlibpath_var=LIBRARY_PATH
8852  ;;
8853
8854bsdi[45]*)
8855  version_type=linux
8856  need_version=no
8857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858  soname_spec='${libname}${release}${shared_ext}$major'
8859  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8860  shlibpath_var=LD_LIBRARY_PATH
8861  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8862  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8863  # the default ld.so.conf also contains /usr/contrib/lib and
8864  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8865  # libtool to hard-code these into programs
8866  ;;
8867
8868cygwin* | mingw* | pw32* | cegcc*)
8869  version_type=windows
8870  shrext_cmds=".dll"
8871  need_version=no
8872  need_lib_prefix=no
8873
8874  case $GCC,$host_os in
8875  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8876    library_names_spec='$libname.dll.a'
8877    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8878    postinstall_cmds='base_file=`basename \${file}`~
8879      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8880      dldir=$destdir/`dirname \$dlpath`~
8881      test -d \$dldir || mkdir -p \$dldir~
8882      $install_prog $dir/$dlname \$dldir/$dlname~
8883      chmod a+x \$dldir/$dlname~
8884      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8885        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8886      fi'
8887    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8888      dlpath=$dir/\$dldll~
8889       $RM \$dlpath'
8890    shlibpath_overrides_runpath=yes
8891
8892    case $host_os in
8893    cygwin*)
8894      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8895      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8896      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8897      ;;
8898    mingw* | cegcc*)
8899      # MinGW DLLs use traditional 'lib' prefix
8900      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8901      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8902      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8903        # It is most probably a Windows format PATH printed by
8904        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8905        # path with ; separators, and with drive letters. We can handle the
8906        # drive letters (cygwin fileutils understands them), so leave them,
8907        # especially as we might pass files found there to a mingw objdump,
8908        # which wouldn't understand a cygwinified path. Ahh.
8909        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8910      else
8911        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8912      fi
8913      ;;
8914    pw32*)
8915      # pw32 DLLs use 'pw' prefix rather than 'lib'
8916      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917      ;;
8918    esac
8919    ;;
8920
8921  *)
8922    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8923    ;;
8924  esac
8925  dynamic_linker='Win32 ld.exe'
8926  # FIXME: first we should search . and the directory the executable is in
8927  shlibpath_var=PATH
8928  ;;
8929
8930darwin* | rhapsody*)
8931  dynamic_linker="$host_os dyld"
8932  version_type=darwin
8933  need_lib_prefix=no
8934  need_version=no
8935  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8936  soname_spec='${libname}${release}${major}$shared_ext'
8937  shlibpath_overrides_runpath=yes
8938  shlibpath_var=DYLD_LIBRARY_PATH
8939  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8940
8941  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8942  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8943  ;;
8944
8945dgux*)
8946  version_type=linux
8947  need_lib_prefix=no
8948  need_version=no
8949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8950  soname_spec='${libname}${release}${shared_ext}$major'
8951  shlibpath_var=LD_LIBRARY_PATH
8952  ;;
8953
8954freebsd1*)
8955  dynamic_linker=no
8956  ;;
8957
8958freebsd* | dragonfly*)
8959  # DragonFly does not have aout.  When/if they implement a new
8960  # versioning mechanism, adjust this.
8961  if test -x /usr/bin/objformat; then
8962    objformat=`/usr/bin/objformat`
8963  else
8964    case $host_os in
8965    freebsd[123]*) objformat=aout ;;
8966    *) objformat=elf ;;
8967    esac
8968  fi
8969  # Handle Gentoo/FreeBSD as it was Linux
8970  case $host_vendor in
8971    gentoo)
8972      version_type=linux ;;
8973    *)
8974      version_type=freebsd-$objformat ;;
8975  esac
8976
8977  case $version_type in
8978    freebsd-elf*)
8979      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8980      need_version=no
8981      need_lib_prefix=no
8982      ;;
8983    freebsd-*)
8984      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8985      need_version=yes
8986      ;;
8987    linux)
8988      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8989      soname_spec='${libname}${release}${shared_ext}$major'
8990      need_lib_prefix=no
8991      need_version=no
8992      ;;
8993  esac
8994  shlibpath_var=LD_LIBRARY_PATH
8995  case $host_os in
8996  freebsd2*)
8997    shlibpath_overrides_runpath=yes
8998    ;;
8999  freebsd3.[01]* | freebsdelf3.[01]*)
9000    shlibpath_overrides_runpath=yes
9001    hardcode_into_libs=yes
9002    ;;
9003  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9004  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9005    shlibpath_overrides_runpath=no
9006    hardcode_into_libs=yes
9007    ;;
9008  *) # from 4.6 on, and DragonFly
9009    shlibpath_overrides_runpath=yes
9010    hardcode_into_libs=yes
9011    ;;
9012  esac
9013  ;;
9014
9015gnu*)
9016  version_type=linux
9017  need_lib_prefix=no
9018  need_version=no
9019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9020  soname_spec='${libname}${release}${shared_ext}$major'
9021  shlibpath_var=LD_LIBRARY_PATH
9022  hardcode_into_libs=yes
9023  ;;
9024
9025hpux9* | hpux10* | hpux11*)
9026  # Give a soname corresponding to the major version so that dld.sl refuses to
9027  # link against other versions.
9028  version_type=sunos
9029  need_lib_prefix=no
9030  need_version=no
9031  case $host_cpu in
9032  ia64*)
9033    shrext_cmds='.so'
9034    hardcode_into_libs=yes
9035    dynamic_linker="$host_os dld.so"
9036    shlibpath_var=LD_LIBRARY_PATH
9037    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9038    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039    soname_spec='${libname}${release}${shared_ext}$major'
9040    if test "X$HPUX_IA64_MODE" = X32; then
9041      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9042    else
9043      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9044    fi
9045    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9046    ;;
9047  hppa*64*)
9048    shrext_cmds='.sl'
9049    hardcode_into_libs=yes
9050    dynamic_linker="$host_os dld.sl"
9051    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9052    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9053    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054    soname_spec='${libname}${release}${shared_ext}$major'
9055    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9056    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9057    ;;
9058  *)
9059    shrext_cmds='.sl'
9060    dynamic_linker="$host_os dld.sl"
9061    shlibpath_var=SHLIB_PATH
9062    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9063    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064    soname_spec='${libname}${release}${shared_ext}$major'
9065    ;;
9066  esac
9067  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9068  postinstall_cmds='chmod 555 $lib'
9069  ;;
9070
9071interix[3-9]*)
9072  version_type=linux
9073  need_lib_prefix=no
9074  need_version=no
9075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9076  soname_spec='${libname}${release}${shared_ext}$major'
9077  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9078  shlibpath_var=LD_LIBRARY_PATH
9079  shlibpath_overrides_runpath=no
9080  hardcode_into_libs=yes
9081  ;;
9082
9083irix5* | irix6* | nonstopux*)
9084  case $host_os in
9085    nonstopux*) version_type=nonstopux ;;
9086    *)
9087	if test "$lt_cv_prog_gnu_ld" = yes; then
9088		version_type=linux
9089	else
9090		version_type=irix
9091	fi ;;
9092  esac
9093  need_lib_prefix=no
9094  need_version=no
9095  soname_spec='${libname}${release}${shared_ext}$major'
9096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9097  case $host_os in
9098  irix5* | nonstopux*)
9099    libsuff= shlibsuff=
9100    ;;
9101  *)
9102    case $LD in # libtool.m4 will add one of these switches to LD
9103    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9104      libsuff= shlibsuff= libmagic=32-bit;;
9105    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9106      libsuff=32 shlibsuff=N32 libmagic=N32;;
9107    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9108      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9109    *) libsuff= shlibsuff= libmagic=never-match;;
9110    esac
9111    ;;
9112  esac
9113  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9114  shlibpath_overrides_runpath=no
9115  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9116  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9117  hardcode_into_libs=yes
9118  ;;
9119
9120# No shared lib support for Linux oldld, aout, or coff.
9121linux*oldld* | linux*aout* | linux*coff*)
9122  dynamic_linker=no
9123  ;;
9124
9125# This must be Linux ELF.
9126linux* | k*bsd*-gnu)
9127  version_type=linux
9128  need_lib_prefix=no
9129  need_version=no
9130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131  soname_spec='${libname}${release}${shared_ext}$major'
9132  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9133  shlibpath_var=LD_LIBRARY_PATH
9134  shlibpath_overrides_runpath=no
9135  # Some binutils ld are patched to set DT_RUNPATH
9136  save_LDFLAGS=$LDFLAGS
9137  save_libdir=$libdir
9138  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9139       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9140  cat >conftest.$ac_ext <<_ACEOF
9141/* confdefs.h.  */
9142_ACEOF
9143cat confdefs.h >>conftest.$ac_ext
9144cat >>conftest.$ac_ext <<_ACEOF
9145/* end confdefs.h.  */
9146
9147int
9148main ()
9149{
9150
9151  ;
9152  return 0;
9153}
9154_ACEOF
9155rm -f conftest.$ac_objext conftest$ac_exeext
9156if { (ac_try="$ac_link"
9157case "(($ac_try" in
9158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159  *) ac_try_echo=$ac_try;;
9160esac
9161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9162$as_echo "$ac_try_echo") >&5
9163  (eval "$ac_link") 2>conftest.er1
9164  ac_status=$?
9165  grep -v '^ *+' conftest.er1 >conftest.err
9166  rm -f conftest.er1
9167  cat conftest.err >&5
9168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169  (exit $ac_status); } && {
9170	 test -z "$ac_c_werror_flag" ||
9171	 test ! -s conftest.err
9172       } && test -s conftest$ac_exeext && {
9173	 test "$cross_compiling" = yes ||
9174	 $as_test_x conftest$ac_exeext
9175       }; then
9176  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9177  shlibpath_overrides_runpath=yes
9178fi
9179
9180else
9181  $as_echo "$as_me: failed program was:" >&5
9182sed 's/^/| /' conftest.$ac_ext >&5
9183
9184
9185fi
9186
9187rm -rf conftest.dSYM
9188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9189      conftest$ac_exeext conftest.$ac_ext
9190  LDFLAGS=$save_LDFLAGS
9191  libdir=$save_libdir
9192
9193  # This implies no fast_install, which is unacceptable.
9194  # Some rework will be needed to allow for fast_install
9195  # before this can be enabled.
9196  hardcode_into_libs=yes
9197
9198  # Append ld.so.conf contents to the search path
9199  if test -f /etc/ld.so.conf; then
9200    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' ' '`
9201    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9202  fi
9203
9204  # We used to test for /lib/ld.so.1 and disable shared libraries on
9205  # powerpc, because MkLinux only supported shared libraries with the
9206  # GNU dynamic linker.  Since this was broken with cross compilers,
9207  # most powerpc-linux boxes support dynamic linking these days and
9208  # people can always --disable-shared, the test was removed, and we
9209  # assume the GNU/Linux dynamic linker is in use.
9210  dynamic_linker='GNU/Linux ld.so'
9211  ;;
9212
9213netbsd*)
9214  version_type=sunos
9215  need_lib_prefix=no
9216  need_version=no
9217  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9219    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9220    dynamic_linker='NetBSD (a.out) ld.so'
9221  else
9222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9223    soname_spec='${libname}${release}${shared_ext}$major'
9224    dynamic_linker='NetBSD ld.elf_so'
9225  fi
9226  shlibpath_var=LD_LIBRARY_PATH
9227  shlibpath_overrides_runpath=yes
9228  hardcode_into_libs=yes
9229  ;;
9230
9231newsos6)
9232  version_type=linux
9233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234  shlibpath_var=LD_LIBRARY_PATH
9235  shlibpath_overrides_runpath=yes
9236  ;;
9237
9238*nto* | *qnx*)
9239  version_type=qnx
9240  need_lib_prefix=no
9241  need_version=no
9242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243  soname_spec='${libname}${release}${shared_ext}$major'
9244  shlibpath_var=LD_LIBRARY_PATH
9245  shlibpath_overrides_runpath=no
9246  hardcode_into_libs=yes
9247  dynamic_linker='ldqnx.so'
9248  ;;
9249
9250openbsd*)
9251  version_type=sunos
9252  sys_lib_dlsearch_path_spec="/usr/lib"
9253  need_lib_prefix=no
9254  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9255  case $host_os in
9256    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9257    *)				need_version=no  ;;
9258  esac
9259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9260  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9261  shlibpath_var=LD_LIBRARY_PATH
9262  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9263    case $host_os in
9264      openbsd2.[89] | openbsd2.[89].*)
9265	shlibpath_overrides_runpath=no
9266	;;
9267      *)
9268	shlibpath_overrides_runpath=yes
9269	;;
9270      esac
9271  else
9272    shlibpath_overrides_runpath=yes
9273  fi
9274  ;;
9275
9276os2*)
9277  libname_spec='$name'
9278  shrext_cmds=".dll"
9279  need_lib_prefix=no
9280  library_names_spec='$libname${shared_ext} $libname.a'
9281  dynamic_linker='OS/2 ld.exe'
9282  shlibpath_var=LIBPATH
9283  ;;
9284
9285osf3* | osf4* | osf5*)
9286  version_type=osf
9287  need_lib_prefix=no
9288  need_version=no
9289  soname_spec='${libname}${release}${shared_ext}$major'
9290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291  shlibpath_var=LD_LIBRARY_PATH
9292  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9293  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9294  ;;
9295
9296rdos*)
9297  dynamic_linker=no
9298  ;;
9299
9300solaris*)
9301  version_type=linux
9302  need_lib_prefix=no
9303  need_version=no
9304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305  soname_spec='${libname}${release}${shared_ext}$major'
9306  shlibpath_var=LD_LIBRARY_PATH
9307  shlibpath_overrides_runpath=yes
9308  hardcode_into_libs=yes
9309  # ldd complains unless libraries are executable
9310  postinstall_cmds='chmod +x $lib'
9311  ;;
9312
9313sunos4*)
9314  version_type=sunos
9315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9316  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9317  shlibpath_var=LD_LIBRARY_PATH
9318  shlibpath_overrides_runpath=yes
9319  if test "$with_gnu_ld" = yes; then
9320    need_lib_prefix=no
9321  fi
9322  need_version=yes
9323  ;;
9324
9325sysv4 | sysv4.3*)
9326  version_type=linux
9327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328  soname_spec='${libname}${release}${shared_ext}$major'
9329  shlibpath_var=LD_LIBRARY_PATH
9330  case $host_vendor in
9331    sni)
9332      shlibpath_overrides_runpath=no
9333      need_lib_prefix=no
9334      runpath_var=LD_RUN_PATH
9335      ;;
9336    siemens)
9337      need_lib_prefix=no
9338      ;;
9339    motorola)
9340      need_lib_prefix=no
9341      need_version=no
9342      shlibpath_overrides_runpath=no
9343      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9344      ;;
9345  esac
9346  ;;
9347
9348sysv4*MP*)
9349  if test -d /usr/nec ;then
9350    version_type=linux
9351    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9352    soname_spec='$libname${shared_ext}.$major'
9353    shlibpath_var=LD_LIBRARY_PATH
9354  fi
9355  ;;
9356
9357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9358  version_type=freebsd-elf
9359  need_lib_prefix=no
9360  need_version=no
9361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9362  soname_spec='${libname}${release}${shared_ext}$major'
9363  shlibpath_var=LD_LIBRARY_PATH
9364  shlibpath_overrides_runpath=yes
9365  hardcode_into_libs=yes
9366  if test "$with_gnu_ld" = yes; then
9367    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9368  else
9369    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9370    case $host_os in
9371      sco3.2v5*)
9372        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9373	;;
9374    esac
9375  fi
9376  sys_lib_dlsearch_path_spec='/usr/lib'
9377  ;;
9378
9379tpf*)
9380  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9381  version_type=linux
9382  need_lib_prefix=no
9383  need_version=no
9384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385  shlibpath_var=LD_LIBRARY_PATH
9386  shlibpath_overrides_runpath=no
9387  hardcode_into_libs=yes
9388  ;;
9389
9390uts4*)
9391  version_type=linux
9392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393  soname_spec='${libname}${release}${shared_ext}$major'
9394  shlibpath_var=LD_LIBRARY_PATH
9395  ;;
9396
9397*)
9398  dynamic_linker=no
9399  ;;
9400esac
9401{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9402$as_echo "$dynamic_linker" >&6; }
9403test "$dynamic_linker" = no && can_build_shared=no
9404
9405variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9406if test "$GCC" = yes; then
9407  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9408fi
9409
9410if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9411  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9412fi
9413if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9414  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9415fi
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9504$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9505hardcode_action=
9506if test -n "$hardcode_libdir_flag_spec" ||
9507   test -n "$runpath_var" ||
9508   test "X$hardcode_automatic" = "Xyes" ; then
9509
9510  # We can hardcode non-existent directories.
9511  if test "$hardcode_direct" != no &&
9512     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9513     # have to relink, otherwise we might link with an installed library
9514     # when we should be linking with a yet-to-be-installed one
9515     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9516     test "$hardcode_minus_L" != no; then
9517    # Linking always hardcodes the temporary library directory.
9518    hardcode_action=relink
9519  else
9520    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9521    hardcode_action=immediate
9522  fi
9523else
9524  # We cannot hardcode anything, or else we can only hardcode existing
9525  # directories.
9526  hardcode_action=unsupported
9527fi
9528{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9529$as_echo "$hardcode_action" >&6; }
9530
9531if test "$hardcode_action" = relink ||
9532   test "$inherit_rpath" = yes; then
9533  # Fast installation is not supported
9534  enable_fast_install=no
9535elif test "$shlibpath_overrides_runpath" = yes ||
9536     test "$enable_shared" = no; then
9537  # Fast installation is not necessary
9538  enable_fast_install=needless
9539fi
9540
9541
9542
9543
9544
9545
9546  if test "x$enable_dlopen" != xyes; then
9547  enable_dlopen=unknown
9548  enable_dlopen_self=unknown
9549  enable_dlopen_self_static=unknown
9550else
9551  lt_cv_dlopen=no
9552  lt_cv_dlopen_libs=
9553
9554  case $host_os in
9555  beos*)
9556    lt_cv_dlopen="load_add_on"
9557    lt_cv_dlopen_libs=
9558    lt_cv_dlopen_self=yes
9559    ;;
9560
9561  mingw* | pw32* | cegcc*)
9562    lt_cv_dlopen="LoadLibrary"
9563    lt_cv_dlopen_libs=
9564    ;;
9565
9566  cygwin*)
9567    lt_cv_dlopen="dlopen"
9568    lt_cv_dlopen_libs=
9569    ;;
9570
9571  darwin*)
9572  # if libdl is installed we need to link against it
9573    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9574$as_echo_n "checking for dlopen in -ldl... " >&6; }
9575if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9576  $as_echo_n "(cached) " >&6
9577else
9578  ac_check_lib_save_LIBS=$LIBS
9579LIBS="-ldl  $LIBS"
9580cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h.  */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h.  */
9586
9587/* Override any GCC internal prototype to avoid an error.
9588   Use char because int might match the return type of a GCC
9589   builtin and then its argument prototype would still apply.  */
9590#ifdef __cplusplus
9591extern "C"
9592#endif
9593char dlopen ();
9594int
9595main ()
9596{
9597return dlopen ();
9598  ;
9599  return 0;
9600}
9601_ACEOF
9602rm -f conftest.$ac_objext conftest$ac_exeext
9603if { (ac_try="$ac_link"
9604case "(($ac_try" in
9605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606  *) ac_try_echo=$ac_try;;
9607esac
9608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9609$as_echo "$ac_try_echo") >&5
9610  (eval "$ac_link") 2>conftest.er1
9611  ac_status=$?
9612  grep -v '^ *+' conftest.er1 >conftest.err
9613  rm -f conftest.er1
9614  cat conftest.err >&5
9615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616  (exit $ac_status); } && {
9617	 test -z "$ac_c_werror_flag" ||
9618	 test ! -s conftest.err
9619       } && test -s conftest$ac_exeext && {
9620	 test "$cross_compiling" = yes ||
9621	 $as_test_x conftest$ac_exeext
9622       }; then
9623  ac_cv_lib_dl_dlopen=yes
9624else
9625  $as_echo "$as_me: failed program was:" >&5
9626sed 's/^/| /' conftest.$ac_ext >&5
9627
9628	ac_cv_lib_dl_dlopen=no
9629fi
9630
9631rm -rf conftest.dSYM
9632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633      conftest$ac_exeext conftest.$ac_ext
9634LIBS=$ac_check_lib_save_LIBS
9635fi
9636{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9637$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9638if test $ac_cv_lib_dl_dlopen = yes; then
9639  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9640else
9641
9642    lt_cv_dlopen="dyld"
9643    lt_cv_dlopen_libs=
9644    lt_cv_dlopen_self=yes
9645
9646fi
9647
9648    ;;
9649
9650  *)
9651    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9652$as_echo_n "checking for shl_load... " >&6; }
9653if test "${ac_cv_func_shl_load+set}" = set; then
9654  $as_echo_n "(cached) " >&6
9655else
9656  cat >conftest.$ac_ext <<_ACEOF
9657/* confdefs.h.  */
9658_ACEOF
9659cat confdefs.h >>conftest.$ac_ext
9660cat >>conftest.$ac_ext <<_ACEOF
9661/* end confdefs.h.  */
9662/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9663   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9664#define shl_load innocuous_shl_load
9665
9666/* System header to define __stub macros and hopefully few prototypes,
9667    which can conflict with char shl_load (); below.
9668    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9669    <limits.h> exists even on freestanding compilers.  */
9670
9671#ifdef __STDC__
9672# include <limits.h>
9673#else
9674# include <assert.h>
9675#endif
9676
9677#undef shl_load
9678
9679/* Override any GCC internal prototype to avoid an error.
9680   Use char because int might match the return type of a GCC
9681   builtin and then its argument prototype would still apply.  */
9682#ifdef __cplusplus
9683extern "C"
9684#endif
9685char shl_load ();
9686/* The GNU C library defines this for functions which it implements
9687    to always fail with ENOSYS.  Some functions are actually named
9688    something starting with __ and the normal name is an alias.  */
9689#if defined __stub_shl_load || defined __stub___shl_load
9690choke me
9691#endif
9692
9693int
9694main ()
9695{
9696return shl_load ();
9697  ;
9698  return 0;
9699}
9700_ACEOF
9701rm -f conftest.$ac_objext conftest$ac_exeext
9702if { (ac_try="$ac_link"
9703case "(($ac_try" in
9704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705  *) ac_try_echo=$ac_try;;
9706esac
9707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9708$as_echo "$ac_try_echo") >&5
9709  (eval "$ac_link") 2>conftest.er1
9710  ac_status=$?
9711  grep -v '^ *+' conftest.er1 >conftest.err
9712  rm -f conftest.er1
9713  cat conftest.err >&5
9714  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715  (exit $ac_status); } && {
9716	 test -z "$ac_c_werror_flag" ||
9717	 test ! -s conftest.err
9718       } && test -s conftest$ac_exeext && {
9719	 test "$cross_compiling" = yes ||
9720	 $as_test_x conftest$ac_exeext
9721       }; then
9722  ac_cv_func_shl_load=yes
9723else
9724  $as_echo "$as_me: failed program was:" >&5
9725sed 's/^/| /' conftest.$ac_ext >&5
9726
9727	ac_cv_func_shl_load=no
9728fi
9729
9730rm -rf conftest.dSYM
9731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9732      conftest$ac_exeext conftest.$ac_ext
9733fi
9734{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9735$as_echo "$ac_cv_func_shl_load" >&6; }
9736if test $ac_cv_func_shl_load = yes; then
9737  lt_cv_dlopen="shl_load"
9738else
9739  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9740$as_echo_n "checking for shl_load in -ldld... " >&6; }
9741if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9742  $as_echo_n "(cached) " >&6
9743else
9744  ac_check_lib_save_LIBS=$LIBS
9745LIBS="-ldld  $LIBS"
9746cat >conftest.$ac_ext <<_ACEOF
9747/* confdefs.h.  */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h.  */
9752
9753/* Override any GCC internal prototype to avoid an error.
9754   Use char because int might match the return type of a GCC
9755   builtin and then its argument prototype would still apply.  */
9756#ifdef __cplusplus
9757extern "C"
9758#endif
9759char shl_load ();
9760int
9761main ()
9762{
9763return shl_load ();
9764  ;
9765  return 0;
9766}
9767_ACEOF
9768rm -f conftest.$ac_objext conftest$ac_exeext
9769if { (ac_try="$ac_link"
9770case "(($ac_try" in
9771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772  *) ac_try_echo=$ac_try;;
9773esac
9774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9775$as_echo "$ac_try_echo") >&5
9776  (eval "$ac_link") 2>conftest.er1
9777  ac_status=$?
9778  grep -v '^ *+' conftest.er1 >conftest.err
9779  rm -f conftest.er1
9780  cat conftest.err >&5
9781  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782  (exit $ac_status); } && {
9783	 test -z "$ac_c_werror_flag" ||
9784	 test ! -s conftest.err
9785       } && test -s conftest$ac_exeext && {
9786	 test "$cross_compiling" = yes ||
9787	 $as_test_x conftest$ac_exeext
9788       }; then
9789  ac_cv_lib_dld_shl_load=yes
9790else
9791  $as_echo "$as_me: failed program was:" >&5
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
9794	ac_cv_lib_dld_shl_load=no
9795fi
9796
9797rm -rf conftest.dSYM
9798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9799      conftest$ac_exeext conftest.$ac_ext
9800LIBS=$ac_check_lib_save_LIBS
9801fi
9802{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9803$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9804if test $ac_cv_lib_dld_shl_load = yes; then
9805  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9806else
9807  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9808$as_echo_n "checking for dlopen... " >&6; }
9809if test "${ac_cv_func_dlopen+set}" = set; then
9810  $as_echo_n "(cached) " >&6
9811else
9812  cat >conftest.$ac_ext <<_ACEOF
9813/* confdefs.h.  */
9814_ACEOF
9815cat confdefs.h >>conftest.$ac_ext
9816cat >>conftest.$ac_ext <<_ACEOF
9817/* end confdefs.h.  */
9818/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9819   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9820#define dlopen innocuous_dlopen
9821
9822/* System header to define __stub macros and hopefully few prototypes,
9823    which can conflict with char dlopen (); below.
9824    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9825    <limits.h> exists even on freestanding compilers.  */
9826
9827#ifdef __STDC__
9828# include <limits.h>
9829#else
9830# include <assert.h>
9831#endif
9832
9833#undef dlopen
9834
9835/* Override any GCC internal prototype to avoid an error.
9836   Use char because int might match the return type of a GCC
9837   builtin and then its argument prototype would still apply.  */
9838#ifdef __cplusplus
9839extern "C"
9840#endif
9841char dlopen ();
9842/* The GNU C library defines this for functions which it implements
9843    to always fail with ENOSYS.  Some functions are actually named
9844    something starting with __ and the normal name is an alias.  */
9845#if defined __stub_dlopen || defined __stub___dlopen
9846choke me
9847#endif
9848
9849int
9850main ()
9851{
9852return dlopen ();
9853  ;
9854  return 0;
9855}
9856_ACEOF
9857rm -f conftest.$ac_objext conftest$ac_exeext
9858if { (ac_try="$ac_link"
9859case "(($ac_try" in
9860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861  *) ac_try_echo=$ac_try;;
9862esac
9863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9864$as_echo "$ac_try_echo") >&5
9865  (eval "$ac_link") 2>conftest.er1
9866  ac_status=$?
9867  grep -v '^ *+' conftest.er1 >conftest.err
9868  rm -f conftest.er1
9869  cat conftest.err >&5
9870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871  (exit $ac_status); } && {
9872	 test -z "$ac_c_werror_flag" ||
9873	 test ! -s conftest.err
9874       } && test -s conftest$ac_exeext && {
9875	 test "$cross_compiling" = yes ||
9876	 $as_test_x conftest$ac_exeext
9877       }; then
9878  ac_cv_func_dlopen=yes
9879else
9880  $as_echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883	ac_cv_func_dlopen=no
9884fi
9885
9886rm -rf conftest.dSYM
9887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9888      conftest$ac_exeext conftest.$ac_ext
9889fi
9890{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9891$as_echo "$ac_cv_func_dlopen" >&6; }
9892if test $ac_cv_func_dlopen = yes; then
9893  lt_cv_dlopen="dlopen"
9894else
9895  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9896$as_echo_n "checking for dlopen in -ldl... " >&6; }
9897if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9898  $as_echo_n "(cached) " >&6
9899else
9900  ac_check_lib_save_LIBS=$LIBS
9901LIBS="-ldl  $LIBS"
9902cat >conftest.$ac_ext <<_ACEOF
9903/* confdefs.h.  */
9904_ACEOF
9905cat confdefs.h >>conftest.$ac_ext
9906cat >>conftest.$ac_ext <<_ACEOF
9907/* end confdefs.h.  */
9908
9909/* Override any GCC internal prototype to avoid an error.
9910   Use char because int might match the return type of a GCC
9911   builtin and then its argument prototype would still apply.  */
9912#ifdef __cplusplus
9913extern "C"
9914#endif
9915char dlopen ();
9916int
9917main ()
9918{
9919return dlopen ();
9920  ;
9921  return 0;
9922}
9923_ACEOF
9924rm -f conftest.$ac_objext conftest$ac_exeext
9925if { (ac_try="$ac_link"
9926case "(($ac_try" in
9927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928  *) ac_try_echo=$ac_try;;
9929esac
9930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9931$as_echo "$ac_try_echo") >&5
9932  (eval "$ac_link") 2>conftest.er1
9933  ac_status=$?
9934  grep -v '^ *+' conftest.er1 >conftest.err
9935  rm -f conftest.er1
9936  cat conftest.err >&5
9937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938  (exit $ac_status); } && {
9939	 test -z "$ac_c_werror_flag" ||
9940	 test ! -s conftest.err
9941       } && test -s conftest$ac_exeext && {
9942	 test "$cross_compiling" = yes ||
9943	 $as_test_x conftest$ac_exeext
9944       }; then
9945  ac_cv_lib_dl_dlopen=yes
9946else
9947  $as_echo "$as_me: failed program was:" >&5
9948sed 's/^/| /' conftest.$ac_ext >&5
9949
9950	ac_cv_lib_dl_dlopen=no
9951fi
9952
9953rm -rf conftest.dSYM
9954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9955      conftest$ac_exeext conftest.$ac_ext
9956LIBS=$ac_check_lib_save_LIBS
9957fi
9958{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9959$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9960if test $ac_cv_lib_dl_dlopen = yes; then
9961  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9962else
9963  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9964$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9965if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9966  $as_echo_n "(cached) " >&6
9967else
9968  ac_check_lib_save_LIBS=$LIBS
9969LIBS="-lsvld  $LIBS"
9970cat >conftest.$ac_ext <<_ACEOF
9971/* confdefs.h.  */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
9975/* end confdefs.h.  */
9976
9977/* Override any GCC internal prototype to avoid an error.
9978   Use char because int might match the return type of a GCC
9979   builtin and then its argument prototype would still apply.  */
9980#ifdef __cplusplus
9981extern "C"
9982#endif
9983char dlopen ();
9984int
9985main ()
9986{
9987return dlopen ();
9988  ;
9989  return 0;
9990}
9991_ACEOF
9992rm -f conftest.$ac_objext conftest$ac_exeext
9993if { (ac_try="$ac_link"
9994case "(($ac_try" in
9995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996  *) ac_try_echo=$ac_try;;
9997esac
9998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999$as_echo "$ac_try_echo") >&5
10000  (eval "$ac_link") 2>conftest.er1
10001  ac_status=$?
10002  grep -v '^ *+' conftest.er1 >conftest.err
10003  rm -f conftest.er1
10004  cat conftest.err >&5
10005  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006  (exit $ac_status); } && {
10007	 test -z "$ac_c_werror_flag" ||
10008	 test ! -s conftest.err
10009       } && test -s conftest$ac_exeext && {
10010	 test "$cross_compiling" = yes ||
10011	 $as_test_x conftest$ac_exeext
10012       }; then
10013  ac_cv_lib_svld_dlopen=yes
10014else
10015  $as_echo "$as_me: failed program was:" >&5
10016sed 's/^/| /' conftest.$ac_ext >&5
10017
10018	ac_cv_lib_svld_dlopen=no
10019fi
10020
10021rm -rf conftest.dSYM
10022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10023      conftest$ac_exeext conftest.$ac_ext
10024LIBS=$ac_check_lib_save_LIBS
10025fi
10026{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10027$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10028if test $ac_cv_lib_svld_dlopen = yes; then
10029  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10030else
10031  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10032$as_echo_n "checking for dld_link in -ldld... " >&6; }
10033if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10034  $as_echo_n "(cached) " >&6
10035else
10036  ac_check_lib_save_LIBS=$LIBS
10037LIBS="-ldld  $LIBS"
10038cat >conftest.$ac_ext <<_ACEOF
10039/* confdefs.h.  */
10040_ACEOF
10041cat confdefs.h >>conftest.$ac_ext
10042cat >>conftest.$ac_ext <<_ACEOF
10043/* end confdefs.h.  */
10044
10045/* Override any GCC internal prototype to avoid an error.
10046   Use char because int might match the return type of a GCC
10047   builtin and then its argument prototype would still apply.  */
10048#ifdef __cplusplus
10049extern "C"
10050#endif
10051char dld_link ();
10052int
10053main ()
10054{
10055return dld_link ();
10056  ;
10057  return 0;
10058}
10059_ACEOF
10060rm -f conftest.$ac_objext conftest$ac_exeext
10061if { (ac_try="$ac_link"
10062case "(($ac_try" in
10063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064  *) ac_try_echo=$ac_try;;
10065esac
10066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10067$as_echo "$ac_try_echo") >&5
10068  (eval "$ac_link") 2>conftest.er1
10069  ac_status=$?
10070  grep -v '^ *+' conftest.er1 >conftest.err
10071  rm -f conftest.er1
10072  cat conftest.err >&5
10073  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074  (exit $ac_status); } && {
10075	 test -z "$ac_c_werror_flag" ||
10076	 test ! -s conftest.err
10077       } && test -s conftest$ac_exeext && {
10078	 test "$cross_compiling" = yes ||
10079	 $as_test_x conftest$ac_exeext
10080       }; then
10081  ac_cv_lib_dld_dld_link=yes
10082else
10083  $as_echo "$as_me: failed program was:" >&5
10084sed 's/^/| /' conftest.$ac_ext >&5
10085
10086	ac_cv_lib_dld_dld_link=no
10087fi
10088
10089rm -rf conftest.dSYM
10090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10091      conftest$ac_exeext conftest.$ac_ext
10092LIBS=$ac_check_lib_save_LIBS
10093fi
10094{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10095$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10096if test $ac_cv_lib_dld_dld_link = yes; then
10097  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10098fi
10099
10100
10101fi
10102
10103
10104fi
10105
10106
10107fi
10108
10109
10110fi
10111
10112
10113fi
10114
10115    ;;
10116  esac
10117
10118  if test "x$lt_cv_dlopen" != xno; then
10119    enable_dlopen=yes
10120  else
10121    enable_dlopen=no
10122  fi
10123
10124  case $lt_cv_dlopen in
10125  dlopen)
10126    save_CPPFLAGS="$CPPFLAGS"
10127    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10128
10129    save_LDFLAGS="$LDFLAGS"
10130    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10131
10132    save_LIBS="$LIBS"
10133    LIBS="$lt_cv_dlopen_libs $LIBS"
10134
10135    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10136$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10137if test "${lt_cv_dlopen_self+set}" = set; then
10138  $as_echo_n "(cached) " >&6
10139else
10140  	  if test "$cross_compiling" = yes; then :
10141  lt_cv_dlopen_self=cross
10142else
10143  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10144  lt_status=$lt_dlunknown
10145  cat > conftest.$ac_ext <<_LT_EOF
10146#line 10146 "configure"
10147#include "confdefs.h"
10148
10149#if HAVE_DLFCN_H
10150#include <dlfcn.h>
10151#endif
10152
10153#include <stdio.h>
10154
10155#ifdef RTLD_GLOBAL
10156#  define LT_DLGLOBAL		RTLD_GLOBAL
10157#else
10158#  ifdef DL_GLOBAL
10159#    define LT_DLGLOBAL		DL_GLOBAL
10160#  else
10161#    define LT_DLGLOBAL		0
10162#  endif
10163#endif
10164
10165/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10166   find out it does not work in some platform. */
10167#ifndef LT_DLLAZY_OR_NOW
10168#  ifdef RTLD_LAZY
10169#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10170#  else
10171#    ifdef DL_LAZY
10172#      define LT_DLLAZY_OR_NOW		DL_LAZY
10173#    else
10174#      ifdef RTLD_NOW
10175#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10176#      else
10177#        ifdef DL_NOW
10178#          define LT_DLLAZY_OR_NOW	DL_NOW
10179#        else
10180#          define LT_DLLAZY_OR_NOW	0
10181#        endif
10182#      endif
10183#    endif
10184#  endif
10185#endif
10186
10187void fnord() { int i=42;}
10188int main ()
10189{
10190  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10191  int status = $lt_dlunknown;
10192
10193  if (self)
10194    {
10195      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10196      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10197      /* dlclose (self); */
10198    }
10199  else
10200    puts (dlerror ());
10201
10202  return status;
10203}
10204_LT_EOF
10205  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206  (eval $ac_link) 2>&5
10207  ac_status=$?
10208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10210    (./conftest; exit; ) >&5 2>/dev/null
10211    lt_status=$?
10212    case x$lt_status in
10213      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10214      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10215      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10216    esac
10217  else :
10218    # compilation failed
10219    lt_cv_dlopen_self=no
10220  fi
10221fi
10222rm -fr conftest*
10223
10224
10225fi
10226{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10227$as_echo "$lt_cv_dlopen_self" >&6; }
10228
10229    if test "x$lt_cv_dlopen_self" = xyes; then
10230      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10231      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10232$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10233if test "${lt_cv_dlopen_self_static+set}" = set; then
10234  $as_echo_n "(cached) " >&6
10235else
10236  	  if test "$cross_compiling" = yes; then :
10237  lt_cv_dlopen_self_static=cross
10238else
10239  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10240  lt_status=$lt_dlunknown
10241  cat > conftest.$ac_ext <<_LT_EOF
10242#line 10242 "configure"
10243#include "confdefs.h"
10244
10245#if HAVE_DLFCN_H
10246#include <dlfcn.h>
10247#endif
10248
10249#include <stdio.h>
10250
10251#ifdef RTLD_GLOBAL
10252#  define LT_DLGLOBAL		RTLD_GLOBAL
10253#else
10254#  ifdef DL_GLOBAL
10255#    define LT_DLGLOBAL		DL_GLOBAL
10256#  else
10257#    define LT_DLGLOBAL		0
10258#  endif
10259#endif
10260
10261/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10262   find out it does not work in some platform. */
10263#ifndef LT_DLLAZY_OR_NOW
10264#  ifdef RTLD_LAZY
10265#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10266#  else
10267#    ifdef DL_LAZY
10268#      define LT_DLLAZY_OR_NOW		DL_LAZY
10269#    else
10270#      ifdef RTLD_NOW
10271#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10272#      else
10273#        ifdef DL_NOW
10274#          define LT_DLLAZY_OR_NOW	DL_NOW
10275#        else
10276#          define LT_DLLAZY_OR_NOW	0
10277#        endif
10278#      endif
10279#    endif
10280#  endif
10281#endif
10282
10283void fnord() { int i=42;}
10284int main ()
10285{
10286  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10287  int status = $lt_dlunknown;
10288
10289  if (self)
10290    {
10291      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10292      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10293      /* dlclose (self); */
10294    }
10295  else
10296    puts (dlerror ());
10297
10298  return status;
10299}
10300_LT_EOF
10301  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10302  (eval $ac_link) 2>&5
10303  ac_status=$?
10304  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10306    (./conftest; exit; ) >&5 2>/dev/null
10307    lt_status=$?
10308    case x$lt_status in
10309      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10310      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10311      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10312    esac
10313  else :
10314    # compilation failed
10315    lt_cv_dlopen_self_static=no
10316  fi
10317fi
10318rm -fr conftest*
10319
10320
10321fi
10322{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10323$as_echo "$lt_cv_dlopen_self_static" >&6; }
10324    fi
10325
10326    CPPFLAGS="$save_CPPFLAGS"
10327    LDFLAGS="$save_LDFLAGS"
10328    LIBS="$save_LIBS"
10329    ;;
10330  esac
10331
10332  case $lt_cv_dlopen_self in
10333  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10334  *) enable_dlopen_self=unknown ;;
10335  esac
10336
10337  case $lt_cv_dlopen_self_static in
10338  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10339  *) enable_dlopen_self_static=unknown ;;
10340  esac
10341fi
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359striplib=
10360old_striplib=
10361{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10362$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10363if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10364  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10365  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10366  { $as_echo "$as_me:$LINENO: result: yes" >&5
10367$as_echo "yes" >&6; }
10368else
10369# FIXME - insert some real tests, host_os isn't really good enough
10370  case $host_os in
10371  darwin*)
10372    if test -n "$STRIP" ; then
10373      striplib="$STRIP -x"
10374      old_striplib="$STRIP -S"
10375      { $as_echo "$as_me:$LINENO: result: yes" >&5
10376$as_echo "yes" >&6; }
10377    else
10378      { $as_echo "$as_me:$LINENO: result: no" >&5
10379$as_echo "no" >&6; }
10380    fi
10381    ;;
10382  *)
10383    { $as_echo "$as_me:$LINENO: result: no" >&5
10384$as_echo "no" >&6; }
10385    ;;
10386  esac
10387fi
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400  # Report which library types will actually be built
10401  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10402$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10403  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10404$as_echo "$can_build_shared" >&6; }
10405
10406  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10407$as_echo_n "checking whether to build shared libraries... " >&6; }
10408  test "$can_build_shared" = "no" && enable_shared=no
10409
10410  # On AIX, shared libraries and static libraries use the same namespace, and
10411  # are all built from PIC.
10412  case $host_os in
10413  aix3*)
10414    test "$enable_shared" = yes && enable_static=no
10415    if test -n "$RANLIB"; then
10416      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10417      postinstall_cmds='$RANLIB $lib'
10418    fi
10419    ;;
10420
10421  aix[4-9]*)
10422    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10423      test "$enable_shared" = yes && enable_static=no
10424    fi
10425    ;;
10426  esac
10427  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10428$as_echo "$enable_shared" >&6; }
10429
10430  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10431$as_echo_n "checking whether to build static libraries... " >&6; }
10432  # Make sure either enable_shared or enable_static is yes.
10433  test "$enable_shared" = yes || enable_static=yes
10434  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10435$as_echo "$enable_static" >&6; }
10436
10437
10438
10439
10440fi
10441ac_ext=c
10442ac_cpp='$CPP $CPPFLAGS'
10443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10445ac_compiler_gnu=$ac_cv_c_compiler_gnu
10446
10447CC="$lt_save_CC"
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461        ac_config_commands="$ac_config_commands libtool"
10462
10463
10464
10465
10466# Only expand once:
10467
10468
10469# Find a good install program.  We prefer a C program (faster),
10470# so one script is as good as another.  But avoid the broken or
10471# incompatible versions:
10472# SysV /etc/install, /usr/sbin/install
10473# SunOS /usr/etc/install
10474# IRIX /sbin/install
10475# AIX /bin/install
10476# AmigaOS /C/install, which installs bootblocks on floppy discs
10477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10478# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10480# OS/2's system install, which has a completely different semantic
10481# ./install, which can be erroneously created by make from ./install.sh.
10482# Reject install programs that cannot install multiple files.
10483{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10484$as_echo_n "checking for a BSD-compatible install... " >&6; }
10485if test -z "$INSTALL"; then
10486if test "${ac_cv_path_install+set}" = set; then
10487  $as_echo_n "(cached) " >&6
10488else
10489  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490for as_dir in $PATH
10491do
10492  IFS=$as_save_IFS
10493  test -z "$as_dir" && as_dir=.
10494  # Account for people who put trailing slashes in PATH elements.
10495case $as_dir/ in
10496  ./ | .// | /cC/* | \
10497  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10498  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10499  /usr/ucb/* ) ;;
10500  *)
10501    # OSF1 and SCO ODT 3.0 have their own names for install.
10502    # Don't use installbsd from OSF since it installs stuff as root
10503    # by default.
10504    for ac_prog in ginstall scoinst install; do
10505      for ac_exec_ext in '' $ac_executable_extensions; do
10506	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10507	  if test $ac_prog = install &&
10508	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10509	    # AIX install.  It has an incompatible calling convention.
10510	    :
10511	  elif test $ac_prog = install &&
10512	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10513	    # program-specific install script used by HP pwplus--don't use.
10514	    :
10515	  else
10516	    rm -rf conftest.one conftest.two conftest.dir
10517	    echo one > conftest.one
10518	    echo two > conftest.two
10519	    mkdir conftest.dir
10520	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10521	      test -s conftest.one && test -s conftest.two &&
10522	      test -s conftest.dir/conftest.one &&
10523	      test -s conftest.dir/conftest.two
10524	    then
10525	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10526	      break 3
10527	    fi
10528	  fi
10529	fi
10530      done
10531    done
10532    ;;
10533esac
10534
10535done
10536IFS=$as_save_IFS
10537
10538rm -rf conftest.one conftest.two conftest.dir
10539
10540fi
10541  if test "${ac_cv_path_install+set}" = set; then
10542    INSTALL=$ac_cv_path_install
10543  else
10544    # As a last resort, use the slow shell script.  Don't cache a
10545    # value for INSTALL within a source directory, because that will
10546    # break other packages using the cache if that directory is
10547    # removed, or if the value is a relative name.
10548    INSTALL=$ac_install_sh
10549  fi
10550fi
10551{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10552$as_echo "$INSTALL" >&6; }
10553
10554# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10555# It thinks the first close brace ends the variable substitution.
10556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10557
10558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10559
10560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10561
10562for ac_prog in gawk mawk nawk awk
10563do
10564  # Extract the first word of "$ac_prog", so it can be a program name with args.
10565set dummy $ac_prog; ac_word=$2
10566{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10567$as_echo_n "checking for $ac_word... " >&6; }
10568if test "${ac_cv_prog_AWK+set}" = set; then
10569  $as_echo_n "(cached) " >&6
10570else
10571  if test -n "$AWK"; then
10572  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10573else
10574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575for as_dir in $PATH
10576do
10577  IFS=$as_save_IFS
10578  test -z "$as_dir" && as_dir=.
10579  for ac_exec_ext in '' $ac_executable_extensions; do
10580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10581    ac_cv_prog_AWK="$ac_prog"
10582    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10583    break 2
10584  fi
10585done
10586done
10587IFS=$as_save_IFS
10588
10589fi
10590fi
10591AWK=$ac_cv_prog_AWK
10592if test -n "$AWK"; then
10593  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10594$as_echo "$AWK" >&6; }
10595else
10596  { $as_echo "$as_me:$LINENO: result: no" >&5
10597$as_echo "no" >&6; }
10598fi
10599
10600
10601  test -n "$AWK" && break
10602done
10603
10604
10605#########
10606# Enable large file support (if special flags are necessary)
10607#
10608# Check whether --enable-largefile was given.
10609if test "${enable_largefile+set}" = set; then
10610  enableval=$enable_largefile;
10611fi
10612
10613if test "$enable_largefile" != no; then
10614
10615  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10616$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10617if test "${ac_cv_sys_largefile_CC+set}" = set; then
10618  $as_echo_n "(cached) " >&6
10619else
10620  ac_cv_sys_largefile_CC=no
10621     if test "$GCC" != yes; then
10622       ac_save_CC=$CC
10623       while :; do
10624	 # IRIX 6.2 and later do not support large files by default,
10625	 # so use the C compiler's -n32 option if that helps.
10626	 cat >conftest.$ac_ext <<_ACEOF
10627/* confdefs.h.  */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h.  */
10632#include <sys/types.h>
10633 /* Check that off_t can represent 2**63 - 1 correctly.
10634    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10635    since some C++ compilers masquerading as C compilers
10636    incorrectly reject 9223372036854775807.  */
10637#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10638  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10639		       && LARGE_OFF_T % 2147483647 == 1)
10640		      ? 1 : -1];
10641int
10642main ()
10643{
10644
10645  ;
10646  return 0;
10647}
10648_ACEOF
10649	 rm -f conftest.$ac_objext
10650if { (ac_try="$ac_compile"
10651case "(($ac_try" in
10652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653  *) ac_try_echo=$ac_try;;
10654esac
10655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656$as_echo "$ac_try_echo") >&5
10657  (eval "$ac_compile") 2>conftest.er1
10658  ac_status=$?
10659  grep -v '^ *+' conftest.er1 >conftest.err
10660  rm -f conftest.er1
10661  cat conftest.err >&5
10662  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663  (exit $ac_status); } && {
10664	 test -z "$ac_c_werror_flag" ||
10665	 test ! -s conftest.err
10666       } && test -s conftest.$ac_objext; then
10667  break
10668else
10669  $as_echo "$as_me: failed program was:" >&5
10670sed 's/^/| /' conftest.$ac_ext >&5
10671
10672
10673fi
10674
10675rm -f core conftest.err conftest.$ac_objext
10676	 CC="$CC -n32"
10677	 rm -f conftest.$ac_objext
10678if { (ac_try="$ac_compile"
10679case "(($ac_try" in
10680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681  *) ac_try_echo=$ac_try;;
10682esac
10683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684$as_echo "$ac_try_echo") >&5
10685  (eval "$ac_compile") 2>conftest.er1
10686  ac_status=$?
10687  grep -v '^ *+' conftest.er1 >conftest.err
10688  rm -f conftest.er1
10689  cat conftest.err >&5
10690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691  (exit $ac_status); } && {
10692	 test -z "$ac_c_werror_flag" ||
10693	 test ! -s conftest.err
10694       } && test -s conftest.$ac_objext; then
10695  ac_cv_sys_largefile_CC=' -n32'; break
10696else
10697  $as_echo "$as_me: failed program was:" >&5
10698sed 's/^/| /' conftest.$ac_ext >&5
10699
10700
10701fi
10702
10703rm -f core conftest.err conftest.$ac_objext
10704	 break
10705       done
10706       CC=$ac_save_CC
10707       rm -f conftest.$ac_ext
10708    fi
10709fi
10710{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10711$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10712  if test "$ac_cv_sys_largefile_CC" != no; then
10713    CC=$CC$ac_cv_sys_largefile_CC
10714  fi
10715
10716  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10717$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10718if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10719  $as_echo_n "(cached) " >&6
10720else
10721  while :; do
10722  cat >conftest.$ac_ext <<_ACEOF
10723/* confdefs.h.  */
10724_ACEOF
10725cat confdefs.h >>conftest.$ac_ext
10726cat >>conftest.$ac_ext <<_ACEOF
10727/* end confdefs.h.  */
10728#include <sys/types.h>
10729 /* Check that off_t can represent 2**63 - 1 correctly.
10730    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10731    since some C++ compilers masquerading as C compilers
10732    incorrectly reject 9223372036854775807.  */
10733#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10734  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10735		       && LARGE_OFF_T % 2147483647 == 1)
10736		      ? 1 : -1];
10737int
10738main ()
10739{
10740
10741  ;
10742  return 0;
10743}
10744_ACEOF
10745rm -f conftest.$ac_objext
10746if { (ac_try="$ac_compile"
10747case "(($ac_try" in
10748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749  *) ac_try_echo=$ac_try;;
10750esac
10751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10752$as_echo "$ac_try_echo") >&5
10753  (eval "$ac_compile") 2>conftest.er1
10754  ac_status=$?
10755  grep -v '^ *+' conftest.er1 >conftest.err
10756  rm -f conftest.er1
10757  cat conftest.err >&5
10758  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759  (exit $ac_status); } && {
10760	 test -z "$ac_c_werror_flag" ||
10761	 test ! -s conftest.err
10762       } && test -s conftest.$ac_objext; then
10763  ac_cv_sys_file_offset_bits=no; break
10764else
10765  $as_echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768
10769fi
10770
10771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10772  cat >conftest.$ac_ext <<_ACEOF
10773/* confdefs.h.  */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h.  */
10778#define _FILE_OFFSET_BITS 64
10779#include <sys/types.h>
10780 /* Check that off_t can represent 2**63 - 1 correctly.
10781    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10782    since some C++ compilers masquerading as C compilers
10783    incorrectly reject 9223372036854775807.  */
10784#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10785  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10786		       && LARGE_OFF_T % 2147483647 == 1)
10787		      ? 1 : -1];
10788int
10789main ()
10790{
10791
10792  ;
10793  return 0;
10794}
10795_ACEOF
10796rm -f conftest.$ac_objext
10797if { (ac_try="$ac_compile"
10798case "(($ac_try" in
10799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800  *) ac_try_echo=$ac_try;;
10801esac
10802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10803$as_echo "$ac_try_echo") >&5
10804  (eval "$ac_compile") 2>conftest.er1
10805  ac_status=$?
10806  grep -v '^ *+' conftest.er1 >conftest.err
10807  rm -f conftest.er1
10808  cat conftest.err >&5
10809  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810  (exit $ac_status); } && {
10811	 test -z "$ac_c_werror_flag" ||
10812	 test ! -s conftest.err
10813       } && test -s conftest.$ac_objext; then
10814  ac_cv_sys_file_offset_bits=64; break
10815else
10816  $as_echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5
10818
10819
10820fi
10821
10822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823  ac_cv_sys_file_offset_bits=unknown
10824  break
10825done
10826fi
10827{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10828$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10829case $ac_cv_sys_file_offset_bits in #(
10830  no | unknown) ;;
10831  *)
10832cat >>confdefs.h <<_ACEOF
10833#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10834_ACEOF
10835;;
10836esac
10837rm -rf conftest*
10838  if test $ac_cv_sys_file_offset_bits = unknown; then
10839    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10840$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10841if test "${ac_cv_sys_large_files+set}" = set; then
10842  $as_echo_n "(cached) " >&6
10843else
10844  while :; do
10845  cat >conftest.$ac_ext <<_ACEOF
10846/* confdefs.h.  */
10847_ACEOF
10848cat confdefs.h >>conftest.$ac_ext
10849cat >>conftest.$ac_ext <<_ACEOF
10850/* end confdefs.h.  */
10851#include <sys/types.h>
10852 /* Check that off_t can represent 2**63 - 1 correctly.
10853    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10854    since some C++ compilers masquerading as C compilers
10855    incorrectly reject 9223372036854775807.  */
10856#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10857  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10858		       && LARGE_OFF_T % 2147483647 == 1)
10859		      ? 1 : -1];
10860int
10861main ()
10862{
10863
10864  ;
10865  return 0;
10866}
10867_ACEOF
10868rm -f conftest.$ac_objext
10869if { (ac_try="$ac_compile"
10870case "(($ac_try" in
10871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872  *) ac_try_echo=$ac_try;;
10873esac
10874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10875$as_echo "$ac_try_echo") >&5
10876  (eval "$ac_compile") 2>conftest.er1
10877  ac_status=$?
10878  grep -v '^ *+' conftest.er1 >conftest.err
10879  rm -f conftest.er1
10880  cat conftest.err >&5
10881  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882  (exit $ac_status); } && {
10883	 test -z "$ac_c_werror_flag" ||
10884	 test ! -s conftest.err
10885       } && test -s conftest.$ac_objext; then
10886  ac_cv_sys_large_files=no; break
10887else
10888  $as_echo "$as_me: failed program was:" >&5
10889sed 's/^/| /' conftest.$ac_ext >&5
10890
10891
10892fi
10893
10894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895  cat >conftest.$ac_ext <<_ACEOF
10896/* confdefs.h.  */
10897_ACEOF
10898cat confdefs.h >>conftest.$ac_ext
10899cat >>conftest.$ac_ext <<_ACEOF
10900/* end confdefs.h.  */
10901#define _LARGE_FILES 1
10902#include <sys/types.h>
10903 /* Check that off_t can represent 2**63 - 1 correctly.
10904    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10905    since some C++ compilers masquerading as C compilers
10906    incorrectly reject 9223372036854775807.  */
10907#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10908  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10909		       && LARGE_OFF_T % 2147483647 == 1)
10910		      ? 1 : -1];
10911int
10912main ()
10913{
10914
10915  ;
10916  return 0;
10917}
10918_ACEOF
10919rm -f conftest.$ac_objext
10920if { (ac_try="$ac_compile"
10921case "(($ac_try" in
10922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923  *) ac_try_echo=$ac_try;;
10924esac
10925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10926$as_echo "$ac_try_echo") >&5
10927  (eval "$ac_compile") 2>conftest.er1
10928  ac_status=$?
10929  grep -v '^ *+' conftest.er1 >conftest.err
10930  rm -f conftest.er1
10931  cat conftest.err >&5
10932  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933  (exit $ac_status); } && {
10934	 test -z "$ac_c_werror_flag" ||
10935	 test ! -s conftest.err
10936       } && test -s conftest.$ac_objext; then
10937  ac_cv_sys_large_files=1; break
10938else
10939  $as_echo "$as_me: failed program was:" >&5
10940sed 's/^/| /' conftest.$ac_ext >&5
10941
10942
10943fi
10944
10945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946  ac_cv_sys_large_files=unknown
10947  break
10948done
10949fi
10950{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10951$as_echo "$ac_cv_sys_large_files" >&6; }
10952case $ac_cv_sys_large_files in #(
10953  no | unknown) ;;
10954  *)
10955cat >>confdefs.h <<_ACEOF
10956#define _LARGE_FILES $ac_cv_sys_large_files
10957_ACEOF
10958;;
10959esac
10960rm -rf conftest*
10961  fi
10962fi
10963
10964
10965#########
10966# Check for needed/wanted data types
10967{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10968$as_echo_n "checking for int8_t... " >&6; }
10969if test "${ac_cv_type_int8_t+set}" = set; then
10970  $as_echo_n "(cached) " >&6
10971else
10972  ac_cv_type_int8_t=no
10973cat >conftest.$ac_ext <<_ACEOF
10974/* confdefs.h.  */
10975_ACEOF
10976cat confdefs.h >>conftest.$ac_ext
10977cat >>conftest.$ac_ext <<_ACEOF
10978/* end confdefs.h.  */
10979$ac_includes_default
10980int
10981main ()
10982{
10983if (sizeof (int8_t))
10984       return 0;
10985  ;
10986  return 0;
10987}
10988_ACEOF
10989rm -f conftest.$ac_objext
10990if { (ac_try="$ac_compile"
10991case "(($ac_try" in
10992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993  *) ac_try_echo=$ac_try;;
10994esac
10995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10996$as_echo "$ac_try_echo") >&5
10997  (eval "$ac_compile") 2>conftest.er1
10998  ac_status=$?
10999  grep -v '^ *+' conftest.er1 >conftest.err
11000  rm -f conftest.er1
11001  cat conftest.err >&5
11002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003  (exit $ac_status); } && {
11004	 test -z "$ac_c_werror_flag" ||
11005	 test ! -s conftest.err
11006       } && test -s conftest.$ac_objext; then
11007  cat >conftest.$ac_ext <<_ACEOF
11008/* confdefs.h.  */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
11012/* end confdefs.h.  */
11013$ac_includes_default
11014int
11015main ()
11016{
11017if (sizeof ((int8_t)))
11018	  return 0;
11019  ;
11020  return 0;
11021}
11022_ACEOF
11023rm -f conftest.$ac_objext
11024if { (ac_try="$ac_compile"
11025case "(($ac_try" in
11026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027  *) ac_try_echo=$ac_try;;
11028esac
11029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11030$as_echo "$ac_try_echo") >&5
11031  (eval "$ac_compile") 2>conftest.er1
11032  ac_status=$?
11033  grep -v '^ *+' conftest.er1 >conftest.err
11034  rm -f conftest.er1
11035  cat conftest.err >&5
11036  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037  (exit $ac_status); } && {
11038	 test -z "$ac_c_werror_flag" ||
11039	 test ! -s conftest.err
11040       } && test -s conftest.$ac_objext; then
11041  :
11042else
11043  $as_echo "$as_me: failed program was:" >&5
11044sed 's/^/| /' conftest.$ac_ext >&5
11045
11046	ac_cv_type_int8_t=yes
11047fi
11048
11049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11050else
11051  $as_echo "$as_me: failed program was:" >&5
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
11054
11055fi
11056
11057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11058fi
11059{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11060$as_echo "$ac_cv_type_int8_t" >&6; }
11061if test $ac_cv_type_int8_t = yes; then
11062
11063cat >>confdefs.h <<_ACEOF
11064#define HAVE_INT8_T 1
11065_ACEOF
11066
11067
11068fi
11069{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11070$as_echo_n "checking for int16_t... " >&6; }
11071if test "${ac_cv_type_int16_t+set}" = set; then
11072  $as_echo_n "(cached) " >&6
11073else
11074  ac_cv_type_int16_t=no
11075cat >conftest.$ac_ext <<_ACEOF
11076/* confdefs.h.  */
11077_ACEOF
11078cat confdefs.h >>conftest.$ac_ext
11079cat >>conftest.$ac_ext <<_ACEOF
11080/* end confdefs.h.  */
11081$ac_includes_default
11082int
11083main ()
11084{
11085if (sizeof (int16_t))
11086       return 0;
11087  ;
11088  return 0;
11089}
11090_ACEOF
11091rm -f conftest.$ac_objext
11092if { (ac_try="$ac_compile"
11093case "(($ac_try" in
11094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095  *) ac_try_echo=$ac_try;;
11096esac
11097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11098$as_echo "$ac_try_echo") >&5
11099  (eval "$ac_compile") 2>conftest.er1
11100  ac_status=$?
11101  grep -v '^ *+' conftest.er1 >conftest.err
11102  rm -f conftest.er1
11103  cat conftest.err >&5
11104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105  (exit $ac_status); } && {
11106	 test -z "$ac_c_werror_flag" ||
11107	 test ! -s conftest.err
11108       } && test -s conftest.$ac_objext; then
11109  cat >conftest.$ac_ext <<_ACEOF
11110/* confdefs.h.  */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h.  */
11115$ac_includes_default
11116int
11117main ()
11118{
11119if (sizeof ((int16_t)))
11120	  return 0;
11121  ;
11122  return 0;
11123}
11124_ACEOF
11125rm -f conftest.$ac_objext
11126if { (ac_try="$ac_compile"
11127case "(($ac_try" in
11128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129  *) ac_try_echo=$ac_try;;
11130esac
11131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11132$as_echo "$ac_try_echo") >&5
11133  (eval "$ac_compile") 2>conftest.er1
11134  ac_status=$?
11135  grep -v '^ *+' conftest.er1 >conftest.err
11136  rm -f conftest.er1
11137  cat conftest.err >&5
11138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139  (exit $ac_status); } && {
11140	 test -z "$ac_c_werror_flag" ||
11141	 test ! -s conftest.err
11142       } && test -s conftest.$ac_objext; then
11143  :
11144else
11145  $as_echo "$as_me: failed program was:" >&5
11146sed 's/^/| /' conftest.$ac_ext >&5
11147
11148	ac_cv_type_int16_t=yes
11149fi
11150
11151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152else
11153  $as_echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156
11157fi
11158
11159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160fi
11161{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11162$as_echo "$ac_cv_type_int16_t" >&6; }
11163if test $ac_cv_type_int16_t = yes; then
11164
11165cat >>confdefs.h <<_ACEOF
11166#define HAVE_INT16_T 1
11167_ACEOF
11168
11169
11170fi
11171{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11172$as_echo_n "checking for int32_t... " >&6; }
11173if test "${ac_cv_type_int32_t+set}" = set; then
11174  $as_echo_n "(cached) " >&6
11175else
11176  ac_cv_type_int32_t=no
11177cat >conftest.$ac_ext <<_ACEOF
11178/* confdefs.h.  */
11179_ACEOF
11180cat confdefs.h >>conftest.$ac_ext
11181cat >>conftest.$ac_ext <<_ACEOF
11182/* end confdefs.h.  */
11183$ac_includes_default
11184int
11185main ()
11186{
11187if (sizeof (int32_t))
11188       return 0;
11189  ;
11190  return 0;
11191}
11192_ACEOF
11193rm -f conftest.$ac_objext
11194if { (ac_try="$ac_compile"
11195case "(($ac_try" in
11196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197  *) ac_try_echo=$ac_try;;
11198esac
11199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11200$as_echo "$ac_try_echo") >&5
11201  (eval "$ac_compile") 2>conftest.er1
11202  ac_status=$?
11203  grep -v '^ *+' conftest.er1 >conftest.err
11204  rm -f conftest.er1
11205  cat conftest.err >&5
11206  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207  (exit $ac_status); } && {
11208	 test -z "$ac_c_werror_flag" ||
11209	 test ! -s conftest.err
11210       } && test -s conftest.$ac_objext; then
11211  cat >conftest.$ac_ext <<_ACEOF
11212/* confdefs.h.  */
11213_ACEOF
11214cat confdefs.h >>conftest.$ac_ext
11215cat >>conftest.$ac_ext <<_ACEOF
11216/* end confdefs.h.  */
11217$ac_includes_default
11218int
11219main ()
11220{
11221if (sizeof ((int32_t)))
11222	  return 0;
11223  ;
11224  return 0;
11225}
11226_ACEOF
11227rm -f conftest.$ac_objext
11228if { (ac_try="$ac_compile"
11229case "(($ac_try" in
11230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231  *) ac_try_echo=$ac_try;;
11232esac
11233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11234$as_echo "$ac_try_echo") >&5
11235  (eval "$ac_compile") 2>conftest.er1
11236  ac_status=$?
11237  grep -v '^ *+' conftest.er1 >conftest.err
11238  rm -f conftest.er1
11239  cat conftest.err >&5
11240  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241  (exit $ac_status); } && {
11242	 test -z "$ac_c_werror_flag" ||
11243	 test ! -s conftest.err
11244       } && test -s conftest.$ac_objext; then
11245  :
11246else
11247  $as_echo "$as_me: failed program was:" >&5
11248sed 's/^/| /' conftest.$ac_ext >&5
11249
11250	ac_cv_type_int32_t=yes
11251fi
11252
11253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254else
11255  $as_echo "$as_me: failed program was:" >&5
11256sed 's/^/| /' conftest.$ac_ext >&5
11257
11258
11259fi
11260
11261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262fi
11263{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11264$as_echo "$ac_cv_type_int32_t" >&6; }
11265if test $ac_cv_type_int32_t = yes; then
11266
11267cat >>confdefs.h <<_ACEOF
11268#define HAVE_INT32_T 1
11269_ACEOF
11270
11271
11272fi
11273{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11274$as_echo_n "checking for int64_t... " >&6; }
11275if test "${ac_cv_type_int64_t+set}" = set; then
11276  $as_echo_n "(cached) " >&6
11277else
11278  ac_cv_type_int64_t=no
11279cat >conftest.$ac_ext <<_ACEOF
11280/* confdefs.h.  */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h.  */
11285$ac_includes_default
11286int
11287main ()
11288{
11289if (sizeof (int64_t))
11290       return 0;
11291  ;
11292  return 0;
11293}
11294_ACEOF
11295rm -f conftest.$ac_objext
11296if { (ac_try="$ac_compile"
11297case "(($ac_try" in
11298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299  *) ac_try_echo=$ac_try;;
11300esac
11301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302$as_echo "$ac_try_echo") >&5
11303  (eval "$ac_compile") 2>conftest.er1
11304  ac_status=$?
11305  grep -v '^ *+' conftest.er1 >conftest.err
11306  rm -f conftest.er1
11307  cat conftest.err >&5
11308  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309  (exit $ac_status); } && {
11310	 test -z "$ac_c_werror_flag" ||
11311	 test ! -s conftest.err
11312       } && test -s conftest.$ac_objext; then
11313  cat >conftest.$ac_ext <<_ACEOF
11314/* confdefs.h.  */
11315_ACEOF
11316cat confdefs.h >>conftest.$ac_ext
11317cat >>conftest.$ac_ext <<_ACEOF
11318/* end confdefs.h.  */
11319$ac_includes_default
11320int
11321main ()
11322{
11323if (sizeof ((int64_t)))
11324	  return 0;
11325  ;
11326  return 0;
11327}
11328_ACEOF
11329rm -f conftest.$ac_objext
11330if { (ac_try="$ac_compile"
11331case "(($ac_try" in
11332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333  *) ac_try_echo=$ac_try;;
11334esac
11335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11336$as_echo "$ac_try_echo") >&5
11337  (eval "$ac_compile") 2>conftest.er1
11338  ac_status=$?
11339  grep -v '^ *+' conftest.er1 >conftest.err
11340  rm -f conftest.er1
11341  cat conftest.err >&5
11342  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343  (exit $ac_status); } && {
11344	 test -z "$ac_c_werror_flag" ||
11345	 test ! -s conftest.err
11346       } && test -s conftest.$ac_objext; then
11347  :
11348else
11349  $as_echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352	ac_cv_type_int64_t=yes
11353fi
11354
11355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356else
11357  $as_echo "$as_me: failed program was:" >&5
11358sed 's/^/| /' conftest.$ac_ext >&5
11359
11360
11361fi
11362
11363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364fi
11365{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11366$as_echo "$ac_cv_type_int64_t" >&6; }
11367if test $ac_cv_type_int64_t = yes; then
11368
11369cat >>confdefs.h <<_ACEOF
11370#define HAVE_INT64_T 1
11371_ACEOF
11372
11373
11374fi
11375{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11376$as_echo_n "checking for intptr_t... " >&6; }
11377if test "${ac_cv_type_intptr_t+set}" = set; then
11378  $as_echo_n "(cached) " >&6
11379else
11380  ac_cv_type_intptr_t=no
11381cat >conftest.$ac_ext <<_ACEOF
11382/* confdefs.h.  */
11383_ACEOF
11384cat confdefs.h >>conftest.$ac_ext
11385cat >>conftest.$ac_ext <<_ACEOF
11386/* end confdefs.h.  */
11387$ac_includes_default
11388int
11389main ()
11390{
11391if (sizeof (intptr_t))
11392       return 0;
11393  ;
11394  return 0;
11395}
11396_ACEOF
11397rm -f conftest.$ac_objext
11398if { (ac_try="$ac_compile"
11399case "(($ac_try" in
11400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401  *) ac_try_echo=$ac_try;;
11402esac
11403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11404$as_echo "$ac_try_echo") >&5
11405  (eval "$ac_compile") 2>conftest.er1
11406  ac_status=$?
11407  grep -v '^ *+' conftest.er1 >conftest.err
11408  rm -f conftest.er1
11409  cat conftest.err >&5
11410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411  (exit $ac_status); } && {
11412	 test -z "$ac_c_werror_flag" ||
11413	 test ! -s conftest.err
11414       } && test -s conftest.$ac_objext; then
11415  cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h.  */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h.  */
11421$ac_includes_default
11422int
11423main ()
11424{
11425if (sizeof ((intptr_t)))
11426	  return 0;
11427  ;
11428  return 0;
11429}
11430_ACEOF
11431rm -f conftest.$ac_objext
11432if { (ac_try="$ac_compile"
11433case "(($ac_try" in
11434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435  *) ac_try_echo=$ac_try;;
11436esac
11437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11438$as_echo "$ac_try_echo") >&5
11439  (eval "$ac_compile") 2>conftest.er1
11440  ac_status=$?
11441  grep -v '^ *+' conftest.er1 >conftest.err
11442  rm -f conftest.er1
11443  cat conftest.err >&5
11444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445  (exit $ac_status); } && {
11446	 test -z "$ac_c_werror_flag" ||
11447	 test ! -s conftest.err
11448       } && test -s conftest.$ac_objext; then
11449  :
11450else
11451  $as_echo "$as_me: failed program was:" >&5
11452sed 's/^/| /' conftest.$ac_ext >&5
11453
11454	ac_cv_type_intptr_t=yes
11455fi
11456
11457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458else
11459  $as_echo "$as_me: failed program was:" >&5
11460sed 's/^/| /' conftest.$ac_ext >&5
11461
11462
11463fi
11464
11465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466fi
11467{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11468$as_echo "$ac_cv_type_intptr_t" >&6; }
11469if test $ac_cv_type_intptr_t = yes; then
11470
11471cat >>confdefs.h <<_ACEOF
11472#define HAVE_INTPTR_T 1
11473_ACEOF
11474
11475
11476fi
11477{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11478$as_echo_n "checking for uint8_t... " >&6; }
11479if test "${ac_cv_type_uint8_t+set}" = set; then
11480  $as_echo_n "(cached) " >&6
11481else
11482  ac_cv_type_uint8_t=no
11483cat >conftest.$ac_ext <<_ACEOF
11484/* confdefs.h.  */
11485_ACEOF
11486cat confdefs.h >>conftest.$ac_ext
11487cat >>conftest.$ac_ext <<_ACEOF
11488/* end confdefs.h.  */
11489$ac_includes_default
11490int
11491main ()
11492{
11493if (sizeof (uint8_t))
11494       return 0;
11495  ;
11496  return 0;
11497}
11498_ACEOF
11499rm -f conftest.$ac_objext
11500if { (ac_try="$ac_compile"
11501case "(($ac_try" in
11502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503  *) ac_try_echo=$ac_try;;
11504esac
11505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11506$as_echo "$ac_try_echo") >&5
11507  (eval "$ac_compile") 2>conftest.er1
11508  ac_status=$?
11509  grep -v '^ *+' conftest.er1 >conftest.err
11510  rm -f conftest.er1
11511  cat conftest.err >&5
11512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513  (exit $ac_status); } && {
11514	 test -z "$ac_c_werror_flag" ||
11515	 test ! -s conftest.err
11516       } && test -s conftest.$ac_objext; then
11517  cat >conftest.$ac_ext <<_ACEOF
11518/* confdefs.h.  */
11519_ACEOF
11520cat confdefs.h >>conftest.$ac_ext
11521cat >>conftest.$ac_ext <<_ACEOF
11522/* end confdefs.h.  */
11523$ac_includes_default
11524int
11525main ()
11526{
11527if (sizeof ((uint8_t)))
11528	  return 0;
11529  ;
11530  return 0;
11531}
11532_ACEOF
11533rm -f conftest.$ac_objext
11534if { (ac_try="$ac_compile"
11535case "(($ac_try" in
11536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537  *) ac_try_echo=$ac_try;;
11538esac
11539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11540$as_echo "$ac_try_echo") >&5
11541  (eval "$ac_compile") 2>conftest.er1
11542  ac_status=$?
11543  grep -v '^ *+' conftest.er1 >conftest.err
11544  rm -f conftest.er1
11545  cat conftest.err >&5
11546  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547  (exit $ac_status); } && {
11548	 test -z "$ac_c_werror_flag" ||
11549	 test ! -s conftest.err
11550       } && test -s conftest.$ac_objext; then
11551  :
11552else
11553  $as_echo "$as_me: failed program was:" >&5
11554sed 's/^/| /' conftest.$ac_ext >&5
11555
11556	ac_cv_type_uint8_t=yes
11557fi
11558
11559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560else
11561  $as_echo "$as_me: failed program was:" >&5
11562sed 's/^/| /' conftest.$ac_ext >&5
11563
11564
11565fi
11566
11567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568fi
11569{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11570$as_echo "$ac_cv_type_uint8_t" >&6; }
11571if test $ac_cv_type_uint8_t = yes; then
11572
11573cat >>confdefs.h <<_ACEOF
11574#define HAVE_UINT8_T 1
11575_ACEOF
11576
11577
11578fi
11579{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11580$as_echo_n "checking for uint16_t... " >&6; }
11581if test "${ac_cv_type_uint16_t+set}" = set; then
11582  $as_echo_n "(cached) " >&6
11583else
11584  ac_cv_type_uint16_t=no
11585cat >conftest.$ac_ext <<_ACEOF
11586/* confdefs.h.  */
11587_ACEOF
11588cat confdefs.h >>conftest.$ac_ext
11589cat >>conftest.$ac_ext <<_ACEOF
11590/* end confdefs.h.  */
11591$ac_includes_default
11592int
11593main ()
11594{
11595if (sizeof (uint16_t))
11596       return 0;
11597  ;
11598  return 0;
11599}
11600_ACEOF
11601rm -f conftest.$ac_objext
11602if { (ac_try="$ac_compile"
11603case "(($ac_try" in
11604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605  *) ac_try_echo=$ac_try;;
11606esac
11607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11608$as_echo "$ac_try_echo") >&5
11609  (eval "$ac_compile") 2>conftest.er1
11610  ac_status=$?
11611  grep -v '^ *+' conftest.er1 >conftest.err
11612  rm -f conftest.er1
11613  cat conftest.err >&5
11614  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615  (exit $ac_status); } && {
11616	 test -z "$ac_c_werror_flag" ||
11617	 test ! -s conftest.err
11618       } && test -s conftest.$ac_objext; then
11619  cat >conftest.$ac_ext <<_ACEOF
11620/* confdefs.h.  */
11621_ACEOF
11622cat confdefs.h >>conftest.$ac_ext
11623cat >>conftest.$ac_ext <<_ACEOF
11624/* end confdefs.h.  */
11625$ac_includes_default
11626int
11627main ()
11628{
11629if (sizeof ((uint16_t)))
11630	  return 0;
11631  ;
11632  return 0;
11633}
11634_ACEOF
11635rm -f conftest.$ac_objext
11636if { (ac_try="$ac_compile"
11637case "(($ac_try" in
11638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11639  *) ac_try_echo=$ac_try;;
11640esac
11641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11642$as_echo "$ac_try_echo") >&5
11643  (eval "$ac_compile") 2>conftest.er1
11644  ac_status=$?
11645  grep -v '^ *+' conftest.er1 >conftest.err
11646  rm -f conftest.er1
11647  cat conftest.err >&5
11648  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649  (exit $ac_status); } && {
11650	 test -z "$ac_c_werror_flag" ||
11651	 test ! -s conftest.err
11652       } && test -s conftest.$ac_objext; then
11653  :
11654else
11655  $as_echo "$as_me: failed program was:" >&5
11656sed 's/^/| /' conftest.$ac_ext >&5
11657
11658	ac_cv_type_uint16_t=yes
11659fi
11660
11661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662else
11663  $as_echo "$as_me: failed program was:" >&5
11664sed 's/^/| /' conftest.$ac_ext >&5
11665
11666
11667fi
11668
11669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670fi
11671{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11672$as_echo "$ac_cv_type_uint16_t" >&6; }
11673if test $ac_cv_type_uint16_t = yes; then
11674
11675cat >>confdefs.h <<_ACEOF
11676#define HAVE_UINT16_T 1
11677_ACEOF
11678
11679
11680fi
11681{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11682$as_echo_n "checking for uint32_t... " >&6; }
11683if test "${ac_cv_type_uint32_t+set}" = set; then
11684  $as_echo_n "(cached) " >&6
11685else
11686  ac_cv_type_uint32_t=no
11687cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h.  */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h.  */
11693$ac_includes_default
11694int
11695main ()
11696{
11697if (sizeof (uint32_t))
11698       return 0;
11699  ;
11700  return 0;
11701}
11702_ACEOF
11703rm -f conftest.$ac_objext
11704if { (ac_try="$ac_compile"
11705case "(($ac_try" in
11706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707  *) ac_try_echo=$ac_try;;
11708esac
11709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11710$as_echo "$ac_try_echo") >&5
11711  (eval "$ac_compile") 2>conftest.er1
11712  ac_status=$?
11713  grep -v '^ *+' conftest.er1 >conftest.err
11714  rm -f conftest.er1
11715  cat conftest.err >&5
11716  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717  (exit $ac_status); } && {
11718	 test -z "$ac_c_werror_flag" ||
11719	 test ! -s conftest.err
11720       } && test -s conftest.$ac_objext; then
11721  cat >conftest.$ac_ext <<_ACEOF
11722/* confdefs.h.  */
11723_ACEOF
11724cat confdefs.h >>conftest.$ac_ext
11725cat >>conftest.$ac_ext <<_ACEOF
11726/* end confdefs.h.  */
11727$ac_includes_default
11728int
11729main ()
11730{
11731if (sizeof ((uint32_t)))
11732	  return 0;
11733  ;
11734  return 0;
11735}
11736_ACEOF
11737rm -f conftest.$ac_objext
11738if { (ac_try="$ac_compile"
11739case "(($ac_try" in
11740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741  *) ac_try_echo=$ac_try;;
11742esac
11743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11744$as_echo "$ac_try_echo") >&5
11745  (eval "$ac_compile") 2>conftest.er1
11746  ac_status=$?
11747  grep -v '^ *+' conftest.er1 >conftest.err
11748  rm -f conftest.er1
11749  cat conftest.err >&5
11750  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751  (exit $ac_status); } && {
11752	 test -z "$ac_c_werror_flag" ||
11753	 test ! -s conftest.err
11754       } && test -s conftest.$ac_objext; then
11755  :
11756else
11757  $as_echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
11760	ac_cv_type_uint32_t=yes
11761fi
11762
11763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11764else
11765  $as_echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768
11769fi
11770
11771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772fi
11773{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11774$as_echo "$ac_cv_type_uint32_t" >&6; }
11775if test $ac_cv_type_uint32_t = yes; then
11776
11777cat >>confdefs.h <<_ACEOF
11778#define HAVE_UINT32_T 1
11779_ACEOF
11780
11781
11782fi
11783{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11784$as_echo_n "checking for uint64_t... " >&6; }
11785if test "${ac_cv_type_uint64_t+set}" = set; then
11786  $as_echo_n "(cached) " >&6
11787else
11788  ac_cv_type_uint64_t=no
11789cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h.  */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h.  */
11795$ac_includes_default
11796int
11797main ()
11798{
11799if (sizeof (uint64_t))
11800       return 0;
11801  ;
11802  return 0;
11803}
11804_ACEOF
11805rm -f conftest.$ac_objext
11806if { (ac_try="$ac_compile"
11807case "(($ac_try" in
11808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809  *) ac_try_echo=$ac_try;;
11810esac
11811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11812$as_echo "$ac_try_echo") >&5
11813  (eval "$ac_compile") 2>conftest.er1
11814  ac_status=$?
11815  grep -v '^ *+' conftest.er1 >conftest.err
11816  rm -f conftest.er1
11817  cat conftest.err >&5
11818  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819  (exit $ac_status); } && {
11820	 test -z "$ac_c_werror_flag" ||
11821	 test ! -s conftest.err
11822       } && test -s conftest.$ac_objext; then
11823  cat >conftest.$ac_ext <<_ACEOF
11824/* confdefs.h.  */
11825_ACEOF
11826cat confdefs.h >>conftest.$ac_ext
11827cat >>conftest.$ac_ext <<_ACEOF
11828/* end confdefs.h.  */
11829$ac_includes_default
11830int
11831main ()
11832{
11833if (sizeof ((uint64_t)))
11834	  return 0;
11835  ;
11836  return 0;
11837}
11838_ACEOF
11839rm -f conftest.$ac_objext
11840if { (ac_try="$ac_compile"
11841case "(($ac_try" in
11842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843  *) ac_try_echo=$ac_try;;
11844esac
11845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11846$as_echo "$ac_try_echo") >&5
11847  (eval "$ac_compile") 2>conftest.er1
11848  ac_status=$?
11849  grep -v '^ *+' conftest.er1 >conftest.err
11850  rm -f conftest.er1
11851  cat conftest.err >&5
11852  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853  (exit $ac_status); } && {
11854	 test -z "$ac_c_werror_flag" ||
11855	 test ! -s conftest.err
11856       } && test -s conftest.$ac_objext; then
11857  :
11858else
11859  $as_echo "$as_me: failed program was:" >&5
11860sed 's/^/| /' conftest.$ac_ext >&5
11861
11862	ac_cv_type_uint64_t=yes
11863fi
11864
11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866else
11867  $as_echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870
11871fi
11872
11873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874fi
11875{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11876$as_echo "$ac_cv_type_uint64_t" >&6; }
11877if test $ac_cv_type_uint64_t = yes; then
11878
11879cat >>confdefs.h <<_ACEOF
11880#define HAVE_UINT64_T 1
11881_ACEOF
11882
11883
11884fi
11885{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11886$as_echo_n "checking for uintptr_t... " >&6; }
11887if test "${ac_cv_type_uintptr_t+set}" = set; then
11888  $as_echo_n "(cached) " >&6
11889else
11890  ac_cv_type_uintptr_t=no
11891cat >conftest.$ac_ext <<_ACEOF
11892/* confdefs.h.  */
11893_ACEOF
11894cat confdefs.h >>conftest.$ac_ext
11895cat >>conftest.$ac_ext <<_ACEOF
11896/* end confdefs.h.  */
11897$ac_includes_default
11898int
11899main ()
11900{
11901if (sizeof (uintptr_t))
11902       return 0;
11903  ;
11904  return 0;
11905}
11906_ACEOF
11907rm -f conftest.$ac_objext
11908if { (ac_try="$ac_compile"
11909case "(($ac_try" in
11910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911  *) ac_try_echo=$ac_try;;
11912esac
11913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11914$as_echo "$ac_try_echo") >&5
11915  (eval "$ac_compile") 2>conftest.er1
11916  ac_status=$?
11917  grep -v '^ *+' conftest.er1 >conftest.err
11918  rm -f conftest.er1
11919  cat conftest.err >&5
11920  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921  (exit $ac_status); } && {
11922	 test -z "$ac_c_werror_flag" ||
11923	 test ! -s conftest.err
11924       } && test -s conftest.$ac_objext; then
11925  cat >conftest.$ac_ext <<_ACEOF
11926/* confdefs.h.  */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h.  */
11931$ac_includes_default
11932int
11933main ()
11934{
11935if (sizeof ((uintptr_t)))
11936	  return 0;
11937  ;
11938  return 0;
11939}
11940_ACEOF
11941rm -f conftest.$ac_objext
11942if { (ac_try="$ac_compile"
11943case "(($ac_try" in
11944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945  *) ac_try_echo=$ac_try;;
11946esac
11947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11948$as_echo "$ac_try_echo") >&5
11949  (eval "$ac_compile") 2>conftest.er1
11950  ac_status=$?
11951  grep -v '^ *+' conftest.er1 >conftest.err
11952  rm -f conftest.er1
11953  cat conftest.err >&5
11954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955  (exit $ac_status); } && {
11956	 test -z "$ac_c_werror_flag" ||
11957	 test ! -s conftest.err
11958       } && test -s conftest.$ac_objext; then
11959  :
11960else
11961  $as_echo "$as_me: failed program was:" >&5
11962sed 's/^/| /' conftest.$ac_ext >&5
11963
11964	ac_cv_type_uintptr_t=yes
11965fi
11966
11967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968else
11969  $as_echo "$as_me: failed program was:" >&5
11970sed 's/^/| /' conftest.$ac_ext >&5
11971
11972
11973fi
11974
11975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976fi
11977{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11978$as_echo "$ac_cv_type_uintptr_t" >&6; }
11979if test $ac_cv_type_uintptr_t = yes; then
11980
11981cat >>confdefs.h <<_ACEOF
11982#define HAVE_UINTPTR_T 1
11983_ACEOF
11984
11985
11986fi
11987
11988
11989#########
11990# Check for needed/wanted headers
11991
11992
11993
11994
11995for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
11996do
11997as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12000$as_echo_n "checking for $ac_header... " >&6; }
12001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002  $as_echo_n "(cached) " >&6
12003fi
12004ac_res=`eval 'as_val=${'$as_ac_Header'}
12005		 $as_echo "$as_val"'`
12006	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12007$as_echo "$ac_res" >&6; }
12008else
12009  # Is the header compilable?
12010{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12011$as_echo_n "checking $ac_header usability... " >&6; }
12012cat >conftest.$ac_ext <<_ACEOF
12013/* confdefs.h.  */
12014_ACEOF
12015cat confdefs.h >>conftest.$ac_ext
12016cat >>conftest.$ac_ext <<_ACEOF
12017/* end confdefs.h.  */
12018$ac_includes_default
12019#include <$ac_header>
12020_ACEOF
12021rm -f conftest.$ac_objext
12022if { (ac_try="$ac_compile"
12023case "(($ac_try" in
12024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025  *) ac_try_echo=$ac_try;;
12026esac
12027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12028$as_echo "$ac_try_echo") >&5
12029  (eval "$ac_compile") 2>conftest.er1
12030  ac_status=$?
12031  grep -v '^ *+' conftest.er1 >conftest.err
12032  rm -f conftest.er1
12033  cat conftest.err >&5
12034  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035  (exit $ac_status); } && {
12036	 test -z "$ac_c_werror_flag" ||
12037	 test ! -s conftest.err
12038       } && test -s conftest.$ac_objext; then
12039  ac_header_compiler=yes
12040else
12041  $as_echo "$as_me: failed program was:" >&5
12042sed 's/^/| /' conftest.$ac_ext >&5
12043
12044	ac_header_compiler=no
12045fi
12046
12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12049$as_echo "$ac_header_compiler" >&6; }
12050
12051# Is the header present?
12052{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12053$as_echo_n "checking $ac_header presence... " >&6; }
12054cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h.  */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h.  */
12060#include <$ac_header>
12061_ACEOF
12062if { (ac_try="$ac_cpp conftest.$ac_ext"
12063case "(($ac_try" in
12064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065  *) ac_try_echo=$ac_try;;
12066esac
12067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12068$as_echo "$ac_try_echo") >&5
12069  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12070  ac_status=$?
12071  grep -v '^ *+' conftest.er1 >conftest.err
12072  rm -f conftest.er1
12073  cat conftest.err >&5
12074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075  (exit $ac_status); } >/dev/null && {
12076	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12077	 test ! -s conftest.err
12078       }; then
12079  ac_header_preproc=yes
12080else
12081  $as_echo "$as_me: failed program was:" >&5
12082sed 's/^/| /' conftest.$ac_ext >&5
12083
12084  ac_header_preproc=no
12085fi
12086
12087rm -f conftest.err conftest.$ac_ext
12088{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12089$as_echo "$ac_header_preproc" >&6; }
12090
12091# So?  What about this header?
12092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12093  yes:no: )
12094    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12095$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12096    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12097$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12098    ac_header_preproc=yes
12099    ;;
12100  no:yes:* )
12101    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12102$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12103    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12104$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12105    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12106$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12107    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12108$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12109    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12110$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12111    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12112$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12113
12114    ;;
12115esac
12116{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12117$as_echo_n "checking for $ac_header... " >&6; }
12118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119  $as_echo_n "(cached) " >&6
12120else
12121  eval "$as_ac_Header=\$ac_header_preproc"
12122fi
12123ac_res=`eval 'as_val=${'$as_ac_Header'}
12124		 $as_echo "$as_val"'`
12125	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12126$as_echo "$ac_res" >&6; }
12127
12128fi
12129if test `eval 'as_val=${'$as_ac_Header'}
12130		 $as_echo "$as_val"'` = yes; then
12131  cat >>confdefs.h <<_ACEOF
12132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12133_ACEOF
12134
12135fi
12136
12137done
12138
12139
12140#########
12141# Figure out whether or not we have these functions
12142#
12143
12144
12145
12146
12147
12148for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
12149do
12150as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12151{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12152$as_echo_n "checking for $ac_func... " >&6; }
12153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12154  $as_echo_n "(cached) " >&6
12155else
12156  cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h.  */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
12161/* end confdefs.h.  */
12162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12163   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12164#define $ac_func innocuous_$ac_func
12165
12166/* System header to define __stub macros and hopefully few prototypes,
12167    which can conflict with char $ac_func (); below.
12168    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12169    <limits.h> exists even on freestanding compilers.  */
12170
12171#ifdef __STDC__
12172# include <limits.h>
12173#else
12174# include <assert.h>
12175#endif
12176
12177#undef $ac_func
12178
12179/* Override any GCC internal prototype to avoid an error.
12180   Use char because int might match the return type of a GCC
12181   builtin and then its argument prototype would still apply.  */
12182#ifdef __cplusplus
12183extern "C"
12184#endif
12185char $ac_func ();
12186/* The GNU C library defines this for functions which it implements
12187    to always fail with ENOSYS.  Some functions are actually named
12188    something starting with __ and the normal name is an alias.  */
12189#if defined __stub_$ac_func || defined __stub___$ac_func
12190choke me
12191#endif
12192
12193int
12194main ()
12195{
12196return $ac_func ();
12197  ;
12198  return 0;
12199}
12200_ACEOF
12201rm -f conftest.$ac_objext conftest$ac_exeext
12202if { (ac_try="$ac_link"
12203case "(($ac_try" in
12204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205  *) ac_try_echo=$ac_try;;
12206esac
12207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12208$as_echo "$ac_try_echo") >&5
12209  (eval "$ac_link") 2>conftest.er1
12210  ac_status=$?
12211  grep -v '^ *+' conftest.er1 >conftest.err
12212  rm -f conftest.er1
12213  cat conftest.err >&5
12214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215  (exit $ac_status); } && {
12216	 test -z "$ac_c_werror_flag" ||
12217	 test ! -s conftest.err
12218       } && test -s conftest$ac_exeext && {
12219	 test "$cross_compiling" = yes ||
12220	 $as_test_x conftest$ac_exeext
12221       }; then
12222  eval "$as_ac_var=yes"
12223else
12224  $as_echo "$as_me: failed program was:" >&5
12225sed 's/^/| /' conftest.$ac_ext >&5
12226
12227	eval "$as_ac_var=no"
12228fi
12229
12230rm -rf conftest.dSYM
12231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12232      conftest$ac_exeext conftest.$ac_ext
12233fi
12234ac_res=`eval 'as_val=${'$as_ac_var'}
12235		 $as_echo "$as_val"'`
12236	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12237$as_echo "$ac_res" >&6; }
12238if test `eval 'as_val=${'$as_ac_var'}
12239		 $as_echo "$as_val"'` = yes; then
12240  cat >>confdefs.h <<_ACEOF
12241#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12242_ACEOF
12243
12244fi
12245done
12246
12247
12248#########
12249# By default, we use the amalgamation (this may be changed below...)
12250#
12251USE_AMALGAMATION=1
12252
12253#########
12254# See whether we can run specific tclsh versions known to work well;
12255# if not, then we fall back to plain tclsh.
12256# TODO: try other versions before falling back?
12257#
12258for ac_prog in tclsh8.5 tclsh
12259do
12260  # Extract the first word of "$ac_prog", so it can be a program name with args.
12261set dummy $ac_prog; ac_word=$2
12262{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
12264if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
12265  $as_echo_n "(cached) " >&6
12266else
12267  if test -n "$TCLSH_CMD"; then
12268  ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12269else
12270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271for as_dir in $PATH
12272do
12273  IFS=$as_save_IFS
12274  test -z "$as_dir" && as_dir=.
12275  for ac_exec_ext in '' $ac_executable_extensions; do
12276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12277    ac_cv_prog_TCLSH_CMD="$ac_prog"
12278    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12279    break 2
12280  fi
12281done
12282done
12283IFS=$as_save_IFS
12284
12285fi
12286fi
12287TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12288if test -n "$TCLSH_CMD"; then
12289  { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12290$as_echo "$TCLSH_CMD" >&6; }
12291else
12292  { $as_echo "$as_me:$LINENO: result: no" >&5
12293$as_echo "no" >&6; }
12294fi
12295
12296
12297  test -n "$TCLSH_CMD" && break
12298done
12299test -n "$TCLSH_CMD" || TCLSH_CMD="none"
12300
12301if test "$TCLSH_CMD" = "none"; then
12302  # If we can't find a local tclsh, then building the amalgamation will fail.
12303  # We act as though --disable-amalgamation has been used.
12304  echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12305  USE_AMALGAMATION=0
12306  TCLSH_CMD="tclsh"
12307fi
12308
12309
12310
12311if test "x${TCLLIBDIR+set}" != "xset" ; then
12312  TCLLIBDIR='$(libdir)'
12313  for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12314    TCLLIBDIR=$i
12315    break
12316  done
12317  TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12318fi
12319
12320
12321#########
12322# Set up an appropriate program prefix
12323#
12324if test "$program_prefix" = "NONE"; then
12325  program_prefix=""
12326fi
12327
12328
12329VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12330{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
12331$as_echo "$as_me: Version set to $VERSION" >&6;}
12332
12333RELEASE=`cat $srcdir/VERSION`
12334{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
12335$as_echo "$as_me: Release set to $RELEASE" >&6;}
12336
12337VERSION_NUMBER=`cat $srcdir/VERSION \
12338                           | sed 's/[^0-9]/ /g' \
12339                | awk '{printf "%d%03d%03d",$1,$2,$3}'`
12340{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
12341$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
12342
12343
12344#########
12345# Check to see if the --with-hints=FILE option is used.  If there is none,
12346# then check for a files named "$host.hints" and ../$hosts.hints where
12347# $host is the hostname of the build system.  If still no hints are
12348# found, try looking in $system.hints and ../$system.hints where
12349# $system is the result of uname -s.
12350#
12351
12352# Check whether --with-hints was given.
12353if test "${with_hints+set}" = set; then
12354  withval=$with_hints; hints=$withval
12355fi
12356
12357if test "$hints" = ""; then
12358  host=`hostname | sed 's/\..*//'`
12359  if test -r $host.hints; then
12360    hints=$host.hints
12361  else
12362     if test -r ../$host.hints; then
12363       hints=../$host.hints
12364     fi
12365  fi
12366fi
12367if test "$hints" = ""; then
12368  sys=`uname -s`
12369  if test -r $sys.hints; then
12370    hints=$sys.hints
12371  else
12372     if test -r ../$sys.hints; then
12373       hints=../$sys.hints
12374     fi
12375  fi
12376fi
12377if test "$hints" != ""; then
12378  { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12379$as_echo "reading hints from $hints" >&6; }
12380  . $hints
12381fi
12382
12383#########
12384# Locate a compiler for the build machine.  This compiler should
12385# generate command-line programs that run on the build machine.
12386#
12387if test x"$cross_compiling" = xno; then
12388	BUILD_CC=$CC
12389	BUILD_CFLAGS=$CFLAGS
12390else
12391	if test "${BUILD_CC+set}" != set; then
12392		for ac_prog in gcc cc cl
12393do
12394  # Extract the first word of "$ac_prog", so it can be a program name with args.
12395set dummy $ac_prog; ac_word=$2
12396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12397$as_echo_n "checking for $ac_word... " >&6; }
12398if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12399  $as_echo_n "(cached) " >&6
12400else
12401  if test -n "$BUILD_CC"; then
12402  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12403else
12404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405for as_dir in $PATH
12406do
12407  IFS=$as_save_IFS
12408  test -z "$as_dir" && as_dir=.
12409  for ac_exec_ext in '' $ac_executable_extensions; do
12410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12411    ac_cv_prog_BUILD_CC="$ac_prog"
12412    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12413    break 2
12414  fi
12415done
12416done
12417IFS=$as_save_IFS
12418
12419fi
12420fi
12421BUILD_CC=$ac_cv_prog_BUILD_CC
12422if test -n "$BUILD_CC"; then
12423  { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12424$as_echo "$BUILD_CC" >&6; }
12425else
12426  { $as_echo "$as_me:$LINENO: result: no" >&5
12427$as_echo "no" >&6; }
12428fi
12429
12430
12431  test -n "$BUILD_CC" && break
12432done
12433
12434	fi
12435	if test "${BUILD_CFLAGS+set}" != set; then
12436		BUILD_CFLAGS="-g"
12437	fi
12438fi
12439
12440
12441##########
12442# Do we want to support multithreaded use of sqlite
12443#
12444# Check whether --enable-threadsafe was given.
12445if test "${enable_threadsafe+set}" = set; then
12446  enableval=$enable_threadsafe;
12447else
12448  enable_threadsafe=yes
12449fi
12450
12451{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12452$as_echo_n "checking whether to support threadsafe operation... " >&6; }
12453if test "$enable_threadsafe" = "no"; then
12454  SQLITE_THREADSAFE=0
12455  { $as_echo "$as_me:$LINENO: result: no" >&5
12456$as_echo "no" >&6; }
12457else
12458  SQLITE_THREADSAFE=1
12459  { $as_echo "$as_me:$LINENO: result: yes" >&5
12460$as_echo "yes" >&6; }
12461fi
12462
12463
12464if test "$SQLITE_THREADSAFE" = "1"; then
12465  { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12466$as_echo_n "checking for library containing pthread_create... " >&6; }
12467if test "${ac_cv_search_pthread_create+set}" = set; then
12468  $as_echo_n "(cached) " >&6
12469else
12470  ac_func_search_save_LIBS=$LIBS
12471cat >conftest.$ac_ext <<_ACEOF
12472/* confdefs.h.  */
12473_ACEOF
12474cat confdefs.h >>conftest.$ac_ext
12475cat >>conftest.$ac_ext <<_ACEOF
12476/* end confdefs.h.  */
12477
12478/* Override any GCC internal prototype to avoid an error.
12479   Use char because int might match the return type of a GCC
12480   builtin and then its argument prototype would still apply.  */
12481#ifdef __cplusplus
12482extern "C"
12483#endif
12484char pthread_create ();
12485int
12486main ()
12487{
12488return pthread_create ();
12489  ;
12490  return 0;
12491}
12492_ACEOF
12493for ac_lib in '' pthread; do
12494  if test -z "$ac_lib"; then
12495    ac_res="none required"
12496  else
12497    ac_res=-l$ac_lib
12498    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12499  fi
12500  rm -f conftest.$ac_objext conftest$ac_exeext
12501if { (ac_try="$ac_link"
12502case "(($ac_try" in
12503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504  *) ac_try_echo=$ac_try;;
12505esac
12506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12507$as_echo "$ac_try_echo") >&5
12508  (eval "$ac_link") 2>conftest.er1
12509  ac_status=$?
12510  grep -v '^ *+' conftest.er1 >conftest.err
12511  rm -f conftest.er1
12512  cat conftest.err >&5
12513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514  (exit $ac_status); } && {
12515	 test -z "$ac_c_werror_flag" ||
12516	 test ! -s conftest.err
12517       } && test -s conftest$ac_exeext && {
12518	 test "$cross_compiling" = yes ||
12519	 $as_test_x conftest$ac_exeext
12520       }; then
12521  ac_cv_search_pthread_create=$ac_res
12522else
12523  $as_echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526
12527fi
12528
12529rm -rf conftest.dSYM
12530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12531      conftest$ac_exeext
12532  if test "${ac_cv_search_pthread_create+set}" = set; then
12533  break
12534fi
12535done
12536if test "${ac_cv_search_pthread_create+set}" = set; then
12537  :
12538else
12539  ac_cv_search_pthread_create=no
12540fi
12541rm conftest.$ac_ext
12542LIBS=$ac_func_search_save_LIBS
12543fi
12544{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12545$as_echo "$ac_cv_search_pthread_create" >&6; }
12546ac_res=$ac_cv_search_pthread_create
12547if test "$ac_res" != no; then
12548  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12549
12550fi
12551
12552fi
12553
12554##########
12555# Do we want to allow a connection created in one thread to be used
12556# in another thread.  This does not work on many Linux systems (ex: RedHat 9)
12557# due to bugs in the threading implementations.  This is thus off by default.
12558#
12559# Check whether --enable-cross-thread-connections was given.
12560if test "${enable_cross_thread_connections+set}" = set; then
12561  enableval=$enable_cross_thread_connections;
12562else
12563  enable_xthreadconnect=no
12564fi
12565
12566{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12567$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12568if test "$enable_xthreadconnect" = "no"; then
12569  XTHREADCONNECT=''
12570  { $as_echo "$as_me:$LINENO: result: no" >&5
12571$as_echo "no" >&6; }
12572else
12573  XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12574  { $as_echo "$as_me:$LINENO: result: yes" >&5
12575$as_echo "yes" >&6; }
12576fi
12577
12578
12579##########
12580# Do we want to support release
12581#
12582# Check whether --enable-releasemode was given.
12583if test "${enable_releasemode+set}" = set; then
12584  enableval=$enable_releasemode;
12585else
12586  enable_releasemode=no
12587fi
12588
12589{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12590$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12591if test "$enable_releasemode" = "no"; then
12592  ALLOWRELEASE=""
12593  { $as_echo "$as_me:$LINENO: result: no" >&5
12594$as_echo "no" >&6; }
12595else
12596  ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12597  { $as_echo "$as_me:$LINENO: result: yes" >&5
12598$as_echo "yes" >&6; }
12599fi
12600
12601
12602##########
12603# Do we want temporary databases in memory
12604#
12605# Check whether --enable-tempstore was given.
12606if test "${enable_tempstore+set}" = set; then
12607  enableval=$enable_tempstore;
12608else
12609  enable_tempstore=no
12610fi
12611
12612{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
12613$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12614case "$enable_tempstore" in
12615  never )
12616    TEMP_STORE=0
12617    { $as_echo "$as_me:$LINENO: result: never" >&5
12618$as_echo "never" >&6; }
12619  ;;
12620  no )
12621    TEMP_STORE=1
12622    { $as_echo "$as_me:$LINENO: result: no" >&5
12623$as_echo "no" >&6; }
12624  ;;
12625  yes )
12626     TEMP_STORE=2
12627    { $as_echo "$as_me:$LINENO: result: yes" >&5
12628$as_echo "yes" >&6; }
12629  ;;
12630  always )
12631     TEMP_STORE=3
12632    { $as_echo "$as_me:$LINENO: result: always" >&5
12633$as_echo "always" >&6; }
12634  ;;
12635  * )
12636    TEMP_STORE=1
12637    { $as_echo "$as_me:$LINENO: result: no" >&5
12638$as_echo "no" >&6; }
12639  ;;
12640esac
12641
12642
12643
12644###########
12645# Lots of things are different if we are compiling for Windows using
12646# the CYGWIN environment.  So check for that special case and handle
12647# things accordingly.
12648#
12649{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12650$as_echo_n "checking if executables have the .exe suffix... " >&6; }
12651if test "$config_BUILD_EXEEXT" = ".exe"; then
12652  CYGWIN=yes
12653  { $as_echo "$as_me:$LINENO: result: yes" >&5
12654$as_echo "yes" >&6; }
12655else
12656  { $as_echo "$as_me:$LINENO: result: unknown" >&5
12657$as_echo "unknown" >&6; }
12658fi
12659if test "$CYGWIN" != "yes"; then
12660  { $as_echo "$as_me:$LINENO: checking host system type" >&5
12661$as_echo_n "checking host system type... " >&6; }
12662if test "${ac_cv_host+set}" = set; then
12663  $as_echo_n "(cached) " >&6
12664else
12665  if test "x$host_alias" = x; then
12666  ac_cv_host=$ac_cv_build
12667else
12668  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12669    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12670$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12671   { (exit 1); exit 1; }; }
12672fi
12673
12674fi
12675{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12676$as_echo "$ac_cv_host" >&6; }
12677case $ac_cv_host in
12678*-*-*) ;;
12679*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12680$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12681   { (exit 1); exit 1; }; };;
12682esac
12683host=$ac_cv_host
12684ac_save_IFS=$IFS; IFS='-'
12685set x $ac_cv_host
12686shift
12687host_cpu=$1
12688host_vendor=$2
12689shift; shift
12690# Remember, the first character of IFS is used to create $*,
12691# except with old shells:
12692host_os=$*
12693IFS=$ac_save_IFS
12694case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12695
12696
12697case $host_os in
12698  *cygwin* ) CYGWIN=yes;;
12699	 * ) CYGWIN=no;;
12700esac
12701
12702fi
12703if test "$CYGWIN" = "yes"; then
12704  BUILD_EXEEXT=.exe
12705else
12706  BUILD_EXEEXT=$EXEEXT
12707fi
12708if test x"$cross_compiling" = xno; then
12709  TARGET_EXEEXT=$BUILD_EXEEXT
12710else
12711  TARGET_EXEEXT=$config_TARGET_EXEEXT
12712fi
12713if test "$TARGET_EXEEXT" = ".exe"; then
12714  if test $OS2_SHELL ; then
12715    SQLITE_OS_UNIX=0
12716    SQLITE_OS_WIN=0
12717    SQLITE_OS_OS2=1
12718    CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
12719  else
12720    SQLITE_OS_UNIX=0
12721    SQLITE_OS_WIN=1
12722    SQLITE_OS_OS2=0
12723    CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12724  fi
12725else
12726  SQLITE_OS_UNIX=1
12727  SQLITE_OS_WIN=0
12728  SQLITE_OS_OS2=0
12729  CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12730fi
12731
12732
12733
12734
12735
12736
12737
12738##########
12739# Figure out all the parameters needed to compile against Tcl.
12740#
12741# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12742# macros in the in the tcl.m4 file of the standard TCL distribution.
12743# Those macros could not be used directly since we have to make some
12744# minor changes to accomodate systems that do not have TCL installed.
12745#
12746# Check whether --enable-tcl was given.
12747if test "${enable_tcl+set}" = set; then
12748  enableval=$enable_tcl; use_tcl=$enableval
12749else
12750  use_tcl=yes
12751fi
12752
12753if test "${use_tcl}" = "yes" ; then
12754
12755# Check whether --with-tcl was given.
12756if test "${with_tcl+set}" = set; then
12757  withval=$with_tcl; with_tclconfig=${withval}
12758fi
12759
12760  { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12761$as_echo_n "checking for Tcl configuration... " >&6; }
12762  if test "${ac_cv_c_tclconfig+set}" = set; then
12763  $as_echo_n "(cached) " >&6
12764else
12765
12766    # First check to see if --with-tcl was specified.
12767    if test x"${with_tclconfig}" != x ; then
12768      if test -f "${with_tclconfig}/tclConfig.sh" ; then
12769        ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12770      else
12771        { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12772$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
12773   { (exit 1); exit 1; }; }
12774      fi
12775    fi
12776
12777    # Start autosearch by asking tclsh
12778    if test x"$cross_compiling" = xno; then
12779      for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12780      do
12781        if test -f "$i/tclConfig.sh" ; then
12782          ac_cv_c_tclconfig="$i"
12783          break
12784        fi
12785      done
12786    fi
12787
12788    # then check for a private Tcl installation
12789    if test x"${ac_cv_c_tclconfig}" = x ; then
12790      for i in \
12791            ../tcl \
12792            `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12793            `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12794            `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12795            ../../tcl \
12796            `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12797            `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12798            `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12799            ../../../tcl \
12800            `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12801            `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12802            `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12803      do
12804        if test -f "$i/unix/tclConfig.sh" ; then
12805          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12806          break
12807        fi
12808      done
12809    fi
12810
12811    # check in a few common install locations
12812    if test x"${ac_cv_c_tclconfig}" = x ; then
12813      for i in \
12814            `ls -d ${libdir} 2>/dev/null` \
12815            `ls -d /usr/local/lib 2>/dev/null` \
12816            `ls -d /usr/contrib/lib 2>/dev/null` \
12817            `ls -d /usr/lib 2>/dev/null`
12818      do
12819        if test -f "$i/tclConfig.sh" ; then
12820           ac_cv_c_tclconfig=`(cd $i; pwd)`
12821           break
12822        fi
12823      done
12824    fi
12825
12826    # check in a few other private locations
12827    if test x"${ac_cv_c_tclconfig}" = x ; then
12828      for i in \
12829         ${srcdir}/../tcl \
12830         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12831         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12832         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12833      do
12834        if test -f "$i/unix/tclConfig.sh" ; then
12835          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12836          break
12837        fi
12838      done
12839    fi
12840
12841fi
12842
12843
12844  if test x"${ac_cv_c_tclconfig}" = x ; then
12845    use_tcl=no
12846    { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
12847$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12848    { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12849$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12850    { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12851$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12852  else
12853    TCL_BIN_DIR=${ac_cv_c_tclconfig}
12854    { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12855$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12856
12857    { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12858$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12859    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12860      { $as_echo "$as_me:$LINENO: result: loading" >&5
12861$as_echo "loading" >&6; }
12862      . $TCL_BIN_DIR/tclConfig.sh
12863    else
12864      { $as_echo "$as_me:$LINENO: result: file not found" >&5
12865$as_echo "file not found" >&6; }
12866    fi
12867
12868    #
12869    # If the TCL_BIN_DIR is the build directory (not the install directory),
12870    # then set the common variable name to the value of the build variables.
12871    # For example, the variable TCL_LIB_SPEC will be set to the value
12872    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12873    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12874    # installed and uninstalled version of Tcl.
12875    #
12876
12877    if test -f $TCL_BIN_DIR/Makefile ; then
12878      TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12879      TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12880      TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12881    fi
12882
12883    #
12884    # eval is required to do the TCL_DBGX substitution
12885    #
12886
12887    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12888    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12889    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12890
12891    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12892    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12893    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908  fi
12909fi
12910if test "${use_tcl}" = "no" ; then
12911  HAVE_TCL=""
12912else
12913  HAVE_TCL=1
12914fi
12915
12916
12917##########
12918# Figure out what C libraries are required to compile programs
12919# that use "readline()" library.
12920#
12921TARGET_READLINE_LIBS=""
12922TARGET_READLINE_INC=""
12923TARGET_HAVE_READLINE=0
12924# Check whether --enable-readline was given.
12925if test "${enable_readline+set}" = set; then
12926  enableval=$enable_readline; with_readline=$enableval
12927else
12928  with_readline=auto
12929fi
12930
12931
12932if test x"$with_readline" != xno; then
12933	found="yes"
12934
12935
12936# Check whether --with-readline-lib was given.
12937if test "${with_readline_lib+set}" = set; then
12938  withval=$with_readline_lib; with_readline_lib=$withval
12939else
12940  with_readline_lib="auto"
12941fi
12942
12943	if test "x$with_readline_lib" = xauto; then
12944		save_LIBS="$LIBS"
12945		LIBS=""
12946		{ $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12947$as_echo_n "checking for library containing tgetent... " >&6; }
12948if test "${ac_cv_search_tgetent+set}" = set; then
12949  $as_echo_n "(cached) " >&6
12950else
12951  ac_func_search_save_LIBS=$LIBS
12952cat >conftest.$ac_ext <<_ACEOF
12953/* confdefs.h.  */
12954_ACEOF
12955cat confdefs.h >>conftest.$ac_ext
12956cat >>conftest.$ac_ext <<_ACEOF
12957/* end confdefs.h.  */
12958
12959/* Override any GCC internal prototype to avoid an error.
12960   Use char because int might match the return type of a GCC
12961   builtin and then its argument prototype would still apply.  */
12962#ifdef __cplusplus
12963extern "C"
12964#endif
12965char tgetent ();
12966int
12967main ()
12968{
12969return tgetent ();
12970  ;
12971  return 0;
12972}
12973_ACEOF
12974for ac_lib in '' readline ncurses curses termcap; do
12975  if test -z "$ac_lib"; then
12976    ac_res="none required"
12977  else
12978    ac_res=-l$ac_lib
12979    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12980  fi
12981  rm -f conftest.$ac_objext conftest$ac_exeext
12982if { (ac_try="$ac_link"
12983case "(($ac_try" in
12984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985  *) ac_try_echo=$ac_try;;
12986esac
12987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12988$as_echo "$ac_try_echo") >&5
12989  (eval "$ac_link") 2>conftest.er1
12990  ac_status=$?
12991  grep -v '^ *+' conftest.er1 >conftest.err
12992  rm -f conftest.er1
12993  cat conftest.err >&5
12994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995  (exit $ac_status); } && {
12996	 test -z "$ac_c_werror_flag" ||
12997	 test ! -s conftest.err
12998       } && test -s conftest$ac_exeext && {
12999	 test "$cross_compiling" = yes ||
13000	 $as_test_x conftest$ac_exeext
13001       }; then
13002  ac_cv_search_tgetent=$ac_res
13003else
13004  $as_echo "$as_me: failed program was:" >&5
13005sed 's/^/| /' conftest.$ac_ext >&5
13006
13007
13008fi
13009
13010rm -rf conftest.dSYM
13011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13012      conftest$ac_exeext
13013  if test "${ac_cv_search_tgetent+set}" = set; then
13014  break
13015fi
13016done
13017if test "${ac_cv_search_tgetent+set}" = set; then
13018  :
13019else
13020  ac_cv_search_tgetent=no
13021fi
13022rm conftest.$ac_ext
13023LIBS=$ac_func_search_save_LIBS
13024fi
13025{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13026$as_echo "$ac_cv_search_tgetent" >&6; }
13027ac_res=$ac_cv_search_tgetent
13028if test "$ac_res" != no; then
13029  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13030  term_LIBS="$LIBS"
13031else
13032  term_LIBS=""
13033fi
13034
13035		{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13036$as_echo_n "checking for readline in -lreadline... " >&6; }
13037if test "${ac_cv_lib_readline_readline+set}" = set; then
13038  $as_echo_n "(cached) " >&6
13039else
13040  ac_check_lib_save_LIBS=$LIBS
13041LIBS="-lreadline  $LIBS"
13042cat >conftest.$ac_ext <<_ACEOF
13043/* confdefs.h.  */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h.  */
13048
13049/* Override any GCC internal prototype to avoid an error.
13050   Use char because int might match the return type of a GCC
13051   builtin and then its argument prototype would still apply.  */
13052#ifdef __cplusplus
13053extern "C"
13054#endif
13055char readline ();
13056int
13057main ()
13058{
13059return readline ();
13060  ;
13061  return 0;
13062}
13063_ACEOF
13064rm -f conftest.$ac_objext conftest$ac_exeext
13065if { (ac_try="$ac_link"
13066case "(($ac_try" in
13067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068  *) ac_try_echo=$ac_try;;
13069esac
13070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13071$as_echo "$ac_try_echo") >&5
13072  (eval "$ac_link") 2>conftest.er1
13073  ac_status=$?
13074  grep -v '^ *+' conftest.er1 >conftest.err
13075  rm -f conftest.er1
13076  cat conftest.err >&5
13077  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078  (exit $ac_status); } && {
13079	 test -z "$ac_c_werror_flag" ||
13080	 test ! -s conftest.err
13081       } && test -s conftest$ac_exeext && {
13082	 test "$cross_compiling" = yes ||
13083	 $as_test_x conftest$ac_exeext
13084       }; then
13085  ac_cv_lib_readline_readline=yes
13086else
13087  $as_echo "$as_me: failed program was:" >&5
13088sed 's/^/| /' conftest.$ac_ext >&5
13089
13090	ac_cv_lib_readline_readline=no
13091fi
13092
13093rm -rf conftest.dSYM
13094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13095      conftest$ac_exeext conftest.$ac_ext
13096LIBS=$ac_check_lib_save_LIBS
13097fi
13098{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13099$as_echo "$ac_cv_lib_readline_readline" >&6; }
13100if test $ac_cv_lib_readline_readline = yes; then
13101  TARGET_READLINE_LIBS="-lreadline"
13102else
13103  found="no"
13104fi
13105
13106		TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13107		LIBS="$save_LIBS"
13108	else
13109		TARGET_READLINE_LIBS="$with_readline_lib"
13110	fi
13111
13112
13113# Check whether --with-readline-inc was given.
13114if test "${with_readline_inc+set}" = set; then
13115  withval=$with_readline_inc; with_readline_inc=$withval
13116else
13117  with_readline_inc="auto"
13118fi
13119
13120	if test "x$with_readline_inc" = xauto; then
13121		if test "${ac_cv_header_readline_h+set}" = set; then
13122  { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13123$as_echo_n "checking for readline.h... " >&6; }
13124if test "${ac_cv_header_readline_h+set}" = set; then
13125  $as_echo_n "(cached) " >&6
13126fi
13127{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13128$as_echo "$ac_cv_header_readline_h" >&6; }
13129else
13130  # Is the header compilable?
13131{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13132$as_echo_n "checking readline.h usability... " >&6; }
13133cat >conftest.$ac_ext <<_ACEOF
13134/* confdefs.h.  */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h.  */
13139$ac_includes_default
13140#include <readline.h>
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (ac_try="$ac_compile"
13144case "(($ac_try" in
13145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146  *) ac_try_echo=$ac_try;;
13147esac
13148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13149$as_echo "$ac_try_echo") >&5
13150  (eval "$ac_compile") 2>conftest.er1
13151  ac_status=$?
13152  grep -v '^ *+' conftest.er1 >conftest.err
13153  rm -f conftest.er1
13154  cat conftest.err >&5
13155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156  (exit $ac_status); } && {
13157	 test -z "$ac_c_werror_flag" ||
13158	 test ! -s conftest.err
13159       } && test -s conftest.$ac_objext; then
13160  ac_header_compiler=yes
13161else
13162  $as_echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
13165	ac_header_compiler=no
13166fi
13167
13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13170$as_echo "$ac_header_compiler" >&6; }
13171
13172# Is the header present?
13173{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13174$as_echo_n "checking readline.h presence... " >&6; }
13175cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h.  */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h.  */
13181#include <readline.h>
13182_ACEOF
13183if { (ac_try="$ac_cpp conftest.$ac_ext"
13184case "(($ac_try" in
13185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186  *) ac_try_echo=$ac_try;;
13187esac
13188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13189$as_echo "$ac_try_echo") >&5
13190  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13191  ac_status=$?
13192  grep -v '^ *+' conftest.er1 >conftest.err
13193  rm -f conftest.er1
13194  cat conftest.err >&5
13195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196  (exit $ac_status); } >/dev/null && {
13197	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13198	 test ! -s conftest.err
13199       }; then
13200  ac_header_preproc=yes
13201else
13202  $as_echo "$as_me: failed program was:" >&5
13203sed 's/^/| /' conftest.$ac_ext >&5
13204
13205  ac_header_preproc=no
13206fi
13207
13208rm -f conftest.err conftest.$ac_ext
13209{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13210$as_echo "$ac_header_preproc" >&6; }
13211
13212# So?  What about this header?
13213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13214  yes:no: )
13215    { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13216$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13217    { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13218$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
13219    ac_header_preproc=yes
13220    ;;
13221  no:yes:* )
13222    { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13223$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13224    { $as_echo "$as_me:$LINENO: WARNING: readline.h:     check for missing prerequisite headers?" >&5
13225$as_echo "$as_me: WARNING: readline.h:     check for missing prerequisite headers?" >&2;}
13226    { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13227$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13228    { $as_echo "$as_me:$LINENO: WARNING: readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13229$as_echo "$as_me: WARNING: readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13230    { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13231$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13232    { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13233$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13234
13235    ;;
13236esac
13237{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13238$as_echo_n "checking for readline.h... " >&6; }
13239if test "${ac_cv_header_readline_h+set}" = set; then
13240  $as_echo_n "(cached) " >&6
13241else
13242  ac_cv_header_readline_h=$ac_header_preproc
13243fi
13244{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13245$as_echo "$ac_cv_header_readline_h" >&6; }
13246
13247fi
13248if test $ac_cv_header_readline_h = yes; then
13249  found="yes"
13250else
13251
13252			found="no"
13253			if test "$cross_compiling" != yes; then
13254				for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13255					for subdir in include include/readline; do
13256						as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13257{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13258$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
13259if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13260  $as_echo_n "(cached) " >&6
13261else
13262  test "$cross_compiling" = yes &&
13263  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13264$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13265   { (exit 1); exit 1; }; }
13266if test -r "$dir/$subdir/readline.h"; then
13267  eval "$as_ac_File=yes"
13268else
13269  eval "$as_ac_File=no"
13270fi
13271fi
13272ac_res=`eval 'as_val=${'$as_ac_File'}
13273		 $as_echo "$as_val"'`
13274	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13275$as_echo "$ac_res" >&6; }
13276if test `eval 'as_val=${'$as_ac_File'}
13277		 $as_echo "$as_val"'` = yes; then
13278  found=yes
13279fi
13280
13281						if test "$found" = "yes"; then
13282							TARGET_READLINE_INC="-I$dir/$subdir"
13283							break
13284						fi
13285					done
13286					test "$found" = "yes" && break
13287				done
13288			fi
13289
13290fi
13291
13292
13293	else
13294		TARGET_READLINE_INC="$with_readline_inc"
13295	fi
13296
13297	if test x"$found" = xno; then
13298		TARGET_READLINE_LIBS=""
13299		TARGET_READLINE_INC=""
13300		TARGET_HAVE_READLINE=0
13301	else
13302		TARGET_HAVE_READLINE=1
13303	fi
13304fi
13305
13306
13307
13308
13309
13310##########
13311# Figure out what C libraries are required to compile programs
13312# that use "fdatasync()" function.
13313#
13314{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13315$as_echo_n "checking for library containing fdatasync... " >&6; }
13316if test "${ac_cv_search_fdatasync+set}" = set; then
13317  $as_echo_n "(cached) " >&6
13318else
13319  ac_func_search_save_LIBS=$LIBS
13320cat >conftest.$ac_ext <<_ACEOF
13321/* confdefs.h.  */
13322_ACEOF
13323cat confdefs.h >>conftest.$ac_ext
13324cat >>conftest.$ac_ext <<_ACEOF
13325/* end confdefs.h.  */
13326
13327/* Override any GCC internal prototype to avoid an error.
13328   Use char because int might match the return type of a GCC
13329   builtin and then its argument prototype would still apply.  */
13330#ifdef __cplusplus
13331extern "C"
13332#endif
13333char fdatasync ();
13334int
13335main ()
13336{
13337return fdatasync ();
13338  ;
13339  return 0;
13340}
13341_ACEOF
13342for ac_lib in '' rt; do
13343  if test -z "$ac_lib"; then
13344    ac_res="none required"
13345  else
13346    ac_res=-l$ac_lib
13347    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13348  fi
13349  rm -f conftest.$ac_objext conftest$ac_exeext
13350if { (ac_try="$ac_link"
13351case "(($ac_try" in
13352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353  *) ac_try_echo=$ac_try;;
13354esac
13355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13356$as_echo "$ac_try_echo") >&5
13357  (eval "$ac_link") 2>conftest.er1
13358  ac_status=$?
13359  grep -v '^ *+' conftest.er1 >conftest.err
13360  rm -f conftest.er1
13361  cat conftest.err >&5
13362  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363  (exit $ac_status); } && {
13364	 test -z "$ac_c_werror_flag" ||
13365	 test ! -s conftest.err
13366       } && test -s conftest$ac_exeext && {
13367	 test "$cross_compiling" = yes ||
13368	 $as_test_x conftest$ac_exeext
13369       }; then
13370  ac_cv_search_fdatasync=$ac_res
13371else
13372  $as_echo "$as_me: failed program was:" >&5
13373sed 's/^/| /' conftest.$ac_ext >&5
13374
13375
13376fi
13377
13378rm -rf conftest.dSYM
13379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13380      conftest$ac_exeext
13381  if test "${ac_cv_search_fdatasync+set}" = set; then
13382  break
13383fi
13384done
13385if test "${ac_cv_search_fdatasync+set}" = set; then
13386  :
13387else
13388  ac_cv_search_fdatasync=no
13389fi
13390rm conftest.$ac_ext
13391LIBS=$ac_func_search_save_LIBS
13392fi
13393{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13394$as_echo "$ac_cv_search_fdatasync" >&6; }
13395ac_res=$ac_cv_search_fdatasync
13396if test "$ac_res" != no; then
13397  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13398
13399fi
13400
13401
13402#########
13403# check for debug enabled
13404# Check whether --enable-debug was given.
13405if test "${enable_debug+set}" = set; then
13406  enableval=$enable_debug; use_debug=$enableval
13407else
13408  use_debug=no
13409fi
13410
13411if test "${use_debug}" = "yes" ; then
13412  TARGET_DEBUG="-DSQLITE_DEBUG=1"
13413else
13414  TARGET_DEBUG="-DNDEBUG"
13415fi
13416
13417
13418#########
13419# See whether we should use the amalgamation to build
13420# Check whether --enable-amalgamation was given.
13421if test "${enable_amalgamation+set}" = set; then
13422  enableval=$enable_amalgamation; use_amalgamation=$enableval
13423else
13424  use_amalgamation=yes
13425fi
13426
13427if test "${use_amalgamation}" != "yes" ; then
13428  USE_AMALGAMATION=0
13429fi
13430
13431
13432#########
13433# See whether we should allow loadable extensions
13434# Check whether --enable-load-extension was given.
13435if test "${enable_load_extension+set}" = set; then
13436  enableval=$enable_load_extension; use_loadextension=$enableval
13437else
13438  use_loadextension=no
13439fi
13440
13441if test "${use_loadextension}" = "yes" ; then
13442  OPT_FEATURE_FLAGS=""
13443else
13444  OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13445fi
13446
13447#########
13448# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
13449for option in $CFLAGS $CPPFLAGS
13450do
13451  case $option in
13452    -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13453    -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13454  esac
13455done
13456
13457
13458
13459# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13460ac_temp_CFLAGS=""
13461for option in $CFLAGS
13462do
13463  case $option in
13464    -DSQLITE_OMIT*) ;;
13465    -DSQLITE_ENABLE*) ;;
13466    *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13467  esac
13468done
13469CFLAGS=$ac_temp_CFLAGS
13470
13471
13472# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13473ac_temp_CPPFLAGS=""
13474for option in $CPPFLAGS
13475do
13476  case $option in
13477    -DSQLITE_OMIT*) ;;
13478    -DSQLITE_ENABLE*) ;;
13479    *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13480  esac
13481done
13482CPPFLAGS=$ac_temp_CPPFLAGS
13483
13484
13485# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13486ac_temp_BUILD_CFLAGS=""
13487for option in $BUILD_CFLAGS
13488do
13489  case $option in
13490    -DSQLITE_OMIT*) ;;
13491    -DSQLITE_ENABLE*) ;;
13492    *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13493  esac
13494done
13495BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13496
13497
13498#########
13499# See whether we should use GCOV
13500# Check whether --enable-gcov was given.
13501if test "${enable_gcov+set}" = set; then
13502  enableval=$enable_gcov; use_gcov=$enableval
13503else
13504  use_gcov=no
13505fi
13506
13507if test "${use_gcov}" = "yes" ; then
13508  USE_GCOV=1
13509else
13510  USE_GCOV=0
13511fi
13512
13513
13514
13515#########
13516# Output the config header
13517ac_config_headers="$ac_config_headers config.h"
13518
13519
13520#########
13521# Generate the output files.
13522#
13523
13524ac_config_files="$ac_config_files Makefile sqlite3.pc"
13525
13526cat >confcache <<\_ACEOF
13527# This file is a shell script that caches the results of configure
13528# tests run on this system so they can be shared between configure
13529# scripts and configure runs, see configure's option --config-cache.
13530# It is not useful on other systems.  If it contains results you don't
13531# want to keep, you may remove or edit it.
13532#
13533# config.status only pays attention to the cache file if you give it
13534# the --recheck option to rerun configure.
13535#
13536# `ac_cv_env_foo' variables (set or unset) will be overridden when
13537# loading this file, other *unset* `ac_cv_foo' will be assigned the
13538# following values.
13539
13540_ACEOF
13541
13542# The following way of writing the cache mishandles newlines in values,
13543# but we know of no workaround that is simple, portable, and efficient.
13544# So, we kill variables containing newlines.
13545# Ultrix sh set writes to stderr and can't be redirected directly,
13546# and sets the high bit in the cache file unless we assign to the vars.
13547(
13548  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13549    eval ac_val=\$$ac_var
13550    case $ac_val in #(
13551    *${as_nl}*)
13552      case $ac_var in #(
13553      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13554$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13555      esac
13556      case $ac_var in #(
13557      _ | IFS | as_nl) ;; #(
13558      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13559      *) $as_unset $ac_var ;;
13560      esac ;;
13561    esac
13562  done
13563
13564  (set) 2>&1 |
13565    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13566    *${as_nl}ac_space=\ *)
13567      # `set' does not quote correctly, so add quotes (double-quote
13568      # substitution turns \\\\ into \\, and sed turns \\ into \).
13569      sed -n \
13570	"s/'/'\\\\''/g;
13571	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13572      ;; #(
13573    *)
13574      # `set' quotes correctly as required by POSIX, so do not add quotes.
13575      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13576      ;;
13577    esac |
13578    sort
13579) |
13580  sed '
13581     /^ac_cv_env_/b end
13582     t clear
13583     :clear
13584     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13585     t end
13586     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13587     :end' >>confcache
13588if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13589  if test -w "$cache_file"; then
13590    test "x$cache_file" != "x/dev/null" &&
13591      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13592$as_echo "$as_me: updating cache $cache_file" >&6;}
13593    cat confcache >$cache_file
13594  else
13595    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13596$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13597  fi
13598fi
13599rm -f confcache
13600
13601test "x$prefix" = xNONE && prefix=$ac_default_prefix
13602# Let make expand exec_prefix.
13603test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13604
13605DEFS=-DHAVE_CONFIG_H
13606
13607ac_libobjs=
13608ac_ltlibobjs=
13609for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13610  # 1. Remove the extension, and $U if already installed.
13611  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13612  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13613  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13614  #    will be set to the directory where LIBOBJS objects are built.
13615  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13616  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13617done
13618LIBOBJS=$ac_libobjs
13619
13620LTLIBOBJS=$ac_ltlibobjs
13621
13622
13623
13624: ${CONFIG_STATUS=./config.status}
13625ac_write_fail=0
13626ac_clean_files_save=$ac_clean_files
13627ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13628{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13629$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13630cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13631#! $SHELL
13632# Generated by $as_me.
13633# Run this file to recreate the current configuration.
13634# Compiler output produced by configure, useful for debugging
13635# configure, is in config.log if it exists.
13636
13637debug=false
13638ac_cs_recheck=false
13639ac_cs_silent=false
13640SHELL=\${CONFIG_SHELL-$SHELL}
13641_ACEOF
13642
13643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13644## --------------------- ##
13645## M4sh Initialization.  ##
13646## --------------------- ##
13647
13648# Be more Bourne compatible
13649DUALCASE=1; export DUALCASE # for MKS sh
13650if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13651  emulate sh
13652  NULLCMD=:
13653  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13654  # is contrary to our usage.  Disable this feature.
13655  alias -g '${1+"$@"}'='"$@"'
13656  setopt NO_GLOB_SUBST
13657else
13658  case `(set -o) 2>/dev/null` in
13659  *posix*) set -o posix ;;
13660esac
13661
13662fi
13663
13664
13665
13666
13667# PATH needs CR
13668# Avoid depending upon Character Ranges.
13669as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13670as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13671as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13672as_cr_digits='0123456789'
13673as_cr_alnum=$as_cr_Letters$as_cr_digits
13674
13675as_nl='
13676'
13677export as_nl
13678# Printing a long string crashes Solaris 7 /usr/bin/printf.
13679as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13680as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13681as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13682if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13683  as_echo='printf %s\n'
13684  as_echo_n='printf %s'
13685else
13686  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13687    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13688    as_echo_n='/usr/ucb/echo -n'
13689  else
13690    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13691    as_echo_n_body='eval
13692      arg=$1;
13693      case $arg in
13694      *"$as_nl"*)
13695	expr "X$arg" : "X\\(.*\\)$as_nl";
13696	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13697      esac;
13698      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13699    '
13700    export as_echo_n_body
13701    as_echo_n='sh -c $as_echo_n_body as_echo'
13702  fi
13703  export as_echo_body
13704  as_echo='sh -c $as_echo_body as_echo'
13705fi
13706
13707# The user is always right.
13708if test "${PATH_SEPARATOR+set}" != set; then
13709  PATH_SEPARATOR=:
13710  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13711    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13712      PATH_SEPARATOR=';'
13713  }
13714fi
13715
13716# Support unset when possible.
13717if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13718  as_unset=unset
13719else
13720  as_unset=false
13721fi
13722
13723
13724# IFS
13725# We need space, tab and new line, in precisely that order.  Quoting is
13726# there to prevent editors from complaining about space-tab.
13727# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13728# splitting by setting IFS to empty value.)
13729IFS=" ""	$as_nl"
13730
13731# Find who we are.  Look in the path if we contain no directory separator.
13732case $0 in
13733  *[\\/]* ) as_myself=$0 ;;
13734  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735for as_dir in $PATH
13736do
13737  IFS=$as_save_IFS
13738  test -z "$as_dir" && as_dir=.
13739  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13740done
13741IFS=$as_save_IFS
13742
13743     ;;
13744esac
13745# We did not find ourselves, most probably we were run as `sh COMMAND'
13746# in which case we are not to be found in the path.
13747if test "x$as_myself" = x; then
13748  as_myself=$0
13749fi
13750if test ! -f "$as_myself"; then
13751  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13752  { (exit 1); exit 1; }
13753fi
13754
13755# Work around bugs in pre-3.0 UWIN ksh.
13756for as_var in ENV MAIL MAILPATH
13757do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13758done
13759PS1='$ '
13760PS2='> '
13761PS4='+ '
13762
13763# NLS nuisances.
13764LC_ALL=C
13765export LC_ALL
13766LANGUAGE=C
13767export LANGUAGE
13768
13769# Required to use basename.
13770if expr a : '\(a\)' >/dev/null 2>&1 &&
13771   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13772  as_expr=expr
13773else
13774  as_expr=false
13775fi
13776
13777if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13778  as_basename=basename
13779else
13780  as_basename=false
13781fi
13782
13783
13784# Name of the executable.
13785as_me=`$as_basename -- "$0" ||
13786$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13787	 X"$0" : 'X\(//\)$' \| \
13788	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13789$as_echo X/"$0" |
13790    sed '/^.*\/\([^/][^/]*\)\/*$/{
13791	    s//\1/
13792	    q
13793	  }
13794	  /^X\/\(\/\/\)$/{
13795	    s//\1/
13796	    q
13797	  }
13798	  /^X\/\(\/\).*/{
13799	    s//\1/
13800	    q
13801	  }
13802	  s/.*/./; q'`
13803
13804# CDPATH.
13805$as_unset CDPATH
13806
13807
13808
13809  as_lineno_1=$LINENO
13810  as_lineno_2=$LINENO
13811  test "x$as_lineno_1" != "x$as_lineno_2" &&
13812  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13813
13814  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13815  # uniformly replaced by the line number.  The first 'sed' inserts a
13816  # line-number line after each line using $LINENO; the second 'sed'
13817  # does the real work.  The second script uses 'N' to pair each
13818  # line-number line with the line containing $LINENO, and appends
13819  # trailing '-' during substitution so that $LINENO is not a special
13820  # case at line end.
13821  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13822  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13823  # E. McMahon (1931-1989) for sed's syntax.  :-)
13824  sed -n '
13825    p
13826    /[$]LINENO/=
13827  ' <$as_myself |
13828    sed '
13829      s/[$]LINENO.*/&-/
13830      t lineno
13831      b
13832      :lineno
13833      N
13834      :loop
13835      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13836      t loop
13837      s/-\n.*//
13838    ' >$as_me.lineno &&
13839  chmod +x "$as_me.lineno" ||
13840    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13841   { (exit 1); exit 1; }; }
13842
13843  # Don't try to exec as it changes $[0], causing all sort of problems
13844  # (the dirname of $[0] is not the place where we might find the
13845  # original and so on.  Autoconf is especially sensitive to this).
13846  . "./$as_me.lineno"
13847  # Exit status is that of the last command.
13848  exit
13849}
13850
13851
13852if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13853  as_dirname=dirname
13854else
13855  as_dirname=false
13856fi
13857
13858ECHO_C= ECHO_N= ECHO_T=
13859case `echo -n x` in
13860-n*)
13861  case `echo 'x\c'` in
13862  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13863  *)   ECHO_C='\c';;
13864  esac;;
13865*)
13866  ECHO_N='-n';;
13867esac
13868if expr a : '\(a\)' >/dev/null 2>&1 &&
13869   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13870  as_expr=expr
13871else
13872  as_expr=false
13873fi
13874
13875rm -f conf$$ conf$$.exe conf$$.file
13876if test -d conf$$.dir; then
13877  rm -f conf$$.dir/conf$$.file
13878else
13879  rm -f conf$$.dir
13880  mkdir conf$$.dir 2>/dev/null
13881fi
13882if (echo >conf$$.file) 2>/dev/null; then
13883  if ln -s conf$$.file conf$$ 2>/dev/null; then
13884    as_ln_s='ln -s'
13885    # ... but there are two gotchas:
13886    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13887    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13888    # In both cases, we have to default to `cp -p'.
13889    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13890      as_ln_s='cp -p'
13891  elif ln conf$$.file conf$$ 2>/dev/null; then
13892    as_ln_s=ln
13893  else
13894    as_ln_s='cp -p'
13895  fi
13896else
13897  as_ln_s='cp -p'
13898fi
13899rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13900rmdir conf$$.dir 2>/dev/null
13901
13902if mkdir -p . 2>/dev/null; then
13903  as_mkdir_p=:
13904else
13905  test -d ./-p && rmdir ./-p
13906  as_mkdir_p=false
13907fi
13908
13909if test -x / >/dev/null 2>&1; then
13910  as_test_x='test -x'
13911else
13912  if ls -dL / >/dev/null 2>&1; then
13913    as_ls_L_option=L
13914  else
13915    as_ls_L_option=
13916  fi
13917  as_test_x='
13918    eval sh -c '\''
13919      if test -d "$1"; then
13920	test -d "$1/.";
13921      else
13922	case $1 in
13923	-*)set "./$1";;
13924	esac;
13925	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13926	???[sx]*):;;*)false;;esac;fi
13927    '\'' sh
13928  '
13929fi
13930as_executable_p=$as_test_x
13931
13932# Sed expression to map a string onto a valid CPP name.
13933as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13934
13935# Sed expression to map a string onto a valid variable name.
13936as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13937
13938
13939exec 6>&1
13940
13941# Save the log message, to keep $[0] and so on meaningful, and to
13942# report actual input values of CONFIG_FILES etc. instead of their
13943# values after options handling.
13944ac_log="
13945This file was extended by sqlite $as_me 3.7.6.3, which was
13946generated by GNU Autoconf 2.62.  Invocation command line was
13947
13948  CONFIG_FILES    = $CONFIG_FILES
13949  CONFIG_HEADERS  = $CONFIG_HEADERS
13950  CONFIG_LINKS    = $CONFIG_LINKS
13951  CONFIG_COMMANDS = $CONFIG_COMMANDS
13952  $ $0 $@
13953
13954on `(hostname || uname -n) 2>/dev/null | sed 1q`
13955"
13956
13957_ACEOF
13958
13959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13960# Files that config.status was made for.
13961config_files="$ac_config_files"
13962config_headers="$ac_config_headers"
13963config_commands="$ac_config_commands"
13964
13965_ACEOF
13966
13967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13968ac_cs_usage="\
13969\`$as_me' instantiates files from templates according to the
13970current configuration.
13971
13972Usage: $0 [OPTIONS] [FILE]...
13973
13974  -h, --help       print this help, then exit
13975  -V, --version    print version number and configuration settings, then exit
13976  -q, --quiet      do not print progress messages
13977  -d, --debug      don't remove temporary files
13978      --recheck    update $as_me by reconfiguring in the same conditions
13979  --file=FILE[:TEMPLATE]
13980                   instantiate the configuration file FILE
13981  --header=FILE[:TEMPLATE]
13982                   instantiate the configuration header FILE
13983
13984Configuration files:
13985$config_files
13986
13987Configuration headers:
13988$config_headers
13989
13990Configuration commands:
13991$config_commands
13992
13993Report bugs to <bug-autoconf@gnu.org>."
13994
13995_ACEOF
13996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13997ac_cs_version="\\
13998sqlite config.status 3.7.6.3
13999configured by $0, generated by GNU Autoconf 2.62,
14000  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14001
14002Copyright (C) 2008 Free Software Foundation, Inc.
14003This config.status script is free software; the Free Software Foundation
14004gives unlimited permission to copy, distribute and modify it."
14005
14006ac_pwd='$ac_pwd'
14007srcdir='$srcdir'
14008INSTALL='$INSTALL'
14009AWK='$AWK'
14010test -n "\$AWK" || AWK=awk
14011_ACEOF
14012
14013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14014# The default lists apply if the user does not specify any file.
14015ac_need_defaults=:
14016while test $# != 0
14017do
14018  case $1 in
14019  --*=*)
14020    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14021    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14022    ac_shift=:
14023    ;;
14024  *)
14025    ac_option=$1
14026    ac_optarg=$2
14027    ac_shift=shift
14028    ;;
14029  esac
14030
14031  case $ac_option in
14032  # Handling of the options.
14033  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14034    ac_cs_recheck=: ;;
14035  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14036    $as_echo "$ac_cs_version"; exit ;;
14037  --debug | --debu | --deb | --de | --d | -d )
14038    debug=: ;;
14039  --file | --fil | --fi | --f )
14040    $ac_shift
14041    case $ac_optarg in
14042    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14043    esac
14044    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14045    ac_need_defaults=false;;
14046  --header | --heade | --head | --hea )
14047    $ac_shift
14048    case $ac_optarg in
14049    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14050    esac
14051    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14052    ac_need_defaults=false;;
14053  --he | --h)
14054    # Conflict between --help and --header
14055    { $as_echo "$as_me: error: ambiguous option: $1
14056Try \`$0 --help' for more information." >&2
14057   { (exit 1); exit 1; }; };;
14058  --help | --hel | -h )
14059    $as_echo "$ac_cs_usage"; exit ;;
14060  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14061  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14062    ac_cs_silent=: ;;
14063
14064  # This is an error.
14065  -*) { $as_echo "$as_me: error: unrecognized option: $1
14066Try \`$0 --help' for more information." >&2
14067   { (exit 1); exit 1; }; } ;;
14068
14069  *) ac_config_targets="$ac_config_targets $1"
14070     ac_need_defaults=false ;;
14071
14072  esac
14073  shift
14074done
14075
14076ac_configure_extra_args=
14077
14078if $ac_cs_silent; then
14079  exec 6>/dev/null
14080  ac_configure_extra_args="$ac_configure_extra_args --silent"
14081fi
14082
14083_ACEOF
14084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14085if \$ac_cs_recheck; then
14086  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14087  shift
14088  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14089  CONFIG_SHELL='$SHELL'
14090  export CONFIG_SHELL
14091  exec "\$@"
14092fi
14093
14094_ACEOF
14095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14096exec 5>>config.log
14097{
14098  echo
14099  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14100## Running $as_me. ##
14101_ASBOX
14102  $as_echo "$ac_log"
14103} >&5
14104
14105_ACEOF
14106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14107#
14108# INIT-COMMANDS
14109#
14110
14111
14112# The HP-UX ksh and POSIX shell print the target directory to stdout
14113# if CDPATH is set.
14114(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14115
14116sed_quote_subst='$sed_quote_subst'
14117double_quote_subst='$double_quote_subst'
14118delay_variable_subst='$delay_variable_subst'
14119macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14120macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14121enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14122enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14123pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14124enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14125host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14126host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14127host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14128build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14129build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14130build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14131SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14132Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14133GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14134EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14135FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14136LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14137NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14138LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14139max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14140ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14141exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14142lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14143lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14144lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14145reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14146reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14147OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14148deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14149file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14150AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14151AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14152STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14153RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14154old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14155old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14156old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14157CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14158CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14159compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14160GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14161lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14162lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14163lt_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"`'
14164lt_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"`'
14165objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14166SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14167ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14168MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14169lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14170lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14171lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14172lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14173lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14174need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14175DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14176NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14177LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14178OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14179OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14180libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14181shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14182extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14183archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14184enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14185export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14186whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14187compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14188old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14189old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14190archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14191archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14192module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14193module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14194with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14195allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14196no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14197hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14198hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14199hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14200hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14201hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14202hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14203hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14204hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14205inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14206link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14207fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14208always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14209export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14210exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14211include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14212prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14213file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14214variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14215need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14216need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14217version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14218runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14219shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14220shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14221libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14222library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14223soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14224postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14225postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14226finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14227finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14228hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14229sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14230sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14231hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14232enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14233enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14234enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14235old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14236striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14237
14238LTCC='$LTCC'
14239LTCFLAGS='$LTCFLAGS'
14240compiler='$compiler_DEFAULT'
14241
14242# Quote evaled strings.
14243for var in SED \
14244GREP \
14245EGREP \
14246FGREP \
14247LD \
14248NM \
14249LN_S \
14250lt_SP2NL \
14251lt_NL2SP \
14252reload_flag \
14253OBJDUMP \
14254deplibs_check_method \
14255file_magic_cmd \
14256AR \
14257AR_FLAGS \
14258STRIP \
14259RANLIB \
14260CC \
14261CFLAGS \
14262compiler \
14263lt_cv_sys_global_symbol_pipe \
14264lt_cv_sys_global_symbol_to_cdecl \
14265lt_cv_sys_global_symbol_to_c_name_address \
14266lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14267SHELL \
14268ECHO \
14269lt_prog_compiler_no_builtin_flag \
14270lt_prog_compiler_wl \
14271lt_prog_compiler_pic \
14272lt_prog_compiler_static \
14273lt_cv_prog_compiler_c_o \
14274need_locks \
14275DSYMUTIL \
14276NMEDIT \
14277LIPO \
14278OTOOL \
14279OTOOL64 \
14280shrext_cmds \
14281export_dynamic_flag_spec \
14282whole_archive_flag_spec \
14283compiler_needs_object \
14284with_gnu_ld \
14285allow_undefined_flag \
14286no_undefined_flag \
14287hardcode_libdir_flag_spec \
14288hardcode_libdir_flag_spec_ld \
14289hardcode_libdir_separator \
14290fix_srcfile_path \
14291exclude_expsyms \
14292include_expsyms \
14293file_list_spec \
14294variables_saved_for_relink \
14295libname_spec \
14296library_names_spec \
14297soname_spec \
14298finish_eval \
14299old_striplib \
14300striplib; do
14301    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14302    *[\\\\\\\`\\"\\\$]*)
14303      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14304      ;;
14305    *)
14306      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14307      ;;
14308    esac
14309done
14310
14311# Double-quote double-evaled strings.
14312for var in reload_cmds \
14313old_postinstall_cmds \
14314old_postuninstall_cmds \
14315old_archive_cmds \
14316extract_expsyms_cmds \
14317old_archive_from_new_cmds \
14318old_archive_from_expsyms_cmds \
14319archive_cmds \
14320archive_expsym_cmds \
14321module_cmds \
14322module_expsym_cmds \
14323export_symbols_cmds \
14324prelink_cmds \
14325postinstall_cmds \
14326postuninstall_cmds \
14327finish_cmds \
14328sys_lib_search_path_spec \
14329sys_lib_dlsearch_path_spec; do
14330    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14331    *[\\\\\\\`\\"\\\$]*)
14332      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14333      ;;
14334    *)
14335      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14336      ;;
14337    esac
14338done
14339
14340# Fix-up fallback echo if it was mangled by the above quoting rules.
14341case \$lt_ECHO in
14342*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14343  ;;
14344esac
14345
14346ac_aux_dir='$ac_aux_dir'
14347xsi_shell='$xsi_shell'
14348lt_shell_append='$lt_shell_append'
14349
14350# See if we are running on zsh, and set the options which allow our
14351# commands through without removal of \ escapes INIT.
14352if test -n "\${ZSH_VERSION+set}" ; then
14353   setopt NO_GLOB_SUBST
14354fi
14355
14356
14357    PACKAGE='$PACKAGE'
14358    VERSION='$VERSION'
14359    TIMESTAMP='$TIMESTAMP'
14360    RM='$RM'
14361    ofile='$ofile'
14362
14363
14364
14365
14366_ACEOF
14367
14368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14369
14370# Handling of arguments.
14371for ac_config_target in $ac_config_targets
14372do
14373  case $ac_config_target in
14374    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14375    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14376    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14377    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14378
14379  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14380$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14381   { (exit 1); exit 1; }; };;
14382  esac
14383done
14384
14385
14386# If the user did not use the arguments to specify the items to instantiate,
14387# then the envvar interface is used.  Set only those that are not.
14388# We use the long form for the default assignment because of an extremely
14389# bizarre bug on SunOS 4.1.3.
14390if $ac_need_defaults; then
14391  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14392  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14393  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14394fi
14395
14396# Have a temporary directory for convenience.  Make it in the build tree
14397# simply because there is no reason against having it here, and in addition,
14398# creating and moving files from /tmp can sometimes cause problems.
14399# Hook for its removal unless debugging.
14400# Note that there is a small window in which the directory will not be cleaned:
14401# after its creation but before its name has been assigned to `$tmp'.
14402$debug ||
14403{
14404  tmp=
14405  trap 'exit_status=$?
14406  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14407' 0
14408  trap '{ (exit 1); exit 1; }' 1 2 13 15
14409}
14410# Create a (secure) tmp directory for tmp files.
14411
14412{
14413  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14414  test -n "$tmp" && test -d "$tmp"
14415}  ||
14416{
14417  tmp=./conf$$-$RANDOM
14418  (umask 077 && mkdir "$tmp")
14419} ||
14420{
14421   $as_echo "$as_me: cannot create a temporary directory in ." >&2
14422   { (exit 1); exit 1; }
14423}
14424
14425# Set up the scripts for CONFIG_FILES section.
14426# No need to generate them if there are no CONFIG_FILES.
14427# This happens for instance with `./config.status config.h'.
14428if test -n "$CONFIG_FILES"; then
14429
14430
14431ac_cr='
14432'
14433ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14434if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14435  ac_cs_awk_cr='\\r'
14436else
14437  ac_cs_awk_cr=$ac_cr
14438fi
14439
14440echo 'BEGIN {' >"$tmp/subs1.awk" &&
14441_ACEOF
14442
14443
14444{
14445  echo "cat >conf$$subs.awk <<_ACEOF" &&
14446  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14447  echo "_ACEOF"
14448} >conf$$subs.sh ||
14449  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14450$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14451   { (exit 1); exit 1; }; }
14452ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14453ac_delim='%!_!# '
14454for ac_last_try in false false false false false :; do
14455  . ./conf$$subs.sh ||
14456    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14457$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14458   { (exit 1); exit 1; }; }
14459
14460  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14461    break
14462  elif $ac_last_try; then
14463    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14464$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14465   { (exit 1); exit 1; }; }
14466  else
14467    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14468  fi
14469done
14470rm -f conf$$subs.sh
14471
14472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14473cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14474_ACEOF
14475sed -n '
14476h
14477s/^/S["/; s/!.*/"]=/
14478p
14479g
14480s/^[^!]*!//
14481:repl
14482t repl
14483s/'"$ac_delim"'$//
14484t delim
14485:nl
14486h
14487s/\(.\{148\}\).*/\1/
14488t more1
14489s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14490p
14491n
14492b repl
14493:more1
14494s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14495p
14496g
14497s/.\{148\}//
14498t nl
14499:delim
14500h
14501s/\(.\{148\}\).*/\1/
14502t more2
14503s/["\\]/\\&/g; s/^/"/; s/$/"/
14504p
14505b
14506:more2
14507s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14508p
14509g
14510s/.\{148\}//
14511t delim
14512' <conf$$subs.awk | sed '
14513/^[^""]/{
14514  N
14515  s/\n//
14516}
14517' >>$CONFIG_STATUS || ac_write_fail=1
14518rm -f conf$$subs.awk
14519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14520_ACAWK
14521cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14522  for (key in S) S_is_set[key] = 1
14523  FS = ""
14524
14525}
14526{
14527  line = $ 0
14528  nfields = split(line, field, "@")
14529  substed = 0
14530  len = length(field[1])
14531  for (i = 2; i < nfields; i++) {
14532    key = field[i]
14533    keylen = length(key)
14534    if (S_is_set[key]) {
14535      value = S[key]
14536      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14537      len += length(value) + length(field[++i])
14538      substed = 1
14539    } else
14540      len += 1 + keylen
14541  }
14542
14543  print line
14544}
14545
14546_ACAWK
14547_ACEOF
14548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14549if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14550  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14551else
14552  cat
14553fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14554  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14555$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14556   { (exit 1); exit 1; }; }
14557_ACEOF
14558
14559# VPATH may cause trouble with some makes, so we remove $(srcdir),
14560# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14561# trailing colons and then remove the whole line if VPATH becomes empty
14562# (actually we leave an empty line to preserve line numbers).
14563if test "x$srcdir" = x.; then
14564  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14565s/:*\$(srcdir):*/:/
14566s/:*\${srcdir}:*/:/
14567s/:*@srcdir@:*/:/
14568s/^\([^=]*=[	 ]*\):*/\1/
14569s/:*$//
14570s/^[^=]*=[	 ]*$//
14571}'
14572fi
14573
14574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14575fi # test -n "$CONFIG_FILES"
14576
14577# Set up the scripts for CONFIG_HEADERS section.
14578# No need to generate them if there are no CONFIG_HEADERS.
14579# This happens for instance with `./config.status Makefile'.
14580if test -n "$CONFIG_HEADERS"; then
14581cat >"$tmp/defines.awk" <<\_ACAWK ||
14582BEGIN {
14583_ACEOF
14584
14585# Transform confdefs.h into an awk script `defines.awk', embedded as
14586# here-document in config.status, that substitutes the proper values into
14587# config.h.in to produce config.h.
14588
14589# Create a delimiter string that does not exist in confdefs.h, to ease
14590# handling of long lines.
14591ac_delim='%!_!# '
14592for ac_last_try in false false :; do
14593  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14594  if test -z "$ac_t"; then
14595    break
14596  elif $ac_last_try; then
14597    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14598$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14599   { (exit 1); exit 1; }; }
14600  else
14601    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14602  fi
14603done
14604
14605# For the awk script, D is an array of macro values keyed by name,
14606# likewise P contains macro parameters if any.  Preserve backslash
14607# newline sequences.
14608
14609ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14610sed -n '
14611s/.\{148\}/&'"$ac_delim"'/g
14612t rset
14613:rset
14614s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14615t def
14616d
14617:def
14618s/\\$//
14619t bsnl
14620s/["\\]/\\&/g
14621s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14622D["\1"]=" \3"/p
14623s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14624d
14625:bsnl
14626s/["\\]/\\&/g
14627s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14628D["\1"]=" \3\\\\\\n"\\/p
14629t cont
14630s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14631t cont
14632d
14633:cont
14634n
14635s/.\{148\}/&'"$ac_delim"'/g
14636t clear
14637:clear
14638s/\\$//
14639t bsnlc
14640s/["\\]/\\&/g; s/^/"/; s/$/"/p
14641d
14642:bsnlc
14643s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14644b cont
14645' <confdefs.h | sed '
14646s/'"$ac_delim"'/"\\\
14647"/g' >>$CONFIG_STATUS || ac_write_fail=1
14648
14649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14650  for (key in D) D_is_set[key] = 1
14651  FS = ""
14652}
14653/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14654  line = \$ 0
14655  split(line, arg, " ")
14656  if (arg[1] == "#") {
14657    defundef = arg[2]
14658    mac1 = arg[3]
14659  } else {
14660    defundef = substr(arg[1], 2)
14661    mac1 = arg[2]
14662  }
14663  split(mac1, mac2, "(") #)
14664  macro = mac2[1]
14665  if (D_is_set[macro]) {
14666    # Preserve the white space surrounding the "#".
14667    prefix = substr(line, 1, index(line, defundef) - 1)
14668    print prefix "define", macro P[macro] D[macro]
14669    next
14670  } else {
14671    # Replace #undef with comments.  This is necessary, for example,
14672    # in the case of _POSIX_SOURCE, which is predefined and required
14673    # on some systems where configure will not decide to define it.
14674    if (defundef == "undef") {
14675      print "/*", line, "*/"
14676      next
14677    }
14678  }
14679}
14680{ print }
14681_ACAWK
14682_ACEOF
14683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14684  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14685$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14686   { (exit 1); exit 1; }; }
14687fi # test -n "$CONFIG_HEADERS"
14688
14689
14690eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14691shift
14692for ac_tag
14693do
14694  case $ac_tag in
14695  :[FHLC]) ac_mode=$ac_tag; continue;;
14696  esac
14697  case $ac_mode$ac_tag in
14698  :[FHL]*:*);;
14699  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14700$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14701   { (exit 1); exit 1; }; };;
14702  :[FH]-) ac_tag=-:-;;
14703  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14704  esac
14705  ac_save_IFS=$IFS
14706  IFS=:
14707  set x $ac_tag
14708  IFS=$ac_save_IFS
14709  shift
14710  ac_file=$1
14711  shift
14712
14713  case $ac_mode in
14714  :L) ac_source=$1;;
14715  :[FH])
14716    ac_file_inputs=
14717    for ac_f
14718    do
14719      case $ac_f in
14720      -) ac_f="$tmp/stdin";;
14721      *) # Look for the file first in the build tree, then in the source tree
14722	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14723	 # because $ac_f cannot contain `:'.
14724	 test -f "$ac_f" ||
14725	   case $ac_f in
14726	   [\\/$]*) false;;
14727	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14728	   esac ||
14729	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14730$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14731   { (exit 1); exit 1; }; };;
14732      esac
14733      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14734      ac_file_inputs="$ac_file_inputs '$ac_f'"
14735    done
14736
14737    # Let's still pretend it is `configure' which instantiates (i.e., don't
14738    # use $as_me), people would be surprised to read:
14739    #    /* config.h.  Generated by config.status.  */
14740    configure_input='Generated from '`
14741	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14742	`' by configure.'
14743    if test x"$ac_file" != x-; then
14744      configure_input="$ac_file.  $configure_input"
14745      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14746$as_echo "$as_me: creating $ac_file" >&6;}
14747    fi
14748    # Neutralize special characters interpreted by sed in replacement strings.
14749    case $configure_input in #(
14750    *\&* | *\|* | *\\* )
14751       ac_sed_conf_input=`$as_echo "$configure_input" |
14752       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14753    *) ac_sed_conf_input=$configure_input;;
14754    esac
14755
14756    case $ac_tag in
14757    *:-:* | *:-) cat >"$tmp/stdin" \
14758      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14759$as_echo "$as_me: error: could not create $ac_file" >&2;}
14760   { (exit 1); exit 1; }; } ;;
14761    esac
14762    ;;
14763  esac
14764
14765  ac_dir=`$as_dirname -- "$ac_file" ||
14766$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14767	 X"$ac_file" : 'X\(//\)[^/]' \| \
14768	 X"$ac_file" : 'X\(//\)$' \| \
14769	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14770$as_echo X"$ac_file" |
14771    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14772	    s//\1/
14773	    q
14774	  }
14775	  /^X\(\/\/\)[^/].*/{
14776	    s//\1/
14777	    q
14778	  }
14779	  /^X\(\/\/\)$/{
14780	    s//\1/
14781	    q
14782	  }
14783	  /^X\(\/\).*/{
14784	    s//\1/
14785	    q
14786	  }
14787	  s/.*/./; q'`
14788  { as_dir="$ac_dir"
14789  case $as_dir in #(
14790  -*) as_dir=./$as_dir;;
14791  esac
14792  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14793    as_dirs=
14794    while :; do
14795      case $as_dir in #(
14796      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14797      *) as_qdir=$as_dir;;
14798      esac
14799      as_dirs="'$as_qdir' $as_dirs"
14800      as_dir=`$as_dirname -- "$as_dir" ||
14801$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14802	 X"$as_dir" : 'X\(//\)[^/]' \| \
14803	 X"$as_dir" : 'X\(//\)$' \| \
14804	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14805$as_echo X"$as_dir" |
14806    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14807	    s//\1/
14808	    q
14809	  }
14810	  /^X\(\/\/\)[^/].*/{
14811	    s//\1/
14812	    q
14813	  }
14814	  /^X\(\/\/\)$/{
14815	    s//\1/
14816	    q
14817	  }
14818	  /^X\(\/\).*/{
14819	    s//\1/
14820	    q
14821	  }
14822	  s/.*/./; q'`
14823      test -d "$as_dir" && break
14824    done
14825    test -z "$as_dirs" || eval "mkdir $as_dirs"
14826  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14827$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14828   { (exit 1); exit 1; }; }; }
14829  ac_builddir=.
14830
14831case "$ac_dir" in
14832.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14833*)
14834  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14835  # A ".." for each directory in $ac_dir_suffix.
14836  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14837  case $ac_top_builddir_sub in
14838  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14839  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14840  esac ;;
14841esac
14842ac_abs_top_builddir=$ac_pwd
14843ac_abs_builddir=$ac_pwd$ac_dir_suffix
14844# for backward compatibility:
14845ac_top_builddir=$ac_top_build_prefix
14846
14847case $srcdir in
14848  .)  # We are building in place.
14849    ac_srcdir=.
14850    ac_top_srcdir=$ac_top_builddir_sub
14851    ac_abs_top_srcdir=$ac_pwd ;;
14852  [\\/]* | ?:[\\/]* )  # Absolute name.
14853    ac_srcdir=$srcdir$ac_dir_suffix;
14854    ac_top_srcdir=$srcdir
14855    ac_abs_top_srcdir=$srcdir ;;
14856  *) # Relative name.
14857    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14858    ac_top_srcdir=$ac_top_build_prefix$srcdir
14859    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14860esac
14861ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14862
14863
14864  case $ac_mode in
14865  :F)
14866  #
14867  # CONFIG_FILE
14868  #
14869
14870  case $INSTALL in
14871  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14872  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14873  esac
14874_ACEOF
14875
14876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14877# If the template does not know about datarootdir, expand it.
14878# FIXME: This hack should be removed a few years after 2.60.
14879ac_datarootdir_hack=; ac_datarootdir_seen=
14880
14881ac_sed_dataroot='
14882/datarootdir/ {
14883  p
14884  q
14885}
14886/@datadir@/p
14887/@docdir@/p
14888/@infodir@/p
14889/@localedir@/p
14890/@mandir@/p
14891'
14892case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14893*datarootdir*) ac_datarootdir_seen=yes;;
14894*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14895  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14896$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14897_ACEOF
14898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14899  ac_datarootdir_hack='
14900  s&@datadir@&$datadir&g
14901  s&@docdir@&$docdir&g
14902  s&@infodir@&$infodir&g
14903  s&@localedir@&$localedir&g
14904  s&@mandir@&$mandir&g
14905    s&\\\${datarootdir}&$datarootdir&g' ;;
14906esac
14907_ACEOF
14908
14909# Neutralize VPATH when `$srcdir' = `.'.
14910# Shell code in configure.ac might set extrasub.
14911# FIXME: do we really want to maintain this feature?
14912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14913ac_sed_extra="$ac_vpsub
14914$extrasub
14915_ACEOF
14916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14917:t
14918/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14919s|@configure_input@|$ac_sed_conf_input|;t t
14920s&@top_builddir@&$ac_top_builddir_sub&;t t
14921s&@top_build_prefix@&$ac_top_build_prefix&;t t
14922s&@srcdir@&$ac_srcdir&;t t
14923s&@abs_srcdir@&$ac_abs_srcdir&;t t
14924s&@top_srcdir@&$ac_top_srcdir&;t t
14925s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14926s&@builddir@&$ac_builddir&;t t
14927s&@abs_builddir@&$ac_abs_builddir&;t t
14928s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14929s&@INSTALL@&$ac_INSTALL&;t t
14930$ac_datarootdir_hack
14931"
14932eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14933  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14934$as_echo "$as_me: error: could not create $ac_file" >&2;}
14935   { (exit 1); exit 1; }; }
14936
14937test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14938  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14939  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14940  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14941which seems to be undefined.  Please make sure it is defined." >&5
14942$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14943which seems to be undefined.  Please make sure it is defined." >&2;}
14944
14945  rm -f "$tmp/stdin"
14946  case $ac_file in
14947  -) cat "$tmp/out" && rm -f "$tmp/out";;
14948  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14949  esac \
14950  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14951$as_echo "$as_me: error: could not create $ac_file" >&2;}
14952   { (exit 1); exit 1; }; }
14953 ;;
14954  :H)
14955  #
14956  # CONFIG_HEADER
14957  #
14958  if test x"$ac_file" != x-; then
14959    {
14960      $as_echo "/* $configure_input  */" \
14961      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14962    } >"$tmp/config.h" \
14963      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14964$as_echo "$as_me: error: could not create $ac_file" >&2;}
14965   { (exit 1); exit 1; }; }
14966    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14967      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14968$as_echo "$as_me: $ac_file is unchanged" >&6;}
14969    else
14970      rm -f "$ac_file"
14971      mv "$tmp/config.h" "$ac_file" \
14972	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14973$as_echo "$as_me: error: could not create $ac_file" >&2;}
14974   { (exit 1); exit 1; }; }
14975    fi
14976  else
14977    $as_echo "/* $configure_input  */" \
14978      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14979      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14980$as_echo "$as_me: error: could not create -" >&2;}
14981   { (exit 1); exit 1; }; }
14982  fi
14983 ;;
14984
14985  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14986$as_echo "$as_me: executing $ac_file commands" >&6;}
14987 ;;
14988  esac
14989
14990
14991  case $ac_file$ac_mode in
14992    "libtool":C)
14993
14994    # See if we are running on zsh, and set the options which allow our
14995    # commands through without removal of \ escapes.
14996    if test -n "${ZSH_VERSION+set}" ; then
14997      setopt NO_GLOB_SUBST
14998    fi
14999
15000    cfgfile="${ofile}T"
15001    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15002    $RM "$cfgfile"
15003
15004    cat <<_LT_EOF >> "$cfgfile"
15005#! $SHELL
15006
15007# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15008# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15009# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15010# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15011#
15012#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15013#                 2006, 2007, 2008 Free Software Foundation, Inc.
15014#   Written by Gordon Matzigkeit, 1996
15015#
15016#   This file is part of GNU Libtool.
15017#
15018# GNU Libtool is free software; you can redistribute it and/or
15019# modify it under the terms of the GNU General Public License as
15020# published by the Free Software Foundation; either version 2 of
15021# the License, or (at your option) any later version.
15022#
15023# As a special exception to the GNU General Public License,
15024# if you distribute this file as part of a program or library that
15025# is built using GNU Libtool, you may include this file under the
15026# same distribution terms that you use for the rest of that program.
15027#
15028# GNU Libtool is distributed in the hope that it will be useful,
15029# but WITHOUT ANY WARRANTY; without even the implied warranty of
15030# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15031# GNU General Public License for more details.
15032#
15033# You should have received a copy of the GNU General Public License
15034# along with GNU Libtool; see the file COPYING.  If not, a copy
15035# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15036# obtained by writing to the Free Software Foundation, Inc.,
15037# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15038
15039
15040# The names of the tagged configurations supported by this script.
15041available_tags=""
15042
15043# ### BEGIN LIBTOOL CONFIG
15044
15045# Which release of libtool.m4 was used?
15046macro_version=$macro_version
15047macro_revision=$macro_revision
15048
15049# Whether or not to build shared libraries.
15050build_libtool_libs=$enable_shared
15051
15052# Whether or not to build static libraries.
15053build_old_libs=$enable_static
15054
15055# What type of objects to build.
15056pic_mode=$pic_mode
15057
15058# Whether or not to optimize for fast installation.
15059fast_install=$enable_fast_install
15060
15061# The host system.
15062host_alias=$host_alias
15063host=$host
15064host_os=$host_os
15065
15066# The build system.
15067build_alias=$build_alias
15068build=$build
15069build_os=$build_os
15070
15071# A sed program that does not truncate output.
15072SED=$lt_SED
15073
15074# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15075Xsed="\$SED -e 1s/^X//"
15076
15077# A grep program that handles long lines.
15078GREP=$lt_GREP
15079
15080# An ERE matcher.
15081EGREP=$lt_EGREP
15082
15083# A literal string matcher.
15084FGREP=$lt_FGREP
15085
15086# A BSD- or MS-compatible name lister.
15087NM=$lt_NM
15088
15089# Whether we need soft or hard links.
15090LN_S=$lt_LN_S
15091
15092# What is the maximum length of a command?
15093max_cmd_len=$max_cmd_len
15094
15095# Object file suffix (normally "o").
15096objext=$ac_objext
15097
15098# Executable file suffix (normally "").
15099exeext=$exeext
15100
15101# whether the shell understands "unset".
15102lt_unset=$lt_unset
15103
15104# turn spaces into newlines.
15105SP2NL=$lt_lt_SP2NL
15106
15107# turn newlines into spaces.
15108NL2SP=$lt_lt_NL2SP
15109
15110# How to create reloadable object files.
15111reload_flag=$lt_reload_flag
15112reload_cmds=$lt_reload_cmds
15113
15114# An object symbol dumper.
15115OBJDUMP=$lt_OBJDUMP
15116
15117# Method to check whether dependent libraries are shared objects.
15118deplibs_check_method=$lt_deplibs_check_method
15119
15120# Command to use when deplibs_check_method == "file_magic".
15121file_magic_cmd=$lt_file_magic_cmd
15122
15123# The archiver.
15124AR=$lt_AR
15125AR_FLAGS=$lt_AR_FLAGS
15126
15127# A symbol stripping program.
15128STRIP=$lt_STRIP
15129
15130# Commands used to install an old-style archive.
15131RANLIB=$lt_RANLIB
15132old_postinstall_cmds=$lt_old_postinstall_cmds
15133old_postuninstall_cmds=$lt_old_postuninstall_cmds
15134
15135# A C compiler.
15136LTCC=$lt_CC
15137
15138# LTCC compiler flags.
15139LTCFLAGS=$lt_CFLAGS
15140
15141# Take the output of nm and produce a listing of raw symbols and C names.
15142global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15143
15144# Transform the output of nm in a proper C declaration.
15145global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15146
15147# Transform the output of nm in a C name address pair.
15148global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15149
15150# Transform the output of nm in a C name address pair when lib prefix is needed.
15151global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15152
15153# The name of the directory that contains temporary libtool files.
15154objdir=$objdir
15155
15156# Shell to use when invoking shell scripts.
15157SHELL=$lt_SHELL
15158
15159# An echo program that does not interpret backslashes.
15160ECHO=$lt_ECHO
15161
15162# Used to examine libraries when file_magic_cmd begins with "file".
15163MAGIC_CMD=$MAGIC_CMD
15164
15165# Must we lock files when doing compilation?
15166need_locks=$lt_need_locks
15167
15168# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15169DSYMUTIL=$lt_DSYMUTIL
15170
15171# Tool to change global to local symbols on Mac OS X.
15172NMEDIT=$lt_NMEDIT
15173
15174# Tool to manipulate fat objects and archives on Mac OS X.
15175LIPO=$lt_LIPO
15176
15177# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15178OTOOL=$lt_OTOOL
15179
15180# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15181OTOOL64=$lt_OTOOL64
15182
15183# Old archive suffix (normally "a").
15184libext=$libext
15185
15186# Shared library suffix (normally ".so").
15187shrext_cmds=$lt_shrext_cmds
15188
15189# The commands to extract the exported symbol list from a shared archive.
15190extract_expsyms_cmds=$lt_extract_expsyms_cmds
15191
15192# Variables whose values should be saved in libtool wrapper scripts and
15193# restored at link time.
15194variables_saved_for_relink=$lt_variables_saved_for_relink
15195
15196# Do we need the "lib" prefix for modules?
15197need_lib_prefix=$need_lib_prefix
15198
15199# Do we need a version for libraries?
15200need_version=$need_version
15201
15202# Library versioning type.
15203version_type=$version_type
15204
15205# Shared library runtime path variable.
15206runpath_var=$runpath_var
15207
15208# Shared library path variable.
15209shlibpath_var=$shlibpath_var
15210
15211# Is shlibpath searched before the hard-coded library search path?
15212shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15213
15214# Format of library name prefix.
15215libname_spec=$lt_libname_spec
15216
15217# List of archive names.  First name is the real one, the rest are links.
15218# The last name is the one that the linker finds with -lNAME
15219library_names_spec=$lt_library_names_spec
15220
15221# The coded name of the library, if different from the real name.
15222soname_spec=$lt_soname_spec
15223
15224# Command to use after installation of a shared archive.
15225postinstall_cmds=$lt_postinstall_cmds
15226
15227# Command to use after uninstallation of a shared archive.
15228postuninstall_cmds=$lt_postuninstall_cmds
15229
15230# Commands used to finish a libtool library installation in a directory.
15231finish_cmds=$lt_finish_cmds
15232
15233# As "finish_cmds", except a single script fragment to be evaled but
15234# not shown.
15235finish_eval=$lt_finish_eval
15236
15237# Whether we should hardcode library paths into libraries.
15238hardcode_into_libs=$hardcode_into_libs
15239
15240# Compile-time system search path for libraries.
15241sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15242
15243# Run-time system search path for libraries.
15244sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15245
15246# Whether dlopen is supported.
15247dlopen_support=$enable_dlopen
15248
15249# Whether dlopen of programs is supported.
15250dlopen_self=$enable_dlopen_self
15251
15252# Whether dlopen of statically linked programs is supported.
15253dlopen_self_static=$enable_dlopen_self_static
15254
15255# Commands to strip libraries.
15256old_striplib=$lt_old_striplib
15257striplib=$lt_striplib
15258
15259
15260# The linker used to build libraries.
15261LD=$lt_LD
15262
15263# Commands used to build an old-style archive.
15264old_archive_cmds=$lt_old_archive_cmds
15265
15266# A language specific compiler.
15267CC=$lt_compiler
15268
15269# Is the compiler the GNU compiler?
15270with_gcc=$GCC
15271
15272# Compiler flag to turn off builtin functions.
15273no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15274
15275# How to pass a linker flag through the compiler.
15276wl=$lt_lt_prog_compiler_wl
15277
15278# Additional compiler flags for building library objects.
15279pic_flag=$lt_lt_prog_compiler_pic
15280
15281# Compiler flag to prevent dynamic linking.
15282link_static_flag=$lt_lt_prog_compiler_static
15283
15284# Does compiler simultaneously support -c and -o options?
15285compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15286
15287# Whether or not to add -lc for building shared libraries.
15288build_libtool_need_lc=$archive_cmds_need_lc
15289
15290# Whether or not to disallow shared libs when runtime libs are static.
15291allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15292
15293# Compiler flag to allow reflexive dlopens.
15294export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15295
15296# Compiler flag to generate shared objects directly from archives.
15297whole_archive_flag_spec=$lt_whole_archive_flag_spec
15298
15299# Whether the compiler copes with passing no objects directly.
15300compiler_needs_object=$lt_compiler_needs_object
15301
15302# Create an old-style archive from a shared archive.
15303old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15304
15305# Create a temporary old-style archive to link instead of a shared archive.
15306old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15307
15308# Commands used to build a shared archive.
15309archive_cmds=$lt_archive_cmds
15310archive_expsym_cmds=$lt_archive_expsym_cmds
15311
15312# Commands used to build a loadable module if different from building
15313# a shared archive.
15314module_cmds=$lt_module_cmds
15315module_expsym_cmds=$lt_module_expsym_cmds
15316
15317# Whether we are building with GNU ld or not.
15318with_gnu_ld=$lt_with_gnu_ld
15319
15320# Flag that allows shared libraries with undefined symbols to be built.
15321allow_undefined_flag=$lt_allow_undefined_flag
15322
15323# Flag that enforces no undefined symbols.
15324no_undefined_flag=$lt_no_undefined_flag
15325
15326# Flag to hardcode \$libdir into a binary during linking.
15327# This must work even if \$libdir does not exist
15328hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15329
15330# If ld is used when linking, flag to hardcode \$libdir into a binary
15331# during linking.  This must work even if \$libdir does not exist.
15332hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15333
15334# Whether we need a single "-rpath" flag with a separated argument.
15335hardcode_libdir_separator=$lt_hardcode_libdir_separator
15336
15337# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15338# DIR into the resulting binary.
15339hardcode_direct=$hardcode_direct
15340
15341# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15342# DIR into the resulting binary and the resulting library dependency is
15343# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15344# library is relocated.
15345hardcode_direct_absolute=$hardcode_direct_absolute
15346
15347# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15348# into the resulting binary.
15349hardcode_minus_L=$hardcode_minus_L
15350
15351# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15352# into the resulting binary.
15353hardcode_shlibpath_var=$hardcode_shlibpath_var
15354
15355# Set to "yes" if building a shared library automatically hardcodes DIR
15356# into the library and all subsequent libraries and executables linked
15357# against it.
15358hardcode_automatic=$hardcode_automatic
15359
15360# Set to yes if linker adds runtime paths of dependent libraries
15361# to runtime path list.
15362inherit_rpath=$inherit_rpath
15363
15364# Whether libtool must link a program against all its dependency libraries.
15365link_all_deplibs=$link_all_deplibs
15366
15367# Fix the shell variable \$srcfile for the compiler.
15368fix_srcfile_path=$lt_fix_srcfile_path
15369
15370# Set to "yes" if exported symbols are required.
15371always_export_symbols=$always_export_symbols
15372
15373# The commands to list exported symbols.
15374export_symbols_cmds=$lt_export_symbols_cmds
15375
15376# Symbols that should not be listed in the preloaded symbols.
15377exclude_expsyms=$lt_exclude_expsyms
15378
15379# Symbols that must always be exported.
15380include_expsyms=$lt_include_expsyms
15381
15382# Commands necessary for linking programs (against libraries) with templates.
15383prelink_cmds=$lt_prelink_cmds
15384
15385# Specify filename containing input files.
15386file_list_spec=$lt_file_list_spec
15387
15388# How to hardcode a shared library path into an executable.
15389hardcode_action=$hardcode_action
15390
15391# ### END LIBTOOL CONFIG
15392
15393_LT_EOF
15394
15395  case $host_os in
15396  aix3*)
15397    cat <<\_LT_EOF >> "$cfgfile"
15398# AIX sometimes has problems with the GCC collect2 program.  For some
15399# reason, if we set the COLLECT_NAMES environment variable, the problems
15400# vanish in a puff of smoke.
15401if test "X${COLLECT_NAMES+set}" != Xset; then
15402  COLLECT_NAMES=
15403  export COLLECT_NAMES
15404fi
15405_LT_EOF
15406    ;;
15407  esac
15408
15409
15410ltmain="$ac_aux_dir/ltmain.sh"
15411
15412
15413  # We use sed instead of cat because bash on DJGPP gets confused if
15414  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15415  # text mode, it properly converts lines to CR/LF.  This bash problem
15416  # is reportedly fixed, but why not run on old versions too?
15417  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15418    || (rm -f "$cfgfile"; exit 1)
15419
15420  case $xsi_shell in
15421  yes)
15422    cat << \_LT_EOF >> "$cfgfile"
15423
15424# func_dirname file append nondir_replacement
15425# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15426# otherwise set result to NONDIR_REPLACEMENT.
15427func_dirname ()
15428{
15429  case ${1} in
15430    */*) func_dirname_result="${1%/*}${2}" ;;
15431    *  ) func_dirname_result="${3}" ;;
15432  esac
15433}
15434
15435# func_basename file
15436func_basename ()
15437{
15438  func_basename_result="${1##*/}"
15439}
15440
15441# func_dirname_and_basename file append nondir_replacement
15442# perform func_basename and func_dirname in a single function
15443# call:
15444#   dirname:  Compute the dirname of FILE.  If nonempty,
15445#             add APPEND to the result, otherwise set result
15446#             to NONDIR_REPLACEMENT.
15447#             value returned in "$func_dirname_result"
15448#   basename: Compute filename of FILE.
15449#             value retuned in "$func_basename_result"
15450# Implementation must be kept synchronized with func_dirname
15451# and func_basename. For efficiency, we do not delegate to
15452# those functions but instead duplicate the functionality here.
15453func_dirname_and_basename ()
15454{
15455  case ${1} in
15456    */*) func_dirname_result="${1%/*}${2}" ;;
15457    *  ) func_dirname_result="${3}" ;;
15458  esac
15459  func_basename_result="${1##*/}"
15460}
15461
15462# func_stripname prefix suffix name
15463# strip PREFIX and SUFFIX off of NAME.
15464# PREFIX and SUFFIX must not contain globbing or regex special
15465# characters, hashes, percent signs, but SUFFIX may contain a leading
15466# dot (in which case that matches only a dot).
15467func_stripname ()
15468{
15469  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15470  # positional parameters, so assign one to ordinary parameter first.
15471  func_stripname_result=${3}
15472  func_stripname_result=${func_stripname_result#"${1}"}
15473  func_stripname_result=${func_stripname_result%"${2}"}
15474}
15475
15476# func_opt_split
15477func_opt_split ()
15478{
15479  func_opt_split_opt=${1%%=*}
15480  func_opt_split_arg=${1#*=}
15481}
15482
15483# func_lo2o object
15484func_lo2o ()
15485{
15486  case ${1} in
15487    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15488    *)    func_lo2o_result=${1} ;;
15489  esac
15490}
15491
15492# func_xform libobj-or-source
15493func_xform ()
15494{
15495  func_xform_result=${1%.*}.lo
15496}
15497
15498# func_arith arithmetic-term...
15499func_arith ()
15500{
15501  func_arith_result=$(( $* ))
15502}
15503
15504# func_len string
15505# STRING may not start with a hyphen.
15506func_len ()
15507{
15508  func_len_result=${#1}
15509}
15510
15511_LT_EOF
15512    ;;
15513  *) # Bourne compatible functions.
15514    cat << \_LT_EOF >> "$cfgfile"
15515
15516# func_dirname file append nondir_replacement
15517# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15518# otherwise set result to NONDIR_REPLACEMENT.
15519func_dirname ()
15520{
15521  # Extract subdirectory from the argument.
15522  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15523  if test "X$func_dirname_result" = "X${1}"; then
15524    func_dirname_result="${3}"
15525  else
15526    func_dirname_result="$func_dirname_result${2}"
15527  fi
15528}
15529
15530# func_basename file
15531func_basename ()
15532{
15533  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15534}
15535
15536
15537# func_stripname prefix suffix name
15538# strip PREFIX and SUFFIX off of NAME.
15539# PREFIX and SUFFIX must not contain globbing or regex special
15540# characters, hashes, percent signs, but SUFFIX may contain a leading
15541# dot (in which case that matches only a dot).
15542# func_strip_suffix prefix name
15543func_stripname ()
15544{
15545  case ${2} in
15546    .*) func_stripname_result=`$ECHO "X${3}" \
15547           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15548    *)  func_stripname_result=`$ECHO "X${3}" \
15549           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15550  esac
15551}
15552
15553# sed scripts:
15554my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15555my_sed_long_arg='1s/^-[^=]*=//'
15556
15557# func_opt_split
15558func_opt_split ()
15559{
15560  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15561  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15562}
15563
15564# func_lo2o object
15565func_lo2o ()
15566{
15567  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15568}
15569
15570# func_xform libobj-or-source
15571func_xform ()
15572{
15573  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15574}
15575
15576# func_arith arithmetic-term...
15577func_arith ()
15578{
15579  func_arith_result=`expr "$@"`
15580}
15581
15582# func_len string
15583# STRING may not start with a hyphen.
15584func_len ()
15585{
15586  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15587}
15588
15589_LT_EOF
15590esac
15591
15592case $lt_shell_append in
15593  yes)
15594    cat << \_LT_EOF >> "$cfgfile"
15595
15596# func_append var value
15597# Append VALUE to the end of shell variable VAR.
15598func_append ()
15599{
15600  eval "$1+=\$2"
15601}
15602_LT_EOF
15603    ;;
15604  *)
15605    cat << \_LT_EOF >> "$cfgfile"
15606
15607# func_append var value
15608# Append VALUE to the end of shell variable VAR.
15609func_append ()
15610{
15611  eval "$1=\$$1\$2"
15612}
15613
15614_LT_EOF
15615    ;;
15616  esac
15617
15618
15619  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15620    || (rm -f "$cfgfile"; exit 1)
15621
15622  mv -f "$cfgfile" "$ofile" ||
15623    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15624  chmod +x "$ofile"
15625
15626 ;;
15627
15628  esac
15629done # for ac_tag
15630
15631
15632{ (exit 0); exit 0; }
15633_ACEOF
15634chmod +x $CONFIG_STATUS
15635ac_clean_files=$ac_clean_files_save
15636
15637test $ac_write_fail = 0 ||
15638  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15639$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15640   { (exit 1); exit 1; }; }
15641
15642
15643# configure is writing to config.log, and then calls config.status.
15644# config.status does its own redirection, appending to config.log.
15645# Unfortunately, on DOS this fails, as config.log is still kept open
15646# by configure, so config.status won't be able to write to it; its
15647# output is simply discarded.  So we exec the FD to /dev/null,
15648# effectively closing config.log, so it can be properly (re)opened and
15649# appended to by config.status.  When coming back to configure, we
15650# need to make the FD available again.
15651if test "$no_create" != yes; then
15652  ac_cs_success=:
15653  ac_config_status_args=
15654  test "$silent" = yes &&
15655    ac_config_status_args="$ac_config_status_args --quiet"
15656  exec 5>/dev/null
15657  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15658  exec 5>>config.log
15659  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15660  # would make configure fail if this is the last instruction.
15661  $ac_cs_success || { (exit 1); exit 1; }
15662fi
15663if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15664  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15665$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15666fi
15667
15668