1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (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
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173  if (eval "$as_required") 2>/dev/null; then :
174  as_have_required=yes
175else
176  as_have_required=no
177fi
178  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185  IFS=$as_save_IFS
186  test -z "$as_dir" && as_dir=.
187  as_found=:
188  case $as_dir in #(
189	 /*)
190	   for as_base in sh bash ksh sh5; do
191	     # Try only shells that exist, to save several forks.
192	     as_shell=$as_dir/$as_base
193	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195  CONFIG_SHELL=$as_shell as_have_required=yes
196		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  break 2
198fi
199fi
200	   done;;
201       esac
202  as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206  CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211      if test "x$CONFIG_SHELL" != x; then :
212  # We cannot yet assume a decent shell, so we have to provide a
213	# neutralization value for shells without unset; and this also
214	# works around shells that cannot unset nonexistent variables.
215	BASH_ENV=/dev/null
216	ENV=/dev/null
217	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218	export CONFIG_SHELL
219	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222    if test x$as_have_required = xno; then :
223  $as_echo "$0: This script requires a shell more modern than all"
224  $as_echo "$0: the shells that I found on your system."
225  if test x${ZSH_VERSION+set} = xset ; then
226    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228  else
229    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233  fi
234  exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252  { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261  return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269  set +e
270  as_fn_set_status $1
271  exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280  case $as_dir in #(
281  -*) as_dir=./$as_dir;;
282  esac
283  test -d "$as_dir" || eval $as_mkdir_p || {
284    as_dirs=
285    while :; do
286      case $as_dir in #(
287      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288      *) as_qdir=$as_dir;;
289      esac
290      as_dirs="'$as_qdir' $as_dirs"
291      as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293	 X"$as_dir" : 'X\(//\)[^/]' \| \
294	 X"$as_dir" : 'X\(//\)$' \| \
295	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298	    s//\1/
299	    q
300	  }
301	  /^X\(\/\/\)[^/].*/{
302	    s//\1/
303	    q
304	  }
305	  /^X\(\/\/\)$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\).*/{
310	    s//\1/
311	    q
312	  }
313	  s/.*/./; q'`
314      test -d "$as_dir" && break
315    done
316    test -z "$as_dirs" || eval "mkdir $as_dirs"
317  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328  eval 'as_fn_append ()
329  {
330    eval $1+=\$2
331  }'
332else
333  as_fn_append ()
334  {
335    eval $1=\$$1\$2
336  }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345  eval 'as_fn_arith ()
346  {
347    as_val=$(( $* ))
348  }'
349else
350  as_fn_arith ()
351  {
352    as_val=`expr "$@" || test $? -eq 1`
353  }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364  as_status=$?; test $as_status -eq 0 && as_status=1
365  if test "$3"; then
366    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368  fi
369  $as_echo "$as_me: error: $1" >&2
370  as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375  as_expr=expr
376else
377  as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381  as_basename=basename
382else
383  as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387  as_dirname=dirname
388else
389  as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394	 X"$0" : 'X\(//\)$' \| \
395	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397    sed '/^.*\/\([^/][^/]*\)\/*$/{
398	    s//\1/
399	    q
400	  }
401	  /^X\/\(\/\/\)$/{
402	    s//\1/
403	    q
404	  }
405	  /^X\/\(\/\).*/{
406	    s//\1/
407	    q
408	  }
409	  s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424  sed -n '
425    p
426    /[$]LINENO/=
427  ' <$as_myself |
428    sed '
429      s/[$]LINENO.*/&-/
430      t lineno
431      b
432      :lineno
433      N
434      :loop
435      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436      t loop
437      s/-\n.*//
438    ' >$as_me.lineno &&
439  chmod +x "$as_me.lineno" ||
440    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442  # Don't try to exec as it changes $[0], causing all sort of problems
443  # (the dirname of $[0] is not the place where we might find the
444  # original and so on.  Autoconf is especially sensitive to this).
445  . "./$as_me.lineno"
446  # Exit status is that of the last command.
447  exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453  case `echo 'xy\c'` in
454  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
455  xy)  ECHO_C='\c';;
456  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457       ECHO_T='	';;
458  esac;;
459*)
460  ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465  rm -f conf$$.dir/conf$$.file
466else
467  rm -f conf$$.dir
468  mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471  if ln -s conf$$.file conf$$ 2>/dev/null; then
472    as_ln_s='ln -s'
473    # ... but there are two gotchas:
474    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476    # In both cases, we have to default to `cp -p'.
477    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478      as_ln_s='cp -p'
479  elif ln conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s=ln
481  else
482    as_ln_s='cp -p'
483  fi
484else
485  as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491  as_mkdir_p='mkdir -p "$as_dir"'
492else
493  test -d ./-p && rmdir ./-p
494  as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498  as_test_x='test -x'
499else
500  if ls -dL / >/dev/null 2>&1; then
501    as_ls_L_option=L
502  else
503    as_ls_L_option=
504  fi
505  as_test_x='
506    eval sh -c '\''
507      if test -d "$1"; then
508	test -d "$1/.";
509      else
510	case $1 in #(
511	-*)set "./$1";;
512	esac;
513	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514	???[sx]*):;;*)false;;esac;fi
515    '\'' sh
516  '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533  # Remove one level of quotation (which was required for Make).
534  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535  ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540  # Discard the --no-reexec flag, and continue.
541  shift
542elif test "X$1" = X--fallback-echo; then
543  # Avoid inline document here, it may be left over
544  :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546  # Yippee, $ECHO works!
547  :
548else
549  # Restart under the correct shell.
550  exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554  # used as fallback echo
555  shift
556  cat <<_LT_EOF
557$*
558_LT_EOF
559  exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$lt_ECHO"; then
567  if test "X${echo_test_string+set}" != Xset; then
568    # find a string as large as possible, as long as the shell can cope with it
569    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573      then
574        break
575      fi
576    done
577  fi
578
579  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581     test "X$echo_testing_string" = "X$echo_test_string"; then
582    :
583  else
584    # The Solaris, AIX, and Digital Unix default echo programs unquote
585    # backslashes.  This makes it impossible to quote backslashes using
586    #   echo "$something" | sed 's/\\/\\\\/g'
587    #
588    # So, first we look for a working echo in the user's PATH.
589
590    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591    for dir in $PATH /usr/ucb; do
592      IFS="$lt_save_ifs"
593      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596         test "X$echo_testing_string" = "X$echo_test_string"; then
597        ECHO="$dir/echo"
598        break
599      fi
600    done
601    IFS="$lt_save_ifs"
602
603    if test "X$ECHO" = Xecho; then
604      # We didn't find a better echo, so look for alternatives.
605      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607         test "X$echo_testing_string" = "X$echo_test_string"; then
608        # This shell has a builtin print -r that does the trick.
609        ECHO='print -r'
610      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611	   test "X$CONFIG_SHELL" != X/bin/ksh; then
612        # If we have ksh, try running configure again with it.
613        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614        export ORIGINAL_CONFIG_SHELL
615        CONFIG_SHELL=/bin/ksh
616        export CONFIG_SHELL
617        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618      else
619        # Try using printf.
620        ECHO='printf %s\n'
621        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623	   test "X$echo_testing_string" = "X$echo_test_string"; then
624	  # Cool, printf works
625	  :
626        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627	     test "X$echo_testing_string" = 'X\t' &&
628	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629	     test "X$echo_testing_string" = "X$echo_test_string"; then
630	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631	  export CONFIG_SHELL
632	  SHELL="$CONFIG_SHELL"
633	  export SHELL
634	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
635        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636	     test "X$echo_testing_string" = 'X\t' &&
637	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638	     test "X$echo_testing_string" = "X$echo_test_string"; then
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        else
641	  # maybe with a smaller string...
642	  prev=:
643
644	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646	    then
647	      break
648	    fi
649	    prev="$cmd"
650	  done
651
652	  if test "$prev" != 'sed 50q "$0"'; then
653	    echo_test_string=`eval $prev`
654	    export echo_test_string
655	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656	  else
657	    # Oops.  We lost completely, so just stick with echo.
658	    ECHO=echo
659	  fi
660        fi
661      fi
662    fi
663  fi
664fi
665
666# Copy echo and quote the copy suitably for passing to libtool from
667# the Makefile, instead of quoting the original, which is used later.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
676exec 7<&0 </dev/null 6>&1
677
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683#
684# Initializations.
685#
686ac_default_prefix=/usr/local
687ac_clean_files=
688ac_config_libobj_dir=.
689LIBOBJS=
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
694
695# Identity of this package.
696PACKAGE_NAME='package-unused'
697PACKAGE_TARNAME='libbacktrace'
698PACKAGE_VERSION='version-unused'
699PACKAGE_STRING='package-unused version-unused'
700PACKAGE_BUGREPORT=''
701PACKAGE_URL=''
702
703ac_unique_file="backtrace.h"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
707#ifdef HAVE_SYS_TYPES_H
708# include <sys/types.h>
709#endif
710#ifdef HAVE_SYS_STAT_H
711# include <sys/stat.h>
712#endif
713#ifdef STDC_HEADERS
714# include <stdlib.h>
715# include <stddef.h>
716#else
717# ifdef HAVE_STDLIB_H
718#  include <stdlib.h>
719# endif
720#endif
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723#  include <memory.h>
724# endif
725# include <string.h>
726#endif
727#ifdef HAVE_STRINGS_H
728# include <strings.h>
729#endif
730#ifdef HAVE_INTTYPES_H
731# include <inttypes.h>
732#endif
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
737# include <unistd.h>
738#endif"
739
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744NATIVE_FALSE
745NATIVE_TRUE
746HAVE_OBJCOPY_DEBUGLINK_FALSE
747HAVE_OBJCOPY_DEBUGLINK_TRUE
748OBJCOPY
749HAVE_COMPRESSED_DEBUG_FALSE
750HAVE_COMPRESSED_DEBUG_TRUE
751HAVE_ZLIB_FALSE
752HAVE_ZLIB_TRUE
753HAVE_PTHREAD_FALSE
754HAVE_PTHREAD_TRUE
755PTHREAD_CFLAGS
756CLOCK_GETTIME_LINK
757BACKTRACE_USES_MALLOC
758ALLOC_FILE
759VIEW_FILE
760BACKTRACE_SUPPORTS_DATA
761BACKTRACE_SUPPORTED
762FORMAT_FILE
763BACKTRACE_SUPPORTS_THREADS
764PIC_FLAG
765WARN_FLAGS
766EXTRA_FLAGS
767BACKTRACE_FILE
768OTOOL64
769OTOOL
770LIPO
771NMEDIT
772DSYMUTIL
773lt_ECHO
774RANLIB
775AR
776LN_S
777NM
778ac_ct_DUMPBIN
779DUMPBIN
780LD
781FGREP
782SED
783LIBTOOL
784MAINT
785MAINTAINER_MODE_FALSE
786MAINTAINER_MODE_TRUE
787am__untar
788am__tar
789AMTAR
790am__leading_dot
791SET_MAKE
792AWK
793mkdir_p
794MKDIR_P
795INSTALL_STRIP_PROGRAM
796STRIP
797install_sh
798MAKEINFO
799AUTOHEADER
800AUTOMAKE
801AUTOCONF
802ACLOCAL
803VERSION
804PACKAGE
805CYGPATH_W
806am__isrc
807INSTALL_DATA
808INSTALL_SCRIPT
809INSTALL_PROGRAM
810libtool_VERSION
811EGREP
812GREP
813CPP
814OBJEXT
815EXEEXT
816ac_ct_CC
817CPPFLAGS
818LDFLAGS
819CFLAGS
820CC
821target_os
822target_vendor
823target_cpu
824target
825host_os
826host_vendor
827host_cpu
828host
829build_os
830build_vendor
831build_cpu
832build
833multi_basedir
834target_alias
835host_alias
836build_alias
837LIBS
838ECHO_T
839ECHO_N
840ECHO_C
841DEFS
842mandir
843localedir
844libdir
845psdir
846pdfdir
847dvidir
848htmldir
849infodir
850docdir
851oldincludedir
852includedir
853localstatedir
854sharedstatedir
855sysconfdir
856datadir
857datarootdir
858libexecdir
859sbindir
860bindir
861program_transform_name
862prefix
863exec_prefix
864PACKAGE_URL
865PACKAGE_BUGREPORT
866PACKAGE_STRING
867PACKAGE_VERSION
868PACKAGE_TARNAME
869PACKAGE_NAME
870PATH_SEPARATOR
871SHELL'
872ac_subst_files=''
873ac_user_opts='
874enable_option_checking
875enable_multilib
876enable_maintainer_mode
877with_target_subdir
878enable_shared
879enable_static
880with_pic
881enable_fast_install
882with_gnu_ld
883enable_libtool_lock
884enable_largefile
885with_system_libunwind
886enable_host_shared
887'
888      ac_precious_vars='build_alias
889host_alias
890target_alias
891CC
892CFLAGS
893LDFLAGS
894LIBS
895CPPFLAGS
896CPP
897OBJCOPY'
898
899
900# Initialize some variables set by options.
901ac_init_help=
902ac_init_version=false
903ac_unrecognized_opts=
904ac_unrecognized_sep=
905# The variables have the same names as the options, with
906# dashes changed to underlines.
907cache_file=/dev/null
908exec_prefix=NONE
909no_create=
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
918verbose=
919x_includes=NONE
920x_libraries=NONE
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
927# (The list follows the same order as the GNU Coding Standards.)
928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
936includedir='${prefix}/include'
937oldincludedir='/usr/include'
938docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
947
948ac_prev=
949ac_dashdash=
950for ac_option
951do
952  # If the previous option needs an argument, assign it.
953  if test -n "$ac_prev"; then
954    eval $ac_prev=\$ac_option
955    ac_prev=
956    continue
957  fi
958
959  case $ac_option in
960  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961  *)	ac_optarg=yes ;;
962  esac
963
964  # Accept the important Cygnus configure options, so we can diagnose typos.
965
966  case $ac_dashdash$ac_option in
967  --)
968    ac_dashdash=yes ;;
969
970  -bindir | --bindir | --bindi | --bind | --bin | --bi)
971    ac_prev=bindir ;;
972  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973    bindir=$ac_optarg ;;
974
975  -build | --build | --buil | --bui | --bu)
976    ac_prev=build_alias ;;
977  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978    build_alias=$ac_optarg ;;
979
980  -cache-file | --cache-file | --cache-fil | --cache-fi \
981  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982    ac_prev=cache_file ;;
983  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985    cache_file=$ac_optarg ;;
986
987  --config-cache | -C)
988    cache_file=config.cache ;;
989
990  -datadir | --datadir | --datadi | --datad)
991    ac_prev=datadir ;;
992  -datadir=* | --datadir=* | --datadi=* | --datad=*)
993    datadir=$ac_optarg ;;
994
995  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996  | --dataroo | --dataro | --datar)
997    ac_prev=datarootdir ;;
998  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000    datarootdir=$ac_optarg ;;
1001
1002  -disable-* | --disable-*)
1003    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004    # Reject names that are not valid shell variable names.
1005    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006      as_fn_error "invalid feature name: $ac_useropt"
1007    ac_useropt_orig=$ac_useropt
1008    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009    case $ac_user_opts in
1010      *"
1011"enable_$ac_useropt"
1012"*) ;;
1013      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014	 ac_unrecognized_sep=', ';;
1015    esac
1016    eval enable_$ac_useropt=no ;;
1017
1018  -docdir | --docdir | --docdi | --doc | --do)
1019    ac_prev=docdir ;;
1020  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021    docdir=$ac_optarg ;;
1022
1023  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024    ac_prev=dvidir ;;
1025  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026    dvidir=$ac_optarg ;;
1027
1028  -enable-* | --enable-*)
1029    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030    # Reject names that are not valid shell variable names.
1031    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032      as_fn_error "invalid feature name: $ac_useropt"
1033    ac_useropt_orig=$ac_useropt
1034    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035    case $ac_user_opts in
1036      *"
1037"enable_$ac_useropt"
1038"*) ;;
1039      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040	 ac_unrecognized_sep=', ';;
1041    esac
1042    eval enable_$ac_useropt=\$ac_optarg ;;
1043
1044  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046  | --exec | --exe | --ex)
1047    ac_prev=exec_prefix ;;
1048  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050  | --exec=* | --exe=* | --ex=*)
1051    exec_prefix=$ac_optarg ;;
1052
1053  -gas | --gas | --ga | --g)
1054    # Obsolete; use --with-gas.
1055    with_gas=yes ;;
1056
1057  -help | --help | --hel | --he | -h)
1058    ac_init_help=long ;;
1059  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060    ac_init_help=recursive ;;
1061  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062    ac_init_help=short ;;
1063
1064  -host | --host | --hos | --ho)
1065    ac_prev=host_alias ;;
1066  -host=* | --host=* | --hos=* | --ho=*)
1067    host_alias=$ac_optarg ;;
1068
1069  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070    ac_prev=htmldir ;;
1071  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072  | --ht=*)
1073    htmldir=$ac_optarg ;;
1074
1075  -includedir | --includedir | --includedi | --included | --include \
1076  | --includ | --inclu | --incl | --inc)
1077    ac_prev=includedir ;;
1078  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079  | --includ=* | --inclu=* | --incl=* | --inc=*)
1080    includedir=$ac_optarg ;;
1081
1082  -infodir | --infodir | --infodi | --infod | --info | --inf)
1083    ac_prev=infodir ;;
1084  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085    infodir=$ac_optarg ;;
1086
1087  -libdir | --libdir | --libdi | --libd)
1088    ac_prev=libdir ;;
1089  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090    libdir=$ac_optarg ;;
1091
1092  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093  | --libexe | --libex | --libe)
1094    ac_prev=libexecdir ;;
1095  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096  | --libexe=* | --libex=* | --libe=*)
1097    libexecdir=$ac_optarg ;;
1098
1099  -localedir | --localedir | --localedi | --localed | --locale)
1100    ac_prev=localedir ;;
1101  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102    localedir=$ac_optarg ;;
1103
1104  -localstatedir | --localstatedir | --localstatedi | --localstated \
1105  | --localstate | --localstat | --localsta | --localst | --locals)
1106    ac_prev=localstatedir ;;
1107  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109    localstatedir=$ac_optarg ;;
1110
1111  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112    ac_prev=mandir ;;
1113  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114    mandir=$ac_optarg ;;
1115
1116  -nfp | --nfp | --nf)
1117    # Obsolete; use --without-fp.
1118    with_fp=no ;;
1119
1120  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121  | --no-cr | --no-c | -n)
1122    no_create=yes ;;
1123
1124  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126    no_recursion=yes ;;
1127
1128  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130  | --oldin | --oldi | --old | --ol | --o)
1131    ac_prev=oldincludedir ;;
1132  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135    oldincludedir=$ac_optarg ;;
1136
1137  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138    ac_prev=prefix ;;
1139  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140    prefix=$ac_optarg ;;
1141
1142  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143  | --program-pre | --program-pr | --program-p)
1144    ac_prev=program_prefix ;;
1145  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147    program_prefix=$ac_optarg ;;
1148
1149  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150  | --program-suf | --program-su | --program-s)
1151    ac_prev=program_suffix ;;
1152  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154    program_suffix=$ac_optarg ;;
1155
1156  -program-transform-name | --program-transform-name \
1157  | --program-transform-nam | --program-transform-na \
1158  | --program-transform-n | --program-transform- \
1159  | --program-transform | --program-transfor \
1160  | --program-transfo | --program-transf \
1161  | --program-trans | --program-tran \
1162  | --progr-tra | --program-tr | --program-t)
1163    ac_prev=program_transform_name ;;
1164  -program-transform-name=* | --program-transform-name=* \
1165  | --program-transform-nam=* | --program-transform-na=* \
1166  | --program-transform-n=* | --program-transform-=* \
1167  | --program-transform=* | --program-transfor=* \
1168  | --program-transfo=* | --program-transf=* \
1169  | --program-trans=* | --program-tran=* \
1170  | --progr-tra=* | --program-tr=* | --program-t=*)
1171    program_transform_name=$ac_optarg ;;
1172
1173  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174    ac_prev=pdfdir ;;
1175  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176    pdfdir=$ac_optarg ;;
1177
1178  -psdir | --psdir | --psdi | --psd | --ps)
1179    ac_prev=psdir ;;
1180  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181    psdir=$ac_optarg ;;
1182
1183  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184  | -silent | --silent | --silen | --sile | --sil)
1185    silent=yes ;;
1186
1187  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188    ac_prev=sbindir ;;
1189  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190  | --sbi=* | --sb=*)
1191    sbindir=$ac_optarg ;;
1192
1193  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195  | --sharedst | --shareds | --shared | --share | --shar \
1196  | --sha | --sh)
1197    ac_prev=sharedstatedir ;;
1198  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201  | --sha=* | --sh=*)
1202    sharedstatedir=$ac_optarg ;;
1203
1204  -site | --site | --sit)
1205    ac_prev=site ;;
1206  -site=* | --site=* | --sit=*)
1207    site=$ac_optarg ;;
1208
1209  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210    ac_prev=srcdir ;;
1211  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212    srcdir=$ac_optarg ;;
1213
1214  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215  | --syscon | --sysco | --sysc | --sys | --sy)
1216    ac_prev=sysconfdir ;;
1217  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219    sysconfdir=$ac_optarg ;;
1220
1221  -target | --target | --targe | --targ | --tar | --ta | --t)
1222    ac_prev=target_alias ;;
1223  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224    target_alias=$ac_optarg ;;
1225
1226  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227    verbose=yes ;;
1228
1229  -version | --version | --versio | --versi | --vers | -V)
1230    ac_init_version=: ;;
1231
1232  -with-* | --with-*)
1233    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234    # Reject names that are not valid shell variable names.
1235    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236      as_fn_error "invalid package name: $ac_useropt"
1237    ac_useropt_orig=$ac_useropt
1238    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239    case $ac_user_opts in
1240      *"
1241"with_$ac_useropt"
1242"*) ;;
1243      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244	 ac_unrecognized_sep=', ';;
1245    esac
1246    eval with_$ac_useropt=\$ac_optarg ;;
1247
1248  -without-* | --without-*)
1249    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250    # Reject names that are not valid shell variable names.
1251    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252      as_fn_error "invalid package name: $ac_useropt"
1253    ac_useropt_orig=$ac_useropt
1254    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255    case $ac_user_opts in
1256      *"
1257"with_$ac_useropt"
1258"*) ;;
1259      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260	 ac_unrecognized_sep=', ';;
1261    esac
1262    eval with_$ac_useropt=no ;;
1263
1264  --x)
1265    # Obsolete; use --with-x.
1266    with_x=yes ;;
1267
1268  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269  | --x-incl | --x-inc | --x-in | --x-i)
1270    ac_prev=x_includes ;;
1271  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273    x_includes=$ac_optarg ;;
1274
1275  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277    ac_prev=x_libraries ;;
1278  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280    x_libraries=$ac_optarg ;;
1281
1282  -*) as_fn_error "unrecognized option: \`$ac_option'
1283Try \`$0 --help' for more information."
1284    ;;
1285
1286  *=*)
1287    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288    # Reject names that are not valid shell variable names.
1289    case $ac_envvar in #(
1290      '' | [0-9]* | *[!_$as_cr_alnum]* )
1291      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1292    esac
1293    eval $ac_envvar=\$ac_optarg
1294    export $ac_envvar ;;
1295
1296  *)
1297    # FIXME: should be removed in autoconf 3.0.
1298    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302    ;;
1303
1304  esac
1305done
1306
1307if test -n "$ac_prev"; then
1308  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309  as_fn_error "missing argument to $ac_option"
1310fi
1311
1312if test -n "$ac_unrecognized_opts"; then
1313  case $enable_option_checking in
1314    no) ;;
1315    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1316    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317  esac
1318fi
1319
1320# Check all directory arguments for consistency.
1321for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322		datadir sysconfdir sharedstatedir localstatedir includedir \
1323		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324		libdir localedir mandir
1325do
1326  eval ac_val=\$$ac_var
1327  # Remove trailing slashes.
1328  case $ac_val in
1329    */ )
1330      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331      eval $ac_var=\$ac_val;;
1332  esac
1333  # Be sure to have absolute directory names.
1334  case $ac_val in
1335    [\\/$]* | ?:[\\/]* )  continue;;
1336    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337  esac
1338  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1339done
1340
1341# There might be people who depend on the old broken behavior: `$host'
1342# used to hold the argument of --host etc.
1343# FIXME: To remove some day.
1344build=$build_alias
1345host=$host_alias
1346target=$target_alias
1347
1348# FIXME: To remove some day.
1349if test "x$host_alias" != x; then
1350  if test "x$build_alias" = x; then
1351    cross_compiling=maybe
1352    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1353    If a cross compiler is detected then cross compile mode will be used." >&2
1354  elif test "x$build_alias" != "x$host_alias"; then
1355    cross_compiling=yes
1356  fi
1357fi
1358
1359ac_tool_prefix=
1360test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362test "$silent" = yes && exec 6>/dev/null
1363
1364
1365ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366ac_ls_di=`ls -di .` &&
1367ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368  as_fn_error "working directory cannot be determined"
1369test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370  as_fn_error "pwd does not report name of working directory"
1371
1372
1373# Find the source files, if location was not specified.
1374if test -z "$srcdir"; then
1375  ac_srcdir_defaulted=yes
1376  # Try the directory containing this script, then the parent directory.
1377  ac_confdir=`$as_dirname -- "$as_myself" ||
1378$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379	 X"$as_myself" : 'X\(//\)[^/]' \| \
1380	 X"$as_myself" : 'X\(//\)$' \| \
1381	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382$as_echo X"$as_myself" |
1383    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384	    s//\1/
1385	    q
1386	  }
1387	  /^X\(\/\/\)[^/].*/{
1388	    s//\1/
1389	    q
1390	  }
1391	  /^X\(\/\/\)$/{
1392	    s//\1/
1393	    q
1394	  }
1395	  /^X\(\/\).*/{
1396	    s//\1/
1397	    q
1398	  }
1399	  s/.*/./; q'`
1400  srcdir=$ac_confdir
1401  if test ! -r "$srcdir/$ac_unique_file"; then
1402    srcdir=..
1403  fi
1404else
1405  ac_srcdir_defaulted=no
1406fi
1407if test ! -r "$srcdir/$ac_unique_file"; then
1408  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1410fi
1411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412ac_abs_confdir=`(
1413	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1414	pwd)`
1415# When building in place, set srcdir=.
1416if test "$ac_abs_confdir" = "$ac_pwd"; then
1417  srcdir=.
1418fi
1419# Remove unnecessary trailing slashes from srcdir.
1420# Double slashes in file names in object file debugging info
1421# mess up M-x gdb in Emacs.
1422case $srcdir in
1423*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424esac
1425for ac_var in $ac_precious_vars; do
1426  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427  eval ac_env_${ac_var}_value=\$${ac_var}
1428  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430done
1431
1432#
1433# Report the --help message.
1434#
1435if test "$ac_init_help" = "long"; then
1436  # Omit some internal or obsolete options to make the list less imposing.
1437  # This message is too long to be a string in the A/UX 3.1 sh.
1438  cat <<_ACEOF
1439\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1440
1441Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444VAR=VALUE.  See below for descriptions of some of the useful variables.
1445
1446Defaults for the options are specified in brackets.
1447
1448Configuration:
1449  -h, --help              display this help and exit
1450      --help=short        display options specific to this package
1451      --help=recursive    display the short help of all the included packages
1452  -V, --version           display version information and exit
1453  -q, --quiet, --silent   do not print \`checking...' messages
1454      --cache-file=FILE   cache test results in FILE [disabled]
1455  -C, --config-cache      alias for \`--cache-file=config.cache'
1456  -n, --no-create         do not create output files
1457      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1458
1459Installation directories:
1460  --prefix=PREFIX         install architecture-independent files in PREFIX
1461                          [$ac_default_prefix]
1462  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1463                          [PREFIX]
1464
1465By default, \`make install' will install all the files in
1466\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1467an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468for instance \`--prefix=\$HOME'.
1469
1470For better control, use the options below.
1471
1472Fine tuning of the installation directories:
1473  --bindir=DIR            user executables [EPREFIX/bin]
1474  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1475  --libexecdir=DIR        program executables [EPREFIX/libexec]
1476  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1477  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1478  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1479  --libdir=DIR            object code libraries [EPREFIX/lib]
1480  --includedir=DIR        C header files [PREFIX/include]
1481  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1482  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1483  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1484  --infodir=DIR           info documentation [DATAROOTDIR/info]
1485  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1486  --mandir=DIR            man documentation [DATAROOTDIR/man]
1487  --docdir=DIR            documentation root [DATAROOTDIR/doc/libbacktrace]
1488  --htmldir=DIR           html documentation [DOCDIR]
1489  --dvidir=DIR            dvi documentation [DOCDIR]
1490  --pdfdir=DIR            pdf documentation [DOCDIR]
1491  --psdir=DIR             ps documentation [DOCDIR]
1492_ACEOF
1493
1494  cat <<\_ACEOF
1495
1496Program names:
1497  --program-prefix=PREFIX            prepend PREFIX to installed program names
1498  --program-suffix=SUFFIX            append SUFFIX to installed program names
1499  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1500
1501System types:
1502  --build=BUILD     configure for building on BUILD [guessed]
1503  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1504  --target=TARGET   configure for building compilers for TARGET [HOST]
1505_ACEOF
1506fi
1507
1508if test -n "$ac_init_help"; then
1509  case $ac_init_help in
1510     short | recursive ) echo "Configuration of package-unused version-unused:";;
1511   esac
1512  cat <<\_ACEOF
1513
1514Optional Features:
1515  --disable-option-checking  ignore unrecognized --enable/--with options
1516  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1517  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518  --enable-multilib       build many library versions (default)
1519  --enable-maintainer-mode  enable make rules and dependencies not useful
1520			  (and sometimes confusing) to the casual installer
1521  --enable-shared[=PKGS]  build shared libraries [default=yes]
1522  --enable-static[=PKGS]  build static libraries [default=yes]
1523  --enable-fast-install[=PKGS]
1524                          optimize for fast installation [default=yes]
1525  --disable-libtool-lock  avoid locking (might break parallel builds)
1526  --disable-largefile     omit support for large files
1527  --enable-host-shared    build host code as shared libraries
1528
1529Optional Packages:
1530  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1531  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1532  --with-target-subdir=SUBDIR      Configuring in a subdirectory for target
1533  --with-pic              try to use only PIC/non-PIC objects [default=use
1534                          both]
1535  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1536  --with-system-libunwind use installed libunwind
1537
1538Some influential environment variables:
1539  CC          C compiler command
1540  CFLAGS      C compiler flags
1541  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1542              nonstandard directory <lib dir>
1543  LIBS        libraries to pass to the linker, e.g. -l<library>
1544  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1545              you have headers in a nonstandard directory <include dir>
1546  CPP         C preprocessor
1547  OBJCOPY     location of objcopy
1548
1549Use these variables to override the choices made by `configure' or to help
1550it to find libraries and programs with nonstandard names/locations.
1551
1552Report bugs to the package provider.
1553_ACEOF
1554ac_status=$?
1555fi
1556
1557if test "$ac_init_help" = "recursive"; then
1558  # If there are subdirs, report their specific --help.
1559  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560    test -d "$ac_dir" ||
1561      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562      continue
1563    ac_builddir=.
1564
1565case "$ac_dir" in
1566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567*)
1568  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569  # A ".." for each directory in $ac_dir_suffix.
1570  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571  case $ac_top_builddir_sub in
1572  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574  esac ;;
1575esac
1576ac_abs_top_builddir=$ac_pwd
1577ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578# for backward compatibility:
1579ac_top_builddir=$ac_top_build_prefix
1580
1581case $srcdir in
1582  .)  # We are building in place.
1583    ac_srcdir=.
1584    ac_top_srcdir=$ac_top_builddir_sub
1585    ac_abs_top_srcdir=$ac_pwd ;;
1586  [\\/]* | ?:[\\/]* )  # Absolute name.
1587    ac_srcdir=$srcdir$ac_dir_suffix;
1588    ac_top_srcdir=$srcdir
1589    ac_abs_top_srcdir=$srcdir ;;
1590  *) # Relative name.
1591    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592    ac_top_srcdir=$ac_top_build_prefix$srcdir
1593    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594esac
1595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597    cd "$ac_dir" || { ac_status=$?; continue; }
1598    # Check for guested configure.
1599    if test -f "$ac_srcdir/configure.gnu"; then
1600      echo &&
1601      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602    elif test -f "$ac_srcdir/configure"; then
1603      echo &&
1604      $SHELL "$ac_srcdir/configure" --help=recursive
1605    else
1606      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607    fi || ac_status=$?
1608    cd "$ac_pwd" || { ac_status=$?; break; }
1609  done
1610fi
1611
1612test -n "$ac_init_help" && exit $ac_status
1613if $ac_init_version; then
1614  cat <<\_ACEOF
1615package-unused configure version-unused
1616generated by GNU Autoconf 2.64
1617
1618Copyright (C) 2009 Free Software Foundation, Inc.
1619This configure script is free software; the Free Software Foundation
1620gives unlimited permission to copy, distribute and modify it.
1621_ACEOF
1622  exit
1623fi
1624
1625## ------------------------ ##
1626## Autoconf initialization. ##
1627## ------------------------ ##
1628
1629# ac_fn_c_try_compile LINENO
1630# --------------------------
1631# Try to compile conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_compile ()
1633{
1634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635  rm -f conftest.$ac_objext
1636  if { { ac_try="$ac_compile"
1637case "(($ac_try" in
1638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639  *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643  (eval "$ac_compile") 2>conftest.err
1644  ac_status=$?
1645  if test -s conftest.err; then
1646    grep -v '^ *+' conftest.err >conftest.er1
1647    cat conftest.er1 >&5
1648    mv -f conftest.er1 conftest.err
1649  fi
1650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651  test $ac_status = 0; } && {
1652	 test -z "$ac_c_werror_flag" ||
1653	 test ! -s conftest.err
1654       } && test -s conftest.$ac_objext; then :
1655  ac_retval=0
1656else
1657  $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
1659
1660	ac_retval=1
1661fi
1662  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663  return $ac_retval
1664
1665} # ac_fn_c_try_compile
1666
1667# ac_fn_c_try_cpp LINENO
1668# ----------------------
1669# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_cpp ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  if { { ac_try="$ac_cpp conftest.$ac_ext"
1674case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681  ac_status=$?
1682  if test -s conftest.err; then
1683    grep -v '^ *+' conftest.err >conftest.er1
1684    cat conftest.er1 >&5
1685    mv -f conftest.er1 conftest.err
1686  fi
1687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688  test $ac_status = 0; } >/dev/null && {
1689	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690	 test ! -s conftest.err
1691       }; then :
1692  ac_retval=0
1693else
1694  $as_echo "$as_me: failed program was:" >&5
1695sed 's/^/| /' conftest.$ac_ext >&5
1696
1697    ac_retval=1
1698fi
1699  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700  return $ac_retval
1701
1702} # ac_fn_c_try_cpp
1703
1704# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1705# -------------------------------------------------------
1706# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1707# the include files in INCLUDES and setting the cache variable VAR
1708# accordingly.
1709ac_fn_c_check_header_mongrel ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714$as_echo_n "checking for $2... " >&6; }
1715if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716  $as_echo_n "(cached) " >&6
1717fi
1718eval ac_res=\$$3
1719	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721else
1722  # Is the header compilable?
1723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1724$as_echo_n "checking $2 usability... " >&6; }
1725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726/* end confdefs.h.  */
1727$4
1728#include <$2>
1729_ACEOF
1730if ac_fn_c_try_compile "$LINENO"; then :
1731  ac_header_compiler=yes
1732else
1733  ac_header_compiler=no
1734fi
1735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1737$as_echo "$ac_header_compiler" >&6; }
1738
1739# Is the header present?
1740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1741$as_echo_n "checking $2 presence... " >&6; }
1742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h.  */
1744#include <$2>
1745_ACEOF
1746if ac_fn_c_try_cpp "$LINENO"; then :
1747  ac_header_preproc=yes
1748else
1749  ac_header_preproc=no
1750fi
1751rm -f conftest.err conftest.$ac_ext
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1753$as_echo "$ac_header_preproc" >&6; }
1754
1755# So?  What about this header?
1756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1757  yes:no: )
1758    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1759$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1760    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1761$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1762    ;;
1763  no:yes:* )
1764    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1765$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1766    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1767$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1768    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1769$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1770    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1771$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1772    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1773$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774    ;;
1775esac
1776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777$as_echo_n "checking for $2... " >&6; }
1778if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779  $as_echo_n "(cached) " >&6
1780else
1781  eval "$3=\$ac_header_compiler"
1782fi
1783eval ac_res=\$$3
1784	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785$as_echo "$ac_res" >&6; }
1786fi
1787  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788
1789} # ac_fn_c_check_header_mongrel
1790
1791# ac_fn_c_try_run LINENO
1792# ----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1794# that executables *can* be run.
1795ac_fn_c_try_run ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_link") 2>&5
1806  ac_status=$?
1807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1809  { { case "(($ac_try" in
1810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811  *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815  (eval "$ac_try") 2>&5
1816  ac_status=$?
1817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818  test $ac_status = 0; }; }; then :
1819  ac_retval=0
1820else
1821  $as_echo "$as_me: program exited with status $ac_status" >&5
1822       $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825       ac_retval=$ac_status
1826fi
1827  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829  return $ac_retval
1830
1831} # ac_fn_c_try_run
1832
1833# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1834# -------------------------------------------------------
1835# Tests whether HEADER exists and can be compiled using the include files in
1836# INCLUDES, setting the cache variable VAR accordingly.
1837ac_fn_c_check_header_compile ()
1838{
1839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
1842if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1843  $as_echo_n "(cached) " >&6
1844else
1845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h.  */
1847$4
1848#include <$2>
1849_ACEOF
1850if ac_fn_c_try_compile "$LINENO"; then :
1851  eval "$3=yes"
1852else
1853  eval "$3=no"
1854fi
1855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856fi
1857eval ac_res=\$$3
1858	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859$as_echo "$ac_res" >&6; }
1860  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861
1862} # ac_fn_c_check_header_compile
1863
1864# ac_fn_c_try_link LINENO
1865# -----------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded.
1867ac_fn_c_try_link ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  rm -f conftest.$ac_objext conftest$ac_exeext
1871  if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874  *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878  (eval "$ac_link") 2>conftest.err
1879  ac_status=$?
1880  if test -s conftest.err; then
1881    grep -v '^ *+' conftest.err >conftest.er1
1882    cat conftest.er1 >&5
1883    mv -f conftest.er1 conftest.err
1884  fi
1885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886  test $ac_status = 0; } && {
1887	 test -z "$ac_c_werror_flag" ||
1888	 test ! -s conftest.err
1889       } && test -s conftest$ac_exeext && {
1890	 test "$cross_compiling" = yes ||
1891	 $as_test_x conftest$ac_exeext
1892       }; then :
1893  ac_retval=0
1894else
1895  $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898	ac_retval=1
1899fi
1900  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902  # interfere with the next link command; also delete a directory that is
1903  # left behind by Apple's compiler.  We do this before executing the actions.
1904  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906  return $ac_retval
1907
1908} # ac_fn_c_try_link
1909
1910# ac_fn_c_check_func LINENO FUNC VAR
1911# ----------------------------------
1912# Tests whether FUNC exists, setting the cache variable VAR accordingly
1913ac_fn_c_check_func ()
1914{
1915  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917$as_echo_n "checking for $2... " >&6; }
1918if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919  $as_echo_n "(cached) " >&6
1920else
1921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h.  */
1923/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1925#define $2 innocuous_$2
1926
1927/* System header to define __stub macros and hopefully few prototypes,
1928    which can conflict with char $2 (); below.
1929    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1930    <limits.h> exists even on freestanding compilers.  */
1931
1932#ifdef __STDC__
1933# include <limits.h>
1934#else
1935# include <assert.h>
1936#endif
1937
1938#undef $2
1939
1940/* Override any GCC internal prototype to avoid an error.
1941   Use char because int might match the return type of a GCC
1942   builtin and then its argument prototype would still apply.  */
1943#ifdef __cplusplus
1944extern "C"
1945#endif
1946char $2 ();
1947/* The GNU C library defines this for functions which it implements
1948    to always fail with ENOSYS.  Some functions are actually named
1949    something starting with __ and the normal name is an alias.  */
1950#if defined __stub_$2 || defined __stub___$2
1951choke me
1952#endif
1953
1954int
1955main ()
1956{
1957return $2 ();
1958  ;
1959  return 0;
1960}
1961_ACEOF
1962if ac_fn_c_try_link "$LINENO"; then :
1963  eval "$3=yes"
1964else
1965  eval "$3=no"
1966fi
1967rm -f core conftest.err conftest.$ac_objext \
1968    conftest$ac_exeext conftest.$ac_ext
1969fi
1970eval ac_res=\$$3
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974
1975} # ac_fn_c_check_func
1976
1977# ac_fn_c_check_decl LINENO SYMBOL VAR
1978# ------------------------------------
1979# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1980ac_fn_c_check_decl ()
1981{
1982  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1984$as_echo_n "checking whether $2 is declared... " >&6; }
1985if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1986  $as_echo_n "(cached) " >&6
1987else
1988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$4
1991int
1992main ()
1993{
1994#ifndef $2
1995  (void) $2;
1996#endif
1997
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003  eval "$3=yes"
2004else
2005  eval "$3=no"
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009eval ac_res=\$$3
2010	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013
2014} # ac_fn_c_check_decl
2015cat >config.log <<_ACEOF
2016This file contains any messages produced by compilers while
2017running configure, to aid debugging if configure makes a mistake.
2018
2019It was created by package-unused $as_me version-unused, which was
2020generated by GNU Autoconf 2.64.  Invocation command line was
2021
2022  $ $0 $@
2023
2024_ACEOF
2025exec 5>>config.log
2026{
2027cat <<_ASUNAME
2028## --------- ##
2029## Platform. ##
2030## --------- ##
2031
2032hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037
2038/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2040
2041/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2042/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2043/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2044/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2045/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2046/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2047/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2048
2049_ASUNAME
2050
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054  IFS=$as_save_IFS
2055  test -z "$as_dir" && as_dir=.
2056    $as_echo "PATH: $as_dir"
2057  done
2058IFS=$as_save_IFS
2059
2060} >&5
2061
2062cat >&5 <<_ACEOF
2063
2064
2065## ----------- ##
2066## Core tests. ##
2067## ----------- ##
2068
2069_ACEOF
2070
2071
2072# Keep a trace of the command line.
2073# Strip out --no-create and --no-recursion so they do not pile up.
2074# Strip out --silent because we don't want to record it for future runs.
2075# Also quote any args containing shell meta-characters.
2076# Make two passes to allow for proper duplicate-argument suppression.
2077ac_configure_args=
2078ac_configure_args0=
2079ac_configure_args1=
2080ac_must_keep_next=false
2081for ac_pass in 1 2
2082do
2083  for ac_arg
2084  do
2085    case $ac_arg in
2086    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088    | -silent | --silent | --silen | --sile | --sil)
2089      continue ;;
2090    *\'*)
2091      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2092    esac
2093    case $ac_pass in
2094    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095    2)
2096      as_fn_append ac_configure_args1 " '$ac_arg'"
2097      if test $ac_must_keep_next = true; then
2098	ac_must_keep_next=false # Got value, back to normal.
2099      else
2100	case $ac_arg in
2101	  *=* | --config-cache | -C | -disable-* | --disable-* \
2102	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104	  | -with-* | --with-* | -without-* | --without-* | --x)
2105	    case "$ac_configure_args0 " in
2106	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107	    esac
2108	    ;;
2109	  -* ) ac_must_keep_next=true ;;
2110	esac
2111      fi
2112      as_fn_append ac_configure_args " '$ac_arg'"
2113      ;;
2114    esac
2115  done
2116done
2117{ ac_configure_args0=; unset ac_configure_args0;}
2118{ ac_configure_args1=; unset ac_configure_args1;}
2119
2120# When interrupted or exit'd, cleanup temporary files, and complete
2121# config.log.  We remove comments because anyway the quotes in there
2122# would cause problems or look ugly.
2123# WARNING: Use '\'' to represent an apostrophe within the trap.
2124# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2125trap 'exit_status=$?
2126  # Save into config.log some information that might help in debugging.
2127  {
2128    echo
2129
2130    cat <<\_ASBOX
2131## ---------------- ##
2132## Cache variables. ##
2133## ---------------- ##
2134_ASBOX
2135    echo
2136    # The following way of writing the cache mishandles newlines in values,
2137(
2138  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139    eval ac_val=\$$ac_var
2140    case $ac_val in #(
2141    *${as_nl}*)
2142      case $ac_var in #(
2143      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145      esac
2146      case $ac_var in #(
2147      _ | IFS | as_nl) ;; #(
2148      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149      *) { eval $ac_var=; unset $ac_var;} ;;
2150      esac ;;
2151    esac
2152  done
2153  (set) 2>&1 |
2154    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155    *${as_nl}ac_space=\ *)
2156      sed -n \
2157	"s/'\''/'\''\\\\'\'''\''/g;
2158	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159      ;; #(
2160    *)
2161      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162      ;;
2163    esac |
2164    sort
2165)
2166    echo
2167
2168    cat <<\_ASBOX
2169## ----------------- ##
2170## Output variables. ##
2171## ----------------- ##
2172_ASBOX
2173    echo
2174    for ac_var in $ac_subst_vars
2175    do
2176      eval ac_val=\$$ac_var
2177      case $ac_val in
2178      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179      esac
2180      $as_echo "$ac_var='\''$ac_val'\''"
2181    done | sort
2182    echo
2183
2184    if test -n "$ac_subst_files"; then
2185      cat <<\_ASBOX
2186## ------------------- ##
2187## File substitutions. ##
2188## ------------------- ##
2189_ASBOX
2190      echo
2191      for ac_var in $ac_subst_files
2192      do
2193	eval ac_val=\$$ac_var
2194	case $ac_val in
2195	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196	esac
2197	$as_echo "$ac_var='\''$ac_val'\''"
2198      done | sort
2199      echo
2200    fi
2201
2202    if test -s confdefs.h; then
2203      cat <<\_ASBOX
2204## ----------- ##
2205## confdefs.h. ##
2206## ----------- ##
2207_ASBOX
2208      echo
2209      cat confdefs.h
2210      echo
2211    fi
2212    test "$ac_signal" != 0 &&
2213      $as_echo "$as_me: caught signal $ac_signal"
2214    $as_echo "$as_me: exit $exit_status"
2215  } >&5
2216  rm -f core *.core core.conftest.* &&
2217    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2218    exit $exit_status
2219' 0
2220for ac_signal in 1 2 13 15; do
2221  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2222done
2223ac_signal=0
2224
2225# confdefs.h avoids OS command line length limits that DEFS can exceed.
2226rm -f -r conftest* confdefs.h
2227
2228$as_echo "/* confdefs.h */" > confdefs.h
2229
2230# Predefined preprocessor variables.
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_NAME "$PACKAGE_NAME"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238_ACEOF
2239
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_VERSION "$PACKAGE_VERSION"
2242_ACEOF
2243
2244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE_STRING "$PACKAGE_STRING"
2246_ACEOF
2247
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2250_ACEOF
2251
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_URL "$PACKAGE_URL"
2254_ACEOF
2255
2256
2257# Let the site file select an alternate cache file if it wants to.
2258# Prefer an explicitly selected file to automatically selected ones.
2259ac_site_file1=NONE
2260ac_site_file2=NONE
2261if test -n "$CONFIG_SITE"; then
2262  ac_site_file1=$CONFIG_SITE
2263elif test "x$prefix" != xNONE; then
2264  ac_site_file1=$prefix/share/config.site
2265  ac_site_file2=$prefix/etc/config.site
2266else
2267  ac_site_file1=$ac_default_prefix/share/config.site
2268  ac_site_file2=$ac_default_prefix/etc/config.site
2269fi
2270for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271do
2272  test "x$ac_site_file" = xNONE && continue
2273  if test -r "$ac_site_file"; then
2274    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2275$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2276    sed 's/^/| /' "$ac_site_file" >&5
2277    . "$ac_site_file"
2278  fi
2279done
2280
2281if test -r "$cache_file"; then
2282  # Some versions of bash will fail to source /dev/null (special
2283  # files actually), so we avoid doing that.
2284  if test -f "$cache_file"; then
2285    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2286$as_echo "$as_me: loading cache $cache_file" >&6;}
2287    case $cache_file in
2288      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2289      *)                      . "./$cache_file";;
2290    esac
2291  fi
2292else
2293  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2294$as_echo "$as_me: creating cache $cache_file" >&6;}
2295  >$cache_file
2296fi
2297
2298# Check that the precious variables saved in the cache have kept the same
2299# value.
2300ac_cache_corrupted=false
2301for ac_var in $ac_precious_vars; do
2302  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303  eval ac_new_set=\$ac_env_${ac_var}_set
2304  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305  eval ac_new_val=\$ac_env_${ac_var}_value
2306  case $ac_old_set,$ac_new_set in
2307    set,)
2308      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2310      ac_cache_corrupted=: ;;
2311    ,set)
2312      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2314      ac_cache_corrupted=: ;;
2315    ,);;
2316    *)
2317      if test "x$ac_old_val" != "x$ac_new_val"; then
2318	# differences in whitespace do not lead to failure.
2319	ac_old_val_w=`echo x $ac_old_val`
2320	ac_new_val_w=`echo x $ac_new_val`
2321	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324	  ac_cache_corrupted=:
2325	else
2326	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328	  eval $ac_var=\$ac_old_val
2329	fi
2330	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2331$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2332	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2333$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2334      fi;;
2335  esac
2336  # Pass precious variables to config.status.
2337  if test "$ac_new_set" = set; then
2338    case $ac_new_val in
2339    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2340    *) ac_arg=$ac_var=$ac_new_val ;;
2341    esac
2342    case " $ac_configure_args " in
2343      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2344      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345    esac
2346  fi
2347done
2348if $ac_cache_corrupted; then
2349  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2353  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354fi
2355## -------------------- ##
2356## Main body of script. ##
2357## -------------------- ##
2358
2359ac_ext=c
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
2365
2366
2367ac_config_headers="$ac_config_headers config.h"
2368
2369
2370
2371# with_target_subdir is used when configured as part of a GCC tree.
2372if test -n "${with_target_subdir}"; then
2373  # Default to --enable-multilib
2374# Check whether --enable-multilib was given.
2375if test "${enable_multilib+set}" = set; then :
2376  enableval=$enable_multilib; case "$enableval" in
2377  yes) multilib=yes ;;
2378  no)  multilib=no ;;
2379  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2380 esac
2381else
2382  multilib=yes
2383fi
2384
2385
2386# We may get other options which we leave undocumented:
2387# --with-target-subdir, --with-multisrctop, --with-multisubdir
2388# See config-ml.in if you want the gory details.
2389
2390if test "$srcdir" = "."; then
2391  if test "$with_target_subdir" != "."; then
2392    multi_basedir="$srcdir/$with_multisrctop../.."
2393  else
2394    multi_basedir="$srcdir/$with_multisrctop.."
2395  fi
2396else
2397  multi_basedir="$srcdir/.."
2398fi
2399
2400
2401# Even if the default multilib is not a cross compilation,
2402# it may be that some of the other multilibs are.
2403if test $cross_compiling = no && test $multilib = yes \
2404   && test "x${with_multisubdir}" != x ; then
2405   cross_compiling=maybe
2406fi
2407
2408ac_config_commands="$ac_config_commands default-1"
2409
2410fi
2411
2412ac_aux_dir=
2413for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2414  for ac_t in install-sh install.sh shtool; do
2415    if test -f "$ac_dir/$ac_t"; then
2416      ac_aux_dir=$ac_dir
2417      ac_install_sh="$ac_aux_dir/$ac_t -c"
2418      break 2
2419    fi
2420  done
2421done
2422if test -z "$ac_aux_dir"; then
2423  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2424fi
2425
2426# These three variables are undocumented and unsupported,
2427# and are intended to be withdrawn in a future Autoconf release.
2428# They can cause serious problems if a builder's source tree is in a directory
2429# whose full name contains unusual characters.
2430ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2431ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2432ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2433
2434
2435# Make sure we can run config.sub.
2436$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2437  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2438
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2440$as_echo_n "checking build system type... " >&6; }
2441if test "${ac_cv_build+set}" = set; then :
2442  $as_echo_n "(cached) " >&6
2443else
2444  ac_build_alias=$build_alias
2445test "x$ac_build_alias" = x &&
2446  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2447test "x$ac_build_alias" = x &&
2448  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2449ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2450  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2451
2452fi
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2454$as_echo "$ac_cv_build" >&6; }
2455case $ac_cv_build in
2456*-*-*) ;;
2457*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2458esac
2459build=$ac_cv_build
2460ac_save_IFS=$IFS; IFS='-'
2461set x $ac_cv_build
2462shift
2463build_cpu=$1
2464build_vendor=$2
2465shift; shift
2466# Remember, the first character of IFS is used to create $*,
2467# except with old shells:
2468build_os=$*
2469IFS=$ac_save_IFS
2470case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2471
2472
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2474$as_echo_n "checking host system type... " >&6; }
2475if test "${ac_cv_host+set}" = set; then :
2476  $as_echo_n "(cached) " >&6
2477else
2478  if test "x$host_alias" = x; then
2479  ac_cv_host=$ac_cv_build
2480else
2481  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2482    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2483fi
2484
2485fi
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2487$as_echo "$ac_cv_host" >&6; }
2488case $ac_cv_host in
2489*-*-*) ;;
2490*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2491esac
2492host=$ac_cv_host
2493ac_save_IFS=$IFS; IFS='-'
2494set x $ac_cv_host
2495shift
2496host_cpu=$1
2497host_vendor=$2
2498shift; shift
2499# Remember, the first character of IFS is used to create $*,
2500# except with old shells:
2501host_os=$*
2502IFS=$ac_save_IFS
2503case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2504
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2507$as_echo_n "checking target system type... " >&6; }
2508if test "${ac_cv_target+set}" = set; then :
2509  $as_echo_n "(cached) " >&6
2510else
2511  if test "x$target_alias" = x; then
2512  ac_cv_target=$ac_cv_host
2513else
2514  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2515    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2516fi
2517
2518fi
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2520$as_echo "$ac_cv_target" >&6; }
2521case $ac_cv_target in
2522*-*-*) ;;
2523*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2524esac
2525target=$ac_cv_target
2526ac_save_IFS=$IFS; IFS='-'
2527set x $ac_cv_target
2528shift
2529target_cpu=$1
2530target_vendor=$2
2531shift; shift
2532# Remember, the first character of IFS is used to create $*,
2533# except with old shells:
2534target_os=$*
2535IFS=$ac_save_IFS
2536case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2537
2538
2539# The aliases save the names the user supplied, while $host etc.
2540# will get canonicalized.
2541test -n "$target_alias" &&
2542  test "$program_prefix$program_suffix$program_transform_name" = \
2543    NONENONEs,x,x, &&
2544  program_prefix=${target_alias}-
2545
2546target_alias=${target_alias-$host_alias}
2547
2548ac_ext=c
2549ac_cpp='$CPP $CPPFLAGS'
2550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553if test -n "$ac_tool_prefix"; then
2554  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2555set dummy ${ac_tool_prefix}gcc; ac_word=$2
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
2558if test "${ac_cv_prog_CC+set}" = set; then :
2559  $as_echo_n "(cached) " >&6
2560else
2561  if test -n "$CC"; then
2562  ac_cv_prog_CC="$CC" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    for ac_exec_ext in '' $ac_executable_extensions; do
2570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573    break 2
2574  fi
2575done
2576  done
2577IFS=$as_save_IFS
2578
2579fi
2580fi
2581CC=$ac_cv_prog_CC
2582if test -n "$CC"; then
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2584$as_echo "$CC" >&6; }
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588fi
2589
2590
2591fi
2592if test -z "$ac_cv_prog_CC"; then
2593  ac_ct_CC=$CC
2594  # Extract the first word of "gcc", so it can be a program name with args.
2595set dummy gcc; ac_word=$2
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  if test -n "$ac_ct_CC"; then
2602  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609    for ac_exec_ext in '' $ac_executable_extensions; do
2610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611    ac_cv_prog_ac_ct_CC="gcc"
2612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616  done
2617IFS=$as_save_IFS
2618
2619fi
2620fi
2621ac_ct_CC=$ac_cv_prog_ac_ct_CC
2622if test -n "$ac_ct_CC"; then
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2624$as_echo "$ac_ct_CC" >&6; }
2625else
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627$as_echo "no" >&6; }
2628fi
2629
2630  if test "x$ac_ct_CC" = x; then
2631    CC=""
2632  else
2633    case $cross_compiling:$ac_tool_warned in
2634yes:)
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637ac_tool_warned=yes ;;
2638esac
2639    CC=$ac_ct_CC
2640  fi
2641else
2642  CC="$ac_cv_prog_CC"
2643fi
2644
2645if test -z "$CC"; then
2646          if test -n "$ac_tool_prefix"; then
2647    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2648set dummy ${ac_tool_prefix}cc; ac_word=$2
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650$as_echo_n "checking for $ac_word... " >&6; }
2651if test "${ac_cv_prog_CC+set}" = set; then :
2652  $as_echo_n "(cached) " >&6
2653else
2654  if test -n "$CC"; then
2655  ac_cv_prog_CC="$CC" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660  IFS=$as_save_IFS
2661  test -z "$as_dir" && as_dir=.
2662    for ac_exec_ext in '' $ac_executable_extensions; do
2663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664    ac_cv_prog_CC="${ac_tool_prefix}cc"
2665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666    break 2
2667  fi
2668done
2669  done
2670IFS=$as_save_IFS
2671
2672fi
2673fi
2674CC=$ac_cv_prog_CC
2675if test -n "$CC"; then
2676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2677$as_echo "$CC" >&6; }
2678else
2679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680$as_echo "no" >&6; }
2681fi
2682
2683
2684  fi
2685fi
2686if test -z "$CC"; then
2687  # Extract the first word of "cc", so it can be a program name with args.
2688set dummy cc; ac_word=$2
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690$as_echo_n "checking for $ac_word... " >&6; }
2691if test "${ac_cv_prog_CC+set}" = set; then :
2692  $as_echo_n "(cached) " >&6
2693else
2694  if test -n "$CC"; then
2695  ac_cv_prog_CC="$CC" # Let the user override the test.
2696else
2697  ac_prog_rejected=no
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701  IFS=$as_save_IFS
2702  test -z "$as_dir" && as_dir=.
2703    for ac_exec_ext in '' $ac_executable_extensions; do
2704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2706       ac_prog_rejected=yes
2707       continue
2708     fi
2709    ac_cv_prog_CC="cc"
2710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714  done
2715IFS=$as_save_IFS
2716
2717if test $ac_prog_rejected = yes; then
2718  # We found a bogon in the path, so make sure we never use it.
2719  set dummy $ac_cv_prog_CC
2720  shift
2721  if test $# != 0; then
2722    # We chose a different compiler from the bogus one.
2723    # However, it has the same basename, so the bogon will be chosen
2724    # first if we set CC to just the basename; use the full file name.
2725    shift
2726    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2727  fi
2728fi
2729fi
2730fi
2731CC=$ac_cv_prog_CC
2732if test -n "$CC"; then
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2734$as_echo "$CC" >&6; }
2735else
2736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737$as_echo "no" >&6; }
2738fi
2739
2740
2741fi
2742if test -z "$CC"; then
2743  if test -n "$ac_tool_prefix"; then
2744  for ac_prog in cl.exe
2745  do
2746    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749$as_echo_n "checking for $ac_word... " >&6; }
2750if test "${ac_cv_prog_CC+set}" = set; then :
2751  $as_echo_n "(cached) " >&6
2752else
2753  if test -n "$CC"; then
2754  ac_cv_prog_CC="$CC" # Let the user override the test.
2755else
2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759  IFS=$as_save_IFS
2760  test -z "$as_dir" && as_dir=.
2761    for ac_exec_ext in '' $ac_executable_extensions; do
2762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765    break 2
2766  fi
2767done
2768  done
2769IFS=$as_save_IFS
2770
2771fi
2772fi
2773CC=$ac_cv_prog_CC
2774if test -n "$CC"; then
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776$as_echo "$CC" >&6; }
2777else
2778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779$as_echo "no" >&6; }
2780fi
2781
2782
2783    test -n "$CC" && break
2784  done
2785fi
2786if test -z "$CC"; then
2787  ac_ct_CC=$CC
2788  for ac_prog in cl.exe
2789do
2790  # Extract the first word of "$ac_prog", so it can be a program name with args.
2791set dummy $ac_prog; ac_word=$2
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793$as_echo_n "checking for $ac_word... " >&6; }
2794if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2795  $as_echo_n "(cached) " >&6
2796else
2797  if test -n "$ac_ct_CC"; then
2798  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803  IFS=$as_save_IFS
2804  test -z "$as_dir" && as_dir=.
2805    for ac_exec_ext in '' $ac_executable_extensions; do
2806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807    ac_cv_prog_ac_ct_CC="$ac_prog"
2808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809    break 2
2810  fi
2811done
2812  done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818if test -n "$ac_ct_CC"; then
2819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820$as_echo "$ac_ct_CC" >&6; }
2821else
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
2824fi
2825
2826
2827  test -n "$ac_ct_CC" && break
2828done
2829
2830  if test "x$ac_ct_CC" = x; then
2831    CC=""
2832  else
2833    case $cross_compiling:$ac_tool_warned in
2834yes:)
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2837ac_tool_warned=yes ;;
2838esac
2839    CC=$ac_ct_CC
2840  fi
2841fi
2842
2843fi
2844
2845
2846test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2848as_fn_error "no acceptable C compiler found in \$PATH
2849See \`config.log' for more details." "$LINENO" 5; }
2850
2851# Provide some information about the compiler.
2852$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2853set X $ac_compile
2854ac_compiler=$2
2855for ac_option in --version -v -V -qversion; do
2856  { { ac_try="$ac_compiler $ac_option >&5"
2857case "(($ac_try" in
2858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859  *) ac_try_echo=$ac_try;;
2860esac
2861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2862$as_echo "$ac_try_echo"; } >&5
2863  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2864  ac_status=$?
2865  if test -s conftest.err; then
2866    sed '10a\
2867... rest of stderr output deleted ...
2868         10q' conftest.err >conftest.er1
2869    cat conftest.er1 >&5
2870    rm -f conftest.er1 conftest.err
2871  fi
2872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2873  test $ac_status = 0; }
2874done
2875
2876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877/* end confdefs.h.  */
2878#include <stdio.h>
2879int
2880main ()
2881{
2882FILE *f = fopen ("conftest.out", "w");
2883 return ferror (f) || fclose (f) != 0;
2884
2885  ;
2886  return 0;
2887}
2888_ACEOF
2889ac_clean_files_save=$ac_clean_files
2890ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2891# Try to create an executable without -o first, disregard a.out.
2892# It will help us diagnose broken compilers, and finding out an intuition
2893# of exeext.
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2895$as_echo_n "checking for C compiler default output file name... " >&6; }
2896ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2897
2898# The possible output files:
2899ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2900
2901ac_rmfiles=
2902for ac_file in $ac_files
2903do
2904  case $ac_file in
2905    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2906    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2907  esac
2908done
2909rm -f $ac_rmfiles
2910
2911if { { ac_try="$ac_link_default"
2912case "(($ac_try" in
2913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914  *) ac_try_echo=$ac_try;;
2915esac
2916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2917$as_echo "$ac_try_echo"; } >&5
2918  (eval "$ac_link_default") 2>&5
2919  ac_status=$?
2920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921  test $ac_status = 0; }; then :
2922  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2923# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2924# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2925# so that the user can short-circuit this test for compilers unknown to
2926# Autoconf.
2927for ac_file in $ac_files ''
2928do
2929  test -f "$ac_file" || continue
2930  case $ac_file in
2931    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2932	;;
2933    [ab].out )
2934	# We found the default executable, but exeext='' is most
2935	# certainly right.
2936	break;;
2937    *.* )
2938	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2939	then :; else
2940	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941	fi
2942	# We set ac_cv_exeext here because the later test for it is not
2943	# safe: cross compilers may not add the suffix if given an `-o'
2944	# argument, so we may need to know it at that point already.
2945	# Even if this section looks crufty: it has the advantage of
2946	# actually working.
2947	break;;
2948    * )
2949	break;;
2950  esac
2951done
2952test "$ac_cv_exeext" = no && ac_cv_exeext=
2953
2954else
2955  ac_file=''
2956fi
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2958$as_echo "$ac_file" >&6; }
2959if test -z "$ac_file"; then :
2960  $as_echo "$as_me: failed program was:" >&5
2961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965{ as_fn_set_status 77
2966as_fn_error "C compiler cannot create executables
2967See \`config.log' for more details." "$LINENO" 5; }; }
2968fi
2969ac_exeext=$ac_cv_exeext
2970
2971# Check that the compiler produces executables we can run.  If not, either
2972# the compiler is broken, or we cross compile.
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2974$as_echo_n "checking whether the C compiler works... " >&6; }
2975# If not cross compiling, check that we can run a simple program.
2976if test "$cross_compiling" != yes; then
2977  if { ac_try='./$ac_file'
2978  { { case "(($ac_try" in
2979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980  *) ac_try_echo=$ac_try;;
2981esac
2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983$as_echo "$ac_try_echo"; } >&5
2984  (eval "$ac_try") 2>&5
2985  ac_status=$?
2986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987  test $ac_status = 0; }; }; then
2988    cross_compiling=no
2989  else
2990    if test "$cross_compiling" = maybe; then
2991	cross_compiling=yes
2992    else
2993	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995as_fn_error "cannot run C compiled programs.
2996If you meant to cross compile, use \`--host'.
2997See \`config.log' for more details." "$LINENO" 5; }
2998    fi
2999  fi
3000fi
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002$as_echo "yes" >&6; }
3003
3004rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3005ac_clean_files=$ac_clean_files_save
3006# Check that the compiler produces executables we can run.  If not, either
3007# the compiler is broken, or we cross compile.
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3009$as_echo_n "checking whether we are cross compiling... " >&6; }
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3011$as_echo "$cross_compiling" >&6; }
3012
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3014$as_echo_n "checking for suffix of executables... " >&6; }
3015if { { ac_try="$ac_link"
3016case "(($ac_try" in
3017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018  *) ac_try_echo=$ac_try;;
3019esac
3020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021$as_echo "$ac_try_echo"; } >&5
3022  (eval "$ac_link") 2>&5
3023  ac_status=$?
3024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025  test $ac_status = 0; }; then :
3026  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3027# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3028# work properly (i.e., refer to `conftest.exe'), while it won't with
3029# `rm'.
3030for ac_file in conftest.exe conftest conftest.*; do
3031  test -f "$ac_file" || continue
3032  case $ac_file in
3033    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3034    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3035	  break;;
3036    * ) break;;
3037  esac
3038done
3039else
3040  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042as_fn_error "cannot compute suffix of executables: cannot compile and link
3043See \`config.log' for more details." "$LINENO" 5; }
3044fi
3045rm -f conftest$ac_cv_exeext
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3047$as_echo "$ac_cv_exeext" >&6; }
3048
3049rm -f conftest.$ac_ext
3050EXEEXT=$ac_cv_exeext
3051ac_exeext=$EXEEXT
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3053$as_echo_n "checking for suffix of object files... " >&6; }
3054if test "${ac_cv_objext+set}" = set; then :
3055  $as_echo_n "(cached) " >&6
3056else
3057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068rm -f conftest.o conftest.obj
3069if { { ac_try="$ac_compile"
3070case "(($ac_try" in
3071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072  *) ac_try_echo=$ac_try;;
3073esac
3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075$as_echo "$ac_try_echo"; } >&5
3076  (eval "$ac_compile") 2>&5
3077  ac_status=$?
3078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079  test $ac_status = 0; }; then :
3080  for ac_file in conftest.o conftest.obj conftest.*; do
3081  test -f "$ac_file" || continue;
3082  case $ac_file in
3083    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3084    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3085       break;;
3086  esac
3087done
3088else
3089  $as_echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094as_fn_error "cannot compute suffix of object files: cannot compile
3095See \`config.log' for more details." "$LINENO" 5; }
3096fi
3097rm -f conftest.$ac_cv_objext conftest.$ac_ext
3098fi
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3100$as_echo "$ac_cv_objext" >&6; }
3101OBJEXT=$ac_cv_objext
3102ac_objext=$OBJEXT
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3104$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3105if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h.  */
3110
3111int
3112main ()
3113{
3114#ifndef __GNUC__
3115       choke me
3116#endif
3117
3118  ;
3119  return 0;
3120}
3121_ACEOF
3122if ac_fn_c_try_compile "$LINENO"; then :
3123  ac_compiler_gnu=yes
3124else
3125  ac_compiler_gnu=no
3126fi
3127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128ac_cv_c_compiler_gnu=$ac_compiler_gnu
3129
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3132$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3133if test $ac_compiler_gnu = yes; then
3134  GCC=yes
3135else
3136  GCC=
3137fi
3138ac_test_CFLAGS=${CFLAGS+set}
3139ac_save_CFLAGS=$CFLAGS
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3141$as_echo_n "checking whether $CC accepts -g... " >&6; }
3142if test "${ac_cv_prog_cc_g+set}" = set; then :
3143  $as_echo_n "(cached) " >&6
3144else
3145  ac_save_c_werror_flag=$ac_c_werror_flag
3146   ac_c_werror_flag=yes
3147   ac_cv_prog_cc_g=no
3148   CFLAGS="-g"
3149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150/* end confdefs.h.  */
3151
3152int
3153main ()
3154{
3155
3156  ;
3157  return 0;
3158}
3159_ACEOF
3160if ac_fn_c_try_compile "$LINENO"; then :
3161  ac_cv_prog_cc_g=yes
3162else
3163  CFLAGS=""
3164      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h.  */
3166
3167int
3168main ()
3169{
3170
3171  ;
3172  return 0;
3173}
3174_ACEOF
3175if ac_fn_c_try_compile "$LINENO"; then :
3176
3177else
3178  ac_c_werror_flag=$ac_save_c_werror_flag
3179	 CFLAGS="-g"
3180	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h.  */
3182
3183int
3184main ()
3185{
3186
3187  ;
3188  return 0;
3189}
3190_ACEOF
3191if ac_fn_c_try_compile "$LINENO"; then :
3192  ac_cv_prog_cc_g=yes
3193fi
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197fi
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199   ac_c_werror_flag=$ac_save_c_werror_flag
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3202$as_echo "$ac_cv_prog_cc_g" >&6; }
3203if test "$ac_test_CFLAGS" = set; then
3204  CFLAGS=$ac_save_CFLAGS
3205elif test $ac_cv_prog_cc_g = yes; then
3206  if test "$GCC" = yes; then
3207    CFLAGS="-g -O2"
3208  else
3209    CFLAGS="-g"
3210  fi
3211else
3212  if test "$GCC" = yes; then
3213    CFLAGS="-O2"
3214  else
3215    CFLAGS=
3216  fi
3217fi
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3219$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3220if test "${ac_cv_prog_cc_c89+set}" = set; then :
3221  $as_echo_n "(cached) " >&6
3222else
3223  ac_cv_prog_cc_c89=no
3224ac_save_CC=$CC
3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227#include <stdarg.h>
3228#include <stdio.h>
3229#include <sys/types.h>
3230#include <sys/stat.h>
3231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3232struct buf { int x; };
3233FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234static char *e (p, i)
3235     char **p;
3236     int i;
3237{
3238  return p[i];
3239}
3240static char *f (char * (*g) (char **, int), char **p, ...)
3241{
3242  char *s;
3243  va_list v;
3244  va_start (v,p);
3245  s = g (p, va_arg (v,int));
3246  va_end (v);
3247  return s;
3248}
3249
3250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3251   function prototypes and stuff, but not '\xHH' hex character constants.
3252   These don't provoke an error unfortunately, instead are silently treated
3253   as 'x'.  The following induces an error, until -std is added to get
3254   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3255   array size at least.  It's necessary to write '\x00'==0 to get something
3256   that's true only with -std.  */
3257int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258
3259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260   inside strings and character constants.  */
3261#define FOO(x) 'x'
3262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263
3264int test (int i, double x);
3265struct s1 {int (*f) (int a);};
3266struct s2 {int (*f) (double a);};
3267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3268int argc;
3269char **argv;
3270int
3271main ()
3272{
3273return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3274  ;
3275  return 0;
3276}
3277_ACEOF
3278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3280do
3281  CC="$ac_save_CC $ac_arg"
3282  if ac_fn_c_try_compile "$LINENO"; then :
3283  ac_cv_prog_cc_c89=$ac_arg
3284fi
3285rm -f core conftest.err conftest.$ac_objext
3286  test "x$ac_cv_prog_cc_c89" != "xno" && break
3287done
3288rm -f conftest.$ac_ext
3289CC=$ac_save_CC
3290
3291fi
3292# AC_CACHE_VAL
3293case "x$ac_cv_prog_cc_c89" in
3294  x)
3295    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3296$as_echo "none needed" >&6; } ;;
3297  xno)
3298    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3299$as_echo "unsupported" >&6; } ;;
3300  *)
3301    CC="$CC $ac_cv_prog_cc_c89"
3302    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3303$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3304esac
3305if test "x$ac_cv_prog_cc_c89" != xno; then :
3306
3307fi
3308
3309ac_ext=c
3310ac_cpp='$CPP $CPPFLAGS'
3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314
3315
3316ac_ext=c
3317ac_cpp='$CPP $CPPFLAGS'
3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3322$as_echo_n "checking how to run the C preprocessor... " >&6; }
3323# On Suns, sometimes $CPP names a directory.
3324if test -n "$CPP" && test -d "$CPP"; then
3325  CPP=
3326fi
3327if test -z "$CPP"; then
3328  if test "${ac_cv_prog_CPP+set}" = set; then :
3329  $as_echo_n "(cached) " >&6
3330else
3331      # Double quotes because CPP needs to be expanded
3332    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3333    do
3334      ac_preproc_ok=false
3335for ac_c_preproc_warn_flag in '' yes
3336do
3337  # Use a header file that comes with gcc, so configuring glibc
3338  # with a fresh cross-compiler works.
3339  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3340  # <limits.h> exists even on freestanding compilers.
3341  # On the NeXT, cc -E runs the code through the compiler's parser,
3342  # not just through cpp. "Syntax error" is here to catch this case.
3343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344/* end confdefs.h.  */
3345#ifdef __STDC__
3346# include <limits.h>
3347#else
3348# include <assert.h>
3349#endif
3350		     Syntax error
3351_ACEOF
3352if ac_fn_c_try_cpp "$LINENO"; then :
3353
3354else
3355  # Broken: fails on valid input.
3356continue
3357fi
3358rm -f conftest.err conftest.$ac_ext
3359
3360  # OK, works on sane cases.  Now check whether nonexistent headers
3361  # can be detected and how.
3362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363/* end confdefs.h.  */
3364#include <ac_nonexistent.h>
3365_ACEOF
3366if ac_fn_c_try_cpp "$LINENO"; then :
3367  # Broken: success on invalid input.
3368continue
3369else
3370  # Passes both tests.
3371ac_preproc_ok=:
3372break
3373fi
3374rm -f conftest.err conftest.$ac_ext
3375
3376done
3377# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378rm -f conftest.err conftest.$ac_ext
3379if $ac_preproc_ok; then :
3380  break
3381fi
3382
3383    done
3384    ac_cv_prog_CPP=$CPP
3385
3386fi
3387  CPP=$ac_cv_prog_CPP
3388else
3389  ac_cv_prog_CPP=$CPP
3390fi
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3392$as_echo "$CPP" >&6; }
3393ac_preproc_ok=false
3394for ac_c_preproc_warn_flag in '' yes
3395do
3396  # Use a header file that comes with gcc, so configuring glibc
3397  # with a fresh cross-compiler works.
3398  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399  # <limits.h> exists even on freestanding compilers.
3400  # On the NeXT, cc -E runs the code through the compiler's parser,
3401  # not just through cpp. "Syntax error" is here to catch this case.
3402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h.  */
3404#ifdef __STDC__
3405# include <limits.h>
3406#else
3407# include <assert.h>
3408#endif
3409		     Syntax error
3410_ACEOF
3411if ac_fn_c_try_cpp "$LINENO"; then :
3412
3413else
3414  # Broken: fails on valid input.
3415continue
3416fi
3417rm -f conftest.err conftest.$ac_ext
3418
3419  # OK, works on sane cases.  Now check whether nonexistent headers
3420  # can be detected and how.
3421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422/* end confdefs.h.  */
3423#include <ac_nonexistent.h>
3424_ACEOF
3425if ac_fn_c_try_cpp "$LINENO"; then :
3426  # Broken: success on invalid input.
3427continue
3428else
3429  # Passes both tests.
3430ac_preproc_ok=:
3431break
3432fi
3433rm -f conftest.err conftest.$ac_ext
3434
3435done
3436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437rm -f conftest.err conftest.$ac_ext
3438if $ac_preproc_ok; then :
3439
3440else
3441  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443as_fn_error "C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." "$LINENO" 5; }
3445fi
3446
3447ac_ext=c
3448ac_cpp='$CPP $CPPFLAGS'
3449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
3453
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3455$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3456if test "${ac_cv_path_GREP+set}" = set; then :
3457  $as_echo_n "(cached) " >&6
3458else
3459  if test -z "$GREP"; then
3460  ac_path_GREP_found=false
3461  # Loop through the user's path and test for each of PROGNAME-LIST
3462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3464do
3465  IFS=$as_save_IFS
3466  test -z "$as_dir" && as_dir=.
3467    for ac_prog in grep ggrep; do
3468    for ac_exec_ext in '' $ac_executable_extensions; do
3469      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3470      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3471# Check for GNU ac_path_GREP and select it if it is found.
3472  # Check for GNU $ac_path_GREP
3473case `"$ac_path_GREP" --version 2>&1` in
3474*GNU*)
3475  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3476*)
3477  ac_count=0
3478  $as_echo_n 0123456789 >"conftest.in"
3479  while :
3480  do
3481    cat "conftest.in" "conftest.in" >"conftest.tmp"
3482    mv "conftest.tmp" "conftest.in"
3483    cp "conftest.in" "conftest.nl"
3484    $as_echo 'GREP' >> "conftest.nl"
3485    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3486    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3487    as_fn_arith $ac_count + 1 && ac_count=$as_val
3488    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3489      # Best one so far, save it but keep looking for a better one
3490      ac_cv_path_GREP="$ac_path_GREP"
3491      ac_path_GREP_max=$ac_count
3492    fi
3493    # 10*(2^10) chars as input seems more than enough
3494    test $ac_count -gt 10 && break
3495  done
3496  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3497esac
3498
3499      $ac_path_GREP_found && break 3
3500    done
3501  done
3502  done
3503IFS=$as_save_IFS
3504  if test -z "$ac_cv_path_GREP"; then
3505    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3506  fi
3507else
3508  ac_cv_path_GREP=$GREP
3509fi
3510
3511fi
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3513$as_echo "$ac_cv_path_GREP" >&6; }
3514 GREP="$ac_cv_path_GREP"
3515
3516
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3518$as_echo_n "checking for egrep... " >&6; }
3519if test "${ac_cv_path_EGREP+set}" = set; then :
3520  $as_echo_n "(cached) " >&6
3521else
3522  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3523   then ac_cv_path_EGREP="$GREP -E"
3524   else
3525     if test -z "$EGREP"; then
3526  ac_path_EGREP_found=false
3527  # Loop through the user's path and test for each of PROGNAME-LIST
3528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3530do
3531  IFS=$as_save_IFS
3532  test -z "$as_dir" && as_dir=.
3533    for ac_prog in egrep; do
3534    for ac_exec_ext in '' $ac_executable_extensions; do
3535      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3536      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3537# Check for GNU ac_path_EGREP and select it if it is found.
3538  # Check for GNU $ac_path_EGREP
3539case `"$ac_path_EGREP" --version 2>&1` in
3540*GNU*)
3541  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3542*)
3543  ac_count=0
3544  $as_echo_n 0123456789 >"conftest.in"
3545  while :
3546  do
3547    cat "conftest.in" "conftest.in" >"conftest.tmp"
3548    mv "conftest.tmp" "conftest.in"
3549    cp "conftest.in" "conftest.nl"
3550    $as_echo 'EGREP' >> "conftest.nl"
3551    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3552    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3553    as_fn_arith $ac_count + 1 && ac_count=$as_val
3554    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3555      # Best one so far, save it but keep looking for a better one
3556      ac_cv_path_EGREP="$ac_path_EGREP"
3557      ac_path_EGREP_max=$ac_count
3558    fi
3559    # 10*(2^10) chars as input seems more than enough
3560    test $ac_count -gt 10 && break
3561  done
3562  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3563esac
3564
3565      $ac_path_EGREP_found && break 3
3566    done
3567  done
3568  done
3569IFS=$as_save_IFS
3570  if test -z "$ac_cv_path_EGREP"; then
3571    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3572  fi
3573else
3574  ac_cv_path_EGREP=$EGREP
3575fi
3576
3577   fi
3578fi
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3580$as_echo "$ac_cv_path_EGREP" >&6; }
3581 EGREP="$ac_cv_path_EGREP"
3582
3583
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3585$as_echo_n "checking for ANSI C header files... " >&6; }
3586if test "${ac_cv_header_stdc+set}" = set; then :
3587  $as_echo_n "(cached) " >&6
3588else
3589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h.  */
3591#include <stdlib.h>
3592#include <stdarg.h>
3593#include <string.h>
3594#include <float.h>
3595
3596int
3597main ()
3598{
3599
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604if ac_fn_c_try_compile "$LINENO"; then :
3605  ac_cv_header_stdc=yes
3606else
3607  ac_cv_header_stdc=no
3608fi
3609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610
3611if test $ac_cv_header_stdc = yes; then
3612  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h.  */
3615#include <string.h>
3616
3617_ACEOF
3618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3619  $EGREP "memchr" >/dev/null 2>&1; then :
3620
3621else
3622  ac_cv_header_stdc=no
3623fi
3624rm -f conftest*
3625
3626fi
3627
3628if test $ac_cv_header_stdc = yes; then
3629  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631/* end confdefs.h.  */
3632#include <stdlib.h>
3633
3634_ACEOF
3635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636  $EGREP "free" >/dev/null 2>&1; then :
3637
3638else
3639  ac_cv_header_stdc=no
3640fi
3641rm -f conftest*
3642
3643fi
3644
3645if test $ac_cv_header_stdc = yes; then
3646  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3647  if test "$cross_compiling" = yes; then :
3648  :
3649else
3650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651/* end confdefs.h.  */
3652#include <ctype.h>
3653#include <stdlib.h>
3654#if ((' ' & 0x0FF) == 0x020)
3655# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3656# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3657#else
3658# define ISLOWER(c) \
3659		   (('a' <= (c) && (c) <= 'i') \
3660		     || ('j' <= (c) && (c) <= 'r') \
3661		     || ('s' <= (c) && (c) <= 'z'))
3662# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3663#endif
3664
3665#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3666int
3667main ()
3668{
3669  int i;
3670  for (i = 0; i < 256; i++)
3671    if (XOR (islower (i), ISLOWER (i))
3672	|| toupper (i) != TOUPPER (i))
3673      return 2;
3674  return 0;
3675}
3676_ACEOF
3677if ac_fn_c_try_run "$LINENO"; then :
3678
3679else
3680  ac_cv_header_stdc=no
3681fi
3682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3683  conftest.$ac_objext conftest.beam conftest.$ac_ext
3684fi
3685
3686fi
3687fi
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3689$as_echo "$ac_cv_header_stdc" >&6; }
3690if test $ac_cv_header_stdc = yes; then
3691
3692$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3693
3694fi
3695
3696# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3697for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3698		  inttypes.h stdint.h unistd.h
3699do :
3700  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3701ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3702"
3703eval as_val=\$$as_ac_Header
3704   if test "x$as_val" = x""yes; then :
3705  cat >>confdefs.h <<_ACEOF
3706#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3707_ACEOF
3708
3709fi
3710
3711done
3712
3713
3714
3715  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3716if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3717  MINIX=yes
3718else
3719  MINIX=
3720fi
3721
3722
3723  if test "$MINIX" = yes; then
3724
3725$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3726
3727
3728$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3729
3730
3731$as_echo "#define _MINIX 1" >>confdefs.h
3732
3733  fi
3734
3735
3736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3737$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3738if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3739  $as_echo_n "(cached) " >&6
3740else
3741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* end confdefs.h.  */
3743
3744#	  define __EXTENSIONS__ 1
3745	  $ac_includes_default
3746int
3747main ()
3748{
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754if ac_fn_c_try_compile "$LINENO"; then :
3755  ac_cv_safe_to_define___extensions__=yes
3756else
3757  ac_cv_safe_to_define___extensions__=no
3758fi
3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760fi
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3762$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3763  test $ac_cv_safe_to_define___extensions__ = yes &&
3764    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3765
3766  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3767
3768  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3769
3770  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3771
3772  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3773
3774
3775
3776libtool_VERSION=1:0:0
3777
3778
3779# 1.11.1: Require that version of automake.
3780# foreign: Don't require README, INSTALL, NEWS, etc.
3781# no-define: Don't define PACKAGE and VERSION.
3782# no-dependencies: Don't generate automatic dependencies.
3783#    (because it breaks when using bootstrap-lean, since some of the
3784#    headers are gone at "make install" time).
3785# -Wall: Issue all automake warnings.
3786# -Wno-portability: Don't warn about constructs supported by GNU make.
3787#    (because GCC requires GNU make anyhow).
3788am__api_version='1.11'
3789
3790# Find a good install program.  We prefer a C program (faster),
3791# so one script is as good as another.  But avoid the broken or
3792# incompatible versions:
3793# SysV /etc/install, /usr/sbin/install
3794# SunOS /usr/etc/install
3795# IRIX /sbin/install
3796# AIX /bin/install
3797# AmigaOS /C/install, which installs bootblocks on floppy discs
3798# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3799# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3800# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3801# OS/2's system install, which has a completely different semantic
3802# ./install, which can be erroneously created by make from ./install.sh.
3803# Reject install programs that cannot install multiple files.
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3805$as_echo_n "checking for a BSD-compatible install... " >&6; }
3806if test -z "$INSTALL"; then
3807if test "${ac_cv_path_install+set}" = set; then :
3808  $as_echo_n "(cached) " >&6
3809else
3810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813  IFS=$as_save_IFS
3814  test -z "$as_dir" && as_dir=.
3815    # Account for people who put trailing slashes in PATH elements.
3816case $as_dir/ in #((
3817  ./ | .// | /[cC]/* | \
3818  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3819  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3820  /usr/ucb/* ) ;;
3821  *)
3822    # OSF1 and SCO ODT 3.0 have their own names for install.
3823    # Don't use installbsd from OSF since it installs stuff as root
3824    # by default.
3825    for ac_prog in ginstall scoinst install; do
3826      for ac_exec_ext in '' $ac_executable_extensions; do
3827	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3828	  if test $ac_prog = install &&
3829	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3830	    # AIX install.  It has an incompatible calling convention.
3831	    :
3832	  elif test $ac_prog = install &&
3833	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3834	    # program-specific install script used by HP pwplus--don't use.
3835	    :
3836	  else
3837	    rm -rf conftest.one conftest.two conftest.dir
3838	    echo one > conftest.one
3839	    echo two > conftest.two
3840	    mkdir conftest.dir
3841	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3842	      test -s conftest.one && test -s conftest.two &&
3843	      test -s conftest.dir/conftest.one &&
3844	      test -s conftest.dir/conftest.two
3845	    then
3846	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3847	      break 3
3848	    fi
3849	  fi
3850	fi
3851      done
3852    done
3853    ;;
3854esac
3855
3856  done
3857IFS=$as_save_IFS
3858
3859rm -rf conftest.one conftest.two conftest.dir
3860
3861fi
3862  if test "${ac_cv_path_install+set}" = set; then
3863    INSTALL=$ac_cv_path_install
3864  else
3865    # As a last resort, use the slow shell script.  Don't cache a
3866    # value for INSTALL within a source directory, because that will
3867    # break other packages using the cache if that directory is
3868    # removed, or if the value is a relative name.
3869    INSTALL=$ac_install_sh
3870  fi
3871fi
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3873$as_echo "$INSTALL" >&6; }
3874
3875# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3876# It thinks the first close brace ends the variable substitution.
3877test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3878
3879test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3880
3881test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3882
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3884$as_echo_n "checking whether build environment is sane... " >&6; }
3885# Just in case
3886sleep 1
3887echo timestamp > conftest.file
3888# Reject unsafe characters in $srcdir or the absolute working directory
3889# name.  Accept space and tab only in the latter.
3890am_lf='
3891'
3892case `pwd` in
3893  *[\\\"\#\$\&\'\`$am_lf]*)
3894    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3895esac
3896case $srcdir in
3897  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3898    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3899esac
3900
3901# Do `set' in a subshell so we don't clobber the current shell's
3902# arguments.  Must try -L first in case configure is actually a
3903# symlink; some systems play weird games with the mod time of symlinks
3904# (eg FreeBSD returns the mod time of the symlink's containing
3905# directory).
3906if (
3907   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3908   if test "$*" = "X"; then
3909      # -L didn't work.
3910      set X `ls -t "$srcdir/configure" conftest.file`
3911   fi
3912   rm -f conftest.file
3913   if test "$*" != "X $srcdir/configure conftest.file" \
3914      && test "$*" != "X conftest.file $srcdir/configure"; then
3915
3916      # If neither matched, then we have a broken ls.  This can happen
3917      # if, for instance, CONFIG_SHELL is bash and it inherits a
3918      # broken ls alias from the environment.  This has actually
3919      # happened.  Such a system could not be considered "sane".
3920      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3921alias in your environment" "$LINENO" 5
3922   fi
3923
3924   test "$2" = conftest.file
3925   )
3926then
3927   # Ok.
3928   :
3929else
3930   as_fn_error "newly created file is older than distributed files!
3931Check your system clock" "$LINENO" 5
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3934$as_echo "yes" >&6; }
3935test "$program_prefix" != NONE &&
3936  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3937# Use a double $ so make ignores it.
3938test "$program_suffix" != NONE &&
3939  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3940# Double any \ or $.
3941# By default was `s,x,x', remove it if useless.
3942ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3943program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3944
3945# expand $ac_aux_dir to an absolute path
3946am_aux_dir=`cd $ac_aux_dir && pwd`
3947
3948if test x"${MISSING+set}" != xset; then
3949  case $am_aux_dir in
3950  *\ * | *\	*)
3951    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3952  *)
3953    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3954  esac
3955fi
3956# Use eval to expand $SHELL
3957if eval "$MISSING --run true"; then
3958  am_missing_run="$MISSING --run "
3959else
3960  am_missing_run=
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3962$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3963fi
3964
3965if test x"${install_sh}" != xset; then
3966  case $am_aux_dir in
3967  *\ * | *\	*)
3968    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3969  *)
3970    install_sh="\${SHELL} $am_aux_dir/install-sh"
3971  esac
3972fi
3973
3974# Installed binaries are usually stripped using `strip' when the user
3975# run `make install-strip'.  However `strip' might not be the right
3976# tool to use in cross-compilation environments, therefore Automake
3977# will honor the `STRIP' environment variable to overrule this program.
3978if test "$cross_compiling" != no; then
3979  if test -n "$ac_tool_prefix"; then
3980  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3981set dummy ${ac_tool_prefix}strip; ac_word=$2
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983$as_echo_n "checking for $ac_word... " >&6; }
3984if test "${ac_cv_prog_STRIP+set}" = set; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  if test -n "$STRIP"; then
3988  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3989else
3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
3992do
3993  IFS=$as_save_IFS
3994  test -z "$as_dir" && as_dir=.
3995    for ac_exec_ext in '' $ac_executable_extensions; do
3996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999    break 2
4000  fi
4001done
4002  done
4003IFS=$as_save_IFS
4004
4005fi
4006fi
4007STRIP=$ac_cv_prog_STRIP
4008if test -n "$STRIP"; then
4009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4010$as_echo "$STRIP" >&6; }
4011else
4012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013$as_echo "no" >&6; }
4014fi
4015
4016
4017fi
4018if test -z "$ac_cv_prog_STRIP"; then
4019  ac_ct_STRIP=$STRIP
4020  # Extract the first word of "strip", so it can be a program name with args.
4021set dummy strip; ac_word=$2
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
4024if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  if test -n "$ac_ct_STRIP"; then
4028  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4029else
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033  IFS=$as_save_IFS
4034  test -z "$as_dir" && as_dir=.
4035    for ac_exec_ext in '' $ac_executable_extensions; do
4036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4037    ac_cv_prog_ac_ct_STRIP="strip"
4038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039    break 2
4040  fi
4041done
4042  done
4043IFS=$as_save_IFS
4044
4045fi
4046fi
4047ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4048if test -n "$ac_ct_STRIP"; then
4049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4050$as_echo "$ac_ct_STRIP" >&6; }
4051else
4052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
4054fi
4055
4056  if test "x$ac_ct_STRIP" = x; then
4057    STRIP=":"
4058  else
4059    case $cross_compiling:$ac_tool_warned in
4060yes:)
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4063ac_tool_warned=yes ;;
4064esac
4065    STRIP=$ac_ct_STRIP
4066  fi
4067else
4068  STRIP="$ac_cv_prog_STRIP"
4069fi
4070
4071fi
4072INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4073
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4075$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4076if test -z "$MKDIR_P"; then
4077  if test "${ac_cv_path_mkdir+set}" = set; then :
4078  $as_echo_n "(cached) " >&6
4079else
4080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4082do
4083  IFS=$as_save_IFS
4084  test -z "$as_dir" && as_dir=.
4085    for ac_prog in mkdir gmkdir; do
4086	 for ac_exec_ext in '' $ac_executable_extensions; do
4087	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4088	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4089	     'mkdir (GNU coreutils) '* | \
4090	     'mkdir (coreutils) '* | \
4091	     'mkdir (fileutils) '4.1*)
4092	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4093	       break 3;;
4094	   esac
4095	 done
4096       done
4097  done
4098IFS=$as_save_IFS
4099
4100fi
4101
4102  if test "${ac_cv_path_mkdir+set}" = set; then
4103    MKDIR_P="$ac_cv_path_mkdir -p"
4104  else
4105    # As a last resort, use the slow shell script.  Don't cache a
4106    # value for MKDIR_P within a source directory, because that will
4107    # break other packages using the cache if that directory is
4108    # removed, or if the value is a relative name.
4109    test -d ./--version && rmdir ./--version
4110    MKDIR_P="$ac_install_sh -d"
4111  fi
4112fi
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4114$as_echo "$MKDIR_P" >&6; }
4115
4116mkdir_p="$MKDIR_P"
4117case $mkdir_p in
4118  [\\/$]* | ?:[\\/]*) ;;
4119  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4120esac
4121
4122for ac_prog in gawk mawk nawk awk
4123do
4124  # Extract the first word of "$ac_prog", so it can be a program name with args.
4125set dummy $ac_prog; ac_word=$2
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127$as_echo_n "checking for $ac_word... " >&6; }
4128if test "${ac_cv_prog_AWK+set}" = set; then :
4129  $as_echo_n "(cached) " >&6
4130else
4131  if test -n "$AWK"; then
4132  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4133else
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137  IFS=$as_save_IFS
4138  test -z "$as_dir" && as_dir=.
4139    for ac_exec_ext in '' $ac_executable_extensions; do
4140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141    ac_cv_prog_AWK="$ac_prog"
4142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143    break 2
4144  fi
4145done
4146  done
4147IFS=$as_save_IFS
4148
4149fi
4150fi
4151AWK=$ac_cv_prog_AWK
4152if test -n "$AWK"; then
4153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4154$as_echo "$AWK" >&6; }
4155else
4156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157$as_echo "no" >&6; }
4158fi
4159
4160
4161  test -n "$AWK" && break
4162done
4163
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4165$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4166set x ${MAKE-make}
4167ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4168if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4169  $as_echo_n "(cached) " >&6
4170else
4171  cat >conftest.make <<\_ACEOF
4172SHELL = /bin/sh
4173all:
4174	@echo '@@@%%%=$(MAKE)=@@@%%%'
4175_ACEOF
4176# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4177case `${MAKE-make} -f conftest.make 2>/dev/null` in
4178  *@@@%%%=?*=@@@%%%*)
4179    eval ac_cv_prog_make_${ac_make}_set=yes;;
4180  *)
4181    eval ac_cv_prog_make_${ac_make}_set=no;;
4182esac
4183rm -f conftest.make
4184fi
4185if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4187$as_echo "yes" >&6; }
4188  SET_MAKE=
4189else
4190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191$as_echo "no" >&6; }
4192  SET_MAKE="MAKE=${MAKE-make}"
4193fi
4194
4195rm -rf .tst 2>/dev/null
4196mkdir .tst 2>/dev/null
4197if test -d .tst; then
4198  am__leading_dot=.
4199else
4200  am__leading_dot=_
4201fi
4202rmdir .tst 2>/dev/null
4203
4204if test "`cd $srcdir && pwd`" != "`pwd`"; then
4205  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4206  # is not polluted with repeated "-I."
4207  am__isrc=' -I$(srcdir)'
4208  # test to see if srcdir already configured
4209  if test -f $srcdir/config.status; then
4210    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4211  fi
4212fi
4213
4214# test whether we have cygpath
4215if test -z "$CYGPATH_W"; then
4216  if (cygpath --version) >/dev/null 2>/dev/null; then
4217    CYGPATH_W='cygpath -w'
4218  else
4219    CYGPATH_W=echo
4220  fi
4221fi
4222
4223
4224# Define the identity of the package.
4225 PACKAGE='libbacktrace'
4226 VERSION='version-unused'
4227
4228
4229# Some tools Automake needs.
4230
4231ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4232
4233
4234AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4235
4236
4237AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4238
4239
4240AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4241
4242
4243MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4244
4245# We need awk for the "check" target.  The system "awk" is bad on
4246# some platforms.
4247# Always define AMTAR for backward compatibility.  Yes, it's still used
4248# in the wild :-(  We should find a proper way to deprecate it ...
4249AMTAR='$${TAR-tar}'
4250
4251am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4252
4253
4254
4255
4256
4257
4258
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4260$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4261    # Check whether --enable-maintainer-mode was given.
4262if test "${enable_maintainer_mode+set}" = set; then :
4263  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4264else
4265  USE_MAINTAINER_MODE=no
4266fi
4267
4268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4269$as_echo "$USE_MAINTAINER_MODE" >&6; }
4270   if test $USE_MAINTAINER_MODE = yes; then
4271  MAINTAINER_MODE_TRUE=
4272  MAINTAINER_MODE_FALSE='#'
4273else
4274  MAINTAINER_MODE_TRUE='#'
4275  MAINTAINER_MODE_FALSE=
4276fi
4277
4278  MAINT=$MAINTAINER_MODE_TRUE
4279
4280
4281
4282
4283# Check whether --with-target-subdir was given.
4284if test "${with_target_subdir+set}" = set; then :
4285  withval=$with_target_subdir;
4286fi
4287
4288
4289# We must force CC to /not/ be precious variables; otherwise
4290# the wrong, non-multilib-adjusted value will be used in multilibs.
4291# As a side effect, we have to subst CFLAGS ourselves.
4292
4293
4294ac_ext=c
4295ac_cpp='$CPP $CPPFLAGS'
4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299if test -n "$ac_tool_prefix"; then
4300  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4301set dummy ${ac_tool_prefix}gcc; ac_word=$2
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303$as_echo_n "checking for $ac_word... " >&6; }
4304if test "${ac_cv_prog_CC+set}" = set; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307  if test -n "$CC"; then
4308  ac_cv_prog_CC="$CC" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313  IFS=$as_save_IFS
4314  test -z "$as_dir" && as_dir=.
4315    for ac_exec_ext in '' $ac_executable_extensions; do
4316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319    break 2
4320  fi
4321done
4322  done
4323IFS=$as_save_IFS
4324
4325fi
4326fi
4327CC=$ac_cv_prog_CC
4328if test -n "$CC"; then
4329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4330$as_echo "$CC" >&6; }
4331else
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333$as_echo "no" >&6; }
4334fi
4335
4336
4337fi
4338if test -z "$ac_cv_prog_CC"; then
4339  ac_ct_CC=$CC
4340  # Extract the first word of "gcc", so it can be a program name with args.
4341set dummy gcc; ac_word=$2
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343$as_echo_n "checking for $ac_word... " >&6; }
4344if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  if test -n "$ac_ct_CC"; then
4348  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4349else
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353  IFS=$as_save_IFS
4354  test -z "$as_dir" && as_dir=.
4355    for ac_exec_ext in '' $ac_executable_extensions; do
4356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357    ac_cv_prog_ac_ct_CC="gcc"
4358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359    break 2
4360  fi
4361done
4362  done
4363IFS=$as_save_IFS
4364
4365fi
4366fi
4367ac_ct_CC=$ac_cv_prog_ac_ct_CC
4368if test -n "$ac_ct_CC"; then
4369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4370$as_echo "$ac_ct_CC" >&6; }
4371else
4372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373$as_echo "no" >&6; }
4374fi
4375
4376  if test "x$ac_ct_CC" = x; then
4377    CC=""
4378  else
4379    case $cross_compiling:$ac_tool_warned in
4380yes:)
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4383ac_tool_warned=yes ;;
4384esac
4385    CC=$ac_ct_CC
4386  fi
4387else
4388  CC="$ac_cv_prog_CC"
4389fi
4390
4391if test -z "$CC"; then
4392          if test -n "$ac_tool_prefix"; then
4393    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4394set dummy ${ac_tool_prefix}cc; ac_word=$2
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396$as_echo_n "checking for $ac_word... " >&6; }
4397if test "${ac_cv_prog_CC+set}" = set; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  if test -n "$CC"; then
4401  ac_cv_prog_CC="$CC" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406  IFS=$as_save_IFS
4407  test -z "$as_dir" && as_dir=.
4408    for ac_exec_ext in '' $ac_executable_extensions; do
4409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410    ac_cv_prog_CC="${ac_tool_prefix}cc"
4411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412    break 2
4413  fi
4414done
4415  done
4416IFS=$as_save_IFS
4417
4418fi
4419fi
4420CC=$ac_cv_prog_CC
4421if test -n "$CC"; then
4422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4423$as_echo "$CC" >&6; }
4424else
4425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427fi
4428
4429
4430  fi
4431fi
4432if test -z "$CC"; then
4433  # Extract the first word of "cc", so it can be a program name with args.
4434set dummy cc; ac_word=$2
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436$as_echo_n "checking for $ac_word... " >&6; }
4437if test "${ac_cv_prog_CC+set}" = set; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  if test -n "$CC"; then
4441  ac_cv_prog_CC="$CC" # Let the user override the test.
4442else
4443  ac_prog_rejected=no
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447  IFS=$as_save_IFS
4448  test -z "$as_dir" && as_dir=.
4449    for ac_exec_ext in '' $ac_executable_extensions; do
4450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4452       ac_prog_rejected=yes
4453       continue
4454     fi
4455    ac_cv_prog_CC="cc"
4456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457    break 2
4458  fi
4459done
4460  done
4461IFS=$as_save_IFS
4462
4463if test $ac_prog_rejected = yes; then
4464  # We found a bogon in the path, so make sure we never use it.
4465  set dummy $ac_cv_prog_CC
4466  shift
4467  if test $# != 0; then
4468    # We chose a different compiler from the bogus one.
4469    # However, it has the same basename, so the bogon will be chosen
4470    # first if we set CC to just the basename; use the full file name.
4471    shift
4472    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4473  fi
4474fi
4475fi
4476fi
4477CC=$ac_cv_prog_CC
4478if test -n "$CC"; then
4479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4480$as_echo "$CC" >&6; }
4481else
4482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483$as_echo "no" >&6; }
4484fi
4485
4486
4487fi
4488if test -z "$CC"; then
4489  if test -n "$ac_tool_prefix"; then
4490  for ac_prog in cl.exe
4491  do
4492    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495$as_echo_n "checking for $ac_word... " >&6; }
4496if test "${ac_cv_prog_CC+set}" = set; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  if test -n "$CC"; then
4500  ac_cv_prog_CC="$CC" # Let the user override the test.
4501else
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505  IFS=$as_save_IFS
4506  test -z "$as_dir" && as_dir=.
4507    for ac_exec_ext in '' $ac_executable_extensions; do
4508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511    break 2
4512  fi
4513done
4514  done
4515IFS=$as_save_IFS
4516
4517fi
4518fi
4519CC=$ac_cv_prog_CC
4520if test -n "$CC"; then
4521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4522$as_echo "$CC" >&6; }
4523else
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525$as_echo "no" >&6; }
4526fi
4527
4528
4529    test -n "$CC" && break
4530  done
4531fi
4532if test -z "$CC"; then
4533  ac_ct_CC=$CC
4534  for ac_prog in cl.exe
4535do
4536  # Extract the first word of "$ac_prog", so it can be a program name with args.
4537set dummy $ac_prog; ac_word=$2
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539$as_echo_n "checking for $ac_word... " >&6; }
4540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4541  $as_echo_n "(cached) " >&6
4542else
4543  if test -n "$ac_ct_CC"; then
4544  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4545else
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549  IFS=$as_save_IFS
4550  test -z "$as_dir" && as_dir=.
4551    for ac_exec_ext in '' $ac_executable_extensions; do
4552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553    ac_cv_prog_ac_ct_CC="$ac_prog"
4554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555    break 2
4556  fi
4557done
4558  done
4559IFS=$as_save_IFS
4560
4561fi
4562fi
4563ac_ct_CC=$ac_cv_prog_ac_ct_CC
4564if test -n "$ac_ct_CC"; then
4565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4566$as_echo "$ac_ct_CC" >&6; }
4567else
4568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569$as_echo "no" >&6; }
4570fi
4571
4572
4573  test -n "$ac_ct_CC" && break
4574done
4575
4576  if test "x$ac_ct_CC" = x; then
4577    CC=""
4578  else
4579    case $cross_compiling:$ac_tool_warned in
4580yes:)
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4583ac_tool_warned=yes ;;
4584esac
4585    CC=$ac_ct_CC
4586  fi
4587fi
4588
4589fi
4590
4591
4592test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594as_fn_error "no acceptable C compiler found in \$PATH
4595See \`config.log' for more details." "$LINENO" 5; }
4596
4597# Provide some information about the compiler.
4598$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4599set X $ac_compile
4600ac_compiler=$2
4601for ac_option in --version -v -V -qversion; do
4602  { { ac_try="$ac_compiler $ac_option >&5"
4603case "(($ac_try" in
4604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605  *) ac_try_echo=$ac_try;;
4606esac
4607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4608$as_echo "$ac_try_echo"; } >&5
4609  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4610  ac_status=$?
4611  if test -s conftest.err; then
4612    sed '10a\
4613... rest of stderr output deleted ...
4614         10q' conftest.err >conftest.er1
4615    cat conftest.er1 >&5
4616    rm -f conftest.er1 conftest.err
4617  fi
4618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619  test $ac_status = 0; }
4620done
4621
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4623$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4624if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4625  $as_echo_n "(cached) " >&6
4626else
4627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h.  */
4629
4630int
4631main ()
4632{
4633#ifndef __GNUC__
4634       choke me
4635#endif
4636
4637  ;
4638  return 0;
4639}
4640_ACEOF
4641if ac_fn_c_try_compile "$LINENO"; then :
4642  ac_compiler_gnu=yes
4643else
4644  ac_compiler_gnu=no
4645fi
4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647ac_cv_c_compiler_gnu=$ac_compiler_gnu
4648
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4651$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4652if test $ac_compiler_gnu = yes; then
4653  GCC=yes
4654else
4655  GCC=
4656fi
4657ac_test_CFLAGS=${CFLAGS+set}
4658ac_save_CFLAGS=$CFLAGS
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4660$as_echo_n "checking whether $CC accepts -g... " >&6; }
4661if test "${ac_cv_prog_cc_g+set}" = set; then :
4662  $as_echo_n "(cached) " >&6
4663else
4664  ac_save_c_werror_flag=$ac_c_werror_flag
4665   ac_c_werror_flag=yes
4666   ac_cv_prog_cc_g=no
4667   CFLAGS="-g"
4668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h.  */
4670
4671int
4672main ()
4673{
4674
4675  ;
4676  return 0;
4677}
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"; then :
4680  ac_cv_prog_cc_g=yes
4681else
4682  CFLAGS=""
4683      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684/* end confdefs.h.  */
4685
4686int
4687main ()
4688{
4689
4690  ;
4691  return 0;
4692}
4693_ACEOF
4694if ac_fn_c_try_compile "$LINENO"; then :
4695
4696else
4697  ac_c_werror_flag=$ac_save_c_werror_flag
4698	 CFLAGS="-g"
4699	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h.  */
4701
4702int
4703main ()
4704{
4705
4706  ;
4707  return 0;
4708}
4709_ACEOF
4710if ac_fn_c_try_compile "$LINENO"; then :
4711  ac_cv_prog_cc_g=yes
4712fi
4713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714fi
4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716fi
4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718   ac_c_werror_flag=$ac_save_c_werror_flag
4719fi
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4721$as_echo "$ac_cv_prog_cc_g" >&6; }
4722if test "$ac_test_CFLAGS" = set; then
4723  CFLAGS=$ac_save_CFLAGS
4724elif test $ac_cv_prog_cc_g = yes; then
4725  if test "$GCC" = yes; then
4726    CFLAGS="-g -O2"
4727  else
4728    CFLAGS="-g"
4729  fi
4730else
4731  if test "$GCC" = yes; then
4732    CFLAGS="-O2"
4733  else
4734    CFLAGS=
4735  fi
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4738$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4739if test "${ac_cv_prog_cc_c89+set}" = set; then :
4740  $as_echo_n "(cached) " >&6
4741else
4742  ac_cv_prog_cc_c89=no
4743ac_save_CC=$CC
4744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745/* end confdefs.h.  */
4746#include <stdarg.h>
4747#include <stdio.h>
4748#include <sys/types.h>
4749#include <sys/stat.h>
4750/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4751struct buf { int x; };
4752FILE * (*rcsopen) (struct buf *, struct stat *, int);
4753static char *e (p, i)
4754     char **p;
4755     int i;
4756{
4757  return p[i];
4758}
4759static char *f (char * (*g) (char **, int), char **p, ...)
4760{
4761  char *s;
4762  va_list v;
4763  va_start (v,p);
4764  s = g (p, va_arg (v,int));
4765  va_end (v);
4766  return s;
4767}
4768
4769/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4770   function prototypes and stuff, but not '\xHH' hex character constants.
4771   These don't provoke an error unfortunately, instead are silently treated
4772   as 'x'.  The following induces an error, until -std is added to get
4773   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4774   array size at least.  It's necessary to write '\x00'==0 to get something
4775   that's true only with -std.  */
4776int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4777
4778/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4779   inside strings and character constants.  */
4780#define FOO(x) 'x'
4781int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4782
4783int test (int i, double x);
4784struct s1 {int (*f) (int a);};
4785struct s2 {int (*f) (double a);};
4786int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4787int argc;
4788char **argv;
4789int
4790main ()
4791{
4792return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4793  ;
4794  return 0;
4795}
4796_ACEOF
4797for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4798	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4799do
4800  CC="$ac_save_CC $ac_arg"
4801  if ac_fn_c_try_compile "$LINENO"; then :
4802  ac_cv_prog_cc_c89=$ac_arg
4803fi
4804rm -f core conftest.err conftest.$ac_objext
4805  test "x$ac_cv_prog_cc_c89" != "xno" && break
4806done
4807rm -f conftest.$ac_ext
4808CC=$ac_save_CC
4809
4810fi
4811# AC_CACHE_VAL
4812case "x$ac_cv_prog_cc_c89" in
4813  x)
4814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4815$as_echo "none needed" >&6; } ;;
4816  xno)
4817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4818$as_echo "unsupported" >&6; } ;;
4819  *)
4820    CC="$CC $ac_cv_prog_cc_c89"
4821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4822$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4823esac
4824if test "x$ac_cv_prog_cc_c89" != xno; then :
4825
4826fi
4827
4828ac_ext=c
4829ac_cpp='$CPP $CPPFLAGS'
4830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833
4834
4835
4836
4837
4838for ac_prog in gawk mawk nawk awk
4839do
4840  # Extract the first word of "$ac_prog", so it can be a program name with args.
4841set dummy $ac_prog; ac_word=$2
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843$as_echo_n "checking for $ac_word... " >&6; }
4844if test "${ac_cv_prog_AWK+set}" = set; then :
4845  $as_echo_n "(cached) " >&6
4846else
4847  if test -n "$AWK"; then
4848  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4849else
4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853  IFS=$as_save_IFS
4854  test -z "$as_dir" && as_dir=.
4855    for ac_exec_ext in '' $ac_executable_extensions; do
4856  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857    ac_cv_prog_AWK="$ac_prog"
4858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859    break 2
4860  fi
4861done
4862  done
4863IFS=$as_save_IFS
4864
4865fi
4866fi
4867AWK=$ac_cv_prog_AWK
4868if test -n "$AWK"; then
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4870$as_echo "$AWK" >&6; }
4871else
4872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873$as_echo "no" >&6; }
4874fi
4875
4876
4877  test -n "$AWK" && break
4878done
4879
4880case "$AWK" in
4881"") as_fn_error "can't build without awk" "$LINENO" 5 ;;
4882esac
4883
4884case `pwd` in
4885  *\ * | *\	*)
4886    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4887$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4888esac
4889
4890
4891
4892macro_version='2.2.4'
4893macro_revision='1.2976'
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907ltmain="$ac_aux_dir/ltmain.sh"
4908
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4910$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4911if test "${ac_cv_path_SED+set}" = set; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4915     for ac_i in 1 2 3 4 5 6 7; do
4916       ac_script="$ac_script$as_nl$ac_script"
4917     done
4918     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4919     { ac_script=; unset ac_script;}
4920     if test -z "$SED"; then
4921  ac_path_SED_found=false
4922  # Loop through the user's path and test for each of PROGNAME-LIST
4923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926  IFS=$as_save_IFS
4927  test -z "$as_dir" && as_dir=.
4928    for ac_prog in sed gsed; do
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4931      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4932# Check for GNU ac_path_SED and select it if it is found.
4933  # Check for GNU $ac_path_SED
4934case `"$ac_path_SED" --version 2>&1` in
4935*GNU*)
4936  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4937*)
4938  ac_count=0
4939  $as_echo_n 0123456789 >"conftest.in"
4940  while :
4941  do
4942    cat "conftest.in" "conftest.in" >"conftest.tmp"
4943    mv "conftest.tmp" "conftest.in"
4944    cp "conftest.in" "conftest.nl"
4945    $as_echo '' >> "conftest.nl"
4946    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948    as_fn_arith $ac_count + 1 && ac_count=$as_val
4949    if test $ac_count -gt ${ac_path_SED_max-0}; then
4950      # Best one so far, save it but keep looking for a better one
4951      ac_cv_path_SED="$ac_path_SED"
4952      ac_path_SED_max=$ac_count
4953    fi
4954    # 10*(2^10) chars as input seems more than enough
4955    test $ac_count -gt 10 && break
4956  done
4957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958esac
4959
4960      $ac_path_SED_found && break 3
4961    done
4962  done
4963  done
4964IFS=$as_save_IFS
4965  if test -z "$ac_cv_path_SED"; then
4966    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4967  fi
4968else
4969  ac_cv_path_SED=$SED
4970fi
4971
4972fi
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4974$as_echo "$ac_cv_path_SED" >&6; }
4975 SED="$ac_cv_path_SED"
4976  rm -f conftest.sed
4977
4978test -z "$SED" && SED=sed
4979Xsed="$SED -e 1s/^X//"
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4992$as_echo_n "checking for fgrep... " >&6; }
4993if test "${ac_cv_path_FGREP+set}" = set; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4997   then ac_cv_path_FGREP="$GREP -F"
4998   else
4999     if test -z "$FGREP"; then
5000  ac_path_FGREP_found=false
5001  # Loop through the user's path and test for each of PROGNAME-LIST
5002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5004do
5005  IFS=$as_save_IFS
5006  test -z "$as_dir" && as_dir=.
5007    for ac_prog in fgrep; do
5008    for ac_exec_ext in '' $ac_executable_extensions; do
5009      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5010      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5011# Check for GNU ac_path_FGREP and select it if it is found.
5012  # Check for GNU $ac_path_FGREP
5013case `"$ac_path_FGREP" --version 2>&1` in
5014*GNU*)
5015  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5016*)
5017  ac_count=0
5018  $as_echo_n 0123456789 >"conftest.in"
5019  while :
5020  do
5021    cat "conftest.in" "conftest.in" >"conftest.tmp"
5022    mv "conftest.tmp" "conftest.in"
5023    cp "conftest.in" "conftest.nl"
5024    $as_echo 'FGREP' >> "conftest.nl"
5025    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5026    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5027    as_fn_arith $ac_count + 1 && ac_count=$as_val
5028    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5029      # Best one so far, save it but keep looking for a better one
5030      ac_cv_path_FGREP="$ac_path_FGREP"
5031      ac_path_FGREP_max=$ac_count
5032    fi
5033    # 10*(2^10) chars as input seems more than enough
5034    test $ac_count -gt 10 && break
5035  done
5036  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5037esac
5038
5039      $ac_path_FGREP_found && break 3
5040    done
5041  done
5042  done
5043IFS=$as_save_IFS
5044  if test -z "$ac_cv_path_FGREP"; then
5045    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5046  fi
5047else
5048  ac_cv_path_FGREP=$FGREP
5049fi
5050
5051   fi
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5054$as_echo "$ac_cv_path_FGREP" >&6; }
5055 FGREP="$ac_cv_path_FGREP"
5056
5057
5058test -z "$GREP" && GREP=grep
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078# Check whether --with-gnu-ld was given.
5079if test "${with_gnu_ld+set}" = set; then :
5080  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5081else
5082  with_gnu_ld=no
5083fi
5084
5085ac_prog=ld
5086if test "$GCC" = yes; then
5087  # Check if gcc -print-prog-name=ld gives a path.
5088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5089$as_echo_n "checking for ld used by $CC... " >&6; }
5090  case $host in
5091  *-*-mingw*)
5092    # gcc leaves a trailing carriage return which upsets mingw
5093    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5094  *)
5095    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5096  esac
5097  case $ac_prog in
5098    # Accept absolute paths.
5099    [\\/]* | ?:[\\/]*)
5100      re_direlt='/[^/][^/]*/\.\./'
5101      # Canonicalize the pathname of ld
5102      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5103      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5104	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5105      done
5106      test -z "$LD" && LD="$ac_prog"
5107      ;;
5108  "")
5109    # If it fails, then pretend we aren't using GCC.
5110    ac_prog=ld
5111    ;;
5112  *)
5113    # If it is relative, then search for the first ld in PATH.
5114    with_gnu_ld=unknown
5115    ;;
5116  esac
5117elif test "$with_gnu_ld" = yes; then
5118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5119$as_echo_n "checking for GNU ld... " >&6; }
5120else
5121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5122$as_echo_n "checking for non-GNU ld... " >&6; }
5123fi
5124if test "${lt_cv_path_LD+set}" = set; then :
5125  $as_echo_n "(cached) " >&6
5126else
5127  if test -z "$LD"; then
5128  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5129  for ac_dir in $PATH; do
5130    IFS="$lt_save_ifs"
5131    test -z "$ac_dir" && ac_dir=.
5132    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5133      lt_cv_path_LD="$ac_dir/$ac_prog"
5134      # Check to see if the program is GNU ld.  I'd rather use --version,
5135      # but apparently some variants of GNU ld only accept -v.
5136      # Break only if it was the GNU/non-GNU ld that we prefer.
5137      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5138      *GNU* | *'with BFD'*)
5139	test "$with_gnu_ld" != no && break
5140	;;
5141      *)
5142	test "$with_gnu_ld" != yes && break
5143	;;
5144      esac
5145    fi
5146  done
5147  IFS="$lt_save_ifs"
5148else
5149  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5150fi
5151fi
5152
5153LD="$lt_cv_path_LD"
5154if test -n "$LD"; then
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5156$as_echo "$LD" >&6; }
5157else
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5163$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5164if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5165  $as_echo_n "(cached) " >&6
5166else
5167  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5168case `$LD -v 2>&1 </dev/null` in
5169*GNU* | *'with BFD'*)
5170  lt_cv_prog_gnu_ld=yes
5171  ;;
5172*)
5173  lt_cv_prog_gnu_ld=no
5174  ;;
5175esac
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5178$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5179with_gnu_ld=$lt_cv_prog_gnu_ld
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5190$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5191if test "${lt_cv_path_NM+set}" = set; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  if test -n "$NM"; then
5195  # Let the user override the test.
5196  lt_cv_path_NM="$NM"
5197else
5198  lt_nm_to_check="${ac_tool_prefix}nm"
5199  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5200    lt_nm_to_check="$lt_nm_to_check nm"
5201  fi
5202  for lt_tmp_nm in $lt_nm_to_check; do
5203    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5204    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5205      IFS="$lt_save_ifs"
5206      test -z "$ac_dir" && ac_dir=.
5207      tmp_nm="$ac_dir/$lt_tmp_nm"
5208      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5209	# Check to see if the nm accepts a BSD-compat flag.
5210	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5211	#   nm: unknown option "B" ignored
5212	# Tru64's nm complains that /dev/null is an invalid object file
5213	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5214	*/dev/null* | *'Invalid file or object type'*)
5215	  lt_cv_path_NM="$tmp_nm -B"
5216	  break
5217	  ;;
5218	*)
5219	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5220	  */dev/null*)
5221	    lt_cv_path_NM="$tmp_nm -p"
5222	    break
5223	    ;;
5224	  *)
5225	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5226	    continue # so that we can try to find one that supports BSD flags
5227	    ;;
5228	  esac
5229	  ;;
5230	esac
5231      fi
5232    done
5233    IFS="$lt_save_ifs"
5234  done
5235  : ${lt_cv_path_NM=no}
5236fi
5237fi
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5239$as_echo "$lt_cv_path_NM" >&6; }
5240if test "$lt_cv_path_NM" != "no"; then
5241  NM="$lt_cv_path_NM"
5242else
5243  # Didn't find any BSD compatible name lister, look for dumpbin.
5244  if test -n "$ac_tool_prefix"; then
5245  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5246  do
5247    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250$as_echo_n "checking for $ac_word... " >&6; }
5251if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5252  $as_echo_n "(cached) " >&6
5253else
5254  if test -n "$DUMPBIN"; then
5255  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5256else
5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260  IFS=$as_save_IFS
5261  test -z "$as_dir" && as_dir=.
5262    for ac_exec_ext in '' $ac_executable_extensions; do
5263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266    break 2
5267  fi
5268done
5269  done
5270IFS=$as_save_IFS
5271
5272fi
5273fi
5274DUMPBIN=$ac_cv_prog_DUMPBIN
5275if test -n "$DUMPBIN"; then
5276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5277$as_echo "$DUMPBIN" >&6; }
5278else
5279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280$as_echo "no" >&6; }
5281fi
5282
5283
5284    test -n "$DUMPBIN" && break
5285  done
5286fi
5287if test -z "$DUMPBIN"; then
5288  ac_ct_DUMPBIN=$DUMPBIN
5289  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5290do
5291  # Extract the first word of "$ac_prog", so it can be a program name with args.
5292set dummy $ac_prog; ac_word=$2
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294$as_echo_n "checking for $ac_word... " >&6; }
5295if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5296  $as_echo_n "(cached) " >&6
5297else
5298  if test -n "$ac_ct_DUMPBIN"; then
5299  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5300else
5301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304  IFS=$as_save_IFS
5305  test -z "$as_dir" && as_dir=.
5306    for ac_exec_ext in '' $ac_executable_extensions; do
5307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310    break 2
5311  fi
5312done
5313  done
5314IFS=$as_save_IFS
5315
5316fi
5317fi
5318ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5319if test -n "$ac_ct_DUMPBIN"; then
5320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5321$as_echo "$ac_ct_DUMPBIN" >&6; }
5322else
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324$as_echo "no" >&6; }
5325fi
5326
5327
5328  test -n "$ac_ct_DUMPBIN" && break
5329done
5330
5331  if test "x$ac_ct_DUMPBIN" = x; then
5332    DUMPBIN=":"
5333  else
5334    case $cross_compiling:$ac_tool_warned in
5335yes:)
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5338ac_tool_warned=yes ;;
5339esac
5340    DUMPBIN=$ac_ct_DUMPBIN
5341  fi
5342fi
5343
5344
5345  if test "$DUMPBIN" != ":"; then
5346    NM="$DUMPBIN"
5347  fi
5348fi
5349test -z "$NM" && NM=nm
5350
5351
5352
5353
5354
5355
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5357$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5358if test "${lt_cv_nm_interface+set}" = set; then :
5359  $as_echo_n "(cached) " >&6
5360else
5361  lt_cv_nm_interface="BSD nm"
5362  echo "int some_variable = 0;" > conftest.$ac_ext
5363  (eval echo "\"\$as_me:5363: $ac_compile\"" >&5)
5364  (eval "$ac_compile" 2>conftest.err)
5365  cat conftest.err >&5
5366  (eval echo "\"\$as_me:5366: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5367  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5368  cat conftest.err >&5
5369  (eval echo "\"\$as_me:5369: output\"" >&5)
5370  cat conftest.out >&5
5371  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5372    lt_cv_nm_interface="MS dumpbin"
5373  fi
5374  rm -f conftest*
5375fi
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5377$as_echo "$lt_cv_nm_interface" >&6; }
5378
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5380$as_echo_n "checking whether ln -s works... " >&6; }
5381LN_S=$as_ln_s
5382if test "$LN_S" = "ln -s"; then
5383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384$as_echo "yes" >&6; }
5385else
5386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5387$as_echo "no, using $LN_S" >&6; }
5388fi
5389
5390# find the maximum length of command line arguments
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5392$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5393if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396    i=0
5397  teststring="ABCD"
5398
5399  case $build_os in
5400  msdosdjgpp*)
5401    # On DJGPP, this test can blow up pretty badly due to problems in libc
5402    # (any single argument exceeding 2000 bytes causes a buffer overrun
5403    # during glob expansion).  Even if it were fixed, the result of this
5404    # check would be larger than it should be.
5405    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5406    ;;
5407
5408  gnu*)
5409    # Under GNU Hurd, this test is not required because there is
5410    # no limit to the length of command line arguments.
5411    # Libtool will interpret -1 as no limit whatsoever
5412    lt_cv_sys_max_cmd_len=-1;
5413    ;;
5414
5415  cygwin* | mingw*)
5416    # On Win9x/ME, this test blows up -- it succeeds, but takes
5417    # about 5 minutes as the teststring grows exponentially.
5418    # Worse, since 9x/ME are not pre-emptively multitasking,
5419    # you end up with a "frozen" computer, even though with patience
5420    # the test eventually succeeds (with a max line length of 256k).
5421    # Instead, let's just punt: use the minimum linelength reported by
5422    # all of the supported platforms: 8192 (on NT/2K/XP).
5423    lt_cv_sys_max_cmd_len=8192;
5424    ;;
5425
5426  amigaos*)
5427    # On AmigaOS with pdksh, this test takes hours, literally.
5428    # So we just punt and use a minimum line length of 8192.
5429    lt_cv_sys_max_cmd_len=8192;
5430    ;;
5431
5432  netbsd* | freebsd* | openbsd* | darwin* | dragonfly* | bitrig*)
5433    # This has been around since 386BSD, at least.  Likely further.
5434    if test -x /sbin/sysctl; then
5435      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5436    elif test -x /usr/sbin/sysctl; then
5437      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5438    else
5439      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5440    fi
5441    # And add a safety zone
5442    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5443    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5444    ;;
5445
5446  interix*)
5447    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5448    lt_cv_sys_max_cmd_len=196608
5449    ;;
5450
5451  osf*)
5452    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5453    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5454    # nice to cause kernel panics so lets avoid the loop below.
5455    # First set a reasonable default.
5456    lt_cv_sys_max_cmd_len=16384
5457    #
5458    if test -x /sbin/sysconfig; then
5459      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5460        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5461      esac
5462    fi
5463    ;;
5464  sco3.2v5*)
5465    lt_cv_sys_max_cmd_len=102400
5466    ;;
5467  sysv5* | sco5v6* | sysv4.2uw2*)
5468    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5469    if test -n "$kargmax"; then
5470      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5471    else
5472      lt_cv_sys_max_cmd_len=32768
5473    fi
5474    ;;
5475  *)
5476    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5477    if test -n "$lt_cv_sys_max_cmd_len"; then
5478      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5479      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5480    else
5481      # Make teststring a little bigger before we do anything with it.
5482      # a 1K string should be a reasonable start.
5483      for i in 1 2 3 4 5 6 7 8 ; do
5484        teststring=$teststring$teststring
5485      done
5486      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5487      # If test is not a shell built-in, we'll probably end up computing a
5488      # maximum length that is only half of the actual maximum length, but
5489      # we can't tell.
5490      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5491	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5492	      test $i != 17 # 1/2 MB should be enough
5493      do
5494        i=`expr $i + 1`
5495        teststring=$teststring$teststring
5496      done
5497      # Only check the string length outside the loop.
5498      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5499      teststring=
5500      # Add a significant safety factor because C++ compilers can tack on
5501      # massive amounts of additional arguments before passing them to the
5502      # linker.  It appears as though 1/2 is a usable value.
5503      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5504    fi
5505    ;;
5506  esac
5507
5508fi
5509
5510if test -n $lt_cv_sys_max_cmd_len ; then
5511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5512$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5513else
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5515$as_echo "none" >&6; }
5516fi
5517max_cmd_len=$lt_cv_sys_max_cmd_len
5518
5519
5520
5521
5522
5523
5524: ${CP="cp -f"}
5525: ${MV="mv -f"}
5526: ${RM="rm -f"}
5527
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5529$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5530# Try some XSI features
5531xsi_shell=no
5532( _lt_dummy="a/b/c"
5533  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5534      = c,a/b,, \
5535    && eval 'test $(( 1 + 1 )) -eq 2 \
5536    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5537  && xsi_shell=yes
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5539$as_echo "$xsi_shell" >&6; }
5540
5541
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5543$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5544lt_shell_append=no
5545( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5546    >/dev/null 2>&1 \
5547  && lt_shell_append=yes
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5549$as_echo "$lt_shell_append" >&6; }
5550
5551
5552if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5553  lt_unset=unset
5554else
5555  lt_unset=false
5556fi
5557
5558
5559
5560
5561
5562# test EBCDIC or ASCII
5563case `echo X|tr X '\101'` in
5564 A) # ASCII based system
5565    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5566  lt_SP2NL='tr \040 \012'
5567  lt_NL2SP='tr \015\012 \040\040'
5568  ;;
5569 *) # EBCDIC based system
5570  lt_SP2NL='tr \100 \n'
5571  lt_NL2SP='tr \r\n \100\100'
5572  ;;
5573esac
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5584$as_echo_n "checking for $LD option to reload object files... " >&6; }
5585if test "${lt_cv_ld_reload_flag+set}" = set; then :
5586  $as_echo_n "(cached) " >&6
5587else
5588  lt_cv_ld_reload_flag='-r'
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5591$as_echo "$lt_cv_ld_reload_flag" >&6; }
5592reload_flag=$lt_cv_ld_reload_flag
5593case $reload_flag in
5594"" | " "*) ;;
5595*) reload_flag=" $reload_flag" ;;
5596esac
5597reload_cmds='$LD$reload_flag -o $output$reload_objs'
5598case $host_os in
5599  darwin*)
5600    if test "$GCC" = yes; then
5601      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5602    else
5603      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5604    fi
5605    ;;
5606esac
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5618$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5619if test "${lt_cv_deplibs_check_method+set}" = set; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  lt_cv_file_magic_cmd='$MAGIC_CMD'
5623lt_cv_file_magic_test_file=
5624lt_cv_deplibs_check_method='unknown'
5625# Need to set the preceding variable on all platforms that support
5626# interlibrary dependencies.
5627# 'none' -- dependencies not supported.
5628# `unknown' -- same as none, but documents that we really don't know.
5629# 'pass_all' -- all dependencies passed with no checks.
5630# 'test_compile' -- check by making test program.
5631# 'file_magic [[regex]]' -- check by looking for files in library path
5632# which responds to the $file_magic_cmd with a given extended regex.
5633# If you have `file' or equivalent on your system and you're not sure
5634# whether `pass_all' will *always* work, you probably want this one.
5635
5636case $host_os in
5637aix[4-9]*)
5638  lt_cv_deplibs_check_method=pass_all
5639  ;;
5640
5641beos*)
5642  lt_cv_deplibs_check_method=pass_all
5643  ;;
5644
5645bsdi[45]*)
5646  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5647  lt_cv_file_magic_cmd='/usr/bin/file -L'
5648  lt_cv_file_magic_test_file=/shlib/libc.so
5649  ;;
5650
5651cygwin*)
5652  # func_win32_libid is a shell function defined in ltmain.sh
5653  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5654  lt_cv_file_magic_cmd='func_win32_libid'
5655  ;;
5656
5657mingw* | pw32*)
5658  # Base MSYS/MinGW do not provide the 'file' command needed by
5659  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5660  # unless we find 'file', for example because we are cross-compiling.
5661  if ( file / ) >/dev/null 2>&1; then
5662    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5663    lt_cv_file_magic_cmd='func_win32_libid'
5664  else
5665    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5666    lt_cv_file_magic_cmd='$OBJDUMP -f'
5667  fi
5668  ;;
5669
5670darwin* | rhapsody*)
5671  lt_cv_deplibs_check_method=pass_all
5672  ;;
5673
5674freebsd* | dragonfly*)
5675  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5676    case $host_cpu in
5677    i*86 )
5678      # Not sure whether the presence of OpenBSD here was a mistake.
5679      # Let's accept both of them until this is cleared up.
5680      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5681      lt_cv_file_magic_cmd=/usr/bin/file
5682      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5683      ;;
5684    esac
5685  else
5686    lt_cv_deplibs_check_method=pass_all
5687  fi
5688  ;;
5689
5690gnu*)
5691  lt_cv_deplibs_check_method=pass_all
5692  ;;
5693
5694hpux10.20* | hpux11*)
5695  lt_cv_file_magic_cmd=/usr/bin/file
5696  case $host_cpu in
5697  ia64*)
5698    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5699    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5700    ;;
5701  hppa*64*)
5702    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]'
5703    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5704    ;;
5705  *)
5706    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5707    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5708    ;;
5709  esac
5710  ;;
5711
5712interix[3-9]*)
5713  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5714  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5715  ;;
5716
5717irix5* | irix6* | nonstopux*)
5718  case $LD in
5719  *-32|*"-32 ") libmagic=32-bit;;
5720  *-n32|*"-n32 ") libmagic=N32;;
5721  *-64|*"-64 ") libmagic=64-bit;;
5722  *) libmagic=never-match;;
5723  esac
5724  lt_cv_deplibs_check_method=pass_all
5725  ;;
5726
5727# This must be Linux ELF.
5728linux* | k*bsd*-gnu)
5729  lt_cv_deplibs_check_method=pass_all
5730  ;;
5731
5732netbsd*)
5733  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5734    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5735  else
5736    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5737  fi
5738  ;;
5739
5740newos6*)
5741  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5742  lt_cv_file_magic_cmd=/usr/bin/file
5743  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5744  ;;
5745
5746*nto* | *qnx*)
5747  lt_cv_deplibs_check_method=pass_all
5748  ;;
5749
5750openbsd*)
5751  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5752    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5753  else
5754    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5755  fi
5756  ;;
5757
5758osf3* | osf4* | osf5*)
5759  lt_cv_deplibs_check_method=pass_all
5760  ;;
5761
5762rdos*)
5763  lt_cv_deplibs_check_method=pass_all
5764  ;;
5765
5766solaris*)
5767  lt_cv_deplibs_check_method=pass_all
5768  ;;
5769
5770sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5771  lt_cv_deplibs_check_method=pass_all
5772  ;;
5773
5774sysv4 | sysv4.3*)
5775  case $host_vendor in
5776  motorola)
5777    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]'
5778    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5779    ;;
5780  ncr)
5781    lt_cv_deplibs_check_method=pass_all
5782    ;;
5783  sequent)
5784    lt_cv_file_magic_cmd='/bin/file'
5785    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5786    ;;
5787  sni)
5788    lt_cv_file_magic_cmd='/bin/file'
5789    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5790    lt_cv_file_magic_test_file=/lib/libc.so
5791    ;;
5792  siemens)
5793    lt_cv_deplibs_check_method=pass_all
5794    ;;
5795  pc)
5796    lt_cv_deplibs_check_method=pass_all
5797    ;;
5798  esac
5799  ;;
5800
5801tpf*)
5802  lt_cv_deplibs_check_method=pass_all
5803  ;;
5804esac
5805
5806fi
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5808$as_echo "$lt_cv_deplibs_check_method" >&6; }
5809file_magic_cmd=$lt_cv_file_magic_cmd
5810deplibs_check_method=$lt_cv_deplibs_check_method
5811test -z "$deplibs_check_method" && deplibs_check_method=unknown
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824if test -n "$ac_tool_prefix"; then
5825  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5826set dummy ${ac_tool_prefix}ar; ac_word=$2
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828$as_echo_n "checking for $ac_word... " >&6; }
5829if test "${ac_cv_prog_AR+set}" = set; then :
5830  $as_echo_n "(cached) " >&6
5831else
5832  if test -n "$AR"; then
5833  ac_cv_prog_AR="$AR" # Let the user override the test.
5834else
5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838  IFS=$as_save_IFS
5839  test -z "$as_dir" && as_dir=.
5840    for ac_exec_ext in '' $ac_executable_extensions; do
5841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5842    ac_cv_prog_AR="${ac_tool_prefix}ar"
5843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844    break 2
5845  fi
5846done
5847  done
5848IFS=$as_save_IFS
5849
5850fi
5851fi
5852AR=$ac_cv_prog_AR
5853if test -n "$AR"; then
5854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5855$as_echo "$AR" >&6; }
5856else
5857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858$as_echo "no" >&6; }
5859fi
5860
5861
5862fi
5863if test -z "$ac_cv_prog_AR"; then
5864  ac_ct_AR=$AR
5865  # Extract the first word of "ar", so it can be a program name with args.
5866set dummy ar; ac_word=$2
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868$as_echo_n "checking for $ac_word... " >&6; }
5869if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5870  $as_echo_n "(cached) " >&6
5871else
5872  if test -n "$ac_ct_AR"; then
5873  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5874else
5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876for as_dir in $PATH
5877do
5878  IFS=$as_save_IFS
5879  test -z "$as_dir" && as_dir=.
5880    for ac_exec_ext in '' $ac_executable_extensions; do
5881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5882    ac_cv_prog_ac_ct_AR="ar"
5883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884    break 2
5885  fi
5886done
5887  done
5888IFS=$as_save_IFS
5889
5890fi
5891fi
5892ac_ct_AR=$ac_cv_prog_ac_ct_AR
5893if test -n "$ac_ct_AR"; then
5894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5895$as_echo "$ac_ct_AR" >&6; }
5896else
5897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898$as_echo "no" >&6; }
5899fi
5900
5901  if test "x$ac_ct_AR" = x; then
5902    AR="false"
5903  else
5904    case $cross_compiling:$ac_tool_warned in
5905yes:)
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5908ac_tool_warned=yes ;;
5909esac
5910    AR=$ac_ct_AR
5911  fi
5912else
5913  AR="$ac_cv_prog_AR"
5914fi
5915
5916test -z "$AR" && AR=ar
5917test -z "$AR_FLAGS" && AR_FLAGS=cru
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929if test -n "$ac_tool_prefix"; then
5930  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5931set dummy ${ac_tool_prefix}strip; ac_word=$2
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933$as_echo_n "checking for $ac_word... " >&6; }
5934if test "${ac_cv_prog_STRIP+set}" = set; then :
5935  $as_echo_n "(cached) " >&6
5936else
5937  if test -n "$STRIP"; then
5938  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5939else
5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941for as_dir in $PATH
5942do
5943  IFS=$as_save_IFS
5944  test -z "$as_dir" && as_dir=.
5945    for ac_exec_ext in '' $ac_executable_extensions; do
5946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949    break 2
5950  fi
5951done
5952  done
5953IFS=$as_save_IFS
5954
5955fi
5956fi
5957STRIP=$ac_cv_prog_STRIP
5958if test -n "$STRIP"; then
5959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5960$as_echo "$STRIP" >&6; }
5961else
5962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963$as_echo "no" >&6; }
5964fi
5965
5966
5967fi
5968if test -z "$ac_cv_prog_STRIP"; then
5969  ac_ct_STRIP=$STRIP
5970  # Extract the first word of "strip", so it can be a program name with args.
5971set dummy strip; ac_word=$2
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973$as_echo_n "checking for $ac_word... " >&6; }
5974if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5975  $as_echo_n "(cached) " >&6
5976else
5977  if test -n "$ac_ct_STRIP"; then
5978  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5979else
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983  IFS=$as_save_IFS
5984  test -z "$as_dir" && as_dir=.
5985    for ac_exec_ext in '' $ac_executable_extensions; do
5986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987    ac_cv_prog_ac_ct_STRIP="strip"
5988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989    break 2
5990  fi
5991done
5992  done
5993IFS=$as_save_IFS
5994
5995fi
5996fi
5997ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5998if test -n "$ac_ct_STRIP"; then
5999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6000$as_echo "$ac_ct_STRIP" >&6; }
6001else
6002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003$as_echo "no" >&6; }
6004fi
6005
6006  if test "x$ac_ct_STRIP" = x; then
6007    STRIP=":"
6008  else
6009    case $cross_compiling:$ac_tool_warned in
6010yes:)
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013ac_tool_warned=yes ;;
6014esac
6015    STRIP=$ac_ct_STRIP
6016  fi
6017else
6018  STRIP="$ac_cv_prog_STRIP"
6019fi
6020
6021test -z "$STRIP" && STRIP=:
6022
6023
6024
6025
6026
6027
6028if test -n "$ac_tool_prefix"; then
6029  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6030set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032$as_echo_n "checking for $ac_word... " >&6; }
6033if test "${ac_cv_prog_RANLIB+set}" = set; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  if test -n "$RANLIB"; then
6037  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042  IFS=$as_save_IFS
6043  test -z "$as_dir" && as_dir=.
6044    for ac_exec_ext in '' $ac_executable_extensions; do
6045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048    break 2
6049  fi
6050done
6051  done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056RANLIB=$ac_cv_prog_RANLIB
6057if test -n "$RANLIB"; then
6058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6059$as_echo "$RANLIB" >&6; }
6060else
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065
6066fi
6067if test -z "$ac_cv_prog_RANLIB"; then
6068  ac_ct_RANLIB=$RANLIB
6069  # Extract the first word of "ranlib", so it can be a program name with args.
6070set dummy ranlib; ac_word=$2
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072$as_echo_n "checking for $ac_word... " >&6; }
6073if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6074  $as_echo_n "(cached) " >&6
6075else
6076  if test -n "$ac_ct_RANLIB"; then
6077  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6078else
6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080for as_dir in $PATH
6081do
6082  IFS=$as_save_IFS
6083  test -z "$as_dir" && as_dir=.
6084    for ac_exec_ext in '' $ac_executable_extensions; do
6085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086    ac_cv_prog_ac_ct_RANLIB="ranlib"
6087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088    break 2
6089  fi
6090done
6091  done
6092IFS=$as_save_IFS
6093
6094fi
6095fi
6096ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6097if test -n "$ac_ct_RANLIB"; then
6098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6099$as_echo "$ac_ct_RANLIB" >&6; }
6100else
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102$as_echo "no" >&6; }
6103fi
6104
6105  if test "x$ac_ct_RANLIB" = x; then
6106    RANLIB=":"
6107  else
6108    case $cross_compiling:$ac_tool_warned in
6109yes:)
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112ac_tool_warned=yes ;;
6113esac
6114    RANLIB=$ac_ct_RANLIB
6115  fi
6116else
6117  RANLIB="$ac_cv_prog_RANLIB"
6118fi
6119
6120test -z "$RANLIB" && RANLIB=:
6121
6122
6123
6124
6125
6126
6127# Determine commands to create old-style static archives.
6128old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6129old_postinstall_cmds='chmod 644 $oldlib'
6130old_postuninstall_cmds=
6131
6132if test -n "$RANLIB"; then
6133  case $host_os in
6134  openbsd*)
6135    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6136    ;;
6137  *)
6138    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6139    ;;
6140  esac
6141  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6142fi
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177# If no C compiler was specified, use CC.
6178LTCC=${LTCC-"$CC"}
6179
6180# If no C compiler flags were specified, use CFLAGS.
6181LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6182
6183# Allow CC to be a program name with arguments.
6184compiler=$CC
6185
6186
6187# Check for command to grab the raw symbol name followed by C symbol from nm.
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6189$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6190if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193
6194# These are sane defaults that work on at least a few old systems.
6195# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6196
6197# Character class describing NM global symbol codes.
6198symcode='[BCDEGRST]'
6199
6200# Regexp to match symbols that can be accessed directly from C.
6201sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6202
6203# Define system-specific variables.
6204case $host_os in
6205aix*)
6206  symcode='[BCDT]'
6207  ;;
6208cygwin* | mingw* | pw32*)
6209  symcode='[ABCDGISTW]'
6210  ;;
6211hpux*)
6212  if test "$host_cpu" = ia64; then
6213    symcode='[ABCDEGRST]'
6214  fi
6215  ;;
6216irix* | nonstopux*)
6217  symcode='[BCDEGRST]'
6218  ;;
6219osf*)
6220  symcode='[BCDEGQRST]'
6221  ;;
6222solaris*)
6223  symcode='[BDRT]'
6224  ;;
6225sco3.2v5*)
6226  symcode='[DT]'
6227  ;;
6228sysv4.2uw2*)
6229  symcode='[DT]'
6230  ;;
6231sysv5* | sco5v6* | unixware* | OpenUNIX*)
6232  symcode='[ABDT]'
6233  ;;
6234sysv4)
6235  symcode='[DFNSTU]'
6236  ;;
6237esac
6238
6239# If we're using GNU nm, then use its standard symbol codes.
6240case `$NM -V 2>&1` in
6241*GNU* | *'with BFD'*)
6242  symcode='[ABCDGIRSTW]' ;;
6243esac
6244
6245# Transform an extracted symbol line into a proper C declaration.
6246# Some systems (esp. on ia64) link data and code symbols differently,
6247# so use this general approach.
6248lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6249
6250# Transform an extracted symbol line into symbol name and symbol address
6251lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6252lt_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'"
6253
6254# Handle CRLF in mingw tool chain
6255opt_cr=
6256case $build_os in
6257mingw*)
6258  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6259  ;;
6260esac
6261
6262# Try without a prefix underscore, then with it.
6263for ac_symprfx in "" "_"; do
6264
6265  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6266  symxfrm="\\1 $ac_symprfx\\2 \\2"
6267
6268  # Write the raw and C identifiers.
6269  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6270    # Fake it for dumpbin and say T for any non-static function
6271    # and D for any global variable.
6272    # Also find C++ and __fastcall symbols from MSVC++,
6273    # which start with @ or ?.
6274    lt_cv_sys_global_symbol_pipe="$AWK '"\
6275"     {last_section=section; section=\$ 3};"\
6276"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6277"     \$ 0!~/External *\|/{next};"\
6278"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6279"     {if(hide[section]) next};"\
6280"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6281"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6282"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6283"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6284"     ' prfx=^$ac_symprfx"
6285  else
6286    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6287  fi
6288
6289  # Check to see that the pipe works correctly.
6290  pipe_works=no
6291
6292  rm -f conftest*
6293  cat > conftest.$ac_ext <<_LT_EOF
6294#ifdef __cplusplus
6295extern "C" {
6296#endif
6297char nm_test_var;
6298void nm_test_func(void);
6299void nm_test_func(void){}
6300#ifdef __cplusplus
6301}
6302#endif
6303int main(){nm_test_var='a';nm_test_func();return(0);}
6304_LT_EOF
6305
6306  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6307  (eval $ac_compile) 2>&5
6308  ac_status=$?
6309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310  test $ac_status = 0; }; then
6311    # Now try to grab the symbols.
6312    nlist=conftest.nm
6313    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6314  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6315  ac_status=$?
6316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317  test $ac_status = 0; } && test -s "$nlist"; then
6318      # Try sorting and uniquifying the output.
6319      if sort "$nlist" | uniq > "$nlist"T; then
6320	mv -f "$nlist"T "$nlist"
6321      else
6322	rm -f "$nlist"T
6323      fi
6324
6325      # Make sure that we snagged all the symbols we need.
6326      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6327	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6328	  cat <<_LT_EOF > conftest.$ac_ext
6329#ifdef __cplusplus
6330extern "C" {
6331#endif
6332
6333_LT_EOF
6334	  # Now generate the symbol file.
6335	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6336
6337	  cat <<_LT_EOF >> conftest.$ac_ext
6338
6339/* The mapping between symbol names and symbols.  */
6340const struct {
6341  const char *name;
6342  void       *address;
6343}
6344lt__PROGRAM__LTX_preloaded_symbols[] =
6345{
6346  { "@PROGRAM@", (void *) 0 },
6347_LT_EOF
6348	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6349	  cat <<\_LT_EOF >> conftest.$ac_ext
6350  {0, (void *) 0}
6351};
6352
6353/* This works around a problem in FreeBSD linker */
6354#ifdef FREEBSD_WORKAROUND
6355static const void *lt_preloaded_setup() {
6356  return lt__PROGRAM__LTX_preloaded_symbols;
6357}
6358#endif
6359
6360#ifdef __cplusplus
6361}
6362#endif
6363_LT_EOF
6364	  # Now try linking the two files.
6365	  mv conftest.$ac_objext conftstm.$ac_objext
6366	  lt_save_LIBS="$LIBS"
6367	  lt_save_CFLAGS="$CFLAGS"
6368	  LIBS="conftstm.$ac_objext"
6369	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6370	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6371  (eval $ac_link) 2>&5
6372  ac_status=$?
6373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6374  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6375	    pipe_works=yes
6376	  fi
6377	  LIBS="$lt_save_LIBS"
6378	  CFLAGS="$lt_save_CFLAGS"
6379	else
6380	  echo "cannot find nm_test_func in $nlist" >&5
6381	fi
6382      else
6383	echo "cannot find nm_test_var in $nlist" >&5
6384      fi
6385    else
6386      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6387    fi
6388  else
6389    echo "$progname: failed program was:" >&5
6390    cat conftest.$ac_ext >&5
6391  fi
6392  rm -rf conftest* conftst*
6393
6394  # Do not use the global_symbol_pipe unless it works.
6395  if test "$pipe_works" = yes; then
6396    break
6397  else
6398    lt_cv_sys_global_symbol_pipe=
6399  fi
6400done
6401
6402fi
6403
6404if test -z "$lt_cv_sys_global_symbol_pipe"; then
6405  lt_cv_sys_global_symbol_to_cdecl=
6406fi
6407if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6409$as_echo "failed" >&6; }
6410else
6411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6412$as_echo "ok" >&6; }
6413fi
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436# Check whether --enable-libtool-lock was given.
6437if test "${enable_libtool_lock+set}" = set; then :
6438  enableval=$enable_libtool_lock;
6439fi
6440
6441test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6442
6443# Some flags need to be propagated to the compiler or linker for good
6444# libtool support.
6445case $host in
6446ia64-*-hpux*)
6447  # Find out which ABI we are using.
6448  echo 'int i;' > conftest.$ac_ext
6449  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6450  (eval $ac_compile) 2>&5
6451  ac_status=$?
6452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453  test $ac_status = 0; }; then
6454    case `/usr/bin/file conftest.$ac_objext` in
6455      *ELF-32*)
6456	HPUX_IA64_MODE="32"
6457	;;
6458      *ELF-64*)
6459	HPUX_IA64_MODE="64"
6460	;;
6461    esac
6462  fi
6463  rm -rf conftest*
6464  ;;
6465*-*-irix6*)
6466  # Find out which ABI we are using.
6467  echo '#line 6467 "configure"' > conftest.$ac_ext
6468  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6469  (eval $ac_compile) 2>&5
6470  ac_status=$?
6471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472  test $ac_status = 0; }; then
6473    if test "$lt_cv_prog_gnu_ld" = yes; then
6474      case `/usr/bin/file conftest.$ac_objext` in
6475	*32-bit*)
6476	  LD="${LD-ld} -melf32bsmip"
6477	  ;;
6478	*N32*)
6479	  LD="${LD-ld} -melf32bmipn32"
6480	  ;;
6481	*64-bit*)
6482	  LD="${LD-ld} -melf64bmip"
6483	;;
6484      esac
6485    else
6486      case `/usr/bin/file conftest.$ac_objext` in
6487	*32-bit*)
6488	  LD="${LD-ld} -32"
6489	  ;;
6490	*N32*)
6491	  LD="${LD-ld} -n32"
6492	  ;;
6493	*64-bit*)
6494	  LD="${LD-ld} -64"
6495	  ;;
6496      esac
6497    fi
6498  fi
6499  rm -rf conftest*
6500  ;;
6501
6502x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6503s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6504  # Find out which ABI we are using.
6505  echo 'int i;' > conftest.$ac_ext
6506  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6507  (eval $ac_compile) 2>&5
6508  ac_status=$?
6509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510  test $ac_status = 0; }; then
6511    case `/usr/bin/file conftest.o` in
6512      *32-bit*)
6513	case $host in
6514	  x86_64-*kfreebsd*-gnu)
6515	    LD="${LD-ld} -m elf_i386_fbsd"
6516	    ;;
6517	  x86_64-*linux*)
6518	    LD="${LD-ld} -m elf_i386"
6519	    ;;
6520	  ppc64-*linux*|powerpc64-*linux*)
6521	    LD="${LD-ld} -m elf32ppclinux"
6522	    ;;
6523	  s390x-*linux*)
6524	    LD="${LD-ld} -m elf_s390"
6525	    ;;
6526	  sparc64-*linux*)
6527	    LD="${LD-ld} -m elf32_sparc"
6528	    ;;
6529	esac
6530	;;
6531      *64-bit*)
6532	case $host in
6533	  x86_64-*kfreebsd*-gnu)
6534	    LD="${LD-ld} -m elf_x86_64_fbsd"
6535	    ;;
6536	  x86_64-*linux*)
6537	    LD="${LD-ld} -m elf_x86_64"
6538	    ;;
6539	  ppc*-*linux*|powerpc*-*linux*)
6540	    LD="${LD-ld} -m elf64ppc"
6541	    ;;
6542	  s390*-*linux*|s390*-*tpf*)
6543	    LD="${LD-ld} -m elf64_s390"
6544	    ;;
6545	  sparc*-*linux*)
6546	    LD="${LD-ld} -m elf64_sparc"
6547	    ;;
6548	esac
6549	;;
6550    esac
6551  fi
6552  rm -rf conftest*
6553  ;;
6554
6555*-*-sco3.2v5*)
6556  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6557  SAVE_CFLAGS="$CFLAGS"
6558  CFLAGS="$CFLAGS -belf"
6559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6560$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6561if test "${lt_cv_cc_needs_belf+set}" = set; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  ac_ext=c
6565ac_cpp='$CPP $CPPFLAGS'
6566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6568ac_compiler_gnu=$ac_cv_c_compiler_gnu
6569
6570     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571/* end confdefs.h.  */
6572
6573int
6574main ()
6575{
6576
6577  ;
6578  return 0;
6579}
6580_ACEOF
6581if ac_fn_c_try_link "$LINENO"; then :
6582  lt_cv_cc_needs_belf=yes
6583else
6584  lt_cv_cc_needs_belf=no
6585fi
6586rm -f core conftest.err conftest.$ac_objext \
6587    conftest$ac_exeext conftest.$ac_ext
6588     ac_ext=c
6589ac_cpp='$CPP $CPPFLAGS'
6590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592ac_compiler_gnu=$ac_cv_c_compiler_gnu
6593
6594fi
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6596$as_echo "$lt_cv_cc_needs_belf" >&6; }
6597  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6598    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6599    CFLAGS="$SAVE_CFLAGS"
6600  fi
6601  ;;
6602sparc*-*solaris*)
6603  # Find out which ABI we are using.
6604  echo 'int i;' > conftest.$ac_ext
6605  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6606  (eval $ac_compile) 2>&5
6607  ac_status=$?
6608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609  test $ac_status = 0; }; then
6610    case `/usr/bin/file conftest.o` in
6611    *64-bit*)
6612      case $lt_cv_prog_gnu_ld in
6613      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6614      *)
6615	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6616	  LD="${LD-ld} -64"
6617	fi
6618	;;
6619      esac
6620      ;;
6621    esac
6622  fi
6623  rm -rf conftest*
6624  ;;
6625esac
6626
6627need_locks="$enable_libtool_lock"
6628
6629
6630  case $host_os in
6631    rhapsody* | darwin*)
6632    if test -n "$ac_tool_prefix"; then
6633  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6634set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636$as_echo_n "checking for $ac_word... " >&6; }
6637if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6638  $as_echo_n "(cached) " >&6
6639else
6640  if test -n "$DSYMUTIL"; then
6641  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6642else
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646  IFS=$as_save_IFS
6647  test -z "$as_dir" && as_dir=.
6648    for ac_exec_ext in '' $ac_executable_extensions; do
6649  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652    break 2
6653  fi
6654done
6655  done
6656IFS=$as_save_IFS
6657
6658fi
6659fi
6660DSYMUTIL=$ac_cv_prog_DSYMUTIL
6661if test -n "$DSYMUTIL"; then
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6663$as_echo "$DSYMUTIL" >&6; }
6664else
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666$as_echo "no" >&6; }
6667fi
6668
6669
6670fi
6671if test -z "$ac_cv_prog_DSYMUTIL"; then
6672  ac_ct_DSYMUTIL=$DSYMUTIL
6673  # Extract the first word of "dsymutil", so it can be a program name with args.
6674set dummy dsymutil; ac_word=$2
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676$as_echo_n "checking for $ac_word... " >&6; }
6677if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6678  $as_echo_n "(cached) " >&6
6679else
6680  if test -n "$ac_ct_DSYMUTIL"; then
6681  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686  IFS=$as_save_IFS
6687  test -z "$as_dir" && as_dir=.
6688    for ac_exec_ext in '' $ac_executable_extensions; do
6689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692    break 2
6693  fi
6694done
6695  done
6696IFS=$as_save_IFS
6697
6698fi
6699fi
6700ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6701if test -n "$ac_ct_DSYMUTIL"; then
6702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6703$as_echo "$ac_ct_DSYMUTIL" >&6; }
6704else
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706$as_echo "no" >&6; }
6707fi
6708
6709  if test "x$ac_ct_DSYMUTIL" = x; then
6710    DSYMUTIL=":"
6711  else
6712    case $cross_compiling:$ac_tool_warned in
6713yes:)
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716ac_tool_warned=yes ;;
6717esac
6718    DSYMUTIL=$ac_ct_DSYMUTIL
6719  fi
6720else
6721  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6722fi
6723
6724    if test -n "$ac_tool_prefix"; then
6725  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6726set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728$as_echo_n "checking for $ac_word... " >&6; }
6729if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6730  $as_echo_n "(cached) " >&6
6731else
6732  if test -n "$NMEDIT"; then
6733  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738  IFS=$as_save_IFS
6739  test -z "$as_dir" && as_dir=.
6740    for ac_exec_ext in '' $ac_executable_extensions; do
6741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744    break 2
6745  fi
6746done
6747  done
6748IFS=$as_save_IFS
6749
6750fi
6751fi
6752NMEDIT=$ac_cv_prog_NMEDIT
6753if test -n "$NMEDIT"; then
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6755$as_echo "$NMEDIT" >&6; }
6756else
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758$as_echo "no" >&6; }
6759fi
6760
6761
6762fi
6763if test -z "$ac_cv_prog_NMEDIT"; then
6764  ac_ct_NMEDIT=$NMEDIT
6765  # Extract the first word of "nmedit", so it can be a program name with args.
6766set dummy nmedit; ac_word=$2
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
6769if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772  if test -n "$ac_ct_NMEDIT"; then
6773  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778  IFS=$as_save_IFS
6779  test -z "$as_dir" && as_dir=.
6780    for ac_exec_ext in '' $ac_executable_extensions; do
6781  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784    break 2
6785  fi
6786done
6787  done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
6792ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6793if test -n "$ac_ct_NMEDIT"; then
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6795$as_echo "$ac_ct_NMEDIT" >&6; }
6796else
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
6801  if test "x$ac_ct_NMEDIT" = x; then
6802    NMEDIT=":"
6803  else
6804    case $cross_compiling:$ac_tool_warned in
6805yes:)
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808ac_tool_warned=yes ;;
6809esac
6810    NMEDIT=$ac_ct_NMEDIT
6811  fi
6812else
6813  NMEDIT="$ac_cv_prog_NMEDIT"
6814fi
6815
6816    if test -n "$ac_tool_prefix"; then
6817  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6818set dummy ${ac_tool_prefix}lipo; ac_word=$2
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
6821if test "${ac_cv_prog_LIPO+set}" = set; then :
6822  $as_echo_n "(cached) " >&6
6823else
6824  if test -n "$LIPO"; then
6825  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830  IFS=$as_save_IFS
6831  test -z "$as_dir" && as_dir=.
6832    for ac_exec_ext in '' $ac_executable_extensions; do
6833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836    break 2
6837  fi
6838done
6839  done
6840IFS=$as_save_IFS
6841
6842fi
6843fi
6844LIPO=$ac_cv_prog_LIPO
6845if test -n "$LIPO"; then
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6847$as_echo "$LIPO" >&6; }
6848else
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850$as_echo "no" >&6; }
6851fi
6852
6853
6854fi
6855if test -z "$ac_cv_prog_LIPO"; then
6856  ac_ct_LIPO=$LIPO
6857  # Extract the first word of "lipo", so it can be a program name with args.
6858set dummy lipo; ac_word=$2
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test -n "$ac_ct_LIPO"; then
6865  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872    for ac_exec_ext in '' $ac_executable_extensions; do
6873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874    ac_cv_prog_ac_ct_LIPO="lipo"
6875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879  done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6885if test -n "$ac_ct_LIPO"; then
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6887$as_echo "$ac_ct_LIPO" >&6; }
6888else
6889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893  if test "x$ac_ct_LIPO" = x; then
6894    LIPO=":"
6895  else
6896    case $cross_compiling:$ac_tool_warned in
6897yes:)
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900ac_tool_warned=yes ;;
6901esac
6902    LIPO=$ac_ct_LIPO
6903  fi
6904else
6905  LIPO="$ac_cv_prog_LIPO"
6906fi
6907
6908    if test -n "$ac_tool_prefix"; then
6909  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6910set dummy ${ac_tool_prefix}otool; ac_word=$2
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912$as_echo_n "checking for $ac_word... " >&6; }
6913if test "${ac_cv_prog_OTOOL+set}" = set; then :
6914  $as_echo_n "(cached) " >&6
6915else
6916  if test -n "$OTOOL"; then
6917  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6918else
6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922  IFS=$as_save_IFS
6923  test -z "$as_dir" && as_dir=.
6924    for ac_exec_ext in '' $ac_executable_extensions; do
6925  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928    break 2
6929  fi
6930done
6931  done
6932IFS=$as_save_IFS
6933
6934fi
6935fi
6936OTOOL=$ac_cv_prog_OTOOL
6937if test -n "$OTOOL"; then
6938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6939$as_echo "$OTOOL" >&6; }
6940else
6941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942$as_echo "no" >&6; }
6943fi
6944
6945
6946fi
6947if test -z "$ac_cv_prog_OTOOL"; then
6948  ac_ct_OTOOL=$OTOOL
6949  # Extract the first word of "otool", so it can be a program name with args.
6950set dummy otool; ac_word=$2
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952$as_echo_n "checking for $ac_word... " >&6; }
6953if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  if test -n "$ac_ct_OTOOL"; then
6957  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962  IFS=$as_save_IFS
6963  test -z "$as_dir" && as_dir=.
6964    for ac_exec_ext in '' $ac_executable_extensions; do
6965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966    ac_cv_prog_ac_ct_OTOOL="otool"
6967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968    break 2
6969  fi
6970done
6971  done
6972IFS=$as_save_IFS
6973
6974fi
6975fi
6976ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6977if test -n "$ac_ct_OTOOL"; then
6978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6979$as_echo "$ac_ct_OTOOL" >&6; }
6980else
6981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982$as_echo "no" >&6; }
6983fi
6984
6985  if test "x$ac_ct_OTOOL" = x; then
6986    OTOOL=":"
6987  else
6988    case $cross_compiling:$ac_tool_warned in
6989yes:)
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992ac_tool_warned=yes ;;
6993esac
6994    OTOOL=$ac_ct_OTOOL
6995  fi
6996else
6997  OTOOL="$ac_cv_prog_OTOOL"
6998fi
6999
7000    if test -n "$ac_tool_prefix"; then
7001  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7002set dummy ${ac_tool_prefix}otool64; ac_word=$2
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004$as_echo_n "checking for $ac_word... " >&6; }
7005if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7006  $as_echo_n "(cached) " >&6
7007else
7008  if test -n "$OTOOL64"; then
7009  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014  IFS=$as_save_IFS
7015  test -z "$as_dir" && as_dir=.
7016    for ac_exec_ext in '' $ac_executable_extensions; do
7017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020    break 2
7021  fi
7022done
7023  done
7024IFS=$as_save_IFS
7025
7026fi
7027fi
7028OTOOL64=$ac_cv_prog_OTOOL64
7029if test -n "$OTOOL64"; then
7030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7031$as_echo "$OTOOL64" >&6; }
7032else
7033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034$as_echo "no" >&6; }
7035fi
7036
7037
7038fi
7039if test -z "$ac_cv_prog_OTOOL64"; then
7040  ac_ct_OTOOL64=$OTOOL64
7041  # Extract the first word of "otool64", so it can be a program name with args.
7042set dummy otool64; ac_word=$2
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044$as_echo_n "checking for $ac_word... " >&6; }
7045if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  if test -n "$ac_ct_OTOOL64"; then
7049  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7050else
7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054  IFS=$as_save_IFS
7055  test -z "$as_dir" && as_dir=.
7056    for ac_exec_ext in '' $ac_executable_extensions; do
7057  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058    ac_cv_prog_ac_ct_OTOOL64="otool64"
7059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060    break 2
7061  fi
7062done
7063  done
7064IFS=$as_save_IFS
7065
7066fi
7067fi
7068ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7069if test -n "$ac_ct_OTOOL64"; then
7070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7071$as_echo "$ac_ct_OTOOL64" >&6; }
7072else
7073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074$as_echo "no" >&6; }
7075fi
7076
7077  if test "x$ac_ct_OTOOL64" = x; then
7078    OTOOL64=":"
7079  else
7080    case $cross_compiling:$ac_tool_warned in
7081yes:)
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7084ac_tool_warned=yes ;;
7085esac
7086    OTOOL64=$ac_ct_OTOOL64
7087  fi
7088else
7089  OTOOL64="$ac_cv_prog_OTOOL64"
7090fi
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7119$as_echo_n "checking for -single_module linker flag... " >&6; }
7120if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  lt_cv_apple_cc_single_mod=no
7124      if test -z "${LT_MULTI_MODULE}"; then
7125	# By default we will add the -single_module flag. You can override
7126	# by either setting the environment variable LT_MULTI_MODULE
7127	# non-empty at configure time, or by adding -multi_module to the
7128	# link flags.
7129	rm -rf libconftest.dylib*
7130	echo "int foo(void){return 1;}" > conftest.c
7131	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7132-dynamiclib -Wl,-single_module conftest.c" >&5
7133	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7134	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7135        _lt_result=$?
7136	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7137	  lt_cv_apple_cc_single_mod=yes
7138	else
7139	  cat conftest.err >&5
7140	fi
7141	rm -rf libconftest.dylib*
7142	rm -f conftest.*
7143      fi
7144fi
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7146$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7148$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7149if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7150  $as_echo_n "(cached) " >&6
7151else
7152  lt_cv_ld_exported_symbols_list=no
7153      save_LDFLAGS=$LDFLAGS
7154      echo "_main" > conftest.sym
7155      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7156      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h.  */
7158
7159int
7160main ()
7161{
7162
7163  ;
7164  return 0;
7165}
7166_ACEOF
7167if ac_fn_c_try_link "$LINENO"; then :
7168  lt_cv_ld_exported_symbols_list=yes
7169else
7170  lt_cv_ld_exported_symbols_list=no
7171fi
7172rm -f core conftest.err conftest.$ac_objext \
7173    conftest$ac_exeext conftest.$ac_ext
7174	LDFLAGS="$save_LDFLAGS"
7175
7176fi
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7178$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7179    case $host_os in
7180    rhapsody* | darwin1.[012])
7181      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7182    darwin1.*)
7183      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7184    darwin*) # darwin 5.x on
7185      # if running on 10.5 or later, the deployment target defaults
7186      # to the OS version, if on x86, and 10.4, the deployment
7187      # target defaults to 10.4. Don't you love it?
7188      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7189	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7190	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7191	10.[012]*)
7192	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7193	10.*)
7194	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7195      esac
7196    ;;
7197  esac
7198    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7199      _lt_dar_single_mod='$single_module'
7200    fi
7201    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7202      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7203    else
7204      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7205    fi
7206    if test "$DSYMUTIL" != ":"; then
7207      _lt_dsymutil='~$DSYMUTIL $lib || :'
7208    else
7209      _lt_dsymutil=
7210    fi
7211    ;;
7212  esac
7213
7214for ac_header in dlfcn.h
7215do :
7216  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7217"
7218if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7219  cat >>confdefs.h <<_ACEOF
7220#define HAVE_DLFCN_H 1
7221_ACEOF
7222
7223fi
7224
7225done
7226
7227
7228
7229# Set options
7230
7231
7232
7233        enable_dlopen=no
7234
7235
7236  enable_win32_dll=no
7237
7238
7239            # Check whether --enable-shared was given.
7240if test "${enable_shared+set}" = set; then :
7241  enableval=$enable_shared; p=${PACKAGE-default}
7242    case $enableval in
7243    yes) enable_shared=yes ;;
7244    no) enable_shared=no ;;
7245    *)
7246      enable_shared=no
7247      # Look at the argument we got.  We use all the common list separators.
7248      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7249      for pkg in $enableval; do
7250	IFS="$lt_save_ifs"
7251	if test "X$pkg" = "X$p"; then
7252	  enable_shared=yes
7253	fi
7254      done
7255      IFS="$lt_save_ifs"
7256      ;;
7257    esac
7258else
7259  enable_shared=yes
7260fi
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270  # Check whether --enable-static was given.
7271if test "${enable_static+set}" = set; then :
7272  enableval=$enable_static; p=${PACKAGE-default}
7273    case $enableval in
7274    yes) enable_static=yes ;;
7275    no) enable_static=no ;;
7276    *)
7277     enable_static=no
7278      # Look at the argument we got.  We use all the common list separators.
7279      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7280      for pkg in $enableval; do
7281	IFS="$lt_save_ifs"
7282	if test "X$pkg" = "X$p"; then
7283	  enable_static=yes
7284	fi
7285      done
7286      IFS="$lt_save_ifs"
7287      ;;
7288    esac
7289else
7290  enable_static=yes
7291fi
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302# Check whether --with-pic was given.
7303if test "${with_pic+set}" = set; then :
7304  withval=$with_pic; pic_mode="$withval"
7305else
7306  pic_mode=default
7307fi
7308
7309
7310test -z "$pic_mode" && pic_mode=default
7311
7312
7313
7314
7315
7316
7317
7318  # Check whether --enable-fast-install was given.
7319if test "${enable_fast_install+set}" = set; then :
7320  enableval=$enable_fast_install; p=${PACKAGE-default}
7321    case $enableval in
7322    yes) enable_fast_install=yes ;;
7323    no) enable_fast_install=no ;;
7324    *)
7325      enable_fast_install=no
7326      # Look at the argument we got.  We use all the common list separators.
7327      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7328      for pkg in $enableval; do
7329	IFS="$lt_save_ifs"
7330	if test "X$pkg" = "X$p"; then
7331	  enable_fast_install=yes
7332	fi
7333      done
7334      IFS="$lt_save_ifs"
7335      ;;
7336    esac
7337else
7338  enable_fast_install=yes
7339fi
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351# This can be used to rebuild libtool when needed
7352LIBTOOL_DEPS="$ltmain"
7353
7354# Always use our own libtool.
7355LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381test -z "$LN_S" && LN_S="ln -s"
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396if test -n "${ZSH_VERSION+set}" ; then
7397   setopt NO_GLOB_SUBST
7398fi
7399
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7401$as_echo_n "checking for objdir... " >&6; }
7402if test "${lt_cv_objdir+set}" = set; then :
7403  $as_echo_n "(cached) " >&6
7404else
7405  rm -f .libs 2>/dev/null
7406mkdir .libs 2>/dev/null
7407if test -d .libs; then
7408  lt_cv_objdir=.libs
7409else
7410  # MS-DOS does not allow filenames that begin with a dot.
7411  lt_cv_objdir=_libs
7412fi
7413rmdir .libs 2>/dev/null
7414fi
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7416$as_echo "$lt_cv_objdir" >&6; }
7417objdir=$lt_cv_objdir
7418
7419
7420
7421
7422
7423cat >>confdefs.h <<_ACEOF
7424#define LT_OBJDIR "$lt_cv_objdir/"
7425_ACEOF
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443case $host_os in
7444aix3*)
7445  # AIX sometimes has problems with the GCC collect2 program.  For some
7446  # reason, if we set the COLLECT_NAMES environment variable, the problems
7447  # vanish in a puff of smoke.
7448  if test "X${COLLECT_NAMES+set}" != Xset; then
7449    COLLECT_NAMES=
7450    export COLLECT_NAMES
7451  fi
7452  ;;
7453esac
7454
7455# Sed substitution that helps us do robust quoting.  It backslashifies
7456# metacharacters that are still active within double-quoted strings.
7457sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7458
7459# Same as above, but do not quote variable references.
7460double_quote_subst='s/\(["`\\]\)/\\\1/g'
7461
7462# Sed substitution to delay expansion of an escaped shell variable in a
7463# double_quote_subst'ed string.
7464delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7465
7466# Sed substitution to delay expansion of an escaped single quote.
7467delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7468
7469# Sed substitution to avoid accidental globbing in evaled expressions
7470no_glob_subst='s/\*/\\\*/g'
7471
7472# Global variables:
7473ofile=libtool
7474can_build_shared=yes
7475
7476# All known linkers require a `.a' archive for static linking (except MSVC,
7477# which needs '.lib').
7478libext=a
7479
7480with_gnu_ld="$lt_cv_prog_gnu_ld"
7481
7482old_CC="$CC"
7483old_CFLAGS="$CFLAGS"
7484
7485# Set sane defaults for various variables
7486test -z "$CC" && CC=cc
7487test -z "$LTCC" && LTCC=$CC
7488test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7489test -z "$LD" && LD=ld
7490test -z "$ac_objext" && ac_objext=o
7491
7492for cc_temp in $compiler""; do
7493  case $cc_temp in
7494    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7495    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7496    \-*) ;;
7497    *) break;;
7498  esac
7499done
7500cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7501
7502
7503# Only perform the check for file, if the check method requires it
7504test -z "$MAGIC_CMD" && MAGIC_CMD=file
7505case $deplibs_check_method in
7506file_magic*)
7507  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7508    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7509$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7510if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7511  $as_echo_n "(cached) " >&6
7512else
7513  case $MAGIC_CMD in
7514[\\/*] |  ?:[\\/]*)
7515  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7516  ;;
7517*)
7518  lt_save_MAGIC_CMD="$MAGIC_CMD"
7519  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7520  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7521  for ac_dir in $ac_dummy; do
7522    IFS="$lt_save_ifs"
7523    test -z "$ac_dir" && ac_dir=.
7524    if test -f $ac_dir/${ac_tool_prefix}file; then
7525      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7526      if test -n "$file_magic_test_file"; then
7527	case $deplibs_check_method in
7528	"file_magic "*)
7529	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7530	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7531	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7532	    $EGREP "$file_magic_regex" > /dev/null; then
7533	    :
7534	  else
7535	    cat <<_LT_EOF 1>&2
7536
7537*** Warning: the command libtool uses to detect shared libraries,
7538*** $file_magic_cmd, produces output that libtool cannot recognize.
7539*** The result is that libtool may fail to recognize shared libraries
7540*** as such.  This will affect the creation of libtool libraries that
7541*** depend on shared libraries, but programs linked with such libtool
7542*** libraries will work regardless of this problem.  Nevertheless, you
7543*** may want to report the problem to your system manager and/or to
7544*** bug-libtool@gnu.org
7545
7546_LT_EOF
7547	  fi ;;
7548	esac
7549      fi
7550      break
7551    fi
7552  done
7553  IFS="$lt_save_ifs"
7554  MAGIC_CMD="$lt_save_MAGIC_CMD"
7555  ;;
7556esac
7557fi
7558
7559MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7560if test -n "$MAGIC_CMD"; then
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7562$as_echo "$MAGIC_CMD" >&6; }
7563else
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565$as_echo "no" >&6; }
7566fi
7567
7568
7569
7570
7571
7572if test -z "$lt_cv_path_MAGIC_CMD"; then
7573  if test -n "$ac_tool_prefix"; then
7574    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7575$as_echo_n "checking for file... " >&6; }
7576if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  case $MAGIC_CMD in
7580[\\/*] |  ?:[\\/]*)
7581  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7582  ;;
7583*)
7584  lt_save_MAGIC_CMD="$MAGIC_CMD"
7585  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7586  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7587  for ac_dir in $ac_dummy; do
7588    IFS="$lt_save_ifs"
7589    test -z "$ac_dir" && ac_dir=.
7590    if test -f $ac_dir/file; then
7591      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7592      if test -n "$file_magic_test_file"; then
7593	case $deplibs_check_method in
7594	"file_magic "*)
7595	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7596	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7597	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7598	    $EGREP "$file_magic_regex" > /dev/null; then
7599	    :
7600	  else
7601	    cat <<_LT_EOF 1>&2
7602
7603*** Warning: the command libtool uses to detect shared libraries,
7604*** $file_magic_cmd, produces output that libtool cannot recognize.
7605*** The result is that libtool may fail to recognize shared libraries
7606*** as such.  This will affect the creation of libtool libraries that
7607*** depend on shared libraries, but programs linked with such libtool
7608*** libraries will work regardless of this problem.  Nevertheless, you
7609*** may want to report the problem to your system manager and/or to
7610*** bug-libtool@gnu.org
7611
7612_LT_EOF
7613	  fi ;;
7614	esac
7615      fi
7616      break
7617    fi
7618  done
7619  IFS="$lt_save_ifs"
7620  MAGIC_CMD="$lt_save_MAGIC_CMD"
7621  ;;
7622esac
7623fi
7624
7625MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7626if test -n "$MAGIC_CMD"; then
7627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7628$as_echo "$MAGIC_CMD" >&6; }
7629else
7630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631$as_echo "no" >&6; }
7632fi
7633
7634
7635  else
7636    MAGIC_CMD=:
7637  fi
7638fi
7639
7640  fi
7641  ;;
7642esac
7643
7644# Use C for the default configuration in the libtool script
7645
7646lt_save_CC="$CC"
7647ac_ext=c
7648ac_cpp='$CPP $CPPFLAGS'
7649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652
7653
7654# Source file extension for C test sources.
7655ac_ext=c
7656
7657# Object file extension for compiled C test sources.
7658objext=o
7659objext=$objext
7660
7661# Code to be used in simple compile tests
7662lt_simple_compile_test_code="int some_variable = 0;"
7663
7664# Code to be used in simple link tests
7665lt_simple_link_test_code='int main(){return(0);}'
7666
7667
7668
7669
7670
7671
7672
7673# If no C compiler was specified, use CC.
7674LTCC=${LTCC-"$CC"}
7675
7676# If no C compiler flags were specified, use CFLAGS.
7677LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7678
7679# Allow CC to be a program name with arguments.
7680compiler=$CC
7681
7682# Save the default compiler, since it gets overwritten when the other
7683# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7684compiler_DEFAULT=$CC
7685
7686# save warnings/boilerplate of simple test code
7687ac_outfile=conftest.$ac_objext
7688echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7689eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7690_lt_compiler_boilerplate=`cat conftest.err`
7691$RM conftest*
7692
7693ac_outfile=conftest.$ac_objext
7694echo "$lt_simple_link_test_code" >conftest.$ac_ext
7695eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7696_lt_linker_boilerplate=`cat conftest.err`
7697$RM -r conftest*
7698
7699
7700## CAVEAT EMPTOR:
7701## There is no encapsulation within the following macros, do not change
7702## the running order or otherwise move them around unless you know exactly
7703## what you are doing...
7704if test -n "$compiler"; then
7705
7706lt_prog_compiler_no_builtin_flag=
7707
7708if test "$GCC" = yes; then
7709  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7710
7711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7712$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7713if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  lt_cv_prog_compiler_rtti_exceptions=no
7717   ac_outfile=conftest.$ac_objext
7718   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7719   lt_compiler_flag="-fno-rtti -fno-exceptions"
7720   # Insert the option either (1) after the last *FLAGS variable, or
7721   # (2) before a word containing "conftest.", or (3) at the end.
7722   # Note that $ac_compile itself does not contain backslashes and begins
7723   # with a dollar sign (not a hyphen), so the echo should work correctly.
7724   # The option is referenced via a variable to avoid confusing sed.
7725   lt_compile=`echo "$ac_compile" | $SED \
7726   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7727   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7728   -e 's:$: $lt_compiler_flag:'`
7729   (eval echo "\"\$as_me:7729: $lt_compile\"" >&5)
7730   (eval "$lt_compile" 2>conftest.err)
7731   ac_status=$?
7732   cat conftest.err >&5
7733   echo "$as_me:7733: \$? = $ac_status" >&5
7734   if (exit $ac_status) && test -s "$ac_outfile"; then
7735     # The compiler can only warn and ignore the option if not recognized
7736     # So say no if there are warnings other than the usual output.
7737     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7738     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7739     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7740       lt_cv_prog_compiler_rtti_exceptions=yes
7741     fi
7742   fi
7743   $RM conftest*
7744
7745fi
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7747$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7748
7749if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7750    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7751else
7752    :
7753fi
7754
7755fi
7756
7757
7758
7759
7760
7761
7762  lt_prog_compiler_wl=
7763lt_prog_compiler_pic=
7764lt_prog_compiler_static=
7765
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7767$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7768
7769  if test "$GCC" = yes; then
7770    lt_prog_compiler_wl='-Wl,'
7771    lt_prog_compiler_static='-static'
7772
7773    case $host_os in
7774      aix*)
7775      # All AIX code is PIC.
7776      if test "$host_cpu" = ia64; then
7777	# AIX 5 now supports IA64 processor
7778	lt_prog_compiler_static='-Bstatic'
7779      fi
7780      ;;
7781
7782    amigaos*)
7783      case $host_cpu in
7784      powerpc)
7785            # see comment about AmigaOS4 .so support
7786            lt_prog_compiler_pic='-fPIC'
7787        ;;
7788      m68k)
7789            # FIXME: we need at least 68020 code to build shared libraries, but
7790            # adding the `-m68020' flag to GCC prevents building anything better,
7791            # like `-m68040'.
7792            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7793        ;;
7794      esac
7795      ;;
7796
7797    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7798      # PIC is the default for these OSes.
7799      ;;
7800
7801    mingw* | cygwin* | pw32* | os2*)
7802      # This hack is so that the source file can tell whether it is being
7803      # built for inclusion in a dll (and should export symbols for example).
7804      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7805      # (--disable-auto-import) libraries
7806      lt_prog_compiler_pic='-DDLL_EXPORT'
7807      ;;
7808
7809    darwin* | rhapsody*)
7810      # PIC is the default on this platform
7811      # Common symbols not allowed in MH_DYLIB files
7812      lt_prog_compiler_pic='-fno-common'
7813      ;;
7814
7815    hpux*)
7816      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7817      # not for PA HP-UX.
7818      case $host_cpu in
7819      hppa*64*|ia64*)
7820	# +Z the default
7821	;;
7822      *)
7823	lt_prog_compiler_pic='-fPIC'
7824	;;
7825      esac
7826      ;;
7827
7828    interix[3-9]*)
7829      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7830      # Instead, we relocate shared libraries at runtime.
7831      ;;
7832
7833    msdosdjgpp*)
7834      # Just because we use GCC doesn't mean we suddenly get shared libraries
7835      # on systems that don't support them.
7836      lt_prog_compiler_can_build_shared=no
7837      enable_shared=no
7838      ;;
7839
7840    *nto* | *qnx*)
7841      # QNX uses GNU C++, but need to define -shared option too, otherwise
7842      # it will coredump.
7843      lt_prog_compiler_pic='-fPIC -shared'
7844      ;;
7845
7846    sysv4*MP*)
7847      if test -d /usr/nec; then
7848	lt_prog_compiler_pic=-Kconform_pic
7849      fi
7850      ;;
7851
7852    *)
7853      lt_prog_compiler_pic='-fPIC'
7854      ;;
7855    esac
7856  else
7857    # PORTME Check for flag to pass linker flags through the system compiler.
7858    case $host_os in
7859    aix*)
7860      lt_prog_compiler_wl='-Wl,'
7861      if test "$host_cpu" = ia64; then
7862	# AIX 5 now supports IA64 processor
7863	lt_prog_compiler_static='-Bstatic'
7864      else
7865	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7866      fi
7867      ;;
7868
7869    mingw* | cygwin* | pw32* | os2*)
7870      # This hack is so that the source file can tell whether it is being
7871      # built for inclusion in a dll (and should export symbols for example).
7872      lt_prog_compiler_pic='-DDLL_EXPORT'
7873      ;;
7874
7875    hpux9* | hpux10* | hpux11*)
7876      lt_prog_compiler_wl='-Wl,'
7877      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7878      # not for PA HP-UX.
7879      case $host_cpu in
7880      hppa*64*|ia64*)
7881	# +Z the default
7882	;;
7883      *)
7884	lt_prog_compiler_pic='+Z'
7885	;;
7886      esac
7887      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7888      lt_prog_compiler_static='${wl}-a ${wl}archive'
7889      ;;
7890
7891    irix5* | irix6* | nonstopux*)
7892      lt_prog_compiler_wl='-Wl,'
7893      # PIC (with -KPIC) is the default.
7894      lt_prog_compiler_static='-non_shared'
7895      ;;
7896
7897    linux* | k*bsd*-gnu)
7898      case $cc_basename in
7899      icc* | ecc* | ifort*)
7900	lt_prog_compiler_wl='-Wl,'
7901	lt_prog_compiler_pic='-KPIC'
7902	lt_prog_compiler_static='-static'
7903        ;;
7904      pgcc* | pgf77* | pgf90* | pgf95*)
7905        # Portland Group compilers (*not* the Pentium gcc compiler,
7906	# which looks to be a dead project)
7907	lt_prog_compiler_wl='-Wl,'
7908	lt_prog_compiler_pic='-fpic'
7909	lt_prog_compiler_static='-Bstatic'
7910        ;;
7911      ccc*)
7912        lt_prog_compiler_wl='-Wl,'
7913        # All Alpha code is PIC.
7914        lt_prog_compiler_static='-non_shared'
7915        ;;
7916      xl*)
7917	# IBM XL C 8.0/Fortran 10.1 on PPC
7918	lt_prog_compiler_wl='-Wl,'
7919	lt_prog_compiler_pic='-qpic'
7920	lt_prog_compiler_static='-qstaticlink'
7921	;;
7922      *)
7923	case `$CC -V 2>&1 | sed 5q` in
7924	*Sun\ C*)
7925	  # Sun C 5.9
7926	  lt_prog_compiler_pic='-KPIC'
7927	  lt_prog_compiler_static='-Bstatic'
7928	  lt_prog_compiler_wl='-Wl,'
7929	  ;;
7930	*Sun\ F*)
7931	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7932	  lt_prog_compiler_pic='-KPIC'
7933	  lt_prog_compiler_static='-Bstatic'
7934	  lt_prog_compiler_wl=''
7935	  ;;
7936	esac
7937	;;
7938      esac
7939      ;;
7940
7941    newsos6)
7942      lt_prog_compiler_pic='-KPIC'
7943      lt_prog_compiler_static='-Bstatic'
7944      ;;
7945
7946    *nto* | *qnx*)
7947      # QNX uses GNU C++, but need to define -shared option too, otherwise
7948      # it will coredump.
7949      lt_prog_compiler_pic='-fPIC -shared'
7950      ;;
7951
7952    osf3* | osf4* | osf5*)
7953      lt_prog_compiler_wl='-Wl,'
7954      # All OSF/1 code is PIC.
7955      lt_prog_compiler_static='-non_shared'
7956      ;;
7957
7958    rdos*)
7959      lt_prog_compiler_static='-non_shared'
7960      ;;
7961
7962    solaris*)
7963      lt_prog_compiler_pic='-KPIC'
7964      lt_prog_compiler_static='-Bstatic'
7965      case $cc_basename in
7966      f77* | f90* | f95*)
7967	lt_prog_compiler_wl='-Qoption ld ';;
7968      *)
7969	lt_prog_compiler_wl='-Wl,';;
7970      esac
7971      ;;
7972
7973    sunos4*)
7974      lt_prog_compiler_wl='-Qoption ld '
7975      lt_prog_compiler_pic='-PIC'
7976      lt_prog_compiler_static='-Bstatic'
7977      ;;
7978
7979    sysv4 | sysv4.2uw2* | sysv4.3*)
7980      lt_prog_compiler_wl='-Wl,'
7981      lt_prog_compiler_pic='-KPIC'
7982      lt_prog_compiler_static='-Bstatic'
7983      ;;
7984
7985    sysv4*MP*)
7986      if test -d /usr/nec ;then
7987	lt_prog_compiler_pic='-Kconform_pic'
7988	lt_prog_compiler_static='-Bstatic'
7989      fi
7990      ;;
7991
7992    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7993      lt_prog_compiler_wl='-Wl,'
7994      lt_prog_compiler_pic='-KPIC'
7995      lt_prog_compiler_static='-Bstatic'
7996      ;;
7997
7998    unicos*)
7999      lt_prog_compiler_wl='-Wl,'
8000      lt_prog_compiler_can_build_shared=no
8001      ;;
8002
8003    uts4*)
8004      lt_prog_compiler_pic='-pic'
8005      lt_prog_compiler_static='-Bstatic'
8006      ;;
8007
8008    *)
8009      lt_prog_compiler_can_build_shared=no
8010      ;;
8011    esac
8012  fi
8013
8014case $host_os in
8015  # For platforms which do not support PIC, -DPIC is meaningless:
8016  *djgpp*)
8017    lt_prog_compiler_pic=
8018    ;;
8019  *)
8020    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8021    ;;
8022esac
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8024$as_echo "$lt_prog_compiler_pic" >&6; }
8025
8026
8027
8028
8029
8030
8031#
8032# Check to make sure the PIC flag actually works.
8033#
8034if test -n "$lt_prog_compiler_pic"; then
8035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8036$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8037if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8038  $as_echo_n "(cached) " >&6
8039else
8040  lt_cv_prog_compiler_pic_works=no
8041   ac_outfile=conftest.$ac_objext
8042   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8043   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8044   # Insert the option either (1) after the last *FLAGS variable, or
8045   # (2) before a word containing "conftest.", or (3) at the end.
8046   # Note that $ac_compile itself does not contain backslashes and begins
8047   # with a dollar sign (not a hyphen), so the echo should work correctly.
8048   # The option is referenced via a variable to avoid confusing sed.
8049   lt_compile=`echo "$ac_compile" | $SED \
8050   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8051   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052   -e 's:$: $lt_compiler_flag:'`
8053   (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
8054   (eval "$lt_compile" 2>conftest.err)
8055   ac_status=$?
8056   cat conftest.err >&5
8057   echo "$as_me:8057: \$? = $ac_status" >&5
8058   if (exit $ac_status) && test -s "$ac_outfile"; then
8059     # The compiler can only warn and ignore the option if not recognized
8060     # So say no if there are warnings other than the usual output.
8061     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8062     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8063     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8064       lt_cv_prog_compiler_pic_works=yes
8065     fi
8066   fi
8067   $RM conftest*
8068
8069fi
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8071$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8072
8073if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8074    case $lt_prog_compiler_pic in
8075     "" | " "*) ;;
8076     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8077     esac
8078else
8079    lt_prog_compiler_pic=
8080     lt_prog_compiler_can_build_shared=no
8081fi
8082
8083fi
8084
8085
8086
8087
8088
8089
8090#
8091# Check to make sure the static flag actually works.
8092#
8093wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8095$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8096if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8097  $as_echo_n "(cached) " >&6
8098else
8099  lt_cv_prog_compiler_static_works=no
8100   save_LDFLAGS="$LDFLAGS"
8101   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8102   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8103   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8104     # The linker can only warn and ignore the option if not recognized
8105     # So say no if there are warnings
8106     if test -s conftest.err; then
8107       # Append any errors to the config.log.
8108       cat conftest.err 1>&5
8109       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8110       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8111       if diff conftest.exp conftest.er2 >/dev/null; then
8112         lt_cv_prog_compiler_static_works=yes
8113       fi
8114     else
8115       lt_cv_prog_compiler_static_works=yes
8116     fi
8117   fi
8118   $RM -r conftest*
8119   LDFLAGS="$save_LDFLAGS"
8120
8121fi
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8123$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8124
8125if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8126    :
8127else
8128    lt_prog_compiler_static=
8129fi
8130
8131
8132
8133
8134
8135
8136
8137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8138$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8139if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8140  $as_echo_n "(cached) " >&6
8141else
8142  lt_cv_prog_compiler_c_o=no
8143   $RM -r conftest 2>/dev/null
8144   mkdir conftest
8145   cd conftest
8146   mkdir out
8147   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8148
8149   lt_compiler_flag="-o out/conftest2.$ac_objext"
8150   # Insert the option either (1) after the last *FLAGS variable, or
8151   # (2) before a word containing "conftest.", or (3) at the end.
8152   # Note that $ac_compile itself does not contain backslashes and begins
8153   # with a dollar sign (not a hyphen), so the echo should work correctly.
8154   lt_compile=`echo "$ac_compile" | $SED \
8155   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8156   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8157   -e 's:$: $lt_compiler_flag:'`
8158   (eval echo "\"\$as_me:8158: $lt_compile\"" >&5)
8159   (eval "$lt_compile" 2>out/conftest.err)
8160   ac_status=$?
8161   cat out/conftest.err >&5
8162   echo "$as_me:8162: \$? = $ac_status" >&5
8163   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8164   then
8165     # The compiler can only warn and ignore the option if not recognized
8166     # So say no if there are warnings
8167     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8168     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8169     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8170       lt_cv_prog_compiler_c_o=yes
8171     fi
8172   fi
8173   chmod u+w . 2>&5
8174   $RM conftest*
8175   # SGI C++ compiler will create directory out/ii_files/ for
8176   # template instantiation
8177   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8178   $RM out/* && rmdir out
8179   cd ..
8180   $RM -r conftest
8181   $RM conftest*
8182
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8185$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8186
8187
8188
8189
8190
8191
8192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8193$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8194if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8195  $as_echo_n "(cached) " >&6
8196else
8197  lt_cv_prog_compiler_c_o=no
8198   $RM -r conftest 2>/dev/null
8199   mkdir conftest
8200   cd conftest
8201   mkdir out
8202   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8203
8204   lt_compiler_flag="-o out/conftest2.$ac_objext"
8205   # Insert the option either (1) after the last *FLAGS variable, or
8206   # (2) before a word containing "conftest.", or (3) at the end.
8207   # Note that $ac_compile itself does not contain backslashes and begins
8208   # with a dollar sign (not a hyphen), so the echo should work correctly.
8209   lt_compile=`echo "$ac_compile" | $SED \
8210   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8211   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8212   -e 's:$: $lt_compiler_flag:'`
8213   (eval echo "\"\$as_me:8213: $lt_compile\"" >&5)
8214   (eval "$lt_compile" 2>out/conftest.err)
8215   ac_status=$?
8216   cat out/conftest.err >&5
8217   echo "$as_me:8217: \$? = $ac_status" >&5
8218   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8219   then
8220     # The compiler can only warn and ignore the option if not recognized
8221     # So say no if there are warnings
8222     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8223     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8224     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8225       lt_cv_prog_compiler_c_o=yes
8226     fi
8227   fi
8228   chmod u+w . 2>&5
8229   $RM conftest*
8230   # SGI C++ compiler will create directory out/ii_files/ for
8231   # template instantiation
8232   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8233   $RM out/* && rmdir out
8234   cd ..
8235   $RM -r conftest
8236   $RM conftest*
8237
8238fi
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8240$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8241
8242
8243
8244
8245hard_links="nottested"
8246if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8247  # do not overwrite the value of need_locks provided by the user
8248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8249$as_echo_n "checking if we can lock with hard links... " >&6; }
8250  hard_links=yes
8251  $RM conftest*
8252  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8253  touch conftest.a
8254  ln conftest.a conftest.b 2>&5 || hard_links=no
8255  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8257$as_echo "$hard_links" >&6; }
8258  if test "$hard_links" = no; then
8259    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8260$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8261    need_locks=warn
8262  fi
8263else
8264  need_locks=no
8265fi
8266
8267
8268
8269
8270
8271
8272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8273$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8274
8275  runpath_var=
8276  allow_undefined_flag=
8277  always_export_symbols=no
8278  archive_cmds=
8279  archive_expsym_cmds=
8280  compiler_needs_object=no
8281  enable_shared_with_static_runtimes=no
8282  export_dynamic_flag_spec=
8283  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8284  hardcode_automatic=no
8285  hardcode_direct=no
8286  hardcode_direct_absolute=no
8287  hardcode_libdir_flag_spec=
8288  hardcode_libdir_flag_spec_ld=
8289  hardcode_libdir_separator=
8290  hardcode_minus_L=no
8291  hardcode_shlibpath_var=unsupported
8292  inherit_rpath=no
8293  link_all_deplibs=unknown
8294  module_cmds=
8295  module_expsym_cmds=
8296  old_archive_from_new_cmds=
8297  old_archive_from_expsyms_cmds=
8298  thread_safe_flag_spec=
8299  whole_archive_flag_spec=
8300  # include_expsyms should be a list of space-separated symbols to be *always*
8301  # included in the symbol list
8302  include_expsyms=
8303  # exclude_expsyms can be an extended regexp of symbols to exclude
8304  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8305  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8306  # as well as any symbol that contains `d'.
8307  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8308  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8309  # platforms (ab)use it in PIC code, but their linkers get confused if
8310  # the symbol is explicitly referenced.  Since portable code cannot
8311  # rely on this symbol name, it's probably fine to never include it in
8312  # preloaded symbol tables.
8313  # Exclude shared library initialization/finalization symbols.
8314  extract_expsyms_cmds=
8315
8316  case $host_os in
8317  cygwin* | mingw* | pw32*)
8318    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8319    # When not using gcc, we currently assume that we are using
8320    # Microsoft Visual C++.
8321    if test "$GCC" != yes; then
8322      with_gnu_ld=no
8323    fi
8324    ;;
8325  interix*)
8326    # we just hope/assume this is gcc and not c89 (= MSVC++)
8327    with_gnu_ld=yes
8328    ;;
8329  openbsd*)
8330    with_gnu_ld=no
8331    ;;
8332  esac
8333
8334  ld_shlibs=yes
8335  if test "$with_gnu_ld" = yes; then
8336    # If archive_cmds runs LD, not CC, wlarc should be empty
8337    wlarc='${wl}'
8338
8339    # Set some defaults for GNU ld with shared library support. These
8340    # are reset later if shared libraries are not supported. Putting them
8341    # here allows them to be overridden if necessary.
8342    runpath_var=LD_RUN_PATH
8343    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8344    export_dynamic_flag_spec='${wl}--export-dynamic'
8345    # ancient GNU ld didn't support --whole-archive et. al.
8346    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8347      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8348    else
8349      whole_archive_flag_spec=
8350    fi
8351    supports_anon_versioning=no
8352    case `$LD -v 2>&1` in
8353      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8354      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8355      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8356      *\ 2.11.*) ;; # other 2.11 versions
8357      *) supports_anon_versioning=yes ;;
8358    esac
8359
8360    # See if GNU ld supports shared libraries.
8361    case $host_os in
8362    aix[3-9]*)
8363      # On AIX/PPC, the GNU linker is very broken
8364      if test "$host_cpu" != ia64; then
8365	ld_shlibs=no
8366	cat <<_LT_EOF 1>&2
8367
8368*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8369*** to be unable to reliably create shared libraries on AIX.
8370*** Therefore, libtool is disabling shared libraries support.  If you
8371*** really care for shared libraries, you may want to modify your PATH
8372*** so that a non-GNU linker is found, and then restart.
8373
8374_LT_EOF
8375      fi
8376      ;;
8377
8378    amigaos*)
8379      case $host_cpu in
8380      powerpc)
8381            # see comment about AmigaOS4 .so support
8382            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8383            archive_expsym_cmds=''
8384        ;;
8385      m68k)
8386            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)'
8387            hardcode_libdir_flag_spec='-L$libdir'
8388            hardcode_minus_L=yes
8389        ;;
8390      esac
8391      ;;
8392
8393    beos*)
8394      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8395	allow_undefined_flag=unsupported
8396	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8397	# support --undefined.  This deserves some investigation.  FIXME
8398	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8399      else
8400	ld_shlibs=no
8401      fi
8402      ;;
8403
8404    cygwin* | mingw* | pw32*)
8405      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8406      # as there is no search path for DLLs.
8407      hardcode_libdir_flag_spec='-L$libdir'
8408      allow_undefined_flag=unsupported
8409      always_export_symbols=no
8410      enable_shared_with_static_runtimes=yes
8411      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8412
8413      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8414        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8415	# If the export-symbols file already is a .def file (1st line
8416	# is EXPORTS), use it as is; otherwise, prepend...
8417	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8418	  cp $export_symbols $output_objdir/$soname.def;
8419	else
8420	  echo EXPORTS > $output_objdir/$soname.def;
8421	  cat $export_symbols >> $output_objdir/$soname.def;
8422	fi~
8423	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8424      else
8425	ld_shlibs=no
8426      fi
8427      ;;
8428
8429    interix[3-9]*)
8430      hardcode_direct=no
8431      hardcode_shlibpath_var=no
8432      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8433      export_dynamic_flag_spec='${wl}-E'
8434      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8435      # Instead, shared libraries are loaded at an image base (0x10000000 by
8436      # default) and relocated if they conflict, which is a slow very memory
8437      # consuming and fragmenting process.  To avoid this, we pick a random,
8438      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8439      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8440      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8441      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'
8442      ;;
8443
8444    gnu* | linux* | tpf* | k*bsd*-gnu)
8445      tmp_diet=no
8446      if test "$host_os" = linux-dietlibc; then
8447	case $cc_basename in
8448	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8449	esac
8450      fi
8451      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8452	 && test "$tmp_diet" = no
8453      then
8454	tmp_addflag=
8455	tmp_sharedflag='-shared'
8456	case $cc_basename,$host_cpu in
8457        pgcc*)				# Portland Group C compiler
8458	  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'
8459	  tmp_addflag=' $pic_flag'
8460	  ;;
8461	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8462	  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'
8463	  tmp_addflag=' $pic_flag -Mnomain' ;;
8464	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8465	  tmp_addflag=' -i_dynamic' ;;
8466	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8467	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8468	ifc* | ifort*)			# Intel Fortran compiler
8469	  tmp_addflag=' -nofor_main' ;;
8470	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8471	  tmp_sharedflag='-qmkshrobj'
8472	  tmp_addflag= ;;
8473	esac
8474	case `$CC -V 2>&1 | sed 5q` in
8475	*Sun\ C*)			# Sun C 5.9
8476	  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'
8477	  compiler_needs_object=yes
8478	  tmp_sharedflag='-G' ;;
8479	*Sun\ F*)			# Sun Fortran 8.3
8480	  tmp_sharedflag='-G' ;;
8481	esac
8482	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483
8484        if test "x$supports_anon_versioning" = xyes; then
8485          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8486	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8487	    echo "local: *; };" >> $output_objdir/$libname.ver~
8488	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8489        fi
8490
8491	case $cc_basename in
8492	xlf*)
8493	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8494	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8495	  hardcode_libdir_flag_spec=
8496	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8497	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8498	  if test "x$supports_anon_versioning" = xyes; then
8499	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8500	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8501	      echo "local: *; };" >> $output_objdir/$libname.ver~
8502	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8503	  fi
8504	  ;;
8505	esac
8506      else
8507        ld_shlibs=no
8508      fi
8509      ;;
8510
8511    netbsd*)
8512      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8513	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8514	wlarc=
8515      else
8516	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8518      fi
8519      ;;
8520
8521    solaris*)
8522      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8523	ld_shlibs=no
8524	cat <<_LT_EOF 1>&2
8525
8526*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8527*** create shared libraries on Solaris systems.  Therefore, libtool
8528*** is disabling shared libraries support.  We urge you to upgrade GNU
8529*** binutils to release 2.9.1 or newer.  Another option is to modify
8530*** your PATH or compiler configuration so that the native linker is
8531*** used, and then restart.
8532
8533_LT_EOF
8534      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8535	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8536	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8537      else
8538	ld_shlibs=no
8539      fi
8540      ;;
8541
8542    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8543      case `$LD -v 2>&1` in
8544        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8545	ld_shlibs=no
8546	cat <<_LT_EOF 1>&2
8547
8548*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8549*** reliably create shared libraries on SCO systems.  Therefore, libtool
8550*** is disabling shared libraries support.  We urge you to upgrade GNU
8551*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8552*** your PATH or compiler configuration so that the native linker is
8553*** used, and then restart.
8554
8555_LT_EOF
8556	;;
8557	*)
8558	  # For security reasons, it is highly recommended that you always
8559	  # use absolute paths for naming shared libraries, and exclude the
8560	  # DT_RUNPATH tag from executables and libraries.  But doing so
8561	  # requires that you compile everything twice, which is a pain.
8562	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8563	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8564	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8565	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8566	  else
8567	    ld_shlibs=no
8568	  fi
8569	;;
8570      esac
8571      ;;
8572
8573    sunos4*)
8574      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8575      wlarc=
8576      hardcode_direct=yes
8577      hardcode_shlibpath_var=no
8578      ;;
8579
8580    *)
8581      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8582	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8584      else
8585	ld_shlibs=no
8586      fi
8587      ;;
8588    esac
8589
8590    if test "$ld_shlibs" = no; then
8591      runpath_var=
8592      hardcode_libdir_flag_spec=
8593      export_dynamic_flag_spec=
8594      whole_archive_flag_spec=
8595    fi
8596  else
8597    # PORTME fill in a description of your system's linker (not GNU ld)
8598    case $host_os in
8599    aix3*)
8600      allow_undefined_flag=unsupported
8601      always_export_symbols=yes
8602      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'
8603      # Note: this linker hardcodes the directories in LIBPATH if there
8604      # are no directories specified by -L.
8605      hardcode_minus_L=yes
8606      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8607	# Neither direct hardcoding nor static linking is supported with a
8608	# broken collect2.
8609	hardcode_direct=unsupported
8610      fi
8611      ;;
8612
8613    aix[4-9]*)
8614      if test "$host_cpu" = ia64; then
8615	# On IA64, the linker does run time linking by default, so we don't
8616	# have to do anything special.
8617	aix_use_runtimelinking=no
8618	exp_sym_flag='-Bexport'
8619	no_entry_flag=""
8620      else
8621	# If we're using GNU nm, then we don't want the "-C" option.
8622	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8623	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8624	  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'
8625	else
8626	  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'
8627	fi
8628	aix_use_runtimelinking=no
8629
8630	# Test if we are trying to use run time linking or normal
8631	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8632	# need to do runtime linking.
8633	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8634	  for ld_flag in $LDFLAGS; do
8635	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8636	    aix_use_runtimelinking=yes
8637	    break
8638	  fi
8639	  done
8640	  ;;
8641	esac
8642
8643	exp_sym_flag='-bexport'
8644	no_entry_flag='-bnoentry'
8645      fi
8646
8647      # When large executables or shared objects are built, AIX ld can
8648      # have problems creating the table of contents.  If linking a library
8649      # or program results in "error TOC overflow" add -mminimal-toc to
8650      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8651      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8652
8653      archive_cmds=''
8654      hardcode_direct=yes
8655      hardcode_direct_absolute=yes
8656      hardcode_libdir_separator=':'
8657      link_all_deplibs=yes
8658      file_list_spec='${wl}-f,'
8659
8660      if test "$GCC" = yes; then
8661	case $host_os in aix4.[012]|aix4.[012].*)
8662	# We only want to do this on AIX 4.2 and lower, the check
8663	# below for broken collect2 doesn't work under 4.3+
8664	  collect2name=`${CC} -print-prog-name=collect2`
8665	  if test -f "$collect2name" &&
8666	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8667	  then
8668	  # We have reworked collect2
8669	  :
8670	  else
8671	  # We have old collect2
8672	  hardcode_direct=unsupported
8673	  # It fails to find uninstalled libraries when the uninstalled
8674	  # path is not listed in the libpath.  Setting hardcode_minus_L
8675	  # to unsupported forces relinking
8676	  hardcode_minus_L=yes
8677	  hardcode_libdir_flag_spec='-L$libdir'
8678	  hardcode_libdir_separator=
8679	  fi
8680	  ;;
8681	esac
8682	shared_flag='-shared'
8683	if test "$aix_use_runtimelinking" = yes; then
8684	  shared_flag="$shared_flag "'${wl}-G'
8685	fi
8686      else
8687	# not using gcc
8688	if test "$host_cpu" = ia64; then
8689	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8690	# chokes on -Wl,-G. The following line is correct:
8691	  shared_flag='-G'
8692	else
8693	  if test "$aix_use_runtimelinking" = yes; then
8694	    shared_flag='${wl}-G'
8695	  else
8696	    shared_flag='${wl}-bM:SRE'
8697	  fi
8698	fi
8699      fi
8700
8701      # It seems that -bexpall does not export symbols beginning with
8702      # underscore (_), so it is better to generate a list of symbols to export.
8703      always_export_symbols=yes
8704      if test "$aix_use_runtimelinking" = yes; then
8705	# Warning - without using the other runtime loading flags (-brtl),
8706	# -berok will link without error, but may produce a broken library.
8707	allow_undefined_flag='-berok'
8708        # Determine the default libpath from the value encoded in an
8709        # empty executable.
8710        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711/* end confdefs.h.  */
8712
8713int
8714main ()
8715{
8716
8717  ;
8718  return 0;
8719}
8720_ACEOF
8721if ac_fn_c_try_link "$LINENO"; then :
8722
8723lt_aix_libpath_sed='
8724    /Import File Strings/,/^$/ {
8725	/^0/ {
8726	    s/^0  *\(.*\)$/\1/
8727	    p
8728	}
8729    }'
8730aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8731# Check for a 64-bit object if we didn't find anything.
8732if test -z "$aix_libpath"; then
8733  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8734fi
8735fi
8736rm -f core conftest.err conftest.$ac_objext \
8737    conftest$ac_exeext conftest.$ac_ext
8738if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8739
8740        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8741        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"
8742      else
8743	if test "$host_cpu" = ia64; then
8744	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8745	  allow_undefined_flag="-z nodefs"
8746	  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"
8747	else
8748	 # Determine the default libpath from the value encoded in an
8749	 # empty executable.
8750	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751/* end confdefs.h.  */
8752
8753int
8754main ()
8755{
8756
8757  ;
8758  return 0;
8759}
8760_ACEOF
8761if ac_fn_c_try_link "$LINENO"; then :
8762
8763lt_aix_libpath_sed='
8764    /Import File Strings/,/^$/ {
8765	/^0/ {
8766	    s/^0  *\(.*\)$/\1/
8767	    p
8768	}
8769    }'
8770aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8771# Check for a 64-bit object if we didn't find anything.
8772if test -z "$aix_libpath"; then
8773  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8774fi
8775fi
8776rm -f core conftest.err conftest.$ac_objext \
8777    conftest$ac_exeext conftest.$ac_ext
8778if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8779
8780	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8781	  # Warning - without using the other run time loading flags,
8782	  # -berok will link without error, but may produce a broken library.
8783	  no_undefined_flag=' ${wl}-bernotok'
8784	  allow_undefined_flag=' ${wl}-berok'
8785	  # Exported symbols can be pulled into shared objects from archives
8786	  whole_archive_flag_spec='$convenience'
8787	  archive_cmds_need_lc=yes
8788	  # This is similar to how AIX traditionally builds its shared libraries.
8789	  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'
8790	fi
8791      fi
8792      ;;
8793
8794    amigaos*)
8795      case $host_cpu in
8796      powerpc)
8797            # see comment about AmigaOS4 .so support
8798            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799            archive_expsym_cmds=''
8800        ;;
8801      m68k)
8802            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)'
8803            hardcode_libdir_flag_spec='-L$libdir'
8804            hardcode_minus_L=yes
8805        ;;
8806      esac
8807      ;;
8808
8809    bsdi[45]*)
8810      export_dynamic_flag_spec=-rdynamic
8811      ;;
8812
8813    cygwin* | mingw* | pw32*)
8814      # When not using gcc, we currently assume that we are using
8815      # Microsoft Visual C++.
8816      # hardcode_libdir_flag_spec is actually meaningless, as there is
8817      # no search path for DLLs.
8818      hardcode_libdir_flag_spec=' '
8819      allow_undefined_flag=unsupported
8820      # Tell ltmain to make .lib files, not .a files.
8821      libext=lib
8822      # Tell ltmain to make .dll files, not .so files.
8823      shrext_cmds=".dll"
8824      # FIXME: Setting linknames here is a bad hack.
8825      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8826      # The linker will automatically build a .lib file if we build a DLL.
8827      old_archive_from_new_cmds='true'
8828      # FIXME: Should let the user specify the lib program.
8829      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8830      fix_srcfile_path='`cygpath -w "$srcfile"`'
8831      enable_shared_with_static_runtimes=yes
8832      ;;
8833
8834    darwin* | rhapsody*)
8835
8836
8837  archive_cmds_need_lc=no
8838  hardcode_direct=no
8839  hardcode_automatic=yes
8840  hardcode_shlibpath_var=unsupported
8841  whole_archive_flag_spec=''
8842  link_all_deplibs=yes
8843  allow_undefined_flag="$_lt_dar_allow_undefined"
8844  if test "$GCC" = "yes"; then
8845    output_verbose_link_cmd=echo
8846    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8847    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8848    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}"
8849    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}"
8850
8851  else
8852  ld_shlibs=no
8853  fi
8854
8855      ;;
8856
8857    dgux*)
8858      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859      hardcode_libdir_flag_spec='-L$libdir'
8860      hardcode_shlibpath_var=no
8861      ;;
8862
8863    freebsd1*)
8864      ld_shlibs=no
8865      ;;
8866
8867    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8868    # support.  Future versions do this automatically, but an explicit c++rt0.o
8869    # does not break anything, and helps significantly (at the cost of a little
8870    # extra space).
8871    freebsd2.2*)
8872      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8873      hardcode_libdir_flag_spec='-R$libdir'
8874      hardcode_direct=yes
8875      hardcode_shlibpath_var=no
8876      ;;
8877
8878    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8879    freebsd2*)
8880      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8881      hardcode_direct=yes
8882      hardcode_minus_L=yes
8883      hardcode_shlibpath_var=no
8884      ;;
8885
8886    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8887    freebsd* | dragonfly* | openbsd* | bitrig*)
8888      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8889      hardcode_libdir_flag_spec='-R$libdir'
8890      hardcode_direct=yes
8891      hardcode_shlibpath_var=no
8892      ;;
8893
8894    hpux9*)
8895      if test "$GCC" = yes; then
8896	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'
8897      else
8898	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'
8899      fi
8900      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8901      hardcode_libdir_separator=:
8902      hardcode_direct=yes
8903
8904      # hardcode_minus_L: Not really in the search PATH,
8905      # but as the default location of the library.
8906      hardcode_minus_L=yes
8907      export_dynamic_flag_spec='${wl}-E'
8908      ;;
8909
8910    hpux10*)
8911      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8912	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8913      else
8914	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8915      fi
8916      if test "$with_gnu_ld" = no; then
8917	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8918	hardcode_libdir_flag_spec_ld='+b $libdir'
8919	hardcode_libdir_separator=:
8920	hardcode_direct=yes
8921	hardcode_direct_absolute=yes
8922	export_dynamic_flag_spec='${wl}-E'
8923	# hardcode_minus_L: Not really in the search PATH,
8924	# but as the default location of the library.
8925	hardcode_minus_L=yes
8926      fi
8927      ;;
8928
8929    hpux11*)
8930      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8931	case $host_cpu in
8932	hppa*64*)
8933	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8934	  ;;
8935	ia64*)
8936	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8937	  ;;
8938	*)
8939	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8940	  ;;
8941	esac
8942      else
8943	case $host_cpu in
8944	hppa*64*)
8945	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8946	  ;;
8947	ia64*)
8948	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8949	  ;;
8950	*)
8951	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8952	  ;;
8953	esac
8954      fi
8955      if test "$with_gnu_ld" = no; then
8956	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8957	hardcode_libdir_separator=:
8958
8959	case $host_cpu in
8960	hppa*64*|ia64*)
8961	  hardcode_direct=no
8962	  hardcode_shlibpath_var=no
8963	  ;;
8964	*)
8965	  hardcode_direct=yes
8966	  hardcode_direct_absolute=yes
8967	  export_dynamic_flag_spec='${wl}-E'
8968
8969	  # hardcode_minus_L: Not really in the search PATH,
8970	  # but as the default location of the library.
8971	  hardcode_minus_L=yes
8972	  ;;
8973	esac
8974      fi
8975      ;;
8976
8977    irix5* | irix6* | nonstopux*)
8978      if test "$GCC" = yes; then
8979	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'
8980	# Try to use the -exported_symbol ld option, if it does not
8981	# work, assume that -exports_file does not work either and
8982	# implicitly export all symbols.
8983        save_LDFLAGS="$LDFLAGS"
8984        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8985        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986/* end confdefs.h.  */
8987int foo(void) {}
8988_ACEOF
8989if ac_fn_c_try_link "$LINENO"; then :
8990  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'
8991
8992fi
8993rm -f core conftest.err conftest.$ac_objext \
8994    conftest$ac_exeext conftest.$ac_ext
8995        LDFLAGS="$save_LDFLAGS"
8996      else
8997	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'
8998	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'
8999      fi
9000      archive_cmds_need_lc='no'
9001      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9002      hardcode_libdir_separator=:
9003      inherit_rpath=yes
9004      link_all_deplibs=yes
9005      ;;
9006
9007    netbsd*)
9008      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9009	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9010      else
9011	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9012      fi
9013      hardcode_libdir_flag_spec='-R$libdir'
9014      hardcode_direct=yes
9015      hardcode_shlibpath_var=no
9016      ;;
9017
9018    newsos6)
9019      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9020      hardcode_direct=yes
9021      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022      hardcode_libdir_separator=:
9023      hardcode_shlibpath_var=no
9024      ;;
9025
9026    *nto* | *qnx*)
9027      ;;
9028
9029    openbsd*)
9030      if test -f /usr/libexec/ld.so; then
9031	hardcode_direct=yes
9032	hardcode_shlibpath_var=no
9033	hardcode_direct_absolute=yes
9034	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9035	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9036	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9037	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9038	  export_dynamic_flag_spec='${wl}-E'
9039	else
9040	  case $host_os in
9041	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9042	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9043	     hardcode_libdir_flag_spec='-R$libdir'
9044	     ;;
9045	   *)
9046	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9047	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9048	     ;;
9049	  esac
9050	fi
9051      else
9052	ld_shlibs=no
9053      fi
9054      ;;
9055
9056    os2*)
9057      hardcode_libdir_flag_spec='-L$libdir'
9058      hardcode_minus_L=yes
9059      allow_undefined_flag=unsupported
9060      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'
9061      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9062      ;;
9063
9064    osf3*)
9065      if test "$GCC" = yes; then
9066	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9067	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'
9068      else
9069	allow_undefined_flag=' -expect_unresolved \*'
9070	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'
9071      fi
9072      archive_cmds_need_lc='no'
9073      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9074      hardcode_libdir_separator=:
9075      ;;
9076
9077    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9078      if test "$GCC" = yes; then
9079	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9080	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'
9081	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9082      else
9083	allow_undefined_flag=' -expect_unresolved \*'
9084	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'
9085	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~
9086	$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'
9087
9088	# Both c and cxx compiler support -rpath directly
9089	hardcode_libdir_flag_spec='-rpath $libdir'
9090      fi
9091      archive_cmds_need_lc='no'
9092      hardcode_libdir_separator=:
9093      ;;
9094
9095    solaris*)
9096      no_undefined_flag=' -z defs'
9097      if test "$GCC" = yes; then
9098	wlarc='${wl}'
9099	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9100	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9101	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9102      else
9103	case `$CC -V 2>&1` in
9104	*"Compilers 5.0"*)
9105	  wlarc=''
9106	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9108	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9109	  ;;
9110	*)
9111	  wlarc='${wl}'
9112	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9113	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9114	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9115	  ;;
9116	esac
9117      fi
9118      hardcode_libdir_flag_spec='-R$libdir'
9119      hardcode_shlibpath_var=no
9120      case $host_os in
9121      solaris2.[0-5] | solaris2.[0-5].*) ;;
9122      *)
9123	# The compiler driver will combine and reorder linker options,
9124	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9125	# but is careful enough not to reorder.
9126	# Supported since Solaris 2.6 (maybe 2.5.1?)
9127	if test "$GCC" = yes; then
9128	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9129	else
9130	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9131	fi
9132	;;
9133      esac
9134      link_all_deplibs=yes
9135      ;;
9136
9137    sunos4*)
9138      if test "x$host_vendor" = xsequent; then
9139	# Use $CC to link under sequent, because it throws in some extra .o
9140	# files that make .init and .fini sections work.
9141	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9142      else
9143	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9144      fi
9145      hardcode_libdir_flag_spec='-L$libdir'
9146      hardcode_direct=yes
9147      hardcode_minus_L=yes
9148      hardcode_shlibpath_var=no
9149      ;;
9150
9151    sysv4)
9152      case $host_vendor in
9153	sni)
9154	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9155	  hardcode_direct=yes # is this really true???
9156	;;
9157	siemens)
9158	  ## LD is ld it makes a PLAMLIB
9159	  ## CC just makes a GrossModule.
9160	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9161	  reload_cmds='$CC -r -o $output$reload_objs'
9162	  hardcode_direct=no
9163        ;;
9164	motorola)
9165	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9166	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9167	;;
9168      esac
9169      runpath_var='LD_RUN_PATH'
9170      hardcode_shlibpath_var=no
9171      ;;
9172
9173    sysv4.3*)
9174      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9175      hardcode_shlibpath_var=no
9176      export_dynamic_flag_spec='-Bexport'
9177      ;;
9178
9179    sysv4*MP*)
9180      if test -d /usr/nec; then
9181	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9182	hardcode_shlibpath_var=no
9183	runpath_var=LD_RUN_PATH
9184	hardcode_runpath_var=yes
9185	ld_shlibs=yes
9186      fi
9187      ;;
9188
9189    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9190      no_undefined_flag='${wl}-z,text'
9191      archive_cmds_need_lc=no
9192      hardcode_shlibpath_var=no
9193      runpath_var='LD_RUN_PATH'
9194
9195      if test "$GCC" = yes; then
9196	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9197	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9198      else
9199	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9200	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9201      fi
9202      ;;
9203
9204    sysv5* | sco3.2v5* | sco5v6*)
9205      # Note: We can NOT use -z defs as we might desire, because we do not
9206      # link with -lc, and that would cause any symbols used from libc to
9207      # always be unresolved, which means just about no library would
9208      # ever link correctly.  If we're not using GNU ld we use -z text
9209      # though, which does catch some bad symbols but isn't as heavy-handed
9210      # as -z defs.
9211      no_undefined_flag='${wl}-z,text'
9212      allow_undefined_flag='${wl}-z,nodefs'
9213      archive_cmds_need_lc=no
9214      hardcode_shlibpath_var=no
9215      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9216      hardcode_libdir_separator=':'
9217      link_all_deplibs=yes
9218      export_dynamic_flag_spec='${wl}-Bexport'
9219      runpath_var='LD_RUN_PATH'
9220
9221      if test "$GCC" = yes; then
9222	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9223	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9224      else
9225	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9226	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9227      fi
9228      ;;
9229
9230    uts4*)
9231      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232      hardcode_libdir_flag_spec='-L$libdir'
9233      hardcode_shlibpath_var=no
9234      ;;
9235
9236    *)
9237      ld_shlibs=no
9238      ;;
9239    esac
9240
9241    if test x$host_vendor = xsni; then
9242      case $host in
9243      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9244	export_dynamic_flag_spec='${wl}-Blargedynsym'
9245	;;
9246      esac
9247    fi
9248  fi
9249
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9251$as_echo "$ld_shlibs" >&6; }
9252test "$ld_shlibs" = no && can_build_shared=no
9253
9254with_gnu_ld=$with_gnu_ld
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270#
9271# Do we need to explicitly link libc?
9272#
9273case "x$archive_cmds_need_lc" in
9274x|xyes)
9275  # Assume -lc should be added
9276  archive_cmds_need_lc=yes
9277
9278  if test "$enable_shared" = yes && test "$GCC" = yes; then
9279    case $archive_cmds in
9280    *'~'*)
9281      # FIXME: we may have to deal with multi-command sequences.
9282      ;;
9283    '$CC '*)
9284      # Test whether the compiler implicitly links with -lc since on some
9285      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9286      # to ld, don't add -lc before -lgcc.
9287      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9288$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9289      $RM conftest*
9290      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9291
9292      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9293  (eval $ac_compile) 2>&5
9294  ac_status=$?
9295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9296  test $ac_status = 0; } 2>conftest.err; then
9297        soname=conftest
9298        lib=conftest
9299        libobjs=conftest.$ac_objext
9300        deplibs=
9301        wl=$lt_prog_compiler_wl
9302	pic_flag=$lt_prog_compiler_pic
9303        compiler_flags=-v
9304        linker_flags=-v
9305        verstring=
9306        output_objdir=.
9307        libname=conftest
9308        lt_save_allow_undefined_flag=$allow_undefined_flag
9309        allow_undefined_flag=
9310        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9311  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9312  ac_status=$?
9313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9314  test $ac_status = 0; }
9315        then
9316	  archive_cmds_need_lc=no
9317        else
9318	  archive_cmds_need_lc=yes
9319        fi
9320        allow_undefined_flag=$lt_save_allow_undefined_flag
9321      else
9322        cat conftest.err 1>&5
9323      fi
9324      $RM conftest*
9325      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9326$as_echo "$archive_cmds_need_lc" >&6; }
9327      ;;
9328    esac
9329  fi
9330  ;;
9331esac
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
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
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9490$as_echo_n "checking dynamic linker characteristics... " >&6; }
9491
9492if test "$GCC" = yes; then
9493  case $host_os in
9494    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9495    *) lt_awk_arg="/^libraries:/" ;;
9496  esac
9497  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9498  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9499    # if the path contains ";" then we assume it to be the separator
9500    # otherwise default to the standard path separator (i.e. ":") - it is
9501    # assumed that no part of a normal pathname contains ";" but that should
9502    # okay in the real world where ";" in dirpaths is itself problematic.
9503    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9504  else
9505    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9506  fi
9507  # Ok, now we have the path, separated by spaces, we can step through it
9508  # and add multilib dir if necessary.
9509  lt_tmp_lt_search_path_spec=
9510  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9511  for lt_sys_path in $lt_search_path_spec; do
9512    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9513      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9514    else
9515      test -d "$lt_sys_path" && \
9516	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9517    fi
9518  done
9519  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9520BEGIN {RS=" "; FS="/|\n";} {
9521  lt_foo="";
9522  lt_count=0;
9523  for (lt_i = NF; lt_i > 0; lt_i--) {
9524    if ($lt_i != "" && $lt_i != ".") {
9525      if ($lt_i == "..") {
9526        lt_count++;
9527      } else {
9528        if (lt_count == 0) {
9529          lt_foo="/" $lt_i lt_foo;
9530        } else {
9531          lt_count--;
9532        }
9533      }
9534    }
9535  }
9536  if (lt_foo != "") { lt_freq[lt_foo]++; }
9537  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9538}'`
9539  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9540else
9541  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9542fi
9543library_names_spec=
9544libname_spec='lib$name'
9545soname_spec=
9546shrext_cmds=".so"
9547postinstall_cmds=
9548postuninstall_cmds=
9549finish_cmds=
9550finish_eval=
9551shlibpath_var=
9552shlibpath_overrides_runpath=unknown
9553version_type=none
9554dynamic_linker="$host_os ld.so"
9555sys_lib_dlsearch_path_spec="/lib /usr/lib"
9556need_lib_prefix=unknown
9557hardcode_into_libs=no
9558
9559# when you set need_version to no, make sure it does not cause -set_version
9560# flags to be left without arguments
9561need_version=unknown
9562
9563case $host_os in
9564aix3*)
9565  version_type=linux
9566  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9567  shlibpath_var=LIBPATH
9568
9569  # AIX 3 has no versioning support, so we append a major version to the name.
9570  soname_spec='${libname}${release}${shared_ext}$major'
9571  ;;
9572
9573aix[4-9]*)
9574  version_type=linux
9575  need_lib_prefix=no
9576  need_version=no
9577  hardcode_into_libs=yes
9578  if test "$host_cpu" = ia64; then
9579    # AIX 5 supports IA64
9580    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9581    shlibpath_var=LD_LIBRARY_PATH
9582  else
9583    # With GCC up to 2.95.x, collect2 would create an import file
9584    # for dependence libraries.  The import file would start with
9585    # the line `#! .'.  This would cause the generated library to
9586    # depend on `.', always an invalid library.  This was fixed in
9587    # development snapshots of GCC prior to 3.0.
9588    case $host_os in
9589      aix4 | aix4.[01] | aix4.[01].*)
9590      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9591	   echo ' yes '
9592	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9593	:
9594      else
9595	can_build_shared=no
9596      fi
9597      ;;
9598    esac
9599    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9600    # soname into executable. Probably we can add versioning support to
9601    # collect2, so additional links can be useful in future.
9602    if test "$aix_use_runtimelinking" = yes; then
9603      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9604      # instead of lib<name>.a to let people know that these are not
9605      # typical AIX shared libraries.
9606      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607    else
9608      # We preserve .a as extension for shared libraries through AIX4.2
9609      # and later when we are not doing run time linking.
9610      library_names_spec='${libname}${release}.a $libname.a'
9611      soname_spec='${libname}${release}${shared_ext}$major'
9612    fi
9613    shlibpath_var=LIBPATH
9614  fi
9615  ;;
9616
9617amigaos*)
9618  case $host_cpu in
9619  powerpc)
9620    # Since July 2007 AmigaOS4 officially supports .so libraries.
9621    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9622    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623    ;;
9624  m68k)
9625    library_names_spec='$libname.ixlibrary $libname.a'
9626    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9627    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'
9628    ;;
9629  esac
9630  ;;
9631
9632beos*)
9633  library_names_spec='${libname}${shared_ext}'
9634  dynamic_linker="$host_os ld.so"
9635  shlibpath_var=LIBRARY_PATH
9636  ;;
9637
9638bsdi[45]*)
9639  version_type=linux
9640  need_version=no
9641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642  soname_spec='${libname}${release}${shared_ext}$major'
9643  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9644  shlibpath_var=LD_LIBRARY_PATH
9645  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9646  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9647  # the default ld.so.conf also contains /usr/contrib/lib and
9648  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9649  # libtool to hard-code these into programs
9650  ;;
9651
9652cygwin* | mingw* | pw32*)
9653  version_type=windows
9654  shrext_cmds=".dll"
9655  need_version=no
9656  need_lib_prefix=no
9657
9658  case $GCC,$host_os in
9659  yes,cygwin* | yes,mingw* | yes,pw32*)
9660    library_names_spec='$libname.dll.a'
9661    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9662    postinstall_cmds='base_file=`basename \${file}`~
9663      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9664      dldir=$destdir/`dirname \$dlpath`~
9665      test -d \$dldir || mkdir -p \$dldir~
9666      $install_prog $dir/$dlname \$dldir/$dlname~
9667      chmod a+x \$dldir/$dlname~
9668      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9669        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9670      fi'
9671    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9672      dlpath=$dir/\$dldll~
9673       $RM \$dlpath'
9674    shlibpath_overrides_runpath=yes
9675
9676    case $host_os in
9677    cygwin*)
9678      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9679      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9680      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9681      ;;
9682    mingw*)
9683      # MinGW DLLs use traditional 'lib' prefix
9684      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9685      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9686      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9687        # It is most probably a Windows format PATH printed by
9688        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9689        # path with ; separators, and with drive letters. We can handle the
9690        # drive letters (cygwin fileutils understands them), so leave them,
9691        # especially as we might pass files found there to a mingw objdump,
9692        # which wouldn't understand a cygwinified path. Ahh.
9693        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9694      else
9695        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9696      fi
9697      ;;
9698    pw32*)
9699      # pw32 DLLs use 'pw' prefix rather than 'lib'
9700      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9701      ;;
9702    esac
9703    ;;
9704
9705  *)
9706    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9707    ;;
9708  esac
9709  dynamic_linker='Win32 ld.exe'
9710  # FIXME: first we should search . and the directory the executable is in
9711  shlibpath_var=PATH
9712  ;;
9713
9714darwin* | rhapsody*)
9715  dynamic_linker="$host_os dyld"
9716  version_type=darwin
9717  need_lib_prefix=no
9718  need_version=no
9719  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9720  soname_spec='${libname}${release}${major}$shared_ext'
9721  shlibpath_overrides_runpath=yes
9722  shlibpath_var=DYLD_LIBRARY_PATH
9723  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9724
9725  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9726  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9727  ;;
9728
9729dgux*)
9730  version_type=linux
9731  need_lib_prefix=no
9732  need_version=no
9733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9734  soname_spec='${libname}${release}${shared_ext}$major'
9735  shlibpath_var=LD_LIBRARY_PATH
9736  ;;
9737
9738freebsd1*)
9739  dynamic_linker=no
9740  ;;
9741
9742freebsd* | dragonfly*)
9743  # DragonFly does not have aout.  When/if they implement a new
9744  # versioning mechanism, adjust this.
9745  if test -x /usr/bin/objformat; then
9746    objformat=`/usr/bin/objformat`
9747  else
9748    case $host_os in
9749    freebsd[123]*) objformat=aout ;;
9750    *) objformat=elf ;;
9751    esac
9752  fi
9753  version_type=freebsd-$objformat
9754  case $version_type in
9755    freebsd-elf*)
9756      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9757      need_version=no
9758      need_lib_prefix=no
9759      ;;
9760    freebsd-*)
9761      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9762      need_version=yes
9763      ;;
9764  esac
9765  shlibpath_var=LD_LIBRARY_PATH
9766  case $host_os in
9767  freebsd2*)
9768    shlibpath_overrides_runpath=yes
9769    ;;
9770  freebsd3.[01]* | freebsdelf3.[01]*)
9771    shlibpath_overrides_runpath=yes
9772    hardcode_into_libs=yes
9773    ;;
9774  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9775  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9776    shlibpath_overrides_runpath=no
9777    hardcode_into_libs=yes
9778    ;;
9779  *) # from 4.6 on, and DragonFly
9780    shlibpath_overrides_runpath=yes
9781    hardcode_into_libs=yes
9782    ;;
9783  esac
9784  ;;
9785
9786gnu*)
9787  version_type=linux
9788  need_lib_prefix=no
9789  need_version=no
9790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9791  soname_spec='${libname}${release}${shared_ext}$major'
9792  shlibpath_var=LD_LIBRARY_PATH
9793  hardcode_into_libs=yes
9794  ;;
9795
9796hpux9* | hpux10* | hpux11*)
9797  # Give a soname corresponding to the major version so that dld.sl refuses to
9798  # link against other versions.
9799  version_type=sunos
9800  need_lib_prefix=no
9801  need_version=no
9802  case $host_cpu in
9803  ia64*)
9804    shrext_cmds='.so'
9805    hardcode_into_libs=yes
9806    dynamic_linker="$host_os dld.so"
9807    shlibpath_var=LD_LIBRARY_PATH
9808    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9809    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810    soname_spec='${libname}${release}${shared_ext}$major'
9811    if test "X$HPUX_IA64_MODE" = X32; then
9812      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9813    else
9814      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9815    fi
9816    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9817    ;;
9818  hppa*64*)
9819    shrext_cmds='.sl'
9820    hardcode_into_libs=yes
9821    dynamic_linker="$host_os dld.sl"
9822    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9823    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9824    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825    soname_spec='${libname}${release}${shared_ext}$major'
9826    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9827    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9828    ;;
9829  *)
9830    shrext_cmds='.sl'
9831    dynamic_linker="$host_os dld.sl"
9832    shlibpath_var=SHLIB_PATH
9833    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9834    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835    soname_spec='${libname}${release}${shared_ext}$major'
9836    ;;
9837  esac
9838  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9839  postinstall_cmds='chmod 555 $lib'
9840  ;;
9841
9842interix[3-9]*)
9843  version_type=linux
9844  need_lib_prefix=no
9845  need_version=no
9846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9847  soname_spec='${libname}${release}${shared_ext}$major'
9848  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9849  shlibpath_var=LD_LIBRARY_PATH
9850  shlibpath_overrides_runpath=no
9851  hardcode_into_libs=yes
9852  ;;
9853
9854irix5* | irix6* | nonstopux*)
9855  case $host_os in
9856    nonstopux*) version_type=nonstopux ;;
9857    *)
9858	if test "$lt_cv_prog_gnu_ld" = yes; then
9859		version_type=linux
9860	else
9861		version_type=irix
9862	fi ;;
9863  esac
9864  need_lib_prefix=no
9865  need_version=no
9866  soname_spec='${libname}${release}${shared_ext}$major'
9867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9868  case $host_os in
9869  irix5* | nonstopux*)
9870    libsuff= shlibsuff=
9871    ;;
9872  *)
9873    case $LD in # libtool.m4 will add one of these switches to LD
9874    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9875      libsuff= shlibsuff= libmagic=32-bit;;
9876    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9877      libsuff=32 shlibsuff=N32 libmagic=N32;;
9878    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9879      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9880    *) libsuff= shlibsuff= libmagic=never-match;;
9881    esac
9882    ;;
9883  esac
9884  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9885  shlibpath_overrides_runpath=no
9886  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9887  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9888  hardcode_into_libs=yes
9889  ;;
9890
9891# No shared lib support for Linux oldld, aout, or coff.
9892linux*oldld* | linux*aout* | linux*coff*)
9893  dynamic_linker=no
9894  ;;
9895
9896# This must be Linux ELF.
9897linux* | k*bsd*-gnu)
9898  version_type=linux
9899  need_lib_prefix=no
9900  need_version=no
9901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902  soname_spec='${libname}${release}${shared_ext}$major'
9903  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  shlibpath_overrides_runpath=no
9906  # Some binutils ld are patched to set DT_RUNPATH
9907  save_LDFLAGS=$LDFLAGS
9908  save_libdir=$libdir
9909  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9910       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h.  */
9913
9914int
9915main ()
9916{
9917
9918  ;
9919  return 0;
9920}
9921_ACEOF
9922if ac_fn_c_try_link "$LINENO"; then :
9923  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9924  shlibpath_overrides_runpath=yes
9925fi
9926fi
9927rm -f core conftest.err conftest.$ac_objext \
9928    conftest$ac_exeext conftest.$ac_ext
9929  LDFLAGS=$save_LDFLAGS
9930  libdir=$save_libdir
9931
9932  # This implies no fast_install, which is unacceptable.
9933  # Some rework will be needed to allow for fast_install
9934  # before this can be enabled.
9935  hardcode_into_libs=yes
9936
9937  # Append ld.so.conf contents to the search path
9938  if test -f /etc/ld.so.conf; then
9939    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' ' '`
9940    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9941  fi
9942
9943  # We used to test for /lib/ld.so.1 and disable shared libraries on
9944  # powerpc, because MkLinux only supported shared libraries with the
9945  # GNU dynamic linker.  Since this was broken with cross compilers,
9946  # most powerpc-linux boxes support dynamic linking these days and
9947  # people can always --disable-shared, the test was removed, and we
9948  # assume the GNU/Linux dynamic linker is in use.
9949  dynamic_linker='GNU/Linux ld.so'
9950  ;;
9951
9952netbsd*)
9953  version_type=sunos
9954  need_lib_prefix=no
9955  need_version=no
9956  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9957    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9958    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9959    dynamic_linker='NetBSD (a.out) ld.so'
9960  else
9961    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9962    soname_spec='${libname}${release}${shared_ext}$major'
9963    dynamic_linker='NetBSD ld.elf_so'
9964  fi
9965  shlibpath_var=LD_LIBRARY_PATH
9966  shlibpath_overrides_runpath=yes
9967  hardcode_into_libs=yes
9968  ;;
9969
9970newsos6)
9971  version_type=linux
9972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973  shlibpath_var=LD_LIBRARY_PATH
9974  shlibpath_overrides_runpath=yes
9975  ;;
9976
9977*nto* | *qnx*)
9978  version_type=qnx
9979  need_lib_prefix=no
9980  need_version=no
9981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982  soname_spec='${libname}${release}${shared_ext}$major'
9983  shlibpath_var=LD_LIBRARY_PATH
9984  shlibpath_overrides_runpath=no
9985  hardcode_into_libs=yes
9986  dynamic_linker='ldqnx.so'
9987  ;;
9988
9989openbsd*)
9990  version_type=sunos
9991  sys_lib_dlsearch_path_spec="/usr/lib"
9992  need_lib_prefix=no
9993  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9994  case $host_os in
9995    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9996    *)				need_version=no  ;;
9997  esac
9998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9999  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10000  shlibpath_var=LD_LIBRARY_PATH
10001  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10002    case $host_os in
10003      openbsd2.[89] | openbsd2.[89].*)
10004	shlibpath_overrides_runpath=no
10005	;;
10006      *)
10007	shlibpath_overrides_runpath=yes
10008	;;
10009      esac
10010  else
10011    shlibpath_overrides_runpath=yes
10012  fi
10013  ;;
10014
10015os2*)
10016  libname_spec='$name'
10017  shrext_cmds=".dll"
10018  need_lib_prefix=no
10019  library_names_spec='$libname${shared_ext} $libname.a'
10020  dynamic_linker='OS/2 ld.exe'
10021  shlibpath_var=LIBPATH
10022  ;;
10023
10024osf3* | osf4* | osf5*)
10025  version_type=osf
10026  need_lib_prefix=no
10027  need_version=no
10028  soname_spec='${libname}${release}${shared_ext}$major'
10029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030  shlibpath_var=LD_LIBRARY_PATH
10031  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10032  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10033  ;;
10034
10035rdos*)
10036  dynamic_linker=no
10037  ;;
10038
10039solaris*)
10040  version_type=linux
10041  need_lib_prefix=no
10042  need_version=no
10043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044  soname_spec='${libname}${release}${shared_ext}$major'
10045  shlibpath_var=LD_LIBRARY_PATH
10046  shlibpath_overrides_runpath=yes
10047  hardcode_into_libs=yes
10048  # ldd complains unless libraries are executable
10049  postinstall_cmds='chmod +x $lib'
10050  ;;
10051
10052sunos4*)
10053  version_type=sunos
10054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10055  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10056  shlibpath_var=LD_LIBRARY_PATH
10057  shlibpath_overrides_runpath=yes
10058  if test "$with_gnu_ld" = yes; then
10059    need_lib_prefix=no
10060  fi
10061  need_version=yes
10062  ;;
10063
10064sysv4 | sysv4.3*)
10065  version_type=linux
10066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067  soname_spec='${libname}${release}${shared_ext}$major'
10068  shlibpath_var=LD_LIBRARY_PATH
10069  case $host_vendor in
10070    sni)
10071      shlibpath_overrides_runpath=no
10072      need_lib_prefix=no
10073      runpath_var=LD_RUN_PATH
10074      ;;
10075    siemens)
10076      need_lib_prefix=no
10077      ;;
10078    motorola)
10079      need_lib_prefix=no
10080      need_version=no
10081      shlibpath_overrides_runpath=no
10082      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10083      ;;
10084  esac
10085  ;;
10086
10087sysv4*MP*)
10088  if test -d /usr/nec ;then
10089    version_type=linux
10090    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10091    soname_spec='$libname${shared_ext}.$major'
10092    shlibpath_var=LD_LIBRARY_PATH
10093  fi
10094  ;;
10095
10096sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10097  version_type=freebsd-elf
10098  need_lib_prefix=no
10099  need_version=no
10100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10101  soname_spec='${libname}${release}${shared_ext}$major'
10102  shlibpath_var=LD_LIBRARY_PATH
10103  shlibpath_overrides_runpath=yes
10104  hardcode_into_libs=yes
10105  if test "$with_gnu_ld" = yes; then
10106    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10107  else
10108    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10109    case $host_os in
10110      sco3.2v5*)
10111        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10112	;;
10113    esac
10114  fi
10115  sys_lib_dlsearch_path_spec='/usr/lib'
10116  ;;
10117
10118tpf*)
10119  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10120  version_type=linux
10121  need_lib_prefix=no
10122  need_version=no
10123  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124  shlibpath_var=LD_LIBRARY_PATH
10125  shlibpath_overrides_runpath=no
10126  hardcode_into_libs=yes
10127  ;;
10128
10129uts4*)
10130  version_type=linux
10131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132  soname_spec='${libname}${release}${shared_ext}$major'
10133  shlibpath_var=LD_LIBRARY_PATH
10134  ;;
10135
10136*)
10137  dynamic_linker=no
10138  ;;
10139esac
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10141$as_echo "$dynamic_linker" >&6; }
10142test "$dynamic_linker" = no && can_build_shared=no
10143
10144variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10145if test "$GCC" = yes; then
10146  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10147fi
10148
10149if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10150  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10151fi
10152if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10153  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10154fi
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10243$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10244hardcode_action=
10245if test -n "$hardcode_libdir_flag_spec" ||
10246   test -n "$runpath_var" ||
10247   test "X$hardcode_automatic" = "Xyes" ; then
10248
10249  # We can hardcode non-existent directories.
10250  if test "$hardcode_direct" != no &&
10251     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10252     # have to relink, otherwise we might link with an installed library
10253     # when we should be linking with a yet-to-be-installed one
10254     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10255     test "$hardcode_minus_L" != no; then
10256    # Linking always hardcodes the temporary library directory.
10257    hardcode_action=relink
10258  else
10259    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10260    hardcode_action=immediate
10261  fi
10262else
10263  # We cannot hardcode anything, or else we can only hardcode existing
10264  # directories.
10265  hardcode_action=unsupported
10266fi
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10268$as_echo "$hardcode_action" >&6; }
10269
10270if test "$hardcode_action" = relink ||
10271   test "$inherit_rpath" = yes; then
10272  # Fast installation is not supported
10273  enable_fast_install=no
10274elif test "$shlibpath_overrides_runpath" = yes ||
10275     test "$enable_shared" = no; then
10276  # Fast installation is not necessary
10277  enable_fast_install=needless
10278fi
10279
10280
10281
10282
10283
10284
10285  if test "x$enable_dlopen" != xyes; then
10286  enable_dlopen=unknown
10287  enable_dlopen_self=unknown
10288  enable_dlopen_self_static=unknown
10289else
10290  lt_cv_dlopen=no
10291  lt_cv_dlopen_libs=
10292
10293  case $host_os in
10294  beos*)
10295    lt_cv_dlopen="load_add_on"
10296    lt_cv_dlopen_libs=
10297    lt_cv_dlopen_self=yes
10298    ;;
10299
10300  mingw* | pw32*)
10301    lt_cv_dlopen="LoadLibrary"
10302    lt_cv_dlopen_libs=
10303    ;;
10304
10305  cygwin*)
10306    lt_cv_dlopen="dlopen"
10307    lt_cv_dlopen_libs=
10308    ;;
10309
10310  darwin*)
10311  # if libdl is installed we need to link against it
10312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10313$as_echo_n "checking for dlopen in -ldl... " >&6; }
10314if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10315  $as_echo_n "(cached) " >&6
10316else
10317  ac_check_lib_save_LIBS=$LIBS
10318LIBS="-ldl  $LIBS"
10319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h.  */
10321
10322/* Override any GCC internal prototype to avoid an error.
10323   Use char because int might match the return type of a GCC
10324   builtin and then its argument prototype would still apply.  */
10325#ifdef __cplusplus
10326extern "C"
10327#endif
10328char dlopen ();
10329int
10330main ()
10331{
10332return dlopen ();
10333  ;
10334  return 0;
10335}
10336_ACEOF
10337if ac_fn_c_try_link "$LINENO"; then :
10338  ac_cv_lib_dl_dlopen=yes
10339else
10340  ac_cv_lib_dl_dlopen=no
10341fi
10342rm -f core conftest.err conftest.$ac_objext \
10343    conftest$ac_exeext conftest.$ac_ext
10344LIBS=$ac_check_lib_save_LIBS
10345fi
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10347$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10348if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10349  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10350else
10351
10352    lt_cv_dlopen="dyld"
10353    lt_cv_dlopen_libs=
10354    lt_cv_dlopen_self=yes
10355
10356fi
10357
10358    ;;
10359
10360  *)
10361    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10362if test "x$ac_cv_func_shl_load" = x""yes; then :
10363  lt_cv_dlopen="shl_load"
10364else
10365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10366$as_echo_n "checking for shl_load in -ldld... " >&6; }
10367if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10368  $as_echo_n "(cached) " >&6
10369else
10370  ac_check_lib_save_LIBS=$LIBS
10371LIBS="-ldld  $LIBS"
10372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373/* end confdefs.h.  */
10374
10375/* Override any GCC internal prototype to avoid an error.
10376   Use char because int might match the return type of a GCC
10377   builtin and then its argument prototype would still apply.  */
10378#ifdef __cplusplus
10379extern "C"
10380#endif
10381char shl_load ();
10382int
10383main ()
10384{
10385return shl_load ();
10386  ;
10387  return 0;
10388}
10389_ACEOF
10390if ac_fn_c_try_link "$LINENO"; then :
10391  ac_cv_lib_dld_shl_load=yes
10392else
10393  ac_cv_lib_dld_shl_load=no
10394fi
10395rm -f core conftest.err conftest.$ac_objext \
10396    conftest$ac_exeext conftest.$ac_ext
10397LIBS=$ac_check_lib_save_LIBS
10398fi
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10400$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10401if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10402  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10403else
10404  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10405if test "x$ac_cv_func_dlopen" = x""yes; then :
10406  lt_cv_dlopen="dlopen"
10407else
10408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10409$as_echo_n "checking for dlopen in -ldl... " >&6; }
10410if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  ac_check_lib_save_LIBS=$LIBS
10414LIBS="-ldl  $LIBS"
10415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h.  */
10417
10418/* Override any GCC internal prototype to avoid an error.
10419   Use char because int might match the return type of a GCC
10420   builtin and then its argument prototype would still apply.  */
10421#ifdef __cplusplus
10422extern "C"
10423#endif
10424char dlopen ();
10425int
10426main ()
10427{
10428return dlopen ();
10429  ;
10430  return 0;
10431}
10432_ACEOF
10433if ac_fn_c_try_link "$LINENO"; then :
10434  ac_cv_lib_dl_dlopen=yes
10435else
10436  ac_cv_lib_dl_dlopen=no
10437fi
10438rm -f core conftest.err conftest.$ac_objext \
10439    conftest$ac_exeext conftest.$ac_ext
10440LIBS=$ac_check_lib_save_LIBS
10441fi
10442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10443$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10444if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10445  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10446else
10447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10448$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10449if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10450  $as_echo_n "(cached) " >&6
10451else
10452  ac_check_lib_save_LIBS=$LIBS
10453LIBS="-lsvld  $LIBS"
10454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455/* end confdefs.h.  */
10456
10457/* Override any GCC internal prototype to avoid an error.
10458   Use char because int might match the return type of a GCC
10459   builtin and then its argument prototype would still apply.  */
10460#ifdef __cplusplus
10461extern "C"
10462#endif
10463char dlopen ();
10464int
10465main ()
10466{
10467return dlopen ();
10468  ;
10469  return 0;
10470}
10471_ACEOF
10472if ac_fn_c_try_link "$LINENO"; then :
10473  ac_cv_lib_svld_dlopen=yes
10474else
10475  ac_cv_lib_svld_dlopen=no
10476fi
10477rm -f core conftest.err conftest.$ac_objext \
10478    conftest$ac_exeext conftest.$ac_ext
10479LIBS=$ac_check_lib_save_LIBS
10480fi
10481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10482$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10483if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10484  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10485else
10486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10487$as_echo_n "checking for dld_link in -ldld... " >&6; }
10488if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10489  $as_echo_n "(cached) " >&6
10490else
10491  ac_check_lib_save_LIBS=$LIBS
10492LIBS="-ldld  $LIBS"
10493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h.  */
10495
10496/* Override any GCC internal prototype to avoid an error.
10497   Use char because int might match the return type of a GCC
10498   builtin and then its argument prototype would still apply.  */
10499#ifdef __cplusplus
10500extern "C"
10501#endif
10502char dld_link ();
10503int
10504main ()
10505{
10506return dld_link ();
10507  ;
10508  return 0;
10509}
10510_ACEOF
10511if ac_fn_c_try_link "$LINENO"; then :
10512  ac_cv_lib_dld_dld_link=yes
10513else
10514  ac_cv_lib_dld_dld_link=no
10515fi
10516rm -f core conftest.err conftest.$ac_objext \
10517    conftest$ac_exeext conftest.$ac_ext
10518LIBS=$ac_check_lib_save_LIBS
10519fi
10520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10521$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10522if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10523  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10524fi
10525
10526
10527fi
10528
10529
10530fi
10531
10532
10533fi
10534
10535
10536fi
10537
10538
10539fi
10540
10541    ;;
10542  esac
10543
10544  if test "x$lt_cv_dlopen" != xno; then
10545    enable_dlopen=yes
10546  else
10547    enable_dlopen=no
10548  fi
10549
10550  case $lt_cv_dlopen in
10551  dlopen)
10552    save_CPPFLAGS="$CPPFLAGS"
10553    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10554
10555    save_LDFLAGS="$LDFLAGS"
10556    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10557
10558    save_LIBS="$LIBS"
10559    LIBS="$lt_cv_dlopen_libs $LIBS"
10560
10561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10562$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10563if test "${lt_cv_dlopen_self+set}" = set; then :
10564  $as_echo_n "(cached) " >&6
10565else
10566  	  if test "$cross_compiling" = yes; then :
10567  lt_cv_dlopen_self=cross
10568else
10569  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10570  lt_status=$lt_dlunknown
10571  cat > conftest.$ac_ext <<_LT_EOF
10572#line 10572 "configure"
10573#include "confdefs.h"
10574
10575#if HAVE_DLFCN_H
10576#include <dlfcn.h>
10577#endif
10578
10579#include <stdio.h>
10580
10581#ifdef RTLD_GLOBAL
10582#  define LT_DLGLOBAL		RTLD_GLOBAL
10583#else
10584#  ifdef DL_GLOBAL
10585#    define LT_DLGLOBAL		DL_GLOBAL
10586#  else
10587#    define LT_DLGLOBAL		0
10588#  endif
10589#endif
10590
10591/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10592   find out it does not work in some platform. */
10593#ifndef LT_DLLAZY_OR_NOW
10594#  ifdef RTLD_LAZY
10595#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10596#  else
10597#    ifdef DL_LAZY
10598#      define LT_DLLAZY_OR_NOW		DL_LAZY
10599#    else
10600#      ifdef RTLD_NOW
10601#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10602#      else
10603#        ifdef DL_NOW
10604#          define LT_DLLAZY_OR_NOW	DL_NOW
10605#        else
10606#          define LT_DLLAZY_OR_NOW	0
10607#        endif
10608#      endif
10609#    endif
10610#  endif
10611#endif
10612
10613#ifdef __cplusplus
10614extern "C" void exit (int);
10615#endif
10616
10617void fnord() { int i=42;}
10618int main ()
10619{
10620  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10621  int status = $lt_dlunknown;
10622
10623  if (self)
10624    {
10625      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10626      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10627      /* dlclose (self); */
10628    }
10629  else
10630    puts (dlerror ());
10631
10632    exit (status);
10633}
10634_LT_EOF
10635  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10636  (eval $ac_link) 2>&5
10637  ac_status=$?
10638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10639  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10640    (./conftest; exit; ) >&5 2>/dev/null
10641    lt_status=$?
10642    case x$lt_status in
10643      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10644      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10645      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10646    esac
10647  else :
10648    # compilation failed
10649    lt_cv_dlopen_self=no
10650  fi
10651fi
10652rm -fr conftest*
10653
10654
10655fi
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10657$as_echo "$lt_cv_dlopen_self" >&6; }
10658
10659    if test "x$lt_cv_dlopen_self" = xyes; then
10660      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10661      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10662$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10663if test "${lt_cv_dlopen_self_static+set}" = set; then :
10664  $as_echo_n "(cached) " >&6
10665else
10666  	  if test "$cross_compiling" = yes; then :
10667  lt_cv_dlopen_self_static=cross
10668else
10669  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10670  lt_status=$lt_dlunknown
10671  cat > conftest.$ac_ext <<_LT_EOF
10672#line 10672 "configure"
10673#include "confdefs.h"
10674
10675#if HAVE_DLFCN_H
10676#include <dlfcn.h>
10677#endif
10678
10679#include <stdio.h>
10680
10681#ifdef RTLD_GLOBAL
10682#  define LT_DLGLOBAL		RTLD_GLOBAL
10683#else
10684#  ifdef DL_GLOBAL
10685#    define LT_DLGLOBAL		DL_GLOBAL
10686#  else
10687#    define LT_DLGLOBAL		0
10688#  endif
10689#endif
10690
10691/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10692   find out it does not work in some platform. */
10693#ifndef LT_DLLAZY_OR_NOW
10694#  ifdef RTLD_LAZY
10695#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10696#  else
10697#    ifdef DL_LAZY
10698#      define LT_DLLAZY_OR_NOW		DL_LAZY
10699#    else
10700#      ifdef RTLD_NOW
10701#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10702#      else
10703#        ifdef DL_NOW
10704#          define LT_DLLAZY_OR_NOW	DL_NOW
10705#        else
10706#          define LT_DLLAZY_OR_NOW	0
10707#        endif
10708#      endif
10709#    endif
10710#  endif
10711#endif
10712
10713#ifdef __cplusplus
10714extern "C" void exit (int);
10715#endif
10716
10717void fnord() { int i=42;}
10718int main ()
10719{
10720  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10721  int status = $lt_dlunknown;
10722
10723  if (self)
10724    {
10725      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10726      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10727      /* dlclose (self); */
10728    }
10729  else
10730    puts (dlerror ());
10731
10732    exit (status);
10733}
10734_LT_EOF
10735  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10736  (eval $ac_link) 2>&5
10737  ac_status=$?
10738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10739  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10740    (./conftest; exit; ) >&5 2>/dev/null
10741    lt_status=$?
10742    case x$lt_status in
10743      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10744      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10745      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10746    esac
10747  else :
10748    # compilation failed
10749    lt_cv_dlopen_self_static=no
10750  fi
10751fi
10752rm -fr conftest*
10753
10754
10755fi
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10757$as_echo "$lt_cv_dlopen_self_static" >&6; }
10758    fi
10759
10760    CPPFLAGS="$save_CPPFLAGS"
10761    LDFLAGS="$save_LDFLAGS"
10762    LIBS="$save_LIBS"
10763    ;;
10764  esac
10765
10766  case $lt_cv_dlopen_self in
10767  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10768  *) enable_dlopen_self=unknown ;;
10769  esac
10770
10771  case $lt_cv_dlopen_self_static in
10772  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10773  *) enable_dlopen_self_static=unknown ;;
10774  esac
10775fi
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793striplib=
10794old_striplib=
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10796$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10797if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10798  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10799  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10801$as_echo "yes" >&6; }
10802else
10803# FIXME - insert some real tests, host_os isn't really good enough
10804  case $host_os in
10805  darwin*)
10806    if test -n "$STRIP" ; then
10807      striplib="$STRIP -x"
10808      old_striplib="$STRIP -S"
10809      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10810$as_echo "yes" >&6; }
10811    else
10812      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
10814    fi
10815    ;;
10816  *)
10817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818$as_echo "no" >&6; }
10819    ;;
10820  esac
10821fi
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834  # Report which library types will actually be built
10835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10836$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10838$as_echo "$can_build_shared" >&6; }
10839
10840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10841$as_echo_n "checking whether to build shared libraries... " >&6; }
10842  test "$can_build_shared" = "no" && enable_shared=no
10843
10844  # On AIX, shared libraries and static libraries use the same namespace, and
10845  # are all built from PIC.
10846  case $host_os in
10847  aix3*)
10848    test "$enable_shared" = yes && enable_static=no
10849    if test -n "$RANLIB"; then
10850      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10851      postinstall_cmds='$RANLIB $lib'
10852    fi
10853    ;;
10854
10855  aix[4-9]*)
10856    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10857      test "$enable_shared" = yes && enable_static=no
10858    fi
10859    ;;
10860  esac
10861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10862$as_echo "$enable_shared" >&6; }
10863
10864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10865$as_echo_n "checking whether to build static libraries... " >&6; }
10866  # Make sure either enable_shared or enable_static is yes.
10867  test "$enable_shared" = yes || enable_static=yes
10868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10869$as_echo "$enable_static" >&6; }
10870
10871
10872
10873
10874fi
10875ac_ext=c
10876ac_cpp='$CPP $CPPFLAGS'
10877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10879ac_compiler_gnu=$ac_cv_c_compiler_gnu
10880
10881CC="$lt_save_CC"
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895        ac_config_commands="$ac_config_commands libtool"
10896
10897
10898
10899
10900# Only expand once:
10901
10902
10903
10904
10905# Check whether --enable-largefile was given.
10906if test "${enable_largefile+set}" = set; then :
10907  enableval=$enable_largefile;
10908fi
10909
10910if test "$enable_largefile" != no; then
10911
10912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10913$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10914if test "${ac_cv_sys_largefile_CC+set}" = set; then :
10915  $as_echo_n "(cached) " >&6
10916else
10917  ac_cv_sys_largefile_CC=no
10918     if test "$GCC" != yes; then
10919       ac_save_CC=$CC
10920       while :; do
10921	 # IRIX 6.2 and later do not support large files by default,
10922	 # so use the C compiler's -n32 option if that helps.
10923	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924/* end confdefs.h.  */
10925#include <sys/types.h>
10926 /* Check that off_t can represent 2**63 - 1 correctly.
10927    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10928    since some C++ compilers masquerading as C compilers
10929    incorrectly reject 9223372036854775807.  */
10930#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10931  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10932		       && LARGE_OFF_T % 2147483647 == 1)
10933		      ? 1 : -1];
10934int
10935main ()
10936{
10937
10938  ;
10939  return 0;
10940}
10941_ACEOF
10942	 if ac_fn_c_try_compile "$LINENO"; then :
10943  break
10944fi
10945rm -f core conftest.err conftest.$ac_objext
10946	 CC="$CC -n32"
10947	 if ac_fn_c_try_compile "$LINENO"; then :
10948  ac_cv_sys_largefile_CC=' -n32'; break
10949fi
10950rm -f core conftest.err conftest.$ac_objext
10951	 break
10952       done
10953       CC=$ac_save_CC
10954       rm -f conftest.$ac_ext
10955    fi
10956fi
10957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10958$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10959  if test "$ac_cv_sys_largefile_CC" != no; then
10960    CC=$CC$ac_cv_sys_largefile_CC
10961  fi
10962
10963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10964$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10965if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
10966  $as_echo_n "(cached) " >&6
10967else
10968  while :; do
10969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970/* end confdefs.h.  */
10971#include <sys/types.h>
10972 /* Check that off_t can represent 2**63 - 1 correctly.
10973    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10974    since some C++ compilers masquerading as C compilers
10975    incorrectly reject 9223372036854775807.  */
10976#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10977  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10978		       && LARGE_OFF_T % 2147483647 == 1)
10979		      ? 1 : -1];
10980int
10981main ()
10982{
10983
10984  ;
10985  return 0;
10986}
10987_ACEOF
10988if ac_fn_c_try_compile "$LINENO"; then :
10989  ac_cv_sys_file_offset_bits=no; break
10990fi
10991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993/* end confdefs.h.  */
10994#define _FILE_OFFSET_BITS 64
10995#include <sys/types.h>
10996 /* Check that off_t can represent 2**63 - 1 correctly.
10997    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10998    since some C++ compilers masquerading as C compilers
10999    incorrectly reject 9223372036854775807.  */
11000#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11001  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11002		       && LARGE_OFF_T % 2147483647 == 1)
11003		      ? 1 : -1];
11004int
11005main ()
11006{
11007
11008  ;
11009  return 0;
11010}
11011_ACEOF
11012if ac_fn_c_try_compile "$LINENO"; then :
11013  ac_cv_sys_file_offset_bits=64; break
11014fi
11015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016  ac_cv_sys_file_offset_bits=unknown
11017  break
11018done
11019fi
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11021$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11022case $ac_cv_sys_file_offset_bits in #(
11023  no | unknown) ;;
11024  *)
11025cat >>confdefs.h <<_ACEOF
11026#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11027_ACEOF
11028;;
11029esac
11030rm -rf conftest*
11031  if test $ac_cv_sys_file_offset_bits = unknown; then
11032    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11033$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11034if test "${ac_cv_sys_large_files+set}" = set; then :
11035  $as_echo_n "(cached) " >&6
11036else
11037  while :; do
11038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039/* end confdefs.h.  */
11040#include <sys/types.h>
11041 /* Check that off_t can represent 2**63 - 1 correctly.
11042    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11043    since some C++ compilers masquerading as C compilers
11044    incorrectly reject 9223372036854775807.  */
11045#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11046  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11047		       && LARGE_OFF_T % 2147483647 == 1)
11048		      ? 1 : -1];
11049int
11050main ()
11051{
11052
11053  ;
11054  return 0;
11055}
11056_ACEOF
11057if ac_fn_c_try_compile "$LINENO"; then :
11058  ac_cv_sys_large_files=no; break
11059fi
11060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062/* end confdefs.h.  */
11063#define _LARGE_FILES 1
11064#include <sys/types.h>
11065 /* Check that off_t can represent 2**63 - 1 correctly.
11066    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11067    since some C++ compilers masquerading as C compilers
11068    incorrectly reject 9223372036854775807.  */
11069#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11070  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11071		       && LARGE_OFF_T % 2147483647 == 1)
11072		      ? 1 : -1];
11073int
11074main ()
11075{
11076
11077  ;
11078  return 0;
11079}
11080_ACEOF
11081if ac_fn_c_try_compile "$LINENO"; then :
11082  ac_cv_sys_large_files=1; break
11083fi
11084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085  ac_cv_sys_large_files=unknown
11086  break
11087done
11088fi
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11090$as_echo "$ac_cv_sys_large_files" >&6; }
11091case $ac_cv_sys_large_files in #(
11092  no | unknown) ;;
11093  *)
11094cat >>confdefs.h <<_ACEOF
11095#define _LARGE_FILES $ac_cv_sys_large_files
11096_ACEOF
11097;;
11098esac
11099rm -rf conftest*
11100  fi
11101fi
11102
11103
11104backtrace_supported=yes
11105
11106if test -n "${with_target_subdir}"; then
11107  # We are compiling a GCC library.  We can assume that the unwind
11108  # library exists.
11109  BACKTRACE_FILE="backtrace.lo simple.lo"
11110else
11111  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11112if test "x$ac_cv_header_unwind_h" = x""yes; then :
11113  ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11114if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11115  BACKTRACE_FILE="backtrace.lo simple.lo"
11116else
11117  BACKTRACE_FILE="nounwind.lo"
11118                    backtrace_supported=no
11119fi
11120
11121else
11122  BACKTRACE_FILE="nounwind.lo"
11123     backtrace_supported=no
11124fi
11125
11126
11127fi
11128
11129
11130EXTRA_FLAGS=
11131if test -n "${with_target_subdir}"; then
11132  EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
11133else
11134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11135$as_echo_n "checking for -funwind-tables option... " >&6; }
11136if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11137  $as_echo_n "(cached) " >&6
11138else
11139  CFLAGS_hold="$CFLAGS"
11140     CFLAGS="$CFLAGS -funwind-tables"
11141     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142/* end confdefs.h.  */
11143static int f() { return 0; }
11144int
11145main ()
11146{
11147return f();
11148  ;
11149  return 0;
11150}
11151_ACEOF
11152if ac_fn_c_try_compile "$LINENO"; then :
11153  libbacktrace_cv_c_unwind_tables=yes
11154else
11155  libbacktrace_cv_c_unwind_tables=no
11156fi
11157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158     CFLAGS="$CFLAGS_hold"
11159fi
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11161$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
11162  if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11163    EXTRA_FLAGS=-funwind-tables
11164  fi
11165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11166$as_echo_n "checking for -frandom-seed=string option... " >&6; }
11167if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11168  $as_echo_n "(cached) " >&6
11169else
11170  CFLAGS_hold="$CFLAGS"
11171     CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h.  */
11174
11175int
11176main ()
11177{
11178return 0;
11179  ;
11180  return 0;
11181}
11182_ACEOF
11183if ac_fn_c_try_compile "$LINENO"; then :
11184  libbacktrace_cv_c_random_seed_string=yes
11185else
11186  libbacktrace_cv_c_random_seed_string=no
11187fi
11188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11189     CFLAGS="$CFLAGS_hold"
11190fi
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11192$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11193  if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11194    EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11195  fi
11196fi
11197
11198
11199ac_ext=c
11200ac_cpp='$CPP $CPPFLAGS'
11201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11203ac_compiler_gnu=$ac_cv_c_compiler_gnu
11204
11205WARN_FLAGS=
11206save_CFLAGS="$CFLAGS"
11207for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11208			  -Wmissing-prototypes -Wold-style-definition \
11209			  -Wmissing-format-attribute -Wcast-qual; do
11210  # Do the check with the no- prefix removed since gcc silently
11211  # accepts any -Wno-* option on purpose
11212  case $real_option in
11213    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11214    *) option=$real_option ;;
11215  esac
11216  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11217
11218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11219$as_echo_n "checking whether $CC supports $option... " >&6; }
11220if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11221  $as_echo_n "(cached) " >&6
11222else
11223  CFLAGS="$option"
11224    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225/* end confdefs.h.  */
11226
11227int
11228main ()
11229{
11230
11231  ;
11232  return 0;
11233}
11234_ACEOF
11235if ac_fn_c_try_compile "$LINENO"; then :
11236  eval "$as_acx_Woption=yes"
11237else
11238  eval "$as_acx_Woption=no"
11239fi
11240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241
11242fi
11243eval ac_res=\$$as_acx_Woption
11244	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11245$as_echo "$ac_res" >&6; }
11246  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11247  WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11248fi
11249  done
11250CFLAGS="$save_CFLAGS"
11251ac_ext=c
11252ac_cpp='$CPP $CPPFLAGS'
11253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11255ac_compiler_gnu=$ac_cv_c_compiler_gnu
11256
11257
11258
11259if test -n "${with_target_subdir}"; then
11260  WARN_FLAGS="$WARN_FLAGS -Werror"
11261fi
11262
11263
11264
11265if test -n "${with_target_subdir}"; then
11266
11267
11268# Check whether --with-system-libunwind was given.
11269if test "${with_system_libunwind+set}" = set; then :
11270  withval=$with_system_libunwind;
11271fi
11272
11273  # If system-libunwind was not specifically set, pick a default setting.
11274  if test x$with_system_libunwind = x; then
11275    case ${target} in
11276      ia64-*-hpux*) with_system_libunwind=yes ;;
11277      *) with_system_libunwind=no ;;
11278    esac
11279  fi
11280  # Based on system-libunwind and target, do we have ipinfo?
11281  if  test x$with_system_libunwind = xyes; then
11282    case ${target} in
11283      ia64-*-*) have_unwind_getipinfo=no ;;
11284      *) have_unwind_getipinfo=yes ;;
11285    esac
11286  else
11287    # Darwin before version 9 does not have _Unwind_GetIPInfo.
11288
11289    case ${target} in
11290      *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11291      *) have_unwind_getipinfo=yes ;;
11292    esac
11293
11294  fi
11295
11296  if test x$have_unwind_getipinfo = xyes; then
11297
11298$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11299
11300  fi
11301
11302else
11303  ac_save_CFFLAGS="$CFLAGS"
11304  CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11306$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308/* end confdefs.h.  */
11309#include "unwind.h"
11310	struct _Unwind_Context *context;
11311	int ip_before_insn = 0;
11312int
11313main ()
11314{
11315return _Unwind_GetIPInfo (context, &ip_before_insn);
11316  ;
11317  return 0;
11318}
11319_ACEOF
11320if ac_fn_c_try_link "$LINENO"; then :
11321  have_unwind_getipinfo=yes
11322else
11323  have_unwind_getipinfo=no
11324fi
11325rm -f core conftest.err conftest.$ac_objext \
11326    conftest$ac_exeext conftest.$ac_ext
11327  CFLAGS="$ac_save_CFLAGS"
11328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
11329$as_echo "$have_unwind_getipinfo" >&6; }
11330  if test "$have_unwind_getipinfo" = "yes"; then
11331
11332$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11333
11334  fi
11335fi
11336
11337# Enable --enable-host-shared.
11338# Check whether --enable-host-shared was given.
11339if test "${enable_host_shared+set}" = set; then :
11340  enableval=$enable_host_shared; PIC_FLAG=-fPIC
11341else
11342  PIC_FLAG=
11343fi
11344
11345
11346
11347# Test for __sync support.
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
11349$as_echo_n "checking __sync extensions... " >&6; }
11350if test "${libbacktrace_cv_sys_sync+set}" = set; then :
11351  $as_echo_n "(cached) " >&6
11352else
11353  if test -n "${with_target_subdir}"; then
11354   case "${host}" in
11355   hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
11356   *) libbacktrace_cv_sys_sync=yes ;;
11357   esac
11358 else
11359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360/* end confdefs.h.  */
11361int i;
11362int
11363main ()
11364{
11365__sync_bool_compare_and_swap (&i, i, i);
11366                       __sync_lock_test_and_set (&i, 1);
11367                       __sync_lock_release (&i);
11368  ;
11369  return 0;
11370}
11371_ACEOF
11372if ac_fn_c_try_link "$LINENO"; then :
11373  libbacktrace_cv_sys_sync=yes
11374else
11375  libbacktrace_cv_sys_sync=no
11376fi
11377rm -f core conftest.err conftest.$ac_objext \
11378    conftest$ac_exeext conftest.$ac_ext
11379 fi
11380fi
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
11382$as_echo "$libbacktrace_cv_sys_sync" >&6; }
11383BACKTRACE_SUPPORTS_THREADS=0
11384if test "$libbacktrace_cv_sys_sync" = "yes"; then
11385  BACKTRACE_SUPPORTS_THREADS=1
11386
11387$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
11388
11389fi
11390
11391
11392# Test for __atomic support.
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
11394$as_echo_n "checking __atomic extensions... " >&6; }
11395if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
11396  $as_echo_n "(cached) " >&6
11397else
11398  if test -n "${with_target_subdir}"; then
11399   libbacktrace_cv_sys_atomic=yes
11400 else
11401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402/* end confdefs.h.  */
11403int i;
11404int
11405main ()
11406{
11407__atomic_load_n (&i, __ATOMIC_ACQUIRE);
11408		       __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
11409  ;
11410  return 0;
11411}
11412_ACEOF
11413if ac_fn_c_try_link "$LINENO"; then :
11414  libbacktrace_cv_sys_atomic=yes
11415else
11416  libbacktrace_cv_sys_atomic=no
11417fi
11418rm -f core conftest.err conftest.$ac_objext \
11419    conftest$ac_exeext conftest.$ac_ext
11420 fi
11421fi
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
11423$as_echo "$libbacktrace_cv_sys_atomic" >&6; }
11424if test "$libbacktrace_cv_sys_atomic" = "yes"; then
11425
11426$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
11427
11428fi
11429
11430# The library needs to be able to read the executable itself.  Compile
11431# a file to determine the executable format.  The awk script
11432# filetype.awk prints out the file type.
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
11434$as_echo_n "checking output filetype... " >&6; }
11435if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
11436  $as_echo_n "(cached) " >&6
11437else
11438  filetype=
11439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440/* end confdefs.h.  */
11441int i;
11442int
11443main ()
11444{
11445int j;
11446  ;
11447  return 0;
11448}
11449_ACEOF
11450if ac_fn_c_try_compile "$LINENO"; then :
11451  filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
11452else
11453  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11455as_fn_error "compiler failed
11456See \`config.log' for more details." "$LINENO" 5; }
11457fi
11458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459libbacktrace_cv_sys_filetype=$filetype
11460fi
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
11462$as_echo "$libbacktrace_cv_sys_filetype" >&6; }
11463
11464# Match the file type to decide what files to compile.
11465FORMAT_FILE=
11466backtrace_supports_data=yes
11467case "$libbacktrace_cv_sys_filetype" in
11468elf*) FORMAT_FILE="elf.lo" ;;
11469pecoff) FORMAT_FILE="pecoff.lo"
11470        backtrace_supports_data=no
11471	;;
11472xcoff*) FORMAT_FILE="xcoff.lo"
11473        backtrace_supports_data=no
11474        ;;
11475macho*) FORMAT_FILE="macho.lo"
11476        backtrace_supports_data=no
11477        ;;
11478*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
11479$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
11480   FORMAT_FILE="unknown.lo"
11481   backtrace_supported=no
11482   ;;
11483esac
11484
11485
11486# ELF defines.
11487elfsize=
11488case "$libbacktrace_cv_sys_filetype" in
11489elf32) elfsize=32 ;;
11490elf64) elfsize=64 ;;
11491*)     elfsize=unused
11492esac
11493
11494cat >>confdefs.h <<_ACEOF
11495#define BACKTRACE_ELF_SIZE $elfsize
11496_ACEOF
11497
11498
11499# XCOFF defines.
11500xcoffsize=
11501case "$libbacktrace_cv_sys_filetype" in
11502xcoff32) xcoffsize=32 ;;
11503xcoff64) xcoffsize=64 ;;
11504*)       xcoffsize=unused
11505esac
11506
11507cat >>confdefs.h <<_ACEOF
11508#define BACKTRACE_XCOFF_SIZE $xcoffsize
11509_ACEOF
11510
11511
11512BACKTRACE_SUPPORTED=0
11513if test "$backtrace_supported" = "yes"; then
11514  BACKTRACE_SUPPORTED=1
11515fi
11516
11517
11518BACKTRACE_SUPPORTS_DATA=0
11519if test "$backtrace_supports_data" = "yes"; then
11520  BACKTRACE_SUPPORTS_DATA=1
11521fi
11522
11523
11524for ac_header in sys/mman.h
11525do :
11526  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11527if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11528  cat >>confdefs.h <<_ACEOF
11529#define HAVE_SYS_MMAN_H 1
11530_ACEOF
11531
11532fi
11533
11534done
11535
11536if test "$ac_cv_header_sys_mman_h" = "no"; then
11537  have_mmap=no
11538else
11539  if test -n "${with_target_subdir}"; then
11540    # When built as a GCC target library, we can't do a link test.  We
11541    # simply assume that if we have mman.h, we have mmap.
11542    have_mmap=yes
11543    case "${host}" in
11544    spu-*-*|*-*-msdosdjgpp)
11545        # The SPU does not have mmap, but it has a sys/mman.h header file
11546        # containing "mmap_eaddr" and the mmap flags, confusing the test.
11547        # DJGPP also has sys/man.h, but no mmap
11548	have_mmap=no ;;
11549    esac
11550  else
11551    ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11552if test "x$ac_cv_func_mmap" = x""yes; then :
11553  have_mmap=yes
11554else
11555  have_mmap=no
11556fi
11557
11558  fi
11559fi
11560
11561case "${host_os}" in
11562darwin*)
11563  have_mmap=no ;;
11564esac
11565
11566if test "$have_mmap" = "no"; then
11567  VIEW_FILE=read.lo
11568  ALLOC_FILE=alloc.lo
11569else
11570  VIEW_FILE=mmapio.lo
11571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572/* end confdefs.h.  */
11573
11574#include <sys/mman.h>
11575#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
11576  #error no MAP_ANONYMOUS
11577#endif
11578
11579_ACEOF
11580if ac_fn_c_try_cpp "$LINENO"; then :
11581  ALLOC_FILE=alloc.lo
11582else
11583  ALLOC_FILE=alloc.lo
11584fi
11585rm -f conftest.err conftest.$ac_ext
11586fi
11587
11588
11589
11590BACKTRACE_USES_MALLOC=0
11591if test "$ALLOC_FILE" = "alloc.lo"; then
11592  BACKTRACE_USES_MALLOC=1
11593fi
11594
11595
11596# Check for dl_iterate_phdr.
11597for ac_header in link.h
11598do :
11599  ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
11600if test "x$ac_cv_header_link_h" = x""yes; then :
11601  cat >>confdefs.h <<_ACEOF
11602#define HAVE_LINK_H 1
11603_ACEOF
11604
11605fi
11606
11607done
11608
11609if test "$ac_cv_header_link_h" = "no"; then
11610  have_dl_iterate_phdr=no
11611else
11612  if test -n "${with_target_subdir}"; then
11613    # When built as a GCC target library, we can't do a link test.
11614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615/* end confdefs.h.  */
11616#include <link.h>
11617
11618_ACEOF
11619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11620  $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
11621  have_dl_iterate_phdr=yes
11622else
11623  have_dl_iterate_phdr=no
11624fi
11625rm -f conftest*
11626
11627    case "${host}" in
11628    *-*-solaris2.10*)
11629        # Avoid dl_iterate_phdr on Solaris 10, where it is in the
11630    	# header file but is only in -ldl.
11631	have_dl_iterate_phdr=no ;;
11632    esac
11633  else
11634    ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
11635if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
11636  have_dl_iterate_phdr=yes
11637else
11638  have_dl_iterate_phdr=no
11639fi
11640
11641  fi
11642fi
11643if test "$have_dl_iterate_phdr" = "yes"; then
11644
11645$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
11646
11647fi
11648
11649# Check for loadquery.
11650for ac_header in sys/ldr.h
11651do :
11652  ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
11653if test "x$ac_cv_header_sys_ldr_h" = x""yes; then :
11654  cat >>confdefs.h <<_ACEOF
11655#define HAVE_SYS_LDR_H 1
11656_ACEOF
11657
11658fi
11659
11660done
11661
11662if test "$ac_cv_header_sys_ldr_h" = "no"; then
11663  have_loadquery=no
11664else
11665  if test -n "${with_target_subdir}"; then
11666    # When built as a GCC target library, we can't do a link test.
11667    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668/* end confdefs.h.  */
11669#include <sys/ldr.h>
11670
11671_ACEOF
11672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11673  $EGREP "loadquery" >/dev/null 2>&1; then :
11674  have_loadquery=yes
11675else
11676  have_loadquery=no
11677fi
11678rm -f conftest*
11679
11680  else
11681    ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
11682if test "x$ac_cv_func_loadquery" = x""yes; then :
11683  have_loadquery=yes
11684else
11685  have_loadquery=no
11686fi
11687
11688  fi
11689fi
11690if test "$have_loadquery" = "yes"; then
11691
11692$as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
11693
11694fi
11695
11696# Check for the fcntl function.
11697if test -n "${with_target_subdir}"; then
11698   case "${host}" in
11699   *-*-mingw*) have_fcntl=no ;;
11700   spu-*-*) have_fcntl=no ;;
11701   *) have_fcntl=yes ;;
11702   esac
11703else
11704  ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
11705if test "x$ac_cv_func_fcntl" = x""yes; then :
11706  have_fcntl=yes
11707else
11708  have_fcntl=no
11709fi
11710
11711fi
11712if test "$have_fcntl" = "yes"; then
11713
11714$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
11715
11716fi
11717
11718ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
11719if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
11720  ac_have_decl=1
11721else
11722  ac_have_decl=0
11723fi
11724
11725cat >>confdefs.h <<_ACEOF
11726#define HAVE_DECL_STRNLEN $ac_have_decl
11727_ACEOF
11728
11729for ac_func in lstat readlink
11730do :
11731  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11732ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11733eval as_val=\$$as_ac_var
11734   if test "x$as_val" = x""yes; then :
11735  cat >>confdefs.h <<_ACEOF
11736#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737_ACEOF
11738
11739fi
11740done
11741
11742
11743# Check for getexecname function.
11744if test -n "${with_target_subdir}"; then
11745   case "${host}" in
11746   *-*-solaris2*) have_getexecname=yes ;;
11747   *) have_getexecname=no ;;
11748   esac
11749else
11750  ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
11751if test "x$ac_cv_func_getexecname" = x""yes; then :
11752  have_getexecname=yes
11753else
11754  have_getexecname=no
11755fi
11756
11757fi
11758if test "$have_getexecname" = "yes"; then
11759
11760$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
11761
11762fi
11763
11764# Check for the clock_gettime function.
11765for ac_func in clock_gettime
11766do :
11767  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
11768if test "x$ac_cv_func_clock_gettime" = x""yes; then :
11769  cat >>confdefs.h <<_ACEOF
11770#define HAVE_CLOCK_GETTIME 1
11771_ACEOF
11772
11773fi
11774done
11775
11776clock_gettime_link=
11777# At least for glibc, clock_gettime is in librt.  But don't
11778# pull that in if it still doesn't give us the function we want.  This
11779# test is copied from libgomp, and modified to not link in -lrt as
11780# we're using this for test timing only.
11781if test "$ac_cv_func_clock_gettime" = no; then
11782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11783$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11784if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
11785  $as_echo_n "(cached) " >&6
11786else
11787  ac_check_lib_save_LIBS=$LIBS
11788LIBS="-lrt  $LIBS"
11789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790/* end confdefs.h.  */
11791
11792/* Override any GCC internal prototype to avoid an error.
11793   Use char because int might match the return type of a GCC
11794   builtin and then its argument prototype would still apply.  */
11795#ifdef __cplusplus
11796extern "C"
11797#endif
11798char clock_gettime ();
11799int
11800main ()
11801{
11802return clock_gettime ();
11803  ;
11804  return 0;
11805}
11806_ACEOF
11807if ac_fn_c_try_link "$LINENO"; then :
11808  ac_cv_lib_rt_clock_gettime=yes
11809else
11810  ac_cv_lib_rt_clock_gettime=no
11811fi
11812rm -f core conftest.err conftest.$ac_objext \
11813    conftest$ac_exeext conftest.$ac_ext
11814LIBS=$ac_check_lib_save_LIBS
11815fi
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11817$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11818if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
11819  CLOCK_GETTIME_LINK=-lrt
11820
11821$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
11822
11823fi
11824
11825fi
11826
11827
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
11829$as_echo_n "checking whether -pthread is supported... " >&6; }
11830if test "${libgo_cv_lib_pthread+set}" = set; then :
11831  $as_echo_n "(cached) " >&6
11832else
11833  CFLAGS_hold=$CFLAGS
11834CFLAGS="$CFLAGS -pthread"
11835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836/* end confdefs.h.  */
11837int i;
11838_ACEOF
11839if ac_fn_c_try_compile "$LINENO"; then :
11840  libgo_cv_lib_pthread=yes
11841else
11842  libgo_cv_lib_pthread=no
11843fi
11844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845CFLAGS=$CFLAGS_hold
11846fi
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
11848$as_echo "$libgo_cv_lib_pthread" >&6; }
11849PTHREAD_CFLAGS=
11850if test "$libgo_cv_lib_pthread" = yes; then
11851  PTHREAD_CFLAGS=-pthread
11852fi
11853
11854
11855 if test "$libgo_cv_lib_pthread" = yes; then
11856  HAVE_PTHREAD_TRUE=
11857  HAVE_PTHREAD_FALSE='#'
11858else
11859  HAVE_PTHREAD_TRUE='#'
11860  HAVE_PTHREAD_FALSE=
11861fi
11862
11863
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
11865$as_echo_n "checking for compress in -lz... " >&6; }
11866if test "${ac_cv_lib_z_compress+set}" = set; then :
11867  $as_echo_n "(cached) " >&6
11868else
11869  ac_check_lib_save_LIBS=$LIBS
11870LIBS="-lz  $LIBS"
11871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872/* end confdefs.h.  */
11873
11874/* Override any GCC internal prototype to avoid an error.
11875   Use char because int might match the return type of a GCC
11876   builtin and then its argument prototype would still apply.  */
11877#ifdef __cplusplus
11878extern "C"
11879#endif
11880char compress ();
11881int
11882main ()
11883{
11884return compress ();
11885  ;
11886  return 0;
11887}
11888_ACEOF
11889if ac_fn_c_try_link "$LINENO"; then :
11890  ac_cv_lib_z_compress=yes
11891else
11892  ac_cv_lib_z_compress=no
11893fi
11894rm -f core conftest.err conftest.$ac_objext \
11895    conftest$ac_exeext conftest.$ac_ext
11896LIBS=$ac_check_lib_save_LIBS
11897fi
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
11899$as_echo "$ac_cv_lib_z_compress" >&6; }
11900if test "x$ac_cv_lib_z_compress" = x""yes; then :
11901  cat >>confdefs.h <<_ACEOF
11902#define HAVE_LIBZ 1
11903_ACEOF
11904
11905  LIBS="-lz $LIBS"
11906
11907fi
11908
11909if test $ac_cv_lib_z_compress = "yes"; then
11910
11911$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11912
11913fi
11914 if test "$ac_cv_lib_z_compress" = yes; then
11915  HAVE_ZLIB_TRUE=
11916  HAVE_ZLIB_FALSE='#'
11917else
11918  HAVE_ZLIB_TRUE='#'
11919  HAVE_ZLIB_FALSE=
11920fi
11921
11922
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
11924$as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
11925if test "${libgo_cv_ld_compress+set}" = set; then :
11926  $as_echo_n "(cached) " >&6
11927else
11928  LDFLAGS_hold=$LDFLAGS
11929LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
11930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h.  */
11932
11933int
11934main ()
11935{
11936
11937  ;
11938  return 0;
11939}
11940_ACEOF
11941if ac_fn_c_try_link "$LINENO"; then :
11942  libgo_cv_ld_compress=yes
11943else
11944  libgo_cv_ld_compress=no
11945fi
11946rm -f core conftest.err conftest.$ac_objext \
11947    conftest$ac_exeext conftest.$ac_ext
11948LDFLAGS=$LDFLAGS_hold
11949fi
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
11951$as_echo "$libgo_cv_ld_compress" >&6; }
11952 if test "$libgo_cv_ld_compress" = yes; then
11953  HAVE_COMPRESSED_DEBUG_TRUE=
11954  HAVE_COMPRESSED_DEBUG_FALSE='#'
11955else
11956  HAVE_COMPRESSED_DEBUG_TRUE='#'
11957  HAVE_COMPRESSED_DEBUG_FALSE=
11958fi
11959
11960
11961
11962# Extract the first word of "objcopy", so it can be a program name with args.
11963set dummy objcopy; ac_word=$2
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965$as_echo_n "checking for $ac_word... " >&6; }
11966if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
11967  $as_echo_n "(cached) " >&6
11968else
11969  if test -n "$OBJCOPY"; then
11970  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11971else
11972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973for as_dir in $PATH
11974do
11975  IFS=$as_save_IFS
11976  test -z "$as_dir" && as_dir=.
11977    for ac_exec_ext in '' $ac_executable_extensions; do
11978  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11979    ac_cv_prog_OBJCOPY="objcopy"
11980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981    break 2
11982  fi
11983done
11984  done
11985IFS=$as_save_IFS
11986
11987fi
11988fi
11989OBJCOPY=$ac_cv_prog_OBJCOPY
11990if test -n "$OBJCOPY"; then
11991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11992$as_echo "$OBJCOPY" >&6; }
11993else
11994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995$as_echo "no" >&6; }
11996fi
11997
11998
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
12000$as_echo_n "checking whether objcopy supports debuglink... " >&6; }
12001if test "${libbacktrace_cv_objcopy_debuglink+set}" = set; then :
12002  $as_echo_n "(cached) " >&6
12003else
12004  if test -n "${with_target_subdir}"; then
12005  libbacktrace_cv_objcopy_debuglink=no
12006elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
12007  rm -f /tmp/ls$$
12008  libbacktrace_cv_objcopy_debuglink=yes
12009else
12010  libbacktrace_cv_objcopy_debuglink=no
12011fi
12012fi
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
12014$as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
12015 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
12016  HAVE_OBJCOPY_DEBUGLINK_TRUE=
12017  HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
12018else
12019  HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
12020  HAVE_OBJCOPY_DEBUGLINK_FALSE=
12021fi
12022
12023
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
12025$as_echo_n "checking whether tests can run... " >&6; }
12026if test "${libbacktrace_cv_sys_native+set}" = set; then :
12027  $as_echo_n "(cached) " >&6
12028else
12029  if test "$cross_compiling" = yes; then :
12030  libbacktrace_cv_sys_native=no
12031else
12032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033/* end confdefs.h.  */
12034
12035int
12036main ()
12037{
12038return 0;
12039  ;
12040  return 0;
12041}
12042_ACEOF
12043if ac_fn_c_try_run "$LINENO"; then :
12044  libbacktrace_cv_sys_native=yes
12045else
12046  libbacktrace_cv_sys_native=no
12047fi
12048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12049  conftest.$ac_objext conftest.beam conftest.$ac_ext
12050fi
12051
12052fi
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
12054$as_echo "$libbacktrace_cv_sys_native" >&6; }
12055 if test "$libbacktrace_cv_sys_native" = "yes"; then
12056  NATIVE_TRUE=
12057  NATIVE_FALSE='#'
12058else
12059  NATIVE_TRUE='#'
12060  NATIVE_FALSE=
12061fi
12062
12063
12064if test "${multilib}" = "yes"; then
12065  multilib_arg="--enable-multilib"
12066else
12067  multilib_arg=
12068fi
12069
12070ac_config_files="$ac_config_files Makefile backtrace-supported.h"
12071
12072
12073# We need multilib support, but only if configuring for the target.
12074ac_config_commands="$ac_config_commands default"
12075
12076
12077cat >confcache <<\_ACEOF
12078# This file is a shell script that caches the results of configure
12079# tests run on this system so they can be shared between configure
12080# scripts and configure runs, see configure's option --config-cache.
12081# It is not useful on other systems.  If it contains results you don't
12082# want to keep, you may remove or edit it.
12083#
12084# config.status only pays attention to the cache file if you give it
12085# the --recheck option to rerun configure.
12086#
12087# `ac_cv_env_foo' variables (set or unset) will be overridden when
12088# loading this file, other *unset* `ac_cv_foo' will be assigned the
12089# following values.
12090
12091_ACEOF
12092
12093# The following way of writing the cache mishandles newlines in values,
12094# but we know of no workaround that is simple, portable, and efficient.
12095# So, we kill variables containing newlines.
12096# Ultrix sh set writes to stderr and can't be redirected directly,
12097# and sets the high bit in the cache file unless we assign to the vars.
12098(
12099  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12100    eval ac_val=\$$ac_var
12101    case $ac_val in #(
12102    *${as_nl}*)
12103      case $ac_var in #(
12104      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12105$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12106      esac
12107      case $ac_var in #(
12108      _ | IFS | as_nl) ;; #(
12109      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12110      *) { eval $ac_var=; unset $ac_var;} ;;
12111      esac ;;
12112    esac
12113  done
12114
12115  (set) 2>&1 |
12116    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12117    *${as_nl}ac_space=\ *)
12118      # `set' does not quote correctly, so add quotes: double-quote
12119      # substitution turns \\\\ into \\, and sed turns \\ into \.
12120      sed -n \
12121	"s/'/'\\\\''/g;
12122	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12123      ;; #(
12124    *)
12125      # `set' quotes correctly as required by POSIX, so do not add quotes.
12126      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12127      ;;
12128    esac |
12129    sort
12130) |
12131  sed '
12132     /^ac_cv_env_/b end
12133     t clear
12134     :clear
12135     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12136     t end
12137     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12138     :end' >>confcache
12139if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12140  if test -w "$cache_file"; then
12141    test "x$cache_file" != "x/dev/null" &&
12142      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12143$as_echo "$as_me: updating cache $cache_file" >&6;}
12144    cat confcache >$cache_file
12145  else
12146    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12147$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12148  fi
12149fi
12150rm -f confcache
12151
12152test "x$prefix" = xNONE && prefix=$ac_default_prefix
12153# Let make expand exec_prefix.
12154test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12155
12156DEFS=-DHAVE_CONFIG_H
12157
12158ac_libobjs=
12159ac_ltlibobjs=
12160for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12161  # 1. Remove the extension, and $U if already installed.
12162  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12163  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12164  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12165  #    will be set to the directory where LIBOBJS objects are built.
12166  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12167  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12168done
12169LIBOBJS=$ac_libobjs
12170
12171LTLIBOBJS=$ac_ltlibobjs
12172
12173
12174 if test -n "$EXEEXT"; then
12175  am__EXEEXT_TRUE=
12176  am__EXEEXT_FALSE='#'
12177else
12178  am__EXEEXT_TRUE='#'
12179  am__EXEEXT_FALSE=
12180fi
12181
12182if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12183  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12184Usually this means the macro was only invoked conditionally." "$LINENO" 5
12185fi
12186if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
12187  as_fn_error "conditional \"HAVE_PTHREAD\" was never defined.
12188Usually this means the macro was only invoked conditionally." "$LINENO" 5
12189fi
12190if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
12191  as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
12192Usually this means the macro was only invoked conditionally." "$LINENO" 5
12193fi
12194if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
12195  as_fn_error "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
12196Usually this means the macro was only invoked conditionally." "$LINENO" 5
12197fi
12198if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
12199  as_fn_error "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
12200Usually this means the macro was only invoked conditionally." "$LINENO" 5
12201fi
12202if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
12203  as_fn_error "conditional \"NATIVE\" was never defined.
12204Usually this means the macro was only invoked conditionally." "$LINENO" 5
12205fi
12206
12207: ${CONFIG_STATUS=./config.status}
12208ac_write_fail=0
12209ac_clean_files_save=$ac_clean_files
12210ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12212$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12213as_write_fail=0
12214cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12215#! $SHELL
12216# Generated by $as_me.
12217# Run this file to recreate the current configuration.
12218# Compiler output produced by configure, useful for debugging
12219# configure, is in config.log if it exists.
12220
12221debug=false
12222ac_cs_recheck=false
12223ac_cs_silent=false
12224
12225SHELL=\${CONFIG_SHELL-$SHELL}
12226export SHELL
12227_ASEOF
12228cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12229## -------------------- ##
12230## M4sh Initialization. ##
12231## -------------------- ##
12232
12233# Be more Bourne compatible
12234DUALCASE=1; export DUALCASE # for MKS sh
12235if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12236  emulate sh
12237  NULLCMD=:
12238  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12239  # is contrary to our usage.  Disable this feature.
12240  alias -g '${1+"$@"}'='"$@"'
12241  setopt NO_GLOB_SUBST
12242else
12243  case `(set -o) 2>/dev/null` in #(
12244  *posix*) :
12245    set -o posix ;; #(
12246  *) :
12247     ;;
12248esac
12249fi
12250
12251
12252as_nl='
12253'
12254export as_nl
12255# Printing a long string crashes Solaris 7 /usr/bin/printf.
12256as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12257as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12258as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12259# Prefer a ksh shell builtin over an external printf program on Solaris,
12260# but without wasting forks for bash or zsh.
12261if test -z "$BASH_VERSION$ZSH_VERSION" \
12262    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12263  as_echo='print -r --'
12264  as_echo_n='print -rn --'
12265elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12266  as_echo='printf %s\n'
12267  as_echo_n='printf %s'
12268else
12269  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12270    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12271    as_echo_n='/usr/ucb/echo -n'
12272  else
12273    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12274    as_echo_n_body='eval
12275      arg=$1;
12276      case $arg in #(
12277      *"$as_nl"*)
12278	expr "X$arg" : "X\\(.*\\)$as_nl";
12279	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12280      esac;
12281      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12282    '
12283    export as_echo_n_body
12284    as_echo_n='sh -c $as_echo_n_body as_echo'
12285  fi
12286  export as_echo_body
12287  as_echo='sh -c $as_echo_body as_echo'
12288fi
12289
12290# The user is always right.
12291if test "${PATH_SEPARATOR+set}" != set; then
12292  PATH_SEPARATOR=:
12293  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12294    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12295      PATH_SEPARATOR=';'
12296  }
12297fi
12298
12299
12300# IFS
12301# We need space, tab and new line, in precisely that order.  Quoting is
12302# there to prevent editors from complaining about space-tab.
12303# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12304# splitting by setting IFS to empty value.)
12305IFS=" ""	$as_nl"
12306
12307# Find who we are.  Look in the path if we contain no directory separator.
12308case $0 in #((
12309  *[\\/]* ) as_myself=$0 ;;
12310  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311for as_dir in $PATH
12312do
12313  IFS=$as_save_IFS
12314  test -z "$as_dir" && as_dir=.
12315    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12316  done
12317IFS=$as_save_IFS
12318
12319     ;;
12320esac
12321# We did not find ourselves, most probably we were run as `sh COMMAND'
12322# in which case we are not to be found in the path.
12323if test "x$as_myself" = x; then
12324  as_myself=$0
12325fi
12326if test ! -f "$as_myself"; then
12327  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12328  exit 1
12329fi
12330
12331# Unset variables that we do not need and which cause bugs (e.g. in
12332# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12333# suppresses any "Segmentation fault" message there.  '((' could
12334# trigger a bug in pdksh 5.2.14.
12335for as_var in BASH_ENV ENV MAIL MAILPATH
12336do eval test x\${$as_var+set} = xset \
12337  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12338done
12339PS1='$ '
12340PS2='> '
12341PS4='+ '
12342
12343# NLS nuisances.
12344LC_ALL=C
12345export LC_ALL
12346LANGUAGE=C
12347export LANGUAGE
12348
12349# CDPATH.
12350(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12351
12352
12353# as_fn_error ERROR [LINENO LOG_FD]
12354# ---------------------------------
12355# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12356# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12357# script with status $?, using 1 if that was 0.
12358as_fn_error ()
12359{
12360  as_status=$?; test $as_status -eq 0 && as_status=1
12361  if test "$3"; then
12362    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12363    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12364  fi
12365  $as_echo "$as_me: error: $1" >&2
12366  as_fn_exit $as_status
12367} # as_fn_error
12368
12369
12370# as_fn_set_status STATUS
12371# -----------------------
12372# Set $? to STATUS, without forking.
12373as_fn_set_status ()
12374{
12375  return $1
12376} # as_fn_set_status
12377
12378# as_fn_exit STATUS
12379# -----------------
12380# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12381as_fn_exit ()
12382{
12383  set +e
12384  as_fn_set_status $1
12385  exit $1
12386} # as_fn_exit
12387
12388# as_fn_unset VAR
12389# ---------------
12390# Portably unset VAR.
12391as_fn_unset ()
12392{
12393  { eval $1=; unset $1;}
12394}
12395as_unset=as_fn_unset
12396# as_fn_append VAR VALUE
12397# ----------------------
12398# Append the text in VALUE to the end of the definition contained in VAR. Take
12399# advantage of any shell optimizations that allow amortized linear growth over
12400# repeated appends, instead of the typical quadratic growth present in naive
12401# implementations.
12402if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12403  eval 'as_fn_append ()
12404  {
12405    eval $1+=\$2
12406  }'
12407else
12408  as_fn_append ()
12409  {
12410    eval $1=\$$1\$2
12411  }
12412fi # as_fn_append
12413
12414# as_fn_arith ARG...
12415# ------------------
12416# Perform arithmetic evaluation on the ARGs, and store the result in the
12417# global $as_val. Take advantage of shells that can avoid forks. The arguments
12418# must be portable across $(()) and expr.
12419if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12420  eval 'as_fn_arith ()
12421  {
12422    as_val=$(( $* ))
12423  }'
12424else
12425  as_fn_arith ()
12426  {
12427    as_val=`expr "$@" || test $? -eq 1`
12428  }
12429fi # as_fn_arith
12430
12431
12432if expr a : '\(a\)' >/dev/null 2>&1 &&
12433   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12434  as_expr=expr
12435else
12436  as_expr=false
12437fi
12438
12439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12440  as_basename=basename
12441else
12442  as_basename=false
12443fi
12444
12445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12446  as_dirname=dirname
12447else
12448  as_dirname=false
12449fi
12450
12451as_me=`$as_basename -- "$0" ||
12452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12453	 X"$0" : 'X\(//\)$' \| \
12454	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12455$as_echo X/"$0" |
12456    sed '/^.*\/\([^/][^/]*\)\/*$/{
12457	    s//\1/
12458	    q
12459	  }
12460	  /^X\/\(\/\/\)$/{
12461	    s//\1/
12462	    q
12463	  }
12464	  /^X\/\(\/\).*/{
12465	    s//\1/
12466	    q
12467	  }
12468	  s/.*/./; q'`
12469
12470# Avoid depending upon Character Ranges.
12471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12474as_cr_digits='0123456789'
12475as_cr_alnum=$as_cr_Letters$as_cr_digits
12476
12477ECHO_C= ECHO_N= ECHO_T=
12478case `echo -n x` in #(((((
12479-n*)
12480  case `echo 'xy\c'` in
12481  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12482  xy)  ECHO_C='\c';;
12483  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12484       ECHO_T='	';;
12485  esac;;
12486*)
12487  ECHO_N='-n';;
12488esac
12489
12490rm -f conf$$ conf$$.exe conf$$.file
12491if test -d conf$$.dir; then
12492  rm -f conf$$.dir/conf$$.file
12493else
12494  rm -f conf$$.dir
12495  mkdir conf$$.dir 2>/dev/null
12496fi
12497if (echo >conf$$.file) 2>/dev/null; then
12498  if ln -s conf$$.file conf$$ 2>/dev/null; then
12499    as_ln_s='ln -s'
12500    # ... but there are two gotchas:
12501    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12502    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12503    # In both cases, we have to default to `cp -p'.
12504    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12505      as_ln_s='cp -p'
12506  elif ln conf$$.file conf$$ 2>/dev/null; then
12507    as_ln_s=ln
12508  else
12509    as_ln_s='cp -p'
12510  fi
12511else
12512  as_ln_s='cp -p'
12513fi
12514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12515rmdir conf$$.dir 2>/dev/null
12516
12517
12518# as_fn_mkdir_p
12519# -------------
12520# Create "$as_dir" as a directory, including parents if necessary.
12521as_fn_mkdir_p ()
12522{
12523
12524  case $as_dir in #(
12525  -*) as_dir=./$as_dir;;
12526  esac
12527  test -d "$as_dir" || eval $as_mkdir_p || {
12528    as_dirs=
12529    while :; do
12530      case $as_dir in #(
12531      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12532      *) as_qdir=$as_dir;;
12533      esac
12534      as_dirs="'$as_qdir' $as_dirs"
12535      as_dir=`$as_dirname -- "$as_dir" ||
12536$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12537	 X"$as_dir" : 'X\(//\)[^/]' \| \
12538	 X"$as_dir" : 'X\(//\)$' \| \
12539	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12540$as_echo X"$as_dir" |
12541    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12542	    s//\1/
12543	    q
12544	  }
12545	  /^X\(\/\/\)[^/].*/{
12546	    s//\1/
12547	    q
12548	  }
12549	  /^X\(\/\/\)$/{
12550	    s//\1/
12551	    q
12552	  }
12553	  /^X\(\/\).*/{
12554	    s//\1/
12555	    q
12556	  }
12557	  s/.*/./; q'`
12558      test -d "$as_dir" && break
12559    done
12560    test -z "$as_dirs" || eval "mkdir $as_dirs"
12561  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12562
12563
12564} # as_fn_mkdir_p
12565if mkdir -p . 2>/dev/null; then
12566  as_mkdir_p='mkdir -p "$as_dir"'
12567else
12568  test -d ./-p && rmdir ./-p
12569  as_mkdir_p=false
12570fi
12571
12572if test -x / >/dev/null 2>&1; then
12573  as_test_x='test -x'
12574else
12575  if ls -dL / >/dev/null 2>&1; then
12576    as_ls_L_option=L
12577  else
12578    as_ls_L_option=
12579  fi
12580  as_test_x='
12581    eval sh -c '\''
12582      if test -d "$1"; then
12583	test -d "$1/.";
12584      else
12585	case $1 in #(
12586	-*)set "./$1";;
12587	esac;
12588	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12589	???[sx]*):;;*)false;;esac;fi
12590    '\'' sh
12591  '
12592fi
12593as_executable_p=$as_test_x
12594
12595# Sed expression to map a string onto a valid CPP name.
12596as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12597
12598# Sed expression to map a string onto a valid variable name.
12599as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12600
12601
12602exec 6>&1
12603## ----------------------------------- ##
12604## Main body of $CONFIG_STATUS script. ##
12605## ----------------------------------- ##
12606_ASEOF
12607test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12608
12609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12610# Save the log message, to keep $0 and so on meaningful, and to
12611# report actual input values of CONFIG_FILES etc. instead of their
12612# values after options handling.
12613ac_log="
12614This file was extended by package-unused $as_me version-unused, which was
12615generated by GNU Autoconf 2.64.  Invocation command line was
12616
12617  CONFIG_FILES    = $CONFIG_FILES
12618  CONFIG_HEADERS  = $CONFIG_HEADERS
12619  CONFIG_LINKS    = $CONFIG_LINKS
12620  CONFIG_COMMANDS = $CONFIG_COMMANDS
12621  $ $0 $@
12622
12623on `(hostname || uname -n) 2>/dev/null | sed 1q`
12624"
12625
12626_ACEOF
12627
12628case $ac_config_files in *"
12629"*) set x $ac_config_files; shift; ac_config_files=$*;;
12630esac
12631
12632case $ac_config_headers in *"
12633"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12634esac
12635
12636
12637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12638# Files that config.status was made for.
12639config_files="$ac_config_files"
12640config_headers="$ac_config_headers"
12641config_commands="$ac_config_commands"
12642
12643_ACEOF
12644
12645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12646ac_cs_usage="\
12647\`$as_me' instantiates files and other configuration actions
12648from templates according to the current configuration.  Unless the files
12649and actions are specified as TAGs, all are instantiated by default.
12650
12651Usage: $0 [OPTION]... [TAG]...
12652
12653  -h, --help       print this help, then exit
12654  -V, --version    print version number and configuration settings, then exit
12655  -q, --quiet, --silent
12656                   do not print progress messages
12657  -d, --debug      don't remove temporary files
12658      --recheck    update $as_me by reconfiguring in the same conditions
12659      --file=FILE[:TEMPLATE]
12660                   instantiate the configuration file FILE
12661      --header=FILE[:TEMPLATE]
12662                   instantiate the configuration header FILE
12663
12664Configuration files:
12665$config_files
12666
12667Configuration headers:
12668$config_headers
12669
12670Configuration commands:
12671$config_commands
12672
12673Report bugs to the package provider."
12674
12675_ACEOF
12676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12677ac_cs_version="\\
12678package-unused config.status version-unused
12679configured by $0, generated by GNU Autoconf 2.64,
12680  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12681
12682Copyright (C) 2009 Free Software Foundation, Inc.
12683This config.status script is free software; the Free Software Foundation
12684gives unlimited permission to copy, distribute and modify it."
12685
12686ac_pwd='$ac_pwd'
12687srcdir='$srcdir'
12688INSTALL='$INSTALL'
12689MKDIR_P='$MKDIR_P'
12690AWK='$AWK'
12691test -n "\$AWK" || AWK=awk
12692_ACEOF
12693
12694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12695# The default lists apply if the user does not specify any file.
12696ac_need_defaults=:
12697while test $# != 0
12698do
12699  case $1 in
12700  --*=*)
12701    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12702    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12703    ac_shift=:
12704    ;;
12705  *)
12706    ac_option=$1
12707    ac_optarg=$2
12708    ac_shift=shift
12709    ;;
12710  esac
12711
12712  case $ac_option in
12713  # Handling of the options.
12714  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12715    ac_cs_recheck=: ;;
12716  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12717    $as_echo "$ac_cs_version"; exit ;;
12718  --debug | --debu | --deb | --de | --d | -d )
12719    debug=: ;;
12720  --file | --fil | --fi | --f )
12721    $ac_shift
12722    case $ac_optarg in
12723    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12724    esac
12725    as_fn_append CONFIG_FILES " '$ac_optarg'"
12726    ac_need_defaults=false;;
12727  --header | --heade | --head | --hea )
12728    $ac_shift
12729    case $ac_optarg in
12730    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12731    esac
12732    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12733    ac_need_defaults=false;;
12734  --he | --h)
12735    # Conflict between --help and --header
12736    as_fn_error "ambiguous option: \`$1'
12737Try \`$0 --help' for more information.";;
12738  --help | --hel | -h )
12739    $as_echo "$ac_cs_usage"; exit ;;
12740  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12741  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12742    ac_cs_silent=: ;;
12743
12744  # This is an error.
12745  -*) as_fn_error "unrecognized option: \`$1'
12746Try \`$0 --help' for more information." ;;
12747
12748  *) as_fn_append ac_config_targets " $1"
12749     ac_need_defaults=false ;;
12750
12751  esac
12752  shift
12753done
12754
12755ac_configure_extra_args=
12756
12757if $ac_cs_silent; then
12758  exec 6>/dev/null
12759  ac_configure_extra_args="$ac_configure_extra_args --silent"
12760fi
12761
12762_ACEOF
12763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12764if \$ac_cs_recheck; then
12765  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12766  shift
12767  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12768  CONFIG_SHELL='$SHELL'
12769  export CONFIG_SHELL
12770  exec "\$@"
12771fi
12772
12773_ACEOF
12774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12775exec 5>>config.log
12776{
12777  echo
12778  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12779## Running $as_me. ##
12780_ASBOX
12781  $as_echo "$ac_log"
12782} >&5
12783
12784_ACEOF
12785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12786#
12787# INIT-COMMANDS
12788#
12789
12790srcdir="$srcdir"
12791host="$host"
12792target="$target"
12793with_multisubdir="$with_multisubdir"
12794with_multisrctop="$with_multisrctop"
12795with_target_subdir="$with_target_subdir"
12796ac_configure_args="${multilib_arg} ${ac_configure_args}"
12797multi_basedir="$multi_basedir"
12798CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12799CC="$CC"
12800
12801
12802# The HP-UX ksh and POSIX shell print the target directory to stdout
12803# if CDPATH is set.
12804(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12805
12806sed_quote_subst='$sed_quote_subst'
12807double_quote_subst='$double_quote_subst'
12808delay_variable_subst='$delay_variable_subst'
12809macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12810macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12811enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12812enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12813pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12814enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12815host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12816host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12817host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12818build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12819build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12820build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12821SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12822Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12823GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12824EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12825FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12826LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12827NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12828LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12829max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12830ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12831exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12832lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12833lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12834lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12835reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12836reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12837deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12838file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12839AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12840AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12841STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12842RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12843old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12844old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12845old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12846CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12847CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12848compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12849GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12850lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12851lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12852lt_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"`'
12853lt_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"`'
12854objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12855SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12856ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12857MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12858lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12859lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12860lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12861lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12862lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12863need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12864DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12865NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12866LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12867OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12868OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12869libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12870shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12871extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12872archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12873enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12874export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12875whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12876compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12877old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12878old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12879archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12880archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12881module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12882module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12883with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12884allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12885no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12886hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12887hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12888hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12889hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12890hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12891hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12892hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12893hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12894inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12895link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12896fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12897always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12898export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12899exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12900include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12901prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12902file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12903variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12904need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12905need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12906version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12907runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12908shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12909shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12910libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12911library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12912soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12913postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12914postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12915finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12916finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12917hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12918sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12919sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12920hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12921enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12922enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12923enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12924old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12925striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12926
12927LTCC='$LTCC'
12928LTCFLAGS='$LTCFLAGS'
12929compiler='$compiler_DEFAULT'
12930
12931# Quote evaled strings.
12932for var in SED \
12933GREP \
12934EGREP \
12935FGREP \
12936LD \
12937NM \
12938LN_S \
12939lt_SP2NL \
12940lt_NL2SP \
12941reload_flag \
12942deplibs_check_method \
12943file_magic_cmd \
12944AR \
12945AR_FLAGS \
12946STRIP \
12947RANLIB \
12948CC \
12949CFLAGS \
12950compiler \
12951lt_cv_sys_global_symbol_pipe \
12952lt_cv_sys_global_symbol_to_cdecl \
12953lt_cv_sys_global_symbol_to_c_name_address \
12954lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12955SHELL \
12956ECHO \
12957lt_prog_compiler_no_builtin_flag \
12958lt_prog_compiler_wl \
12959lt_prog_compiler_pic \
12960lt_prog_compiler_static \
12961lt_cv_prog_compiler_c_o \
12962need_locks \
12963DSYMUTIL \
12964NMEDIT \
12965LIPO \
12966OTOOL \
12967OTOOL64 \
12968shrext_cmds \
12969export_dynamic_flag_spec \
12970whole_archive_flag_spec \
12971compiler_needs_object \
12972with_gnu_ld \
12973allow_undefined_flag \
12974no_undefined_flag \
12975hardcode_libdir_flag_spec \
12976hardcode_libdir_flag_spec_ld \
12977hardcode_libdir_separator \
12978fix_srcfile_path \
12979exclude_expsyms \
12980include_expsyms \
12981file_list_spec \
12982variables_saved_for_relink \
12983libname_spec \
12984library_names_spec \
12985soname_spec \
12986finish_eval \
12987old_striplib \
12988striplib; do
12989    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12990    *[\\\\\\\`\\"\\\$]*)
12991      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12992      ;;
12993    *)
12994      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12995      ;;
12996    esac
12997done
12998
12999# Double-quote double-evaled strings.
13000for var in reload_cmds \
13001old_postinstall_cmds \
13002old_postuninstall_cmds \
13003old_archive_cmds \
13004extract_expsyms_cmds \
13005old_archive_from_new_cmds \
13006old_archive_from_expsyms_cmds \
13007archive_cmds \
13008archive_expsym_cmds \
13009module_cmds \
13010module_expsym_cmds \
13011export_symbols_cmds \
13012prelink_cmds \
13013postinstall_cmds \
13014postuninstall_cmds \
13015finish_cmds \
13016sys_lib_search_path_spec \
13017sys_lib_dlsearch_path_spec; do
13018    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13019    *[\\\\\\\`\\"\\\$]*)
13020      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13021      ;;
13022    *)
13023      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13024      ;;
13025    esac
13026done
13027
13028# Fix-up fallback echo if it was mangled by the above quoting rules.
13029case \$lt_ECHO in
13030*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13031  ;;
13032esac
13033
13034ac_aux_dir='$ac_aux_dir'
13035xsi_shell='$xsi_shell'
13036lt_shell_append='$lt_shell_append'
13037
13038# See if we are running on zsh, and set the options which allow our
13039# commands through without removal of \ escapes INIT.
13040if test -n "\${ZSH_VERSION+set}" ; then
13041   setopt NO_GLOB_SUBST
13042fi
13043
13044
13045    PACKAGE='$PACKAGE'
13046    VERSION='$VERSION'
13047    TIMESTAMP='$TIMESTAMP'
13048    RM='$RM'
13049    ofile='$ofile'
13050
13051
13052
13053
13054# Variables needed in config.status (file generation) which aren't already
13055# passed by autoconf.
13056SUBDIRS="$SUBDIRS"
13057
13058
13059_ACEOF
13060
13061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13062
13063# Handling of arguments.
13064for ac_config_target in $ac_config_targets
13065do
13066  case $ac_config_target in
13067    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13068    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13069    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13070    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13071    "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
13072    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13073
13074  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13075  esac
13076done
13077
13078
13079# If the user did not use the arguments to specify the items to instantiate,
13080# then the envvar interface is used.  Set only those that are not.
13081# We use the long form for the default assignment because of an extremely
13082# bizarre bug on SunOS 4.1.3.
13083if $ac_need_defaults; then
13084  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13085  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13086  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13087fi
13088
13089# Have a temporary directory for convenience.  Make it in the build tree
13090# simply because there is no reason against having it here, and in addition,
13091# creating and moving files from /tmp can sometimes cause problems.
13092# Hook for its removal unless debugging.
13093# Note that there is a small window in which the directory will not be cleaned:
13094# after its creation but before its name has been assigned to `$tmp'.
13095$debug ||
13096{
13097  tmp=
13098  trap 'exit_status=$?
13099  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13100' 0
13101  trap 'as_fn_exit 1' 1 2 13 15
13102}
13103# Create a (secure) tmp directory for tmp files.
13104
13105{
13106  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13107  test -n "$tmp" && test -d "$tmp"
13108}  ||
13109{
13110  tmp=./conf$$-$RANDOM
13111  (umask 077 && mkdir "$tmp")
13112} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13113
13114# Set up the scripts for CONFIG_FILES section.
13115# No need to generate them if there are no CONFIG_FILES.
13116# This happens for instance with `./config.status config.h'.
13117if test -n "$CONFIG_FILES"; then
13118
13119
13120ac_cr=`echo X | tr X '\015'`
13121# On cygwin, bash can eat \r inside `` if the user requested igncr.
13122# But we know of no other shell where ac_cr would be empty at this
13123# point, so we can use a bashism as a fallback.
13124if test "x$ac_cr" = x; then
13125  eval ac_cr=\$\'\\r\'
13126fi
13127ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13128if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13129  ac_cs_awk_cr='\r'
13130else
13131  ac_cs_awk_cr=$ac_cr
13132fi
13133
13134echo 'BEGIN {' >"$tmp/subs1.awk" &&
13135_ACEOF
13136
13137
13138{
13139  echo "cat >conf$$subs.awk <<_ACEOF" &&
13140  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13141  echo "_ACEOF"
13142} >conf$$subs.sh ||
13143  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13144ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13145ac_delim='%!_!# '
13146for ac_last_try in false false false false false :; do
13147  . ./conf$$subs.sh ||
13148    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13149
13150  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13151  if test $ac_delim_n = $ac_delim_num; then
13152    break
13153  elif $ac_last_try; then
13154    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13155  else
13156    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13157  fi
13158done
13159rm -f conf$$subs.sh
13160
13161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13162cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13163_ACEOF
13164sed -n '
13165h
13166s/^/S["/; s/!.*/"]=/
13167p
13168g
13169s/^[^!]*!//
13170:repl
13171t repl
13172s/'"$ac_delim"'$//
13173t delim
13174:nl
13175h
13176s/\(.\{148\}\).*/\1/
13177t more1
13178s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13179p
13180n
13181b repl
13182:more1
13183s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13184p
13185g
13186s/.\{148\}//
13187t nl
13188:delim
13189h
13190s/\(.\{148\}\).*/\1/
13191t more2
13192s/["\\]/\\&/g; s/^/"/; s/$/"/
13193p
13194b
13195:more2
13196s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13197p
13198g
13199s/.\{148\}//
13200t delim
13201' <conf$$subs.awk | sed '
13202/^[^""]/{
13203  N
13204  s/\n//
13205}
13206' >>$CONFIG_STATUS || ac_write_fail=1
13207rm -f conf$$subs.awk
13208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13209_ACAWK
13210cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13211  for (key in S) S_is_set[key] = 1
13212  FS = ""
13213
13214}
13215{
13216  line = $ 0
13217  nfields = split(line, field, "@")
13218  substed = 0
13219  len = length(field[1])
13220  for (i = 2; i < nfields; i++) {
13221    key = field[i]
13222    keylen = length(key)
13223    if (S_is_set[key]) {
13224      value = S[key]
13225      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13226      len += length(value) + length(field[++i])
13227      substed = 1
13228    } else
13229      len += 1 + keylen
13230  }
13231
13232  print line
13233}
13234
13235_ACAWK
13236_ACEOF
13237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13238if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13239  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13240else
13241  cat
13242fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13243  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13244_ACEOF
13245
13246# VPATH may cause trouble with some makes, so we remove $(srcdir),
13247# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13248# trailing colons and then remove the whole line if VPATH becomes empty
13249# (actually we leave an empty line to preserve line numbers).
13250if test "x$srcdir" = x.; then
13251  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13252s/:*\$(srcdir):*/:/
13253s/:*\${srcdir}:*/:/
13254s/:*@srcdir@:*/:/
13255s/^\([^=]*=[	 ]*\):*/\1/
13256s/:*$//
13257s/^[^=]*=[	 ]*$//
13258}'
13259fi
13260
13261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13262fi # test -n "$CONFIG_FILES"
13263
13264# Set up the scripts for CONFIG_HEADERS section.
13265# No need to generate them if there are no CONFIG_HEADERS.
13266# This happens for instance with `./config.status Makefile'.
13267if test -n "$CONFIG_HEADERS"; then
13268cat >"$tmp/defines.awk" <<\_ACAWK ||
13269BEGIN {
13270_ACEOF
13271
13272# Transform confdefs.h into an awk script `defines.awk', embedded as
13273# here-document in config.status, that substitutes the proper values into
13274# config.h.in to produce config.h.
13275
13276# Create a delimiter string that does not exist in confdefs.h, to ease
13277# handling of long lines.
13278ac_delim='%!_!# '
13279for ac_last_try in false false :; do
13280  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13281  if test -z "$ac_t"; then
13282    break
13283  elif $ac_last_try; then
13284    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13285  else
13286    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13287  fi
13288done
13289
13290# For the awk script, D is an array of macro values keyed by name,
13291# likewise P contains macro parameters if any.  Preserve backslash
13292# newline sequences.
13293
13294ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13295sed -n '
13296s/.\{148\}/&'"$ac_delim"'/g
13297t rset
13298:rset
13299s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13300t def
13301d
13302:def
13303s/\\$//
13304t bsnl
13305s/["\\]/\\&/g
13306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13307D["\1"]=" \3"/p
13308s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13309d
13310:bsnl
13311s/["\\]/\\&/g
13312s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13313D["\1"]=" \3\\\\\\n"\\/p
13314t cont
13315s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13316t cont
13317d
13318:cont
13319n
13320s/.\{148\}/&'"$ac_delim"'/g
13321t clear
13322:clear
13323s/\\$//
13324t bsnlc
13325s/["\\]/\\&/g; s/^/"/; s/$/"/p
13326d
13327:bsnlc
13328s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13329b cont
13330' <confdefs.h | sed '
13331s/'"$ac_delim"'/"\\\
13332"/g' >>$CONFIG_STATUS || ac_write_fail=1
13333
13334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13335  for (key in D) D_is_set[key] = 1
13336  FS = ""
13337}
13338/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13339  line = \$ 0
13340  split(line, arg, " ")
13341  if (arg[1] == "#") {
13342    defundef = arg[2]
13343    mac1 = arg[3]
13344  } else {
13345    defundef = substr(arg[1], 2)
13346    mac1 = arg[2]
13347  }
13348  split(mac1, mac2, "(") #)
13349  macro = mac2[1]
13350  prefix = substr(line, 1, index(line, defundef) - 1)
13351  if (D_is_set[macro]) {
13352    # Preserve the white space surrounding the "#".
13353    print prefix "define", macro P[macro] D[macro]
13354    next
13355  } else {
13356    # Replace #undef with comments.  This is necessary, for example,
13357    # in the case of _POSIX_SOURCE, which is predefined and required
13358    # on some systems where configure will not decide to define it.
13359    if (defundef == "undef") {
13360      print "/*", prefix defundef, macro, "*/"
13361      next
13362    }
13363  }
13364}
13365{ print }
13366_ACAWK
13367_ACEOF
13368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13369  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13370fi # test -n "$CONFIG_HEADERS"
13371
13372
13373eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13374shift
13375for ac_tag
13376do
13377  case $ac_tag in
13378  :[FHLC]) ac_mode=$ac_tag; continue;;
13379  esac
13380  case $ac_mode$ac_tag in
13381  :[FHL]*:*);;
13382  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13383  :[FH]-) ac_tag=-:-;;
13384  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13385  esac
13386  ac_save_IFS=$IFS
13387  IFS=:
13388  set x $ac_tag
13389  IFS=$ac_save_IFS
13390  shift
13391  ac_file=$1
13392  shift
13393
13394  case $ac_mode in
13395  :L) ac_source=$1;;
13396  :[FH])
13397    ac_file_inputs=
13398    for ac_f
13399    do
13400      case $ac_f in
13401      -) ac_f="$tmp/stdin";;
13402      *) # Look for the file first in the build tree, then in the source tree
13403	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13404	 # because $ac_f cannot contain `:'.
13405	 test -f "$ac_f" ||
13406	   case $ac_f in
13407	   [\\/$]*) false;;
13408	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13409	   esac ||
13410	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13411      esac
13412      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13413      as_fn_append ac_file_inputs " '$ac_f'"
13414    done
13415
13416    # Let's still pretend it is `configure' which instantiates (i.e., don't
13417    # use $as_me), people would be surprised to read:
13418    #    /* config.h.  Generated by config.status.  */
13419    configure_input='Generated from '`
13420	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13421	`' by configure.'
13422    if test x"$ac_file" != x-; then
13423      configure_input="$ac_file.  $configure_input"
13424      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13425$as_echo "$as_me: creating $ac_file" >&6;}
13426    fi
13427    # Neutralize special characters interpreted by sed in replacement strings.
13428    case $configure_input in #(
13429    *\&* | *\|* | *\\* )
13430       ac_sed_conf_input=`$as_echo "$configure_input" |
13431       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13432    *) ac_sed_conf_input=$configure_input;;
13433    esac
13434
13435    case $ac_tag in
13436    *:-:* | *:-) cat >"$tmp/stdin" \
13437      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13438    esac
13439    ;;
13440  esac
13441
13442  ac_dir=`$as_dirname -- "$ac_file" ||
13443$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13444	 X"$ac_file" : 'X\(//\)[^/]' \| \
13445	 X"$ac_file" : 'X\(//\)$' \| \
13446	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13447$as_echo X"$ac_file" |
13448    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13449	    s//\1/
13450	    q
13451	  }
13452	  /^X\(\/\/\)[^/].*/{
13453	    s//\1/
13454	    q
13455	  }
13456	  /^X\(\/\/\)$/{
13457	    s//\1/
13458	    q
13459	  }
13460	  /^X\(\/\).*/{
13461	    s//\1/
13462	    q
13463	  }
13464	  s/.*/./; q'`
13465  as_dir="$ac_dir"; as_fn_mkdir_p
13466  ac_builddir=.
13467
13468case "$ac_dir" in
13469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13470*)
13471  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13472  # A ".." for each directory in $ac_dir_suffix.
13473  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13474  case $ac_top_builddir_sub in
13475  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13476  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13477  esac ;;
13478esac
13479ac_abs_top_builddir=$ac_pwd
13480ac_abs_builddir=$ac_pwd$ac_dir_suffix
13481# for backward compatibility:
13482ac_top_builddir=$ac_top_build_prefix
13483
13484case $srcdir in
13485  .)  # We are building in place.
13486    ac_srcdir=.
13487    ac_top_srcdir=$ac_top_builddir_sub
13488    ac_abs_top_srcdir=$ac_pwd ;;
13489  [\\/]* | ?:[\\/]* )  # Absolute name.
13490    ac_srcdir=$srcdir$ac_dir_suffix;
13491    ac_top_srcdir=$srcdir
13492    ac_abs_top_srcdir=$srcdir ;;
13493  *) # Relative name.
13494    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13495    ac_top_srcdir=$ac_top_build_prefix$srcdir
13496    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13497esac
13498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13499
13500
13501  case $ac_mode in
13502  :F)
13503  #
13504  # CONFIG_FILE
13505  #
13506
13507  case $INSTALL in
13508  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13509  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13510  esac
13511  ac_MKDIR_P=$MKDIR_P
13512  case $MKDIR_P in
13513  [\\/$]* | ?:[\\/]* ) ;;
13514  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13515  esac
13516_ACEOF
13517
13518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13519# If the template does not know about datarootdir, expand it.
13520# FIXME: This hack should be removed a few years after 2.60.
13521ac_datarootdir_hack=; ac_datarootdir_seen=
13522ac_sed_dataroot='
13523/datarootdir/ {
13524  p
13525  q
13526}
13527/@datadir@/p
13528/@docdir@/p
13529/@infodir@/p
13530/@localedir@/p
13531/@mandir@/p'
13532case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13533*datarootdir*) ac_datarootdir_seen=yes;;
13534*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13535  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13536$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13537_ACEOF
13538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13539  ac_datarootdir_hack='
13540  s&@datadir@&$datadir&g
13541  s&@docdir@&$docdir&g
13542  s&@infodir@&$infodir&g
13543  s&@localedir@&$localedir&g
13544  s&@mandir@&$mandir&g
13545  s&\\\${datarootdir}&$datarootdir&g' ;;
13546esac
13547_ACEOF
13548
13549# Neutralize VPATH when `$srcdir' = `.'.
13550# Shell code in configure.ac might set extrasub.
13551# FIXME: do we really want to maintain this feature?
13552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13553ac_sed_extra="$ac_vpsub
13554$extrasub
13555_ACEOF
13556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13557:t
13558/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13559s|@configure_input@|$ac_sed_conf_input|;t t
13560s&@top_builddir@&$ac_top_builddir_sub&;t t
13561s&@top_build_prefix@&$ac_top_build_prefix&;t t
13562s&@srcdir@&$ac_srcdir&;t t
13563s&@abs_srcdir@&$ac_abs_srcdir&;t t
13564s&@top_srcdir@&$ac_top_srcdir&;t t
13565s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13566s&@builddir@&$ac_builddir&;t t
13567s&@abs_builddir@&$ac_abs_builddir&;t t
13568s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13569s&@INSTALL@&$ac_INSTALL&;t t
13570s&@MKDIR_P@&$ac_MKDIR_P&;t t
13571$ac_datarootdir_hack
13572"
13573eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13574  || as_fn_error "could not create $ac_file" "$LINENO" 5
13575
13576test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13577  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13578  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13579  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13580which seems to be undefined.  Please make sure it is defined." >&5
13581$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13582which seems to be undefined.  Please make sure it is defined." >&2;}
13583
13584  rm -f "$tmp/stdin"
13585  case $ac_file in
13586  -) cat "$tmp/out" && rm -f "$tmp/out";;
13587  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13588  esac \
13589  || as_fn_error "could not create $ac_file" "$LINENO" 5
13590 ;;
13591  :H)
13592  #
13593  # CONFIG_HEADER
13594  #
13595  if test x"$ac_file" != x-; then
13596    {
13597      $as_echo "/* $configure_input  */" \
13598      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13599    } >"$tmp/config.h" \
13600      || as_fn_error "could not create $ac_file" "$LINENO" 5
13601    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13602      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13603$as_echo "$as_me: $ac_file is unchanged" >&6;}
13604    else
13605      rm -f "$ac_file"
13606      mv "$tmp/config.h" "$ac_file" \
13607	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13608    fi
13609  else
13610    $as_echo "/* $configure_input  */" \
13611      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13612      || as_fn_error "could not create -" "$LINENO" 5
13613  fi
13614# Compute "$ac_file"'s index in $config_headers.
13615_am_arg="$ac_file"
13616_am_stamp_count=1
13617for _am_header in $config_headers :; do
13618  case $_am_header in
13619    $_am_arg | $_am_arg:* )
13620      break ;;
13621    * )
13622      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13623  esac
13624done
13625echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13626$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13627	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13628	 X"$_am_arg" : 'X\(//\)$' \| \
13629	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13630$as_echo X"$_am_arg" |
13631    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13632	    s//\1/
13633	    q
13634	  }
13635	  /^X\(\/\/\)[^/].*/{
13636	    s//\1/
13637	    q
13638	  }
13639	  /^X\(\/\/\)$/{
13640	    s//\1/
13641	    q
13642	  }
13643	  /^X\(\/\).*/{
13644	    s//\1/
13645	    q
13646	  }
13647	  s/.*/./; q'`/stamp-h$_am_stamp_count
13648 ;;
13649
13650  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13651$as_echo "$as_me: executing $ac_file commands" >&6;}
13652 ;;
13653  esac
13654
13655
13656  case $ac_file$ac_mode in
13657    "default-1":C)
13658# Only add multilib support code if we just rebuilt the top-level
13659# Makefile.
13660case " $CONFIG_FILES " in
13661 *" Makefile "*)
13662   ac_file=Makefile . ${multi_basedir}/config-ml.in
13663   ;;
13664esac ;;
13665    "libtool":C)
13666
13667    # See if we are running on zsh, and set the options which allow our
13668    # commands through without removal of \ escapes.
13669    if test -n "${ZSH_VERSION+set}" ; then
13670      setopt NO_GLOB_SUBST
13671    fi
13672
13673    cfgfile="${ofile}T"
13674    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13675    $RM "$cfgfile"
13676
13677    cat <<_LT_EOF >> "$cfgfile"
13678#! $SHELL
13679
13680# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13681# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13682# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13683# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13684#
13685#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13686#                 2006, 2007, 2008 Free Software Foundation, Inc.
13687#   Written by Gordon Matzigkeit, 1996
13688#
13689#   This file is part of GNU Libtool.
13690#
13691# GNU Libtool is free software; you can redistribute it and/or
13692# modify it under the terms of the GNU General Public License as
13693# published by the Free Software Foundation; either version 2 of
13694# the License, or (at your option) any later version.
13695#
13696# As a special exception to the GNU General Public License,
13697# if you distribute this file as part of a program or library that
13698# is built using GNU Libtool, you may include this file under the
13699# same distribution terms that you use for the rest of that program.
13700#
13701# GNU Libtool is distributed in the hope that it will be useful,
13702# but WITHOUT ANY WARRANTY; without even the implied warranty of
13703# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13704# GNU General Public License for more details.
13705#
13706# You should have received a copy of the GNU General Public License
13707# along with GNU Libtool; see the file COPYING.  If not, a copy
13708# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13709# obtained by writing to the Free Software Foundation, Inc.,
13710# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13711
13712
13713# The names of the tagged configurations supported by this script.
13714available_tags=""
13715
13716# ### BEGIN LIBTOOL CONFIG
13717
13718# Which release of libtool.m4 was used?
13719macro_version=$macro_version
13720macro_revision=$macro_revision
13721
13722# Whether or not to build shared libraries.
13723build_libtool_libs=$enable_shared
13724
13725# Whether or not to build static libraries.
13726build_old_libs=$enable_static
13727
13728# What type of objects to build.
13729pic_mode=$pic_mode
13730
13731# Whether or not to optimize for fast installation.
13732fast_install=$enable_fast_install
13733
13734# The host system.
13735host_alias=$host_alias
13736host=$host
13737host_os=$host_os
13738
13739# The build system.
13740build_alias=$build_alias
13741build=$build
13742build_os=$build_os
13743
13744# A sed program that does not truncate output.
13745SED=$lt_SED
13746
13747# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13748Xsed="\$SED -e 1s/^X//"
13749
13750# A grep program that handles long lines.
13751GREP=$lt_GREP
13752
13753# An ERE matcher.
13754EGREP=$lt_EGREP
13755
13756# A literal string matcher.
13757FGREP=$lt_FGREP
13758
13759# A BSD- or MS-compatible name lister.
13760NM=$lt_NM
13761
13762# Whether we need soft or hard links.
13763LN_S=$lt_LN_S
13764
13765# What is the maximum length of a command?
13766max_cmd_len=$max_cmd_len
13767
13768# Object file suffix (normally "o").
13769objext=$ac_objext
13770
13771# Executable file suffix (normally "").
13772exeext=$exeext
13773
13774# whether the shell understands "unset".
13775lt_unset=$lt_unset
13776
13777# turn spaces into newlines.
13778SP2NL=$lt_lt_SP2NL
13779
13780# turn newlines into spaces.
13781NL2SP=$lt_lt_NL2SP
13782
13783# How to create reloadable object files.
13784reload_flag=$lt_reload_flag
13785reload_cmds=$lt_reload_cmds
13786
13787# Method to check whether dependent libraries are shared objects.
13788deplibs_check_method=$lt_deplibs_check_method
13789
13790# Command to use when deplibs_check_method == "file_magic".
13791file_magic_cmd=$lt_file_magic_cmd
13792
13793# The archiver.
13794AR=$lt_AR
13795AR_FLAGS=$lt_AR_FLAGS
13796
13797# A symbol stripping program.
13798STRIP=$lt_STRIP
13799
13800# Commands used to install an old-style archive.
13801RANLIB=$lt_RANLIB
13802old_postinstall_cmds=$lt_old_postinstall_cmds
13803old_postuninstall_cmds=$lt_old_postuninstall_cmds
13804
13805# A C compiler.
13806LTCC=$lt_CC
13807
13808# LTCC compiler flags.
13809LTCFLAGS=$lt_CFLAGS
13810
13811# Take the output of nm and produce a listing of raw symbols and C names.
13812global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13813
13814# Transform the output of nm in a proper C declaration.
13815global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13816
13817# Transform the output of nm in a C name address pair.
13818global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13819
13820# Transform the output of nm in a C name address pair when lib prefix is needed.
13821global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13822
13823# The name of the directory that contains temporary libtool files.
13824objdir=$objdir
13825
13826# Shell to use when invoking shell scripts.
13827SHELL=$lt_SHELL
13828
13829# An echo program that does not interpret backslashes.
13830ECHO=$lt_ECHO
13831
13832# Used to examine libraries when file_magic_cmd begins with "file".
13833MAGIC_CMD=$MAGIC_CMD
13834
13835# Must we lock files when doing compilation?
13836need_locks=$lt_need_locks
13837
13838# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13839DSYMUTIL=$lt_DSYMUTIL
13840
13841# Tool to change global to local symbols on Mac OS X.
13842NMEDIT=$lt_NMEDIT
13843
13844# Tool to manipulate fat objects and archives on Mac OS X.
13845LIPO=$lt_LIPO
13846
13847# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13848OTOOL=$lt_OTOOL
13849
13850# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13851OTOOL64=$lt_OTOOL64
13852
13853# Old archive suffix (normally "a").
13854libext=$libext
13855
13856# Shared library suffix (normally ".so").
13857shrext_cmds=$lt_shrext_cmds
13858
13859# The commands to extract the exported symbol list from a shared archive.
13860extract_expsyms_cmds=$lt_extract_expsyms_cmds
13861
13862# Variables whose values should be saved in libtool wrapper scripts and
13863# restored at link time.
13864variables_saved_for_relink=$lt_variables_saved_for_relink
13865
13866# Do we need the "lib" prefix for modules?
13867need_lib_prefix=$need_lib_prefix
13868
13869# Do we need a version for libraries?
13870need_version=$need_version
13871
13872# Library versioning type.
13873version_type=$version_type
13874
13875# Shared library runtime path variable.
13876runpath_var=$runpath_var
13877
13878# Shared library path variable.
13879shlibpath_var=$shlibpath_var
13880
13881# Is shlibpath searched before the hard-coded library search path?
13882shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13883
13884# Format of library name prefix.
13885libname_spec=$lt_libname_spec
13886
13887# List of archive names.  First name is the real one, the rest are links.
13888# The last name is the one that the linker finds with -lNAME
13889library_names_spec=$lt_library_names_spec
13890
13891# The coded name of the library, if different from the real name.
13892soname_spec=$lt_soname_spec
13893
13894# Command to use after installation of a shared archive.
13895postinstall_cmds=$lt_postinstall_cmds
13896
13897# Command to use after uninstallation of a shared archive.
13898postuninstall_cmds=$lt_postuninstall_cmds
13899
13900# Commands used to finish a libtool library installation in a directory.
13901finish_cmds=$lt_finish_cmds
13902
13903# As "finish_cmds", except a single script fragment to be evaled but
13904# not shown.
13905finish_eval=$lt_finish_eval
13906
13907# Whether we should hardcode library paths into libraries.
13908hardcode_into_libs=$hardcode_into_libs
13909
13910# Compile-time system search path for libraries.
13911sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13912
13913# Run-time system search path for libraries.
13914sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13915
13916# Whether dlopen is supported.
13917dlopen_support=$enable_dlopen
13918
13919# Whether dlopen of programs is supported.
13920dlopen_self=$enable_dlopen_self
13921
13922# Whether dlopen of statically linked programs is supported.
13923dlopen_self_static=$enable_dlopen_self_static
13924
13925# Commands to strip libraries.
13926old_striplib=$lt_old_striplib
13927striplib=$lt_striplib
13928
13929
13930# The linker used to build libraries.
13931LD=$lt_LD
13932
13933# Commands used to build an old-style archive.
13934old_archive_cmds=$lt_old_archive_cmds
13935
13936# A language specific compiler.
13937CC=$lt_compiler
13938
13939# Is the compiler the GNU compiler?
13940with_gcc=$GCC
13941
13942# Compiler flag to turn off builtin functions.
13943no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13944
13945# How to pass a linker flag through the compiler.
13946wl=$lt_lt_prog_compiler_wl
13947
13948# Additional compiler flags for building library objects.
13949pic_flag=$lt_lt_prog_compiler_pic
13950
13951# Compiler flag to prevent dynamic linking.
13952link_static_flag=$lt_lt_prog_compiler_static
13953
13954# Does compiler simultaneously support -c and -o options?
13955compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13956
13957# Whether or not to add -lc for building shared libraries.
13958build_libtool_need_lc=$archive_cmds_need_lc
13959
13960# Whether or not to disallow shared libs when runtime libs are static.
13961allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13962
13963# Compiler flag to allow reflexive dlopens.
13964export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13965
13966# Compiler flag to generate shared objects directly from archives.
13967whole_archive_flag_spec=$lt_whole_archive_flag_spec
13968
13969# Whether the compiler copes with passing no objects directly.
13970compiler_needs_object=$lt_compiler_needs_object
13971
13972# Create an old-style archive from a shared archive.
13973old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13974
13975# Create a temporary old-style archive to link instead of a shared archive.
13976old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13977
13978# Commands used to build a shared archive.
13979archive_cmds=$lt_archive_cmds
13980archive_expsym_cmds=$lt_archive_expsym_cmds
13981
13982# Commands used to build a loadable module if different from building
13983# a shared archive.
13984module_cmds=$lt_module_cmds
13985module_expsym_cmds=$lt_module_expsym_cmds
13986
13987# Whether we are building with GNU ld or not.
13988with_gnu_ld=$lt_with_gnu_ld
13989
13990# Flag that allows shared libraries with undefined symbols to be built.
13991allow_undefined_flag=$lt_allow_undefined_flag
13992
13993# Flag that enforces no undefined symbols.
13994no_undefined_flag=$lt_no_undefined_flag
13995
13996# Flag to hardcode \$libdir into a binary during linking.
13997# This must work even if \$libdir does not exist
13998hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13999
14000# If ld is used when linking, flag to hardcode \$libdir into a binary
14001# during linking.  This must work even if \$libdir does not exist.
14002hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14003
14004# Whether we need a single "-rpath" flag with a separated argument.
14005hardcode_libdir_separator=$lt_hardcode_libdir_separator
14006
14007# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14008# DIR into the resulting binary.
14009hardcode_direct=$hardcode_direct
14010
14011# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14012# DIR into the resulting binary and the resulting library dependency is
14013# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14014# library is relocated.
14015hardcode_direct_absolute=$hardcode_direct_absolute
14016
14017# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14018# into the resulting binary.
14019hardcode_minus_L=$hardcode_minus_L
14020
14021# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14022# into the resulting binary.
14023hardcode_shlibpath_var=$hardcode_shlibpath_var
14024
14025# Set to "yes" if building a shared library automatically hardcodes DIR
14026# into the library and all subsequent libraries and executables linked
14027# against it.
14028hardcode_automatic=$hardcode_automatic
14029
14030# Set to yes if linker adds runtime paths of dependent libraries
14031# to runtime path list.
14032inherit_rpath=$inherit_rpath
14033
14034# Whether libtool must link a program against all its dependency libraries.
14035link_all_deplibs=$link_all_deplibs
14036
14037# Fix the shell variable \$srcfile for the compiler.
14038fix_srcfile_path=$lt_fix_srcfile_path
14039
14040# Set to "yes" if exported symbols are required.
14041always_export_symbols=$always_export_symbols
14042
14043# The commands to list exported symbols.
14044export_symbols_cmds=$lt_export_symbols_cmds
14045
14046# Symbols that should not be listed in the preloaded symbols.
14047exclude_expsyms=$lt_exclude_expsyms
14048
14049# Symbols that must always be exported.
14050include_expsyms=$lt_include_expsyms
14051
14052# Commands necessary for linking programs (against libraries) with templates.
14053prelink_cmds=$lt_prelink_cmds
14054
14055# Specify filename containing input files.
14056file_list_spec=$lt_file_list_spec
14057
14058# How to hardcode a shared library path into an executable.
14059hardcode_action=$hardcode_action
14060
14061# ### END LIBTOOL CONFIG
14062
14063_LT_EOF
14064
14065  case $host_os in
14066  aix3*)
14067    cat <<\_LT_EOF >> "$cfgfile"
14068# AIX sometimes has problems with the GCC collect2 program.  For some
14069# reason, if we set the COLLECT_NAMES environment variable, the problems
14070# vanish in a puff of smoke.
14071if test "X${COLLECT_NAMES+set}" != Xset; then
14072  COLLECT_NAMES=
14073  export COLLECT_NAMES
14074fi
14075_LT_EOF
14076    ;;
14077  esac
14078
14079
14080ltmain="$ac_aux_dir/ltmain.sh"
14081
14082
14083  # We use sed instead of cat because bash on DJGPP gets confused if
14084  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14085  # text mode, it properly converts lines to CR/LF.  This bash problem
14086  # is reportedly fixed, but why not run on old versions too?
14087  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14088    || (rm -f "$cfgfile"; exit 1)
14089
14090  case $xsi_shell in
14091  yes)
14092    cat << \_LT_EOF >> "$cfgfile"
14093
14094# func_dirname file append nondir_replacement
14095# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14096# otherwise set result to NONDIR_REPLACEMENT.
14097func_dirname ()
14098{
14099  case ${1} in
14100    */*) func_dirname_result="${1%/*}${2}" ;;
14101    *  ) func_dirname_result="${3}" ;;
14102  esac
14103}
14104
14105# func_basename file
14106func_basename ()
14107{
14108  func_basename_result="${1##*/}"
14109}
14110
14111# func_dirname_and_basename file append nondir_replacement
14112# perform func_basename and func_dirname in a single function
14113# call:
14114#   dirname:  Compute the dirname of FILE.  If nonempty,
14115#             add APPEND to the result, otherwise set result
14116#             to NONDIR_REPLACEMENT.
14117#             value returned in "$func_dirname_result"
14118#   basename: Compute filename of FILE.
14119#             value retuned in "$func_basename_result"
14120# Implementation must be kept synchronized with func_dirname
14121# and func_basename. For efficiency, we do not delegate to
14122# those functions but instead duplicate the functionality here.
14123func_dirname_and_basename ()
14124{
14125  case ${1} in
14126    */*) func_dirname_result="${1%/*}${2}" ;;
14127    *  ) func_dirname_result="${3}" ;;
14128  esac
14129  func_basename_result="${1##*/}"
14130}
14131
14132# func_stripname prefix suffix name
14133# strip PREFIX and SUFFIX off of NAME.
14134# PREFIX and SUFFIX must not contain globbing or regex special
14135# characters, hashes, percent signs, but SUFFIX may contain a leading
14136# dot (in which case that matches only a dot).
14137func_stripname ()
14138{
14139  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14140  # positional parameters, so assign one to ordinary parameter first.
14141  func_stripname_result=${3}
14142  func_stripname_result=${func_stripname_result#"${1}"}
14143  func_stripname_result=${func_stripname_result%"${2}"}
14144}
14145
14146# func_opt_split
14147func_opt_split ()
14148{
14149  func_opt_split_opt=${1%%=*}
14150  func_opt_split_arg=${1#*=}
14151}
14152
14153# func_lo2o object
14154func_lo2o ()
14155{
14156  case ${1} in
14157    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14158    *)    func_lo2o_result=${1} ;;
14159  esac
14160}
14161
14162# func_xform libobj-or-source
14163func_xform ()
14164{
14165  func_xform_result=${1%.*}.lo
14166}
14167
14168# func_arith arithmetic-term...
14169func_arith ()
14170{
14171  func_arith_result=$(( $* ))
14172}
14173
14174# func_len string
14175# STRING may not start with a hyphen.
14176func_len ()
14177{
14178  func_len_result=${#1}
14179}
14180
14181_LT_EOF
14182    ;;
14183  *) # Bourne compatible functions.
14184    cat << \_LT_EOF >> "$cfgfile"
14185
14186# func_dirname file append nondir_replacement
14187# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14188# otherwise set result to NONDIR_REPLACEMENT.
14189func_dirname ()
14190{
14191  # Extract subdirectory from the argument.
14192  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14193  if test "X$func_dirname_result" = "X${1}"; then
14194    func_dirname_result="${3}"
14195  else
14196    func_dirname_result="$func_dirname_result${2}"
14197  fi
14198}
14199
14200# func_basename file
14201func_basename ()
14202{
14203  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14204}
14205
14206
14207# func_stripname prefix suffix name
14208# strip PREFIX and SUFFIX off of NAME.
14209# PREFIX and SUFFIX must not contain globbing or regex special
14210# characters, hashes, percent signs, but SUFFIX may contain a leading
14211# dot (in which case that matches only a dot).
14212# func_strip_suffix prefix name
14213func_stripname ()
14214{
14215  case ${2} in
14216    .*) func_stripname_result=`$ECHO "X${3}" \
14217           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14218    *)  func_stripname_result=`$ECHO "X${3}" \
14219           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14220  esac
14221}
14222
14223# sed scripts:
14224my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14225my_sed_long_arg='1s/^-[^=]*=//'
14226
14227# func_opt_split
14228func_opt_split ()
14229{
14230  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14231  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14232}
14233
14234# func_lo2o object
14235func_lo2o ()
14236{
14237  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14238}
14239
14240# func_xform libobj-or-source
14241func_xform ()
14242{
14243  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14244}
14245
14246# func_arith arithmetic-term...
14247func_arith ()
14248{
14249  func_arith_result=`expr "$@"`
14250}
14251
14252# func_len string
14253# STRING may not start with a hyphen.
14254func_len ()
14255{
14256  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14257}
14258
14259_LT_EOF
14260esac
14261
14262case $lt_shell_append in
14263  yes)
14264    cat << \_LT_EOF >> "$cfgfile"
14265
14266# func_append var value
14267# Append VALUE to the end of shell variable VAR.
14268func_append ()
14269{
14270  eval "$1+=\$2"
14271}
14272_LT_EOF
14273    ;;
14274  *)
14275    cat << \_LT_EOF >> "$cfgfile"
14276
14277# func_append var value
14278# Append VALUE to the end of shell variable VAR.
14279func_append ()
14280{
14281  eval "$1=\$$1\$2"
14282}
14283
14284_LT_EOF
14285    ;;
14286  esac
14287
14288
14289  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14290    || (rm -f "$cfgfile"; exit 1)
14291
14292  mv -f "$cfgfile" "$ofile" ||
14293    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14294  chmod +x "$ofile"
14295
14296 ;;
14297    "default":C) if test -n "$CONFIG_FILES"; then
14298   if test -n "${with_target_subdir}"; then
14299     # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
14300     # that multilib installs will end up installed in the correct place.
14301     # The testsuite needs it for multilib-aware ABI baseline files.
14302     # To work around this not being passed down from config-ml.in ->
14303     # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
14304     # append it here.  Only modify Makefiles that have just been created.
14305     #
14306     # Also, get rid of this simulated-VPATH thing that automake does.
14307     cat > vpsed << \_EOF
14308  s!`test -f '$<' || echo '$(srcdir)/'`!!
14309_EOF
14310     for i in $SUBDIRS; do
14311      case $CONFIG_FILES in
14312       *${i}/Makefile*)
14313	 #echo "Adding MULTISUBDIR to $i/Makefile"
14314	 sed -f vpsed $i/Makefile > tmp
14315	 grep '^MULTISUBDIR =' Makefile >> tmp
14316	 mv tmp $i/Makefile
14317	 ;;
14318      esac
14319     done
14320     rm vpsed
14321   fi
14322 fi
14323 ;;
14324
14325  esac
14326done # for ac_tag
14327
14328
14329as_fn_exit 0
14330_ACEOF
14331ac_clean_files=$ac_clean_files_save
14332
14333test $ac_write_fail = 0 ||
14334  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14335
14336
14337# configure is writing to config.log, and then calls config.status.
14338# config.status does its own redirection, appending to config.log.
14339# Unfortunately, on DOS this fails, as config.log is still kept open
14340# by configure, so config.status won't be able to write to it; its
14341# output is simply discarded.  So we exec the FD to /dev/null,
14342# effectively closing config.log, so it can be properly (re)opened and
14343# appended to by config.status.  When coming back to configure, we
14344# need to make the FD available again.
14345if test "$no_create" != yes; then
14346  ac_cs_success=:
14347  ac_config_status_args=
14348  test "$silent" = yes &&
14349    ac_config_status_args="$ac_config_status_args --quiet"
14350  exec 5>/dev/null
14351  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14352  exec 5>>config.log
14353  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14354  # would make configure fail if this is the last instruction.
14355  $ac_cs_success || as_fn_exit $?
14356fi
14357if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14358  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14359$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14360fi
14361
14362