xref: /sqlite-3.40.0/configure (revision f2fcd075)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62 for sqlite 3.7.2.
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.2'
747PACKAGE_STRING='sqlite 3.7.2'
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
872THREADSOVERRIDELOCKS
873ALLOWRELEASE
874TEMP_STORE
875BUILD_EXEEXT
876SQLITE_OS_UNIX
877SQLITE_OS_WIN
878SQLITE_OS_OS2
879TARGET_EXEEXT
880TCL_VERSION
881TCL_BIN_DIR
882TCL_SRC_DIR
883TCL_LIBS
884TCL_INCLUDE_SPEC
885TCL_LIB_FILE
886TCL_LIB_FLAG
887TCL_LIB_SPEC
888TCL_STUB_LIB_FILE
889TCL_STUB_LIB_FLAG
890TCL_STUB_LIB_SPEC
891HAVE_TCL
892TARGET_READLINE_LIBS
893TARGET_READLINE_INC
894TARGET_HAVE_READLINE
895TARGET_DEBUG
896USE_AMALGAMATION
897OPT_FEATURE_FLAGS
898USE_GCOV
899BUILD_CFLAGS
900LIBOBJS
901LTLIBOBJS'
902ac_subst_files=''
903ac_user_opts='
904enable_option_checking
905enable_shared
906enable_static
907with_pic
908enable_fast_install
909with_gnu_ld
910enable_libtool_lock
911enable_largefile
912with_hints
913enable_threadsafe
914enable_cross_thread_connections
915enable_threads_override_locks
916enable_releasemode
917enable_tempstore
918enable_tcl
919with_tcl
920enable_readline
921with_readline_lib
922with_readline_inc
923enable_debug
924enable_amalgamation
925enable_load_extension
926enable_gcov
927'
928      ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934LIBS
935CPPFLAGS
936CPP
937TCLLIBDIR'
938
939
940# Initialize some variables set by options.
941ac_init_help=
942ac_init_version=false
943ac_unrecognized_opts=
944ac_unrecognized_sep=
945# The variables have the same names as the options, with
946# dashes changed to underlines.
947cache_file=/dev/null
948exec_prefix=NONE
949no_create=
950no_recursion=
951prefix=NONE
952program_prefix=NONE
953program_suffix=NONE
954program_transform_name=s,x,x,
955silent=
956site=
957srcdir=
958verbose=
959x_includes=NONE
960x_libraries=NONE
961
962# Installation directory options.
963# These are left unexpanded so users can "make install exec_prefix=/foo"
964# and all the variables that are supposed to be based on exec_prefix
965# by default will actually change.
966# Use braces instead of parens because sh, perl, etc. also accept them.
967# (The list follows the same order as the GNU Coding Standards.)
968bindir='${exec_prefix}/bin'
969sbindir='${exec_prefix}/sbin'
970libexecdir='${exec_prefix}/libexec'
971datarootdir='${prefix}/share'
972datadir='${datarootdir}'
973sysconfdir='${prefix}/etc'
974sharedstatedir='${prefix}/com'
975localstatedir='${prefix}/var'
976includedir='${prefix}/include'
977oldincludedir='/usr/include'
978docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979infodir='${datarootdir}/info'
980htmldir='${docdir}'
981dvidir='${docdir}'
982pdfdir='${docdir}'
983psdir='${docdir}'
984libdir='${exec_prefix}/lib'
985localedir='${datarootdir}/locale'
986mandir='${datarootdir}/man'
987
988ac_prev=
989ac_dashdash=
990for ac_option
991do
992  # If the previous option needs an argument, assign it.
993  if test -n "$ac_prev"; then
994    eval $ac_prev=\$ac_option
995    ac_prev=
996    continue
997  fi
998
999  case $ac_option in
1000  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001  *)	ac_optarg=yes ;;
1002  esac
1003
1004  # Accept the important Cygnus configure options, so we can diagnose typos.
1005
1006  case $ac_dashdash$ac_option in
1007  --)
1008    ac_dashdash=yes ;;
1009
1010  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011    ac_prev=bindir ;;
1012  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013    bindir=$ac_optarg ;;
1014
1015  -build | --build | --buil | --bui | --bu)
1016    ac_prev=build_alias ;;
1017  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018    build_alias=$ac_optarg ;;
1019
1020  -cache-file | --cache-file | --cache-fil | --cache-fi \
1021  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022    ac_prev=cache_file ;;
1023  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025    cache_file=$ac_optarg ;;
1026
1027  --config-cache | -C)
1028    cache_file=config.cache ;;
1029
1030  -datadir | --datadir | --datadi | --datad)
1031    ac_prev=datadir ;;
1032  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033    datadir=$ac_optarg ;;
1034
1035  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036  | --dataroo | --dataro | --datar)
1037    ac_prev=datarootdir ;;
1038  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040    datarootdir=$ac_optarg ;;
1041
1042  -disable-* | --disable-*)
1043    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044    # Reject names that are not valid shell variable names.
1045    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1047   { (exit 1); exit 1; }; }
1048    ac_useropt_orig=$ac_useropt
1049    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050    case $ac_user_opts in
1051      *"
1052"enable_$ac_useropt"
1053"*) ;;
1054      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055	 ac_unrecognized_sep=', ';;
1056    esac
1057    eval enable_$ac_useropt=no ;;
1058
1059  -docdir | --docdir | --docdi | --doc | --do)
1060    ac_prev=docdir ;;
1061  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062    docdir=$ac_optarg ;;
1063
1064  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065    ac_prev=dvidir ;;
1066  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067    dvidir=$ac_optarg ;;
1068
1069  -enable-* | --enable-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1074   { (exit 1); exit 1; }; }
1075    ac_useropt_orig=$ac_useropt
1076    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077    case $ac_user_opts in
1078      *"
1079"enable_$ac_useropt"
1080"*) ;;
1081      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082	 ac_unrecognized_sep=', ';;
1083    esac
1084    eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088  | --exec | --exe | --ex)
1089    ac_prev=exec_prefix ;;
1090  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092  | --exec=* | --exe=* | --ex=*)
1093    exec_prefix=$ac_optarg ;;
1094
1095  -gas | --gas | --ga | --g)
1096    # Obsolete; use --with-gas.
1097    with_gas=yes ;;
1098
1099  -help | --help | --hel | --he | -h)
1100    ac_init_help=long ;;
1101  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102    ac_init_help=recursive ;;
1103  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104    ac_init_help=short ;;
1105
1106  -host | --host | --hos | --ho)
1107    ac_prev=host_alias ;;
1108  -host=* | --host=* | --hos=* | --ho=*)
1109    host_alias=$ac_optarg ;;
1110
1111  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112    ac_prev=htmldir ;;
1113  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114  | --ht=*)
1115    htmldir=$ac_optarg ;;
1116
1117  -includedir | --includedir | --includedi | --included | --include \
1118  | --includ | --inclu | --incl | --inc)
1119    ac_prev=includedir ;;
1120  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121  | --includ=* | --inclu=* | --incl=* | --inc=*)
1122    includedir=$ac_optarg ;;
1123
1124  -infodir | --infodir | --infodi | --infod | --info | --inf)
1125    ac_prev=infodir ;;
1126  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127    infodir=$ac_optarg ;;
1128
1129  -libdir | --libdir | --libdi | --libd)
1130    ac_prev=libdir ;;
1131  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132    libdir=$ac_optarg ;;
1133
1134  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135  | --libexe | --libex | --libe)
1136    ac_prev=libexecdir ;;
1137  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138  | --libexe=* | --libex=* | --libe=*)
1139    libexecdir=$ac_optarg ;;
1140
1141  -localedir | --localedir | --localedi | --localed | --locale)
1142    ac_prev=localedir ;;
1143  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144    localedir=$ac_optarg ;;
1145
1146  -localstatedir | --localstatedir | --localstatedi | --localstated \
1147  | --localstate | --localstat | --localsta | --localst | --locals)
1148    ac_prev=localstatedir ;;
1149  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151    localstatedir=$ac_optarg ;;
1152
1153  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154    ac_prev=mandir ;;
1155  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156    mandir=$ac_optarg ;;
1157
1158  -nfp | --nfp | --nf)
1159    # Obsolete; use --without-fp.
1160    with_fp=no ;;
1161
1162  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163  | --no-cr | --no-c | -n)
1164    no_create=yes ;;
1165
1166  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168    no_recursion=yes ;;
1169
1170  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172  | --oldin | --oldi | --old | --ol | --o)
1173    ac_prev=oldincludedir ;;
1174  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177    oldincludedir=$ac_optarg ;;
1178
1179  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180    ac_prev=prefix ;;
1181  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182    prefix=$ac_optarg ;;
1183
1184  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185  | --program-pre | --program-pr | --program-p)
1186    ac_prev=program_prefix ;;
1187  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189    program_prefix=$ac_optarg ;;
1190
1191  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192  | --program-suf | --program-su | --program-s)
1193    ac_prev=program_suffix ;;
1194  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196    program_suffix=$ac_optarg ;;
1197
1198  -program-transform-name | --program-transform-name \
1199  | --program-transform-nam | --program-transform-na \
1200  | --program-transform-n | --program-transform- \
1201  | --program-transform | --program-transfor \
1202  | --program-transfo | --program-transf \
1203  | --program-trans | --program-tran \
1204  | --progr-tra | --program-tr | --program-t)
1205    ac_prev=program_transform_name ;;
1206  -program-transform-name=* | --program-transform-name=* \
1207  | --program-transform-nam=* | --program-transform-na=* \
1208  | --program-transform-n=* | --program-transform-=* \
1209  | --program-transform=* | --program-transfor=* \
1210  | --program-transfo=* | --program-transf=* \
1211  | --program-trans=* | --program-tran=* \
1212  | --progr-tra=* | --program-tr=* | --program-t=*)
1213    program_transform_name=$ac_optarg ;;
1214
1215  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216    ac_prev=pdfdir ;;
1217  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218    pdfdir=$ac_optarg ;;
1219
1220  -psdir | --psdir | --psdi | --psd | --ps)
1221    ac_prev=psdir ;;
1222  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223    psdir=$ac_optarg ;;
1224
1225  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226  | -silent | --silent | --silen | --sile | --sil)
1227    silent=yes ;;
1228
1229  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230    ac_prev=sbindir ;;
1231  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232  | --sbi=* | --sb=*)
1233    sbindir=$ac_optarg ;;
1234
1235  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237  | --sharedst | --shareds | --shared | --share | --shar \
1238  | --sha | --sh)
1239    ac_prev=sharedstatedir ;;
1240  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243  | --sha=* | --sh=*)
1244    sharedstatedir=$ac_optarg ;;
1245
1246  -site | --site | --sit)
1247    ac_prev=site ;;
1248  -site=* | --site=* | --sit=*)
1249    site=$ac_optarg ;;
1250
1251  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252    ac_prev=srcdir ;;
1253  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254    srcdir=$ac_optarg ;;
1255
1256  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257  | --syscon | --sysco | --sysc | --sys | --sy)
1258    ac_prev=sysconfdir ;;
1259  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261    sysconfdir=$ac_optarg ;;
1262
1263  -target | --target | --targe | --targ | --tar | --ta | --t)
1264    ac_prev=target_alias ;;
1265  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266    target_alias=$ac_optarg ;;
1267
1268  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269    verbose=yes ;;
1270
1271  -version | --version | --versio | --versi | --vers | -V)
1272    ac_init_version=: ;;
1273
1274  -with-* | --with-*)
1275    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276    # Reject names that are not valid shell variable names.
1277    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1279   { (exit 1); exit 1; }; }
1280    ac_useropt_orig=$ac_useropt
1281    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282    case $ac_user_opts in
1283      *"
1284"with_$ac_useropt"
1285"*) ;;
1286      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287	 ac_unrecognized_sep=', ';;
1288    esac
1289    eval with_$ac_useropt=\$ac_optarg ;;
1290
1291  -without-* | --without-*)
1292    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293    # Reject names that are not valid shell variable names.
1294    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1296   { (exit 1); exit 1; }; }
1297    ac_useropt_orig=$ac_useropt
1298    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299    case $ac_user_opts in
1300      *"
1301"with_$ac_useropt"
1302"*) ;;
1303      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304	 ac_unrecognized_sep=', ';;
1305    esac
1306    eval with_$ac_useropt=no ;;
1307
1308  --x)
1309    # Obsolete; use --with-x.
1310    with_x=yes ;;
1311
1312  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313  | --x-incl | --x-inc | --x-in | --x-i)
1314    ac_prev=x_includes ;;
1315  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317    x_includes=$ac_optarg ;;
1318
1319  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321    ac_prev=x_libraries ;;
1322  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324    x_libraries=$ac_optarg ;;
1325
1326  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1327Try \`$0 --help' for more information." >&2
1328   { (exit 1); exit 1; }; }
1329    ;;
1330
1331  *=*)
1332    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333    # Reject names that are not valid shell variable names.
1334    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1335      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1336   { (exit 1); exit 1; }; }
1337    eval $ac_envvar=\$ac_optarg
1338    export $ac_envvar ;;
1339
1340  *)
1341    # FIXME: should be removed in autoconf 3.0.
1342    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346    ;;
1347
1348  esac
1349done
1350
1351if test -n "$ac_prev"; then
1352  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1354   { (exit 1); exit 1; }; }
1355fi
1356
1357if test -n "$ac_unrecognized_opts"; then
1358  case $enable_option_checking in
1359    no) ;;
1360    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1361   { (exit 1); exit 1; }; } ;;
1362    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363  esac
1364fi
1365
1366# Check all directory arguments for consistency.
1367for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368		datadir sysconfdir sharedstatedir localstatedir includedir \
1369		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370		libdir localedir mandir
1371do
1372  eval ac_val=\$$ac_var
1373  # Remove trailing slashes.
1374  case $ac_val in
1375    */ )
1376      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377      eval $ac_var=\$ac_val;;
1378  esac
1379  # Be sure to have absolute directory names.
1380  case $ac_val in
1381    [\\/$]* | ?:[\\/]* )  continue;;
1382    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383  esac
1384  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1385   { (exit 1); exit 1; }; }
1386done
1387
1388# There might be people who depend on the old broken behavior: `$host'
1389# used to hold the argument of --host etc.
1390# FIXME: To remove some day.
1391build=$build_alias
1392host=$host_alias
1393target=$target_alias
1394
1395# FIXME: To remove some day.
1396if test "x$host_alias" != x; then
1397  if test "x$build_alias" = x; then
1398    cross_compiling=maybe
1399    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400    If a cross compiler is detected then cross compile mode will be used." >&2
1401  elif test "x$build_alias" != "x$host_alias"; then
1402    cross_compiling=yes
1403  fi
1404fi
1405
1406ac_tool_prefix=
1407test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409test "$silent" = yes && exec 6>/dev/null
1410
1411
1412ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413ac_ls_di=`ls -di .` &&
1414ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1416   { (exit 1); exit 1; }; }
1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1419   { (exit 1); exit 1; }; }
1420
1421
1422# Find the source files, if location was not specified.
1423if test -z "$srcdir"; then
1424  ac_srcdir_defaulted=yes
1425  # Try the directory containing this script, then the parent directory.
1426  ac_confdir=`$as_dirname -- "$as_myself" ||
1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428	 X"$as_myself" : 'X\(//\)[^/]' \| \
1429	 X"$as_myself" : 'X\(//\)$' \| \
1430	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431$as_echo X"$as_myself" |
1432    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\/\)[^/].*/{
1437	    s//\1/
1438	    q
1439	  }
1440	  /^X\(\/\/\)$/{
1441	    s//\1/
1442	    q
1443	  }
1444	  /^X\(\/\).*/{
1445	    s//\1/
1446	    q
1447	  }
1448	  s/.*/./; q'`
1449  srcdir=$ac_confdir
1450  if test ! -r "$srcdir/$ac_unique_file"; then
1451    srcdir=..
1452  fi
1453else
1454  ac_srcdir_defaulted=no
1455fi
1456if test ! -r "$srcdir/$ac_unique_file"; then
1457  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1459   { (exit 1); exit 1; }; }
1460fi
1461ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462ac_abs_confdir=`(
1463	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1464   { (exit 1); exit 1; }; }
1465	pwd)`
1466# When building in place, set srcdir=.
1467if test "$ac_abs_confdir" = "$ac_pwd"; then
1468  srcdir=.
1469fi
1470# Remove unnecessary trailing slashes from srcdir.
1471# Double slashes in file names in object file debugging info
1472# mess up M-x gdb in Emacs.
1473case $srcdir in
1474*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475esac
1476for ac_var in $ac_precious_vars; do
1477  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478  eval ac_env_${ac_var}_value=\$${ac_var}
1479  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481done
1482
1483#
1484# Report the --help message.
1485#
1486if test "$ac_init_help" = "long"; then
1487  # Omit some internal or obsolete options to make the list less imposing.
1488  # This message is too long to be a string in the A/UX 3.1 sh.
1489  cat <<_ACEOF
1490\`configure' configures sqlite 3.7.2 to adapt to many kinds of systems.
1491
1492Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495VAR=VALUE.  See below for descriptions of some of the useful variables.
1496
1497Defaults for the options are specified in brackets.
1498
1499Configuration:
1500  -h, --help              display this help and exit
1501      --help=short        display options specific to this package
1502      --help=recursive    display the short help of all the included packages
1503  -V, --version           display version information and exit
1504  -q, --quiet, --silent   do not print \`checking...' messages
1505      --cache-file=FILE   cache test results in FILE [disabled]
1506  -C, --config-cache      alias for \`--cache-file=config.cache'
1507  -n, --no-create         do not create output files
1508      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1509
1510Installation directories:
1511  --prefix=PREFIX         install architecture-independent files in PREFIX
1512                          [$ac_default_prefix]
1513  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1514                          [PREFIX]
1515
1516By default, \`make install' will install all the files in
1517\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1518an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519for instance \`--prefix=\$HOME'.
1520
1521For better control, use the options below.
1522
1523Fine tuning of the installation directories:
1524  --bindir=DIR            user executables [EPREFIX/bin]
1525  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1526  --libexecdir=DIR        program executables [EPREFIX/libexec]
1527  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1528  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1529  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1530  --libdir=DIR            object code libraries [EPREFIX/lib]
1531  --includedir=DIR        C header files [PREFIX/include]
1532  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1533  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1534  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1535  --infodir=DIR           info documentation [DATAROOTDIR/info]
1536  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1537  --mandir=DIR            man documentation [DATAROOTDIR/man]
1538  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1539  --htmldir=DIR           html documentation [DOCDIR]
1540  --dvidir=DIR            dvi documentation [DOCDIR]
1541  --pdfdir=DIR            pdf documentation [DOCDIR]
1542  --psdir=DIR             ps documentation [DOCDIR]
1543_ACEOF
1544
1545  cat <<\_ACEOF
1546
1547System types:
1548  --build=BUILD     configure for building on BUILD [guessed]
1549  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550_ACEOF
1551fi
1552
1553if test -n "$ac_init_help"; then
1554  case $ac_init_help in
1555     short | recursive ) echo "Configuration of sqlite 3.7.2:";;
1556   esac
1557  cat <<\_ACEOF
1558
1559Optional Features:
1560  --disable-option-checking  ignore unrecognized --enable/--with options
1561  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1562  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1563  --enable-shared[=PKGS]  build shared libraries [default=yes]
1564  --enable-static[=PKGS]  build static libraries [default=yes]
1565  --enable-fast-install[=PKGS]
1566                          optimize for fast installation [default=yes]
1567  --disable-libtool-lock  avoid locking (might break parallel builds)
1568  --disable-largefile     omit support for large files
1569  --enable-threadsafe     Support threadsafe operation
1570  --enable-cross-thread-connections
1571                          Allow connection sharing across threads
1572  --enable-threads-override-locks
1573                          Threads can override each others locks
1574  --enable-releasemode    Support libtool link to release mode
1575  --enable-tempstore      Use an in-ram database for temporary tables
1576                          (never,no,yes,always)
1577  --disable-tcl           do not build TCL extension
1578  --disable-readline      disable readline support [default=detect]
1579  --enable-debug          enable debugging & verbose explain
1580  --disable-amalgamation  Disable the amalgamation and instead build all files
1581                          separately
1582  --enable-load-extension Enable loading of external extensions
1583  --enable-gcov           Enable coverage testing using gcov
1584
1585Optional Packages:
1586  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1587  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1588  --with-pic              try to use only PIC/non-PIC objects [default=use
1589                          both]
1590  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1591  --with-hints=FILE       Read configuration options from FILE
1592  --with-tcl=DIR          directory containing tcl configuration
1593                          (tclConfig.sh)
1594  --with-readline-lib     specify readline library
1595  --with-readline-inc     specify readline include paths
1596
1597Some influential environment variables:
1598  CC          C compiler command
1599  CFLAGS      C compiler flags
1600  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1601              nonstandard directory <lib dir>
1602  LIBS        libraries to pass to the linker, e.g. -l<library>
1603  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1604              you have headers in a nonstandard directory <include dir>
1605  CPP         C preprocessor
1606  TCLLIBDIR   Where to install tcl plugin
1607
1608Use these variables to override the choices made by `configure' or to help
1609it to find libraries and programs with nonstandard names/locations.
1610
1611_ACEOF
1612ac_status=$?
1613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616  # If there are subdirs, report their specific --help.
1617  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618    test -d "$ac_dir" ||
1619      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620      continue
1621    ac_builddir=.
1622
1623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627  # A ".." for each directory in $ac_dir_suffix.
1628  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629  case $ac_top_builddir_sub in
1630  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632  esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
1638
1639case $srcdir in
1640  .)  # We are building in place.
1641    ac_srcdir=.
1642    ac_top_srcdir=$ac_top_builddir_sub
1643    ac_abs_top_srcdir=$ac_pwd ;;
1644  [\\/]* | ?:[\\/]* )  # Absolute name.
1645    ac_srcdir=$srcdir$ac_dir_suffix;
1646    ac_top_srcdir=$srcdir
1647    ac_abs_top_srcdir=$srcdir ;;
1648  *) # Relative name.
1649    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650    ac_top_srcdir=$ac_top_build_prefix$srcdir
1651    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652esac
1653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655    cd "$ac_dir" || { ac_status=$?; continue; }
1656    # Check for guested configure.
1657    if test -f "$ac_srcdir/configure.gnu"; then
1658      echo &&
1659      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660    elif test -f "$ac_srcdir/configure"; then
1661      echo &&
1662      $SHELL "$ac_srcdir/configure" --help=recursive
1663    else
1664      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665    fi || ac_status=$?
1666    cd "$ac_pwd" || { ac_status=$?; break; }
1667  done
1668fi
1669
1670test -n "$ac_init_help" && exit $ac_status
1671if $ac_init_version; then
1672  cat <<\_ACEOF
1673sqlite configure 3.7.2
1674generated by GNU Autoconf 2.62
1675
1676Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16772002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1678This configure script is free software; the Free Software Foundation
1679gives unlimited permission to copy, distribute and modify it.
1680_ACEOF
1681  exit
1682fi
1683cat >config.log <<_ACEOF
1684This file contains any messages produced by compilers while
1685running configure, to aid debugging if configure makes a mistake.
1686
1687It was created by sqlite $as_me 3.7.2, which was
1688generated by GNU Autoconf 2.62.  Invocation command line was
1689
1690  $ $0 $@
1691
1692_ACEOF
1693exec 5>>config.log
1694{
1695cat <<_ASUNAME
1696## --------- ##
1697## Platform. ##
1698## --------- ##
1699
1700hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705
1706/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1708
1709/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1710/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1711/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1712/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1713/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1714/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1715/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1716
1717_ASUNAME
1718
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722  IFS=$as_save_IFS
1723  test -z "$as_dir" && as_dir=.
1724  $as_echo "PATH: $as_dir"
1725done
1726IFS=$as_save_IFS
1727
1728} >&5
1729
1730cat >&5 <<_ACEOF
1731
1732
1733## ----------- ##
1734## Core tests. ##
1735## ----------- ##
1736
1737_ACEOF
1738
1739
1740# Keep a trace of the command line.
1741# Strip out --no-create and --no-recursion so they do not pile up.
1742# Strip out --silent because we don't want to record it for future runs.
1743# Also quote any args containing shell meta-characters.
1744# Make two passes to allow for proper duplicate-argument suppression.
1745ac_configure_args=
1746ac_configure_args0=
1747ac_configure_args1=
1748ac_must_keep_next=false
1749for ac_pass in 1 2
1750do
1751  for ac_arg
1752  do
1753    case $ac_arg in
1754    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756    | -silent | --silent | --silen | --sile | --sil)
1757      continue ;;
1758    *\'*)
1759      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1760    esac
1761    case $ac_pass in
1762    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1763    2)
1764      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1765      if test $ac_must_keep_next = true; then
1766	ac_must_keep_next=false # Got value, back to normal.
1767      else
1768	case $ac_arg in
1769	  *=* | --config-cache | -C | -disable-* | --disable-* \
1770	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772	  | -with-* | --with-* | -without-* | --without-* | --x)
1773	    case "$ac_configure_args0 " in
1774	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1775	    esac
1776	    ;;
1777	  -* ) ac_must_keep_next=true ;;
1778	esac
1779      fi
1780      ac_configure_args="$ac_configure_args '$ac_arg'"
1781      ;;
1782    esac
1783  done
1784done
1785$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1786$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1787
1788# When interrupted or exit'd, cleanup temporary files, and complete
1789# config.log.  We remove comments because anyway the quotes in there
1790# would cause problems or look ugly.
1791# WARNING: Use '\'' to represent an apostrophe within the trap.
1792# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1793trap 'exit_status=$?
1794  # Save into config.log some information that might help in debugging.
1795  {
1796    echo
1797
1798    cat <<\_ASBOX
1799## ---------------- ##
1800## Cache variables. ##
1801## ---------------- ##
1802_ASBOX
1803    echo
1804    # The following way of writing the cache mishandles newlines in values,
1805(
1806  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1807    eval ac_val=\$$ac_var
1808    case $ac_val in #(
1809    *${as_nl}*)
1810      case $ac_var in #(
1811      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1812$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1813      esac
1814      case $ac_var in #(
1815      _ | IFS | as_nl) ;; #(
1816      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1817      *) $as_unset $ac_var ;;
1818      esac ;;
1819    esac
1820  done
1821  (set) 2>&1 |
1822    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1823    *${as_nl}ac_space=\ *)
1824      sed -n \
1825	"s/'\''/'\''\\\\'\'''\''/g;
1826	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1827      ;; #(
1828    *)
1829      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1830      ;;
1831    esac |
1832    sort
1833)
1834    echo
1835
1836    cat <<\_ASBOX
1837## ----------------- ##
1838## Output variables. ##
1839## ----------------- ##
1840_ASBOX
1841    echo
1842    for ac_var in $ac_subst_vars
1843    do
1844      eval ac_val=\$$ac_var
1845      case $ac_val in
1846      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847      esac
1848      $as_echo "$ac_var='\''$ac_val'\''"
1849    done | sort
1850    echo
1851
1852    if test -n "$ac_subst_files"; then
1853      cat <<\_ASBOX
1854## ------------------- ##
1855## File substitutions. ##
1856## ------------------- ##
1857_ASBOX
1858      echo
1859      for ac_var in $ac_subst_files
1860      do
1861	eval ac_val=\$$ac_var
1862	case $ac_val in
1863	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864	esac
1865	$as_echo "$ac_var='\''$ac_val'\''"
1866      done | sort
1867      echo
1868    fi
1869
1870    if test -s confdefs.h; then
1871      cat <<\_ASBOX
1872## ----------- ##
1873## confdefs.h. ##
1874## ----------- ##
1875_ASBOX
1876      echo
1877      cat confdefs.h
1878      echo
1879    fi
1880    test "$ac_signal" != 0 &&
1881      $as_echo "$as_me: caught signal $ac_signal"
1882    $as_echo "$as_me: exit $exit_status"
1883  } >&5
1884  rm -f core *.core core.conftest.* &&
1885    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1886    exit $exit_status
1887' 0
1888for ac_signal in 1 2 13 15; do
1889  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1890done
1891ac_signal=0
1892
1893# confdefs.h avoids OS command line length limits that DEFS can exceed.
1894rm -f -r conftest* confdefs.h
1895
1896# Predefined preprocessor variables.
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_NAME "$PACKAGE_NAME"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_VERSION "$PACKAGE_VERSION"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_STRING "$PACKAGE_STRING"
1915_ACEOF
1916
1917
1918cat >>confdefs.h <<_ACEOF
1919#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1920_ACEOF
1921
1922
1923# Let the site file select an alternate cache file if it wants to.
1924# Prefer an explicitly selected file to automatically selected ones.
1925ac_site_file1=NONE
1926ac_site_file2=NONE
1927if test -n "$CONFIG_SITE"; then
1928  ac_site_file1=$CONFIG_SITE
1929elif test "x$prefix" != xNONE; then
1930  ac_site_file1=$prefix/share/config.site
1931  ac_site_file2=$prefix/etc/config.site
1932else
1933  ac_site_file1=$ac_default_prefix/share/config.site
1934  ac_site_file2=$ac_default_prefix/etc/config.site
1935fi
1936for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1937do
1938  test "x$ac_site_file" = xNONE && continue
1939  if test -r "$ac_site_file"; then
1940    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1941$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1942    sed 's/^/| /' "$ac_site_file" >&5
1943    . "$ac_site_file"
1944  fi
1945done
1946
1947if test -r "$cache_file"; then
1948  # Some versions of bash will fail to source /dev/null (special
1949  # files actually), so we avoid doing that.
1950  if test -f "$cache_file"; then
1951    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1952$as_echo "$as_me: loading cache $cache_file" >&6;}
1953    case $cache_file in
1954      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1955      *)                      . "./$cache_file";;
1956    esac
1957  fi
1958else
1959  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1960$as_echo "$as_me: creating cache $cache_file" >&6;}
1961  >$cache_file
1962fi
1963
1964# Check that the precious variables saved in the cache have kept the same
1965# value.
1966ac_cache_corrupted=false
1967for ac_var in $ac_precious_vars; do
1968  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1969  eval ac_new_set=\$ac_env_${ac_var}_set
1970  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1971  eval ac_new_val=\$ac_env_${ac_var}_value
1972  case $ac_old_set,$ac_new_set in
1973    set,)
1974      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1975$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1976      ac_cache_corrupted=: ;;
1977    ,set)
1978      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1979$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1980      ac_cache_corrupted=: ;;
1981    ,);;
1982    *)
1983      if test "x$ac_old_val" != "x$ac_new_val"; then
1984	# differences in whitespace do not lead to failure.
1985	ac_old_val_w=`echo x $ac_old_val`
1986	ac_new_val_w=`echo x $ac_new_val`
1987	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1988	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990	  ac_cache_corrupted=:
1991	else
1992	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1993$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1994	  eval $ac_var=\$ac_old_val
1995	fi
1996	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1997$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1998	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1999$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2000      fi;;
2001  esac
2002  # Pass precious variables to config.status.
2003  if test "$ac_new_set" = set; then
2004    case $ac_new_val in
2005    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006    *) ac_arg=$ac_var=$ac_new_val ;;
2007    esac
2008    case " $ac_configure_args " in
2009      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2010      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011    esac
2012  fi
2013done
2014if $ac_cache_corrupted; then
2015  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019   { (exit 1); exit 1; }; }
2020fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
2054sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2055if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2056{ { $as_echo "$as_me:$LINENO: 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" >&5
2060$as_echo "$as_me: error: configure script is out of date:
2061 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2062 top level VERSION file     = $sqlite_version_sanity_check
2063please regen with autoconf" >&2;}
2064   { (exit 1); exit 1; }; }
2065fi
2066
2067# The following RCS revision string applies to configure.in
2068# $Revision: 1.56 $
2069
2070#########
2071# Programs needed
2072#
2073case `pwd` in
2074  *\ * | *\	*)
2075    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2076$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2077esac
2078
2079
2080
2081macro_version='2.2.6'
2082macro_revision='1.3012'
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096ltmain="$ac_aux_dir/ltmain.sh"
2097
2098ac_aux_dir=
2099for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2100  if 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/install.sh"; then
2105    ac_aux_dir=$ac_dir
2106    ac_install_sh="$ac_aux_dir/install.sh -c"
2107    break
2108  elif test -f "$ac_dir/shtool"; then
2109    ac_aux_dir=$ac_dir
2110    ac_install_sh="$ac_aux_dir/shtool install -c"
2111    break
2112  fi
2113done
2114if test -z "$ac_aux_dir"; then
2115  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2116$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2117   { (exit 1); exit 1; }; }
2118fi
2119
2120# These three variables are undocumented and unsupported,
2121# and are intended to be withdrawn in a future Autoconf release.
2122# They can cause serious problems if a builder's source tree is in a directory
2123# whose full name contains unusual characters.
2124ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2125ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2126ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2127
2128
2129# Make sure we can run config.sub.
2130$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2131  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2132$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2133   { (exit 1); exit 1; }; }
2134
2135{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2136$as_echo_n "checking build system type... " >&6; }
2137if test "${ac_cv_build+set}" = set; then
2138  $as_echo_n "(cached) " >&6
2139else
2140  ac_build_alias=$build_alias
2141test "x$ac_build_alias" = x &&
2142  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143test "x$ac_build_alias" = x &&
2144  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146   { (exit 1); exit 1; }; }
2147ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2148  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2149$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2150   { (exit 1); exit 1; }; }
2151
2152fi
2153{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154$as_echo "$ac_cv_build" >&6; }
2155case $ac_cv_build in
2156*-*-*) ;;
2157*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2158$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2159   { (exit 1); exit 1; }; };;
2160esac
2161build=$ac_cv_build
2162ac_save_IFS=$IFS; IFS='-'
2163set x $ac_cv_build
2164shift
2165build_cpu=$1
2166build_vendor=$2
2167shift; shift
2168# Remember, the first character of IFS is used to create $*,
2169# except with old shells:
2170build_os=$*
2171IFS=$ac_save_IFS
2172case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2173
2174
2175{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2176$as_echo_n "checking host system type... " >&6; }
2177if test "${ac_cv_host+set}" = set; then
2178  $as_echo_n "(cached) " >&6
2179else
2180  if test "x$host_alias" = x; then
2181  ac_cv_host=$ac_cv_build
2182else
2183  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2184    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2185$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2186   { (exit 1); exit 1; }; }
2187fi
2188
2189fi
2190{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191$as_echo "$ac_cv_host" >&6; }
2192case $ac_cv_host in
2193*-*-*) ;;
2194*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2195$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2196   { (exit 1); exit 1; }; };;
2197esac
2198host=$ac_cv_host
2199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_host
2201shift
2202host_cpu=$1
2203host_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207host_os=$*
2208IFS=$ac_save_IFS
2209case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2210
2211
2212ac_ext=c
2213ac_cpp='$CPP $CPPFLAGS'
2214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217if test -n "$ac_tool_prefix"; then
2218  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2219set dummy ${ac_tool_prefix}gcc; ac_word=$2
2220{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2221$as_echo_n "checking for $ac_word... " >&6; }
2222if test "${ac_cv_prog_CC+set}" = set; then
2223  $as_echo_n "(cached) " >&6
2224else
2225  if test -n "$CC"; then
2226  ac_cv_prog_CC="$CC" # Let the user override the test.
2227else
2228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229for as_dir in $PATH
2230do
2231  IFS=$as_save_IFS
2232  test -z "$as_dir" && as_dir=.
2233  for ac_exec_ext in '' $ac_executable_extensions; do
2234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2236    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237    break 2
2238  fi
2239done
2240done
2241IFS=$as_save_IFS
2242
2243fi
2244fi
2245CC=$ac_cv_prog_CC
2246if test -n "$CC"; then
2247  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2248$as_echo "$CC" >&6; }
2249else
2250  { $as_echo "$as_me:$LINENO: result: no" >&5
2251$as_echo "no" >&6; }
2252fi
2253
2254
2255fi
2256if test -z "$ac_cv_prog_CC"; then
2257  ac_ct_CC=$CC
2258  # Extract the first word of "gcc", so it can be a program name with args.
2259set dummy gcc; ac_word=$2
2260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2261$as_echo_n "checking for $ac_word... " >&6; }
2262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263  $as_echo_n "(cached) " >&6
2264else
2265  if test -n "$ac_ct_CC"; then
2266  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267else
2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2270do
2271  IFS=$as_save_IFS
2272  test -z "$as_dir" && as_dir=.
2273  for ac_exec_ext in '' $ac_executable_extensions; do
2274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275    ac_cv_prog_ac_ct_CC="gcc"
2276    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277    break 2
2278  fi
2279done
2280done
2281IFS=$as_save_IFS
2282
2283fi
2284fi
2285ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286if test -n "$ac_ct_CC"; then
2287  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288$as_echo "$ac_ct_CC" >&6; }
2289else
2290  { $as_echo "$as_me:$LINENO: result: no" >&5
2291$as_echo "no" >&6; }
2292fi
2293
2294  if test "x$ac_ct_CC" = x; then
2295    CC=""
2296  else
2297    case $cross_compiling:$ac_tool_warned in
2298yes:)
2299{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2300whose name does not start with the host triplet.  If you think this
2301configuration is useful to you, please write to autoconf@gnu.org." >&5
2302$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303whose name does not start with the host triplet.  If you think this
2304configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2305ac_tool_warned=yes ;;
2306esac
2307    CC=$ac_ct_CC
2308  fi
2309else
2310  CC="$ac_cv_prog_CC"
2311fi
2312
2313if test -z "$CC"; then
2314          if test -n "$ac_tool_prefix"; then
2315    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2316set dummy ${ac_tool_prefix}cc; ac_word=$2
2317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2318$as_echo_n "checking for $ac_word... " >&6; }
2319if test "${ac_cv_prog_CC+set}" = set; then
2320  $as_echo_n "(cached) " >&6
2321else
2322  if test -n "$CC"; then
2323  ac_cv_prog_CC="$CC" # Let the user override the test.
2324else
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328  IFS=$as_save_IFS
2329  test -z "$as_dir" && as_dir=.
2330  for ac_exec_ext in '' $ac_executable_extensions; do
2331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332    ac_cv_prog_CC="${ac_tool_prefix}cc"
2333    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334    break 2
2335  fi
2336done
2337done
2338IFS=$as_save_IFS
2339
2340fi
2341fi
2342CC=$ac_cv_prog_CC
2343if test -n "$CC"; then
2344  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2345$as_echo "$CC" >&6; }
2346else
2347  { $as_echo "$as_me:$LINENO: result: no" >&5
2348$as_echo "no" >&6; }
2349fi
2350
2351
2352  fi
2353fi
2354if test -z "$CC"; then
2355  # Extract the first word of "cc", so it can be a program name with args.
2356set dummy cc; ac_word=$2
2357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2358$as_echo_n "checking for $ac_word... " >&6; }
2359if test "${ac_cv_prog_CC+set}" = set; then
2360  $as_echo_n "(cached) " >&6
2361else
2362  if test -n "$CC"; then
2363  ac_cv_prog_CC="$CC" # Let the user override the test.
2364else
2365  ac_prog_rejected=no
2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369  IFS=$as_save_IFS
2370  test -z "$as_dir" && as_dir=.
2371  for ac_exec_ext in '' $ac_executable_extensions; do
2372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2374       ac_prog_rejected=yes
2375       continue
2376     fi
2377    ac_cv_prog_CC="cc"
2378    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379    break 2
2380  fi
2381done
2382done
2383IFS=$as_save_IFS
2384
2385if test $ac_prog_rejected = yes; then
2386  # We found a bogon in the path, so make sure we never use it.
2387  set dummy $ac_cv_prog_CC
2388  shift
2389  if test $# != 0; then
2390    # We chose a different compiler from the bogus one.
2391    # However, it has the same basename, so the bogon will be chosen
2392    # first if we set CC to just the basename; use the full file name.
2393    shift
2394    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2395  fi
2396fi
2397fi
2398fi
2399CC=$ac_cv_prog_CC
2400if test -n "$CC"; then
2401  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2402$as_echo "$CC" >&6; }
2403else
2404  { $as_echo "$as_me:$LINENO: result: no" >&5
2405$as_echo "no" >&6; }
2406fi
2407
2408
2409fi
2410if test -z "$CC"; then
2411  if test -n "$ac_tool_prefix"; then
2412  for ac_prog in cl.exe
2413  do
2414    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2417$as_echo_n "checking for $ac_word... " >&6; }
2418if test "${ac_cv_prog_CC+set}" = set; then
2419  $as_echo_n "(cached) " >&6
2420else
2421  if test -n "$CC"; then
2422  ac_cv_prog_CC="$CC" # Let the user override the test.
2423else
2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427  IFS=$as_save_IFS
2428  test -z "$as_dir" && as_dir=.
2429  for ac_exec_ext in '' $ac_executable_extensions; do
2430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433    break 2
2434  fi
2435done
2436done
2437IFS=$as_save_IFS
2438
2439fi
2440fi
2441CC=$ac_cv_prog_CC
2442if test -n "$CC"; then
2443  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2444$as_echo "$CC" >&6; }
2445else
2446  { $as_echo "$as_me:$LINENO: result: no" >&5
2447$as_echo "no" >&6; }
2448fi
2449
2450
2451    test -n "$CC" && break
2452  done
2453fi
2454if test -z "$CC"; then
2455  ac_ct_CC=$CC
2456  for ac_prog in cl.exe
2457do
2458  # Extract the first word of "$ac_prog", so it can be a program name with args.
2459set dummy $ac_prog; ac_word=$2
2460{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2461$as_echo_n "checking for $ac_word... " >&6; }
2462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2463  $as_echo_n "(cached) " >&6
2464else
2465  if test -n "$ac_ct_CC"; then
2466  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471  IFS=$as_save_IFS
2472  test -z "$as_dir" && as_dir=.
2473  for ac_exec_ext in '' $ac_executable_extensions; do
2474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475    ac_cv_prog_ac_ct_CC="$ac_prog"
2476    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477    break 2
2478  fi
2479done
2480done
2481IFS=$as_save_IFS
2482
2483fi
2484fi
2485ac_ct_CC=$ac_cv_prog_ac_ct_CC
2486if test -n "$ac_ct_CC"; then
2487  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2488$as_echo "$ac_ct_CC" >&6; }
2489else
2490  { $as_echo "$as_me:$LINENO: result: no" >&5
2491$as_echo "no" >&6; }
2492fi
2493
2494
2495  test -n "$ac_ct_CC" && break
2496done
2497
2498  if test "x$ac_ct_CC" = x; then
2499    CC=""
2500  else
2501    case $cross_compiling:$ac_tool_warned in
2502yes:)
2503{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504whose name does not start with the host triplet.  If you think this
2505configuration is useful to you, please write to autoconf@gnu.org." >&5
2506$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507whose name does not start with the host triplet.  If you think this
2508configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509ac_tool_warned=yes ;;
2510esac
2511    CC=$ac_ct_CC
2512  fi
2513fi
2514
2515fi
2516
2517
2518test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2519See \`config.log' for more details." >&5
2520$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2521See \`config.log' for more details." >&2;}
2522   { (exit 1); exit 1; }; }
2523
2524# Provide some information about the compiler.
2525$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2526set X $ac_compile
2527ac_compiler=$2
2528{ (ac_try="$ac_compiler --version >&5"
2529case "(($ac_try" in
2530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531  *) ac_try_echo=$ac_try;;
2532esac
2533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2534$as_echo "$ac_try_echo") >&5
2535  (eval "$ac_compiler --version >&5") 2>&5
2536  ac_status=$?
2537  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }
2539{ (ac_try="$ac_compiler -v >&5"
2540case "(($ac_try" in
2541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542  *) ac_try_echo=$ac_try;;
2543esac
2544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2545$as_echo "$ac_try_echo") >&5
2546  (eval "$ac_compiler -v >&5") 2>&5
2547  ac_status=$?
2548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); }
2550{ (ac_try="$ac_compiler -V >&5"
2551case "(($ac_try" in
2552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553  *) ac_try_echo=$ac_try;;
2554esac
2555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2556$as_echo "$ac_try_echo") >&5
2557  (eval "$ac_compiler -V >&5") 2>&5
2558  ac_status=$?
2559  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); }
2561
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h.  */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h.  */
2568
2569int
2570main ()
2571{
2572
2573  ;
2574  return 0;
2575}
2576_ACEOF
2577ac_clean_files_save=$ac_clean_files
2578ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2579# Try to create an executable without -o first, disregard a.out.
2580# It will help us diagnose broken compilers, and finding out an intuition
2581# of exeext.
2582{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2583$as_echo_n "checking for C compiler default output file name... " >&6; }
2584ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2585
2586# The possible output files:
2587ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2588
2589ac_rmfiles=
2590for ac_file in $ac_files
2591do
2592  case $ac_file in
2593    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2594    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2595  esac
2596done
2597rm -f $ac_rmfiles
2598
2599if { (ac_try="$ac_link_default"
2600case "(($ac_try" in
2601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602  *) ac_try_echo=$ac_try;;
2603esac
2604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2605$as_echo "$ac_try_echo") >&5
2606  (eval "$ac_link_default") 2>&5
2607  ac_status=$?
2608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); }; then
2610  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2611# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2612# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2613# so that the user can short-circuit this test for compilers unknown to
2614# Autoconf.
2615for ac_file in $ac_files ''
2616do
2617  test -f "$ac_file" || continue
2618  case $ac_file in
2619    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2620	;;
2621    [ab].out )
2622	# We found the default executable, but exeext='' is most
2623	# certainly right.
2624	break;;
2625    *.* )
2626        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2627	then :; else
2628	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2629	fi
2630	# We set ac_cv_exeext here because the later test for it is not
2631	# safe: cross compilers may not add the suffix if given an `-o'
2632	# argument, so we may need to know it at that point already.
2633	# Even if this section looks crufty: it has the advantage of
2634	# actually working.
2635	break;;
2636    * )
2637	break;;
2638  esac
2639done
2640test "$ac_cv_exeext" = no && ac_cv_exeext=
2641
2642else
2643  ac_file=''
2644fi
2645
2646{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2647$as_echo "$ac_file" >&6; }
2648if test -z "$ac_file"; then
2649  $as_echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2653See \`config.log' for more details." >&5
2654$as_echo "$as_me: error: C compiler cannot create executables
2655See \`config.log' for more details." >&2;}
2656   { (exit 77); exit 77; }; }
2657fi
2658
2659ac_exeext=$ac_cv_exeext
2660
2661# Check that the compiler produces executables we can run.  If not, either
2662# the compiler is broken, or we cross compile.
2663{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2664$as_echo_n "checking whether the C compiler works... " >&6; }
2665# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2666# If not cross compiling, check that we can run a simple program.
2667if test "$cross_compiling" != yes; then
2668  if { ac_try='./$ac_file'
2669  { (case "(($ac_try" in
2670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671  *) ac_try_echo=$ac_try;;
2672esac
2673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2674$as_echo "$ac_try_echo") >&5
2675  (eval "$ac_try") 2>&5
2676  ac_status=$?
2677  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; }; then
2679    cross_compiling=no
2680  else
2681    if test "$cross_compiling" = maybe; then
2682	cross_compiling=yes
2683    else
2684	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2685If you meant to cross compile, use \`--host'.
2686See \`config.log' for more details." >&5
2687$as_echo "$as_me: error: cannot run C compiled programs.
2688If you meant to cross compile, use \`--host'.
2689See \`config.log' for more details." >&2;}
2690   { (exit 1); exit 1; }; }
2691    fi
2692  fi
2693fi
2694{ $as_echo "$as_me:$LINENO: result: yes" >&5
2695$as_echo "yes" >&6; }
2696
2697rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2698ac_clean_files=$ac_clean_files_save
2699# Check that the compiler produces executables we can run.  If not, either
2700# the compiler is broken, or we cross compile.
2701{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2702$as_echo_n "checking whether we are cross compiling... " >&6; }
2703{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2704$as_echo "$cross_compiling" >&6; }
2705
2706{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2707$as_echo_n "checking for suffix of executables... " >&6; }
2708if { (ac_try="$ac_link"
2709case "(($ac_try" in
2710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711  *) ac_try_echo=$ac_try;;
2712esac
2713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2714$as_echo "$ac_try_echo") >&5
2715  (eval "$ac_link") 2>&5
2716  ac_status=$?
2717  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); }; then
2719  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2720# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2721# work properly (i.e., refer to `conftest.exe'), while it won't with
2722# `rm'.
2723for ac_file in conftest.exe conftest conftest.*; do
2724  test -f "$ac_file" || continue
2725  case $ac_file in
2726    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2727    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2728	  break;;
2729    * ) break;;
2730  esac
2731done
2732else
2733  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2734See \`config.log' for more details." >&5
2735$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2736See \`config.log' for more details." >&2;}
2737   { (exit 1); exit 1; }; }
2738fi
2739
2740rm -f conftest$ac_cv_exeext
2741{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2742$as_echo "$ac_cv_exeext" >&6; }
2743
2744rm -f conftest.$ac_ext
2745EXEEXT=$ac_cv_exeext
2746ac_exeext=$EXEEXT
2747{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2748$as_echo_n "checking for suffix of object files... " >&6; }
2749if test "${ac_cv_objext+set}" = set; then
2750  $as_echo_n "(cached) " >&6
2751else
2752  cat >conftest.$ac_ext <<_ACEOF
2753/* confdefs.h.  */
2754_ACEOF
2755cat confdefs.h >>conftest.$ac_ext
2756cat >>conftest.$ac_ext <<_ACEOF
2757/* end confdefs.h.  */
2758
2759int
2760main ()
2761{
2762
2763  ;
2764  return 0;
2765}
2766_ACEOF
2767rm -f conftest.o conftest.obj
2768if { (ac_try="$ac_compile"
2769case "(($ac_try" in
2770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771  *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2774$as_echo "$ac_try_echo") >&5
2775  (eval "$ac_compile") 2>&5
2776  ac_status=$?
2777  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }; then
2779  for ac_file in conftest.o conftest.obj conftest.*; do
2780  test -f "$ac_file" || continue;
2781  case $ac_file in
2782    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2783    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2784       break;;
2785  esac
2786done
2787else
2788  $as_echo "$as_me: failed program was:" >&5
2789sed 's/^/| /' conftest.$ac_ext >&5
2790
2791{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2792See \`config.log' for more details." >&5
2793$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2794See \`config.log' for more details." >&2;}
2795   { (exit 1); exit 1; }; }
2796fi
2797
2798rm -f conftest.$ac_cv_objext conftest.$ac_ext
2799fi
2800{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2801$as_echo "$ac_cv_objext" >&6; }
2802OBJEXT=$ac_cv_objext
2803ac_objext=$OBJEXT
2804{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2805$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2806if test "${ac_cv_c_compiler_gnu+set}" = set; then
2807  $as_echo_n "(cached) " >&6
2808else
2809  cat >conftest.$ac_ext <<_ACEOF
2810/* confdefs.h.  */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h.  */
2815
2816int
2817main ()
2818{
2819#ifndef __GNUC__
2820       choke me
2821#endif
2822
2823  ;
2824  return 0;
2825}
2826_ACEOF
2827rm -f conftest.$ac_objext
2828if { (ac_try="$ac_compile"
2829case "(($ac_try" in
2830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831  *) ac_try_echo=$ac_try;;
2832esac
2833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2834$as_echo "$ac_try_echo") >&5
2835  (eval "$ac_compile") 2>conftest.er1
2836  ac_status=$?
2837  grep -v '^ *+' conftest.er1 >conftest.err
2838  rm -f conftest.er1
2839  cat conftest.err >&5
2840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); } && {
2842	 test -z "$ac_c_werror_flag" ||
2843	 test ! -s conftest.err
2844       } && test -s conftest.$ac_objext; then
2845  ac_compiler_gnu=yes
2846else
2847  $as_echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850	ac_compiler_gnu=no
2851fi
2852
2853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854ac_cv_c_compiler_gnu=$ac_compiler_gnu
2855
2856fi
2857{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2858$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2859if test $ac_compiler_gnu = yes; then
2860  GCC=yes
2861else
2862  GCC=
2863fi
2864ac_test_CFLAGS=${CFLAGS+set}
2865ac_save_CFLAGS=$CFLAGS
2866{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2867$as_echo_n "checking whether $CC accepts -g... " >&6; }
2868if test "${ac_cv_prog_cc_g+set}" = set; then
2869  $as_echo_n "(cached) " >&6
2870else
2871  ac_save_c_werror_flag=$ac_c_werror_flag
2872   ac_c_werror_flag=yes
2873   ac_cv_prog_cc_g=no
2874   CFLAGS="-g"
2875   cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h.  */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h.  */
2881
2882int
2883main ()
2884{
2885
2886  ;
2887  return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext
2891if { (ac_try="$ac_compile"
2892case "(($ac_try" in
2893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894  *) ac_try_echo=$ac_try;;
2895esac
2896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2897$as_echo "$ac_try_echo") >&5
2898  (eval "$ac_compile") 2>conftest.er1
2899  ac_status=$?
2900  grep -v '^ *+' conftest.er1 >conftest.err
2901  rm -f conftest.er1
2902  cat conftest.err >&5
2903  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); } && {
2905	 test -z "$ac_c_werror_flag" ||
2906	 test ! -s conftest.err
2907       } && test -s conftest.$ac_objext; then
2908  ac_cv_prog_cc_g=yes
2909else
2910  $as_echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913	CFLAGS=""
2914      cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h.  */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h.  */
2920
2921int
2922main ()
2923{
2924
2925  ;
2926  return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext
2930if { (ac_try="$ac_compile"
2931case "(($ac_try" in
2932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933  *) ac_try_echo=$ac_try;;
2934esac
2935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2936$as_echo "$ac_try_echo") >&5
2937  (eval "$ac_compile") 2>conftest.er1
2938  ac_status=$?
2939  grep -v '^ *+' conftest.er1 >conftest.err
2940  rm -f conftest.er1
2941  cat conftest.err >&5
2942  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943  (exit $ac_status); } && {
2944	 test -z "$ac_c_werror_flag" ||
2945	 test ! -s conftest.err
2946       } && test -s conftest.$ac_objext; then
2947  :
2948else
2949  $as_echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952	ac_c_werror_flag=$ac_save_c_werror_flag
2953	 CFLAGS="-g"
2954	 cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h.  */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext
2970if { (ac_try="$ac_compile"
2971case "(($ac_try" in
2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973  *) ac_try_echo=$ac_try;;
2974esac
2975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976$as_echo "$ac_try_echo") >&5
2977  (eval "$ac_compile") 2>conftest.er1
2978  ac_status=$?
2979  grep -v '^ *+' conftest.er1 >conftest.err
2980  rm -f conftest.er1
2981  cat conftest.err >&5
2982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); } && {
2984	 test -z "$ac_c_werror_flag" ||
2985	 test ! -s conftest.err
2986       } && test -s conftest.$ac_objext; then
2987  ac_cv_prog_cc_g=yes
2988else
2989  $as_echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992
2993fi
2994
2995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996fi
2997
2998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999fi
3000
3001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002   ac_c_werror_flag=$ac_save_c_werror_flag
3003fi
3004{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3005$as_echo "$ac_cv_prog_cc_g" >&6; }
3006if test "$ac_test_CFLAGS" = set; then
3007  CFLAGS=$ac_save_CFLAGS
3008elif test $ac_cv_prog_cc_g = yes; then
3009  if test "$GCC" = yes; then
3010    CFLAGS="-g -O2"
3011  else
3012    CFLAGS="-g"
3013  fi
3014else
3015  if test "$GCC" = yes; then
3016    CFLAGS="-O2"
3017  else
3018    CFLAGS=
3019  fi
3020fi
3021{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3022$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3023if test "${ac_cv_prog_cc_c89+set}" = set; then
3024  $as_echo_n "(cached) " >&6
3025else
3026  ac_cv_prog_cc_c89=no
3027ac_save_CC=$CC
3028cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h.  */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h.  */
3034#include <stdarg.h>
3035#include <stdio.h>
3036#include <sys/types.h>
3037#include <sys/stat.h>
3038/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3039struct buf { int x; };
3040FILE * (*rcsopen) (struct buf *, struct stat *, int);
3041static char *e (p, i)
3042     char **p;
3043     int i;
3044{
3045  return p[i];
3046}
3047static char *f (char * (*g) (char **, int), char **p, ...)
3048{
3049  char *s;
3050  va_list v;
3051  va_start (v,p);
3052  s = g (p, va_arg (v,int));
3053  va_end (v);
3054  return s;
3055}
3056
3057/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3058   function prototypes and stuff, but not '\xHH' hex character constants.
3059   These don't provoke an error unfortunately, instead are silently treated
3060   as 'x'.  The following induces an error, until -std is added to get
3061   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3062   array size at least.  It's necessary to write '\x00'==0 to get something
3063   that's true only with -std.  */
3064int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3065
3066/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3067   inside strings and character constants.  */
3068#define FOO(x) 'x'
3069int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3070
3071int test (int i, double x);
3072struct s1 {int (*f) (int a);};
3073struct s2 {int (*f) (double a);};
3074int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3075int argc;
3076char **argv;
3077int
3078main ()
3079{
3080return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3086	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3087do
3088  CC="$ac_save_CC $ac_arg"
3089  rm -f conftest.$ac_objext
3090if { (ac_try="$ac_compile"
3091case "(($ac_try" in
3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093  *) ac_try_echo=$ac_try;;
3094esac
3095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096$as_echo "$ac_try_echo") >&5
3097  (eval "$ac_compile") 2>conftest.er1
3098  ac_status=$?
3099  grep -v '^ *+' conftest.er1 >conftest.err
3100  rm -f conftest.er1
3101  cat conftest.err >&5
3102  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); } && {
3104	 test -z "$ac_c_werror_flag" ||
3105	 test ! -s conftest.err
3106       } && test -s conftest.$ac_objext; then
3107  ac_cv_prog_cc_c89=$ac_arg
3108else
3109  $as_echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112
3113fi
3114
3115rm -f core conftest.err conftest.$ac_objext
3116  test "x$ac_cv_prog_cc_c89" != "xno" && break
3117done
3118rm -f conftest.$ac_ext
3119CC=$ac_save_CC
3120
3121fi
3122# AC_CACHE_VAL
3123case "x$ac_cv_prog_cc_c89" in
3124  x)
3125    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3126$as_echo "none needed" >&6; } ;;
3127  xno)
3128    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3129$as_echo "unsupported" >&6; } ;;
3130  *)
3131    CC="$CC $ac_cv_prog_cc_c89"
3132    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3133$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3134esac
3135
3136
3137ac_ext=c
3138ac_cpp='$CPP $CPPFLAGS'
3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3144$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3145if test "${ac_cv_path_SED+set}" = set; then
3146  $as_echo_n "(cached) " >&6
3147else
3148            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3149     for ac_i in 1 2 3 4 5 6 7; do
3150       ac_script="$ac_script$as_nl$ac_script"
3151     done
3152     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3153     $as_unset ac_script || ac_script=
3154     if test -z "$SED"; then
3155  ac_path_SED_found=false
3156  # Loop through the user's path and test for each of PROGNAME-LIST
3157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162  for ac_prog in sed gsed; do
3163    for ac_exec_ext in '' $ac_executable_extensions; do
3164      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3165      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3166# Check for GNU ac_path_SED and select it if it is found.
3167  # Check for GNU $ac_path_SED
3168case `"$ac_path_SED" --version 2>&1` in
3169*GNU*)
3170  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3171*)
3172  ac_count=0
3173  $as_echo_n 0123456789 >"conftest.in"
3174  while :
3175  do
3176    cat "conftest.in" "conftest.in" >"conftest.tmp"
3177    mv "conftest.tmp" "conftest.in"
3178    cp "conftest.in" "conftest.nl"
3179    $as_echo '' >> "conftest.nl"
3180    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3181    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3182    ac_count=`expr $ac_count + 1`
3183    if test $ac_count -gt ${ac_path_SED_max-0}; then
3184      # Best one so far, save it but keep looking for a better one
3185      ac_cv_path_SED="$ac_path_SED"
3186      ac_path_SED_max=$ac_count
3187    fi
3188    # 10*(2^10) chars as input seems more than enough
3189    test $ac_count -gt 10 && break
3190  done
3191  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3192esac
3193
3194      $ac_path_SED_found && break 3
3195    done
3196  done
3197done
3198IFS=$as_save_IFS
3199  if test -z "$ac_cv_path_SED"; then
3200    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3201$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3202   { (exit 1); exit 1; }; }
3203  fi
3204else
3205  ac_cv_path_SED=$SED
3206fi
3207
3208fi
3209{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3210$as_echo "$ac_cv_path_SED" >&6; }
3211 SED="$ac_cv_path_SED"
3212  rm -f conftest.sed
3213
3214test -z "$SED" && SED=sed
3215Xsed="$SED -e 1s/^X//"
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3228$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3229if test "${ac_cv_path_GREP+set}" = set; then
3230  $as_echo_n "(cached) " >&6
3231else
3232  if test -z "$GREP"; then
3233  ac_path_GREP_found=false
3234  # Loop through the user's path and test for each of PROGNAME-LIST
3235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3237do
3238  IFS=$as_save_IFS
3239  test -z "$as_dir" && as_dir=.
3240  for ac_prog in grep ggrep; do
3241    for ac_exec_ext in '' $ac_executable_extensions; do
3242      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3243      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3244# Check for GNU ac_path_GREP and select it if it is found.
3245  # Check for GNU $ac_path_GREP
3246case `"$ac_path_GREP" --version 2>&1` in
3247*GNU*)
3248  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3249*)
3250  ac_count=0
3251  $as_echo_n 0123456789 >"conftest.in"
3252  while :
3253  do
3254    cat "conftest.in" "conftest.in" >"conftest.tmp"
3255    mv "conftest.tmp" "conftest.in"
3256    cp "conftest.in" "conftest.nl"
3257    $as_echo 'GREP' >> "conftest.nl"
3258    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3259    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3260    ac_count=`expr $ac_count + 1`
3261    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3262      # Best one so far, save it but keep looking for a better one
3263      ac_cv_path_GREP="$ac_path_GREP"
3264      ac_path_GREP_max=$ac_count
3265    fi
3266    # 10*(2^10) chars as input seems more than enough
3267    test $ac_count -gt 10 && break
3268  done
3269  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3270esac
3271
3272      $ac_path_GREP_found && break 3
3273    done
3274  done
3275done
3276IFS=$as_save_IFS
3277  if test -z "$ac_cv_path_GREP"; then
3278    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3279$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3280   { (exit 1); exit 1; }; }
3281  fi
3282else
3283  ac_cv_path_GREP=$GREP
3284fi
3285
3286fi
3287{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3288$as_echo "$ac_cv_path_GREP" >&6; }
3289 GREP="$ac_cv_path_GREP"
3290
3291
3292{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3293$as_echo_n "checking for egrep... " >&6; }
3294if test "${ac_cv_path_EGREP+set}" = set; then
3295  $as_echo_n "(cached) " >&6
3296else
3297  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3298   then ac_cv_path_EGREP="$GREP -E"
3299   else
3300     if test -z "$EGREP"; then
3301  ac_path_EGREP_found=false
3302  # Loop through the user's path and test for each of PROGNAME-LIST
3303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3305do
3306  IFS=$as_save_IFS
3307  test -z "$as_dir" && as_dir=.
3308  for ac_prog in egrep; do
3309    for ac_exec_ext in '' $ac_executable_extensions; do
3310      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3311      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3312# Check for GNU ac_path_EGREP and select it if it is found.
3313  # Check for GNU $ac_path_EGREP
3314case `"$ac_path_EGREP" --version 2>&1` in
3315*GNU*)
3316  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3317*)
3318  ac_count=0
3319  $as_echo_n 0123456789 >"conftest.in"
3320  while :
3321  do
3322    cat "conftest.in" "conftest.in" >"conftest.tmp"
3323    mv "conftest.tmp" "conftest.in"
3324    cp "conftest.in" "conftest.nl"
3325    $as_echo 'EGREP' >> "conftest.nl"
3326    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3327    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3328    ac_count=`expr $ac_count + 1`
3329    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3330      # Best one so far, save it but keep looking for a better one
3331      ac_cv_path_EGREP="$ac_path_EGREP"
3332      ac_path_EGREP_max=$ac_count
3333    fi
3334    # 10*(2^10) chars as input seems more than enough
3335    test $ac_count -gt 10 && break
3336  done
3337  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3338esac
3339
3340      $ac_path_EGREP_found && break 3
3341    done
3342  done
3343done
3344IFS=$as_save_IFS
3345  if test -z "$ac_cv_path_EGREP"; then
3346    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3347$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3348   { (exit 1); exit 1; }; }
3349  fi
3350else
3351  ac_cv_path_EGREP=$EGREP
3352fi
3353
3354   fi
3355fi
3356{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3357$as_echo "$ac_cv_path_EGREP" >&6; }
3358 EGREP="$ac_cv_path_EGREP"
3359
3360
3361{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3362$as_echo_n "checking for fgrep... " >&6; }
3363if test "${ac_cv_path_FGREP+set}" = set; then
3364  $as_echo_n "(cached) " >&6
3365else
3366  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3367   then ac_cv_path_FGREP="$GREP -F"
3368   else
3369     if test -z "$FGREP"; then
3370  ac_path_FGREP_found=false
3371  # Loop through the user's path and test for each of PROGNAME-LIST
3372  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3374do
3375  IFS=$as_save_IFS
3376  test -z "$as_dir" && as_dir=.
3377  for ac_prog in fgrep; do
3378    for ac_exec_ext in '' $ac_executable_extensions; do
3379      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3380      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3381# Check for GNU ac_path_FGREP and select it if it is found.
3382  # Check for GNU $ac_path_FGREP
3383case `"$ac_path_FGREP" --version 2>&1` in
3384*GNU*)
3385  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3386*)
3387  ac_count=0
3388  $as_echo_n 0123456789 >"conftest.in"
3389  while :
3390  do
3391    cat "conftest.in" "conftest.in" >"conftest.tmp"
3392    mv "conftest.tmp" "conftest.in"
3393    cp "conftest.in" "conftest.nl"
3394    $as_echo 'FGREP' >> "conftest.nl"
3395    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3396    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3397    ac_count=`expr $ac_count + 1`
3398    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3399      # Best one so far, save it but keep looking for a better one
3400      ac_cv_path_FGREP="$ac_path_FGREP"
3401      ac_path_FGREP_max=$ac_count
3402    fi
3403    # 10*(2^10) chars as input seems more than enough
3404    test $ac_count -gt 10 && break
3405  done
3406  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3407esac
3408
3409      $ac_path_FGREP_found && break 3
3410    done
3411  done
3412done
3413IFS=$as_save_IFS
3414  if test -z "$ac_cv_path_FGREP"; then
3415    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3416$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3417   { (exit 1); exit 1; }; }
3418  fi
3419else
3420  ac_cv_path_FGREP=$FGREP
3421fi
3422
3423   fi
3424fi
3425{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3426$as_echo "$ac_cv_path_FGREP" >&6; }
3427 FGREP="$ac_cv_path_FGREP"
3428
3429
3430test -z "$GREP" && GREP=grep
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450# Check whether --with-gnu-ld was given.
3451if test "${with_gnu_ld+set}" = set; then
3452  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3453else
3454  with_gnu_ld=no
3455fi
3456
3457ac_prog=ld
3458if test "$GCC" = yes; then
3459  # Check if gcc -print-prog-name=ld gives a path.
3460  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3461$as_echo_n "checking for ld used by $CC... " >&6; }
3462  case $host in
3463  *-*-mingw*)
3464    # gcc leaves a trailing carriage return which upsets mingw
3465    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3466  *)
3467    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3468  esac
3469  case $ac_prog in
3470    # Accept absolute paths.
3471    [\\/]* | ?:[\\/]*)
3472      re_direlt='/[^/][^/]*/\.\./'
3473      # Canonicalize the pathname of ld
3474      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3475      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3476	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3477      done
3478      test -z "$LD" && LD="$ac_prog"
3479      ;;
3480  "")
3481    # If it fails, then pretend we aren't using GCC.
3482    ac_prog=ld
3483    ;;
3484  *)
3485    # If it is relative, then search for the first ld in PATH.
3486    with_gnu_ld=unknown
3487    ;;
3488  esac
3489elif test "$with_gnu_ld" = yes; then
3490  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3491$as_echo_n "checking for GNU ld... " >&6; }
3492else
3493  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3494$as_echo_n "checking for non-GNU ld... " >&6; }
3495fi
3496if test "${lt_cv_path_LD+set}" = set; then
3497  $as_echo_n "(cached) " >&6
3498else
3499  if test -z "$LD"; then
3500  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3501  for ac_dir in $PATH; do
3502    IFS="$lt_save_ifs"
3503    test -z "$ac_dir" && ac_dir=.
3504    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3505      lt_cv_path_LD="$ac_dir/$ac_prog"
3506      # Check to see if the program is GNU ld.  I'd rather use --version,
3507      # but apparently some variants of GNU ld only accept -v.
3508      # Break only if it was the GNU/non-GNU ld that we prefer.
3509      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3510      *GNU* | *'with BFD'*)
3511	test "$with_gnu_ld" != no && break
3512	;;
3513      *)
3514	test "$with_gnu_ld" != yes && break
3515	;;
3516      esac
3517    fi
3518  done
3519  IFS="$lt_save_ifs"
3520else
3521  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3522fi
3523fi
3524
3525LD="$lt_cv_path_LD"
3526if test -n "$LD"; then
3527  { $as_echo "$as_me:$LINENO: result: $LD" >&5
3528$as_echo "$LD" >&6; }
3529else
3530  { $as_echo "$as_me:$LINENO: result: no" >&5
3531$as_echo "no" >&6; }
3532fi
3533test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3534$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3535   { (exit 1); exit 1; }; }
3536{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3537$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3538if test "${lt_cv_prog_gnu_ld+set}" = set; then
3539  $as_echo_n "(cached) " >&6
3540else
3541  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3542case `$LD -v 2>&1 </dev/null` in
3543*GNU* | *'with BFD'*)
3544  lt_cv_prog_gnu_ld=yes
3545  ;;
3546*)
3547  lt_cv_prog_gnu_ld=no
3548  ;;
3549esac
3550fi
3551{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3552$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3553with_gnu_ld=$lt_cv_prog_gnu_ld
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3564$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3565if test "${lt_cv_path_NM+set}" = set; then
3566  $as_echo_n "(cached) " >&6
3567else
3568  if test -n "$NM"; then
3569  # Let the user override the test.
3570  lt_cv_path_NM="$NM"
3571else
3572  lt_nm_to_check="${ac_tool_prefix}nm"
3573  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3574    lt_nm_to_check="$lt_nm_to_check nm"
3575  fi
3576  for lt_tmp_nm in $lt_nm_to_check; do
3577    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3578    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3579      IFS="$lt_save_ifs"
3580      test -z "$ac_dir" && ac_dir=.
3581      tmp_nm="$ac_dir/$lt_tmp_nm"
3582      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3583	# Check to see if the nm accepts a BSD-compat flag.
3584	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3585	#   nm: unknown option "B" ignored
3586	# Tru64's nm complains that /dev/null is an invalid object file
3587	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3588	*/dev/null* | *'Invalid file or object type'*)
3589	  lt_cv_path_NM="$tmp_nm -B"
3590	  break
3591	  ;;
3592	*)
3593	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3594	  */dev/null*)
3595	    lt_cv_path_NM="$tmp_nm -p"
3596	    break
3597	    ;;
3598	  *)
3599	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3600	    continue # so that we can try to find one that supports BSD flags
3601	    ;;
3602	  esac
3603	  ;;
3604	esac
3605      fi
3606    done
3607    IFS="$lt_save_ifs"
3608  done
3609  : ${lt_cv_path_NM=no}
3610fi
3611fi
3612{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3613$as_echo "$lt_cv_path_NM" >&6; }
3614if test "$lt_cv_path_NM" != "no"; then
3615  NM="$lt_cv_path_NM"
3616else
3617  # Didn't find any BSD compatible name lister, look for dumpbin.
3618  if test -n "$ac_tool_prefix"; then
3619  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3620  do
3621    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3623{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3624$as_echo_n "checking for $ac_word... " >&6; }
3625if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3626  $as_echo_n "(cached) " >&6
3627else
3628  if test -n "$DUMPBIN"; then
3629  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634  IFS=$as_save_IFS
3635  test -z "$as_dir" && as_dir=.
3636  for ac_exec_ext in '' $ac_executable_extensions; do
3637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3638    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3639    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640    break 2
3641  fi
3642done
3643done
3644IFS=$as_save_IFS
3645
3646fi
3647fi
3648DUMPBIN=$ac_cv_prog_DUMPBIN
3649if test -n "$DUMPBIN"; then
3650  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3651$as_echo "$DUMPBIN" >&6; }
3652else
3653  { $as_echo "$as_me:$LINENO: result: no" >&5
3654$as_echo "no" >&6; }
3655fi
3656
3657
3658    test -n "$DUMPBIN" && break
3659  done
3660fi
3661if test -z "$DUMPBIN"; then
3662  ac_ct_DUMPBIN=$DUMPBIN
3663  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3664do
3665  # Extract the first word of "$ac_prog", so it can be a program name with args.
3666set dummy $ac_prog; ac_word=$2
3667{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
3669if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3670  $as_echo_n "(cached) " >&6
3671else
3672  if test -n "$ac_ct_DUMPBIN"; then
3673  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678  IFS=$as_save_IFS
3679  test -z "$as_dir" && as_dir=.
3680  for ac_exec_ext in '' $ac_executable_extensions; do
3681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3683    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684    break 2
3685  fi
3686done
3687done
3688IFS=$as_save_IFS
3689
3690fi
3691fi
3692ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3693if test -n "$ac_ct_DUMPBIN"; then
3694  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3695$as_echo "$ac_ct_DUMPBIN" >&6; }
3696else
3697  { $as_echo "$as_me:$LINENO: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701
3702  test -n "$ac_ct_DUMPBIN" && break
3703done
3704
3705  if test "x$ac_ct_DUMPBIN" = x; then
3706    DUMPBIN=":"
3707  else
3708    case $cross_compiling:$ac_tool_warned in
3709yes:)
3710{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3711whose name does not start with the host triplet.  If you think this
3712configuration is useful to you, please write to [email protected]." >&5
3713$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3714whose name does not start with the host triplet.  If you think this
3715configuration is useful to you, please write to [email protected]." >&2;}
3716ac_tool_warned=yes ;;
3717esac
3718    DUMPBIN=$ac_ct_DUMPBIN
3719  fi
3720fi
3721
3722
3723  if test "$DUMPBIN" != ":"; then
3724    NM="$DUMPBIN"
3725  fi
3726fi
3727test -z "$NM" && NM=nm
3728
3729
3730
3731
3732
3733
3734{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3735$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3736if test "${lt_cv_nm_interface+set}" = set; then
3737  $as_echo_n "(cached) " >&6
3738else
3739  lt_cv_nm_interface="BSD nm"
3740  echo "int some_variable = 0;" > conftest.$ac_ext
3741  (eval echo "\"\$as_me:3741: $ac_compile\"" >&5)
3742  (eval "$ac_compile" 2>conftest.err)
3743  cat conftest.err >&5
3744  (eval echo "\"\$as_me:3744: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3745  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3746  cat conftest.err >&5
3747  (eval echo "\"\$as_me:3747: output\"" >&5)
3748  cat conftest.out >&5
3749  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3750    lt_cv_nm_interface="MS dumpbin"
3751  fi
3752  rm -f conftest*
3753fi
3754{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3755$as_echo "$lt_cv_nm_interface" >&6; }
3756
3757{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3758$as_echo_n "checking whether ln -s works... " >&6; }
3759LN_S=$as_ln_s
3760if test "$LN_S" = "ln -s"; then
3761  { $as_echo "$as_me:$LINENO: result: yes" >&5
3762$as_echo "yes" >&6; }
3763else
3764  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3765$as_echo "no, using $LN_S" >&6; }
3766fi
3767
3768# find the maximum length of command line arguments
3769{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3770$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3771if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3772  $as_echo_n "(cached) " >&6
3773else
3774    i=0
3775  teststring="ABCD"
3776
3777  case $build_os in
3778  msdosdjgpp*)
3779    # On DJGPP, this test can blow up pretty badly due to problems in libc
3780    # (any single argument exceeding 2000 bytes causes a buffer overrun
3781    # during glob expansion).  Even if it were fixed, the result of this
3782    # check would be larger than it should be.
3783    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3784    ;;
3785
3786  gnu*)
3787    # Under GNU Hurd, this test is not required because there is
3788    # no limit to the length of command line arguments.
3789    # Libtool will interpret -1 as no limit whatsoever
3790    lt_cv_sys_max_cmd_len=-1;
3791    ;;
3792
3793  cygwin* | mingw* | cegcc*)
3794    # On Win9x/ME, this test blows up -- it succeeds, but takes
3795    # about 5 minutes as the teststring grows exponentially.
3796    # Worse, since 9x/ME are not pre-emptively multitasking,
3797    # you end up with a "frozen" computer, even though with patience
3798    # the test eventually succeeds (with a max line length of 256k).
3799    # Instead, let's just punt: use the minimum linelength reported by
3800    # all of the supported platforms: 8192 (on NT/2K/XP).
3801    lt_cv_sys_max_cmd_len=8192;
3802    ;;
3803
3804  amigaos*)
3805    # On AmigaOS with pdksh, this test takes hours, literally.
3806    # So we just punt and use a minimum line length of 8192.
3807    lt_cv_sys_max_cmd_len=8192;
3808    ;;
3809
3810  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3811    # This has been around since 386BSD, at least.  Likely further.
3812    if test -x /sbin/sysctl; then
3813      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3814    elif test -x /usr/sbin/sysctl; then
3815      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3816    else
3817      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
3818    fi
3819    # And add a safety zone
3820    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3821    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3822    ;;
3823
3824  interix*)
3825    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3826    lt_cv_sys_max_cmd_len=196608
3827    ;;
3828
3829  osf*)
3830    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3831    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3832    # nice to cause kernel panics so lets avoid the loop below.
3833    # First set a reasonable default.
3834    lt_cv_sys_max_cmd_len=16384
3835    #
3836    if test -x /sbin/sysconfig; then
3837      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3838        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3839      esac
3840    fi
3841    ;;
3842  sco3.2v5*)
3843    lt_cv_sys_max_cmd_len=102400
3844    ;;
3845  sysv5* | sco5v6* | sysv4.2uw2*)
3846    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3847    if test -n "$kargmax"; then
3848      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
3849    else
3850      lt_cv_sys_max_cmd_len=32768
3851    fi
3852    ;;
3853  *)
3854    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3855    if test -n "$lt_cv_sys_max_cmd_len"; then
3856      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3857      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3858    else
3859      # Make teststring a little bigger before we do anything with it.
3860      # a 1K string should be a reasonable start.
3861      for i in 1 2 3 4 5 6 7 8 ; do
3862        teststring=$teststring$teststring
3863      done
3864      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3865      # If test is not a shell built-in, we'll probably end up computing a
3866      # maximum length that is only half of the actual maximum length, but
3867      # we can't tell.
3868      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3869	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3870	      test $i != 17 # 1/2 MB should be enough
3871      do
3872        i=`expr $i + 1`
3873        teststring=$teststring$teststring
3874      done
3875      # Only check the string length outside the loop.
3876      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3877      teststring=
3878      # Add a significant safety factor because C++ compilers can tack on
3879      # massive amounts of additional arguments before passing them to the
3880      # linker.  It appears as though 1/2 is a usable value.
3881      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3882    fi
3883    ;;
3884  esac
3885
3886fi
3887
3888if test -n $lt_cv_sys_max_cmd_len ; then
3889  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3890$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3891else
3892  { $as_echo "$as_me:$LINENO: result: none" >&5
3893$as_echo "none" >&6; }
3894fi
3895max_cmd_len=$lt_cv_sys_max_cmd_len
3896
3897
3898
3899
3900
3901
3902: ${CP="cp -f"}
3903: ${MV="mv -f"}
3904: ${RM="rm -f"}
3905
3906{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3907$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3908# Try some XSI features
3909xsi_shell=no
3910( _lt_dummy="a/b/c"
3911  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3912      = c,a/b,, \
3913    && eval 'test $(( 1 + 1 )) -eq 2 \
3914    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3915  && xsi_shell=yes
3916{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3917$as_echo "$xsi_shell" >&6; }
3918
3919
3920{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3921$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3922lt_shell_append=no
3923( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3924    >/dev/null 2>&1 \
3925  && lt_shell_append=yes
3926{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3927$as_echo "$lt_shell_append" >&6; }
3928
3929
3930if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3931  lt_unset=unset
3932else
3933  lt_unset=false
3934fi
3935
3936
3937
3938
3939
3940# test EBCDIC or ASCII
3941case `echo X|tr X '\101'` in
3942 A) # ASCII based system
3943    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3944  lt_SP2NL='tr \040 \012'
3945  lt_NL2SP='tr \015\012 \040\040'
3946  ;;
3947 *) # EBCDIC based system
3948  lt_SP2NL='tr \100 \n'
3949  lt_NL2SP='tr \r\n \100\100'
3950  ;;
3951esac
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3962$as_echo_n "checking for $LD option to reload object files... " >&6; }
3963if test "${lt_cv_ld_reload_flag+set}" = set; then
3964  $as_echo_n "(cached) " >&6
3965else
3966  lt_cv_ld_reload_flag='-r'
3967fi
3968{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3969$as_echo "$lt_cv_ld_reload_flag" >&6; }
3970reload_flag=$lt_cv_ld_reload_flag
3971case $reload_flag in
3972"" | " "*) ;;
3973*) reload_flag=" $reload_flag" ;;
3974esac
3975reload_cmds='$LD$reload_flag -o $output$reload_objs'
3976case $host_os in
3977  darwin*)
3978    if test "$GCC" = yes; then
3979      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3980    else
3981      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3982    fi
3983    ;;
3984esac
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994if test -n "$ac_tool_prefix"; then
3995  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3996set dummy ${ac_tool_prefix}objdump; ac_word=$2
3997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
3999if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4000  $as_echo_n "(cached) " >&6
4001else
4002  if test -n "$OBJDUMP"; then
4003  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008  IFS=$as_save_IFS
4009  test -z "$as_dir" && as_dir=.
4010  for ac_exec_ext in '' $ac_executable_extensions; do
4011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4013    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014    break 2
4015  fi
4016done
4017done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022OBJDUMP=$ac_cv_prog_OBJDUMP
4023if test -n "$OBJDUMP"; then
4024  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4025$as_echo "$OBJDUMP" >&6; }
4026else
4027  { $as_echo "$as_me:$LINENO: result: no" >&5
4028$as_echo "no" >&6; }
4029fi
4030
4031
4032fi
4033if test -z "$ac_cv_prog_OBJDUMP"; then
4034  ac_ct_OBJDUMP=$OBJDUMP
4035  # Extract the first word of "objdump", so it can be a program name with args.
4036set dummy objdump; ac_word=$2
4037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
4039if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4040  $as_echo_n "(cached) " >&6
4041else
4042  if test -n "$ac_ct_OBJDUMP"; then
4043  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048  IFS=$as_save_IFS
4049  test -z "$as_dir" && as_dir=.
4050  for ac_exec_ext in '' $ac_executable_extensions; do
4051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4053    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054    break 2
4055  fi
4056done
4057done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4063if test -n "$ac_ct_OBJDUMP"; then
4064  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4065$as_echo "$ac_ct_OBJDUMP" >&6; }
4066else
4067  { $as_echo "$as_me:$LINENO: result: no" >&5
4068$as_echo "no" >&6; }
4069fi
4070
4071  if test "x$ac_ct_OBJDUMP" = x; then
4072    OBJDUMP="false"
4073  else
4074    case $cross_compiling:$ac_tool_warned in
4075yes:)
4076{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4077whose name does not start with the host triplet.  If you think this
4078configuration is useful to you, please write to [email protected]." >&5
4079$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4080whose name does not start with the host triplet.  If you think this
4081configuration is useful to you, please write to [email protected]." >&2;}
4082ac_tool_warned=yes ;;
4083esac
4084    OBJDUMP=$ac_ct_OBJDUMP
4085  fi
4086else
4087  OBJDUMP="$ac_cv_prog_OBJDUMP"
4088fi
4089
4090test -z "$OBJDUMP" && OBJDUMP=objdump
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4101$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4102if test "${lt_cv_deplibs_check_method+set}" = set; then
4103  $as_echo_n "(cached) " >&6
4104else
4105  lt_cv_file_magic_cmd='$MAGIC_CMD'
4106lt_cv_file_magic_test_file=
4107lt_cv_deplibs_check_method='unknown'
4108# Need to set the preceding variable on all platforms that support
4109# interlibrary dependencies.
4110# 'none' -- dependencies not supported.
4111# `unknown' -- same as none, but documents that we really don't know.
4112# 'pass_all' -- all dependencies passed with no checks.
4113# 'test_compile' -- check by making test program.
4114# 'file_magic [[regex]]' -- check by looking for files in library path
4115# which responds to the $file_magic_cmd with a given extended regex.
4116# If you have `file' or equivalent on your system and you're not sure
4117# whether `pass_all' will *always* work, you probably want this one.
4118
4119case $host_os in
4120aix[4-9]*)
4121  lt_cv_deplibs_check_method=pass_all
4122  ;;
4123
4124beos*)
4125  lt_cv_deplibs_check_method=pass_all
4126  ;;
4127
4128bsdi[45]*)
4129  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4130  lt_cv_file_magic_cmd='/usr/bin/file -L'
4131  lt_cv_file_magic_test_file=/shlib/libc.so
4132  ;;
4133
4134cygwin*)
4135  # func_win32_libid is a shell function defined in ltmain.sh
4136  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4137  lt_cv_file_magic_cmd='func_win32_libid'
4138  ;;
4139
4140mingw* | pw32*)
4141  # Base MSYS/MinGW do not provide the 'file' command needed by
4142  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4143  # unless we find 'file', for example because we are cross-compiling.
4144  if ( file / ) >/dev/null 2>&1; then
4145    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4146    lt_cv_file_magic_cmd='func_win32_libid'
4147  else
4148    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4149    lt_cv_file_magic_cmd='$OBJDUMP -f'
4150  fi
4151  ;;
4152
4153cegcc)
4154  # use the weaker test based on 'objdump'. See mingw*.
4155  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4156  lt_cv_file_magic_cmd='$OBJDUMP -f'
4157  ;;
4158
4159darwin* | rhapsody*)
4160  lt_cv_deplibs_check_method=pass_all
4161  ;;
4162
4163freebsd* | dragonfly*)
4164  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4165    case $host_cpu in
4166    i*86 )
4167      # Not sure whether the presence of OpenBSD here was a mistake.
4168      # Let's accept both of them until this is cleared up.
4169      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4170      lt_cv_file_magic_cmd=/usr/bin/file
4171      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4172      ;;
4173    esac
4174  else
4175    lt_cv_deplibs_check_method=pass_all
4176  fi
4177  ;;
4178
4179gnu*)
4180  lt_cv_deplibs_check_method=pass_all
4181  ;;
4182
4183hpux10.20* | hpux11*)
4184  lt_cv_file_magic_cmd=/usr/bin/file
4185  case $host_cpu in
4186  ia64*)
4187    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4188    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4189    ;;
4190  hppa*64*)
4191    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]'
4192    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4193    ;;
4194  *)
4195    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4196    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4197    ;;
4198  esac
4199  ;;
4200
4201interix[3-9]*)
4202  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4203  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4204  ;;
4205
4206irix5* | irix6* | nonstopux*)
4207  case $LD in
4208  *-32|*"-32 ") libmagic=32-bit;;
4209  *-n32|*"-n32 ") libmagic=N32;;
4210  *-64|*"-64 ") libmagic=64-bit;;
4211  *) libmagic=never-match;;
4212  esac
4213  lt_cv_deplibs_check_method=pass_all
4214  ;;
4215
4216# This must be Linux ELF.
4217linux* | k*bsd*-gnu)
4218  lt_cv_deplibs_check_method=pass_all
4219  ;;
4220
4221netbsd*)
4222  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4223    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4224  else
4225    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4226  fi
4227  ;;
4228
4229newos6*)
4230  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4231  lt_cv_file_magic_cmd=/usr/bin/file
4232  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4233  ;;
4234
4235*nto* | *qnx*)
4236  lt_cv_deplibs_check_method=pass_all
4237  ;;
4238
4239openbsd*)
4240  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4241    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4242  else
4243    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4244  fi
4245  ;;
4246
4247osf3* | osf4* | osf5*)
4248  lt_cv_deplibs_check_method=pass_all
4249  ;;
4250
4251rdos*)
4252  lt_cv_deplibs_check_method=pass_all
4253  ;;
4254
4255solaris*)
4256  lt_cv_deplibs_check_method=pass_all
4257  ;;
4258
4259sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4260  lt_cv_deplibs_check_method=pass_all
4261  ;;
4262
4263sysv4 | sysv4.3*)
4264  case $host_vendor in
4265  motorola)
4266    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]'
4267    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4268    ;;
4269  ncr)
4270    lt_cv_deplibs_check_method=pass_all
4271    ;;
4272  sequent)
4273    lt_cv_file_magic_cmd='/bin/file'
4274    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4275    ;;
4276  sni)
4277    lt_cv_file_magic_cmd='/bin/file'
4278    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4279    lt_cv_file_magic_test_file=/lib/libc.so
4280    ;;
4281  siemens)
4282    lt_cv_deplibs_check_method=pass_all
4283    ;;
4284  pc)
4285    lt_cv_deplibs_check_method=pass_all
4286    ;;
4287  esac
4288  ;;
4289
4290tpf*)
4291  lt_cv_deplibs_check_method=pass_all
4292  ;;
4293esac
4294
4295fi
4296{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4297$as_echo "$lt_cv_deplibs_check_method" >&6; }
4298file_magic_cmd=$lt_cv_file_magic_cmd
4299deplibs_check_method=$lt_cv_deplibs_check_method
4300test -z "$deplibs_check_method" && deplibs_check_method=unknown
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313if test -n "$ac_tool_prefix"; then
4314  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4315set dummy ${ac_tool_prefix}ar; ac_word=$2
4316{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4317$as_echo_n "checking for $ac_word... " >&6; }
4318if test "${ac_cv_prog_AR+set}" = set; then
4319  $as_echo_n "(cached) " >&6
4320else
4321  if test -n "$AR"; then
4322  ac_cv_prog_AR="$AR" # Let the user override the test.
4323else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327  IFS=$as_save_IFS
4328  test -z "$as_dir" && as_dir=.
4329  for ac_exec_ext in '' $ac_executable_extensions; do
4330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331    ac_cv_prog_AR="${ac_tool_prefix}ar"
4332    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333    break 2
4334  fi
4335done
4336done
4337IFS=$as_save_IFS
4338
4339fi
4340fi
4341AR=$ac_cv_prog_AR
4342if test -n "$AR"; then
4343  { $as_echo "$as_me:$LINENO: result: $AR" >&5
4344$as_echo "$AR" >&6; }
4345else
4346  { $as_echo "$as_me:$LINENO: result: no" >&5
4347$as_echo "no" >&6; }
4348fi
4349
4350
4351fi
4352if test -z "$ac_cv_prog_AR"; then
4353  ac_ct_AR=$AR
4354  # Extract the first word of "ar", so it can be a program name with args.
4355set dummy ar; ac_word=$2
4356{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4357$as_echo_n "checking for $ac_word... " >&6; }
4358if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4359  $as_echo_n "(cached) " >&6
4360else
4361  if test -n "$ac_ct_AR"; then
4362  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4363else
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367  IFS=$as_save_IFS
4368  test -z "$as_dir" && as_dir=.
4369  for ac_exec_ext in '' $ac_executable_extensions; do
4370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371    ac_cv_prog_ac_ct_AR="ar"
4372    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373    break 2
4374  fi
4375done
4376done
4377IFS=$as_save_IFS
4378
4379fi
4380fi
4381ac_ct_AR=$ac_cv_prog_ac_ct_AR
4382if test -n "$ac_ct_AR"; then
4383  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4384$as_echo "$ac_ct_AR" >&6; }
4385else
4386  { $as_echo "$as_me:$LINENO: result: no" >&5
4387$as_echo "no" >&6; }
4388fi
4389
4390  if test "x$ac_ct_AR" = x; then
4391    AR="false"
4392  else
4393    case $cross_compiling:$ac_tool_warned in
4394yes:)
4395{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4396whose name does not start with the host triplet.  If you think this
4397configuration is useful to you, please write to [email protected]." >&5
4398$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4399whose name does not start with the host triplet.  If you think this
4400configuration is useful to you, please write to [email protected]." >&2;}
4401ac_tool_warned=yes ;;
4402esac
4403    AR=$ac_ct_AR
4404  fi
4405else
4406  AR="$ac_cv_prog_AR"
4407fi
4408
4409test -z "$AR" && AR=ar
4410test -z "$AR_FLAGS" && AR_FLAGS=cru
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422if test -n "$ac_tool_prefix"; then
4423  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4424set dummy ${ac_tool_prefix}strip; ac_word=$2
4425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4426$as_echo_n "checking for $ac_word... " >&6; }
4427if test "${ac_cv_prog_STRIP+set}" = set; then
4428  $as_echo_n "(cached) " >&6
4429else
4430  if test -n "$STRIP"; then
4431  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436  IFS=$as_save_IFS
4437  test -z "$as_dir" && as_dir=.
4438  for ac_exec_ext in '' $ac_executable_extensions; do
4439  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4441    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442    break 2
4443  fi
4444done
4445done
4446IFS=$as_save_IFS
4447
4448fi
4449fi
4450STRIP=$ac_cv_prog_STRIP
4451if test -n "$STRIP"; then
4452  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4453$as_echo "$STRIP" >&6; }
4454else
4455  { $as_echo "$as_me:$LINENO: result: no" >&5
4456$as_echo "no" >&6; }
4457fi
4458
4459
4460fi
4461if test -z "$ac_cv_prog_STRIP"; then
4462  ac_ct_STRIP=$STRIP
4463  # Extract the first word of "strip", so it can be a program name with args.
4464set dummy strip; ac_word=$2
4465{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4466$as_echo_n "checking for $ac_word... " >&6; }
4467if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4468  $as_echo_n "(cached) " >&6
4469else
4470  if test -n "$ac_ct_STRIP"; then
4471  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476  IFS=$as_save_IFS
4477  test -z "$as_dir" && as_dir=.
4478  for ac_exec_ext in '' $ac_executable_extensions; do
4479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4480    ac_cv_prog_ac_ct_STRIP="strip"
4481    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482    break 2
4483  fi
4484done
4485done
4486IFS=$as_save_IFS
4487
4488fi
4489fi
4490ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4491if test -n "$ac_ct_STRIP"; then
4492  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4493$as_echo "$ac_ct_STRIP" >&6; }
4494else
4495  { $as_echo "$as_me:$LINENO: result: no" >&5
4496$as_echo "no" >&6; }
4497fi
4498
4499  if test "x$ac_ct_STRIP" = x; then
4500    STRIP=":"
4501  else
4502    case $cross_compiling:$ac_tool_warned in
4503yes:)
4504{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4505whose name does not start with the host triplet.  If you think this
4506configuration is useful to you, please write to [email protected]." >&5
4507$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4508whose name does not start with the host triplet.  If you think this
4509configuration is useful to you, please write to [email protected]." >&2;}
4510ac_tool_warned=yes ;;
4511esac
4512    STRIP=$ac_ct_STRIP
4513  fi
4514else
4515  STRIP="$ac_cv_prog_STRIP"
4516fi
4517
4518test -z "$STRIP" && STRIP=:
4519
4520
4521
4522
4523
4524
4525if test -n "$ac_tool_prefix"; then
4526  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4527set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4528{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4529$as_echo_n "checking for $ac_word... " >&6; }
4530if test "${ac_cv_prog_RANLIB+set}" = set; then
4531  $as_echo_n "(cached) " >&6
4532else
4533  if test -n "$RANLIB"; then
4534  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541  for ac_exec_ext in '' $ac_executable_extensions; do
4542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4544    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545    break 2
4546  fi
4547done
4548done
4549IFS=$as_save_IFS
4550
4551fi
4552fi
4553RANLIB=$ac_cv_prog_RANLIB
4554if test -n "$RANLIB"; then
4555  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4556$as_echo "$RANLIB" >&6; }
4557else
4558  { $as_echo "$as_me:$LINENO: result: no" >&5
4559$as_echo "no" >&6; }
4560fi
4561
4562
4563fi
4564if test -z "$ac_cv_prog_RANLIB"; then
4565  ac_ct_RANLIB=$RANLIB
4566  # Extract the first word of "ranlib", so it can be a program name with args.
4567set dummy ranlib; ac_word=$2
4568{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4569$as_echo_n "checking for $ac_word... " >&6; }
4570if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4571  $as_echo_n "(cached) " >&6
4572else
4573  if test -n "$ac_ct_RANLIB"; then
4574  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579  IFS=$as_save_IFS
4580  test -z "$as_dir" && as_dir=.
4581  for ac_exec_ext in '' $ac_executable_extensions; do
4582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583    ac_cv_prog_ac_ct_RANLIB="ranlib"
4584    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585    break 2
4586  fi
4587done
4588done
4589IFS=$as_save_IFS
4590
4591fi
4592fi
4593ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4594if test -n "$ac_ct_RANLIB"; then
4595  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4596$as_echo "$ac_ct_RANLIB" >&6; }
4597else
4598  { $as_echo "$as_me:$LINENO: result: no" >&5
4599$as_echo "no" >&6; }
4600fi
4601
4602  if test "x$ac_ct_RANLIB" = x; then
4603    RANLIB=":"
4604  else
4605    case $cross_compiling:$ac_tool_warned in
4606yes:)
4607{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4608whose name does not start with the host triplet.  If you think this
4609configuration is useful to you, please write to [email protected]." >&5
4610$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4611whose name does not start with the host triplet.  If you think this
4612configuration is useful to you, please write to [email protected]." >&2;}
4613ac_tool_warned=yes ;;
4614esac
4615    RANLIB=$ac_ct_RANLIB
4616  fi
4617else
4618  RANLIB="$ac_cv_prog_RANLIB"
4619fi
4620
4621test -z "$RANLIB" && RANLIB=:
4622
4623
4624
4625
4626
4627
4628# Determine commands to create old-style static archives.
4629old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4630old_postinstall_cmds='chmod 644 $oldlib'
4631old_postuninstall_cmds=
4632
4633if test -n "$RANLIB"; then
4634  case $host_os in
4635  openbsd*)
4636    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4637    ;;
4638  *)
4639    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4640    ;;
4641  esac
4642  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4643fi
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
4675
4676
4677
4678# If no C compiler was specified, use CC.
4679LTCC=${LTCC-"$CC"}
4680
4681# If no C compiler flags were specified, use CFLAGS.
4682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4683
4684# Allow CC to be a program name with arguments.
4685compiler=$CC
4686
4687
4688# Check for command to grab the raw symbol name followed by C symbol from nm.
4689{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4690$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4691if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4692  $as_echo_n "(cached) " >&6
4693else
4694
4695# These are sane defaults that work on at least a few old systems.
4696# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4697
4698# Character class describing NM global symbol codes.
4699symcode='[BCDEGRST]'
4700
4701# Regexp to match symbols that can be accessed directly from C.
4702sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4703
4704# Define system-specific variables.
4705case $host_os in
4706aix*)
4707  symcode='[BCDT]'
4708  ;;
4709cygwin* | mingw* | pw32* | cegcc*)
4710  symcode='[ABCDGISTW]'
4711  ;;
4712hpux*)
4713  if test "$host_cpu" = ia64; then
4714    symcode='[ABCDEGRST]'
4715  fi
4716  ;;
4717irix* | nonstopux*)
4718  symcode='[BCDEGRST]'
4719  ;;
4720osf*)
4721  symcode='[BCDEGQRST]'
4722  ;;
4723solaris*)
4724  symcode='[BDRT]'
4725  ;;
4726sco3.2v5*)
4727  symcode='[DT]'
4728  ;;
4729sysv4.2uw2*)
4730  symcode='[DT]'
4731  ;;
4732sysv5* | sco5v6* | unixware* | OpenUNIX*)
4733  symcode='[ABDT]'
4734  ;;
4735sysv4)
4736  symcode='[DFNSTU]'
4737  ;;
4738esac
4739
4740# If we're using GNU nm, then use its standard symbol codes.
4741case `$NM -V 2>&1` in
4742*GNU* | *'with BFD'*)
4743  symcode='[ABCDGIRSTW]' ;;
4744esac
4745
4746# Transform an extracted symbol line into a proper C declaration.
4747# Some systems (esp. on ia64) link data and code symbols differently,
4748# so use this general approach.
4749lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4750
4751# Transform an extracted symbol line into symbol name and symbol address
4752lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4753lt_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'"
4754
4755# Handle CRLF in mingw tool chain
4756opt_cr=
4757case $build_os in
4758mingw*)
4759  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4760  ;;
4761esac
4762
4763# Try without a prefix underscore, then with it.
4764for ac_symprfx in "" "_"; do
4765
4766  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4767  symxfrm="\\1 $ac_symprfx\\2 \\2"
4768
4769  # Write the raw and C identifiers.
4770  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4771    # Fake it for dumpbin and say T for any non-static function
4772    # and D for any global variable.
4773    # Also find C++ and __fastcall symbols from MSVC++,
4774    # which start with @ or ?.
4775    lt_cv_sys_global_symbol_pipe="$AWK '"\
4776"     {last_section=section; section=\$ 3};"\
4777"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4778"     \$ 0!~/External *\|/{next};"\
4779"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4780"     {if(hide[section]) next};"\
4781"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4782"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4783"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4784"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4785"     ' prfx=^$ac_symprfx"
4786  else
4787    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4788  fi
4789
4790  # Check to see that the pipe works correctly.
4791  pipe_works=no
4792
4793  rm -f conftest*
4794  cat > conftest.$ac_ext <<_LT_EOF
4795#ifdef __cplusplus
4796extern "C" {
4797#endif
4798char nm_test_var;
4799void nm_test_func(void);
4800void nm_test_func(void){}
4801#ifdef __cplusplus
4802}
4803#endif
4804int main(){nm_test_var='a';nm_test_func();return(0);}
4805_LT_EOF
4806
4807  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808  (eval $ac_compile) 2>&5
4809  ac_status=$?
4810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811  (exit $ac_status); }; then
4812    # Now try to grab the symbols.
4813    nlist=conftest.nm
4814    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4815  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4816  ac_status=$?
4817  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818  (exit $ac_status); } && test -s "$nlist"; then
4819      # Try sorting and uniquifying the output.
4820      if sort "$nlist" | uniq > "$nlist"T; then
4821	mv -f "$nlist"T "$nlist"
4822      else
4823	rm -f "$nlist"T
4824      fi
4825
4826      # Make sure that we snagged all the symbols we need.
4827      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4828	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4829	  cat <<_LT_EOF > conftest.$ac_ext
4830#ifdef __cplusplus
4831extern "C" {
4832#endif
4833
4834_LT_EOF
4835	  # Now generate the symbol file.
4836	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4837
4838	  cat <<_LT_EOF >> conftest.$ac_ext
4839
4840/* The mapping between symbol names and symbols.  */
4841const struct {
4842  const char *name;
4843  void       *address;
4844}
4845lt__PROGRAM__LTX_preloaded_symbols[] =
4846{
4847  { "@PROGRAM@", (void *) 0 },
4848_LT_EOF
4849	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4850	  cat <<\_LT_EOF >> conftest.$ac_ext
4851  {0, (void *) 0}
4852};
4853
4854/* This works around a problem in FreeBSD linker */
4855#ifdef FREEBSD_WORKAROUND
4856static const void *lt_preloaded_setup() {
4857  return lt__PROGRAM__LTX_preloaded_symbols;
4858}
4859#endif
4860
4861#ifdef __cplusplus
4862}
4863#endif
4864_LT_EOF
4865	  # Now try linking the two files.
4866	  mv conftest.$ac_objext conftstm.$ac_objext
4867	  lt_save_LIBS="$LIBS"
4868	  lt_save_CFLAGS="$CFLAGS"
4869	  LIBS="conftstm.$ac_objext"
4870	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4871	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4872  (eval $ac_link) 2>&5
4873  ac_status=$?
4874  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4876	    pipe_works=yes
4877	  fi
4878	  LIBS="$lt_save_LIBS"
4879	  CFLAGS="$lt_save_CFLAGS"
4880	else
4881	  echo "cannot find nm_test_func in $nlist" >&5
4882	fi
4883      else
4884	echo "cannot find nm_test_var in $nlist" >&5
4885      fi
4886    else
4887      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4888    fi
4889  else
4890    echo "$progname: failed program was:" >&5
4891    cat conftest.$ac_ext >&5
4892  fi
4893  rm -rf conftest* conftst*
4894
4895  # Do not use the global_symbol_pipe unless it works.
4896  if test "$pipe_works" = yes; then
4897    break
4898  else
4899    lt_cv_sys_global_symbol_pipe=
4900  fi
4901done
4902
4903fi
4904
4905if test -z "$lt_cv_sys_global_symbol_pipe"; then
4906  lt_cv_sys_global_symbol_to_cdecl=
4907fi
4908if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4909  { $as_echo "$as_me:$LINENO: result: failed" >&5
4910$as_echo "failed" >&6; }
4911else
4912  { $as_echo "$as_me:$LINENO: result: ok" >&5
4913$as_echo "ok" >&6; }
4914fi
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938# Check whether --enable-libtool-lock was given.
4939if test "${enable_libtool_lock+set}" = set; then
4940  enableval=$enable_libtool_lock;
4941fi
4942
4943test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4944
4945# Some flags need to be propagated to the compiler or linker for good
4946# libtool support.
4947case $host in
4948ia64-*-hpux*)
4949  # Find out which ABI we are using.
4950  echo 'int i;' > conftest.$ac_ext
4951  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952  (eval $ac_compile) 2>&5
4953  ac_status=$?
4954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; then
4956    case `/usr/bin/file conftest.$ac_objext` in
4957      *ELF-32*)
4958	HPUX_IA64_MODE="32"
4959	;;
4960      *ELF-64*)
4961	HPUX_IA64_MODE="64"
4962	;;
4963    esac
4964  fi
4965  rm -rf conftest*
4966  ;;
4967*-*-irix6*)
4968  # Find out which ABI we are using.
4969  echo '#line 4969 "configure"' > conftest.$ac_ext
4970  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971  (eval $ac_compile) 2>&5
4972  ac_status=$?
4973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); }; then
4975    if test "$lt_cv_prog_gnu_ld" = yes; then
4976      case `/usr/bin/file conftest.$ac_objext` in
4977	*32-bit*)
4978	  LD="${LD-ld} -melf32bsmip"
4979	  ;;
4980	*N32*)
4981	  LD="${LD-ld} -melf32bmipn32"
4982	  ;;
4983	*64-bit*)
4984	  LD="${LD-ld} -melf64bmip"
4985	;;
4986      esac
4987    else
4988      case `/usr/bin/file conftest.$ac_objext` in
4989	*32-bit*)
4990	  LD="${LD-ld} -32"
4991	  ;;
4992	*N32*)
4993	  LD="${LD-ld} -n32"
4994	  ;;
4995	*64-bit*)
4996	  LD="${LD-ld} -64"
4997	  ;;
4998      esac
4999    fi
5000  fi
5001  rm -rf conftest*
5002  ;;
5003
5004x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5005s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5006  # Find out which ABI we are using.
5007  echo 'int i;' > conftest.$ac_ext
5008  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009  (eval $ac_compile) 2>&5
5010  ac_status=$?
5011  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); }; then
5013    case `/usr/bin/file conftest.o` in
5014      *32-bit*)
5015	case $host in
5016	  x86_64-*kfreebsd*-gnu)
5017	    LD="${LD-ld} -m elf_i386_fbsd"
5018	    ;;
5019	  x86_64-*linux*)
5020	    LD="${LD-ld} -m elf_i386"
5021	    ;;
5022	  ppc64-*linux*|powerpc64-*linux*)
5023	    LD="${LD-ld} -m elf32ppclinux"
5024	    ;;
5025	  s390x-*linux*)
5026	    LD="${LD-ld} -m elf_s390"
5027	    ;;
5028	  sparc64-*linux*)
5029	    LD="${LD-ld} -m elf32_sparc"
5030	    ;;
5031	esac
5032	;;
5033      *64-bit*)
5034	case $host in
5035	  x86_64-*kfreebsd*-gnu)
5036	    LD="${LD-ld} -m elf_x86_64_fbsd"
5037	    ;;
5038	  x86_64-*linux*)
5039	    LD="${LD-ld} -m elf_x86_64"
5040	    ;;
5041	  ppc*-*linux*|powerpc*-*linux*)
5042	    LD="${LD-ld} -m elf64ppc"
5043	    ;;
5044	  s390*-*linux*|s390*-*tpf*)
5045	    LD="${LD-ld} -m elf64_s390"
5046	    ;;
5047	  sparc*-*linux*)
5048	    LD="${LD-ld} -m elf64_sparc"
5049	    ;;
5050	esac
5051	;;
5052    esac
5053  fi
5054  rm -rf conftest*
5055  ;;
5056
5057*-*-sco3.2v5*)
5058  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5059  SAVE_CFLAGS="$CFLAGS"
5060  CFLAGS="$CFLAGS -belf"
5061  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5062$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5063if test "${lt_cv_cc_needs_belf+set}" = set; then
5064  $as_echo_n "(cached) " >&6
5065else
5066  ac_ext=c
5067ac_cpp='$CPP $CPPFLAGS'
5068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071
5072     cat >conftest.$ac_ext <<_ACEOF
5073/* confdefs.h.  */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h.  */
5078
5079int
5080main ()
5081{
5082
5083  ;
5084  return 0;
5085}
5086_ACEOF
5087rm -f conftest.$ac_objext conftest$ac_exeext
5088if { (ac_try="$ac_link"
5089case "(($ac_try" in
5090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091  *) ac_try_echo=$ac_try;;
5092esac
5093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094$as_echo "$ac_try_echo") >&5
5095  (eval "$ac_link") 2>conftest.er1
5096  ac_status=$?
5097  grep -v '^ *+' conftest.er1 >conftest.err
5098  rm -f conftest.er1
5099  cat conftest.err >&5
5100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101  (exit $ac_status); } && {
5102	 test -z "$ac_c_werror_flag" ||
5103	 test ! -s conftest.err
5104       } && test -s conftest$ac_exeext && {
5105	 test "$cross_compiling" = yes ||
5106	 $as_test_x conftest$ac_exeext
5107       }; then
5108  lt_cv_cc_needs_belf=yes
5109else
5110  $as_echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
5113	lt_cv_cc_needs_belf=no
5114fi
5115
5116rm -rf conftest.dSYM
5117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5118      conftest$ac_exeext conftest.$ac_ext
5119     ac_ext=c
5120ac_cpp='$CPP $CPPFLAGS'
5121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124
5125fi
5126{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5127$as_echo "$lt_cv_cc_needs_belf" >&6; }
5128  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5129    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5130    CFLAGS="$SAVE_CFLAGS"
5131  fi
5132  ;;
5133sparc*-*solaris*)
5134  # Find out which ABI we are using.
5135  echo 'int i;' > conftest.$ac_ext
5136  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137  (eval $ac_compile) 2>&5
5138  ac_status=$?
5139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140  (exit $ac_status); }; then
5141    case `/usr/bin/file conftest.o` in
5142    *64-bit*)
5143      case $lt_cv_prog_gnu_ld in
5144      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5145      *)
5146	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5147	  LD="${LD-ld} -64"
5148	fi
5149	;;
5150      esac
5151      ;;
5152    esac
5153  fi
5154  rm -rf conftest*
5155  ;;
5156esac
5157
5158need_locks="$enable_libtool_lock"
5159
5160
5161  case $host_os in
5162    rhapsody* | darwin*)
5163    if test -n "$ac_tool_prefix"; then
5164  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5165set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5166{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5167$as_echo_n "checking for $ac_word... " >&6; }
5168if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5169  $as_echo_n "(cached) " >&6
5170else
5171  if test -n "$DSYMUTIL"; then
5172  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5173else
5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177  IFS=$as_save_IFS
5178  test -z "$as_dir" && as_dir=.
5179  for ac_exec_ext in '' $ac_executable_extensions; do
5180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5182    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183    break 2
5184  fi
5185done
5186done
5187IFS=$as_save_IFS
5188
5189fi
5190fi
5191DSYMUTIL=$ac_cv_prog_DSYMUTIL
5192if test -n "$DSYMUTIL"; then
5193  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5194$as_echo "$DSYMUTIL" >&6; }
5195else
5196  { $as_echo "$as_me:$LINENO: result: no" >&5
5197$as_echo "no" >&6; }
5198fi
5199
5200
5201fi
5202if test -z "$ac_cv_prog_DSYMUTIL"; then
5203  ac_ct_DSYMUTIL=$DSYMUTIL
5204  # Extract the first word of "dsymutil", so it can be a program name with args.
5205set dummy dsymutil; ac_word=$2
5206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5207$as_echo_n "checking for $ac_word... " >&6; }
5208if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5209  $as_echo_n "(cached) " >&6
5210else
5211  if test -n "$ac_ct_DSYMUTIL"; then
5212  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217  IFS=$as_save_IFS
5218  test -z "$as_dir" && as_dir=.
5219  for ac_exec_ext in '' $ac_executable_extensions; do
5220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5222    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223    break 2
5224  fi
5225done
5226done
5227IFS=$as_save_IFS
5228
5229fi
5230fi
5231ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5232if test -n "$ac_ct_DSYMUTIL"; then
5233  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5234$as_echo "$ac_ct_DSYMUTIL" >&6; }
5235else
5236  { $as_echo "$as_me:$LINENO: result: no" >&5
5237$as_echo "no" >&6; }
5238fi
5239
5240  if test "x$ac_ct_DSYMUTIL" = x; then
5241    DSYMUTIL=":"
5242  else
5243    case $cross_compiling:$ac_tool_warned in
5244yes:)
5245{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5246whose name does not start with the host triplet.  If you think this
5247configuration is useful to you, please write to [email protected]." >&5
5248$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5249whose name does not start with the host triplet.  If you think this
5250configuration is useful to you, please write to [email protected]." >&2;}
5251ac_tool_warned=yes ;;
5252esac
5253    DSYMUTIL=$ac_ct_DSYMUTIL
5254  fi
5255else
5256  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5257fi
5258
5259    if test -n "$ac_tool_prefix"; then
5260  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5261set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5262{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5263$as_echo_n "checking for $ac_word... " >&6; }
5264if test "${ac_cv_prog_NMEDIT+set}" = set; then
5265  $as_echo_n "(cached) " >&6
5266else
5267  if test -n "$NMEDIT"; then
5268  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273  IFS=$as_save_IFS
5274  test -z "$as_dir" && as_dir=.
5275  for ac_exec_ext in '' $ac_executable_extensions; do
5276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5278    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279    break 2
5280  fi
5281done
5282done
5283IFS=$as_save_IFS
5284
5285fi
5286fi
5287NMEDIT=$ac_cv_prog_NMEDIT
5288if test -n "$NMEDIT"; then
5289  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5290$as_echo "$NMEDIT" >&6; }
5291else
5292  { $as_echo "$as_me:$LINENO: result: no" >&5
5293$as_echo "no" >&6; }
5294fi
5295
5296
5297fi
5298if test -z "$ac_cv_prog_NMEDIT"; then
5299  ac_ct_NMEDIT=$NMEDIT
5300  # Extract the first word of "nmedit", so it can be a program name with args.
5301set dummy nmedit; ac_word=$2
5302{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5303$as_echo_n "checking for $ac_word... " >&6; }
5304if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5305  $as_echo_n "(cached) " >&6
5306else
5307  if test -n "$ac_ct_NMEDIT"; then
5308  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313  IFS=$as_save_IFS
5314  test -z "$as_dir" && as_dir=.
5315  for ac_exec_ext in '' $ac_executable_extensions; do
5316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5318    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319    break 2
5320  fi
5321done
5322done
5323IFS=$as_save_IFS
5324
5325fi
5326fi
5327ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5328if test -n "$ac_ct_NMEDIT"; then
5329  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5330$as_echo "$ac_ct_NMEDIT" >&6; }
5331else
5332  { $as_echo "$as_me:$LINENO: result: no" >&5
5333$as_echo "no" >&6; }
5334fi
5335
5336  if test "x$ac_ct_NMEDIT" = x; then
5337    NMEDIT=":"
5338  else
5339    case $cross_compiling:$ac_tool_warned in
5340yes:)
5341{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5342whose name does not start with the host triplet.  If you think this
5343configuration is useful to you, please write to [email protected]." >&5
5344$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5345whose name does not start with the host triplet.  If you think this
5346configuration is useful to you, please write to [email protected]." >&2;}
5347ac_tool_warned=yes ;;
5348esac
5349    NMEDIT=$ac_ct_NMEDIT
5350  fi
5351else
5352  NMEDIT="$ac_cv_prog_NMEDIT"
5353fi
5354
5355    if test -n "$ac_tool_prefix"; then
5356  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5357set dummy ${ac_tool_prefix}lipo; ac_word=$2
5358{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5359$as_echo_n "checking for $ac_word... " >&6; }
5360if test "${ac_cv_prog_LIPO+set}" = set; then
5361  $as_echo_n "(cached) " >&6
5362else
5363  if test -n "$LIPO"; then
5364  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369  IFS=$as_save_IFS
5370  test -z "$as_dir" && as_dir=.
5371  for ac_exec_ext in '' $ac_executable_extensions; do
5372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5374    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375    break 2
5376  fi
5377done
5378done
5379IFS=$as_save_IFS
5380
5381fi
5382fi
5383LIPO=$ac_cv_prog_LIPO
5384if test -n "$LIPO"; then
5385  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5386$as_echo "$LIPO" >&6; }
5387else
5388  { $as_echo "$as_me:$LINENO: result: no" >&5
5389$as_echo "no" >&6; }
5390fi
5391
5392
5393fi
5394if test -z "$ac_cv_prog_LIPO"; then
5395  ac_ct_LIPO=$LIPO
5396  # Extract the first word of "lipo", so it can be a program name with args.
5397set dummy lipo; ac_word=$2
5398{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
5400if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5401  $as_echo_n "(cached) " >&6
5402else
5403  if test -n "$ac_ct_LIPO"; then
5404  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411  for ac_exec_ext in '' $ac_executable_extensions; do
5412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413    ac_cv_prog_ac_ct_LIPO="lipo"
5414    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418done
5419IFS=$as_save_IFS
5420
5421fi
5422fi
5423ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5424if test -n "$ac_ct_LIPO"; then
5425  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5426$as_echo "$ac_ct_LIPO" >&6; }
5427else
5428  { $as_echo "$as_me:$LINENO: result: no" >&5
5429$as_echo "no" >&6; }
5430fi
5431
5432  if test "x$ac_ct_LIPO" = x; then
5433    LIPO=":"
5434  else
5435    case $cross_compiling:$ac_tool_warned in
5436yes:)
5437{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5438whose name does not start with the host triplet.  If you think this
5439configuration is useful to you, please write to [email protected]." >&5
5440$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5441whose name does not start with the host triplet.  If you think this
5442configuration is useful to you, please write to [email protected]." >&2;}
5443ac_tool_warned=yes ;;
5444esac
5445    LIPO=$ac_ct_LIPO
5446  fi
5447else
5448  LIPO="$ac_cv_prog_LIPO"
5449fi
5450
5451    if test -n "$ac_tool_prefix"; then
5452  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5453set dummy ${ac_tool_prefix}otool; ac_word=$2
5454{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5455$as_echo_n "checking for $ac_word... " >&6; }
5456if test "${ac_cv_prog_OTOOL+set}" = set; then
5457  $as_echo_n "(cached) " >&6
5458else
5459  if test -n "$OTOOL"; then
5460  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5461else
5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH
5464do
5465  IFS=$as_save_IFS
5466  test -z "$as_dir" && as_dir=.
5467  for ac_exec_ext in '' $ac_executable_extensions; do
5468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5470    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471    break 2
5472  fi
5473done
5474done
5475IFS=$as_save_IFS
5476
5477fi
5478fi
5479OTOOL=$ac_cv_prog_OTOOL
5480if test -n "$OTOOL"; then
5481  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5482$as_echo "$OTOOL" >&6; }
5483else
5484  { $as_echo "$as_me:$LINENO: result: no" >&5
5485$as_echo "no" >&6; }
5486fi
5487
5488
5489fi
5490if test -z "$ac_cv_prog_OTOOL"; then
5491  ac_ct_OTOOL=$OTOOL
5492  # Extract the first word of "otool", so it can be a program name with args.
5493set dummy otool; ac_word=$2
5494{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5495$as_echo_n "checking for $ac_word... " >&6; }
5496if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5497  $as_echo_n "(cached) " >&6
5498else
5499  if test -n "$ac_ct_OTOOL"; then
5500  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5501else
5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH
5504do
5505  IFS=$as_save_IFS
5506  test -z "$as_dir" && as_dir=.
5507  for ac_exec_ext in '' $ac_executable_extensions; do
5508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509    ac_cv_prog_ac_ct_OTOOL="otool"
5510    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511    break 2
5512  fi
5513done
5514done
5515IFS=$as_save_IFS
5516
5517fi
5518fi
5519ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5520if test -n "$ac_ct_OTOOL"; then
5521  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5522$as_echo "$ac_ct_OTOOL" >&6; }
5523else
5524  { $as_echo "$as_me:$LINENO: result: no" >&5
5525$as_echo "no" >&6; }
5526fi
5527
5528  if test "x$ac_ct_OTOOL" = x; then
5529    OTOOL=":"
5530  else
5531    case $cross_compiling:$ac_tool_warned in
5532yes:)
5533{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5534whose name does not start with the host triplet.  If you think this
5535configuration is useful to you, please write to [email protected]." >&5
5536$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5537whose name does not start with the host triplet.  If you think this
5538configuration is useful to you, please write to [email protected]." >&2;}
5539ac_tool_warned=yes ;;
5540esac
5541    OTOOL=$ac_ct_OTOOL
5542  fi
5543else
5544  OTOOL="$ac_cv_prog_OTOOL"
5545fi
5546
5547    if test -n "$ac_tool_prefix"; then
5548  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5549set dummy ${ac_tool_prefix}otool64; ac_word=$2
5550{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5551$as_echo_n "checking for $ac_word... " >&6; }
5552if test "${ac_cv_prog_OTOOL64+set}" = set; then
5553  $as_echo_n "(cached) " >&6
5554else
5555  if test -n "$OTOOL64"; then
5556  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5557else
5558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH
5560do
5561  IFS=$as_save_IFS
5562  test -z "$as_dir" && as_dir=.
5563  for ac_exec_ext in '' $ac_executable_extensions; do
5564  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5566    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567    break 2
5568  fi
5569done
5570done
5571IFS=$as_save_IFS
5572
5573fi
5574fi
5575OTOOL64=$ac_cv_prog_OTOOL64
5576if test -n "$OTOOL64"; then
5577  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5578$as_echo "$OTOOL64" >&6; }
5579else
5580  { $as_echo "$as_me:$LINENO: result: no" >&5
5581$as_echo "no" >&6; }
5582fi
5583
5584
5585fi
5586if test -z "$ac_cv_prog_OTOOL64"; then
5587  ac_ct_OTOOL64=$OTOOL64
5588  # Extract the first word of "otool64", so it can be a program name with args.
5589set dummy otool64; ac_word=$2
5590{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5591$as_echo_n "checking for $ac_word... " >&6; }
5592if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5593  $as_echo_n "(cached) " >&6
5594else
5595  if test -n "$ac_ct_OTOOL64"; then
5596  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601  IFS=$as_save_IFS
5602  test -z "$as_dir" && as_dir=.
5603  for ac_exec_ext in '' $ac_executable_extensions; do
5604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605    ac_cv_prog_ac_ct_OTOOL64="otool64"
5606    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607    break 2
5608  fi
5609done
5610done
5611IFS=$as_save_IFS
5612
5613fi
5614fi
5615ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5616if test -n "$ac_ct_OTOOL64"; then
5617  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5618$as_echo "$ac_ct_OTOOL64" >&6; }
5619else
5620  { $as_echo "$as_me:$LINENO: result: no" >&5
5621$as_echo "no" >&6; }
5622fi
5623
5624  if test "x$ac_ct_OTOOL64" = x; then
5625    OTOOL64=":"
5626  else
5627    case $cross_compiling:$ac_tool_warned in
5628yes:)
5629{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5630whose name does not start with the host triplet.  If you think this
5631configuration is useful to you, please write to [email protected]." >&5
5632$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5633whose name does not start with the host triplet.  If you think this
5634configuration is useful to you, please write to [email protected]." >&2;}
5635ac_tool_warned=yes ;;
5636esac
5637    OTOOL64=$ac_ct_OTOOL64
5638  fi
5639else
5640  OTOOL64="$ac_cv_prog_OTOOL64"
5641fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5670$as_echo_n "checking for -single_module linker flag... " >&6; }
5671if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5672  $as_echo_n "(cached) " >&6
5673else
5674  lt_cv_apple_cc_single_mod=no
5675      if test -z "${LT_MULTI_MODULE}"; then
5676	# By default we will add the -single_module flag. You can override
5677	# by either setting the environment variable LT_MULTI_MODULE
5678	# non-empty at configure time, or by adding -multi_module to the
5679	# link flags.
5680	rm -rf libconftest.dylib*
5681	echo "int foo(void){return 1;}" > conftest.c
5682	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5683-dynamiclib -Wl,-single_module conftest.c" >&5
5684	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5685	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5686        _lt_result=$?
5687	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5688	  lt_cv_apple_cc_single_mod=yes
5689	else
5690	  cat conftest.err >&5
5691	fi
5692	rm -rf libconftest.dylib*
5693	rm -f conftest.*
5694      fi
5695fi
5696{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5697$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5698    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5699$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5700if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5701  $as_echo_n "(cached) " >&6
5702else
5703  lt_cv_ld_exported_symbols_list=no
5704      save_LDFLAGS=$LDFLAGS
5705      echo "_main" > conftest.sym
5706      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5707      cat >conftest.$ac_ext <<_ACEOF
5708/* confdefs.h.  */
5709_ACEOF
5710cat confdefs.h >>conftest.$ac_ext
5711cat >>conftest.$ac_ext <<_ACEOF
5712/* end confdefs.h.  */
5713
5714int
5715main ()
5716{
5717
5718  ;
5719  return 0;
5720}
5721_ACEOF
5722rm -f conftest.$ac_objext conftest$ac_exeext
5723if { (ac_try="$ac_link"
5724case "(($ac_try" in
5725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726  *) ac_try_echo=$ac_try;;
5727esac
5728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729$as_echo "$ac_try_echo") >&5
5730  (eval "$ac_link") 2>conftest.er1
5731  ac_status=$?
5732  grep -v '^ *+' conftest.er1 >conftest.err
5733  rm -f conftest.er1
5734  cat conftest.err >&5
5735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736  (exit $ac_status); } && {
5737	 test -z "$ac_c_werror_flag" ||
5738	 test ! -s conftest.err
5739       } && test -s conftest$ac_exeext && {
5740	 test "$cross_compiling" = yes ||
5741	 $as_test_x conftest$ac_exeext
5742       }; then
5743  lt_cv_ld_exported_symbols_list=yes
5744else
5745  $as_echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748	lt_cv_ld_exported_symbols_list=no
5749fi
5750
5751rm -rf conftest.dSYM
5752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5753      conftest$ac_exeext conftest.$ac_ext
5754	LDFLAGS="$save_LDFLAGS"
5755
5756fi
5757{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5758$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5759    case $host_os in
5760    rhapsody* | darwin1.[012])
5761      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5762    darwin1.*)
5763      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5764    darwin*) # darwin 5.x on
5765      # if running on 10.5 or later, the deployment target defaults
5766      # to the OS version, if on x86, and 10.4, the deployment
5767      # target defaults to 10.4. Don't you love it?
5768      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5769	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5770	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5771	10.[012]*)
5772	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5773	10.*)
5774	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5775      esac
5776    ;;
5777  esac
5778    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5779      _lt_dar_single_mod='$single_module'
5780    fi
5781    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5782      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5783    else
5784      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5785    fi
5786    if test "$DSYMUTIL" != ":"; then
5787      _lt_dsymutil='~$DSYMUTIL $lib || :'
5788    else
5789      _lt_dsymutil=
5790    fi
5791    ;;
5792  esac
5793
5794ac_ext=c
5795ac_cpp='$CPP $CPPFLAGS'
5796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798ac_compiler_gnu=$ac_cv_c_compiler_gnu
5799{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5800$as_echo_n "checking how to run the C preprocessor... " >&6; }
5801# On Suns, sometimes $CPP names a directory.
5802if test -n "$CPP" && test -d "$CPP"; then
5803  CPP=
5804fi
5805if test -z "$CPP"; then
5806  if test "${ac_cv_prog_CPP+set}" = set; then
5807  $as_echo_n "(cached) " >&6
5808else
5809      # Double quotes because CPP needs to be expanded
5810    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5811    do
5812      ac_preproc_ok=false
5813for ac_c_preproc_warn_flag in '' yes
5814do
5815  # Use a header file that comes with gcc, so configuring glibc
5816  # with a fresh cross-compiler works.
5817  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818  # <limits.h> exists even on freestanding compilers.
5819  # On the NeXT, cc -E runs the code through the compiler's parser,
5820  # not just through cpp. "Syntax error" is here to catch this case.
5821  cat >conftest.$ac_ext <<_ACEOF
5822/* confdefs.h.  */
5823_ACEOF
5824cat confdefs.h >>conftest.$ac_ext
5825cat >>conftest.$ac_ext <<_ACEOF
5826/* end confdefs.h.  */
5827#ifdef __STDC__
5828# include <limits.h>
5829#else
5830# include <assert.h>
5831#endif
5832		     Syntax error
5833_ACEOF
5834if { (ac_try="$ac_cpp conftest.$ac_ext"
5835case "(($ac_try" in
5836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837  *) ac_try_echo=$ac_try;;
5838esac
5839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5840$as_echo "$ac_try_echo") >&5
5841  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5842  ac_status=$?
5843  grep -v '^ *+' conftest.er1 >conftest.err
5844  rm -f conftest.er1
5845  cat conftest.err >&5
5846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847  (exit $ac_status); } >/dev/null && {
5848	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5849	 test ! -s conftest.err
5850       }; then
5851  :
5852else
5853  $as_echo "$as_me: failed program was:" >&5
5854sed 's/^/| /' conftest.$ac_ext >&5
5855
5856  # Broken: fails on valid input.
5857continue
5858fi
5859
5860rm -f conftest.err conftest.$ac_ext
5861
5862  # OK, works on sane cases.  Now check whether nonexistent headers
5863  # can be detected and how.
5864  cat >conftest.$ac_ext <<_ACEOF
5865/* confdefs.h.  */
5866_ACEOF
5867cat confdefs.h >>conftest.$ac_ext
5868cat >>conftest.$ac_ext <<_ACEOF
5869/* end confdefs.h.  */
5870#include <ac_nonexistent.h>
5871_ACEOF
5872if { (ac_try="$ac_cpp conftest.$ac_ext"
5873case "(($ac_try" in
5874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875  *) ac_try_echo=$ac_try;;
5876esac
5877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5878$as_echo "$ac_try_echo") >&5
5879  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5880  ac_status=$?
5881  grep -v '^ *+' conftest.er1 >conftest.err
5882  rm -f conftest.er1
5883  cat conftest.err >&5
5884  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); } >/dev/null && {
5886	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5887	 test ! -s conftest.err
5888       }; then
5889  # Broken: success on invalid input.
5890continue
5891else
5892  $as_echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895  # Passes both tests.
5896ac_preproc_ok=:
5897break
5898fi
5899
5900rm -f conftest.err conftest.$ac_ext
5901
5902done
5903# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5904rm -f conftest.err conftest.$ac_ext
5905if $ac_preproc_ok; then
5906  break
5907fi
5908
5909    done
5910    ac_cv_prog_CPP=$CPP
5911
5912fi
5913  CPP=$ac_cv_prog_CPP
5914else
5915  ac_cv_prog_CPP=$CPP
5916fi
5917{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5918$as_echo "$CPP" >&6; }
5919ac_preproc_ok=false
5920for ac_c_preproc_warn_flag in '' yes
5921do
5922  # Use a header file that comes with gcc, so configuring glibc
5923  # with a fresh cross-compiler works.
5924  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5925  # <limits.h> exists even on freestanding compilers.
5926  # On the NeXT, cc -E runs the code through the compiler's parser,
5927  # not just through cpp. "Syntax error" is here to catch this case.
5928  cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h.  */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h.  */
5934#ifdef __STDC__
5935# include <limits.h>
5936#else
5937# include <assert.h>
5938#endif
5939		     Syntax error
5940_ACEOF
5941if { (ac_try="$ac_cpp conftest.$ac_ext"
5942case "(($ac_try" in
5943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944  *) ac_try_echo=$ac_try;;
5945esac
5946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5947$as_echo "$ac_try_echo") >&5
5948  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5949  ac_status=$?
5950  grep -v '^ *+' conftest.er1 >conftest.err
5951  rm -f conftest.er1
5952  cat conftest.err >&5
5953  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954  (exit $ac_status); } >/dev/null && {
5955	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5956	 test ! -s conftest.err
5957       }; then
5958  :
5959else
5960  $as_echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963  # Broken: fails on valid input.
5964continue
5965fi
5966
5967rm -f conftest.err conftest.$ac_ext
5968
5969  # OK, works on sane cases.  Now check whether nonexistent headers
5970  # can be detected and how.
5971  cat >conftest.$ac_ext <<_ACEOF
5972/* confdefs.h.  */
5973_ACEOF
5974cat confdefs.h >>conftest.$ac_ext
5975cat >>conftest.$ac_ext <<_ACEOF
5976/* end confdefs.h.  */
5977#include <ac_nonexistent.h>
5978_ACEOF
5979if { (ac_try="$ac_cpp conftest.$ac_ext"
5980case "(($ac_try" in
5981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982  *) ac_try_echo=$ac_try;;
5983esac
5984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5985$as_echo "$ac_try_echo") >&5
5986  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5987  ac_status=$?
5988  grep -v '^ *+' conftest.er1 >conftest.err
5989  rm -f conftest.er1
5990  cat conftest.err >&5
5991  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992  (exit $ac_status); } >/dev/null && {
5993	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5994	 test ! -s conftest.err
5995       }; then
5996  # Broken: success on invalid input.
5997continue
5998else
5999  $as_echo "$as_me: failed program was:" >&5
6000sed 's/^/| /' conftest.$ac_ext >&5
6001
6002  # Passes both tests.
6003ac_preproc_ok=:
6004break
6005fi
6006
6007rm -f conftest.err conftest.$ac_ext
6008
6009done
6010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6011rm -f conftest.err conftest.$ac_ext
6012if $ac_preproc_ok; then
6013  :
6014else
6015  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6016See \`config.log' for more details." >&5
6017$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6018See \`config.log' for more details." >&2;}
6019   { (exit 1); exit 1; }; }
6020fi
6021
6022ac_ext=c
6023ac_cpp='$CPP $CPPFLAGS'
6024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
6028
6029{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6030$as_echo_n "checking for ANSI C header files... " >&6; }
6031if test "${ac_cv_header_stdc+set}" = set; then
6032  $as_echo_n "(cached) " >&6
6033else
6034  cat >conftest.$ac_ext <<_ACEOF
6035/* confdefs.h.  */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h.  */
6040#include <stdlib.h>
6041#include <stdarg.h>
6042#include <string.h>
6043#include <float.h>
6044
6045int
6046main ()
6047{
6048
6049  ;
6050  return 0;
6051}
6052_ACEOF
6053rm -f conftest.$ac_objext
6054if { (ac_try="$ac_compile"
6055case "(($ac_try" in
6056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057  *) ac_try_echo=$ac_try;;
6058esac
6059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6060$as_echo "$ac_try_echo") >&5
6061  (eval "$ac_compile") 2>conftest.er1
6062  ac_status=$?
6063  grep -v '^ *+' conftest.er1 >conftest.err
6064  rm -f conftest.er1
6065  cat conftest.err >&5
6066  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067  (exit $ac_status); } && {
6068	 test -z "$ac_c_werror_flag" ||
6069	 test ! -s conftest.err
6070       } && test -s conftest.$ac_objext; then
6071  ac_cv_header_stdc=yes
6072else
6073  $as_echo "$as_me: failed program was:" >&5
6074sed 's/^/| /' conftest.$ac_ext >&5
6075
6076	ac_cv_header_stdc=no
6077fi
6078
6079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080
6081if test $ac_cv_header_stdc = yes; then
6082  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6083  cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h.  */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h.  */
6089#include <string.h>
6090
6091_ACEOF
6092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093  $EGREP "memchr" >/dev/null 2>&1; then
6094  :
6095else
6096  ac_cv_header_stdc=no
6097fi
6098rm -f conftest*
6099
6100fi
6101
6102if test $ac_cv_header_stdc = yes; then
6103  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6104  cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h.  */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h.  */
6110#include <stdlib.h>
6111
6112_ACEOF
6113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114  $EGREP "free" >/dev/null 2>&1; then
6115  :
6116else
6117  ac_cv_header_stdc=no
6118fi
6119rm -f conftest*
6120
6121fi
6122
6123if test $ac_cv_header_stdc = yes; then
6124  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6125  if test "$cross_compiling" = yes; then
6126  :
6127else
6128  cat >conftest.$ac_ext <<_ACEOF
6129/* confdefs.h.  */
6130_ACEOF
6131cat confdefs.h >>conftest.$ac_ext
6132cat >>conftest.$ac_ext <<_ACEOF
6133/* end confdefs.h.  */
6134#include <ctype.h>
6135#include <stdlib.h>
6136#if ((' ' & 0x0FF) == 0x020)
6137# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6138# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6139#else
6140# define ISLOWER(c) \
6141		   (('a' <= (c) && (c) <= 'i') \
6142		     || ('j' <= (c) && (c) <= 'r') \
6143		     || ('s' <= (c) && (c) <= 'z'))
6144# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6145#endif
6146
6147#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6148int
6149main ()
6150{
6151  int i;
6152  for (i = 0; i < 256; i++)
6153    if (XOR (islower (i), ISLOWER (i))
6154	|| toupper (i) != TOUPPER (i))
6155      return 2;
6156  return 0;
6157}
6158_ACEOF
6159rm -f conftest$ac_exeext
6160if { (ac_try="$ac_link"
6161case "(($ac_try" in
6162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163  *) ac_try_echo=$ac_try;;
6164esac
6165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6166$as_echo "$ac_try_echo") >&5
6167  (eval "$ac_link") 2>&5
6168  ac_status=$?
6169  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6171  { (case "(($ac_try" in
6172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173  *) ac_try_echo=$ac_try;;
6174esac
6175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6176$as_echo "$ac_try_echo") >&5
6177  (eval "$ac_try") 2>&5
6178  ac_status=$?
6179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180  (exit $ac_status); }; }; then
6181  :
6182else
6183  $as_echo "$as_me: program exited with status $ac_status" >&5
6184$as_echo "$as_me: failed program was:" >&5
6185sed 's/^/| /' conftest.$ac_ext >&5
6186
6187( exit $ac_status )
6188ac_cv_header_stdc=no
6189fi
6190rm -rf conftest.dSYM
6191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6192fi
6193
6194
6195fi
6196fi
6197{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6198$as_echo "$ac_cv_header_stdc" >&6; }
6199if test $ac_cv_header_stdc = yes; then
6200
6201cat >>confdefs.h <<\_ACEOF
6202#define STDC_HEADERS 1
6203_ACEOF
6204
6205fi
6206
6207# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6218		  inttypes.h stdint.h unistd.h
6219do
6220as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6222$as_echo_n "checking for $ac_header... " >&6; }
6223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6224  $as_echo_n "(cached) " >&6
6225else
6226  cat >conftest.$ac_ext <<_ACEOF
6227/* confdefs.h.  */
6228_ACEOF
6229cat confdefs.h >>conftest.$ac_ext
6230cat >>conftest.$ac_ext <<_ACEOF
6231/* end confdefs.h.  */
6232$ac_includes_default
6233
6234#include <$ac_header>
6235_ACEOF
6236rm -f conftest.$ac_objext
6237if { (ac_try="$ac_compile"
6238case "(($ac_try" in
6239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240  *) ac_try_echo=$ac_try;;
6241esac
6242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6243$as_echo "$ac_try_echo") >&5
6244  (eval "$ac_compile") 2>conftest.er1
6245  ac_status=$?
6246  grep -v '^ *+' conftest.er1 >conftest.err
6247  rm -f conftest.er1
6248  cat conftest.err >&5
6249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); } && {
6251	 test -z "$ac_c_werror_flag" ||
6252	 test ! -s conftest.err
6253       } && test -s conftest.$ac_objext; then
6254  eval "$as_ac_Header=yes"
6255else
6256  $as_echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
6259	eval "$as_ac_Header=no"
6260fi
6261
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263fi
6264ac_res=`eval 'as_val=${'$as_ac_Header'}
6265		 $as_echo "$as_val"'`
6266	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6267$as_echo "$ac_res" >&6; }
6268if test `eval 'as_val=${'$as_ac_Header'}
6269		 $as_echo "$as_val"'` = yes; then
6270  cat >>confdefs.h <<_ACEOF
6271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6272_ACEOF
6273
6274fi
6275
6276done
6277
6278
6279
6280for ac_header in dlfcn.h
6281do
6282as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6283{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6284$as_echo_n "checking for $ac_header... " >&6; }
6285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286  $as_echo_n "(cached) " >&6
6287else
6288  cat >conftest.$ac_ext <<_ACEOF
6289/* confdefs.h.  */
6290_ACEOF
6291cat confdefs.h >>conftest.$ac_ext
6292cat >>conftest.$ac_ext <<_ACEOF
6293/* end confdefs.h.  */
6294$ac_includes_default
6295
6296#include <$ac_header>
6297_ACEOF
6298rm -f conftest.$ac_objext
6299if { (ac_try="$ac_compile"
6300case "(($ac_try" in
6301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302  *) ac_try_echo=$ac_try;;
6303esac
6304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6305$as_echo "$ac_try_echo") >&5
6306  (eval "$ac_compile") 2>conftest.er1
6307  ac_status=$?
6308  grep -v '^ *+' conftest.er1 >conftest.err
6309  rm -f conftest.er1
6310  cat conftest.err >&5
6311  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312  (exit $ac_status); } && {
6313	 test -z "$ac_c_werror_flag" ||
6314	 test ! -s conftest.err
6315       } && test -s conftest.$ac_objext; then
6316  eval "$as_ac_Header=yes"
6317else
6318  $as_echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321	eval "$as_ac_Header=no"
6322fi
6323
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325fi
6326ac_res=`eval 'as_val=${'$as_ac_Header'}
6327		 $as_echo "$as_val"'`
6328	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6329$as_echo "$ac_res" >&6; }
6330if test `eval 'as_val=${'$as_ac_Header'}
6331		 $as_echo "$as_val"'` = yes; then
6332  cat >>confdefs.h <<_ACEOF
6333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6334_ACEOF
6335
6336fi
6337
6338done
6339
6340
6341
6342# Set options
6343
6344
6345
6346        enable_dlopen=no
6347
6348
6349  enable_win32_dll=no
6350
6351
6352            # Check whether --enable-shared was given.
6353if test "${enable_shared+set}" = set; then
6354  enableval=$enable_shared; p=${PACKAGE-default}
6355    case $enableval in
6356    yes) enable_shared=yes ;;
6357    no) enable_shared=no ;;
6358    *)
6359      enable_shared=no
6360      # Look at the argument we got.  We use all the common list separators.
6361      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6362      for pkg in $enableval; do
6363	IFS="$lt_save_ifs"
6364	if test "X$pkg" = "X$p"; then
6365	  enable_shared=yes
6366	fi
6367      done
6368      IFS="$lt_save_ifs"
6369      ;;
6370    esac
6371else
6372  enable_shared=yes
6373fi
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383  # Check whether --enable-static was given.
6384if test "${enable_static+set}" = set; then
6385  enableval=$enable_static; p=${PACKAGE-default}
6386    case $enableval in
6387    yes) enable_static=yes ;;
6388    no) enable_static=no ;;
6389    *)
6390     enable_static=no
6391      # Look at the argument we got.  We use all the common list separators.
6392      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6393      for pkg in $enableval; do
6394	IFS="$lt_save_ifs"
6395	if test "X$pkg" = "X$p"; then
6396	  enable_static=yes
6397	fi
6398      done
6399      IFS="$lt_save_ifs"
6400      ;;
6401    esac
6402else
6403  enable_static=yes
6404fi
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415# Check whether --with-pic was given.
6416if test "${with_pic+set}" = set; then
6417  withval=$with_pic; pic_mode="$withval"
6418else
6419  pic_mode=default
6420fi
6421
6422
6423test -z "$pic_mode" && pic_mode=default
6424
6425
6426
6427
6428
6429
6430
6431  # Check whether --enable-fast-install was given.
6432if test "${enable_fast_install+set}" = set; then
6433  enableval=$enable_fast_install; p=${PACKAGE-default}
6434    case $enableval in
6435    yes) enable_fast_install=yes ;;
6436    no) enable_fast_install=no ;;
6437    *)
6438      enable_fast_install=no
6439      # Look at the argument we got.  We use all the common list separators.
6440      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6441      for pkg in $enableval; do
6442	IFS="$lt_save_ifs"
6443	if test "X$pkg" = "X$p"; then
6444	  enable_fast_install=yes
6445	fi
6446      done
6447      IFS="$lt_save_ifs"
6448      ;;
6449    esac
6450else
6451  enable_fast_install=yes
6452fi
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464# This can be used to rebuild libtool when needed
6465LIBTOOL_DEPS="$ltmain"
6466
6467# Always use our own libtool.
6468LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494test -z "$LN_S" && LN_S="ln -s"
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509if test -n "${ZSH_VERSION+set}" ; then
6510   setopt NO_GLOB_SUBST
6511fi
6512
6513{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6514$as_echo_n "checking for objdir... " >&6; }
6515if test "${lt_cv_objdir+set}" = set; then
6516  $as_echo_n "(cached) " >&6
6517else
6518  rm -f .libs 2>/dev/null
6519mkdir .libs 2>/dev/null
6520if test -d .libs; then
6521  lt_cv_objdir=.libs
6522else
6523  # MS-DOS does not allow filenames that begin with a dot.
6524  lt_cv_objdir=_libs
6525fi
6526rmdir .libs 2>/dev/null
6527fi
6528{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6529$as_echo "$lt_cv_objdir" >&6; }
6530objdir=$lt_cv_objdir
6531
6532
6533
6534
6535
6536cat >>confdefs.h <<_ACEOF
6537#define LT_OBJDIR "$lt_cv_objdir/"
6538_ACEOF
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556case $host_os in
6557aix3*)
6558  # AIX sometimes has problems with the GCC collect2 program.  For some
6559  # reason, if we set the COLLECT_NAMES environment variable, the problems
6560  # vanish in a puff of smoke.
6561  if test "X${COLLECT_NAMES+set}" != Xset; then
6562    COLLECT_NAMES=
6563    export COLLECT_NAMES
6564  fi
6565  ;;
6566esac
6567
6568# Sed substitution that helps us do robust quoting.  It backslashifies
6569# metacharacters that are still active within double-quoted strings.
6570sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6571
6572# Same as above, but do not quote variable references.
6573double_quote_subst='s/\(["`\\]\)/\\\1/g'
6574
6575# Sed substitution to delay expansion of an escaped shell variable in a
6576# double_quote_subst'ed string.
6577delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6578
6579# Sed substitution to delay expansion of an escaped single quote.
6580delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6581
6582# Sed substitution to avoid accidental globbing in evaled expressions
6583no_glob_subst='s/\*/\\\*/g'
6584
6585# Global variables:
6586ofile=libtool
6587can_build_shared=yes
6588
6589# All known linkers require a `.a' archive for static linking (except MSVC,
6590# which needs '.lib').
6591libext=a
6592
6593with_gnu_ld="$lt_cv_prog_gnu_ld"
6594
6595old_CC="$CC"
6596old_CFLAGS="$CFLAGS"
6597
6598# Set sane defaults for various variables
6599test -z "$CC" && CC=cc
6600test -z "$LTCC" && LTCC=$CC
6601test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6602test -z "$LD" && LD=ld
6603test -z "$ac_objext" && ac_objext=o
6604
6605for cc_temp in $compiler""; do
6606  case $cc_temp in
6607    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6608    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6609    \-*) ;;
6610    *) break;;
6611  esac
6612done
6613cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6614
6615
6616# Only perform the check for file, if the check method requires it
6617test -z "$MAGIC_CMD" && MAGIC_CMD=file
6618case $deplibs_check_method in
6619file_magic*)
6620  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6621    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6622$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6623if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6624  $as_echo_n "(cached) " >&6
6625else
6626  case $MAGIC_CMD in
6627[\\/*] |  ?:[\\/]*)
6628  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6629  ;;
6630*)
6631  lt_save_MAGIC_CMD="$MAGIC_CMD"
6632  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6633  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6634  for ac_dir in $ac_dummy; do
6635    IFS="$lt_save_ifs"
6636    test -z "$ac_dir" && ac_dir=.
6637    if test -f $ac_dir/${ac_tool_prefix}file; then
6638      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6639      if test -n "$file_magic_test_file"; then
6640	case $deplibs_check_method in
6641	"file_magic "*)
6642	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6643	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6644	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6645	    $EGREP "$file_magic_regex" > /dev/null; then
6646	    :
6647	  else
6648	    cat <<_LT_EOF 1>&2
6649
6650*** Warning: the command libtool uses to detect shared libraries,
6651*** $file_magic_cmd, produces output that libtool cannot recognize.
6652*** The result is that libtool may fail to recognize shared libraries
6653*** as such.  This will affect the creation of libtool libraries that
6654*** depend on shared libraries, but programs linked with such libtool
6655*** libraries will work regardless of this problem.  Nevertheless, you
6656*** may want to report the problem to your system manager and/or to
6657*** [email protected]
6658
6659_LT_EOF
6660	  fi ;;
6661	esac
6662      fi
6663      break
6664    fi
6665  done
6666  IFS="$lt_save_ifs"
6667  MAGIC_CMD="$lt_save_MAGIC_CMD"
6668  ;;
6669esac
6670fi
6671
6672MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6673if test -n "$MAGIC_CMD"; then
6674  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6675$as_echo "$MAGIC_CMD" >&6; }
6676else
6677  { $as_echo "$as_me:$LINENO: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681
6682
6683
6684
6685if test -z "$lt_cv_path_MAGIC_CMD"; then
6686  if test -n "$ac_tool_prefix"; then
6687    { $as_echo "$as_me:$LINENO: checking for file" >&5
6688$as_echo_n "checking for file... " >&6; }
6689if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6690  $as_echo_n "(cached) " >&6
6691else
6692  case $MAGIC_CMD in
6693[\\/*] |  ?:[\\/]*)
6694  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6695  ;;
6696*)
6697  lt_save_MAGIC_CMD="$MAGIC_CMD"
6698  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6699  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6700  for ac_dir in $ac_dummy; do
6701    IFS="$lt_save_ifs"
6702    test -z "$ac_dir" && ac_dir=.
6703    if test -f $ac_dir/file; then
6704      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6705      if test -n "$file_magic_test_file"; then
6706	case $deplibs_check_method in
6707	"file_magic "*)
6708	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6709	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6710	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6711	    $EGREP "$file_magic_regex" > /dev/null; then
6712	    :
6713	  else
6714	    cat <<_LT_EOF 1>&2
6715
6716*** Warning: the command libtool uses to detect shared libraries,
6717*** $file_magic_cmd, produces output that libtool cannot recognize.
6718*** The result is that libtool may fail to recognize shared libraries
6719*** as such.  This will affect the creation of libtool libraries that
6720*** depend on shared libraries, but programs linked with such libtool
6721*** libraries will work regardless of this problem.  Nevertheless, you
6722*** may want to report the problem to your system manager and/or to
6723*** [email protected]
6724
6725_LT_EOF
6726	  fi ;;
6727	esac
6728      fi
6729      break
6730    fi
6731  done
6732  IFS="$lt_save_ifs"
6733  MAGIC_CMD="$lt_save_MAGIC_CMD"
6734  ;;
6735esac
6736fi
6737
6738MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6739if test -n "$MAGIC_CMD"; then
6740  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6741$as_echo "$MAGIC_CMD" >&6; }
6742else
6743  { $as_echo "$as_me:$LINENO: result: no" >&5
6744$as_echo "no" >&6; }
6745fi
6746
6747
6748  else
6749    MAGIC_CMD=:
6750  fi
6751fi
6752
6753  fi
6754  ;;
6755esac
6756
6757# Use C for the default configuration in the libtool script
6758
6759lt_save_CC="$CC"
6760ac_ext=c
6761ac_cpp='$CPP $CPPFLAGS'
6762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765
6766
6767# Source file extension for C test sources.
6768ac_ext=c
6769
6770# Object file extension for compiled C test sources.
6771objext=o
6772objext=$objext
6773
6774# Code to be used in simple compile tests
6775lt_simple_compile_test_code="int some_variable = 0;"
6776
6777# Code to be used in simple link tests
6778lt_simple_link_test_code='int main(){return(0);}'
6779
6780
6781
6782
6783
6784
6785
6786# If no C compiler was specified, use CC.
6787LTCC=${LTCC-"$CC"}
6788
6789# If no C compiler flags were specified, use CFLAGS.
6790LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6791
6792# Allow CC to be a program name with arguments.
6793compiler=$CC
6794
6795# Save the default compiler, since it gets overwritten when the other
6796# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6797compiler_DEFAULT=$CC
6798
6799# save warnings/boilerplate of simple test code
6800ac_outfile=conftest.$ac_objext
6801echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6802eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6803_lt_compiler_boilerplate=`cat conftest.err`
6804$RM conftest*
6805
6806ac_outfile=conftest.$ac_objext
6807echo "$lt_simple_link_test_code" >conftest.$ac_ext
6808eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6809_lt_linker_boilerplate=`cat conftest.err`
6810$RM -r conftest*
6811
6812
6813if test -n "$compiler"; then
6814
6815lt_prog_compiler_no_builtin_flag=
6816
6817if test "$GCC" = yes; then
6818  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6819
6820  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6821$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6822if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6823  $as_echo_n "(cached) " >&6
6824else
6825  lt_cv_prog_compiler_rtti_exceptions=no
6826   ac_outfile=conftest.$ac_objext
6827   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6828   lt_compiler_flag="-fno-rtti -fno-exceptions"
6829   # Insert the option either (1) after the last *FLAGS variable, or
6830   # (2) before a word containing "conftest.", or (3) at the end.
6831   # Note that $ac_compile itself does not contain backslashes and begins
6832   # with a dollar sign (not a hyphen), so the echo should work correctly.
6833   # The option is referenced via a variable to avoid confusing sed.
6834   lt_compile=`echo "$ac_compile" | $SED \
6835   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6836   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6837   -e 's:$: $lt_compiler_flag:'`
6838   (eval echo "\"\$as_me:6838: $lt_compile\"" >&5)
6839   (eval "$lt_compile" 2>conftest.err)
6840   ac_status=$?
6841   cat conftest.err >&5
6842   echo "$as_me:6842: \$? = $ac_status" >&5
6843   if (exit $ac_status) && test -s "$ac_outfile"; then
6844     # The compiler can only warn and ignore the option if not recognized
6845     # So say no if there are warnings other than the usual output.
6846     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6847     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6848     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6849       lt_cv_prog_compiler_rtti_exceptions=yes
6850     fi
6851   fi
6852   $RM conftest*
6853
6854fi
6855{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6856$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6857
6858if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6859    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6860else
6861    :
6862fi
6863
6864fi
6865
6866
6867
6868
6869
6870
6871  lt_prog_compiler_wl=
6872lt_prog_compiler_pic=
6873lt_prog_compiler_static=
6874
6875{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6876$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6877
6878  if test "$GCC" = yes; then
6879    lt_prog_compiler_wl='-Wl,'
6880    lt_prog_compiler_static='-static'
6881
6882    case $host_os in
6883      aix*)
6884      # All AIX code is PIC.
6885      if test "$host_cpu" = ia64; then
6886	# AIX 5 now supports IA64 processor
6887	lt_prog_compiler_static='-Bstatic'
6888      fi
6889      ;;
6890
6891    amigaos*)
6892      case $host_cpu in
6893      powerpc)
6894            # see comment about AmigaOS4 .so support
6895            lt_prog_compiler_pic='-fPIC'
6896        ;;
6897      m68k)
6898            # FIXME: we need at least 68020 code to build shared libraries, but
6899            # adding the `-m68020' flag to GCC prevents building anything better,
6900            # like `-m68040'.
6901            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6902        ;;
6903      esac
6904      ;;
6905
6906    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6907      # PIC is the default for these OSes.
6908      ;;
6909
6910    mingw* | cygwin* | pw32* | os2* | cegcc*)
6911      # This hack is so that the source file can tell whether it is being
6912      # built for inclusion in a dll (and should export symbols for example).
6913      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6914      # (--disable-auto-import) libraries
6915      lt_prog_compiler_pic='-DDLL_EXPORT'
6916      ;;
6917
6918    darwin* | rhapsody*)
6919      # PIC is the default on this platform
6920      # Common symbols not allowed in MH_DYLIB files
6921      lt_prog_compiler_pic='-fno-common'
6922      ;;
6923
6924    hpux*)
6925      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6926      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6927      # sets the default TLS model and affects inlining.
6928      case $host_cpu in
6929      hppa*64*)
6930	# +Z the default
6931	;;
6932      *)
6933	lt_prog_compiler_pic='-fPIC'
6934	;;
6935      esac
6936      ;;
6937
6938    interix[3-9]*)
6939      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6940      # Instead, we relocate shared libraries at runtime.
6941      ;;
6942
6943    msdosdjgpp*)
6944      # Just because we use GCC doesn't mean we suddenly get shared libraries
6945      # on systems that don't support them.
6946      lt_prog_compiler_can_build_shared=no
6947      enable_shared=no
6948      ;;
6949
6950    *nto* | *qnx*)
6951      # QNX uses GNU C++, but need to define -shared option too, otherwise
6952      # it will coredump.
6953      lt_prog_compiler_pic='-fPIC -shared'
6954      ;;
6955
6956    sysv4*MP*)
6957      if test -d /usr/nec; then
6958	lt_prog_compiler_pic=-Kconform_pic
6959      fi
6960      ;;
6961
6962    *)
6963      lt_prog_compiler_pic='-fPIC'
6964      ;;
6965    esac
6966  else
6967    # PORTME Check for flag to pass linker flags through the system compiler.
6968    case $host_os in
6969    aix*)
6970      lt_prog_compiler_wl='-Wl,'
6971      if test "$host_cpu" = ia64; then
6972	# AIX 5 now supports IA64 processor
6973	lt_prog_compiler_static='-Bstatic'
6974      else
6975	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6976      fi
6977      ;;
6978
6979    mingw* | cygwin* | pw32* | os2* | cegcc*)
6980      # This hack is so that the source file can tell whether it is being
6981      # built for inclusion in a dll (and should export symbols for example).
6982      lt_prog_compiler_pic='-DDLL_EXPORT'
6983      ;;
6984
6985    hpux9* | hpux10* | hpux11*)
6986      lt_prog_compiler_wl='-Wl,'
6987      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6988      # not for PA HP-UX.
6989      case $host_cpu in
6990      hppa*64*|ia64*)
6991	# +Z the default
6992	;;
6993      *)
6994	lt_prog_compiler_pic='+Z'
6995	;;
6996      esac
6997      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6998      lt_prog_compiler_static='${wl}-a ${wl}archive'
6999      ;;
7000
7001    irix5* | irix6* | nonstopux*)
7002      lt_prog_compiler_wl='-Wl,'
7003      # PIC (with -KPIC) is the default.
7004      lt_prog_compiler_static='-non_shared'
7005      ;;
7006
7007    linux* | k*bsd*-gnu)
7008      case $cc_basename in
7009      # old Intel for x86_64 which still supported -KPIC.
7010      ecc*)
7011	lt_prog_compiler_wl='-Wl,'
7012	lt_prog_compiler_pic='-KPIC'
7013	lt_prog_compiler_static='-static'
7014        ;;
7015      # icc used to be incompatible with GCC.
7016      # ICC 10 doesn't accept -KPIC any more.
7017      icc* | ifort*)
7018	lt_prog_compiler_wl='-Wl,'
7019	lt_prog_compiler_pic='-fPIC'
7020	lt_prog_compiler_static='-static'
7021        ;;
7022      # Lahey Fortran 8.1.
7023      lf95*)
7024	lt_prog_compiler_wl='-Wl,'
7025	lt_prog_compiler_pic='--shared'
7026	lt_prog_compiler_static='--static'
7027	;;
7028      pgcc* | pgf77* | pgf90* | pgf95*)
7029        # Portland Group compilers (*not* the Pentium gcc compiler,
7030	# which looks to be a dead project)
7031	lt_prog_compiler_wl='-Wl,'
7032	lt_prog_compiler_pic='-fpic'
7033	lt_prog_compiler_static='-Bstatic'
7034        ;;
7035      ccc*)
7036        lt_prog_compiler_wl='-Wl,'
7037        # All Alpha code is PIC.
7038        lt_prog_compiler_static='-non_shared'
7039        ;;
7040      xl*)
7041	# IBM XL C 8.0/Fortran 10.1 on PPC
7042	lt_prog_compiler_wl='-Wl,'
7043	lt_prog_compiler_pic='-qpic'
7044	lt_prog_compiler_static='-qstaticlink'
7045	;;
7046      *)
7047	case `$CC -V 2>&1 | sed 5q` in
7048	*Sun\ C*)
7049	  # Sun C 5.9
7050	  lt_prog_compiler_pic='-KPIC'
7051	  lt_prog_compiler_static='-Bstatic'
7052	  lt_prog_compiler_wl='-Wl,'
7053	  ;;
7054	*Sun\ F*)
7055	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7056	  lt_prog_compiler_pic='-KPIC'
7057	  lt_prog_compiler_static='-Bstatic'
7058	  lt_prog_compiler_wl=''
7059	  ;;
7060	esac
7061	;;
7062      esac
7063      ;;
7064
7065    newsos6)
7066      lt_prog_compiler_pic='-KPIC'
7067      lt_prog_compiler_static='-Bstatic'
7068      ;;
7069
7070    *nto* | *qnx*)
7071      # QNX uses GNU C++, but need to define -shared option too, otherwise
7072      # it will coredump.
7073      lt_prog_compiler_pic='-fPIC -shared'
7074      ;;
7075
7076    osf3* | osf4* | osf5*)
7077      lt_prog_compiler_wl='-Wl,'
7078      # All OSF/1 code is PIC.
7079      lt_prog_compiler_static='-non_shared'
7080      ;;
7081
7082    rdos*)
7083      lt_prog_compiler_static='-non_shared'
7084      ;;
7085
7086    solaris*)
7087      lt_prog_compiler_pic='-KPIC'
7088      lt_prog_compiler_static='-Bstatic'
7089      case $cc_basename in
7090      f77* | f90* | f95*)
7091	lt_prog_compiler_wl='-Qoption ld ';;
7092      *)
7093	lt_prog_compiler_wl='-Wl,';;
7094      esac
7095      ;;
7096
7097    sunos4*)
7098      lt_prog_compiler_wl='-Qoption ld '
7099      lt_prog_compiler_pic='-PIC'
7100      lt_prog_compiler_static='-Bstatic'
7101      ;;
7102
7103    sysv4 | sysv4.2uw2* | sysv4.3*)
7104      lt_prog_compiler_wl='-Wl,'
7105      lt_prog_compiler_pic='-KPIC'
7106      lt_prog_compiler_static='-Bstatic'
7107      ;;
7108
7109    sysv4*MP*)
7110      if test -d /usr/nec ;then
7111	lt_prog_compiler_pic='-Kconform_pic'
7112	lt_prog_compiler_static='-Bstatic'
7113      fi
7114      ;;
7115
7116    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7117      lt_prog_compiler_wl='-Wl,'
7118      lt_prog_compiler_pic='-KPIC'
7119      lt_prog_compiler_static='-Bstatic'
7120      ;;
7121
7122    unicos*)
7123      lt_prog_compiler_wl='-Wl,'
7124      lt_prog_compiler_can_build_shared=no
7125      ;;
7126
7127    uts4*)
7128      lt_prog_compiler_pic='-pic'
7129      lt_prog_compiler_static='-Bstatic'
7130      ;;
7131
7132    *)
7133      lt_prog_compiler_can_build_shared=no
7134      ;;
7135    esac
7136  fi
7137
7138case $host_os in
7139  # For platforms which do not support PIC, -DPIC is meaningless:
7140  *djgpp*)
7141    lt_prog_compiler_pic=
7142    ;;
7143  *)
7144    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7145    ;;
7146esac
7147{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7148$as_echo "$lt_prog_compiler_pic" >&6; }
7149
7150
7151
7152
7153
7154
7155#
7156# Check to make sure the PIC flag actually works.
7157#
7158if test -n "$lt_prog_compiler_pic"; then
7159  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7160$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7161if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7162  $as_echo_n "(cached) " >&6
7163else
7164  lt_cv_prog_compiler_pic_works=no
7165   ac_outfile=conftest.$ac_objext
7166   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7167   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7168   # Insert the option either (1) after the last *FLAGS variable, or
7169   # (2) before a word containing "conftest.", or (3) at the end.
7170   # Note that $ac_compile itself does not contain backslashes and begins
7171   # with a dollar sign (not a hyphen), so the echo should work correctly.
7172   # The option is referenced via a variable to avoid confusing sed.
7173   lt_compile=`echo "$ac_compile" | $SED \
7174   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7175   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7176   -e 's:$: $lt_compiler_flag:'`
7177   (eval echo "\"\$as_me:7177: $lt_compile\"" >&5)
7178   (eval "$lt_compile" 2>conftest.err)
7179   ac_status=$?
7180   cat conftest.err >&5
7181   echo "$as_me:7181: \$? = $ac_status" >&5
7182   if (exit $ac_status) && test -s "$ac_outfile"; then
7183     # The compiler can only warn and ignore the option if not recognized
7184     # So say no if there are warnings other than the usual output.
7185     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7186     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7187     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7188       lt_cv_prog_compiler_pic_works=yes
7189     fi
7190   fi
7191   $RM conftest*
7192
7193fi
7194{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7195$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7196
7197if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7198    case $lt_prog_compiler_pic in
7199     "" | " "*) ;;
7200     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7201     esac
7202else
7203    lt_prog_compiler_pic=
7204     lt_prog_compiler_can_build_shared=no
7205fi
7206
7207fi
7208
7209
7210
7211
7212
7213
7214#
7215# Check to make sure the static flag actually works.
7216#
7217wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7218{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7219$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7220if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7221  $as_echo_n "(cached) " >&6
7222else
7223  lt_cv_prog_compiler_static_works=no
7224   save_LDFLAGS="$LDFLAGS"
7225   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7226   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7227   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7228     # The linker can only warn and ignore the option if not recognized
7229     # So say no if there are warnings
7230     if test -s conftest.err; then
7231       # Append any errors to the config.log.
7232       cat conftest.err 1>&5
7233       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7234       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7235       if diff conftest.exp conftest.er2 >/dev/null; then
7236         lt_cv_prog_compiler_static_works=yes
7237       fi
7238     else
7239       lt_cv_prog_compiler_static_works=yes
7240     fi
7241   fi
7242   $RM -r conftest*
7243   LDFLAGS="$save_LDFLAGS"
7244
7245fi
7246{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7247$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7248
7249if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7250    :
7251else
7252    lt_prog_compiler_static=
7253fi
7254
7255
7256
7257
7258
7259
7260
7261  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7262$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7263if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7264  $as_echo_n "(cached) " >&6
7265else
7266  lt_cv_prog_compiler_c_o=no
7267   $RM -r conftest 2>/dev/null
7268   mkdir conftest
7269   cd conftest
7270   mkdir out
7271   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7272
7273   lt_compiler_flag="-o out/conftest2.$ac_objext"
7274   # Insert the option either (1) after the last *FLAGS variable, or
7275   # (2) before a word containing "conftest.", or (3) at the end.
7276   # Note that $ac_compile itself does not contain backslashes and begins
7277   # with a dollar sign (not a hyphen), so the echo should work correctly.
7278   lt_compile=`echo "$ac_compile" | $SED \
7279   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7280   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7281   -e 's:$: $lt_compiler_flag:'`
7282   (eval echo "\"\$as_me:7282: $lt_compile\"" >&5)
7283   (eval "$lt_compile" 2>out/conftest.err)
7284   ac_status=$?
7285   cat out/conftest.err >&5
7286   echo "$as_me:7286: \$? = $ac_status" >&5
7287   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7288   then
7289     # The compiler can only warn and ignore the option if not recognized
7290     # So say no if there are warnings
7291     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7292     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7293     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7294       lt_cv_prog_compiler_c_o=yes
7295     fi
7296   fi
7297   chmod u+w . 2>&5
7298   $RM conftest*
7299   # SGI C++ compiler will create directory out/ii_files/ for
7300   # template instantiation
7301   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7302   $RM out/* && rmdir out
7303   cd ..
7304   $RM -r conftest
7305   $RM conftest*
7306
7307fi
7308{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7309$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7310
7311
7312
7313
7314
7315
7316  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7317$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7318if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7319  $as_echo_n "(cached) " >&6
7320else
7321  lt_cv_prog_compiler_c_o=no
7322   $RM -r conftest 2>/dev/null
7323   mkdir conftest
7324   cd conftest
7325   mkdir out
7326   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7327
7328   lt_compiler_flag="-o out/conftest2.$ac_objext"
7329   # Insert the option either (1) after the last *FLAGS variable, or
7330   # (2) before a word containing "conftest.", or (3) at the end.
7331   # Note that $ac_compile itself does not contain backslashes and begins
7332   # with a dollar sign (not a hyphen), so the echo should work correctly.
7333   lt_compile=`echo "$ac_compile" | $SED \
7334   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7335   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7336   -e 's:$: $lt_compiler_flag:'`
7337   (eval echo "\"\$as_me:7337: $lt_compile\"" >&5)
7338   (eval "$lt_compile" 2>out/conftest.err)
7339   ac_status=$?
7340   cat out/conftest.err >&5
7341   echo "$as_me:7341: \$? = $ac_status" >&5
7342   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7343   then
7344     # The compiler can only warn and ignore the option if not recognized
7345     # So say no if there are warnings
7346     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7347     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7348     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7349       lt_cv_prog_compiler_c_o=yes
7350     fi
7351   fi
7352   chmod u+w . 2>&5
7353   $RM conftest*
7354   # SGI C++ compiler will create directory out/ii_files/ for
7355   # template instantiation
7356   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7357   $RM out/* && rmdir out
7358   cd ..
7359   $RM -r conftest
7360   $RM conftest*
7361
7362fi
7363{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7364$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7365
7366
7367
7368
7369hard_links="nottested"
7370if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7371  # do not overwrite the value of need_locks provided by the user
7372  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7373$as_echo_n "checking if we can lock with hard links... " >&6; }
7374  hard_links=yes
7375  $RM conftest*
7376  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7377  touch conftest.a
7378  ln conftest.a conftest.b 2>&5 || hard_links=no
7379  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7380  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7381$as_echo "$hard_links" >&6; }
7382  if test "$hard_links" = no; then
7383    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7384$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7385    need_locks=warn
7386  fi
7387else
7388  need_locks=no
7389fi
7390
7391
7392
7393
7394
7395
7396  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7397$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7398
7399  runpath_var=
7400  allow_undefined_flag=
7401  always_export_symbols=no
7402  archive_cmds=
7403  archive_expsym_cmds=
7404  compiler_needs_object=no
7405  enable_shared_with_static_runtimes=no
7406  export_dynamic_flag_spec=
7407  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7408  hardcode_automatic=no
7409  hardcode_direct=no
7410  hardcode_direct_absolute=no
7411  hardcode_libdir_flag_spec=
7412  hardcode_libdir_flag_spec_ld=
7413  hardcode_libdir_separator=
7414  hardcode_minus_L=no
7415  hardcode_shlibpath_var=unsupported
7416  inherit_rpath=no
7417  link_all_deplibs=unknown
7418  module_cmds=
7419  module_expsym_cmds=
7420  old_archive_from_new_cmds=
7421  old_archive_from_expsyms_cmds=
7422  thread_safe_flag_spec=
7423  whole_archive_flag_spec=
7424  # include_expsyms should be a list of space-separated symbols to be *always*
7425  # included in the symbol list
7426  include_expsyms=
7427  # exclude_expsyms can be an extended regexp of symbols to exclude
7428  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7429  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7430  # as well as any symbol that contains `d'.
7431  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7432  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7433  # platforms (ab)use it in PIC code, but their linkers get confused if
7434  # the symbol is explicitly referenced.  Since portable code cannot
7435  # rely on this symbol name, it's probably fine to never include it in
7436  # preloaded symbol tables.
7437  # Exclude shared library initialization/finalization symbols.
7438  extract_expsyms_cmds=
7439
7440  case $host_os in
7441  cygwin* | mingw* | pw32* | cegcc*)
7442    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7443    # When not using gcc, we currently assume that we are using
7444    # Microsoft Visual C++.
7445    if test "$GCC" != yes; then
7446      with_gnu_ld=no
7447    fi
7448    ;;
7449  interix*)
7450    # we just hope/assume this is gcc and not c89 (= MSVC++)
7451    with_gnu_ld=yes
7452    ;;
7453  openbsd*)
7454    with_gnu_ld=no
7455    ;;
7456  esac
7457
7458  ld_shlibs=yes
7459  if test "$with_gnu_ld" = yes; then
7460    # If archive_cmds runs LD, not CC, wlarc should be empty
7461    wlarc='${wl}'
7462
7463    # Set some defaults for GNU ld with shared library support. These
7464    # are reset later if shared libraries are not supported. Putting them
7465    # here allows them to be overridden if necessary.
7466    runpath_var=LD_RUN_PATH
7467    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7468    export_dynamic_flag_spec='${wl}--export-dynamic'
7469    # ancient GNU ld didn't support --whole-archive et. al.
7470    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7471      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7472    else
7473      whole_archive_flag_spec=
7474    fi
7475    supports_anon_versioning=no
7476    case `$LD -v 2>&1` in
7477      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7478      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7479      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7480      *\ 2.11.*) ;; # other 2.11 versions
7481      *) supports_anon_versioning=yes ;;
7482    esac
7483
7484    # See if GNU ld supports shared libraries.
7485    case $host_os in
7486    aix[3-9]*)
7487      # On AIX/PPC, the GNU linker is very broken
7488      if test "$host_cpu" != ia64; then
7489	ld_shlibs=no
7490	cat <<_LT_EOF 1>&2
7491
7492*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7493*** to be unable to reliably create shared libraries on AIX.
7494*** Therefore, libtool is disabling shared libraries support.  If you
7495*** really care for shared libraries, you may want to modify your PATH
7496*** so that a non-GNU linker is found, and then restart.
7497
7498_LT_EOF
7499      fi
7500      ;;
7501
7502    amigaos*)
7503      case $host_cpu in
7504      powerpc)
7505            # see comment about AmigaOS4 .so support
7506            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7507            archive_expsym_cmds=''
7508        ;;
7509      m68k)
7510            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)'
7511            hardcode_libdir_flag_spec='-L$libdir'
7512            hardcode_minus_L=yes
7513        ;;
7514      esac
7515      ;;
7516
7517    beos*)
7518      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7519	allow_undefined_flag=unsupported
7520	# Joseph Beckenbach <[email protected]> says some releases of gcc
7521	# support --undefined.  This deserves some investigation.  FIXME
7522	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7523      else
7524	ld_shlibs=no
7525      fi
7526      ;;
7527
7528    cygwin* | mingw* | pw32* | cegcc*)
7529      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7530      # as there is no search path for DLLs.
7531      hardcode_libdir_flag_spec='-L$libdir'
7532      allow_undefined_flag=unsupported
7533      always_export_symbols=no
7534      enable_shared_with_static_runtimes=yes
7535      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7536
7537      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7538        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7539	# If the export-symbols file already is a .def file (1st line
7540	# is EXPORTS), use it as is; otherwise, prepend...
7541	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7542	  cp $export_symbols $output_objdir/$soname.def;
7543	else
7544	  echo EXPORTS > $output_objdir/$soname.def;
7545	  cat $export_symbols >> $output_objdir/$soname.def;
7546	fi~
7547	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7548      else
7549	ld_shlibs=no
7550      fi
7551      ;;
7552
7553    interix[3-9]*)
7554      hardcode_direct=no
7555      hardcode_shlibpath_var=no
7556      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7557      export_dynamic_flag_spec='${wl}-E'
7558      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7559      # Instead, shared libraries are loaded at an image base (0x10000000 by
7560      # default) and relocated if they conflict, which is a slow very memory
7561      # consuming and fragmenting process.  To avoid this, we pick a random,
7562      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7563      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7564      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7565      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'
7566      ;;
7567
7568    gnu* | linux* | tpf* | k*bsd*-gnu)
7569      tmp_diet=no
7570      if test "$host_os" = linux-dietlibc; then
7571	case $cc_basename in
7572	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7573	esac
7574      fi
7575      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7576	 && test "$tmp_diet" = no
7577      then
7578	tmp_addflag=
7579	tmp_sharedflag='-shared'
7580	case $cc_basename,$host_cpu in
7581        pgcc*)				# Portland Group C compiler
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'
7584	  ;;
7585	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7586	  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'
7587	  tmp_addflag=' $pic_flag -Mnomain' ;;
7588	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7589	  tmp_addflag=' -i_dynamic' ;;
7590	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7591	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7592	ifc* | ifort*)			# Intel Fortran compiler
7593	  tmp_addflag=' -nofor_main' ;;
7594	lf95*)				# Lahey Fortran 8.1
7595	  whole_archive_flag_spec=
7596	  tmp_sharedflag='--shared' ;;
7597	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7598	  tmp_sharedflag='-qmkshrobj'
7599	  tmp_addflag= ;;
7600	esac
7601	case `$CC -V 2>&1 | sed 5q` in
7602	*Sun\ C*)			# Sun C 5.9
7603	  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'
7604	  compiler_needs_object=yes
7605	  tmp_sharedflag='-G' ;;
7606	*Sun\ F*)			# Sun Fortran 8.3
7607	  tmp_sharedflag='-G' ;;
7608	esac
7609	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7610
7611        if test "x$supports_anon_versioning" = xyes; then
7612          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7613	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7614	    echo "local: *; };" >> $output_objdir/$libname.ver~
7615	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7616        fi
7617
7618	case $cc_basename in
7619	xlf*)
7620	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7621	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7622	  hardcode_libdir_flag_spec=
7623	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7624	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7625	  if test "x$supports_anon_versioning" = xyes; then
7626	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7627	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7628	      echo "local: *; };" >> $output_objdir/$libname.ver~
7629	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7630	  fi
7631	  ;;
7632	esac
7633      else
7634        ld_shlibs=no
7635      fi
7636      ;;
7637
7638    netbsd*)
7639      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7640	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7641	wlarc=
7642      else
7643	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7644	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7645      fi
7646      ;;
7647
7648    solaris*)
7649      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7650	ld_shlibs=no
7651	cat <<_LT_EOF 1>&2
7652
7653*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7654*** create shared libraries on Solaris systems.  Therefore, libtool
7655*** is disabling shared libraries support.  We urge you to upgrade GNU
7656*** binutils to release 2.9.1 or newer.  Another option is to modify
7657*** your PATH or compiler configuration so that the native linker is
7658*** used, and then restart.
7659
7660_LT_EOF
7661      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7662	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664      else
7665	ld_shlibs=no
7666      fi
7667      ;;
7668
7669    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7670      case `$LD -v 2>&1` in
7671        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7672	ld_shlibs=no
7673	cat <<_LT_EOF 1>&2
7674
7675*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7676*** reliably create shared libraries on SCO systems.  Therefore, libtool
7677*** is disabling shared libraries support.  We urge you to upgrade GNU
7678*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7679*** your PATH or compiler configuration so that the native linker is
7680*** used, and then restart.
7681
7682_LT_EOF
7683	;;
7684	*)
7685	  # For security reasons, it is highly recommended that you always
7686	  # use absolute paths for naming shared libraries, and exclude the
7687	  # DT_RUNPATH tag from executables and libraries.  But doing so
7688	  # requires that you compile everything twice, which is a pain.
7689	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7690	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7692	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7693	  else
7694	    ld_shlibs=no
7695	  fi
7696	;;
7697      esac
7698      ;;
7699
7700    sunos4*)
7701      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7702      wlarc=
7703      hardcode_direct=yes
7704      hardcode_shlibpath_var=no
7705      ;;
7706
7707    *)
7708      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7709	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711      else
7712	ld_shlibs=no
7713      fi
7714      ;;
7715    esac
7716
7717    if test "$ld_shlibs" = no; then
7718      runpath_var=
7719      hardcode_libdir_flag_spec=
7720      export_dynamic_flag_spec=
7721      whole_archive_flag_spec=
7722    fi
7723  else
7724    # PORTME fill in a description of your system's linker (not GNU ld)
7725    case $host_os in
7726    aix3*)
7727      allow_undefined_flag=unsupported
7728      always_export_symbols=yes
7729      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'
7730      # Note: this linker hardcodes the directories in LIBPATH if there
7731      # are no directories specified by -L.
7732      hardcode_minus_L=yes
7733      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7734	# Neither direct hardcoding nor static linking is supported with a
7735	# broken collect2.
7736	hardcode_direct=unsupported
7737      fi
7738      ;;
7739
7740    aix[4-9]*)
7741      if test "$host_cpu" = ia64; then
7742	# On IA64, the linker does run time linking by default, so we don't
7743	# have to do anything special.
7744	aix_use_runtimelinking=no
7745	exp_sym_flag='-Bexport'
7746	no_entry_flag=""
7747      else
7748	# If we're using GNU nm, then we don't want the "-C" option.
7749	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7750	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7751	  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'
7752	else
7753	  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'
7754	fi
7755	aix_use_runtimelinking=no
7756
7757	# Test if we are trying to use run time linking or normal
7758	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7759	# need to do runtime linking.
7760	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7761	  for ld_flag in $LDFLAGS; do
7762	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7763	    aix_use_runtimelinking=yes
7764	    break
7765	  fi
7766	  done
7767	  ;;
7768	esac
7769
7770	exp_sym_flag='-bexport'
7771	no_entry_flag='-bnoentry'
7772      fi
7773
7774      # When large executables or shared objects are built, AIX ld can
7775      # have problems creating the table of contents.  If linking a library
7776      # or program results in "error TOC overflow" add -mminimal-toc to
7777      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7778      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7779
7780      archive_cmds=''
7781      hardcode_direct=yes
7782      hardcode_direct_absolute=yes
7783      hardcode_libdir_separator=':'
7784      link_all_deplibs=yes
7785      file_list_spec='${wl}-f,'
7786
7787      if test "$GCC" = yes; then
7788	case $host_os in aix4.[012]|aix4.[012].*)
7789	# We only want to do this on AIX 4.2 and lower, the check
7790	# below for broken collect2 doesn't work under 4.3+
7791	  collect2name=`${CC} -print-prog-name=collect2`
7792	  if test -f "$collect2name" &&
7793	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7794	  then
7795	  # We have reworked collect2
7796	  :
7797	  else
7798	  # We have old collect2
7799	  hardcode_direct=unsupported
7800	  # It fails to find uninstalled libraries when the uninstalled
7801	  # path is not listed in the libpath.  Setting hardcode_minus_L
7802	  # to unsupported forces relinking
7803	  hardcode_minus_L=yes
7804	  hardcode_libdir_flag_spec='-L$libdir'
7805	  hardcode_libdir_separator=
7806	  fi
7807	  ;;
7808	esac
7809	shared_flag='-shared'
7810	if test "$aix_use_runtimelinking" = yes; then
7811	  shared_flag="$shared_flag "'${wl}-G'
7812	fi
7813      else
7814	# not using gcc
7815	if test "$host_cpu" = ia64; then
7816	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7817	# chokes on -Wl,-G. The following line is correct:
7818	  shared_flag='-G'
7819	else
7820	  if test "$aix_use_runtimelinking" = yes; then
7821	    shared_flag='${wl}-G'
7822	  else
7823	    shared_flag='${wl}-bM:SRE'
7824	  fi
7825	fi
7826      fi
7827
7828      export_dynamic_flag_spec='${wl}-bexpall'
7829      # It seems that -bexpall does not export symbols beginning with
7830      # underscore (_), so it is better to generate a list of symbols to export.
7831      always_export_symbols=yes
7832      if test "$aix_use_runtimelinking" = yes; then
7833	# Warning - without using the other runtime loading flags (-brtl),
7834	# -berok will link without error, but may produce a broken library.
7835	allow_undefined_flag='-berok'
7836        # Determine the default libpath from the value encoded in an
7837        # empty executable.
7838        cat >conftest.$ac_ext <<_ACEOF
7839/* confdefs.h.  */
7840_ACEOF
7841cat confdefs.h >>conftest.$ac_ext
7842cat >>conftest.$ac_ext <<_ACEOF
7843/* end confdefs.h.  */
7844
7845int
7846main ()
7847{
7848
7849  ;
7850  return 0;
7851}
7852_ACEOF
7853rm -f conftest.$ac_objext conftest$ac_exeext
7854if { (ac_try="$ac_link"
7855case "(($ac_try" in
7856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857  *) ac_try_echo=$ac_try;;
7858esac
7859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7860$as_echo "$ac_try_echo") >&5
7861  (eval "$ac_link") 2>conftest.er1
7862  ac_status=$?
7863  grep -v '^ *+' conftest.er1 >conftest.err
7864  rm -f conftest.er1
7865  cat conftest.err >&5
7866  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867  (exit $ac_status); } && {
7868	 test -z "$ac_c_werror_flag" ||
7869	 test ! -s conftest.err
7870       } && test -s conftest$ac_exeext && {
7871	 test "$cross_compiling" = yes ||
7872	 $as_test_x conftest$ac_exeext
7873       }; then
7874
7875lt_aix_libpath_sed='
7876    /Import File Strings/,/^$/ {
7877	/^0/ {
7878	    s/^0  *\(.*\)$/\1/
7879	    p
7880	}
7881    }'
7882aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7883# Check for a 64-bit object if we didn't find anything.
7884if test -z "$aix_libpath"; then
7885  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7886fi
7887else
7888  $as_echo "$as_me: failed program was:" >&5
7889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891
7892fi
7893
7894rm -rf conftest.dSYM
7895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7896      conftest$ac_exeext conftest.$ac_ext
7897if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7898
7899        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7900        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"
7901      else
7902	if test "$host_cpu" = ia64; then
7903	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7904	  allow_undefined_flag="-z nodefs"
7905	  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"
7906	else
7907	 # Determine the default libpath from the value encoded in an
7908	 # empty executable.
7909	 cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h.  */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h.  */
7915
7916int
7917main ()
7918{
7919
7920  ;
7921  return 0;
7922}
7923_ACEOF
7924rm -f conftest.$ac_objext conftest$ac_exeext
7925if { (ac_try="$ac_link"
7926case "(($ac_try" in
7927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928  *) ac_try_echo=$ac_try;;
7929esac
7930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7931$as_echo "$ac_try_echo") >&5
7932  (eval "$ac_link") 2>conftest.er1
7933  ac_status=$?
7934  grep -v '^ *+' conftest.er1 >conftest.err
7935  rm -f conftest.er1
7936  cat conftest.err >&5
7937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938  (exit $ac_status); } && {
7939	 test -z "$ac_c_werror_flag" ||
7940	 test ! -s conftest.err
7941       } && test -s conftest$ac_exeext && {
7942	 test "$cross_compiling" = yes ||
7943	 $as_test_x conftest$ac_exeext
7944       }; then
7945
7946lt_aix_libpath_sed='
7947    /Import File Strings/,/^$/ {
7948	/^0/ {
7949	    s/^0  *\(.*\)$/\1/
7950	    p
7951	}
7952    }'
7953aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7954# Check for a 64-bit object if we didn't find anything.
7955if test -z "$aix_libpath"; then
7956  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7957fi
7958else
7959  $as_echo "$as_me: failed program was:" >&5
7960sed 's/^/| /' conftest.$ac_ext >&5
7961
7962
7963fi
7964
7965rm -rf conftest.dSYM
7966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7967      conftest$ac_exeext conftest.$ac_ext
7968if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7969
7970	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7971	  # Warning - without using the other run time loading flags,
7972	  # -berok will link without error, but may produce a broken library.
7973	  no_undefined_flag=' ${wl}-bernotok'
7974	  allow_undefined_flag=' ${wl}-berok'
7975	  # Exported symbols can be pulled into shared objects from archives
7976	  whole_archive_flag_spec='$convenience'
7977	  archive_cmds_need_lc=yes
7978	  # This is similar to how AIX traditionally builds its shared libraries.
7979	  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'
7980	fi
7981      fi
7982      ;;
7983
7984    amigaos*)
7985      case $host_cpu in
7986      powerpc)
7987            # see comment about AmigaOS4 .so support
7988            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7989            archive_expsym_cmds=''
7990        ;;
7991      m68k)
7992            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)'
7993            hardcode_libdir_flag_spec='-L$libdir'
7994            hardcode_minus_L=yes
7995        ;;
7996      esac
7997      ;;
7998
7999    bsdi[45]*)
8000      export_dynamic_flag_spec=-rdynamic
8001      ;;
8002
8003    cygwin* | mingw* | pw32* | cegcc*)
8004      # When not using gcc, we currently assume that we are using
8005      # Microsoft Visual C++.
8006      # hardcode_libdir_flag_spec is actually meaningless, as there is
8007      # no search path for DLLs.
8008      hardcode_libdir_flag_spec=' '
8009      allow_undefined_flag=unsupported
8010      # Tell ltmain to make .lib files, not .a files.
8011      libext=lib
8012      # Tell ltmain to make .dll files, not .so files.
8013      shrext_cmds=".dll"
8014      # FIXME: Setting linknames here is a bad hack.
8015      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8016      # The linker will automatically build a .lib file if we build a DLL.
8017      old_archive_from_new_cmds='true'
8018      # FIXME: Should let the user specify the lib program.
8019      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8020      fix_srcfile_path='`cygpath -w "$srcfile"`'
8021      enable_shared_with_static_runtimes=yes
8022      ;;
8023
8024    darwin* | rhapsody*)
8025
8026
8027  archive_cmds_need_lc=no
8028  hardcode_direct=no
8029  hardcode_automatic=yes
8030  hardcode_shlibpath_var=unsupported
8031  whole_archive_flag_spec=''
8032  link_all_deplibs=yes
8033  allow_undefined_flag="$_lt_dar_allow_undefined"
8034  case $cc_basename in
8035     ifort*) _lt_dar_can_shared=yes ;;
8036     *) _lt_dar_can_shared=$GCC ;;
8037  esac
8038  if test "$_lt_dar_can_shared" = "yes"; then
8039    output_verbose_link_cmd=echo
8040    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8041    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8042    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}"
8043    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}"
8044
8045  else
8046  ld_shlibs=no
8047  fi
8048
8049      ;;
8050
8051    dgux*)
8052      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8053      hardcode_libdir_flag_spec='-L$libdir'
8054      hardcode_shlibpath_var=no
8055      ;;
8056
8057    freebsd1*)
8058      ld_shlibs=no
8059      ;;
8060
8061    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8062    # support.  Future versions do this automatically, but an explicit c++rt0.o
8063    # does not break anything, and helps significantly (at the cost of a little
8064    # extra space).
8065    freebsd2.2*)
8066      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8067      hardcode_libdir_flag_spec='-R$libdir'
8068      hardcode_direct=yes
8069      hardcode_shlibpath_var=no
8070      ;;
8071
8072    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8073    freebsd2*)
8074      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8075      hardcode_direct=yes
8076      hardcode_minus_L=yes
8077      hardcode_shlibpath_var=no
8078      ;;
8079
8080    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8081    freebsd* | dragonfly*)
8082      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8083      hardcode_libdir_flag_spec='-R$libdir'
8084      hardcode_direct=yes
8085      hardcode_shlibpath_var=no
8086      ;;
8087
8088    hpux9*)
8089      if test "$GCC" = yes; then
8090	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'
8091      else
8092	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'
8093      fi
8094      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8095      hardcode_libdir_separator=:
8096      hardcode_direct=yes
8097
8098      # hardcode_minus_L: Not really in the search PATH,
8099      # but as the default location of the library.
8100      hardcode_minus_L=yes
8101      export_dynamic_flag_spec='${wl}-E'
8102      ;;
8103
8104    hpux10*)
8105      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8106	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8107      else
8108	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8109      fi
8110      if test "$with_gnu_ld" = no; then
8111	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8112	hardcode_libdir_flag_spec_ld='+b $libdir'
8113	hardcode_libdir_separator=:
8114	hardcode_direct=yes
8115	hardcode_direct_absolute=yes
8116	export_dynamic_flag_spec='${wl}-E'
8117	# hardcode_minus_L: Not really in the search PATH,
8118	# but as the default location of the library.
8119	hardcode_minus_L=yes
8120      fi
8121      ;;
8122
8123    hpux11*)
8124      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8125	case $host_cpu in
8126	hppa*64*)
8127	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8128	  ;;
8129	ia64*)
8130	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8131	  ;;
8132	*)
8133	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8134	  ;;
8135	esac
8136      else
8137	case $host_cpu in
8138	hppa*64*)
8139	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8140	  ;;
8141	ia64*)
8142	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8143	  ;;
8144	*)
8145	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8146	  ;;
8147	esac
8148      fi
8149      if test "$with_gnu_ld" = no; then
8150	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8151	hardcode_libdir_separator=:
8152
8153	case $host_cpu in
8154	hppa*64*|ia64*)
8155	  hardcode_direct=no
8156	  hardcode_shlibpath_var=no
8157	  ;;
8158	*)
8159	  hardcode_direct=yes
8160	  hardcode_direct_absolute=yes
8161	  export_dynamic_flag_spec='${wl}-E'
8162
8163	  # hardcode_minus_L: Not really in the search PATH,
8164	  # but as the default location of the library.
8165	  hardcode_minus_L=yes
8166	  ;;
8167	esac
8168      fi
8169      ;;
8170
8171    irix5* | irix6* | nonstopux*)
8172      if test "$GCC" = yes; then
8173	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'
8174	# Try to use the -exported_symbol ld option, if it does not
8175	# work, assume that -exports_file does not work either and
8176	# implicitly export all symbols.
8177        save_LDFLAGS="$LDFLAGS"
8178        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8179        cat >conftest.$ac_ext <<_ACEOF
8180int foo(void) {}
8181_ACEOF
8182rm -f conftest.$ac_objext conftest$ac_exeext
8183if { (ac_try="$ac_link"
8184case "(($ac_try" in
8185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186  *) ac_try_echo=$ac_try;;
8187esac
8188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8189$as_echo "$ac_try_echo") >&5
8190  (eval "$ac_link") 2>conftest.er1
8191  ac_status=$?
8192  grep -v '^ *+' conftest.er1 >conftest.err
8193  rm -f conftest.er1
8194  cat conftest.err >&5
8195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196  (exit $ac_status); } && {
8197	 test -z "$ac_c_werror_flag" ||
8198	 test ! -s conftest.err
8199       } && test -s conftest$ac_exeext && {
8200	 test "$cross_compiling" = yes ||
8201	 $as_test_x conftest$ac_exeext
8202       }; then
8203  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'
8204
8205else
8206  $as_echo "$as_me: failed program was:" >&5
8207sed 's/^/| /' conftest.$ac_ext >&5
8208
8209
8210fi
8211
8212rm -rf conftest.dSYM
8213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8214      conftest$ac_exeext conftest.$ac_ext
8215        LDFLAGS="$save_LDFLAGS"
8216      else
8217	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'
8218	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'
8219      fi
8220      archive_cmds_need_lc='no'
8221      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8222      hardcode_libdir_separator=:
8223      inherit_rpath=yes
8224      link_all_deplibs=yes
8225      ;;
8226
8227    netbsd*)
8228      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8229	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8230      else
8231	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8232      fi
8233      hardcode_libdir_flag_spec='-R$libdir'
8234      hardcode_direct=yes
8235      hardcode_shlibpath_var=no
8236      ;;
8237
8238    newsos6)
8239      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8240      hardcode_direct=yes
8241      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8242      hardcode_libdir_separator=:
8243      hardcode_shlibpath_var=no
8244      ;;
8245
8246    *nto* | *qnx*)
8247      ;;
8248
8249    openbsd*)
8250      if test -f /usr/libexec/ld.so; then
8251	hardcode_direct=yes
8252	hardcode_shlibpath_var=no
8253	hardcode_direct_absolute=yes
8254	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8255	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8256	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8257	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8258	  export_dynamic_flag_spec='${wl}-E'
8259	else
8260	  case $host_os in
8261	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8262	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8263	     hardcode_libdir_flag_spec='-R$libdir'
8264	     ;;
8265	   *)
8266	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8267	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8268	     ;;
8269	  esac
8270	fi
8271      else
8272	ld_shlibs=no
8273      fi
8274      ;;
8275
8276    os2*)
8277      hardcode_libdir_flag_spec='-L$libdir'
8278      hardcode_minus_L=yes
8279      allow_undefined_flag=unsupported
8280      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'
8281      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8282      ;;
8283
8284    osf3*)
8285      if test "$GCC" = yes; then
8286	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8287	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'
8288      else
8289	allow_undefined_flag=' -expect_unresolved \*'
8290	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'
8291      fi
8292      archive_cmds_need_lc='no'
8293      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8294      hardcode_libdir_separator=:
8295      ;;
8296
8297    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8298      if test "$GCC" = yes; then
8299	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8300	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'
8301	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302      else
8303	allow_undefined_flag=' -expect_unresolved \*'
8304	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'
8305	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~
8306	$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'
8307
8308	# Both c and cxx compiler support -rpath directly
8309	hardcode_libdir_flag_spec='-rpath $libdir'
8310      fi
8311      archive_cmds_need_lc='no'
8312      hardcode_libdir_separator=:
8313      ;;
8314
8315    solaris*)
8316      no_undefined_flag=' -z defs'
8317      if test "$GCC" = yes; then
8318	wlarc='${wl}'
8319	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8320	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8321	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8322      else
8323	case `$CC -V 2>&1` in
8324	*"Compilers 5.0"*)
8325	  wlarc=''
8326	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8327	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8328	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8329	  ;;
8330	*)
8331	  wlarc='${wl}'
8332	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8333	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8334	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8335	  ;;
8336	esac
8337      fi
8338      hardcode_libdir_flag_spec='-R$libdir'
8339      hardcode_shlibpath_var=no
8340      case $host_os in
8341      solaris2.[0-5] | solaris2.[0-5].*) ;;
8342      *)
8343	# The compiler driver will combine and reorder linker options,
8344	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8345	# but is careful enough not to reorder.
8346	# Supported since Solaris 2.6 (maybe 2.5.1?)
8347	if test "$GCC" = yes; then
8348	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8349	else
8350	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8351	fi
8352	;;
8353      esac
8354      link_all_deplibs=yes
8355      ;;
8356
8357    sunos4*)
8358      if test "x$host_vendor" = xsequent; then
8359	# Use $CC to link under sequent, because it throws in some extra .o
8360	# files that make .init and .fini sections work.
8361	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8362      else
8363	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8364      fi
8365      hardcode_libdir_flag_spec='-L$libdir'
8366      hardcode_direct=yes
8367      hardcode_minus_L=yes
8368      hardcode_shlibpath_var=no
8369      ;;
8370
8371    sysv4)
8372      case $host_vendor in
8373	sni)
8374	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375	  hardcode_direct=yes # is this really true???
8376	;;
8377	siemens)
8378	  ## LD is ld it makes a PLAMLIB
8379	  ## CC just makes a GrossModule.
8380	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8381	  reload_cmds='$CC -r -o $output$reload_objs'
8382	  hardcode_direct=no
8383        ;;
8384	motorola)
8385	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8386	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8387	;;
8388      esac
8389      runpath_var='LD_RUN_PATH'
8390      hardcode_shlibpath_var=no
8391      ;;
8392
8393    sysv4.3*)
8394      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8395      hardcode_shlibpath_var=no
8396      export_dynamic_flag_spec='-Bexport'
8397      ;;
8398
8399    sysv4*MP*)
8400      if test -d /usr/nec; then
8401	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8402	hardcode_shlibpath_var=no
8403	runpath_var=LD_RUN_PATH
8404	hardcode_runpath_var=yes
8405	ld_shlibs=yes
8406      fi
8407      ;;
8408
8409    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8410      no_undefined_flag='${wl}-z,text'
8411      archive_cmds_need_lc=no
8412      hardcode_shlibpath_var=no
8413      runpath_var='LD_RUN_PATH'
8414
8415      if test "$GCC" = yes; then
8416	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8417	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8418      else
8419	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8421      fi
8422      ;;
8423
8424    sysv5* | sco3.2v5* | sco5v6*)
8425      # Note: We can NOT use -z defs as we might desire, because we do not
8426      # link with -lc, and that would cause any symbols used from libc to
8427      # always be unresolved, which means just about no library would
8428      # ever link correctly.  If we're not using GNU ld we use -z text
8429      # though, which does catch some bad symbols but isn't as heavy-handed
8430      # as -z defs.
8431      no_undefined_flag='${wl}-z,text'
8432      allow_undefined_flag='${wl}-z,nodefs'
8433      archive_cmds_need_lc=no
8434      hardcode_shlibpath_var=no
8435      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8436      hardcode_libdir_separator=':'
8437      link_all_deplibs=yes
8438      export_dynamic_flag_spec='${wl}-Bexport'
8439      runpath_var='LD_RUN_PATH'
8440
8441      if test "$GCC" = yes; then
8442	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8443	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8444      else
8445	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8446	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8447      fi
8448      ;;
8449
8450    uts4*)
8451      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8452      hardcode_libdir_flag_spec='-L$libdir'
8453      hardcode_shlibpath_var=no
8454      ;;
8455
8456    *)
8457      ld_shlibs=no
8458      ;;
8459    esac
8460
8461    if test x$host_vendor = xsni; then
8462      case $host in
8463      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8464	export_dynamic_flag_spec='${wl}-Blargedynsym'
8465	;;
8466      esac
8467    fi
8468  fi
8469
8470{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8471$as_echo "$ld_shlibs" >&6; }
8472test "$ld_shlibs" = no && can_build_shared=no
8473
8474with_gnu_ld=$with_gnu_ld
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490#
8491# Do we need to explicitly link libc?
8492#
8493case "x$archive_cmds_need_lc" in
8494x|xyes)
8495  # Assume -lc should be added
8496  archive_cmds_need_lc=yes
8497
8498  if test "$enable_shared" = yes && test "$GCC" = yes; then
8499    case $archive_cmds in
8500    *'~'*)
8501      # FIXME: we may have to deal with multi-command sequences.
8502      ;;
8503    '$CC '*)
8504      # Test whether the compiler implicitly links with -lc since on some
8505      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8506      # to ld, don't add -lc before -lgcc.
8507      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8508$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8509      $RM conftest*
8510      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8511
8512      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513  (eval $ac_compile) 2>&5
8514  ac_status=$?
8515  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516  (exit $ac_status); } 2>conftest.err; then
8517        soname=conftest
8518        lib=conftest
8519        libobjs=conftest.$ac_objext
8520        deplibs=
8521        wl=$lt_prog_compiler_wl
8522	pic_flag=$lt_prog_compiler_pic
8523        compiler_flags=-v
8524        linker_flags=-v
8525        verstring=
8526        output_objdir=.
8527        libname=conftest
8528        lt_save_allow_undefined_flag=$allow_undefined_flag
8529        allow_undefined_flag=
8530        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8531  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8532  ac_status=$?
8533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534  (exit $ac_status); }
8535        then
8536	  archive_cmds_need_lc=no
8537        else
8538	  archive_cmds_need_lc=yes
8539        fi
8540        allow_undefined_flag=$lt_save_allow_undefined_flag
8541      else
8542        cat conftest.err 1>&5
8543      fi
8544      $RM conftest*
8545      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8546$as_echo "$archive_cmds_need_lc" >&6; }
8547      ;;
8548    esac
8549  fi
8550  ;;
8551esac
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
8706
8707
8708
8709  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8710$as_echo_n "checking dynamic linker characteristics... " >&6; }
8711
8712if test "$GCC" = yes; then
8713  case $host_os in
8714    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8715    *) lt_awk_arg="/^libraries:/" ;;
8716  esac
8717  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8718  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8719    # if the path contains ";" then we assume it to be the separator
8720    # otherwise default to the standard path separator (i.e. ":") - it is
8721    # assumed that no part of a normal pathname contains ";" but that should
8722    # okay in the real world where ";" in dirpaths is itself problematic.
8723    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8724  else
8725    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8726  fi
8727  # Ok, now we have the path, separated by spaces, we can step through it
8728  # and add multilib dir if necessary.
8729  lt_tmp_lt_search_path_spec=
8730  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8731  for lt_sys_path in $lt_search_path_spec; do
8732    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8733      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8734    else
8735      test -d "$lt_sys_path" && \
8736	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8737    fi
8738  done
8739  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8740BEGIN {RS=" "; FS="/|\n";} {
8741  lt_foo="";
8742  lt_count=0;
8743  for (lt_i = NF; lt_i > 0; lt_i--) {
8744    if ($lt_i != "" && $lt_i != ".") {
8745      if ($lt_i == "..") {
8746        lt_count++;
8747      } else {
8748        if (lt_count == 0) {
8749          lt_foo="/" $lt_i lt_foo;
8750        } else {
8751          lt_count--;
8752        }
8753      }
8754    }
8755  }
8756  if (lt_foo != "") { lt_freq[lt_foo]++; }
8757  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8758}'`
8759  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8760else
8761  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8762fi
8763library_names_spec=
8764libname_spec='lib$name'
8765soname_spec=
8766shrext_cmds=".so"
8767postinstall_cmds=
8768postuninstall_cmds=
8769finish_cmds=
8770finish_eval=
8771shlibpath_var=
8772shlibpath_overrides_runpath=unknown
8773version_type=none
8774dynamic_linker="$host_os ld.so"
8775sys_lib_dlsearch_path_spec="/lib /usr/lib"
8776need_lib_prefix=unknown
8777hardcode_into_libs=no
8778
8779# when you set need_version to no, make sure it does not cause -set_version
8780# flags to be left without arguments
8781need_version=unknown
8782
8783case $host_os in
8784aix3*)
8785  version_type=linux
8786  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8787  shlibpath_var=LIBPATH
8788
8789  # AIX 3 has no versioning support, so we append a major version to the name.
8790  soname_spec='${libname}${release}${shared_ext}$major'
8791  ;;
8792
8793aix[4-9]*)
8794  version_type=linux
8795  need_lib_prefix=no
8796  need_version=no
8797  hardcode_into_libs=yes
8798  if test "$host_cpu" = ia64; then
8799    # AIX 5 supports IA64
8800    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8801    shlibpath_var=LD_LIBRARY_PATH
8802  else
8803    # With GCC up to 2.95.x, collect2 would create an import file
8804    # for dependence libraries.  The import file would start with
8805    # the line `#! .'.  This would cause the generated library to
8806    # depend on `.', always an invalid library.  This was fixed in
8807    # development snapshots of GCC prior to 3.0.
8808    case $host_os in
8809      aix4 | aix4.[01] | aix4.[01].*)
8810      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8811	   echo ' yes '
8812	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8813	:
8814      else
8815	can_build_shared=no
8816      fi
8817      ;;
8818    esac
8819    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8820    # soname into executable. Probably we can add versioning support to
8821    # collect2, so additional links can be useful in future.
8822    if test "$aix_use_runtimelinking" = yes; then
8823      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8824      # instead of lib<name>.a to let people know that these are not
8825      # typical AIX shared libraries.
8826      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827    else
8828      # We preserve .a as extension for shared libraries through AIX4.2
8829      # and later when we are not doing run time linking.
8830      library_names_spec='${libname}${release}.a $libname.a'
8831      soname_spec='${libname}${release}${shared_ext}$major'
8832    fi
8833    shlibpath_var=LIBPATH
8834  fi
8835  ;;
8836
8837amigaos*)
8838  case $host_cpu in
8839  powerpc)
8840    # Since July 2007 AmigaOS4 officially supports .so libraries.
8841    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8842    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843    ;;
8844  m68k)
8845    library_names_spec='$libname.ixlibrary $libname.a'
8846    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8847    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'
8848    ;;
8849  esac
8850  ;;
8851
8852beos*)
8853  library_names_spec='${libname}${shared_ext}'
8854  dynamic_linker="$host_os ld.so"
8855  shlibpath_var=LIBRARY_PATH
8856  ;;
8857
8858bsdi[45]*)
8859  version_type=linux
8860  need_version=no
8861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862  soname_spec='${libname}${release}${shared_ext}$major'
8863  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8864  shlibpath_var=LD_LIBRARY_PATH
8865  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8866  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8867  # the default ld.so.conf also contains /usr/contrib/lib and
8868  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8869  # libtool to hard-code these into programs
8870  ;;
8871
8872cygwin* | mingw* | pw32* | cegcc*)
8873  version_type=windows
8874  shrext_cmds=".dll"
8875  need_version=no
8876  need_lib_prefix=no
8877
8878  case $GCC,$host_os in
8879  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8880    library_names_spec='$libname.dll.a'
8881    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8882    postinstall_cmds='base_file=`basename \${file}`~
8883      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8884      dldir=$destdir/`dirname \$dlpath`~
8885      test -d \$dldir || mkdir -p \$dldir~
8886      $install_prog $dir/$dlname \$dldir/$dlname~
8887      chmod a+x \$dldir/$dlname~
8888      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8889        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8890      fi'
8891    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8892      dlpath=$dir/\$dldll~
8893       $RM \$dlpath'
8894    shlibpath_overrides_runpath=yes
8895
8896    case $host_os in
8897    cygwin*)
8898      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8899      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8900      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8901      ;;
8902    mingw* | cegcc*)
8903      # MinGW DLLs use traditional 'lib' prefix
8904      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8905      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8906      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8907        # It is most probably a Windows format PATH printed by
8908        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8909        # path with ; separators, and with drive letters. We can handle the
8910        # drive letters (cygwin fileutils understands them), so leave them,
8911        # especially as we might pass files found there to a mingw objdump,
8912        # which wouldn't understand a cygwinified path. Ahh.
8913        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8914      else
8915        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8916      fi
8917      ;;
8918    pw32*)
8919      # pw32 DLLs use 'pw' prefix rather than 'lib'
8920      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8921      ;;
8922    esac
8923    ;;
8924
8925  *)
8926    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8927    ;;
8928  esac
8929  dynamic_linker='Win32 ld.exe'
8930  # FIXME: first we should search . and the directory the executable is in
8931  shlibpath_var=PATH
8932  ;;
8933
8934darwin* | rhapsody*)
8935  dynamic_linker="$host_os dyld"
8936  version_type=darwin
8937  need_lib_prefix=no
8938  need_version=no
8939  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8940  soname_spec='${libname}${release}${major}$shared_ext'
8941  shlibpath_overrides_runpath=yes
8942  shlibpath_var=DYLD_LIBRARY_PATH
8943  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8944
8945  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8946  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8947  ;;
8948
8949dgux*)
8950  version_type=linux
8951  need_lib_prefix=no
8952  need_version=no
8953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8954  soname_spec='${libname}${release}${shared_ext}$major'
8955  shlibpath_var=LD_LIBRARY_PATH
8956  ;;
8957
8958freebsd1*)
8959  dynamic_linker=no
8960  ;;
8961
8962freebsd* | dragonfly*)
8963  # DragonFly does not have aout.  When/if they implement a new
8964  # versioning mechanism, adjust this.
8965  if test -x /usr/bin/objformat; then
8966    objformat=`/usr/bin/objformat`
8967  else
8968    case $host_os in
8969    freebsd[123]*) objformat=aout ;;
8970    *) objformat=elf ;;
8971    esac
8972  fi
8973  # Handle Gentoo/FreeBSD as it was Linux
8974  case $host_vendor in
8975    gentoo)
8976      version_type=linux ;;
8977    *)
8978      version_type=freebsd-$objformat ;;
8979  esac
8980
8981  case $version_type in
8982    freebsd-elf*)
8983      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8984      need_version=no
8985      need_lib_prefix=no
8986      ;;
8987    freebsd-*)
8988      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8989      need_version=yes
8990      ;;
8991    linux)
8992      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993      soname_spec='${libname}${release}${shared_ext}$major'
8994      need_lib_prefix=no
8995      need_version=no
8996      ;;
8997  esac
8998  shlibpath_var=LD_LIBRARY_PATH
8999  case $host_os in
9000  freebsd2*)
9001    shlibpath_overrides_runpath=yes
9002    ;;
9003  freebsd3.[01]* | freebsdelf3.[01]*)
9004    shlibpath_overrides_runpath=yes
9005    hardcode_into_libs=yes
9006    ;;
9007  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9008  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9009    shlibpath_overrides_runpath=no
9010    hardcode_into_libs=yes
9011    ;;
9012  *) # from 4.6 on, and DragonFly
9013    shlibpath_overrides_runpath=yes
9014    hardcode_into_libs=yes
9015    ;;
9016  esac
9017  ;;
9018
9019gnu*)
9020  version_type=linux
9021  need_lib_prefix=no
9022  need_version=no
9023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9024  soname_spec='${libname}${release}${shared_ext}$major'
9025  shlibpath_var=LD_LIBRARY_PATH
9026  hardcode_into_libs=yes
9027  ;;
9028
9029hpux9* | hpux10* | hpux11*)
9030  # Give a soname corresponding to the major version so that dld.sl refuses to
9031  # link against other versions.
9032  version_type=sunos
9033  need_lib_prefix=no
9034  need_version=no
9035  case $host_cpu in
9036  ia64*)
9037    shrext_cmds='.so'
9038    hardcode_into_libs=yes
9039    dynamic_linker="$host_os dld.so"
9040    shlibpath_var=LD_LIBRARY_PATH
9041    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9042    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043    soname_spec='${libname}${release}${shared_ext}$major'
9044    if test "X$HPUX_IA64_MODE" = X32; then
9045      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9046    else
9047      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9048    fi
9049    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050    ;;
9051  hppa*64*)
9052    shrext_cmds='.sl'
9053    hardcode_into_libs=yes
9054    dynamic_linker="$host_os dld.sl"
9055    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9056    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058    soname_spec='${libname}${release}${shared_ext}$major'
9059    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9060    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9061    ;;
9062  *)
9063    shrext_cmds='.sl'
9064    dynamic_linker="$host_os dld.sl"
9065    shlibpath_var=SHLIB_PATH
9066    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9067    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068    soname_spec='${libname}${release}${shared_ext}$major'
9069    ;;
9070  esac
9071  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9072  postinstall_cmds='chmod 555 $lib'
9073  ;;
9074
9075interix[3-9]*)
9076  version_type=linux
9077  need_lib_prefix=no
9078  need_version=no
9079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9080  soname_spec='${libname}${release}${shared_ext}$major'
9081  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9082  shlibpath_var=LD_LIBRARY_PATH
9083  shlibpath_overrides_runpath=no
9084  hardcode_into_libs=yes
9085  ;;
9086
9087irix5* | irix6* | nonstopux*)
9088  case $host_os in
9089    nonstopux*) version_type=nonstopux ;;
9090    *)
9091	if test "$lt_cv_prog_gnu_ld" = yes; then
9092		version_type=linux
9093	else
9094		version_type=irix
9095	fi ;;
9096  esac
9097  need_lib_prefix=no
9098  need_version=no
9099  soname_spec='${libname}${release}${shared_ext}$major'
9100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9101  case $host_os in
9102  irix5* | nonstopux*)
9103    libsuff= shlibsuff=
9104    ;;
9105  *)
9106    case $LD in # libtool.m4 will add one of these switches to LD
9107    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9108      libsuff= shlibsuff= libmagic=32-bit;;
9109    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9110      libsuff=32 shlibsuff=N32 libmagic=N32;;
9111    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9112      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9113    *) libsuff= shlibsuff= libmagic=never-match;;
9114    esac
9115    ;;
9116  esac
9117  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9118  shlibpath_overrides_runpath=no
9119  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9120  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9121  hardcode_into_libs=yes
9122  ;;
9123
9124# No shared lib support for Linux oldld, aout, or coff.
9125linux*oldld* | linux*aout* | linux*coff*)
9126  dynamic_linker=no
9127  ;;
9128
9129# This must be Linux ELF.
9130linux* | k*bsd*-gnu)
9131  version_type=linux
9132  need_lib_prefix=no
9133  need_version=no
9134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135  soname_spec='${libname}${release}${shared_ext}$major'
9136  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9137  shlibpath_var=LD_LIBRARY_PATH
9138  shlibpath_overrides_runpath=no
9139  # Some binutils ld are patched to set DT_RUNPATH
9140  save_LDFLAGS=$LDFLAGS
9141  save_libdir=$libdir
9142  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9143       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9144  cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h.  */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h.  */
9150
9151int
9152main ()
9153{
9154
9155  ;
9156  return 0;
9157}
9158_ACEOF
9159rm -f conftest.$ac_objext conftest$ac_exeext
9160if { (ac_try="$ac_link"
9161case "(($ac_try" in
9162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163  *) ac_try_echo=$ac_try;;
9164esac
9165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9166$as_echo "$ac_try_echo") >&5
9167  (eval "$ac_link") 2>conftest.er1
9168  ac_status=$?
9169  grep -v '^ *+' conftest.er1 >conftest.err
9170  rm -f conftest.er1
9171  cat conftest.err >&5
9172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173  (exit $ac_status); } && {
9174	 test -z "$ac_c_werror_flag" ||
9175	 test ! -s conftest.err
9176       } && test -s conftest$ac_exeext && {
9177	 test "$cross_compiling" = yes ||
9178	 $as_test_x conftest$ac_exeext
9179       }; then
9180  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9181  shlibpath_overrides_runpath=yes
9182fi
9183
9184else
9185  $as_echo "$as_me: failed program was:" >&5
9186sed 's/^/| /' conftest.$ac_ext >&5
9187
9188
9189fi
9190
9191rm -rf conftest.dSYM
9192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9193      conftest$ac_exeext conftest.$ac_ext
9194  LDFLAGS=$save_LDFLAGS
9195  libdir=$save_libdir
9196
9197  # This implies no fast_install, which is unacceptable.
9198  # Some rework will be needed to allow for fast_install
9199  # before this can be enabled.
9200  hardcode_into_libs=yes
9201
9202  # Append ld.so.conf contents to the search path
9203  if test -f /etc/ld.so.conf; then
9204    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' ' '`
9205    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9206  fi
9207
9208  # We used to test for /lib/ld.so.1 and disable shared libraries on
9209  # powerpc, because MkLinux only supported shared libraries with the
9210  # GNU dynamic linker.  Since this was broken with cross compilers,
9211  # most powerpc-linux boxes support dynamic linking these days and
9212  # people can always --disable-shared, the test was removed, and we
9213  # assume the GNU/Linux dynamic linker is in use.
9214  dynamic_linker='GNU/Linux ld.so'
9215  ;;
9216
9217netbsd*)
9218  version_type=sunos
9219  need_lib_prefix=no
9220  need_version=no
9221  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9223    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9224    dynamic_linker='NetBSD (a.out) ld.so'
9225  else
9226    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9227    soname_spec='${libname}${release}${shared_ext}$major'
9228    dynamic_linker='NetBSD ld.elf_so'
9229  fi
9230  shlibpath_var=LD_LIBRARY_PATH
9231  shlibpath_overrides_runpath=yes
9232  hardcode_into_libs=yes
9233  ;;
9234
9235newsos6)
9236  version_type=linux
9237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238  shlibpath_var=LD_LIBRARY_PATH
9239  shlibpath_overrides_runpath=yes
9240  ;;
9241
9242*nto* | *qnx*)
9243  version_type=qnx
9244  need_lib_prefix=no
9245  need_version=no
9246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247  soname_spec='${libname}${release}${shared_ext}$major'
9248  shlibpath_var=LD_LIBRARY_PATH
9249  shlibpath_overrides_runpath=no
9250  hardcode_into_libs=yes
9251  dynamic_linker='ldqnx.so'
9252  ;;
9253
9254openbsd*)
9255  version_type=sunos
9256  sys_lib_dlsearch_path_spec="/usr/lib"
9257  need_lib_prefix=no
9258  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9259  case $host_os in
9260    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9261    *)				need_version=no  ;;
9262  esac
9263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9264  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9265  shlibpath_var=LD_LIBRARY_PATH
9266  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9267    case $host_os in
9268      openbsd2.[89] | openbsd2.[89].*)
9269	shlibpath_overrides_runpath=no
9270	;;
9271      *)
9272	shlibpath_overrides_runpath=yes
9273	;;
9274      esac
9275  else
9276    shlibpath_overrides_runpath=yes
9277  fi
9278  ;;
9279
9280os2*)
9281  libname_spec='$name'
9282  shrext_cmds=".dll"
9283  need_lib_prefix=no
9284  library_names_spec='$libname${shared_ext} $libname.a'
9285  dynamic_linker='OS/2 ld.exe'
9286  shlibpath_var=LIBPATH
9287  ;;
9288
9289osf3* | osf4* | osf5*)
9290  version_type=osf
9291  need_lib_prefix=no
9292  need_version=no
9293  soname_spec='${libname}${release}${shared_ext}$major'
9294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295  shlibpath_var=LD_LIBRARY_PATH
9296  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9297  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9298  ;;
9299
9300rdos*)
9301  dynamic_linker=no
9302  ;;
9303
9304solaris*)
9305  version_type=linux
9306  need_lib_prefix=no
9307  need_version=no
9308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309  soname_spec='${libname}${release}${shared_ext}$major'
9310  shlibpath_var=LD_LIBRARY_PATH
9311  shlibpath_overrides_runpath=yes
9312  hardcode_into_libs=yes
9313  # ldd complains unless libraries are executable
9314  postinstall_cmds='chmod +x $lib'
9315  ;;
9316
9317sunos4*)
9318  version_type=sunos
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9321  shlibpath_var=LD_LIBRARY_PATH
9322  shlibpath_overrides_runpath=yes
9323  if test "$with_gnu_ld" = yes; then
9324    need_lib_prefix=no
9325  fi
9326  need_version=yes
9327  ;;
9328
9329sysv4 | sysv4.3*)
9330  version_type=linux
9331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332  soname_spec='${libname}${release}${shared_ext}$major'
9333  shlibpath_var=LD_LIBRARY_PATH
9334  case $host_vendor in
9335    sni)
9336      shlibpath_overrides_runpath=no
9337      need_lib_prefix=no
9338      runpath_var=LD_RUN_PATH
9339      ;;
9340    siemens)
9341      need_lib_prefix=no
9342      ;;
9343    motorola)
9344      need_lib_prefix=no
9345      need_version=no
9346      shlibpath_overrides_runpath=no
9347      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9348      ;;
9349  esac
9350  ;;
9351
9352sysv4*MP*)
9353  if test -d /usr/nec ;then
9354    version_type=linux
9355    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9356    soname_spec='$libname${shared_ext}.$major'
9357    shlibpath_var=LD_LIBRARY_PATH
9358  fi
9359  ;;
9360
9361sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9362  version_type=freebsd-elf
9363  need_lib_prefix=no
9364  need_version=no
9365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9366  soname_spec='${libname}${release}${shared_ext}$major'
9367  shlibpath_var=LD_LIBRARY_PATH
9368  shlibpath_overrides_runpath=yes
9369  hardcode_into_libs=yes
9370  if test "$with_gnu_ld" = yes; then
9371    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9372  else
9373    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9374    case $host_os in
9375      sco3.2v5*)
9376        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9377	;;
9378    esac
9379  fi
9380  sys_lib_dlsearch_path_spec='/usr/lib'
9381  ;;
9382
9383tpf*)
9384  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9385  version_type=linux
9386  need_lib_prefix=no
9387  need_version=no
9388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389  shlibpath_var=LD_LIBRARY_PATH
9390  shlibpath_overrides_runpath=no
9391  hardcode_into_libs=yes
9392  ;;
9393
9394uts4*)
9395  version_type=linux
9396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397  soname_spec='${libname}${release}${shared_ext}$major'
9398  shlibpath_var=LD_LIBRARY_PATH
9399  ;;
9400
9401*)
9402  dynamic_linker=no
9403  ;;
9404esac
9405{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9406$as_echo "$dynamic_linker" >&6; }
9407test "$dynamic_linker" = no && can_build_shared=no
9408
9409variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9410if test "$GCC" = yes; then
9411  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9412fi
9413
9414if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9415  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9416fi
9417if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9418  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9419fi
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
9504
9505
9506
9507  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9508$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9509hardcode_action=
9510if test -n "$hardcode_libdir_flag_spec" ||
9511   test -n "$runpath_var" ||
9512   test "X$hardcode_automatic" = "Xyes" ; then
9513
9514  # We can hardcode non-existent directories.
9515  if test "$hardcode_direct" != no &&
9516     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9517     # have to relink, otherwise we might link with an installed library
9518     # when we should be linking with a yet-to-be-installed one
9519     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9520     test "$hardcode_minus_L" != no; then
9521    # Linking always hardcodes the temporary library directory.
9522    hardcode_action=relink
9523  else
9524    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9525    hardcode_action=immediate
9526  fi
9527else
9528  # We cannot hardcode anything, or else we can only hardcode existing
9529  # directories.
9530  hardcode_action=unsupported
9531fi
9532{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9533$as_echo "$hardcode_action" >&6; }
9534
9535if test "$hardcode_action" = relink ||
9536   test "$inherit_rpath" = yes; then
9537  # Fast installation is not supported
9538  enable_fast_install=no
9539elif test "$shlibpath_overrides_runpath" = yes ||
9540     test "$enable_shared" = no; then
9541  # Fast installation is not necessary
9542  enable_fast_install=needless
9543fi
9544
9545
9546
9547
9548
9549
9550  if test "x$enable_dlopen" != xyes; then
9551  enable_dlopen=unknown
9552  enable_dlopen_self=unknown
9553  enable_dlopen_self_static=unknown
9554else
9555  lt_cv_dlopen=no
9556  lt_cv_dlopen_libs=
9557
9558  case $host_os in
9559  beos*)
9560    lt_cv_dlopen="load_add_on"
9561    lt_cv_dlopen_libs=
9562    lt_cv_dlopen_self=yes
9563    ;;
9564
9565  mingw* | pw32* | cegcc*)
9566    lt_cv_dlopen="LoadLibrary"
9567    lt_cv_dlopen_libs=
9568    ;;
9569
9570  cygwin*)
9571    lt_cv_dlopen="dlopen"
9572    lt_cv_dlopen_libs=
9573    ;;
9574
9575  darwin*)
9576  # if libdl is installed we need to link against it
9577    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9578$as_echo_n "checking for dlopen in -ldl... " >&6; }
9579if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9580  $as_echo_n "(cached) " >&6
9581else
9582  ac_check_lib_save_LIBS=$LIBS
9583LIBS="-ldl  $LIBS"
9584cat >conftest.$ac_ext <<_ACEOF
9585/* confdefs.h.  */
9586_ACEOF
9587cat confdefs.h >>conftest.$ac_ext
9588cat >>conftest.$ac_ext <<_ACEOF
9589/* end confdefs.h.  */
9590
9591/* Override any GCC internal prototype to avoid an error.
9592   Use char because int might match the return type of a GCC
9593   builtin and then its argument prototype would still apply.  */
9594#ifdef __cplusplus
9595extern "C"
9596#endif
9597char dlopen ();
9598int
9599main ()
9600{
9601return dlopen ();
9602  ;
9603  return 0;
9604}
9605_ACEOF
9606rm -f conftest.$ac_objext conftest$ac_exeext
9607if { (ac_try="$ac_link"
9608case "(($ac_try" in
9609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610  *) ac_try_echo=$ac_try;;
9611esac
9612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9613$as_echo "$ac_try_echo") >&5
9614  (eval "$ac_link") 2>conftest.er1
9615  ac_status=$?
9616  grep -v '^ *+' conftest.er1 >conftest.err
9617  rm -f conftest.er1
9618  cat conftest.err >&5
9619  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620  (exit $ac_status); } && {
9621	 test -z "$ac_c_werror_flag" ||
9622	 test ! -s conftest.err
9623       } && test -s conftest$ac_exeext && {
9624	 test "$cross_compiling" = yes ||
9625	 $as_test_x conftest$ac_exeext
9626       }; then
9627  ac_cv_lib_dl_dlopen=yes
9628else
9629  $as_echo "$as_me: failed program was:" >&5
9630sed 's/^/| /' conftest.$ac_ext >&5
9631
9632	ac_cv_lib_dl_dlopen=no
9633fi
9634
9635rm -rf conftest.dSYM
9636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9637      conftest$ac_exeext conftest.$ac_ext
9638LIBS=$ac_check_lib_save_LIBS
9639fi
9640{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9641$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9642if test $ac_cv_lib_dl_dlopen = yes; then
9643  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9644else
9645
9646    lt_cv_dlopen="dyld"
9647    lt_cv_dlopen_libs=
9648    lt_cv_dlopen_self=yes
9649
9650fi
9651
9652    ;;
9653
9654  *)
9655    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9656$as_echo_n "checking for shl_load... " >&6; }
9657if test "${ac_cv_func_shl_load+set}" = set; then
9658  $as_echo_n "(cached) " >&6
9659else
9660  cat >conftest.$ac_ext <<_ACEOF
9661/* confdefs.h.  */
9662_ACEOF
9663cat confdefs.h >>conftest.$ac_ext
9664cat >>conftest.$ac_ext <<_ACEOF
9665/* end confdefs.h.  */
9666/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9667   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9668#define shl_load innocuous_shl_load
9669
9670/* System header to define __stub macros and hopefully few prototypes,
9671    which can conflict with char shl_load (); below.
9672    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9673    <limits.h> exists even on freestanding compilers.  */
9674
9675#ifdef __STDC__
9676# include <limits.h>
9677#else
9678# include <assert.h>
9679#endif
9680
9681#undef shl_load
9682
9683/* Override any GCC internal prototype to avoid an error.
9684   Use char because int might match the return type of a GCC
9685   builtin and then its argument prototype would still apply.  */
9686#ifdef __cplusplus
9687extern "C"
9688#endif
9689char shl_load ();
9690/* The GNU C library defines this for functions which it implements
9691    to always fail with ENOSYS.  Some functions are actually named
9692    something starting with __ and the normal name is an alias.  */
9693#if defined __stub_shl_load || defined __stub___shl_load
9694choke me
9695#endif
9696
9697int
9698main ()
9699{
9700return shl_load ();
9701  ;
9702  return 0;
9703}
9704_ACEOF
9705rm -f conftest.$ac_objext conftest$ac_exeext
9706if { (ac_try="$ac_link"
9707case "(($ac_try" in
9708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709  *) ac_try_echo=$ac_try;;
9710esac
9711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712$as_echo "$ac_try_echo") >&5
9713  (eval "$ac_link") 2>conftest.er1
9714  ac_status=$?
9715  grep -v '^ *+' conftest.er1 >conftest.err
9716  rm -f conftest.er1
9717  cat conftest.err >&5
9718  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719  (exit $ac_status); } && {
9720	 test -z "$ac_c_werror_flag" ||
9721	 test ! -s conftest.err
9722       } && test -s conftest$ac_exeext && {
9723	 test "$cross_compiling" = yes ||
9724	 $as_test_x conftest$ac_exeext
9725       }; then
9726  ac_cv_func_shl_load=yes
9727else
9728  $as_echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731	ac_cv_func_shl_load=no
9732fi
9733
9734rm -rf conftest.dSYM
9735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9736      conftest$ac_exeext conftest.$ac_ext
9737fi
9738{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9739$as_echo "$ac_cv_func_shl_load" >&6; }
9740if test $ac_cv_func_shl_load = yes; then
9741  lt_cv_dlopen="shl_load"
9742else
9743  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9744$as_echo_n "checking for shl_load in -ldld... " >&6; }
9745if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9746  $as_echo_n "(cached) " >&6
9747else
9748  ac_check_lib_save_LIBS=$LIBS
9749LIBS="-ldld  $LIBS"
9750cat >conftest.$ac_ext <<_ACEOF
9751/* confdefs.h.  */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h.  */
9756
9757/* Override any GCC internal prototype to avoid an error.
9758   Use char because int might match the return type of a GCC
9759   builtin and then its argument prototype would still apply.  */
9760#ifdef __cplusplus
9761extern "C"
9762#endif
9763char shl_load ();
9764int
9765main ()
9766{
9767return shl_load ();
9768  ;
9769  return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext conftest$ac_exeext
9773if { (ac_try="$ac_link"
9774case "(($ac_try" in
9775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776  *) ac_try_echo=$ac_try;;
9777esac
9778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9779$as_echo "$ac_try_echo") >&5
9780  (eval "$ac_link") 2>conftest.er1
9781  ac_status=$?
9782  grep -v '^ *+' conftest.er1 >conftest.err
9783  rm -f conftest.er1
9784  cat conftest.err >&5
9785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786  (exit $ac_status); } && {
9787	 test -z "$ac_c_werror_flag" ||
9788	 test ! -s conftest.err
9789       } && test -s conftest$ac_exeext && {
9790	 test "$cross_compiling" = yes ||
9791	 $as_test_x conftest$ac_exeext
9792       }; then
9793  ac_cv_lib_dld_shl_load=yes
9794else
9795  $as_echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
9798	ac_cv_lib_dld_shl_load=no
9799fi
9800
9801rm -rf conftest.dSYM
9802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9803      conftest$ac_exeext conftest.$ac_ext
9804LIBS=$ac_check_lib_save_LIBS
9805fi
9806{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9807$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9808if test $ac_cv_lib_dld_shl_load = yes; then
9809  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9810else
9811  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9812$as_echo_n "checking for dlopen... " >&6; }
9813if test "${ac_cv_func_dlopen+set}" = set; then
9814  $as_echo_n "(cached) " >&6
9815else
9816  cat >conftest.$ac_ext <<_ACEOF
9817/* confdefs.h.  */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
9821/* end confdefs.h.  */
9822/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9823   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9824#define dlopen innocuous_dlopen
9825
9826/* System header to define __stub macros and hopefully few prototypes,
9827    which can conflict with char dlopen (); below.
9828    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829    <limits.h> exists even on freestanding compilers.  */
9830
9831#ifdef __STDC__
9832# include <limits.h>
9833#else
9834# include <assert.h>
9835#endif
9836
9837#undef dlopen
9838
9839/* Override any GCC internal prototype to avoid an error.
9840   Use char because int might match the return type of a GCC
9841   builtin and then its argument prototype would still apply.  */
9842#ifdef __cplusplus
9843extern "C"
9844#endif
9845char dlopen ();
9846/* The GNU C library defines this for functions which it implements
9847    to always fail with ENOSYS.  Some functions are actually named
9848    something starting with __ and the normal name is an alias.  */
9849#if defined __stub_dlopen || defined __stub___dlopen
9850choke me
9851#endif
9852
9853int
9854main ()
9855{
9856return dlopen ();
9857  ;
9858  return 0;
9859}
9860_ACEOF
9861rm -f conftest.$ac_objext conftest$ac_exeext
9862if { (ac_try="$ac_link"
9863case "(($ac_try" in
9864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865  *) ac_try_echo=$ac_try;;
9866esac
9867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9868$as_echo "$ac_try_echo") >&5
9869  (eval "$ac_link") 2>conftest.er1
9870  ac_status=$?
9871  grep -v '^ *+' conftest.er1 >conftest.err
9872  rm -f conftest.er1
9873  cat conftest.err >&5
9874  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875  (exit $ac_status); } && {
9876	 test -z "$ac_c_werror_flag" ||
9877	 test ! -s conftest.err
9878       } && test -s conftest$ac_exeext && {
9879	 test "$cross_compiling" = yes ||
9880	 $as_test_x conftest$ac_exeext
9881       }; then
9882  ac_cv_func_dlopen=yes
9883else
9884  $as_echo "$as_me: failed program was:" >&5
9885sed 's/^/| /' conftest.$ac_ext >&5
9886
9887	ac_cv_func_dlopen=no
9888fi
9889
9890rm -rf conftest.dSYM
9891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9892      conftest$ac_exeext conftest.$ac_ext
9893fi
9894{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9895$as_echo "$ac_cv_func_dlopen" >&6; }
9896if test $ac_cv_func_dlopen = yes; then
9897  lt_cv_dlopen="dlopen"
9898else
9899  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9900$as_echo_n "checking for dlopen in -ldl... " >&6; }
9901if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9902  $as_echo_n "(cached) " >&6
9903else
9904  ac_check_lib_save_LIBS=$LIBS
9905LIBS="-ldl  $LIBS"
9906cat >conftest.$ac_ext <<_ACEOF
9907/* confdefs.h.  */
9908_ACEOF
9909cat confdefs.h >>conftest.$ac_ext
9910cat >>conftest.$ac_ext <<_ACEOF
9911/* end confdefs.h.  */
9912
9913/* Override any GCC internal prototype to avoid an error.
9914   Use char because int might match the return type of a GCC
9915   builtin and then its argument prototype would still apply.  */
9916#ifdef __cplusplus
9917extern "C"
9918#endif
9919char dlopen ();
9920int
9921main ()
9922{
9923return dlopen ();
9924  ;
9925  return 0;
9926}
9927_ACEOF
9928rm -f conftest.$ac_objext conftest$ac_exeext
9929if { (ac_try="$ac_link"
9930case "(($ac_try" in
9931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932  *) ac_try_echo=$ac_try;;
9933esac
9934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9935$as_echo "$ac_try_echo") >&5
9936  (eval "$ac_link") 2>conftest.er1
9937  ac_status=$?
9938  grep -v '^ *+' conftest.er1 >conftest.err
9939  rm -f conftest.er1
9940  cat conftest.err >&5
9941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942  (exit $ac_status); } && {
9943	 test -z "$ac_c_werror_flag" ||
9944	 test ! -s conftest.err
9945       } && test -s conftest$ac_exeext && {
9946	 test "$cross_compiling" = yes ||
9947	 $as_test_x conftest$ac_exeext
9948       }; then
9949  ac_cv_lib_dl_dlopen=yes
9950else
9951  $as_echo "$as_me: failed program was:" >&5
9952sed 's/^/| /' conftest.$ac_ext >&5
9953
9954	ac_cv_lib_dl_dlopen=no
9955fi
9956
9957rm -rf conftest.dSYM
9958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9959      conftest$ac_exeext conftest.$ac_ext
9960LIBS=$ac_check_lib_save_LIBS
9961fi
9962{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9963$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9964if test $ac_cv_lib_dl_dlopen = yes; then
9965  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9966else
9967  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9968$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9969if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9970  $as_echo_n "(cached) " >&6
9971else
9972  ac_check_lib_save_LIBS=$LIBS
9973LIBS="-lsvld  $LIBS"
9974cat >conftest.$ac_ext <<_ACEOF
9975/* confdefs.h.  */
9976_ACEOF
9977cat confdefs.h >>conftest.$ac_ext
9978cat >>conftest.$ac_ext <<_ACEOF
9979/* end confdefs.h.  */
9980
9981/* Override any GCC internal prototype to avoid an error.
9982   Use char because int might match the return type of a GCC
9983   builtin and then its argument prototype would still apply.  */
9984#ifdef __cplusplus
9985extern "C"
9986#endif
9987char dlopen ();
9988int
9989main ()
9990{
9991return dlopen ();
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996rm -f conftest.$ac_objext conftest$ac_exeext
9997if { (ac_try="$ac_link"
9998case "(($ac_try" in
9999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000  *) ac_try_echo=$ac_try;;
10001esac
10002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003$as_echo "$ac_try_echo") >&5
10004  (eval "$ac_link") 2>conftest.er1
10005  ac_status=$?
10006  grep -v '^ *+' conftest.er1 >conftest.err
10007  rm -f conftest.er1
10008  cat conftest.err >&5
10009  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010  (exit $ac_status); } && {
10011	 test -z "$ac_c_werror_flag" ||
10012	 test ! -s conftest.err
10013       } && test -s conftest$ac_exeext && {
10014	 test "$cross_compiling" = yes ||
10015	 $as_test_x conftest$ac_exeext
10016       }; then
10017  ac_cv_lib_svld_dlopen=yes
10018else
10019  $as_echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
10022	ac_cv_lib_svld_dlopen=no
10023fi
10024
10025rm -rf conftest.dSYM
10026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027      conftest$ac_exeext conftest.$ac_ext
10028LIBS=$ac_check_lib_save_LIBS
10029fi
10030{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10031$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10032if test $ac_cv_lib_svld_dlopen = yes; then
10033  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10034else
10035  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10036$as_echo_n "checking for dld_link in -ldld... " >&6; }
10037if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10038  $as_echo_n "(cached) " >&6
10039else
10040  ac_check_lib_save_LIBS=$LIBS
10041LIBS="-ldld  $LIBS"
10042cat >conftest.$ac_ext <<_ACEOF
10043/* confdefs.h.  */
10044_ACEOF
10045cat confdefs.h >>conftest.$ac_ext
10046cat >>conftest.$ac_ext <<_ACEOF
10047/* end confdefs.h.  */
10048
10049/* Override any GCC internal prototype to avoid an error.
10050   Use char because int might match the return type of a GCC
10051   builtin and then its argument prototype would still apply.  */
10052#ifdef __cplusplus
10053extern "C"
10054#endif
10055char dld_link ();
10056int
10057main ()
10058{
10059return dld_link ();
10060  ;
10061  return 0;
10062}
10063_ACEOF
10064rm -f conftest.$ac_objext conftest$ac_exeext
10065if { (ac_try="$ac_link"
10066case "(($ac_try" in
10067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068  *) ac_try_echo=$ac_try;;
10069esac
10070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10071$as_echo "$ac_try_echo") >&5
10072  (eval "$ac_link") 2>conftest.er1
10073  ac_status=$?
10074  grep -v '^ *+' conftest.er1 >conftest.err
10075  rm -f conftest.er1
10076  cat conftest.err >&5
10077  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078  (exit $ac_status); } && {
10079	 test -z "$ac_c_werror_flag" ||
10080	 test ! -s conftest.err
10081       } && test -s conftest$ac_exeext && {
10082	 test "$cross_compiling" = yes ||
10083	 $as_test_x conftest$ac_exeext
10084       }; then
10085  ac_cv_lib_dld_dld_link=yes
10086else
10087  $as_echo "$as_me: failed program was:" >&5
10088sed 's/^/| /' conftest.$ac_ext >&5
10089
10090	ac_cv_lib_dld_dld_link=no
10091fi
10092
10093rm -rf conftest.dSYM
10094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10095      conftest$ac_exeext conftest.$ac_ext
10096LIBS=$ac_check_lib_save_LIBS
10097fi
10098{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10099$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10100if test $ac_cv_lib_dld_dld_link = yes; then
10101  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10102fi
10103
10104
10105fi
10106
10107
10108fi
10109
10110
10111fi
10112
10113
10114fi
10115
10116
10117fi
10118
10119    ;;
10120  esac
10121
10122  if test "x$lt_cv_dlopen" != xno; then
10123    enable_dlopen=yes
10124  else
10125    enable_dlopen=no
10126  fi
10127
10128  case $lt_cv_dlopen in
10129  dlopen)
10130    save_CPPFLAGS="$CPPFLAGS"
10131    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10132
10133    save_LDFLAGS="$LDFLAGS"
10134    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10135
10136    save_LIBS="$LIBS"
10137    LIBS="$lt_cv_dlopen_libs $LIBS"
10138
10139    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10140$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10141if test "${lt_cv_dlopen_self+set}" = set; then
10142  $as_echo_n "(cached) " >&6
10143else
10144  	  if test "$cross_compiling" = yes; then :
10145  lt_cv_dlopen_self=cross
10146else
10147  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10148  lt_status=$lt_dlunknown
10149  cat > conftest.$ac_ext <<_LT_EOF
10150#line 10150 "configure"
10151#include "confdefs.h"
10152
10153#if HAVE_DLFCN_H
10154#include <dlfcn.h>
10155#endif
10156
10157#include <stdio.h>
10158
10159#ifdef RTLD_GLOBAL
10160#  define LT_DLGLOBAL		RTLD_GLOBAL
10161#else
10162#  ifdef DL_GLOBAL
10163#    define LT_DLGLOBAL		DL_GLOBAL
10164#  else
10165#    define LT_DLGLOBAL		0
10166#  endif
10167#endif
10168
10169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10170   find out it does not work in some platform. */
10171#ifndef LT_DLLAZY_OR_NOW
10172#  ifdef RTLD_LAZY
10173#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10174#  else
10175#    ifdef DL_LAZY
10176#      define LT_DLLAZY_OR_NOW		DL_LAZY
10177#    else
10178#      ifdef RTLD_NOW
10179#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10180#      else
10181#        ifdef DL_NOW
10182#          define LT_DLLAZY_OR_NOW	DL_NOW
10183#        else
10184#          define LT_DLLAZY_OR_NOW	0
10185#        endif
10186#      endif
10187#    endif
10188#  endif
10189#endif
10190
10191void fnord() { int i=42;}
10192int main ()
10193{
10194  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10195  int status = $lt_dlunknown;
10196
10197  if (self)
10198    {
10199      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10200      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10201      /* dlclose (self); */
10202    }
10203  else
10204    puts (dlerror ());
10205
10206  return status;
10207}
10208_LT_EOF
10209  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210  (eval $ac_link) 2>&5
10211  ac_status=$?
10212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10214    (./conftest; exit; ) >&5 2>/dev/null
10215    lt_status=$?
10216    case x$lt_status in
10217      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10218      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10219      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10220    esac
10221  else :
10222    # compilation failed
10223    lt_cv_dlopen_self=no
10224  fi
10225fi
10226rm -fr conftest*
10227
10228
10229fi
10230{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10231$as_echo "$lt_cv_dlopen_self" >&6; }
10232
10233    if test "x$lt_cv_dlopen_self" = xyes; then
10234      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10235      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10236$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10237if test "${lt_cv_dlopen_self_static+set}" = set; then
10238  $as_echo_n "(cached) " >&6
10239else
10240  	  if test "$cross_compiling" = yes; then :
10241  lt_cv_dlopen_self_static=cross
10242else
10243  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10244  lt_status=$lt_dlunknown
10245  cat > conftest.$ac_ext <<_LT_EOF
10246#line 10246 "configure"
10247#include "confdefs.h"
10248
10249#if HAVE_DLFCN_H
10250#include <dlfcn.h>
10251#endif
10252
10253#include <stdio.h>
10254
10255#ifdef RTLD_GLOBAL
10256#  define LT_DLGLOBAL		RTLD_GLOBAL
10257#else
10258#  ifdef DL_GLOBAL
10259#    define LT_DLGLOBAL		DL_GLOBAL
10260#  else
10261#    define LT_DLGLOBAL		0
10262#  endif
10263#endif
10264
10265/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10266   find out it does not work in some platform. */
10267#ifndef LT_DLLAZY_OR_NOW
10268#  ifdef RTLD_LAZY
10269#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10270#  else
10271#    ifdef DL_LAZY
10272#      define LT_DLLAZY_OR_NOW		DL_LAZY
10273#    else
10274#      ifdef RTLD_NOW
10275#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10276#      else
10277#        ifdef DL_NOW
10278#          define LT_DLLAZY_OR_NOW	DL_NOW
10279#        else
10280#          define LT_DLLAZY_OR_NOW	0
10281#        endif
10282#      endif
10283#    endif
10284#  endif
10285#endif
10286
10287void fnord() { int i=42;}
10288int main ()
10289{
10290  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10291  int status = $lt_dlunknown;
10292
10293  if (self)
10294    {
10295      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10296      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10297      /* dlclose (self); */
10298    }
10299  else
10300    puts (dlerror ());
10301
10302  return status;
10303}
10304_LT_EOF
10305  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306  (eval $ac_link) 2>&5
10307  ac_status=$?
10308  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10310    (./conftest; exit; ) >&5 2>/dev/null
10311    lt_status=$?
10312    case x$lt_status in
10313      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10314      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10315      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10316    esac
10317  else :
10318    # compilation failed
10319    lt_cv_dlopen_self_static=no
10320  fi
10321fi
10322rm -fr conftest*
10323
10324
10325fi
10326{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10327$as_echo "$lt_cv_dlopen_self_static" >&6; }
10328    fi
10329
10330    CPPFLAGS="$save_CPPFLAGS"
10331    LDFLAGS="$save_LDFLAGS"
10332    LIBS="$save_LIBS"
10333    ;;
10334  esac
10335
10336  case $lt_cv_dlopen_self in
10337  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10338  *) enable_dlopen_self=unknown ;;
10339  esac
10340
10341  case $lt_cv_dlopen_self_static in
10342  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10343  *) enable_dlopen_self_static=unknown ;;
10344  esac
10345fi
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363striplib=
10364old_striplib=
10365{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10366$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10367if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10368  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10369  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10370  { $as_echo "$as_me:$LINENO: result: yes" >&5
10371$as_echo "yes" >&6; }
10372else
10373# FIXME - insert some real tests, host_os isn't really good enough
10374  case $host_os in
10375  darwin*)
10376    if test -n "$STRIP" ; then
10377      striplib="$STRIP -x"
10378      old_striplib="$STRIP -S"
10379      { $as_echo "$as_me:$LINENO: result: yes" >&5
10380$as_echo "yes" >&6; }
10381    else
10382      { $as_echo "$as_me:$LINENO: result: no" >&5
10383$as_echo "no" >&6; }
10384    fi
10385    ;;
10386  *)
10387    { $as_echo "$as_me:$LINENO: result: no" >&5
10388$as_echo "no" >&6; }
10389    ;;
10390  esac
10391fi
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404  # Report which library types will actually be built
10405  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10406$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10407  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10408$as_echo "$can_build_shared" >&6; }
10409
10410  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10411$as_echo_n "checking whether to build shared libraries... " >&6; }
10412  test "$can_build_shared" = "no" && enable_shared=no
10413
10414  # On AIX, shared libraries and static libraries use the same namespace, and
10415  # are all built from PIC.
10416  case $host_os in
10417  aix3*)
10418    test "$enable_shared" = yes && enable_static=no
10419    if test -n "$RANLIB"; then
10420      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10421      postinstall_cmds='$RANLIB $lib'
10422    fi
10423    ;;
10424
10425  aix[4-9]*)
10426    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10427      test "$enable_shared" = yes && enable_static=no
10428    fi
10429    ;;
10430  esac
10431  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10432$as_echo "$enable_shared" >&6; }
10433
10434  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10435$as_echo_n "checking whether to build static libraries... " >&6; }
10436  # Make sure either enable_shared or enable_static is yes.
10437  test "$enable_shared" = yes || enable_static=yes
10438  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10439$as_echo "$enable_static" >&6; }
10440
10441
10442
10443
10444fi
10445ac_ext=c
10446ac_cpp='$CPP $CPPFLAGS'
10447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10449ac_compiler_gnu=$ac_cv_c_compiler_gnu
10450
10451CC="$lt_save_CC"
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465        ac_config_commands="$ac_config_commands libtool"
10466
10467
10468
10469
10470# Only expand once:
10471
10472
10473# Find a good install program.  We prefer a C program (faster),
10474# so one script is as good as another.  But avoid the broken or
10475# incompatible versions:
10476# SysV /etc/install, /usr/sbin/install
10477# SunOS /usr/etc/install
10478# IRIX /sbin/install
10479# AIX /bin/install
10480# AmigaOS /C/install, which installs bootblocks on floppy discs
10481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10482# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10484# OS/2's system install, which has a completely different semantic
10485# ./install, which can be erroneously created by make from ./install.sh.
10486# Reject install programs that cannot install multiple files.
10487{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10488$as_echo_n "checking for a BSD-compatible install... " >&6; }
10489if test -z "$INSTALL"; then
10490if test "${ac_cv_path_install+set}" = set; then
10491  $as_echo_n "(cached) " >&6
10492else
10493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494for as_dir in $PATH
10495do
10496  IFS=$as_save_IFS
10497  test -z "$as_dir" && as_dir=.
10498  # Account for people who put trailing slashes in PATH elements.
10499case $as_dir/ in
10500  ./ | .// | /cC/* | \
10501  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10502  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10503  /usr/ucb/* ) ;;
10504  *)
10505    # OSF1 and SCO ODT 3.0 have their own names for install.
10506    # Don't use installbsd from OSF since it installs stuff as root
10507    # by default.
10508    for ac_prog in ginstall scoinst install; do
10509      for ac_exec_ext in '' $ac_executable_extensions; do
10510	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10511	  if test $ac_prog = install &&
10512	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10513	    # AIX install.  It has an incompatible calling convention.
10514	    :
10515	  elif test $ac_prog = install &&
10516	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10517	    # program-specific install script used by HP pwplus--don't use.
10518	    :
10519	  else
10520	    rm -rf conftest.one conftest.two conftest.dir
10521	    echo one > conftest.one
10522	    echo two > conftest.two
10523	    mkdir conftest.dir
10524	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10525	      test -s conftest.one && test -s conftest.two &&
10526	      test -s conftest.dir/conftest.one &&
10527	      test -s conftest.dir/conftest.two
10528	    then
10529	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10530	      break 3
10531	    fi
10532	  fi
10533	fi
10534      done
10535    done
10536    ;;
10537esac
10538
10539done
10540IFS=$as_save_IFS
10541
10542rm -rf conftest.one conftest.two conftest.dir
10543
10544fi
10545  if test "${ac_cv_path_install+set}" = set; then
10546    INSTALL=$ac_cv_path_install
10547  else
10548    # As a last resort, use the slow shell script.  Don't cache a
10549    # value for INSTALL within a source directory, because that will
10550    # break other packages using the cache if that directory is
10551    # removed, or if the value is a relative name.
10552    INSTALL=$ac_install_sh
10553  fi
10554fi
10555{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10556$as_echo "$INSTALL" >&6; }
10557
10558# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10559# It thinks the first close brace ends the variable substitution.
10560test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10561
10562test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10563
10564test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10565
10566for ac_prog in gawk mawk nawk awk
10567do
10568  # Extract the first word of "$ac_prog", so it can be a program name with args.
10569set dummy $ac_prog; ac_word=$2
10570{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10571$as_echo_n "checking for $ac_word... " >&6; }
10572if test "${ac_cv_prog_AWK+set}" = set; then
10573  $as_echo_n "(cached) " >&6
10574else
10575  if test -n "$AWK"; then
10576  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10577else
10578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579for as_dir in $PATH
10580do
10581  IFS=$as_save_IFS
10582  test -z "$as_dir" && as_dir=.
10583  for ac_exec_ext in '' $ac_executable_extensions; do
10584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10585    ac_cv_prog_AWK="$ac_prog"
10586    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10587    break 2
10588  fi
10589done
10590done
10591IFS=$as_save_IFS
10592
10593fi
10594fi
10595AWK=$ac_cv_prog_AWK
10596if test -n "$AWK"; then
10597  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10598$as_echo "$AWK" >&6; }
10599else
10600  { $as_echo "$as_me:$LINENO: result: no" >&5
10601$as_echo "no" >&6; }
10602fi
10603
10604
10605  test -n "$AWK" && break
10606done
10607
10608
10609#########
10610# Enable large file support (if special flags are necessary)
10611#
10612# Check whether --enable-largefile was given.
10613if test "${enable_largefile+set}" = set; then
10614  enableval=$enable_largefile;
10615fi
10616
10617if test "$enable_largefile" != no; then
10618
10619  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10620$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10621if test "${ac_cv_sys_largefile_CC+set}" = set; then
10622  $as_echo_n "(cached) " >&6
10623else
10624  ac_cv_sys_largefile_CC=no
10625     if test "$GCC" != yes; then
10626       ac_save_CC=$CC
10627       while :; do
10628	 # IRIX 6.2 and later do not support large files by default,
10629	 # so use the C compiler's -n32 option if that helps.
10630	 cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h.  */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h.  */
10636#include <sys/types.h>
10637 /* Check that off_t can represent 2**63 - 1 correctly.
10638    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10639    since some C++ compilers masquerading as C compilers
10640    incorrectly reject 9223372036854775807.  */
10641#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10642  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10643		       && LARGE_OFF_T % 2147483647 == 1)
10644		      ? 1 : -1];
10645int
10646main ()
10647{
10648
10649  ;
10650  return 0;
10651}
10652_ACEOF
10653	 rm -f conftest.$ac_objext
10654if { (ac_try="$ac_compile"
10655case "(($ac_try" in
10656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657  *) ac_try_echo=$ac_try;;
10658esac
10659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10660$as_echo "$ac_try_echo") >&5
10661  (eval "$ac_compile") 2>conftest.er1
10662  ac_status=$?
10663  grep -v '^ *+' conftest.er1 >conftest.err
10664  rm -f conftest.er1
10665  cat conftest.err >&5
10666  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667  (exit $ac_status); } && {
10668	 test -z "$ac_c_werror_flag" ||
10669	 test ! -s conftest.err
10670       } && test -s conftest.$ac_objext; then
10671  break
10672else
10673  $as_echo "$as_me: failed program was:" >&5
10674sed 's/^/| /' conftest.$ac_ext >&5
10675
10676
10677fi
10678
10679rm -f core conftest.err conftest.$ac_objext
10680	 CC="$CC -n32"
10681	 rm -f conftest.$ac_objext
10682if { (ac_try="$ac_compile"
10683case "(($ac_try" in
10684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685  *) ac_try_echo=$ac_try;;
10686esac
10687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10688$as_echo "$ac_try_echo") >&5
10689  (eval "$ac_compile") 2>conftest.er1
10690  ac_status=$?
10691  grep -v '^ *+' conftest.er1 >conftest.err
10692  rm -f conftest.er1
10693  cat conftest.err >&5
10694  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695  (exit $ac_status); } && {
10696	 test -z "$ac_c_werror_flag" ||
10697	 test ! -s conftest.err
10698       } && test -s conftest.$ac_objext; then
10699  ac_cv_sys_largefile_CC=' -n32'; break
10700else
10701  $as_echo "$as_me: failed program was:" >&5
10702sed 's/^/| /' conftest.$ac_ext >&5
10703
10704
10705fi
10706
10707rm -f core conftest.err conftest.$ac_objext
10708	 break
10709       done
10710       CC=$ac_save_CC
10711       rm -f conftest.$ac_ext
10712    fi
10713fi
10714{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10715$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10716  if test "$ac_cv_sys_largefile_CC" != no; then
10717    CC=$CC$ac_cv_sys_largefile_CC
10718  fi
10719
10720  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10721$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10722if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10723  $as_echo_n "(cached) " >&6
10724else
10725  while :; do
10726  cat >conftest.$ac_ext <<_ACEOF
10727/* confdefs.h.  */
10728_ACEOF
10729cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h.  */
10732#include <sys/types.h>
10733 /* Check that off_t can represent 2**63 - 1 correctly.
10734    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10735    since some C++ compilers masquerading as C compilers
10736    incorrectly reject 9223372036854775807.  */
10737#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10738  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10739		       && LARGE_OFF_T % 2147483647 == 1)
10740		      ? 1 : -1];
10741int
10742main ()
10743{
10744
10745  ;
10746  return 0;
10747}
10748_ACEOF
10749rm -f conftest.$ac_objext
10750if { (ac_try="$ac_compile"
10751case "(($ac_try" in
10752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753  *) ac_try_echo=$ac_try;;
10754esac
10755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10756$as_echo "$ac_try_echo") >&5
10757  (eval "$ac_compile") 2>conftest.er1
10758  ac_status=$?
10759  grep -v '^ *+' conftest.er1 >conftest.err
10760  rm -f conftest.er1
10761  cat conftest.err >&5
10762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763  (exit $ac_status); } && {
10764	 test -z "$ac_c_werror_flag" ||
10765	 test ! -s conftest.err
10766       } && test -s conftest.$ac_objext; then
10767  ac_cv_sys_file_offset_bits=no; break
10768else
10769  $as_echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
10772
10773fi
10774
10775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776  cat >conftest.$ac_ext <<_ACEOF
10777/* confdefs.h.  */
10778_ACEOF
10779cat confdefs.h >>conftest.$ac_ext
10780cat >>conftest.$ac_ext <<_ACEOF
10781/* end confdefs.h.  */
10782#define _FILE_OFFSET_BITS 64
10783#include <sys/types.h>
10784 /* Check that off_t can represent 2**63 - 1 correctly.
10785    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10786    since some C++ compilers masquerading as C compilers
10787    incorrectly reject 9223372036854775807.  */
10788#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10789  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10790		       && LARGE_OFF_T % 2147483647 == 1)
10791		      ? 1 : -1];
10792int
10793main ()
10794{
10795
10796  ;
10797  return 0;
10798}
10799_ACEOF
10800rm -f conftest.$ac_objext
10801if { (ac_try="$ac_compile"
10802case "(($ac_try" in
10803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804  *) ac_try_echo=$ac_try;;
10805esac
10806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10807$as_echo "$ac_try_echo") >&5
10808  (eval "$ac_compile") 2>conftest.er1
10809  ac_status=$?
10810  grep -v '^ *+' conftest.er1 >conftest.err
10811  rm -f conftest.er1
10812  cat conftest.err >&5
10813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814  (exit $ac_status); } && {
10815	 test -z "$ac_c_werror_flag" ||
10816	 test ! -s conftest.err
10817       } && test -s conftest.$ac_objext; then
10818  ac_cv_sys_file_offset_bits=64; break
10819else
10820  $as_echo "$as_me: failed program was:" >&5
10821sed 's/^/| /' conftest.$ac_ext >&5
10822
10823
10824fi
10825
10826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827  ac_cv_sys_file_offset_bits=unknown
10828  break
10829done
10830fi
10831{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10832$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10833case $ac_cv_sys_file_offset_bits in #(
10834  no | unknown) ;;
10835  *)
10836cat >>confdefs.h <<_ACEOF
10837#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10838_ACEOF
10839;;
10840esac
10841rm -rf conftest*
10842  if test $ac_cv_sys_file_offset_bits = unknown; then
10843    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10844$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10845if test "${ac_cv_sys_large_files+set}" = set; then
10846  $as_echo_n "(cached) " >&6
10847else
10848  while :; do
10849  cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h.  */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h.  */
10855#include <sys/types.h>
10856 /* Check that off_t can represent 2**63 - 1 correctly.
10857    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10858    since some C++ compilers masquerading as C compilers
10859    incorrectly reject 9223372036854775807.  */
10860#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10861  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10862		       && LARGE_OFF_T % 2147483647 == 1)
10863		      ? 1 : -1];
10864int
10865main ()
10866{
10867
10868  ;
10869  return 0;
10870}
10871_ACEOF
10872rm -f conftest.$ac_objext
10873if { (ac_try="$ac_compile"
10874case "(($ac_try" in
10875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876  *) ac_try_echo=$ac_try;;
10877esac
10878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10879$as_echo "$ac_try_echo") >&5
10880  (eval "$ac_compile") 2>conftest.er1
10881  ac_status=$?
10882  grep -v '^ *+' conftest.er1 >conftest.err
10883  rm -f conftest.er1
10884  cat conftest.err >&5
10885  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886  (exit $ac_status); } && {
10887	 test -z "$ac_c_werror_flag" ||
10888	 test ! -s conftest.err
10889       } && test -s conftest.$ac_objext; then
10890  ac_cv_sys_large_files=no; break
10891else
10892  $as_echo "$as_me: failed program was:" >&5
10893sed 's/^/| /' conftest.$ac_ext >&5
10894
10895
10896fi
10897
10898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899  cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h.  */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h.  */
10905#define _LARGE_FILES 1
10906#include <sys/types.h>
10907 /* Check that off_t can represent 2**63 - 1 correctly.
10908    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10909    since some C++ compilers masquerading as C compilers
10910    incorrectly reject 9223372036854775807.  */
10911#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10912  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10913		       && LARGE_OFF_T % 2147483647 == 1)
10914		      ? 1 : -1];
10915int
10916main ()
10917{
10918
10919  ;
10920  return 0;
10921}
10922_ACEOF
10923rm -f conftest.$ac_objext
10924if { (ac_try="$ac_compile"
10925case "(($ac_try" in
10926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927  *) ac_try_echo=$ac_try;;
10928esac
10929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10930$as_echo "$ac_try_echo") >&5
10931  (eval "$ac_compile") 2>conftest.er1
10932  ac_status=$?
10933  grep -v '^ *+' conftest.er1 >conftest.err
10934  rm -f conftest.er1
10935  cat conftest.err >&5
10936  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937  (exit $ac_status); } && {
10938	 test -z "$ac_c_werror_flag" ||
10939	 test ! -s conftest.err
10940       } && test -s conftest.$ac_objext; then
10941  ac_cv_sys_large_files=1; break
10942else
10943  $as_echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946
10947fi
10948
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950  ac_cv_sys_large_files=unknown
10951  break
10952done
10953fi
10954{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10955$as_echo "$ac_cv_sys_large_files" >&6; }
10956case $ac_cv_sys_large_files in #(
10957  no | unknown) ;;
10958  *)
10959cat >>confdefs.h <<_ACEOF
10960#define _LARGE_FILES $ac_cv_sys_large_files
10961_ACEOF
10962;;
10963esac
10964rm -rf conftest*
10965  fi
10966fi
10967
10968
10969#########
10970# Check for needed/wanted data types
10971{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10972$as_echo_n "checking for int8_t... " >&6; }
10973if test "${ac_cv_type_int8_t+set}" = set; then
10974  $as_echo_n "(cached) " >&6
10975else
10976  ac_cv_type_int8_t=no
10977cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h.  */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
10982/* end confdefs.h.  */
10983$ac_includes_default
10984int
10985main ()
10986{
10987if (sizeof (int8_t))
10988       return 0;
10989  ;
10990  return 0;
10991}
10992_ACEOF
10993rm -f conftest.$ac_objext
10994if { (ac_try="$ac_compile"
10995case "(($ac_try" in
10996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997  *) ac_try_echo=$ac_try;;
10998esac
10999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11000$as_echo "$ac_try_echo") >&5
11001  (eval "$ac_compile") 2>conftest.er1
11002  ac_status=$?
11003  grep -v '^ *+' conftest.er1 >conftest.err
11004  rm -f conftest.er1
11005  cat conftest.err >&5
11006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007  (exit $ac_status); } && {
11008	 test -z "$ac_c_werror_flag" ||
11009	 test ! -s conftest.err
11010       } && test -s conftest.$ac_objext; then
11011  cat >conftest.$ac_ext <<_ACEOF
11012/* confdefs.h.  */
11013_ACEOF
11014cat confdefs.h >>conftest.$ac_ext
11015cat >>conftest.$ac_ext <<_ACEOF
11016/* end confdefs.h.  */
11017$ac_includes_default
11018int
11019main ()
11020{
11021if (sizeof ((int8_t)))
11022	  return 0;
11023  ;
11024  return 0;
11025}
11026_ACEOF
11027rm -f conftest.$ac_objext
11028if { (ac_try="$ac_compile"
11029case "(($ac_try" in
11030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031  *) ac_try_echo=$ac_try;;
11032esac
11033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11034$as_echo "$ac_try_echo") >&5
11035  (eval "$ac_compile") 2>conftest.er1
11036  ac_status=$?
11037  grep -v '^ *+' conftest.er1 >conftest.err
11038  rm -f conftest.er1
11039  cat conftest.err >&5
11040  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041  (exit $ac_status); } && {
11042	 test -z "$ac_c_werror_flag" ||
11043	 test ! -s conftest.err
11044       } && test -s conftest.$ac_objext; then
11045  :
11046else
11047  $as_echo "$as_me: failed program was:" >&5
11048sed 's/^/| /' conftest.$ac_ext >&5
11049
11050	ac_cv_type_int8_t=yes
11051fi
11052
11053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054else
11055  $as_echo "$as_me: failed program was:" >&5
11056sed 's/^/| /' conftest.$ac_ext >&5
11057
11058
11059fi
11060
11061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062fi
11063{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11064$as_echo "$ac_cv_type_int8_t" >&6; }
11065if test $ac_cv_type_int8_t = yes; then
11066
11067cat >>confdefs.h <<_ACEOF
11068#define HAVE_INT8_T 1
11069_ACEOF
11070
11071
11072fi
11073{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11074$as_echo_n "checking for int16_t... " >&6; }
11075if test "${ac_cv_type_int16_t+set}" = set; then
11076  $as_echo_n "(cached) " >&6
11077else
11078  ac_cv_type_int16_t=no
11079cat >conftest.$ac_ext <<_ACEOF
11080/* confdefs.h.  */
11081_ACEOF
11082cat confdefs.h >>conftest.$ac_ext
11083cat >>conftest.$ac_ext <<_ACEOF
11084/* end confdefs.h.  */
11085$ac_includes_default
11086int
11087main ()
11088{
11089if (sizeof (int16_t))
11090       return 0;
11091  ;
11092  return 0;
11093}
11094_ACEOF
11095rm -f conftest.$ac_objext
11096if { (ac_try="$ac_compile"
11097case "(($ac_try" in
11098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099  *) ac_try_echo=$ac_try;;
11100esac
11101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102$as_echo "$ac_try_echo") >&5
11103  (eval "$ac_compile") 2>conftest.er1
11104  ac_status=$?
11105  grep -v '^ *+' conftest.er1 >conftest.err
11106  rm -f conftest.er1
11107  cat conftest.err >&5
11108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109  (exit $ac_status); } && {
11110	 test -z "$ac_c_werror_flag" ||
11111	 test ! -s conftest.err
11112       } && test -s conftest.$ac_objext; then
11113  cat >conftest.$ac_ext <<_ACEOF
11114/* confdefs.h.  */
11115_ACEOF
11116cat confdefs.h >>conftest.$ac_ext
11117cat >>conftest.$ac_ext <<_ACEOF
11118/* end confdefs.h.  */
11119$ac_includes_default
11120int
11121main ()
11122{
11123if (sizeof ((int16_t)))
11124	  return 0;
11125  ;
11126  return 0;
11127}
11128_ACEOF
11129rm -f conftest.$ac_objext
11130if { (ac_try="$ac_compile"
11131case "(($ac_try" in
11132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133  *) ac_try_echo=$ac_try;;
11134esac
11135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11136$as_echo "$ac_try_echo") >&5
11137  (eval "$ac_compile") 2>conftest.er1
11138  ac_status=$?
11139  grep -v '^ *+' conftest.er1 >conftest.err
11140  rm -f conftest.er1
11141  cat conftest.err >&5
11142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143  (exit $ac_status); } && {
11144	 test -z "$ac_c_werror_flag" ||
11145	 test ! -s conftest.err
11146       } && test -s conftest.$ac_objext; then
11147  :
11148else
11149  $as_echo "$as_me: failed program was:" >&5
11150sed 's/^/| /' conftest.$ac_ext >&5
11151
11152	ac_cv_type_int16_t=yes
11153fi
11154
11155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156else
11157  $as_echo "$as_me: failed program was:" >&5
11158sed 's/^/| /' conftest.$ac_ext >&5
11159
11160
11161fi
11162
11163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164fi
11165{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11166$as_echo "$ac_cv_type_int16_t" >&6; }
11167if test $ac_cv_type_int16_t = yes; then
11168
11169cat >>confdefs.h <<_ACEOF
11170#define HAVE_INT16_T 1
11171_ACEOF
11172
11173
11174fi
11175{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11176$as_echo_n "checking for int32_t... " >&6; }
11177if test "${ac_cv_type_int32_t+set}" = set; then
11178  $as_echo_n "(cached) " >&6
11179else
11180  ac_cv_type_int32_t=no
11181cat >conftest.$ac_ext <<_ACEOF
11182/* confdefs.h.  */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h.  */
11187$ac_includes_default
11188int
11189main ()
11190{
11191if (sizeof (int32_t))
11192       return 0;
11193  ;
11194  return 0;
11195}
11196_ACEOF
11197rm -f conftest.$ac_objext
11198if { (ac_try="$ac_compile"
11199case "(($ac_try" in
11200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201  *) ac_try_echo=$ac_try;;
11202esac
11203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11204$as_echo "$ac_try_echo") >&5
11205  (eval "$ac_compile") 2>conftest.er1
11206  ac_status=$?
11207  grep -v '^ *+' conftest.er1 >conftest.err
11208  rm -f conftest.er1
11209  cat conftest.err >&5
11210  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211  (exit $ac_status); } && {
11212	 test -z "$ac_c_werror_flag" ||
11213	 test ! -s conftest.err
11214       } && test -s conftest.$ac_objext; then
11215  cat >conftest.$ac_ext <<_ACEOF
11216/* confdefs.h.  */
11217_ACEOF
11218cat confdefs.h >>conftest.$ac_ext
11219cat >>conftest.$ac_ext <<_ACEOF
11220/* end confdefs.h.  */
11221$ac_includes_default
11222int
11223main ()
11224{
11225if (sizeof ((int32_t)))
11226	  return 0;
11227  ;
11228  return 0;
11229}
11230_ACEOF
11231rm -f conftest.$ac_objext
11232if { (ac_try="$ac_compile"
11233case "(($ac_try" in
11234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235  *) ac_try_echo=$ac_try;;
11236esac
11237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11238$as_echo "$ac_try_echo") >&5
11239  (eval "$ac_compile") 2>conftest.er1
11240  ac_status=$?
11241  grep -v '^ *+' conftest.er1 >conftest.err
11242  rm -f conftest.er1
11243  cat conftest.err >&5
11244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245  (exit $ac_status); } && {
11246	 test -z "$ac_c_werror_flag" ||
11247	 test ! -s conftest.err
11248       } && test -s conftest.$ac_objext; then
11249  :
11250else
11251  $as_echo "$as_me: failed program was:" >&5
11252sed 's/^/| /' conftest.$ac_ext >&5
11253
11254	ac_cv_type_int32_t=yes
11255fi
11256
11257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258else
11259  $as_echo "$as_me: failed program was:" >&5
11260sed 's/^/| /' conftest.$ac_ext >&5
11261
11262
11263fi
11264
11265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266fi
11267{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11268$as_echo "$ac_cv_type_int32_t" >&6; }
11269if test $ac_cv_type_int32_t = yes; then
11270
11271cat >>confdefs.h <<_ACEOF
11272#define HAVE_INT32_T 1
11273_ACEOF
11274
11275
11276fi
11277{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11278$as_echo_n "checking for int64_t... " >&6; }
11279if test "${ac_cv_type_int64_t+set}" = set; then
11280  $as_echo_n "(cached) " >&6
11281else
11282  ac_cv_type_int64_t=no
11283cat >conftest.$ac_ext <<_ACEOF
11284/* confdefs.h.  */
11285_ACEOF
11286cat confdefs.h >>conftest.$ac_ext
11287cat >>conftest.$ac_ext <<_ACEOF
11288/* end confdefs.h.  */
11289$ac_includes_default
11290int
11291main ()
11292{
11293if (sizeof (int64_t))
11294       return 0;
11295  ;
11296  return 0;
11297}
11298_ACEOF
11299rm -f conftest.$ac_objext
11300if { (ac_try="$ac_compile"
11301case "(($ac_try" in
11302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303  *) ac_try_echo=$ac_try;;
11304esac
11305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11306$as_echo "$ac_try_echo") >&5
11307  (eval "$ac_compile") 2>conftest.er1
11308  ac_status=$?
11309  grep -v '^ *+' conftest.er1 >conftest.err
11310  rm -f conftest.er1
11311  cat conftest.err >&5
11312  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313  (exit $ac_status); } && {
11314	 test -z "$ac_c_werror_flag" ||
11315	 test ! -s conftest.err
11316       } && test -s conftest.$ac_objext; then
11317  cat >conftest.$ac_ext <<_ACEOF
11318/* confdefs.h.  */
11319_ACEOF
11320cat confdefs.h >>conftest.$ac_ext
11321cat >>conftest.$ac_ext <<_ACEOF
11322/* end confdefs.h.  */
11323$ac_includes_default
11324int
11325main ()
11326{
11327if (sizeof ((int64_t)))
11328	  return 0;
11329  ;
11330  return 0;
11331}
11332_ACEOF
11333rm -f conftest.$ac_objext
11334if { (ac_try="$ac_compile"
11335case "(($ac_try" in
11336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337  *) ac_try_echo=$ac_try;;
11338esac
11339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11340$as_echo "$ac_try_echo") >&5
11341  (eval "$ac_compile") 2>conftest.er1
11342  ac_status=$?
11343  grep -v '^ *+' conftest.er1 >conftest.err
11344  rm -f conftest.er1
11345  cat conftest.err >&5
11346  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347  (exit $ac_status); } && {
11348	 test -z "$ac_c_werror_flag" ||
11349	 test ! -s conftest.err
11350       } && test -s conftest.$ac_objext; then
11351  :
11352else
11353  $as_echo "$as_me: failed program was:" >&5
11354sed 's/^/| /' conftest.$ac_ext >&5
11355
11356	ac_cv_type_int64_t=yes
11357fi
11358
11359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360else
11361  $as_echo "$as_me: failed program was:" >&5
11362sed 's/^/| /' conftest.$ac_ext >&5
11363
11364
11365fi
11366
11367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368fi
11369{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11370$as_echo "$ac_cv_type_int64_t" >&6; }
11371if test $ac_cv_type_int64_t = yes; then
11372
11373cat >>confdefs.h <<_ACEOF
11374#define HAVE_INT64_T 1
11375_ACEOF
11376
11377
11378fi
11379{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11380$as_echo_n "checking for intptr_t... " >&6; }
11381if test "${ac_cv_type_intptr_t+set}" = set; then
11382  $as_echo_n "(cached) " >&6
11383else
11384  ac_cv_type_intptr_t=no
11385cat >conftest.$ac_ext <<_ACEOF
11386/* confdefs.h.  */
11387_ACEOF
11388cat confdefs.h >>conftest.$ac_ext
11389cat >>conftest.$ac_ext <<_ACEOF
11390/* end confdefs.h.  */
11391$ac_includes_default
11392int
11393main ()
11394{
11395if (sizeof (intptr_t))
11396       return 0;
11397  ;
11398  return 0;
11399}
11400_ACEOF
11401rm -f conftest.$ac_objext
11402if { (ac_try="$ac_compile"
11403case "(($ac_try" in
11404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405  *) ac_try_echo=$ac_try;;
11406esac
11407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11408$as_echo "$ac_try_echo") >&5
11409  (eval "$ac_compile") 2>conftest.er1
11410  ac_status=$?
11411  grep -v '^ *+' conftest.er1 >conftest.err
11412  rm -f conftest.er1
11413  cat conftest.err >&5
11414  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415  (exit $ac_status); } && {
11416	 test -z "$ac_c_werror_flag" ||
11417	 test ! -s conftest.err
11418       } && test -s conftest.$ac_objext; then
11419  cat >conftest.$ac_ext <<_ACEOF
11420/* confdefs.h.  */
11421_ACEOF
11422cat confdefs.h >>conftest.$ac_ext
11423cat >>conftest.$ac_ext <<_ACEOF
11424/* end confdefs.h.  */
11425$ac_includes_default
11426int
11427main ()
11428{
11429if (sizeof ((intptr_t)))
11430	  return 0;
11431  ;
11432  return 0;
11433}
11434_ACEOF
11435rm -f conftest.$ac_objext
11436if { (ac_try="$ac_compile"
11437case "(($ac_try" in
11438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439  *) ac_try_echo=$ac_try;;
11440esac
11441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11442$as_echo "$ac_try_echo") >&5
11443  (eval "$ac_compile") 2>conftest.er1
11444  ac_status=$?
11445  grep -v '^ *+' conftest.er1 >conftest.err
11446  rm -f conftest.er1
11447  cat conftest.err >&5
11448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449  (exit $ac_status); } && {
11450	 test -z "$ac_c_werror_flag" ||
11451	 test ! -s conftest.err
11452       } && test -s conftest.$ac_objext; then
11453  :
11454else
11455  $as_echo "$as_me: failed program was:" >&5
11456sed 's/^/| /' conftest.$ac_ext >&5
11457
11458	ac_cv_type_intptr_t=yes
11459fi
11460
11461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462else
11463  $as_echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
11466
11467fi
11468
11469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470fi
11471{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11472$as_echo "$ac_cv_type_intptr_t" >&6; }
11473if test $ac_cv_type_intptr_t = yes; then
11474
11475cat >>confdefs.h <<_ACEOF
11476#define HAVE_INTPTR_T 1
11477_ACEOF
11478
11479
11480fi
11481{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11482$as_echo_n "checking for uint8_t... " >&6; }
11483if test "${ac_cv_type_uint8_t+set}" = set; then
11484  $as_echo_n "(cached) " >&6
11485else
11486  ac_cv_type_uint8_t=no
11487cat >conftest.$ac_ext <<_ACEOF
11488/* confdefs.h.  */
11489_ACEOF
11490cat confdefs.h >>conftest.$ac_ext
11491cat >>conftest.$ac_ext <<_ACEOF
11492/* end confdefs.h.  */
11493$ac_includes_default
11494int
11495main ()
11496{
11497if (sizeof (uint8_t))
11498       return 0;
11499  ;
11500  return 0;
11501}
11502_ACEOF
11503rm -f conftest.$ac_objext
11504if { (ac_try="$ac_compile"
11505case "(($ac_try" in
11506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507  *) ac_try_echo=$ac_try;;
11508esac
11509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11510$as_echo "$ac_try_echo") >&5
11511  (eval "$ac_compile") 2>conftest.er1
11512  ac_status=$?
11513  grep -v '^ *+' conftest.er1 >conftest.err
11514  rm -f conftest.er1
11515  cat conftest.err >&5
11516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517  (exit $ac_status); } && {
11518	 test -z "$ac_c_werror_flag" ||
11519	 test ! -s conftest.err
11520       } && test -s conftest.$ac_objext; then
11521  cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h.  */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h.  */
11527$ac_includes_default
11528int
11529main ()
11530{
11531if (sizeof ((uint8_t)))
11532	  return 0;
11533  ;
11534  return 0;
11535}
11536_ACEOF
11537rm -f conftest.$ac_objext
11538if { (ac_try="$ac_compile"
11539case "(($ac_try" in
11540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541  *) ac_try_echo=$ac_try;;
11542esac
11543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11544$as_echo "$ac_try_echo") >&5
11545  (eval "$ac_compile") 2>conftest.er1
11546  ac_status=$?
11547  grep -v '^ *+' conftest.er1 >conftest.err
11548  rm -f conftest.er1
11549  cat conftest.err >&5
11550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551  (exit $ac_status); } && {
11552	 test -z "$ac_c_werror_flag" ||
11553	 test ! -s conftest.err
11554       } && test -s conftest.$ac_objext; then
11555  :
11556else
11557  $as_echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
11560	ac_cv_type_uint8_t=yes
11561fi
11562
11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564else
11565  $as_echo "$as_me: failed program was:" >&5
11566sed 's/^/| /' conftest.$ac_ext >&5
11567
11568
11569fi
11570
11571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11572fi
11573{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11574$as_echo "$ac_cv_type_uint8_t" >&6; }
11575if test $ac_cv_type_uint8_t = yes; then
11576
11577cat >>confdefs.h <<_ACEOF
11578#define HAVE_UINT8_T 1
11579_ACEOF
11580
11581
11582fi
11583{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11584$as_echo_n "checking for uint16_t... " >&6; }
11585if test "${ac_cv_type_uint16_t+set}" = set; then
11586  $as_echo_n "(cached) " >&6
11587else
11588  ac_cv_type_uint16_t=no
11589cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h.  */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h.  */
11595$ac_includes_default
11596int
11597main ()
11598{
11599if (sizeof (uint16_t))
11600       return 0;
11601  ;
11602  return 0;
11603}
11604_ACEOF
11605rm -f conftest.$ac_objext
11606if { (ac_try="$ac_compile"
11607case "(($ac_try" in
11608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609  *) ac_try_echo=$ac_try;;
11610esac
11611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11612$as_echo "$ac_try_echo") >&5
11613  (eval "$ac_compile") 2>conftest.er1
11614  ac_status=$?
11615  grep -v '^ *+' conftest.er1 >conftest.err
11616  rm -f conftest.er1
11617  cat conftest.err >&5
11618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619  (exit $ac_status); } && {
11620	 test -z "$ac_c_werror_flag" ||
11621	 test ! -s conftest.err
11622       } && test -s conftest.$ac_objext; then
11623  cat >conftest.$ac_ext <<_ACEOF
11624/* confdefs.h.  */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h.  */
11629$ac_includes_default
11630int
11631main ()
11632{
11633if (sizeof ((uint16_t)))
11634	  return 0;
11635  ;
11636  return 0;
11637}
11638_ACEOF
11639rm -f conftest.$ac_objext
11640if { (ac_try="$ac_compile"
11641case "(($ac_try" in
11642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643  *) ac_try_echo=$ac_try;;
11644esac
11645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11646$as_echo "$ac_try_echo") >&5
11647  (eval "$ac_compile") 2>conftest.er1
11648  ac_status=$?
11649  grep -v '^ *+' conftest.er1 >conftest.err
11650  rm -f conftest.er1
11651  cat conftest.err >&5
11652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653  (exit $ac_status); } && {
11654	 test -z "$ac_c_werror_flag" ||
11655	 test ! -s conftest.err
11656       } && test -s conftest.$ac_objext; then
11657  :
11658else
11659  $as_echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
11661
11662	ac_cv_type_uint16_t=yes
11663fi
11664
11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666else
11667  $as_echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670
11671fi
11672
11673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11674fi
11675{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11676$as_echo "$ac_cv_type_uint16_t" >&6; }
11677if test $ac_cv_type_uint16_t = yes; then
11678
11679cat >>confdefs.h <<_ACEOF
11680#define HAVE_UINT16_T 1
11681_ACEOF
11682
11683
11684fi
11685{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11686$as_echo_n "checking for uint32_t... " >&6; }
11687if test "${ac_cv_type_uint32_t+set}" = set; then
11688  $as_echo_n "(cached) " >&6
11689else
11690  ac_cv_type_uint32_t=no
11691cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h.  */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h.  */
11697$ac_includes_default
11698int
11699main ()
11700{
11701if (sizeof (uint32_t))
11702       return 0;
11703  ;
11704  return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext
11708if { (ac_try="$ac_compile"
11709case "(($ac_try" in
11710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711  *) ac_try_echo=$ac_try;;
11712esac
11713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11714$as_echo "$ac_try_echo") >&5
11715  (eval "$ac_compile") 2>conftest.er1
11716  ac_status=$?
11717  grep -v '^ *+' conftest.er1 >conftest.err
11718  rm -f conftest.er1
11719  cat conftest.err >&5
11720  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721  (exit $ac_status); } && {
11722	 test -z "$ac_c_werror_flag" ||
11723	 test ! -s conftest.err
11724       } && test -s conftest.$ac_objext; then
11725  cat >conftest.$ac_ext <<_ACEOF
11726/* confdefs.h.  */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h.  */
11731$ac_includes_default
11732int
11733main ()
11734{
11735if (sizeof ((uint32_t)))
11736	  return 0;
11737  ;
11738  return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext
11742if { (ac_try="$ac_compile"
11743case "(($ac_try" in
11744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745  *) ac_try_echo=$ac_try;;
11746esac
11747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11748$as_echo "$ac_try_echo") >&5
11749  (eval "$ac_compile") 2>conftest.er1
11750  ac_status=$?
11751  grep -v '^ *+' conftest.er1 >conftest.err
11752  rm -f conftest.er1
11753  cat conftest.err >&5
11754  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755  (exit $ac_status); } && {
11756	 test -z "$ac_c_werror_flag" ||
11757	 test ! -s conftest.err
11758       } && test -s conftest.$ac_objext; then
11759  :
11760else
11761  $as_echo "$as_me: failed program was:" >&5
11762sed 's/^/| /' conftest.$ac_ext >&5
11763
11764	ac_cv_type_uint32_t=yes
11765fi
11766
11767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768else
11769  $as_echo "$as_me: failed program was:" >&5
11770sed 's/^/| /' conftest.$ac_ext >&5
11771
11772
11773fi
11774
11775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776fi
11777{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11778$as_echo "$ac_cv_type_uint32_t" >&6; }
11779if test $ac_cv_type_uint32_t = yes; then
11780
11781cat >>confdefs.h <<_ACEOF
11782#define HAVE_UINT32_T 1
11783_ACEOF
11784
11785
11786fi
11787{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11788$as_echo_n "checking for uint64_t... " >&6; }
11789if test "${ac_cv_type_uint64_t+set}" = set; then
11790  $as_echo_n "(cached) " >&6
11791else
11792  ac_cv_type_uint64_t=no
11793cat >conftest.$ac_ext <<_ACEOF
11794/* confdefs.h.  */
11795_ACEOF
11796cat confdefs.h >>conftest.$ac_ext
11797cat >>conftest.$ac_ext <<_ACEOF
11798/* end confdefs.h.  */
11799$ac_includes_default
11800int
11801main ()
11802{
11803if (sizeof (uint64_t))
11804       return 0;
11805  ;
11806  return 0;
11807}
11808_ACEOF
11809rm -f conftest.$ac_objext
11810if { (ac_try="$ac_compile"
11811case "(($ac_try" in
11812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813  *) ac_try_echo=$ac_try;;
11814esac
11815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11816$as_echo "$ac_try_echo") >&5
11817  (eval "$ac_compile") 2>conftest.er1
11818  ac_status=$?
11819  grep -v '^ *+' conftest.er1 >conftest.err
11820  rm -f conftest.er1
11821  cat conftest.err >&5
11822  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823  (exit $ac_status); } && {
11824	 test -z "$ac_c_werror_flag" ||
11825	 test ! -s conftest.err
11826       } && test -s conftest.$ac_objext; then
11827  cat >conftest.$ac_ext <<_ACEOF
11828/* confdefs.h.  */
11829_ACEOF
11830cat confdefs.h >>conftest.$ac_ext
11831cat >>conftest.$ac_ext <<_ACEOF
11832/* end confdefs.h.  */
11833$ac_includes_default
11834int
11835main ()
11836{
11837if (sizeof ((uint64_t)))
11838	  return 0;
11839  ;
11840  return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext
11844if { (ac_try="$ac_compile"
11845case "(($ac_try" in
11846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847  *) ac_try_echo=$ac_try;;
11848esac
11849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11850$as_echo "$ac_try_echo") >&5
11851  (eval "$ac_compile") 2>conftest.er1
11852  ac_status=$?
11853  grep -v '^ *+' conftest.er1 >conftest.err
11854  rm -f conftest.er1
11855  cat conftest.err >&5
11856  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857  (exit $ac_status); } && {
11858	 test -z "$ac_c_werror_flag" ||
11859	 test ! -s conftest.err
11860       } && test -s conftest.$ac_objext; then
11861  :
11862else
11863  $as_echo "$as_me: failed program was:" >&5
11864sed 's/^/| /' conftest.$ac_ext >&5
11865
11866	ac_cv_type_uint64_t=yes
11867fi
11868
11869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870else
11871  $as_echo "$as_me: failed program was:" >&5
11872sed 's/^/| /' conftest.$ac_ext >&5
11873
11874
11875fi
11876
11877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878fi
11879{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11880$as_echo "$ac_cv_type_uint64_t" >&6; }
11881if test $ac_cv_type_uint64_t = yes; then
11882
11883cat >>confdefs.h <<_ACEOF
11884#define HAVE_UINT64_T 1
11885_ACEOF
11886
11887
11888fi
11889{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11890$as_echo_n "checking for uintptr_t... " >&6; }
11891if test "${ac_cv_type_uintptr_t+set}" = set; then
11892  $as_echo_n "(cached) " >&6
11893else
11894  ac_cv_type_uintptr_t=no
11895cat >conftest.$ac_ext <<_ACEOF
11896/* confdefs.h.  */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h.  */
11901$ac_includes_default
11902int
11903main ()
11904{
11905if (sizeof (uintptr_t))
11906       return 0;
11907  ;
11908  return 0;
11909}
11910_ACEOF
11911rm -f conftest.$ac_objext
11912if { (ac_try="$ac_compile"
11913case "(($ac_try" in
11914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915  *) ac_try_echo=$ac_try;;
11916esac
11917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11918$as_echo "$ac_try_echo") >&5
11919  (eval "$ac_compile") 2>conftest.er1
11920  ac_status=$?
11921  grep -v '^ *+' conftest.er1 >conftest.err
11922  rm -f conftest.er1
11923  cat conftest.err >&5
11924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925  (exit $ac_status); } && {
11926	 test -z "$ac_c_werror_flag" ||
11927	 test ! -s conftest.err
11928       } && test -s conftest.$ac_objext; then
11929  cat >conftest.$ac_ext <<_ACEOF
11930/* confdefs.h.  */
11931_ACEOF
11932cat confdefs.h >>conftest.$ac_ext
11933cat >>conftest.$ac_ext <<_ACEOF
11934/* end confdefs.h.  */
11935$ac_includes_default
11936int
11937main ()
11938{
11939if (sizeof ((uintptr_t)))
11940	  return 0;
11941  ;
11942  return 0;
11943}
11944_ACEOF
11945rm -f conftest.$ac_objext
11946if { (ac_try="$ac_compile"
11947case "(($ac_try" in
11948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949  *) ac_try_echo=$ac_try;;
11950esac
11951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11952$as_echo "$ac_try_echo") >&5
11953  (eval "$ac_compile") 2>conftest.er1
11954  ac_status=$?
11955  grep -v '^ *+' conftest.er1 >conftest.err
11956  rm -f conftest.er1
11957  cat conftest.err >&5
11958  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959  (exit $ac_status); } && {
11960	 test -z "$ac_c_werror_flag" ||
11961	 test ! -s conftest.err
11962       } && test -s conftest.$ac_objext; then
11963  :
11964else
11965  $as_echo "$as_me: failed program was:" >&5
11966sed 's/^/| /' conftest.$ac_ext >&5
11967
11968	ac_cv_type_uintptr_t=yes
11969fi
11970
11971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972else
11973  $as_echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
11975
11976
11977fi
11978
11979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980fi
11981{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11982$as_echo "$ac_cv_type_uintptr_t" >&6; }
11983if test $ac_cv_type_uintptr_t = yes; then
11984
11985cat >>confdefs.h <<_ACEOF
11986#define HAVE_UINTPTR_T 1
11987_ACEOF
11988
11989
11990fi
11991
11992
11993#########
11994# Check for needed/wanted headers
11995
11996
11997
11998
11999for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
12000do
12001as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12003  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12004$as_echo_n "checking for $ac_header... " >&6; }
12005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006  $as_echo_n "(cached) " >&6
12007fi
12008ac_res=`eval 'as_val=${'$as_ac_Header'}
12009		 $as_echo "$as_val"'`
12010	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12011$as_echo "$ac_res" >&6; }
12012else
12013  # Is the header compilable?
12014{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12015$as_echo_n "checking $ac_header usability... " >&6; }
12016cat >conftest.$ac_ext <<_ACEOF
12017/* confdefs.h.  */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h.  */
12022$ac_includes_default
12023#include <$ac_header>
12024_ACEOF
12025rm -f conftest.$ac_objext
12026if { (ac_try="$ac_compile"
12027case "(($ac_try" in
12028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029  *) ac_try_echo=$ac_try;;
12030esac
12031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12032$as_echo "$ac_try_echo") >&5
12033  (eval "$ac_compile") 2>conftest.er1
12034  ac_status=$?
12035  grep -v '^ *+' conftest.er1 >conftest.err
12036  rm -f conftest.er1
12037  cat conftest.err >&5
12038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039  (exit $ac_status); } && {
12040	 test -z "$ac_c_werror_flag" ||
12041	 test ! -s conftest.err
12042       } && test -s conftest.$ac_objext; then
12043  ac_header_compiler=yes
12044else
12045  $as_echo "$as_me: failed program was:" >&5
12046sed 's/^/| /' conftest.$ac_ext >&5
12047
12048	ac_header_compiler=no
12049fi
12050
12051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12053$as_echo "$ac_header_compiler" >&6; }
12054
12055# Is the header present?
12056{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12057$as_echo_n "checking $ac_header presence... " >&6; }
12058cat >conftest.$ac_ext <<_ACEOF
12059/* confdefs.h.  */
12060_ACEOF
12061cat confdefs.h >>conftest.$ac_ext
12062cat >>conftest.$ac_ext <<_ACEOF
12063/* end confdefs.h.  */
12064#include <$ac_header>
12065_ACEOF
12066if { (ac_try="$ac_cpp conftest.$ac_ext"
12067case "(($ac_try" in
12068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069  *) ac_try_echo=$ac_try;;
12070esac
12071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12072$as_echo "$ac_try_echo") >&5
12073  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12074  ac_status=$?
12075  grep -v '^ *+' conftest.er1 >conftest.err
12076  rm -f conftest.er1
12077  cat conftest.err >&5
12078  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079  (exit $ac_status); } >/dev/null && {
12080	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12081	 test ! -s conftest.err
12082       }; then
12083  ac_header_preproc=yes
12084else
12085  $as_echo "$as_me: failed program was:" >&5
12086sed 's/^/| /' conftest.$ac_ext >&5
12087
12088  ac_header_preproc=no
12089fi
12090
12091rm -f conftest.err conftest.$ac_ext
12092{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12093$as_echo "$ac_header_preproc" >&6; }
12094
12095# So?  What about this header?
12096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12097  yes:no: )
12098    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12099$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12100    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12101$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12102    ac_header_preproc=yes
12103    ;;
12104  no:yes:* )
12105    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12106$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12107    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12108$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12109    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12110$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12111    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12112$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12113    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12114$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12115    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12116$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12117
12118    ;;
12119esac
12120{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12121$as_echo_n "checking for $ac_header... " >&6; }
12122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123  $as_echo_n "(cached) " >&6
12124else
12125  eval "$as_ac_Header=\$ac_header_preproc"
12126fi
12127ac_res=`eval 'as_val=${'$as_ac_Header'}
12128		 $as_echo "$as_val"'`
12129	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12130$as_echo "$ac_res" >&6; }
12131
12132fi
12133if test `eval 'as_val=${'$as_ac_Header'}
12134		 $as_echo "$as_val"'` = yes; then
12135  cat >>confdefs.h <<_ACEOF
12136#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12137_ACEOF
12138
12139fi
12140
12141done
12142
12143
12144#########
12145# Figure out whether or not we have these functions
12146#
12147
12148
12149
12150
12151
12152for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
12153do
12154as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12155{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12156$as_echo_n "checking for $ac_func... " >&6; }
12157if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12158  $as_echo_n "(cached) " >&6
12159else
12160  cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h.  */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h.  */
12166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12167   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12168#define $ac_func innocuous_$ac_func
12169
12170/* System header to define __stub macros and hopefully few prototypes,
12171    which can conflict with char $ac_func (); below.
12172    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12173    <limits.h> exists even on freestanding compilers.  */
12174
12175#ifdef __STDC__
12176# include <limits.h>
12177#else
12178# include <assert.h>
12179#endif
12180
12181#undef $ac_func
12182
12183/* Override any GCC internal prototype to avoid an error.
12184   Use char because int might match the return type of a GCC
12185   builtin and then its argument prototype would still apply.  */
12186#ifdef __cplusplus
12187extern "C"
12188#endif
12189char $ac_func ();
12190/* The GNU C library defines this for functions which it implements
12191    to always fail with ENOSYS.  Some functions are actually named
12192    something starting with __ and the normal name is an alias.  */
12193#if defined __stub_$ac_func || defined __stub___$ac_func
12194choke me
12195#endif
12196
12197int
12198main ()
12199{
12200return $ac_func ();
12201  ;
12202  return 0;
12203}
12204_ACEOF
12205rm -f conftest.$ac_objext conftest$ac_exeext
12206if { (ac_try="$ac_link"
12207case "(($ac_try" in
12208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209  *) ac_try_echo=$ac_try;;
12210esac
12211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12212$as_echo "$ac_try_echo") >&5
12213  (eval "$ac_link") 2>conftest.er1
12214  ac_status=$?
12215  grep -v '^ *+' conftest.er1 >conftest.err
12216  rm -f conftest.er1
12217  cat conftest.err >&5
12218  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219  (exit $ac_status); } && {
12220	 test -z "$ac_c_werror_flag" ||
12221	 test ! -s conftest.err
12222       } && test -s conftest$ac_exeext && {
12223	 test "$cross_compiling" = yes ||
12224	 $as_test_x conftest$ac_exeext
12225       }; then
12226  eval "$as_ac_var=yes"
12227else
12228  $as_echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
12231	eval "$as_ac_var=no"
12232fi
12233
12234rm -rf conftest.dSYM
12235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236      conftest$ac_exeext conftest.$ac_ext
12237fi
12238ac_res=`eval 'as_val=${'$as_ac_var'}
12239		 $as_echo "$as_val"'`
12240	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12241$as_echo "$ac_res" >&6; }
12242if test `eval 'as_val=${'$as_ac_var'}
12243		 $as_echo "$as_val"'` = yes; then
12244  cat >>confdefs.h <<_ACEOF
12245#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12246_ACEOF
12247
12248fi
12249done
12250
12251
12252#########
12253# By default, we use the amalgamation (this may be changed below...)
12254#
12255USE_AMALGAMATION=1
12256
12257#########
12258# See whether we can run specific tclsh versions known to work well;
12259# if not, then we fall back to plain tclsh.
12260# TODO: try other versions before falling back?
12261#
12262for ac_prog in tclsh8.5 tclsh
12263do
12264  # Extract the first word of "$ac_prog", so it can be a program name with args.
12265set dummy $ac_prog; ac_word=$2
12266{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
12268if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
12269  $as_echo_n "(cached) " >&6
12270else
12271  if test -n "$TCLSH_CMD"; then
12272  ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12273else
12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277  IFS=$as_save_IFS
12278  test -z "$as_dir" && as_dir=.
12279  for ac_exec_ext in '' $ac_executable_extensions; do
12280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12281    ac_cv_prog_TCLSH_CMD="$ac_prog"
12282    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12283    break 2
12284  fi
12285done
12286done
12287IFS=$as_save_IFS
12288
12289fi
12290fi
12291TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12292if test -n "$TCLSH_CMD"; then
12293  { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12294$as_echo "$TCLSH_CMD" >&6; }
12295else
12296  { $as_echo "$as_me:$LINENO: result: no" >&5
12297$as_echo "no" >&6; }
12298fi
12299
12300
12301  test -n "$TCLSH_CMD" && break
12302done
12303test -n "$TCLSH_CMD" || TCLSH_CMD="none"
12304
12305if test "$TCLSH_CMD" = "none"; then
12306  # If we can't find a local tclsh, then building the amalgamation will fail.
12307  # We act as though --disable-amalgamation has been used.
12308  echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12309  USE_AMALGAMATION=0
12310  TCLSH_CMD="tclsh"
12311fi
12312
12313
12314
12315if test "x${TCLLIBDIR+set}" != "xset" ; then
12316  TCLLIBDIR='$(libdir)'
12317  for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12318    TCLLIBDIR=$i
12319    break
12320  done
12321  TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12322fi
12323
12324
12325#########
12326# Set up an appropriate program prefix
12327#
12328if test "$program_prefix" = "NONE"; then
12329  program_prefix=""
12330fi
12331
12332
12333VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12334{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
12335$as_echo "$as_me: Version set to $VERSION" >&6;}
12336
12337RELEASE=`cat $srcdir/VERSION`
12338{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
12339$as_echo "$as_me: Release set to $RELEASE" >&6;}
12340
12341VERSION_NUMBER=`cat $srcdir/VERSION \
12342                           | sed 's/[^0-9]/ /g' \
12343                | awk '{printf "%d%03d%03d",$1,$2,$3}'`
12344{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
12345$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
12346
12347
12348#########
12349# Check to see if the --with-hints=FILE option is used.  If there is none,
12350# then check for a files named "$host.hints" and ../$hosts.hints where
12351# $host is the hostname of the build system.  If still no hints are
12352# found, try looking in $system.hints and ../$system.hints where
12353# $system is the result of uname -s.
12354#
12355
12356# Check whether --with-hints was given.
12357if test "${with_hints+set}" = set; then
12358  withval=$with_hints; hints=$withval
12359fi
12360
12361if test "$hints" = ""; then
12362  host=`hostname | sed 's/\..*//'`
12363  if test -r $host.hints; then
12364    hints=$host.hints
12365  else
12366     if test -r ../$host.hints; then
12367       hints=../$host.hints
12368     fi
12369  fi
12370fi
12371if test "$hints" = ""; then
12372  sys=`uname -s`
12373  if test -r $sys.hints; then
12374    hints=$sys.hints
12375  else
12376     if test -r ../$sys.hints; then
12377       hints=../$sys.hints
12378     fi
12379  fi
12380fi
12381if test "$hints" != ""; then
12382  { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12383$as_echo "reading hints from $hints" >&6; }
12384  . $hints
12385fi
12386
12387#########
12388# Locate a compiler for the build machine.  This compiler should
12389# generate command-line programs that run on the build machine.
12390#
12391if test x"$cross_compiling" = xno; then
12392	BUILD_CC=$CC
12393	BUILD_CFLAGS=$CFLAGS
12394else
12395	if test "${BUILD_CC+set}" != set; then
12396		for ac_prog in gcc cc cl
12397do
12398  # Extract the first word of "$ac_prog", so it can be a program name with args.
12399set dummy $ac_prog; ac_word=$2
12400{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12401$as_echo_n "checking for $ac_word... " >&6; }
12402if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12403  $as_echo_n "(cached) " >&6
12404else
12405  if test -n "$BUILD_CC"; then
12406  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12407else
12408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409for as_dir in $PATH
12410do
12411  IFS=$as_save_IFS
12412  test -z "$as_dir" && as_dir=.
12413  for ac_exec_ext in '' $ac_executable_extensions; do
12414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12415    ac_cv_prog_BUILD_CC="$ac_prog"
12416    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12417    break 2
12418  fi
12419done
12420done
12421IFS=$as_save_IFS
12422
12423fi
12424fi
12425BUILD_CC=$ac_cv_prog_BUILD_CC
12426if test -n "$BUILD_CC"; then
12427  { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12428$as_echo "$BUILD_CC" >&6; }
12429else
12430  { $as_echo "$as_me:$LINENO: result: no" >&5
12431$as_echo "no" >&6; }
12432fi
12433
12434
12435  test -n "$BUILD_CC" && break
12436done
12437
12438	fi
12439	if test "${BUILD_CFLAGS+set}" != set; then
12440		BUILD_CFLAGS="-g"
12441	fi
12442fi
12443
12444
12445##########
12446# Do we want to support multithreaded use of sqlite
12447#
12448# Check whether --enable-threadsafe was given.
12449if test "${enable_threadsafe+set}" = set; then
12450  enableval=$enable_threadsafe;
12451else
12452  enable_threadsafe=yes
12453fi
12454
12455{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12456$as_echo_n "checking whether to support threadsafe operation... " >&6; }
12457if test "$enable_threadsafe" = "no"; then
12458  SQLITE_THREADSAFE=0
12459  { $as_echo "$as_me:$LINENO: result: no" >&5
12460$as_echo "no" >&6; }
12461else
12462  SQLITE_THREADSAFE=1
12463  { $as_echo "$as_me:$LINENO: result: yes" >&5
12464$as_echo "yes" >&6; }
12465fi
12466
12467
12468if test "$SQLITE_THREADSAFE" = "1"; then
12469  { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12470$as_echo_n "checking for library containing pthread_create... " >&6; }
12471if test "${ac_cv_search_pthread_create+set}" = set; then
12472  $as_echo_n "(cached) " >&6
12473else
12474  ac_func_search_save_LIBS=$LIBS
12475cat >conftest.$ac_ext <<_ACEOF
12476/* confdefs.h.  */
12477_ACEOF
12478cat confdefs.h >>conftest.$ac_ext
12479cat >>conftest.$ac_ext <<_ACEOF
12480/* end confdefs.h.  */
12481
12482/* Override any GCC internal prototype to avoid an error.
12483   Use char because int might match the return type of a GCC
12484   builtin and then its argument prototype would still apply.  */
12485#ifdef __cplusplus
12486extern "C"
12487#endif
12488char pthread_create ();
12489int
12490main ()
12491{
12492return pthread_create ();
12493  ;
12494  return 0;
12495}
12496_ACEOF
12497for ac_lib in '' pthread; do
12498  if test -z "$ac_lib"; then
12499    ac_res="none required"
12500  else
12501    ac_res=-l$ac_lib
12502    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12503  fi
12504  rm -f conftest.$ac_objext conftest$ac_exeext
12505if { (ac_try="$ac_link"
12506case "(($ac_try" in
12507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508  *) ac_try_echo=$ac_try;;
12509esac
12510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12511$as_echo "$ac_try_echo") >&5
12512  (eval "$ac_link") 2>conftest.er1
12513  ac_status=$?
12514  grep -v '^ *+' conftest.er1 >conftest.err
12515  rm -f conftest.er1
12516  cat conftest.err >&5
12517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518  (exit $ac_status); } && {
12519	 test -z "$ac_c_werror_flag" ||
12520	 test ! -s conftest.err
12521       } && test -s conftest$ac_exeext && {
12522	 test "$cross_compiling" = yes ||
12523	 $as_test_x conftest$ac_exeext
12524       }; then
12525  ac_cv_search_pthread_create=$ac_res
12526else
12527  $as_echo "$as_me: failed program was:" >&5
12528sed 's/^/| /' conftest.$ac_ext >&5
12529
12530
12531fi
12532
12533rm -rf conftest.dSYM
12534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535      conftest$ac_exeext
12536  if test "${ac_cv_search_pthread_create+set}" = set; then
12537  break
12538fi
12539done
12540if test "${ac_cv_search_pthread_create+set}" = set; then
12541  :
12542else
12543  ac_cv_search_pthread_create=no
12544fi
12545rm conftest.$ac_ext
12546LIBS=$ac_func_search_save_LIBS
12547fi
12548{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12549$as_echo "$ac_cv_search_pthread_create" >&6; }
12550ac_res=$ac_cv_search_pthread_create
12551if test "$ac_res" != no; then
12552  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12553
12554fi
12555
12556fi
12557
12558##########
12559# Do we want to allow a connection created in one thread to be used
12560# in another thread.  This does not work on many Linux systems (ex: RedHat 9)
12561# due to bugs in the threading implementations.  This is thus off by default.
12562#
12563# Check whether --enable-cross-thread-connections was given.
12564if test "${enable_cross_thread_connections+set}" = set; then
12565  enableval=$enable_cross_thread_connections;
12566else
12567  enable_xthreadconnect=no
12568fi
12569
12570{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12571$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12572if test "$enable_xthreadconnect" = "no"; then
12573  XTHREADCONNECT=''
12574  { $as_echo "$as_me:$LINENO: result: no" >&5
12575$as_echo "no" >&6; }
12576else
12577  XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12578  { $as_echo "$as_me:$LINENO: result: yes" >&5
12579$as_echo "yes" >&6; }
12580fi
12581
12582
12583##########
12584# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
12585# default. Normally, a test at runtime is performed to determine the
12586# appropriate value of this variable. Use this option only if you're sure that
12587# threads can safely override each others locks in all runtime situations.
12588#
12589# Check whether --enable-threads-override-locks was given.
12590if test "${enable_threads_override_locks+set}" = set; then
12591  enableval=$enable_threads_override_locks;
12592else
12593  enable_threads_override_locks=no
12594fi
12595
12596{ $as_echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
12597$as_echo_n "checking whether threads can override each others locks... " >&6; }
12598if test "$enable_threads_override_locks" = "no"; then
12599  THREADSOVERRIDELOCKS='-1'
12600  { $as_echo "$as_me:$LINENO: result: no" >&5
12601$as_echo "no" >&6; }
12602else
12603  THREADSOVERRIDELOCKS='1'
12604  { $as_echo "$as_me:$LINENO: result: yes" >&5
12605$as_echo "yes" >&6; }
12606fi
12607
12608
12609##########
12610# Do we want to support release
12611#
12612# Check whether --enable-releasemode was given.
12613if test "${enable_releasemode+set}" = set; then
12614  enableval=$enable_releasemode;
12615else
12616  enable_releasemode=no
12617fi
12618
12619{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12620$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12621if test "$enable_releasemode" = "no"; then
12622  ALLOWRELEASE=""
12623  { $as_echo "$as_me:$LINENO: result: no" >&5
12624$as_echo "no" >&6; }
12625else
12626  ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12627  { $as_echo "$as_me:$LINENO: result: yes" >&5
12628$as_echo "yes" >&6; }
12629fi
12630
12631
12632##########
12633# Do we want temporary databases in memory
12634#
12635# Check whether --enable-tempstore was given.
12636if test "${enable_tempstore+set}" = set; then
12637  enableval=$enable_tempstore;
12638else
12639  enable_tempstore=no
12640fi
12641
12642{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
12643$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12644case "$enable_tempstore" in
12645  never )
12646    TEMP_STORE=0
12647    { $as_echo "$as_me:$LINENO: result: never" >&5
12648$as_echo "never" >&6; }
12649  ;;
12650  no )
12651    TEMP_STORE=1
12652    { $as_echo "$as_me:$LINENO: result: no" >&5
12653$as_echo "no" >&6; }
12654  ;;
12655  yes )
12656     TEMP_STORE=2
12657    { $as_echo "$as_me:$LINENO: result: yes" >&5
12658$as_echo "yes" >&6; }
12659  ;;
12660  always )
12661     TEMP_STORE=3
12662    { $as_echo "$as_me:$LINENO: result: always" >&5
12663$as_echo "always" >&6; }
12664  ;;
12665  * )
12666    TEMP_STORE=1
12667    { $as_echo "$as_me:$LINENO: result: no" >&5
12668$as_echo "no" >&6; }
12669  ;;
12670esac
12671
12672
12673
12674###########
12675# Lots of things are different if we are compiling for Windows using
12676# the CYGWIN environment.  So check for that special case and handle
12677# things accordingly.
12678#
12679{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12680$as_echo_n "checking if executables have the .exe suffix... " >&6; }
12681if test "$config_BUILD_EXEEXT" = ".exe"; then
12682  CYGWIN=yes
12683  { $as_echo "$as_me:$LINENO: result: yes" >&5
12684$as_echo "yes" >&6; }
12685else
12686  { $as_echo "$as_me:$LINENO: result: unknown" >&5
12687$as_echo "unknown" >&6; }
12688fi
12689if test "$CYGWIN" != "yes"; then
12690  { $as_echo "$as_me:$LINENO: checking host system type" >&5
12691$as_echo_n "checking host system type... " >&6; }
12692if test "${ac_cv_host+set}" = set; then
12693  $as_echo_n "(cached) " >&6
12694else
12695  if test "x$host_alias" = x; then
12696  ac_cv_host=$ac_cv_build
12697else
12698  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12699    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12700$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12701   { (exit 1); exit 1; }; }
12702fi
12703
12704fi
12705{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12706$as_echo "$ac_cv_host" >&6; }
12707case $ac_cv_host in
12708*-*-*) ;;
12709*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12710$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12711   { (exit 1); exit 1; }; };;
12712esac
12713host=$ac_cv_host
12714ac_save_IFS=$IFS; IFS='-'
12715set x $ac_cv_host
12716shift
12717host_cpu=$1
12718host_vendor=$2
12719shift; shift
12720# Remember, the first character of IFS is used to create $*,
12721# except with old shells:
12722host_os=$*
12723IFS=$ac_save_IFS
12724case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12725
12726
12727case $host_os in
12728  *cygwin* ) CYGWIN=yes;;
12729	 * ) CYGWIN=no;;
12730esac
12731
12732fi
12733if test "$CYGWIN" = "yes"; then
12734  BUILD_EXEEXT=.exe
12735else
12736  BUILD_EXEEXT=$EXEEXT
12737fi
12738if test x"$cross_compiling" = xno; then
12739  TARGET_EXEEXT=$BUILD_EXEEXT
12740else
12741  TARGET_EXEEXT=$config_TARGET_EXEEXT
12742fi
12743if test "$TARGET_EXEEXT" = ".exe"; then
12744  if test $OS2_SHELL ; then
12745    SQLITE_OS_UNIX=0
12746    SQLITE_OS_WIN=0
12747    SQLITE_OS_OS2=1
12748    CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
12749  else
12750    SQLITE_OS_UNIX=0
12751    SQLITE_OS_WIN=1
12752    SQLITE_OS_OS2=0
12753    CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12754  fi
12755else
12756  SQLITE_OS_UNIX=1
12757  SQLITE_OS_WIN=0
12758  SQLITE_OS_OS2=0
12759  CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12760fi
12761
12762
12763
12764
12765
12766
12767
12768##########
12769# Figure out all the parameters needed to compile against Tcl.
12770#
12771# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12772# macros in the in the tcl.m4 file of the standard TCL distribution.
12773# Those macros could not be used directly since we have to make some
12774# minor changes to accomodate systems that do not have TCL installed.
12775#
12776# Check whether --enable-tcl was given.
12777if test "${enable_tcl+set}" = set; then
12778  enableval=$enable_tcl; use_tcl=$enableval
12779else
12780  use_tcl=yes
12781fi
12782
12783if test "${use_tcl}" = "yes" ; then
12784
12785# Check whether --with-tcl was given.
12786if test "${with_tcl+set}" = set; then
12787  withval=$with_tcl; with_tclconfig=${withval}
12788fi
12789
12790  { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12791$as_echo_n "checking for Tcl configuration... " >&6; }
12792  if test "${ac_cv_c_tclconfig+set}" = set; then
12793  $as_echo_n "(cached) " >&6
12794else
12795
12796    # First check to see if --with-tcl was specified.
12797    if test x"${with_tclconfig}" != x ; then
12798      if test -f "${with_tclconfig}/tclConfig.sh" ; then
12799        ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12800      else
12801        { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12802$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
12803   { (exit 1); exit 1; }; }
12804      fi
12805    fi
12806
12807    # Start autosearch by asking tclsh
12808    if test x"$cross_compiling" = xno; then
12809      for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12810      do
12811        if test -f "$i/tclConfig.sh" ; then
12812          ac_cv_c_tclconfig="$i"
12813          break
12814        fi
12815      done
12816    fi
12817
12818    # then check for a private Tcl installation
12819    if test x"${ac_cv_c_tclconfig}" = x ; then
12820      for i in \
12821            ../tcl \
12822            `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12823            `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12824            `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12825            ../../tcl \
12826            `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12827            `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12828            `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12829            ../../../tcl \
12830            `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12831            `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12832            `ls -dr ../../../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
12841    # check in a few common install locations
12842    if test x"${ac_cv_c_tclconfig}" = x ; then
12843      for i in \
12844            `ls -d ${libdir} 2>/dev/null` \
12845            `ls -d /usr/local/lib 2>/dev/null` \
12846            `ls -d /usr/contrib/lib 2>/dev/null` \
12847            `ls -d /usr/lib 2>/dev/null`
12848      do
12849        if test -f "$i/tclConfig.sh" ; then
12850           ac_cv_c_tclconfig=`(cd $i; pwd)`
12851           break
12852        fi
12853      done
12854    fi
12855
12856    # check in a few other private locations
12857    if test x"${ac_cv_c_tclconfig}" = x ; then
12858      for i in \
12859         ${srcdir}/../tcl \
12860         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12861         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12862         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12863      do
12864        if test -f "$i/unix/tclConfig.sh" ; then
12865          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12866          break
12867        fi
12868      done
12869    fi
12870
12871fi
12872
12873
12874  if test x"${ac_cv_c_tclconfig}" = x ; then
12875    use_tcl=no
12876    { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
12877$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12878    { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12879$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12880    { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12881$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12882  else
12883    TCL_BIN_DIR=${ac_cv_c_tclconfig}
12884    { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12885$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12886
12887    { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12888$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12889    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12890      { $as_echo "$as_me:$LINENO: result: loading" >&5
12891$as_echo "loading" >&6; }
12892      . $TCL_BIN_DIR/tclConfig.sh
12893    else
12894      { $as_echo "$as_me:$LINENO: result: file not found" >&5
12895$as_echo "file not found" >&6; }
12896    fi
12897
12898    #
12899    # If the TCL_BIN_DIR is the build directory (not the install directory),
12900    # then set the common variable name to the value of the build variables.
12901    # For example, the variable TCL_LIB_SPEC will be set to the value
12902    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12903    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12904    # installed and uninstalled version of Tcl.
12905    #
12906
12907    if test -f $TCL_BIN_DIR/Makefile ; then
12908      TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12909      TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12910      TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12911    fi
12912
12913    #
12914    # eval is required to do the TCL_DBGX substitution
12915    #
12916
12917    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12918    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12919    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12920
12921    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12922    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12923    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938  fi
12939fi
12940if test "${use_tcl}" = "no" ; then
12941  HAVE_TCL=""
12942else
12943  HAVE_TCL=1
12944fi
12945
12946
12947##########
12948# Figure out what C libraries are required to compile programs
12949# that use "readline()" library.
12950#
12951TARGET_READLINE_LIBS=""
12952TARGET_READLINE_INC=""
12953TARGET_HAVE_READLINE=0
12954# Check whether --enable-readline was given.
12955if test "${enable_readline+set}" = set; then
12956  enableval=$enable_readline; with_readline=$enableval
12957else
12958  with_readline=auto
12959fi
12960
12961
12962if test x"$with_readline" != xno; then
12963	found="yes"
12964
12965
12966# Check whether --with-readline-lib was given.
12967if test "${with_readline_lib+set}" = set; then
12968  withval=$with_readline_lib; with_readline_lib=$withval
12969else
12970  with_readline_lib="auto"
12971fi
12972
12973	if test "x$with_readline_lib" = xauto; then
12974		save_LIBS="$LIBS"
12975		LIBS=""
12976		{ $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12977$as_echo_n "checking for library containing tgetent... " >&6; }
12978if test "${ac_cv_search_tgetent+set}" = set; then
12979  $as_echo_n "(cached) " >&6
12980else
12981  ac_func_search_save_LIBS=$LIBS
12982cat >conftest.$ac_ext <<_ACEOF
12983/* confdefs.h.  */
12984_ACEOF
12985cat confdefs.h >>conftest.$ac_ext
12986cat >>conftest.$ac_ext <<_ACEOF
12987/* end confdefs.h.  */
12988
12989/* Override any GCC internal prototype to avoid an error.
12990   Use char because int might match the return type of a GCC
12991   builtin and then its argument prototype would still apply.  */
12992#ifdef __cplusplus
12993extern "C"
12994#endif
12995char tgetent ();
12996int
12997main ()
12998{
12999return tgetent ();
13000  ;
13001  return 0;
13002}
13003_ACEOF
13004for ac_lib in '' readline ncurses curses termcap; do
13005  if test -z "$ac_lib"; then
13006    ac_res="none required"
13007  else
13008    ac_res=-l$ac_lib
13009    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13010  fi
13011  rm -f conftest.$ac_objext conftest$ac_exeext
13012if { (ac_try="$ac_link"
13013case "(($ac_try" in
13014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015  *) ac_try_echo=$ac_try;;
13016esac
13017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13018$as_echo "$ac_try_echo") >&5
13019  (eval "$ac_link") 2>conftest.er1
13020  ac_status=$?
13021  grep -v '^ *+' conftest.er1 >conftest.err
13022  rm -f conftest.er1
13023  cat conftest.err >&5
13024  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025  (exit $ac_status); } && {
13026	 test -z "$ac_c_werror_flag" ||
13027	 test ! -s conftest.err
13028       } && test -s conftest$ac_exeext && {
13029	 test "$cross_compiling" = yes ||
13030	 $as_test_x conftest$ac_exeext
13031       }; then
13032  ac_cv_search_tgetent=$ac_res
13033else
13034  $as_echo "$as_me: failed program was:" >&5
13035sed 's/^/| /' conftest.$ac_ext >&5
13036
13037
13038fi
13039
13040rm -rf conftest.dSYM
13041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13042      conftest$ac_exeext
13043  if test "${ac_cv_search_tgetent+set}" = set; then
13044  break
13045fi
13046done
13047if test "${ac_cv_search_tgetent+set}" = set; then
13048  :
13049else
13050  ac_cv_search_tgetent=no
13051fi
13052rm conftest.$ac_ext
13053LIBS=$ac_func_search_save_LIBS
13054fi
13055{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13056$as_echo "$ac_cv_search_tgetent" >&6; }
13057ac_res=$ac_cv_search_tgetent
13058if test "$ac_res" != no; then
13059  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13060  term_LIBS="$LIBS"
13061else
13062  term_LIBS=""
13063fi
13064
13065		{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13066$as_echo_n "checking for readline in -lreadline... " >&6; }
13067if test "${ac_cv_lib_readline_readline+set}" = set; then
13068  $as_echo_n "(cached) " >&6
13069else
13070  ac_check_lib_save_LIBS=$LIBS
13071LIBS="-lreadline  $LIBS"
13072cat >conftest.$ac_ext <<_ACEOF
13073/* confdefs.h.  */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
13077/* end confdefs.h.  */
13078
13079/* Override any GCC internal prototype to avoid an error.
13080   Use char because int might match the return type of a GCC
13081   builtin and then its argument prototype would still apply.  */
13082#ifdef __cplusplus
13083extern "C"
13084#endif
13085char readline ();
13086int
13087main ()
13088{
13089return readline ();
13090  ;
13091  return 0;
13092}
13093_ACEOF
13094rm -f conftest.$ac_objext conftest$ac_exeext
13095if { (ac_try="$ac_link"
13096case "(($ac_try" in
13097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098  *) ac_try_echo=$ac_try;;
13099esac
13100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13101$as_echo "$ac_try_echo") >&5
13102  (eval "$ac_link") 2>conftest.er1
13103  ac_status=$?
13104  grep -v '^ *+' conftest.er1 >conftest.err
13105  rm -f conftest.er1
13106  cat conftest.err >&5
13107  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108  (exit $ac_status); } && {
13109	 test -z "$ac_c_werror_flag" ||
13110	 test ! -s conftest.err
13111       } && test -s conftest$ac_exeext && {
13112	 test "$cross_compiling" = yes ||
13113	 $as_test_x conftest$ac_exeext
13114       }; then
13115  ac_cv_lib_readline_readline=yes
13116else
13117  $as_echo "$as_me: failed program was:" >&5
13118sed 's/^/| /' conftest.$ac_ext >&5
13119
13120	ac_cv_lib_readline_readline=no
13121fi
13122
13123rm -rf conftest.dSYM
13124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13125      conftest$ac_exeext conftest.$ac_ext
13126LIBS=$ac_check_lib_save_LIBS
13127fi
13128{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13129$as_echo "$ac_cv_lib_readline_readline" >&6; }
13130if test $ac_cv_lib_readline_readline = yes; then
13131  TARGET_READLINE_LIBS="-lreadline"
13132else
13133  found="no"
13134fi
13135
13136		TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13137		LIBS="$save_LIBS"
13138	else
13139		TARGET_READLINE_LIBS="$with_readline_lib"
13140	fi
13141
13142
13143# Check whether --with-readline-inc was given.
13144if test "${with_readline_inc+set}" = set; then
13145  withval=$with_readline_inc; with_readline_inc=$withval
13146else
13147  with_readline_inc="auto"
13148fi
13149
13150	if test "x$with_readline_inc" = xauto; then
13151		if test "${ac_cv_header_readline_h+set}" = set; then
13152  { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13153$as_echo_n "checking for readline.h... " >&6; }
13154if test "${ac_cv_header_readline_h+set}" = set; then
13155  $as_echo_n "(cached) " >&6
13156fi
13157{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13158$as_echo "$ac_cv_header_readline_h" >&6; }
13159else
13160  # Is the header compilable?
13161{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13162$as_echo_n "checking readline.h usability... " >&6; }
13163cat >conftest.$ac_ext <<_ACEOF
13164/* confdefs.h.  */
13165_ACEOF
13166cat confdefs.h >>conftest.$ac_ext
13167cat >>conftest.$ac_ext <<_ACEOF
13168/* end confdefs.h.  */
13169$ac_includes_default
13170#include <readline.h>
13171_ACEOF
13172rm -f conftest.$ac_objext
13173if { (ac_try="$ac_compile"
13174case "(($ac_try" in
13175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176  *) ac_try_echo=$ac_try;;
13177esac
13178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13179$as_echo "$ac_try_echo") >&5
13180  (eval "$ac_compile") 2>conftest.er1
13181  ac_status=$?
13182  grep -v '^ *+' conftest.er1 >conftest.err
13183  rm -f conftest.er1
13184  cat conftest.err >&5
13185  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186  (exit $ac_status); } && {
13187	 test -z "$ac_c_werror_flag" ||
13188	 test ! -s conftest.err
13189       } && test -s conftest.$ac_objext; then
13190  ac_header_compiler=yes
13191else
13192  $as_echo "$as_me: failed program was:" >&5
13193sed 's/^/| /' conftest.$ac_ext >&5
13194
13195	ac_header_compiler=no
13196fi
13197
13198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13200$as_echo "$ac_header_compiler" >&6; }
13201
13202# Is the header present?
13203{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13204$as_echo_n "checking readline.h presence... " >&6; }
13205cat >conftest.$ac_ext <<_ACEOF
13206/* confdefs.h.  */
13207_ACEOF
13208cat confdefs.h >>conftest.$ac_ext
13209cat >>conftest.$ac_ext <<_ACEOF
13210/* end confdefs.h.  */
13211#include <readline.h>
13212_ACEOF
13213if { (ac_try="$ac_cpp conftest.$ac_ext"
13214case "(($ac_try" in
13215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216  *) ac_try_echo=$ac_try;;
13217esac
13218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219$as_echo "$ac_try_echo") >&5
13220  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13221  ac_status=$?
13222  grep -v '^ *+' conftest.er1 >conftest.err
13223  rm -f conftest.er1
13224  cat conftest.err >&5
13225  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226  (exit $ac_status); } >/dev/null && {
13227	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13228	 test ! -s conftest.err
13229       }; then
13230  ac_header_preproc=yes
13231else
13232  $as_echo "$as_me: failed program was:" >&5
13233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235  ac_header_preproc=no
13236fi
13237
13238rm -f conftest.err conftest.$ac_ext
13239{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13240$as_echo "$ac_header_preproc" >&6; }
13241
13242# So?  What about this header?
13243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13244  yes:no: )
13245    { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13246$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13247    { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13248$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
13249    ac_header_preproc=yes
13250    ;;
13251  no:yes:* )
13252    { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13253$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13254    { $as_echo "$as_me:$LINENO: WARNING: readline.h:     check for missing prerequisite headers?" >&5
13255$as_echo "$as_me: WARNING: readline.h:     check for missing prerequisite headers?" >&2;}
13256    { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13257$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13258    { $as_echo "$as_me:$LINENO: WARNING: readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13259$as_echo "$as_me: WARNING: readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13260    { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13261$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13262    { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13263$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13264
13265    ;;
13266esac
13267{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13268$as_echo_n "checking for readline.h... " >&6; }
13269if test "${ac_cv_header_readline_h+set}" = set; then
13270  $as_echo_n "(cached) " >&6
13271else
13272  ac_cv_header_readline_h=$ac_header_preproc
13273fi
13274{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13275$as_echo "$ac_cv_header_readline_h" >&6; }
13276
13277fi
13278if test $ac_cv_header_readline_h = yes; then
13279  found="yes"
13280else
13281
13282			found="no"
13283			if test "$cross_compiling" != yes; then
13284				for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13285					for subdir in include include/readline; do
13286						as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13287{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13288$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
13289if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13290  $as_echo_n "(cached) " >&6
13291else
13292  test "$cross_compiling" = yes &&
13293  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13294$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13295   { (exit 1); exit 1; }; }
13296if test -r "$dir/$subdir/readline.h"; then
13297  eval "$as_ac_File=yes"
13298else
13299  eval "$as_ac_File=no"
13300fi
13301fi
13302ac_res=`eval 'as_val=${'$as_ac_File'}
13303		 $as_echo "$as_val"'`
13304	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13305$as_echo "$ac_res" >&6; }
13306if test `eval 'as_val=${'$as_ac_File'}
13307		 $as_echo "$as_val"'` = yes; then
13308  found=yes
13309fi
13310
13311						if test "$found" = "yes"; then
13312							TARGET_READLINE_INC="-I$dir/$subdir"
13313							break
13314						fi
13315					done
13316					test "$found" = "yes" && break
13317				done
13318			fi
13319
13320fi
13321
13322
13323	else
13324		TARGET_READLINE_INC="$with_readline_inc"
13325	fi
13326
13327	if test x"$found" = xno; then
13328		TARGET_READLINE_LIBS=""
13329		TARGET_READLINE_INC=""
13330		TARGET_HAVE_READLINE=0
13331	else
13332		TARGET_HAVE_READLINE=1
13333	fi
13334fi
13335
13336
13337
13338
13339
13340##########
13341# Figure out what C libraries are required to compile programs
13342# that use "fdatasync()" function.
13343#
13344{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13345$as_echo_n "checking for library containing fdatasync... " >&6; }
13346if test "${ac_cv_search_fdatasync+set}" = set; then
13347  $as_echo_n "(cached) " >&6
13348else
13349  ac_func_search_save_LIBS=$LIBS
13350cat >conftest.$ac_ext <<_ACEOF
13351/* confdefs.h.  */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h.  */
13356
13357/* Override any GCC internal prototype to avoid an error.
13358   Use char because int might match the return type of a GCC
13359   builtin and then its argument prototype would still apply.  */
13360#ifdef __cplusplus
13361extern "C"
13362#endif
13363char fdatasync ();
13364int
13365main ()
13366{
13367return fdatasync ();
13368  ;
13369  return 0;
13370}
13371_ACEOF
13372for ac_lib in '' rt; do
13373  if test -z "$ac_lib"; then
13374    ac_res="none required"
13375  else
13376    ac_res=-l$ac_lib
13377    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13378  fi
13379  rm -f conftest.$ac_objext conftest$ac_exeext
13380if { (ac_try="$ac_link"
13381case "(($ac_try" in
13382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383  *) ac_try_echo=$ac_try;;
13384esac
13385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13386$as_echo "$ac_try_echo") >&5
13387  (eval "$ac_link") 2>conftest.er1
13388  ac_status=$?
13389  grep -v '^ *+' conftest.er1 >conftest.err
13390  rm -f conftest.er1
13391  cat conftest.err >&5
13392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393  (exit $ac_status); } && {
13394	 test -z "$ac_c_werror_flag" ||
13395	 test ! -s conftest.err
13396       } && test -s conftest$ac_exeext && {
13397	 test "$cross_compiling" = yes ||
13398	 $as_test_x conftest$ac_exeext
13399       }; then
13400  ac_cv_search_fdatasync=$ac_res
13401else
13402  $as_echo "$as_me: failed program was:" >&5
13403sed 's/^/| /' conftest.$ac_ext >&5
13404
13405
13406fi
13407
13408rm -rf conftest.dSYM
13409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13410      conftest$ac_exeext
13411  if test "${ac_cv_search_fdatasync+set}" = set; then
13412  break
13413fi
13414done
13415if test "${ac_cv_search_fdatasync+set}" = set; then
13416  :
13417else
13418  ac_cv_search_fdatasync=no
13419fi
13420rm conftest.$ac_ext
13421LIBS=$ac_func_search_save_LIBS
13422fi
13423{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13424$as_echo "$ac_cv_search_fdatasync" >&6; }
13425ac_res=$ac_cv_search_fdatasync
13426if test "$ac_res" != no; then
13427  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13428
13429fi
13430
13431
13432#########
13433# check for debug enabled
13434# Check whether --enable-debug was given.
13435if test "${enable_debug+set}" = set; then
13436  enableval=$enable_debug; use_debug=$enableval
13437else
13438  use_debug=no
13439fi
13440
13441if test "${use_debug}" = "yes" ; then
13442  TARGET_DEBUG="-DSQLITE_DEBUG=1"
13443else
13444  TARGET_DEBUG="-DNDEBUG"
13445fi
13446
13447
13448#########
13449# See whether we should use the amalgamation to build
13450# Check whether --enable-amalgamation was given.
13451if test "${enable_amalgamation+set}" = set; then
13452  enableval=$enable_amalgamation; use_amalgamation=$enableval
13453else
13454  use_amalgamation=yes
13455fi
13456
13457if test "${use_amalgamation}" != "yes" ; then
13458  USE_AMALGAMATION=0
13459fi
13460
13461
13462#########
13463# See whether we should allow loadable extensions
13464# Check whether --enable-load-extension was given.
13465if test "${enable_load_extension+set}" = set; then
13466  enableval=$enable_load_extension; use_loadextension=$enableval
13467else
13468  use_loadextension=no
13469fi
13470
13471if test "${use_loadextension}" = "yes" ; then
13472  OPT_FEATURE_FLAGS=""
13473else
13474  OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13475fi
13476
13477#########
13478# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
13479for option in $CFLAGS $CPPFLAGS
13480do
13481  case $option in
13482    -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13483    -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13484  esac
13485done
13486
13487
13488
13489# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13490ac_temp_CFLAGS=""
13491for option in $CFLAGS
13492do
13493  case $option in
13494    -DSQLITE_OMIT*) ;;
13495    -DSQLITE_ENABLE*) ;;
13496    *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13497  esac
13498done
13499CFLAGS=$ac_temp_CFLAGS
13500
13501
13502# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13503ac_temp_CPPFLAGS=""
13504for option in $CPPFLAGS
13505do
13506  case $option in
13507    -DSQLITE_OMIT*) ;;
13508    -DSQLITE_ENABLE*) ;;
13509    *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13510  esac
13511done
13512CPPFLAGS=$ac_temp_CPPFLAGS
13513
13514
13515# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13516ac_temp_BUILD_CFLAGS=""
13517for option in $BUILD_CFLAGS
13518do
13519  case $option in
13520    -DSQLITE_OMIT*) ;;
13521    -DSQLITE_ENABLE*) ;;
13522    *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13523  esac
13524done
13525BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13526
13527
13528#########
13529# See whether we should use GCOV
13530# Check whether --enable-gcov was given.
13531if test "${enable_gcov+set}" = set; then
13532  enableval=$enable_gcov; use_gcov=$enableval
13533else
13534  use_gcov=no
13535fi
13536
13537if test "${use_gcov}" = "yes" ; then
13538  USE_GCOV=1
13539else
13540  USE_GCOV=0
13541fi
13542
13543
13544
13545#########
13546# Output the config header
13547ac_config_headers="$ac_config_headers config.h"
13548
13549
13550#########
13551# Generate the output files.
13552#
13553
13554ac_config_files="$ac_config_files Makefile sqlite3.pc"
13555
13556cat >confcache <<\_ACEOF
13557# This file is a shell script that caches the results of configure
13558# tests run on this system so they can be shared between configure
13559# scripts and configure runs, see configure's option --config-cache.
13560# It is not useful on other systems.  If it contains results you don't
13561# want to keep, you may remove or edit it.
13562#
13563# config.status only pays attention to the cache file if you give it
13564# the --recheck option to rerun configure.
13565#
13566# `ac_cv_env_foo' variables (set or unset) will be overridden when
13567# loading this file, other *unset* `ac_cv_foo' will be assigned the
13568# following values.
13569
13570_ACEOF
13571
13572# The following way of writing the cache mishandles newlines in values,
13573# but we know of no workaround that is simple, portable, and efficient.
13574# So, we kill variables containing newlines.
13575# Ultrix sh set writes to stderr and can't be redirected directly,
13576# and sets the high bit in the cache file unless we assign to the vars.
13577(
13578  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13579    eval ac_val=\$$ac_var
13580    case $ac_val in #(
13581    *${as_nl}*)
13582      case $ac_var in #(
13583      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13584$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13585      esac
13586      case $ac_var in #(
13587      _ | IFS | as_nl) ;; #(
13588      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13589      *) $as_unset $ac_var ;;
13590      esac ;;
13591    esac
13592  done
13593
13594  (set) 2>&1 |
13595    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13596    *${as_nl}ac_space=\ *)
13597      # `set' does not quote correctly, so add quotes (double-quote
13598      # substitution turns \\\\ into \\, and sed turns \\ into \).
13599      sed -n \
13600	"s/'/'\\\\''/g;
13601	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13602      ;; #(
13603    *)
13604      # `set' quotes correctly as required by POSIX, so do not add quotes.
13605      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13606      ;;
13607    esac |
13608    sort
13609) |
13610  sed '
13611     /^ac_cv_env_/b end
13612     t clear
13613     :clear
13614     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13615     t end
13616     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13617     :end' >>confcache
13618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13619  if test -w "$cache_file"; then
13620    test "x$cache_file" != "x/dev/null" &&
13621      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13622$as_echo "$as_me: updating cache $cache_file" >&6;}
13623    cat confcache >$cache_file
13624  else
13625    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13626$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13627  fi
13628fi
13629rm -f confcache
13630
13631test "x$prefix" = xNONE && prefix=$ac_default_prefix
13632# Let make expand exec_prefix.
13633test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13634
13635DEFS=-DHAVE_CONFIG_H
13636
13637ac_libobjs=
13638ac_ltlibobjs=
13639for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13640  # 1. Remove the extension, and $U if already installed.
13641  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13642  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13643  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13644  #    will be set to the directory where LIBOBJS objects are built.
13645  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13646  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13647done
13648LIBOBJS=$ac_libobjs
13649
13650LTLIBOBJS=$ac_ltlibobjs
13651
13652
13653
13654: ${CONFIG_STATUS=./config.status}
13655ac_write_fail=0
13656ac_clean_files_save=$ac_clean_files
13657ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13658{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13659$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13660cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13661#! $SHELL
13662# Generated by $as_me.
13663# Run this file to recreate the current configuration.
13664# Compiler output produced by configure, useful for debugging
13665# configure, is in config.log if it exists.
13666
13667debug=false
13668ac_cs_recheck=false
13669ac_cs_silent=false
13670SHELL=\${CONFIG_SHELL-$SHELL}
13671_ACEOF
13672
13673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13674## --------------------- ##
13675## M4sh Initialization.  ##
13676## --------------------- ##
13677
13678# Be more Bourne compatible
13679DUALCASE=1; export DUALCASE # for MKS sh
13680if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13681  emulate sh
13682  NULLCMD=:
13683  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13684  # is contrary to our usage.  Disable this feature.
13685  alias -g '${1+"$@"}'='"$@"'
13686  setopt NO_GLOB_SUBST
13687else
13688  case `(set -o) 2>/dev/null` in
13689  *posix*) set -o posix ;;
13690esac
13691
13692fi
13693
13694
13695
13696
13697# PATH needs CR
13698# Avoid depending upon Character Ranges.
13699as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13700as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13701as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13702as_cr_digits='0123456789'
13703as_cr_alnum=$as_cr_Letters$as_cr_digits
13704
13705as_nl='
13706'
13707export as_nl
13708# Printing a long string crashes Solaris 7 /usr/bin/printf.
13709as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13710as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13711as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13712if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13713  as_echo='printf %s\n'
13714  as_echo_n='printf %s'
13715else
13716  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13717    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13718    as_echo_n='/usr/ucb/echo -n'
13719  else
13720    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13721    as_echo_n_body='eval
13722      arg=$1;
13723      case $arg in
13724      *"$as_nl"*)
13725	expr "X$arg" : "X\\(.*\\)$as_nl";
13726	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13727      esac;
13728      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13729    '
13730    export as_echo_n_body
13731    as_echo_n='sh -c $as_echo_n_body as_echo'
13732  fi
13733  export as_echo_body
13734  as_echo='sh -c $as_echo_body as_echo'
13735fi
13736
13737# The user is always right.
13738if test "${PATH_SEPARATOR+set}" != set; then
13739  PATH_SEPARATOR=:
13740  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13741    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13742      PATH_SEPARATOR=';'
13743  }
13744fi
13745
13746# Support unset when possible.
13747if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13748  as_unset=unset
13749else
13750  as_unset=false
13751fi
13752
13753
13754# IFS
13755# We need space, tab and new line, in precisely that order.  Quoting is
13756# there to prevent editors from complaining about space-tab.
13757# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13758# splitting by setting IFS to empty value.)
13759IFS=" ""	$as_nl"
13760
13761# Find who we are.  Look in the path if we contain no directory separator.
13762case $0 in
13763  *[\\/]* ) as_myself=$0 ;;
13764  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765for as_dir in $PATH
13766do
13767  IFS=$as_save_IFS
13768  test -z "$as_dir" && as_dir=.
13769  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13770done
13771IFS=$as_save_IFS
13772
13773     ;;
13774esac
13775# We did not find ourselves, most probably we were run as `sh COMMAND'
13776# in which case we are not to be found in the path.
13777if test "x$as_myself" = x; then
13778  as_myself=$0
13779fi
13780if test ! -f "$as_myself"; then
13781  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13782  { (exit 1); exit 1; }
13783fi
13784
13785# Work around bugs in pre-3.0 UWIN ksh.
13786for as_var in ENV MAIL MAILPATH
13787do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13788done
13789PS1='$ '
13790PS2='> '
13791PS4='+ '
13792
13793# NLS nuisances.
13794LC_ALL=C
13795export LC_ALL
13796LANGUAGE=C
13797export LANGUAGE
13798
13799# Required to use basename.
13800if expr a : '\(a\)' >/dev/null 2>&1 &&
13801   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13802  as_expr=expr
13803else
13804  as_expr=false
13805fi
13806
13807if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13808  as_basename=basename
13809else
13810  as_basename=false
13811fi
13812
13813
13814# Name of the executable.
13815as_me=`$as_basename -- "$0" ||
13816$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13817	 X"$0" : 'X\(//\)$' \| \
13818	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13819$as_echo X/"$0" |
13820    sed '/^.*\/\([^/][^/]*\)\/*$/{
13821	    s//\1/
13822	    q
13823	  }
13824	  /^X\/\(\/\/\)$/{
13825	    s//\1/
13826	    q
13827	  }
13828	  /^X\/\(\/\).*/{
13829	    s//\1/
13830	    q
13831	  }
13832	  s/.*/./; q'`
13833
13834# CDPATH.
13835$as_unset CDPATH
13836
13837
13838
13839  as_lineno_1=$LINENO
13840  as_lineno_2=$LINENO
13841  test "x$as_lineno_1" != "x$as_lineno_2" &&
13842  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13843
13844  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13845  # uniformly replaced by the line number.  The first 'sed' inserts a
13846  # line-number line after each line using $LINENO; the second 'sed'
13847  # does the real work.  The second script uses 'N' to pair each
13848  # line-number line with the line containing $LINENO, and appends
13849  # trailing '-' during substitution so that $LINENO is not a special
13850  # case at line end.
13851  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13852  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13853  # E. McMahon (1931-1989) for sed's syntax.  :-)
13854  sed -n '
13855    p
13856    /[$]LINENO/=
13857  ' <$as_myself |
13858    sed '
13859      s/[$]LINENO.*/&-/
13860      t lineno
13861      b
13862      :lineno
13863      N
13864      :loop
13865      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13866      t loop
13867      s/-\n.*//
13868    ' >$as_me.lineno &&
13869  chmod +x "$as_me.lineno" ||
13870    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13871   { (exit 1); exit 1; }; }
13872
13873  # Don't try to exec as it changes $[0], causing all sort of problems
13874  # (the dirname of $[0] is not the place where we might find the
13875  # original and so on.  Autoconf is especially sensitive to this).
13876  . "./$as_me.lineno"
13877  # Exit status is that of the last command.
13878  exit
13879}
13880
13881
13882if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13883  as_dirname=dirname
13884else
13885  as_dirname=false
13886fi
13887
13888ECHO_C= ECHO_N= ECHO_T=
13889case `echo -n x` in
13890-n*)
13891  case `echo 'x\c'` in
13892  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13893  *)   ECHO_C='\c';;
13894  esac;;
13895*)
13896  ECHO_N='-n';;
13897esac
13898if expr a : '\(a\)' >/dev/null 2>&1 &&
13899   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13900  as_expr=expr
13901else
13902  as_expr=false
13903fi
13904
13905rm -f conf$$ conf$$.exe conf$$.file
13906if test -d conf$$.dir; then
13907  rm -f conf$$.dir/conf$$.file
13908else
13909  rm -f conf$$.dir
13910  mkdir conf$$.dir 2>/dev/null
13911fi
13912if (echo >conf$$.file) 2>/dev/null; then
13913  if ln -s conf$$.file conf$$ 2>/dev/null; then
13914    as_ln_s='ln -s'
13915    # ... but there are two gotchas:
13916    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13917    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13918    # In both cases, we have to default to `cp -p'.
13919    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13920      as_ln_s='cp -p'
13921  elif ln conf$$.file conf$$ 2>/dev/null; then
13922    as_ln_s=ln
13923  else
13924    as_ln_s='cp -p'
13925  fi
13926else
13927  as_ln_s='cp -p'
13928fi
13929rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13930rmdir conf$$.dir 2>/dev/null
13931
13932if mkdir -p . 2>/dev/null; then
13933  as_mkdir_p=:
13934else
13935  test -d ./-p && rmdir ./-p
13936  as_mkdir_p=false
13937fi
13938
13939if test -x / >/dev/null 2>&1; then
13940  as_test_x='test -x'
13941else
13942  if ls -dL / >/dev/null 2>&1; then
13943    as_ls_L_option=L
13944  else
13945    as_ls_L_option=
13946  fi
13947  as_test_x='
13948    eval sh -c '\''
13949      if test -d "$1"; then
13950	test -d "$1/.";
13951      else
13952	case $1 in
13953	-*)set "./$1";;
13954	esac;
13955	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13956	???[sx]*):;;*)false;;esac;fi
13957    '\'' sh
13958  '
13959fi
13960as_executable_p=$as_test_x
13961
13962# Sed expression to map a string onto a valid CPP name.
13963as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13964
13965# Sed expression to map a string onto a valid variable name.
13966as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13967
13968
13969exec 6>&1
13970
13971# Save the log message, to keep $[0] and so on meaningful, and to
13972# report actual input values of CONFIG_FILES etc. instead of their
13973# values after options handling.
13974ac_log="
13975This file was extended by sqlite $as_me 3.7.2, which was
13976generated by GNU Autoconf 2.62.  Invocation command line was
13977
13978  CONFIG_FILES    = $CONFIG_FILES
13979  CONFIG_HEADERS  = $CONFIG_HEADERS
13980  CONFIG_LINKS    = $CONFIG_LINKS
13981  CONFIG_COMMANDS = $CONFIG_COMMANDS
13982  $ $0 $@
13983
13984on `(hostname || uname -n) 2>/dev/null | sed 1q`
13985"
13986
13987_ACEOF
13988
13989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13990# Files that config.status was made for.
13991config_files="$ac_config_files"
13992config_headers="$ac_config_headers"
13993config_commands="$ac_config_commands"
13994
13995_ACEOF
13996
13997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13998ac_cs_usage="\
13999\`$as_me' instantiates files from templates according to the
14000current configuration.
14001
14002Usage: $0 [OPTIONS] [FILE]...
14003
14004  -h, --help       print this help, then exit
14005  -V, --version    print version number and configuration settings, then exit
14006  -q, --quiet      do not print progress messages
14007  -d, --debug      don't remove temporary files
14008      --recheck    update $as_me by reconfiguring in the same conditions
14009  --file=FILE[:TEMPLATE]
14010                   instantiate the configuration file FILE
14011  --header=FILE[:TEMPLATE]
14012                   instantiate the configuration header FILE
14013
14014Configuration files:
14015$config_files
14016
14017Configuration headers:
14018$config_headers
14019
14020Configuration commands:
14021$config_commands
14022
14023Report bugs to <[email protected]>."
14024
14025_ACEOF
14026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14027ac_cs_version="\\
14028sqlite config.status 3.7.2
14029configured by $0, generated by GNU Autoconf 2.62,
14030  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14031
14032Copyright (C) 2008 Free Software Foundation, Inc.
14033This config.status script is free software; the Free Software Foundation
14034gives unlimited permission to copy, distribute and modify it."
14035
14036ac_pwd='$ac_pwd'
14037srcdir='$srcdir'
14038INSTALL='$INSTALL'
14039AWK='$AWK'
14040test -n "\$AWK" || AWK=awk
14041_ACEOF
14042
14043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14044# The default lists apply if the user does not specify any file.
14045ac_need_defaults=:
14046while test $# != 0
14047do
14048  case $1 in
14049  --*=*)
14050    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14051    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14052    ac_shift=:
14053    ;;
14054  *)
14055    ac_option=$1
14056    ac_optarg=$2
14057    ac_shift=shift
14058    ;;
14059  esac
14060
14061  case $ac_option in
14062  # Handling of the options.
14063  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14064    ac_cs_recheck=: ;;
14065  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14066    $as_echo "$ac_cs_version"; exit ;;
14067  --debug | --debu | --deb | --de | --d | -d )
14068    debug=: ;;
14069  --file | --fil | --fi | --f )
14070    $ac_shift
14071    case $ac_optarg in
14072    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14073    esac
14074    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14075    ac_need_defaults=false;;
14076  --header | --heade | --head | --hea )
14077    $ac_shift
14078    case $ac_optarg in
14079    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14080    esac
14081    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14082    ac_need_defaults=false;;
14083  --he | --h)
14084    # Conflict between --help and --header
14085    { $as_echo "$as_me: error: ambiguous option: $1
14086Try \`$0 --help' for more information." >&2
14087   { (exit 1); exit 1; }; };;
14088  --help | --hel | -h )
14089    $as_echo "$ac_cs_usage"; exit ;;
14090  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14091  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14092    ac_cs_silent=: ;;
14093
14094  # This is an error.
14095  -*) { $as_echo "$as_me: error: unrecognized option: $1
14096Try \`$0 --help' for more information." >&2
14097   { (exit 1); exit 1; }; } ;;
14098
14099  *) ac_config_targets="$ac_config_targets $1"
14100     ac_need_defaults=false ;;
14101
14102  esac
14103  shift
14104done
14105
14106ac_configure_extra_args=
14107
14108if $ac_cs_silent; then
14109  exec 6>/dev/null
14110  ac_configure_extra_args="$ac_configure_extra_args --silent"
14111fi
14112
14113_ACEOF
14114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14115if \$ac_cs_recheck; then
14116  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14117  shift
14118  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14119  CONFIG_SHELL='$SHELL'
14120  export CONFIG_SHELL
14121  exec "\$@"
14122fi
14123
14124_ACEOF
14125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14126exec 5>>config.log
14127{
14128  echo
14129  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14130## Running $as_me. ##
14131_ASBOX
14132  $as_echo "$ac_log"
14133} >&5
14134
14135_ACEOF
14136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14137#
14138# INIT-COMMANDS
14139#
14140
14141
14142# The HP-UX ksh and POSIX shell print the target directory to stdout
14143# if CDPATH is set.
14144(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14145
14146sed_quote_subst='$sed_quote_subst'
14147double_quote_subst='$double_quote_subst'
14148delay_variable_subst='$delay_variable_subst'
14149macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14150macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14151enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14152enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14153pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14154enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14155host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14156host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14157host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14158build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14159build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14160build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14161SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14162Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14163GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14164EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14165FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14166LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14167NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14168LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14169max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14170ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14171exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14172lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14173lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14174lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14175reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14176reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14177OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14178deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14179file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14180AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14181AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14182STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14183RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14184old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14185old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14186old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14187CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14188CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14189compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14190GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14191lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14192lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14193lt_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"`'
14194lt_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"`'
14195objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14196SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14197ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14198MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14199lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14200lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14201lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14202lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14203lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14204need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14205DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14206NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14207LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14208OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14209OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14210libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14211shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14212extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14213archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14214enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14215export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14216whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14217compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14218old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14219old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14220archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14221archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14222module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14223module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14224with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14225allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14226no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14227hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14228hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14229hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14230hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14231hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14232hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14233hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14234hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14235inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14236link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14237fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14238always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14239export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14240exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14241include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14242prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14243file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14244variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14245need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14246need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14247version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14248runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14249shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14250shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14251libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14252library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14253soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14254postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14255postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14256finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14257finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14258hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14259sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14260sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14261hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14262enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14263enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14264enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14265old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14266striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14267
14268LTCC='$LTCC'
14269LTCFLAGS='$LTCFLAGS'
14270compiler='$compiler_DEFAULT'
14271
14272# Quote evaled strings.
14273for var in SED \
14274GREP \
14275EGREP \
14276FGREP \
14277LD \
14278NM \
14279LN_S \
14280lt_SP2NL \
14281lt_NL2SP \
14282reload_flag \
14283OBJDUMP \
14284deplibs_check_method \
14285file_magic_cmd \
14286AR \
14287AR_FLAGS \
14288STRIP \
14289RANLIB \
14290CC \
14291CFLAGS \
14292compiler \
14293lt_cv_sys_global_symbol_pipe \
14294lt_cv_sys_global_symbol_to_cdecl \
14295lt_cv_sys_global_symbol_to_c_name_address \
14296lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14297SHELL \
14298ECHO \
14299lt_prog_compiler_no_builtin_flag \
14300lt_prog_compiler_wl \
14301lt_prog_compiler_pic \
14302lt_prog_compiler_static \
14303lt_cv_prog_compiler_c_o \
14304need_locks \
14305DSYMUTIL \
14306NMEDIT \
14307LIPO \
14308OTOOL \
14309OTOOL64 \
14310shrext_cmds \
14311export_dynamic_flag_spec \
14312whole_archive_flag_spec \
14313compiler_needs_object \
14314with_gnu_ld \
14315allow_undefined_flag \
14316no_undefined_flag \
14317hardcode_libdir_flag_spec \
14318hardcode_libdir_flag_spec_ld \
14319hardcode_libdir_separator \
14320fix_srcfile_path \
14321exclude_expsyms \
14322include_expsyms \
14323file_list_spec \
14324variables_saved_for_relink \
14325libname_spec \
14326library_names_spec \
14327soname_spec \
14328finish_eval \
14329old_striplib \
14330striplib; do
14331    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14332    *[\\\\\\\`\\"\\\$]*)
14333      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14334      ;;
14335    *)
14336      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14337      ;;
14338    esac
14339done
14340
14341# Double-quote double-evaled strings.
14342for var in reload_cmds \
14343old_postinstall_cmds \
14344old_postuninstall_cmds \
14345old_archive_cmds \
14346extract_expsyms_cmds \
14347old_archive_from_new_cmds \
14348old_archive_from_expsyms_cmds \
14349archive_cmds \
14350archive_expsym_cmds \
14351module_cmds \
14352module_expsym_cmds \
14353export_symbols_cmds \
14354prelink_cmds \
14355postinstall_cmds \
14356postuninstall_cmds \
14357finish_cmds \
14358sys_lib_search_path_spec \
14359sys_lib_dlsearch_path_spec; do
14360    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14361    *[\\\\\\\`\\"\\\$]*)
14362      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14363      ;;
14364    *)
14365      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14366      ;;
14367    esac
14368done
14369
14370# Fix-up fallback echo if it was mangled by the above quoting rules.
14371case \$lt_ECHO in
14372*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14373  ;;
14374esac
14375
14376ac_aux_dir='$ac_aux_dir'
14377xsi_shell='$xsi_shell'
14378lt_shell_append='$lt_shell_append'
14379
14380# See if we are running on zsh, and set the options which allow our
14381# commands through without removal of \ escapes INIT.
14382if test -n "\${ZSH_VERSION+set}" ; then
14383   setopt NO_GLOB_SUBST
14384fi
14385
14386
14387    PACKAGE='$PACKAGE'
14388    VERSION='$VERSION'
14389    TIMESTAMP='$TIMESTAMP'
14390    RM='$RM'
14391    ofile='$ofile'
14392
14393
14394
14395
14396_ACEOF
14397
14398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14399
14400# Handling of arguments.
14401for ac_config_target in $ac_config_targets
14402do
14403  case $ac_config_target in
14404    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14405    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14406    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14407    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14408
14409  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14410$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14411   { (exit 1); exit 1; }; };;
14412  esac
14413done
14414
14415
14416# If the user did not use the arguments to specify the items to instantiate,
14417# then the envvar interface is used.  Set only those that are not.
14418# We use the long form for the default assignment because of an extremely
14419# bizarre bug on SunOS 4.1.3.
14420if $ac_need_defaults; then
14421  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14422  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14423  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14424fi
14425
14426# Have a temporary directory for convenience.  Make it in the build tree
14427# simply because there is no reason against having it here, and in addition,
14428# creating and moving files from /tmp can sometimes cause problems.
14429# Hook for its removal unless debugging.
14430# Note that there is a small window in which the directory will not be cleaned:
14431# after its creation but before its name has been assigned to `$tmp'.
14432$debug ||
14433{
14434  tmp=
14435  trap 'exit_status=$?
14436  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14437' 0
14438  trap '{ (exit 1); exit 1; }' 1 2 13 15
14439}
14440# Create a (secure) tmp directory for tmp files.
14441
14442{
14443  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14444  test -n "$tmp" && test -d "$tmp"
14445}  ||
14446{
14447  tmp=./conf$$-$RANDOM
14448  (umask 077 && mkdir "$tmp")
14449} ||
14450{
14451   $as_echo "$as_me: cannot create a temporary directory in ." >&2
14452   { (exit 1); exit 1; }
14453}
14454
14455# Set up the scripts for CONFIG_FILES section.
14456# No need to generate them if there are no CONFIG_FILES.
14457# This happens for instance with `./config.status config.h'.
14458if test -n "$CONFIG_FILES"; then
14459
14460
14461ac_cr='
14462'
14463ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14464if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14465  ac_cs_awk_cr='\\r'
14466else
14467  ac_cs_awk_cr=$ac_cr
14468fi
14469
14470echo 'BEGIN {' >"$tmp/subs1.awk" &&
14471_ACEOF
14472
14473
14474{
14475  echo "cat >conf$$subs.awk <<_ACEOF" &&
14476  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14477  echo "_ACEOF"
14478} >conf$$subs.sh ||
14479  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14480$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14481   { (exit 1); exit 1; }; }
14482ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14483ac_delim='%!_!# '
14484for ac_last_try in false false false false false :; do
14485  . ./conf$$subs.sh ||
14486    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14487$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14488   { (exit 1); exit 1; }; }
14489
14490  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14491    break
14492  elif $ac_last_try; then
14493    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14494$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14495   { (exit 1); exit 1; }; }
14496  else
14497    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14498  fi
14499done
14500rm -f conf$$subs.sh
14501
14502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14503cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14504_ACEOF
14505sed -n '
14506h
14507s/^/S["/; s/!.*/"]=/
14508p
14509g
14510s/^[^!]*!//
14511:repl
14512t repl
14513s/'"$ac_delim"'$//
14514t delim
14515:nl
14516h
14517s/\(.\{148\}\).*/\1/
14518t more1
14519s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14520p
14521n
14522b repl
14523:more1
14524s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14525p
14526g
14527s/.\{148\}//
14528t nl
14529:delim
14530h
14531s/\(.\{148\}\).*/\1/
14532t more2
14533s/["\\]/\\&/g; s/^/"/; s/$/"/
14534p
14535b
14536:more2
14537s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14538p
14539g
14540s/.\{148\}//
14541t delim
14542' <conf$$subs.awk | sed '
14543/^[^""]/{
14544  N
14545  s/\n//
14546}
14547' >>$CONFIG_STATUS || ac_write_fail=1
14548rm -f conf$$subs.awk
14549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14550_ACAWK
14551cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14552  for (key in S) S_is_set[key] = 1
14553  FS = ""
14554
14555}
14556{
14557  line = $ 0
14558  nfields = split(line, field, "@")
14559  substed = 0
14560  len = length(field[1])
14561  for (i = 2; i < nfields; i++) {
14562    key = field[i]
14563    keylen = length(key)
14564    if (S_is_set[key]) {
14565      value = S[key]
14566      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14567      len += length(value) + length(field[++i])
14568      substed = 1
14569    } else
14570      len += 1 + keylen
14571  }
14572
14573  print line
14574}
14575
14576_ACAWK
14577_ACEOF
14578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14579if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14580  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14581else
14582  cat
14583fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14584  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14585$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14586   { (exit 1); exit 1; }; }
14587_ACEOF
14588
14589# VPATH may cause trouble with some makes, so we remove $(srcdir),
14590# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14591# trailing colons and then remove the whole line if VPATH becomes empty
14592# (actually we leave an empty line to preserve line numbers).
14593if test "x$srcdir" = x.; then
14594  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14595s/:*\$(srcdir):*/:/
14596s/:*\${srcdir}:*/:/
14597s/:*@srcdir@:*/:/
14598s/^\([^=]*=[	 ]*\):*/\1/
14599s/:*$//
14600s/^[^=]*=[	 ]*$//
14601}'
14602fi
14603
14604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14605fi # test -n "$CONFIG_FILES"
14606
14607# Set up the scripts for CONFIG_HEADERS section.
14608# No need to generate them if there are no CONFIG_HEADERS.
14609# This happens for instance with `./config.status Makefile'.
14610if test -n "$CONFIG_HEADERS"; then
14611cat >"$tmp/defines.awk" <<\_ACAWK ||
14612BEGIN {
14613_ACEOF
14614
14615# Transform confdefs.h into an awk script `defines.awk', embedded as
14616# here-document in config.status, that substitutes the proper values into
14617# config.h.in to produce config.h.
14618
14619# Create a delimiter string that does not exist in confdefs.h, to ease
14620# handling of long lines.
14621ac_delim='%!_!# '
14622for ac_last_try in false false :; do
14623  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14624  if test -z "$ac_t"; then
14625    break
14626  elif $ac_last_try; then
14627    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14628$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14629   { (exit 1); exit 1; }; }
14630  else
14631    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14632  fi
14633done
14634
14635# For the awk script, D is an array of macro values keyed by name,
14636# likewise P contains macro parameters if any.  Preserve backslash
14637# newline sequences.
14638
14639ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14640sed -n '
14641s/.\{148\}/&'"$ac_delim"'/g
14642t rset
14643:rset
14644s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14645t def
14646d
14647:def
14648s/\\$//
14649t bsnl
14650s/["\\]/\\&/g
14651s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14652D["\1"]=" \3"/p
14653s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14654d
14655:bsnl
14656s/["\\]/\\&/g
14657s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14658D["\1"]=" \3\\\\\\n"\\/p
14659t cont
14660s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14661t cont
14662d
14663:cont
14664n
14665s/.\{148\}/&'"$ac_delim"'/g
14666t clear
14667:clear
14668s/\\$//
14669t bsnlc
14670s/["\\]/\\&/g; s/^/"/; s/$/"/p
14671d
14672:bsnlc
14673s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14674b cont
14675' <confdefs.h | sed '
14676s/'"$ac_delim"'/"\\\
14677"/g' >>$CONFIG_STATUS || ac_write_fail=1
14678
14679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14680  for (key in D) D_is_set[key] = 1
14681  FS = ""
14682}
14683/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14684  line = \$ 0
14685  split(line, arg, " ")
14686  if (arg[1] == "#") {
14687    defundef = arg[2]
14688    mac1 = arg[3]
14689  } else {
14690    defundef = substr(arg[1], 2)
14691    mac1 = arg[2]
14692  }
14693  split(mac1, mac2, "(") #)
14694  macro = mac2[1]
14695  if (D_is_set[macro]) {
14696    # Preserve the white space surrounding the "#".
14697    prefix = substr(line, 1, index(line, defundef) - 1)
14698    print prefix "define", macro P[macro] D[macro]
14699    next
14700  } else {
14701    # Replace #undef with comments.  This is necessary, for example,
14702    # in the case of _POSIX_SOURCE, which is predefined and required
14703    # on some systems where configure will not decide to define it.
14704    if (defundef == "undef") {
14705      print "/*", line, "*/"
14706      next
14707    }
14708  }
14709}
14710{ print }
14711_ACAWK
14712_ACEOF
14713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14714  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14715$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14716   { (exit 1); exit 1; }; }
14717fi # test -n "$CONFIG_HEADERS"
14718
14719
14720eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14721shift
14722for ac_tag
14723do
14724  case $ac_tag in
14725  :[FHLC]) ac_mode=$ac_tag; continue;;
14726  esac
14727  case $ac_mode$ac_tag in
14728  :[FHL]*:*);;
14729  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14730$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14731   { (exit 1); exit 1; }; };;
14732  :[FH]-) ac_tag=-:-;;
14733  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14734  esac
14735  ac_save_IFS=$IFS
14736  IFS=:
14737  set x $ac_tag
14738  IFS=$ac_save_IFS
14739  shift
14740  ac_file=$1
14741  shift
14742
14743  case $ac_mode in
14744  :L) ac_source=$1;;
14745  :[FH])
14746    ac_file_inputs=
14747    for ac_f
14748    do
14749      case $ac_f in
14750      -) ac_f="$tmp/stdin";;
14751      *) # Look for the file first in the build tree, then in the source tree
14752	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14753	 # because $ac_f cannot contain `:'.
14754	 test -f "$ac_f" ||
14755	   case $ac_f in
14756	   [\\/$]*) false;;
14757	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14758	   esac ||
14759	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14760$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14761   { (exit 1); exit 1; }; };;
14762      esac
14763      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14764      ac_file_inputs="$ac_file_inputs '$ac_f'"
14765    done
14766
14767    # Let's still pretend it is `configure' which instantiates (i.e., don't
14768    # use $as_me), people would be surprised to read:
14769    #    /* config.h.  Generated by config.status.  */
14770    configure_input='Generated from '`
14771	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14772	`' by configure.'
14773    if test x"$ac_file" != x-; then
14774      configure_input="$ac_file.  $configure_input"
14775      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14776$as_echo "$as_me: creating $ac_file" >&6;}
14777    fi
14778    # Neutralize special characters interpreted by sed in replacement strings.
14779    case $configure_input in #(
14780    *\&* | *\|* | *\\* )
14781       ac_sed_conf_input=`$as_echo "$configure_input" |
14782       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14783    *) ac_sed_conf_input=$configure_input;;
14784    esac
14785
14786    case $ac_tag in
14787    *:-:* | *:-) cat >"$tmp/stdin" \
14788      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14789$as_echo "$as_me: error: could not create $ac_file" >&2;}
14790   { (exit 1); exit 1; }; } ;;
14791    esac
14792    ;;
14793  esac
14794
14795  ac_dir=`$as_dirname -- "$ac_file" ||
14796$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14797	 X"$ac_file" : 'X\(//\)[^/]' \| \
14798	 X"$ac_file" : 'X\(//\)$' \| \
14799	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14800$as_echo X"$ac_file" |
14801    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14802	    s//\1/
14803	    q
14804	  }
14805	  /^X\(\/\/\)[^/].*/{
14806	    s//\1/
14807	    q
14808	  }
14809	  /^X\(\/\/\)$/{
14810	    s//\1/
14811	    q
14812	  }
14813	  /^X\(\/\).*/{
14814	    s//\1/
14815	    q
14816	  }
14817	  s/.*/./; q'`
14818  { as_dir="$ac_dir"
14819  case $as_dir in #(
14820  -*) as_dir=./$as_dir;;
14821  esac
14822  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14823    as_dirs=
14824    while :; do
14825      case $as_dir in #(
14826      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14827      *) as_qdir=$as_dir;;
14828      esac
14829      as_dirs="'$as_qdir' $as_dirs"
14830      as_dir=`$as_dirname -- "$as_dir" ||
14831$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14832	 X"$as_dir" : 'X\(//\)[^/]' \| \
14833	 X"$as_dir" : 'X\(//\)$' \| \
14834	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14835$as_echo X"$as_dir" |
14836    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14837	    s//\1/
14838	    q
14839	  }
14840	  /^X\(\/\/\)[^/].*/{
14841	    s//\1/
14842	    q
14843	  }
14844	  /^X\(\/\/\)$/{
14845	    s//\1/
14846	    q
14847	  }
14848	  /^X\(\/\).*/{
14849	    s//\1/
14850	    q
14851	  }
14852	  s/.*/./; q'`
14853      test -d "$as_dir" && break
14854    done
14855    test -z "$as_dirs" || eval "mkdir $as_dirs"
14856  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14857$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14858   { (exit 1); exit 1; }; }; }
14859  ac_builddir=.
14860
14861case "$ac_dir" in
14862.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14863*)
14864  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14865  # A ".." for each directory in $ac_dir_suffix.
14866  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14867  case $ac_top_builddir_sub in
14868  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14869  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14870  esac ;;
14871esac
14872ac_abs_top_builddir=$ac_pwd
14873ac_abs_builddir=$ac_pwd$ac_dir_suffix
14874# for backward compatibility:
14875ac_top_builddir=$ac_top_build_prefix
14876
14877case $srcdir in
14878  .)  # We are building in place.
14879    ac_srcdir=.
14880    ac_top_srcdir=$ac_top_builddir_sub
14881    ac_abs_top_srcdir=$ac_pwd ;;
14882  [\\/]* | ?:[\\/]* )  # Absolute name.
14883    ac_srcdir=$srcdir$ac_dir_suffix;
14884    ac_top_srcdir=$srcdir
14885    ac_abs_top_srcdir=$srcdir ;;
14886  *) # Relative name.
14887    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14888    ac_top_srcdir=$ac_top_build_prefix$srcdir
14889    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14890esac
14891ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14892
14893
14894  case $ac_mode in
14895  :F)
14896  #
14897  # CONFIG_FILE
14898  #
14899
14900  case $INSTALL in
14901  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14902  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14903  esac
14904_ACEOF
14905
14906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14907# If the template does not know about datarootdir, expand it.
14908# FIXME: This hack should be removed a few years after 2.60.
14909ac_datarootdir_hack=; ac_datarootdir_seen=
14910
14911ac_sed_dataroot='
14912/datarootdir/ {
14913  p
14914  q
14915}
14916/@datadir@/p
14917/@docdir@/p
14918/@infodir@/p
14919/@localedir@/p
14920/@mandir@/p
14921'
14922case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14923*datarootdir*) ac_datarootdir_seen=yes;;
14924*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14925  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14926$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14927_ACEOF
14928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14929  ac_datarootdir_hack='
14930  s&@datadir@&$datadir&g
14931  s&@docdir@&$docdir&g
14932  s&@infodir@&$infodir&g
14933  s&@localedir@&$localedir&g
14934  s&@mandir@&$mandir&g
14935    s&\\\${datarootdir}&$datarootdir&g' ;;
14936esac
14937_ACEOF
14938
14939# Neutralize VPATH when `$srcdir' = `.'.
14940# Shell code in configure.ac might set extrasub.
14941# FIXME: do we really want to maintain this feature?
14942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943ac_sed_extra="$ac_vpsub
14944$extrasub
14945_ACEOF
14946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14947:t
14948/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14949s|@configure_input@|$ac_sed_conf_input|;t t
14950s&@top_builddir@&$ac_top_builddir_sub&;t t
14951s&@top_build_prefix@&$ac_top_build_prefix&;t t
14952s&@srcdir@&$ac_srcdir&;t t
14953s&@abs_srcdir@&$ac_abs_srcdir&;t t
14954s&@top_srcdir@&$ac_top_srcdir&;t t
14955s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14956s&@builddir@&$ac_builddir&;t t
14957s&@abs_builddir@&$ac_abs_builddir&;t t
14958s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14959s&@INSTALL@&$ac_INSTALL&;t t
14960$ac_datarootdir_hack
14961"
14962eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
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
14967test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14968  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14969  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14970  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14971which seems to be undefined.  Please make sure it is defined." >&5
14972$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14973which seems to be undefined.  Please make sure it is defined." >&2;}
14974
14975  rm -f "$tmp/stdin"
14976  case $ac_file in
14977  -) cat "$tmp/out" && rm -f "$tmp/out";;
14978  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14979  esac \
14980  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14981$as_echo "$as_me: error: could not create $ac_file" >&2;}
14982   { (exit 1); exit 1; }; }
14983 ;;
14984  :H)
14985  #
14986  # CONFIG_HEADER
14987  #
14988  if test x"$ac_file" != x-; then
14989    {
14990      $as_echo "/* $configure_input  */" \
14991      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14992    } >"$tmp/config.h" \
14993      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14994$as_echo "$as_me: error: could not create $ac_file" >&2;}
14995   { (exit 1); exit 1; }; }
14996    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14997      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14998$as_echo "$as_me: $ac_file is unchanged" >&6;}
14999    else
15000      rm -f "$ac_file"
15001      mv "$tmp/config.h" "$ac_file" \
15002	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15003$as_echo "$as_me: error: could not create $ac_file" >&2;}
15004   { (exit 1); exit 1; }; }
15005    fi
15006  else
15007    $as_echo "/* $configure_input  */" \
15008      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15009      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15010$as_echo "$as_me: error: could not create -" >&2;}
15011   { (exit 1); exit 1; }; }
15012  fi
15013 ;;
15014
15015  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15016$as_echo "$as_me: executing $ac_file commands" >&6;}
15017 ;;
15018  esac
15019
15020
15021  case $ac_file$ac_mode in
15022    "libtool":C)
15023
15024    # See if we are running on zsh, and set the options which allow our
15025    # commands through without removal of \ escapes.
15026    if test -n "${ZSH_VERSION+set}" ; then
15027      setopt NO_GLOB_SUBST
15028    fi
15029
15030    cfgfile="${ofile}T"
15031    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15032    $RM "$cfgfile"
15033
15034    cat <<_LT_EOF >> "$cfgfile"
15035#! $SHELL
15036
15037# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15038# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15039# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15040# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15041#
15042#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15043#                 2006, 2007, 2008 Free Software Foundation, Inc.
15044#   Written by Gordon Matzigkeit, 1996
15045#
15046#   This file is part of GNU Libtool.
15047#
15048# GNU Libtool is free software; you can redistribute it and/or
15049# modify it under the terms of the GNU General Public License as
15050# published by the Free Software Foundation; either version 2 of
15051# the License, or (at your option) any later version.
15052#
15053# As a special exception to the GNU General Public License,
15054# if you distribute this file as part of a program or library that
15055# is built using GNU Libtool, you may include this file under the
15056# same distribution terms that you use for the rest of that program.
15057#
15058# GNU Libtool is distributed in the hope that it will be useful,
15059# but WITHOUT ANY WARRANTY; without even the implied warranty of
15060# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15061# GNU General Public License for more details.
15062#
15063# You should have received a copy of the GNU General Public License
15064# along with GNU Libtool; see the file COPYING.  If not, a copy
15065# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15066# obtained by writing to the Free Software Foundation, Inc.,
15067# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15068
15069
15070# The names of the tagged configurations supported by this script.
15071available_tags=""
15072
15073# ### BEGIN LIBTOOL CONFIG
15074
15075# Which release of libtool.m4 was used?
15076macro_version=$macro_version
15077macro_revision=$macro_revision
15078
15079# Whether or not to build shared libraries.
15080build_libtool_libs=$enable_shared
15081
15082# Whether or not to build static libraries.
15083build_old_libs=$enable_static
15084
15085# What type of objects to build.
15086pic_mode=$pic_mode
15087
15088# Whether or not to optimize for fast installation.
15089fast_install=$enable_fast_install
15090
15091# The host system.
15092host_alias=$host_alias
15093host=$host
15094host_os=$host_os
15095
15096# The build system.
15097build_alias=$build_alias
15098build=$build
15099build_os=$build_os
15100
15101# A sed program that does not truncate output.
15102SED=$lt_SED
15103
15104# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15105Xsed="\$SED -e 1s/^X//"
15106
15107# A grep program that handles long lines.
15108GREP=$lt_GREP
15109
15110# An ERE matcher.
15111EGREP=$lt_EGREP
15112
15113# A literal string matcher.
15114FGREP=$lt_FGREP
15115
15116# A BSD- or MS-compatible name lister.
15117NM=$lt_NM
15118
15119# Whether we need soft or hard links.
15120LN_S=$lt_LN_S
15121
15122# What is the maximum length of a command?
15123max_cmd_len=$max_cmd_len
15124
15125# Object file suffix (normally "o").
15126objext=$ac_objext
15127
15128# Executable file suffix (normally "").
15129exeext=$exeext
15130
15131# whether the shell understands "unset".
15132lt_unset=$lt_unset
15133
15134# turn spaces into newlines.
15135SP2NL=$lt_lt_SP2NL
15136
15137# turn newlines into spaces.
15138NL2SP=$lt_lt_NL2SP
15139
15140# How to create reloadable object files.
15141reload_flag=$lt_reload_flag
15142reload_cmds=$lt_reload_cmds
15143
15144# An object symbol dumper.
15145OBJDUMP=$lt_OBJDUMP
15146
15147# Method to check whether dependent libraries are shared objects.
15148deplibs_check_method=$lt_deplibs_check_method
15149
15150# Command to use when deplibs_check_method == "file_magic".
15151file_magic_cmd=$lt_file_magic_cmd
15152
15153# The archiver.
15154AR=$lt_AR
15155AR_FLAGS=$lt_AR_FLAGS
15156
15157# A symbol stripping program.
15158STRIP=$lt_STRIP
15159
15160# Commands used to install an old-style archive.
15161RANLIB=$lt_RANLIB
15162old_postinstall_cmds=$lt_old_postinstall_cmds
15163old_postuninstall_cmds=$lt_old_postuninstall_cmds
15164
15165# A C compiler.
15166LTCC=$lt_CC
15167
15168# LTCC compiler flags.
15169LTCFLAGS=$lt_CFLAGS
15170
15171# Take the output of nm and produce a listing of raw symbols and C names.
15172global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15173
15174# Transform the output of nm in a proper C declaration.
15175global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15176
15177# Transform the output of nm in a C name address pair.
15178global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15179
15180# Transform the output of nm in a C name address pair when lib prefix is needed.
15181global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15182
15183# The name of the directory that contains temporary libtool files.
15184objdir=$objdir
15185
15186# Shell to use when invoking shell scripts.
15187SHELL=$lt_SHELL
15188
15189# An echo program that does not interpret backslashes.
15190ECHO=$lt_ECHO
15191
15192# Used to examine libraries when file_magic_cmd begins with "file".
15193MAGIC_CMD=$MAGIC_CMD
15194
15195# Must we lock files when doing compilation?
15196need_locks=$lt_need_locks
15197
15198# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15199DSYMUTIL=$lt_DSYMUTIL
15200
15201# Tool to change global to local symbols on Mac OS X.
15202NMEDIT=$lt_NMEDIT
15203
15204# Tool to manipulate fat objects and archives on Mac OS X.
15205LIPO=$lt_LIPO
15206
15207# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15208OTOOL=$lt_OTOOL
15209
15210# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15211OTOOL64=$lt_OTOOL64
15212
15213# Old archive suffix (normally "a").
15214libext=$libext
15215
15216# Shared library suffix (normally ".so").
15217shrext_cmds=$lt_shrext_cmds
15218
15219# The commands to extract the exported symbol list from a shared archive.
15220extract_expsyms_cmds=$lt_extract_expsyms_cmds
15221
15222# Variables whose values should be saved in libtool wrapper scripts and
15223# restored at link time.
15224variables_saved_for_relink=$lt_variables_saved_for_relink
15225
15226# Do we need the "lib" prefix for modules?
15227need_lib_prefix=$need_lib_prefix
15228
15229# Do we need a version for libraries?
15230need_version=$need_version
15231
15232# Library versioning type.
15233version_type=$version_type
15234
15235# Shared library runtime path variable.
15236runpath_var=$runpath_var
15237
15238# Shared library path variable.
15239shlibpath_var=$shlibpath_var
15240
15241# Is shlibpath searched before the hard-coded library search path?
15242shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15243
15244# Format of library name prefix.
15245libname_spec=$lt_libname_spec
15246
15247# List of archive names.  First name is the real one, the rest are links.
15248# The last name is the one that the linker finds with -lNAME
15249library_names_spec=$lt_library_names_spec
15250
15251# The coded name of the library, if different from the real name.
15252soname_spec=$lt_soname_spec
15253
15254# Command to use after installation of a shared archive.
15255postinstall_cmds=$lt_postinstall_cmds
15256
15257# Command to use after uninstallation of a shared archive.
15258postuninstall_cmds=$lt_postuninstall_cmds
15259
15260# Commands used to finish a libtool library installation in a directory.
15261finish_cmds=$lt_finish_cmds
15262
15263# As "finish_cmds", except a single script fragment to be evaled but
15264# not shown.
15265finish_eval=$lt_finish_eval
15266
15267# Whether we should hardcode library paths into libraries.
15268hardcode_into_libs=$hardcode_into_libs
15269
15270# Compile-time system search path for libraries.
15271sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15272
15273# Run-time system search path for libraries.
15274sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15275
15276# Whether dlopen is supported.
15277dlopen_support=$enable_dlopen
15278
15279# Whether dlopen of programs is supported.
15280dlopen_self=$enable_dlopen_self
15281
15282# Whether dlopen of statically linked programs is supported.
15283dlopen_self_static=$enable_dlopen_self_static
15284
15285# Commands to strip libraries.
15286old_striplib=$lt_old_striplib
15287striplib=$lt_striplib
15288
15289
15290# The linker used to build libraries.
15291LD=$lt_LD
15292
15293# Commands used to build an old-style archive.
15294old_archive_cmds=$lt_old_archive_cmds
15295
15296# A language specific compiler.
15297CC=$lt_compiler
15298
15299# Is the compiler the GNU compiler?
15300with_gcc=$GCC
15301
15302# Compiler flag to turn off builtin functions.
15303no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15304
15305# How to pass a linker flag through the compiler.
15306wl=$lt_lt_prog_compiler_wl
15307
15308# Additional compiler flags for building library objects.
15309pic_flag=$lt_lt_prog_compiler_pic
15310
15311# Compiler flag to prevent dynamic linking.
15312link_static_flag=$lt_lt_prog_compiler_static
15313
15314# Does compiler simultaneously support -c and -o options?
15315compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15316
15317# Whether or not to add -lc for building shared libraries.
15318build_libtool_need_lc=$archive_cmds_need_lc
15319
15320# Whether or not to disallow shared libs when runtime libs are static.
15321allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15322
15323# Compiler flag to allow reflexive dlopens.
15324export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15325
15326# Compiler flag to generate shared objects directly from archives.
15327whole_archive_flag_spec=$lt_whole_archive_flag_spec
15328
15329# Whether the compiler copes with passing no objects directly.
15330compiler_needs_object=$lt_compiler_needs_object
15331
15332# Create an old-style archive from a shared archive.
15333old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15334
15335# Create a temporary old-style archive to link instead of a shared archive.
15336old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15337
15338# Commands used to build a shared archive.
15339archive_cmds=$lt_archive_cmds
15340archive_expsym_cmds=$lt_archive_expsym_cmds
15341
15342# Commands used to build a loadable module if different from building
15343# a shared archive.
15344module_cmds=$lt_module_cmds
15345module_expsym_cmds=$lt_module_expsym_cmds
15346
15347# Whether we are building with GNU ld or not.
15348with_gnu_ld=$lt_with_gnu_ld
15349
15350# Flag that allows shared libraries with undefined symbols to be built.
15351allow_undefined_flag=$lt_allow_undefined_flag
15352
15353# Flag that enforces no undefined symbols.
15354no_undefined_flag=$lt_no_undefined_flag
15355
15356# Flag to hardcode \$libdir into a binary during linking.
15357# This must work even if \$libdir does not exist
15358hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15359
15360# If ld is used when linking, flag to hardcode \$libdir into a binary
15361# during linking.  This must work even if \$libdir does not exist.
15362hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15363
15364# Whether we need a single "-rpath" flag with a separated argument.
15365hardcode_libdir_separator=$lt_hardcode_libdir_separator
15366
15367# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15368# DIR into the resulting binary.
15369hardcode_direct=$hardcode_direct
15370
15371# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15372# DIR into the resulting binary and the resulting library dependency is
15373# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15374# library is relocated.
15375hardcode_direct_absolute=$hardcode_direct_absolute
15376
15377# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15378# into the resulting binary.
15379hardcode_minus_L=$hardcode_minus_L
15380
15381# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15382# into the resulting binary.
15383hardcode_shlibpath_var=$hardcode_shlibpath_var
15384
15385# Set to "yes" if building a shared library automatically hardcodes DIR
15386# into the library and all subsequent libraries and executables linked
15387# against it.
15388hardcode_automatic=$hardcode_automatic
15389
15390# Set to yes if linker adds runtime paths of dependent libraries
15391# to runtime path list.
15392inherit_rpath=$inherit_rpath
15393
15394# Whether libtool must link a program against all its dependency libraries.
15395link_all_deplibs=$link_all_deplibs
15396
15397# Fix the shell variable \$srcfile for the compiler.
15398fix_srcfile_path=$lt_fix_srcfile_path
15399
15400# Set to "yes" if exported symbols are required.
15401always_export_symbols=$always_export_symbols
15402
15403# The commands to list exported symbols.
15404export_symbols_cmds=$lt_export_symbols_cmds
15405
15406# Symbols that should not be listed in the preloaded symbols.
15407exclude_expsyms=$lt_exclude_expsyms
15408
15409# Symbols that must always be exported.
15410include_expsyms=$lt_include_expsyms
15411
15412# Commands necessary for linking programs (against libraries) with templates.
15413prelink_cmds=$lt_prelink_cmds
15414
15415# Specify filename containing input files.
15416file_list_spec=$lt_file_list_spec
15417
15418# How to hardcode a shared library path into an executable.
15419hardcode_action=$hardcode_action
15420
15421# ### END LIBTOOL CONFIG
15422
15423_LT_EOF
15424
15425  case $host_os in
15426  aix3*)
15427    cat <<\_LT_EOF >> "$cfgfile"
15428# AIX sometimes has problems with the GCC collect2 program.  For some
15429# reason, if we set the COLLECT_NAMES environment variable, the problems
15430# vanish in a puff of smoke.
15431if test "X${COLLECT_NAMES+set}" != Xset; then
15432  COLLECT_NAMES=
15433  export COLLECT_NAMES
15434fi
15435_LT_EOF
15436    ;;
15437  esac
15438
15439
15440ltmain="$ac_aux_dir/ltmain.sh"
15441
15442
15443  # We use sed instead of cat because bash on DJGPP gets confused if
15444  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15445  # text mode, it properly converts lines to CR/LF.  This bash problem
15446  # is reportedly fixed, but why not run on old versions too?
15447  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15448    || (rm -f "$cfgfile"; exit 1)
15449
15450  case $xsi_shell in
15451  yes)
15452    cat << \_LT_EOF >> "$cfgfile"
15453
15454# func_dirname file append nondir_replacement
15455# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15456# otherwise set result to NONDIR_REPLACEMENT.
15457func_dirname ()
15458{
15459  case ${1} in
15460    */*) func_dirname_result="${1%/*}${2}" ;;
15461    *  ) func_dirname_result="${3}" ;;
15462  esac
15463}
15464
15465# func_basename file
15466func_basename ()
15467{
15468  func_basename_result="${1##*/}"
15469}
15470
15471# func_dirname_and_basename file append nondir_replacement
15472# perform func_basename and func_dirname in a single function
15473# call:
15474#   dirname:  Compute the dirname of FILE.  If nonempty,
15475#             add APPEND to the result, otherwise set result
15476#             to NONDIR_REPLACEMENT.
15477#             value returned in "$func_dirname_result"
15478#   basename: Compute filename of FILE.
15479#             value retuned in "$func_basename_result"
15480# Implementation must be kept synchronized with func_dirname
15481# and func_basename. For efficiency, we do not delegate to
15482# those functions but instead duplicate the functionality here.
15483func_dirname_and_basename ()
15484{
15485  case ${1} in
15486    */*) func_dirname_result="${1%/*}${2}" ;;
15487    *  ) func_dirname_result="${3}" ;;
15488  esac
15489  func_basename_result="${1##*/}"
15490}
15491
15492# func_stripname prefix suffix name
15493# strip PREFIX and SUFFIX off of NAME.
15494# PREFIX and SUFFIX must not contain globbing or regex special
15495# characters, hashes, percent signs, but SUFFIX may contain a leading
15496# dot (in which case that matches only a dot).
15497func_stripname ()
15498{
15499  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15500  # positional parameters, so assign one to ordinary parameter first.
15501  func_stripname_result=${3}
15502  func_stripname_result=${func_stripname_result#"${1}"}
15503  func_stripname_result=${func_stripname_result%"${2}"}
15504}
15505
15506# func_opt_split
15507func_opt_split ()
15508{
15509  func_opt_split_opt=${1%%=*}
15510  func_opt_split_arg=${1#*=}
15511}
15512
15513# func_lo2o object
15514func_lo2o ()
15515{
15516  case ${1} in
15517    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15518    *)    func_lo2o_result=${1} ;;
15519  esac
15520}
15521
15522# func_xform libobj-or-source
15523func_xform ()
15524{
15525  func_xform_result=${1%.*}.lo
15526}
15527
15528# func_arith arithmetic-term...
15529func_arith ()
15530{
15531  func_arith_result=$(( $* ))
15532}
15533
15534# func_len string
15535# STRING may not start with a hyphen.
15536func_len ()
15537{
15538  func_len_result=${#1}
15539}
15540
15541_LT_EOF
15542    ;;
15543  *) # Bourne compatible functions.
15544    cat << \_LT_EOF >> "$cfgfile"
15545
15546# func_dirname file append nondir_replacement
15547# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15548# otherwise set result to NONDIR_REPLACEMENT.
15549func_dirname ()
15550{
15551  # Extract subdirectory from the argument.
15552  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15553  if test "X$func_dirname_result" = "X${1}"; then
15554    func_dirname_result="${3}"
15555  else
15556    func_dirname_result="$func_dirname_result${2}"
15557  fi
15558}
15559
15560# func_basename file
15561func_basename ()
15562{
15563  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15564}
15565
15566
15567# func_stripname prefix suffix name
15568# strip PREFIX and SUFFIX off of NAME.
15569# PREFIX and SUFFIX must not contain globbing or regex special
15570# characters, hashes, percent signs, but SUFFIX may contain a leading
15571# dot (in which case that matches only a dot).
15572# func_strip_suffix prefix name
15573func_stripname ()
15574{
15575  case ${2} in
15576    .*) func_stripname_result=`$ECHO "X${3}" \
15577           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15578    *)  func_stripname_result=`$ECHO "X${3}" \
15579           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15580  esac
15581}
15582
15583# sed scripts:
15584my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15585my_sed_long_arg='1s/^-[^=]*=//'
15586
15587# func_opt_split
15588func_opt_split ()
15589{
15590  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15591  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15592}
15593
15594# func_lo2o object
15595func_lo2o ()
15596{
15597  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15598}
15599
15600# func_xform libobj-or-source
15601func_xform ()
15602{
15603  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15604}
15605
15606# func_arith arithmetic-term...
15607func_arith ()
15608{
15609  func_arith_result=`expr "$@"`
15610}
15611
15612# func_len string
15613# STRING may not start with a hyphen.
15614func_len ()
15615{
15616  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15617}
15618
15619_LT_EOF
15620esac
15621
15622case $lt_shell_append in
15623  yes)
15624    cat << \_LT_EOF >> "$cfgfile"
15625
15626# func_append var value
15627# Append VALUE to the end of shell variable VAR.
15628func_append ()
15629{
15630  eval "$1+=\$2"
15631}
15632_LT_EOF
15633    ;;
15634  *)
15635    cat << \_LT_EOF >> "$cfgfile"
15636
15637# func_append var value
15638# Append VALUE to the end of shell variable VAR.
15639func_append ()
15640{
15641  eval "$1=\$$1\$2"
15642}
15643
15644_LT_EOF
15645    ;;
15646  esac
15647
15648
15649  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15650    || (rm -f "$cfgfile"; exit 1)
15651
15652  mv -f "$cfgfile" "$ofile" ||
15653    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15654  chmod +x "$ofile"
15655
15656 ;;
15657
15658  esac
15659done # for ac_tag
15660
15661
15662{ (exit 0); exit 0; }
15663_ACEOF
15664chmod +x $CONFIG_STATUS
15665ac_clean_files=$ac_clean_files_save
15666
15667test $ac_write_fail = 0 ||
15668  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15669$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15670   { (exit 1); exit 1; }; }
15671
15672
15673# configure is writing to config.log, and then calls config.status.
15674# config.status does its own redirection, appending to config.log.
15675# Unfortunately, on DOS this fails, as config.log is still kept open
15676# by configure, so config.status won't be able to write to it; its
15677# output is simply discarded.  So we exec the FD to /dev/null,
15678# effectively closing config.log, so it can be properly (re)opened and
15679# appended to by config.status.  When coming back to configure, we
15680# need to make the FD available again.
15681if test "$no_create" != yes; then
15682  ac_cs_success=:
15683  ac_config_status_args=
15684  test "$silent" = yes &&
15685    ac_config_status_args="$ac_config_status_args --quiet"
15686  exec 5>/dev/null
15687  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15688  exec 5>>config.log
15689  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15690  # would make configure fail if this is the last instruction.
15691  $ac_cs_success || { (exit 1); exit 1; }
15692fi
15693if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15694  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15695$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15696fi
15697
15698