xref: /sqlite-3.40.0/configure (revision be217793)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for sqlite 3.6.11.
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.6.11'
747PACKAGE_STRING='sqlite 3.6.11'
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='LTLIBOBJS
787LIBOBJS
788BUILD_CFLAGS
789USE_GCOV
790OPT_FEATURE_FLAGS
791USE_AMALGAMATION
792TARGET_DEBUG
793TARGET_HAVE_READLINE
794TARGET_READLINE_INC
795TARGET_READLINE_LIBS
796HAVE_TCL
797TCL_STUB_LIB_SPEC
798TCL_STUB_LIB_FLAG
799TCL_STUB_LIB_FILE
800TCL_LIB_SPEC
801TCL_LIB_FLAG
802TCL_LIB_FILE
803TCL_INCLUDE_SPEC
804TCL_LIBS
805TCL_SRC_DIR
806TCL_BIN_DIR
807TCL_VERSION
808TARGET_EXEEXT
809SQLITE_OS_OS2
810SQLITE_OS_WIN
811SQLITE_OS_UNIX
812BUILD_EXEEXT
813TEMP_STORE
814ALLOWRELEASE
815THREADSOVERRIDELOCKS
816XTHREADCONNECT
817SQLITE_THREADSAFE
818BUILD_CC
819VERSION_NUMBER
820RELEASE
821VERSION
822program_prefix
823TCLLIBDIR
824TCLSH_CMD
825AWK
826INSTALL_DATA
827INSTALL_SCRIPT
828INSTALL_PROGRAM
829CPP
830OTOOL64
831OTOOL
832LIPO
833NMEDIT
834DSYMUTIL
835lt_ECHO
836RANLIB
837STRIP
838AR
839OBJDUMP
840LN_S
841NM
842ac_ct_DUMPBIN
843DUMPBIN
844LD
845FGREP
846EGREP
847GREP
848SED
849OBJEXT
850EXEEXT
851ac_ct_CC
852CPPFLAGS
853LDFLAGS
854CFLAGS
855CC
856host_os
857host_vendor
858host_cpu
859host
860build_os
861build_vendor
862build_cpu
863build
864LIBTOOL
865target_alias
866host_alias
867build_alias
868LIBS
869ECHO_T
870ECHO_N
871ECHO_C
872DEFS
873mandir
874localedir
875libdir
876psdir
877pdfdir
878dvidir
879htmldir
880infodir
881docdir
882oldincludedir
883includedir
884localstatedir
885sharedstatedir
886sysconfdir
887datadir
888datarootdir
889libexecdir
890sbindir
891bindir
892program_transform_name
893prefix
894exec_prefix
895PACKAGE_BUGREPORT
896PACKAGE_STRING
897PACKAGE_VERSION
898PACKAGE_TARNAME
899PACKAGE_NAME
900PATH_SEPARATOR
901SHELL'
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.6.11 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.6.11:";;
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.6.11
1674generated by GNU Autoconf 2.63
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.6.11, which was
1688generated by GNU Autoconf 2.63.  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: in \`$ac_pwd':" >&5
2016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2017  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2018$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2019  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2020$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2021   { (exit 1); exit 1; }; }
2022fi
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048ac_ext=c
2049ac_cpp='$CPP $CPPFLAGS'
2050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053
2054
2055
2056# The following RCS revision string applies to configure.in
2057# $Revision: 1.68 $
2058
2059#########
2060# Programs needed
2061#
2062case `pwd` in
2063  *\ * | *\	*)
2064    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2065$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2066esac
2067
2068
2069
2070macro_version='2.2.6'
2071macro_revision='1.3012'
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085ltmain="$ac_aux_dir/ltmain.sh"
2086
2087ac_aux_dir=
2088for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2089  if test -f "$ac_dir/install-sh"; then
2090    ac_aux_dir=$ac_dir
2091    ac_install_sh="$ac_aux_dir/install-sh -c"
2092    break
2093  elif test -f "$ac_dir/install.sh"; then
2094    ac_aux_dir=$ac_dir
2095    ac_install_sh="$ac_aux_dir/install.sh -c"
2096    break
2097  elif test -f "$ac_dir/shtool"; then
2098    ac_aux_dir=$ac_dir
2099    ac_install_sh="$ac_aux_dir/shtool install -c"
2100    break
2101  fi
2102done
2103if test -z "$ac_aux_dir"; then
2104  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2105$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2106   { (exit 1); exit 1; }; }
2107fi
2108
2109# These three variables are undocumented and unsupported,
2110# and are intended to be withdrawn in a future Autoconf release.
2111# They can cause serious problems if a builder's source tree is in a directory
2112# whose full name contains unusual characters.
2113ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2114ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2115ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2116
2117
2118# Make sure we can run config.sub.
2119$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2120  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2121$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2122   { (exit 1); exit 1; }; }
2123
2124{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2125$as_echo_n "checking build system type... " >&6; }
2126if test "${ac_cv_build+set}" = set; then
2127  $as_echo_n "(cached) " >&6
2128else
2129  ac_build_alias=$build_alias
2130test "x$ac_build_alias" = x &&
2131  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2132test "x$ac_build_alias" = x &&
2133  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2134$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2135   { (exit 1); exit 1; }; }
2136ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2137  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2138$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2139   { (exit 1); exit 1; }; }
2140
2141fi
2142{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2143$as_echo "$ac_cv_build" >&6; }
2144case $ac_cv_build in
2145*-*-*) ;;
2146*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2147$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2148   { (exit 1); exit 1; }; };;
2149esac
2150build=$ac_cv_build
2151ac_save_IFS=$IFS; IFS='-'
2152set x $ac_cv_build
2153shift
2154build_cpu=$1
2155build_vendor=$2
2156shift; shift
2157# Remember, the first character of IFS is used to create $*,
2158# except with old shells:
2159build_os=$*
2160IFS=$ac_save_IFS
2161case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2162
2163
2164{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2165$as_echo_n "checking host system type... " >&6; }
2166if test "${ac_cv_host+set}" = set; then
2167  $as_echo_n "(cached) " >&6
2168else
2169  if test "x$host_alias" = x; then
2170  ac_cv_host=$ac_cv_build
2171else
2172  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2173    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2174$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2175   { (exit 1); exit 1; }; }
2176fi
2177
2178fi
2179{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2180$as_echo "$ac_cv_host" >&6; }
2181case $ac_cv_host in
2182*-*-*) ;;
2183*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2184$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2185   { (exit 1); exit 1; }; };;
2186esac
2187host=$ac_cv_host
2188ac_save_IFS=$IFS; IFS='-'
2189set x $ac_cv_host
2190shift
2191host_cpu=$1
2192host_vendor=$2
2193shift; shift
2194# Remember, the first character of IFS is used to create $*,
2195# except with old shells:
2196host_os=$*
2197IFS=$ac_save_IFS
2198case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2199
2200
2201ac_ext=c
2202ac_cpp='$CPP $CPPFLAGS'
2203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2205ac_compiler_gnu=$ac_cv_c_compiler_gnu
2206if test -n "$ac_tool_prefix"; then
2207  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2208set dummy ${ac_tool_prefix}gcc; ac_word=$2
2209{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2210$as_echo_n "checking for $ac_word... " >&6; }
2211if test "${ac_cv_prog_CC+set}" = set; then
2212  $as_echo_n "(cached) " >&6
2213else
2214  if test -n "$CC"; then
2215  ac_cv_prog_CC="$CC" # Let the user override the test.
2216else
2217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218for as_dir in $PATH
2219do
2220  IFS=$as_save_IFS
2221  test -z "$as_dir" && as_dir=.
2222  for ac_exec_ext in '' $ac_executable_extensions; do
2223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2225    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226    break 2
2227  fi
2228done
2229done
2230IFS=$as_save_IFS
2231
2232fi
2233fi
2234CC=$ac_cv_prog_CC
2235if test -n "$CC"; then
2236  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2237$as_echo "$CC" >&6; }
2238else
2239  { $as_echo "$as_me:$LINENO: result: no" >&5
2240$as_echo "no" >&6; }
2241fi
2242
2243
2244fi
2245if test -z "$ac_cv_prog_CC"; then
2246  ac_ct_CC=$CC
2247  # Extract the first word of "gcc", so it can be a program name with args.
2248set dummy gcc; ac_word=$2
2249{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2250$as_echo_n "checking for $ac_word... " >&6; }
2251if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2252  $as_echo_n "(cached) " >&6
2253else
2254  if test -n "$ac_ct_CC"; then
2255  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2256else
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260  IFS=$as_save_IFS
2261  test -z "$as_dir" && as_dir=.
2262  for ac_exec_ext in '' $ac_executable_extensions; do
2263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264    ac_cv_prog_ac_ct_CC="gcc"
2265    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266    break 2
2267  fi
2268done
2269done
2270IFS=$as_save_IFS
2271
2272fi
2273fi
2274ac_ct_CC=$ac_cv_prog_ac_ct_CC
2275if test -n "$ac_ct_CC"; then
2276  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2277$as_echo "$ac_ct_CC" >&6; }
2278else
2279  { $as_echo "$as_me:$LINENO: result: no" >&5
2280$as_echo "no" >&6; }
2281fi
2282
2283  if test "x$ac_ct_CC" = x; then
2284    CC=""
2285  else
2286    case $cross_compiling:$ac_tool_warned in
2287yes:)
2288{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2290ac_tool_warned=yes ;;
2291esac
2292    CC=$ac_ct_CC
2293  fi
2294else
2295  CC="$ac_cv_prog_CC"
2296fi
2297
2298if test -z "$CC"; then
2299          if test -n "$ac_tool_prefix"; then
2300    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2301set dummy ${ac_tool_prefix}cc; ac_word=$2
2302{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2303$as_echo_n "checking for $ac_word... " >&6; }
2304if test "${ac_cv_prog_CC+set}" = set; then
2305  $as_echo_n "(cached) " >&6
2306else
2307  if test -n "$CC"; then
2308  ac_cv_prog_CC="$CC" # Let the user override the test.
2309else
2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311for as_dir in $PATH
2312do
2313  IFS=$as_save_IFS
2314  test -z "$as_dir" && as_dir=.
2315  for ac_exec_ext in '' $ac_executable_extensions; do
2316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317    ac_cv_prog_CC="${ac_tool_prefix}cc"
2318    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319    break 2
2320  fi
2321done
2322done
2323IFS=$as_save_IFS
2324
2325fi
2326fi
2327CC=$ac_cv_prog_CC
2328if test -n "$CC"; then
2329  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2330$as_echo "$CC" >&6; }
2331else
2332  { $as_echo "$as_me:$LINENO: result: no" >&5
2333$as_echo "no" >&6; }
2334fi
2335
2336
2337  fi
2338fi
2339if test -z "$CC"; then
2340  # Extract the first word of "cc", so it can be a program name with args.
2341set dummy cc; ac_word=$2
2342{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2343$as_echo_n "checking for $ac_word... " >&6; }
2344if test "${ac_cv_prog_CC+set}" = set; then
2345  $as_echo_n "(cached) " >&6
2346else
2347  if test -n "$CC"; then
2348  ac_cv_prog_CC="$CC" # Let the user override the test.
2349else
2350  ac_prog_rejected=no
2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354  IFS=$as_save_IFS
2355  test -z "$as_dir" && as_dir=.
2356  for ac_exec_ext in '' $ac_executable_extensions; do
2357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2359       ac_prog_rejected=yes
2360       continue
2361     fi
2362    ac_cv_prog_CC="cc"
2363    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364    break 2
2365  fi
2366done
2367done
2368IFS=$as_save_IFS
2369
2370if test $ac_prog_rejected = yes; then
2371  # We found a bogon in the path, so make sure we never use it.
2372  set dummy $ac_cv_prog_CC
2373  shift
2374  if test $# != 0; then
2375    # We chose a different compiler from the bogus one.
2376    # However, it has the same basename, so the bogon will be chosen
2377    # first if we set CC to just the basename; use the full file name.
2378    shift
2379    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2380  fi
2381fi
2382fi
2383fi
2384CC=$ac_cv_prog_CC
2385if test -n "$CC"; then
2386  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2387$as_echo "$CC" >&6; }
2388else
2389  { $as_echo "$as_me:$LINENO: result: no" >&5
2390$as_echo "no" >&6; }
2391fi
2392
2393
2394fi
2395if test -z "$CC"; then
2396  if test -n "$ac_tool_prefix"; then
2397  for ac_prog in cl.exe
2398  do
2399    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2402$as_echo_n "checking for $ac_word... " >&6; }
2403if test "${ac_cv_prog_CC+set}" = set; then
2404  $as_echo_n "(cached) " >&6
2405else
2406  if test -n "$CC"; then
2407  ac_cv_prog_CC="$CC" # Let the user override the test.
2408else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412  IFS=$as_save_IFS
2413  test -z "$as_dir" && as_dir=.
2414  for ac_exec_ext in '' $ac_executable_extensions; do
2415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2417    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418    break 2
2419  fi
2420done
2421done
2422IFS=$as_save_IFS
2423
2424fi
2425fi
2426CC=$ac_cv_prog_CC
2427if test -n "$CC"; then
2428  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2429$as_echo "$CC" >&6; }
2430else
2431  { $as_echo "$as_me:$LINENO: result: no" >&5
2432$as_echo "no" >&6; }
2433fi
2434
2435
2436    test -n "$CC" && break
2437  done
2438fi
2439if test -z "$CC"; then
2440  ac_ct_CC=$CC
2441  for ac_prog in cl.exe
2442do
2443  # Extract the first word of "$ac_prog", so it can be a program name with args.
2444set dummy $ac_prog; ac_word=$2
2445{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2446$as_echo_n "checking for $ac_word... " >&6; }
2447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448  $as_echo_n "(cached) " >&6
2449else
2450  if test -n "$ac_ct_CC"; then
2451  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452else
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456  IFS=$as_save_IFS
2457  test -z "$as_dir" && as_dir=.
2458  for ac_exec_ext in '' $ac_executable_extensions; do
2459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460    ac_cv_prog_ac_ct_CC="$ac_prog"
2461    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462    break 2
2463  fi
2464done
2465done
2466IFS=$as_save_IFS
2467
2468fi
2469fi
2470ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471if test -n "$ac_ct_CC"; then
2472  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473$as_echo "$ac_ct_CC" >&6; }
2474else
2475  { $as_echo "$as_me:$LINENO: result: no" >&5
2476$as_echo "no" >&6; }
2477fi
2478
2479
2480  test -n "$ac_ct_CC" && break
2481done
2482
2483  if test "x$ac_ct_CC" = x; then
2484    CC=""
2485  else
2486    case $cross_compiling:$ac_tool_warned in
2487yes:)
2488{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2490ac_tool_warned=yes ;;
2491esac
2492    CC=$ac_ct_CC
2493  fi
2494fi
2495
2496fi
2497
2498
2499test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502See \`config.log' for more details." >&5
2503$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2504See \`config.log' for more details." >&2;}
2505   { (exit 1); exit 1; }; }; }
2506
2507# Provide some information about the compiler.
2508$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2509set X $ac_compile
2510ac_compiler=$2
2511{ (ac_try="$ac_compiler --version >&5"
2512case "(($ac_try" in
2513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514  *) ac_try_echo=$ac_try;;
2515esac
2516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2517$as_echo "$ac_try_echo") >&5
2518  (eval "$ac_compiler --version >&5") 2>&5
2519  ac_status=$?
2520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521  (exit $ac_status); }
2522{ (ac_try="$ac_compiler -v >&5"
2523case "(($ac_try" in
2524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525  *) ac_try_echo=$ac_try;;
2526esac
2527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2528$as_echo "$ac_try_echo") >&5
2529  (eval "$ac_compiler -v >&5") 2>&5
2530  ac_status=$?
2531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }
2533{ (ac_try="$ac_compiler -V >&5"
2534case "(($ac_try" in
2535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536  *) ac_try_echo=$ac_try;;
2537esac
2538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2539$as_echo "$ac_try_echo") >&5
2540  (eval "$ac_compiler -V >&5") 2>&5
2541  ac_status=$?
2542  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); }
2544
2545cat >conftest.$ac_ext <<_ACEOF
2546/* confdefs.h.  */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
2550/* end confdefs.h.  */
2551
2552int
2553main ()
2554{
2555
2556  ;
2557  return 0;
2558}
2559_ACEOF
2560ac_clean_files_save=$ac_clean_files
2561ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2562# Try to create an executable without -o first, disregard a.out.
2563# It will help us diagnose broken compilers, and finding out an intuition
2564# of exeext.
2565{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2566$as_echo_n "checking for C compiler default output file name... " >&6; }
2567ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2568
2569# The possible output files:
2570ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2571
2572ac_rmfiles=
2573for ac_file in $ac_files
2574do
2575  case $ac_file in
2576    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2577    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2578  esac
2579done
2580rm -f $ac_rmfiles
2581
2582if { (ac_try="$ac_link_default"
2583case "(($ac_try" in
2584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585  *) ac_try_echo=$ac_try;;
2586esac
2587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2588$as_echo "$ac_try_echo") >&5
2589  (eval "$ac_link_default") 2>&5
2590  ac_status=$?
2591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592  (exit $ac_status); }; then
2593  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2594# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2595# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2596# so that the user can short-circuit this test for compilers unknown to
2597# Autoconf.
2598for ac_file in $ac_files ''
2599do
2600  test -f "$ac_file" || continue
2601  case $ac_file in
2602    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2603	;;
2604    [ab].out )
2605	# We found the default executable, but exeext='' is most
2606	# certainly right.
2607	break;;
2608    *.* )
2609        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2610	then :; else
2611	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612	fi
2613	# We set ac_cv_exeext here because the later test for it is not
2614	# safe: cross compilers may not add the suffix if given an `-o'
2615	# argument, so we may need to know it at that point already.
2616	# Even if this section looks crufty: it has the advantage of
2617	# actually working.
2618	break;;
2619    * )
2620	break;;
2621  esac
2622done
2623test "$ac_cv_exeext" = no && ac_cv_exeext=
2624
2625else
2626  ac_file=''
2627fi
2628
2629{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2630$as_echo "$ac_file" >&6; }
2631if test -z "$ac_file"; then
2632  $as_echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2638See \`config.log' for more details." >&5
2639$as_echo "$as_me: error: C compiler cannot create executables
2640See \`config.log' for more details." >&2;}
2641   { (exit 77); exit 77; }; }; }
2642fi
2643
2644ac_exeext=$ac_cv_exeext
2645
2646# Check that the compiler produces executables we can run.  If not, either
2647# the compiler is broken, or we cross compile.
2648{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2649$as_echo_n "checking whether the C compiler works... " >&6; }
2650# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2651# If not cross compiling, check that we can run a simple program.
2652if test "$cross_compiling" != yes; then
2653  if { ac_try='./$ac_file'
2654  { (case "(($ac_try" in
2655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656  *) ac_try_echo=$ac_try;;
2657esac
2658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2659$as_echo "$ac_try_echo") >&5
2660  (eval "$ac_try") 2>&5
2661  ac_status=$?
2662  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664    cross_compiling=no
2665  else
2666    if test "$cross_compiling" = maybe; then
2667	cross_compiling=yes
2668    else
2669	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2672If you meant to cross compile, use \`--host'.
2673See \`config.log' for more details." >&5
2674$as_echo "$as_me: error: cannot run C compiled programs.
2675If you meant to cross compile, use \`--host'.
2676See \`config.log' for more details." >&2;}
2677   { (exit 1); exit 1; }; }; }
2678    fi
2679  fi
2680fi
2681{ $as_echo "$as_me:$LINENO: result: yes" >&5
2682$as_echo "yes" >&6; }
2683
2684rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2685ac_clean_files=$ac_clean_files_save
2686# Check that the compiler produces executables we can run.  If not, either
2687# the compiler is broken, or we cross compile.
2688{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2689$as_echo_n "checking whether we are cross compiling... " >&6; }
2690{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2691$as_echo "$cross_compiling" >&6; }
2692
2693{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2694$as_echo_n "checking for suffix of executables... " >&6; }
2695if { (ac_try="$ac_link"
2696case "(($ac_try" in
2697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698  *) ac_try_echo=$ac_try;;
2699esac
2700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701$as_echo "$ac_try_echo") >&5
2702  (eval "$ac_link") 2>&5
2703  ac_status=$?
2704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; then
2706  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2707# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2708# work properly (i.e., refer to `conftest.exe'), while it won't with
2709# `rm'.
2710for ac_file in conftest.exe conftest conftest.*; do
2711  test -f "$ac_file" || continue
2712  case $ac_file in
2713    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2714    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2715	  break;;
2716    * ) break;;
2717  esac
2718done
2719else
2720  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2723See \`config.log' for more details." >&5
2724$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2725See \`config.log' for more details." >&2;}
2726   { (exit 1); exit 1; }; }; }
2727fi
2728
2729rm -f conftest$ac_cv_exeext
2730{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2731$as_echo "$ac_cv_exeext" >&6; }
2732
2733rm -f conftest.$ac_ext
2734EXEEXT=$ac_cv_exeext
2735ac_exeext=$EXEEXT
2736{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2737$as_echo_n "checking for suffix of object files... " >&6; }
2738if test "${ac_cv_objext+set}" = set; then
2739  $as_echo_n "(cached) " >&6
2740else
2741  cat >conftest.$ac_ext <<_ACEOF
2742/* confdefs.h.  */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
2746/* end confdefs.h.  */
2747
2748int
2749main ()
2750{
2751
2752  ;
2753  return 0;
2754}
2755_ACEOF
2756rm -f conftest.o conftest.obj
2757if { (ac_try="$ac_compile"
2758case "(($ac_try" in
2759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760  *) ac_try_echo=$ac_try;;
2761esac
2762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2763$as_echo "$ac_try_echo") >&5
2764  (eval "$ac_compile") 2>&5
2765  ac_status=$?
2766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); }; then
2768  for ac_file in conftest.o conftest.obj conftest.*; do
2769  test -f "$ac_file" || continue;
2770  case $ac_file in
2771    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2772    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2773       break;;
2774  esac
2775done
2776else
2777  $as_echo "$as_me: failed program was:" >&5
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2782{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2783See \`config.log' for more details." >&5
2784$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2785See \`config.log' for more details." >&2;}
2786   { (exit 1); exit 1; }; }; }
2787fi
2788
2789rm -f conftest.$ac_cv_objext conftest.$ac_ext
2790fi
2791{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2792$as_echo "$ac_cv_objext" >&6; }
2793OBJEXT=$ac_cv_objext
2794ac_objext=$OBJEXT
2795{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2796$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2797if test "${ac_cv_c_compiler_gnu+set}" = set; then
2798  $as_echo_n "(cached) " >&6
2799else
2800  cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h.  */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h.  */
2806
2807int
2808main ()
2809{
2810#ifndef __GNUC__
2811       choke me
2812#endif
2813
2814  ;
2815  return 0;
2816}
2817_ACEOF
2818rm -f conftest.$ac_objext
2819if { (ac_try="$ac_compile"
2820case "(($ac_try" in
2821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822  *) ac_try_echo=$ac_try;;
2823esac
2824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2825$as_echo "$ac_try_echo") >&5
2826  (eval "$ac_compile") 2>conftest.er1
2827  ac_status=$?
2828  grep -v '^ *+' conftest.er1 >conftest.err
2829  rm -f conftest.er1
2830  cat conftest.err >&5
2831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832  (exit $ac_status); } && {
2833	 test -z "$ac_c_werror_flag" ||
2834	 test ! -s conftest.err
2835       } && test -s conftest.$ac_objext; then
2836  ac_compiler_gnu=yes
2837else
2838  $as_echo "$as_me: failed program was:" >&5
2839sed 's/^/| /' conftest.$ac_ext >&5
2840
2841	ac_compiler_gnu=no
2842fi
2843
2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845ac_cv_c_compiler_gnu=$ac_compiler_gnu
2846
2847fi
2848{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2849$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2850if test $ac_compiler_gnu = yes; then
2851  GCC=yes
2852else
2853  GCC=
2854fi
2855ac_test_CFLAGS=${CFLAGS+set}
2856ac_save_CFLAGS=$CFLAGS
2857{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2858$as_echo_n "checking whether $CC accepts -g... " >&6; }
2859if test "${ac_cv_prog_cc_g+set}" = set; then
2860  $as_echo_n "(cached) " >&6
2861else
2862  ac_save_c_werror_flag=$ac_c_werror_flag
2863   ac_c_werror_flag=yes
2864   ac_cv_prog_cc_g=no
2865   CFLAGS="-g"
2866   cat >conftest.$ac_ext <<_ACEOF
2867/* confdefs.h.  */
2868_ACEOF
2869cat confdefs.h >>conftest.$ac_ext
2870cat >>conftest.$ac_ext <<_ACEOF
2871/* end confdefs.h.  */
2872
2873int
2874main ()
2875{
2876
2877  ;
2878  return 0;
2879}
2880_ACEOF
2881rm -f conftest.$ac_objext
2882if { (ac_try="$ac_compile"
2883case "(($ac_try" in
2884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885  *) ac_try_echo=$ac_try;;
2886esac
2887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2888$as_echo "$ac_try_echo") >&5
2889  (eval "$ac_compile") 2>conftest.er1
2890  ac_status=$?
2891  grep -v '^ *+' conftest.er1 >conftest.err
2892  rm -f conftest.er1
2893  cat conftest.err >&5
2894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); } && {
2896	 test -z "$ac_c_werror_flag" ||
2897	 test ! -s conftest.err
2898       } && test -s conftest.$ac_objext; then
2899  ac_cv_prog_cc_g=yes
2900else
2901  $as_echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904	CFLAGS=""
2905      cat >conftest.$ac_ext <<_ACEOF
2906/* confdefs.h.  */
2907_ACEOF
2908cat confdefs.h >>conftest.$ac_ext
2909cat >>conftest.$ac_ext <<_ACEOF
2910/* end confdefs.h.  */
2911
2912int
2913main ()
2914{
2915
2916  ;
2917  return 0;
2918}
2919_ACEOF
2920rm -f conftest.$ac_objext
2921if { (ac_try="$ac_compile"
2922case "(($ac_try" in
2923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924  *) ac_try_echo=$ac_try;;
2925esac
2926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927$as_echo "$ac_try_echo") >&5
2928  (eval "$ac_compile") 2>conftest.er1
2929  ac_status=$?
2930  grep -v '^ *+' conftest.er1 >conftest.err
2931  rm -f conftest.er1
2932  cat conftest.err >&5
2933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934  (exit $ac_status); } && {
2935	 test -z "$ac_c_werror_flag" ||
2936	 test ! -s conftest.err
2937       } && test -s conftest.$ac_objext; then
2938  :
2939else
2940  $as_echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
2943	ac_c_werror_flag=$ac_save_c_werror_flag
2944	 CFLAGS="-g"
2945	 cat >conftest.$ac_ext <<_ACEOF
2946/* confdefs.h.  */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h.  */
2951
2952int
2953main ()
2954{
2955
2956  ;
2957  return 0;
2958}
2959_ACEOF
2960rm -f conftest.$ac_objext
2961if { (ac_try="$ac_compile"
2962case "(($ac_try" in
2963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964  *) ac_try_echo=$ac_try;;
2965esac
2966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2967$as_echo "$ac_try_echo") >&5
2968  (eval "$ac_compile") 2>conftest.er1
2969  ac_status=$?
2970  grep -v '^ *+' conftest.er1 >conftest.err
2971  rm -f conftest.er1
2972  cat conftest.err >&5
2973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); } && {
2975	 test -z "$ac_c_werror_flag" ||
2976	 test ! -s conftest.err
2977       } && test -s conftest.$ac_objext; then
2978  ac_cv_prog_cc_g=yes
2979else
2980  $as_echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983
2984fi
2985
2986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987fi
2988
2989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990fi
2991
2992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993   ac_c_werror_flag=$ac_save_c_werror_flag
2994fi
2995{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2996$as_echo "$ac_cv_prog_cc_g" >&6; }
2997if test "$ac_test_CFLAGS" = set; then
2998  CFLAGS=$ac_save_CFLAGS
2999elif test $ac_cv_prog_cc_g = yes; then
3000  if test "$GCC" = yes; then
3001    CFLAGS="-g -O2"
3002  else
3003    CFLAGS="-g"
3004  fi
3005else
3006  if test "$GCC" = yes; then
3007    CFLAGS="-O2"
3008  else
3009    CFLAGS=
3010  fi
3011fi
3012{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3013$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3014if test "${ac_cv_prog_cc_c89+set}" = set; then
3015  $as_echo_n "(cached) " >&6
3016else
3017  ac_cv_prog_cc_c89=no
3018ac_save_CC=$CC
3019cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h.  */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h.  */
3025#include <stdarg.h>
3026#include <stdio.h>
3027#include <sys/types.h>
3028#include <sys/stat.h>
3029/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3030struct buf { int x; };
3031FILE * (*rcsopen) (struct buf *, struct stat *, int);
3032static char *e (p, i)
3033     char **p;
3034     int i;
3035{
3036  return p[i];
3037}
3038static char *f (char * (*g) (char **, int), char **p, ...)
3039{
3040  char *s;
3041  va_list v;
3042  va_start (v,p);
3043  s = g (p, va_arg (v,int));
3044  va_end (v);
3045  return s;
3046}
3047
3048/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3049   function prototypes and stuff, but not '\xHH' hex character constants.
3050   These don't provoke an error unfortunately, instead are silently treated
3051   as 'x'.  The following induces an error, until -std is added to get
3052   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3053   array size at least.  It's necessary to write '\x00'==0 to get something
3054   that's true only with -std.  */
3055int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3056
3057/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3058   inside strings and character constants.  */
3059#define FOO(x) 'x'
3060int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3061
3062int test (int i, double x);
3063struct s1 {int (*f) (int a);};
3064struct s2 {int (*f) (double a);};
3065int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3066int argc;
3067char **argv;
3068int
3069main ()
3070{
3071return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3077	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3078do
3079  CC="$ac_save_CC $ac_arg"
3080  rm -f conftest.$ac_objext
3081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084  *) ac_try_echo=$ac_try;;
3085esac
3086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3087$as_echo "$ac_try_echo") >&5
3088  (eval "$ac_compile") 2>conftest.er1
3089  ac_status=$?
3090  grep -v '^ *+' conftest.er1 >conftest.err
3091  rm -f conftest.er1
3092  cat conftest.err >&5
3093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); } && {
3095	 test -z "$ac_c_werror_flag" ||
3096	 test ! -s conftest.err
3097       } && test -s conftest.$ac_objext; then
3098  ac_cv_prog_cc_c89=$ac_arg
3099else
3100  $as_echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103
3104fi
3105
3106rm -f core conftest.err conftest.$ac_objext
3107  test "x$ac_cv_prog_cc_c89" != "xno" && break
3108done
3109rm -f conftest.$ac_ext
3110CC=$ac_save_CC
3111
3112fi
3113# AC_CACHE_VAL
3114case "x$ac_cv_prog_cc_c89" in
3115  x)
3116    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3117$as_echo "none needed" >&6; } ;;
3118  xno)
3119    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3120$as_echo "unsupported" >&6; } ;;
3121  *)
3122    CC="$CC $ac_cv_prog_cc_c89"
3123    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3124$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3125esac
3126
3127
3128ac_ext=c
3129ac_cpp='$CPP $CPPFLAGS'
3130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133
3134{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3135$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3136if test "${ac_cv_path_SED+set}" = set; then
3137  $as_echo_n "(cached) " >&6
3138else
3139            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3140     for ac_i in 1 2 3 4 5 6 7; do
3141       ac_script="$ac_script$as_nl$ac_script"
3142     done
3143     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3144     $as_unset ac_script || ac_script=
3145     if test -z "$SED"; then
3146  ac_path_SED_found=false
3147  # Loop through the user's path and test for each of PROGNAME-LIST
3148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151  IFS=$as_save_IFS
3152  test -z "$as_dir" && as_dir=.
3153  for ac_prog in sed gsed; do
3154    for ac_exec_ext in '' $ac_executable_extensions; do
3155      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3156      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3157# Check for GNU ac_path_SED and select it if it is found.
3158  # Check for GNU $ac_path_SED
3159case `"$ac_path_SED" --version 2>&1` in
3160*GNU*)
3161  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3162*)
3163  ac_count=0
3164  $as_echo_n 0123456789 >"conftest.in"
3165  while :
3166  do
3167    cat "conftest.in" "conftest.in" >"conftest.tmp"
3168    mv "conftest.tmp" "conftest.in"
3169    cp "conftest.in" "conftest.nl"
3170    $as_echo '' >> "conftest.nl"
3171    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3172    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3173    ac_count=`expr $ac_count + 1`
3174    if test $ac_count -gt ${ac_path_SED_max-0}; then
3175      # Best one so far, save it but keep looking for a better one
3176      ac_cv_path_SED="$ac_path_SED"
3177      ac_path_SED_max=$ac_count
3178    fi
3179    # 10*(2^10) chars as input seems more than enough
3180    test $ac_count -gt 10 && break
3181  done
3182  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3183esac
3184
3185      $ac_path_SED_found && break 3
3186    done
3187  done
3188done
3189IFS=$as_save_IFS
3190  if test -z "$ac_cv_path_SED"; then
3191    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3192$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3193   { (exit 1); exit 1; }; }
3194  fi
3195else
3196  ac_cv_path_SED=$SED
3197fi
3198
3199fi
3200{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3201$as_echo "$ac_cv_path_SED" >&6; }
3202 SED="$ac_cv_path_SED"
3203  rm -f conftest.sed
3204
3205test -z "$SED" && SED=sed
3206Xsed="$SED -e 1s/^X//"
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3219$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3220if test "${ac_cv_path_GREP+set}" = set; then
3221  $as_echo_n "(cached) " >&6
3222else
3223  if test -z "$GREP"; then
3224  ac_path_GREP_found=false
3225  # Loop through the user's path and test for each of PROGNAME-LIST
3226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3228do
3229  IFS=$as_save_IFS
3230  test -z "$as_dir" && as_dir=.
3231  for ac_prog in grep ggrep; do
3232    for ac_exec_ext in '' $ac_executable_extensions; do
3233      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3234      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3235# Check for GNU ac_path_GREP and select it if it is found.
3236  # Check for GNU $ac_path_GREP
3237case `"$ac_path_GREP" --version 2>&1` in
3238*GNU*)
3239  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3240*)
3241  ac_count=0
3242  $as_echo_n 0123456789 >"conftest.in"
3243  while :
3244  do
3245    cat "conftest.in" "conftest.in" >"conftest.tmp"
3246    mv "conftest.tmp" "conftest.in"
3247    cp "conftest.in" "conftest.nl"
3248    $as_echo 'GREP' >> "conftest.nl"
3249    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3250    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3251    ac_count=`expr $ac_count + 1`
3252    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3253      # Best one so far, save it but keep looking for a better one
3254      ac_cv_path_GREP="$ac_path_GREP"
3255      ac_path_GREP_max=$ac_count
3256    fi
3257    # 10*(2^10) chars as input seems more than enough
3258    test $ac_count -gt 10 && break
3259  done
3260  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3261esac
3262
3263      $ac_path_GREP_found && break 3
3264    done
3265  done
3266done
3267IFS=$as_save_IFS
3268  if test -z "$ac_cv_path_GREP"; then
3269    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3270$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3271   { (exit 1); exit 1; }; }
3272  fi
3273else
3274  ac_cv_path_GREP=$GREP
3275fi
3276
3277fi
3278{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3279$as_echo "$ac_cv_path_GREP" >&6; }
3280 GREP="$ac_cv_path_GREP"
3281
3282
3283{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3284$as_echo_n "checking for egrep... " >&6; }
3285if test "${ac_cv_path_EGREP+set}" = set; then
3286  $as_echo_n "(cached) " >&6
3287else
3288  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3289   then ac_cv_path_EGREP="$GREP -E"
3290   else
3291     if test -z "$EGREP"; then
3292  ac_path_EGREP_found=false
3293  # Loop through the user's path and test for each of PROGNAME-LIST
3294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3296do
3297  IFS=$as_save_IFS
3298  test -z "$as_dir" && as_dir=.
3299  for ac_prog in egrep; do
3300    for ac_exec_ext in '' $ac_executable_extensions; do
3301      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3302      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3303# Check for GNU ac_path_EGREP and select it if it is found.
3304  # Check for GNU $ac_path_EGREP
3305case `"$ac_path_EGREP" --version 2>&1` in
3306*GNU*)
3307  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3308*)
3309  ac_count=0
3310  $as_echo_n 0123456789 >"conftest.in"
3311  while :
3312  do
3313    cat "conftest.in" "conftest.in" >"conftest.tmp"
3314    mv "conftest.tmp" "conftest.in"
3315    cp "conftest.in" "conftest.nl"
3316    $as_echo 'EGREP' >> "conftest.nl"
3317    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3318    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3319    ac_count=`expr $ac_count + 1`
3320    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3321      # Best one so far, save it but keep looking for a better one
3322      ac_cv_path_EGREP="$ac_path_EGREP"
3323      ac_path_EGREP_max=$ac_count
3324    fi
3325    # 10*(2^10) chars as input seems more than enough
3326    test $ac_count -gt 10 && break
3327  done
3328  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3329esac
3330
3331      $ac_path_EGREP_found && break 3
3332    done
3333  done
3334done
3335IFS=$as_save_IFS
3336  if test -z "$ac_cv_path_EGREP"; then
3337    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3338$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3339   { (exit 1); exit 1; }; }
3340  fi
3341else
3342  ac_cv_path_EGREP=$EGREP
3343fi
3344
3345   fi
3346fi
3347{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3348$as_echo "$ac_cv_path_EGREP" >&6; }
3349 EGREP="$ac_cv_path_EGREP"
3350
3351
3352{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3353$as_echo_n "checking for fgrep... " >&6; }
3354if test "${ac_cv_path_FGREP+set}" = set; then
3355  $as_echo_n "(cached) " >&6
3356else
3357  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3358   then ac_cv_path_FGREP="$GREP -F"
3359   else
3360     if test -z "$FGREP"; then
3361  ac_path_FGREP_found=false
3362  # Loop through the user's path and test for each of PROGNAME-LIST
3363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3365do
3366  IFS=$as_save_IFS
3367  test -z "$as_dir" && as_dir=.
3368  for ac_prog in fgrep; do
3369    for ac_exec_ext in '' $ac_executable_extensions; do
3370      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3371      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3372# Check for GNU ac_path_FGREP and select it if it is found.
3373  # Check for GNU $ac_path_FGREP
3374case `"$ac_path_FGREP" --version 2>&1` in
3375*GNU*)
3376  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3377*)
3378  ac_count=0
3379  $as_echo_n 0123456789 >"conftest.in"
3380  while :
3381  do
3382    cat "conftest.in" "conftest.in" >"conftest.tmp"
3383    mv "conftest.tmp" "conftest.in"
3384    cp "conftest.in" "conftest.nl"
3385    $as_echo 'FGREP' >> "conftest.nl"
3386    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3387    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3388    ac_count=`expr $ac_count + 1`
3389    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3390      # Best one so far, save it but keep looking for a better one
3391      ac_cv_path_FGREP="$ac_path_FGREP"
3392      ac_path_FGREP_max=$ac_count
3393    fi
3394    # 10*(2^10) chars as input seems more than enough
3395    test $ac_count -gt 10 && break
3396  done
3397  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3398esac
3399
3400      $ac_path_FGREP_found && break 3
3401    done
3402  done
3403done
3404IFS=$as_save_IFS
3405  if test -z "$ac_cv_path_FGREP"; then
3406    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3407$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3408   { (exit 1); exit 1; }; }
3409  fi
3410else
3411  ac_cv_path_FGREP=$FGREP
3412fi
3413
3414   fi
3415fi
3416{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3417$as_echo "$ac_cv_path_FGREP" >&6; }
3418 FGREP="$ac_cv_path_FGREP"
3419
3420
3421test -z "$GREP" && GREP=grep
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441# Check whether --with-gnu-ld was given.
3442if test "${with_gnu_ld+set}" = set; then
3443  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3444else
3445  with_gnu_ld=no
3446fi
3447
3448ac_prog=ld
3449if test "$GCC" = yes; then
3450  # Check if gcc -print-prog-name=ld gives a path.
3451  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3452$as_echo_n "checking for ld used by $CC... " >&6; }
3453  case $host in
3454  *-*-mingw*)
3455    # gcc leaves a trailing carriage return which upsets mingw
3456    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3457  *)
3458    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3459  esac
3460  case $ac_prog in
3461    # Accept absolute paths.
3462    [\\/]* | ?:[\\/]*)
3463      re_direlt='/[^/][^/]*/\.\./'
3464      # Canonicalize the pathname of ld
3465      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3466      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3467	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3468      done
3469      test -z "$LD" && LD="$ac_prog"
3470      ;;
3471  "")
3472    # If it fails, then pretend we aren't using GCC.
3473    ac_prog=ld
3474    ;;
3475  *)
3476    # If it is relative, then search for the first ld in PATH.
3477    with_gnu_ld=unknown
3478    ;;
3479  esac
3480elif test "$with_gnu_ld" = yes; then
3481  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3482$as_echo_n "checking for GNU ld... " >&6; }
3483else
3484  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3485$as_echo_n "checking for non-GNU ld... " >&6; }
3486fi
3487if test "${lt_cv_path_LD+set}" = set; then
3488  $as_echo_n "(cached) " >&6
3489else
3490  if test -z "$LD"; then
3491  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3492  for ac_dir in $PATH; do
3493    IFS="$lt_save_ifs"
3494    test -z "$ac_dir" && ac_dir=.
3495    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3496      lt_cv_path_LD="$ac_dir/$ac_prog"
3497      # Check to see if the program is GNU ld.  I'd rather use --version,
3498      # but apparently some variants of GNU ld only accept -v.
3499      # Break only if it was the GNU/non-GNU ld that we prefer.
3500      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3501      *GNU* | *'with BFD'*)
3502	test "$with_gnu_ld" != no && break
3503	;;
3504      *)
3505	test "$with_gnu_ld" != yes && break
3506	;;
3507      esac
3508    fi
3509  done
3510  IFS="$lt_save_ifs"
3511else
3512  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3513fi
3514fi
3515
3516LD="$lt_cv_path_LD"
3517if test -n "$LD"; then
3518  { $as_echo "$as_me:$LINENO: result: $LD" >&5
3519$as_echo "$LD" >&6; }
3520else
3521  { $as_echo "$as_me:$LINENO: result: no" >&5
3522$as_echo "no" >&6; }
3523fi
3524test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3525$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3526   { (exit 1); exit 1; }; }
3527{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3528$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3529if test "${lt_cv_prog_gnu_ld+set}" = set; then
3530  $as_echo_n "(cached) " >&6
3531else
3532  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3533case `$LD -v 2>&1 </dev/null` in
3534*GNU* | *'with BFD'*)
3535  lt_cv_prog_gnu_ld=yes
3536  ;;
3537*)
3538  lt_cv_prog_gnu_ld=no
3539  ;;
3540esac
3541fi
3542{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3543$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3544with_gnu_ld=$lt_cv_prog_gnu_ld
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3555$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3556if test "${lt_cv_path_NM+set}" = set; then
3557  $as_echo_n "(cached) " >&6
3558else
3559  if test -n "$NM"; then
3560  # Let the user override the test.
3561  lt_cv_path_NM="$NM"
3562else
3563  lt_nm_to_check="${ac_tool_prefix}nm"
3564  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3565    lt_nm_to_check="$lt_nm_to_check nm"
3566  fi
3567  for lt_tmp_nm in $lt_nm_to_check; do
3568    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3569    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3570      IFS="$lt_save_ifs"
3571      test -z "$ac_dir" && ac_dir=.
3572      tmp_nm="$ac_dir/$lt_tmp_nm"
3573      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3574	# Check to see if the nm accepts a BSD-compat flag.
3575	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3576	#   nm: unknown option "B" ignored
3577	# Tru64's nm complains that /dev/null is an invalid object file
3578	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3579	*/dev/null* | *'Invalid file or object type'*)
3580	  lt_cv_path_NM="$tmp_nm -B"
3581	  break
3582	  ;;
3583	*)
3584	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3585	  */dev/null*)
3586	    lt_cv_path_NM="$tmp_nm -p"
3587	    break
3588	    ;;
3589	  *)
3590	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3591	    continue # so that we can try to find one that supports BSD flags
3592	    ;;
3593	  esac
3594	  ;;
3595	esac
3596      fi
3597    done
3598    IFS="$lt_save_ifs"
3599  done
3600  : ${lt_cv_path_NM=no}
3601fi
3602fi
3603{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3604$as_echo "$lt_cv_path_NM" >&6; }
3605if test "$lt_cv_path_NM" != "no"; then
3606  NM="$lt_cv_path_NM"
3607else
3608  # Didn't find any BSD compatible name lister, look for dumpbin.
3609  if test -n "$ac_tool_prefix"; then
3610  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3611  do
3612    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3614{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3615$as_echo_n "checking for $ac_word... " >&6; }
3616if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3617  $as_echo_n "(cached) " >&6
3618else
3619  if test -n "$DUMPBIN"; then
3620  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
3624do
3625  IFS=$as_save_IFS
3626  test -z "$as_dir" && as_dir=.
3627  for ac_exec_ext in '' $ac_executable_extensions; do
3628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3630    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631    break 2
3632  fi
3633done
3634done
3635IFS=$as_save_IFS
3636
3637fi
3638fi
3639DUMPBIN=$ac_cv_prog_DUMPBIN
3640if test -n "$DUMPBIN"; then
3641  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3642$as_echo "$DUMPBIN" >&6; }
3643else
3644  { $as_echo "$as_me:$LINENO: result: no" >&5
3645$as_echo "no" >&6; }
3646fi
3647
3648
3649    test -n "$DUMPBIN" && break
3650  done
3651fi
3652if test -z "$DUMPBIN"; then
3653  ac_ct_DUMPBIN=$DUMPBIN
3654  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3655do
3656  # Extract the first word of "$ac_prog", so it can be a program name with args.
3657set dummy $ac_prog; ac_word=$2
3658{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3659$as_echo_n "checking for $ac_word... " >&6; }
3660if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3661  $as_echo_n "(cached) " >&6
3662else
3663  if test -n "$ac_ct_DUMPBIN"; then
3664  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669  IFS=$as_save_IFS
3670  test -z "$as_dir" && as_dir=.
3671  for ac_exec_ext in '' $ac_executable_extensions; do
3672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3674    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675    break 2
3676  fi
3677done
3678done
3679IFS=$as_save_IFS
3680
3681fi
3682fi
3683ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3684if test -n "$ac_ct_DUMPBIN"; then
3685  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3686$as_echo "$ac_ct_DUMPBIN" >&6; }
3687else
3688  { $as_echo "$as_me:$LINENO: result: no" >&5
3689$as_echo "no" >&6; }
3690fi
3691
3692
3693  test -n "$ac_ct_DUMPBIN" && break
3694done
3695
3696  if test "x$ac_ct_DUMPBIN" = x; then
3697    DUMPBIN=":"
3698  else
3699    case $cross_compiling:$ac_tool_warned in
3700yes:)
3701{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3703ac_tool_warned=yes ;;
3704esac
3705    DUMPBIN=$ac_ct_DUMPBIN
3706  fi
3707fi
3708
3709
3710  if test "$DUMPBIN" != ":"; then
3711    NM="$DUMPBIN"
3712  fi
3713fi
3714test -z "$NM" && NM=nm
3715
3716
3717
3718
3719
3720
3721{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3722$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3723if test "${lt_cv_nm_interface+set}" = set; then
3724  $as_echo_n "(cached) " >&6
3725else
3726  lt_cv_nm_interface="BSD nm"
3727  echo "int some_variable = 0;" > conftest.$ac_ext
3728  (eval echo "\"\$as_me:3728: $ac_compile\"" >&5)
3729  (eval "$ac_compile" 2>conftest.err)
3730  cat conftest.err >&5
3731  (eval echo "\"\$as_me:3731: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3732  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3733  cat conftest.err >&5
3734  (eval echo "\"\$as_me:3734: output\"" >&5)
3735  cat conftest.out >&5
3736  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3737    lt_cv_nm_interface="MS dumpbin"
3738  fi
3739  rm -f conftest*
3740fi
3741{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3742$as_echo "$lt_cv_nm_interface" >&6; }
3743
3744{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3745$as_echo_n "checking whether ln -s works... " >&6; }
3746LN_S=$as_ln_s
3747if test "$LN_S" = "ln -s"; then
3748  { $as_echo "$as_me:$LINENO: result: yes" >&5
3749$as_echo "yes" >&6; }
3750else
3751  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3752$as_echo "no, using $LN_S" >&6; }
3753fi
3754
3755# find the maximum length of command line arguments
3756{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3757$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3758if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3759  $as_echo_n "(cached) " >&6
3760else
3761    i=0
3762  teststring="ABCD"
3763
3764  case $build_os in
3765  msdosdjgpp*)
3766    # On DJGPP, this test can blow up pretty badly due to problems in libc
3767    # (any single argument exceeding 2000 bytes causes a buffer overrun
3768    # during glob expansion).  Even if it were fixed, the result of this
3769    # check would be larger than it should be.
3770    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3771    ;;
3772
3773  gnu*)
3774    # Under GNU Hurd, this test is not required because there is
3775    # no limit to the length of command line arguments.
3776    # Libtool will interpret -1 as no limit whatsoever
3777    lt_cv_sys_max_cmd_len=-1;
3778    ;;
3779
3780  cygwin* | mingw* | cegcc*)
3781    # On Win9x/ME, this test blows up -- it succeeds, but takes
3782    # about 5 minutes as the teststring grows exponentially.
3783    # Worse, since 9x/ME are not pre-emptively multitasking,
3784    # you end up with a "frozen" computer, even though with patience
3785    # the test eventually succeeds (with a max line length of 256k).
3786    # Instead, let's just punt: use the minimum linelength reported by
3787    # all of the supported platforms: 8192 (on NT/2K/XP).
3788    lt_cv_sys_max_cmd_len=8192;
3789    ;;
3790
3791  amigaos*)
3792    # On AmigaOS with pdksh, this test takes hours, literally.
3793    # So we just punt and use a minimum line length of 8192.
3794    lt_cv_sys_max_cmd_len=8192;
3795    ;;
3796
3797  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3798    # This has been around since 386BSD, at least.  Likely further.
3799    if test -x /sbin/sysctl; then
3800      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3801    elif test -x /usr/sbin/sysctl; then
3802      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3803    else
3804      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
3805    fi
3806    # And add a safety zone
3807    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3808    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3809    ;;
3810
3811  interix*)
3812    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3813    lt_cv_sys_max_cmd_len=196608
3814    ;;
3815
3816  osf*)
3817    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3818    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3819    # nice to cause kernel panics so lets avoid the loop below.
3820    # First set a reasonable default.
3821    lt_cv_sys_max_cmd_len=16384
3822    #
3823    if test -x /sbin/sysconfig; then
3824      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3825        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3826      esac
3827    fi
3828    ;;
3829  sco3.2v5*)
3830    lt_cv_sys_max_cmd_len=102400
3831    ;;
3832  sysv5* | sco5v6* | sysv4.2uw2*)
3833    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3834    if test -n "$kargmax"; then
3835      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
3836    else
3837      lt_cv_sys_max_cmd_len=32768
3838    fi
3839    ;;
3840  *)
3841    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3842    if test -n "$lt_cv_sys_max_cmd_len"; then
3843      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3844      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3845    else
3846      # Make teststring a little bigger before we do anything with it.
3847      # a 1K string should be a reasonable start.
3848      for i in 1 2 3 4 5 6 7 8 ; do
3849        teststring=$teststring$teststring
3850      done
3851      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3852      # If test is not a shell built-in, we'll probably end up computing a
3853      # maximum length that is only half of the actual maximum length, but
3854      # we can't tell.
3855      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3856	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3857	      test $i != 17 # 1/2 MB should be enough
3858      do
3859        i=`expr $i + 1`
3860        teststring=$teststring$teststring
3861      done
3862      # Only check the string length outside the loop.
3863      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3864      teststring=
3865      # Add a significant safety factor because C++ compilers can tack on
3866      # massive amounts of additional arguments before passing them to the
3867      # linker.  It appears as though 1/2 is a usable value.
3868      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3869    fi
3870    ;;
3871  esac
3872
3873fi
3874
3875if test -n $lt_cv_sys_max_cmd_len ; then
3876  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3877$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3878else
3879  { $as_echo "$as_me:$LINENO: result: none" >&5
3880$as_echo "none" >&6; }
3881fi
3882max_cmd_len=$lt_cv_sys_max_cmd_len
3883
3884
3885
3886
3887
3888
3889: ${CP="cp -f"}
3890: ${MV="mv -f"}
3891: ${RM="rm -f"}
3892
3893{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3894$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3895# Try some XSI features
3896xsi_shell=no
3897( _lt_dummy="a/b/c"
3898  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3899      = c,a/b,, \
3900    && eval 'test $(( 1 + 1 )) -eq 2 \
3901    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3902  && xsi_shell=yes
3903{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3904$as_echo "$xsi_shell" >&6; }
3905
3906
3907{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3908$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3909lt_shell_append=no
3910( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3911    >/dev/null 2>&1 \
3912  && lt_shell_append=yes
3913{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3914$as_echo "$lt_shell_append" >&6; }
3915
3916
3917if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3918  lt_unset=unset
3919else
3920  lt_unset=false
3921fi
3922
3923
3924
3925
3926
3927# test EBCDIC or ASCII
3928case `echo X|tr X '\101'` in
3929 A) # ASCII based system
3930    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3931  lt_SP2NL='tr \040 \012'
3932  lt_NL2SP='tr \015\012 \040\040'
3933  ;;
3934 *) # EBCDIC based system
3935  lt_SP2NL='tr \100 \n'
3936  lt_NL2SP='tr \r\n \100\100'
3937  ;;
3938esac
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3949$as_echo_n "checking for $LD option to reload object files... " >&6; }
3950if test "${lt_cv_ld_reload_flag+set}" = set; then
3951  $as_echo_n "(cached) " >&6
3952else
3953  lt_cv_ld_reload_flag='-r'
3954fi
3955{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3956$as_echo "$lt_cv_ld_reload_flag" >&6; }
3957reload_flag=$lt_cv_ld_reload_flag
3958case $reload_flag in
3959"" | " "*) ;;
3960*) reload_flag=" $reload_flag" ;;
3961esac
3962reload_cmds='$LD$reload_flag -o $output$reload_objs'
3963case $host_os in
3964  darwin*)
3965    if test "$GCC" = yes; then
3966      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3967    else
3968      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3969    fi
3970    ;;
3971esac
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981if test -n "$ac_tool_prefix"; then
3982  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3983set dummy ${ac_tool_prefix}objdump; ac_word=$2
3984{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3985$as_echo_n "checking for $ac_word... " >&6; }
3986if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3987  $as_echo_n "(cached) " >&6
3988else
3989  if test -n "$OBJDUMP"; then
3990  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995  IFS=$as_save_IFS
3996  test -z "$as_dir" && as_dir=.
3997  for ac_exec_ext in '' $ac_executable_extensions; do
3998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4000    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001    break 2
4002  fi
4003done
4004done
4005IFS=$as_save_IFS
4006
4007fi
4008fi
4009OBJDUMP=$ac_cv_prog_OBJDUMP
4010if test -n "$OBJDUMP"; then
4011  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4012$as_echo "$OBJDUMP" >&6; }
4013else
4014  { $as_echo "$as_me:$LINENO: result: no" >&5
4015$as_echo "no" >&6; }
4016fi
4017
4018
4019fi
4020if test -z "$ac_cv_prog_OBJDUMP"; then
4021  ac_ct_OBJDUMP=$OBJDUMP
4022  # Extract the first word of "objdump", so it can be a program name with args.
4023set dummy objdump; ac_word=$2
4024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4025$as_echo_n "checking for $ac_word... " >&6; }
4026if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4027  $as_echo_n "(cached) " >&6
4028else
4029  if test -n "$ac_ct_OBJDUMP"; then
4030  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4031else
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035  IFS=$as_save_IFS
4036  test -z "$as_dir" && as_dir=.
4037  for ac_exec_ext in '' $ac_executable_extensions; do
4038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4040    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041    break 2
4042  fi
4043done
4044done
4045IFS=$as_save_IFS
4046
4047fi
4048fi
4049ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4050if test -n "$ac_ct_OBJDUMP"; then
4051  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4052$as_echo "$ac_ct_OBJDUMP" >&6; }
4053else
4054  { $as_echo "$as_me:$LINENO: result: no" >&5
4055$as_echo "no" >&6; }
4056fi
4057
4058  if test "x$ac_ct_OBJDUMP" = x; then
4059    OBJDUMP="false"
4060  else
4061    case $cross_compiling:$ac_tool_warned in
4062yes:)
4063{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065ac_tool_warned=yes ;;
4066esac
4067    OBJDUMP=$ac_ct_OBJDUMP
4068  fi
4069else
4070  OBJDUMP="$ac_cv_prog_OBJDUMP"
4071fi
4072
4073test -z "$OBJDUMP" && OBJDUMP=objdump
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4084$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4085if test "${lt_cv_deplibs_check_method+set}" = set; then
4086  $as_echo_n "(cached) " >&6
4087else
4088  lt_cv_file_magic_cmd='$MAGIC_CMD'
4089lt_cv_file_magic_test_file=
4090lt_cv_deplibs_check_method='unknown'
4091# Need to set the preceding variable on all platforms that support
4092# interlibrary dependencies.
4093# 'none' -- dependencies not supported.
4094# `unknown' -- same as none, but documents that we really don't know.
4095# 'pass_all' -- all dependencies passed with no checks.
4096# 'test_compile' -- check by making test program.
4097# 'file_magic [[regex]]' -- check by looking for files in library path
4098# which responds to the $file_magic_cmd with a given extended regex.
4099# If you have `file' or equivalent on your system and you're not sure
4100# whether `pass_all' will *always* work, you probably want this one.
4101
4102case $host_os in
4103aix[4-9]*)
4104  lt_cv_deplibs_check_method=pass_all
4105  ;;
4106
4107beos*)
4108  lt_cv_deplibs_check_method=pass_all
4109  ;;
4110
4111bsdi[45]*)
4112  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4113  lt_cv_file_magic_cmd='/usr/bin/file -L'
4114  lt_cv_file_magic_test_file=/shlib/libc.so
4115  ;;
4116
4117cygwin*)
4118  # func_win32_libid is a shell function defined in ltmain.sh
4119  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4120  lt_cv_file_magic_cmd='func_win32_libid'
4121  ;;
4122
4123mingw* | pw32*)
4124  # Base MSYS/MinGW do not provide the 'file' command needed by
4125  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4126  # unless we find 'file', for example because we are cross-compiling.
4127  if ( file / ) >/dev/null 2>&1; then
4128    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4129    lt_cv_file_magic_cmd='func_win32_libid'
4130  else
4131    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4132    lt_cv_file_magic_cmd='$OBJDUMP -f'
4133  fi
4134  ;;
4135
4136cegcc)
4137  # use the weaker test based on 'objdump'. See mingw*.
4138  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4139  lt_cv_file_magic_cmd='$OBJDUMP -f'
4140  ;;
4141
4142darwin* | rhapsody*)
4143  lt_cv_deplibs_check_method=pass_all
4144  ;;
4145
4146freebsd* | dragonfly*)
4147  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4148    case $host_cpu in
4149    i*86 )
4150      # Not sure whether the presence of OpenBSD here was a mistake.
4151      # Let's accept both of them until this is cleared up.
4152      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4153      lt_cv_file_magic_cmd=/usr/bin/file
4154      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4155      ;;
4156    esac
4157  else
4158    lt_cv_deplibs_check_method=pass_all
4159  fi
4160  ;;
4161
4162gnu*)
4163  lt_cv_deplibs_check_method=pass_all
4164  ;;
4165
4166hpux10.20* | hpux11*)
4167  lt_cv_file_magic_cmd=/usr/bin/file
4168  case $host_cpu in
4169  ia64*)
4170    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4171    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4172    ;;
4173  hppa*64*)
4174    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]'
4175    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4176    ;;
4177  *)
4178    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4179    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4180    ;;
4181  esac
4182  ;;
4183
4184interix[3-9]*)
4185  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4186  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4187  ;;
4188
4189irix5* | irix6* | nonstopux*)
4190  case $LD in
4191  *-32|*"-32 ") libmagic=32-bit;;
4192  *-n32|*"-n32 ") libmagic=N32;;
4193  *-64|*"-64 ") libmagic=64-bit;;
4194  *) libmagic=never-match;;
4195  esac
4196  lt_cv_deplibs_check_method=pass_all
4197  ;;
4198
4199# This must be Linux ELF.
4200linux* | k*bsd*-gnu)
4201  lt_cv_deplibs_check_method=pass_all
4202  ;;
4203
4204netbsd*)
4205  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4206    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4207  else
4208    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4209  fi
4210  ;;
4211
4212newos6*)
4213  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4214  lt_cv_file_magic_cmd=/usr/bin/file
4215  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4216  ;;
4217
4218*nto* | *qnx*)
4219  lt_cv_deplibs_check_method=pass_all
4220  ;;
4221
4222openbsd*)
4223  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4224    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4225  else
4226    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4227  fi
4228  ;;
4229
4230osf3* | osf4* | osf5*)
4231  lt_cv_deplibs_check_method=pass_all
4232  ;;
4233
4234rdos*)
4235  lt_cv_deplibs_check_method=pass_all
4236  ;;
4237
4238solaris*)
4239  lt_cv_deplibs_check_method=pass_all
4240  ;;
4241
4242sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4243  lt_cv_deplibs_check_method=pass_all
4244  ;;
4245
4246sysv4 | sysv4.3*)
4247  case $host_vendor in
4248  motorola)
4249    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]'
4250    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4251    ;;
4252  ncr)
4253    lt_cv_deplibs_check_method=pass_all
4254    ;;
4255  sequent)
4256    lt_cv_file_magic_cmd='/bin/file'
4257    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4258    ;;
4259  sni)
4260    lt_cv_file_magic_cmd='/bin/file'
4261    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4262    lt_cv_file_magic_test_file=/lib/libc.so
4263    ;;
4264  siemens)
4265    lt_cv_deplibs_check_method=pass_all
4266    ;;
4267  pc)
4268    lt_cv_deplibs_check_method=pass_all
4269    ;;
4270  esac
4271  ;;
4272
4273tpf*)
4274  lt_cv_deplibs_check_method=pass_all
4275  ;;
4276esac
4277
4278fi
4279{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4280$as_echo "$lt_cv_deplibs_check_method" >&6; }
4281file_magic_cmd=$lt_cv_file_magic_cmd
4282deplibs_check_method=$lt_cv_deplibs_check_method
4283test -z "$deplibs_check_method" && deplibs_check_method=unknown
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296if test -n "$ac_tool_prefix"; then
4297  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4298set dummy ${ac_tool_prefix}ar; ac_word=$2
4299{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4300$as_echo_n "checking for $ac_word... " >&6; }
4301if test "${ac_cv_prog_AR+set}" = set; then
4302  $as_echo_n "(cached) " >&6
4303else
4304  if test -n "$AR"; then
4305  ac_cv_prog_AR="$AR" # Let the user override the test.
4306else
4307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH
4309do
4310  IFS=$as_save_IFS
4311  test -z "$as_dir" && as_dir=.
4312  for ac_exec_ext in '' $ac_executable_extensions; do
4313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314    ac_cv_prog_AR="${ac_tool_prefix}ar"
4315    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316    break 2
4317  fi
4318done
4319done
4320IFS=$as_save_IFS
4321
4322fi
4323fi
4324AR=$ac_cv_prog_AR
4325if test -n "$AR"; then
4326  { $as_echo "$as_me:$LINENO: result: $AR" >&5
4327$as_echo "$AR" >&6; }
4328else
4329  { $as_echo "$as_me:$LINENO: result: no" >&5
4330$as_echo "no" >&6; }
4331fi
4332
4333
4334fi
4335if test -z "$ac_cv_prog_AR"; then
4336  ac_ct_AR=$AR
4337  # Extract the first word of "ar", so it can be a program name with args.
4338set dummy ar; ac_word=$2
4339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4340$as_echo_n "checking for $ac_word... " >&6; }
4341if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4342  $as_echo_n "(cached) " >&6
4343else
4344  if test -n "$ac_ct_AR"; then
4345  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4346else
4347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350  IFS=$as_save_IFS
4351  test -z "$as_dir" && as_dir=.
4352  for ac_exec_ext in '' $ac_executable_extensions; do
4353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354    ac_cv_prog_ac_ct_AR="ar"
4355    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356    break 2
4357  fi
4358done
4359done
4360IFS=$as_save_IFS
4361
4362fi
4363fi
4364ac_ct_AR=$ac_cv_prog_ac_ct_AR
4365if test -n "$ac_ct_AR"; then
4366  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4367$as_echo "$ac_ct_AR" >&6; }
4368else
4369  { $as_echo "$as_me:$LINENO: result: no" >&5
4370$as_echo "no" >&6; }
4371fi
4372
4373  if test "x$ac_ct_AR" = x; then
4374    AR="false"
4375  else
4376    case $cross_compiling:$ac_tool_warned in
4377yes:)
4378{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380ac_tool_warned=yes ;;
4381esac
4382    AR=$ac_ct_AR
4383  fi
4384else
4385  AR="$ac_cv_prog_AR"
4386fi
4387
4388test -z "$AR" && AR=ar
4389test -z "$AR_FLAGS" && AR_FLAGS=cru
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401if test -n "$ac_tool_prefix"; then
4402  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4403set dummy ${ac_tool_prefix}strip; ac_word=$2
4404{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4405$as_echo_n "checking for $ac_word... " >&6; }
4406if test "${ac_cv_prog_STRIP+set}" = set; then
4407  $as_echo_n "(cached) " >&6
4408else
4409  if test -n "$STRIP"; then
4410  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4411else
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415  IFS=$as_save_IFS
4416  test -z "$as_dir" && as_dir=.
4417  for ac_exec_ext in '' $ac_executable_extensions; do
4418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4420    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421    break 2
4422  fi
4423done
4424done
4425IFS=$as_save_IFS
4426
4427fi
4428fi
4429STRIP=$ac_cv_prog_STRIP
4430if test -n "$STRIP"; then
4431  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4432$as_echo "$STRIP" >&6; }
4433else
4434  { $as_echo "$as_me:$LINENO: result: no" >&5
4435$as_echo "no" >&6; }
4436fi
4437
4438
4439fi
4440if test -z "$ac_cv_prog_STRIP"; then
4441  ac_ct_STRIP=$STRIP
4442  # Extract the first word of "strip", so it can be a program name with args.
4443set dummy strip; ac_word=$2
4444{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4445$as_echo_n "checking for $ac_word... " >&6; }
4446if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4447  $as_echo_n "(cached) " >&6
4448else
4449  if test -n "$ac_ct_STRIP"; then
4450  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4451else
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455  IFS=$as_save_IFS
4456  test -z "$as_dir" && as_dir=.
4457  for ac_exec_ext in '' $ac_executable_extensions; do
4458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459    ac_cv_prog_ac_ct_STRIP="strip"
4460    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461    break 2
4462  fi
4463done
4464done
4465IFS=$as_save_IFS
4466
4467fi
4468fi
4469ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4470if test -n "$ac_ct_STRIP"; then
4471  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4472$as_echo "$ac_ct_STRIP" >&6; }
4473else
4474  { $as_echo "$as_me:$LINENO: result: no" >&5
4475$as_echo "no" >&6; }
4476fi
4477
4478  if test "x$ac_ct_STRIP" = x; then
4479    STRIP=":"
4480  else
4481    case $cross_compiling:$ac_tool_warned in
4482yes:)
4483{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485ac_tool_warned=yes ;;
4486esac
4487    STRIP=$ac_ct_STRIP
4488  fi
4489else
4490  STRIP="$ac_cv_prog_STRIP"
4491fi
4492
4493test -z "$STRIP" && STRIP=:
4494
4495
4496
4497
4498
4499
4500if test -n "$ac_tool_prefix"; then
4501  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4502set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4503{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4504$as_echo_n "checking for $ac_word... " >&6; }
4505if test "${ac_cv_prog_RANLIB+set}" = set; then
4506  $as_echo_n "(cached) " >&6
4507else
4508  if test -n "$RANLIB"; then
4509  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4510else
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514  IFS=$as_save_IFS
4515  test -z "$as_dir" && as_dir=.
4516  for ac_exec_ext in '' $ac_executable_extensions; do
4517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4519    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520    break 2
4521  fi
4522done
4523done
4524IFS=$as_save_IFS
4525
4526fi
4527fi
4528RANLIB=$ac_cv_prog_RANLIB
4529if test -n "$RANLIB"; then
4530  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4531$as_echo "$RANLIB" >&6; }
4532else
4533  { $as_echo "$as_me:$LINENO: result: no" >&5
4534$as_echo "no" >&6; }
4535fi
4536
4537
4538fi
4539if test -z "$ac_cv_prog_RANLIB"; then
4540  ac_ct_RANLIB=$RANLIB
4541  # Extract the first word of "ranlib", so it can be a program name with args.
4542set dummy ranlib; ac_word=$2
4543{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4544$as_echo_n "checking for $ac_word... " >&6; }
4545if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4546  $as_echo_n "(cached) " >&6
4547else
4548  if test -n "$ac_ct_RANLIB"; then
4549  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554  IFS=$as_save_IFS
4555  test -z "$as_dir" && as_dir=.
4556  for ac_exec_ext in '' $ac_executable_extensions; do
4557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558    ac_cv_prog_ac_ct_RANLIB="ranlib"
4559    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560    break 2
4561  fi
4562done
4563done
4564IFS=$as_save_IFS
4565
4566fi
4567fi
4568ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4569if test -n "$ac_ct_RANLIB"; then
4570  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4571$as_echo "$ac_ct_RANLIB" >&6; }
4572else
4573  { $as_echo "$as_me:$LINENO: result: no" >&5
4574$as_echo "no" >&6; }
4575fi
4576
4577  if test "x$ac_ct_RANLIB" = x; then
4578    RANLIB=":"
4579  else
4580    case $cross_compiling:$ac_tool_warned in
4581yes:)
4582{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4584ac_tool_warned=yes ;;
4585esac
4586    RANLIB=$ac_ct_RANLIB
4587  fi
4588else
4589  RANLIB="$ac_cv_prog_RANLIB"
4590fi
4591
4592test -z "$RANLIB" && RANLIB=:
4593
4594
4595
4596
4597
4598
4599# Determine commands to create old-style static archives.
4600old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4601old_postinstall_cmds='chmod 644 $oldlib'
4602old_postuninstall_cmds=
4603
4604if test -n "$RANLIB"; then
4605  case $host_os in
4606  openbsd*)
4607    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4608    ;;
4609  *)
4610    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4611    ;;
4612  esac
4613  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4614fi
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649# If no C compiler was specified, use CC.
4650LTCC=${LTCC-"$CC"}
4651
4652# If no C compiler flags were specified, use CFLAGS.
4653LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4654
4655# Allow CC to be a program name with arguments.
4656compiler=$CC
4657
4658
4659# Check for command to grab the raw symbol name followed by C symbol from nm.
4660{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4661$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4662if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4663  $as_echo_n "(cached) " >&6
4664else
4665
4666# These are sane defaults that work on at least a few old systems.
4667# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4668
4669# Character class describing NM global symbol codes.
4670symcode='[BCDEGRST]'
4671
4672# Regexp to match symbols that can be accessed directly from C.
4673sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4674
4675# Define system-specific variables.
4676case $host_os in
4677aix*)
4678  symcode='[BCDT]'
4679  ;;
4680cygwin* | mingw* | pw32* | cegcc*)
4681  symcode='[ABCDGISTW]'
4682  ;;
4683hpux*)
4684  if test "$host_cpu" = ia64; then
4685    symcode='[ABCDEGRST]'
4686  fi
4687  ;;
4688irix* | nonstopux*)
4689  symcode='[BCDEGRST]'
4690  ;;
4691osf*)
4692  symcode='[BCDEGQRST]'
4693  ;;
4694solaris*)
4695  symcode='[BDRT]'
4696  ;;
4697sco3.2v5*)
4698  symcode='[DT]'
4699  ;;
4700sysv4.2uw2*)
4701  symcode='[DT]'
4702  ;;
4703sysv5* | sco5v6* | unixware* | OpenUNIX*)
4704  symcode='[ABDT]'
4705  ;;
4706sysv4)
4707  symcode='[DFNSTU]'
4708  ;;
4709esac
4710
4711# If we're using GNU nm, then use its standard symbol codes.
4712case `$NM -V 2>&1` in
4713*GNU* | *'with BFD'*)
4714  symcode='[ABCDGIRSTW]' ;;
4715esac
4716
4717# Transform an extracted symbol line into a proper C declaration.
4718# Some systems (esp. on ia64) link data and code symbols differently,
4719# so use this general approach.
4720lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4721
4722# Transform an extracted symbol line into symbol name and symbol address
4723lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4724lt_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'"
4725
4726# Handle CRLF in mingw tool chain
4727opt_cr=
4728case $build_os in
4729mingw*)
4730  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4731  ;;
4732esac
4733
4734# Try without a prefix underscore, then with it.
4735for ac_symprfx in "" "_"; do
4736
4737  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4738  symxfrm="\\1 $ac_symprfx\\2 \\2"
4739
4740  # Write the raw and C identifiers.
4741  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4742    # Fake it for dumpbin and say T for any non-static function
4743    # and D for any global variable.
4744    # Also find C++ and __fastcall symbols from MSVC++,
4745    # which start with @ or ?.
4746    lt_cv_sys_global_symbol_pipe="$AWK '"\
4747"     {last_section=section; section=\$ 3};"\
4748"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4749"     \$ 0!~/External *\|/{next};"\
4750"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4751"     {if(hide[section]) next};"\
4752"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4753"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4754"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4755"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4756"     ' prfx=^$ac_symprfx"
4757  else
4758    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4759  fi
4760
4761  # Check to see that the pipe works correctly.
4762  pipe_works=no
4763
4764  rm -f conftest*
4765  cat > conftest.$ac_ext <<_LT_EOF
4766#ifdef __cplusplus
4767extern "C" {
4768#endif
4769char nm_test_var;
4770void nm_test_func(void);
4771void nm_test_func(void){}
4772#ifdef __cplusplus
4773}
4774#endif
4775int main(){nm_test_var='a';nm_test_func();return(0);}
4776_LT_EOF
4777
4778  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779  (eval $ac_compile) 2>&5
4780  ac_status=$?
4781  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); }; then
4783    # Now try to grab the symbols.
4784    nlist=conftest.nm
4785    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4786  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4787  ac_status=$?
4788  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); } && test -s "$nlist"; then
4790      # Try sorting and uniquifying the output.
4791      if sort "$nlist" | uniq > "$nlist"T; then
4792	mv -f "$nlist"T "$nlist"
4793      else
4794	rm -f "$nlist"T
4795      fi
4796
4797      # Make sure that we snagged all the symbols we need.
4798      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4799	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4800	  cat <<_LT_EOF > conftest.$ac_ext
4801#ifdef __cplusplus
4802extern "C" {
4803#endif
4804
4805_LT_EOF
4806	  # Now generate the symbol file.
4807	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4808
4809	  cat <<_LT_EOF >> conftest.$ac_ext
4810
4811/* The mapping between symbol names and symbols.  */
4812const struct {
4813  const char *name;
4814  void       *address;
4815}
4816lt__PROGRAM__LTX_preloaded_symbols[] =
4817{
4818  { "@PROGRAM@", (void *) 0 },
4819_LT_EOF
4820	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4821	  cat <<\_LT_EOF >> conftest.$ac_ext
4822  {0, (void *) 0}
4823};
4824
4825/* This works around a problem in FreeBSD linker */
4826#ifdef FREEBSD_WORKAROUND
4827static const void *lt_preloaded_setup() {
4828  return lt__PROGRAM__LTX_preloaded_symbols;
4829}
4830#endif
4831
4832#ifdef __cplusplus
4833}
4834#endif
4835_LT_EOF
4836	  # Now try linking the two files.
4837	  mv conftest.$ac_objext conftstm.$ac_objext
4838	  lt_save_LIBS="$LIBS"
4839	  lt_save_CFLAGS="$CFLAGS"
4840	  LIBS="conftstm.$ac_objext"
4841	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4842	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843  (eval $ac_link) 2>&5
4844  ac_status=$?
4845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4847	    pipe_works=yes
4848	  fi
4849	  LIBS="$lt_save_LIBS"
4850	  CFLAGS="$lt_save_CFLAGS"
4851	else
4852	  echo "cannot find nm_test_func in $nlist" >&5
4853	fi
4854      else
4855	echo "cannot find nm_test_var in $nlist" >&5
4856      fi
4857    else
4858      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4859    fi
4860  else
4861    echo "$progname: failed program was:" >&5
4862    cat conftest.$ac_ext >&5
4863  fi
4864  rm -rf conftest* conftst*
4865
4866  # Do not use the global_symbol_pipe unless it works.
4867  if test "$pipe_works" = yes; then
4868    break
4869  else
4870    lt_cv_sys_global_symbol_pipe=
4871  fi
4872done
4873
4874fi
4875
4876if test -z "$lt_cv_sys_global_symbol_pipe"; then
4877  lt_cv_sys_global_symbol_to_cdecl=
4878fi
4879if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4880  { $as_echo "$as_me:$LINENO: result: failed" >&5
4881$as_echo "failed" >&6; }
4882else
4883  { $as_echo "$as_me:$LINENO: result: ok" >&5
4884$as_echo "ok" >&6; }
4885fi
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909# Check whether --enable-libtool-lock was given.
4910if test "${enable_libtool_lock+set}" = set; then
4911  enableval=$enable_libtool_lock;
4912fi
4913
4914test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4915
4916# Some flags need to be propagated to the compiler or linker for good
4917# libtool support.
4918case $host in
4919ia64-*-hpux*)
4920  # Find out which ABI we are using.
4921  echo 'int i;' > conftest.$ac_ext
4922  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923  (eval $ac_compile) 2>&5
4924  ac_status=$?
4925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926  (exit $ac_status); }; then
4927    case `/usr/bin/file conftest.$ac_objext` in
4928      *ELF-32*)
4929	HPUX_IA64_MODE="32"
4930	;;
4931      *ELF-64*)
4932	HPUX_IA64_MODE="64"
4933	;;
4934    esac
4935  fi
4936  rm -rf conftest*
4937  ;;
4938*-*-irix6*)
4939  # Find out which ABI we are using.
4940  echo '#line 4940 "configure"' > conftest.$ac_ext
4941  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4942  (eval $ac_compile) 2>&5
4943  ac_status=$?
4944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945  (exit $ac_status); }; then
4946    if test "$lt_cv_prog_gnu_ld" = yes; then
4947      case `/usr/bin/file conftest.$ac_objext` in
4948	*32-bit*)
4949	  LD="${LD-ld} -melf32bsmip"
4950	  ;;
4951	*N32*)
4952	  LD="${LD-ld} -melf32bmipn32"
4953	  ;;
4954	*64-bit*)
4955	  LD="${LD-ld} -melf64bmip"
4956	;;
4957      esac
4958    else
4959      case `/usr/bin/file conftest.$ac_objext` in
4960	*32-bit*)
4961	  LD="${LD-ld} -32"
4962	  ;;
4963	*N32*)
4964	  LD="${LD-ld} -n32"
4965	  ;;
4966	*64-bit*)
4967	  LD="${LD-ld} -64"
4968	  ;;
4969      esac
4970    fi
4971  fi
4972  rm -rf conftest*
4973  ;;
4974
4975x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4976s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4977  # Find out which ABI we are using.
4978  echo 'int i;' > conftest.$ac_ext
4979  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980  (eval $ac_compile) 2>&5
4981  ac_status=$?
4982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983  (exit $ac_status); }; then
4984    case `/usr/bin/file conftest.o` in
4985      *32-bit*)
4986	case $host in
4987	  x86_64-*kfreebsd*-gnu)
4988	    LD="${LD-ld} -m elf_i386_fbsd"
4989	    ;;
4990	  x86_64-*linux*)
4991	    LD="${LD-ld} -m elf_i386"
4992	    ;;
4993	  ppc64-*linux*|powerpc64-*linux*)
4994	    LD="${LD-ld} -m elf32ppclinux"
4995	    ;;
4996	  s390x-*linux*)
4997	    LD="${LD-ld} -m elf_s390"
4998	    ;;
4999	  sparc64-*linux*)
5000	    LD="${LD-ld} -m elf32_sparc"
5001	    ;;
5002	esac
5003	;;
5004      *64-bit*)
5005	case $host in
5006	  x86_64-*kfreebsd*-gnu)
5007	    LD="${LD-ld} -m elf_x86_64_fbsd"
5008	    ;;
5009	  x86_64-*linux*)
5010	    LD="${LD-ld} -m elf_x86_64"
5011	    ;;
5012	  ppc*-*linux*|powerpc*-*linux*)
5013	    LD="${LD-ld} -m elf64ppc"
5014	    ;;
5015	  s390*-*linux*|s390*-*tpf*)
5016	    LD="${LD-ld} -m elf64_s390"
5017	    ;;
5018	  sparc*-*linux*)
5019	    LD="${LD-ld} -m elf64_sparc"
5020	    ;;
5021	esac
5022	;;
5023    esac
5024  fi
5025  rm -rf conftest*
5026  ;;
5027
5028*-*-sco3.2v5*)
5029  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5030  SAVE_CFLAGS="$CFLAGS"
5031  CFLAGS="$CFLAGS -belf"
5032  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5033$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5034if test "${lt_cv_cc_needs_belf+set}" = set; then
5035  $as_echo_n "(cached) " >&6
5036else
5037  ac_ext=c
5038ac_cpp='$CPP $CPPFLAGS'
5039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042
5043     cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h.  */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h.  */
5049
5050int
5051main ()
5052{
5053
5054  ;
5055  return 0;
5056}
5057_ACEOF
5058rm -f conftest.$ac_objext conftest$ac_exeext
5059if { (ac_try="$ac_link"
5060case "(($ac_try" in
5061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062  *) ac_try_echo=$ac_try;;
5063esac
5064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5065$as_echo "$ac_try_echo") >&5
5066  (eval "$ac_link") 2>conftest.er1
5067  ac_status=$?
5068  grep -v '^ *+' conftest.er1 >conftest.err
5069  rm -f conftest.er1
5070  cat conftest.err >&5
5071  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072  (exit $ac_status); } && {
5073	 test -z "$ac_c_werror_flag" ||
5074	 test ! -s conftest.err
5075       } && test -s conftest$ac_exeext && {
5076	 test "$cross_compiling" = yes ||
5077	 $as_test_x conftest$ac_exeext
5078       }; then
5079  lt_cv_cc_needs_belf=yes
5080else
5081  $as_echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084	lt_cv_cc_needs_belf=no
5085fi
5086
5087rm -rf conftest.dSYM
5088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5089      conftest$ac_exeext conftest.$ac_ext
5090     ac_ext=c
5091ac_cpp='$CPP $CPPFLAGS'
5092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094ac_compiler_gnu=$ac_cv_c_compiler_gnu
5095
5096fi
5097{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5098$as_echo "$lt_cv_cc_needs_belf" >&6; }
5099  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5100    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5101    CFLAGS="$SAVE_CFLAGS"
5102  fi
5103  ;;
5104sparc*-*solaris*)
5105  # Find out which ABI we are using.
5106  echo 'int i;' > conftest.$ac_ext
5107  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108  (eval $ac_compile) 2>&5
5109  ac_status=$?
5110  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111  (exit $ac_status); }; then
5112    case `/usr/bin/file conftest.o` in
5113    *64-bit*)
5114      case $lt_cv_prog_gnu_ld in
5115      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5116      *)
5117	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5118	  LD="${LD-ld} -64"
5119	fi
5120	;;
5121      esac
5122      ;;
5123    esac
5124  fi
5125  rm -rf conftest*
5126  ;;
5127esac
5128
5129need_locks="$enable_libtool_lock"
5130
5131
5132  case $host_os in
5133    rhapsody* | darwin*)
5134    if test -n "$ac_tool_prefix"; then
5135  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5136set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5138$as_echo_n "checking for $ac_word... " >&6; }
5139if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5140  $as_echo_n "(cached) " >&6
5141else
5142  if test -n "$DSYMUTIL"; then
5143  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148  IFS=$as_save_IFS
5149  test -z "$as_dir" && as_dir=.
5150  for ac_exec_ext in '' $ac_executable_extensions; do
5151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5153    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154    break 2
5155  fi
5156done
5157done
5158IFS=$as_save_IFS
5159
5160fi
5161fi
5162DSYMUTIL=$ac_cv_prog_DSYMUTIL
5163if test -n "$DSYMUTIL"; then
5164  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5165$as_echo "$DSYMUTIL" >&6; }
5166else
5167  { $as_echo "$as_me:$LINENO: result: no" >&5
5168$as_echo "no" >&6; }
5169fi
5170
5171
5172fi
5173if test -z "$ac_cv_prog_DSYMUTIL"; then
5174  ac_ct_DSYMUTIL=$DSYMUTIL
5175  # Extract the first word of "dsymutil", so it can be a program name with args.
5176set dummy dsymutil; ac_word=$2
5177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5180  $as_echo_n "(cached) " >&6
5181else
5182  if test -n "$ac_ct_DSYMUTIL"; then
5183  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190  for ac_exec_ext in '' $ac_executable_extensions; do
5191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5193    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5203if test -n "$ac_ct_DSYMUTIL"; then
5204  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5205$as_echo "$ac_ct_DSYMUTIL" >&6; }
5206else
5207  { $as_echo "$as_me:$LINENO: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210
5211  if test "x$ac_ct_DSYMUTIL" = x; then
5212    DSYMUTIL=":"
5213  else
5214    case $cross_compiling:$ac_tool_warned in
5215yes:)
5216{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218ac_tool_warned=yes ;;
5219esac
5220    DSYMUTIL=$ac_ct_DSYMUTIL
5221  fi
5222else
5223  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5224fi
5225
5226    if test -n "$ac_tool_prefix"; then
5227  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5228set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5229{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5230$as_echo_n "checking for $ac_word... " >&6; }
5231if test "${ac_cv_prog_NMEDIT+set}" = set; then
5232  $as_echo_n "(cached) " >&6
5233else
5234  if test -n "$NMEDIT"; then
5235  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240  IFS=$as_save_IFS
5241  test -z "$as_dir" && as_dir=.
5242  for ac_exec_ext in '' $ac_executable_extensions; do
5243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5245    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246    break 2
5247  fi
5248done
5249done
5250IFS=$as_save_IFS
5251
5252fi
5253fi
5254NMEDIT=$ac_cv_prog_NMEDIT
5255if test -n "$NMEDIT"; then
5256  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5257$as_echo "$NMEDIT" >&6; }
5258else
5259  { $as_echo "$as_me:$LINENO: result: no" >&5
5260$as_echo "no" >&6; }
5261fi
5262
5263
5264fi
5265if test -z "$ac_cv_prog_NMEDIT"; then
5266  ac_ct_NMEDIT=$NMEDIT
5267  # Extract the first word of "nmedit", so it can be a program name with args.
5268set dummy nmedit; ac_word=$2
5269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5270$as_echo_n "checking for $ac_word... " >&6; }
5271if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5272  $as_echo_n "(cached) " >&6
5273else
5274  if test -n "$ac_ct_NMEDIT"; then
5275  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282  for ac_exec_ext in '' $ac_executable_extensions; do
5283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5285    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286    break 2
5287  fi
5288done
5289done
5290IFS=$as_save_IFS
5291
5292fi
5293fi
5294ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5295if test -n "$ac_ct_NMEDIT"; then
5296  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5297$as_echo "$ac_ct_NMEDIT" >&6; }
5298else
5299  { $as_echo "$as_me:$LINENO: result: no" >&5
5300$as_echo "no" >&6; }
5301fi
5302
5303  if test "x$ac_ct_NMEDIT" = x; then
5304    NMEDIT=":"
5305  else
5306    case $cross_compiling:$ac_tool_warned in
5307yes:)
5308{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5310ac_tool_warned=yes ;;
5311esac
5312    NMEDIT=$ac_ct_NMEDIT
5313  fi
5314else
5315  NMEDIT="$ac_cv_prog_NMEDIT"
5316fi
5317
5318    if test -n "$ac_tool_prefix"; then
5319  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5320set dummy ${ac_tool_prefix}lipo; ac_word=$2
5321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5322$as_echo_n "checking for $ac_word... " >&6; }
5323if test "${ac_cv_prog_LIPO+set}" = set; then
5324  $as_echo_n "(cached) " >&6
5325else
5326  if test -n "$LIPO"; then
5327  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5328else
5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332  IFS=$as_save_IFS
5333  test -z "$as_dir" && as_dir=.
5334  for ac_exec_ext in '' $ac_executable_extensions; do
5335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5337    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338    break 2
5339  fi
5340done
5341done
5342IFS=$as_save_IFS
5343
5344fi
5345fi
5346LIPO=$ac_cv_prog_LIPO
5347if test -n "$LIPO"; then
5348  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5349$as_echo "$LIPO" >&6; }
5350else
5351  { $as_echo "$as_me:$LINENO: result: no" >&5
5352$as_echo "no" >&6; }
5353fi
5354
5355
5356fi
5357if test -z "$ac_cv_prog_LIPO"; then
5358  ac_ct_LIPO=$LIPO
5359  # Extract the first word of "lipo", so it can be a program name with args.
5360set dummy lipo; ac_word=$2
5361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5362$as_echo_n "checking for $ac_word... " >&6; }
5363if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5364  $as_echo_n "(cached) " >&6
5365else
5366  if test -n "$ac_ct_LIPO"; then
5367  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5368else
5369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
5372  IFS=$as_save_IFS
5373  test -z "$as_dir" && as_dir=.
5374  for ac_exec_ext in '' $ac_executable_extensions; do
5375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376    ac_cv_prog_ac_ct_LIPO="lipo"
5377    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378    break 2
5379  fi
5380done
5381done
5382IFS=$as_save_IFS
5383
5384fi
5385fi
5386ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5387if test -n "$ac_ct_LIPO"; then
5388  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5389$as_echo "$ac_ct_LIPO" >&6; }
5390else
5391  { $as_echo "$as_me:$LINENO: result: no" >&5
5392$as_echo "no" >&6; }
5393fi
5394
5395  if test "x$ac_ct_LIPO" = x; then
5396    LIPO=":"
5397  else
5398    case $cross_compiling:$ac_tool_warned in
5399yes:)
5400{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5402ac_tool_warned=yes ;;
5403esac
5404    LIPO=$ac_ct_LIPO
5405  fi
5406else
5407  LIPO="$ac_cv_prog_LIPO"
5408fi
5409
5410    if test -n "$ac_tool_prefix"; then
5411  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5412set dummy ${ac_tool_prefix}otool; ac_word=$2
5413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5414$as_echo_n "checking for $ac_word... " >&6; }
5415if test "${ac_cv_prog_OTOOL+set}" = set; then
5416  $as_echo_n "(cached) " >&6
5417else
5418  if test -n "$OTOOL"; then
5419  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5420else
5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424  IFS=$as_save_IFS
5425  test -z "$as_dir" && as_dir=.
5426  for ac_exec_ext in '' $ac_executable_extensions; do
5427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5429    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5430    break 2
5431  fi
5432done
5433done
5434IFS=$as_save_IFS
5435
5436fi
5437fi
5438OTOOL=$ac_cv_prog_OTOOL
5439if test -n "$OTOOL"; then
5440  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5441$as_echo "$OTOOL" >&6; }
5442else
5443  { $as_echo "$as_me:$LINENO: result: no" >&5
5444$as_echo "no" >&6; }
5445fi
5446
5447
5448fi
5449if test -z "$ac_cv_prog_OTOOL"; then
5450  ac_ct_OTOOL=$OTOOL
5451  # Extract the first word of "otool", so it can be a program name with args.
5452set dummy otool; ac_word=$2
5453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
5455if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5456  $as_echo_n "(cached) " >&6
5457else
5458  if test -n "$ac_ct_OTOOL"; then
5459  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464  IFS=$as_save_IFS
5465  test -z "$as_dir" && as_dir=.
5466  for ac_exec_ext in '' $ac_executable_extensions; do
5467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468    ac_cv_prog_ac_ct_OTOOL="otool"
5469    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470    break 2
5471  fi
5472done
5473done
5474IFS=$as_save_IFS
5475
5476fi
5477fi
5478ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5479if test -n "$ac_ct_OTOOL"; then
5480  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5481$as_echo "$ac_ct_OTOOL" >&6; }
5482else
5483  { $as_echo "$as_me:$LINENO: result: no" >&5
5484$as_echo "no" >&6; }
5485fi
5486
5487  if test "x$ac_ct_OTOOL" = x; then
5488    OTOOL=":"
5489  else
5490    case $cross_compiling:$ac_tool_warned in
5491yes:)
5492{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494ac_tool_warned=yes ;;
5495esac
5496    OTOOL=$ac_ct_OTOOL
5497  fi
5498else
5499  OTOOL="$ac_cv_prog_OTOOL"
5500fi
5501
5502    if test -n "$ac_tool_prefix"; then
5503  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5504set dummy ${ac_tool_prefix}otool64; ac_word=$2
5505{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5506$as_echo_n "checking for $ac_word... " >&6; }
5507if test "${ac_cv_prog_OTOOL64+set}" = set; then
5508  $as_echo_n "(cached) " >&6
5509else
5510  if test -n "$OTOOL64"; then
5511  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516  IFS=$as_save_IFS
5517  test -z "$as_dir" && as_dir=.
5518  for ac_exec_ext in '' $ac_executable_extensions; do
5519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5521    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522    break 2
5523  fi
5524done
5525done
5526IFS=$as_save_IFS
5527
5528fi
5529fi
5530OTOOL64=$ac_cv_prog_OTOOL64
5531if test -n "$OTOOL64"; then
5532  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5533$as_echo "$OTOOL64" >&6; }
5534else
5535  { $as_echo "$as_me:$LINENO: result: no" >&5
5536$as_echo "no" >&6; }
5537fi
5538
5539
5540fi
5541if test -z "$ac_cv_prog_OTOOL64"; then
5542  ac_ct_OTOOL64=$OTOOL64
5543  # Extract the first word of "otool64", so it can be a program name with args.
5544set dummy otool64; ac_word=$2
5545{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5546$as_echo_n "checking for $ac_word... " >&6; }
5547if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5548  $as_echo_n "(cached) " >&6
5549else
5550  if test -n "$ac_ct_OTOOL64"; then
5551  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5552else
5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556  IFS=$as_save_IFS
5557  test -z "$as_dir" && as_dir=.
5558  for ac_exec_ext in '' $ac_executable_extensions; do
5559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560    ac_cv_prog_ac_ct_OTOOL64="otool64"
5561    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562    break 2
5563  fi
5564done
5565done
5566IFS=$as_save_IFS
5567
5568fi
5569fi
5570ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5571if test -n "$ac_ct_OTOOL64"; then
5572  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5573$as_echo "$ac_ct_OTOOL64" >&6; }
5574else
5575  { $as_echo "$as_me:$LINENO: result: no" >&5
5576$as_echo "no" >&6; }
5577fi
5578
5579  if test "x$ac_ct_OTOOL64" = x; then
5580    OTOOL64=":"
5581  else
5582    case $cross_compiling:$ac_tool_warned in
5583yes:)
5584{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586ac_tool_warned=yes ;;
5587esac
5588    OTOOL64=$ac_ct_OTOOL64
5589  fi
5590else
5591  OTOOL64="$ac_cv_prog_OTOOL64"
5592fi
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5621$as_echo_n "checking for -single_module linker flag... " >&6; }
5622if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5623  $as_echo_n "(cached) " >&6
5624else
5625  lt_cv_apple_cc_single_mod=no
5626      if test -z "${LT_MULTI_MODULE}"; then
5627	# By default we will add the -single_module flag. You can override
5628	# by either setting the environment variable LT_MULTI_MODULE
5629	# non-empty at configure time, or by adding -multi_module to the
5630	# link flags.
5631	rm -rf libconftest.dylib*
5632	echo "int foo(void){return 1;}" > conftest.c
5633	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5634-dynamiclib -Wl,-single_module conftest.c" >&5
5635	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5636	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5637        _lt_result=$?
5638	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5639	  lt_cv_apple_cc_single_mod=yes
5640	else
5641	  cat conftest.err >&5
5642	fi
5643	rm -rf libconftest.dylib*
5644	rm -f conftest.*
5645      fi
5646fi
5647{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5648$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5649    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5650$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5651if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5652  $as_echo_n "(cached) " >&6
5653else
5654  lt_cv_ld_exported_symbols_list=no
5655      save_LDFLAGS=$LDFLAGS
5656      echo "_main" > conftest.sym
5657      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5658      cat >conftest.$ac_ext <<_ACEOF
5659/* confdefs.h.  */
5660_ACEOF
5661cat confdefs.h >>conftest.$ac_ext
5662cat >>conftest.$ac_ext <<_ACEOF
5663/* end confdefs.h.  */
5664
5665int
5666main ()
5667{
5668
5669  ;
5670  return 0;
5671}
5672_ACEOF
5673rm -f conftest.$ac_objext conftest$ac_exeext
5674if { (ac_try="$ac_link"
5675case "(($ac_try" in
5676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677  *) ac_try_echo=$ac_try;;
5678esac
5679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5680$as_echo "$ac_try_echo") >&5
5681  (eval "$ac_link") 2>conftest.er1
5682  ac_status=$?
5683  grep -v '^ *+' conftest.er1 >conftest.err
5684  rm -f conftest.er1
5685  cat conftest.err >&5
5686  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687  (exit $ac_status); } && {
5688	 test -z "$ac_c_werror_flag" ||
5689	 test ! -s conftest.err
5690       } && test -s conftest$ac_exeext && {
5691	 test "$cross_compiling" = yes ||
5692	 $as_test_x conftest$ac_exeext
5693       }; then
5694  lt_cv_ld_exported_symbols_list=yes
5695else
5696  $as_echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699	lt_cv_ld_exported_symbols_list=no
5700fi
5701
5702rm -rf conftest.dSYM
5703rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5704      conftest$ac_exeext conftest.$ac_ext
5705	LDFLAGS="$save_LDFLAGS"
5706
5707fi
5708{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5709$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5710    case $host_os in
5711    rhapsody* | darwin1.[012])
5712      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5713    darwin1.*)
5714      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5715    darwin*) # darwin 5.x on
5716      # if running on 10.5 or later, the deployment target defaults
5717      # to the OS version, if on x86, and 10.4, the deployment
5718      # target defaults to 10.4. Don't you love it?
5719      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5720	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5721	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5722	10.[012]*)
5723	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5724	10.*)
5725	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5726      esac
5727    ;;
5728  esac
5729    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5730      _lt_dar_single_mod='$single_module'
5731    fi
5732    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5733      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5734    else
5735      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5736    fi
5737    if test "$DSYMUTIL" != ":"; then
5738      _lt_dsymutil='~$DSYMUTIL $lib || :'
5739    else
5740      _lt_dsymutil=
5741    fi
5742    ;;
5743  esac
5744
5745ac_ext=c
5746ac_cpp='$CPP $CPPFLAGS'
5747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749ac_compiler_gnu=$ac_cv_c_compiler_gnu
5750{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5751$as_echo_n "checking how to run the C preprocessor... " >&6; }
5752# On Suns, sometimes $CPP names a directory.
5753if test -n "$CPP" && test -d "$CPP"; then
5754  CPP=
5755fi
5756if test -z "$CPP"; then
5757  if test "${ac_cv_prog_CPP+set}" = set; then
5758  $as_echo_n "(cached) " >&6
5759else
5760      # Double quotes because CPP needs to be expanded
5761    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5762    do
5763      ac_preproc_ok=false
5764for ac_c_preproc_warn_flag in '' yes
5765do
5766  # Use a header file that comes with gcc, so configuring glibc
5767  # with a fresh cross-compiler works.
5768  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5769  # <limits.h> exists even on freestanding compilers.
5770  # On the NeXT, cc -E runs the code through the compiler's parser,
5771  # not just through cpp. "Syntax error" is here to catch this case.
5772  cat >conftest.$ac_ext <<_ACEOF
5773/* confdefs.h.  */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h.  */
5778#ifdef __STDC__
5779# include <limits.h>
5780#else
5781# include <assert.h>
5782#endif
5783		     Syntax error
5784_ACEOF
5785if { (ac_try="$ac_cpp conftest.$ac_ext"
5786case "(($ac_try" in
5787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788  *) ac_try_echo=$ac_try;;
5789esac
5790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5791$as_echo "$ac_try_echo") >&5
5792  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5793  ac_status=$?
5794  grep -v '^ *+' conftest.er1 >conftest.err
5795  rm -f conftest.er1
5796  cat conftest.err >&5
5797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); } >/dev/null && {
5799	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5800	 test ! -s conftest.err
5801       }; then
5802  :
5803else
5804  $as_echo "$as_me: failed program was:" >&5
5805sed 's/^/| /' conftest.$ac_ext >&5
5806
5807  # Broken: fails on valid input.
5808continue
5809fi
5810
5811rm -f conftest.err conftest.$ac_ext
5812
5813  # OK, works on sane cases.  Now check whether nonexistent headers
5814  # can be detected and how.
5815  cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h.  */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h.  */
5821#include <ac_nonexistent.h>
5822_ACEOF
5823if { (ac_try="$ac_cpp conftest.$ac_ext"
5824case "(($ac_try" in
5825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826  *) ac_try_echo=$ac_try;;
5827esac
5828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5829$as_echo "$ac_try_echo") >&5
5830  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831  ac_status=$?
5832  grep -v '^ *+' conftest.er1 >conftest.err
5833  rm -f conftest.er1
5834  cat conftest.err >&5
5835  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836  (exit $ac_status); } >/dev/null && {
5837	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5838	 test ! -s conftest.err
5839       }; then
5840  # Broken: success on invalid input.
5841continue
5842else
5843  $as_echo "$as_me: failed program was:" >&5
5844sed 's/^/| /' conftest.$ac_ext >&5
5845
5846  # Passes both tests.
5847ac_preproc_ok=:
5848break
5849fi
5850
5851rm -f conftest.err conftest.$ac_ext
5852
5853done
5854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855rm -f conftest.err conftest.$ac_ext
5856if $ac_preproc_ok; then
5857  break
5858fi
5859
5860    done
5861    ac_cv_prog_CPP=$CPP
5862
5863fi
5864  CPP=$ac_cv_prog_CPP
5865else
5866  ac_cv_prog_CPP=$CPP
5867fi
5868{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5869$as_echo "$CPP" >&6; }
5870ac_preproc_ok=false
5871for ac_c_preproc_warn_flag in '' yes
5872do
5873  # Use a header file that comes with gcc, so configuring glibc
5874  # with a fresh cross-compiler works.
5875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876  # <limits.h> exists even on freestanding compilers.
5877  # On the NeXT, cc -E runs the code through the compiler's parser,
5878  # not just through cpp. "Syntax error" is here to catch this case.
5879  cat >conftest.$ac_ext <<_ACEOF
5880/* confdefs.h.  */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h.  */
5885#ifdef __STDC__
5886# include <limits.h>
5887#else
5888# include <assert.h>
5889#endif
5890		     Syntax error
5891_ACEOF
5892if { (ac_try="$ac_cpp conftest.$ac_ext"
5893case "(($ac_try" in
5894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895  *) ac_try_echo=$ac_try;;
5896esac
5897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5898$as_echo "$ac_try_echo") >&5
5899  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5900  ac_status=$?
5901  grep -v '^ *+' conftest.er1 >conftest.err
5902  rm -f conftest.er1
5903  cat conftest.err >&5
5904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); } >/dev/null && {
5906	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5907	 test ! -s conftest.err
5908       }; then
5909  :
5910else
5911  $as_echo "$as_me: failed program was:" >&5
5912sed 's/^/| /' conftest.$ac_ext >&5
5913
5914  # Broken: fails on valid input.
5915continue
5916fi
5917
5918rm -f conftest.err conftest.$ac_ext
5919
5920  # OK, works on sane cases.  Now check whether nonexistent headers
5921  # can be detected and how.
5922  cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h.  */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h.  */
5928#include <ac_nonexistent.h>
5929_ACEOF
5930if { (ac_try="$ac_cpp conftest.$ac_ext"
5931case "(($ac_try" in
5932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933  *) ac_try_echo=$ac_try;;
5934esac
5935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936$as_echo "$ac_try_echo") >&5
5937  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5938  ac_status=$?
5939  grep -v '^ *+' conftest.er1 >conftest.err
5940  rm -f conftest.er1
5941  cat conftest.err >&5
5942  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); } >/dev/null && {
5944	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5945	 test ! -s conftest.err
5946       }; then
5947  # Broken: success on invalid input.
5948continue
5949else
5950  $as_echo "$as_me: failed program was:" >&5
5951sed 's/^/| /' conftest.$ac_ext >&5
5952
5953  # Passes both tests.
5954ac_preproc_ok=:
5955break
5956fi
5957
5958rm -f conftest.err conftest.$ac_ext
5959
5960done
5961# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5962rm -f conftest.err conftest.$ac_ext
5963if $ac_preproc_ok; then
5964  :
5965else
5966  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5968{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5969See \`config.log' for more details." >&5
5970$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5971See \`config.log' for more details." >&2;}
5972   { (exit 1); exit 1; }; }; }
5973fi
5974
5975ac_ext=c
5976ac_cpp='$CPP $CPPFLAGS'
5977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979ac_compiler_gnu=$ac_cv_c_compiler_gnu
5980
5981
5982{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5983$as_echo_n "checking for ANSI C header files... " >&6; }
5984if test "${ac_cv_header_stdc+set}" = set; then
5985  $as_echo_n "(cached) " >&6
5986else
5987  cat >conftest.$ac_ext <<_ACEOF
5988/* confdefs.h.  */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h.  */
5993#include <stdlib.h>
5994#include <stdarg.h>
5995#include <string.h>
5996#include <float.h>
5997
5998int
5999main ()
6000{
6001
6002  ;
6003  return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext
6007if { (ac_try="$ac_compile"
6008case "(($ac_try" in
6009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010  *) ac_try_echo=$ac_try;;
6011esac
6012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013$as_echo "$ac_try_echo") >&5
6014  (eval "$ac_compile") 2>conftest.er1
6015  ac_status=$?
6016  grep -v '^ *+' conftest.er1 >conftest.err
6017  rm -f conftest.er1
6018  cat conftest.err >&5
6019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020  (exit $ac_status); } && {
6021	 test -z "$ac_c_werror_flag" ||
6022	 test ! -s conftest.err
6023       } && test -s conftest.$ac_objext; then
6024  ac_cv_header_stdc=yes
6025else
6026  $as_echo "$as_me: failed program was:" >&5
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
6029	ac_cv_header_stdc=no
6030fi
6031
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033
6034if test $ac_cv_header_stdc = yes; then
6035  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036  cat >conftest.$ac_ext <<_ACEOF
6037/* confdefs.h.  */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h.  */
6042#include <string.h>
6043
6044_ACEOF
6045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6046  $EGREP "memchr" >/dev/null 2>&1; then
6047  :
6048else
6049  ac_cv_header_stdc=no
6050fi
6051rm -f conftest*
6052
6053fi
6054
6055if test $ac_cv_header_stdc = yes; then
6056  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6057  cat >conftest.$ac_ext <<_ACEOF
6058/* confdefs.h.  */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h.  */
6063#include <stdlib.h>
6064
6065_ACEOF
6066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067  $EGREP "free" >/dev/null 2>&1; then
6068  :
6069else
6070  ac_cv_header_stdc=no
6071fi
6072rm -f conftest*
6073
6074fi
6075
6076if test $ac_cv_header_stdc = yes; then
6077  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6078  if test "$cross_compiling" = yes; then
6079  :
6080else
6081  cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h.  */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h.  */
6087#include <ctype.h>
6088#include <stdlib.h>
6089#if ((' ' & 0x0FF) == 0x020)
6090# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6091# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6092#else
6093# define ISLOWER(c) \
6094		   (('a' <= (c) && (c) <= 'i') \
6095		     || ('j' <= (c) && (c) <= 'r') \
6096		     || ('s' <= (c) && (c) <= 'z'))
6097# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6098#endif
6099
6100#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6101int
6102main ()
6103{
6104  int i;
6105  for (i = 0; i < 256; i++)
6106    if (XOR (islower (i), ISLOWER (i))
6107	|| toupper (i) != TOUPPER (i))
6108      return 2;
6109  return 0;
6110}
6111_ACEOF
6112rm -f conftest$ac_exeext
6113if { (ac_try="$ac_link"
6114case "(($ac_try" in
6115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116  *) ac_try_echo=$ac_try;;
6117esac
6118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6119$as_echo "$ac_try_echo") >&5
6120  (eval "$ac_link") 2>&5
6121  ac_status=$?
6122  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6124  { (case "(($ac_try" in
6125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126  *) ac_try_echo=$ac_try;;
6127esac
6128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6129$as_echo "$ac_try_echo") >&5
6130  (eval "$ac_try") 2>&5
6131  ac_status=$?
6132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); }; }; then
6134  :
6135else
6136  $as_echo "$as_me: program exited with status $ac_status" >&5
6137$as_echo "$as_me: failed program was:" >&5
6138sed 's/^/| /' conftest.$ac_ext >&5
6139
6140( exit $ac_status )
6141ac_cv_header_stdc=no
6142fi
6143rm -rf conftest.dSYM
6144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6145fi
6146
6147
6148fi
6149fi
6150{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6151$as_echo "$ac_cv_header_stdc" >&6; }
6152if test $ac_cv_header_stdc = yes; then
6153
6154cat >>confdefs.h <<\_ACEOF
6155#define STDC_HEADERS 1
6156_ACEOF
6157
6158fi
6159
6160# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6171		  inttypes.h stdint.h unistd.h
6172do
6173as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6175$as_echo_n "checking for $ac_header... " >&6; }
6176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6177  $as_echo_n "(cached) " >&6
6178else
6179  cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h.  */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h.  */
6185$ac_includes_default
6186
6187#include <$ac_header>
6188_ACEOF
6189rm -f conftest.$ac_objext
6190if { (ac_try="$ac_compile"
6191case "(($ac_try" in
6192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193  *) ac_try_echo=$ac_try;;
6194esac
6195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6196$as_echo "$ac_try_echo") >&5
6197  (eval "$ac_compile") 2>conftest.er1
6198  ac_status=$?
6199  grep -v '^ *+' conftest.er1 >conftest.err
6200  rm -f conftest.er1
6201  cat conftest.err >&5
6202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); } && {
6204	 test -z "$ac_c_werror_flag" ||
6205	 test ! -s conftest.err
6206       } && test -s conftest.$ac_objext; then
6207  eval "$as_ac_Header=yes"
6208else
6209  $as_echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212	eval "$as_ac_Header=no"
6213fi
6214
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216fi
6217ac_res=`eval 'as_val=${'$as_ac_Header'}
6218		 $as_echo "$as_val"'`
6219	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6220$as_echo "$ac_res" >&6; }
6221as_val=`eval 'as_val=${'$as_ac_Header'}
6222		 $as_echo "$as_val"'`
6223   if test "x$as_val" = x""yes; then
6224  cat >>confdefs.h <<_ACEOF
6225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226_ACEOF
6227
6228fi
6229
6230done
6231
6232
6233
6234for ac_header in dlfcn.h
6235do
6236as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6237{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6238$as_echo_n "checking for $ac_header... " >&6; }
6239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6240  $as_echo_n "(cached) " >&6
6241else
6242  cat >conftest.$ac_ext <<_ACEOF
6243/* confdefs.h.  */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h.  */
6248$ac_includes_default
6249
6250#include <$ac_header>
6251_ACEOF
6252rm -f conftest.$ac_objext
6253if { (ac_try="$ac_compile"
6254case "(($ac_try" in
6255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256  *) ac_try_echo=$ac_try;;
6257esac
6258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6259$as_echo "$ac_try_echo") >&5
6260  (eval "$ac_compile") 2>conftest.er1
6261  ac_status=$?
6262  grep -v '^ *+' conftest.er1 >conftest.err
6263  rm -f conftest.er1
6264  cat conftest.err >&5
6265  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266  (exit $ac_status); } && {
6267	 test -z "$ac_c_werror_flag" ||
6268	 test ! -s conftest.err
6269       } && test -s conftest.$ac_objext; then
6270  eval "$as_ac_Header=yes"
6271else
6272  $as_echo "$as_me: failed program was:" >&5
6273sed 's/^/| /' conftest.$ac_ext >&5
6274
6275	eval "$as_ac_Header=no"
6276fi
6277
6278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279fi
6280ac_res=`eval 'as_val=${'$as_ac_Header'}
6281		 $as_echo "$as_val"'`
6282	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6283$as_echo "$ac_res" >&6; }
6284as_val=`eval 'as_val=${'$as_ac_Header'}
6285		 $as_echo "$as_val"'`
6286   if test "x$as_val" = x""yes; then
6287  cat >>confdefs.h <<_ACEOF
6288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6289_ACEOF
6290
6291fi
6292
6293done
6294
6295
6296
6297# Set options
6298
6299
6300
6301        enable_dlopen=no
6302
6303
6304  enable_win32_dll=no
6305
6306
6307            # Check whether --enable-shared was given.
6308if test "${enable_shared+set}" = set; then
6309  enableval=$enable_shared; p=${PACKAGE-default}
6310    case $enableval in
6311    yes) enable_shared=yes ;;
6312    no) enable_shared=no ;;
6313    *)
6314      enable_shared=no
6315      # Look at the argument we got.  We use all the common list separators.
6316      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6317      for pkg in $enableval; do
6318	IFS="$lt_save_ifs"
6319	if test "X$pkg" = "X$p"; then
6320	  enable_shared=yes
6321	fi
6322      done
6323      IFS="$lt_save_ifs"
6324      ;;
6325    esac
6326else
6327  enable_shared=yes
6328fi
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338  # Check whether --enable-static was given.
6339if test "${enable_static+set}" = set; then
6340  enableval=$enable_static; p=${PACKAGE-default}
6341    case $enableval in
6342    yes) enable_static=yes ;;
6343    no) enable_static=no ;;
6344    *)
6345     enable_static=no
6346      # Look at the argument we got.  We use all the common list separators.
6347      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6348      for pkg in $enableval; do
6349	IFS="$lt_save_ifs"
6350	if test "X$pkg" = "X$p"; then
6351	  enable_static=yes
6352	fi
6353      done
6354      IFS="$lt_save_ifs"
6355      ;;
6356    esac
6357else
6358  enable_static=yes
6359fi
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370# Check whether --with-pic was given.
6371if test "${with_pic+set}" = set; then
6372  withval=$with_pic; pic_mode="$withval"
6373else
6374  pic_mode=default
6375fi
6376
6377
6378test -z "$pic_mode" && pic_mode=default
6379
6380
6381
6382
6383
6384
6385
6386  # Check whether --enable-fast-install was given.
6387if test "${enable_fast_install+set}" = set; then
6388  enableval=$enable_fast_install; p=${PACKAGE-default}
6389    case $enableval in
6390    yes) enable_fast_install=yes ;;
6391    no) enable_fast_install=no ;;
6392    *)
6393      enable_fast_install=no
6394      # Look at the argument we got.  We use all the common list separators.
6395      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6396      for pkg in $enableval; do
6397	IFS="$lt_save_ifs"
6398	if test "X$pkg" = "X$p"; then
6399	  enable_fast_install=yes
6400	fi
6401      done
6402      IFS="$lt_save_ifs"
6403      ;;
6404    esac
6405else
6406  enable_fast_install=yes
6407fi
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419# This can be used to rebuild libtool when needed
6420LIBTOOL_DEPS="$ltmain"
6421
6422# Always use our own libtool.
6423LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449test -z "$LN_S" && LN_S="ln -s"
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464if test -n "${ZSH_VERSION+set}" ; then
6465   setopt NO_GLOB_SUBST
6466fi
6467
6468{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6469$as_echo_n "checking for objdir... " >&6; }
6470if test "${lt_cv_objdir+set}" = set; then
6471  $as_echo_n "(cached) " >&6
6472else
6473  rm -f .libs 2>/dev/null
6474mkdir .libs 2>/dev/null
6475if test -d .libs; then
6476  lt_cv_objdir=.libs
6477else
6478  # MS-DOS does not allow filenames that begin with a dot.
6479  lt_cv_objdir=_libs
6480fi
6481rmdir .libs 2>/dev/null
6482fi
6483{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6484$as_echo "$lt_cv_objdir" >&6; }
6485objdir=$lt_cv_objdir
6486
6487
6488
6489
6490
6491cat >>confdefs.h <<_ACEOF
6492#define LT_OBJDIR "$lt_cv_objdir/"
6493_ACEOF
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511case $host_os in
6512aix3*)
6513  # AIX sometimes has problems with the GCC collect2 program.  For some
6514  # reason, if we set the COLLECT_NAMES environment variable, the problems
6515  # vanish in a puff of smoke.
6516  if test "X${COLLECT_NAMES+set}" != Xset; then
6517    COLLECT_NAMES=
6518    export COLLECT_NAMES
6519  fi
6520  ;;
6521esac
6522
6523# Sed substitution that helps us do robust quoting.  It backslashifies
6524# metacharacters that are still active within double-quoted strings.
6525sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6526
6527# Same as above, but do not quote variable references.
6528double_quote_subst='s/\(["`\\]\)/\\\1/g'
6529
6530# Sed substitution to delay expansion of an escaped shell variable in a
6531# double_quote_subst'ed string.
6532delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6533
6534# Sed substitution to delay expansion of an escaped single quote.
6535delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6536
6537# Sed substitution to avoid accidental globbing in evaled expressions
6538no_glob_subst='s/\*/\\\*/g'
6539
6540# Global variables:
6541ofile=libtool
6542can_build_shared=yes
6543
6544# All known linkers require a `.a' archive for static linking (except MSVC,
6545# which needs '.lib').
6546libext=a
6547
6548with_gnu_ld="$lt_cv_prog_gnu_ld"
6549
6550old_CC="$CC"
6551old_CFLAGS="$CFLAGS"
6552
6553# Set sane defaults for various variables
6554test -z "$CC" && CC=cc
6555test -z "$LTCC" && LTCC=$CC
6556test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6557test -z "$LD" && LD=ld
6558test -z "$ac_objext" && ac_objext=o
6559
6560for cc_temp in $compiler""; do
6561  case $cc_temp in
6562    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6563    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6564    \-*) ;;
6565    *) break;;
6566  esac
6567done
6568cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6569
6570
6571# Only perform the check for file, if the check method requires it
6572test -z "$MAGIC_CMD" && MAGIC_CMD=file
6573case $deplibs_check_method in
6574file_magic*)
6575  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6576    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6577$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6578if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6579  $as_echo_n "(cached) " >&6
6580else
6581  case $MAGIC_CMD in
6582[\\/*] |  ?:[\\/]*)
6583  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6584  ;;
6585*)
6586  lt_save_MAGIC_CMD="$MAGIC_CMD"
6587  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6588  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6589  for ac_dir in $ac_dummy; do
6590    IFS="$lt_save_ifs"
6591    test -z "$ac_dir" && ac_dir=.
6592    if test -f $ac_dir/${ac_tool_prefix}file; then
6593      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6594      if test -n "$file_magic_test_file"; then
6595	case $deplibs_check_method in
6596	"file_magic "*)
6597	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6598	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6599	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6600	    $EGREP "$file_magic_regex" > /dev/null; then
6601	    :
6602	  else
6603	    cat <<_LT_EOF 1>&2
6604
6605*** Warning: the command libtool uses to detect shared libraries,
6606*** $file_magic_cmd, produces output that libtool cannot recognize.
6607*** The result is that libtool may fail to recognize shared libraries
6608*** as such.  This will affect the creation of libtool libraries that
6609*** depend on shared libraries, but programs linked with such libtool
6610*** libraries will work regardless of this problem.  Nevertheless, you
6611*** may want to report the problem to your system manager and/or to
6612*** [email protected]
6613
6614_LT_EOF
6615	  fi ;;
6616	esac
6617      fi
6618      break
6619    fi
6620  done
6621  IFS="$lt_save_ifs"
6622  MAGIC_CMD="$lt_save_MAGIC_CMD"
6623  ;;
6624esac
6625fi
6626
6627MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6628if test -n "$MAGIC_CMD"; then
6629  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6630$as_echo "$MAGIC_CMD" >&6; }
6631else
6632  { $as_echo "$as_me:$LINENO: result: no" >&5
6633$as_echo "no" >&6; }
6634fi
6635
6636
6637
6638
6639
6640if test -z "$lt_cv_path_MAGIC_CMD"; then
6641  if test -n "$ac_tool_prefix"; then
6642    { $as_echo "$as_me:$LINENO: checking for file" >&5
6643$as_echo_n "checking for file... " >&6; }
6644if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6645  $as_echo_n "(cached) " >&6
6646else
6647  case $MAGIC_CMD in
6648[\\/*] |  ?:[\\/]*)
6649  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6650  ;;
6651*)
6652  lt_save_MAGIC_CMD="$MAGIC_CMD"
6653  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6654  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6655  for ac_dir in $ac_dummy; do
6656    IFS="$lt_save_ifs"
6657    test -z "$ac_dir" && ac_dir=.
6658    if test -f $ac_dir/file; then
6659      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6660      if test -n "$file_magic_test_file"; then
6661	case $deplibs_check_method in
6662	"file_magic "*)
6663	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6664	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6665	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6666	    $EGREP "$file_magic_regex" > /dev/null; then
6667	    :
6668	  else
6669	    cat <<_LT_EOF 1>&2
6670
6671*** Warning: the command libtool uses to detect shared libraries,
6672*** $file_magic_cmd, produces output that libtool cannot recognize.
6673*** The result is that libtool may fail to recognize shared libraries
6674*** as such.  This will affect the creation of libtool libraries that
6675*** depend on shared libraries, but programs linked with such libtool
6676*** libraries will work regardless of this problem.  Nevertheless, you
6677*** may want to report the problem to your system manager and/or to
6678*** [email protected]
6679
6680_LT_EOF
6681	  fi ;;
6682	esac
6683      fi
6684      break
6685    fi
6686  done
6687  IFS="$lt_save_ifs"
6688  MAGIC_CMD="$lt_save_MAGIC_CMD"
6689  ;;
6690esac
6691fi
6692
6693MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6694if test -n "$MAGIC_CMD"; then
6695  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6696$as_echo "$MAGIC_CMD" >&6; }
6697else
6698  { $as_echo "$as_me:$LINENO: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702
6703  else
6704    MAGIC_CMD=:
6705  fi
6706fi
6707
6708  fi
6709  ;;
6710esac
6711
6712# Use C for the default configuration in the libtool script
6713
6714lt_save_CC="$CC"
6715ac_ext=c
6716ac_cpp='$CPP $CPPFLAGS'
6717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6719ac_compiler_gnu=$ac_cv_c_compiler_gnu
6720
6721
6722# Source file extension for C test sources.
6723ac_ext=c
6724
6725# Object file extension for compiled C test sources.
6726objext=o
6727objext=$objext
6728
6729# Code to be used in simple compile tests
6730lt_simple_compile_test_code="int some_variable = 0;"
6731
6732# Code to be used in simple link tests
6733lt_simple_link_test_code='int main(){return(0);}'
6734
6735
6736
6737
6738
6739
6740
6741# If no C compiler was specified, use CC.
6742LTCC=${LTCC-"$CC"}
6743
6744# If no C compiler flags were specified, use CFLAGS.
6745LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6746
6747# Allow CC to be a program name with arguments.
6748compiler=$CC
6749
6750# Save the default compiler, since it gets overwritten when the other
6751# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6752compiler_DEFAULT=$CC
6753
6754# save warnings/boilerplate of simple test code
6755ac_outfile=conftest.$ac_objext
6756echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6757eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6758_lt_compiler_boilerplate=`cat conftest.err`
6759$RM conftest*
6760
6761ac_outfile=conftest.$ac_objext
6762echo "$lt_simple_link_test_code" >conftest.$ac_ext
6763eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6764_lt_linker_boilerplate=`cat conftest.err`
6765$RM -r conftest*
6766
6767
6768if test -n "$compiler"; then
6769
6770lt_prog_compiler_no_builtin_flag=
6771
6772if test "$GCC" = yes; then
6773  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6774
6775  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6776$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6777if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6778  $as_echo_n "(cached) " >&6
6779else
6780  lt_cv_prog_compiler_rtti_exceptions=no
6781   ac_outfile=conftest.$ac_objext
6782   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6783   lt_compiler_flag="-fno-rtti -fno-exceptions"
6784   # Insert the option either (1) after the last *FLAGS variable, or
6785   # (2) before a word containing "conftest.", or (3) at the end.
6786   # Note that $ac_compile itself does not contain backslashes and begins
6787   # with a dollar sign (not a hyphen), so the echo should work correctly.
6788   # The option is referenced via a variable to avoid confusing sed.
6789   lt_compile=`echo "$ac_compile" | $SED \
6790   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6791   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6792   -e 's:$: $lt_compiler_flag:'`
6793   (eval echo "\"\$as_me:6793: $lt_compile\"" >&5)
6794   (eval "$lt_compile" 2>conftest.err)
6795   ac_status=$?
6796   cat conftest.err >&5
6797   echo "$as_me:6797: \$? = $ac_status" >&5
6798   if (exit $ac_status) && test -s "$ac_outfile"; then
6799     # The compiler can only warn and ignore the option if not recognized
6800     # So say no if there are warnings other than the usual output.
6801     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6802     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6803     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6804       lt_cv_prog_compiler_rtti_exceptions=yes
6805     fi
6806   fi
6807   $RM conftest*
6808
6809fi
6810{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6811$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6812
6813if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6814    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6815else
6816    :
6817fi
6818
6819fi
6820
6821
6822
6823
6824
6825
6826  lt_prog_compiler_wl=
6827lt_prog_compiler_pic=
6828lt_prog_compiler_static=
6829
6830{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6831$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6832
6833  if test "$GCC" = yes; then
6834    lt_prog_compiler_wl='-Wl,'
6835    lt_prog_compiler_static='-static'
6836
6837    case $host_os in
6838      aix*)
6839      # All AIX code is PIC.
6840      if test "$host_cpu" = ia64; then
6841	# AIX 5 now supports IA64 processor
6842	lt_prog_compiler_static='-Bstatic'
6843      fi
6844      ;;
6845
6846    amigaos*)
6847      case $host_cpu in
6848      powerpc)
6849            # see comment about AmigaOS4 .so support
6850            lt_prog_compiler_pic='-fPIC'
6851        ;;
6852      m68k)
6853            # FIXME: we need at least 68020 code to build shared libraries, but
6854            # adding the `-m68020' flag to GCC prevents building anything better,
6855            # like `-m68040'.
6856            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6857        ;;
6858      esac
6859      ;;
6860
6861    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6862      # PIC is the default for these OSes.
6863      ;;
6864
6865    mingw* | cygwin* | pw32* | os2* | cegcc*)
6866      # This hack is so that the source file can tell whether it is being
6867      # built for inclusion in a dll (and should export symbols for example).
6868      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6869      # (--disable-auto-import) libraries
6870      lt_prog_compiler_pic='-DDLL_EXPORT'
6871      ;;
6872
6873    darwin* | rhapsody*)
6874      # PIC is the default on this platform
6875      # Common symbols not allowed in MH_DYLIB files
6876      lt_prog_compiler_pic='-fno-common'
6877      ;;
6878
6879    hpux*)
6880      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6881      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6882      # sets the default TLS model and affects inlining.
6883      case $host_cpu in
6884      hppa*64*)
6885	# +Z the default
6886	;;
6887      *)
6888	lt_prog_compiler_pic='-fPIC'
6889	;;
6890      esac
6891      ;;
6892
6893    interix[3-9]*)
6894      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6895      # Instead, we relocate shared libraries at runtime.
6896      ;;
6897
6898    msdosdjgpp*)
6899      # Just because we use GCC doesn't mean we suddenly get shared libraries
6900      # on systems that don't support them.
6901      lt_prog_compiler_can_build_shared=no
6902      enable_shared=no
6903      ;;
6904
6905    *nto* | *qnx*)
6906      # QNX uses GNU C++, but need to define -shared option too, otherwise
6907      # it will coredump.
6908      lt_prog_compiler_pic='-fPIC -shared'
6909      ;;
6910
6911    sysv4*MP*)
6912      if test -d /usr/nec; then
6913	lt_prog_compiler_pic=-Kconform_pic
6914      fi
6915      ;;
6916
6917    *)
6918      lt_prog_compiler_pic='-fPIC'
6919      ;;
6920    esac
6921  else
6922    # PORTME Check for flag to pass linker flags through the system compiler.
6923    case $host_os in
6924    aix*)
6925      lt_prog_compiler_wl='-Wl,'
6926      if test "$host_cpu" = ia64; then
6927	# AIX 5 now supports IA64 processor
6928	lt_prog_compiler_static='-Bstatic'
6929      else
6930	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6931      fi
6932      ;;
6933
6934    mingw* | cygwin* | pw32* | os2* | cegcc*)
6935      # This hack is so that the source file can tell whether it is being
6936      # built for inclusion in a dll (and should export symbols for example).
6937      lt_prog_compiler_pic='-DDLL_EXPORT'
6938      ;;
6939
6940    hpux9* | hpux10* | hpux11*)
6941      lt_prog_compiler_wl='-Wl,'
6942      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6943      # not for PA HP-UX.
6944      case $host_cpu in
6945      hppa*64*|ia64*)
6946	# +Z the default
6947	;;
6948      *)
6949	lt_prog_compiler_pic='+Z'
6950	;;
6951      esac
6952      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6953      lt_prog_compiler_static='${wl}-a ${wl}archive'
6954      ;;
6955
6956    irix5* | irix6* | nonstopux*)
6957      lt_prog_compiler_wl='-Wl,'
6958      # PIC (with -KPIC) is the default.
6959      lt_prog_compiler_static='-non_shared'
6960      ;;
6961
6962    linux* | k*bsd*-gnu)
6963      case $cc_basename in
6964      # old Intel for x86_64 which still supported -KPIC.
6965      ecc*)
6966	lt_prog_compiler_wl='-Wl,'
6967	lt_prog_compiler_pic='-KPIC'
6968	lt_prog_compiler_static='-static'
6969        ;;
6970      # icc used to be incompatible with GCC.
6971      # ICC 10 doesn't accept -KPIC any more.
6972      icc* | ifort*)
6973	lt_prog_compiler_wl='-Wl,'
6974	lt_prog_compiler_pic='-fPIC'
6975	lt_prog_compiler_static='-static'
6976        ;;
6977      # Lahey Fortran 8.1.
6978      lf95*)
6979	lt_prog_compiler_wl='-Wl,'
6980	lt_prog_compiler_pic='--shared'
6981	lt_prog_compiler_static='--static'
6982	;;
6983      pgcc* | pgf77* | pgf90* | pgf95*)
6984        # Portland Group compilers (*not* the Pentium gcc compiler,
6985	# which looks to be a dead project)
6986	lt_prog_compiler_wl='-Wl,'
6987	lt_prog_compiler_pic='-fpic'
6988	lt_prog_compiler_static='-Bstatic'
6989        ;;
6990      ccc*)
6991        lt_prog_compiler_wl='-Wl,'
6992        # All Alpha code is PIC.
6993        lt_prog_compiler_static='-non_shared'
6994        ;;
6995      xl*)
6996	# IBM XL C 8.0/Fortran 10.1 on PPC
6997	lt_prog_compiler_wl='-Wl,'
6998	lt_prog_compiler_pic='-qpic'
6999	lt_prog_compiler_static='-qstaticlink'
7000	;;
7001      *)
7002	case `$CC -V 2>&1 | sed 5q` in
7003	*Sun\ C*)
7004	  # Sun C 5.9
7005	  lt_prog_compiler_pic='-KPIC'
7006	  lt_prog_compiler_static='-Bstatic'
7007	  lt_prog_compiler_wl='-Wl,'
7008	  ;;
7009	*Sun\ F*)
7010	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7011	  lt_prog_compiler_pic='-KPIC'
7012	  lt_prog_compiler_static='-Bstatic'
7013	  lt_prog_compiler_wl=''
7014	  ;;
7015	esac
7016	;;
7017      esac
7018      ;;
7019
7020    newsos6)
7021      lt_prog_compiler_pic='-KPIC'
7022      lt_prog_compiler_static='-Bstatic'
7023      ;;
7024
7025    *nto* | *qnx*)
7026      # QNX uses GNU C++, but need to define -shared option too, otherwise
7027      # it will coredump.
7028      lt_prog_compiler_pic='-fPIC -shared'
7029      ;;
7030
7031    osf3* | osf4* | osf5*)
7032      lt_prog_compiler_wl='-Wl,'
7033      # All OSF/1 code is PIC.
7034      lt_prog_compiler_static='-non_shared'
7035      ;;
7036
7037    rdos*)
7038      lt_prog_compiler_static='-non_shared'
7039      ;;
7040
7041    solaris*)
7042      lt_prog_compiler_pic='-KPIC'
7043      lt_prog_compiler_static='-Bstatic'
7044      case $cc_basename in
7045      f77* | f90* | f95*)
7046	lt_prog_compiler_wl='-Qoption ld ';;
7047      *)
7048	lt_prog_compiler_wl='-Wl,';;
7049      esac
7050      ;;
7051
7052    sunos4*)
7053      lt_prog_compiler_wl='-Qoption ld '
7054      lt_prog_compiler_pic='-PIC'
7055      lt_prog_compiler_static='-Bstatic'
7056      ;;
7057
7058    sysv4 | sysv4.2uw2* | sysv4.3*)
7059      lt_prog_compiler_wl='-Wl,'
7060      lt_prog_compiler_pic='-KPIC'
7061      lt_prog_compiler_static='-Bstatic'
7062      ;;
7063
7064    sysv4*MP*)
7065      if test -d /usr/nec ;then
7066	lt_prog_compiler_pic='-Kconform_pic'
7067	lt_prog_compiler_static='-Bstatic'
7068      fi
7069      ;;
7070
7071    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7072      lt_prog_compiler_wl='-Wl,'
7073      lt_prog_compiler_pic='-KPIC'
7074      lt_prog_compiler_static='-Bstatic'
7075      ;;
7076
7077    unicos*)
7078      lt_prog_compiler_wl='-Wl,'
7079      lt_prog_compiler_can_build_shared=no
7080      ;;
7081
7082    uts4*)
7083      lt_prog_compiler_pic='-pic'
7084      lt_prog_compiler_static='-Bstatic'
7085      ;;
7086
7087    *)
7088      lt_prog_compiler_can_build_shared=no
7089      ;;
7090    esac
7091  fi
7092
7093case $host_os in
7094  # For platforms which do not support PIC, -DPIC is meaningless:
7095  *djgpp*)
7096    lt_prog_compiler_pic=
7097    ;;
7098  *)
7099    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7100    ;;
7101esac
7102{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7103$as_echo "$lt_prog_compiler_pic" >&6; }
7104
7105
7106
7107
7108
7109
7110#
7111# Check to make sure the PIC flag actually works.
7112#
7113if test -n "$lt_prog_compiler_pic"; then
7114  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7115$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7116if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7117  $as_echo_n "(cached) " >&6
7118else
7119  lt_cv_prog_compiler_pic_works=no
7120   ac_outfile=conftest.$ac_objext
7121   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7122   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7123   # Insert the option either (1) after the last *FLAGS variable, or
7124   # (2) before a word containing "conftest.", or (3) at the end.
7125   # Note that $ac_compile itself does not contain backslashes and begins
7126   # with a dollar sign (not a hyphen), so the echo should work correctly.
7127   # The option is referenced via a variable to avoid confusing sed.
7128   lt_compile=`echo "$ac_compile" | $SED \
7129   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7130   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7131   -e 's:$: $lt_compiler_flag:'`
7132   (eval echo "\"\$as_me:7132: $lt_compile\"" >&5)
7133   (eval "$lt_compile" 2>conftest.err)
7134   ac_status=$?
7135   cat conftest.err >&5
7136   echo "$as_me:7136: \$? = $ac_status" >&5
7137   if (exit $ac_status) && test -s "$ac_outfile"; then
7138     # The compiler can only warn and ignore the option if not recognized
7139     # So say no if there are warnings other than the usual output.
7140     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7141     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7142     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7143       lt_cv_prog_compiler_pic_works=yes
7144     fi
7145   fi
7146   $RM conftest*
7147
7148fi
7149{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7150$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7151
7152if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7153    case $lt_prog_compiler_pic in
7154     "" | " "*) ;;
7155     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7156     esac
7157else
7158    lt_prog_compiler_pic=
7159     lt_prog_compiler_can_build_shared=no
7160fi
7161
7162fi
7163
7164
7165
7166
7167
7168
7169#
7170# Check to make sure the static flag actually works.
7171#
7172wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7173{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7174$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7175if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7176  $as_echo_n "(cached) " >&6
7177else
7178  lt_cv_prog_compiler_static_works=no
7179   save_LDFLAGS="$LDFLAGS"
7180   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7181   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7182   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7183     # The linker can only warn and ignore the option if not recognized
7184     # So say no if there are warnings
7185     if test -s conftest.err; then
7186       # Append any errors to the config.log.
7187       cat conftest.err 1>&5
7188       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7189       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7190       if diff conftest.exp conftest.er2 >/dev/null; then
7191         lt_cv_prog_compiler_static_works=yes
7192       fi
7193     else
7194       lt_cv_prog_compiler_static_works=yes
7195     fi
7196   fi
7197   $RM -r conftest*
7198   LDFLAGS="$save_LDFLAGS"
7199
7200fi
7201{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7202$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7203
7204if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7205    :
7206else
7207    lt_prog_compiler_static=
7208fi
7209
7210
7211
7212
7213
7214
7215
7216  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7217$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7218if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7219  $as_echo_n "(cached) " >&6
7220else
7221  lt_cv_prog_compiler_c_o=no
7222   $RM -r conftest 2>/dev/null
7223   mkdir conftest
7224   cd conftest
7225   mkdir out
7226   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7227
7228   lt_compiler_flag="-o out/conftest2.$ac_objext"
7229   # Insert the option either (1) after the last *FLAGS variable, or
7230   # (2) before a word containing "conftest.", or (3) at the end.
7231   # Note that $ac_compile itself does not contain backslashes and begins
7232   # with a dollar sign (not a hyphen), so the echo should work correctly.
7233   lt_compile=`echo "$ac_compile" | $SED \
7234   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7235   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7236   -e 's:$: $lt_compiler_flag:'`
7237   (eval echo "\"\$as_me:7237: $lt_compile\"" >&5)
7238   (eval "$lt_compile" 2>out/conftest.err)
7239   ac_status=$?
7240   cat out/conftest.err >&5
7241   echo "$as_me:7241: \$? = $ac_status" >&5
7242   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7243   then
7244     # The compiler can only warn and ignore the option if not recognized
7245     # So say no if there are warnings
7246     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7247     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7248     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7249       lt_cv_prog_compiler_c_o=yes
7250     fi
7251   fi
7252   chmod u+w . 2>&5
7253   $RM conftest*
7254   # SGI C++ compiler will create directory out/ii_files/ for
7255   # template instantiation
7256   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7257   $RM out/* && rmdir out
7258   cd ..
7259   $RM -r conftest
7260   $RM conftest*
7261
7262fi
7263{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7264$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7265
7266
7267
7268
7269
7270
7271  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7272$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7273if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7274  $as_echo_n "(cached) " >&6
7275else
7276  lt_cv_prog_compiler_c_o=no
7277   $RM -r conftest 2>/dev/null
7278   mkdir conftest
7279   cd conftest
7280   mkdir out
7281   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7282
7283   lt_compiler_flag="-o out/conftest2.$ac_objext"
7284   # Insert the option either (1) after the last *FLAGS variable, or
7285   # (2) before a word containing "conftest.", or (3) at the end.
7286   # Note that $ac_compile itself does not contain backslashes and begins
7287   # with a dollar sign (not a hyphen), so the echo should work correctly.
7288   lt_compile=`echo "$ac_compile" | $SED \
7289   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7290   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7291   -e 's:$: $lt_compiler_flag:'`
7292   (eval echo "\"\$as_me:7292: $lt_compile\"" >&5)
7293   (eval "$lt_compile" 2>out/conftest.err)
7294   ac_status=$?
7295   cat out/conftest.err >&5
7296   echo "$as_me:7296: \$? = $ac_status" >&5
7297   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7298   then
7299     # The compiler can only warn and ignore the option if not recognized
7300     # So say no if there are warnings
7301     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7302     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7303     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7304       lt_cv_prog_compiler_c_o=yes
7305     fi
7306   fi
7307   chmod u+w . 2>&5
7308   $RM conftest*
7309   # SGI C++ compiler will create directory out/ii_files/ for
7310   # template instantiation
7311   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7312   $RM out/* && rmdir out
7313   cd ..
7314   $RM -r conftest
7315   $RM conftest*
7316
7317fi
7318{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7319$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7320
7321
7322
7323
7324hard_links="nottested"
7325if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7326  # do not overwrite the value of need_locks provided by the user
7327  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7328$as_echo_n "checking if we can lock with hard links... " >&6; }
7329  hard_links=yes
7330  $RM conftest*
7331  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7332  touch conftest.a
7333  ln conftest.a conftest.b 2>&5 || hard_links=no
7334  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7335  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7336$as_echo "$hard_links" >&6; }
7337  if test "$hard_links" = no; then
7338    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7339$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7340    need_locks=warn
7341  fi
7342else
7343  need_locks=no
7344fi
7345
7346
7347
7348
7349
7350
7351  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7352$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7353
7354  runpath_var=
7355  allow_undefined_flag=
7356  always_export_symbols=no
7357  archive_cmds=
7358  archive_expsym_cmds=
7359  compiler_needs_object=no
7360  enable_shared_with_static_runtimes=no
7361  export_dynamic_flag_spec=
7362  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7363  hardcode_automatic=no
7364  hardcode_direct=no
7365  hardcode_direct_absolute=no
7366  hardcode_libdir_flag_spec=
7367  hardcode_libdir_flag_spec_ld=
7368  hardcode_libdir_separator=
7369  hardcode_minus_L=no
7370  hardcode_shlibpath_var=unsupported
7371  inherit_rpath=no
7372  link_all_deplibs=unknown
7373  module_cmds=
7374  module_expsym_cmds=
7375  old_archive_from_new_cmds=
7376  old_archive_from_expsyms_cmds=
7377  thread_safe_flag_spec=
7378  whole_archive_flag_spec=
7379  # include_expsyms should be a list of space-separated symbols to be *always*
7380  # included in the symbol list
7381  include_expsyms=
7382  # exclude_expsyms can be an extended regexp of symbols to exclude
7383  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7384  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7385  # as well as any symbol that contains `d'.
7386  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7387  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7388  # platforms (ab)use it in PIC code, but their linkers get confused if
7389  # the symbol is explicitly referenced.  Since portable code cannot
7390  # rely on this symbol name, it's probably fine to never include it in
7391  # preloaded symbol tables.
7392  # Exclude shared library initialization/finalization symbols.
7393  extract_expsyms_cmds=
7394
7395  case $host_os in
7396  cygwin* | mingw* | pw32* | cegcc*)
7397    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7398    # When not using gcc, we currently assume that we are using
7399    # Microsoft Visual C++.
7400    if test "$GCC" != yes; then
7401      with_gnu_ld=no
7402    fi
7403    ;;
7404  interix*)
7405    # we just hope/assume this is gcc and not c89 (= MSVC++)
7406    with_gnu_ld=yes
7407    ;;
7408  openbsd*)
7409    with_gnu_ld=no
7410    ;;
7411  esac
7412
7413  ld_shlibs=yes
7414  if test "$with_gnu_ld" = yes; then
7415    # If archive_cmds runs LD, not CC, wlarc should be empty
7416    wlarc='${wl}'
7417
7418    # Set some defaults for GNU ld with shared library support. These
7419    # are reset later if shared libraries are not supported. Putting them
7420    # here allows them to be overridden if necessary.
7421    runpath_var=LD_RUN_PATH
7422    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7423    export_dynamic_flag_spec='${wl}--export-dynamic'
7424    # ancient GNU ld didn't support --whole-archive et. al.
7425    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7426      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7427    else
7428      whole_archive_flag_spec=
7429    fi
7430    supports_anon_versioning=no
7431    case `$LD -v 2>&1` in
7432      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7433      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7434      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7435      *\ 2.11.*) ;; # other 2.11 versions
7436      *) supports_anon_versioning=yes ;;
7437    esac
7438
7439    # See if GNU ld supports shared libraries.
7440    case $host_os in
7441    aix[3-9]*)
7442      # On AIX/PPC, the GNU linker is very broken
7443      if test "$host_cpu" != ia64; then
7444	ld_shlibs=no
7445	cat <<_LT_EOF 1>&2
7446
7447*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7448*** to be unable to reliably create shared libraries on AIX.
7449*** Therefore, libtool is disabling shared libraries support.  If you
7450*** really care for shared libraries, you may want to modify your PATH
7451*** so that a non-GNU linker is found, and then restart.
7452
7453_LT_EOF
7454      fi
7455      ;;
7456
7457    amigaos*)
7458      case $host_cpu in
7459      powerpc)
7460            # see comment about AmigaOS4 .so support
7461            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7462            archive_expsym_cmds=''
7463        ;;
7464      m68k)
7465            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)'
7466            hardcode_libdir_flag_spec='-L$libdir'
7467            hardcode_minus_L=yes
7468        ;;
7469      esac
7470      ;;
7471
7472    beos*)
7473      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7474	allow_undefined_flag=unsupported
7475	# Joseph Beckenbach <[email protected]> says some releases of gcc
7476	# support --undefined.  This deserves some investigation.  FIXME
7477	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7478      else
7479	ld_shlibs=no
7480      fi
7481      ;;
7482
7483    cygwin* | mingw* | pw32* | cegcc*)
7484      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7485      # as there is no search path for DLLs.
7486      hardcode_libdir_flag_spec='-L$libdir'
7487      allow_undefined_flag=unsupported
7488      always_export_symbols=no
7489      enable_shared_with_static_runtimes=yes
7490      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7491
7492      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7493        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7494	# If the export-symbols file already is a .def file (1st line
7495	# is EXPORTS), use it as is; otherwise, prepend...
7496	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7497	  cp $export_symbols $output_objdir/$soname.def;
7498	else
7499	  echo EXPORTS > $output_objdir/$soname.def;
7500	  cat $export_symbols >> $output_objdir/$soname.def;
7501	fi~
7502	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7503      else
7504	ld_shlibs=no
7505      fi
7506      ;;
7507
7508    interix[3-9]*)
7509      hardcode_direct=no
7510      hardcode_shlibpath_var=no
7511      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7512      export_dynamic_flag_spec='${wl}-E'
7513      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7514      # Instead, shared libraries are loaded at an image base (0x10000000 by
7515      # default) and relocated if they conflict, which is a slow very memory
7516      # consuming and fragmenting process.  To avoid this, we pick a random,
7517      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7518      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7519      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7520      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'
7521      ;;
7522
7523    gnu* | linux* | tpf* | k*bsd*-gnu)
7524      tmp_diet=no
7525      if test "$host_os" = linux-dietlibc; then
7526	case $cc_basename in
7527	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7528	esac
7529      fi
7530      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7531	 && test "$tmp_diet" = no
7532      then
7533	tmp_addflag=
7534	tmp_sharedflag='-shared'
7535	case $cc_basename,$host_cpu in
7536        pgcc*)				# Portland Group C compiler
7537	  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'
7538	  tmp_addflag=' $pic_flag'
7539	  ;;
7540	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7541	  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'
7542	  tmp_addflag=' $pic_flag -Mnomain' ;;
7543	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7544	  tmp_addflag=' -i_dynamic' ;;
7545	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7546	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7547	ifc* | ifort*)			# Intel Fortran compiler
7548	  tmp_addflag=' -nofor_main' ;;
7549	lf95*)				# Lahey Fortran 8.1
7550	  whole_archive_flag_spec=
7551	  tmp_sharedflag='--shared' ;;
7552	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7553	  tmp_sharedflag='-qmkshrobj'
7554	  tmp_addflag= ;;
7555	esac
7556	case `$CC -V 2>&1 | sed 5q` in
7557	*Sun\ C*)			# Sun C 5.9
7558	  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'
7559	  compiler_needs_object=yes
7560	  tmp_sharedflag='-G' ;;
7561	*Sun\ F*)			# Sun Fortran 8.3
7562	  tmp_sharedflag='-G' ;;
7563	esac
7564	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7565
7566        if test "x$supports_anon_versioning" = xyes; then
7567          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7568	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7569	    echo "local: *; };" >> $output_objdir/$libname.ver~
7570	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7571        fi
7572
7573	case $cc_basename in
7574	xlf*)
7575	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7576	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7577	  hardcode_libdir_flag_spec=
7578	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7579	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7580	  if test "x$supports_anon_versioning" = xyes; then
7581	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7582	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7583	      echo "local: *; };" >> $output_objdir/$libname.ver~
7584	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7585	  fi
7586	  ;;
7587	esac
7588      else
7589        ld_shlibs=no
7590      fi
7591      ;;
7592
7593    netbsd*)
7594      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7595	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7596	wlarc=
7597      else
7598	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7599	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7600      fi
7601      ;;
7602
7603    solaris*)
7604      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7605	ld_shlibs=no
7606	cat <<_LT_EOF 1>&2
7607
7608*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7609*** create shared libraries on Solaris systems.  Therefore, libtool
7610*** is disabling shared libraries support.  We urge you to upgrade GNU
7611*** binutils to release 2.9.1 or newer.  Another option is to modify
7612*** your PATH or compiler configuration so that the native linker is
7613*** used, and then restart.
7614
7615_LT_EOF
7616      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7617	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7618	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7619      else
7620	ld_shlibs=no
7621      fi
7622      ;;
7623
7624    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7625      case `$LD -v 2>&1` in
7626        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7627	ld_shlibs=no
7628	cat <<_LT_EOF 1>&2
7629
7630*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7631*** reliably create shared libraries on SCO systems.  Therefore, libtool
7632*** is disabling shared libraries support.  We urge you to upgrade GNU
7633*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7634*** your PATH or compiler configuration so that the native linker is
7635*** used, and then restart.
7636
7637_LT_EOF
7638	;;
7639	*)
7640	  # For security reasons, it is highly recommended that you always
7641	  # use absolute paths for naming shared libraries, and exclude the
7642	  # DT_RUNPATH tag from executables and libraries.  But doing so
7643	  # requires that you compile everything twice, which is a pain.
7644	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7645	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7646	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7647	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7648	  else
7649	    ld_shlibs=no
7650	  fi
7651	;;
7652      esac
7653      ;;
7654
7655    sunos4*)
7656      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7657      wlarc=
7658      hardcode_direct=yes
7659      hardcode_shlibpath_var=no
7660      ;;
7661
7662    *)
7663      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7664	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7665	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7666      else
7667	ld_shlibs=no
7668      fi
7669      ;;
7670    esac
7671
7672    if test "$ld_shlibs" = no; then
7673      runpath_var=
7674      hardcode_libdir_flag_spec=
7675      export_dynamic_flag_spec=
7676      whole_archive_flag_spec=
7677    fi
7678  else
7679    # PORTME fill in a description of your system's linker (not GNU ld)
7680    case $host_os in
7681    aix3*)
7682      allow_undefined_flag=unsupported
7683      always_export_symbols=yes
7684      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'
7685      # Note: this linker hardcodes the directories in LIBPATH if there
7686      # are no directories specified by -L.
7687      hardcode_minus_L=yes
7688      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7689	# Neither direct hardcoding nor static linking is supported with a
7690	# broken collect2.
7691	hardcode_direct=unsupported
7692      fi
7693      ;;
7694
7695    aix[4-9]*)
7696      if test "$host_cpu" = ia64; then
7697	# On IA64, the linker does run time linking by default, so we don't
7698	# have to do anything special.
7699	aix_use_runtimelinking=no
7700	exp_sym_flag='-Bexport'
7701	no_entry_flag=""
7702      else
7703	# If we're using GNU nm, then we don't want the "-C" option.
7704	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7705	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7706	  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'
7707	else
7708	  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'
7709	fi
7710	aix_use_runtimelinking=no
7711
7712	# Test if we are trying to use run time linking or normal
7713	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7714	# need to do runtime linking.
7715	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7716	  for ld_flag in $LDFLAGS; do
7717	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7718	    aix_use_runtimelinking=yes
7719	    break
7720	  fi
7721	  done
7722	  ;;
7723	esac
7724
7725	exp_sym_flag='-bexport'
7726	no_entry_flag='-bnoentry'
7727      fi
7728
7729      # When large executables or shared objects are built, AIX ld can
7730      # have problems creating the table of contents.  If linking a library
7731      # or program results in "error TOC overflow" add -mminimal-toc to
7732      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7733      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7734
7735      archive_cmds=''
7736      hardcode_direct=yes
7737      hardcode_direct_absolute=yes
7738      hardcode_libdir_separator=':'
7739      link_all_deplibs=yes
7740      file_list_spec='${wl}-f,'
7741
7742      if test "$GCC" = yes; then
7743	case $host_os in aix4.[012]|aix4.[012].*)
7744	# We only want to do this on AIX 4.2 and lower, the check
7745	# below for broken collect2 doesn't work under 4.3+
7746	  collect2name=`${CC} -print-prog-name=collect2`
7747	  if test -f "$collect2name" &&
7748	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7749	  then
7750	  # We have reworked collect2
7751	  :
7752	  else
7753	  # We have old collect2
7754	  hardcode_direct=unsupported
7755	  # It fails to find uninstalled libraries when the uninstalled
7756	  # path is not listed in the libpath.  Setting hardcode_minus_L
7757	  # to unsupported forces relinking
7758	  hardcode_minus_L=yes
7759	  hardcode_libdir_flag_spec='-L$libdir'
7760	  hardcode_libdir_separator=
7761	  fi
7762	  ;;
7763	esac
7764	shared_flag='-shared'
7765	if test "$aix_use_runtimelinking" = yes; then
7766	  shared_flag="$shared_flag "'${wl}-G'
7767	fi
7768      else
7769	# not using gcc
7770	if test "$host_cpu" = ia64; then
7771	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7772	# chokes on -Wl,-G. The following line is correct:
7773	  shared_flag='-G'
7774	else
7775	  if test "$aix_use_runtimelinking" = yes; then
7776	    shared_flag='${wl}-G'
7777	  else
7778	    shared_flag='${wl}-bM:SRE'
7779	  fi
7780	fi
7781      fi
7782
7783      export_dynamic_flag_spec='${wl}-bexpall'
7784      # It seems that -bexpall does not export symbols beginning with
7785      # underscore (_), so it is better to generate a list of symbols to export.
7786      always_export_symbols=yes
7787      if test "$aix_use_runtimelinking" = yes; then
7788	# Warning - without using the other runtime loading flags (-brtl),
7789	# -berok will link without error, but may produce a broken library.
7790	allow_undefined_flag='-berok'
7791        # Determine the default libpath from the value encoded in an
7792        # empty executable.
7793        cat >conftest.$ac_ext <<_ACEOF
7794/* confdefs.h.  */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h.  */
7799
7800int
7801main ()
7802{
7803
7804  ;
7805  return 0;
7806}
7807_ACEOF
7808rm -f conftest.$ac_objext conftest$ac_exeext
7809if { (ac_try="$ac_link"
7810case "(($ac_try" in
7811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812  *) ac_try_echo=$ac_try;;
7813esac
7814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7815$as_echo "$ac_try_echo") >&5
7816  (eval "$ac_link") 2>conftest.er1
7817  ac_status=$?
7818  grep -v '^ *+' conftest.er1 >conftest.err
7819  rm -f conftest.er1
7820  cat conftest.err >&5
7821  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822  (exit $ac_status); } && {
7823	 test -z "$ac_c_werror_flag" ||
7824	 test ! -s conftest.err
7825       } && test -s conftest$ac_exeext && {
7826	 test "$cross_compiling" = yes ||
7827	 $as_test_x conftest$ac_exeext
7828       }; then
7829
7830lt_aix_libpath_sed='
7831    /Import File Strings/,/^$/ {
7832	/^0/ {
7833	    s/^0  *\(.*\)$/\1/
7834	    p
7835	}
7836    }'
7837aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7838# Check for a 64-bit object if we didn't find anything.
7839if test -z "$aix_libpath"; then
7840  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7841fi
7842else
7843  $as_echo "$as_me: failed program was:" >&5
7844sed 's/^/| /' conftest.$ac_ext >&5
7845
7846
7847fi
7848
7849rm -rf conftest.dSYM
7850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7851      conftest$ac_exeext conftest.$ac_ext
7852if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7853
7854        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7855        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"
7856      else
7857	if test "$host_cpu" = ia64; then
7858	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7859	  allow_undefined_flag="-z nodefs"
7860	  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"
7861	else
7862	 # Determine the default libpath from the value encoded in an
7863	 # empty executable.
7864	 cat >conftest.$ac_ext <<_ACEOF
7865/* confdefs.h.  */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h.  */
7870
7871int
7872main ()
7873{
7874
7875  ;
7876  return 0;
7877}
7878_ACEOF
7879rm -f conftest.$ac_objext conftest$ac_exeext
7880if { (ac_try="$ac_link"
7881case "(($ac_try" in
7882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883  *) ac_try_echo=$ac_try;;
7884esac
7885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7886$as_echo "$ac_try_echo") >&5
7887  (eval "$ac_link") 2>conftest.er1
7888  ac_status=$?
7889  grep -v '^ *+' conftest.er1 >conftest.err
7890  rm -f conftest.er1
7891  cat conftest.err >&5
7892  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893  (exit $ac_status); } && {
7894	 test -z "$ac_c_werror_flag" ||
7895	 test ! -s conftest.err
7896       } && test -s conftest$ac_exeext && {
7897	 test "$cross_compiling" = yes ||
7898	 $as_test_x conftest$ac_exeext
7899       }; then
7900
7901lt_aix_libpath_sed='
7902    /Import File Strings/,/^$/ {
7903	/^0/ {
7904	    s/^0  *\(.*\)$/\1/
7905	    p
7906	}
7907    }'
7908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7909# Check for a 64-bit object if we didn't find anything.
7910if test -z "$aix_libpath"; then
7911  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7912fi
7913else
7914  $as_echo "$as_me: failed program was:" >&5
7915sed 's/^/| /' conftest.$ac_ext >&5
7916
7917
7918fi
7919
7920rm -rf conftest.dSYM
7921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7922      conftest$ac_exeext conftest.$ac_ext
7923if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7924
7925	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7926	  # Warning - without using the other run time loading flags,
7927	  # -berok will link without error, but may produce a broken library.
7928	  no_undefined_flag=' ${wl}-bernotok'
7929	  allow_undefined_flag=' ${wl}-berok'
7930	  # Exported symbols can be pulled into shared objects from archives
7931	  whole_archive_flag_spec='$convenience'
7932	  archive_cmds_need_lc=yes
7933	  # This is similar to how AIX traditionally builds its shared libraries.
7934	  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'
7935	fi
7936      fi
7937      ;;
7938
7939    amigaos*)
7940      case $host_cpu in
7941      powerpc)
7942            # see comment about AmigaOS4 .so support
7943            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7944            archive_expsym_cmds=''
7945        ;;
7946      m68k)
7947            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)'
7948            hardcode_libdir_flag_spec='-L$libdir'
7949            hardcode_minus_L=yes
7950        ;;
7951      esac
7952      ;;
7953
7954    bsdi[45]*)
7955      export_dynamic_flag_spec=-rdynamic
7956      ;;
7957
7958    cygwin* | mingw* | pw32* | cegcc*)
7959      # When not using gcc, we currently assume that we are using
7960      # Microsoft Visual C++.
7961      # hardcode_libdir_flag_spec is actually meaningless, as there is
7962      # no search path for DLLs.
7963      hardcode_libdir_flag_spec=' '
7964      allow_undefined_flag=unsupported
7965      # Tell ltmain to make .lib files, not .a files.
7966      libext=lib
7967      # Tell ltmain to make .dll files, not .so files.
7968      shrext_cmds=".dll"
7969      # FIXME: Setting linknames here is a bad hack.
7970      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7971      # The linker will automatically build a .lib file if we build a DLL.
7972      old_archive_from_new_cmds='true'
7973      # FIXME: Should let the user specify the lib program.
7974      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7975      fix_srcfile_path='`cygpath -w "$srcfile"`'
7976      enable_shared_with_static_runtimes=yes
7977      ;;
7978
7979    darwin* | rhapsody*)
7980
7981
7982  archive_cmds_need_lc=no
7983  hardcode_direct=no
7984  hardcode_automatic=yes
7985  hardcode_shlibpath_var=unsupported
7986  whole_archive_flag_spec=''
7987  link_all_deplibs=yes
7988  allow_undefined_flag="$_lt_dar_allow_undefined"
7989  case $cc_basename in
7990     ifort*) _lt_dar_can_shared=yes ;;
7991     *) _lt_dar_can_shared=$GCC ;;
7992  esac
7993  if test "$_lt_dar_can_shared" = "yes"; then
7994    output_verbose_link_cmd=echo
7995    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7996    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7997    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}"
7998    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}"
7999
8000  else
8001  ld_shlibs=no
8002  fi
8003
8004      ;;
8005
8006    dgux*)
8007      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8008      hardcode_libdir_flag_spec='-L$libdir'
8009      hardcode_shlibpath_var=no
8010      ;;
8011
8012    freebsd1*)
8013      ld_shlibs=no
8014      ;;
8015
8016    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8017    # support.  Future versions do this automatically, but an explicit c++rt0.o
8018    # does not break anything, and helps significantly (at the cost of a little
8019    # extra space).
8020    freebsd2.2*)
8021      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8022      hardcode_libdir_flag_spec='-R$libdir'
8023      hardcode_direct=yes
8024      hardcode_shlibpath_var=no
8025      ;;
8026
8027    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8028    freebsd2*)
8029      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8030      hardcode_direct=yes
8031      hardcode_minus_L=yes
8032      hardcode_shlibpath_var=no
8033      ;;
8034
8035    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8036    freebsd* | dragonfly*)
8037      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8038      hardcode_libdir_flag_spec='-R$libdir'
8039      hardcode_direct=yes
8040      hardcode_shlibpath_var=no
8041      ;;
8042
8043    hpux9*)
8044      if test "$GCC" = yes; then
8045	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'
8046      else
8047	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'
8048      fi
8049      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8050      hardcode_libdir_separator=:
8051      hardcode_direct=yes
8052
8053      # hardcode_minus_L: Not really in the search PATH,
8054      # but as the default location of the library.
8055      hardcode_minus_L=yes
8056      export_dynamic_flag_spec='${wl}-E'
8057      ;;
8058
8059    hpux10*)
8060      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8061	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8062      else
8063	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8064      fi
8065      if test "$with_gnu_ld" = no; then
8066	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8067	hardcode_libdir_flag_spec_ld='+b $libdir'
8068	hardcode_libdir_separator=:
8069	hardcode_direct=yes
8070	hardcode_direct_absolute=yes
8071	export_dynamic_flag_spec='${wl}-E'
8072	# hardcode_minus_L: Not really in the search PATH,
8073	# but as the default location of the library.
8074	hardcode_minus_L=yes
8075      fi
8076      ;;
8077
8078    hpux11*)
8079      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8080	case $host_cpu in
8081	hppa*64*)
8082	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8083	  ;;
8084	ia64*)
8085	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8086	  ;;
8087	*)
8088	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8089	  ;;
8090	esac
8091      else
8092	case $host_cpu in
8093	hppa*64*)
8094	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8095	  ;;
8096	ia64*)
8097	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8098	  ;;
8099	*)
8100	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8101	  ;;
8102	esac
8103      fi
8104      if test "$with_gnu_ld" = no; then
8105	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8106	hardcode_libdir_separator=:
8107
8108	case $host_cpu in
8109	hppa*64*|ia64*)
8110	  hardcode_direct=no
8111	  hardcode_shlibpath_var=no
8112	  ;;
8113	*)
8114	  hardcode_direct=yes
8115	  hardcode_direct_absolute=yes
8116	  export_dynamic_flag_spec='${wl}-E'
8117
8118	  # hardcode_minus_L: Not really in the search PATH,
8119	  # but as the default location of the library.
8120	  hardcode_minus_L=yes
8121	  ;;
8122	esac
8123      fi
8124      ;;
8125
8126    irix5* | irix6* | nonstopux*)
8127      if test "$GCC" = yes; then
8128	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'
8129	# Try to use the -exported_symbol ld option, if it does not
8130	# work, assume that -exports_file does not work either and
8131	# implicitly export all symbols.
8132        save_LDFLAGS="$LDFLAGS"
8133        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8134        cat >conftest.$ac_ext <<_ACEOF
8135int foo(void) {}
8136_ACEOF
8137rm -f conftest.$ac_objext conftest$ac_exeext
8138if { (ac_try="$ac_link"
8139case "(($ac_try" in
8140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141  *) ac_try_echo=$ac_try;;
8142esac
8143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8144$as_echo "$ac_try_echo") >&5
8145  (eval "$ac_link") 2>conftest.er1
8146  ac_status=$?
8147  grep -v '^ *+' conftest.er1 >conftest.err
8148  rm -f conftest.er1
8149  cat conftest.err >&5
8150  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151  (exit $ac_status); } && {
8152	 test -z "$ac_c_werror_flag" ||
8153	 test ! -s conftest.err
8154       } && test -s conftest$ac_exeext && {
8155	 test "$cross_compiling" = yes ||
8156	 $as_test_x conftest$ac_exeext
8157       }; then
8158  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'
8159
8160else
8161  $as_echo "$as_me: failed program was:" >&5
8162sed 's/^/| /' conftest.$ac_ext >&5
8163
8164
8165fi
8166
8167rm -rf conftest.dSYM
8168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8169      conftest$ac_exeext conftest.$ac_ext
8170        LDFLAGS="$save_LDFLAGS"
8171      else
8172	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'
8173	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'
8174      fi
8175      archive_cmds_need_lc='no'
8176      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8177      hardcode_libdir_separator=:
8178      inherit_rpath=yes
8179      link_all_deplibs=yes
8180      ;;
8181
8182    netbsd*)
8183      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8184	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8185      else
8186	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8187      fi
8188      hardcode_libdir_flag_spec='-R$libdir'
8189      hardcode_direct=yes
8190      hardcode_shlibpath_var=no
8191      ;;
8192
8193    newsos6)
8194      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8195      hardcode_direct=yes
8196      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8197      hardcode_libdir_separator=:
8198      hardcode_shlibpath_var=no
8199      ;;
8200
8201    *nto* | *qnx*)
8202      ;;
8203
8204    openbsd*)
8205      if test -f /usr/libexec/ld.so; then
8206	hardcode_direct=yes
8207	hardcode_shlibpath_var=no
8208	hardcode_direct_absolute=yes
8209	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8210	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8211	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8212	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8213	  export_dynamic_flag_spec='${wl}-E'
8214	else
8215	  case $host_os in
8216	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8217	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8218	     hardcode_libdir_flag_spec='-R$libdir'
8219	     ;;
8220	   *)
8221	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8222	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8223	     ;;
8224	  esac
8225	fi
8226      else
8227	ld_shlibs=no
8228      fi
8229      ;;
8230
8231    os2*)
8232      hardcode_libdir_flag_spec='-L$libdir'
8233      hardcode_minus_L=yes
8234      allow_undefined_flag=unsupported
8235      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'
8236      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8237      ;;
8238
8239    osf3*)
8240      if test "$GCC" = yes; then
8241	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8242	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'
8243      else
8244	allow_undefined_flag=' -expect_unresolved \*'
8245	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'
8246      fi
8247      archive_cmds_need_lc='no'
8248      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8249      hardcode_libdir_separator=:
8250      ;;
8251
8252    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8253      if test "$GCC" = yes; then
8254	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8255	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'
8256	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8257      else
8258	allow_undefined_flag=' -expect_unresolved \*'
8259	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'
8260	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~
8261	$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'
8262
8263	# Both c and cxx compiler support -rpath directly
8264	hardcode_libdir_flag_spec='-rpath $libdir'
8265      fi
8266      archive_cmds_need_lc='no'
8267      hardcode_libdir_separator=:
8268      ;;
8269
8270    solaris*)
8271      no_undefined_flag=' -z defs'
8272      if test "$GCC" = yes; then
8273	wlarc='${wl}'
8274	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8275	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8276	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8277      else
8278	case `$CC -V 2>&1` in
8279	*"Compilers 5.0"*)
8280	  wlarc=''
8281	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8282	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8283	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8284	  ;;
8285	*)
8286	  wlarc='${wl}'
8287	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8288	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8289	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8290	  ;;
8291	esac
8292      fi
8293      hardcode_libdir_flag_spec='-R$libdir'
8294      hardcode_shlibpath_var=no
8295      case $host_os in
8296      solaris2.[0-5] | solaris2.[0-5].*) ;;
8297      *)
8298	# The compiler driver will combine and reorder linker options,
8299	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8300	# but is careful enough not to reorder.
8301	# Supported since Solaris 2.6 (maybe 2.5.1?)
8302	if test "$GCC" = yes; then
8303	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8304	else
8305	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8306	fi
8307	;;
8308      esac
8309      link_all_deplibs=yes
8310      ;;
8311
8312    sunos4*)
8313      if test "x$host_vendor" = xsequent; then
8314	# Use $CC to link under sequent, because it throws in some extra .o
8315	# files that make .init and .fini sections work.
8316	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8317      else
8318	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8319      fi
8320      hardcode_libdir_flag_spec='-L$libdir'
8321      hardcode_direct=yes
8322      hardcode_minus_L=yes
8323      hardcode_shlibpath_var=no
8324      ;;
8325
8326    sysv4)
8327      case $host_vendor in
8328	sni)
8329	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8330	  hardcode_direct=yes # is this really true???
8331	;;
8332	siemens)
8333	  ## LD is ld it makes a PLAMLIB
8334	  ## CC just makes a GrossModule.
8335	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8336	  reload_cmds='$CC -r -o $output$reload_objs'
8337	  hardcode_direct=no
8338        ;;
8339	motorola)
8340	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8341	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8342	;;
8343      esac
8344      runpath_var='LD_RUN_PATH'
8345      hardcode_shlibpath_var=no
8346      ;;
8347
8348    sysv4.3*)
8349      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8350      hardcode_shlibpath_var=no
8351      export_dynamic_flag_spec='-Bexport'
8352      ;;
8353
8354    sysv4*MP*)
8355      if test -d /usr/nec; then
8356	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357	hardcode_shlibpath_var=no
8358	runpath_var=LD_RUN_PATH
8359	hardcode_runpath_var=yes
8360	ld_shlibs=yes
8361      fi
8362      ;;
8363
8364    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8365      no_undefined_flag='${wl}-z,text'
8366      archive_cmds_need_lc=no
8367      hardcode_shlibpath_var=no
8368      runpath_var='LD_RUN_PATH'
8369
8370      if test "$GCC" = yes; then
8371	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8372	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8373      else
8374	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8375	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8376      fi
8377      ;;
8378
8379    sysv5* | sco3.2v5* | sco5v6*)
8380      # Note: We can NOT use -z defs as we might desire, because we do not
8381      # link with -lc, and that would cause any symbols used from libc to
8382      # always be unresolved, which means just about no library would
8383      # ever link correctly.  If we're not using GNU ld we use -z text
8384      # though, which does catch some bad symbols but isn't as heavy-handed
8385      # as -z defs.
8386      no_undefined_flag='${wl}-z,text'
8387      allow_undefined_flag='${wl}-z,nodefs'
8388      archive_cmds_need_lc=no
8389      hardcode_shlibpath_var=no
8390      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8391      hardcode_libdir_separator=':'
8392      link_all_deplibs=yes
8393      export_dynamic_flag_spec='${wl}-Bexport'
8394      runpath_var='LD_RUN_PATH'
8395
8396      if test "$GCC" = yes; then
8397	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8399      else
8400	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8402      fi
8403      ;;
8404
8405    uts4*)
8406      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407      hardcode_libdir_flag_spec='-L$libdir'
8408      hardcode_shlibpath_var=no
8409      ;;
8410
8411    *)
8412      ld_shlibs=no
8413      ;;
8414    esac
8415
8416    if test x$host_vendor = xsni; then
8417      case $host in
8418      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8419	export_dynamic_flag_spec='${wl}-Blargedynsym'
8420	;;
8421      esac
8422    fi
8423  fi
8424
8425{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8426$as_echo "$ld_shlibs" >&6; }
8427test "$ld_shlibs" = no && can_build_shared=no
8428
8429with_gnu_ld=$with_gnu_ld
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445#
8446# Do we need to explicitly link libc?
8447#
8448case "x$archive_cmds_need_lc" in
8449x|xyes)
8450  # Assume -lc should be added
8451  archive_cmds_need_lc=yes
8452
8453  if test "$enable_shared" = yes && test "$GCC" = yes; then
8454    case $archive_cmds in
8455    *'~'*)
8456      # FIXME: we may have to deal with multi-command sequences.
8457      ;;
8458    '$CC '*)
8459      # Test whether the compiler implicitly links with -lc since on some
8460      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8461      # to ld, don't add -lc before -lgcc.
8462      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8463$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8464      $RM conftest*
8465      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8466
8467      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468  (eval $ac_compile) 2>&5
8469  ac_status=$?
8470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471  (exit $ac_status); } 2>conftest.err; then
8472        soname=conftest
8473        lib=conftest
8474        libobjs=conftest.$ac_objext
8475        deplibs=
8476        wl=$lt_prog_compiler_wl
8477	pic_flag=$lt_prog_compiler_pic
8478        compiler_flags=-v
8479        linker_flags=-v
8480        verstring=
8481        output_objdir=.
8482        libname=conftest
8483        lt_save_allow_undefined_flag=$allow_undefined_flag
8484        allow_undefined_flag=
8485        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8486  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8487  ac_status=$?
8488  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489  (exit $ac_status); }
8490        then
8491	  archive_cmds_need_lc=no
8492        else
8493	  archive_cmds_need_lc=yes
8494        fi
8495        allow_undefined_flag=$lt_save_allow_undefined_flag
8496      else
8497        cat conftest.err 1>&5
8498      fi
8499      $RM conftest*
8500      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8501$as_echo "$archive_cmds_need_lc" >&6; }
8502      ;;
8503    esac
8504  fi
8505  ;;
8506esac
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8665$as_echo_n "checking dynamic linker characteristics... " >&6; }
8666
8667if test "$GCC" = yes; then
8668  case $host_os in
8669    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8670    *) lt_awk_arg="/^libraries:/" ;;
8671  esac
8672  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8673  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8674    # if the path contains ";" then we assume it to be the separator
8675    # otherwise default to the standard path separator (i.e. ":") - it is
8676    # assumed that no part of a normal pathname contains ";" but that should
8677    # okay in the real world where ";" in dirpaths is itself problematic.
8678    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8679  else
8680    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8681  fi
8682  # Ok, now we have the path, separated by spaces, we can step through it
8683  # and add multilib dir if necessary.
8684  lt_tmp_lt_search_path_spec=
8685  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8686  for lt_sys_path in $lt_search_path_spec; do
8687    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8688      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8689    else
8690      test -d "$lt_sys_path" && \
8691	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8692    fi
8693  done
8694  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8695BEGIN {RS=" "; FS="/|\n";} {
8696  lt_foo="";
8697  lt_count=0;
8698  for (lt_i = NF; lt_i > 0; lt_i--) {
8699    if ($lt_i != "" && $lt_i != ".") {
8700      if ($lt_i == "..") {
8701        lt_count++;
8702      } else {
8703        if (lt_count == 0) {
8704          lt_foo="/" $lt_i lt_foo;
8705        } else {
8706          lt_count--;
8707        }
8708      }
8709    }
8710  }
8711  if (lt_foo != "") { lt_freq[lt_foo]++; }
8712  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8713}'`
8714  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8715else
8716  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8717fi
8718library_names_spec=
8719libname_spec='lib$name'
8720soname_spec=
8721shrext_cmds=".so"
8722postinstall_cmds=
8723postuninstall_cmds=
8724finish_cmds=
8725finish_eval=
8726shlibpath_var=
8727shlibpath_overrides_runpath=unknown
8728version_type=none
8729dynamic_linker="$host_os ld.so"
8730sys_lib_dlsearch_path_spec="/lib /usr/lib"
8731need_lib_prefix=unknown
8732hardcode_into_libs=no
8733
8734# when you set need_version to no, make sure it does not cause -set_version
8735# flags to be left without arguments
8736need_version=unknown
8737
8738case $host_os in
8739aix3*)
8740  version_type=linux
8741  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8742  shlibpath_var=LIBPATH
8743
8744  # AIX 3 has no versioning support, so we append a major version to the name.
8745  soname_spec='${libname}${release}${shared_ext}$major'
8746  ;;
8747
8748aix[4-9]*)
8749  version_type=linux
8750  need_lib_prefix=no
8751  need_version=no
8752  hardcode_into_libs=yes
8753  if test "$host_cpu" = ia64; then
8754    # AIX 5 supports IA64
8755    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8756    shlibpath_var=LD_LIBRARY_PATH
8757  else
8758    # With GCC up to 2.95.x, collect2 would create an import file
8759    # for dependence libraries.  The import file would start with
8760    # the line `#! .'.  This would cause the generated library to
8761    # depend on `.', always an invalid library.  This was fixed in
8762    # development snapshots of GCC prior to 3.0.
8763    case $host_os in
8764      aix4 | aix4.[01] | aix4.[01].*)
8765      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8766	   echo ' yes '
8767	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8768	:
8769      else
8770	can_build_shared=no
8771      fi
8772      ;;
8773    esac
8774    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8775    # soname into executable. Probably we can add versioning support to
8776    # collect2, so additional links can be useful in future.
8777    if test "$aix_use_runtimelinking" = yes; then
8778      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8779      # instead of lib<name>.a to let people know that these are not
8780      # typical AIX shared libraries.
8781      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8782    else
8783      # We preserve .a as extension for shared libraries through AIX4.2
8784      # and later when we are not doing run time linking.
8785      library_names_spec='${libname}${release}.a $libname.a'
8786      soname_spec='${libname}${release}${shared_ext}$major'
8787    fi
8788    shlibpath_var=LIBPATH
8789  fi
8790  ;;
8791
8792amigaos*)
8793  case $host_cpu in
8794  powerpc)
8795    # Since July 2007 AmigaOS4 officially supports .so libraries.
8796    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8797    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8798    ;;
8799  m68k)
8800    library_names_spec='$libname.ixlibrary $libname.a'
8801    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8802    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'
8803    ;;
8804  esac
8805  ;;
8806
8807beos*)
8808  library_names_spec='${libname}${shared_ext}'
8809  dynamic_linker="$host_os ld.so"
8810  shlibpath_var=LIBRARY_PATH
8811  ;;
8812
8813bsdi[45]*)
8814  version_type=linux
8815  need_version=no
8816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817  soname_spec='${libname}${release}${shared_ext}$major'
8818  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8819  shlibpath_var=LD_LIBRARY_PATH
8820  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8821  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8822  # the default ld.so.conf also contains /usr/contrib/lib and
8823  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8824  # libtool to hard-code these into programs
8825  ;;
8826
8827cygwin* | mingw* | pw32* | cegcc*)
8828  version_type=windows
8829  shrext_cmds=".dll"
8830  need_version=no
8831  need_lib_prefix=no
8832
8833  case $GCC,$host_os in
8834  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8835    library_names_spec='$libname.dll.a'
8836    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8837    postinstall_cmds='base_file=`basename \${file}`~
8838      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8839      dldir=$destdir/`dirname \$dlpath`~
8840      test -d \$dldir || mkdir -p \$dldir~
8841      $install_prog $dir/$dlname \$dldir/$dlname~
8842      chmod a+x \$dldir/$dlname~
8843      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8844        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8845      fi'
8846    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8847      dlpath=$dir/\$dldll~
8848       $RM \$dlpath'
8849    shlibpath_overrides_runpath=yes
8850
8851    case $host_os in
8852    cygwin*)
8853      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8854      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8855      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8856      ;;
8857    mingw* | cegcc*)
8858      # MinGW DLLs use traditional 'lib' prefix
8859      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8860      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8861      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8862        # It is most probably a Windows format PATH printed by
8863        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8864        # path with ; separators, and with drive letters. We can handle the
8865        # drive letters (cygwin fileutils understands them), so leave them,
8866        # especially as we might pass files found there to a mingw objdump,
8867        # which wouldn't understand a cygwinified path. Ahh.
8868        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8869      else
8870        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8871      fi
8872      ;;
8873    pw32*)
8874      # pw32 DLLs use 'pw' prefix rather than 'lib'
8875      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876      ;;
8877    esac
8878    ;;
8879
8880  *)
8881    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8882    ;;
8883  esac
8884  dynamic_linker='Win32 ld.exe'
8885  # FIXME: first we should search . and the directory the executable is in
8886  shlibpath_var=PATH
8887  ;;
8888
8889darwin* | rhapsody*)
8890  dynamic_linker="$host_os dyld"
8891  version_type=darwin
8892  need_lib_prefix=no
8893  need_version=no
8894  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8895  soname_spec='${libname}${release}${major}$shared_ext'
8896  shlibpath_overrides_runpath=yes
8897  shlibpath_var=DYLD_LIBRARY_PATH
8898  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8899
8900  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8901  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8902  ;;
8903
8904dgux*)
8905  version_type=linux
8906  need_lib_prefix=no
8907  need_version=no
8908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8909  soname_spec='${libname}${release}${shared_ext}$major'
8910  shlibpath_var=LD_LIBRARY_PATH
8911  ;;
8912
8913freebsd1*)
8914  dynamic_linker=no
8915  ;;
8916
8917freebsd* | dragonfly*)
8918  # DragonFly does not have aout.  When/if they implement a new
8919  # versioning mechanism, adjust this.
8920  if test -x /usr/bin/objformat; then
8921    objformat=`/usr/bin/objformat`
8922  else
8923    case $host_os in
8924    freebsd[123]*) objformat=aout ;;
8925    *) objformat=elf ;;
8926    esac
8927  fi
8928  # Handle Gentoo/FreeBSD as it was Linux
8929  case $host_vendor in
8930    gentoo)
8931      version_type=linux ;;
8932    *)
8933      version_type=freebsd-$objformat ;;
8934  esac
8935
8936  case $version_type in
8937    freebsd-elf*)
8938      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8939      need_version=no
8940      need_lib_prefix=no
8941      ;;
8942    freebsd-*)
8943      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8944      need_version=yes
8945      ;;
8946    linux)
8947      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8948      soname_spec='${libname}${release}${shared_ext}$major'
8949      need_lib_prefix=no
8950      need_version=no
8951      ;;
8952  esac
8953  shlibpath_var=LD_LIBRARY_PATH
8954  case $host_os in
8955  freebsd2*)
8956    shlibpath_overrides_runpath=yes
8957    ;;
8958  freebsd3.[01]* | freebsdelf3.[01]*)
8959    shlibpath_overrides_runpath=yes
8960    hardcode_into_libs=yes
8961    ;;
8962  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8963  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8964    shlibpath_overrides_runpath=no
8965    hardcode_into_libs=yes
8966    ;;
8967  *) # from 4.6 on, and DragonFly
8968    shlibpath_overrides_runpath=yes
8969    hardcode_into_libs=yes
8970    ;;
8971  esac
8972  ;;
8973
8974gnu*)
8975  version_type=linux
8976  need_lib_prefix=no
8977  need_version=no
8978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8979  soname_spec='${libname}${release}${shared_ext}$major'
8980  shlibpath_var=LD_LIBRARY_PATH
8981  hardcode_into_libs=yes
8982  ;;
8983
8984hpux9* | hpux10* | hpux11*)
8985  # Give a soname corresponding to the major version so that dld.sl refuses to
8986  # link against other versions.
8987  version_type=sunos
8988  need_lib_prefix=no
8989  need_version=no
8990  case $host_cpu in
8991  ia64*)
8992    shrext_cmds='.so'
8993    hardcode_into_libs=yes
8994    dynamic_linker="$host_os dld.so"
8995    shlibpath_var=LD_LIBRARY_PATH
8996    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998    soname_spec='${libname}${release}${shared_ext}$major'
8999    if test "X$HPUX_IA64_MODE" = X32; then
9000      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9001    else
9002      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9003    fi
9004    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9005    ;;
9006  hppa*64*)
9007    shrext_cmds='.sl'
9008    hardcode_into_libs=yes
9009    dynamic_linker="$host_os dld.sl"
9010    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9011    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9012    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013    soname_spec='${libname}${release}${shared_ext}$major'
9014    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9015    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9016    ;;
9017  *)
9018    shrext_cmds='.sl'
9019    dynamic_linker="$host_os dld.sl"
9020    shlibpath_var=SHLIB_PATH
9021    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9022    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023    soname_spec='${libname}${release}${shared_ext}$major'
9024    ;;
9025  esac
9026  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9027  postinstall_cmds='chmod 555 $lib'
9028  ;;
9029
9030interix[3-9]*)
9031  version_type=linux
9032  need_lib_prefix=no
9033  need_version=no
9034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035  soname_spec='${libname}${release}${shared_ext}$major'
9036  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9037  shlibpath_var=LD_LIBRARY_PATH
9038  shlibpath_overrides_runpath=no
9039  hardcode_into_libs=yes
9040  ;;
9041
9042irix5* | irix6* | nonstopux*)
9043  case $host_os in
9044    nonstopux*) version_type=nonstopux ;;
9045    *)
9046	if test "$lt_cv_prog_gnu_ld" = yes; then
9047		version_type=linux
9048	else
9049		version_type=irix
9050	fi ;;
9051  esac
9052  need_lib_prefix=no
9053  need_version=no
9054  soname_spec='${libname}${release}${shared_ext}$major'
9055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9056  case $host_os in
9057  irix5* | nonstopux*)
9058    libsuff= shlibsuff=
9059    ;;
9060  *)
9061    case $LD in # libtool.m4 will add one of these switches to LD
9062    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9063      libsuff= shlibsuff= libmagic=32-bit;;
9064    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9065      libsuff=32 shlibsuff=N32 libmagic=N32;;
9066    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9067      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9068    *) libsuff= shlibsuff= libmagic=never-match;;
9069    esac
9070    ;;
9071  esac
9072  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9073  shlibpath_overrides_runpath=no
9074  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9075  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9076  hardcode_into_libs=yes
9077  ;;
9078
9079# No shared lib support for Linux oldld, aout, or coff.
9080linux*oldld* | linux*aout* | linux*coff*)
9081  dynamic_linker=no
9082  ;;
9083
9084# This must be Linux ELF.
9085linux* | k*bsd*-gnu)
9086  version_type=linux
9087  need_lib_prefix=no
9088  need_version=no
9089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090  soname_spec='${libname}${release}${shared_ext}$major'
9091  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9092  shlibpath_var=LD_LIBRARY_PATH
9093  shlibpath_overrides_runpath=no
9094  # Some binutils ld are patched to set DT_RUNPATH
9095  save_LDFLAGS=$LDFLAGS
9096  save_libdir=$libdir
9097  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9098       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9099  cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h.  */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h.  */
9105
9106int
9107main ()
9108{
9109
9110  ;
9111  return 0;
9112}
9113_ACEOF
9114rm -f conftest.$ac_objext conftest$ac_exeext
9115if { (ac_try="$ac_link"
9116case "(($ac_try" in
9117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118  *) ac_try_echo=$ac_try;;
9119esac
9120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9121$as_echo "$ac_try_echo") >&5
9122  (eval "$ac_link") 2>conftest.er1
9123  ac_status=$?
9124  grep -v '^ *+' conftest.er1 >conftest.err
9125  rm -f conftest.er1
9126  cat conftest.err >&5
9127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128  (exit $ac_status); } && {
9129	 test -z "$ac_c_werror_flag" ||
9130	 test ! -s conftest.err
9131       } && test -s conftest$ac_exeext && {
9132	 test "$cross_compiling" = yes ||
9133	 $as_test_x conftest$ac_exeext
9134       }; then
9135  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9136  shlibpath_overrides_runpath=yes
9137fi
9138
9139else
9140  $as_echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143
9144fi
9145
9146rm -rf conftest.dSYM
9147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9148      conftest$ac_exeext conftest.$ac_ext
9149  LDFLAGS=$save_LDFLAGS
9150  libdir=$save_libdir
9151
9152  # This implies no fast_install, which is unacceptable.
9153  # Some rework will be needed to allow for fast_install
9154  # before this can be enabled.
9155  hardcode_into_libs=yes
9156
9157  # Append ld.so.conf contents to the search path
9158  if test -f /etc/ld.so.conf; then
9159    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' ' '`
9160    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9161  fi
9162
9163  # We used to test for /lib/ld.so.1 and disable shared libraries on
9164  # powerpc, because MkLinux only supported shared libraries with the
9165  # GNU dynamic linker.  Since this was broken with cross compilers,
9166  # most powerpc-linux boxes support dynamic linking these days and
9167  # people can always --disable-shared, the test was removed, and we
9168  # assume the GNU/Linux dynamic linker is in use.
9169  dynamic_linker='GNU/Linux ld.so'
9170  ;;
9171
9172netbsd*)
9173  version_type=sunos
9174  need_lib_prefix=no
9175  need_version=no
9176  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9177    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9178    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9179    dynamic_linker='NetBSD (a.out) ld.so'
9180  else
9181    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9182    soname_spec='${libname}${release}${shared_ext}$major'
9183    dynamic_linker='NetBSD ld.elf_so'
9184  fi
9185  shlibpath_var=LD_LIBRARY_PATH
9186  shlibpath_overrides_runpath=yes
9187  hardcode_into_libs=yes
9188  ;;
9189
9190newsos6)
9191  version_type=linux
9192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193  shlibpath_var=LD_LIBRARY_PATH
9194  shlibpath_overrides_runpath=yes
9195  ;;
9196
9197*nto* | *qnx*)
9198  version_type=qnx
9199  need_lib_prefix=no
9200  need_version=no
9201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202  soname_spec='${libname}${release}${shared_ext}$major'
9203  shlibpath_var=LD_LIBRARY_PATH
9204  shlibpath_overrides_runpath=no
9205  hardcode_into_libs=yes
9206  dynamic_linker='ldqnx.so'
9207  ;;
9208
9209openbsd*)
9210  version_type=sunos
9211  sys_lib_dlsearch_path_spec="/usr/lib"
9212  need_lib_prefix=no
9213  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9214  case $host_os in
9215    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9216    *)				need_version=no  ;;
9217  esac
9218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9219  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9220  shlibpath_var=LD_LIBRARY_PATH
9221  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9222    case $host_os in
9223      openbsd2.[89] | openbsd2.[89].*)
9224	shlibpath_overrides_runpath=no
9225	;;
9226      *)
9227	shlibpath_overrides_runpath=yes
9228	;;
9229      esac
9230  else
9231    shlibpath_overrides_runpath=yes
9232  fi
9233  ;;
9234
9235os2*)
9236  libname_spec='$name'
9237  shrext_cmds=".dll"
9238  need_lib_prefix=no
9239  library_names_spec='$libname${shared_ext} $libname.a'
9240  dynamic_linker='OS/2 ld.exe'
9241  shlibpath_var=LIBPATH
9242  ;;
9243
9244osf3* | osf4* | osf5*)
9245  version_type=osf
9246  need_lib_prefix=no
9247  need_version=no
9248  soname_spec='${libname}${release}${shared_ext}$major'
9249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250  shlibpath_var=LD_LIBRARY_PATH
9251  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9252  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9253  ;;
9254
9255rdos*)
9256  dynamic_linker=no
9257  ;;
9258
9259solaris*)
9260  version_type=linux
9261  need_lib_prefix=no
9262  need_version=no
9263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264  soname_spec='${libname}${release}${shared_ext}$major'
9265  shlibpath_var=LD_LIBRARY_PATH
9266  shlibpath_overrides_runpath=yes
9267  hardcode_into_libs=yes
9268  # ldd complains unless libraries are executable
9269  postinstall_cmds='chmod +x $lib'
9270  ;;
9271
9272sunos4*)
9273  version_type=sunos
9274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9275  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9276  shlibpath_var=LD_LIBRARY_PATH
9277  shlibpath_overrides_runpath=yes
9278  if test "$with_gnu_ld" = yes; then
9279    need_lib_prefix=no
9280  fi
9281  need_version=yes
9282  ;;
9283
9284sysv4 | sysv4.3*)
9285  version_type=linux
9286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287  soname_spec='${libname}${release}${shared_ext}$major'
9288  shlibpath_var=LD_LIBRARY_PATH
9289  case $host_vendor in
9290    sni)
9291      shlibpath_overrides_runpath=no
9292      need_lib_prefix=no
9293      runpath_var=LD_RUN_PATH
9294      ;;
9295    siemens)
9296      need_lib_prefix=no
9297      ;;
9298    motorola)
9299      need_lib_prefix=no
9300      need_version=no
9301      shlibpath_overrides_runpath=no
9302      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9303      ;;
9304  esac
9305  ;;
9306
9307sysv4*MP*)
9308  if test -d /usr/nec ;then
9309    version_type=linux
9310    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9311    soname_spec='$libname${shared_ext}.$major'
9312    shlibpath_var=LD_LIBRARY_PATH
9313  fi
9314  ;;
9315
9316sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9317  version_type=freebsd-elf
9318  need_lib_prefix=no
9319  need_version=no
9320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9321  soname_spec='${libname}${release}${shared_ext}$major'
9322  shlibpath_var=LD_LIBRARY_PATH
9323  shlibpath_overrides_runpath=yes
9324  hardcode_into_libs=yes
9325  if test "$with_gnu_ld" = yes; then
9326    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9327  else
9328    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9329    case $host_os in
9330      sco3.2v5*)
9331        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9332	;;
9333    esac
9334  fi
9335  sys_lib_dlsearch_path_spec='/usr/lib'
9336  ;;
9337
9338tpf*)
9339  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9340  version_type=linux
9341  need_lib_prefix=no
9342  need_version=no
9343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344  shlibpath_var=LD_LIBRARY_PATH
9345  shlibpath_overrides_runpath=no
9346  hardcode_into_libs=yes
9347  ;;
9348
9349uts4*)
9350  version_type=linux
9351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352  soname_spec='${libname}${release}${shared_ext}$major'
9353  shlibpath_var=LD_LIBRARY_PATH
9354  ;;
9355
9356*)
9357  dynamic_linker=no
9358  ;;
9359esac
9360{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9361$as_echo "$dynamic_linker" >&6; }
9362test "$dynamic_linker" = no && can_build_shared=no
9363
9364variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9365if test "$GCC" = yes; then
9366  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9367fi
9368
9369if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9370  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9371fi
9372if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9373  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9374fi
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9463$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9464hardcode_action=
9465if test -n "$hardcode_libdir_flag_spec" ||
9466   test -n "$runpath_var" ||
9467   test "X$hardcode_automatic" = "Xyes" ; then
9468
9469  # We can hardcode non-existent directories.
9470  if test "$hardcode_direct" != no &&
9471     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9472     # have to relink, otherwise we might link with an installed library
9473     # when we should be linking with a yet-to-be-installed one
9474     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9475     test "$hardcode_minus_L" != no; then
9476    # Linking always hardcodes the temporary library directory.
9477    hardcode_action=relink
9478  else
9479    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9480    hardcode_action=immediate
9481  fi
9482else
9483  # We cannot hardcode anything, or else we can only hardcode existing
9484  # directories.
9485  hardcode_action=unsupported
9486fi
9487{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9488$as_echo "$hardcode_action" >&6; }
9489
9490if test "$hardcode_action" = relink ||
9491   test "$inherit_rpath" = yes; then
9492  # Fast installation is not supported
9493  enable_fast_install=no
9494elif test "$shlibpath_overrides_runpath" = yes ||
9495     test "$enable_shared" = no; then
9496  # Fast installation is not necessary
9497  enable_fast_install=needless
9498fi
9499
9500
9501
9502
9503
9504
9505  if test "x$enable_dlopen" != xyes; then
9506  enable_dlopen=unknown
9507  enable_dlopen_self=unknown
9508  enable_dlopen_self_static=unknown
9509else
9510  lt_cv_dlopen=no
9511  lt_cv_dlopen_libs=
9512
9513  case $host_os in
9514  beos*)
9515    lt_cv_dlopen="load_add_on"
9516    lt_cv_dlopen_libs=
9517    lt_cv_dlopen_self=yes
9518    ;;
9519
9520  mingw* | pw32* | cegcc*)
9521    lt_cv_dlopen="LoadLibrary"
9522    lt_cv_dlopen_libs=
9523    ;;
9524
9525  cygwin*)
9526    lt_cv_dlopen="dlopen"
9527    lt_cv_dlopen_libs=
9528    ;;
9529
9530  darwin*)
9531  # if libdl is installed we need to link against it
9532    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9533$as_echo_n "checking for dlopen in -ldl... " >&6; }
9534if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9535  $as_echo_n "(cached) " >&6
9536else
9537  ac_check_lib_save_LIBS=$LIBS
9538LIBS="-ldl  $LIBS"
9539cat >conftest.$ac_ext <<_ACEOF
9540/* confdefs.h.  */
9541_ACEOF
9542cat confdefs.h >>conftest.$ac_ext
9543cat >>conftest.$ac_ext <<_ACEOF
9544/* end confdefs.h.  */
9545
9546/* Override any GCC internal prototype to avoid an error.
9547   Use char because int might match the return type of a GCC
9548   builtin and then its argument prototype would still apply.  */
9549#ifdef __cplusplus
9550extern "C"
9551#endif
9552char dlopen ();
9553int
9554main ()
9555{
9556return dlopen ();
9557  ;
9558  return 0;
9559}
9560_ACEOF
9561rm -f conftest.$ac_objext conftest$ac_exeext
9562if { (ac_try="$ac_link"
9563case "(($ac_try" in
9564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565  *) ac_try_echo=$ac_try;;
9566esac
9567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9568$as_echo "$ac_try_echo") >&5
9569  (eval "$ac_link") 2>conftest.er1
9570  ac_status=$?
9571  grep -v '^ *+' conftest.er1 >conftest.err
9572  rm -f conftest.er1
9573  cat conftest.err >&5
9574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575  (exit $ac_status); } && {
9576	 test -z "$ac_c_werror_flag" ||
9577	 test ! -s conftest.err
9578       } && test -s conftest$ac_exeext && {
9579	 test "$cross_compiling" = yes ||
9580	 $as_test_x conftest$ac_exeext
9581       }; then
9582  ac_cv_lib_dl_dlopen=yes
9583else
9584  $as_echo "$as_me: failed program was:" >&5
9585sed 's/^/| /' conftest.$ac_ext >&5
9586
9587	ac_cv_lib_dl_dlopen=no
9588fi
9589
9590rm -rf conftest.dSYM
9591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592      conftest$ac_exeext conftest.$ac_ext
9593LIBS=$ac_check_lib_save_LIBS
9594fi
9595{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9596$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9597if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9598  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9599else
9600
9601    lt_cv_dlopen="dyld"
9602    lt_cv_dlopen_libs=
9603    lt_cv_dlopen_self=yes
9604
9605fi
9606
9607    ;;
9608
9609  *)
9610    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9611$as_echo_n "checking for shl_load... " >&6; }
9612if test "${ac_cv_func_shl_load+set}" = set; then
9613  $as_echo_n "(cached) " >&6
9614else
9615  cat >conftest.$ac_ext <<_ACEOF
9616/* confdefs.h.  */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h.  */
9621/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9622   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9623#define shl_load innocuous_shl_load
9624
9625/* System header to define __stub macros and hopefully few prototypes,
9626    which can conflict with char shl_load (); below.
9627    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9628    <limits.h> exists even on freestanding compilers.  */
9629
9630#ifdef __STDC__
9631# include <limits.h>
9632#else
9633# include <assert.h>
9634#endif
9635
9636#undef shl_load
9637
9638/* Override any GCC internal prototype to avoid an error.
9639   Use char because int might match the return type of a GCC
9640   builtin and then its argument prototype would still apply.  */
9641#ifdef __cplusplus
9642extern "C"
9643#endif
9644char shl_load ();
9645/* The GNU C library defines this for functions which it implements
9646    to always fail with ENOSYS.  Some functions are actually named
9647    something starting with __ and the normal name is an alias.  */
9648#if defined __stub_shl_load || defined __stub___shl_load
9649choke me
9650#endif
9651
9652int
9653main ()
9654{
9655return shl_load ();
9656  ;
9657  return 0;
9658}
9659_ACEOF
9660rm -f conftest.$ac_objext conftest$ac_exeext
9661if { (ac_try="$ac_link"
9662case "(($ac_try" in
9663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664  *) ac_try_echo=$ac_try;;
9665esac
9666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9667$as_echo "$ac_try_echo") >&5
9668  (eval "$ac_link") 2>conftest.er1
9669  ac_status=$?
9670  grep -v '^ *+' conftest.er1 >conftest.err
9671  rm -f conftest.er1
9672  cat conftest.err >&5
9673  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674  (exit $ac_status); } && {
9675	 test -z "$ac_c_werror_flag" ||
9676	 test ! -s conftest.err
9677       } && test -s conftest$ac_exeext && {
9678	 test "$cross_compiling" = yes ||
9679	 $as_test_x conftest$ac_exeext
9680       }; then
9681  ac_cv_func_shl_load=yes
9682else
9683  $as_echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
9686	ac_cv_func_shl_load=no
9687fi
9688
9689rm -rf conftest.dSYM
9690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9691      conftest$ac_exeext conftest.$ac_ext
9692fi
9693{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9694$as_echo "$ac_cv_func_shl_load" >&6; }
9695if test "x$ac_cv_func_shl_load" = x""yes; then
9696  lt_cv_dlopen="shl_load"
9697else
9698  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9699$as_echo_n "checking for shl_load in -ldld... " >&6; }
9700if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9701  $as_echo_n "(cached) " >&6
9702else
9703  ac_check_lib_save_LIBS=$LIBS
9704LIBS="-ldld  $LIBS"
9705cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h.  */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h.  */
9711
9712/* Override any GCC internal prototype to avoid an error.
9713   Use char because int might match the return type of a GCC
9714   builtin and then its argument prototype would still apply.  */
9715#ifdef __cplusplus
9716extern "C"
9717#endif
9718char shl_load ();
9719int
9720main ()
9721{
9722return shl_load ();
9723  ;
9724  return 0;
9725}
9726_ACEOF
9727rm -f conftest.$ac_objext conftest$ac_exeext
9728if { (ac_try="$ac_link"
9729case "(($ac_try" in
9730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731  *) ac_try_echo=$ac_try;;
9732esac
9733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9734$as_echo "$ac_try_echo") >&5
9735  (eval "$ac_link") 2>conftest.er1
9736  ac_status=$?
9737  grep -v '^ *+' conftest.er1 >conftest.err
9738  rm -f conftest.er1
9739  cat conftest.err >&5
9740  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741  (exit $ac_status); } && {
9742	 test -z "$ac_c_werror_flag" ||
9743	 test ! -s conftest.err
9744       } && test -s conftest$ac_exeext && {
9745	 test "$cross_compiling" = yes ||
9746	 $as_test_x conftest$ac_exeext
9747       }; then
9748  ac_cv_lib_dld_shl_load=yes
9749else
9750  $as_echo "$as_me: failed program was:" >&5
9751sed 's/^/| /' conftest.$ac_ext >&5
9752
9753	ac_cv_lib_dld_shl_load=no
9754fi
9755
9756rm -rf conftest.dSYM
9757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9758      conftest$ac_exeext conftest.$ac_ext
9759LIBS=$ac_check_lib_save_LIBS
9760fi
9761{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9762$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9763if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9764  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9765else
9766  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9767$as_echo_n "checking for dlopen... " >&6; }
9768if test "${ac_cv_func_dlopen+set}" = set; then
9769  $as_echo_n "(cached) " >&6
9770else
9771  cat >conftest.$ac_ext <<_ACEOF
9772/* confdefs.h.  */
9773_ACEOF
9774cat confdefs.h >>conftest.$ac_ext
9775cat >>conftest.$ac_ext <<_ACEOF
9776/* end confdefs.h.  */
9777/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9778   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9779#define dlopen innocuous_dlopen
9780
9781/* System header to define __stub macros and hopefully few prototypes,
9782    which can conflict with char dlopen (); below.
9783    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784    <limits.h> exists even on freestanding compilers.  */
9785
9786#ifdef __STDC__
9787# include <limits.h>
9788#else
9789# include <assert.h>
9790#endif
9791
9792#undef dlopen
9793
9794/* Override any GCC internal prototype to avoid an error.
9795   Use char because int might match the return type of a GCC
9796   builtin and then its argument prototype would still apply.  */
9797#ifdef __cplusplus
9798extern "C"
9799#endif
9800char dlopen ();
9801/* The GNU C library defines this for functions which it implements
9802    to always fail with ENOSYS.  Some functions are actually named
9803    something starting with __ and the normal name is an alias.  */
9804#if defined __stub_dlopen || defined __stub___dlopen
9805choke me
9806#endif
9807
9808int
9809main ()
9810{
9811return dlopen ();
9812  ;
9813  return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext conftest$ac_exeext
9817if { (ac_try="$ac_link"
9818case "(($ac_try" in
9819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820  *) ac_try_echo=$ac_try;;
9821esac
9822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823$as_echo "$ac_try_echo") >&5
9824  (eval "$ac_link") 2>conftest.er1
9825  ac_status=$?
9826  grep -v '^ *+' conftest.er1 >conftest.err
9827  rm -f conftest.er1
9828  cat conftest.err >&5
9829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830  (exit $ac_status); } && {
9831	 test -z "$ac_c_werror_flag" ||
9832	 test ! -s conftest.err
9833       } && test -s conftest$ac_exeext && {
9834	 test "$cross_compiling" = yes ||
9835	 $as_test_x conftest$ac_exeext
9836       }; then
9837  ac_cv_func_dlopen=yes
9838else
9839  $as_echo "$as_me: failed program was:" >&5
9840sed 's/^/| /' conftest.$ac_ext >&5
9841
9842	ac_cv_func_dlopen=no
9843fi
9844
9845rm -rf conftest.dSYM
9846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847      conftest$ac_exeext conftest.$ac_ext
9848fi
9849{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9850$as_echo "$ac_cv_func_dlopen" >&6; }
9851if test "x$ac_cv_func_dlopen" = x""yes; then
9852  lt_cv_dlopen="dlopen"
9853else
9854  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9855$as_echo_n "checking for dlopen in -ldl... " >&6; }
9856if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9857  $as_echo_n "(cached) " >&6
9858else
9859  ac_check_lib_save_LIBS=$LIBS
9860LIBS="-ldl  $LIBS"
9861cat >conftest.$ac_ext <<_ACEOF
9862/* confdefs.h.  */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h.  */
9867
9868/* Override any GCC internal prototype to avoid an error.
9869   Use char because int might match the return type of a GCC
9870   builtin and then its argument prototype would still apply.  */
9871#ifdef __cplusplus
9872extern "C"
9873#endif
9874char dlopen ();
9875int
9876main ()
9877{
9878return dlopen ();
9879  ;
9880  return 0;
9881}
9882_ACEOF
9883rm -f conftest.$ac_objext conftest$ac_exeext
9884if { (ac_try="$ac_link"
9885case "(($ac_try" in
9886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887  *) ac_try_echo=$ac_try;;
9888esac
9889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9890$as_echo "$ac_try_echo") >&5
9891  (eval "$ac_link") 2>conftest.er1
9892  ac_status=$?
9893  grep -v '^ *+' conftest.er1 >conftest.err
9894  rm -f conftest.er1
9895  cat conftest.err >&5
9896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897  (exit $ac_status); } && {
9898	 test -z "$ac_c_werror_flag" ||
9899	 test ! -s conftest.err
9900       } && test -s conftest$ac_exeext && {
9901	 test "$cross_compiling" = yes ||
9902	 $as_test_x conftest$ac_exeext
9903       }; then
9904  ac_cv_lib_dl_dlopen=yes
9905else
9906  $as_echo "$as_me: failed program was:" >&5
9907sed 's/^/| /' conftest.$ac_ext >&5
9908
9909	ac_cv_lib_dl_dlopen=no
9910fi
9911
9912rm -rf conftest.dSYM
9913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914      conftest$ac_exeext conftest.$ac_ext
9915LIBS=$ac_check_lib_save_LIBS
9916fi
9917{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9918$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9919if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9920  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9921else
9922  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9923$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9924if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9925  $as_echo_n "(cached) " >&6
9926else
9927  ac_check_lib_save_LIBS=$LIBS
9928LIBS="-lsvld  $LIBS"
9929cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h.  */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h.  */
9935
9936/* Override any GCC internal prototype to avoid an error.
9937   Use char because int might match the return type of a GCC
9938   builtin and then its argument prototype would still apply.  */
9939#ifdef __cplusplus
9940extern "C"
9941#endif
9942char dlopen ();
9943int
9944main ()
9945{
9946return dlopen ();
9947  ;
9948  return 0;
9949}
9950_ACEOF
9951rm -f conftest.$ac_objext conftest$ac_exeext
9952if { (ac_try="$ac_link"
9953case "(($ac_try" in
9954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955  *) ac_try_echo=$ac_try;;
9956esac
9957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9958$as_echo "$ac_try_echo") >&5
9959  (eval "$ac_link") 2>conftest.er1
9960  ac_status=$?
9961  grep -v '^ *+' conftest.er1 >conftest.err
9962  rm -f conftest.er1
9963  cat conftest.err >&5
9964  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); } && {
9966	 test -z "$ac_c_werror_flag" ||
9967	 test ! -s conftest.err
9968       } && test -s conftest$ac_exeext && {
9969	 test "$cross_compiling" = yes ||
9970	 $as_test_x conftest$ac_exeext
9971       }; then
9972  ac_cv_lib_svld_dlopen=yes
9973else
9974  $as_echo "$as_me: failed program was:" >&5
9975sed 's/^/| /' conftest.$ac_ext >&5
9976
9977	ac_cv_lib_svld_dlopen=no
9978fi
9979
9980rm -rf conftest.dSYM
9981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982      conftest$ac_exeext conftest.$ac_ext
9983LIBS=$ac_check_lib_save_LIBS
9984fi
9985{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9986$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9987if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9988  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9989else
9990  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9991$as_echo_n "checking for dld_link in -ldld... " >&6; }
9992if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9993  $as_echo_n "(cached) " >&6
9994else
9995  ac_check_lib_save_LIBS=$LIBS
9996LIBS="-ldld  $LIBS"
9997cat >conftest.$ac_ext <<_ACEOF
9998/* confdefs.h.  */
9999_ACEOF
10000cat confdefs.h >>conftest.$ac_ext
10001cat >>conftest.$ac_ext <<_ACEOF
10002/* end confdefs.h.  */
10003
10004/* Override any GCC internal prototype to avoid an error.
10005   Use char because int might match the return type of a GCC
10006   builtin and then its argument prototype would still apply.  */
10007#ifdef __cplusplus
10008extern "C"
10009#endif
10010char dld_link ();
10011int
10012main ()
10013{
10014return dld_link ();
10015  ;
10016  return 0;
10017}
10018_ACEOF
10019rm -f conftest.$ac_objext conftest$ac_exeext
10020if { (ac_try="$ac_link"
10021case "(($ac_try" in
10022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023  *) ac_try_echo=$ac_try;;
10024esac
10025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10026$as_echo "$ac_try_echo") >&5
10027  (eval "$ac_link") 2>conftest.er1
10028  ac_status=$?
10029  grep -v '^ *+' conftest.er1 >conftest.err
10030  rm -f conftest.er1
10031  cat conftest.err >&5
10032  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033  (exit $ac_status); } && {
10034	 test -z "$ac_c_werror_flag" ||
10035	 test ! -s conftest.err
10036       } && test -s conftest$ac_exeext && {
10037	 test "$cross_compiling" = yes ||
10038	 $as_test_x conftest$ac_exeext
10039       }; then
10040  ac_cv_lib_dld_dld_link=yes
10041else
10042  $as_echo "$as_me: failed program was:" >&5
10043sed 's/^/| /' conftest.$ac_ext >&5
10044
10045	ac_cv_lib_dld_dld_link=no
10046fi
10047
10048rm -rf conftest.dSYM
10049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10050      conftest$ac_exeext conftest.$ac_ext
10051LIBS=$ac_check_lib_save_LIBS
10052fi
10053{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10054$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10055if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10056  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10057fi
10058
10059
10060fi
10061
10062
10063fi
10064
10065
10066fi
10067
10068
10069fi
10070
10071
10072fi
10073
10074    ;;
10075  esac
10076
10077  if test "x$lt_cv_dlopen" != xno; then
10078    enable_dlopen=yes
10079  else
10080    enable_dlopen=no
10081  fi
10082
10083  case $lt_cv_dlopen in
10084  dlopen)
10085    save_CPPFLAGS="$CPPFLAGS"
10086    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10087
10088    save_LDFLAGS="$LDFLAGS"
10089    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10090
10091    save_LIBS="$LIBS"
10092    LIBS="$lt_cv_dlopen_libs $LIBS"
10093
10094    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10095$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10096if test "${lt_cv_dlopen_self+set}" = set; then
10097  $as_echo_n "(cached) " >&6
10098else
10099  	  if test "$cross_compiling" = yes; then :
10100  lt_cv_dlopen_self=cross
10101else
10102  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10103  lt_status=$lt_dlunknown
10104  cat > conftest.$ac_ext <<_LT_EOF
10105#line 10105 "configure"
10106#include "confdefs.h"
10107
10108#if HAVE_DLFCN_H
10109#include <dlfcn.h>
10110#endif
10111
10112#include <stdio.h>
10113
10114#ifdef RTLD_GLOBAL
10115#  define LT_DLGLOBAL		RTLD_GLOBAL
10116#else
10117#  ifdef DL_GLOBAL
10118#    define LT_DLGLOBAL		DL_GLOBAL
10119#  else
10120#    define LT_DLGLOBAL		0
10121#  endif
10122#endif
10123
10124/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10125   find out it does not work in some platform. */
10126#ifndef LT_DLLAZY_OR_NOW
10127#  ifdef RTLD_LAZY
10128#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10129#  else
10130#    ifdef DL_LAZY
10131#      define LT_DLLAZY_OR_NOW		DL_LAZY
10132#    else
10133#      ifdef RTLD_NOW
10134#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10135#      else
10136#        ifdef DL_NOW
10137#          define LT_DLLAZY_OR_NOW	DL_NOW
10138#        else
10139#          define LT_DLLAZY_OR_NOW	0
10140#        endif
10141#      endif
10142#    endif
10143#  endif
10144#endif
10145
10146void fnord() { int i=42;}
10147int main ()
10148{
10149  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10150  int status = $lt_dlunknown;
10151
10152  if (self)
10153    {
10154      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10155      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10156      /* dlclose (self); */
10157    }
10158  else
10159    puts (dlerror ());
10160
10161  return status;
10162}
10163_LT_EOF
10164  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10165  (eval $ac_link) 2>&5
10166  ac_status=$?
10167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10169    (./conftest; exit; ) >&5 2>/dev/null
10170    lt_status=$?
10171    case x$lt_status in
10172      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10173      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10174      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10175    esac
10176  else :
10177    # compilation failed
10178    lt_cv_dlopen_self=no
10179  fi
10180fi
10181rm -fr conftest*
10182
10183
10184fi
10185{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10186$as_echo "$lt_cv_dlopen_self" >&6; }
10187
10188    if test "x$lt_cv_dlopen_self" = xyes; then
10189      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10190      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10191$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10192if test "${lt_cv_dlopen_self_static+set}" = set; then
10193  $as_echo_n "(cached) " >&6
10194else
10195  	  if test "$cross_compiling" = yes; then :
10196  lt_cv_dlopen_self_static=cross
10197else
10198  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10199  lt_status=$lt_dlunknown
10200  cat > conftest.$ac_ext <<_LT_EOF
10201#line 10201 "configure"
10202#include "confdefs.h"
10203
10204#if HAVE_DLFCN_H
10205#include <dlfcn.h>
10206#endif
10207
10208#include <stdio.h>
10209
10210#ifdef RTLD_GLOBAL
10211#  define LT_DLGLOBAL		RTLD_GLOBAL
10212#else
10213#  ifdef DL_GLOBAL
10214#    define LT_DLGLOBAL		DL_GLOBAL
10215#  else
10216#    define LT_DLGLOBAL		0
10217#  endif
10218#endif
10219
10220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10221   find out it does not work in some platform. */
10222#ifndef LT_DLLAZY_OR_NOW
10223#  ifdef RTLD_LAZY
10224#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10225#  else
10226#    ifdef DL_LAZY
10227#      define LT_DLLAZY_OR_NOW		DL_LAZY
10228#    else
10229#      ifdef RTLD_NOW
10230#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10231#      else
10232#        ifdef DL_NOW
10233#          define LT_DLLAZY_OR_NOW	DL_NOW
10234#        else
10235#          define LT_DLLAZY_OR_NOW	0
10236#        endif
10237#      endif
10238#    endif
10239#  endif
10240#endif
10241
10242void fnord() { int i=42;}
10243int main ()
10244{
10245  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10246  int status = $lt_dlunknown;
10247
10248  if (self)
10249    {
10250      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10251      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10252      /* dlclose (self); */
10253    }
10254  else
10255    puts (dlerror ());
10256
10257  return status;
10258}
10259_LT_EOF
10260  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261  (eval $ac_link) 2>&5
10262  ac_status=$?
10263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10265    (./conftest; exit; ) >&5 2>/dev/null
10266    lt_status=$?
10267    case x$lt_status in
10268      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10269      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10270      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10271    esac
10272  else :
10273    # compilation failed
10274    lt_cv_dlopen_self_static=no
10275  fi
10276fi
10277rm -fr conftest*
10278
10279
10280fi
10281{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10282$as_echo "$lt_cv_dlopen_self_static" >&6; }
10283    fi
10284
10285    CPPFLAGS="$save_CPPFLAGS"
10286    LDFLAGS="$save_LDFLAGS"
10287    LIBS="$save_LIBS"
10288    ;;
10289  esac
10290
10291  case $lt_cv_dlopen_self in
10292  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10293  *) enable_dlopen_self=unknown ;;
10294  esac
10295
10296  case $lt_cv_dlopen_self_static in
10297  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10298  *) enable_dlopen_self_static=unknown ;;
10299  esac
10300fi
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318striplib=
10319old_striplib=
10320{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10321$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10322if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10323  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10324  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10325  { $as_echo "$as_me:$LINENO: result: yes" >&5
10326$as_echo "yes" >&6; }
10327else
10328# FIXME - insert some real tests, host_os isn't really good enough
10329  case $host_os in
10330  darwin*)
10331    if test -n "$STRIP" ; then
10332      striplib="$STRIP -x"
10333      old_striplib="$STRIP -S"
10334      { $as_echo "$as_me:$LINENO: result: yes" >&5
10335$as_echo "yes" >&6; }
10336    else
10337      { $as_echo "$as_me:$LINENO: result: no" >&5
10338$as_echo "no" >&6; }
10339    fi
10340    ;;
10341  *)
10342    { $as_echo "$as_me:$LINENO: result: no" >&5
10343$as_echo "no" >&6; }
10344    ;;
10345  esac
10346fi
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359  # Report which library types will actually be built
10360  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10361$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10362  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10363$as_echo "$can_build_shared" >&6; }
10364
10365  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10366$as_echo_n "checking whether to build shared libraries... " >&6; }
10367  test "$can_build_shared" = "no" && enable_shared=no
10368
10369  # On AIX, shared libraries and static libraries use the same namespace, and
10370  # are all built from PIC.
10371  case $host_os in
10372  aix3*)
10373    test "$enable_shared" = yes && enable_static=no
10374    if test -n "$RANLIB"; then
10375      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10376      postinstall_cmds='$RANLIB $lib'
10377    fi
10378    ;;
10379
10380  aix[4-9]*)
10381    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10382      test "$enable_shared" = yes && enable_static=no
10383    fi
10384    ;;
10385  esac
10386  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10387$as_echo "$enable_shared" >&6; }
10388
10389  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10390$as_echo_n "checking whether to build static libraries... " >&6; }
10391  # Make sure either enable_shared or enable_static is yes.
10392  test "$enable_shared" = yes || enable_static=yes
10393  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10394$as_echo "$enable_static" >&6; }
10395
10396
10397
10398
10399fi
10400ac_ext=c
10401ac_cpp='$CPP $CPPFLAGS'
10402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10404ac_compiler_gnu=$ac_cv_c_compiler_gnu
10405
10406CC="$lt_save_CC"
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420        ac_config_commands="$ac_config_commands libtool"
10421
10422
10423
10424
10425# Only expand once:
10426
10427
10428# Find a good install program.  We prefer a C program (faster),
10429# so one script is as good as another.  But avoid the broken or
10430# incompatible versions:
10431# SysV /etc/install, /usr/sbin/install
10432# SunOS /usr/etc/install
10433# IRIX /sbin/install
10434# AIX /bin/install
10435# AmigaOS /C/install, which installs bootblocks on floppy discs
10436# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10437# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10438# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10439# OS/2's system install, which has a completely different semantic
10440# ./install, which can be erroneously created by make from ./install.sh.
10441# Reject install programs that cannot install multiple files.
10442{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10443$as_echo_n "checking for a BSD-compatible install... " >&6; }
10444if test -z "$INSTALL"; then
10445if test "${ac_cv_path_install+set}" = set; then
10446  $as_echo_n "(cached) " >&6
10447else
10448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451  IFS=$as_save_IFS
10452  test -z "$as_dir" && as_dir=.
10453  # Account for people who put trailing slashes in PATH elements.
10454case $as_dir/ in
10455  ./ | .// | /cC/* | \
10456  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10457  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10458  /usr/ucb/* ) ;;
10459  *)
10460    # OSF1 and SCO ODT 3.0 have their own names for install.
10461    # Don't use installbsd from OSF since it installs stuff as root
10462    # by default.
10463    for ac_prog in ginstall scoinst install; do
10464      for ac_exec_ext in '' $ac_executable_extensions; do
10465	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10466	  if test $ac_prog = install &&
10467	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10468	    # AIX install.  It has an incompatible calling convention.
10469	    :
10470	  elif test $ac_prog = install &&
10471	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10472	    # program-specific install script used by HP pwplus--don't use.
10473	    :
10474	  else
10475	    rm -rf conftest.one conftest.two conftest.dir
10476	    echo one > conftest.one
10477	    echo two > conftest.two
10478	    mkdir conftest.dir
10479	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10480	      test -s conftest.one && test -s conftest.two &&
10481	      test -s conftest.dir/conftest.one &&
10482	      test -s conftest.dir/conftest.two
10483	    then
10484	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10485	      break 3
10486	    fi
10487	  fi
10488	fi
10489      done
10490    done
10491    ;;
10492esac
10493
10494done
10495IFS=$as_save_IFS
10496
10497rm -rf conftest.one conftest.two conftest.dir
10498
10499fi
10500  if test "${ac_cv_path_install+set}" = set; then
10501    INSTALL=$ac_cv_path_install
10502  else
10503    # As a last resort, use the slow shell script.  Don't cache a
10504    # value for INSTALL within a source directory, because that will
10505    # break other packages using the cache if that directory is
10506    # removed, or if the value is a relative name.
10507    INSTALL=$ac_install_sh
10508  fi
10509fi
10510{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10511$as_echo "$INSTALL" >&6; }
10512
10513# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10514# It thinks the first close brace ends the variable substitution.
10515test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10516
10517test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10518
10519test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10520
10521for ac_prog in gawk mawk nawk awk
10522do
10523  # Extract the first word of "$ac_prog", so it can be a program name with args.
10524set dummy $ac_prog; ac_word=$2
10525{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10526$as_echo_n "checking for $ac_word... " >&6; }
10527if test "${ac_cv_prog_AWK+set}" = set; then
10528  $as_echo_n "(cached) " >&6
10529else
10530  if test -n "$AWK"; then
10531  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10532else
10533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534for as_dir in $PATH
10535do
10536  IFS=$as_save_IFS
10537  test -z "$as_dir" && as_dir=.
10538  for ac_exec_ext in '' $ac_executable_extensions; do
10539  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10540    ac_cv_prog_AWK="$ac_prog"
10541    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10542    break 2
10543  fi
10544done
10545done
10546IFS=$as_save_IFS
10547
10548fi
10549fi
10550AWK=$ac_cv_prog_AWK
10551if test -n "$AWK"; then
10552  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10553$as_echo "$AWK" >&6; }
10554else
10555  { $as_echo "$as_me:$LINENO: result: no" >&5
10556$as_echo "no" >&6; }
10557fi
10558
10559
10560  test -n "$AWK" && break
10561done
10562
10563
10564#########
10565# Enable large file support (if special flags are necessary)
10566#
10567# Check whether --enable-largefile was given.
10568if test "${enable_largefile+set}" = set; then
10569  enableval=$enable_largefile;
10570fi
10571
10572if test "$enable_largefile" != no; then
10573
10574  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10575$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10576if test "${ac_cv_sys_largefile_CC+set}" = set; then
10577  $as_echo_n "(cached) " >&6
10578else
10579  ac_cv_sys_largefile_CC=no
10580     if test "$GCC" != yes; then
10581       ac_save_CC=$CC
10582       while :; do
10583	 # IRIX 6.2 and later do not support large files by default,
10584	 # so use the C compiler's -n32 option if that helps.
10585	 cat >conftest.$ac_ext <<_ACEOF
10586/* confdefs.h.  */
10587_ACEOF
10588cat confdefs.h >>conftest.$ac_ext
10589cat >>conftest.$ac_ext <<_ACEOF
10590/* end confdefs.h.  */
10591#include <sys/types.h>
10592 /* Check that off_t can represent 2**63 - 1 correctly.
10593    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10594    since some C++ compilers masquerading as C compilers
10595    incorrectly reject 9223372036854775807.  */
10596#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10597  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10598		       && LARGE_OFF_T % 2147483647 == 1)
10599		      ? 1 : -1];
10600int
10601main ()
10602{
10603
10604  ;
10605  return 0;
10606}
10607_ACEOF
10608	 rm -f conftest.$ac_objext
10609if { (ac_try="$ac_compile"
10610case "(($ac_try" in
10611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612  *) ac_try_echo=$ac_try;;
10613esac
10614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615$as_echo "$ac_try_echo") >&5
10616  (eval "$ac_compile") 2>conftest.er1
10617  ac_status=$?
10618  grep -v '^ *+' conftest.er1 >conftest.err
10619  rm -f conftest.er1
10620  cat conftest.err >&5
10621  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622  (exit $ac_status); } && {
10623	 test -z "$ac_c_werror_flag" ||
10624	 test ! -s conftest.err
10625       } && test -s conftest.$ac_objext; then
10626  break
10627else
10628  $as_echo "$as_me: failed program was:" >&5
10629sed 's/^/| /' conftest.$ac_ext >&5
10630
10631
10632fi
10633
10634rm -f core conftest.err conftest.$ac_objext
10635	 CC="$CC -n32"
10636	 rm -f conftest.$ac_objext
10637if { (ac_try="$ac_compile"
10638case "(($ac_try" in
10639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640  *) ac_try_echo=$ac_try;;
10641esac
10642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10643$as_echo "$ac_try_echo") >&5
10644  (eval "$ac_compile") 2>conftest.er1
10645  ac_status=$?
10646  grep -v '^ *+' conftest.er1 >conftest.err
10647  rm -f conftest.er1
10648  cat conftest.err >&5
10649  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650  (exit $ac_status); } && {
10651	 test -z "$ac_c_werror_flag" ||
10652	 test ! -s conftest.err
10653       } && test -s conftest.$ac_objext; then
10654  ac_cv_sys_largefile_CC=' -n32'; break
10655else
10656  $as_echo "$as_me: failed program was:" >&5
10657sed 's/^/| /' conftest.$ac_ext >&5
10658
10659
10660fi
10661
10662rm -f core conftest.err conftest.$ac_objext
10663	 break
10664       done
10665       CC=$ac_save_CC
10666       rm -f conftest.$ac_ext
10667    fi
10668fi
10669{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10670$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10671  if test "$ac_cv_sys_largefile_CC" != no; then
10672    CC=$CC$ac_cv_sys_largefile_CC
10673  fi
10674
10675  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10676$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10677if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10678  $as_echo_n "(cached) " >&6
10679else
10680  while :; do
10681  cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h.  */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h.  */
10687#include <sys/types.h>
10688 /* Check that off_t can represent 2**63 - 1 correctly.
10689    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10690    since some C++ compilers masquerading as C compilers
10691    incorrectly reject 9223372036854775807.  */
10692#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10693  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10694		       && LARGE_OFF_T % 2147483647 == 1)
10695		      ? 1 : -1];
10696int
10697main ()
10698{
10699
10700  ;
10701  return 0;
10702}
10703_ACEOF
10704rm -f conftest.$ac_objext
10705if { (ac_try="$ac_compile"
10706case "(($ac_try" in
10707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708  *) ac_try_echo=$ac_try;;
10709esac
10710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10711$as_echo "$ac_try_echo") >&5
10712  (eval "$ac_compile") 2>conftest.er1
10713  ac_status=$?
10714  grep -v '^ *+' conftest.er1 >conftest.err
10715  rm -f conftest.er1
10716  cat conftest.err >&5
10717  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718  (exit $ac_status); } && {
10719	 test -z "$ac_c_werror_flag" ||
10720	 test ! -s conftest.err
10721       } && test -s conftest.$ac_objext; then
10722  ac_cv_sys_file_offset_bits=no; break
10723else
10724  $as_echo "$as_me: failed program was:" >&5
10725sed 's/^/| /' conftest.$ac_ext >&5
10726
10727
10728fi
10729
10730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731  cat >conftest.$ac_ext <<_ACEOF
10732/* confdefs.h.  */
10733_ACEOF
10734cat confdefs.h >>conftest.$ac_ext
10735cat >>conftest.$ac_ext <<_ACEOF
10736/* end confdefs.h.  */
10737#define _FILE_OFFSET_BITS 64
10738#include <sys/types.h>
10739 /* Check that off_t can represent 2**63 - 1 correctly.
10740    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10741    since some C++ compilers masquerading as C compilers
10742    incorrectly reject 9223372036854775807.  */
10743#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10744  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10745		       && LARGE_OFF_T % 2147483647 == 1)
10746		      ? 1 : -1];
10747int
10748main ()
10749{
10750
10751  ;
10752  return 0;
10753}
10754_ACEOF
10755rm -f conftest.$ac_objext
10756if { (ac_try="$ac_compile"
10757case "(($ac_try" in
10758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759  *) ac_try_echo=$ac_try;;
10760esac
10761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10762$as_echo "$ac_try_echo") >&5
10763  (eval "$ac_compile") 2>conftest.er1
10764  ac_status=$?
10765  grep -v '^ *+' conftest.er1 >conftest.err
10766  rm -f conftest.er1
10767  cat conftest.err >&5
10768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769  (exit $ac_status); } && {
10770	 test -z "$ac_c_werror_flag" ||
10771	 test ! -s conftest.err
10772       } && test -s conftest.$ac_objext; then
10773  ac_cv_sys_file_offset_bits=64; break
10774else
10775  $as_echo "$as_me: failed program was:" >&5
10776sed 's/^/| /' conftest.$ac_ext >&5
10777
10778
10779fi
10780
10781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782  ac_cv_sys_file_offset_bits=unknown
10783  break
10784done
10785fi
10786{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10787$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10788case $ac_cv_sys_file_offset_bits in #(
10789  no | unknown) ;;
10790  *)
10791cat >>confdefs.h <<_ACEOF
10792#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10793_ACEOF
10794;;
10795esac
10796rm -rf conftest*
10797  if test $ac_cv_sys_file_offset_bits = unknown; then
10798    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10799$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10800if test "${ac_cv_sys_large_files+set}" = set; then
10801  $as_echo_n "(cached) " >&6
10802else
10803  while :; do
10804  cat >conftest.$ac_ext <<_ACEOF
10805/* confdefs.h.  */
10806_ACEOF
10807cat confdefs.h >>conftest.$ac_ext
10808cat >>conftest.$ac_ext <<_ACEOF
10809/* end confdefs.h.  */
10810#include <sys/types.h>
10811 /* Check that off_t can represent 2**63 - 1 correctly.
10812    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10813    since some C++ compilers masquerading as C compilers
10814    incorrectly reject 9223372036854775807.  */
10815#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10816  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10817		       && LARGE_OFF_T % 2147483647 == 1)
10818		      ? 1 : -1];
10819int
10820main ()
10821{
10822
10823  ;
10824  return 0;
10825}
10826_ACEOF
10827rm -f conftest.$ac_objext
10828if { (ac_try="$ac_compile"
10829case "(($ac_try" in
10830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831  *) ac_try_echo=$ac_try;;
10832esac
10833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10834$as_echo "$ac_try_echo") >&5
10835  (eval "$ac_compile") 2>conftest.er1
10836  ac_status=$?
10837  grep -v '^ *+' conftest.er1 >conftest.err
10838  rm -f conftest.er1
10839  cat conftest.err >&5
10840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841  (exit $ac_status); } && {
10842	 test -z "$ac_c_werror_flag" ||
10843	 test ! -s conftest.err
10844       } && test -s conftest.$ac_objext; then
10845  ac_cv_sys_large_files=no; break
10846else
10847  $as_echo "$as_me: failed program was:" >&5
10848sed 's/^/| /' conftest.$ac_ext >&5
10849
10850
10851fi
10852
10853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10854  cat >conftest.$ac_ext <<_ACEOF
10855/* confdefs.h.  */
10856_ACEOF
10857cat confdefs.h >>conftest.$ac_ext
10858cat >>conftest.$ac_ext <<_ACEOF
10859/* end confdefs.h.  */
10860#define _LARGE_FILES 1
10861#include <sys/types.h>
10862 /* Check that off_t can represent 2**63 - 1 correctly.
10863    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10864    since some C++ compilers masquerading as C compilers
10865    incorrectly reject 9223372036854775807.  */
10866#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10867  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10868		       && LARGE_OFF_T % 2147483647 == 1)
10869		      ? 1 : -1];
10870int
10871main ()
10872{
10873
10874  ;
10875  return 0;
10876}
10877_ACEOF
10878rm -f conftest.$ac_objext
10879if { (ac_try="$ac_compile"
10880case "(($ac_try" in
10881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882  *) ac_try_echo=$ac_try;;
10883esac
10884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10885$as_echo "$ac_try_echo") >&5
10886  (eval "$ac_compile") 2>conftest.er1
10887  ac_status=$?
10888  grep -v '^ *+' conftest.er1 >conftest.err
10889  rm -f conftest.er1
10890  cat conftest.err >&5
10891  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892  (exit $ac_status); } && {
10893	 test -z "$ac_c_werror_flag" ||
10894	 test ! -s conftest.err
10895       } && test -s conftest.$ac_objext; then
10896  ac_cv_sys_large_files=1; break
10897else
10898  $as_echo "$as_me: failed program was:" >&5
10899sed 's/^/| /' conftest.$ac_ext >&5
10900
10901
10902fi
10903
10904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905  ac_cv_sys_large_files=unknown
10906  break
10907done
10908fi
10909{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10910$as_echo "$ac_cv_sys_large_files" >&6; }
10911case $ac_cv_sys_large_files in #(
10912  no | unknown) ;;
10913  *)
10914cat >>confdefs.h <<_ACEOF
10915#define _LARGE_FILES $ac_cv_sys_large_files
10916_ACEOF
10917;;
10918esac
10919rm -rf conftest*
10920  fi
10921fi
10922
10923
10924#########
10925# Check for needed/wanted data types
10926{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10927$as_echo_n "checking for int8_t... " >&6; }
10928if test "${ac_cv_type_int8_t+set}" = set; then
10929  $as_echo_n "(cached) " >&6
10930else
10931  ac_cv_type_int8_t=no
10932cat >conftest.$ac_ext <<_ACEOF
10933/* confdefs.h.  */
10934_ACEOF
10935cat confdefs.h >>conftest.$ac_ext
10936cat >>conftest.$ac_ext <<_ACEOF
10937/* end confdefs.h.  */
10938$ac_includes_default
10939int
10940main ()
10941{
10942if (sizeof (int8_t))
10943       return 0;
10944  ;
10945  return 0;
10946}
10947_ACEOF
10948rm -f conftest.$ac_objext
10949if { (ac_try="$ac_compile"
10950case "(($ac_try" in
10951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952  *) ac_try_echo=$ac_try;;
10953esac
10954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10955$as_echo "$ac_try_echo") >&5
10956  (eval "$ac_compile") 2>conftest.er1
10957  ac_status=$?
10958  grep -v '^ *+' conftest.er1 >conftest.err
10959  rm -f conftest.er1
10960  cat conftest.err >&5
10961  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962  (exit $ac_status); } && {
10963	 test -z "$ac_c_werror_flag" ||
10964	 test ! -s conftest.err
10965       } && test -s conftest.$ac_objext; then
10966  cat >conftest.$ac_ext <<_ACEOF
10967/* confdefs.h.  */
10968_ACEOF
10969cat confdefs.h >>conftest.$ac_ext
10970cat >>conftest.$ac_ext <<_ACEOF
10971/* end confdefs.h.  */
10972$ac_includes_default
10973int
10974main ()
10975{
10976if (sizeof ((int8_t)))
10977	  return 0;
10978  ;
10979  return 0;
10980}
10981_ACEOF
10982rm -f conftest.$ac_objext
10983if { (ac_try="$ac_compile"
10984case "(($ac_try" in
10985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986  *) ac_try_echo=$ac_try;;
10987esac
10988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10989$as_echo "$ac_try_echo") >&5
10990  (eval "$ac_compile") 2>conftest.er1
10991  ac_status=$?
10992  grep -v '^ *+' conftest.er1 >conftest.err
10993  rm -f conftest.er1
10994  cat conftest.err >&5
10995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996  (exit $ac_status); } && {
10997	 test -z "$ac_c_werror_flag" ||
10998	 test ! -s conftest.err
10999       } && test -s conftest.$ac_objext; then
11000  :
11001else
11002  $as_echo "$as_me: failed program was:" >&5
11003sed 's/^/| /' conftest.$ac_ext >&5
11004
11005	ac_cv_type_int8_t=yes
11006fi
11007
11008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11009else
11010  $as_echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013
11014fi
11015
11016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017fi
11018{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11019$as_echo "$ac_cv_type_int8_t" >&6; }
11020if test "x$ac_cv_type_int8_t" = x""yes; then
11021
11022cat >>confdefs.h <<_ACEOF
11023#define HAVE_INT8_T 1
11024_ACEOF
11025
11026
11027fi
11028{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11029$as_echo_n "checking for int16_t... " >&6; }
11030if test "${ac_cv_type_int16_t+set}" = set; then
11031  $as_echo_n "(cached) " >&6
11032else
11033  ac_cv_type_int16_t=no
11034cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h.  */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h.  */
11040$ac_includes_default
11041int
11042main ()
11043{
11044if (sizeof (int16_t))
11045       return 0;
11046  ;
11047  return 0;
11048}
11049_ACEOF
11050rm -f conftest.$ac_objext
11051if { (ac_try="$ac_compile"
11052case "(($ac_try" in
11053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054  *) ac_try_echo=$ac_try;;
11055esac
11056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11057$as_echo "$ac_try_echo") >&5
11058  (eval "$ac_compile") 2>conftest.er1
11059  ac_status=$?
11060  grep -v '^ *+' conftest.er1 >conftest.err
11061  rm -f conftest.er1
11062  cat conftest.err >&5
11063  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064  (exit $ac_status); } && {
11065	 test -z "$ac_c_werror_flag" ||
11066	 test ! -s conftest.err
11067       } && test -s conftest.$ac_objext; then
11068  cat >conftest.$ac_ext <<_ACEOF
11069/* confdefs.h.  */
11070_ACEOF
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
11073/* end confdefs.h.  */
11074$ac_includes_default
11075int
11076main ()
11077{
11078if (sizeof ((int16_t)))
11079	  return 0;
11080  ;
11081  return 0;
11082}
11083_ACEOF
11084rm -f conftest.$ac_objext
11085if { (ac_try="$ac_compile"
11086case "(($ac_try" in
11087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088  *) ac_try_echo=$ac_try;;
11089esac
11090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11091$as_echo "$ac_try_echo") >&5
11092  (eval "$ac_compile") 2>conftest.er1
11093  ac_status=$?
11094  grep -v '^ *+' conftest.er1 >conftest.err
11095  rm -f conftest.er1
11096  cat conftest.err >&5
11097  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098  (exit $ac_status); } && {
11099	 test -z "$ac_c_werror_flag" ||
11100	 test ! -s conftest.err
11101       } && test -s conftest.$ac_objext; then
11102  :
11103else
11104  $as_echo "$as_me: failed program was:" >&5
11105sed 's/^/| /' conftest.$ac_ext >&5
11106
11107	ac_cv_type_int16_t=yes
11108fi
11109
11110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111else
11112  $as_echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
11114
11115
11116fi
11117
11118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119fi
11120{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11121$as_echo "$ac_cv_type_int16_t" >&6; }
11122if test "x$ac_cv_type_int16_t" = x""yes; then
11123
11124cat >>confdefs.h <<_ACEOF
11125#define HAVE_INT16_T 1
11126_ACEOF
11127
11128
11129fi
11130{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11131$as_echo_n "checking for int32_t... " >&6; }
11132if test "${ac_cv_type_int32_t+set}" = set; then
11133  $as_echo_n "(cached) " >&6
11134else
11135  ac_cv_type_int32_t=no
11136cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h.  */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h.  */
11142$ac_includes_default
11143int
11144main ()
11145{
11146if (sizeof (int32_t))
11147       return 0;
11148  ;
11149  return 0;
11150}
11151_ACEOF
11152rm -f conftest.$ac_objext
11153if { (ac_try="$ac_compile"
11154case "(($ac_try" in
11155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156  *) ac_try_echo=$ac_try;;
11157esac
11158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11159$as_echo "$ac_try_echo") >&5
11160  (eval "$ac_compile") 2>conftest.er1
11161  ac_status=$?
11162  grep -v '^ *+' conftest.er1 >conftest.err
11163  rm -f conftest.er1
11164  cat conftest.err >&5
11165  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166  (exit $ac_status); } && {
11167	 test -z "$ac_c_werror_flag" ||
11168	 test ! -s conftest.err
11169       } && test -s conftest.$ac_objext; then
11170  cat >conftest.$ac_ext <<_ACEOF
11171/* confdefs.h.  */
11172_ACEOF
11173cat confdefs.h >>conftest.$ac_ext
11174cat >>conftest.$ac_ext <<_ACEOF
11175/* end confdefs.h.  */
11176$ac_includes_default
11177int
11178main ()
11179{
11180if (sizeof ((int32_t)))
11181	  return 0;
11182  ;
11183  return 0;
11184}
11185_ACEOF
11186rm -f conftest.$ac_objext
11187if { (ac_try="$ac_compile"
11188case "(($ac_try" in
11189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190  *) ac_try_echo=$ac_try;;
11191esac
11192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11193$as_echo "$ac_try_echo") >&5
11194  (eval "$ac_compile") 2>conftest.er1
11195  ac_status=$?
11196  grep -v '^ *+' conftest.er1 >conftest.err
11197  rm -f conftest.er1
11198  cat conftest.err >&5
11199  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200  (exit $ac_status); } && {
11201	 test -z "$ac_c_werror_flag" ||
11202	 test ! -s conftest.err
11203       } && test -s conftest.$ac_objext; then
11204  :
11205else
11206  $as_echo "$as_me: failed program was:" >&5
11207sed 's/^/| /' conftest.$ac_ext >&5
11208
11209	ac_cv_type_int32_t=yes
11210fi
11211
11212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11213else
11214  $as_echo "$as_me: failed program was:" >&5
11215sed 's/^/| /' conftest.$ac_ext >&5
11216
11217
11218fi
11219
11220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221fi
11222{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11223$as_echo "$ac_cv_type_int32_t" >&6; }
11224if test "x$ac_cv_type_int32_t" = x""yes; then
11225
11226cat >>confdefs.h <<_ACEOF
11227#define HAVE_INT32_T 1
11228_ACEOF
11229
11230
11231fi
11232{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11233$as_echo_n "checking for int64_t... " >&6; }
11234if test "${ac_cv_type_int64_t+set}" = set; then
11235  $as_echo_n "(cached) " >&6
11236else
11237  ac_cv_type_int64_t=no
11238cat >conftest.$ac_ext <<_ACEOF
11239/* confdefs.h.  */
11240_ACEOF
11241cat confdefs.h >>conftest.$ac_ext
11242cat >>conftest.$ac_ext <<_ACEOF
11243/* end confdefs.h.  */
11244$ac_includes_default
11245int
11246main ()
11247{
11248if (sizeof (int64_t))
11249       return 0;
11250  ;
11251  return 0;
11252}
11253_ACEOF
11254rm -f conftest.$ac_objext
11255if { (ac_try="$ac_compile"
11256case "(($ac_try" in
11257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258  *) ac_try_echo=$ac_try;;
11259esac
11260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11261$as_echo "$ac_try_echo") >&5
11262  (eval "$ac_compile") 2>conftest.er1
11263  ac_status=$?
11264  grep -v '^ *+' conftest.er1 >conftest.err
11265  rm -f conftest.er1
11266  cat conftest.err >&5
11267  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268  (exit $ac_status); } && {
11269	 test -z "$ac_c_werror_flag" ||
11270	 test ! -s conftest.err
11271       } && test -s conftest.$ac_objext; then
11272  cat >conftest.$ac_ext <<_ACEOF
11273/* confdefs.h.  */
11274_ACEOF
11275cat confdefs.h >>conftest.$ac_ext
11276cat >>conftest.$ac_ext <<_ACEOF
11277/* end confdefs.h.  */
11278$ac_includes_default
11279int
11280main ()
11281{
11282if (sizeof ((int64_t)))
11283	  return 0;
11284  ;
11285  return 0;
11286}
11287_ACEOF
11288rm -f conftest.$ac_objext
11289if { (ac_try="$ac_compile"
11290case "(($ac_try" in
11291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292  *) ac_try_echo=$ac_try;;
11293esac
11294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11295$as_echo "$ac_try_echo") >&5
11296  (eval "$ac_compile") 2>conftest.er1
11297  ac_status=$?
11298  grep -v '^ *+' conftest.er1 >conftest.err
11299  rm -f conftest.er1
11300  cat conftest.err >&5
11301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302  (exit $ac_status); } && {
11303	 test -z "$ac_c_werror_flag" ||
11304	 test ! -s conftest.err
11305       } && test -s conftest.$ac_objext; then
11306  :
11307else
11308  $as_echo "$as_me: failed program was:" >&5
11309sed 's/^/| /' conftest.$ac_ext >&5
11310
11311	ac_cv_type_int64_t=yes
11312fi
11313
11314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315else
11316  $as_echo "$as_me: failed program was:" >&5
11317sed 's/^/| /' conftest.$ac_ext >&5
11318
11319
11320fi
11321
11322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323fi
11324{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11325$as_echo "$ac_cv_type_int64_t" >&6; }
11326if test "x$ac_cv_type_int64_t" = x""yes; then
11327
11328cat >>confdefs.h <<_ACEOF
11329#define HAVE_INT64_T 1
11330_ACEOF
11331
11332
11333fi
11334{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11335$as_echo_n "checking for intptr_t... " >&6; }
11336if test "${ac_cv_type_intptr_t+set}" = set; then
11337  $as_echo_n "(cached) " >&6
11338else
11339  ac_cv_type_intptr_t=no
11340cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h.  */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h.  */
11346$ac_includes_default
11347int
11348main ()
11349{
11350if (sizeof (intptr_t))
11351       return 0;
11352  ;
11353  return 0;
11354}
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (ac_try="$ac_compile"
11358case "(($ac_try" in
11359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360  *) ac_try_echo=$ac_try;;
11361esac
11362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11363$as_echo "$ac_try_echo") >&5
11364  (eval "$ac_compile") 2>conftest.er1
11365  ac_status=$?
11366  grep -v '^ *+' conftest.er1 >conftest.err
11367  rm -f conftest.er1
11368  cat conftest.err >&5
11369  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370  (exit $ac_status); } && {
11371	 test -z "$ac_c_werror_flag" ||
11372	 test ! -s conftest.err
11373       } && test -s conftest.$ac_objext; then
11374  cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h.  */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h.  */
11380$ac_includes_default
11381int
11382main ()
11383{
11384if (sizeof ((intptr_t)))
11385	  return 0;
11386  ;
11387  return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext
11391if { (ac_try="$ac_compile"
11392case "(($ac_try" in
11393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394  *) ac_try_echo=$ac_try;;
11395esac
11396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397$as_echo "$ac_try_echo") >&5
11398  (eval "$ac_compile") 2>conftest.er1
11399  ac_status=$?
11400  grep -v '^ *+' conftest.er1 >conftest.err
11401  rm -f conftest.er1
11402  cat conftest.err >&5
11403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404  (exit $ac_status); } && {
11405	 test -z "$ac_c_werror_flag" ||
11406	 test ! -s conftest.err
11407       } && test -s conftest.$ac_objext; then
11408  :
11409else
11410  $as_echo "$as_me: failed program was:" >&5
11411sed 's/^/| /' conftest.$ac_ext >&5
11412
11413	ac_cv_type_intptr_t=yes
11414fi
11415
11416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11417else
11418  $as_echo "$as_me: failed program was:" >&5
11419sed 's/^/| /' conftest.$ac_ext >&5
11420
11421
11422fi
11423
11424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425fi
11426{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11427$as_echo "$ac_cv_type_intptr_t" >&6; }
11428if test "x$ac_cv_type_intptr_t" = x""yes; then
11429
11430cat >>confdefs.h <<_ACEOF
11431#define HAVE_INTPTR_T 1
11432_ACEOF
11433
11434
11435fi
11436{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11437$as_echo_n "checking for uint8_t... " >&6; }
11438if test "${ac_cv_type_uint8_t+set}" = set; then
11439  $as_echo_n "(cached) " >&6
11440else
11441  ac_cv_type_uint8_t=no
11442cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h.  */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h.  */
11448$ac_includes_default
11449int
11450main ()
11451{
11452if (sizeof (uint8_t))
11453       return 0;
11454  ;
11455  return 0;
11456}
11457_ACEOF
11458rm -f conftest.$ac_objext
11459if { (ac_try="$ac_compile"
11460case "(($ac_try" in
11461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462  *) ac_try_echo=$ac_try;;
11463esac
11464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11465$as_echo "$ac_try_echo") >&5
11466  (eval "$ac_compile") 2>conftest.er1
11467  ac_status=$?
11468  grep -v '^ *+' conftest.er1 >conftest.err
11469  rm -f conftest.er1
11470  cat conftest.err >&5
11471  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472  (exit $ac_status); } && {
11473	 test -z "$ac_c_werror_flag" ||
11474	 test ! -s conftest.err
11475       } && test -s conftest.$ac_objext; then
11476  cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h.  */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h.  */
11482$ac_includes_default
11483int
11484main ()
11485{
11486if (sizeof ((uint8_t)))
11487	  return 0;
11488  ;
11489  return 0;
11490}
11491_ACEOF
11492rm -f conftest.$ac_objext
11493if { (ac_try="$ac_compile"
11494case "(($ac_try" in
11495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496  *) ac_try_echo=$ac_try;;
11497esac
11498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11499$as_echo "$ac_try_echo") >&5
11500  (eval "$ac_compile") 2>conftest.er1
11501  ac_status=$?
11502  grep -v '^ *+' conftest.er1 >conftest.err
11503  rm -f conftest.er1
11504  cat conftest.err >&5
11505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506  (exit $ac_status); } && {
11507	 test -z "$ac_c_werror_flag" ||
11508	 test ! -s conftest.err
11509       } && test -s conftest.$ac_objext; then
11510  :
11511else
11512  $as_echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
11515	ac_cv_type_uint8_t=yes
11516fi
11517
11518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11519else
11520  $as_echo "$as_me: failed program was:" >&5
11521sed 's/^/| /' conftest.$ac_ext >&5
11522
11523
11524fi
11525
11526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527fi
11528{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11529$as_echo "$ac_cv_type_uint8_t" >&6; }
11530if test "x$ac_cv_type_uint8_t" = x""yes; then
11531
11532cat >>confdefs.h <<_ACEOF
11533#define HAVE_UINT8_T 1
11534_ACEOF
11535
11536
11537fi
11538{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11539$as_echo_n "checking for uint16_t... " >&6; }
11540if test "${ac_cv_type_uint16_t+set}" = set; then
11541  $as_echo_n "(cached) " >&6
11542else
11543  ac_cv_type_uint16_t=no
11544cat >conftest.$ac_ext <<_ACEOF
11545/* confdefs.h.  */
11546_ACEOF
11547cat confdefs.h >>conftest.$ac_ext
11548cat >>conftest.$ac_ext <<_ACEOF
11549/* end confdefs.h.  */
11550$ac_includes_default
11551int
11552main ()
11553{
11554if (sizeof (uint16_t))
11555       return 0;
11556  ;
11557  return 0;
11558}
11559_ACEOF
11560rm -f conftest.$ac_objext
11561if { (ac_try="$ac_compile"
11562case "(($ac_try" in
11563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564  *) ac_try_echo=$ac_try;;
11565esac
11566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567$as_echo "$ac_try_echo") >&5
11568  (eval "$ac_compile") 2>conftest.er1
11569  ac_status=$?
11570  grep -v '^ *+' conftest.er1 >conftest.err
11571  rm -f conftest.er1
11572  cat conftest.err >&5
11573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574  (exit $ac_status); } && {
11575	 test -z "$ac_c_werror_flag" ||
11576	 test ! -s conftest.err
11577       } && test -s conftest.$ac_objext; then
11578  cat >conftest.$ac_ext <<_ACEOF
11579/* confdefs.h.  */
11580_ACEOF
11581cat confdefs.h >>conftest.$ac_ext
11582cat >>conftest.$ac_ext <<_ACEOF
11583/* end confdefs.h.  */
11584$ac_includes_default
11585int
11586main ()
11587{
11588if (sizeof ((uint16_t)))
11589	  return 0;
11590  ;
11591  return 0;
11592}
11593_ACEOF
11594rm -f conftest.$ac_objext
11595if { (ac_try="$ac_compile"
11596case "(($ac_try" in
11597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598  *) ac_try_echo=$ac_try;;
11599esac
11600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11601$as_echo "$ac_try_echo") >&5
11602  (eval "$ac_compile") 2>conftest.er1
11603  ac_status=$?
11604  grep -v '^ *+' conftest.er1 >conftest.err
11605  rm -f conftest.er1
11606  cat conftest.err >&5
11607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608  (exit $ac_status); } && {
11609	 test -z "$ac_c_werror_flag" ||
11610	 test ! -s conftest.err
11611       } && test -s conftest.$ac_objext; then
11612  :
11613else
11614  $as_echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
11617	ac_cv_type_uint16_t=yes
11618fi
11619
11620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621else
11622  $as_echo "$as_me: failed program was:" >&5
11623sed 's/^/| /' conftest.$ac_ext >&5
11624
11625
11626fi
11627
11628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629fi
11630{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11631$as_echo "$ac_cv_type_uint16_t" >&6; }
11632if test "x$ac_cv_type_uint16_t" = x""yes; then
11633
11634cat >>confdefs.h <<_ACEOF
11635#define HAVE_UINT16_T 1
11636_ACEOF
11637
11638
11639fi
11640{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11641$as_echo_n "checking for uint32_t... " >&6; }
11642if test "${ac_cv_type_uint32_t+set}" = set; then
11643  $as_echo_n "(cached) " >&6
11644else
11645  ac_cv_type_uint32_t=no
11646cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h.  */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h.  */
11652$ac_includes_default
11653int
11654main ()
11655{
11656if (sizeof (uint32_t))
11657       return 0;
11658  ;
11659  return 0;
11660}
11661_ACEOF
11662rm -f conftest.$ac_objext
11663if { (ac_try="$ac_compile"
11664case "(($ac_try" in
11665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666  *) ac_try_echo=$ac_try;;
11667esac
11668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11669$as_echo "$ac_try_echo") >&5
11670  (eval "$ac_compile") 2>conftest.er1
11671  ac_status=$?
11672  grep -v '^ *+' conftest.er1 >conftest.err
11673  rm -f conftest.er1
11674  cat conftest.err >&5
11675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676  (exit $ac_status); } && {
11677	 test -z "$ac_c_werror_flag" ||
11678	 test ! -s conftest.err
11679       } && test -s conftest.$ac_objext; then
11680  cat >conftest.$ac_ext <<_ACEOF
11681/* confdefs.h.  */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h.  */
11686$ac_includes_default
11687int
11688main ()
11689{
11690if (sizeof ((uint32_t)))
11691	  return 0;
11692  ;
11693  return 0;
11694}
11695_ACEOF
11696rm -f conftest.$ac_objext
11697if { (ac_try="$ac_compile"
11698case "(($ac_try" in
11699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700  *) ac_try_echo=$ac_try;;
11701esac
11702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11703$as_echo "$ac_try_echo") >&5
11704  (eval "$ac_compile") 2>conftest.er1
11705  ac_status=$?
11706  grep -v '^ *+' conftest.er1 >conftest.err
11707  rm -f conftest.er1
11708  cat conftest.err >&5
11709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710  (exit $ac_status); } && {
11711	 test -z "$ac_c_werror_flag" ||
11712	 test ! -s conftest.err
11713       } && test -s conftest.$ac_objext; then
11714  :
11715else
11716  $as_echo "$as_me: failed program was:" >&5
11717sed 's/^/| /' conftest.$ac_ext >&5
11718
11719	ac_cv_type_uint32_t=yes
11720fi
11721
11722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723else
11724  $as_echo "$as_me: failed program was:" >&5
11725sed 's/^/| /' conftest.$ac_ext >&5
11726
11727
11728fi
11729
11730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731fi
11732{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11733$as_echo "$ac_cv_type_uint32_t" >&6; }
11734if test "x$ac_cv_type_uint32_t" = x""yes; then
11735
11736cat >>confdefs.h <<_ACEOF
11737#define HAVE_UINT32_T 1
11738_ACEOF
11739
11740
11741fi
11742{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11743$as_echo_n "checking for uint64_t... " >&6; }
11744if test "${ac_cv_type_uint64_t+set}" = set; then
11745  $as_echo_n "(cached) " >&6
11746else
11747  ac_cv_type_uint64_t=no
11748cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h.  */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h.  */
11754$ac_includes_default
11755int
11756main ()
11757{
11758if (sizeof (uint64_t))
11759       return 0;
11760  ;
11761  return 0;
11762}
11763_ACEOF
11764rm -f conftest.$ac_objext
11765if { (ac_try="$ac_compile"
11766case "(($ac_try" in
11767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768  *) ac_try_echo=$ac_try;;
11769esac
11770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11771$as_echo "$ac_try_echo") >&5
11772  (eval "$ac_compile") 2>conftest.er1
11773  ac_status=$?
11774  grep -v '^ *+' conftest.er1 >conftest.err
11775  rm -f conftest.er1
11776  cat conftest.err >&5
11777  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778  (exit $ac_status); } && {
11779	 test -z "$ac_c_werror_flag" ||
11780	 test ! -s conftest.err
11781       } && test -s conftest.$ac_objext; then
11782  cat >conftest.$ac_ext <<_ACEOF
11783/* confdefs.h.  */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h.  */
11788$ac_includes_default
11789int
11790main ()
11791{
11792if (sizeof ((uint64_t)))
11793	  return 0;
11794  ;
11795  return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext
11799if { (ac_try="$ac_compile"
11800case "(($ac_try" in
11801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802  *) ac_try_echo=$ac_try;;
11803esac
11804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11805$as_echo "$ac_try_echo") >&5
11806  (eval "$ac_compile") 2>conftest.er1
11807  ac_status=$?
11808  grep -v '^ *+' conftest.er1 >conftest.err
11809  rm -f conftest.er1
11810  cat conftest.err >&5
11811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812  (exit $ac_status); } && {
11813	 test -z "$ac_c_werror_flag" ||
11814	 test ! -s conftest.err
11815       } && test -s conftest.$ac_objext; then
11816  :
11817else
11818  $as_echo "$as_me: failed program was:" >&5
11819sed 's/^/| /' conftest.$ac_ext >&5
11820
11821	ac_cv_type_uint64_t=yes
11822fi
11823
11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825else
11826  $as_echo "$as_me: failed program was:" >&5
11827sed 's/^/| /' conftest.$ac_ext >&5
11828
11829
11830fi
11831
11832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833fi
11834{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11835$as_echo "$ac_cv_type_uint64_t" >&6; }
11836if test "x$ac_cv_type_uint64_t" = x""yes; then
11837
11838cat >>confdefs.h <<_ACEOF
11839#define HAVE_UINT64_T 1
11840_ACEOF
11841
11842
11843fi
11844{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11845$as_echo_n "checking for uintptr_t... " >&6; }
11846if test "${ac_cv_type_uintptr_t+set}" = set; then
11847  $as_echo_n "(cached) " >&6
11848else
11849  ac_cv_type_uintptr_t=no
11850cat >conftest.$ac_ext <<_ACEOF
11851/* confdefs.h.  */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h.  */
11856$ac_includes_default
11857int
11858main ()
11859{
11860if (sizeof (uintptr_t))
11861       return 0;
11862  ;
11863  return 0;
11864}
11865_ACEOF
11866rm -f conftest.$ac_objext
11867if { (ac_try="$ac_compile"
11868case "(($ac_try" in
11869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870  *) ac_try_echo=$ac_try;;
11871esac
11872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11873$as_echo "$ac_try_echo") >&5
11874  (eval "$ac_compile") 2>conftest.er1
11875  ac_status=$?
11876  grep -v '^ *+' conftest.er1 >conftest.err
11877  rm -f conftest.er1
11878  cat conftest.err >&5
11879  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880  (exit $ac_status); } && {
11881	 test -z "$ac_c_werror_flag" ||
11882	 test ! -s conftest.err
11883       } && test -s conftest.$ac_objext; then
11884  cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h.  */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h.  */
11890$ac_includes_default
11891int
11892main ()
11893{
11894if (sizeof ((uintptr_t)))
11895	  return 0;
11896  ;
11897  return 0;
11898}
11899_ACEOF
11900rm -f conftest.$ac_objext
11901if { (ac_try="$ac_compile"
11902case "(($ac_try" in
11903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904  *) ac_try_echo=$ac_try;;
11905esac
11906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11907$as_echo "$ac_try_echo") >&5
11908  (eval "$ac_compile") 2>conftest.er1
11909  ac_status=$?
11910  grep -v '^ *+' conftest.er1 >conftest.err
11911  rm -f conftest.er1
11912  cat conftest.err >&5
11913  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914  (exit $ac_status); } && {
11915	 test -z "$ac_c_werror_flag" ||
11916	 test ! -s conftest.err
11917       } && test -s conftest.$ac_objext; then
11918  :
11919else
11920  $as_echo "$as_me: failed program was:" >&5
11921sed 's/^/| /' conftest.$ac_ext >&5
11922
11923	ac_cv_type_uintptr_t=yes
11924fi
11925
11926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927else
11928  $as_echo "$as_me: failed program was:" >&5
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
11931
11932fi
11933
11934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935fi
11936{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11937$as_echo "$ac_cv_type_uintptr_t" >&6; }
11938if test "x$ac_cv_type_uintptr_t" = x""yes; then
11939
11940cat >>confdefs.h <<_ACEOF
11941#define HAVE_UINTPTR_T 1
11942_ACEOF
11943
11944
11945fi
11946
11947
11948#########
11949# Check for needed/wanted headers
11950
11951
11952
11953
11954for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
11955do
11956as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11959$as_echo_n "checking for $ac_header... " >&6; }
11960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11961  $as_echo_n "(cached) " >&6
11962fi
11963ac_res=`eval 'as_val=${'$as_ac_Header'}
11964		 $as_echo "$as_val"'`
11965	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11966$as_echo "$ac_res" >&6; }
11967else
11968  # Is the header compilable?
11969{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11970$as_echo_n "checking $ac_header usability... " >&6; }
11971cat >conftest.$ac_ext <<_ACEOF
11972/* confdefs.h.  */
11973_ACEOF
11974cat confdefs.h >>conftest.$ac_ext
11975cat >>conftest.$ac_ext <<_ACEOF
11976/* end confdefs.h.  */
11977$ac_includes_default
11978#include <$ac_header>
11979_ACEOF
11980rm -f conftest.$ac_objext
11981if { (ac_try="$ac_compile"
11982case "(($ac_try" in
11983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984  *) ac_try_echo=$ac_try;;
11985esac
11986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11987$as_echo "$ac_try_echo") >&5
11988  (eval "$ac_compile") 2>conftest.er1
11989  ac_status=$?
11990  grep -v '^ *+' conftest.er1 >conftest.err
11991  rm -f conftest.er1
11992  cat conftest.err >&5
11993  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994  (exit $ac_status); } && {
11995	 test -z "$ac_c_werror_flag" ||
11996	 test ! -s conftest.err
11997       } && test -s conftest.$ac_objext; then
11998  ac_header_compiler=yes
11999else
12000  $as_echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
12002
12003	ac_header_compiler=no
12004fi
12005
12006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12007{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12008$as_echo "$ac_header_compiler" >&6; }
12009
12010# Is the header present?
12011{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12012$as_echo_n "checking $ac_header presence... " >&6; }
12013cat >conftest.$ac_ext <<_ACEOF
12014/* confdefs.h.  */
12015_ACEOF
12016cat confdefs.h >>conftest.$ac_ext
12017cat >>conftest.$ac_ext <<_ACEOF
12018/* end confdefs.h.  */
12019#include <$ac_header>
12020_ACEOF
12021if { (ac_try="$ac_cpp conftest.$ac_ext"
12022case "(($ac_try" in
12023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024  *) ac_try_echo=$ac_try;;
12025esac
12026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12027$as_echo "$ac_try_echo") >&5
12028  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12029  ac_status=$?
12030  grep -v '^ *+' conftest.er1 >conftest.err
12031  rm -f conftest.er1
12032  cat conftest.err >&5
12033  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034  (exit $ac_status); } >/dev/null && {
12035	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12036	 test ! -s conftest.err
12037       }; then
12038  ac_header_preproc=yes
12039else
12040  $as_echo "$as_me: failed program was:" >&5
12041sed 's/^/| /' conftest.$ac_ext >&5
12042
12043  ac_header_preproc=no
12044fi
12045
12046rm -f conftest.err conftest.$ac_ext
12047{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12048$as_echo "$ac_header_preproc" >&6; }
12049
12050# So?  What about this header?
12051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12052  yes:no: )
12053    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12054$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12055    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12056$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12057    ac_header_preproc=yes
12058    ;;
12059  no:yes:* )
12060    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12061$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12062    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12063$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12064    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12065$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12066    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12067$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12068    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12069$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12070    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12071$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12072
12073    ;;
12074esac
12075{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12076$as_echo_n "checking for $ac_header... " >&6; }
12077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12078  $as_echo_n "(cached) " >&6
12079else
12080  eval "$as_ac_Header=\$ac_header_preproc"
12081fi
12082ac_res=`eval 'as_val=${'$as_ac_Header'}
12083		 $as_echo "$as_val"'`
12084	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12085$as_echo "$ac_res" >&6; }
12086
12087fi
12088as_val=`eval 'as_val=${'$as_ac_Header'}
12089		 $as_echo "$as_val"'`
12090   if test "x$as_val" = x""yes; then
12091  cat >>confdefs.h <<_ACEOF
12092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12093_ACEOF
12094
12095fi
12096
12097done
12098
12099
12100#########
12101# Figure out whether or not we have these functions
12102#
12103
12104
12105
12106
12107
12108for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
12109do
12110as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12111{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12112$as_echo_n "checking for $ac_func... " >&6; }
12113if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12114  $as_echo_n "(cached) " >&6
12115else
12116  cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h.  */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h.  */
12122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12123   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12124#define $ac_func innocuous_$ac_func
12125
12126/* System header to define __stub macros and hopefully few prototypes,
12127    which can conflict with char $ac_func (); below.
12128    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12129    <limits.h> exists even on freestanding compilers.  */
12130
12131#ifdef __STDC__
12132# include <limits.h>
12133#else
12134# include <assert.h>
12135#endif
12136
12137#undef $ac_func
12138
12139/* Override any GCC internal prototype to avoid an error.
12140   Use char because int might match the return type of a GCC
12141   builtin and then its argument prototype would still apply.  */
12142#ifdef __cplusplus
12143extern "C"
12144#endif
12145char $ac_func ();
12146/* The GNU C library defines this for functions which it implements
12147    to always fail with ENOSYS.  Some functions are actually named
12148    something starting with __ and the normal name is an alias.  */
12149#if defined __stub_$ac_func || defined __stub___$ac_func
12150choke me
12151#endif
12152
12153int
12154main ()
12155{
12156return $ac_func ();
12157  ;
12158  return 0;
12159}
12160_ACEOF
12161rm -f conftest.$ac_objext conftest$ac_exeext
12162if { (ac_try="$ac_link"
12163case "(($ac_try" in
12164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165  *) ac_try_echo=$ac_try;;
12166esac
12167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12168$as_echo "$ac_try_echo") >&5
12169  (eval "$ac_link") 2>conftest.er1
12170  ac_status=$?
12171  grep -v '^ *+' conftest.er1 >conftest.err
12172  rm -f conftest.er1
12173  cat conftest.err >&5
12174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175  (exit $ac_status); } && {
12176	 test -z "$ac_c_werror_flag" ||
12177	 test ! -s conftest.err
12178       } && test -s conftest$ac_exeext && {
12179	 test "$cross_compiling" = yes ||
12180	 $as_test_x conftest$ac_exeext
12181       }; then
12182  eval "$as_ac_var=yes"
12183else
12184  $as_echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
12187	eval "$as_ac_var=no"
12188fi
12189
12190rm -rf conftest.dSYM
12191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12192      conftest$ac_exeext conftest.$ac_ext
12193fi
12194ac_res=`eval 'as_val=${'$as_ac_var'}
12195		 $as_echo "$as_val"'`
12196	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12197$as_echo "$ac_res" >&6; }
12198as_val=`eval 'as_val=${'$as_ac_var'}
12199		 $as_echo "$as_val"'`
12200   if test "x$as_val" = x""yes; then
12201  cat >>confdefs.h <<_ACEOF
12202#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12203_ACEOF
12204
12205fi
12206done
12207
12208
12209#########
12210# By default, we use the amalgamation (this may be changed below...)
12211#
12212USE_AMALGAMATION=1
12213
12214#########
12215# See whether we can run specific tclsh versions known to work well;
12216# if not, then we fall back to plain tclsh.
12217# TODO: try other versions before falling back?
12218#
12219for ac_prog in tclsh8.4 tclsh
12220do
12221  # Extract the first word of "$ac_prog", so it can be a program name with args.
12222set dummy $ac_prog; ac_word=$2
12223{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12224$as_echo_n "checking for $ac_word... " >&6; }
12225if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
12226  $as_echo_n "(cached) " >&6
12227else
12228  if test -n "$TCLSH_CMD"; then
12229  ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12230else
12231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234  IFS=$as_save_IFS
12235  test -z "$as_dir" && as_dir=.
12236  for ac_exec_ext in '' $ac_executable_extensions; do
12237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12238    ac_cv_prog_TCLSH_CMD="$ac_prog"
12239    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12240    break 2
12241  fi
12242done
12243done
12244IFS=$as_save_IFS
12245
12246fi
12247fi
12248TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12249if test -n "$TCLSH_CMD"; then
12250  { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12251$as_echo "$TCLSH_CMD" >&6; }
12252else
12253  { $as_echo "$as_me:$LINENO: result: no" >&5
12254$as_echo "no" >&6; }
12255fi
12256
12257
12258  test -n "$TCLSH_CMD" && break
12259done
12260test -n "$TCLSH_CMD" || TCLSH_CMD="none"
12261
12262if test "$TCLSH_CMD" = "none"; then
12263  # If we can't find a local tclsh, then building the amalgamation will fail.
12264  # We act as though --disable-amalgamation has been used.
12265  echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12266  USE_AMALGAMATION=0
12267  TCLSH_CMD="tclsh"
12268fi
12269
12270
12271
12272if test "x${TCLLIBDIR+set}" != "xset" ; then
12273  TCLLIBDIR='$(libdir)'
12274  for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12275    TCLLIBDIR=$i
12276    break
12277  done
12278  TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12279fi
12280
12281
12282#########
12283# Set up an appropriate program prefix
12284#
12285if test "$program_prefix" = "NONE"; then
12286  program_prefix=""
12287fi
12288
12289
12290VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12291{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
12292$as_echo "$as_me: Version set to $VERSION" >&6;}
12293
12294RELEASE=`cat $srcdir/VERSION`
12295{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
12296$as_echo "$as_me: Release set to $RELEASE" >&6;}
12297
12298VERSION_NUMBER=`cat $srcdir/VERSION \
12299                           | sed 's/[^0-9]/ /g' \
12300                | awk '{printf "%d%03d%03d",$1,$2,$3}'`
12301{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
12302$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
12303
12304
12305#########
12306# Check to see if the --with-hints=FILE option is used.  If there is none,
12307# then check for a files named "$host.hints" and ../$hosts.hints where
12308# $host is the hostname of the build system.  If still no hints are
12309# found, try looking in $system.hints and ../$system.hints where
12310# $system is the result of uname -s.
12311#
12312
12313# Check whether --with-hints was given.
12314if test "${with_hints+set}" = set; then
12315  withval=$with_hints; hints=$withval
12316fi
12317
12318if test "$hints" = ""; then
12319  host=`hostname | sed 's/\..*//'`
12320  if test -r $host.hints; then
12321    hints=$host.hints
12322  else
12323     if test -r ../$host.hints; then
12324       hints=../$host.hints
12325     fi
12326  fi
12327fi
12328if test "$hints" = ""; then
12329  sys=`uname -s`
12330  if test -r $sys.hints; then
12331    hints=$sys.hints
12332  else
12333     if test -r ../$sys.hints; then
12334       hints=../$sys.hints
12335     fi
12336  fi
12337fi
12338if test "$hints" != ""; then
12339  { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12340$as_echo "reading hints from $hints" >&6; }
12341  . $hints
12342fi
12343
12344#########
12345# Locate a compiler for the build machine.  This compiler should
12346# generate command-line programs that run on the build machine.
12347#
12348if test x"$cross_compiling" = xno; then
12349	BUILD_CC=$CC
12350	BUILD_CFLAGS=$CFLAGS
12351else
12352	if test "${BUILD_CC+set}" != set; then
12353		for ac_prog in gcc cc cl
12354do
12355  # Extract the first word of "$ac_prog", so it can be a program name with args.
12356set dummy $ac_prog; ac_word=$2
12357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12358$as_echo_n "checking for $ac_word... " >&6; }
12359if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12360  $as_echo_n "(cached) " >&6
12361else
12362  if test -n "$BUILD_CC"; then
12363  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12364else
12365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366for as_dir in $PATH
12367do
12368  IFS=$as_save_IFS
12369  test -z "$as_dir" && as_dir=.
12370  for ac_exec_ext in '' $ac_executable_extensions; do
12371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12372    ac_cv_prog_BUILD_CC="$ac_prog"
12373    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12374    break 2
12375  fi
12376done
12377done
12378IFS=$as_save_IFS
12379
12380fi
12381fi
12382BUILD_CC=$ac_cv_prog_BUILD_CC
12383if test -n "$BUILD_CC"; then
12384  { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12385$as_echo "$BUILD_CC" >&6; }
12386else
12387  { $as_echo "$as_me:$LINENO: result: no" >&5
12388$as_echo "no" >&6; }
12389fi
12390
12391
12392  test -n "$BUILD_CC" && break
12393done
12394
12395	fi
12396	if test "${BUILD_CFLAGS+set}" != set; then
12397		BUILD_CFLAGS="-g"
12398	fi
12399fi
12400
12401
12402##########
12403# Do we want to support multithreaded use of sqlite
12404#
12405# Check whether --enable-threadsafe was given.
12406if test "${enable_threadsafe+set}" = set; then
12407  enableval=$enable_threadsafe;
12408else
12409  enable_threadsafe=yes
12410fi
12411
12412{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12413$as_echo_n "checking whether to support threadsafe operation... " >&6; }
12414if test "$enable_threadsafe" = "no"; then
12415  SQLITE_THREADSAFE=0
12416  { $as_echo "$as_me:$LINENO: result: no" >&5
12417$as_echo "no" >&6; }
12418else
12419  SQLITE_THREADSAFE=1
12420  { $as_echo "$as_me:$LINENO: result: yes" >&5
12421$as_echo "yes" >&6; }
12422fi
12423
12424
12425if test "$SQLITE_THREADSAFE" = "1"; then
12426  { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12427$as_echo_n "checking for library containing pthread_create... " >&6; }
12428if test "${ac_cv_search_pthread_create+set}" = set; then
12429  $as_echo_n "(cached) " >&6
12430else
12431  ac_func_search_save_LIBS=$LIBS
12432cat >conftest.$ac_ext <<_ACEOF
12433/* confdefs.h.  */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
12437/* end confdefs.h.  */
12438
12439/* Override any GCC internal prototype to avoid an error.
12440   Use char because int might match the return type of a GCC
12441   builtin and then its argument prototype would still apply.  */
12442#ifdef __cplusplus
12443extern "C"
12444#endif
12445char pthread_create ();
12446int
12447main ()
12448{
12449return pthread_create ();
12450  ;
12451  return 0;
12452}
12453_ACEOF
12454for ac_lib in '' pthread; do
12455  if test -z "$ac_lib"; then
12456    ac_res="none required"
12457  else
12458    ac_res=-l$ac_lib
12459    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12460  fi
12461  rm -f conftest.$ac_objext conftest$ac_exeext
12462if { (ac_try="$ac_link"
12463case "(($ac_try" in
12464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465  *) ac_try_echo=$ac_try;;
12466esac
12467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12468$as_echo "$ac_try_echo") >&5
12469  (eval "$ac_link") 2>conftest.er1
12470  ac_status=$?
12471  grep -v '^ *+' conftest.er1 >conftest.err
12472  rm -f conftest.er1
12473  cat conftest.err >&5
12474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475  (exit $ac_status); } && {
12476	 test -z "$ac_c_werror_flag" ||
12477	 test ! -s conftest.err
12478       } && test -s conftest$ac_exeext && {
12479	 test "$cross_compiling" = yes ||
12480	 $as_test_x conftest$ac_exeext
12481       }; then
12482  ac_cv_search_pthread_create=$ac_res
12483else
12484  $as_echo "$as_me: failed program was:" >&5
12485sed 's/^/| /' conftest.$ac_ext >&5
12486
12487
12488fi
12489
12490rm -rf conftest.dSYM
12491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12492      conftest$ac_exeext
12493  if test "${ac_cv_search_pthread_create+set}" = set; then
12494  break
12495fi
12496done
12497if test "${ac_cv_search_pthread_create+set}" = set; then
12498  :
12499else
12500  ac_cv_search_pthread_create=no
12501fi
12502rm conftest.$ac_ext
12503LIBS=$ac_func_search_save_LIBS
12504fi
12505{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12506$as_echo "$ac_cv_search_pthread_create" >&6; }
12507ac_res=$ac_cv_search_pthread_create
12508if test "$ac_res" != no; then
12509  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12510
12511fi
12512
12513fi
12514
12515##########
12516# Do we want to allow a connection created in one thread to be used
12517# in another thread.  This does not work on many Linux systems (ex: RedHat 9)
12518# due to bugs in the threading implementations.  This is thus off by default.
12519#
12520# Check whether --enable-cross-thread-connections was given.
12521if test "${enable_cross_thread_connections+set}" = set; then
12522  enableval=$enable_cross_thread_connections;
12523else
12524  enable_xthreadconnect=no
12525fi
12526
12527{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12528$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12529if test "$enable_xthreadconnect" = "no"; then
12530  XTHREADCONNECT=''
12531  { $as_echo "$as_me:$LINENO: result: no" >&5
12532$as_echo "no" >&6; }
12533else
12534  XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12535  { $as_echo "$as_me:$LINENO: result: yes" >&5
12536$as_echo "yes" >&6; }
12537fi
12538
12539
12540##########
12541# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
12542# default. Normally, a test at runtime is performed to determine the
12543# appropriate value of this variable. Use this option only if you're sure that
12544# threads can safely override each others locks in all runtime situations.
12545#
12546# Check whether --enable-threads-override-locks was given.
12547if test "${enable_threads_override_locks+set}" = set; then
12548  enableval=$enable_threads_override_locks;
12549else
12550  enable_threads_override_locks=no
12551fi
12552
12553{ $as_echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
12554$as_echo_n "checking whether threads can override each others locks... " >&6; }
12555if test "$enable_threads_override_locks" = "no"; then
12556  THREADSOVERRIDELOCKS='-1'
12557  { $as_echo "$as_me:$LINENO: result: no" >&5
12558$as_echo "no" >&6; }
12559else
12560  THREADSOVERRIDELOCKS='1'
12561  { $as_echo "$as_me:$LINENO: result: yes" >&5
12562$as_echo "yes" >&6; }
12563fi
12564
12565
12566##########
12567# Do we want to support release
12568#
12569# Check whether --enable-releasemode was given.
12570if test "${enable_releasemode+set}" = set; then
12571  enableval=$enable_releasemode;
12572else
12573  enable_releasemode=no
12574fi
12575
12576{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12577$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12578if test "$enable_releasemode" = "no"; then
12579  ALLOWRELEASE=""
12580  { $as_echo "$as_me:$LINENO: result: no" >&5
12581$as_echo "no" >&6; }
12582else
12583  ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12584  { $as_echo "$as_me:$LINENO: result: yes" >&5
12585$as_echo "yes" >&6; }
12586fi
12587
12588
12589##########
12590# Do we want temporary databases in memory
12591#
12592# Check whether --enable-tempstore was given.
12593if test "${enable_tempstore+set}" = set; then
12594  enableval=$enable_tempstore;
12595else
12596  enable_tempstore=no
12597fi
12598
12599{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
12600$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12601case "$enable_tempstore" in
12602  never )
12603    TEMP_STORE=0
12604    { $as_echo "$as_me:$LINENO: result: never" >&5
12605$as_echo "never" >&6; }
12606  ;;
12607  no )
12608    TEMP_STORE=1
12609    { $as_echo "$as_me:$LINENO: result: no" >&5
12610$as_echo "no" >&6; }
12611  ;;
12612  yes )
12613     TEMP_STORE=2
12614    { $as_echo "$as_me:$LINENO: result: yes" >&5
12615$as_echo "yes" >&6; }
12616  ;;
12617  always )
12618     TEMP_STORE=3
12619    { $as_echo "$as_me:$LINENO: result: always" >&5
12620$as_echo "always" >&6; }
12621  ;;
12622  * )
12623    TEMP_STORE=1
12624    { $as_echo "$as_me:$LINENO: result: no" >&5
12625$as_echo "no" >&6; }
12626  ;;
12627esac
12628
12629
12630
12631###########
12632# Lots of things are different if we are compiling for Windows using
12633# the CYGWIN environment.  So check for that special case and handle
12634# things accordingly.
12635#
12636{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12637$as_echo_n "checking if executables have the .exe suffix... " >&6; }
12638if test "$config_BUILD_EXEEXT" = ".exe"; then
12639  CYGWIN=yes
12640  { $as_echo "$as_me:$LINENO: result: yes" >&5
12641$as_echo "yes" >&6; }
12642else
12643  { $as_echo "$as_me:$LINENO: result: unknown" >&5
12644$as_echo "unknown" >&6; }
12645fi
12646if test "$CYGWIN" != "yes"; then
12647  { $as_echo "$as_me:$LINENO: checking host system type" >&5
12648$as_echo_n "checking host system type... " >&6; }
12649if test "${ac_cv_host+set}" = set; then
12650  $as_echo_n "(cached) " >&6
12651else
12652  if test "x$host_alias" = x; then
12653  ac_cv_host=$ac_cv_build
12654else
12655  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12656    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12657$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12658   { (exit 1); exit 1; }; }
12659fi
12660
12661fi
12662{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12663$as_echo "$ac_cv_host" >&6; }
12664case $ac_cv_host in
12665*-*-*) ;;
12666*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12667$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12668   { (exit 1); exit 1; }; };;
12669esac
12670host=$ac_cv_host
12671ac_save_IFS=$IFS; IFS='-'
12672set x $ac_cv_host
12673shift
12674host_cpu=$1
12675host_vendor=$2
12676shift; shift
12677# Remember, the first character of IFS is used to create $*,
12678# except with old shells:
12679host_os=$*
12680IFS=$ac_save_IFS
12681case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12682
12683
12684case $host_os in
12685  *cygwin* ) CYGWIN=yes;;
12686	 * ) CYGWIN=no;;
12687esac
12688
12689fi
12690if test "$CYGWIN" = "yes"; then
12691  BUILD_EXEEXT=.exe
12692else
12693  BUILD_EXEEXT=$EXEEXT
12694fi
12695if test x"$cross_compiling" = xno; then
12696  TARGET_EXEEXT=$BUILD_EXEEXT
12697else
12698  TARGET_EXEEXT=$config_TARGET_EXEEXT
12699fi
12700if test "$TARGET_EXEEXT" = ".exe"; then
12701  if test $OS2_SHELL ; then
12702    SQLITE_OS_UNIX=0
12703    SQLITE_OS_WIN=0
12704    SQLITE_OS_OS2=1
12705    CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
12706  else
12707    SQLITE_OS_UNIX=0
12708    SQLITE_OS_WIN=1
12709    SQLITE_OS_OS2=0
12710    CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12711  fi
12712else
12713  SQLITE_OS_UNIX=1
12714  SQLITE_OS_WIN=0
12715  SQLITE_OS_OS2=0
12716  CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12717fi
12718
12719
12720
12721
12722
12723
12724
12725##########
12726# Figure out all the parameters needed to compile against Tcl.
12727#
12728# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12729# macros in the in the tcl.m4 file of the standard TCL distribution.
12730# Those macros could not be used directly since we have to make some
12731# minor changes to accomodate systems that do not have TCL installed.
12732#
12733# Check whether --enable-tcl was given.
12734if test "${enable_tcl+set}" = set; then
12735  enableval=$enable_tcl; use_tcl=$enableval
12736else
12737  use_tcl=yes
12738fi
12739
12740if test "${use_tcl}" = "yes" ; then
12741
12742# Check whether --with-tcl was given.
12743if test "${with_tcl+set}" = set; then
12744  withval=$with_tcl; with_tclconfig=${withval}
12745fi
12746
12747  { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12748$as_echo_n "checking for Tcl configuration... " >&6; }
12749  if test "${ac_cv_c_tclconfig+set}" = set; then
12750  $as_echo_n "(cached) " >&6
12751else
12752
12753    # First check to see if --with-tcl was specified.
12754    if test x"${with_tclconfig}" != x ; then
12755      if test -f "${with_tclconfig}/tclConfig.sh" ; then
12756        ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12757      else
12758        { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12759$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
12760   { (exit 1); exit 1; }; }
12761      fi
12762    fi
12763
12764    # Start autosearch by asking tclsh
12765    if test x"$cross_compiling" = xno; then
12766      for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12767      do
12768        if test -f "$i/tclConfig.sh" ; then
12769          ac_cv_c_tclconfig="$i"
12770          break
12771        fi
12772      done
12773    fi
12774
12775    # then check for a private Tcl installation
12776    if test x"${ac_cv_c_tclconfig}" = x ; then
12777      for i in \
12778            ../tcl \
12779            `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12780            `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12781            `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12782            ../../tcl \
12783            `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12784            `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12785            `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12786            ../../../tcl \
12787            `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12788            `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12789            `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12790      do
12791        if test -f "$i/unix/tclConfig.sh" ; then
12792          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12793          break
12794        fi
12795      done
12796    fi
12797
12798    # check in a few common install locations
12799    if test x"${ac_cv_c_tclconfig}" = x ; then
12800      for i in \
12801            `ls -d ${libdir} 2>/dev/null` \
12802            `ls -d /usr/local/lib 2>/dev/null` \
12803            `ls -d /usr/contrib/lib 2>/dev/null` \
12804            `ls -d /usr/lib 2>/dev/null`
12805      do
12806        if test -f "$i/tclConfig.sh" ; then
12807           ac_cv_c_tclconfig=`(cd $i; pwd)`
12808           break
12809        fi
12810      done
12811    fi
12812
12813    # check in a few other private locations
12814    if test x"${ac_cv_c_tclconfig}" = x ; then
12815      for i in \
12816         ${srcdir}/../tcl \
12817         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12818         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12819         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12820      do
12821        if test -f "$i/unix/tclConfig.sh" ; then
12822          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12823          break
12824        fi
12825      done
12826    fi
12827
12828fi
12829
12830
12831  if test x"${ac_cv_c_tclconfig}" = x ; then
12832    use_tcl=no
12833    { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
12834$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12835    { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12836$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12837    { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12838$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12839  else
12840    TCL_BIN_DIR=${ac_cv_c_tclconfig}
12841    { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12842$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12843
12844    { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12845$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12846    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12847      { $as_echo "$as_me:$LINENO: result: loading" >&5
12848$as_echo "loading" >&6; }
12849      . $TCL_BIN_DIR/tclConfig.sh
12850    else
12851      { $as_echo "$as_me:$LINENO: result: file not found" >&5
12852$as_echo "file not found" >&6; }
12853    fi
12854
12855    #
12856    # If the TCL_BIN_DIR is the build directory (not the install directory),
12857    # then set the common variable name to the value of the build variables.
12858    # For example, the variable TCL_LIB_SPEC will be set to the value
12859    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12860    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12861    # installed and uninstalled version of Tcl.
12862    #
12863
12864    if test -f $TCL_BIN_DIR/Makefile ; then
12865      TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12866      TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12867      TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12868    fi
12869
12870    #
12871    # eval is required to do the TCL_DBGX substitution
12872    #
12873
12874    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12875    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12876    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12877
12878    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12879    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12880    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895  fi
12896fi
12897if test "${use_tcl}" = "no" ; then
12898  HAVE_TCL=""
12899else
12900  HAVE_TCL=1
12901fi
12902
12903
12904##########
12905# Figure out what C libraries are required to compile programs
12906# that use "readline()" library.
12907#
12908TARGET_READLINE_LIBS=""
12909TARGET_READLINE_INC=""
12910TARGET_HAVE_READLINE=0
12911# Check whether --enable-readline was given.
12912if test "${enable_readline+set}" = set; then
12913  enableval=$enable_readline; with_readline=$enableval
12914else
12915  with_readline=auto
12916fi
12917
12918
12919if test x"$with_readline" != xno; then
12920	found="yes"
12921
12922
12923# Check whether --with-readline-lib was given.
12924if test "${with_readline_lib+set}" = set; then
12925  withval=$with_readline_lib; with_readline_lib=$withval
12926else
12927  with_readline_lib="auto"
12928fi
12929
12930	if test "x$with_readline_lib" = xauto; then
12931		save_LIBS="$LIBS"
12932		LIBS=""
12933		{ $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12934$as_echo_n "checking for library containing tgetent... " >&6; }
12935if test "${ac_cv_search_tgetent+set}" = set; then
12936  $as_echo_n "(cached) " >&6
12937else
12938  ac_func_search_save_LIBS=$LIBS
12939cat >conftest.$ac_ext <<_ACEOF
12940/* confdefs.h.  */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h.  */
12945
12946/* Override any GCC internal prototype to avoid an error.
12947   Use char because int might match the return type of a GCC
12948   builtin and then its argument prototype would still apply.  */
12949#ifdef __cplusplus
12950extern "C"
12951#endif
12952char tgetent ();
12953int
12954main ()
12955{
12956return tgetent ();
12957  ;
12958  return 0;
12959}
12960_ACEOF
12961for ac_lib in '' readline ncurses curses termcap; do
12962  if test -z "$ac_lib"; then
12963    ac_res="none required"
12964  else
12965    ac_res=-l$ac_lib
12966    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12967  fi
12968  rm -f conftest.$ac_objext conftest$ac_exeext
12969if { (ac_try="$ac_link"
12970case "(($ac_try" in
12971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972  *) ac_try_echo=$ac_try;;
12973esac
12974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12975$as_echo "$ac_try_echo") >&5
12976  (eval "$ac_link") 2>conftest.er1
12977  ac_status=$?
12978  grep -v '^ *+' conftest.er1 >conftest.err
12979  rm -f conftest.er1
12980  cat conftest.err >&5
12981  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982  (exit $ac_status); } && {
12983	 test -z "$ac_c_werror_flag" ||
12984	 test ! -s conftest.err
12985       } && test -s conftest$ac_exeext && {
12986	 test "$cross_compiling" = yes ||
12987	 $as_test_x conftest$ac_exeext
12988       }; then
12989  ac_cv_search_tgetent=$ac_res
12990else
12991  $as_echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
12994
12995fi
12996
12997rm -rf conftest.dSYM
12998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12999      conftest$ac_exeext
13000  if test "${ac_cv_search_tgetent+set}" = set; then
13001  break
13002fi
13003done
13004if test "${ac_cv_search_tgetent+set}" = set; then
13005  :
13006else
13007  ac_cv_search_tgetent=no
13008fi
13009rm conftest.$ac_ext
13010LIBS=$ac_func_search_save_LIBS
13011fi
13012{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13013$as_echo "$ac_cv_search_tgetent" >&6; }
13014ac_res=$ac_cv_search_tgetent
13015if test "$ac_res" != no; then
13016  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13017  term_LIBS="$LIBS"
13018else
13019  term_LIBS=""
13020fi
13021
13022		{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13023$as_echo_n "checking for readline in -lreadline... " >&6; }
13024if test "${ac_cv_lib_readline_readline+set}" = set; then
13025  $as_echo_n "(cached) " >&6
13026else
13027  ac_check_lib_save_LIBS=$LIBS
13028LIBS="-lreadline  $LIBS"
13029cat >conftest.$ac_ext <<_ACEOF
13030/* confdefs.h.  */
13031_ACEOF
13032cat confdefs.h >>conftest.$ac_ext
13033cat >>conftest.$ac_ext <<_ACEOF
13034/* end confdefs.h.  */
13035
13036/* Override any GCC internal prototype to avoid an error.
13037   Use char because int might match the return type of a GCC
13038   builtin and then its argument prototype would still apply.  */
13039#ifdef __cplusplus
13040extern "C"
13041#endif
13042char readline ();
13043int
13044main ()
13045{
13046return readline ();
13047  ;
13048  return 0;
13049}
13050_ACEOF
13051rm -f conftest.$ac_objext conftest$ac_exeext
13052if { (ac_try="$ac_link"
13053case "(($ac_try" in
13054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055  *) ac_try_echo=$ac_try;;
13056esac
13057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13058$as_echo "$ac_try_echo") >&5
13059  (eval "$ac_link") 2>conftest.er1
13060  ac_status=$?
13061  grep -v '^ *+' conftest.er1 >conftest.err
13062  rm -f conftest.er1
13063  cat conftest.err >&5
13064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065  (exit $ac_status); } && {
13066	 test -z "$ac_c_werror_flag" ||
13067	 test ! -s conftest.err
13068       } && test -s conftest$ac_exeext && {
13069	 test "$cross_compiling" = yes ||
13070	 $as_test_x conftest$ac_exeext
13071       }; then
13072  ac_cv_lib_readline_readline=yes
13073else
13074  $as_echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077	ac_cv_lib_readline_readline=no
13078fi
13079
13080rm -rf conftest.dSYM
13081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13082      conftest$ac_exeext conftest.$ac_ext
13083LIBS=$ac_check_lib_save_LIBS
13084fi
13085{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13086$as_echo "$ac_cv_lib_readline_readline" >&6; }
13087if test "x$ac_cv_lib_readline_readline" = x""yes; then
13088  TARGET_READLINE_LIBS="-lreadline"
13089else
13090  found="no"
13091fi
13092
13093		TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13094		LIBS="$save_LIBS"
13095	else
13096		TARGET_READLINE_LIBS="$with_readline_lib"
13097	fi
13098
13099
13100# Check whether --with-readline-inc was given.
13101if test "${with_readline_inc+set}" = set; then
13102  withval=$with_readline_inc; with_readline_inc=$withval
13103else
13104  with_readline_inc="auto"
13105fi
13106
13107	if test "x$with_readline_inc" = xauto; then
13108		if test "${ac_cv_header_readline_h+set}" = set; then
13109  { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13110$as_echo_n "checking for readline.h... " >&6; }
13111if test "${ac_cv_header_readline_h+set}" = set; then
13112  $as_echo_n "(cached) " >&6
13113fi
13114{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13115$as_echo "$ac_cv_header_readline_h" >&6; }
13116else
13117  # Is the header compilable?
13118{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13119$as_echo_n "checking readline.h usability... " >&6; }
13120cat >conftest.$ac_ext <<_ACEOF
13121/* confdefs.h.  */
13122_ACEOF
13123cat confdefs.h >>conftest.$ac_ext
13124cat >>conftest.$ac_ext <<_ACEOF
13125/* end confdefs.h.  */
13126$ac_includes_default
13127#include <readline.h>
13128_ACEOF
13129rm -f conftest.$ac_objext
13130if { (ac_try="$ac_compile"
13131case "(($ac_try" in
13132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133  *) ac_try_echo=$ac_try;;
13134esac
13135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13136$as_echo "$ac_try_echo") >&5
13137  (eval "$ac_compile") 2>conftest.er1
13138  ac_status=$?
13139  grep -v '^ *+' conftest.er1 >conftest.err
13140  rm -f conftest.er1
13141  cat conftest.err >&5
13142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143  (exit $ac_status); } && {
13144	 test -z "$ac_c_werror_flag" ||
13145	 test ! -s conftest.err
13146       } && test -s conftest.$ac_objext; then
13147  ac_header_compiler=yes
13148else
13149  $as_echo "$as_me: failed program was:" >&5
13150sed 's/^/| /' conftest.$ac_ext >&5
13151
13152	ac_header_compiler=no
13153fi
13154
13155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13157$as_echo "$ac_header_compiler" >&6; }
13158
13159# Is the header present?
13160{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13161$as_echo_n "checking readline.h presence... " >&6; }
13162cat >conftest.$ac_ext <<_ACEOF
13163/* confdefs.h.  */
13164_ACEOF
13165cat confdefs.h >>conftest.$ac_ext
13166cat >>conftest.$ac_ext <<_ACEOF
13167/* end confdefs.h.  */
13168#include <readline.h>
13169_ACEOF
13170if { (ac_try="$ac_cpp conftest.$ac_ext"
13171case "(($ac_try" in
13172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173  *) ac_try_echo=$ac_try;;
13174esac
13175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13176$as_echo "$ac_try_echo") >&5
13177  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13178  ac_status=$?
13179  grep -v '^ *+' conftest.er1 >conftest.err
13180  rm -f conftest.er1
13181  cat conftest.err >&5
13182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183  (exit $ac_status); } >/dev/null && {
13184	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13185	 test ! -s conftest.err
13186       }; then
13187  ac_header_preproc=yes
13188else
13189  $as_echo "$as_me: failed program was:" >&5
13190sed 's/^/| /' conftest.$ac_ext >&5
13191
13192  ac_header_preproc=no
13193fi
13194
13195rm -f conftest.err conftest.$ac_ext
13196{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197$as_echo "$ac_header_preproc" >&6; }
13198
13199# So?  What about this header?
13200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13201  yes:no: )
13202    { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13203$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13204    { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13205$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
13206    ac_header_preproc=yes
13207    ;;
13208  no:yes:* )
13209    { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13210$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13211    { $as_echo "$as_me:$LINENO: WARNING: readline.h:     check for missing prerequisite headers?" >&5
13212$as_echo "$as_me: WARNING: readline.h:     check for missing prerequisite headers?" >&2;}
13213    { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13214$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13215    { $as_echo "$as_me:$LINENO: WARNING: readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13216$as_echo "$as_me: WARNING: readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13217    { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13218$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13219    { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13220$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13221
13222    ;;
13223esac
13224{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13225$as_echo_n "checking for readline.h... " >&6; }
13226if test "${ac_cv_header_readline_h+set}" = set; then
13227  $as_echo_n "(cached) " >&6
13228else
13229  ac_cv_header_readline_h=$ac_header_preproc
13230fi
13231{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13232$as_echo "$ac_cv_header_readline_h" >&6; }
13233
13234fi
13235if test "x$ac_cv_header_readline_h" = x""yes; then
13236  found="yes"
13237else
13238
13239			found="no"
13240			if test "$cross_compiling" != yes; then
13241				for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13242					for subdir in include include/readline; do
13243						as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13244{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13245$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
13246if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13247  $as_echo_n "(cached) " >&6
13248else
13249  test "$cross_compiling" = yes &&
13250  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13251$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13252   { (exit 1); exit 1; }; }
13253if test -r "$dir/$subdir/readline.h"; then
13254  eval "$as_ac_File=yes"
13255else
13256  eval "$as_ac_File=no"
13257fi
13258fi
13259ac_res=`eval 'as_val=${'$as_ac_File'}
13260		 $as_echo "$as_val"'`
13261	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13262$as_echo "$ac_res" >&6; }
13263as_val=`eval 'as_val=${'$as_ac_File'}
13264		 $as_echo "$as_val"'`
13265   if test "x$as_val" = x""yes; then
13266  found=yes
13267fi
13268
13269						if test "$found" = "yes"; then
13270							TARGET_READLINE_INC="-I$dir/$subdir"
13271							break
13272						fi
13273					done
13274					test "$found" = "yes" && break
13275				done
13276			fi
13277
13278fi
13279
13280
13281	else
13282		TARGET_READLINE_INC="$with_readline_inc"
13283	fi
13284
13285	if test x"$found" = xno; then
13286		TARGET_READLINE_LIBS=""
13287		TARGET_READLINE_INC=""
13288		TARGET_HAVE_READLINE=0
13289	else
13290		TARGET_HAVE_READLINE=1
13291	fi
13292fi
13293
13294
13295
13296
13297
13298##########
13299# Figure out what C libraries are required to compile programs
13300# that use "fdatasync()" function.
13301#
13302{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13303$as_echo_n "checking for library containing fdatasync... " >&6; }
13304if test "${ac_cv_search_fdatasync+set}" = set; then
13305  $as_echo_n "(cached) " >&6
13306else
13307  ac_func_search_save_LIBS=$LIBS
13308cat >conftest.$ac_ext <<_ACEOF
13309/* confdefs.h.  */
13310_ACEOF
13311cat confdefs.h >>conftest.$ac_ext
13312cat >>conftest.$ac_ext <<_ACEOF
13313/* end confdefs.h.  */
13314
13315/* Override any GCC internal prototype to avoid an error.
13316   Use char because int might match the return type of a GCC
13317   builtin and then its argument prototype would still apply.  */
13318#ifdef __cplusplus
13319extern "C"
13320#endif
13321char fdatasync ();
13322int
13323main ()
13324{
13325return fdatasync ();
13326  ;
13327  return 0;
13328}
13329_ACEOF
13330for ac_lib in '' rt; do
13331  if test -z "$ac_lib"; then
13332    ac_res="none required"
13333  else
13334    ac_res=-l$ac_lib
13335    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13336  fi
13337  rm -f conftest.$ac_objext conftest$ac_exeext
13338if { (ac_try="$ac_link"
13339case "(($ac_try" in
13340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341  *) ac_try_echo=$ac_try;;
13342esac
13343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13344$as_echo "$ac_try_echo") >&5
13345  (eval "$ac_link") 2>conftest.er1
13346  ac_status=$?
13347  grep -v '^ *+' conftest.er1 >conftest.err
13348  rm -f conftest.er1
13349  cat conftest.err >&5
13350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351  (exit $ac_status); } && {
13352	 test -z "$ac_c_werror_flag" ||
13353	 test ! -s conftest.err
13354       } && test -s conftest$ac_exeext && {
13355	 test "$cross_compiling" = yes ||
13356	 $as_test_x conftest$ac_exeext
13357       }; then
13358  ac_cv_search_fdatasync=$ac_res
13359else
13360  $as_echo "$as_me: failed program was:" >&5
13361sed 's/^/| /' conftest.$ac_ext >&5
13362
13363
13364fi
13365
13366rm -rf conftest.dSYM
13367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13368      conftest$ac_exeext
13369  if test "${ac_cv_search_fdatasync+set}" = set; then
13370  break
13371fi
13372done
13373if test "${ac_cv_search_fdatasync+set}" = set; then
13374  :
13375else
13376  ac_cv_search_fdatasync=no
13377fi
13378rm conftest.$ac_ext
13379LIBS=$ac_func_search_save_LIBS
13380fi
13381{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13382$as_echo "$ac_cv_search_fdatasync" >&6; }
13383ac_res=$ac_cv_search_fdatasync
13384if test "$ac_res" != no; then
13385  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13386
13387fi
13388
13389
13390#########
13391# check for debug enabled
13392# Check whether --enable-debug was given.
13393if test "${enable_debug+set}" = set; then
13394  enableval=$enable_debug; use_debug=$enableval
13395else
13396  use_debug=no
13397fi
13398
13399if test "${use_debug}" = "yes" ; then
13400  TARGET_DEBUG="-DSQLITE_DEBUG=1"
13401else
13402  TARGET_DEBUG="-DNDEBUG"
13403fi
13404
13405
13406#########
13407# See whether we should use the amalgamation to build
13408# Check whether --enable-amalgamation was given.
13409if test "${enable_amalgamation+set}" = set; then
13410  enableval=$enable_amalgamation; use_amalgamation=$enableval
13411else
13412  use_amalgamation=yes
13413fi
13414
13415if test "${use_amalgamation}" != "yes" ; then
13416  USE_AMALGAMATION=0
13417fi
13418
13419
13420#########
13421# See whether we should allow loadable extensions
13422# Check whether --enable-load-extension was given.
13423if test "${enable_load_extension+set}" = set; then
13424  enableval=$enable_load_extension; use_loadextension=$enableval
13425else
13426  use_loadextension=no
13427fi
13428
13429if test "${use_loadextension}" = "yes" ; then
13430  OPT_FEATURE_FLAGS=""
13431else
13432  OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13433fi
13434
13435#########
13436# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
13437for option in $CFLAGS $CPPFLAGS
13438do
13439  case $option in
13440    -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13441    -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13442  esac
13443done
13444
13445
13446
13447# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13448ac_temp_CFLAGS=""
13449for option in $CFLAGS
13450do
13451  case $option in
13452    -DSQLITE_OMIT*) ;;
13453    -DSQLITE_ENABLE*) ;;
13454    *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13455  esac
13456done
13457CFLAGS=$ac_temp_CFLAGS
13458
13459
13460# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13461ac_temp_CPPFLAGS=""
13462for option in $CPPFLAGS
13463do
13464  case $option in
13465    -DSQLITE_OMIT*) ;;
13466    -DSQLITE_ENABLE*) ;;
13467    *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13468  esac
13469done
13470CPPFLAGS=$ac_temp_CPPFLAGS
13471
13472
13473# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13474ac_temp_BUILD_CFLAGS=""
13475for option in $BUILD_CFLAGS
13476do
13477  case $option in
13478    -DSQLITE_OMIT*) ;;
13479    -DSQLITE_ENABLE*) ;;
13480    *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13481  esac
13482done
13483BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13484
13485
13486#########
13487# See whether we should use GCOV
13488# Check whether --enable-gcov was given.
13489if test "${enable_gcov+set}" = set; then
13490  enableval=$enable_gcov; use_gcov=$enableval
13491else
13492  use_gcov=no
13493fi
13494
13495if test "${use_gcov}" = "yes" ; then
13496  USE_GCOV=1
13497else
13498  USE_GCOV=0
13499fi
13500
13501
13502
13503#########
13504# Output the config header
13505ac_config_headers="$ac_config_headers config.h"
13506
13507
13508#########
13509# Generate the output files.
13510#
13511
13512ac_config_files="$ac_config_files Makefile sqlite3.pc"
13513
13514cat >confcache <<\_ACEOF
13515# This file is a shell script that caches the results of configure
13516# tests run on this system so they can be shared between configure
13517# scripts and configure runs, see configure's option --config-cache.
13518# It is not useful on other systems.  If it contains results you don't
13519# want to keep, you may remove or edit it.
13520#
13521# config.status only pays attention to the cache file if you give it
13522# the --recheck option to rerun configure.
13523#
13524# `ac_cv_env_foo' variables (set or unset) will be overridden when
13525# loading this file, other *unset* `ac_cv_foo' will be assigned the
13526# following values.
13527
13528_ACEOF
13529
13530# The following way of writing the cache mishandles newlines in values,
13531# but we know of no workaround that is simple, portable, and efficient.
13532# So, we kill variables containing newlines.
13533# Ultrix sh set writes to stderr and can't be redirected directly,
13534# and sets the high bit in the cache file unless we assign to the vars.
13535(
13536  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13537    eval ac_val=\$$ac_var
13538    case $ac_val in #(
13539    *${as_nl}*)
13540      case $ac_var in #(
13541      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13542$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13543      esac
13544      case $ac_var in #(
13545      _ | IFS | as_nl) ;; #(
13546      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13547      *) $as_unset $ac_var ;;
13548      esac ;;
13549    esac
13550  done
13551
13552  (set) 2>&1 |
13553    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13554    *${as_nl}ac_space=\ *)
13555      # `set' does not quote correctly, so add quotes (double-quote
13556      # substitution turns \\\\ into \\, and sed turns \\ into \).
13557      sed -n \
13558	"s/'/'\\\\''/g;
13559	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13560      ;; #(
13561    *)
13562      # `set' quotes correctly as required by POSIX, so do not add quotes.
13563      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13564      ;;
13565    esac |
13566    sort
13567) |
13568  sed '
13569     /^ac_cv_env_/b end
13570     t clear
13571     :clear
13572     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13573     t end
13574     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13575     :end' >>confcache
13576if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13577  if test -w "$cache_file"; then
13578    test "x$cache_file" != "x/dev/null" &&
13579      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13580$as_echo "$as_me: updating cache $cache_file" >&6;}
13581    cat confcache >$cache_file
13582  else
13583    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13584$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13585  fi
13586fi
13587rm -f confcache
13588
13589test "x$prefix" = xNONE && prefix=$ac_default_prefix
13590# Let make expand exec_prefix.
13591test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13592
13593DEFS=-DHAVE_CONFIG_H
13594
13595ac_libobjs=
13596ac_ltlibobjs=
13597for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13598  # 1. Remove the extension, and $U if already installed.
13599  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13600  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13601  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13602  #    will be set to the directory where LIBOBJS objects are built.
13603  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13604  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13605done
13606LIBOBJS=$ac_libobjs
13607
13608LTLIBOBJS=$ac_ltlibobjs
13609
13610
13611
13612: ${CONFIG_STATUS=./config.status}
13613ac_write_fail=0
13614ac_clean_files_save=$ac_clean_files
13615ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13616{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13617$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13618cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13619#! $SHELL
13620# Generated by $as_me.
13621# Run this file to recreate the current configuration.
13622# Compiler output produced by configure, useful for debugging
13623# configure, is in config.log if it exists.
13624
13625debug=false
13626ac_cs_recheck=false
13627ac_cs_silent=false
13628SHELL=\${CONFIG_SHELL-$SHELL}
13629_ACEOF
13630
13631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13632## --------------------- ##
13633## M4sh Initialization.  ##
13634## --------------------- ##
13635
13636# Be more Bourne compatible
13637DUALCASE=1; export DUALCASE # for MKS sh
13638if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13639  emulate sh
13640  NULLCMD=:
13641  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13642  # is contrary to our usage.  Disable this feature.
13643  alias -g '${1+"$@"}'='"$@"'
13644  setopt NO_GLOB_SUBST
13645else
13646  case `(set -o) 2>/dev/null` in
13647  *posix*) set -o posix ;;
13648esac
13649
13650fi
13651
13652
13653
13654
13655# PATH needs CR
13656# Avoid depending upon Character Ranges.
13657as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13658as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13659as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13660as_cr_digits='0123456789'
13661as_cr_alnum=$as_cr_Letters$as_cr_digits
13662
13663as_nl='
13664'
13665export as_nl
13666# Printing a long string crashes Solaris 7 /usr/bin/printf.
13667as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13668as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13669as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13670if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13671  as_echo='printf %s\n'
13672  as_echo_n='printf %s'
13673else
13674  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13675    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13676    as_echo_n='/usr/ucb/echo -n'
13677  else
13678    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13679    as_echo_n_body='eval
13680      arg=$1;
13681      case $arg in
13682      *"$as_nl"*)
13683	expr "X$arg" : "X\\(.*\\)$as_nl";
13684	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13685      esac;
13686      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13687    '
13688    export as_echo_n_body
13689    as_echo_n='sh -c $as_echo_n_body as_echo'
13690  fi
13691  export as_echo_body
13692  as_echo='sh -c $as_echo_body as_echo'
13693fi
13694
13695# The user is always right.
13696if test "${PATH_SEPARATOR+set}" != set; then
13697  PATH_SEPARATOR=:
13698  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13699    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13700      PATH_SEPARATOR=';'
13701  }
13702fi
13703
13704# Support unset when possible.
13705if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13706  as_unset=unset
13707else
13708  as_unset=false
13709fi
13710
13711
13712# IFS
13713# We need space, tab and new line, in precisely that order.  Quoting is
13714# there to prevent editors from complaining about space-tab.
13715# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13716# splitting by setting IFS to empty value.)
13717IFS=" ""	$as_nl"
13718
13719# Find who we are.  Look in the path if we contain no directory separator.
13720case $0 in
13721  *[\\/]* ) as_myself=$0 ;;
13722  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723for as_dir in $PATH
13724do
13725  IFS=$as_save_IFS
13726  test -z "$as_dir" && as_dir=.
13727  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13728done
13729IFS=$as_save_IFS
13730
13731     ;;
13732esac
13733# We did not find ourselves, most probably we were run as `sh COMMAND'
13734# in which case we are not to be found in the path.
13735if test "x$as_myself" = x; then
13736  as_myself=$0
13737fi
13738if test ! -f "$as_myself"; then
13739  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13740  { (exit 1); exit 1; }
13741fi
13742
13743# Work around bugs in pre-3.0 UWIN ksh.
13744for as_var in ENV MAIL MAILPATH
13745do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13746done
13747PS1='$ '
13748PS2='> '
13749PS4='+ '
13750
13751# NLS nuisances.
13752LC_ALL=C
13753export LC_ALL
13754LANGUAGE=C
13755export LANGUAGE
13756
13757# Required to use basename.
13758if expr a : '\(a\)' >/dev/null 2>&1 &&
13759   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13760  as_expr=expr
13761else
13762  as_expr=false
13763fi
13764
13765if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13766  as_basename=basename
13767else
13768  as_basename=false
13769fi
13770
13771
13772# Name of the executable.
13773as_me=`$as_basename -- "$0" ||
13774$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13775	 X"$0" : 'X\(//\)$' \| \
13776	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13777$as_echo X/"$0" |
13778    sed '/^.*\/\([^/][^/]*\)\/*$/{
13779	    s//\1/
13780	    q
13781	  }
13782	  /^X\/\(\/\/\)$/{
13783	    s//\1/
13784	    q
13785	  }
13786	  /^X\/\(\/\).*/{
13787	    s//\1/
13788	    q
13789	  }
13790	  s/.*/./; q'`
13791
13792# CDPATH.
13793$as_unset CDPATH
13794
13795
13796
13797  as_lineno_1=$LINENO
13798  as_lineno_2=$LINENO
13799  test "x$as_lineno_1" != "x$as_lineno_2" &&
13800  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13801
13802  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13803  # uniformly replaced by the line number.  The first 'sed' inserts a
13804  # line-number line after each line using $LINENO; the second 'sed'
13805  # does the real work.  The second script uses 'N' to pair each
13806  # line-number line with the line containing $LINENO, and appends
13807  # trailing '-' during substitution so that $LINENO is not a special
13808  # case at line end.
13809  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13810  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13811  # E. McMahon (1931-1989) for sed's syntax.  :-)
13812  sed -n '
13813    p
13814    /[$]LINENO/=
13815  ' <$as_myself |
13816    sed '
13817      s/[$]LINENO.*/&-/
13818      t lineno
13819      b
13820      :lineno
13821      N
13822      :loop
13823      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13824      t loop
13825      s/-\n.*//
13826    ' >$as_me.lineno &&
13827  chmod +x "$as_me.lineno" ||
13828    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13829   { (exit 1); exit 1; }; }
13830
13831  # Don't try to exec as it changes $[0], causing all sort of problems
13832  # (the dirname of $[0] is not the place where we might find the
13833  # original and so on.  Autoconf is especially sensitive to this).
13834  . "./$as_me.lineno"
13835  # Exit status is that of the last command.
13836  exit
13837}
13838
13839
13840if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13841  as_dirname=dirname
13842else
13843  as_dirname=false
13844fi
13845
13846ECHO_C= ECHO_N= ECHO_T=
13847case `echo -n x` in
13848-n*)
13849  case `echo 'x\c'` in
13850  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13851  *)   ECHO_C='\c';;
13852  esac;;
13853*)
13854  ECHO_N='-n';;
13855esac
13856if expr a : '\(a\)' >/dev/null 2>&1 &&
13857   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13858  as_expr=expr
13859else
13860  as_expr=false
13861fi
13862
13863rm -f conf$$ conf$$.exe conf$$.file
13864if test -d conf$$.dir; then
13865  rm -f conf$$.dir/conf$$.file
13866else
13867  rm -f conf$$.dir
13868  mkdir conf$$.dir 2>/dev/null
13869fi
13870if (echo >conf$$.file) 2>/dev/null; then
13871  if ln -s conf$$.file conf$$ 2>/dev/null; then
13872    as_ln_s='ln -s'
13873    # ... but there are two gotchas:
13874    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13875    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13876    # In both cases, we have to default to `cp -p'.
13877    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13878      as_ln_s='cp -p'
13879  elif ln conf$$.file conf$$ 2>/dev/null; then
13880    as_ln_s=ln
13881  else
13882    as_ln_s='cp -p'
13883  fi
13884else
13885  as_ln_s='cp -p'
13886fi
13887rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13888rmdir conf$$.dir 2>/dev/null
13889
13890if mkdir -p . 2>/dev/null; then
13891  as_mkdir_p=:
13892else
13893  test -d ./-p && rmdir ./-p
13894  as_mkdir_p=false
13895fi
13896
13897if test -x / >/dev/null 2>&1; then
13898  as_test_x='test -x'
13899else
13900  if ls -dL / >/dev/null 2>&1; then
13901    as_ls_L_option=L
13902  else
13903    as_ls_L_option=
13904  fi
13905  as_test_x='
13906    eval sh -c '\''
13907      if test -d "$1"; then
13908	test -d "$1/.";
13909      else
13910	case $1 in
13911	-*)set "./$1";;
13912	esac;
13913	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13914	???[sx]*):;;*)false;;esac;fi
13915    '\'' sh
13916  '
13917fi
13918as_executable_p=$as_test_x
13919
13920# Sed expression to map a string onto a valid CPP name.
13921as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13922
13923# Sed expression to map a string onto a valid variable name.
13924as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13925
13926
13927exec 6>&1
13928
13929# Save the log message, to keep $[0] and so on meaningful, and to
13930# report actual input values of CONFIG_FILES etc. instead of their
13931# values after options handling.
13932ac_log="
13933This file was extended by sqlite $as_me 3.6.11, which was
13934generated by GNU Autoconf 2.63.  Invocation command line was
13935
13936  CONFIG_FILES    = $CONFIG_FILES
13937  CONFIG_HEADERS  = $CONFIG_HEADERS
13938  CONFIG_LINKS    = $CONFIG_LINKS
13939  CONFIG_COMMANDS = $CONFIG_COMMANDS
13940  $ $0 $@
13941
13942on `(hostname || uname -n) 2>/dev/null | sed 1q`
13943"
13944
13945_ACEOF
13946
13947case $ac_config_files in *"
13948"*) set x $ac_config_files; shift; ac_config_files=$*;;
13949esac
13950
13951case $ac_config_headers in *"
13952"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13953esac
13954
13955
13956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13957# Files that config.status was made for.
13958config_files="$ac_config_files"
13959config_headers="$ac_config_headers"
13960config_commands="$ac_config_commands"
13961
13962_ACEOF
13963
13964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13965ac_cs_usage="\
13966\`$as_me' instantiates files from templates according to the
13967current configuration.
13968
13969Usage: $0 [OPTION]... [FILE]...
13970
13971  -h, --help       print this help, then exit
13972  -V, --version    print version number and configuration settings, then exit
13973  -q, --quiet, --silent
13974                   do not print progress messages
13975  -d, --debug      don't remove temporary files
13976      --recheck    update $as_me by reconfiguring in the same conditions
13977      --file=FILE[:TEMPLATE]
13978                   instantiate the configuration file FILE
13979      --header=FILE[:TEMPLATE]
13980                   instantiate the configuration header FILE
13981
13982Configuration files:
13983$config_files
13984
13985Configuration headers:
13986$config_headers
13987
13988Configuration commands:
13989$config_commands
13990
13991Report bugs to <[email protected]>."
13992
13993_ACEOF
13994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13995ac_cs_version="\\
13996sqlite config.status 3.6.11
13997configured by $0, generated by GNU Autoconf 2.63,
13998  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13999
14000Copyright (C) 2008 Free Software Foundation, Inc.
14001This config.status script is free software; the Free Software Foundation
14002gives unlimited permission to copy, distribute and modify it."
14003
14004ac_pwd='$ac_pwd'
14005srcdir='$srcdir'
14006INSTALL='$INSTALL'
14007AWK='$AWK'
14008test -n "\$AWK" || AWK=awk
14009_ACEOF
14010
14011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14012# The default lists apply if the user does not specify any file.
14013ac_need_defaults=:
14014while test $# != 0
14015do
14016  case $1 in
14017  --*=*)
14018    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14019    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14020    ac_shift=:
14021    ;;
14022  *)
14023    ac_option=$1
14024    ac_optarg=$2
14025    ac_shift=shift
14026    ;;
14027  esac
14028
14029  case $ac_option in
14030  # Handling of the options.
14031  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14032    ac_cs_recheck=: ;;
14033  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14034    $as_echo "$ac_cs_version"; exit ;;
14035  --debug | --debu | --deb | --de | --d | -d )
14036    debug=: ;;
14037  --file | --fil | --fi | --f )
14038    $ac_shift
14039    case $ac_optarg in
14040    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14041    esac
14042    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14043    ac_need_defaults=false;;
14044  --header | --heade | --head | --hea )
14045    $ac_shift
14046    case $ac_optarg in
14047    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14048    esac
14049    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14050    ac_need_defaults=false;;
14051  --he | --h)
14052    # Conflict between --help and --header
14053    { $as_echo "$as_me: error: ambiguous option: $1
14054Try \`$0 --help' for more information." >&2
14055   { (exit 1); exit 1; }; };;
14056  --help | --hel | -h )
14057    $as_echo "$ac_cs_usage"; exit ;;
14058  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14059  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14060    ac_cs_silent=: ;;
14061
14062  # This is an error.
14063  -*) { $as_echo "$as_me: error: unrecognized option: $1
14064Try \`$0 --help' for more information." >&2
14065   { (exit 1); exit 1; }; } ;;
14066
14067  *) ac_config_targets="$ac_config_targets $1"
14068     ac_need_defaults=false ;;
14069
14070  esac
14071  shift
14072done
14073
14074ac_configure_extra_args=
14075
14076if $ac_cs_silent; then
14077  exec 6>/dev/null
14078  ac_configure_extra_args="$ac_configure_extra_args --silent"
14079fi
14080
14081_ACEOF
14082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14083if \$ac_cs_recheck; then
14084  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14085  shift
14086  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14087  CONFIG_SHELL='$SHELL'
14088  export CONFIG_SHELL
14089  exec "\$@"
14090fi
14091
14092_ACEOF
14093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14094exec 5>>config.log
14095{
14096  echo
14097  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14098## Running $as_me. ##
14099_ASBOX
14100  $as_echo "$ac_log"
14101} >&5
14102
14103_ACEOF
14104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14105#
14106# INIT-COMMANDS
14107#
14108
14109
14110# The HP-UX ksh and POSIX shell print the target directory to stdout
14111# if CDPATH is set.
14112(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14113
14114sed_quote_subst='$sed_quote_subst'
14115double_quote_subst='$double_quote_subst'
14116delay_variable_subst='$delay_variable_subst'
14117macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14118macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14119enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14120enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14121pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14122enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14123host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14124host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14125host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14126build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14127build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14128build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14129SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14130Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14131GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14132EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14133FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14134LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14135NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14136LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14137max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14138ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14139exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14140lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14141lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14142lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14143reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14144reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14145OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14146deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14147file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14148AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14149AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14150STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14151RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14152old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14153old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14154old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14155CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14156CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14157compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14158GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14159lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14160lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14161lt_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"`'
14162lt_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"`'
14163objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14164SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14165ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14166MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14167lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14168lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14169lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14170lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14171lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14172need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14173DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14174NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14175LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14176OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14177OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14178libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14179shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14180extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14181archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14182enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14183export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14184whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14185compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14186old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14187old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14188archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14189archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14190module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14191module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14192with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14193allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14194no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14195hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14196hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14197hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14198hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14199hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14200hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14201hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14202hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14203inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14204link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14205fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14206always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14207export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14208exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14209include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14210prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14211file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14212variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14213need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14214need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14215version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14216runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14217shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14218shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14219libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14220library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14221soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14222postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14223postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14224finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14225finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14226hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14227sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14228sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14229hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14230enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14231enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14232enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14233old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14234striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14235
14236LTCC='$LTCC'
14237LTCFLAGS='$LTCFLAGS'
14238compiler='$compiler_DEFAULT'
14239
14240# Quote evaled strings.
14241for var in SED \
14242GREP \
14243EGREP \
14244FGREP \
14245LD \
14246NM \
14247LN_S \
14248lt_SP2NL \
14249lt_NL2SP \
14250reload_flag \
14251OBJDUMP \
14252deplibs_check_method \
14253file_magic_cmd \
14254AR \
14255AR_FLAGS \
14256STRIP \
14257RANLIB \
14258CC \
14259CFLAGS \
14260compiler \
14261lt_cv_sys_global_symbol_pipe \
14262lt_cv_sys_global_symbol_to_cdecl \
14263lt_cv_sys_global_symbol_to_c_name_address \
14264lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14265SHELL \
14266ECHO \
14267lt_prog_compiler_no_builtin_flag \
14268lt_prog_compiler_wl \
14269lt_prog_compiler_pic \
14270lt_prog_compiler_static \
14271lt_cv_prog_compiler_c_o \
14272need_locks \
14273DSYMUTIL \
14274NMEDIT \
14275LIPO \
14276OTOOL \
14277OTOOL64 \
14278shrext_cmds \
14279export_dynamic_flag_spec \
14280whole_archive_flag_spec \
14281compiler_needs_object \
14282with_gnu_ld \
14283allow_undefined_flag \
14284no_undefined_flag \
14285hardcode_libdir_flag_spec \
14286hardcode_libdir_flag_spec_ld \
14287hardcode_libdir_separator \
14288fix_srcfile_path \
14289exclude_expsyms \
14290include_expsyms \
14291file_list_spec \
14292variables_saved_for_relink \
14293libname_spec \
14294library_names_spec \
14295soname_spec \
14296finish_eval \
14297old_striplib \
14298striplib; do
14299    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14300    *[\\\\\\\`\\"\\\$]*)
14301      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14302      ;;
14303    *)
14304      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14305      ;;
14306    esac
14307done
14308
14309# Double-quote double-evaled strings.
14310for var in reload_cmds \
14311old_postinstall_cmds \
14312old_postuninstall_cmds \
14313old_archive_cmds \
14314extract_expsyms_cmds \
14315old_archive_from_new_cmds \
14316old_archive_from_expsyms_cmds \
14317archive_cmds \
14318archive_expsym_cmds \
14319module_cmds \
14320module_expsym_cmds \
14321export_symbols_cmds \
14322prelink_cmds \
14323postinstall_cmds \
14324postuninstall_cmds \
14325finish_cmds \
14326sys_lib_search_path_spec \
14327sys_lib_dlsearch_path_spec; do
14328    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14329    *[\\\\\\\`\\"\\\$]*)
14330      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14331      ;;
14332    *)
14333      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14334      ;;
14335    esac
14336done
14337
14338# Fix-up fallback echo if it was mangled by the above quoting rules.
14339case \$lt_ECHO in
14340*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14341  ;;
14342esac
14343
14344ac_aux_dir='$ac_aux_dir'
14345xsi_shell='$xsi_shell'
14346lt_shell_append='$lt_shell_append'
14347
14348# See if we are running on zsh, and set the options which allow our
14349# commands through without removal of \ escapes INIT.
14350if test -n "\${ZSH_VERSION+set}" ; then
14351   setopt NO_GLOB_SUBST
14352fi
14353
14354
14355    PACKAGE='$PACKAGE'
14356    VERSION='$VERSION'
14357    TIMESTAMP='$TIMESTAMP'
14358    RM='$RM'
14359    ofile='$ofile'
14360
14361
14362
14363
14364_ACEOF
14365
14366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14367
14368# Handling of arguments.
14369for ac_config_target in $ac_config_targets
14370do
14371  case $ac_config_target in
14372    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14373    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14374    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14375    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14376
14377  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14378$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14379   { (exit 1); exit 1; }; };;
14380  esac
14381done
14382
14383
14384# If the user did not use the arguments to specify the items to instantiate,
14385# then the envvar interface is used.  Set only those that are not.
14386# We use the long form for the default assignment because of an extremely
14387# bizarre bug on SunOS 4.1.3.
14388if $ac_need_defaults; then
14389  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14390  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14391  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14392fi
14393
14394# Have a temporary directory for convenience.  Make it in the build tree
14395# simply because there is no reason against having it here, and in addition,
14396# creating and moving files from /tmp can sometimes cause problems.
14397# Hook for its removal unless debugging.
14398# Note that there is a small window in which the directory will not be cleaned:
14399# after its creation but before its name has been assigned to `$tmp'.
14400$debug ||
14401{
14402  tmp=
14403  trap 'exit_status=$?
14404  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14405' 0
14406  trap '{ (exit 1); exit 1; }' 1 2 13 15
14407}
14408# Create a (secure) tmp directory for tmp files.
14409
14410{
14411  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14412  test -n "$tmp" && test -d "$tmp"
14413}  ||
14414{
14415  tmp=./conf$$-$RANDOM
14416  (umask 077 && mkdir "$tmp")
14417} ||
14418{
14419   $as_echo "$as_me: cannot create a temporary directory in ." >&2
14420   { (exit 1); exit 1; }
14421}
14422
14423# Set up the scripts for CONFIG_FILES section.
14424# No need to generate them if there are no CONFIG_FILES.
14425# This happens for instance with `./config.status config.h'.
14426if test -n "$CONFIG_FILES"; then
14427
14428
14429ac_cr='
14430'
14431ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14432if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14433  ac_cs_awk_cr='\\r'
14434else
14435  ac_cs_awk_cr=$ac_cr
14436fi
14437
14438echo 'BEGIN {' >"$tmp/subs1.awk" &&
14439_ACEOF
14440
14441
14442{
14443  echo "cat >conf$$subs.awk <<_ACEOF" &&
14444  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14445  echo "_ACEOF"
14446} >conf$$subs.sh ||
14447  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14448$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14449   { (exit 1); exit 1; }; }
14450ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14451ac_delim='%!_!# '
14452for ac_last_try in false false false false false :; do
14453  . ./conf$$subs.sh ||
14454    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14455$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14456   { (exit 1); exit 1; }; }
14457
14458  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14459  if test $ac_delim_n = $ac_delim_num; then
14460    break
14461  elif $ac_last_try; then
14462    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14463$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14464   { (exit 1); exit 1; }; }
14465  else
14466    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14467  fi
14468done
14469rm -f conf$$subs.sh
14470
14471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14473_ACEOF
14474sed -n '
14475h
14476s/^/S["/; s/!.*/"]=/
14477p
14478g
14479s/^[^!]*!//
14480:repl
14481t repl
14482s/'"$ac_delim"'$//
14483t delim
14484:nl
14485h
14486s/\(.\{148\}\).*/\1/
14487t more1
14488s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14489p
14490n
14491b repl
14492:more1
14493s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14494p
14495g
14496s/.\{148\}//
14497t nl
14498:delim
14499h
14500s/\(.\{148\}\).*/\1/
14501t more2
14502s/["\\]/\\&/g; s/^/"/; s/$/"/
14503p
14504b
14505:more2
14506s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14507p
14508g
14509s/.\{148\}//
14510t delim
14511' <conf$$subs.awk | sed '
14512/^[^""]/{
14513  N
14514  s/\n//
14515}
14516' >>$CONFIG_STATUS || ac_write_fail=1
14517rm -f conf$$subs.awk
14518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14519_ACAWK
14520cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14521  for (key in S) S_is_set[key] = 1
14522  FS = ""
14523
14524}
14525{
14526  line = $ 0
14527  nfields = split(line, field, "@")
14528  substed = 0
14529  len = length(field[1])
14530  for (i = 2; i < nfields; i++) {
14531    key = field[i]
14532    keylen = length(key)
14533    if (S_is_set[key]) {
14534      value = S[key]
14535      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14536      len += length(value) + length(field[++i])
14537      substed = 1
14538    } else
14539      len += 1 + keylen
14540  }
14541
14542  print line
14543}
14544
14545_ACAWK
14546_ACEOF
14547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14548if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14549  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14550else
14551  cat
14552fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14553  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14554$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14555   { (exit 1); exit 1; }; }
14556_ACEOF
14557
14558# VPATH may cause trouble with some makes, so we remove $(srcdir),
14559# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14560# trailing colons and then remove the whole line if VPATH becomes empty
14561# (actually we leave an empty line to preserve line numbers).
14562if test "x$srcdir" = x.; then
14563  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14564s/:*\$(srcdir):*/:/
14565s/:*\${srcdir}:*/:/
14566s/:*@srcdir@:*/:/
14567s/^\([^=]*=[	 ]*\):*/\1/
14568s/:*$//
14569s/^[^=]*=[	 ]*$//
14570}'
14571fi
14572
14573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14574fi # test -n "$CONFIG_FILES"
14575
14576# Set up the scripts for CONFIG_HEADERS section.
14577# No need to generate them if there are no CONFIG_HEADERS.
14578# This happens for instance with `./config.status Makefile'.
14579if test -n "$CONFIG_HEADERS"; then
14580cat >"$tmp/defines.awk" <<\_ACAWK ||
14581BEGIN {
14582_ACEOF
14583
14584# Transform confdefs.h into an awk script `defines.awk', embedded as
14585# here-document in config.status, that substitutes the proper values into
14586# config.h.in to produce config.h.
14587
14588# Create a delimiter string that does not exist in confdefs.h, to ease
14589# handling of long lines.
14590ac_delim='%!_!# '
14591for ac_last_try in false false :; do
14592  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14593  if test -z "$ac_t"; then
14594    break
14595  elif $ac_last_try; then
14596    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14597$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14598   { (exit 1); exit 1; }; }
14599  else
14600    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14601  fi
14602done
14603
14604# For the awk script, D is an array of macro values keyed by name,
14605# likewise P contains macro parameters if any.  Preserve backslash
14606# newline sequences.
14607
14608ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14609sed -n '
14610s/.\{148\}/&'"$ac_delim"'/g
14611t rset
14612:rset
14613s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14614t def
14615d
14616:def
14617s/\\$//
14618t bsnl
14619s/["\\]/\\&/g
14620s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14621D["\1"]=" \3"/p
14622s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14623d
14624:bsnl
14625s/["\\]/\\&/g
14626s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14627D["\1"]=" \3\\\\\\n"\\/p
14628t cont
14629s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14630t cont
14631d
14632:cont
14633n
14634s/.\{148\}/&'"$ac_delim"'/g
14635t clear
14636:clear
14637s/\\$//
14638t bsnlc
14639s/["\\]/\\&/g; s/^/"/; s/$/"/p
14640d
14641:bsnlc
14642s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14643b cont
14644' <confdefs.h | sed '
14645s/'"$ac_delim"'/"\\\
14646"/g' >>$CONFIG_STATUS || ac_write_fail=1
14647
14648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14649  for (key in D) D_is_set[key] = 1
14650  FS = ""
14651}
14652/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14653  line = \$ 0
14654  split(line, arg, " ")
14655  if (arg[1] == "#") {
14656    defundef = arg[2]
14657    mac1 = arg[3]
14658  } else {
14659    defundef = substr(arg[1], 2)
14660    mac1 = arg[2]
14661  }
14662  split(mac1, mac2, "(") #)
14663  macro = mac2[1]
14664  prefix = substr(line, 1, index(line, defundef) - 1)
14665  if (D_is_set[macro]) {
14666    # Preserve the white space surrounding the "#".
14667    print prefix "define", macro P[macro] D[macro]
14668    next
14669  } else {
14670    # Replace #undef with comments.  This is necessary, for example,
14671    # in the case of _POSIX_SOURCE, which is predefined and required
14672    # on some systems where configure will not decide to define it.
14673    if (defundef == "undef") {
14674      print "/*", prefix defundef, macro, "*/"
14675      next
14676    }
14677  }
14678}
14679{ print }
14680_ACAWK
14681_ACEOF
14682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14683  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14684$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14685   { (exit 1); exit 1; }; }
14686fi # test -n "$CONFIG_HEADERS"
14687
14688
14689eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14690shift
14691for ac_tag
14692do
14693  case $ac_tag in
14694  :[FHLC]) ac_mode=$ac_tag; continue;;
14695  esac
14696  case $ac_mode$ac_tag in
14697  :[FHL]*:*);;
14698  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14699$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14700   { (exit 1); exit 1; }; };;
14701  :[FH]-) ac_tag=-:-;;
14702  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14703  esac
14704  ac_save_IFS=$IFS
14705  IFS=:
14706  set x $ac_tag
14707  IFS=$ac_save_IFS
14708  shift
14709  ac_file=$1
14710  shift
14711
14712  case $ac_mode in
14713  :L) ac_source=$1;;
14714  :[FH])
14715    ac_file_inputs=
14716    for ac_f
14717    do
14718      case $ac_f in
14719      -) ac_f="$tmp/stdin";;
14720      *) # Look for the file first in the build tree, then in the source tree
14721	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14722	 # because $ac_f cannot contain `:'.
14723	 test -f "$ac_f" ||
14724	   case $ac_f in
14725	   [\\/$]*) false;;
14726	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14727	   esac ||
14728	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14729$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14730   { (exit 1); exit 1; }; };;
14731      esac
14732      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14733      ac_file_inputs="$ac_file_inputs '$ac_f'"
14734    done
14735
14736    # Let's still pretend it is `configure' which instantiates (i.e., don't
14737    # use $as_me), people would be surprised to read:
14738    #    /* config.h.  Generated by config.status.  */
14739    configure_input='Generated from '`
14740	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14741	`' by configure.'
14742    if test x"$ac_file" != x-; then
14743      configure_input="$ac_file.  $configure_input"
14744      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14745$as_echo "$as_me: creating $ac_file" >&6;}
14746    fi
14747    # Neutralize special characters interpreted by sed in replacement strings.
14748    case $configure_input in #(
14749    *\&* | *\|* | *\\* )
14750       ac_sed_conf_input=`$as_echo "$configure_input" |
14751       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14752    *) ac_sed_conf_input=$configure_input;;
14753    esac
14754
14755    case $ac_tag in
14756    *:-:* | *:-) cat >"$tmp/stdin" \
14757      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14758$as_echo "$as_me: error: could not create $ac_file" >&2;}
14759   { (exit 1); exit 1; }; } ;;
14760    esac
14761    ;;
14762  esac
14763
14764  ac_dir=`$as_dirname -- "$ac_file" ||
14765$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14766	 X"$ac_file" : 'X\(//\)[^/]' \| \
14767	 X"$ac_file" : 'X\(//\)$' \| \
14768	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14769$as_echo X"$ac_file" |
14770    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14771	    s//\1/
14772	    q
14773	  }
14774	  /^X\(\/\/\)[^/].*/{
14775	    s//\1/
14776	    q
14777	  }
14778	  /^X\(\/\/\)$/{
14779	    s//\1/
14780	    q
14781	  }
14782	  /^X\(\/\).*/{
14783	    s//\1/
14784	    q
14785	  }
14786	  s/.*/./; q'`
14787  { as_dir="$ac_dir"
14788  case $as_dir in #(
14789  -*) as_dir=./$as_dir;;
14790  esac
14791  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14792    as_dirs=
14793    while :; do
14794      case $as_dir in #(
14795      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14796      *) as_qdir=$as_dir;;
14797      esac
14798      as_dirs="'$as_qdir' $as_dirs"
14799      as_dir=`$as_dirname -- "$as_dir" ||
14800$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14801	 X"$as_dir" : 'X\(//\)[^/]' \| \
14802	 X"$as_dir" : 'X\(//\)$' \| \
14803	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14804$as_echo X"$as_dir" |
14805    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14806	    s//\1/
14807	    q
14808	  }
14809	  /^X\(\/\/\)[^/].*/{
14810	    s//\1/
14811	    q
14812	  }
14813	  /^X\(\/\/\)$/{
14814	    s//\1/
14815	    q
14816	  }
14817	  /^X\(\/\).*/{
14818	    s//\1/
14819	    q
14820	  }
14821	  s/.*/./; q'`
14822      test -d "$as_dir" && break
14823    done
14824    test -z "$as_dirs" || eval "mkdir $as_dirs"
14825  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14826$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14827   { (exit 1); exit 1; }; }; }
14828  ac_builddir=.
14829
14830case "$ac_dir" in
14831.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14832*)
14833  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14834  # A ".." for each directory in $ac_dir_suffix.
14835  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14836  case $ac_top_builddir_sub in
14837  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14838  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14839  esac ;;
14840esac
14841ac_abs_top_builddir=$ac_pwd
14842ac_abs_builddir=$ac_pwd$ac_dir_suffix
14843# for backward compatibility:
14844ac_top_builddir=$ac_top_build_prefix
14845
14846case $srcdir in
14847  .)  # We are building in place.
14848    ac_srcdir=.
14849    ac_top_srcdir=$ac_top_builddir_sub
14850    ac_abs_top_srcdir=$ac_pwd ;;
14851  [\\/]* | ?:[\\/]* )  # Absolute name.
14852    ac_srcdir=$srcdir$ac_dir_suffix;
14853    ac_top_srcdir=$srcdir
14854    ac_abs_top_srcdir=$srcdir ;;
14855  *) # Relative name.
14856    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14857    ac_top_srcdir=$ac_top_build_prefix$srcdir
14858    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14859esac
14860ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14861
14862
14863  case $ac_mode in
14864  :F)
14865  #
14866  # CONFIG_FILE
14867  #
14868
14869  case $INSTALL in
14870  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14871  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14872  esac
14873_ACEOF
14874
14875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14876# If the template does not know about datarootdir, expand it.
14877# FIXME: This hack should be removed a few years after 2.60.
14878ac_datarootdir_hack=; ac_datarootdir_seen=
14879
14880ac_sed_dataroot='
14881/datarootdir/ {
14882  p
14883  q
14884}
14885/@datadir@/p
14886/@docdir@/p
14887/@infodir@/p
14888/@localedir@/p
14889/@mandir@/p
14890'
14891case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14892*datarootdir*) ac_datarootdir_seen=yes;;
14893*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14894  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14895$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14896_ACEOF
14897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14898  ac_datarootdir_hack='
14899  s&@datadir@&$datadir&g
14900  s&@docdir@&$docdir&g
14901  s&@infodir@&$infodir&g
14902  s&@localedir@&$localedir&g
14903  s&@mandir@&$mandir&g
14904    s&\\\${datarootdir}&$datarootdir&g' ;;
14905esac
14906_ACEOF
14907
14908# Neutralize VPATH when `$srcdir' = `.'.
14909# Shell code in configure.ac might set extrasub.
14910# FIXME: do we really want to maintain this feature?
14911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14912ac_sed_extra="$ac_vpsub
14913$extrasub
14914_ACEOF
14915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14916:t
14917/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14918s|@configure_input@|$ac_sed_conf_input|;t t
14919s&@top_builddir@&$ac_top_builddir_sub&;t t
14920s&@top_build_prefix@&$ac_top_build_prefix&;t t
14921s&@srcdir@&$ac_srcdir&;t t
14922s&@abs_srcdir@&$ac_abs_srcdir&;t t
14923s&@top_srcdir@&$ac_top_srcdir&;t t
14924s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14925s&@builddir@&$ac_builddir&;t t
14926s&@abs_builddir@&$ac_abs_builddir&;t t
14927s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14928s&@INSTALL@&$ac_INSTALL&;t t
14929$ac_datarootdir_hack
14930"
14931eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14932  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14933$as_echo "$as_me: error: could not create $ac_file" >&2;}
14934   { (exit 1); exit 1; }; }
14935
14936test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14937  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14938  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14939  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14940which seems to be undefined.  Please make sure it is defined." >&5
14941$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14942which seems to be undefined.  Please make sure it is defined." >&2;}
14943
14944  rm -f "$tmp/stdin"
14945  case $ac_file in
14946  -) cat "$tmp/out" && rm -f "$tmp/out";;
14947  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14948  esac \
14949  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14950$as_echo "$as_me: error: could not create $ac_file" >&2;}
14951   { (exit 1); exit 1; }; }
14952 ;;
14953  :H)
14954  #
14955  # CONFIG_HEADER
14956  #
14957  if test x"$ac_file" != x-; then
14958    {
14959      $as_echo "/* $configure_input  */" \
14960      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14961    } >"$tmp/config.h" \
14962      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14963$as_echo "$as_me: error: could not create $ac_file" >&2;}
14964   { (exit 1); exit 1; }; }
14965    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14966      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14967$as_echo "$as_me: $ac_file is unchanged" >&6;}
14968    else
14969      rm -f "$ac_file"
14970      mv "$tmp/config.h" "$ac_file" \
14971	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14972$as_echo "$as_me: error: could not create $ac_file" >&2;}
14973   { (exit 1); exit 1; }; }
14974    fi
14975  else
14976    $as_echo "/* $configure_input  */" \
14977      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14978      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14979$as_echo "$as_me: error: could not create -" >&2;}
14980   { (exit 1); exit 1; }; }
14981  fi
14982 ;;
14983
14984  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14985$as_echo "$as_me: executing $ac_file commands" >&6;}
14986 ;;
14987  esac
14988
14989
14990  case $ac_file$ac_mode in
14991    "libtool":C)
14992
14993    # See if we are running on zsh, and set the options which allow our
14994    # commands through without removal of \ escapes.
14995    if test -n "${ZSH_VERSION+set}" ; then
14996      setopt NO_GLOB_SUBST
14997    fi
14998
14999    cfgfile="${ofile}T"
15000    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15001    $RM "$cfgfile"
15002
15003    cat <<_LT_EOF >> "$cfgfile"
15004#! $SHELL
15005
15006# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15007# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15008# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15009# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15010#
15011#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15012#                 2006, 2007, 2008 Free Software Foundation, Inc.
15013#   Written by Gordon Matzigkeit, 1996
15014#
15015#   This file is part of GNU Libtool.
15016#
15017# GNU Libtool is free software; you can redistribute it and/or
15018# modify it under the terms of the GNU General Public License as
15019# published by the Free Software Foundation; either version 2 of
15020# the License, or (at your option) any later version.
15021#
15022# As a special exception to the GNU General Public License,
15023# if you distribute this file as part of a program or library that
15024# is built using GNU Libtool, you may include this file under the
15025# same distribution terms that you use for the rest of that program.
15026#
15027# GNU Libtool is distributed in the hope that it will be useful,
15028# but WITHOUT ANY WARRANTY; without even the implied warranty of
15029# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15030# GNU General Public License for more details.
15031#
15032# You should have received a copy of the GNU General Public License
15033# along with GNU Libtool; see the file COPYING.  If not, a copy
15034# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15035# obtained by writing to the Free Software Foundation, Inc.,
15036# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15037
15038
15039# The names of the tagged configurations supported by this script.
15040available_tags=""
15041
15042# ### BEGIN LIBTOOL CONFIG
15043
15044# Which release of libtool.m4 was used?
15045macro_version=$macro_version
15046macro_revision=$macro_revision
15047
15048# Whether or not to build shared libraries.
15049build_libtool_libs=$enable_shared
15050
15051# Whether or not to build static libraries.
15052build_old_libs=$enable_static
15053
15054# What type of objects to build.
15055pic_mode=$pic_mode
15056
15057# Whether or not to optimize for fast installation.
15058fast_install=$enable_fast_install
15059
15060# The host system.
15061host_alias=$host_alias
15062host=$host
15063host_os=$host_os
15064
15065# The build system.
15066build_alias=$build_alias
15067build=$build
15068build_os=$build_os
15069
15070# A sed program that does not truncate output.
15071SED=$lt_SED
15072
15073# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15074Xsed="\$SED -e 1s/^X//"
15075
15076# A grep program that handles long lines.
15077GREP=$lt_GREP
15078
15079# An ERE matcher.
15080EGREP=$lt_EGREP
15081
15082# A literal string matcher.
15083FGREP=$lt_FGREP
15084
15085# A BSD- or MS-compatible name lister.
15086NM=$lt_NM
15087
15088# Whether we need soft or hard links.
15089LN_S=$lt_LN_S
15090
15091# What is the maximum length of a command?
15092max_cmd_len=$max_cmd_len
15093
15094# Object file suffix (normally "o").
15095objext=$ac_objext
15096
15097# Executable file suffix (normally "").
15098exeext=$exeext
15099
15100# whether the shell understands "unset".
15101lt_unset=$lt_unset
15102
15103# turn spaces into newlines.
15104SP2NL=$lt_lt_SP2NL
15105
15106# turn newlines into spaces.
15107NL2SP=$lt_lt_NL2SP
15108
15109# How to create reloadable object files.
15110reload_flag=$lt_reload_flag
15111reload_cmds=$lt_reload_cmds
15112
15113# An object symbol dumper.
15114OBJDUMP=$lt_OBJDUMP
15115
15116# Method to check whether dependent libraries are shared objects.
15117deplibs_check_method=$lt_deplibs_check_method
15118
15119# Command to use when deplibs_check_method == "file_magic".
15120file_magic_cmd=$lt_file_magic_cmd
15121
15122# The archiver.
15123AR=$lt_AR
15124AR_FLAGS=$lt_AR_FLAGS
15125
15126# A symbol stripping program.
15127STRIP=$lt_STRIP
15128
15129# Commands used to install an old-style archive.
15130RANLIB=$lt_RANLIB
15131old_postinstall_cmds=$lt_old_postinstall_cmds
15132old_postuninstall_cmds=$lt_old_postuninstall_cmds
15133
15134# A C compiler.
15135LTCC=$lt_CC
15136
15137# LTCC compiler flags.
15138LTCFLAGS=$lt_CFLAGS
15139
15140# Take the output of nm and produce a listing of raw symbols and C names.
15141global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15142
15143# Transform the output of nm in a proper C declaration.
15144global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15145
15146# Transform the output of nm in a C name address pair.
15147global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15148
15149# Transform the output of nm in a C name address pair when lib prefix is needed.
15150global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15151
15152# The name of the directory that contains temporary libtool files.
15153objdir=$objdir
15154
15155# Shell to use when invoking shell scripts.
15156SHELL=$lt_SHELL
15157
15158# An echo program that does not interpret backslashes.
15159ECHO=$lt_ECHO
15160
15161# Used to examine libraries when file_magic_cmd begins with "file".
15162MAGIC_CMD=$MAGIC_CMD
15163
15164# Must we lock files when doing compilation?
15165need_locks=$lt_need_locks
15166
15167# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15168DSYMUTIL=$lt_DSYMUTIL
15169
15170# Tool to change global to local symbols on Mac OS X.
15171NMEDIT=$lt_NMEDIT
15172
15173# Tool to manipulate fat objects and archives on Mac OS X.
15174LIPO=$lt_LIPO
15175
15176# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15177OTOOL=$lt_OTOOL
15178
15179# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15180OTOOL64=$lt_OTOOL64
15181
15182# Old archive suffix (normally "a").
15183libext=$libext
15184
15185# Shared library suffix (normally ".so").
15186shrext_cmds=$lt_shrext_cmds
15187
15188# The commands to extract the exported symbol list from a shared archive.
15189extract_expsyms_cmds=$lt_extract_expsyms_cmds
15190
15191# Variables whose values should be saved in libtool wrapper scripts and
15192# restored at link time.
15193variables_saved_for_relink=$lt_variables_saved_for_relink
15194
15195# Do we need the "lib" prefix for modules?
15196need_lib_prefix=$need_lib_prefix
15197
15198# Do we need a version for libraries?
15199need_version=$need_version
15200
15201# Library versioning type.
15202version_type=$version_type
15203
15204# Shared library runtime path variable.
15205runpath_var=$runpath_var
15206
15207# Shared library path variable.
15208shlibpath_var=$shlibpath_var
15209
15210# Is shlibpath searched before the hard-coded library search path?
15211shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15212
15213# Format of library name prefix.
15214libname_spec=$lt_libname_spec
15215
15216# List of archive names.  First name is the real one, the rest are links.
15217# The last name is the one that the linker finds with -lNAME
15218library_names_spec=$lt_library_names_spec
15219
15220# The coded name of the library, if different from the real name.
15221soname_spec=$lt_soname_spec
15222
15223# Command to use after installation of a shared archive.
15224postinstall_cmds=$lt_postinstall_cmds
15225
15226# Command to use after uninstallation of a shared archive.
15227postuninstall_cmds=$lt_postuninstall_cmds
15228
15229# Commands used to finish a libtool library installation in a directory.
15230finish_cmds=$lt_finish_cmds
15231
15232# As "finish_cmds", except a single script fragment to be evaled but
15233# not shown.
15234finish_eval=$lt_finish_eval
15235
15236# Whether we should hardcode library paths into libraries.
15237hardcode_into_libs=$hardcode_into_libs
15238
15239# Compile-time system search path for libraries.
15240sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15241
15242# Run-time system search path for libraries.
15243sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15244
15245# Whether dlopen is supported.
15246dlopen_support=$enable_dlopen
15247
15248# Whether dlopen of programs is supported.
15249dlopen_self=$enable_dlopen_self
15250
15251# Whether dlopen of statically linked programs is supported.
15252dlopen_self_static=$enable_dlopen_self_static
15253
15254# Commands to strip libraries.
15255old_striplib=$lt_old_striplib
15256striplib=$lt_striplib
15257
15258
15259# The linker used to build libraries.
15260LD=$lt_LD
15261
15262# Commands used to build an old-style archive.
15263old_archive_cmds=$lt_old_archive_cmds
15264
15265# A language specific compiler.
15266CC=$lt_compiler
15267
15268# Is the compiler the GNU compiler?
15269with_gcc=$GCC
15270
15271# Compiler flag to turn off builtin functions.
15272no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15273
15274# How to pass a linker flag through the compiler.
15275wl=$lt_lt_prog_compiler_wl
15276
15277# Additional compiler flags for building library objects.
15278pic_flag=$lt_lt_prog_compiler_pic
15279
15280# Compiler flag to prevent dynamic linking.
15281link_static_flag=$lt_lt_prog_compiler_static
15282
15283# Does compiler simultaneously support -c and -o options?
15284compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15285
15286# Whether or not to add -lc for building shared libraries.
15287build_libtool_need_lc=$archive_cmds_need_lc
15288
15289# Whether or not to disallow shared libs when runtime libs are static.
15290allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15291
15292# Compiler flag to allow reflexive dlopens.
15293export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15294
15295# Compiler flag to generate shared objects directly from archives.
15296whole_archive_flag_spec=$lt_whole_archive_flag_spec
15297
15298# Whether the compiler copes with passing no objects directly.
15299compiler_needs_object=$lt_compiler_needs_object
15300
15301# Create an old-style archive from a shared archive.
15302old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15303
15304# Create a temporary old-style archive to link instead of a shared archive.
15305old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15306
15307# Commands used to build a shared archive.
15308archive_cmds=$lt_archive_cmds
15309archive_expsym_cmds=$lt_archive_expsym_cmds
15310
15311# Commands used to build a loadable module if different from building
15312# a shared archive.
15313module_cmds=$lt_module_cmds
15314module_expsym_cmds=$lt_module_expsym_cmds
15315
15316# Whether we are building with GNU ld or not.
15317with_gnu_ld=$lt_with_gnu_ld
15318
15319# Flag that allows shared libraries with undefined symbols to be built.
15320allow_undefined_flag=$lt_allow_undefined_flag
15321
15322# Flag that enforces no undefined symbols.
15323no_undefined_flag=$lt_no_undefined_flag
15324
15325# Flag to hardcode \$libdir into a binary during linking.
15326# This must work even if \$libdir does not exist
15327hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15328
15329# If ld is used when linking, flag to hardcode \$libdir into a binary
15330# during linking.  This must work even if \$libdir does not exist.
15331hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15332
15333# Whether we need a single "-rpath" flag with a separated argument.
15334hardcode_libdir_separator=$lt_hardcode_libdir_separator
15335
15336# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15337# DIR into the resulting binary.
15338hardcode_direct=$hardcode_direct
15339
15340# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15341# DIR into the resulting binary and the resulting library dependency is
15342# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15343# library is relocated.
15344hardcode_direct_absolute=$hardcode_direct_absolute
15345
15346# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15347# into the resulting binary.
15348hardcode_minus_L=$hardcode_minus_L
15349
15350# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15351# into the resulting binary.
15352hardcode_shlibpath_var=$hardcode_shlibpath_var
15353
15354# Set to "yes" if building a shared library automatically hardcodes DIR
15355# into the library and all subsequent libraries and executables linked
15356# against it.
15357hardcode_automatic=$hardcode_automatic
15358
15359# Set to yes if linker adds runtime paths of dependent libraries
15360# to runtime path list.
15361inherit_rpath=$inherit_rpath
15362
15363# Whether libtool must link a program against all its dependency libraries.
15364link_all_deplibs=$link_all_deplibs
15365
15366# Fix the shell variable \$srcfile for the compiler.
15367fix_srcfile_path=$lt_fix_srcfile_path
15368
15369# Set to "yes" if exported symbols are required.
15370always_export_symbols=$always_export_symbols
15371
15372# The commands to list exported symbols.
15373export_symbols_cmds=$lt_export_symbols_cmds
15374
15375# Symbols that should not be listed in the preloaded symbols.
15376exclude_expsyms=$lt_exclude_expsyms
15377
15378# Symbols that must always be exported.
15379include_expsyms=$lt_include_expsyms
15380
15381# Commands necessary for linking programs (against libraries) with templates.
15382prelink_cmds=$lt_prelink_cmds
15383
15384# Specify filename containing input files.
15385file_list_spec=$lt_file_list_spec
15386
15387# How to hardcode a shared library path into an executable.
15388hardcode_action=$hardcode_action
15389
15390# ### END LIBTOOL CONFIG
15391
15392_LT_EOF
15393
15394  case $host_os in
15395  aix3*)
15396    cat <<\_LT_EOF >> "$cfgfile"
15397# AIX sometimes has problems with the GCC collect2 program.  For some
15398# reason, if we set the COLLECT_NAMES environment variable, the problems
15399# vanish in a puff of smoke.
15400if test "X${COLLECT_NAMES+set}" != Xset; then
15401  COLLECT_NAMES=
15402  export COLLECT_NAMES
15403fi
15404_LT_EOF
15405    ;;
15406  esac
15407
15408
15409ltmain="$ac_aux_dir/ltmain.sh"
15410
15411
15412  # We use sed instead of cat because bash on DJGPP gets confused if
15413  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15414  # text mode, it properly converts lines to CR/LF.  This bash problem
15415  # is reportedly fixed, but why not run on old versions too?
15416  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15417    || (rm -f "$cfgfile"; exit 1)
15418
15419  case $xsi_shell in
15420  yes)
15421    cat << \_LT_EOF >> "$cfgfile"
15422
15423# func_dirname file append nondir_replacement
15424# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15425# otherwise set result to NONDIR_REPLACEMENT.
15426func_dirname ()
15427{
15428  case ${1} in
15429    */*) func_dirname_result="${1%/*}${2}" ;;
15430    *  ) func_dirname_result="${3}" ;;
15431  esac
15432}
15433
15434# func_basename file
15435func_basename ()
15436{
15437  func_basename_result="${1##*/}"
15438}
15439
15440# func_dirname_and_basename file append nondir_replacement
15441# perform func_basename and func_dirname in a single function
15442# call:
15443#   dirname:  Compute the dirname of FILE.  If nonempty,
15444#             add APPEND to the result, otherwise set result
15445#             to NONDIR_REPLACEMENT.
15446#             value returned in "$func_dirname_result"
15447#   basename: Compute filename of FILE.
15448#             value retuned in "$func_basename_result"
15449# Implementation must be kept synchronized with func_dirname
15450# and func_basename. For efficiency, we do not delegate to
15451# those functions but instead duplicate the functionality here.
15452func_dirname_and_basename ()
15453{
15454  case ${1} in
15455    */*) func_dirname_result="${1%/*}${2}" ;;
15456    *  ) func_dirname_result="${3}" ;;
15457  esac
15458  func_basename_result="${1##*/}"
15459}
15460
15461# func_stripname prefix suffix name
15462# strip PREFIX and SUFFIX off of NAME.
15463# PREFIX and SUFFIX must not contain globbing or regex special
15464# characters, hashes, percent signs, but SUFFIX may contain a leading
15465# dot (in which case that matches only a dot).
15466func_stripname ()
15467{
15468  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15469  # positional parameters, so assign one to ordinary parameter first.
15470  func_stripname_result=${3}
15471  func_stripname_result=${func_stripname_result#"${1}"}
15472  func_stripname_result=${func_stripname_result%"${2}"}
15473}
15474
15475# func_opt_split
15476func_opt_split ()
15477{
15478  func_opt_split_opt=${1%%=*}
15479  func_opt_split_arg=${1#*=}
15480}
15481
15482# func_lo2o object
15483func_lo2o ()
15484{
15485  case ${1} in
15486    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15487    *)    func_lo2o_result=${1} ;;
15488  esac
15489}
15490
15491# func_xform libobj-or-source
15492func_xform ()
15493{
15494  func_xform_result=${1%.*}.lo
15495}
15496
15497# func_arith arithmetic-term...
15498func_arith ()
15499{
15500  func_arith_result=$(( $* ))
15501}
15502
15503# func_len string
15504# STRING may not start with a hyphen.
15505func_len ()
15506{
15507  func_len_result=${#1}
15508}
15509
15510_LT_EOF
15511    ;;
15512  *) # Bourne compatible functions.
15513    cat << \_LT_EOF >> "$cfgfile"
15514
15515# func_dirname file append nondir_replacement
15516# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15517# otherwise set result to NONDIR_REPLACEMENT.
15518func_dirname ()
15519{
15520  # Extract subdirectory from the argument.
15521  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15522  if test "X$func_dirname_result" = "X${1}"; then
15523    func_dirname_result="${3}"
15524  else
15525    func_dirname_result="$func_dirname_result${2}"
15526  fi
15527}
15528
15529# func_basename file
15530func_basename ()
15531{
15532  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15533}
15534
15535
15536# func_stripname prefix suffix name
15537# strip PREFIX and SUFFIX off of NAME.
15538# PREFIX and SUFFIX must not contain globbing or regex special
15539# characters, hashes, percent signs, but SUFFIX may contain a leading
15540# dot (in which case that matches only a dot).
15541# func_strip_suffix prefix name
15542func_stripname ()
15543{
15544  case ${2} in
15545    .*) func_stripname_result=`$ECHO "X${3}" \
15546           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15547    *)  func_stripname_result=`$ECHO "X${3}" \
15548           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15549  esac
15550}
15551
15552# sed scripts:
15553my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15554my_sed_long_arg='1s/^-[^=]*=//'
15555
15556# func_opt_split
15557func_opt_split ()
15558{
15559  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15560  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15561}
15562
15563# func_lo2o object
15564func_lo2o ()
15565{
15566  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15567}
15568
15569# func_xform libobj-or-source
15570func_xform ()
15571{
15572  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15573}
15574
15575# func_arith arithmetic-term...
15576func_arith ()
15577{
15578  func_arith_result=`expr "$@"`
15579}
15580
15581# func_len string
15582# STRING may not start with a hyphen.
15583func_len ()
15584{
15585  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15586}
15587
15588_LT_EOF
15589esac
15590
15591case $lt_shell_append in
15592  yes)
15593    cat << \_LT_EOF >> "$cfgfile"
15594
15595# func_append var value
15596# Append VALUE to the end of shell variable VAR.
15597func_append ()
15598{
15599  eval "$1+=\$2"
15600}
15601_LT_EOF
15602    ;;
15603  *)
15604    cat << \_LT_EOF >> "$cfgfile"
15605
15606# func_append var value
15607# Append VALUE to the end of shell variable VAR.
15608func_append ()
15609{
15610  eval "$1=\$$1\$2"
15611}
15612
15613_LT_EOF
15614    ;;
15615  esac
15616
15617
15618  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15619    || (rm -f "$cfgfile"; exit 1)
15620
15621  mv -f "$cfgfile" "$ofile" ||
15622    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15623  chmod +x "$ofile"
15624
15625 ;;
15626
15627  esac
15628done # for ac_tag
15629
15630
15631{ (exit 0); exit 0; }
15632_ACEOF
15633chmod +x $CONFIG_STATUS
15634ac_clean_files=$ac_clean_files_save
15635
15636test $ac_write_fail = 0 ||
15637  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15638$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15639   { (exit 1); exit 1; }; }
15640
15641
15642# configure is writing to config.log, and then calls config.status.
15643# config.status does its own redirection, appending to config.log.
15644# Unfortunately, on DOS this fails, as config.log is still kept open
15645# by configure, so config.status won't be able to write to it; its
15646# output is simply discarded.  So we exec the FD to /dev/null,
15647# effectively closing config.log, so it can be properly (re)opened and
15648# appended to by config.status.  When coming back to configure, we
15649# need to make the FD available again.
15650if test "$no_create" != yes; then
15651  ac_cs_success=:
15652  ac_config_status_args=
15653  test "$silent" = yes &&
15654    ac_config_status_args="$ac_config_status_args --quiet"
15655  exec 5>/dev/null
15656  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15657  exec 5>>config.log
15658  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15659  # would make configure fail if this is the last instruction.
15660  $ac_cs_success || { (exit 1); exit 1; }
15661fi
15662if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15663  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15664$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15665fi
15666
15667