1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Web2C Tools 2015.
4#
5# Report bugs to <tex-k@tug.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and tex-k@tug.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='Web2C Tools'
592PACKAGE_TARNAME='web2c-tools'
593PACKAGE_VERSION='2015'
594PACKAGE_STRING='Web2C Tools 2015'
595PACKAGE_BUGREPORT='tex-k@tug.org'
596PACKAGE_URL=''
597
598ac_unique_file="main.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639LEXLIB
640LEX_OUTPUT_ROOT
641LEX
642YFLAGS
643YACC
644CPP
645LT_SYS_LIBRARY_PATH
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
651MANIFEST_TOOL
652RANLIB
653ac_ct_AR
654AR
655LN_S
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661EGREP
662GREP
663SED
664host_os
665host_vendor
666host_cpu
667host
668build_os
669build_vendor
670build_cpu
671build
672LIBTOOL
673OBJDUMP
674DLLTOOL
675AS
676WARNING_CFLAGS
677am__fastdepCC_FALSE
678am__fastdepCC_TRUE
679CCDEPMODE
680am__nodep
681AMDEPBACKSLASH
682AMDEP_FALSE
683AMDEP_TRUE
684am__quote
685am__include
686DEPDIR
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
694MAINT
695MAINTAINER_MODE_FALSE
696MAINTAINER_MODE_TRUE
697AM_BACKSLASH
698AM_DEFAULT_VERBOSITY
699AM_DEFAULT_V
700AM_V
701am__untar
702am__tar
703AMTAR
704am__leading_dot
705SET_MAKE
706AWK
707mkdir_p
708MKDIR_P
709INSTALL_STRIP_PROGRAM
710STRIP
711install_sh
712MAKEINFO
713AUTOHEADER
714AUTOMAKE
715AUTOCONF
716ACLOCAL
717VERSION
718PACKAGE
719CYGPATH_W
720am__isrc
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_silent_rules
766enable_maintainer_mode
767enable_dependency_tracking
768enable_compiler_warnings
769enable_shared
770enable_static
771with_pic
772enable_fast_install
773with_aix_soname
774with_gnu_ld
775with_sysroot
776enable_libtool_lock
777enable_largefile
778'
779      ac_precious_vars='build_alias
780host_alias
781target_alias
782CC
783CFLAGS
784LDFLAGS
785LIBS
786CPPFLAGS
787LT_SYS_LIBRARY_PATH
788CPP
789YACC
790YFLAGS'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845  # If the previous option needs an argument, assign it.
846  if test -n "$ac_prev"; then
847    eval $ac_prev=\$ac_option
848    ac_prev=
849    continue
850  fi
851
852  case $ac_option in
853  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854  *=)   ac_optarg= ;;
855  *)    ac_optarg=yes ;;
856  esac
857
858  # Accept the important Cygnus configure options, so we can diagnose typos.
859
860  case $ac_dashdash$ac_option in
861  --)
862    ac_dashdash=yes ;;
863
864  -bindir | --bindir | --bindi | --bind | --bin | --bi)
865    ac_prev=bindir ;;
866  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867    bindir=$ac_optarg ;;
868
869  -build | --build | --buil | --bui | --bu)
870    ac_prev=build_alias ;;
871  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872    build_alias=$ac_optarg ;;
873
874  -cache-file | --cache-file | --cache-fil | --cache-fi \
875  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876    ac_prev=cache_file ;;
877  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879    cache_file=$ac_optarg ;;
880
881  --config-cache | -C)
882    cache_file=config.cache ;;
883
884  -datadir | --datadir | --datadi | --datad)
885    ac_prev=datadir ;;
886  -datadir=* | --datadir=* | --datadi=* | --datad=*)
887    datadir=$ac_optarg ;;
888
889  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890  | --dataroo | --dataro | --datar)
891    ac_prev=datarootdir ;;
892  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894    datarootdir=$ac_optarg ;;
895
896  -disable-* | --disable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error $? "invalid feature name: $ac_useropt"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=no ;;
911
912  -docdir | --docdir | --docdi | --doc | --do)
913    ac_prev=docdir ;;
914  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915    docdir=$ac_optarg ;;
916
917  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918    ac_prev=dvidir ;;
919  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920    dvidir=$ac_optarg ;;
921
922  -enable-* | --enable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=\$ac_optarg ;;
937
938  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940  | --exec | --exe | --ex)
941    ac_prev=exec_prefix ;;
942  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944  | --exec=* | --exe=* | --ex=*)
945    exec_prefix=$ac_optarg ;;
946
947  -gas | --gas | --ga | --g)
948    # Obsolete; use --with-gas.
949    with_gas=yes ;;
950
951  -help | --help | --hel | --he | -h)
952    ac_init_help=long ;;
953  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954    ac_init_help=recursive ;;
955  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956    ac_init_help=short ;;
957
958  -host | --host | --hos | --ho)
959    ac_prev=host_alias ;;
960  -host=* | --host=* | --hos=* | --ho=*)
961    host_alias=$ac_optarg ;;
962
963  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964    ac_prev=htmldir ;;
965  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966  | --ht=*)
967    htmldir=$ac_optarg ;;
968
969  -includedir | --includedir | --includedi | --included | --include \
970  | --includ | --inclu | --incl | --inc)
971    ac_prev=includedir ;;
972  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973  | --includ=* | --inclu=* | --incl=* | --inc=*)
974    includedir=$ac_optarg ;;
975
976  -infodir | --infodir | --infodi | --infod | --info | --inf)
977    ac_prev=infodir ;;
978  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979    infodir=$ac_optarg ;;
980
981  -libdir | --libdir | --libdi | --libd)
982    ac_prev=libdir ;;
983  -libdir=* | --libdir=* | --libdi=* | --libd=*)
984    libdir=$ac_optarg ;;
985
986  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987  | --libexe | --libex | --libe)
988    ac_prev=libexecdir ;;
989  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990  | --libexe=* | --libex=* | --libe=*)
991    libexecdir=$ac_optarg ;;
992
993  -localedir | --localedir | --localedi | --localed | --locale)
994    ac_prev=localedir ;;
995  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996    localedir=$ac_optarg ;;
997
998  -localstatedir | --localstatedir | --localstatedi | --localstated \
999  | --localstate | --localstat | --localsta | --localst | --locals)
1000    ac_prev=localstatedir ;;
1001  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003    localstatedir=$ac_optarg ;;
1004
1005  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006    ac_prev=mandir ;;
1007  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008    mandir=$ac_optarg ;;
1009
1010  -nfp | --nfp | --nf)
1011    # Obsolete; use --without-fp.
1012    with_fp=no ;;
1013
1014  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015  | --no-cr | --no-c | -n)
1016    no_create=yes ;;
1017
1018  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020    no_recursion=yes ;;
1021
1022  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024  | --oldin | --oldi | --old | --ol | --o)
1025    ac_prev=oldincludedir ;;
1026  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029    oldincludedir=$ac_optarg ;;
1030
1031  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032    ac_prev=prefix ;;
1033  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034    prefix=$ac_optarg ;;
1035
1036  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037  | --program-pre | --program-pr | --program-p)
1038    ac_prev=program_prefix ;;
1039  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041    program_prefix=$ac_optarg ;;
1042
1043  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044  | --program-suf | --program-su | --program-s)
1045    ac_prev=program_suffix ;;
1046  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048    program_suffix=$ac_optarg ;;
1049
1050  -program-transform-name | --program-transform-name \
1051  | --program-transform-nam | --program-transform-na \
1052  | --program-transform-n | --program-transform- \
1053  | --program-transform | --program-transfor \
1054  | --program-transfo | --program-transf \
1055  | --program-trans | --program-tran \
1056  | --progr-tra | --program-tr | --program-t)
1057    ac_prev=program_transform_name ;;
1058  -program-transform-name=* | --program-transform-name=* \
1059  | --program-transform-nam=* | --program-transform-na=* \
1060  | --program-transform-n=* | --program-transform-=* \
1061  | --program-transform=* | --program-transfor=* \
1062  | --program-transfo=* | --program-transf=* \
1063  | --program-trans=* | --program-tran=* \
1064  | --progr-tra=* | --program-tr=* | --program-t=*)
1065    program_transform_name=$ac_optarg ;;
1066
1067  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068    ac_prev=pdfdir ;;
1069  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070    pdfdir=$ac_optarg ;;
1071
1072  -psdir | --psdir | --psdi | --psd | --ps)
1073    ac_prev=psdir ;;
1074  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075    psdir=$ac_optarg ;;
1076
1077  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078  | -silent | --silent | --silen | --sile | --sil)
1079    silent=yes ;;
1080
1081  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082    ac_prev=sbindir ;;
1083  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084  | --sbi=* | --sb=*)
1085    sbindir=$ac_optarg ;;
1086
1087  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089  | --sharedst | --shareds | --shared | --share | --shar \
1090  | --sha | --sh)
1091    ac_prev=sharedstatedir ;;
1092  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095  | --sha=* | --sh=*)
1096    sharedstatedir=$ac_optarg ;;
1097
1098  -site | --site | --sit)
1099    ac_prev=site ;;
1100  -site=* | --site=* | --sit=*)
1101    site=$ac_optarg ;;
1102
1103  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104    ac_prev=srcdir ;;
1105  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106    srcdir=$ac_optarg ;;
1107
1108  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109  | --syscon | --sysco | --sysc | --sys | --sy)
1110    ac_prev=sysconfdir ;;
1111  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113    sysconfdir=$ac_optarg ;;
1114
1115  -target | --target | --targe | --targ | --tar | --ta | --t)
1116    ac_prev=target_alias ;;
1117  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118    target_alias=$ac_optarg ;;
1119
1120  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121    verbose=yes ;;
1122
1123  -version | --version | --versio | --versi | --vers | -V)
1124    ac_init_version=: ;;
1125
1126  -with-* | --with-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid package name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=no ;;
1157
1158  --x)
1159    # Obsolete; use --with-x.
1160    with_x=yes ;;
1161
1162  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163  | --x-incl | --x-inc | --x-in | --x-i)
1164    ac_prev=x_includes ;;
1165  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167    x_includes=$ac_optarg ;;
1168
1169  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171    ac_prev=x_libraries ;;
1172  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174    x_libraries=$ac_optarg ;;
1175
1176  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    case $ac_envvar in #(
1184      '' | [0-9]* | *[!_$as_cr_alnum]* )
1185      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186    esac
1187    eval $ac_envvar=\$ac_optarg
1188    export $ac_envvar ;;
1189
1190  *)
1191    # FIXME: should be removed in autoconf 3.0.
1192    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196    ;;
1197
1198  esac
1199done
1200
1201if test -n "$ac_prev"; then
1202  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203  as_fn_error $? "missing argument to $ac_option"
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207  case $enable_option_checking in
1208    no) ;;
1209    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211  esac
1212fi
1213
1214# Check all directory arguments for consistency.
1215for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216		datadir sysconfdir sharedstatedir localstatedir includedir \
1217		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218		libdir localedir mandir
1219do
1220  eval ac_val=\$$ac_var
1221  # Remove trailing slashes.
1222  case $ac_val in
1223    */ )
1224      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225      eval $ac_var=\$ac_val;;
1226  esac
1227  # Be sure to have absolute directory names.
1228  case $ac_val in
1229    [\\/$]* | ?:[\\/]* )  continue;;
1230    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231  esac
1232  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244  if test "x$build_alias" = x; then
1245    cross_compiling=maybe
1246  elif test "x$build_alias" != "x$host_alias"; then
1247    cross_compiling=yes
1248  fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260  as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$as_myself" : 'X\(//\)[^/]' \| \
1272	 X"$as_myself" : 'X\(//\)$' \| \
1273	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306	pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309  srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_env_${ac_var}_value=\$${ac_var}
1320  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328  # Omit some internal or obsolete options to make the list less imposing.
1329  # This message is too long to be a string in the A/UX 3.1 sh.
1330  cat <<_ACEOF
1331\`configure' configures Web2C Tools 2015 to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341  -h, --help              display this help and exit
1342      --help=short        display options specific to this package
1343      --help=recursive    display the short help of all the included packages
1344  -V, --version           display version information and exit
1345  -q, --quiet, --silent   do not print \`checking ...' messages
1346      --cache-file=FILE   cache test results in FILE [disabled]
1347  -C, --config-cache      alias for \`--cache-file=config.cache'
1348  -n, --no-create         do not create output files
1349      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352  --prefix=PREFIX         install architecture-independent files in PREFIX
1353                          [$ac_default_prefix]
1354  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                          [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365  --bindir=DIR            user executables [EPREFIX/bin]
1366  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371  --libdir=DIR            object code libraries [EPREFIX/lib]
1372  --includedir=DIR        C header files [PREFIX/include]
1373  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1374  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1375  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1376  --infodir=DIR           info documentation [DATAROOTDIR/info]
1377  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1378  --mandir=DIR            man documentation [DATAROOTDIR/man]
1379  --docdir=DIR            documentation root [DATAROOTDIR/doc/web2c-tools]
1380  --htmldir=DIR           html documentation [DOCDIR]
1381  --dvidir=DIR            dvi documentation [DOCDIR]
1382  --pdfdir=DIR            pdf documentation [DOCDIR]
1383  --psdir=DIR             ps documentation [DOCDIR]
1384_ACEOF
1385
1386  cat <<\_ACEOF
1387
1388Program names:
1389  --program-prefix=PREFIX            prepend PREFIX to installed program names
1390  --program-suffix=SUFFIX            append SUFFIX to installed program names
1391  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400  case $ac_init_help in
1401     short | recursive ) echo "Configuration of Web2C Tools 2015:";;
1402   esac
1403  cat <<\_ACEOF
1404
1405Optional Features:
1406  --disable-option-checking  ignore unrecognized --enable/--with options
1407  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409  --enable-silent-rules   less verbose build output (undo: "make V=1")
1410  --disable-silent-rules  verbose build output (undo: "make V=0")
1411  --enable-maintainer-mode
1412                          enable make rules and dependencies not useful (and
1413                          sometimes confusing) to the casual installer
1414  --enable-dependency-tracking
1415                          do not reject slow dependency extractors
1416  --disable-dependency-tracking
1417                          speeds up one-time build
1418  --enable-compiler-warnings=[no|min|yes|max|all]
1419                          Turn on compiler warnings [default: yes if
1420                          maintainer-mode, min otherwise]
1421  --enable-shared[=PKGS]  build shared libraries [default=yes]
1422  --enable-static[=PKGS]  build static libraries [default=yes]
1423  --enable-fast-install[=PKGS]
1424                          optimize for fast installation [default=yes]
1425  --disable-libtool-lock  avoid locking (might break parallel builds)
1426  --disable-largefile     omit support for large files
1427
1428Optional Packages:
1429  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1432                          both]
1433  --with-aix-soname=aix|svr4|both
1434                          shared library versioning (aka "SONAME") variant to
1435                          provide on AIX, [default=aix].
1436  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1437  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1438                          compiler's sysroot if not specified).
1439
1440Some influential environment variables:
1441  CC          C compiler command
1442  CFLAGS      C compiler flags
1443  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1444              nonstandard directory <lib dir>
1445  LIBS        libraries to pass to the linker, e.g. -l<library>
1446  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447              you have headers in a nonstandard directory <include dir>
1448  LT_SYS_LIBRARY_PATH
1449              User-defined run-time library search path.
1450  CPP         C preprocessor
1451  YACC        The `Yet Another Compiler Compiler' implementation to use.
1452              Defaults to the first program found out of: `bison -y', `byacc',
1453              `yacc'.
1454  YFLAGS      The list of arguments that will be passed by default to $YACC.
1455              This script will default YFLAGS to the empty string to avoid a
1456              default value of `-d' given by some make applications.
1457
1458Use these variables to override the choices made by `configure' or to help
1459it to find libraries and programs with nonstandard names/locations.
1460
1461Report bugs to <tex-k@tug.org>.
1462_ACEOF
1463ac_status=$?
1464fi
1465
1466if test "$ac_init_help" = "recursive"; then
1467  # If there are subdirs, report their specific --help.
1468  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469    test -d "$ac_dir" ||
1470      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471      continue
1472    ac_builddir=.
1473
1474case "$ac_dir" in
1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476*)
1477  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478  # A ".." for each directory in $ac_dir_suffix.
1479  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480  case $ac_top_builddir_sub in
1481  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483  esac ;;
1484esac
1485ac_abs_top_builddir=$ac_pwd
1486ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487# for backward compatibility:
1488ac_top_builddir=$ac_top_build_prefix
1489
1490case $srcdir in
1491  .)  # We are building in place.
1492    ac_srcdir=.
1493    ac_top_srcdir=$ac_top_builddir_sub
1494    ac_abs_top_srcdir=$ac_pwd ;;
1495  [\\/]* | ?:[\\/]* )  # Absolute name.
1496    ac_srcdir=$srcdir$ac_dir_suffix;
1497    ac_top_srcdir=$srcdir
1498    ac_abs_top_srcdir=$srcdir ;;
1499  *) # Relative name.
1500    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501    ac_top_srcdir=$ac_top_build_prefix$srcdir
1502    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503esac
1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506    cd "$ac_dir" || { ac_status=$?; continue; }
1507    # Check for guested configure.
1508    if test -f "$ac_srcdir/configure.gnu"; then
1509      echo &&
1510      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511    elif test -f "$ac_srcdir/configure"; then
1512      echo &&
1513      $SHELL "$ac_srcdir/configure" --help=recursive
1514    else
1515      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516    fi || ac_status=$?
1517    cd "$ac_pwd" || { ac_status=$?; break; }
1518  done
1519fi
1520
1521test -n "$ac_init_help" && exit $ac_status
1522if $ac_init_version; then
1523  cat <<\_ACEOF
1524Web2C Tools configure 2015
1525generated by GNU Autoconf 2.69
1526
1527Copyright (C) 2012 Free Software Foundation, Inc.
1528This configure script is free software; the Free Software Foundation
1529gives unlimited permission to copy, distribute and modify it.
1530_ACEOF
1531  exit
1532fi
1533
1534## ------------------------ ##
1535## Autoconf initialization. ##
1536## ------------------------ ##
1537
1538# ac_fn_c_try_compile LINENO
1539# --------------------------
1540# Try to compile conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_compile ()
1542{
1543  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544  rm -f conftest.$ac_objext
1545  if { { ac_try="$ac_compile"
1546case "(($ac_try" in
1547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548  *) ac_try_echo=$ac_try;;
1549esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5
1552  (eval "$ac_compile") 2>conftest.err
1553  ac_status=$?
1554  if test -s conftest.err; then
1555    grep -v '^ *+' conftest.err >conftest.er1
1556    cat conftest.er1 >&5
1557    mv -f conftest.er1 conftest.err
1558  fi
1559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560  test $ac_status = 0; } && {
1561	 test -z "$ac_c_werror_flag" ||
1562	 test ! -s conftest.err
1563       } && test -s conftest.$ac_objext; then :
1564  ac_retval=0
1565else
1566  $as_echo "$as_me: failed program was:" >&5
1567sed 's/^/| /' conftest.$ac_ext >&5
1568
1569	ac_retval=1
1570fi
1571  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572  as_fn_set_status $ac_retval
1573
1574} # ac_fn_c_try_compile
1575
1576# ac_fn_c_try_link LINENO
1577# -----------------------
1578# Try to link conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_link ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  rm -f conftest.$ac_objext conftest$ac_exeext
1583  if { { ac_try="$ac_link"
1584case "(($ac_try" in
1585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586  *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590  (eval "$ac_link") 2>conftest.err
1591  ac_status=$?
1592  if test -s conftest.err; then
1593    grep -v '^ *+' conftest.err >conftest.er1
1594    cat conftest.er1 >&5
1595    mv -f conftest.er1 conftest.err
1596  fi
1597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598  test $ac_status = 0; } && {
1599	 test -z "$ac_c_werror_flag" ||
1600	 test ! -s conftest.err
1601       } && test -s conftest$ac_exeext && {
1602	 test "$cross_compiling" = yes ||
1603	 test -x conftest$ac_exeext
1604       }; then :
1605  ac_retval=0
1606else
1607  $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610	ac_retval=1
1611fi
1612  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614  # interfere with the next link command; also delete a directory that is
1615  # left behind by Apple's compiler.  We do this before executing the actions.
1616  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618  as_fn_set_status $ac_retval
1619
1620} # ac_fn_c_try_link
1621
1622# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623# -------------------------------------------------------
1624# Tests whether HEADER exists and can be compiled using the include files in
1625# INCLUDES, setting the cache variable VAR accordingly.
1626ac_fn_c_check_header_compile ()
1627{
1628  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630$as_echo_n "checking for $2... " >&6; }
1631if eval \${$3+:} false; then :
1632  $as_echo_n "(cached) " >&6
1633else
1634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635/* end confdefs.h.  */
1636$4
1637#include <$2>
1638_ACEOF
1639if ac_fn_c_try_compile "$LINENO"; then :
1640  eval "$3=yes"
1641else
1642  eval "$3=no"
1643fi
1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645fi
1646eval ac_res=\$$3
1647	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648$as_echo "$ac_res" >&6; }
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651} # ac_fn_c_check_header_compile
1652
1653# ac_fn_c_try_cpp LINENO
1654# ----------------------
1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_c_try_cpp ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  if { { ac_try="$ac_cpp conftest.$ac_ext"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } > conftest.i && {
1675	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       }; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683    ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_cpp
1689
1690# ac_fn_c_try_run LINENO
1691# ----------------------
1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693# that executables *can* be run.
1694ac_fn_c_try_run ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  if { { ac_try="$ac_link"
1698case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_link") 2>&5
1705  ac_status=$?
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708  { { case "(($ac_try" in
1709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710  *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714  (eval "$ac_try") 2>&5
1715  ac_status=$?
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; }; }; then :
1718  ac_retval=0
1719else
1720  $as_echo "$as_me: program exited with status $ac_status" >&5
1721       $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724       ac_retval=$ac_status
1725fi
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_run
1731
1732# ac_fn_c_check_func LINENO FUNC VAR
1733# ----------------------------------
1734# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735ac_fn_c_check_func ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if eval \${$3+:} false; then :
1741  $as_echo_n "(cached) " >&6
1742else
1743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1747#define $2 innocuous_$2
1748
1749/* System header to define __stub macros and hopefully few prototypes,
1750    which can conflict with char $2 (); below.
1751    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752    <limits.h> exists even on freestanding compilers.  */
1753
1754#ifdef __STDC__
1755# include <limits.h>
1756#else
1757# include <assert.h>
1758#endif
1759
1760#undef $2
1761
1762/* Override any GCC internal prototype to avoid an error.
1763   Use char because int might match the return type of a GCC
1764   builtin and then its argument prototype would still apply.  */
1765#ifdef __cplusplus
1766extern "C"
1767#endif
1768char $2 ();
1769/* The GNU C library defines this for functions which it implements
1770    to always fail with ENOSYS.  Some functions are actually named
1771    something starting with __ and the normal name is an alias.  */
1772#if defined __stub_$2 || defined __stub___$2
1773choke me
1774#endif
1775
1776int
1777main ()
1778{
1779return $2 ();
1780  ;
1781  return 0;
1782}
1783_ACEOF
1784if ac_fn_c_try_link "$LINENO"; then :
1785  eval "$3=yes"
1786else
1787  eval "$3=no"
1788fi
1789rm -f core conftest.err conftest.$ac_objext \
1790    conftest$ac_exeext conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797} # ac_fn_c_check_func
1798
1799# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800# -------------------------------------------------------
1801# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802# the include files in INCLUDES and setting the cache variable VAR
1803# accordingly.
1804ac_fn_c_check_header_mongrel ()
1805{
1806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807  if eval \${$3+:} false; then :
1808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
1810if eval \${$3+:} false; then :
1811  $as_echo_n "(cached) " >&6
1812fi
1813eval ac_res=\$$3
1814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816else
1817  # Is the header compilable?
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819$as_echo_n "checking $2 usability... " >&6; }
1820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h.  */
1822$4
1823#include <$2>
1824_ACEOF
1825if ac_fn_c_try_compile "$LINENO"; then :
1826  ac_header_compiler=yes
1827else
1828  ac_header_compiler=no
1829fi
1830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832$as_echo "$ac_header_compiler" >&6; }
1833
1834# Is the header present?
1835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836$as_echo_n "checking $2 presence... " >&6; }
1837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_cpp "$LINENO"; then :
1842  ac_header_preproc=yes
1843else
1844  ac_header_preproc=no
1845fi
1846rm -f conftest.err conftest.i conftest.$ac_ext
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848$as_echo "$ac_header_preproc" >&6; }
1849
1850# So?  What about this header?
1851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852  yes:no: )
1853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857    ;;
1858  no:yes:* )
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1862$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1866$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869( $as_echo "## ---------------------------- ##
1870## Report this to tex-k@tug.org ##
1871## ---------------------------- ##"
1872     ) | sed "s/^/$as_me: WARNING:     /" >&2
1873    ;;
1874esac
1875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876$as_echo_n "checking for $2... " >&6; }
1877if eval \${$3+:} false; then :
1878  $as_echo_n "(cached) " >&6
1879else
1880  eval "$3=\$ac_header_compiler"
1881fi
1882eval ac_res=\$$3
1883	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884$as_echo "$ac_res" >&6; }
1885fi
1886  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888} # ac_fn_c_check_header_mongrel
1889
1890# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1891# -------------------------------------------
1892# Tests whether TYPE exists after having included INCLUDES, setting cache
1893# variable VAR accordingly.
1894ac_fn_c_check_type ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898$as_echo_n "checking for $2... " >&6; }
1899if eval \${$3+:} false; then :
1900  $as_echo_n "(cached) " >&6
1901else
1902  eval "$3=no"
1903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905$4
1906int
1907main ()
1908{
1909if (sizeof ($2))
1910	 return 0;
1911  ;
1912  return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"; then :
1916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h.  */
1918$4
1919int
1920main ()
1921{
1922if (sizeof (($2)))
1923	    return 0;
1924  ;
1925  return 0;
1926}
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929
1930else
1931  eval "$3=yes"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936fi
1937eval ac_res=\$$3
1938	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_c_check_type
1943
1944# ac_fn_c_find_intX_t LINENO BITS VAR
1945# -----------------------------------
1946# Finds a signed integer type with width BITS, setting cache variable VAR
1947# accordingly.
1948ac_fn_c_find_intX_t ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1952$as_echo_n "checking for int$2_t... " >&6; }
1953if eval \${$3+:} false; then :
1954  $as_echo_n "(cached) " >&6
1955else
1956  eval "$3=no"
1957     # Order is important - never check a type that is potentially smaller
1958     # than half of the expected target width.
1959     for ac_type in int$2_t 'int' 'long int' \
1960	 'long long int' 'short int' 'signed char'; do
1961       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h.  */
1963$ac_includes_default
1964	     enum { N = $2 / 2 - 1 };
1965int
1966main ()
1967{
1968static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1969test_array [0] = 0;
1970return test_array [0];
1971
1972  ;
1973  return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$ac_includes_default
1980	        enum { N = $2 / 2 - 1 };
1981int
1982main ()
1983{
1984static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1985		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1986test_array [0] = 0;
1987return test_array [0];
1988
1989  ;
1990  return 0;
1991}
1992_ACEOF
1993if ac_fn_c_try_compile "$LINENO"; then :
1994
1995else
1996  case $ac_type in #(
1997  int$2_t) :
1998    eval "$3=yes" ;; #(
1999  *) :
2000    eval "$3=\$ac_type" ;;
2001esac
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006       if eval test \"x\$"$3"\" = x"no"; then :
2007
2008else
2009  break
2010fi
2011     done
2012fi
2013eval ac_res=\$$3
2014	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015$as_echo "$ac_res" >&6; }
2016  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018} # ac_fn_c_find_intX_t
2019
2020# ac_fn_c_find_uintX_t LINENO BITS VAR
2021# ------------------------------------
2022# Finds an unsigned integer type with width BITS, setting cache variable VAR
2023# accordingly.
2024ac_fn_c_find_uintX_t ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2028$as_echo_n "checking for uint$2_t... " >&6; }
2029if eval \${$3+:} false; then :
2030  $as_echo_n "(cached) " >&6
2031else
2032  eval "$3=no"
2033     # Order is important - never check a type that is potentially smaller
2034     # than half of the expected target width.
2035     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2036	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2037       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$ac_includes_default
2040int
2041main ()
2042{
2043static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2044test_array [0] = 0;
2045return test_array [0];
2046
2047  ;
2048  return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052  case $ac_type in #(
2053  uint$2_t) :
2054    eval "$3=yes" ;; #(
2055  *) :
2056    eval "$3=\$ac_type" ;;
2057esac
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060       if eval test \"x\$"$3"\" = x"no"; then :
2061
2062else
2063  break
2064fi
2065     done
2066fi
2067eval ac_res=\$$3
2068	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069$as_echo "$ac_res" >&6; }
2070  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071
2072} # ac_fn_c_find_uintX_t
2073
2074# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2075# ----------------------------------------------------
2076# Tries to find if the field MEMBER exists in type AGGR, after including
2077# INCLUDES, setting cache variable VAR accordingly.
2078ac_fn_c_check_member ()
2079{
2080  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2082$as_echo_n "checking for $2.$3... " >&6; }
2083if eval \${$4+:} false; then :
2084  $as_echo_n "(cached) " >&6
2085else
2086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$5
2089int
2090main ()
2091{
2092static $2 ac_aggr;
2093if (ac_aggr.$3)
2094return 0;
2095  ;
2096  return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100  eval "$4=yes"
2101else
2102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h.  */
2104$5
2105int
2106main ()
2107{
2108static $2 ac_aggr;
2109if (sizeof ac_aggr.$3)
2110return 0;
2111  ;
2112  return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_compile "$LINENO"; then :
2116  eval "$4=yes"
2117else
2118  eval "$4=no"
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123fi
2124eval ac_res=\$$4
2125	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126$as_echo "$ac_res" >&6; }
2127  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129} # ac_fn_c_check_member
2130
2131# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2132# --------------------------------------------
2133# Tries to find the compile-time value of EXPR in a program that includes
2134# INCLUDES, setting VAR accordingly. Returns whether the value could be
2135# computed
2136ac_fn_c_compute_int ()
2137{
2138  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139  if test "$cross_compiling" = yes; then
2140    # Depending upon the size, compute the lo and hi bounds.
2141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h.  */
2143$4
2144int
2145main ()
2146{
2147static int test_array [1 - 2 * !(($2) >= 0)];
2148test_array [0] = 0;
2149return test_array [0];
2150
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"; then :
2156  ac_lo=0 ac_mid=0
2157  while :; do
2158    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$4
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2165test_array [0] = 0;
2166return test_array [0];
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173  ac_hi=$ac_mid; break
2174else
2175  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2176			if test $ac_lo -le $ac_mid; then
2177			  ac_lo= ac_hi=
2178			  break
2179			fi
2180			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183  done
2184else
2185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186/* end confdefs.h.  */
2187$4
2188int
2189main ()
2190{
2191static int test_array [1 - 2 * !(($2) < 0)];
2192test_array [0] = 0;
2193return test_array [0];
2194
2195  ;
2196  return 0;
2197}
2198_ACEOF
2199if ac_fn_c_try_compile "$LINENO"; then :
2200  ac_hi=-1 ac_mid=-1
2201  while :; do
2202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h.  */
2204$4
2205int
2206main ()
2207{
2208static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2209test_array [0] = 0;
2210return test_array [0];
2211
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217  ac_lo=$ac_mid; break
2218else
2219  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2220			if test $ac_mid -le $ac_hi; then
2221			  ac_lo= ac_hi=
2222			  break
2223			fi
2224			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2225fi
2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227  done
2228else
2229  ac_lo= ac_hi=
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234# Binary search between lo and hi bounds.
2235while test "x$ac_lo" != "x$ac_hi"; do
2236  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h.  */
2239$4
2240int
2241main ()
2242{
2243static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2244test_array [0] = 0;
2245return test_array [0];
2246
2247  ;
2248  return 0;
2249}
2250_ACEOF
2251if ac_fn_c_try_compile "$LINENO"; then :
2252  ac_hi=$ac_mid
2253else
2254  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2255fi
2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257done
2258case $ac_lo in #((
2259?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2260'') ac_retval=1 ;;
2261esac
2262  else
2263    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264/* end confdefs.h.  */
2265$4
2266static long int longval () { return $2; }
2267static unsigned long int ulongval () { return $2; }
2268#include <stdio.h>
2269#include <stdlib.h>
2270int
2271main ()
2272{
2273
2274  FILE *f = fopen ("conftest.val", "w");
2275  if (! f)
2276    return 1;
2277  if (($2) < 0)
2278    {
2279      long int i = longval ();
2280      if (i != ($2))
2281	return 1;
2282      fprintf (f, "%ld", i);
2283    }
2284  else
2285    {
2286      unsigned long int i = ulongval ();
2287      if (i != ($2))
2288	return 1;
2289      fprintf (f, "%lu", i);
2290    }
2291  /* Do not output a trailing newline, as this causes \r\n confusion
2292     on some platforms.  */
2293  return ferror (f) || fclose (f) != 0;
2294
2295  ;
2296  return 0;
2297}
2298_ACEOF
2299if ac_fn_c_try_run "$LINENO"; then :
2300  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2301else
2302  ac_retval=1
2303fi
2304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2305  conftest.$ac_objext conftest.beam conftest.$ac_ext
2306rm -f conftest.val
2307
2308  fi
2309  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2310  as_fn_set_status $ac_retval
2311
2312} # ac_fn_c_compute_int
2313
2314# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2315# ---------------------------------------------
2316# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2317# accordingly.
2318ac_fn_c_check_decl ()
2319{
2320  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321  as_decl_name=`echo $2|sed 's/ *(.*//'`
2322  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2324$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2325if eval \${$3+:} false; then :
2326  $as_echo_n "(cached) " >&6
2327else
2328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h.  */
2330$4
2331int
2332main ()
2333{
2334#ifndef $as_decl_name
2335#ifdef __cplusplus
2336  (void) $as_decl_use;
2337#else
2338  (void) $as_decl_name;
2339#endif
2340#endif
2341
2342  ;
2343  return 0;
2344}
2345_ACEOF
2346if ac_fn_c_try_compile "$LINENO"; then :
2347  eval "$3=yes"
2348else
2349  eval "$3=no"
2350fi
2351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352fi
2353eval ac_res=\$$3
2354	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355$as_echo "$ac_res" >&6; }
2356  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357
2358} # ac_fn_c_check_decl
2359cat >config.log <<_ACEOF
2360This file contains any messages produced by compilers while
2361running configure, to aid debugging if configure makes a mistake.
2362
2363It was created by Web2C Tools $as_me 2015, which was
2364generated by GNU Autoconf 2.69.  Invocation command line was
2365
2366  $ $0 $@
2367
2368_ACEOF
2369exec 5>>config.log
2370{
2371cat <<_ASUNAME
2372## --------- ##
2373## Platform. ##
2374## --------- ##
2375
2376hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2377uname -m = `(uname -m) 2>/dev/null || echo unknown`
2378uname -r = `(uname -r) 2>/dev/null || echo unknown`
2379uname -s = `(uname -s) 2>/dev/null || echo unknown`
2380uname -v = `(uname -v) 2>/dev/null || echo unknown`
2381
2382/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2383/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2384
2385/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2386/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2387/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2388/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2389/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2390/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2391/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2392
2393_ASUNAME
2394
2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398  IFS=$as_save_IFS
2399  test -z "$as_dir" && as_dir=.
2400    $as_echo "PATH: $as_dir"
2401  done
2402IFS=$as_save_IFS
2403
2404} >&5
2405
2406cat >&5 <<_ACEOF
2407
2408
2409## ----------- ##
2410## Core tests. ##
2411## ----------- ##
2412
2413_ACEOF
2414
2415
2416# Keep a trace of the command line.
2417# Strip out --no-create and --no-recursion so they do not pile up.
2418# Strip out --silent because we don't want to record it for future runs.
2419# Also quote any args containing shell meta-characters.
2420# Make two passes to allow for proper duplicate-argument suppression.
2421ac_configure_args=
2422ac_configure_args0=
2423ac_configure_args1=
2424ac_must_keep_next=false
2425for ac_pass in 1 2
2426do
2427  for ac_arg
2428  do
2429    case $ac_arg in
2430    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2431    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2432    | -silent | --silent | --silen | --sile | --sil)
2433      continue ;;
2434    *\'*)
2435      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2436    esac
2437    case $ac_pass in
2438    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2439    2)
2440      as_fn_append ac_configure_args1 " '$ac_arg'"
2441      if test $ac_must_keep_next = true; then
2442	ac_must_keep_next=false # Got value, back to normal.
2443      else
2444	case $ac_arg in
2445	  *=* | --config-cache | -C | -disable-* | --disable-* \
2446	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2447	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2448	  | -with-* | --with-* | -without-* | --without-* | --x)
2449	    case "$ac_configure_args0 " in
2450	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2451	    esac
2452	    ;;
2453	  -* ) ac_must_keep_next=true ;;
2454	esac
2455      fi
2456      as_fn_append ac_configure_args " '$ac_arg'"
2457      ;;
2458    esac
2459  done
2460done
2461{ ac_configure_args0=; unset ac_configure_args0;}
2462{ ac_configure_args1=; unset ac_configure_args1;}
2463
2464# When interrupted or exit'd, cleanup temporary files, and complete
2465# config.log.  We remove comments because anyway the quotes in there
2466# would cause problems or look ugly.
2467# WARNING: Use '\'' to represent an apostrophe within the trap.
2468# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2469trap 'exit_status=$?
2470  # Save into config.log some information that might help in debugging.
2471  {
2472    echo
2473
2474    $as_echo "## ---------------- ##
2475## Cache variables. ##
2476## ---------------- ##"
2477    echo
2478    # The following way of writing the cache mishandles newlines in values,
2479(
2480  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2481    eval ac_val=\$$ac_var
2482    case $ac_val in #(
2483    *${as_nl}*)
2484      case $ac_var in #(
2485      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2486$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2487      esac
2488      case $ac_var in #(
2489      _ | IFS | as_nl) ;; #(
2490      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2491      *) { eval $ac_var=; unset $ac_var;} ;;
2492      esac ;;
2493    esac
2494  done
2495  (set) 2>&1 |
2496    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2497    *${as_nl}ac_space=\ *)
2498      sed -n \
2499	"s/'\''/'\''\\\\'\'''\''/g;
2500	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2501      ;; #(
2502    *)
2503      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2504      ;;
2505    esac |
2506    sort
2507)
2508    echo
2509
2510    $as_echo "## ----------------- ##
2511## Output variables. ##
2512## ----------------- ##"
2513    echo
2514    for ac_var in $ac_subst_vars
2515    do
2516      eval ac_val=\$$ac_var
2517      case $ac_val in
2518      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519      esac
2520      $as_echo "$ac_var='\''$ac_val'\''"
2521    done | sort
2522    echo
2523
2524    if test -n "$ac_subst_files"; then
2525      $as_echo "## ------------------- ##
2526## File substitutions. ##
2527## ------------------- ##"
2528      echo
2529      for ac_var in $ac_subst_files
2530      do
2531	eval ac_val=\$$ac_var
2532	case $ac_val in
2533	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534	esac
2535	$as_echo "$ac_var='\''$ac_val'\''"
2536      done | sort
2537      echo
2538    fi
2539
2540    if test -s confdefs.h; then
2541      $as_echo "## ----------- ##
2542## confdefs.h. ##
2543## ----------- ##"
2544      echo
2545      cat confdefs.h
2546      echo
2547    fi
2548    test "$ac_signal" != 0 &&
2549      $as_echo "$as_me: caught signal $ac_signal"
2550    $as_echo "$as_me: exit $exit_status"
2551  } >&5
2552  rm -f core *.core core.conftest.* &&
2553    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2554    exit $exit_status
2555' 0
2556for ac_signal in 1 2 13 15; do
2557  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2558done
2559ac_signal=0
2560
2561# confdefs.h avoids OS command line length limits that DEFS can exceed.
2562rm -f -r conftest* confdefs.h
2563
2564$as_echo "/* confdefs.h */" > confdefs.h
2565
2566# Predefined preprocessor variables.
2567
2568cat >>confdefs.h <<_ACEOF
2569#define PACKAGE_NAME "$PACKAGE_NAME"
2570_ACEOF
2571
2572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2574_ACEOF
2575
2576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_VERSION "$PACKAGE_VERSION"
2578_ACEOF
2579
2580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_STRING "$PACKAGE_STRING"
2582_ACEOF
2583
2584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2586_ACEOF
2587
2588cat >>confdefs.h <<_ACEOF
2589#define PACKAGE_URL "$PACKAGE_URL"
2590_ACEOF
2591
2592
2593# Let the site file select an alternate cache file if it wants to.
2594# Prefer an explicitly selected file to automatically selected ones.
2595ac_site_file1=NONE
2596ac_site_file2=NONE
2597if test -n "$CONFIG_SITE"; then
2598  # We do not want a PATH search for config.site.
2599  case $CONFIG_SITE in #((
2600    -*)  ac_site_file1=./$CONFIG_SITE;;
2601    */*) ac_site_file1=$CONFIG_SITE;;
2602    *)   ac_site_file1=./$CONFIG_SITE;;
2603  esac
2604elif test "x$prefix" != xNONE; then
2605  ac_site_file1=$prefix/share/config.site
2606  ac_site_file2=$prefix/etc/config.site
2607else
2608  ac_site_file1=$ac_default_prefix/share/config.site
2609  ac_site_file2=$ac_default_prefix/etc/config.site
2610fi
2611for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2612do
2613  test "x$ac_site_file" = xNONE && continue
2614  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2615    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2617    sed 's/^/| /' "$ac_site_file" >&5
2618    . "$ac_site_file" \
2619      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621as_fn_error $? "failed to load site script $ac_site_file
2622See \`config.log' for more details" "$LINENO" 5; }
2623  fi
2624done
2625
2626if test -r "$cache_file"; then
2627  # Some versions of bash will fail to source /dev/null (special files
2628  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2629  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2630    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631$as_echo "$as_me: loading cache $cache_file" >&6;}
2632    case $cache_file in
2633      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634      *)                      . "./$cache_file";;
2635    esac
2636  fi
2637else
2638  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639$as_echo "$as_me: creating cache $cache_file" >&6;}
2640  >$cache_file
2641fi
2642
2643# Check that the precious variables saved in the cache have kept the same
2644# value.
2645ac_cache_corrupted=false
2646for ac_var in $ac_precious_vars; do
2647  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648  eval ac_new_set=\$ac_env_${ac_var}_set
2649  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650  eval ac_new_val=\$ac_env_${ac_var}_value
2651  case $ac_old_set,$ac_new_set in
2652    set,)
2653      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2654$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2655      ac_cache_corrupted=: ;;
2656    ,set)
2657      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2658$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2659      ac_cache_corrupted=: ;;
2660    ,);;
2661    *)
2662      if test "x$ac_old_val" != "x$ac_new_val"; then
2663	# differences in whitespace do not lead to failure.
2664	ac_old_val_w=`echo x $ac_old_val`
2665	ac_new_val_w=`echo x $ac_new_val`
2666	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2668$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2669	  ac_cache_corrupted=:
2670	else
2671	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2672$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2673	  eval $ac_var=\$ac_old_val
2674	fi
2675	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2676$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2677	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2678$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2679      fi;;
2680  esac
2681  # Pass precious variables to config.status.
2682  if test "$ac_new_set" = set; then
2683    case $ac_new_val in
2684    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685    *) ac_arg=$ac_var=$ac_new_val ;;
2686    esac
2687    case " $ac_configure_args " in
2688      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2689      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2690    esac
2691  fi
2692done
2693if $ac_cache_corrupted; then
2694  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2698  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2699fi
2700## -------------------- ##
2701## Main body of script. ##
2702## -------------------- ##
2703
2704ac_ext=c
2705ac_cpp='$CPP $CPPFLAGS'
2706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710
2711
2712
2713ac_aux_dir=
2714for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do
2715  if test -f "$ac_dir/install-sh"; then
2716    ac_aux_dir=$ac_dir
2717    ac_install_sh="$ac_aux_dir/install-sh -c"
2718    break
2719  elif test -f "$ac_dir/install.sh"; then
2720    ac_aux_dir=$ac_dir
2721    ac_install_sh="$ac_aux_dir/install.sh -c"
2722    break
2723  elif test -f "$ac_dir/shtool"; then
2724    ac_aux_dir=$ac_dir
2725    ac_install_sh="$ac_aux_dir/shtool install -c"
2726    break
2727  fi
2728done
2729if test -z "$ac_aux_dir"; then
2730  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../../build-aux \"$srcdir\"/../../../build-aux" "$LINENO" 5
2731fi
2732
2733# These three variables are undocumented and unsupported,
2734# and are intended to be withdrawn in a future Autoconf release.
2735# They can cause serious problems if a builder's source tree is in a directory
2736# whose full name contains unusual characters.
2737ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2738ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2739ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2740
2741
2742
2743
2744am__api_version='1.15'
2745
2746# Find a good install program.  We prefer a C program (faster),
2747# so one script is as good as another.  But avoid the broken or
2748# incompatible versions:
2749# SysV /etc/install, /usr/sbin/install
2750# SunOS /usr/etc/install
2751# IRIX /sbin/install
2752# AIX /bin/install
2753# AmigaOS /C/install, which installs bootblocks on floppy discs
2754# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2755# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2756# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2757# OS/2's system install, which has a completely different semantic
2758# ./install, which can be erroneously created by make from ./install.sh.
2759# Reject install programs that cannot install multiple files.
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2761$as_echo_n "checking for a BSD-compatible install... " >&6; }
2762if test -z "$INSTALL"; then
2763if ${ac_cv_path_install+:} false; then :
2764  $as_echo_n "(cached) " >&6
2765else
2766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769  IFS=$as_save_IFS
2770  test -z "$as_dir" && as_dir=.
2771    # Account for people who put trailing slashes in PATH elements.
2772case $as_dir/ in #((
2773  ./ | .// | /[cC]/* | \
2774  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2775  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2776  /usr/ucb/* ) ;;
2777  *)
2778    # OSF1 and SCO ODT 3.0 have their own names for install.
2779    # Don't use installbsd from OSF since it installs stuff as root
2780    # by default.
2781    for ac_prog in ginstall scoinst install; do
2782      for ac_exec_ext in '' $ac_executable_extensions; do
2783	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2784	  if test $ac_prog = install &&
2785	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2786	    # AIX install.  It has an incompatible calling convention.
2787	    :
2788	  elif test $ac_prog = install &&
2789	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2790	    # program-specific install script used by HP pwplus--don't use.
2791	    :
2792	  else
2793	    rm -rf conftest.one conftest.two conftest.dir
2794	    echo one > conftest.one
2795	    echo two > conftest.two
2796	    mkdir conftest.dir
2797	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2798	      test -s conftest.one && test -s conftest.two &&
2799	      test -s conftest.dir/conftest.one &&
2800	      test -s conftest.dir/conftest.two
2801	    then
2802	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2803	      break 3
2804	    fi
2805	  fi
2806	fi
2807      done
2808    done
2809    ;;
2810esac
2811
2812  done
2813IFS=$as_save_IFS
2814
2815rm -rf conftest.one conftest.two conftest.dir
2816
2817fi
2818  if test "${ac_cv_path_install+set}" = set; then
2819    INSTALL=$ac_cv_path_install
2820  else
2821    # As a last resort, use the slow shell script.  Don't cache a
2822    # value for INSTALL within a source directory, because that will
2823    # break other packages using the cache if that directory is
2824    # removed, or if the value is a relative name.
2825    INSTALL=$ac_install_sh
2826  fi
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2829$as_echo "$INSTALL" >&6; }
2830
2831# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2832# It thinks the first close brace ends the variable substitution.
2833test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2834
2835test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2836
2837test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2838
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2840$as_echo_n "checking whether build environment is sane... " >&6; }
2841# Reject unsafe characters in $srcdir or the absolute working directory
2842# name.  Accept space and tab only in the latter.
2843am_lf='
2844'
2845case `pwd` in
2846  *[\\\"\#\$\&\'\`$am_lf]*)
2847    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2848esac
2849case $srcdir in
2850  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2851    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2852esac
2853
2854# Do 'set' in a subshell so we don't clobber the current shell's
2855# arguments.  Must try -L first in case configure is actually a
2856# symlink; some systems play weird games with the mod time of symlinks
2857# (eg FreeBSD returns the mod time of the symlink's containing
2858# directory).
2859if (
2860   am_has_slept=no
2861   for am_try in 1 2; do
2862     echo "timestamp, slept: $am_has_slept" > conftest.file
2863     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2864     if test "$*" = "X"; then
2865	# -L didn't work.
2866	set X `ls -t "$srcdir/configure" conftest.file`
2867     fi
2868     if test "$*" != "X $srcdir/configure conftest.file" \
2869	&& test "$*" != "X conftest.file $srcdir/configure"; then
2870
2871	# If neither matched, then we have a broken ls.  This can happen
2872	# if, for instance, CONFIG_SHELL is bash and it inherits a
2873	# broken ls alias from the environment.  This has actually
2874	# happened.  Such a system could not be considered "sane".
2875	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2876  alias in your environment" "$LINENO" 5
2877     fi
2878     if test "$2" = conftest.file || test $am_try -eq 2; then
2879       break
2880     fi
2881     # Just in case.
2882     sleep 1
2883     am_has_slept=yes
2884   done
2885   test "$2" = conftest.file
2886   )
2887then
2888   # Ok.
2889   :
2890else
2891   as_fn_error $? "newly created file is older than distributed files!
2892Check your system clock" "$LINENO" 5
2893fi
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2895$as_echo "yes" >&6; }
2896# If we didn't sleep, we still need to ensure time stamps of config.status and
2897# generated files are strictly newer.
2898am_sleep_pid=
2899if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2900  ( sleep 1 ) &
2901  am_sleep_pid=$!
2902fi
2903
2904rm -f conftest.file
2905
2906test "$program_prefix" != NONE &&
2907  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2908# Use a double $ so make ignores it.
2909test "$program_suffix" != NONE &&
2910  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2911# Double any \ or $.
2912# By default was `s,x,x', remove it if useless.
2913ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2914program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2915
2916# Expand $ac_aux_dir to an absolute path.
2917am_aux_dir=`cd "$ac_aux_dir" && pwd`
2918
2919if test x"${MISSING+set}" != xset; then
2920  case $am_aux_dir in
2921  *\ * | *\	*)
2922    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2923  *)
2924    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2925  esac
2926fi
2927# Use eval to expand $SHELL
2928if eval "$MISSING --is-lightweight"; then
2929  am_missing_run="$MISSING "
2930else
2931  am_missing_run=
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2933$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2934fi
2935
2936if test x"${install_sh+set}" != xset; then
2937  case $am_aux_dir in
2938  *\ * | *\	*)
2939    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2940  *)
2941    install_sh="\${SHELL} $am_aux_dir/install-sh"
2942  esac
2943fi
2944
2945# Installed binaries are usually stripped using 'strip' when the user
2946# run "make install-strip".  However 'strip' might not be the right
2947# tool to use in cross-compilation environments, therefore Automake
2948# will honor the 'STRIP' environment variable to overrule this program.
2949if test "$cross_compiling" != no; then
2950  if test -n "$ac_tool_prefix"; then
2951  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2952set dummy ${ac_tool_prefix}strip; ac_word=$2
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954$as_echo_n "checking for $ac_word... " >&6; }
2955if ${ac_cv_prog_STRIP+:} false; then :
2956  $as_echo_n "(cached) " >&6
2957else
2958  if test -n "$STRIP"; then
2959  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964  IFS=$as_save_IFS
2965  test -z "$as_dir" && as_dir=.
2966    for ac_exec_ext in '' $ac_executable_extensions; do
2967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970    break 2
2971  fi
2972done
2973  done
2974IFS=$as_save_IFS
2975
2976fi
2977fi
2978STRIP=$ac_cv_prog_STRIP
2979if test -n "$STRIP"; then
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2981$as_echo "$STRIP" >&6; }
2982else
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984$as_echo "no" >&6; }
2985fi
2986
2987
2988fi
2989if test -z "$ac_cv_prog_STRIP"; then
2990  ac_ct_STRIP=$STRIP
2991  # Extract the first word of "strip", so it can be a program name with args.
2992set dummy strip; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2996  $as_echo_n "(cached) " >&6
2997else
2998  if test -n "$ac_ct_STRIP"; then
2999  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  test -z "$as_dir" && as_dir=.
3006    for ac_exec_ext in '' $ac_executable_extensions; do
3007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008    ac_cv_prog_ac_ct_STRIP="strip"
3009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3019if test -n "$ac_ct_STRIP"; then
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3021$as_echo "$ac_ct_STRIP" >&6; }
3022else
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
3025fi
3026
3027  if test "x$ac_ct_STRIP" = x; then
3028    STRIP=":"
3029  else
3030    case $cross_compiling:$ac_tool_warned in
3031yes:)
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034ac_tool_warned=yes ;;
3035esac
3036    STRIP=$ac_ct_STRIP
3037  fi
3038else
3039  STRIP="$ac_cv_prog_STRIP"
3040fi
3041
3042fi
3043INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3044
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3046$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3047if test -z "$MKDIR_P"; then
3048  if ${ac_cv_path_mkdir+:} false; then :
3049  $as_echo_n "(cached) " >&6
3050else
3051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3053do
3054  IFS=$as_save_IFS
3055  test -z "$as_dir" && as_dir=.
3056    for ac_prog in mkdir gmkdir; do
3057	 for ac_exec_ext in '' $ac_executable_extensions; do
3058	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3059	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3060	     'mkdir (GNU coreutils) '* | \
3061	     'mkdir (coreutils) '* | \
3062	     'mkdir (fileutils) '4.1*)
3063	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3064	       break 3;;
3065	   esac
3066	 done
3067       done
3068  done
3069IFS=$as_save_IFS
3070
3071fi
3072
3073  test -d ./--version && rmdir ./--version
3074  if test "${ac_cv_path_mkdir+set}" = set; then
3075    MKDIR_P="$ac_cv_path_mkdir -p"
3076  else
3077    # As a last resort, use the slow shell script.  Don't cache a
3078    # value for MKDIR_P within a source directory, because that will
3079    # break other packages using the cache if that directory is
3080    # removed, or if the value is a relative name.
3081    MKDIR_P="$ac_install_sh -d"
3082  fi
3083fi
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3085$as_echo "$MKDIR_P" >&6; }
3086
3087for ac_prog in gawk mawk nawk awk
3088do
3089  # Extract the first word of "$ac_prog", so it can be a program name with args.
3090set dummy $ac_prog; ac_word=$2
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092$as_echo_n "checking for $ac_word... " >&6; }
3093if ${ac_cv_prog_AWK+:} false; then :
3094  $as_echo_n "(cached) " >&6
3095else
3096  if test -n "$AWK"; then
3097  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3098else
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102  IFS=$as_save_IFS
3103  test -z "$as_dir" && as_dir=.
3104    for ac_exec_ext in '' $ac_executable_extensions; do
3105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106    ac_cv_prog_AWK="$ac_prog"
3107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108    break 2
3109  fi
3110done
3111  done
3112IFS=$as_save_IFS
3113
3114fi
3115fi
3116AWK=$ac_cv_prog_AWK
3117if test -n "$AWK"; then
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3119$as_echo "$AWK" >&6; }
3120else
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122$as_echo "no" >&6; }
3123fi
3124
3125
3126  test -n "$AWK" && break
3127done
3128
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3130$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3131set x ${MAKE-make}
3132ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3133if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  cat >conftest.make <<\_ACEOF
3137SHELL = /bin/sh
3138all:
3139	@echo '@@@%%%=$(MAKE)=@@@%%%'
3140_ACEOF
3141# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3142case `${MAKE-make} -f conftest.make 2>/dev/null` in
3143  *@@@%%%=?*=@@@%%%*)
3144    eval ac_cv_prog_make_${ac_make}_set=yes;;
3145  *)
3146    eval ac_cv_prog_make_${ac_make}_set=no;;
3147esac
3148rm -f conftest.make
3149fi
3150if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3152$as_echo "yes" >&6; }
3153  SET_MAKE=
3154else
3155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156$as_echo "no" >&6; }
3157  SET_MAKE="MAKE=${MAKE-make}"
3158fi
3159
3160rm -rf .tst 2>/dev/null
3161mkdir .tst 2>/dev/null
3162if test -d .tst; then
3163  am__leading_dot=.
3164else
3165  am__leading_dot=_
3166fi
3167rmdir .tst 2>/dev/null
3168
3169# Check whether --enable-silent-rules was given.
3170if test "${enable_silent_rules+set}" = set; then :
3171  enableval=$enable_silent_rules;
3172fi
3173
3174case $enable_silent_rules in # (((
3175  yes) AM_DEFAULT_VERBOSITY=0;;
3176   no) AM_DEFAULT_VERBOSITY=1;;
3177    *) AM_DEFAULT_VERBOSITY=1;;
3178esac
3179am_make=${MAKE-make}
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3181$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3182if ${am_cv_make_support_nested_variables+:} false; then :
3183  $as_echo_n "(cached) " >&6
3184else
3185  if $as_echo 'TRUE=$(BAR$(V))
3186BAR0=false
3187BAR1=true
3188V=1
3189am__doit:
3190	@$(TRUE)
3191.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3192  am_cv_make_support_nested_variables=yes
3193else
3194  am_cv_make_support_nested_variables=no
3195fi
3196fi
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3198$as_echo "$am_cv_make_support_nested_variables" >&6; }
3199if test $am_cv_make_support_nested_variables = yes; then
3200    AM_V='$(V)'
3201  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3202else
3203  AM_V=$AM_DEFAULT_VERBOSITY
3204  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3205fi
3206AM_BACKSLASH='\'
3207
3208DEPDIR="${am__leading_dot}deps"
3209
3210ac_config_commands="$ac_config_commands depfiles"
3211
3212
3213am_make=${MAKE-make}
3214cat > confinc << 'END'
3215am__doit:
3216	@echo this is the am__doit target
3217.PHONY: am__doit
3218END
3219# If we don't find an include directive, just comment out the code.
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3221$as_echo_n "checking for style of include used by $am_make... " >&6; }
3222am__include="#"
3223am__quote=
3224_am_result=none
3225# First try GNU make style include.
3226echo "include confinc" > confmf
3227# Ignore all kinds of additional output from 'make'.
3228case `$am_make -s -f confmf 2> /dev/null` in #(
3229*the\ am__doit\ target*)
3230  am__include=include
3231  am__quote=
3232  _am_result=GNU
3233  ;;
3234esac
3235# Now try BSD make style include.
3236if test "$am__include" = "#"; then
3237   echo '.include "confinc"' > confmf
3238   case `$am_make -s -f confmf 2> /dev/null` in #(
3239   *the\ am__doit\ target*)
3240     am__include=.include
3241     am__quote="\""
3242     _am_result=BSD
3243     ;;
3244   esac
3245fi
3246
3247
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3249$as_echo "$_am_result" >&6; }
3250rm -f confinc confmf
3251
3252# Check whether --enable-dependency-tracking was given.
3253if test "${enable_dependency_tracking+set}" = set; then :
3254  enableval=$enable_dependency_tracking;
3255fi
3256
3257if test "x$enable_dependency_tracking" != xno; then
3258  am_depcomp="$ac_aux_dir/depcomp"
3259  AMDEPBACKSLASH='\'
3260  am__nodep='_no'
3261fi
3262 if test "x$enable_dependency_tracking" != xno; then
3263  AMDEP_TRUE=
3264  AMDEP_FALSE='#'
3265else
3266  AMDEP_TRUE='#'
3267  AMDEP_FALSE=
3268fi
3269
3270
3271ac_ext=c
3272ac_cpp='$CPP $CPPFLAGS'
3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276if test -n "$ac_tool_prefix"; then
3277  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3278set dummy ${ac_tool_prefix}gcc; ac_word=$2
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
3281if ${ac_cv_prog_CC+:} false; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284  if test -n "$CC"; then
3285  ac_cv_prog_CC="$CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290  IFS=$as_save_IFS
3291  test -z "$as_dir" && as_dir=.
3292    for ac_exec_ext in '' $ac_executable_extensions; do
3293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296    break 2
3297  fi
3298done
3299  done
3300IFS=$as_save_IFS
3301
3302fi
3303fi
3304CC=$ac_cv_prog_CC
3305if test -n "$CC"; then
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307$as_echo "$CC" >&6; }
3308else
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311fi
3312
3313
3314fi
3315if test -z "$ac_cv_prog_CC"; then
3316  ac_ct_CC=$CC
3317  # Extract the first word of "gcc", so it can be a program name with args.
3318set dummy gcc; ac_word=$2
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320$as_echo_n "checking for $ac_word... " >&6; }
3321if ${ac_cv_prog_ac_ct_CC+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  if test -n "$ac_ct_CC"; then
3325  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332    for ac_exec_ext in '' $ac_executable_extensions; do
3333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334    ac_cv_prog_ac_ct_CC="gcc"
3335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339  done
3340IFS=$as_save_IFS
3341
3342fi
3343fi
3344ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345if test -n "$ac_ct_CC"; then
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347$as_echo "$ac_ct_CC" >&6; }
3348else
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351fi
3352
3353  if test "x$ac_ct_CC" = x; then
3354    CC=""
3355  else
3356    case $cross_compiling:$ac_tool_warned in
3357yes:)
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3360ac_tool_warned=yes ;;
3361esac
3362    CC=$ac_ct_CC
3363  fi
3364else
3365  CC="$ac_cv_prog_CC"
3366fi
3367
3368if test -z "$CC"; then
3369          if test -n "$ac_tool_prefix"; then
3370    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3371set dummy ${ac_tool_prefix}cc; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
3374if ${ac_cv_prog_CC+:} false; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  if test -n "$CC"; then
3378  ac_cv_prog_CC="$CC" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385    for ac_exec_ext in '' $ac_executable_extensions; do
3386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387    ac_cv_prog_CC="${ac_tool_prefix}cc"
3388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392  done
3393IFS=$as_save_IFS
3394
3395fi
3396fi
3397CC=$ac_cv_prog_CC
3398if test -n "$CC"; then
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400$as_echo "$CC" >&6; }
3401else
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404fi
3405
3406
3407  fi
3408fi
3409if test -z "$CC"; then
3410  # Extract the first word of "cc", so it can be a program name with args.
3411set dummy cc; ac_word=$2
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413$as_echo_n "checking for $ac_word... " >&6; }
3414if ${ac_cv_prog_CC+:} false; then :
3415  $as_echo_n "(cached) " >&6
3416else
3417  if test -n "$CC"; then
3418  ac_cv_prog_CC="$CC" # Let the user override the test.
3419else
3420  ac_prog_rejected=no
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424  IFS=$as_save_IFS
3425  test -z "$as_dir" && as_dir=.
3426    for ac_exec_ext in '' $ac_executable_extensions; do
3427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3429       ac_prog_rejected=yes
3430       continue
3431     fi
3432    ac_cv_prog_CC="cc"
3433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434    break 2
3435  fi
3436done
3437  done
3438IFS=$as_save_IFS
3439
3440if test $ac_prog_rejected = yes; then
3441  # We found a bogon in the path, so make sure we never use it.
3442  set dummy $ac_cv_prog_CC
3443  shift
3444  if test $# != 0; then
3445    # We chose a different compiler from the bogus one.
3446    # However, it has the same basename, so the bogon will be chosen
3447    # first if we set CC to just the basename; use the full file name.
3448    shift
3449    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3450  fi
3451fi
3452fi
3453fi
3454CC=$ac_cv_prog_CC
3455if test -n "$CC"; then
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457$as_echo "$CC" >&6; }
3458else
3459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460$as_echo "no" >&6; }
3461fi
3462
3463
3464fi
3465if test -z "$CC"; then
3466  if test -n "$ac_tool_prefix"; then
3467  for ac_prog in cl.exe
3468  do
3469    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3470set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472$as_echo_n "checking for $ac_word... " >&6; }
3473if ${ac_cv_prog_CC+:} false; then :
3474  $as_echo_n "(cached) " >&6
3475else
3476  if test -n "$CC"; then
3477  ac_cv_prog_CC="$CC" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482  IFS=$as_save_IFS
3483  test -z "$as_dir" && as_dir=.
3484    for ac_exec_ext in '' $ac_executable_extensions; do
3485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488    break 2
3489  fi
3490done
3491  done
3492IFS=$as_save_IFS
3493
3494fi
3495fi
3496CC=$ac_cv_prog_CC
3497if test -n "$CC"; then
3498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499$as_echo "$CC" >&6; }
3500else
3501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503fi
3504
3505
3506    test -n "$CC" && break
3507  done
3508fi
3509if test -z "$CC"; then
3510  ac_ct_CC=$CC
3511  for ac_prog in cl.exe
3512do
3513  # Extract the first word of "$ac_prog", so it can be a program name with args.
3514set dummy $ac_prog; ac_word=$2
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516$as_echo_n "checking for $ac_word... " >&6; }
3517if ${ac_cv_prog_ac_ct_CC+:} false; then :
3518  $as_echo_n "(cached) " >&6
3519else
3520  if test -n "$ac_ct_CC"; then
3521  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522else
3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526  IFS=$as_save_IFS
3527  test -z "$as_dir" && as_dir=.
3528    for ac_exec_ext in '' $ac_executable_extensions; do
3529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530    ac_cv_prog_ac_ct_CC="$ac_prog"
3531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532    break 2
3533  fi
3534done
3535  done
3536IFS=$as_save_IFS
3537
3538fi
3539fi
3540ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541if test -n "$ac_ct_CC"; then
3542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543$as_echo "$ac_ct_CC" >&6; }
3544else
3545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546$as_echo "no" >&6; }
3547fi
3548
3549
3550  test -n "$ac_ct_CC" && break
3551done
3552
3553  if test "x$ac_ct_CC" = x; then
3554    CC=""
3555  else
3556    case $cross_compiling:$ac_tool_warned in
3557yes:)
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560ac_tool_warned=yes ;;
3561esac
3562    CC=$ac_ct_CC
3563  fi
3564fi
3565
3566fi
3567
3568
3569test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571as_fn_error $? "no acceptable C compiler found in \$PATH
3572See \`config.log' for more details" "$LINENO" 5; }
3573
3574# Provide some information about the compiler.
3575$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3576set X $ac_compile
3577ac_compiler=$2
3578for ac_option in --version -v -V -qversion; do
3579  { { ac_try="$ac_compiler $ac_option >&5"
3580case "(($ac_try" in
3581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582  *) ac_try_echo=$ac_try;;
3583esac
3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
3586  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3587  ac_status=$?
3588  if test -s conftest.err; then
3589    sed '10a\
3590... rest of stderr output deleted ...
3591         10q' conftest.err >conftest.er1
3592    cat conftest.er1 >&5
3593  fi
3594  rm -f conftest.er1 conftest.err
3595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596  test $ac_status = 0; }
3597done
3598
3599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600/* end confdefs.h.  */
3601
3602int
3603main ()
3604{
3605
3606  ;
3607  return 0;
3608}
3609_ACEOF
3610ac_clean_files_save=$ac_clean_files
3611ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3612# Try to create an executable without -o first, disregard a.out.
3613# It will help us diagnose broken compilers, and finding out an intuition
3614# of exeext.
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3616$as_echo_n "checking whether the C compiler works... " >&6; }
3617ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3618
3619# The possible output files:
3620ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3621
3622ac_rmfiles=
3623for ac_file in $ac_files
3624do
3625  case $ac_file in
3626    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3627    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3628  esac
3629done
3630rm -f $ac_rmfiles
3631
3632if { { ac_try="$ac_link_default"
3633case "(($ac_try" in
3634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635  *) ac_try_echo=$ac_try;;
3636esac
3637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638$as_echo "$ac_try_echo"; } >&5
3639  (eval "$ac_link_default") 2>&5
3640  ac_status=$?
3641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642  test $ac_status = 0; }; then :
3643  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3644# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3645# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3646# so that the user can short-circuit this test for compilers unknown to
3647# Autoconf.
3648for ac_file in $ac_files ''
3649do
3650  test -f "$ac_file" || continue
3651  case $ac_file in
3652    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3653	;;
3654    [ab].out )
3655	# We found the default executable, but exeext='' is most
3656	# certainly right.
3657	break;;
3658    *.* )
3659	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3660	then :; else
3661	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662	fi
3663	# We set ac_cv_exeext here because the later test for it is not
3664	# safe: cross compilers may not add the suffix if given an `-o'
3665	# argument, so we may need to know it at that point already.
3666	# Even if this section looks crufty: it has the advantage of
3667	# actually working.
3668	break;;
3669    * )
3670	break;;
3671  esac
3672done
3673test "$ac_cv_exeext" = no && ac_cv_exeext=
3674
3675else
3676  ac_file=''
3677fi
3678if test -z "$ac_file"; then :
3679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680$as_echo "no" >&6; }
3681$as_echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686as_fn_error 77 "C compiler cannot create executables
3687See \`config.log' for more details" "$LINENO" 5; }
3688else
3689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690$as_echo "yes" >&6; }
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3693$as_echo_n "checking for C compiler default output file name... " >&6; }
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3695$as_echo "$ac_file" >&6; }
3696ac_exeext=$ac_cv_exeext
3697
3698rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3699ac_clean_files=$ac_clean_files_save
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3701$as_echo_n "checking for suffix of executables... " >&6; }
3702if { { ac_try="$ac_link"
3703case "(($ac_try" in
3704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705  *) ac_try_echo=$ac_try;;
3706esac
3707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708$as_echo "$ac_try_echo"; } >&5
3709  (eval "$ac_link") 2>&5
3710  ac_status=$?
3711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712  test $ac_status = 0; }; then :
3713  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3714# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3715# work properly (i.e., refer to `conftest.exe'), while it won't with
3716# `rm'.
3717for ac_file in conftest.exe conftest conftest.*; do
3718  test -f "$ac_file" || continue
3719  case $ac_file in
3720    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3721    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3722	  break;;
3723    * ) break;;
3724  esac
3725done
3726else
3727  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3730See \`config.log' for more details" "$LINENO" 5; }
3731fi
3732rm -f conftest conftest$ac_cv_exeext
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3734$as_echo "$ac_cv_exeext" >&6; }
3735
3736rm -f conftest.$ac_ext
3737EXEEXT=$ac_cv_exeext
3738ac_exeext=$EXEEXT
3739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h.  */
3741#include <stdio.h>
3742int
3743main ()
3744{
3745FILE *f = fopen ("conftest.out", "w");
3746 return ferror (f) || fclose (f) != 0;
3747
3748  ;
3749  return 0;
3750}
3751_ACEOF
3752ac_clean_files="$ac_clean_files conftest.out"
3753# Check that the compiler produces executables we can run.  If not, either
3754# the compiler is broken, or we cross compile.
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3756$as_echo_n "checking whether we are cross compiling... " >&6; }
3757if test "$cross_compiling" != yes; then
3758  { { ac_try="$ac_link"
3759case "(($ac_try" in
3760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761  *) ac_try_echo=$ac_try;;
3762esac
3763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764$as_echo "$ac_try_echo"; } >&5
3765  (eval "$ac_link") 2>&5
3766  ac_status=$?
3767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768  test $ac_status = 0; }
3769  if { ac_try='./conftest$ac_cv_exeext'
3770  { { case "(($ac_try" in
3771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772  *) ac_try_echo=$ac_try;;
3773esac
3774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775$as_echo "$ac_try_echo"; } >&5
3776  (eval "$ac_try") 2>&5
3777  ac_status=$?
3778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779  test $ac_status = 0; }; }; then
3780    cross_compiling=no
3781  else
3782    if test "$cross_compiling" = maybe; then
3783	cross_compiling=yes
3784    else
3785	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787as_fn_error $? "cannot run C compiled programs.
3788If you meant to cross compile, use \`--host'.
3789See \`config.log' for more details" "$LINENO" 5; }
3790    fi
3791  fi
3792fi
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3794$as_echo "$cross_compiling" >&6; }
3795
3796rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3797ac_clean_files=$ac_clean_files_save
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3799$as_echo_n "checking for suffix of object files... " >&6; }
3800if ${ac_cv_objext+:} false; then :
3801  $as_echo_n "(cached) " >&6
3802else
3803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805
3806int
3807main ()
3808{
3809
3810  ;
3811  return 0;
3812}
3813_ACEOF
3814rm -f conftest.o conftest.obj
3815if { { ac_try="$ac_compile"
3816case "(($ac_try" in
3817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818  *) ac_try_echo=$ac_try;;
3819esac
3820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821$as_echo "$ac_try_echo"; } >&5
3822  (eval "$ac_compile") 2>&5
3823  ac_status=$?
3824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825  test $ac_status = 0; }; then :
3826  for ac_file in conftest.o conftest.obj conftest.*; do
3827  test -f "$ac_file" || continue;
3828  case $ac_file in
3829    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3830    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3831       break;;
3832  esac
3833done
3834else
3835  $as_echo "$as_me: failed program was:" >&5
3836sed 's/^/| /' conftest.$ac_ext >&5
3837
3838{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840as_fn_error $? "cannot compute suffix of object files: cannot compile
3841See \`config.log' for more details" "$LINENO" 5; }
3842fi
3843rm -f conftest.$ac_cv_objext conftest.$ac_ext
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3846$as_echo "$ac_cv_objext" >&6; }
3847OBJEXT=$ac_cv_objext
3848ac_objext=$OBJEXT
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3850$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3851if ${ac_cv_c_compiler_gnu+:} false; then :
3852  $as_echo_n "(cached) " >&6
3853else
3854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855/* end confdefs.h.  */
3856
3857int
3858main ()
3859{
3860#ifndef __GNUC__
3861       choke me
3862#endif
3863
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868if ac_fn_c_try_compile "$LINENO"; then :
3869  ac_compiler_gnu=yes
3870else
3871  ac_compiler_gnu=no
3872fi
3873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874ac_cv_c_compiler_gnu=$ac_compiler_gnu
3875
3876fi
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3878$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3879if test $ac_compiler_gnu = yes; then
3880  GCC=yes
3881else
3882  GCC=
3883fi
3884ac_test_CFLAGS=${CFLAGS+set}
3885ac_save_CFLAGS=$CFLAGS
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3887$as_echo_n "checking whether $CC accepts -g... " >&6; }
3888if ${ac_cv_prog_cc_g+:} false; then :
3889  $as_echo_n "(cached) " >&6
3890else
3891  ac_save_c_werror_flag=$ac_c_werror_flag
3892   ac_c_werror_flag=yes
3893   ac_cv_prog_cc_g=no
3894   CFLAGS="-g"
3895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h.  */
3897
3898int
3899main ()
3900{
3901
3902  ;
3903  return 0;
3904}
3905_ACEOF
3906if ac_fn_c_try_compile "$LINENO"; then :
3907  ac_cv_prog_cc_g=yes
3908else
3909  CFLAGS=""
3910      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h.  */
3912
3913int
3914main ()
3915{
3916
3917  ;
3918  return 0;
3919}
3920_ACEOF
3921if ac_fn_c_try_compile "$LINENO"; then :
3922
3923else
3924  ac_c_werror_flag=$ac_save_c_werror_flag
3925	 CFLAGS="-g"
3926	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927/* end confdefs.h.  */
3928
3929int
3930main ()
3931{
3932
3933  ;
3934  return 0;
3935}
3936_ACEOF
3937if ac_fn_c_try_compile "$LINENO"; then :
3938  ac_cv_prog_cc_g=yes
3939fi
3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941fi
3942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945   ac_c_werror_flag=$ac_save_c_werror_flag
3946fi
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3948$as_echo "$ac_cv_prog_cc_g" >&6; }
3949if test "$ac_test_CFLAGS" = set; then
3950  CFLAGS=$ac_save_CFLAGS
3951elif test $ac_cv_prog_cc_g = yes; then
3952  if test "$GCC" = yes; then
3953    CFLAGS="-g -O2"
3954  else
3955    CFLAGS="-g"
3956  fi
3957else
3958  if test "$GCC" = yes; then
3959    CFLAGS="-O2"
3960  else
3961    CFLAGS=
3962  fi
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3965$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3966if ${ac_cv_prog_cc_c89+:} false; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  ac_cv_prog_cc_c89=no
3970ac_save_CC=$CC
3971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h.  */
3973#include <stdarg.h>
3974#include <stdio.h>
3975struct stat;
3976/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3977struct buf { int x; };
3978FILE * (*rcsopen) (struct buf *, struct stat *, int);
3979static char *e (p, i)
3980     char **p;
3981     int i;
3982{
3983  return p[i];
3984}
3985static char *f (char * (*g) (char **, int), char **p, ...)
3986{
3987  char *s;
3988  va_list v;
3989  va_start (v,p);
3990  s = g (p, va_arg (v,int));
3991  va_end (v);
3992  return s;
3993}
3994
3995/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3996   function prototypes and stuff, but not '\xHH' hex character constants.
3997   These don't provoke an error unfortunately, instead are silently treated
3998   as 'x'.  The following induces an error, until -std is added to get
3999   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4000   array size at least.  It's necessary to write '\x00'==0 to get something
4001   that's true only with -std.  */
4002int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4003
4004/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4005   inside strings and character constants.  */
4006#define FOO(x) 'x'
4007int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4008
4009int test (int i, double x);
4010struct s1 {int (*f) (int a);};
4011struct s2 {int (*f) (double a);};
4012int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4013int argc;
4014char **argv;
4015int
4016main ()
4017{
4018return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4019  ;
4020  return 0;
4021}
4022_ACEOF
4023for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4024	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4025do
4026  CC="$ac_save_CC $ac_arg"
4027  if ac_fn_c_try_compile "$LINENO"; then :
4028  ac_cv_prog_cc_c89=$ac_arg
4029fi
4030rm -f core conftest.err conftest.$ac_objext
4031  test "x$ac_cv_prog_cc_c89" != "xno" && break
4032done
4033rm -f conftest.$ac_ext
4034CC=$ac_save_CC
4035
4036fi
4037# AC_CACHE_VAL
4038case "x$ac_cv_prog_cc_c89" in
4039  x)
4040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4041$as_echo "none needed" >&6; } ;;
4042  xno)
4043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4044$as_echo "unsupported" >&6; } ;;
4045  *)
4046    CC="$CC $ac_cv_prog_cc_c89"
4047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4048$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4049esac
4050if test "x$ac_cv_prog_cc_c89" != xno; then :
4051
4052fi
4053
4054ac_ext=c
4055ac_cpp='$CPP $CPPFLAGS'
4056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059
4060ac_ext=c
4061ac_cpp='$CPP $CPPFLAGS'
4062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4066$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4067if ${am_cv_prog_cc_c_o+:} false; then :
4068  $as_echo_n "(cached) " >&6
4069else
4070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h.  */
4072
4073int
4074main ()
4075{
4076
4077  ;
4078  return 0;
4079}
4080_ACEOF
4081  # Make sure it works both with $CC and with simple cc.
4082  # Following AC_PROG_CC_C_O, we do the test twice because some
4083  # compilers refuse to overwrite an existing .o file with -o,
4084  # though they will create one.
4085  am_cv_prog_cc_c_o=yes
4086  for am_i in 1 2; do
4087    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4088   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4089   ac_status=$?
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); } \
4092         && test -f conftest2.$ac_objext; then
4093      : OK
4094    else
4095      am_cv_prog_cc_c_o=no
4096      break
4097    fi
4098  done
4099  rm -f core conftest*
4100  unset am_i
4101fi
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4103$as_echo "$am_cv_prog_cc_c_o" >&6; }
4104if test "$am_cv_prog_cc_c_o" != yes; then
4105   # Losing compiler, so override with the script.
4106   # FIXME: It is wrong to rewrite CC.
4107   # But if we don't then we get into trouble of one sort or another.
4108   # A longer-term fix would be to have automake use am__CC in this case,
4109   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4110   CC="$am_aux_dir/compile $CC"
4111fi
4112ac_ext=c
4113ac_cpp='$CPP $CPPFLAGS'
4114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117
4118
4119depcc="$CC"   am_compiler_list=
4120
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4122$as_echo_n "checking dependency style of $depcc... " >&6; }
4123if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4127  # We make a subdir and do the tests there.  Otherwise we can end up
4128  # making bogus files that we don't know about and never remove.  For
4129  # instance it was reported that on HP-UX the gcc test will end up
4130  # making a dummy file named 'D' -- because '-MD' means "put the output
4131  # in D".
4132  rm -rf conftest.dir
4133  mkdir conftest.dir
4134  # Copy depcomp to subdir because otherwise we won't find it if we're
4135  # using a relative directory.
4136  cp "$am_depcomp" conftest.dir
4137  cd conftest.dir
4138  # We will build objects and dependencies in a subdirectory because
4139  # it helps to detect inapplicable dependency modes.  For instance
4140  # both Tru64's cc and ICC support -MD to output dependencies as a
4141  # side effect of compilation, but ICC will put the dependencies in
4142  # the current directory while Tru64 will put them in the object
4143  # directory.
4144  mkdir sub
4145
4146  am_cv_CC_dependencies_compiler_type=none
4147  if test "$am_compiler_list" = ""; then
4148     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4149  fi
4150  am__universal=false
4151  case " $depcc " in #(
4152     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4153     esac
4154
4155  for depmode in $am_compiler_list; do
4156    # Setup a source with many dependencies, because some compilers
4157    # like to wrap large dependency lists on column 80 (with \), and
4158    # we should not choose a depcomp mode which is confused by this.
4159    #
4160    # We need to recreate these files for each test, as the compiler may
4161    # overwrite some of them when testing with obscure command lines.
4162    # This happens at least with the AIX C compiler.
4163    : > sub/conftest.c
4164    for i in 1 2 3 4 5 6; do
4165      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4166      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4167      # Solaris 10 /bin/sh.
4168      echo '/* dummy */' > sub/conftst$i.h
4169    done
4170    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4171
4172    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4173    # mode.  It turns out that the SunPro C++ compiler does not properly
4174    # handle '-M -o', and we need to detect this.  Also, some Intel
4175    # versions had trouble with output in subdirs.
4176    am__obj=sub/conftest.${OBJEXT-o}
4177    am__minus_obj="-o $am__obj"
4178    case $depmode in
4179    gcc)
4180      # This depmode causes a compiler race in universal mode.
4181      test "$am__universal" = false || continue
4182      ;;
4183    nosideeffect)
4184      # After this tag, mechanisms are not by side-effect, so they'll
4185      # only be used when explicitly requested.
4186      if test "x$enable_dependency_tracking" = xyes; then
4187	continue
4188      else
4189	break
4190      fi
4191      ;;
4192    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4193      # This compiler won't grok '-c -o', but also, the minuso test has
4194      # not run yet.  These depmodes are late enough in the game, and
4195      # so weak that their functioning should not be impacted.
4196      am__obj=conftest.${OBJEXT-o}
4197      am__minus_obj=
4198      ;;
4199    none) break ;;
4200    esac
4201    if depmode=$depmode \
4202       source=sub/conftest.c object=$am__obj \
4203       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4204       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4205         >/dev/null 2>conftest.err &&
4206       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4207       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4208       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4209       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4210      # icc doesn't choke on unknown options, it will just issue warnings
4211      # or remarks (even with -Werror).  So we grep stderr for any message
4212      # that says an option was ignored or not supported.
4213      # When given -MP, icc 7.0 and 7.1 complain thusly:
4214      #   icc: Command line warning: ignoring option '-M'; no argument required
4215      # The diagnosis changed in icc 8.0:
4216      #   icc: Command line remark: option '-MP' not supported
4217      if (grep 'ignoring option' conftest.err ||
4218          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4219        am_cv_CC_dependencies_compiler_type=$depmode
4220        break
4221      fi
4222    fi
4223  done
4224
4225  cd ..
4226  rm -rf conftest.dir
4227else
4228  am_cv_CC_dependencies_compiler_type=none
4229fi
4230
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4233$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4234CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4235
4236 if
4237  test "x$enable_dependency_tracking" != xno \
4238  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4239  am__fastdepCC_TRUE=
4240  am__fastdepCC_FALSE='#'
4241else
4242  am__fastdepCC_TRUE='#'
4243  am__fastdepCC_FALSE=
4244fi
4245
4246
4247
4248# Check whether --enable-compiler-warnings was given.
4249if test "${enable_compiler_warnings+set}" = set; then :
4250  enableval=$enable_compiler_warnings;
4251fi
4252case $enable_compiler_warnings in #(
4253  no | min | yes | max | all) :
4254     ;; #(
4255  *) :
4256    if test "x$enable_maintainer_mode" = xyes; then :
4257  enable_compiler_warnings=yes
4258else
4259  enable_compiler_warnings=min
4260fi ;;
4261esac
4262
4263case `pwd` in
4264  *\ * | *\	*)
4265    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4266$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4267esac
4268
4269
4270
4271macro_version='2.4.6'
4272macro_revision='2.4.6'
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286ltmain=$ac_aux_dir/ltmain.sh
4287
4288# Make sure we can run config.sub.
4289$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4290  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4291
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4293$as_echo_n "checking build system type... " >&6; }
4294if ${ac_cv_build+:} false; then :
4295  $as_echo_n "(cached) " >&6
4296else
4297  ac_build_alias=$build_alias
4298test "x$ac_build_alias" = x &&
4299  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4300test "x$ac_build_alias" = x &&
4301  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4302ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4303  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4304
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4307$as_echo "$ac_cv_build" >&6; }
4308case $ac_cv_build in
4309*-*-*) ;;
4310*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4311esac
4312build=$ac_cv_build
4313ac_save_IFS=$IFS; IFS='-'
4314set x $ac_cv_build
4315shift
4316build_cpu=$1
4317build_vendor=$2
4318shift; shift
4319# Remember, the first character of IFS is used to create $*,
4320# except with old shells:
4321build_os=$*
4322IFS=$ac_save_IFS
4323case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4324
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4327$as_echo_n "checking host system type... " >&6; }
4328if ${ac_cv_host+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  if test "x$host_alias" = x; then
4332  ac_cv_host=$ac_cv_build
4333else
4334  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4335    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4336fi
4337
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4340$as_echo "$ac_cv_host" >&6; }
4341case $ac_cv_host in
4342*-*-*) ;;
4343*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4344esac
4345host=$ac_cv_host
4346ac_save_IFS=$IFS; IFS='-'
4347set x $ac_cv_host
4348shift
4349host_cpu=$1
4350host_vendor=$2
4351shift; shift
4352# Remember, the first character of IFS is used to create $*,
4353# except with old shells:
4354host_os=$*
4355IFS=$ac_save_IFS
4356case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4357
4358
4359# Backslashify metacharacters that are still active within
4360# double-quoted strings.
4361sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4362
4363# Same as above, but do not quote variable references.
4364double_quote_subst='s/\(["`\\]\)/\\\1/g'
4365
4366# Sed substitution to delay expansion of an escaped shell variable in a
4367# double_quote_subst'ed string.
4368delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4369
4370# Sed substitution to delay expansion of an escaped single quote.
4371delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4372
4373# Sed substitution to avoid accidental globbing in evaled expressions
4374no_glob_subst='s/\*/\\\*/g'
4375
4376ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4377ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4378ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4379
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4381$as_echo_n "checking how to print strings... " >&6; }
4382# Test print first, because it will be a builtin if present.
4383if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4384   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4385  ECHO='print -r --'
4386elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4387  ECHO='printf %s\n'
4388else
4389  # Use this function as a fallback that always works.
4390  func_fallback_echo ()
4391  {
4392    eval 'cat <<_LTECHO_EOF
4393$1
4394_LTECHO_EOF'
4395  }
4396  ECHO='func_fallback_echo'
4397fi
4398
4399# func_echo_all arg...
4400# Invoke $ECHO with all args, space-separated.
4401func_echo_all ()
4402{
4403    $ECHO ""
4404}
4405
4406case $ECHO in
4407  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4408$as_echo "printf" >&6; } ;;
4409  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4410$as_echo "print -r" >&6; } ;;
4411  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4412$as_echo "cat" >&6; } ;;
4413esac
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4429$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4430if ${ac_cv_path_SED+:} false; then :
4431  $as_echo_n "(cached) " >&6
4432else
4433            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4434     for ac_i in 1 2 3 4 5 6 7; do
4435       ac_script="$ac_script$as_nl$ac_script"
4436     done
4437     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4438     { ac_script=; unset ac_script;}
4439     if test -z "$SED"; then
4440  ac_path_SED_found=false
4441  # Loop through the user's path and test for each of PROGNAME-LIST
4442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445  IFS=$as_save_IFS
4446  test -z "$as_dir" && as_dir=.
4447    for ac_prog in sed gsed; do
4448    for ac_exec_ext in '' $ac_executable_extensions; do
4449      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4450      as_fn_executable_p "$ac_path_SED" || continue
4451# Check for GNU ac_path_SED and select it if it is found.
4452  # Check for GNU $ac_path_SED
4453case `"$ac_path_SED" --version 2>&1` in
4454*GNU*)
4455  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4456*)
4457  ac_count=0
4458  $as_echo_n 0123456789 >"conftest.in"
4459  while :
4460  do
4461    cat "conftest.in" "conftest.in" >"conftest.tmp"
4462    mv "conftest.tmp" "conftest.in"
4463    cp "conftest.in" "conftest.nl"
4464    $as_echo '' >> "conftest.nl"
4465    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4466    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4467    as_fn_arith $ac_count + 1 && ac_count=$as_val
4468    if test $ac_count -gt ${ac_path_SED_max-0}; then
4469      # Best one so far, save it but keep looking for a better one
4470      ac_cv_path_SED="$ac_path_SED"
4471      ac_path_SED_max=$ac_count
4472    fi
4473    # 10*(2^10) chars as input seems more than enough
4474    test $ac_count -gt 10 && break
4475  done
4476  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4477esac
4478
4479      $ac_path_SED_found && break 3
4480    done
4481  done
4482  done
4483IFS=$as_save_IFS
4484  if test -z "$ac_cv_path_SED"; then
4485    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4486  fi
4487else
4488  ac_cv_path_SED=$SED
4489fi
4490
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4493$as_echo "$ac_cv_path_SED" >&6; }
4494 SED="$ac_cv_path_SED"
4495  rm -f conftest.sed
4496
4497test -z "$SED" && SED=sed
4498Xsed="$SED -e 1s/^X//"
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4511$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4512if ${ac_cv_path_GREP+:} false; then :
4513  $as_echo_n "(cached) " >&6
4514else
4515  if test -z "$GREP"; then
4516  ac_path_GREP_found=false
4517  # Loop through the user's path and test for each of PROGNAME-LIST
4518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520do
4521  IFS=$as_save_IFS
4522  test -z "$as_dir" && as_dir=.
4523    for ac_prog in grep ggrep; do
4524    for ac_exec_ext in '' $ac_executable_extensions; do
4525      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4526      as_fn_executable_p "$ac_path_GREP" || continue
4527# Check for GNU ac_path_GREP and select it if it is found.
4528  # Check for GNU $ac_path_GREP
4529case `"$ac_path_GREP" --version 2>&1` in
4530*GNU*)
4531  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4532*)
4533  ac_count=0
4534  $as_echo_n 0123456789 >"conftest.in"
4535  while :
4536  do
4537    cat "conftest.in" "conftest.in" >"conftest.tmp"
4538    mv "conftest.tmp" "conftest.in"
4539    cp "conftest.in" "conftest.nl"
4540    $as_echo 'GREP' >> "conftest.nl"
4541    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543    as_fn_arith $ac_count + 1 && ac_count=$as_val
4544    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4545      # Best one so far, save it but keep looking for a better one
4546      ac_cv_path_GREP="$ac_path_GREP"
4547      ac_path_GREP_max=$ac_count
4548    fi
4549    # 10*(2^10) chars as input seems more than enough
4550    test $ac_count -gt 10 && break
4551  done
4552  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553esac
4554
4555      $ac_path_GREP_found && break 3
4556    done
4557  done
4558  done
4559IFS=$as_save_IFS
4560  if test -z "$ac_cv_path_GREP"; then
4561    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4562  fi
4563else
4564  ac_cv_path_GREP=$GREP
4565fi
4566
4567fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4569$as_echo "$ac_cv_path_GREP" >&6; }
4570 GREP="$ac_cv_path_GREP"
4571
4572
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4574$as_echo_n "checking for egrep... " >&6; }
4575if ${ac_cv_path_EGREP+:} false; then :
4576  $as_echo_n "(cached) " >&6
4577else
4578  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4579   then ac_cv_path_EGREP="$GREP -E"
4580   else
4581     if test -z "$EGREP"; then
4582  ac_path_EGREP_found=false
4583  # Loop through the user's path and test for each of PROGNAME-LIST
4584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586do
4587  IFS=$as_save_IFS
4588  test -z "$as_dir" && as_dir=.
4589    for ac_prog in egrep; do
4590    for ac_exec_ext in '' $ac_executable_extensions; do
4591      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4592      as_fn_executable_p "$ac_path_EGREP" || continue
4593# Check for GNU ac_path_EGREP and select it if it is found.
4594  # Check for GNU $ac_path_EGREP
4595case `"$ac_path_EGREP" --version 2>&1` in
4596*GNU*)
4597  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4598*)
4599  ac_count=0
4600  $as_echo_n 0123456789 >"conftest.in"
4601  while :
4602  do
4603    cat "conftest.in" "conftest.in" >"conftest.tmp"
4604    mv "conftest.tmp" "conftest.in"
4605    cp "conftest.in" "conftest.nl"
4606    $as_echo 'EGREP' >> "conftest.nl"
4607    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609    as_fn_arith $ac_count + 1 && ac_count=$as_val
4610    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4611      # Best one so far, save it but keep looking for a better one
4612      ac_cv_path_EGREP="$ac_path_EGREP"
4613      ac_path_EGREP_max=$ac_count
4614    fi
4615    # 10*(2^10) chars as input seems more than enough
4616    test $ac_count -gt 10 && break
4617  done
4618  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619esac
4620
4621      $ac_path_EGREP_found && break 3
4622    done
4623  done
4624  done
4625IFS=$as_save_IFS
4626  if test -z "$ac_cv_path_EGREP"; then
4627    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628  fi
4629else
4630  ac_cv_path_EGREP=$EGREP
4631fi
4632
4633   fi
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4636$as_echo "$ac_cv_path_EGREP" >&6; }
4637 EGREP="$ac_cv_path_EGREP"
4638
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4641$as_echo_n "checking for fgrep... " >&6; }
4642if ${ac_cv_path_FGREP+:} false; then :
4643  $as_echo_n "(cached) " >&6
4644else
4645  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4646   then ac_cv_path_FGREP="$GREP -F"
4647   else
4648     if test -z "$FGREP"; then
4649  ac_path_FGREP_found=false
4650  # Loop through the user's path and test for each of PROGNAME-LIST
4651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656    for ac_prog in fgrep; do
4657    for ac_exec_ext in '' $ac_executable_extensions; do
4658      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4659      as_fn_executable_p "$ac_path_FGREP" || continue
4660# Check for GNU ac_path_FGREP and select it if it is found.
4661  # Check for GNU $ac_path_FGREP
4662case `"$ac_path_FGREP" --version 2>&1` in
4663*GNU*)
4664  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4665*)
4666  ac_count=0
4667  $as_echo_n 0123456789 >"conftest.in"
4668  while :
4669  do
4670    cat "conftest.in" "conftest.in" >"conftest.tmp"
4671    mv "conftest.tmp" "conftest.in"
4672    cp "conftest.in" "conftest.nl"
4673    $as_echo 'FGREP' >> "conftest.nl"
4674    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676    as_fn_arith $ac_count + 1 && ac_count=$as_val
4677    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4678      # Best one so far, save it but keep looking for a better one
4679      ac_cv_path_FGREP="$ac_path_FGREP"
4680      ac_path_FGREP_max=$ac_count
4681    fi
4682    # 10*(2^10) chars as input seems more than enough
4683    test $ac_count -gt 10 && break
4684  done
4685  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686esac
4687
4688      $ac_path_FGREP_found && break 3
4689    done
4690  done
4691  done
4692IFS=$as_save_IFS
4693  if test -z "$ac_cv_path_FGREP"; then
4694    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695  fi
4696else
4697  ac_cv_path_FGREP=$FGREP
4698fi
4699
4700   fi
4701fi
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4703$as_echo "$ac_cv_path_FGREP" >&6; }
4704 FGREP="$ac_cv_path_FGREP"
4705
4706
4707test -z "$GREP" && GREP=grep
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727# Check whether --with-gnu-ld was given.
4728if test "${with_gnu_ld+set}" = set; then :
4729  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4730else
4731  with_gnu_ld=no
4732fi
4733
4734ac_prog=ld
4735if test yes = "$GCC"; then
4736  # Check if gcc -print-prog-name=ld gives a path.
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4738$as_echo_n "checking for ld used by $CC... " >&6; }
4739  case $host in
4740  *-*-mingw*)
4741    # gcc leaves a trailing carriage return, which upsets mingw
4742    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4743  *)
4744    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4745  esac
4746  case $ac_prog in
4747    # Accept absolute paths.
4748    [\\/]* | ?:[\\/]*)
4749      re_direlt='/[^/][^/]*/\.\./'
4750      # Canonicalize the pathname of ld
4751      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4752      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4753	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4754      done
4755      test -z "$LD" && LD=$ac_prog
4756      ;;
4757  "")
4758    # If it fails, then pretend we aren't using GCC.
4759    ac_prog=ld
4760    ;;
4761  *)
4762    # If it is relative, then search for the first ld in PATH.
4763    with_gnu_ld=unknown
4764    ;;
4765  esac
4766elif test yes = "$with_gnu_ld"; then
4767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4768$as_echo_n "checking for GNU ld... " >&6; }
4769else
4770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4771$as_echo_n "checking for non-GNU ld... " >&6; }
4772fi
4773if ${lt_cv_path_LD+:} false; then :
4774  $as_echo_n "(cached) " >&6
4775else
4776  if test -z "$LD"; then
4777  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4778  for ac_dir in $PATH; do
4779    IFS=$lt_save_ifs
4780    test -z "$ac_dir" && ac_dir=.
4781    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4782      lt_cv_path_LD=$ac_dir/$ac_prog
4783      # Check to see if the program is GNU ld.  I'd rather use --version,
4784      # but apparently some variants of GNU ld only accept -v.
4785      # Break only if it was the GNU/non-GNU ld that we prefer.
4786      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4787      *GNU* | *'with BFD'*)
4788	test no != "$with_gnu_ld" && break
4789	;;
4790      *)
4791	test yes != "$with_gnu_ld" && break
4792	;;
4793      esac
4794    fi
4795  done
4796  IFS=$lt_save_ifs
4797else
4798  lt_cv_path_LD=$LD # Let the user override the test with a path.
4799fi
4800fi
4801
4802LD=$lt_cv_path_LD
4803if test -n "$LD"; then
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4805$as_echo "$LD" >&6; }
4806else
4807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808$as_echo "no" >&6; }
4809fi
4810test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4812$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4813if ${lt_cv_prog_gnu_ld+:} false; then :
4814  $as_echo_n "(cached) " >&6
4815else
4816  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4817case `$LD -v 2>&1 </dev/null` in
4818*GNU* | *'with BFD'*)
4819  lt_cv_prog_gnu_ld=yes
4820  ;;
4821*)
4822  lt_cv_prog_gnu_ld=no
4823  ;;
4824esac
4825fi
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4827$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4828with_gnu_ld=$lt_cv_prog_gnu_ld
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4839$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4840if ${lt_cv_path_NM+:} false; then :
4841  $as_echo_n "(cached) " >&6
4842else
4843  if test -n "$NM"; then
4844  # Let the user override the test.
4845  lt_cv_path_NM=$NM
4846else
4847  lt_nm_to_check=${ac_tool_prefix}nm
4848  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4849    lt_nm_to_check="$lt_nm_to_check nm"
4850  fi
4851  for lt_tmp_nm in $lt_nm_to_check; do
4852    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4853    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4854      IFS=$lt_save_ifs
4855      test -z "$ac_dir" && ac_dir=.
4856      tmp_nm=$ac_dir/$lt_tmp_nm
4857      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4858	# Check to see if the nm accepts a BSD-compat flag.
4859	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4860	#   nm: unknown option "B" ignored
4861	# Tru64's nm complains that /dev/null is an invalid object file
4862	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4863	case $build_os in
4864	mingw*) lt_bad_file=conftest.nm/nofile ;;
4865	*) lt_bad_file=/dev/null ;;
4866	esac
4867	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4868	*$lt_bad_file* | *'Invalid file or object type'*)
4869	  lt_cv_path_NM="$tmp_nm -B"
4870	  break 2
4871	  ;;
4872	*)
4873	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4874	  */dev/null*)
4875	    lt_cv_path_NM="$tmp_nm -p"
4876	    break 2
4877	    ;;
4878	  *)
4879	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4880	    continue # so that we can try to find one that supports BSD flags
4881	    ;;
4882	  esac
4883	  ;;
4884	esac
4885      fi
4886    done
4887    IFS=$lt_save_ifs
4888  done
4889  : ${lt_cv_path_NM=no}
4890fi
4891fi
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4893$as_echo "$lt_cv_path_NM" >&6; }
4894if test no != "$lt_cv_path_NM"; then
4895  NM=$lt_cv_path_NM
4896else
4897  # Didn't find any BSD compatible name lister, look for dumpbin.
4898  if test -n "$DUMPBIN"; then :
4899    # Let the user override the test.
4900  else
4901    if test -n "$ac_tool_prefix"; then
4902  for ac_prog in dumpbin "link -dump"
4903  do
4904    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4905set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907$as_echo_n "checking for $ac_word... " >&6; }
4908if ${ac_cv_prog_DUMPBIN+:} false; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  if test -n "$DUMPBIN"; then
4912  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4913else
4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915for as_dir in $PATH
4916do
4917  IFS=$as_save_IFS
4918  test -z "$as_dir" && as_dir=.
4919    for ac_exec_ext in '' $ac_executable_extensions; do
4920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923    break 2
4924  fi
4925done
4926  done
4927IFS=$as_save_IFS
4928
4929fi
4930fi
4931DUMPBIN=$ac_cv_prog_DUMPBIN
4932if test -n "$DUMPBIN"; then
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4934$as_echo "$DUMPBIN" >&6; }
4935else
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937$as_echo "no" >&6; }
4938fi
4939
4940
4941    test -n "$DUMPBIN" && break
4942  done
4943fi
4944if test -z "$DUMPBIN"; then
4945  ac_ct_DUMPBIN=$DUMPBIN
4946  for ac_prog in dumpbin "link -dump"
4947do
4948  # Extract the first word of "$ac_prog", so it can be a program name with args.
4949set dummy $ac_prog; ac_word=$2
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951$as_echo_n "checking for $ac_word... " >&6; }
4952if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955  if test -n "$ac_ct_DUMPBIN"; then
4956  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4957else
4958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961  IFS=$as_save_IFS
4962  test -z "$as_dir" && as_dir=.
4963    for ac_exec_ext in '' $ac_executable_extensions; do
4964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967    break 2
4968  fi
4969done
4970  done
4971IFS=$as_save_IFS
4972
4973fi
4974fi
4975ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4976if test -n "$ac_ct_DUMPBIN"; then
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4978$as_echo "$ac_ct_DUMPBIN" >&6; }
4979else
4980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981$as_echo "no" >&6; }
4982fi
4983
4984
4985  test -n "$ac_ct_DUMPBIN" && break
4986done
4987
4988  if test "x$ac_ct_DUMPBIN" = x; then
4989    DUMPBIN=":"
4990  else
4991    case $cross_compiling:$ac_tool_warned in
4992yes:)
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4995ac_tool_warned=yes ;;
4996esac
4997    DUMPBIN=$ac_ct_DUMPBIN
4998  fi
4999fi
5000
5001    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5002    *COFF*)
5003      DUMPBIN="$DUMPBIN -symbols -headers"
5004      ;;
5005    *)
5006      DUMPBIN=:
5007      ;;
5008    esac
5009  fi
5010
5011  if test : != "$DUMPBIN"; then
5012    NM=$DUMPBIN
5013  fi
5014fi
5015test -z "$NM" && NM=nm
5016
5017
5018
5019
5020
5021
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5023$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5024if ${lt_cv_nm_interface+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  lt_cv_nm_interface="BSD nm"
5028  echo "int some_variable = 0;" > conftest.$ac_ext
5029  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5030  (eval "$ac_compile" 2>conftest.err)
5031  cat conftest.err >&5
5032  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5033  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5034  cat conftest.err >&5
5035  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5036  cat conftest.out >&5
5037  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5038    lt_cv_nm_interface="MS dumpbin"
5039  fi
5040  rm -f conftest*
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5043$as_echo "$lt_cv_nm_interface" >&6; }
5044
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5046$as_echo_n "checking whether ln -s works... " >&6; }
5047LN_S=$as_ln_s
5048if test "$LN_S" = "ln -s"; then
5049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5050$as_echo "yes" >&6; }
5051else
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5053$as_echo "no, using $LN_S" >&6; }
5054fi
5055
5056# find the maximum length of command line arguments
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5058$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5059if ${lt_cv_sys_max_cmd_len+:} false; then :
5060  $as_echo_n "(cached) " >&6
5061else
5062    i=0
5063  teststring=ABCD
5064
5065  case $build_os in
5066  msdosdjgpp*)
5067    # On DJGPP, this test can blow up pretty badly due to problems in libc
5068    # (any single argument exceeding 2000 bytes causes a buffer overrun
5069    # during glob expansion).  Even if it were fixed, the result of this
5070    # check would be larger than it should be.
5071    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5072    ;;
5073
5074  gnu*)
5075    # Under GNU Hurd, this test is not required because there is
5076    # no limit to the length of command line arguments.
5077    # Libtool will interpret -1 as no limit whatsoever
5078    lt_cv_sys_max_cmd_len=-1;
5079    ;;
5080
5081  cygwin* | mingw* | cegcc*)
5082    # On Win9x/ME, this test blows up -- it succeeds, but takes
5083    # about 5 minutes as the teststring grows exponentially.
5084    # Worse, since 9x/ME are not pre-emptively multitasking,
5085    # you end up with a "frozen" computer, even though with patience
5086    # the test eventually succeeds (with a max line length of 256k).
5087    # Instead, let's just punt: use the minimum linelength reported by
5088    # all of the supported platforms: 8192 (on NT/2K/XP).
5089    lt_cv_sys_max_cmd_len=8192;
5090    ;;
5091
5092  mint*)
5093    # On MiNT this can take a long time and run out of memory.
5094    lt_cv_sys_max_cmd_len=8192;
5095    ;;
5096
5097  amigaos*)
5098    # On AmigaOS with pdksh, this test takes hours, literally.
5099    # So we just punt and use a minimum line length of 8192.
5100    lt_cv_sys_max_cmd_len=8192;
5101    ;;
5102
5103  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5104    # This has been around since 386BSD, at least.  Likely further.
5105    if test -x /sbin/sysctl; then
5106      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5107    elif test -x /usr/sbin/sysctl; then
5108      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5109    else
5110      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5111    fi
5112    # And add a safety zone
5113    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5114    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5115    ;;
5116
5117  interix*)
5118    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5119    lt_cv_sys_max_cmd_len=196608
5120    ;;
5121
5122  os2*)
5123    # The test takes a long time on OS/2.
5124    lt_cv_sys_max_cmd_len=8192
5125    ;;
5126
5127  osf*)
5128    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5129    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5130    # nice to cause kernel panics so lets avoid the loop below.
5131    # First set a reasonable default.
5132    lt_cv_sys_max_cmd_len=16384
5133    #
5134    if test -x /sbin/sysconfig; then
5135      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5136        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5137      esac
5138    fi
5139    ;;
5140  sco3.2v5*)
5141    lt_cv_sys_max_cmd_len=102400
5142    ;;
5143  sysv5* | sco5v6* | sysv4.2uw2*)
5144    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5145    if test -n "$kargmax"; then
5146      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5147    else
5148      lt_cv_sys_max_cmd_len=32768
5149    fi
5150    ;;
5151  *)
5152    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5153    if test -n "$lt_cv_sys_max_cmd_len" && \
5154       test undefined != "$lt_cv_sys_max_cmd_len"; then
5155      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5156      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5157    else
5158      # Make teststring a little bigger before we do anything with it.
5159      # a 1K string should be a reasonable start.
5160      for i in 1 2 3 4 5 6 7 8; do
5161        teststring=$teststring$teststring
5162      done
5163      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5164      # If test is not a shell built-in, we'll probably end up computing a
5165      # maximum length that is only half of the actual maximum length, but
5166      # we can't tell.
5167      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5168	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5169	      test 17 != "$i" # 1/2 MB should be enough
5170      do
5171        i=`expr $i + 1`
5172        teststring=$teststring$teststring
5173      done
5174      # Only check the string length outside the loop.
5175      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5176      teststring=
5177      # Add a significant safety factor because C++ compilers can tack on
5178      # massive amounts of additional arguments before passing them to the
5179      # linker.  It appears as though 1/2 is a usable value.
5180      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5181    fi
5182    ;;
5183  esac
5184
5185fi
5186
5187if test -n "$lt_cv_sys_max_cmd_len"; then
5188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5189$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5190else
5191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5192$as_echo "none" >&6; }
5193fi
5194max_cmd_len=$lt_cv_sys_max_cmd_len
5195
5196
5197
5198
5199
5200
5201: ${CP="cp -f"}
5202: ${MV="mv -f"}
5203: ${RM="rm -f"}
5204
5205if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5206  lt_unset=unset
5207else
5208  lt_unset=false
5209fi
5210
5211
5212
5213
5214
5215# test EBCDIC or ASCII
5216case `echo X|tr X '\101'` in
5217 A) # ASCII based system
5218    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5219  lt_SP2NL='tr \040 \012'
5220  lt_NL2SP='tr \015\012 \040\040'
5221  ;;
5222 *) # EBCDIC based system
5223  lt_SP2NL='tr \100 \n'
5224  lt_NL2SP='tr \r\n \100\100'
5225  ;;
5226esac
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5237$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5238if ${lt_cv_to_host_file_cmd+:} false; then :
5239  $as_echo_n "(cached) " >&6
5240else
5241  case $host in
5242  *-*-mingw* )
5243    case $build in
5244      *-*-mingw* ) # actually msys
5245        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5246        ;;
5247      *-*-cygwin* )
5248        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5249        ;;
5250      * ) # otherwise, assume *nix
5251        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5252        ;;
5253    esac
5254    ;;
5255  *-*-cygwin* )
5256    case $build in
5257      *-*-mingw* ) # actually msys
5258        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5259        ;;
5260      *-*-cygwin* )
5261        lt_cv_to_host_file_cmd=func_convert_file_noop
5262        ;;
5263      * ) # otherwise, assume *nix
5264        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5265        ;;
5266    esac
5267    ;;
5268  * ) # unhandled hosts (and "normal" native builds)
5269    lt_cv_to_host_file_cmd=func_convert_file_noop
5270    ;;
5271esac
5272
5273fi
5274
5275to_host_file_cmd=$lt_cv_to_host_file_cmd
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5277$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5278
5279
5280
5281
5282
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5284$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5285if ${lt_cv_to_tool_file_cmd+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  #assume ordinary cross tools, or native build.
5289lt_cv_to_tool_file_cmd=func_convert_file_noop
5290case $host in
5291  *-*-mingw* )
5292    case $build in
5293      *-*-mingw* ) # actually msys
5294        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5295        ;;
5296    esac
5297    ;;
5298esac
5299
5300fi
5301
5302to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5304$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5305
5306
5307
5308
5309
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5311$as_echo_n "checking for $LD option to reload object files... " >&6; }
5312if ${lt_cv_ld_reload_flag+:} false; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  lt_cv_ld_reload_flag='-r'
5316fi
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5318$as_echo "$lt_cv_ld_reload_flag" >&6; }
5319reload_flag=$lt_cv_ld_reload_flag
5320case $reload_flag in
5321"" | " "*) ;;
5322*) reload_flag=" $reload_flag" ;;
5323esac
5324reload_cmds='$LD$reload_flag -o $output$reload_objs'
5325case $host_os in
5326  cygwin* | mingw* | pw32* | cegcc*)
5327    if test yes != "$GCC"; then
5328      reload_cmds=false
5329    fi
5330    ;;
5331  darwin*)
5332    if test yes = "$GCC"; then
5333      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5334    else
5335      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5336    fi
5337    ;;
5338esac
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348if test -n "$ac_tool_prefix"; then
5349  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5350set dummy ${ac_tool_prefix}objdump; ac_word=$2
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352$as_echo_n "checking for $ac_word... " >&6; }
5353if ${ac_cv_prog_OBJDUMP+:} false; then :
5354  $as_echo_n "(cached) " >&6
5355else
5356  if test -n "$OBJDUMP"; then
5357  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5358else
5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362  IFS=$as_save_IFS
5363  test -z "$as_dir" && as_dir=.
5364    for ac_exec_ext in '' $ac_executable_extensions; do
5365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368    break 2
5369  fi
5370done
5371  done
5372IFS=$as_save_IFS
5373
5374fi
5375fi
5376OBJDUMP=$ac_cv_prog_OBJDUMP
5377if test -n "$OBJDUMP"; then
5378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5379$as_echo "$OBJDUMP" >&6; }
5380else
5381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382$as_echo "no" >&6; }
5383fi
5384
5385
5386fi
5387if test -z "$ac_cv_prog_OBJDUMP"; then
5388  ac_ct_OBJDUMP=$OBJDUMP
5389  # Extract the first word of "objdump", so it can be a program name with args.
5390set dummy objdump; ac_word=$2
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392$as_echo_n "checking for $ac_word... " >&6; }
5393if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396  if test -n "$ac_ct_OBJDUMP"; then
5397  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5398else
5399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400for as_dir in $PATH
5401do
5402  IFS=$as_save_IFS
5403  test -z "$as_dir" && as_dir=.
5404    for ac_exec_ext in '' $ac_executable_extensions; do
5405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408    break 2
5409  fi
5410done
5411  done
5412IFS=$as_save_IFS
5413
5414fi
5415fi
5416ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5417if test -n "$ac_ct_OBJDUMP"; then
5418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5419$as_echo "$ac_ct_OBJDUMP" >&6; }
5420else
5421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422$as_echo "no" >&6; }
5423fi
5424
5425  if test "x$ac_ct_OBJDUMP" = x; then
5426    OBJDUMP="false"
5427  else
5428    case $cross_compiling:$ac_tool_warned in
5429yes:)
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432ac_tool_warned=yes ;;
5433esac
5434    OBJDUMP=$ac_ct_OBJDUMP
5435  fi
5436else
5437  OBJDUMP="$ac_cv_prog_OBJDUMP"
5438fi
5439
5440test -z "$OBJDUMP" && OBJDUMP=objdump
5441
5442
5443
5444
5445
5446
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5448$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5449if ${lt_cv_deplibs_check_method+:} false; then :
5450  $as_echo_n "(cached) " >&6
5451else
5452  lt_cv_file_magic_cmd='$MAGIC_CMD'
5453lt_cv_file_magic_test_file=
5454lt_cv_deplibs_check_method='unknown'
5455# Need to set the preceding variable on all platforms that support
5456# interlibrary dependencies.
5457# 'none' -- dependencies not supported.
5458# 'unknown' -- same as none, but documents that we really don't know.
5459# 'pass_all' -- all dependencies passed with no checks.
5460# 'test_compile' -- check by making test program.
5461# 'file_magic [[regex]]' -- check by looking for files in library path
5462# that responds to the $file_magic_cmd with a given extended regex.
5463# If you have 'file' or equivalent on your system and you're not sure
5464# whether 'pass_all' will *always* work, you probably want this one.
5465
5466case $host_os in
5467aix[4-9]*)
5468  lt_cv_deplibs_check_method=pass_all
5469  ;;
5470
5471beos*)
5472  lt_cv_deplibs_check_method=pass_all
5473  ;;
5474
5475bsdi[45]*)
5476  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5477  lt_cv_file_magic_cmd='/usr/bin/file -L'
5478  lt_cv_file_magic_test_file=/shlib/libc.so
5479  ;;
5480
5481cygwin*)
5482  # func_win32_libid is a shell function defined in ltmain.sh
5483  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5484  lt_cv_file_magic_cmd='func_win32_libid'
5485  ;;
5486
5487mingw* | pw32*)
5488  # Base MSYS/MinGW do not provide the 'file' command needed by
5489  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5490  # unless we find 'file', for example because we are cross-compiling.
5491  if ( file / ) >/dev/null 2>&1; then
5492    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5493    lt_cv_file_magic_cmd='func_win32_libid'
5494  else
5495    # Keep this pattern in sync with the one in func_win32_libid.
5496    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5497    lt_cv_file_magic_cmd='$OBJDUMP -f'
5498  fi
5499  ;;
5500
5501cegcc*)
5502  # use the weaker test based on 'objdump'. See mingw*.
5503  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5504  lt_cv_file_magic_cmd='$OBJDUMP -f'
5505  ;;
5506
5507darwin* | rhapsody*)
5508  lt_cv_deplibs_check_method=pass_all
5509  ;;
5510
5511freebsd* | dragonfly*)
5512  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513    case $host_cpu in
5514    i*86 )
5515      # Not sure whether the presence of OpenBSD here was a mistake.
5516      # Let's accept both of them until this is cleared up.
5517      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5518      lt_cv_file_magic_cmd=/usr/bin/file
5519      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5520      ;;
5521    esac
5522  else
5523    lt_cv_deplibs_check_method=pass_all
5524  fi
5525  ;;
5526
5527haiku*)
5528  lt_cv_deplibs_check_method=pass_all
5529  ;;
5530
5531hpux10.20* | hpux11*)
5532  lt_cv_file_magic_cmd=/usr/bin/file
5533  case $host_cpu in
5534  ia64*)
5535    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5536    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5537    ;;
5538  hppa*64*)
5539    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5540    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5541    ;;
5542  *)
5543    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5544    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5545    ;;
5546  esac
5547  ;;
5548
5549interix[3-9]*)
5550  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5551  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5552  ;;
5553
5554irix5* | irix6* | nonstopux*)
5555  case $LD in
5556  *-32|*"-32 ") libmagic=32-bit;;
5557  *-n32|*"-n32 ") libmagic=N32;;
5558  *-64|*"-64 ") libmagic=64-bit;;
5559  *) libmagic=never-match;;
5560  esac
5561  lt_cv_deplibs_check_method=pass_all
5562  ;;
5563
5564# This must be glibc/ELF.
5565linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5566  lt_cv_deplibs_check_method=pass_all
5567  ;;
5568
5569netbsd*)
5570  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5571    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5572  else
5573    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5574  fi
5575  ;;
5576
5577newos6*)
5578  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5579  lt_cv_file_magic_cmd=/usr/bin/file
5580  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5581  ;;
5582
5583*nto* | *qnx*)
5584  lt_cv_deplibs_check_method=pass_all
5585  ;;
5586
5587openbsd* | bitrig*)
5588  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5589    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5590  else
5591    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5592  fi
5593  ;;
5594
5595osf3* | osf4* | osf5*)
5596  lt_cv_deplibs_check_method=pass_all
5597  ;;
5598
5599rdos*)
5600  lt_cv_deplibs_check_method=pass_all
5601  ;;
5602
5603solaris*)
5604  lt_cv_deplibs_check_method=pass_all
5605  ;;
5606
5607sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5608  lt_cv_deplibs_check_method=pass_all
5609  ;;
5610
5611sysv4 | sysv4.3*)
5612  case $host_vendor in
5613  motorola)
5614    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]'
5615    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5616    ;;
5617  ncr)
5618    lt_cv_deplibs_check_method=pass_all
5619    ;;
5620  sequent)
5621    lt_cv_file_magic_cmd='/bin/file'
5622    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5623    ;;
5624  sni)
5625    lt_cv_file_magic_cmd='/bin/file'
5626    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5627    lt_cv_file_magic_test_file=/lib/libc.so
5628    ;;
5629  siemens)
5630    lt_cv_deplibs_check_method=pass_all
5631    ;;
5632  pc)
5633    lt_cv_deplibs_check_method=pass_all
5634    ;;
5635  esac
5636  ;;
5637
5638tpf*)
5639  lt_cv_deplibs_check_method=pass_all
5640  ;;
5641os2*)
5642  lt_cv_deplibs_check_method=pass_all
5643  ;;
5644esac
5645
5646fi
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5648$as_echo "$lt_cv_deplibs_check_method" >&6; }
5649
5650file_magic_glob=
5651want_nocaseglob=no
5652if test "$build" = "$host"; then
5653  case $host_os in
5654  mingw* | pw32*)
5655    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5656      want_nocaseglob=yes
5657    else
5658      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5659    fi
5660    ;;
5661  esac
5662fi
5663
5664file_magic_cmd=$lt_cv_file_magic_cmd
5665deplibs_check_method=$lt_cv_deplibs_check_method
5666test -z "$deplibs_check_method" && deplibs_check_method=unknown
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689if test -n "$ac_tool_prefix"; then
5690  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5691set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693$as_echo_n "checking for $ac_word... " >&6; }
5694if ${ac_cv_prog_DLLTOOL+:} false; then :
5695  $as_echo_n "(cached) " >&6
5696else
5697  if test -n "$DLLTOOL"; then
5698  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703  IFS=$as_save_IFS
5704  test -z "$as_dir" && as_dir=.
5705    for ac_exec_ext in '' $ac_executable_extensions; do
5706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709    break 2
5710  fi
5711done
5712  done
5713IFS=$as_save_IFS
5714
5715fi
5716fi
5717DLLTOOL=$ac_cv_prog_DLLTOOL
5718if test -n "$DLLTOOL"; then
5719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5720$as_echo "$DLLTOOL" >&6; }
5721else
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723$as_echo "no" >&6; }
5724fi
5725
5726
5727fi
5728if test -z "$ac_cv_prog_DLLTOOL"; then
5729  ac_ct_DLLTOOL=$DLLTOOL
5730  # Extract the first word of "dlltool", so it can be a program name with args.
5731set dummy dlltool; ac_word=$2
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733$as_echo_n "checking for $ac_word... " >&6; }
5734if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5735  $as_echo_n "(cached) " >&6
5736else
5737  if test -n "$ac_ct_DLLTOOL"; then
5738  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743  IFS=$as_save_IFS
5744  test -z "$as_dir" && as_dir=.
5745    for ac_exec_ext in '' $ac_executable_extensions; do
5746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749    break 2
5750  fi
5751done
5752  done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
5757ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5758if test -n "$ac_ct_DLLTOOL"; then
5759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5760$as_echo "$ac_ct_DLLTOOL" >&6; }
5761else
5762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }
5764fi
5765
5766  if test "x$ac_ct_DLLTOOL" = x; then
5767    DLLTOOL="false"
5768  else
5769    case $cross_compiling:$ac_tool_warned in
5770yes:)
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5773ac_tool_warned=yes ;;
5774esac
5775    DLLTOOL=$ac_ct_DLLTOOL
5776  fi
5777else
5778  DLLTOOL="$ac_cv_prog_DLLTOOL"
5779fi
5780
5781test -z "$DLLTOOL" && DLLTOOL=dlltool
5782
5783
5784
5785
5786
5787
5788
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5790$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5791if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5792  $as_echo_n "(cached) " >&6
5793else
5794  lt_cv_sharedlib_from_linklib_cmd='unknown'
5795
5796case $host_os in
5797cygwin* | mingw* | pw32* | cegcc*)
5798  # two different shell functions defined in ltmain.sh;
5799  # decide which one to use based on capabilities of $DLLTOOL
5800  case `$DLLTOOL --help 2>&1` in
5801  *--identify-strict*)
5802    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5803    ;;
5804  *)
5805    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5806    ;;
5807  esac
5808  ;;
5809*)
5810  # fallback: assume linklib IS sharedlib
5811  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5812  ;;
5813esac
5814
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5817$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5818sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5819test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5820
5821
5822
5823
5824
5825
5826
5827if test -n "$ac_tool_prefix"; then
5828  for ac_prog in ar
5829  do
5830    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833$as_echo_n "checking for $ac_word... " >&6; }
5834if ${ac_cv_prog_AR+:} false; then :
5835  $as_echo_n "(cached) " >&6
5836else
5837  if test -n "$AR"; then
5838  ac_cv_prog_AR="$AR" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843  IFS=$as_save_IFS
5844  test -z "$as_dir" && as_dir=.
5845    for ac_exec_ext in '' $ac_executable_extensions; do
5846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849    break 2
5850  fi
5851done
5852  done
5853IFS=$as_save_IFS
5854
5855fi
5856fi
5857AR=$ac_cv_prog_AR
5858if test -n "$AR"; then
5859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5860$as_echo "$AR" >&6; }
5861else
5862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863$as_echo "no" >&6; }
5864fi
5865
5866
5867    test -n "$AR" && break
5868  done
5869fi
5870if test -z "$AR"; then
5871  ac_ct_AR=$AR
5872  for ac_prog in ar
5873do
5874  # Extract the first word of "$ac_prog", so it can be a program name with args.
5875set dummy $ac_prog; ac_word=$2
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877$as_echo_n "checking for $ac_word... " >&6; }
5878if ${ac_cv_prog_ac_ct_AR+:} false; then :
5879  $as_echo_n "(cached) " >&6
5880else
5881  if test -n "$ac_ct_AR"; then
5882  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5883else
5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887  IFS=$as_save_IFS
5888  test -z "$as_dir" && as_dir=.
5889    for ac_exec_ext in '' $ac_executable_extensions; do
5890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891    ac_cv_prog_ac_ct_AR="$ac_prog"
5892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893    break 2
5894  fi
5895done
5896  done
5897IFS=$as_save_IFS
5898
5899fi
5900fi
5901ac_ct_AR=$ac_cv_prog_ac_ct_AR
5902if test -n "$ac_ct_AR"; then
5903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5904$as_echo "$ac_ct_AR" >&6; }
5905else
5906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907$as_echo "no" >&6; }
5908fi
5909
5910
5911  test -n "$ac_ct_AR" && break
5912done
5913
5914  if test "x$ac_ct_AR" = x; then
5915    AR="false"
5916  else
5917    case $cross_compiling:$ac_tool_warned in
5918yes:)
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921ac_tool_warned=yes ;;
5922esac
5923    AR=$ac_ct_AR
5924  fi
5925fi
5926
5927: ${AR=ar}
5928: ${AR_FLAGS=cru}
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5941$as_echo_n "checking for archiver @FILE support... " >&6; }
5942if ${lt_cv_ar_at_file+:} false; then :
5943  $as_echo_n "(cached) " >&6
5944else
5945  lt_cv_ar_at_file=no
5946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948
5949int
5950main ()
5951{
5952
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957if ac_fn_c_try_compile "$LINENO"; then :
5958  echo conftest.$ac_objext > conftest.lst
5959      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5960      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5961  (eval $lt_ar_try) 2>&5
5962  ac_status=$?
5963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964  test $ac_status = 0; }
5965      if test 0 -eq "$ac_status"; then
5966	# Ensure the archiver fails upon bogus file names.
5967	rm -f conftest.$ac_objext libconftest.a
5968	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5969  (eval $lt_ar_try) 2>&5
5970  ac_status=$?
5971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972  test $ac_status = 0; }
5973	if test 0 -ne "$ac_status"; then
5974          lt_cv_ar_at_file=@
5975        fi
5976      fi
5977      rm -f conftest.* libconftest.a
5978
5979fi
5980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981
5982fi
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5984$as_echo "$lt_cv_ar_at_file" >&6; }
5985
5986if test no = "$lt_cv_ar_at_file"; then
5987  archiver_list_spec=
5988else
5989  archiver_list_spec=$lt_cv_ar_at_file
5990fi
5991
5992
5993
5994
5995
5996
5997
5998if test -n "$ac_tool_prefix"; then
5999  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000set dummy ${ac_tool_prefix}strip; ac_word=$2
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002$as_echo_n "checking for $ac_word... " >&6; }
6003if ${ac_cv_prog_STRIP+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  if test -n "$STRIP"; then
6007  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014    for ac_exec_ext in '' $ac_executable_extensions; do
6015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018    break 2
6019  fi
6020done
6021  done
6022IFS=$as_save_IFS
6023
6024fi
6025fi
6026STRIP=$ac_cv_prog_STRIP
6027if test -n "$STRIP"; then
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6029$as_echo "$STRIP" >&6; }
6030else
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035
6036fi
6037if test -z "$ac_cv_prog_STRIP"; then
6038  ac_ct_STRIP=$STRIP
6039  # Extract the first word of "strip", so it can be a program name with args.
6040set dummy strip; ac_word=$2
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042$as_echo_n "checking for $ac_word... " >&6; }
6043if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  if test -n "$ac_ct_STRIP"; then
6047  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052  IFS=$as_save_IFS
6053  test -z "$as_dir" && as_dir=.
6054    for ac_exec_ext in '' $ac_executable_extensions; do
6055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056    ac_cv_prog_ac_ct_STRIP="strip"
6057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058    break 2
6059  fi
6060done
6061  done
6062IFS=$as_save_IFS
6063
6064fi
6065fi
6066ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067if test -n "$ac_ct_STRIP"; then
6068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6069$as_echo "$ac_ct_STRIP" >&6; }
6070else
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
6073fi
6074
6075  if test "x$ac_ct_STRIP" = x; then
6076    STRIP=":"
6077  else
6078    case $cross_compiling:$ac_tool_warned in
6079yes:)
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082ac_tool_warned=yes ;;
6083esac
6084    STRIP=$ac_ct_STRIP
6085  fi
6086else
6087  STRIP="$ac_cv_prog_STRIP"
6088fi
6089
6090test -z "$STRIP" && STRIP=:
6091
6092
6093
6094
6095
6096
6097if test -n "$ac_tool_prefix"; then
6098  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6099set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101$as_echo_n "checking for $ac_word... " >&6; }
6102if ${ac_cv_prog_RANLIB+:} false; then :
6103  $as_echo_n "(cached) " >&6
6104else
6105  if test -n "$RANLIB"; then
6106  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107else
6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH
6110do
6111  IFS=$as_save_IFS
6112  test -z "$as_dir" && as_dir=.
6113    for ac_exec_ext in '' $ac_executable_extensions; do
6114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117    break 2
6118  fi
6119done
6120  done
6121IFS=$as_save_IFS
6122
6123fi
6124fi
6125RANLIB=$ac_cv_prog_RANLIB
6126if test -n "$RANLIB"; then
6127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6128$as_echo "$RANLIB" >&6; }
6129else
6130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131$as_echo "no" >&6; }
6132fi
6133
6134
6135fi
6136if test -z "$ac_cv_prog_RANLIB"; then
6137  ac_ct_RANLIB=$RANLIB
6138  # Extract the first word of "ranlib", so it can be a program name with args.
6139set dummy ranlib; ac_word=$2
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141$as_echo_n "checking for $ac_word... " >&6; }
6142if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  if test -n "$ac_ct_RANLIB"; then
6146  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151  IFS=$as_save_IFS
6152  test -z "$as_dir" && as_dir=.
6153    for ac_exec_ext in '' $ac_executable_extensions; do
6154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155    ac_cv_prog_ac_ct_RANLIB="ranlib"
6156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157    break 2
6158  fi
6159done
6160  done
6161IFS=$as_save_IFS
6162
6163fi
6164fi
6165ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6166if test -n "$ac_ct_RANLIB"; then
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6168$as_echo "$ac_ct_RANLIB" >&6; }
6169else
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
6172fi
6173
6174  if test "x$ac_ct_RANLIB" = x; then
6175    RANLIB=":"
6176  else
6177    case $cross_compiling:$ac_tool_warned in
6178yes:)
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181ac_tool_warned=yes ;;
6182esac
6183    RANLIB=$ac_ct_RANLIB
6184  fi
6185else
6186  RANLIB="$ac_cv_prog_RANLIB"
6187fi
6188
6189test -z "$RANLIB" && RANLIB=:
6190
6191
6192
6193
6194
6195
6196# Determine commands to create old-style static archives.
6197old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6198old_postinstall_cmds='chmod 644 $oldlib'
6199old_postuninstall_cmds=
6200
6201if test -n "$RANLIB"; then
6202  case $host_os in
6203  bitrig* | openbsd*)
6204    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6205    ;;
6206  *)
6207    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6208    ;;
6209  esac
6210  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6211fi
6212
6213case $host_os in
6214  darwin*)
6215    lock_old_archive_extraction=yes ;;
6216  *)
6217    lock_old_archive_extraction=no ;;
6218esac
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258# If no C compiler was specified, use CC.
6259LTCC=${LTCC-"$CC"}
6260
6261# If no C compiler flags were specified, use CFLAGS.
6262LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6263
6264# Allow CC to be a program name with arguments.
6265compiler=$CC
6266
6267
6268# Check for command to grab the raw symbol name followed by C symbol from nm.
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6270$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6271if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274
6275# These are sane defaults that work on at least a few old systems.
6276# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6277
6278# Character class describing NM global symbol codes.
6279symcode='[BCDEGRST]'
6280
6281# Regexp to match symbols that can be accessed directly from C.
6282sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6283
6284# Define system-specific variables.
6285case $host_os in
6286aix*)
6287  symcode='[BCDT]'
6288  ;;
6289cygwin* | mingw* | pw32* | cegcc*)
6290  symcode='[ABCDGISTW]'
6291  ;;
6292hpux*)
6293  if test ia64 = "$host_cpu"; then
6294    symcode='[ABCDEGRST]'
6295  fi
6296  ;;
6297irix* | nonstopux*)
6298  symcode='[BCDEGRST]'
6299  ;;
6300osf*)
6301  symcode='[BCDEGQRST]'
6302  ;;
6303solaris*)
6304  symcode='[BDRT]'
6305  ;;
6306sco3.2v5*)
6307  symcode='[DT]'
6308  ;;
6309sysv4.2uw2*)
6310  symcode='[DT]'
6311  ;;
6312sysv5* | sco5v6* | unixware* | OpenUNIX*)
6313  symcode='[ABDT]'
6314  ;;
6315sysv4)
6316  symcode='[DFNSTU]'
6317  ;;
6318esac
6319
6320# If we're using GNU nm, then use its standard symbol codes.
6321case `$NM -V 2>&1` in
6322*GNU* | *'with BFD'*)
6323  symcode='[ABCDGIRSTW]' ;;
6324esac
6325
6326if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6327  # Gets list of data symbols to import.
6328  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6329  # Adjust the below global symbol transforms to fixup imported variables.
6330  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6331  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6332  lt_c_name_lib_hook="\
6333  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6334  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6335else
6336  # Disable hooks by default.
6337  lt_cv_sys_global_symbol_to_import=
6338  lt_cdecl_hook=
6339  lt_c_name_hook=
6340  lt_c_name_lib_hook=
6341fi
6342
6343# Transform an extracted symbol line into a proper C declaration.
6344# Some systems (esp. on ia64) link data and code symbols differently,
6345# so use this general approach.
6346lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6347$lt_cdecl_hook\
6348" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6349" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6350
6351# Transform an extracted symbol line into symbol name and symbol address
6352lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6353$lt_c_name_hook\
6354" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6355" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6356
6357# Transform an extracted symbol line into symbol name with lib prefix and
6358# symbol address.
6359lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6360$lt_c_name_lib_hook\
6361" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6362" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6363" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6364
6365# Handle CRLF in mingw tool chain
6366opt_cr=
6367case $build_os in
6368mingw*)
6369  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6370  ;;
6371esac
6372
6373# Try without a prefix underscore, then with it.
6374for ac_symprfx in "" "_"; do
6375
6376  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6377  symxfrm="\\1 $ac_symprfx\\2 \\2"
6378
6379  # Write the raw and C identifiers.
6380  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6381    # Fake it for dumpbin and say T for any non-static function,
6382    # D for any global variable and I for any imported variable.
6383    # Also find C++ and __fastcall symbols from MSVC++,
6384    # which start with @ or ?.
6385    lt_cv_sys_global_symbol_pipe="$AWK '"\
6386"     {last_section=section; section=\$ 3};"\
6387"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6388"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6389"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6390"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6391"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6392"     \$ 0!~/External *\|/{next};"\
6393"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6394"     {if(hide[section]) next};"\
6395"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6396"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6397"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6398"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6399"     ' prfx=^$ac_symprfx"
6400  else
6401    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6402  fi
6403  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6404
6405  # Check to see that the pipe works correctly.
6406  pipe_works=no
6407
6408  rm -f conftest*
6409  cat > conftest.$ac_ext <<_LT_EOF
6410#ifdef __cplusplus
6411extern "C" {
6412#endif
6413char nm_test_var;
6414void nm_test_func(void);
6415void nm_test_func(void){}
6416#ifdef __cplusplus
6417}
6418#endif
6419int main(){nm_test_var='a';nm_test_func();return(0);}
6420_LT_EOF
6421
6422  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6423  (eval $ac_compile) 2>&5
6424  ac_status=$?
6425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426  test $ac_status = 0; }; then
6427    # Now try to grab the symbols.
6428    nlist=conftest.nm
6429    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6430  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6431  ac_status=$?
6432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433  test $ac_status = 0; } && test -s "$nlist"; then
6434      # Try sorting and uniquifying the output.
6435      if sort "$nlist" | uniq > "$nlist"T; then
6436	mv -f "$nlist"T "$nlist"
6437      else
6438	rm -f "$nlist"T
6439      fi
6440
6441      # Make sure that we snagged all the symbols we need.
6442      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6443	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6444	  cat <<_LT_EOF > conftest.$ac_ext
6445/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6446#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6447/* DATA imports from DLLs on WIN32 can't be const, because runtime
6448   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6449# define LT_DLSYM_CONST
6450#elif defined __osf__
6451/* This system does not cope well with relocations in const data.  */
6452# define LT_DLSYM_CONST
6453#else
6454# define LT_DLSYM_CONST const
6455#endif
6456
6457#ifdef __cplusplus
6458extern "C" {
6459#endif
6460
6461_LT_EOF
6462	  # Now generate the symbol file.
6463	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6464
6465	  cat <<_LT_EOF >> conftest.$ac_ext
6466
6467/* The mapping between symbol names and symbols.  */
6468LT_DLSYM_CONST struct {
6469  const char *name;
6470  void       *address;
6471}
6472lt__PROGRAM__LTX_preloaded_symbols[] =
6473{
6474  { "@PROGRAM@", (void *) 0 },
6475_LT_EOF
6476	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6477	  cat <<\_LT_EOF >> conftest.$ac_ext
6478  {0, (void *) 0}
6479};
6480
6481/* This works around a problem in FreeBSD linker */
6482#ifdef FREEBSD_WORKAROUND
6483static const void *lt_preloaded_setup() {
6484  return lt__PROGRAM__LTX_preloaded_symbols;
6485}
6486#endif
6487
6488#ifdef __cplusplus
6489}
6490#endif
6491_LT_EOF
6492	  # Now try linking the two files.
6493	  mv conftest.$ac_objext conftstm.$ac_objext
6494	  lt_globsym_save_LIBS=$LIBS
6495	  lt_globsym_save_CFLAGS=$CFLAGS
6496	  LIBS=conftstm.$ac_objext
6497	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6498	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6499  (eval $ac_link) 2>&5
6500  ac_status=$?
6501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6502  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6503	    pipe_works=yes
6504	  fi
6505	  LIBS=$lt_globsym_save_LIBS
6506	  CFLAGS=$lt_globsym_save_CFLAGS
6507	else
6508	  echo "cannot find nm_test_func in $nlist" >&5
6509	fi
6510      else
6511	echo "cannot find nm_test_var in $nlist" >&5
6512      fi
6513    else
6514      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6515    fi
6516  else
6517    echo "$progname: failed program was:" >&5
6518    cat conftest.$ac_ext >&5
6519  fi
6520  rm -rf conftest* conftst*
6521
6522  # Do not use the global_symbol_pipe unless it works.
6523  if test yes = "$pipe_works"; then
6524    break
6525  else
6526    lt_cv_sys_global_symbol_pipe=
6527  fi
6528done
6529
6530fi
6531
6532if test -z "$lt_cv_sys_global_symbol_pipe"; then
6533  lt_cv_sys_global_symbol_to_cdecl=
6534fi
6535if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6537$as_echo "failed" >&6; }
6538else
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6540$as_echo "ok" >&6; }
6541fi
6542
6543# Response file support.
6544if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6545  nm_file_list_spec='@'
6546elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6547  nm_file_list_spec='@'
6548fi
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6587$as_echo_n "checking for sysroot... " >&6; }
6588
6589# Check whether --with-sysroot was given.
6590if test "${with_sysroot+set}" = set; then :
6591  withval=$with_sysroot;
6592else
6593  with_sysroot=no
6594fi
6595
6596
6597lt_sysroot=
6598case $with_sysroot in #(
6599 yes)
6600   if test yes = "$GCC"; then
6601     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6602   fi
6603   ;; #(
6604 /*)
6605   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6606   ;; #(
6607 no|'')
6608   ;; #(
6609 *)
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6611$as_echo "$with_sysroot" >&6; }
6612   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6613   ;;
6614esac
6615
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6617$as_echo "${lt_sysroot:-no}" >&6; }
6618
6619
6620
6621
6622
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6624$as_echo_n "checking for a working dd... " >&6; }
6625if ${ac_cv_path_lt_DD+:} false; then :
6626  $as_echo_n "(cached) " >&6
6627else
6628  printf 0123456789abcdef0123456789abcdef >conftest.i
6629cat conftest.i conftest.i >conftest2.i
6630: ${lt_DD:=$DD}
6631if test -z "$lt_DD"; then
6632  ac_path_lt_DD_found=false
6633  # Loop through the user's path and test for each of PROGNAME-LIST
6634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637  IFS=$as_save_IFS
6638  test -z "$as_dir" && as_dir=.
6639    for ac_prog in dd; do
6640    for ac_exec_ext in '' $ac_executable_extensions; do
6641      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6642      as_fn_executable_p "$ac_path_lt_DD" || continue
6643if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6644  cmp -s conftest.i conftest.out \
6645  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6646fi
6647      $ac_path_lt_DD_found && break 3
6648    done
6649  done
6650  done
6651IFS=$as_save_IFS
6652  if test -z "$ac_cv_path_lt_DD"; then
6653    :
6654  fi
6655else
6656  ac_cv_path_lt_DD=$lt_DD
6657fi
6658
6659rm -f conftest.i conftest2.i conftest.out
6660fi
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6662$as_echo "$ac_cv_path_lt_DD" >&6; }
6663
6664
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6666$as_echo_n "checking how to truncate binary pipes... " >&6; }
6667if ${lt_cv_truncate_bin+:} false; then :
6668  $as_echo_n "(cached) " >&6
6669else
6670  printf 0123456789abcdef0123456789abcdef >conftest.i
6671cat conftest.i conftest.i >conftest2.i
6672lt_cv_truncate_bin=
6673if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6674  cmp -s conftest.i conftest.out \
6675  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6676fi
6677rm -f conftest.i conftest2.i conftest.out
6678test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6679fi
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6681$as_echo "$lt_cv_truncate_bin" >&6; }
6682
6683
6684
6685
6686
6687
6688
6689# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6690func_cc_basename ()
6691{
6692    for cc_temp in $*""; do
6693      case $cc_temp in
6694        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6695        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6696        \-*) ;;
6697        *) break;;
6698      esac
6699    done
6700    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6701}
6702
6703# Check whether --enable-libtool-lock was given.
6704if test "${enable_libtool_lock+set}" = set; then :
6705  enableval=$enable_libtool_lock;
6706fi
6707
6708test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6709
6710# Some flags need to be propagated to the compiler or linker for good
6711# libtool support.
6712case $host in
6713ia64-*-hpux*)
6714  # Find out what ABI is being produced by ac_compile, and set mode
6715  # options accordingly.
6716  echo 'int i;' > conftest.$ac_ext
6717  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6718  (eval $ac_compile) 2>&5
6719  ac_status=$?
6720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721  test $ac_status = 0; }; then
6722    case `/usr/bin/file conftest.$ac_objext` in
6723      *ELF-32*)
6724	HPUX_IA64_MODE=32
6725	;;
6726      *ELF-64*)
6727	HPUX_IA64_MODE=64
6728	;;
6729    esac
6730  fi
6731  rm -rf conftest*
6732  ;;
6733*-*-irix6*)
6734  # Find out what ABI is being produced by ac_compile, and set linker
6735  # options accordingly.
6736  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6737  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6738  (eval $ac_compile) 2>&5
6739  ac_status=$?
6740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741  test $ac_status = 0; }; then
6742    if test yes = "$lt_cv_prog_gnu_ld"; then
6743      case `/usr/bin/file conftest.$ac_objext` in
6744	*32-bit*)
6745	  LD="${LD-ld} -melf32bsmip"
6746	  ;;
6747	*N32*)
6748	  LD="${LD-ld} -melf32bmipn32"
6749	  ;;
6750	*64-bit*)
6751	  LD="${LD-ld} -melf64bmip"
6752	;;
6753      esac
6754    else
6755      case `/usr/bin/file conftest.$ac_objext` in
6756	*32-bit*)
6757	  LD="${LD-ld} -32"
6758	  ;;
6759	*N32*)
6760	  LD="${LD-ld} -n32"
6761	  ;;
6762	*64-bit*)
6763	  LD="${LD-ld} -64"
6764	  ;;
6765      esac
6766    fi
6767  fi
6768  rm -rf conftest*
6769  ;;
6770
6771mips64*-*linux*)
6772  # Find out what ABI is being produced by ac_compile, and set linker
6773  # options accordingly.
6774  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6775  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6776  (eval $ac_compile) 2>&5
6777  ac_status=$?
6778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779  test $ac_status = 0; }; then
6780    emul=elf
6781    case `/usr/bin/file conftest.$ac_objext` in
6782      *32-bit*)
6783	emul="${emul}32"
6784	;;
6785      *64-bit*)
6786	emul="${emul}64"
6787	;;
6788    esac
6789    case `/usr/bin/file conftest.$ac_objext` in
6790      *MSB*)
6791	emul="${emul}btsmip"
6792	;;
6793      *LSB*)
6794	emul="${emul}ltsmip"
6795	;;
6796    esac
6797    case `/usr/bin/file conftest.$ac_objext` in
6798      *N32*)
6799	emul="${emul}n32"
6800	;;
6801    esac
6802    LD="${LD-ld} -m $emul"
6803  fi
6804  rm -rf conftest*
6805  ;;
6806
6807x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6808s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6809  # Find out what ABI is being produced by ac_compile, and set linker
6810  # options accordingly.  Note that the listed cases only cover the
6811  # situations where additional linker options are needed (such as when
6812  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6813  # vice versa); the common cases where no linker options are needed do
6814  # not appear in the list.
6815  echo 'int i;' > conftest.$ac_ext
6816  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6817  (eval $ac_compile) 2>&5
6818  ac_status=$?
6819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820  test $ac_status = 0; }; then
6821    case `/usr/bin/file conftest.o` in
6822      *32-bit*)
6823	case $host in
6824	  x86_64-*kfreebsd*-gnu)
6825	    LD="${LD-ld} -m elf_i386_fbsd"
6826	    ;;
6827	  x86_64-*linux*)
6828	    case `/usr/bin/file conftest.o` in
6829	      *x86-64*)
6830		LD="${LD-ld} -m elf32_x86_64"
6831		;;
6832	      *)
6833		LD="${LD-ld} -m elf_i386"
6834		;;
6835	    esac
6836	    ;;
6837	  powerpc64le-*linux*)
6838	    LD="${LD-ld} -m elf32lppclinux"
6839	    ;;
6840	  powerpc64-*linux*)
6841	    LD="${LD-ld} -m elf32ppclinux"
6842	    ;;
6843	  s390x-*linux*)
6844	    LD="${LD-ld} -m elf_s390"
6845	    ;;
6846	  sparc64-*linux*)
6847	    LD="${LD-ld} -m elf32_sparc"
6848	    ;;
6849	esac
6850	;;
6851      *64-bit*)
6852	case $host in
6853	  x86_64-*kfreebsd*-gnu)
6854	    LD="${LD-ld} -m elf_x86_64_fbsd"
6855	    ;;
6856	  x86_64-*linux*)
6857	    LD="${LD-ld} -m elf_x86_64"
6858	    ;;
6859	  powerpcle-*linux*)
6860	    LD="${LD-ld} -m elf64lppc"
6861	    ;;
6862	  powerpc-*linux*)
6863	    LD="${LD-ld} -m elf64ppc"
6864	    ;;
6865	  s390*-*linux*|s390*-*tpf*)
6866	    LD="${LD-ld} -m elf64_s390"
6867	    ;;
6868	  sparc*-*linux*)
6869	    LD="${LD-ld} -m elf64_sparc"
6870	    ;;
6871	esac
6872	;;
6873    esac
6874  fi
6875  rm -rf conftest*
6876  ;;
6877
6878*-*-sco3.2v5*)
6879  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6880  SAVE_CFLAGS=$CFLAGS
6881  CFLAGS="$CFLAGS -belf"
6882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6883$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6884if ${lt_cv_cc_needs_belf+:} false; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  ac_ext=c
6888ac_cpp='$CPP $CPPFLAGS'
6889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6891ac_compiler_gnu=$ac_cv_c_compiler_gnu
6892
6893     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895
6896int
6897main ()
6898{
6899
6900  ;
6901  return 0;
6902}
6903_ACEOF
6904if ac_fn_c_try_link "$LINENO"; then :
6905  lt_cv_cc_needs_belf=yes
6906else
6907  lt_cv_cc_needs_belf=no
6908fi
6909rm -f core conftest.err conftest.$ac_objext \
6910    conftest$ac_exeext conftest.$ac_ext
6911     ac_ext=c
6912ac_cpp='$CPP $CPPFLAGS'
6913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916
6917fi
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6919$as_echo "$lt_cv_cc_needs_belf" >&6; }
6920  if test yes != "$lt_cv_cc_needs_belf"; then
6921    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6922    CFLAGS=$SAVE_CFLAGS
6923  fi
6924  ;;
6925*-*solaris*)
6926  # Find out what ABI is being produced by ac_compile, and set linker
6927  # options accordingly.
6928  echo 'int i;' > conftest.$ac_ext
6929  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930  (eval $ac_compile) 2>&5
6931  ac_status=$?
6932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933  test $ac_status = 0; }; then
6934    case `/usr/bin/file conftest.o` in
6935    *64-bit*)
6936      case $lt_cv_prog_gnu_ld in
6937      yes*)
6938        case $host in
6939        i?86-*-solaris*|x86_64-*-solaris*)
6940          LD="${LD-ld} -m elf_x86_64"
6941          ;;
6942        sparc*-*-solaris*)
6943          LD="${LD-ld} -m elf64_sparc"
6944          ;;
6945        esac
6946        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6947        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6948          LD=${LD-ld}_sol2
6949        fi
6950        ;;
6951      *)
6952	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6953	  LD="${LD-ld} -64"
6954	fi
6955	;;
6956      esac
6957      ;;
6958    esac
6959  fi
6960  rm -rf conftest*
6961  ;;
6962esac
6963
6964need_locks=$enable_libtool_lock
6965
6966if test -n "$ac_tool_prefix"; then
6967  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6968set dummy ${ac_tool_prefix}mt; ac_word=$2
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970$as_echo_n "checking for $ac_word... " >&6; }
6971if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6972  $as_echo_n "(cached) " >&6
6973else
6974  if test -n "$MANIFEST_TOOL"; then
6975  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6976else
6977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980  IFS=$as_save_IFS
6981  test -z "$as_dir" && as_dir=.
6982    for ac_exec_ext in '' $ac_executable_extensions; do
6983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986    break 2
6987  fi
6988done
6989  done
6990IFS=$as_save_IFS
6991
6992fi
6993fi
6994MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6995if test -n "$MANIFEST_TOOL"; then
6996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6997$as_echo "$MANIFEST_TOOL" >&6; }
6998else
6999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000$as_echo "no" >&6; }
7001fi
7002
7003
7004fi
7005if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7006  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7007  # Extract the first word of "mt", so it can be a program name with args.
7008set dummy mt; ac_word=$2
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010$as_echo_n "checking for $ac_word... " >&6; }
7011if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  if test -n "$ac_ct_MANIFEST_TOOL"; then
7015  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7016else
7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020  IFS=$as_save_IFS
7021  test -z "$as_dir" && as_dir=.
7022    for ac_exec_ext in '' $ac_executable_extensions; do
7023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026    break 2
7027  fi
7028done
7029  done
7030IFS=$as_save_IFS
7031
7032fi
7033fi
7034ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7035if test -n "$ac_ct_MANIFEST_TOOL"; then
7036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7037$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7038else
7039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040$as_echo "no" >&6; }
7041fi
7042
7043  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7044    MANIFEST_TOOL=":"
7045  else
7046    case $cross_compiling:$ac_tool_warned in
7047yes:)
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050ac_tool_warned=yes ;;
7051esac
7052    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7053  fi
7054else
7055  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7056fi
7057
7058test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7060$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7061if ${lt_cv_path_mainfest_tool+:} false; then :
7062  $as_echo_n "(cached) " >&6
7063else
7064  lt_cv_path_mainfest_tool=no
7065  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7066  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7067  cat conftest.err >&5
7068  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7069    lt_cv_path_mainfest_tool=yes
7070  fi
7071  rm -f conftest*
7072fi
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7074$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7075if test yes != "$lt_cv_path_mainfest_tool"; then
7076  MANIFEST_TOOL=:
7077fi
7078
7079
7080
7081
7082
7083
7084  case $host_os in
7085    rhapsody* | darwin*)
7086    if test -n "$ac_tool_prefix"; then
7087  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7088set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090$as_echo_n "checking for $ac_word... " >&6; }
7091if ${ac_cv_prog_DSYMUTIL+:} false; then :
7092  $as_echo_n "(cached) " >&6
7093else
7094  if test -n "$DSYMUTIL"; then
7095  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100  IFS=$as_save_IFS
7101  test -z "$as_dir" && as_dir=.
7102    for ac_exec_ext in '' $ac_executable_extensions; do
7103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106    break 2
7107  fi
7108done
7109  done
7110IFS=$as_save_IFS
7111
7112fi
7113fi
7114DSYMUTIL=$ac_cv_prog_DSYMUTIL
7115if test -n "$DSYMUTIL"; then
7116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7117$as_echo "$DSYMUTIL" >&6; }
7118else
7119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120$as_echo "no" >&6; }
7121fi
7122
7123
7124fi
7125if test -z "$ac_cv_prog_DSYMUTIL"; then
7126  ac_ct_DSYMUTIL=$DSYMUTIL
7127  # Extract the first word of "dsymutil", so it can be a program name with args.
7128set dummy dsymutil; ac_word=$2
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130$as_echo_n "checking for $ac_word... " >&6; }
7131if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7132  $as_echo_n "(cached) " >&6
7133else
7134  if test -n "$ac_ct_DSYMUTIL"; then
7135  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140  IFS=$as_save_IFS
7141  test -z "$as_dir" && as_dir=.
7142    for ac_exec_ext in '' $ac_executable_extensions; do
7143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146    break 2
7147  fi
7148done
7149  done
7150IFS=$as_save_IFS
7151
7152fi
7153fi
7154ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7155if test -n "$ac_ct_DSYMUTIL"; then
7156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7157$as_echo "$ac_ct_DSYMUTIL" >&6; }
7158else
7159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160$as_echo "no" >&6; }
7161fi
7162
7163  if test "x$ac_ct_DSYMUTIL" = x; then
7164    DSYMUTIL=":"
7165  else
7166    case $cross_compiling:$ac_tool_warned in
7167yes:)
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170ac_tool_warned=yes ;;
7171esac
7172    DSYMUTIL=$ac_ct_DSYMUTIL
7173  fi
7174else
7175  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7176fi
7177
7178    if test -n "$ac_tool_prefix"; then
7179  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7180set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182$as_echo_n "checking for $ac_word... " >&6; }
7183if ${ac_cv_prog_NMEDIT+:} false; then :
7184  $as_echo_n "(cached) " >&6
7185else
7186  if test -n "$NMEDIT"; then
7187  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192  IFS=$as_save_IFS
7193  test -z "$as_dir" && as_dir=.
7194    for ac_exec_ext in '' $ac_executable_extensions; do
7195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198    break 2
7199  fi
7200done
7201  done
7202IFS=$as_save_IFS
7203
7204fi
7205fi
7206NMEDIT=$ac_cv_prog_NMEDIT
7207if test -n "$NMEDIT"; then
7208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7209$as_echo "$NMEDIT" >&6; }
7210else
7211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212$as_echo "no" >&6; }
7213fi
7214
7215
7216fi
7217if test -z "$ac_cv_prog_NMEDIT"; then
7218  ac_ct_NMEDIT=$NMEDIT
7219  # Extract the first word of "nmedit", so it can be a program name with args.
7220set dummy nmedit; ac_word=$2
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222$as_echo_n "checking for $ac_word... " >&6; }
7223if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7224  $as_echo_n "(cached) " >&6
7225else
7226  if test -n "$ac_ct_NMEDIT"; then
7227  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7228else
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232  IFS=$as_save_IFS
7233  test -z "$as_dir" && as_dir=.
7234    for ac_exec_ext in '' $ac_executable_extensions; do
7235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238    break 2
7239  fi
7240done
7241  done
7242IFS=$as_save_IFS
7243
7244fi
7245fi
7246ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7247if test -n "$ac_ct_NMEDIT"; then
7248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7249$as_echo "$ac_ct_NMEDIT" >&6; }
7250else
7251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252$as_echo "no" >&6; }
7253fi
7254
7255  if test "x$ac_ct_NMEDIT" = x; then
7256    NMEDIT=":"
7257  else
7258    case $cross_compiling:$ac_tool_warned in
7259yes:)
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262ac_tool_warned=yes ;;
7263esac
7264    NMEDIT=$ac_ct_NMEDIT
7265  fi
7266else
7267  NMEDIT="$ac_cv_prog_NMEDIT"
7268fi
7269
7270    if test -n "$ac_tool_prefix"; then
7271  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7272set dummy ${ac_tool_prefix}lipo; ac_word=$2
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274$as_echo_n "checking for $ac_word... " >&6; }
7275if ${ac_cv_prog_LIPO+:} false; then :
7276  $as_echo_n "(cached) " >&6
7277else
7278  if test -n "$LIPO"; then
7279  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7280else
7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284  IFS=$as_save_IFS
7285  test -z "$as_dir" && as_dir=.
7286    for ac_exec_ext in '' $ac_executable_extensions; do
7287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290    break 2
7291  fi
7292done
7293  done
7294IFS=$as_save_IFS
7295
7296fi
7297fi
7298LIPO=$ac_cv_prog_LIPO
7299if test -n "$LIPO"; then
7300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7301$as_echo "$LIPO" >&6; }
7302else
7303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304$as_echo "no" >&6; }
7305fi
7306
7307
7308fi
7309if test -z "$ac_cv_prog_LIPO"; then
7310  ac_ct_LIPO=$LIPO
7311  # Extract the first word of "lipo", so it can be a program name with args.
7312set dummy lipo; ac_word=$2
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314$as_echo_n "checking for $ac_word... " >&6; }
7315if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  if test -n "$ac_ct_LIPO"; then
7319  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7320else
7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH
7323do
7324  IFS=$as_save_IFS
7325  test -z "$as_dir" && as_dir=.
7326    for ac_exec_ext in '' $ac_executable_extensions; do
7327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328    ac_cv_prog_ac_ct_LIPO="lipo"
7329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330    break 2
7331  fi
7332done
7333  done
7334IFS=$as_save_IFS
7335
7336fi
7337fi
7338ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7339if test -n "$ac_ct_LIPO"; then
7340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7341$as_echo "$ac_ct_LIPO" >&6; }
7342else
7343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344$as_echo "no" >&6; }
7345fi
7346
7347  if test "x$ac_ct_LIPO" = x; then
7348    LIPO=":"
7349  else
7350    case $cross_compiling:$ac_tool_warned in
7351yes:)
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354ac_tool_warned=yes ;;
7355esac
7356    LIPO=$ac_ct_LIPO
7357  fi
7358else
7359  LIPO="$ac_cv_prog_LIPO"
7360fi
7361
7362    if test -n "$ac_tool_prefix"; then
7363  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7364set dummy ${ac_tool_prefix}otool; ac_word=$2
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366$as_echo_n "checking for $ac_word... " >&6; }
7367if ${ac_cv_prog_OTOOL+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  if test -n "$OTOOL"; then
7371  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7372else
7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376  IFS=$as_save_IFS
7377  test -z "$as_dir" && as_dir=.
7378    for ac_exec_ext in '' $ac_executable_extensions; do
7379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382    break 2
7383  fi
7384done
7385  done
7386IFS=$as_save_IFS
7387
7388fi
7389fi
7390OTOOL=$ac_cv_prog_OTOOL
7391if test -n "$OTOOL"; then
7392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7393$as_echo "$OTOOL" >&6; }
7394else
7395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
7397fi
7398
7399
7400fi
7401if test -z "$ac_cv_prog_OTOOL"; then
7402  ac_ct_OTOOL=$OTOOL
7403  # Extract the first word of "otool", so it can be a program name with args.
7404set dummy otool; ac_word=$2
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406$as_echo_n "checking for $ac_word... " >&6; }
7407if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7408  $as_echo_n "(cached) " >&6
7409else
7410  if test -n "$ac_ct_OTOOL"; then
7411  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7412else
7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416  IFS=$as_save_IFS
7417  test -z "$as_dir" && as_dir=.
7418    for ac_exec_ext in '' $ac_executable_extensions; do
7419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420    ac_cv_prog_ac_ct_OTOOL="otool"
7421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422    break 2
7423  fi
7424done
7425  done
7426IFS=$as_save_IFS
7427
7428fi
7429fi
7430ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7431if test -n "$ac_ct_OTOOL"; then
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7433$as_echo "$ac_ct_OTOOL" >&6; }
7434else
7435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
7437fi
7438
7439  if test "x$ac_ct_OTOOL" = x; then
7440    OTOOL=":"
7441  else
7442    case $cross_compiling:$ac_tool_warned in
7443yes:)
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446ac_tool_warned=yes ;;
7447esac
7448    OTOOL=$ac_ct_OTOOL
7449  fi
7450else
7451  OTOOL="$ac_cv_prog_OTOOL"
7452fi
7453
7454    if test -n "$ac_tool_prefix"; then
7455  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7456set dummy ${ac_tool_prefix}otool64; ac_word=$2
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458$as_echo_n "checking for $ac_word... " >&6; }
7459if ${ac_cv_prog_OTOOL64+:} false; then :
7460  $as_echo_n "(cached) " >&6
7461else
7462  if test -n "$OTOOL64"; then
7463  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7464else
7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468  IFS=$as_save_IFS
7469  test -z "$as_dir" && as_dir=.
7470    for ac_exec_ext in '' $ac_executable_extensions; do
7471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474    break 2
7475  fi
7476done
7477  done
7478IFS=$as_save_IFS
7479
7480fi
7481fi
7482OTOOL64=$ac_cv_prog_OTOOL64
7483if test -n "$OTOOL64"; then
7484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7485$as_echo "$OTOOL64" >&6; }
7486else
7487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488$as_echo "no" >&6; }
7489fi
7490
7491
7492fi
7493if test -z "$ac_cv_prog_OTOOL64"; then
7494  ac_ct_OTOOL64=$OTOOL64
7495  # Extract the first word of "otool64", so it can be a program name with args.
7496set dummy otool64; ac_word=$2
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498$as_echo_n "checking for $ac_word... " >&6; }
7499if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7500  $as_echo_n "(cached) " >&6
7501else
7502  if test -n "$ac_ct_OTOOL64"; then
7503  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7504else
7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508  IFS=$as_save_IFS
7509  test -z "$as_dir" && as_dir=.
7510    for ac_exec_ext in '' $ac_executable_extensions; do
7511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512    ac_cv_prog_ac_ct_OTOOL64="otool64"
7513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514    break 2
7515  fi
7516done
7517  done
7518IFS=$as_save_IFS
7519
7520fi
7521fi
7522ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7523if test -n "$ac_ct_OTOOL64"; then
7524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7525$as_echo "$ac_ct_OTOOL64" >&6; }
7526else
7527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528$as_echo "no" >&6; }
7529fi
7530
7531  if test "x$ac_ct_OTOOL64" = x; then
7532    OTOOL64=":"
7533  else
7534    case $cross_compiling:$ac_tool_warned in
7535yes:)
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538ac_tool_warned=yes ;;
7539esac
7540    OTOOL64=$ac_ct_OTOOL64
7541  fi
7542else
7543  OTOOL64="$ac_cv_prog_OTOOL64"
7544fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7573$as_echo_n "checking for -single_module linker flag... " >&6; }
7574if ${lt_cv_apple_cc_single_mod+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  lt_cv_apple_cc_single_mod=no
7578      if test -z "$LT_MULTI_MODULE"; then
7579	# By default we will add the -single_module flag. You can override
7580	# by either setting the environment variable LT_MULTI_MODULE
7581	# non-empty at configure time, or by adding -multi_module to the
7582	# link flags.
7583	rm -rf libconftest.dylib*
7584	echo "int foo(void){return 1;}" > conftest.c
7585	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7586-dynamiclib -Wl,-single_module conftest.c" >&5
7587	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7588	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7589        _lt_result=$?
7590	# If there is a non-empty error log, and "single_module"
7591	# appears in it, assume the flag caused a linker warning
7592        if test -s conftest.err && $GREP single_module conftest.err; then
7593	  cat conftest.err >&5
7594	# Otherwise, if the output was created with a 0 exit code from
7595	# the compiler, it worked.
7596	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7597	  lt_cv_apple_cc_single_mod=yes
7598	else
7599	  cat conftest.err >&5
7600	fi
7601	rm -rf libconftest.dylib*
7602	rm -f conftest.*
7603      fi
7604fi
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7606$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7607
7608    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7609$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7610if ${lt_cv_ld_exported_symbols_list+:} false; then :
7611  $as_echo_n "(cached) " >&6
7612else
7613  lt_cv_ld_exported_symbols_list=no
7614      save_LDFLAGS=$LDFLAGS
7615      echo "_main" > conftest.sym
7616      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7617      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619
7620int
7621main ()
7622{
7623
7624  ;
7625  return 0;
7626}
7627_ACEOF
7628if ac_fn_c_try_link "$LINENO"; then :
7629  lt_cv_ld_exported_symbols_list=yes
7630else
7631  lt_cv_ld_exported_symbols_list=no
7632fi
7633rm -f core conftest.err conftest.$ac_objext \
7634    conftest$ac_exeext conftest.$ac_ext
7635	LDFLAGS=$save_LDFLAGS
7636
7637fi
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7639$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7640
7641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7642$as_echo_n "checking for -force_load linker flag... " >&6; }
7643if ${lt_cv_ld_force_load+:} false; then :
7644  $as_echo_n "(cached) " >&6
7645else
7646  lt_cv_ld_force_load=no
7647      cat > conftest.c << _LT_EOF
7648int forced_loaded() { return 2;}
7649_LT_EOF
7650      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7651      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7652      echo "$AR cru libconftest.a conftest.o" >&5
7653      $AR cru libconftest.a conftest.o 2>&5
7654      echo "$RANLIB libconftest.a" >&5
7655      $RANLIB libconftest.a 2>&5
7656      cat > conftest.c << _LT_EOF
7657int main() { return 0;}
7658_LT_EOF
7659      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7660      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7661      _lt_result=$?
7662      if test -s conftest.err && $GREP force_load conftest.err; then
7663	cat conftest.err >&5
7664      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7665	lt_cv_ld_force_load=yes
7666      else
7667	cat conftest.err >&5
7668      fi
7669        rm -f conftest.err libconftest.a conftest conftest.c
7670        rm -rf conftest.dSYM
7671
7672fi
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7674$as_echo "$lt_cv_ld_force_load" >&6; }
7675    case $host_os in
7676    rhapsody* | darwin1.[012])
7677      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7678    darwin1.*)
7679      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7680    darwin*) # darwin 5.x on
7681      # if running on 10.5 or later, the deployment target defaults
7682      # to the OS version, if on x86, and 10.4, the deployment
7683      # target defaults to 10.4. Don't you love it?
7684      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7685	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7686	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7687	10.[012][,.]*)
7688	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7689	10.*)
7690	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7691      esac
7692    ;;
7693  esac
7694    if test yes = "$lt_cv_apple_cc_single_mod"; then
7695      _lt_dar_single_mod='$single_module'
7696    fi
7697    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7698      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7699    else
7700      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7701    fi
7702    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7703      _lt_dsymutil='~$DSYMUTIL $lib || :'
7704    else
7705      _lt_dsymutil=
7706    fi
7707    ;;
7708  esac
7709
7710# func_munge_path_list VARIABLE PATH
7711# -----------------------------------
7712# VARIABLE is name of variable containing _space_ separated list of
7713# directories to be munged by the contents of PATH, which is string
7714# having a format:
7715# "DIR[:DIR]:"
7716#       string "DIR[ DIR]" will be prepended to VARIABLE
7717# ":DIR[:DIR]"
7718#       string "DIR[ DIR]" will be appended to VARIABLE
7719# "DIRP[:DIRP]::[DIRA:]DIRA"
7720#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7721#       "DIRA[ DIRA]" will be appended to VARIABLE
7722# "DIR[:DIR]"
7723#       VARIABLE will be replaced by "DIR[ DIR]"
7724func_munge_path_list ()
7725{
7726    case x$2 in
7727    x)
7728        ;;
7729    *:)
7730        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7731        ;;
7732    x:*)
7733        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7734        ;;
7735    *::*)
7736        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7737        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7738        ;;
7739    *)
7740        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7741        ;;
7742    esac
7743}
7744
7745ac_ext=c
7746ac_cpp='$CPP $CPPFLAGS'
7747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7751$as_echo_n "checking how to run the C preprocessor... " >&6; }
7752# On Suns, sometimes $CPP names a directory.
7753if test -n "$CPP" && test -d "$CPP"; then
7754  CPP=
7755fi
7756if test -z "$CPP"; then
7757  if ${ac_cv_prog_CPP+:} false; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760      # Double quotes because CPP needs to be expanded
7761    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7762    do
7763      ac_preproc_ok=false
7764for ac_c_preproc_warn_flag in '' yes
7765do
7766  # Use a header file that comes with gcc, so configuring glibc
7767  # with a fresh cross-compiler works.
7768  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7769  # <limits.h> exists even on freestanding compilers.
7770  # On the NeXT, cc -E runs the code through the compiler's parser,
7771  # not just through cpp. "Syntax error" is here to catch this case.
7772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773/* end confdefs.h.  */
7774#ifdef __STDC__
7775# include <limits.h>
7776#else
7777# include <assert.h>
7778#endif
7779		     Syntax error
7780_ACEOF
7781if ac_fn_c_try_cpp "$LINENO"; then :
7782
7783else
7784  # Broken: fails on valid input.
7785continue
7786fi
7787rm -f conftest.err conftest.i conftest.$ac_ext
7788
7789  # OK, works on sane cases.  Now check whether nonexistent headers
7790  # can be detected and how.
7791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792/* end confdefs.h.  */
7793#include <ac_nonexistent.h>
7794_ACEOF
7795if ac_fn_c_try_cpp "$LINENO"; then :
7796  # Broken: success on invalid input.
7797continue
7798else
7799  # Passes both tests.
7800ac_preproc_ok=:
7801break
7802fi
7803rm -f conftest.err conftest.i conftest.$ac_ext
7804
7805done
7806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7807rm -f conftest.i conftest.err conftest.$ac_ext
7808if $ac_preproc_ok; then :
7809  break
7810fi
7811
7812    done
7813    ac_cv_prog_CPP=$CPP
7814
7815fi
7816  CPP=$ac_cv_prog_CPP
7817else
7818  ac_cv_prog_CPP=$CPP
7819fi
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7821$as_echo "$CPP" >&6; }
7822ac_preproc_ok=false
7823for ac_c_preproc_warn_flag in '' yes
7824do
7825  # Use a header file that comes with gcc, so configuring glibc
7826  # with a fresh cross-compiler works.
7827  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7828  # <limits.h> exists even on freestanding compilers.
7829  # On the NeXT, cc -E runs the code through the compiler's parser,
7830  # not just through cpp. "Syntax error" is here to catch this case.
7831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h.  */
7833#ifdef __STDC__
7834# include <limits.h>
7835#else
7836# include <assert.h>
7837#endif
7838		     Syntax error
7839_ACEOF
7840if ac_fn_c_try_cpp "$LINENO"; then :
7841
7842else
7843  # Broken: fails on valid input.
7844continue
7845fi
7846rm -f conftest.err conftest.i conftest.$ac_ext
7847
7848  # OK, works on sane cases.  Now check whether nonexistent headers
7849  # can be detected and how.
7850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851/* end confdefs.h.  */
7852#include <ac_nonexistent.h>
7853_ACEOF
7854if ac_fn_c_try_cpp "$LINENO"; then :
7855  # Broken: success on invalid input.
7856continue
7857else
7858  # Passes both tests.
7859ac_preproc_ok=:
7860break
7861fi
7862rm -f conftest.err conftest.i conftest.$ac_ext
7863
7864done
7865# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7866rm -f conftest.i conftest.err conftest.$ac_ext
7867if $ac_preproc_ok; then :
7868
7869else
7870  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7872as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7873See \`config.log' for more details" "$LINENO" 5; }
7874fi
7875
7876ac_ext=c
7877ac_cpp='$CPP $CPPFLAGS'
7878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881
7882
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7884$as_echo_n "checking for ANSI C header files... " >&6; }
7885if ${ac_cv_header_stdc+:} false; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h.  */
7890#include <stdlib.h>
7891#include <stdarg.h>
7892#include <string.h>
7893#include <float.h>
7894
7895int
7896main ()
7897{
7898
7899  ;
7900  return 0;
7901}
7902_ACEOF
7903if ac_fn_c_try_compile "$LINENO"; then :
7904  ac_cv_header_stdc=yes
7905else
7906  ac_cv_header_stdc=no
7907fi
7908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909
7910if test $ac_cv_header_stdc = yes; then
7911  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913/* end confdefs.h.  */
7914#include <string.h>
7915
7916_ACEOF
7917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918  $EGREP "memchr" >/dev/null 2>&1; then :
7919
7920else
7921  ac_cv_header_stdc=no
7922fi
7923rm -f conftest*
7924
7925fi
7926
7927if test $ac_cv_header_stdc = yes; then
7928  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h.  */
7931#include <stdlib.h>
7932
7933_ACEOF
7934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7935  $EGREP "free" >/dev/null 2>&1; then :
7936
7937else
7938  ac_cv_header_stdc=no
7939fi
7940rm -f conftest*
7941
7942fi
7943
7944if test $ac_cv_header_stdc = yes; then
7945  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7946  if test "$cross_compiling" = yes; then :
7947  :
7948else
7949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950/* end confdefs.h.  */
7951#include <ctype.h>
7952#include <stdlib.h>
7953#if ((' ' & 0x0FF) == 0x020)
7954# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7955# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7956#else
7957# define ISLOWER(c) \
7958		   (('a' <= (c) && (c) <= 'i') \
7959		     || ('j' <= (c) && (c) <= 'r') \
7960		     || ('s' <= (c) && (c) <= 'z'))
7961# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7962#endif
7963
7964#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7965int
7966main ()
7967{
7968  int i;
7969  for (i = 0; i < 256; i++)
7970    if (XOR (islower (i), ISLOWER (i))
7971	|| toupper (i) != TOUPPER (i))
7972      return 2;
7973  return 0;
7974}
7975_ACEOF
7976if ac_fn_c_try_run "$LINENO"; then :
7977
7978else
7979  ac_cv_header_stdc=no
7980fi
7981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7982  conftest.$ac_objext conftest.beam conftest.$ac_ext
7983fi
7984
7985fi
7986fi
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7988$as_echo "$ac_cv_header_stdc" >&6; }
7989if test $ac_cv_header_stdc = yes; then
7990
7991$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7992
7993fi
7994
7995# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7996for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7997		  inttypes.h stdint.h unistd.h
7998do :
7999  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8000ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8001"
8002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8003  cat >>confdefs.h <<_ACEOF
8004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8005_ACEOF
8006
8007fi
8008
8009done
8010
8011
8012for ac_header in dlfcn.h
8013do :
8014  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8015"
8016if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8017  cat >>confdefs.h <<_ACEOF
8018#define HAVE_DLFCN_H 1
8019_ACEOF
8020
8021fi
8022
8023done
8024
8025
8026if test "`cd $srcdir && pwd`" != "`pwd`"; then
8027  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8028  # is not polluted with repeated "-I."
8029  am__isrc=' -I$(srcdir)'
8030  # test to see if srcdir already configured
8031  if test -f $srcdir/config.status; then
8032    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8033  fi
8034fi
8035
8036# test whether we have cygpath
8037if test -z "$CYGPATH_W"; then
8038  if (cygpath --version) >/dev/null 2>/dev/null; then
8039    CYGPATH_W='cygpath -w'
8040  else
8041    CYGPATH_W=echo
8042  fi
8043fi
8044
8045
8046# Define the identity of the package.
8047 PACKAGE='web2c-tools'
8048 VERSION='2015'
8049
8050
8051cat >>confdefs.h <<_ACEOF
8052#define PACKAGE "$PACKAGE"
8053_ACEOF
8054
8055
8056cat >>confdefs.h <<_ACEOF
8057#define VERSION "$VERSION"
8058_ACEOF
8059
8060# Some tools Automake needs.
8061
8062ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8063
8064
8065AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
8066
8067
8068AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8069
8070
8071AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8072
8073
8074MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8075
8076# For better backward compatibility.  To be removed once Automake 1.9.x
8077# dies out for good.  For more background, see:
8078# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
8079# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
8080mkdir_p='$(MKDIR_P)'
8081
8082# We need awk for the "check" target (and possibly the TAP driver).  The
8083# system "awk" is bad on some platforms.
8084# Always define AMTAR for backward compatibility.  Yes, it's still used
8085# in the wild :-(  We should find a proper way to deprecate it ...
8086AMTAR='$${TAR-tar}'
8087
8088
8089# We'll loop over all known methods to create a tar archive until one works.
8090_am_tools='gnutar  pax cpio none'
8091
8092am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
8093
8094
8095
8096
8097
8098
8099# POSIX will say in a future version that running "rm -f" with no argument
8100# is OK; and we want to be able to make that assumption in our Makefile
8101# recipes.  So use an aggressive probe to check that the usage we want is
8102# actually supported "in the wild" to an acceptable degree.
8103# See automake bug#10828.
8104# To make any issue more visible, cause the running configure to be aborted
8105# by default if the 'rm' program in use doesn't match our expectations; the
8106# user can still override this though.
8107if rm -f && rm -fr && rm -rf; then : OK; else
8108  cat >&2 <<'END'
8109Oops!
8110
8111Your 'rm' program seems unable to run without file operands specified
8112on the command line, even when the '-f' option is present.  This is contrary
8113to the behaviour of most rm programs out there, and not conforming with
8114the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
8115
8116Please tell bug-automake@gnu.org about your system, including the value
8117of your $PATH and any error possibly output before this message.  This
8118can help us improve future automake versions.
8119
8120END
8121  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
8122    echo 'Configuration will proceed anyway, since you have set the' >&2
8123    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
8124    echo >&2
8125  else
8126    cat >&2 <<'END'
8127Aborting the configuration process, to ensure you take notice of the issue.
8128
8129You can download and install GNU coreutils to get an 'rm' implementation
8130that behaves properly: <http://www.gnu.org/software/coreutils/>.
8131
8132If you want to complete the configuration process using your problematic
8133'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
8134to "yes", and re-run configure.
8135
8136END
8137    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
8138  fi
8139fi
8140
8141
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
8143$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
8144    # Check whether --enable-maintainer-mode was given.
8145if test "${enable_maintainer_mode+set}" = set; then :
8146  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
8147else
8148  USE_MAINTAINER_MODE=no
8149fi
8150
8151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
8152$as_echo "$USE_MAINTAINER_MODE" >&6; }
8153   if test $USE_MAINTAINER_MODE = yes; then
8154  MAINTAINER_MODE_TRUE=
8155  MAINTAINER_MODE_FALSE='#'
8156else
8157  MAINTAINER_MODE_TRUE='#'
8158  MAINTAINER_MODE_FALSE=
8159fi
8160
8161  MAINT=$MAINTAINER_MODE_TRUE
8162
8163
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
8165$as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
8166if ${kb_cv_c_prototypes+:} false; then :
8167  $as_echo_n "(cached) " >&6
8168else
8169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170/* end confdefs.h.  */
8171#include <stdarg.h>
8172int
8173main ()
8174{
8175extern void foo(int i,...);
8176  ;
8177  return 0;
8178}
8179_ACEOF
8180if ac_fn_c_try_link "$LINENO"; then :
8181  kb_cv_c_prototypes=yes
8182else
8183  kb_cv_c_prototypes=no
8184fi
8185rm -f core conftest.err conftest.$ac_objext \
8186    conftest$ac_exeext conftest.$ac_ext
8187fi
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
8189$as_echo "$kb_cv_c_prototypes" >&6; }
8190if test "x$kb_cv_c_prototypes" = xno; then
8191  as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
8194$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
8195if ${kpse_cv_warning_cflags+:} false; then :
8196  $as_echo_n "(cached) " >&6
8197else
8198  if test "x$GCC" = xyes; then
8199  kpse_cv_warning_cflags=
8200if test "x$enable_compiler_warnings" != xno; then
8201  kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
8202  case `$CC -dumpversion` in #(
8203  3.4.* | 4.*) :
8204    kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
8205  *) :
8206     ;;
8207esac
8208  case `$CC -dumpversion` in #(
8209  3.[234].* | 4.*) :
8210    kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
8211  *) :
8212     ;;
8213esac
8214  if test "x$enable_compiler_warnings" != xmin; then
8215    kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
8216    kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
8217    if test "x$enable_compiler_warnings" != xyes; then
8218      kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
8219      kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
8220      case `$CC -dumpversion` in #(
8221  3.4.* | 4.*) :
8222    kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
8223  *) :
8224     ;;
8225esac
8226      if test "x$enable_compiler_warnings" != xmax; then
8227        kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
8228      fi
8229    fi
8230  fi
8231fi
8232elif test "x$enable_compiler_warnings" = xno; then
8233  kpse_cv_warning_cflags=
8234else
8235  kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
8236fi
8237fi
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
8239$as_echo "$kpse_cv_warning_cflags" >&6; }
8240WARNING_CFLAGS=$kpse_cv_warning_cflags
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253# Set options
8254enable_win32_dll=yes
8255
8256case $host in
8257*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8258  if test -n "$ac_tool_prefix"; then
8259  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8260set dummy ${ac_tool_prefix}as; ac_word=$2
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262$as_echo_n "checking for $ac_word... " >&6; }
8263if ${ac_cv_prog_AS+:} false; then :
8264  $as_echo_n "(cached) " >&6
8265else
8266  if test -n "$AS"; then
8267  ac_cv_prog_AS="$AS" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272  IFS=$as_save_IFS
8273  test -z "$as_dir" && as_dir=.
8274    for ac_exec_ext in '' $ac_executable_extensions; do
8275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276    ac_cv_prog_AS="${ac_tool_prefix}as"
8277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278    break 2
8279  fi
8280done
8281  done
8282IFS=$as_save_IFS
8283
8284fi
8285fi
8286AS=$ac_cv_prog_AS
8287if test -n "$AS"; then
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8289$as_echo "$AS" >&6; }
8290else
8291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
8293fi
8294
8295
8296fi
8297if test -z "$ac_cv_prog_AS"; then
8298  ac_ct_AS=$AS
8299  # Extract the first word of "as", so it can be a program name with args.
8300set dummy as; ac_word=$2
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302$as_echo_n "checking for $ac_word... " >&6; }
8303if ${ac_cv_prog_ac_ct_AS+:} false; then :
8304  $as_echo_n "(cached) " >&6
8305else
8306  if test -n "$ac_ct_AS"; then
8307  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8308else
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312  IFS=$as_save_IFS
8313  test -z "$as_dir" && as_dir=.
8314    for ac_exec_ext in '' $ac_executable_extensions; do
8315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316    ac_cv_prog_ac_ct_AS="as"
8317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318    break 2
8319  fi
8320done
8321  done
8322IFS=$as_save_IFS
8323
8324fi
8325fi
8326ac_ct_AS=$ac_cv_prog_ac_ct_AS
8327if test -n "$ac_ct_AS"; then
8328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8329$as_echo "$ac_ct_AS" >&6; }
8330else
8331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332$as_echo "no" >&6; }
8333fi
8334
8335  if test "x$ac_ct_AS" = x; then
8336    AS="false"
8337  else
8338    case $cross_compiling:$ac_tool_warned in
8339yes:)
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8342ac_tool_warned=yes ;;
8343esac
8344    AS=$ac_ct_AS
8345  fi
8346else
8347  AS="$ac_cv_prog_AS"
8348fi
8349
8350  if test -n "$ac_tool_prefix"; then
8351  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8352set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354$as_echo_n "checking for $ac_word... " >&6; }
8355if ${ac_cv_prog_DLLTOOL+:} false; then :
8356  $as_echo_n "(cached) " >&6
8357else
8358  if test -n "$DLLTOOL"; then
8359  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364  IFS=$as_save_IFS
8365  test -z "$as_dir" && as_dir=.
8366    for ac_exec_ext in '' $ac_executable_extensions; do
8367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370    break 2
8371  fi
8372done
8373  done
8374IFS=$as_save_IFS
8375
8376fi
8377fi
8378DLLTOOL=$ac_cv_prog_DLLTOOL
8379if test -n "$DLLTOOL"; then
8380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8381$as_echo "$DLLTOOL" >&6; }
8382else
8383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384$as_echo "no" >&6; }
8385fi
8386
8387
8388fi
8389if test -z "$ac_cv_prog_DLLTOOL"; then
8390  ac_ct_DLLTOOL=$DLLTOOL
8391  # Extract the first word of "dlltool", so it can be a program name with args.
8392set dummy dlltool; ac_word=$2
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394$as_echo_n "checking for $ac_word... " >&6; }
8395if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8396  $as_echo_n "(cached) " >&6
8397else
8398  if test -n "$ac_ct_DLLTOOL"; then
8399  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8400else
8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404  IFS=$as_save_IFS
8405  test -z "$as_dir" && as_dir=.
8406    for ac_exec_ext in '' $ac_executable_extensions; do
8407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410    break 2
8411  fi
8412done
8413  done
8414IFS=$as_save_IFS
8415
8416fi
8417fi
8418ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8419if test -n "$ac_ct_DLLTOOL"; then
8420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8421$as_echo "$ac_ct_DLLTOOL" >&6; }
8422else
8423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424$as_echo "no" >&6; }
8425fi
8426
8427  if test "x$ac_ct_DLLTOOL" = x; then
8428    DLLTOOL="false"
8429  else
8430    case $cross_compiling:$ac_tool_warned in
8431yes:)
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8434ac_tool_warned=yes ;;
8435esac
8436    DLLTOOL=$ac_ct_DLLTOOL
8437  fi
8438else
8439  DLLTOOL="$ac_cv_prog_DLLTOOL"
8440fi
8441
8442  if test -n "$ac_tool_prefix"; then
8443  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8444set dummy ${ac_tool_prefix}objdump; ac_word=$2
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446$as_echo_n "checking for $ac_word... " >&6; }
8447if ${ac_cv_prog_OBJDUMP+:} false; then :
8448  $as_echo_n "(cached) " >&6
8449else
8450  if test -n "$OBJDUMP"; then
8451  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8452else
8453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
8455do
8456  IFS=$as_save_IFS
8457  test -z "$as_dir" && as_dir=.
8458    for ac_exec_ext in '' $ac_executable_extensions; do
8459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8460    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462    break 2
8463  fi
8464done
8465  done
8466IFS=$as_save_IFS
8467
8468fi
8469fi
8470OBJDUMP=$ac_cv_prog_OBJDUMP
8471if test -n "$OBJDUMP"; then
8472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8473$as_echo "$OBJDUMP" >&6; }
8474else
8475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
8477fi
8478
8479
8480fi
8481if test -z "$ac_cv_prog_OBJDUMP"; then
8482  ac_ct_OBJDUMP=$OBJDUMP
8483  # Extract the first word of "objdump", so it can be a program name with args.
8484set dummy objdump; ac_word=$2
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486$as_echo_n "checking for $ac_word... " >&6; }
8487if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8488  $as_echo_n "(cached) " >&6
8489else
8490  if test -n "$ac_ct_OBJDUMP"; then
8491  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8492else
8493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494for as_dir in $PATH
8495do
8496  IFS=$as_save_IFS
8497  test -z "$as_dir" && as_dir=.
8498    for ac_exec_ext in '' $ac_executable_extensions; do
8499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502    break 2
8503  fi
8504done
8505  done
8506IFS=$as_save_IFS
8507
8508fi
8509fi
8510ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8511if test -n "$ac_ct_OBJDUMP"; then
8512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8513$as_echo "$ac_ct_OBJDUMP" >&6; }
8514else
8515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516$as_echo "no" >&6; }
8517fi
8518
8519  if test "x$ac_ct_OBJDUMP" = x; then
8520    OBJDUMP="false"
8521  else
8522    case $cross_compiling:$ac_tool_warned in
8523yes:)
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8526ac_tool_warned=yes ;;
8527esac
8528    OBJDUMP=$ac_ct_OBJDUMP
8529  fi
8530else
8531  OBJDUMP="$ac_cv_prog_OBJDUMP"
8532fi
8533
8534  ;;
8535esac
8536
8537test -z "$AS" && AS=as
8538
8539
8540
8541
8542
8543test -z "$DLLTOOL" && DLLTOOL=dlltool
8544
8545
8546
8547
8548
8549test -z "$OBJDUMP" && OBJDUMP=objdump
8550
8551
8552
8553
8554
8555
8556
8557        enable_dlopen=no
8558
8559
8560
8561            # Check whether --enable-shared was given.
8562if test "${enable_shared+set}" = set; then :
8563  enableval=$enable_shared; p=${PACKAGE-default}
8564    case $enableval in
8565    yes) enable_shared=yes ;;
8566    no) enable_shared=no ;;
8567    *)
8568      enable_shared=no
8569      # Look at the argument we got.  We use all the common list separators.
8570      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8571      for pkg in $enableval; do
8572	IFS=$lt_save_ifs
8573	if test "X$pkg" = "X$p"; then
8574	  enable_shared=yes
8575	fi
8576      done
8577      IFS=$lt_save_ifs
8578      ;;
8579    esac
8580else
8581  enable_shared=yes
8582fi
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592  # Check whether --enable-static was given.
8593if test "${enable_static+set}" = set; then :
8594  enableval=$enable_static; p=${PACKAGE-default}
8595    case $enableval in
8596    yes) enable_static=yes ;;
8597    no) enable_static=no ;;
8598    *)
8599     enable_static=no
8600      # Look at the argument we got.  We use all the common list separators.
8601      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8602      for pkg in $enableval; do
8603	IFS=$lt_save_ifs
8604	if test "X$pkg" = "X$p"; then
8605	  enable_static=yes
8606	fi
8607      done
8608      IFS=$lt_save_ifs
8609      ;;
8610    esac
8611else
8612  enable_static=yes
8613fi
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624# Check whether --with-pic was given.
8625if test "${with_pic+set}" = set; then :
8626  withval=$with_pic; lt_p=${PACKAGE-default}
8627    case $withval in
8628    yes|no) pic_mode=$withval ;;
8629    *)
8630      pic_mode=default
8631      # Look at the argument we got.  We use all the common list separators.
8632      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8633      for lt_pkg in $withval; do
8634	IFS=$lt_save_ifs
8635	if test "X$lt_pkg" = "X$lt_p"; then
8636	  pic_mode=yes
8637	fi
8638      done
8639      IFS=$lt_save_ifs
8640      ;;
8641    esac
8642else
8643  pic_mode=default
8644fi
8645
8646
8647
8648
8649
8650
8651
8652
8653  # Check whether --enable-fast-install was given.
8654if test "${enable_fast_install+set}" = set; then :
8655  enableval=$enable_fast_install; p=${PACKAGE-default}
8656    case $enableval in
8657    yes) enable_fast_install=yes ;;
8658    no) enable_fast_install=no ;;
8659    *)
8660      enable_fast_install=no
8661      # Look at the argument we got.  We use all the common list separators.
8662      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8663      for pkg in $enableval; do
8664	IFS=$lt_save_ifs
8665	if test "X$pkg" = "X$p"; then
8666	  enable_fast_install=yes
8667	fi
8668      done
8669      IFS=$lt_save_ifs
8670      ;;
8671    esac
8672else
8673  enable_fast_install=yes
8674fi
8675
8676
8677
8678
8679
8680
8681
8682
8683  shared_archive_member_spec=
8684case $host,$enable_shared in
8685power*-*-aix[5-9]*,yes)
8686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8687$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8688
8689# Check whether --with-aix-soname was given.
8690if test "${with_aix_soname+set}" = set; then :
8691  withval=$with_aix_soname; case $withval in
8692    aix|svr4|both)
8693      ;;
8694    *)
8695      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8696      ;;
8697    esac
8698    lt_cv_with_aix_soname=$with_aix_soname
8699else
8700  if ${lt_cv_with_aix_soname+:} false; then :
8701  $as_echo_n "(cached) " >&6
8702else
8703  lt_cv_with_aix_soname=aix
8704fi
8705
8706    with_aix_soname=$lt_cv_with_aix_soname
8707fi
8708
8709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8710$as_echo "$with_aix_soname" >&6; }
8711  if test aix != "$with_aix_soname"; then
8712    # For the AIX way of multilib, we name the shared archive member
8713    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8714    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8715    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8716    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8717    if test 64 = "${OBJECT_MODE-32}"; then
8718      shared_archive_member_spec=shr_64
8719    else
8720      shared_archive_member_spec=shr
8721    fi
8722  fi
8723  ;;
8724*)
8725  with_aix_soname=aix
8726  ;;
8727esac
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738# This can be used to rebuild libtool when needed
8739LIBTOOL_DEPS=$ltmain
8740
8741# Always use our own libtool.
8742LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773test -z "$LN_S" && LN_S="ln -s"
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788if test -n "${ZSH_VERSION+set}"; then
8789   setopt NO_GLOB_SUBST
8790fi
8791
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8793$as_echo_n "checking for objdir... " >&6; }
8794if ${lt_cv_objdir+:} false; then :
8795  $as_echo_n "(cached) " >&6
8796else
8797  rm -f .libs 2>/dev/null
8798mkdir .libs 2>/dev/null
8799if test -d .libs; then
8800  lt_cv_objdir=.libs
8801else
8802  # MS-DOS does not allow filenames that begin with a dot.
8803  lt_cv_objdir=_libs
8804fi
8805rmdir .libs 2>/dev/null
8806fi
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8808$as_echo "$lt_cv_objdir" >&6; }
8809objdir=$lt_cv_objdir
8810
8811
8812
8813
8814
8815cat >>confdefs.h <<_ACEOF
8816#define LT_OBJDIR "$lt_cv_objdir/"
8817_ACEOF
8818
8819
8820
8821
8822case $host_os in
8823aix3*)
8824  # AIX sometimes has problems with the GCC collect2 program.  For some
8825  # reason, if we set the COLLECT_NAMES environment variable, the problems
8826  # vanish in a puff of smoke.
8827  if test set != "${COLLECT_NAMES+set}"; then
8828    COLLECT_NAMES=
8829    export COLLECT_NAMES
8830  fi
8831  ;;
8832esac
8833
8834# Global variables:
8835ofile=libtool
8836can_build_shared=yes
8837
8838# All known linkers require a '.a' archive for static linking (except MSVC,
8839# which needs '.lib').
8840libext=a
8841
8842with_gnu_ld=$lt_cv_prog_gnu_ld
8843
8844old_CC=$CC
8845old_CFLAGS=$CFLAGS
8846
8847# Set sane defaults for various variables
8848test -z "$CC" && CC=cc
8849test -z "$LTCC" && LTCC=$CC
8850test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8851test -z "$LD" && LD=ld
8852test -z "$ac_objext" && ac_objext=o
8853
8854func_cc_basename $compiler
8855cc_basename=$func_cc_basename_result
8856
8857
8858# Only perform the check for file, if the check method requires it
8859test -z "$MAGIC_CMD" && MAGIC_CMD=file
8860case $deplibs_check_method in
8861file_magic*)
8862  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8864$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8865if ${lt_cv_path_MAGIC_CMD+:} false; then :
8866  $as_echo_n "(cached) " >&6
8867else
8868  case $MAGIC_CMD in
8869[\\/*] |  ?:[\\/]*)
8870  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8871  ;;
8872*)
8873  lt_save_MAGIC_CMD=$MAGIC_CMD
8874  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8875  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8876  for ac_dir in $ac_dummy; do
8877    IFS=$lt_save_ifs
8878    test -z "$ac_dir" && ac_dir=.
8879    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8880      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8881      if test -n "$file_magic_test_file"; then
8882	case $deplibs_check_method in
8883	"file_magic "*)
8884	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8885	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8886	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8887	    $EGREP "$file_magic_regex" > /dev/null; then
8888	    :
8889	  else
8890	    cat <<_LT_EOF 1>&2
8891
8892*** Warning: the command libtool uses to detect shared libraries,
8893*** $file_magic_cmd, produces output that libtool cannot recognize.
8894*** The result is that libtool may fail to recognize shared libraries
8895*** as such.  This will affect the creation of libtool libraries that
8896*** depend on shared libraries, but programs linked with such libtool
8897*** libraries will work regardless of this problem.  Nevertheless, you
8898*** may want to report the problem to your system manager and/or to
8899*** bug-libtool@gnu.org
8900
8901_LT_EOF
8902	  fi ;;
8903	esac
8904      fi
8905      break
8906    fi
8907  done
8908  IFS=$lt_save_ifs
8909  MAGIC_CMD=$lt_save_MAGIC_CMD
8910  ;;
8911esac
8912fi
8913
8914MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8915if test -n "$MAGIC_CMD"; then
8916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8917$as_echo "$MAGIC_CMD" >&6; }
8918else
8919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920$as_echo "no" >&6; }
8921fi
8922
8923
8924
8925
8926
8927if test -z "$lt_cv_path_MAGIC_CMD"; then
8928  if test -n "$ac_tool_prefix"; then
8929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8930$as_echo_n "checking for file... " >&6; }
8931if ${lt_cv_path_MAGIC_CMD+:} false; then :
8932  $as_echo_n "(cached) " >&6
8933else
8934  case $MAGIC_CMD in
8935[\\/*] |  ?:[\\/]*)
8936  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8937  ;;
8938*)
8939  lt_save_MAGIC_CMD=$MAGIC_CMD
8940  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8941  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8942  for ac_dir in $ac_dummy; do
8943    IFS=$lt_save_ifs
8944    test -z "$ac_dir" && ac_dir=.
8945    if test -f "$ac_dir/file"; then
8946      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8947      if test -n "$file_magic_test_file"; then
8948	case $deplibs_check_method in
8949	"file_magic "*)
8950	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8951	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8952	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8953	    $EGREP "$file_magic_regex" > /dev/null; then
8954	    :
8955	  else
8956	    cat <<_LT_EOF 1>&2
8957
8958*** Warning: the command libtool uses to detect shared libraries,
8959*** $file_magic_cmd, produces output that libtool cannot recognize.
8960*** The result is that libtool may fail to recognize shared libraries
8961*** as such.  This will affect the creation of libtool libraries that
8962*** depend on shared libraries, but programs linked with such libtool
8963*** libraries will work regardless of this problem.  Nevertheless, you
8964*** may want to report the problem to your system manager and/or to
8965*** bug-libtool@gnu.org
8966
8967_LT_EOF
8968	  fi ;;
8969	esac
8970      fi
8971      break
8972    fi
8973  done
8974  IFS=$lt_save_ifs
8975  MAGIC_CMD=$lt_save_MAGIC_CMD
8976  ;;
8977esac
8978fi
8979
8980MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8981if test -n "$MAGIC_CMD"; then
8982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8983$as_echo "$MAGIC_CMD" >&6; }
8984else
8985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986$as_echo "no" >&6; }
8987fi
8988
8989
8990  else
8991    MAGIC_CMD=:
8992  fi
8993fi
8994
8995  fi
8996  ;;
8997esac
8998
8999# Use C for the default configuration in the libtool script
9000
9001lt_save_CC=$CC
9002ac_ext=c
9003ac_cpp='$CPP $CPPFLAGS'
9004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9006ac_compiler_gnu=$ac_cv_c_compiler_gnu
9007
9008
9009# Source file extension for C test sources.
9010ac_ext=c
9011
9012# Object file extension for compiled C test sources.
9013objext=o
9014objext=$objext
9015
9016# Code to be used in simple compile tests
9017lt_simple_compile_test_code="int some_variable = 0;"
9018
9019# Code to be used in simple link tests
9020lt_simple_link_test_code='int main(){return(0);}'
9021
9022
9023
9024
9025
9026
9027
9028# If no C compiler was specified, use CC.
9029LTCC=${LTCC-"$CC"}
9030
9031# If no C compiler flags were specified, use CFLAGS.
9032LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9033
9034# Allow CC to be a program name with arguments.
9035compiler=$CC
9036
9037# Save the default compiler, since it gets overwritten when the other
9038# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9039compiler_DEFAULT=$CC
9040
9041# save warnings/boilerplate of simple test code
9042ac_outfile=conftest.$ac_objext
9043echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9044eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9045_lt_compiler_boilerplate=`cat conftest.err`
9046$RM conftest*
9047
9048ac_outfile=conftest.$ac_objext
9049echo "$lt_simple_link_test_code" >conftest.$ac_ext
9050eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9051_lt_linker_boilerplate=`cat conftest.err`
9052$RM -r conftest*
9053
9054
9055## CAVEAT EMPTOR:
9056## There is no encapsulation within the following macros, do not change
9057## the running order or otherwise move them around unless you know exactly
9058## what you are doing...
9059if test -n "$compiler"; then
9060
9061lt_prog_compiler_no_builtin_flag=
9062
9063if test yes = "$GCC"; then
9064  case $cc_basename in
9065  nvcc*)
9066    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9067  *)
9068    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9069  esac
9070
9071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9072$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9073if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9074  $as_echo_n "(cached) " >&6
9075else
9076  lt_cv_prog_compiler_rtti_exceptions=no
9077   ac_outfile=conftest.$ac_objext
9078   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9079   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9080   # Insert the option either (1) after the last *FLAGS variable, or
9081   # (2) before a word containing "conftest.", or (3) at the end.
9082   # Note that $ac_compile itself does not contain backslashes and begins
9083   # with a dollar sign (not a hyphen), so the echo should work correctly.
9084   # The option is referenced via a variable to avoid confusing sed.
9085   lt_compile=`echo "$ac_compile" | $SED \
9086   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9087   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9088   -e 's:$: $lt_compiler_flag:'`
9089   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9090   (eval "$lt_compile" 2>conftest.err)
9091   ac_status=$?
9092   cat conftest.err >&5
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   if (exit $ac_status) && test -s "$ac_outfile"; then
9095     # The compiler can only warn and ignore the option if not recognized
9096     # So say no if there are warnings other than the usual output.
9097     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9098     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9099     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9100       lt_cv_prog_compiler_rtti_exceptions=yes
9101     fi
9102   fi
9103   $RM conftest*
9104
9105fi
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9107$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9108
9109if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9110    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9111else
9112    :
9113fi
9114
9115fi
9116
9117
9118
9119
9120
9121
9122  lt_prog_compiler_wl=
9123lt_prog_compiler_pic=
9124lt_prog_compiler_static=
9125
9126
9127  if test yes = "$GCC"; then
9128    lt_prog_compiler_wl='-Wl,'
9129    lt_prog_compiler_static='-static'
9130
9131    case $host_os in
9132      aix*)
9133      # All AIX code is PIC.
9134      if test ia64 = "$host_cpu"; then
9135	# AIX 5 now supports IA64 processor
9136	lt_prog_compiler_static='-Bstatic'
9137      fi
9138      lt_prog_compiler_pic='-fPIC'
9139      ;;
9140
9141    amigaos*)
9142      case $host_cpu in
9143      powerpc)
9144            # see comment about AmigaOS4 .so support
9145            lt_prog_compiler_pic='-fPIC'
9146        ;;
9147      m68k)
9148            # FIXME: we need at least 68020 code to build shared libraries, but
9149            # adding the '-m68020' flag to GCC prevents building anything better,
9150            # like '-m68040'.
9151            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9152        ;;
9153      esac
9154      ;;
9155
9156    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9157      # PIC is the default for these OSes.
9158      ;;
9159
9160    mingw* | cygwin* | pw32* | os2* | cegcc*)
9161      # This hack is so that the source file can tell whether it is being
9162      # built for inclusion in a dll (and should export symbols for example).
9163      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9164      # (--disable-auto-import) libraries
9165      lt_prog_compiler_pic='-DDLL_EXPORT'
9166      case $host_os in
9167      os2*)
9168	lt_prog_compiler_static='$wl-static'
9169	;;
9170      esac
9171      ;;
9172
9173    darwin* | rhapsody*)
9174      # PIC is the default on this platform
9175      # Common symbols not allowed in MH_DYLIB files
9176      lt_prog_compiler_pic='-fno-common'
9177      ;;
9178
9179    haiku*)
9180      # PIC is the default for Haiku.
9181      # The "-static" flag exists, but is broken.
9182      lt_prog_compiler_static=
9183      ;;
9184
9185    hpux*)
9186      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9187      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9188      # sets the default TLS model and affects inlining.
9189      case $host_cpu in
9190      hppa*64*)
9191	# +Z the default
9192	;;
9193      *)
9194	lt_prog_compiler_pic='-fPIC'
9195	;;
9196      esac
9197      ;;
9198
9199    interix[3-9]*)
9200      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9201      # Instead, we relocate shared libraries at runtime.
9202      ;;
9203
9204    msdosdjgpp*)
9205      # Just because we use GCC doesn't mean we suddenly get shared libraries
9206      # on systems that don't support them.
9207      lt_prog_compiler_can_build_shared=no
9208      enable_shared=no
9209      ;;
9210
9211    *nto* | *qnx*)
9212      # QNX uses GNU C++, but need to define -shared option too, otherwise
9213      # it will coredump.
9214      lt_prog_compiler_pic='-fPIC -shared'
9215      ;;
9216
9217    sysv4*MP*)
9218      if test -d /usr/nec; then
9219	lt_prog_compiler_pic=-Kconform_pic
9220      fi
9221      ;;
9222
9223    *)
9224      lt_prog_compiler_pic='-fPIC'
9225      ;;
9226    esac
9227
9228    case $cc_basename in
9229    nvcc*) # Cuda Compiler Driver 2.2
9230      lt_prog_compiler_wl='-Xlinker '
9231      if test -n "$lt_prog_compiler_pic"; then
9232        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9233      fi
9234      ;;
9235    esac
9236  else
9237    # PORTME Check for flag to pass linker flags through the system compiler.
9238    case $host_os in
9239    aix*)
9240      lt_prog_compiler_wl='-Wl,'
9241      if test ia64 = "$host_cpu"; then
9242	# AIX 5 now supports IA64 processor
9243	lt_prog_compiler_static='-Bstatic'
9244      else
9245	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9246      fi
9247      ;;
9248
9249    darwin* | rhapsody*)
9250      # PIC is the default on this platform
9251      # Common symbols not allowed in MH_DYLIB files
9252      lt_prog_compiler_pic='-fno-common'
9253      case $cc_basename in
9254      nagfor*)
9255        # NAG Fortran compiler
9256        lt_prog_compiler_wl='-Wl,-Wl,,'
9257        lt_prog_compiler_pic='-PIC'
9258        lt_prog_compiler_static='-Bstatic'
9259        ;;
9260      esac
9261      ;;
9262
9263    mingw* | cygwin* | pw32* | os2* | cegcc*)
9264      # This hack is so that the source file can tell whether it is being
9265      # built for inclusion in a dll (and should export symbols for example).
9266      lt_prog_compiler_pic='-DDLL_EXPORT'
9267      case $host_os in
9268      os2*)
9269	lt_prog_compiler_static='$wl-static'
9270	;;
9271      esac
9272      ;;
9273
9274    hpux9* | hpux10* | hpux11*)
9275      lt_prog_compiler_wl='-Wl,'
9276      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9277      # not for PA HP-UX.
9278      case $host_cpu in
9279      hppa*64*|ia64*)
9280	# +Z the default
9281	;;
9282      *)
9283	lt_prog_compiler_pic='+Z'
9284	;;
9285      esac
9286      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9287      lt_prog_compiler_static='$wl-a ${wl}archive'
9288      ;;
9289
9290    irix5* | irix6* | nonstopux*)
9291      lt_prog_compiler_wl='-Wl,'
9292      # PIC (with -KPIC) is the default.
9293      lt_prog_compiler_static='-non_shared'
9294      ;;
9295
9296    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9297      case $cc_basename in
9298      # old Intel for x86_64, which still supported -KPIC.
9299      ecc*)
9300	lt_prog_compiler_wl='-Wl,'
9301	lt_prog_compiler_pic='-KPIC'
9302	lt_prog_compiler_static='-static'
9303        ;;
9304      # icc used to be incompatible with GCC.
9305      # ICC 10 doesn't accept -KPIC any more.
9306      icc* | ifort*)
9307	lt_prog_compiler_wl='-Wl,'
9308	lt_prog_compiler_pic='-fPIC'
9309	lt_prog_compiler_static='-static'
9310        ;;
9311      # Lahey Fortran 8.1.
9312      lf95*)
9313	lt_prog_compiler_wl='-Wl,'
9314	lt_prog_compiler_pic='--shared'
9315	lt_prog_compiler_static='--static'
9316	;;
9317      nagfor*)
9318	# NAG Fortran compiler
9319	lt_prog_compiler_wl='-Wl,-Wl,,'
9320	lt_prog_compiler_pic='-PIC'
9321	lt_prog_compiler_static='-Bstatic'
9322	;;
9323      tcc*)
9324	# Fabrice Bellard et al's Tiny C Compiler
9325	lt_prog_compiler_wl='-Wl,'
9326	lt_prog_compiler_pic='-fPIC'
9327	lt_prog_compiler_static='-static'
9328	;;
9329      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9330        # Portland Group compilers (*not* the Pentium gcc compiler,
9331	# which looks to be a dead project)
9332	lt_prog_compiler_wl='-Wl,'
9333	lt_prog_compiler_pic='-fpic'
9334	lt_prog_compiler_static='-Bstatic'
9335        ;;
9336      ccc*)
9337        lt_prog_compiler_wl='-Wl,'
9338        # All Alpha code is PIC.
9339        lt_prog_compiler_static='-non_shared'
9340        ;;
9341      xl* | bgxl* | bgf* | mpixl*)
9342	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9343	lt_prog_compiler_wl='-Wl,'
9344	lt_prog_compiler_pic='-qpic'
9345	lt_prog_compiler_static='-qstaticlink'
9346	;;
9347      *)
9348	case `$CC -V 2>&1 | sed 5q` in
9349	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9350	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9351	  lt_prog_compiler_pic='-KPIC'
9352	  lt_prog_compiler_static='-Bstatic'
9353	  lt_prog_compiler_wl=''
9354	  ;;
9355	*Sun\ F* | *Sun*Fortran*)
9356	  lt_prog_compiler_pic='-KPIC'
9357	  lt_prog_compiler_static='-Bstatic'
9358	  lt_prog_compiler_wl='-Qoption ld '
9359	  ;;
9360	*Sun\ C*)
9361	  # Sun C 5.9
9362	  lt_prog_compiler_pic='-KPIC'
9363	  lt_prog_compiler_static='-Bstatic'
9364	  lt_prog_compiler_wl='-Wl,'
9365	  ;;
9366        *Intel*\ [CF]*Compiler*)
9367	  lt_prog_compiler_wl='-Wl,'
9368	  lt_prog_compiler_pic='-fPIC'
9369	  lt_prog_compiler_static='-static'
9370	  ;;
9371	*Portland\ Group*)
9372	  lt_prog_compiler_wl='-Wl,'
9373	  lt_prog_compiler_pic='-fpic'
9374	  lt_prog_compiler_static='-Bstatic'
9375	  ;;
9376	esac
9377	;;
9378      esac
9379      ;;
9380
9381    newsos6)
9382      lt_prog_compiler_pic='-KPIC'
9383      lt_prog_compiler_static='-Bstatic'
9384      ;;
9385
9386    *nto* | *qnx*)
9387      # QNX uses GNU C++, but need to define -shared option too, otherwise
9388      # it will coredump.
9389      lt_prog_compiler_pic='-fPIC -shared'
9390      ;;
9391
9392    osf3* | osf4* | osf5*)
9393      lt_prog_compiler_wl='-Wl,'
9394      # All OSF/1 code is PIC.
9395      lt_prog_compiler_static='-non_shared'
9396      ;;
9397
9398    rdos*)
9399      lt_prog_compiler_static='-non_shared'
9400      ;;
9401
9402    solaris*)
9403      lt_prog_compiler_pic='-KPIC'
9404      lt_prog_compiler_static='-Bstatic'
9405      case $cc_basename in
9406      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9407	lt_prog_compiler_wl='-Qoption ld ';;
9408      *)
9409	lt_prog_compiler_wl='-Wl,';;
9410      esac
9411      ;;
9412
9413    sunos4*)
9414      lt_prog_compiler_wl='-Qoption ld '
9415      lt_prog_compiler_pic='-PIC'
9416      lt_prog_compiler_static='-Bstatic'
9417      ;;
9418
9419    sysv4 | sysv4.2uw2* | sysv4.3*)
9420      lt_prog_compiler_wl='-Wl,'
9421      lt_prog_compiler_pic='-KPIC'
9422      lt_prog_compiler_static='-Bstatic'
9423      ;;
9424
9425    sysv4*MP*)
9426      if test -d /usr/nec; then
9427	lt_prog_compiler_pic='-Kconform_pic'
9428	lt_prog_compiler_static='-Bstatic'
9429      fi
9430      ;;
9431
9432    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9433      lt_prog_compiler_wl='-Wl,'
9434      lt_prog_compiler_pic='-KPIC'
9435      lt_prog_compiler_static='-Bstatic'
9436      ;;
9437
9438    unicos*)
9439      lt_prog_compiler_wl='-Wl,'
9440      lt_prog_compiler_can_build_shared=no
9441      ;;
9442
9443    uts4*)
9444      lt_prog_compiler_pic='-pic'
9445      lt_prog_compiler_static='-Bstatic'
9446      ;;
9447
9448    *)
9449      lt_prog_compiler_can_build_shared=no
9450      ;;
9451    esac
9452  fi
9453
9454case $host_os in
9455  # For platforms that do not support PIC, -DPIC is meaningless:
9456  *djgpp*)
9457    lt_prog_compiler_pic=
9458    ;;
9459  *)
9460    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9461    ;;
9462esac
9463
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9465$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9466if ${lt_cv_prog_compiler_pic+:} false; then :
9467  $as_echo_n "(cached) " >&6
9468else
9469  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9470fi
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9472$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9473lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9474
9475#
9476# Check to make sure the PIC flag actually works.
9477#
9478if test -n "$lt_prog_compiler_pic"; then
9479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9480$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9481if ${lt_cv_prog_compiler_pic_works+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  lt_cv_prog_compiler_pic_works=no
9485   ac_outfile=conftest.$ac_objext
9486   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9487   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9488   # Insert the option either (1) after the last *FLAGS variable, or
9489   # (2) before a word containing "conftest.", or (3) at the end.
9490   # Note that $ac_compile itself does not contain backslashes and begins
9491   # with a dollar sign (not a hyphen), so the echo should work correctly.
9492   # The option is referenced via a variable to avoid confusing sed.
9493   lt_compile=`echo "$ac_compile" | $SED \
9494   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9495   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9496   -e 's:$: $lt_compiler_flag:'`
9497   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9498   (eval "$lt_compile" 2>conftest.err)
9499   ac_status=$?
9500   cat conftest.err >&5
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   if (exit $ac_status) && test -s "$ac_outfile"; then
9503     # The compiler can only warn and ignore the option if not recognized
9504     # So say no if there are warnings other than the usual output.
9505     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9506     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9507     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9508       lt_cv_prog_compiler_pic_works=yes
9509     fi
9510   fi
9511   $RM conftest*
9512
9513fi
9514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9515$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9516
9517if test yes = "$lt_cv_prog_compiler_pic_works"; then
9518    case $lt_prog_compiler_pic in
9519     "" | " "*) ;;
9520     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9521     esac
9522else
9523    lt_prog_compiler_pic=
9524     lt_prog_compiler_can_build_shared=no
9525fi
9526
9527fi
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539#
9540# Check to make sure the static flag actually works.
9541#
9542wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9544$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9545if ${lt_cv_prog_compiler_static_works+:} false; then :
9546  $as_echo_n "(cached) " >&6
9547else
9548  lt_cv_prog_compiler_static_works=no
9549   save_LDFLAGS=$LDFLAGS
9550   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9551   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9552   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9553     # The linker can only warn and ignore the option if not recognized
9554     # So say no if there are warnings
9555     if test -s conftest.err; then
9556       # Append any errors to the config.log.
9557       cat conftest.err 1>&5
9558       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9559       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9560       if diff conftest.exp conftest.er2 >/dev/null; then
9561         lt_cv_prog_compiler_static_works=yes
9562       fi
9563     else
9564       lt_cv_prog_compiler_static_works=yes
9565     fi
9566   fi
9567   $RM -r conftest*
9568   LDFLAGS=$save_LDFLAGS
9569
9570fi
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9572$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9573
9574if test yes = "$lt_cv_prog_compiler_static_works"; then
9575    :
9576else
9577    lt_prog_compiler_static=
9578fi
9579
9580
9581
9582
9583
9584
9585
9586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9587$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9588if ${lt_cv_prog_compiler_c_o+:} false; then :
9589  $as_echo_n "(cached) " >&6
9590else
9591  lt_cv_prog_compiler_c_o=no
9592   $RM -r conftest 2>/dev/null
9593   mkdir conftest
9594   cd conftest
9595   mkdir out
9596   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9597
9598   lt_compiler_flag="-o out/conftest2.$ac_objext"
9599   # Insert the option either (1) after the last *FLAGS variable, or
9600   # (2) before a word containing "conftest.", or (3) at the end.
9601   # Note that $ac_compile itself does not contain backslashes and begins
9602   # with a dollar sign (not a hyphen), so the echo should work correctly.
9603   lt_compile=`echo "$ac_compile" | $SED \
9604   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9605   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9606   -e 's:$: $lt_compiler_flag:'`
9607   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9608   (eval "$lt_compile" 2>out/conftest.err)
9609   ac_status=$?
9610   cat out/conftest.err >&5
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9613   then
9614     # The compiler can only warn and ignore the option if not recognized
9615     # So say no if there are warnings
9616     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9617     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9618     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9619       lt_cv_prog_compiler_c_o=yes
9620     fi
9621   fi
9622   chmod u+w . 2>&5
9623   $RM conftest*
9624   # SGI C++ compiler will create directory out/ii_files/ for
9625   # template instantiation
9626   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9627   $RM out/* && rmdir out
9628   cd ..
9629   $RM -r conftest
9630   $RM conftest*
9631
9632fi
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9634$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9635
9636
9637
9638
9639
9640
9641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9642$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9643if ${lt_cv_prog_compiler_c_o+:} false; then :
9644  $as_echo_n "(cached) " >&6
9645else
9646  lt_cv_prog_compiler_c_o=no
9647   $RM -r conftest 2>/dev/null
9648   mkdir conftest
9649   cd conftest
9650   mkdir out
9651   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9652
9653   lt_compiler_flag="-o out/conftest2.$ac_objext"
9654   # Insert the option either (1) after the last *FLAGS variable, or
9655   # (2) before a word containing "conftest.", or (3) at the end.
9656   # Note that $ac_compile itself does not contain backslashes and begins
9657   # with a dollar sign (not a hyphen), so the echo should work correctly.
9658   lt_compile=`echo "$ac_compile" | $SED \
9659   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9660   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9661   -e 's:$: $lt_compiler_flag:'`
9662   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9663   (eval "$lt_compile" 2>out/conftest.err)
9664   ac_status=$?
9665   cat out/conftest.err >&5
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9668   then
9669     # The compiler can only warn and ignore the option if not recognized
9670     # So say no if there are warnings
9671     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9672     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9673     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9674       lt_cv_prog_compiler_c_o=yes
9675     fi
9676   fi
9677   chmod u+w . 2>&5
9678   $RM conftest*
9679   # SGI C++ compiler will create directory out/ii_files/ for
9680   # template instantiation
9681   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9682   $RM out/* && rmdir out
9683   cd ..
9684   $RM -r conftest
9685   $RM conftest*
9686
9687fi
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9689$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9690
9691
9692
9693
9694hard_links=nottested
9695if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9696  # do not overwrite the value of need_locks provided by the user
9697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9698$as_echo_n "checking if we can lock with hard links... " >&6; }
9699  hard_links=yes
9700  $RM conftest*
9701  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9702  touch conftest.a
9703  ln conftest.a conftest.b 2>&5 || hard_links=no
9704  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9706$as_echo "$hard_links" >&6; }
9707  if test no = "$hard_links"; then
9708    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9709$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9710    need_locks=warn
9711  fi
9712else
9713  need_locks=no
9714fi
9715
9716
9717
9718
9719
9720
9721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9722$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9723
9724  runpath_var=
9725  allow_undefined_flag=
9726  always_export_symbols=no
9727  archive_cmds=
9728  archive_expsym_cmds=
9729  compiler_needs_object=no
9730  enable_shared_with_static_runtimes=no
9731  export_dynamic_flag_spec=
9732  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9733  hardcode_automatic=no
9734  hardcode_direct=no
9735  hardcode_direct_absolute=no
9736  hardcode_libdir_flag_spec=
9737  hardcode_libdir_separator=
9738  hardcode_minus_L=no
9739  hardcode_shlibpath_var=unsupported
9740  inherit_rpath=no
9741  link_all_deplibs=unknown
9742  module_cmds=
9743  module_expsym_cmds=
9744  old_archive_from_new_cmds=
9745  old_archive_from_expsyms_cmds=
9746  thread_safe_flag_spec=
9747  whole_archive_flag_spec=
9748  # include_expsyms should be a list of space-separated symbols to be *always*
9749  # included in the symbol list
9750  include_expsyms=
9751  # exclude_expsyms can be an extended regexp of symbols to exclude
9752  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9753  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9754  # as well as any symbol that contains 'd'.
9755  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9756  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9757  # platforms (ab)use it in PIC code, but their linkers get confused if
9758  # the symbol is explicitly referenced.  Since portable code cannot
9759  # rely on this symbol name, it's probably fine to never include it in
9760  # preloaded symbol tables.
9761  # Exclude shared library initialization/finalization symbols.
9762  extract_expsyms_cmds=
9763
9764  case $host_os in
9765  cygwin* | mingw* | pw32* | cegcc*)
9766    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9767    # When not using gcc, we currently assume that we are using
9768    # Microsoft Visual C++.
9769    if test yes != "$GCC"; then
9770      with_gnu_ld=no
9771    fi
9772    ;;
9773  interix*)
9774    # we just hope/assume this is gcc and not c89 (= MSVC++)
9775    with_gnu_ld=yes
9776    ;;
9777  openbsd* | bitrig*)
9778    with_gnu_ld=no
9779    ;;
9780  esac
9781
9782  ld_shlibs=yes
9783
9784  # On some targets, GNU ld is compatible enough with the native linker
9785  # that we're better off using the native interface for both.
9786  lt_use_gnu_ld_interface=no
9787  if test yes = "$with_gnu_ld"; then
9788    case $host_os in
9789      aix*)
9790	# The AIX port of GNU ld has always aspired to compatibility
9791	# with the native linker.  However, as the warning in the GNU ld
9792	# block says, versions before 2.19.5* couldn't really create working
9793	# shared libraries, regardless of the interface used.
9794	case `$LD -v 2>&1` in
9795	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9796	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9797	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9798	  *)
9799	    lt_use_gnu_ld_interface=yes
9800	    ;;
9801	esac
9802	;;
9803      *)
9804	lt_use_gnu_ld_interface=yes
9805	;;
9806    esac
9807  fi
9808
9809  if test yes = "$lt_use_gnu_ld_interface"; then
9810    # If archive_cmds runs LD, not CC, wlarc should be empty
9811    wlarc='$wl'
9812
9813    # Set some defaults for GNU ld with shared library support. These
9814    # are reset later if shared libraries are not supported. Putting them
9815    # here allows them to be overridden if necessary.
9816    runpath_var=LD_RUN_PATH
9817    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9818    export_dynamic_flag_spec='$wl--export-dynamic'
9819    # ancient GNU ld didn't support --whole-archive et. al.
9820    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9821      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9822    else
9823      whole_archive_flag_spec=
9824    fi
9825    supports_anon_versioning=no
9826    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9827      *GNU\ gold*) supports_anon_versioning=yes ;;
9828      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9829      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9830      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9831      *\ 2.11.*) ;; # other 2.11 versions
9832      *) supports_anon_versioning=yes ;;
9833    esac
9834
9835    # See if GNU ld supports shared libraries.
9836    case $host_os in
9837    aix[3-9]*)
9838      # On AIX/PPC, the GNU linker is very broken
9839      if test ia64 != "$host_cpu"; then
9840	ld_shlibs=no
9841	cat <<_LT_EOF 1>&2
9842
9843*** Warning: the GNU linker, at least up to release 2.19, is reported
9844*** to be unable to reliably create shared libraries on AIX.
9845*** Therefore, libtool is disabling shared libraries support.  If you
9846*** really care for shared libraries, you may want to install binutils
9847*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9848*** You will then need to restart the configuration process.
9849
9850_LT_EOF
9851      fi
9852      ;;
9853
9854    amigaos*)
9855      case $host_cpu in
9856      powerpc)
9857            # see comment about AmigaOS4 .so support
9858            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9859            archive_expsym_cmds=''
9860        ;;
9861      m68k)
9862            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)'
9863            hardcode_libdir_flag_spec='-L$libdir'
9864            hardcode_minus_L=yes
9865        ;;
9866      esac
9867      ;;
9868
9869    beos*)
9870      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9871	allow_undefined_flag=unsupported
9872	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9873	# support --undefined.  This deserves some investigation.  FIXME
9874	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9875      else
9876	ld_shlibs=no
9877      fi
9878      ;;
9879
9880    cygwin* | mingw* | pw32* | cegcc*)
9881      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9882      # as there is no search path for DLLs.
9883      hardcode_libdir_flag_spec='-L$libdir'
9884      export_dynamic_flag_spec='$wl--export-all-symbols'
9885      allow_undefined_flag=unsupported
9886      always_export_symbols=no
9887      enable_shared_with_static_runtimes=yes
9888      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9889      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9890
9891      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9892        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9893	# If the export-symbols file already is a .def file, use it as
9894	# is; otherwise, prepend EXPORTS...
9895	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9896          cp $export_symbols $output_objdir/$soname.def;
9897        else
9898          echo EXPORTS > $output_objdir/$soname.def;
9899          cat $export_symbols >> $output_objdir/$soname.def;
9900        fi~
9901        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9902      else
9903	ld_shlibs=no
9904      fi
9905      ;;
9906
9907    haiku*)
9908      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9909      link_all_deplibs=yes
9910      ;;
9911
9912    os2*)
9913      hardcode_libdir_flag_spec='-L$libdir'
9914      hardcode_minus_L=yes
9915      allow_undefined_flag=unsupported
9916      shrext_cmds=.dll
9917      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9918	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9919	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9920	$ECHO EXPORTS >> $output_objdir/$libname.def~
9921	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9922	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9923	emximp -o $lib $output_objdir/$libname.def'
9924      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9925	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9926	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9927	$ECHO EXPORTS >> $output_objdir/$libname.def~
9928	prefix_cmds="$SED"~
9929	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9930	  prefix_cmds="$prefix_cmds -e 1d";
9931	fi~
9932	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9933	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9934	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9935	emximp -o $lib $output_objdir/$libname.def'
9936      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9937      enable_shared_with_static_runtimes=yes
9938      ;;
9939
9940    interix[3-9]*)
9941      hardcode_direct=no
9942      hardcode_shlibpath_var=no
9943      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9944      export_dynamic_flag_spec='$wl-E'
9945      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9946      # Instead, shared libraries are loaded at an image base (0x10000000 by
9947      # default) and relocated if they conflict, which is a slow very memory
9948      # consuming and fragmenting process.  To avoid this, we pick a random,
9949      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9950      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9951      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9952      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'
9953      ;;
9954
9955    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9956      tmp_diet=no
9957      if test linux-dietlibc = "$host_os"; then
9958	case $cc_basename in
9959	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9960	esac
9961      fi
9962      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9963	 && test no = "$tmp_diet"
9964      then
9965	tmp_addflag=' $pic_flag'
9966	tmp_sharedflag='-shared'
9967	case $cc_basename,$host_cpu in
9968        pgcc*)				# Portland Group C compiler
9969	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9970	  tmp_addflag=' $pic_flag'
9971	  ;;
9972	pgf77* | pgf90* | pgf95* | pgfortran*)
9973					# Portland Group f77 and f90 compilers
9974	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9975	  tmp_addflag=' $pic_flag -Mnomain' ;;
9976	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9977	  tmp_addflag=' -i_dynamic' ;;
9978	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9979	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9980	ifc* | ifort*)			# Intel Fortran compiler
9981	  tmp_addflag=' -nofor_main' ;;
9982	lf95*)				# Lahey Fortran 8.1
9983	  whole_archive_flag_spec=
9984	  tmp_sharedflag='--shared' ;;
9985        nagfor*)                        # NAGFOR 5.3
9986          tmp_sharedflag='-Wl,-shared' ;;
9987	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9988	  tmp_sharedflag='-qmkshrobj'
9989	  tmp_addflag= ;;
9990	nvcc*)	# Cuda Compiler Driver 2.2
9991	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9992	  compiler_needs_object=yes
9993	  ;;
9994	esac
9995	case `$CC -V 2>&1 | sed 5q` in
9996	*Sun\ C*)			# Sun C 5.9
9997	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9998	  compiler_needs_object=yes
9999	  tmp_sharedflag='-G' ;;
10000	*Sun\ F*)			# Sun Fortran 8.3
10001	  tmp_sharedflag='-G' ;;
10002	esac
10003	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10004
10005        if test yes = "$supports_anon_versioning"; then
10006          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10007            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10008            echo "local: *; };" >> $output_objdir/$libname.ver~
10009            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10010        fi
10011
10012	case $cc_basename in
10013	tcc*)
10014	  export_dynamic_flag_spec='-rdynamic'
10015	  ;;
10016	xlf* | bgf* | bgxlf* | mpixlf*)
10017	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10018	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10019	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10020	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10021	  if test yes = "$supports_anon_versioning"; then
10022	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10023              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10024              echo "local: *; };" >> $output_objdir/$libname.ver~
10025              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10026	  fi
10027	  ;;
10028	esac
10029      else
10030        ld_shlibs=no
10031      fi
10032      ;;
10033
10034    netbsd*)
10035      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10036	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10037	wlarc=
10038      else
10039	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10040	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10041      fi
10042      ;;
10043
10044    solaris*)
10045      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10046	ld_shlibs=no
10047	cat <<_LT_EOF 1>&2
10048
10049*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10050*** create shared libraries on Solaris systems.  Therefore, libtool
10051*** is disabling shared libraries support.  We urge you to upgrade GNU
10052*** binutils to release 2.9.1 or newer.  Another option is to modify
10053*** your PATH or compiler configuration so that the native linker is
10054*** used, and then restart.
10055
10056_LT_EOF
10057      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10058	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10059	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10060      else
10061	ld_shlibs=no
10062      fi
10063      ;;
10064
10065    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10066      case `$LD -v 2>&1` in
10067        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10068	ld_shlibs=no
10069	cat <<_LT_EOF 1>&2
10070
10071*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10072*** reliably create shared libraries on SCO systems.  Therefore, libtool
10073*** is disabling shared libraries support.  We urge you to upgrade GNU
10074*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10075*** your PATH or compiler configuration so that the native linker is
10076*** used, and then restart.
10077
10078_LT_EOF
10079	;;
10080	*)
10081	  # For security reasons, it is highly recommended that you always
10082	  # use absolute paths for naming shared libraries, and exclude the
10083	  # DT_RUNPATH tag from executables and libraries.  But doing so
10084	  # requires that you compile everything twice, which is a pain.
10085	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10086	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10087	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10088	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10089	  else
10090	    ld_shlibs=no
10091	  fi
10092	;;
10093      esac
10094      ;;
10095
10096    sunos4*)
10097      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10098      wlarc=
10099      hardcode_direct=yes
10100      hardcode_shlibpath_var=no
10101      ;;
10102
10103    *)
10104      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10105	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10106	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10107      else
10108	ld_shlibs=no
10109      fi
10110      ;;
10111    esac
10112
10113    if test no = "$ld_shlibs"; then
10114      runpath_var=
10115      hardcode_libdir_flag_spec=
10116      export_dynamic_flag_spec=
10117      whole_archive_flag_spec=
10118    fi
10119  else
10120    # PORTME fill in a description of your system's linker (not GNU ld)
10121    case $host_os in
10122    aix3*)
10123      allow_undefined_flag=unsupported
10124      always_export_symbols=yes
10125      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'
10126      # Note: this linker hardcodes the directories in LIBPATH if there
10127      # are no directories specified by -L.
10128      hardcode_minus_L=yes
10129      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10130	# Neither direct hardcoding nor static linking is supported with a
10131	# broken collect2.
10132	hardcode_direct=unsupported
10133      fi
10134      ;;
10135
10136    aix[4-9]*)
10137      if test ia64 = "$host_cpu"; then
10138	# On IA64, the linker does run time linking by default, so we don't
10139	# have to do anything special.
10140	aix_use_runtimelinking=no
10141	exp_sym_flag='-Bexport'
10142	no_entry_flag=
10143      else
10144	# If we're using GNU nm, then we don't want the "-C" option.
10145	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10146	# Without the "-l" option, or with the "-B" option, AIX nm treats
10147	# weak defined symbols like other global defined symbols, whereas
10148	# GNU nm marks them as "W".
10149	# While the 'weak' keyword is ignored in the Export File, we need
10150	# it in the Import File for the 'aix-soname' feature, so we have
10151	# to replace the "-B" option with "-P" for AIX nm.
10152	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10153	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10154	else
10155	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10156	fi
10157	aix_use_runtimelinking=no
10158
10159	# Test if we are trying to use run time linking or normal
10160	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10161	# have runtime linking enabled, and use it for executables.
10162	# For shared libraries, we enable/disable runtime linking
10163	# depending on the kind of the shared library created -
10164	# when "with_aix_soname,aix_use_runtimelinking" is:
10165	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10166	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10167	#            lib.a           static archive
10168	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10169	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10170	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10171	#            lib.a(lib.so.V) shared, rtl:no
10172	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10173	#            lib.a           static archive
10174	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10175	  for ld_flag in $LDFLAGS; do
10176	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10177	    aix_use_runtimelinking=yes
10178	    break
10179	  fi
10180	  done
10181	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10182	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10183	    # so we don't have lib.a shared libs to link our executables.
10184	    # We have to force runtime linking in this case.
10185	    aix_use_runtimelinking=yes
10186	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10187	  fi
10188	  ;;
10189	esac
10190
10191	exp_sym_flag='-bexport'
10192	no_entry_flag='-bnoentry'
10193      fi
10194
10195      # When large executables or shared objects are built, AIX ld can
10196      # have problems creating the table of contents.  If linking a library
10197      # or program results in "error TOC overflow" add -mminimal-toc to
10198      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10199      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10200
10201      archive_cmds=''
10202      hardcode_direct=yes
10203      hardcode_direct_absolute=yes
10204      hardcode_libdir_separator=':'
10205      link_all_deplibs=yes
10206      file_list_spec='$wl-f,'
10207      case $with_aix_soname,$aix_use_runtimelinking in
10208      aix,*) ;; # traditional, no import file
10209      svr4,* | *,yes) # use import file
10210	# The Import File defines what to hardcode.
10211	hardcode_direct=no
10212	hardcode_direct_absolute=no
10213	;;
10214      esac
10215
10216      if test yes = "$GCC"; then
10217	case $host_os in aix4.[012]|aix4.[012].*)
10218	# We only want to do this on AIX 4.2 and lower, the check
10219	# below for broken collect2 doesn't work under 4.3+
10220	  collect2name=`$CC -print-prog-name=collect2`
10221	  if test -f "$collect2name" &&
10222	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10223	  then
10224	  # We have reworked collect2
10225	  :
10226	  else
10227	  # We have old collect2
10228	  hardcode_direct=unsupported
10229	  # It fails to find uninstalled libraries when the uninstalled
10230	  # path is not listed in the libpath.  Setting hardcode_minus_L
10231	  # to unsupported forces relinking
10232	  hardcode_minus_L=yes
10233	  hardcode_libdir_flag_spec='-L$libdir'
10234	  hardcode_libdir_separator=
10235	  fi
10236	  ;;
10237	esac
10238	shared_flag='-shared'
10239	if test yes = "$aix_use_runtimelinking"; then
10240	  shared_flag="$shared_flag "'$wl-G'
10241	fi
10242	# Need to ensure runtime linking is disabled for the traditional
10243	# shared library, or the linker may eventually find shared libraries
10244	# /with/ Import File - we do not want to mix them.
10245	shared_flag_aix='-shared'
10246	shared_flag_svr4='-shared $wl-G'
10247      else
10248	# not using gcc
10249	if test ia64 = "$host_cpu"; then
10250	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10251	# chokes on -Wl,-G. The following line is correct:
10252	  shared_flag='-G'
10253	else
10254	  if test yes = "$aix_use_runtimelinking"; then
10255	    shared_flag='$wl-G'
10256	  else
10257	    shared_flag='$wl-bM:SRE'
10258	  fi
10259	  shared_flag_aix='$wl-bM:SRE'
10260	  shared_flag_svr4='$wl-G'
10261	fi
10262      fi
10263
10264      export_dynamic_flag_spec='$wl-bexpall'
10265      # It seems that -bexpall does not export symbols beginning with
10266      # underscore (_), so it is better to generate a list of symbols to export.
10267      always_export_symbols=yes
10268      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10269	# Warning - without using the other runtime loading flags (-brtl),
10270	# -berok will link without error, but may produce a broken library.
10271	allow_undefined_flag='-berok'
10272        # Determine the default libpath from the value encoded in an
10273        # empty executable.
10274        if test set = "${lt_cv_aix_libpath+set}"; then
10275  aix_libpath=$lt_cv_aix_libpath
10276else
10277  if ${lt_cv_aix_libpath_+:} false; then :
10278  $as_echo_n "(cached) " >&6
10279else
10280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h.  */
10282
10283int
10284main ()
10285{
10286
10287  ;
10288  return 0;
10289}
10290_ACEOF
10291if ac_fn_c_try_link "$LINENO"; then :
10292
10293  lt_aix_libpath_sed='
10294      /Import File Strings/,/^$/ {
10295	  /^0/ {
10296	      s/^0  *\([^ ]*\) *$/\1/
10297	      p
10298	  }
10299      }'
10300  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10301  # Check for a 64-bit object if we didn't find anything.
10302  if test -z "$lt_cv_aix_libpath_"; then
10303    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10304  fi
10305fi
10306rm -f core conftest.err conftest.$ac_objext \
10307    conftest$ac_exeext conftest.$ac_ext
10308  if test -z "$lt_cv_aix_libpath_"; then
10309    lt_cv_aix_libpath_=/usr/lib:/lib
10310  fi
10311
10312fi
10313
10314  aix_libpath=$lt_cv_aix_libpath_
10315fi
10316
10317        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10318        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10319      else
10320	if test ia64 = "$host_cpu"; then
10321	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10322	  allow_undefined_flag="-z nodefs"
10323	  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"
10324	else
10325	 # Determine the default libpath from the value encoded in an
10326	 # empty executable.
10327	 if test set = "${lt_cv_aix_libpath+set}"; then
10328  aix_libpath=$lt_cv_aix_libpath
10329else
10330  if ${lt_cv_aix_libpath_+:} false; then :
10331  $as_echo_n "(cached) " >&6
10332else
10333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334/* end confdefs.h.  */
10335
10336int
10337main ()
10338{
10339
10340  ;
10341  return 0;
10342}
10343_ACEOF
10344if ac_fn_c_try_link "$LINENO"; then :
10345
10346  lt_aix_libpath_sed='
10347      /Import File Strings/,/^$/ {
10348	  /^0/ {
10349	      s/^0  *\([^ ]*\) *$/\1/
10350	      p
10351	  }
10352      }'
10353  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10354  # Check for a 64-bit object if we didn't find anything.
10355  if test -z "$lt_cv_aix_libpath_"; then
10356    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10357  fi
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360    conftest$ac_exeext conftest.$ac_ext
10361  if test -z "$lt_cv_aix_libpath_"; then
10362    lt_cv_aix_libpath_=/usr/lib:/lib
10363  fi
10364
10365fi
10366
10367  aix_libpath=$lt_cv_aix_libpath_
10368fi
10369
10370	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10371	  # Warning - without using the other run time loading flags,
10372	  # -berok will link without error, but may produce a broken library.
10373	  no_undefined_flag=' $wl-bernotok'
10374	  allow_undefined_flag=' $wl-berok'
10375	  if test yes = "$with_gnu_ld"; then
10376	    # We only use this code for GNU lds that support --whole-archive.
10377	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10378	  else
10379	    # Exported symbols can be pulled into shared objects from archives
10380	    whole_archive_flag_spec='$convenience'
10381	  fi
10382	  archive_cmds_need_lc=yes
10383	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10384	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10385	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10386	  if test svr4 != "$with_aix_soname"; then
10387	    # This is similar to how AIX traditionally builds its shared libraries.
10388	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10389	  fi
10390	  if test aix != "$with_aix_soname"; then
10391	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10392	  else
10393	    # used by -dlpreopen to get the symbols
10394	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10395	  fi
10396	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10397	fi
10398      fi
10399      ;;
10400
10401    amigaos*)
10402      case $host_cpu in
10403      powerpc)
10404            # see comment about AmigaOS4 .so support
10405            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10406            archive_expsym_cmds=''
10407        ;;
10408      m68k)
10409            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)'
10410            hardcode_libdir_flag_spec='-L$libdir'
10411            hardcode_minus_L=yes
10412        ;;
10413      esac
10414      ;;
10415
10416    bsdi[45]*)
10417      export_dynamic_flag_spec=-rdynamic
10418      ;;
10419
10420    cygwin* | mingw* | pw32* | cegcc*)
10421      # When not using gcc, we currently assume that we are using
10422      # Microsoft Visual C++.
10423      # hardcode_libdir_flag_spec is actually meaningless, as there is
10424      # no search path for DLLs.
10425      case $cc_basename in
10426      cl*)
10427	# Native MSVC
10428	hardcode_libdir_flag_spec=' '
10429	allow_undefined_flag=unsupported
10430	always_export_symbols=yes
10431	file_list_spec='@'
10432	# Tell ltmain to make .lib files, not .a files.
10433	libext=lib
10434	# Tell ltmain to make .dll files, not .so files.
10435	shrext_cmds=.dll
10436	# FIXME: Setting linknames here is a bad hack.
10437	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10438	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10439            cp "$export_symbols" "$output_objdir/$soname.def";
10440            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10441          else
10442            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10443          fi~
10444          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10445          linknames='
10446	# The linker will not automatically build a static lib if we build a DLL.
10447	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10448	enable_shared_with_static_runtimes=yes
10449	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10450	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10451	# Don't use ranlib
10452	old_postinstall_cmds='chmod 644 $oldlib'
10453	postlink_cmds='lt_outputfile="@OUTPUT@"~
10454          lt_tool_outputfile="@TOOL_OUTPUT@"~
10455          case $lt_outputfile in
10456            *.exe|*.EXE) ;;
10457            *)
10458              lt_outputfile=$lt_outputfile.exe
10459              lt_tool_outputfile=$lt_tool_outputfile.exe
10460              ;;
10461          esac~
10462          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10463            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10464            $RM "$lt_outputfile.manifest";
10465          fi'
10466	;;
10467      *)
10468	# Assume MSVC wrapper
10469	hardcode_libdir_flag_spec=' '
10470	allow_undefined_flag=unsupported
10471	# Tell ltmain to make .lib files, not .a files.
10472	libext=lib
10473	# Tell ltmain to make .dll files, not .so files.
10474	shrext_cmds=.dll
10475	# FIXME: Setting linknames here is a bad hack.
10476	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10477	# The linker will automatically build a .lib file if we build a DLL.
10478	old_archive_from_new_cmds='true'
10479	# FIXME: Should let the user specify the lib program.
10480	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10481	enable_shared_with_static_runtimes=yes
10482	;;
10483      esac
10484      ;;
10485
10486    darwin* | rhapsody*)
10487
10488
10489  archive_cmds_need_lc=no
10490  hardcode_direct=no
10491  hardcode_automatic=yes
10492  hardcode_shlibpath_var=unsupported
10493  if test yes = "$lt_cv_ld_force_load"; then
10494    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10495
10496  else
10497    whole_archive_flag_spec=''
10498  fi
10499  link_all_deplibs=yes
10500  allow_undefined_flag=$_lt_dar_allow_undefined
10501  case $cc_basename in
10502     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10503     *) _lt_dar_can_shared=$GCC ;;
10504  esac
10505  if test yes = "$_lt_dar_can_shared"; then
10506    output_verbose_link_cmd=func_echo_all
10507    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10508    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10509    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"
10510    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"
10511
10512  else
10513  ld_shlibs=no
10514  fi
10515
10516      ;;
10517
10518    dgux*)
10519      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10520      hardcode_libdir_flag_spec='-L$libdir'
10521      hardcode_shlibpath_var=no
10522      ;;
10523
10524    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10525    # support.  Future versions do this automatically, but an explicit c++rt0.o
10526    # does not break anything, and helps significantly (at the cost of a little
10527    # extra space).
10528    freebsd2.2*)
10529      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10530      hardcode_libdir_flag_spec='-R$libdir'
10531      hardcode_direct=yes
10532      hardcode_shlibpath_var=no
10533      ;;
10534
10535    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10536    freebsd2.*)
10537      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10538      hardcode_direct=yes
10539      hardcode_minus_L=yes
10540      hardcode_shlibpath_var=no
10541      ;;
10542
10543    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10544    freebsd* | dragonfly*)
10545      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10546      hardcode_libdir_flag_spec='-R$libdir'
10547      hardcode_direct=yes
10548      hardcode_shlibpath_var=no
10549      ;;
10550
10551    hpux9*)
10552      if test yes = "$GCC"; then
10553	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10554      else
10555	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10556      fi
10557      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10558      hardcode_libdir_separator=:
10559      hardcode_direct=yes
10560
10561      # hardcode_minus_L: Not really in the search PATH,
10562      # but as the default location of the library.
10563      hardcode_minus_L=yes
10564      export_dynamic_flag_spec='$wl-E'
10565      ;;
10566
10567    hpux10*)
10568      if test yes,no = "$GCC,$with_gnu_ld"; then
10569	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10570      else
10571	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10572      fi
10573      if test no = "$with_gnu_ld"; then
10574	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10575	hardcode_libdir_separator=:
10576	hardcode_direct=yes
10577	hardcode_direct_absolute=yes
10578	export_dynamic_flag_spec='$wl-E'
10579	# hardcode_minus_L: Not really in the search PATH,
10580	# but as the default location of the library.
10581	hardcode_minus_L=yes
10582      fi
10583      ;;
10584
10585    hpux11*)
10586      if test yes,no = "$GCC,$with_gnu_ld"; then
10587	case $host_cpu in
10588	hppa*64*)
10589	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10590	  ;;
10591	ia64*)
10592	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10593	  ;;
10594	*)
10595	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10596	  ;;
10597	esac
10598      else
10599	case $host_cpu in
10600	hppa*64*)
10601	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10602	  ;;
10603	ia64*)
10604	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10605	  ;;
10606	*)
10607
10608	  # Older versions of the 11.00 compiler do not understand -b yet
10609	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10610	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10611$as_echo_n "checking if $CC understands -b... " >&6; }
10612if ${lt_cv_prog_compiler__b+:} false; then :
10613  $as_echo_n "(cached) " >&6
10614else
10615  lt_cv_prog_compiler__b=no
10616   save_LDFLAGS=$LDFLAGS
10617   LDFLAGS="$LDFLAGS -b"
10618   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10619   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10620     # The linker can only warn and ignore the option if not recognized
10621     # So say no if there are warnings
10622     if test -s conftest.err; then
10623       # Append any errors to the config.log.
10624       cat conftest.err 1>&5
10625       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10626       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10627       if diff conftest.exp conftest.er2 >/dev/null; then
10628         lt_cv_prog_compiler__b=yes
10629       fi
10630     else
10631       lt_cv_prog_compiler__b=yes
10632     fi
10633   fi
10634   $RM -r conftest*
10635   LDFLAGS=$save_LDFLAGS
10636
10637fi
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10639$as_echo "$lt_cv_prog_compiler__b" >&6; }
10640
10641if test yes = "$lt_cv_prog_compiler__b"; then
10642    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10643else
10644    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10645fi
10646
10647	  ;;
10648	esac
10649      fi
10650      if test no = "$with_gnu_ld"; then
10651	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10652	hardcode_libdir_separator=:
10653
10654	case $host_cpu in
10655	hppa*64*|ia64*)
10656	  hardcode_direct=no
10657	  hardcode_shlibpath_var=no
10658	  ;;
10659	*)
10660	  hardcode_direct=yes
10661	  hardcode_direct_absolute=yes
10662	  export_dynamic_flag_spec='$wl-E'
10663
10664	  # hardcode_minus_L: Not really in the search PATH,
10665	  # but as the default location of the library.
10666	  hardcode_minus_L=yes
10667	  ;;
10668	esac
10669      fi
10670      ;;
10671
10672    irix5* | irix6* | nonstopux*)
10673      if test yes = "$GCC"; then
10674	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10675	# Try to use the -exported_symbol ld option, if it does not
10676	# work, assume that -exports_file does not work either and
10677	# implicitly export all symbols.
10678	# This should be the same for all languages, so no per-tag cache variable.
10679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10680$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10681if ${lt_cv_irix_exported_symbol+:} false; then :
10682  $as_echo_n "(cached) " >&6
10683else
10684  save_LDFLAGS=$LDFLAGS
10685	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10686	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687/* end confdefs.h.  */
10688int foo (void) { return 0; }
10689_ACEOF
10690if ac_fn_c_try_link "$LINENO"; then :
10691  lt_cv_irix_exported_symbol=yes
10692else
10693  lt_cv_irix_exported_symbol=no
10694fi
10695rm -f core conftest.err conftest.$ac_objext \
10696    conftest$ac_exeext conftest.$ac_ext
10697           LDFLAGS=$save_LDFLAGS
10698fi
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10700$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10701	if test yes = "$lt_cv_irix_exported_symbol"; then
10702          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10703	fi
10704      else
10705	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10706	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10707      fi
10708      archive_cmds_need_lc='no'
10709      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10710      hardcode_libdir_separator=:
10711      inherit_rpath=yes
10712      link_all_deplibs=yes
10713      ;;
10714
10715    linux*)
10716      case $cc_basename in
10717      tcc*)
10718	# Fabrice Bellard et al's Tiny C Compiler
10719	ld_shlibs=yes
10720	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10721	;;
10722      esac
10723      ;;
10724
10725    netbsd*)
10726      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10727	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10728      else
10729	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10730      fi
10731      hardcode_libdir_flag_spec='-R$libdir'
10732      hardcode_direct=yes
10733      hardcode_shlibpath_var=no
10734      ;;
10735
10736    newsos6)
10737      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738      hardcode_direct=yes
10739      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10740      hardcode_libdir_separator=:
10741      hardcode_shlibpath_var=no
10742      ;;
10743
10744    *nto* | *qnx*)
10745      ;;
10746
10747    openbsd* | bitrig*)
10748      if test -f /usr/libexec/ld.so; then
10749	hardcode_direct=yes
10750	hardcode_shlibpath_var=no
10751	hardcode_direct_absolute=yes
10752	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10753	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10754	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10755	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10756	  export_dynamic_flag_spec='$wl-E'
10757	else
10758	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10759	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10760	fi
10761      else
10762	ld_shlibs=no
10763      fi
10764      ;;
10765
10766    os2*)
10767      hardcode_libdir_flag_spec='-L$libdir'
10768      hardcode_minus_L=yes
10769      allow_undefined_flag=unsupported
10770      shrext_cmds=.dll
10771      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10772	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10773	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10774	$ECHO EXPORTS >> $output_objdir/$libname.def~
10775	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10776	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10777	emximp -o $lib $output_objdir/$libname.def'
10778      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10779	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10780	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10781	$ECHO EXPORTS >> $output_objdir/$libname.def~
10782	prefix_cmds="$SED"~
10783	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10784	  prefix_cmds="$prefix_cmds -e 1d";
10785	fi~
10786	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10787	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10788	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10789	emximp -o $lib $output_objdir/$libname.def'
10790      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10791      enable_shared_with_static_runtimes=yes
10792      ;;
10793
10794    osf3*)
10795      if test yes = "$GCC"; then
10796	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10797	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10798      else
10799	allow_undefined_flag=' -expect_unresolved \*'
10800	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10801      fi
10802      archive_cmds_need_lc='no'
10803      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10804      hardcode_libdir_separator=:
10805      ;;
10806
10807    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10808      if test yes = "$GCC"; then
10809	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10810	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10811	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10812      else
10813	allow_undefined_flag=' -expect_unresolved \*'
10814	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10815	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~
10816          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10817
10818	# Both c and cxx compiler support -rpath directly
10819	hardcode_libdir_flag_spec='-rpath $libdir'
10820      fi
10821      archive_cmds_need_lc='no'
10822      hardcode_libdir_separator=:
10823      ;;
10824
10825    solaris*)
10826      no_undefined_flag=' -z defs'
10827      if test yes = "$GCC"; then
10828	wlarc='$wl'
10829	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10830	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10831          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10832      else
10833	case `$CC -V 2>&1` in
10834	*"Compilers 5.0"*)
10835	  wlarc=''
10836	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10837	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10839	  ;;
10840	*)
10841	  wlarc='$wl'
10842	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10843	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10844            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10845	  ;;
10846	esac
10847      fi
10848      hardcode_libdir_flag_spec='-R$libdir'
10849      hardcode_shlibpath_var=no
10850      case $host_os in
10851      solaris2.[0-5] | solaris2.[0-5].*) ;;
10852      *)
10853	# The compiler driver will combine and reorder linker options,
10854	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10855	# but is careful enough not to reorder.
10856	# Supported since Solaris 2.6 (maybe 2.5.1?)
10857	if test yes = "$GCC"; then
10858	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10859	else
10860	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10861	fi
10862	;;
10863      esac
10864      link_all_deplibs=yes
10865      ;;
10866
10867    sunos4*)
10868      if test sequent = "$host_vendor"; then
10869	# Use $CC to link under sequent, because it throws in some extra .o
10870	# files that make .init and .fini sections work.
10871	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10872      else
10873	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10874      fi
10875      hardcode_libdir_flag_spec='-L$libdir'
10876      hardcode_direct=yes
10877      hardcode_minus_L=yes
10878      hardcode_shlibpath_var=no
10879      ;;
10880
10881    sysv4)
10882      case $host_vendor in
10883	sni)
10884	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10885	  hardcode_direct=yes # is this really true???
10886	;;
10887	siemens)
10888	  ## LD is ld it makes a PLAMLIB
10889	  ## CC just makes a GrossModule.
10890	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10891	  reload_cmds='$CC -r -o $output$reload_objs'
10892	  hardcode_direct=no
10893        ;;
10894	motorola)
10895	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10897	;;
10898      esac
10899      runpath_var='LD_RUN_PATH'
10900      hardcode_shlibpath_var=no
10901      ;;
10902
10903    sysv4.3*)
10904      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905      hardcode_shlibpath_var=no
10906      export_dynamic_flag_spec='-Bexport'
10907      ;;
10908
10909    sysv4*MP*)
10910      if test -d /usr/nec; then
10911	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912	hardcode_shlibpath_var=no
10913	runpath_var=LD_RUN_PATH
10914	hardcode_runpath_var=yes
10915	ld_shlibs=yes
10916      fi
10917      ;;
10918
10919    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10920      no_undefined_flag='$wl-z,text'
10921      archive_cmds_need_lc=no
10922      hardcode_shlibpath_var=no
10923      runpath_var='LD_RUN_PATH'
10924
10925      if test yes = "$GCC"; then
10926	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928      else
10929	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10931      fi
10932      ;;
10933
10934    sysv5* | sco3.2v5* | sco5v6*)
10935      # Note: We CANNOT use -z defs as we might desire, because we do not
10936      # link with -lc, and that would cause any symbols used from libc to
10937      # always be unresolved, which means just about no library would
10938      # ever link correctly.  If we're not using GNU ld we use -z text
10939      # though, which does catch some bad symbols but isn't as heavy-handed
10940      # as -z defs.
10941      no_undefined_flag='$wl-z,text'
10942      allow_undefined_flag='$wl-z,nodefs'
10943      archive_cmds_need_lc=no
10944      hardcode_shlibpath_var=no
10945      hardcode_libdir_flag_spec='$wl-R,$libdir'
10946      hardcode_libdir_separator=':'
10947      link_all_deplibs=yes
10948      export_dynamic_flag_spec='$wl-Bexport'
10949      runpath_var='LD_RUN_PATH'
10950
10951      if test yes = "$GCC"; then
10952	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954      else
10955	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957      fi
10958      ;;
10959
10960    uts4*)
10961      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962      hardcode_libdir_flag_spec='-L$libdir'
10963      hardcode_shlibpath_var=no
10964      ;;
10965
10966    *)
10967      ld_shlibs=no
10968      ;;
10969    esac
10970
10971    if test sni = "$host_vendor"; then
10972      case $host in
10973      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10974	export_dynamic_flag_spec='$wl-Blargedynsym'
10975	;;
10976      esac
10977    fi
10978  fi
10979
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10981$as_echo "$ld_shlibs" >&6; }
10982test no = "$ld_shlibs" && can_build_shared=no
10983
10984with_gnu_ld=$with_gnu_ld
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000#
11001# Do we need to explicitly link libc?
11002#
11003case "x$archive_cmds_need_lc" in
11004x|xyes)
11005  # Assume -lc should be added
11006  archive_cmds_need_lc=yes
11007
11008  if test yes,yes = "$GCC,$enable_shared"; then
11009    case $archive_cmds in
11010    *'~'*)
11011      # FIXME: we may have to deal with multi-command sequences.
11012      ;;
11013    '$CC '*)
11014      # Test whether the compiler implicitly links with -lc since on some
11015      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11016      # to ld, don't add -lc before -lgcc.
11017      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11018$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11019if ${lt_cv_archive_cmds_need_lc+:} false; then :
11020  $as_echo_n "(cached) " >&6
11021else
11022  $RM conftest*
11023	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11024
11025	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11026  (eval $ac_compile) 2>&5
11027  ac_status=$?
11028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029  test $ac_status = 0; } 2>conftest.err; then
11030	  soname=conftest
11031	  lib=conftest
11032	  libobjs=conftest.$ac_objext
11033	  deplibs=
11034	  wl=$lt_prog_compiler_wl
11035	  pic_flag=$lt_prog_compiler_pic
11036	  compiler_flags=-v
11037	  linker_flags=-v
11038	  verstring=
11039	  output_objdir=.
11040	  libname=conftest
11041	  lt_save_allow_undefined_flag=$allow_undefined_flag
11042	  allow_undefined_flag=
11043	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11044  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11045  ac_status=$?
11046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047  test $ac_status = 0; }
11048	  then
11049	    lt_cv_archive_cmds_need_lc=no
11050	  else
11051	    lt_cv_archive_cmds_need_lc=yes
11052	  fi
11053	  allow_undefined_flag=$lt_save_allow_undefined_flag
11054	else
11055	  cat conftest.err 1>&5
11056	fi
11057	$RM conftest*
11058
11059fi
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11061$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11062      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11063      ;;
11064    esac
11065  fi
11066  ;;
11067esac
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11221$as_echo_n "checking dynamic linker characteristics... " >&6; }
11222
11223if test yes = "$GCC"; then
11224  case $host_os in
11225    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11226    *) lt_awk_arg='/^libraries:/' ;;
11227  esac
11228  case $host_os in
11229    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11230    *) lt_sed_strip_eq='s|=/|/|g' ;;
11231  esac
11232  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11233  case $lt_search_path_spec in
11234  *\;*)
11235    # if the path contains ";" then we assume it to be the separator
11236    # otherwise default to the standard path separator (i.e. ":") - it is
11237    # assumed that no part of a normal pathname contains ";" but that should
11238    # okay in the real world where ";" in dirpaths is itself problematic.
11239    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11240    ;;
11241  *)
11242    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11243    ;;
11244  esac
11245  # Ok, now we have the path, separated by spaces, we can step through it
11246  # and add multilib dir if necessary...
11247  lt_tmp_lt_search_path_spec=
11248  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11249  # ...but if some path component already ends with the multilib dir we assume
11250  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11251  case "$lt_multi_os_dir; $lt_search_path_spec " in
11252  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11253    lt_multi_os_dir=
11254    ;;
11255  esac
11256  for lt_sys_path in $lt_search_path_spec; do
11257    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11258      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11259    elif test -n "$lt_multi_os_dir"; then
11260      test -d "$lt_sys_path" && \
11261	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11262    fi
11263  done
11264  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11265BEGIN {RS = " "; FS = "/|\n";} {
11266  lt_foo = "";
11267  lt_count = 0;
11268  for (lt_i = NF; lt_i > 0; lt_i--) {
11269    if ($lt_i != "" && $lt_i != ".") {
11270      if ($lt_i == "..") {
11271        lt_count++;
11272      } else {
11273        if (lt_count == 0) {
11274          lt_foo = "/" $lt_i lt_foo;
11275        } else {
11276          lt_count--;
11277        }
11278      }
11279    }
11280  }
11281  if (lt_foo != "") { lt_freq[lt_foo]++; }
11282  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11283}'`
11284  # AWK program above erroneously prepends '/' to C:/dos/paths
11285  # for these hosts.
11286  case $host_os in
11287    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11288      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11289  esac
11290  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11291else
11292  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11293fi
11294library_names_spec=
11295libname_spec='lib$name'
11296soname_spec=
11297shrext_cmds=.so
11298postinstall_cmds=
11299postuninstall_cmds=
11300finish_cmds=
11301finish_eval=
11302shlibpath_var=
11303shlibpath_overrides_runpath=unknown
11304version_type=none
11305dynamic_linker="$host_os ld.so"
11306sys_lib_dlsearch_path_spec="/lib /usr/lib"
11307need_lib_prefix=unknown
11308hardcode_into_libs=no
11309
11310# when you set need_version to no, make sure it does not cause -set_version
11311# flags to be left without arguments
11312need_version=unknown
11313
11314
11315
11316case $host_os in
11317aix3*)
11318  version_type=linux # correct to gnu/linux during the next big refactor
11319  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11320  shlibpath_var=LIBPATH
11321
11322  # AIX 3 has no versioning support, so we append a major version to the name.
11323  soname_spec='$libname$release$shared_ext$major'
11324  ;;
11325
11326aix[4-9]*)
11327  version_type=linux # correct to gnu/linux during the next big refactor
11328  need_lib_prefix=no
11329  need_version=no
11330  hardcode_into_libs=yes
11331  if test ia64 = "$host_cpu"; then
11332    # AIX 5 supports IA64
11333    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11334    shlibpath_var=LD_LIBRARY_PATH
11335  else
11336    # With GCC up to 2.95.x, collect2 would create an import file
11337    # for dependence libraries.  The import file would start with
11338    # the line '#! .'.  This would cause the generated library to
11339    # depend on '.', always an invalid library.  This was fixed in
11340    # development snapshots of GCC prior to 3.0.
11341    case $host_os in
11342      aix4 | aix4.[01] | aix4.[01].*)
11343      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11344	   echo ' yes '
11345	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11346	:
11347      else
11348	can_build_shared=no
11349      fi
11350      ;;
11351    esac
11352    # Using Import Files as archive members, it is possible to support
11353    # filename-based versioning of shared library archives on AIX. While
11354    # this would work for both with and without runtime linking, it will
11355    # prevent static linking of such archives. So we do filename-based
11356    # shared library versioning with .so extension only, which is used
11357    # when both runtime linking and shared linking is enabled.
11358    # Unfortunately, runtime linking may impact performance, so we do
11359    # not want this to be the default eventually. Also, we use the
11360    # versioned .so libs for executables only if there is the -brtl
11361    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11362    # To allow for filename-based versioning support, we need to create
11363    # libNAME.so.V as an archive file, containing:
11364    # *) an Import File, referring to the versioned filename of the
11365    #    archive as well as the shared archive member, telling the
11366    #    bitwidth (32 or 64) of that shared object, and providing the
11367    #    list of exported symbols of that shared object, eventually
11368    #    decorated with the 'weak' keyword
11369    # *) the shared object with the F_LOADONLY flag set, to really avoid
11370    #    it being seen by the linker.
11371    # At run time we better use the real file rather than another symlink,
11372    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11373
11374    case $with_aix_soname,$aix_use_runtimelinking in
11375    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11376    # soname into executable. Probably we can add versioning support to
11377    # collect2, so additional links can be useful in future.
11378    aix,yes) # traditional libtool
11379      dynamic_linker='AIX unversionable lib.so'
11380      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11381      # instead of lib<name>.a to let people know that these are not
11382      # typical AIX shared libraries.
11383      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11384      ;;
11385    aix,no) # traditional AIX only
11386      dynamic_linker='AIX lib.a(lib.so.V)'
11387      # We preserve .a as extension for shared libraries through AIX4.2
11388      # and later when we are not doing run time linking.
11389      library_names_spec='$libname$release.a $libname.a'
11390      soname_spec='$libname$release$shared_ext$major'
11391      ;;
11392    svr4,*) # full svr4 only
11393      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11394      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11395      # We do not specify a path in Import Files, so LIBPATH fires.
11396      shlibpath_overrides_runpath=yes
11397      ;;
11398    *,yes) # both, prefer svr4
11399      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11400      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11401      # unpreferred sharedlib libNAME.a needs extra handling
11402      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11403      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11404      # We do not specify a path in Import Files, so LIBPATH fires.
11405      shlibpath_overrides_runpath=yes
11406      ;;
11407    *,no) # both, prefer aix
11408      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11409      library_names_spec='$libname$release.a $libname.a'
11410      soname_spec='$libname$release$shared_ext$major'
11411      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11412      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11413      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11414      ;;
11415    esac
11416    shlibpath_var=LIBPATH
11417  fi
11418  ;;
11419
11420amigaos*)
11421  case $host_cpu in
11422  powerpc)
11423    # Since July 2007 AmigaOS4 officially supports .so libraries.
11424    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11425    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11426    ;;
11427  m68k)
11428    library_names_spec='$libname.ixlibrary $libname.a'
11429    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11430    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11431    ;;
11432  esac
11433  ;;
11434
11435beos*)
11436  library_names_spec='$libname$shared_ext'
11437  dynamic_linker="$host_os ld.so"
11438  shlibpath_var=LIBRARY_PATH
11439  ;;
11440
11441bsdi[45]*)
11442  version_type=linux # correct to gnu/linux during the next big refactor
11443  need_version=no
11444  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11445  soname_spec='$libname$release$shared_ext$major'
11446  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11447  shlibpath_var=LD_LIBRARY_PATH
11448  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11449  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11450  # the default ld.so.conf also contains /usr/contrib/lib and
11451  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11452  # libtool to hard-code these into programs
11453  ;;
11454
11455cygwin* | mingw* | pw32* | cegcc*)
11456  version_type=windows
11457  shrext_cmds=.dll
11458  need_version=no
11459  need_lib_prefix=no
11460
11461  case $GCC,$cc_basename in
11462  yes,*)
11463    # gcc
11464    library_names_spec='$libname.dll.a'
11465    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11466    postinstall_cmds='base_file=`basename \$file`~
11467      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11468      dldir=$destdir/`dirname \$dlpath`~
11469      test -d \$dldir || mkdir -p \$dldir~
11470      $install_prog $dir/$dlname \$dldir/$dlname~
11471      chmod a+x \$dldir/$dlname~
11472      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11473        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11474      fi'
11475    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11476      dlpath=$dir/\$dldll~
11477       $RM \$dlpath'
11478    shlibpath_overrides_runpath=yes
11479
11480    case $host_os in
11481    cygwin*)
11482      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11483      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11484
11485      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11486      ;;
11487    mingw* | cegcc*)
11488      # MinGW DLLs use traditional 'lib' prefix
11489      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11490      ;;
11491    pw32*)
11492      # pw32 DLLs use 'pw' prefix rather than 'lib'
11493      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11494      ;;
11495    esac
11496    dynamic_linker='Win32 ld.exe'
11497    ;;
11498
11499  *,cl*)
11500    # Native MSVC
11501    libname_spec='$name'
11502    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11503    library_names_spec='$libname.dll.lib'
11504
11505    case $build_os in
11506    mingw*)
11507      sys_lib_search_path_spec=
11508      lt_save_ifs=$IFS
11509      IFS=';'
11510      for lt_path in $LIB
11511      do
11512        IFS=$lt_save_ifs
11513        # Let DOS variable expansion print the short 8.3 style file name.
11514        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11515        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11516      done
11517      IFS=$lt_save_ifs
11518      # Convert to MSYS style.
11519      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11520      ;;
11521    cygwin*)
11522      # Convert to unix form, then to dos form, then back to unix form
11523      # but this time dos style (no spaces!) so that the unix form looks
11524      # like /cygdrive/c/PROGRA~1:/cygdr...
11525      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11526      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11527      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11528      ;;
11529    *)
11530      sys_lib_search_path_spec=$LIB
11531      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11532        # It is most probably a Windows format PATH.
11533        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11534      else
11535        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11536      fi
11537      # FIXME: find the short name or the path components, as spaces are
11538      # common. (e.g. "Program Files" -> "PROGRA~1")
11539      ;;
11540    esac
11541
11542    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11543    postinstall_cmds='base_file=`basename \$file`~
11544      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11545      dldir=$destdir/`dirname \$dlpath`~
11546      test -d \$dldir || mkdir -p \$dldir~
11547      $install_prog $dir/$dlname \$dldir/$dlname'
11548    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11549      dlpath=$dir/\$dldll~
11550       $RM \$dlpath'
11551    shlibpath_overrides_runpath=yes
11552    dynamic_linker='Win32 link.exe'
11553    ;;
11554
11555  *)
11556    # Assume MSVC wrapper
11557    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11558    dynamic_linker='Win32 ld.exe'
11559    ;;
11560  esac
11561  # FIXME: first we should search . and the directory the executable is in
11562  shlibpath_var=PATH
11563  ;;
11564
11565darwin* | rhapsody*)
11566  dynamic_linker="$host_os dyld"
11567  version_type=darwin
11568  need_lib_prefix=no
11569  need_version=no
11570  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11571  soname_spec='$libname$release$major$shared_ext'
11572  shlibpath_overrides_runpath=yes
11573  shlibpath_var=DYLD_LIBRARY_PATH
11574  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11575
11576  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11577  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11578  ;;
11579
11580dgux*)
11581  version_type=linux # correct to gnu/linux during the next big refactor
11582  need_lib_prefix=no
11583  need_version=no
11584  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11585  soname_spec='$libname$release$shared_ext$major'
11586  shlibpath_var=LD_LIBRARY_PATH
11587  ;;
11588
11589freebsd* | dragonfly*)
11590  # DragonFly does not have aout.  When/if they implement a new
11591  # versioning mechanism, adjust this.
11592  if test -x /usr/bin/objformat; then
11593    objformat=`/usr/bin/objformat`
11594  else
11595    case $host_os in
11596    freebsd[23].*) objformat=aout ;;
11597    *) objformat=elf ;;
11598    esac
11599  fi
11600  version_type=freebsd-$objformat
11601  case $version_type in
11602    freebsd-elf*)
11603      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11604      soname_spec='$libname$release$shared_ext$major'
11605      need_version=no
11606      need_lib_prefix=no
11607      ;;
11608    freebsd-*)
11609      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11610      need_version=yes
11611      ;;
11612  esac
11613  shlibpath_var=LD_LIBRARY_PATH
11614  case $host_os in
11615  freebsd2.*)
11616    shlibpath_overrides_runpath=yes
11617    ;;
11618  freebsd3.[01]* | freebsdelf3.[01]*)
11619    shlibpath_overrides_runpath=yes
11620    hardcode_into_libs=yes
11621    ;;
11622  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11623  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11624    shlibpath_overrides_runpath=no
11625    hardcode_into_libs=yes
11626    ;;
11627  *) # from 4.6 on, and DragonFly
11628    shlibpath_overrides_runpath=yes
11629    hardcode_into_libs=yes
11630    ;;
11631  esac
11632  ;;
11633
11634haiku*)
11635  version_type=linux # correct to gnu/linux during the next big refactor
11636  need_lib_prefix=no
11637  need_version=no
11638  dynamic_linker="$host_os runtime_loader"
11639  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11640  soname_spec='$libname$release$shared_ext$major'
11641  shlibpath_var=LIBRARY_PATH
11642  shlibpath_overrides_runpath=no
11643  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11644  hardcode_into_libs=yes
11645  ;;
11646
11647hpux9* | hpux10* | hpux11*)
11648  # Give a soname corresponding to the major version so that dld.sl refuses to
11649  # link against other versions.
11650  version_type=sunos
11651  need_lib_prefix=no
11652  need_version=no
11653  case $host_cpu in
11654  ia64*)
11655    shrext_cmds='.so'
11656    hardcode_into_libs=yes
11657    dynamic_linker="$host_os dld.so"
11658    shlibpath_var=LD_LIBRARY_PATH
11659    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11660    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11661    soname_spec='$libname$release$shared_ext$major'
11662    if test 32 = "$HPUX_IA64_MODE"; then
11663      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11664      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11665    else
11666      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11667      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11668    fi
11669    ;;
11670  hppa*64*)
11671    shrext_cmds='.sl'
11672    hardcode_into_libs=yes
11673    dynamic_linker="$host_os dld.sl"
11674    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11675    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11676    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11677    soname_spec='$libname$release$shared_ext$major'
11678    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11679    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11680    ;;
11681  *)
11682    shrext_cmds='.sl'
11683    dynamic_linker="$host_os dld.sl"
11684    shlibpath_var=SHLIB_PATH
11685    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11686    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687    soname_spec='$libname$release$shared_ext$major'
11688    ;;
11689  esac
11690  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11691  postinstall_cmds='chmod 555 $lib'
11692  # or fails outright, so override atomically:
11693  install_override_mode=555
11694  ;;
11695
11696interix[3-9]*)
11697  version_type=linux # correct to gnu/linux during the next big refactor
11698  need_lib_prefix=no
11699  need_version=no
11700  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11701  soname_spec='$libname$release$shared_ext$major'
11702  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11703  shlibpath_var=LD_LIBRARY_PATH
11704  shlibpath_overrides_runpath=no
11705  hardcode_into_libs=yes
11706  ;;
11707
11708irix5* | irix6* | nonstopux*)
11709  case $host_os in
11710    nonstopux*) version_type=nonstopux ;;
11711    *)
11712	if test yes = "$lt_cv_prog_gnu_ld"; then
11713		version_type=linux # correct to gnu/linux during the next big refactor
11714	else
11715		version_type=irix
11716	fi ;;
11717  esac
11718  need_lib_prefix=no
11719  need_version=no
11720  soname_spec='$libname$release$shared_ext$major'
11721  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11722  case $host_os in
11723  irix5* | nonstopux*)
11724    libsuff= shlibsuff=
11725    ;;
11726  *)
11727    case $LD in # libtool.m4 will add one of these switches to LD
11728    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11729      libsuff= shlibsuff= libmagic=32-bit;;
11730    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11731      libsuff=32 shlibsuff=N32 libmagic=N32;;
11732    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11733      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11734    *) libsuff= shlibsuff= libmagic=never-match;;
11735    esac
11736    ;;
11737  esac
11738  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11739  shlibpath_overrides_runpath=no
11740  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11741  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11742  hardcode_into_libs=yes
11743  ;;
11744
11745# No shared lib support for Linux oldld, aout, or coff.
11746linux*oldld* | linux*aout* | linux*coff*)
11747  dynamic_linker=no
11748  ;;
11749
11750linux*android*)
11751  version_type=none # Android doesn't support versioned libraries.
11752  need_lib_prefix=no
11753  need_version=no
11754  library_names_spec='$libname$release$shared_ext'
11755  soname_spec='$libname$release$shared_ext'
11756  finish_cmds=
11757  shlibpath_var=LD_LIBRARY_PATH
11758  shlibpath_overrides_runpath=yes
11759
11760  # This implies no fast_install, which is unacceptable.
11761  # Some rework will be needed to allow for fast_install
11762  # before this can be enabled.
11763  hardcode_into_libs=yes
11764
11765  dynamic_linker='Android linker'
11766  # Don't embed -rpath directories since the linker doesn't support them.
11767  hardcode_libdir_flag_spec='-L$libdir'
11768  ;;
11769
11770# This must be glibc/ELF.
11771linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11772  version_type=linux # correct to gnu/linux during the next big refactor
11773  need_lib_prefix=no
11774  need_version=no
11775  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11776  soname_spec='$libname$release$shared_ext$major'
11777  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11778  shlibpath_var=LD_LIBRARY_PATH
11779  shlibpath_overrides_runpath=no
11780
11781  # Some binutils ld are patched to set DT_RUNPATH
11782  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11783  $as_echo_n "(cached) " >&6
11784else
11785  lt_cv_shlibpath_overrides_runpath=no
11786    save_LDFLAGS=$LDFLAGS
11787    save_libdir=$libdir
11788    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11789	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11790    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791/* end confdefs.h.  */
11792
11793int
11794main ()
11795{
11796
11797  ;
11798  return 0;
11799}
11800_ACEOF
11801if ac_fn_c_try_link "$LINENO"; then :
11802  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11803  lt_cv_shlibpath_overrides_runpath=yes
11804fi
11805fi
11806rm -f core conftest.err conftest.$ac_objext \
11807    conftest$ac_exeext conftest.$ac_ext
11808    LDFLAGS=$save_LDFLAGS
11809    libdir=$save_libdir
11810
11811fi
11812
11813  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11814
11815  # This implies no fast_install, which is unacceptable.
11816  # Some rework will be needed to allow for fast_install
11817  # before this can be enabled.
11818  hardcode_into_libs=yes
11819
11820  # Ideally, we could use ldconfig to report *all* directores which are
11821  # searched for libraries, however this is still not possible.  Aside from not
11822  # being certain /sbin/ldconfig is available, command
11823  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11824  # even though it is searched at run-time.  Try to do the best guess by
11825  # appending ld.so.conf contents (and includes) to the search path.
11826  if test -f /etc/ld.so.conf; then
11827    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;s/"//g;/^$/d' | tr '\n' ' '`
11828    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11829  fi
11830
11831  # We used to test for /lib/ld.so.1 and disable shared libraries on
11832  # powerpc, because MkLinux only supported shared libraries with the
11833  # GNU dynamic linker.  Since this was broken with cross compilers,
11834  # most powerpc-linux boxes support dynamic linking these days and
11835  # people can always --disable-shared, the test was removed, and we
11836  # assume the GNU/Linux dynamic linker is in use.
11837  dynamic_linker='GNU/Linux ld.so'
11838  ;;
11839
11840netbsd*)
11841  version_type=sunos
11842  need_lib_prefix=no
11843  need_version=no
11844  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11845    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11846    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11847    dynamic_linker='NetBSD (a.out) ld.so'
11848  else
11849    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11850    soname_spec='$libname$release$shared_ext$major'
11851    dynamic_linker='NetBSD ld.elf_so'
11852  fi
11853  shlibpath_var=LD_LIBRARY_PATH
11854  shlibpath_overrides_runpath=yes
11855  hardcode_into_libs=yes
11856  ;;
11857
11858newsos6)
11859  version_type=linux # correct to gnu/linux during the next big refactor
11860  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861  shlibpath_var=LD_LIBRARY_PATH
11862  shlibpath_overrides_runpath=yes
11863  ;;
11864
11865*nto* | *qnx*)
11866  version_type=qnx
11867  need_lib_prefix=no
11868  need_version=no
11869  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11870  soname_spec='$libname$release$shared_ext$major'
11871  shlibpath_var=LD_LIBRARY_PATH
11872  shlibpath_overrides_runpath=no
11873  hardcode_into_libs=yes
11874  dynamic_linker='ldqnx.so'
11875  ;;
11876
11877openbsd* | bitrig*)
11878  version_type=sunos
11879  sys_lib_dlsearch_path_spec=/usr/lib
11880  need_lib_prefix=no
11881  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11882    need_version=no
11883  else
11884    need_version=yes
11885  fi
11886  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11887  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11888  shlibpath_var=LD_LIBRARY_PATH
11889  shlibpath_overrides_runpath=yes
11890  ;;
11891
11892os2*)
11893  libname_spec='$name'
11894  version_type=windows
11895  shrext_cmds=.dll
11896  need_version=no
11897  need_lib_prefix=no
11898  # OS/2 can only load a DLL with a base name of 8 characters or less.
11899  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11900    v=$($ECHO $release$versuffix | tr -d .-);
11901    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11902    $ECHO $n$v`$shared_ext'
11903  library_names_spec='${libname}_dll.$libext'
11904  dynamic_linker='OS/2 ld.exe'
11905  shlibpath_var=BEGINLIBPATH
11906  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11907  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11908  postinstall_cmds='base_file=`basename \$file`~
11909    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11910    dldir=$destdir/`dirname \$dlpath`~
11911    test -d \$dldir || mkdir -p \$dldir~
11912    $install_prog $dir/$dlname \$dldir/$dlname~
11913    chmod a+x \$dldir/$dlname~
11914    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11915      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11916    fi'
11917  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11918    dlpath=$dir/\$dldll~
11919    $RM \$dlpath'
11920  ;;
11921
11922osf3* | osf4* | osf5*)
11923  version_type=osf
11924  need_lib_prefix=no
11925  need_version=no
11926  soname_spec='$libname$release$shared_ext$major'
11927  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11928  shlibpath_var=LD_LIBRARY_PATH
11929  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11930  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11931  ;;
11932
11933rdos*)
11934  dynamic_linker=no
11935  ;;
11936
11937solaris*)
11938  version_type=linux # correct to gnu/linux during the next big refactor
11939  need_lib_prefix=no
11940  need_version=no
11941  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11942  soname_spec='$libname$release$shared_ext$major'
11943  shlibpath_var=LD_LIBRARY_PATH
11944  shlibpath_overrides_runpath=yes
11945  hardcode_into_libs=yes
11946  # ldd complains unless libraries are executable
11947  postinstall_cmds='chmod +x $lib'
11948  ;;
11949
11950sunos4*)
11951  version_type=sunos
11952  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11953  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11954  shlibpath_var=LD_LIBRARY_PATH
11955  shlibpath_overrides_runpath=yes
11956  if test yes = "$with_gnu_ld"; then
11957    need_lib_prefix=no
11958  fi
11959  need_version=yes
11960  ;;
11961
11962sysv4 | sysv4.3*)
11963  version_type=linux # correct to gnu/linux during the next big refactor
11964  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11965  soname_spec='$libname$release$shared_ext$major'
11966  shlibpath_var=LD_LIBRARY_PATH
11967  case $host_vendor in
11968    sni)
11969      shlibpath_overrides_runpath=no
11970      need_lib_prefix=no
11971      runpath_var=LD_RUN_PATH
11972      ;;
11973    siemens)
11974      need_lib_prefix=no
11975      ;;
11976    motorola)
11977      need_lib_prefix=no
11978      need_version=no
11979      shlibpath_overrides_runpath=no
11980      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11981      ;;
11982  esac
11983  ;;
11984
11985sysv4*MP*)
11986  if test -d /usr/nec; then
11987    version_type=linux # correct to gnu/linux during the next big refactor
11988    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11989    soname_spec='$libname$shared_ext.$major'
11990    shlibpath_var=LD_LIBRARY_PATH
11991  fi
11992  ;;
11993
11994sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11995  version_type=sco
11996  need_lib_prefix=no
11997  need_version=no
11998  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11999  soname_spec='$libname$release$shared_ext$major'
12000  shlibpath_var=LD_LIBRARY_PATH
12001  shlibpath_overrides_runpath=yes
12002  hardcode_into_libs=yes
12003  if test yes = "$with_gnu_ld"; then
12004    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12005  else
12006    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12007    case $host_os in
12008      sco3.2v5*)
12009        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12010	;;
12011    esac
12012  fi
12013  sys_lib_dlsearch_path_spec='/usr/lib'
12014  ;;
12015
12016tpf*)
12017  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12018  version_type=linux # correct to gnu/linux during the next big refactor
12019  need_lib_prefix=no
12020  need_version=no
12021  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12022  shlibpath_var=LD_LIBRARY_PATH
12023  shlibpath_overrides_runpath=no
12024  hardcode_into_libs=yes
12025  ;;
12026
12027uts4*)
12028  version_type=linux # correct to gnu/linux during the next big refactor
12029  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12030  soname_spec='$libname$release$shared_ext$major'
12031  shlibpath_var=LD_LIBRARY_PATH
12032  ;;
12033
12034*)
12035  dynamic_linker=no
12036  ;;
12037esac
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12039$as_echo "$dynamic_linker" >&6; }
12040test no = "$dynamic_linker" && can_build_shared=no
12041
12042variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12043if test yes = "$GCC"; then
12044  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12045fi
12046
12047if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12048  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12049fi
12050
12051if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12052  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12053fi
12054
12055# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12056configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12057
12058# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12059func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12060
12061# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12062configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12161$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12162hardcode_action=
12163if test -n "$hardcode_libdir_flag_spec" ||
12164   test -n "$runpath_var" ||
12165   test yes = "$hardcode_automatic"; then
12166
12167  # We can hardcode non-existent directories.
12168  if test no != "$hardcode_direct" &&
12169     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12170     # have to relink, otherwise we might link with an installed library
12171     # when we should be linking with a yet-to-be-installed one
12172     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12173     test no != "$hardcode_minus_L"; then
12174    # Linking always hardcodes the temporary library directory.
12175    hardcode_action=relink
12176  else
12177    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12178    hardcode_action=immediate
12179  fi
12180else
12181  # We cannot hardcode anything, or else we can only hardcode existing
12182  # directories.
12183  hardcode_action=unsupported
12184fi
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12186$as_echo "$hardcode_action" >&6; }
12187
12188if test relink = "$hardcode_action" ||
12189   test yes = "$inherit_rpath"; then
12190  # Fast installation is not supported
12191  enable_fast_install=no
12192elif test yes = "$shlibpath_overrides_runpath" ||
12193     test no = "$enable_shared"; then
12194  # Fast installation is not necessary
12195  enable_fast_install=needless
12196fi
12197
12198
12199
12200
12201
12202
12203  if test yes != "$enable_dlopen"; then
12204  enable_dlopen=unknown
12205  enable_dlopen_self=unknown
12206  enable_dlopen_self_static=unknown
12207else
12208  lt_cv_dlopen=no
12209  lt_cv_dlopen_libs=
12210
12211  case $host_os in
12212  beos*)
12213    lt_cv_dlopen=load_add_on
12214    lt_cv_dlopen_libs=
12215    lt_cv_dlopen_self=yes
12216    ;;
12217
12218  mingw* | pw32* | cegcc*)
12219    lt_cv_dlopen=LoadLibrary
12220    lt_cv_dlopen_libs=
12221    ;;
12222
12223  cygwin*)
12224    lt_cv_dlopen=dlopen
12225    lt_cv_dlopen_libs=
12226    ;;
12227
12228  darwin*)
12229    # if libdl is installed we need to link against it
12230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12231$as_echo_n "checking for dlopen in -ldl... " >&6; }
12232if ${ac_cv_lib_dl_dlopen+:} false; then :
12233  $as_echo_n "(cached) " >&6
12234else
12235  ac_check_lib_save_LIBS=$LIBS
12236LIBS="-ldl  $LIBS"
12237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238/* end confdefs.h.  */
12239
12240/* Override any GCC internal prototype to avoid an error.
12241   Use char because int might match the return type of a GCC
12242   builtin and then its argument prototype would still apply.  */
12243#ifdef __cplusplus
12244extern "C"
12245#endif
12246char dlopen ();
12247int
12248main ()
12249{
12250return dlopen ();
12251  ;
12252  return 0;
12253}
12254_ACEOF
12255if ac_fn_c_try_link "$LINENO"; then :
12256  ac_cv_lib_dl_dlopen=yes
12257else
12258  ac_cv_lib_dl_dlopen=no
12259fi
12260rm -f core conftest.err conftest.$ac_objext \
12261    conftest$ac_exeext conftest.$ac_ext
12262LIBS=$ac_check_lib_save_LIBS
12263fi
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12265$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12266if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12267  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12268else
12269
12270    lt_cv_dlopen=dyld
12271    lt_cv_dlopen_libs=
12272    lt_cv_dlopen_self=yes
12273
12274fi
12275
12276    ;;
12277
12278  tpf*)
12279    # Don't try to run any link tests for TPF.  We know it's impossible
12280    # because TPF is a cross-compiler, and we know how we open DSOs.
12281    lt_cv_dlopen=dlopen
12282    lt_cv_dlopen_libs=
12283    lt_cv_dlopen_self=no
12284    ;;
12285
12286  *)
12287    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12288if test "x$ac_cv_func_shl_load" = xyes; then :
12289  lt_cv_dlopen=shl_load
12290else
12291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12292$as_echo_n "checking for shl_load in -ldld... " >&6; }
12293if ${ac_cv_lib_dld_shl_load+:} false; then :
12294  $as_echo_n "(cached) " >&6
12295else
12296  ac_check_lib_save_LIBS=$LIBS
12297LIBS="-ldld  $LIBS"
12298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299/* end confdefs.h.  */
12300
12301/* Override any GCC internal prototype to avoid an error.
12302   Use char because int might match the return type of a GCC
12303   builtin and then its argument prototype would still apply.  */
12304#ifdef __cplusplus
12305extern "C"
12306#endif
12307char shl_load ();
12308int
12309main ()
12310{
12311return shl_load ();
12312  ;
12313  return 0;
12314}
12315_ACEOF
12316if ac_fn_c_try_link "$LINENO"; then :
12317  ac_cv_lib_dld_shl_load=yes
12318else
12319  ac_cv_lib_dld_shl_load=no
12320fi
12321rm -f core conftest.err conftest.$ac_objext \
12322    conftest$ac_exeext conftest.$ac_ext
12323LIBS=$ac_check_lib_save_LIBS
12324fi
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12326$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12327if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12328  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12329else
12330  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12331if test "x$ac_cv_func_dlopen" = xyes; then :
12332  lt_cv_dlopen=dlopen
12333else
12334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12335$as_echo_n "checking for dlopen in -ldl... " >&6; }
12336if ${ac_cv_lib_dl_dlopen+:} false; then :
12337  $as_echo_n "(cached) " >&6
12338else
12339  ac_check_lib_save_LIBS=$LIBS
12340LIBS="-ldl  $LIBS"
12341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342/* end confdefs.h.  */
12343
12344/* Override any GCC internal prototype to avoid an error.
12345   Use char because int might match the return type of a GCC
12346   builtin and then its argument prototype would still apply.  */
12347#ifdef __cplusplus
12348extern "C"
12349#endif
12350char dlopen ();
12351int
12352main ()
12353{
12354return dlopen ();
12355  ;
12356  return 0;
12357}
12358_ACEOF
12359if ac_fn_c_try_link "$LINENO"; then :
12360  ac_cv_lib_dl_dlopen=yes
12361else
12362  ac_cv_lib_dl_dlopen=no
12363fi
12364rm -f core conftest.err conftest.$ac_objext \
12365    conftest$ac_exeext conftest.$ac_ext
12366LIBS=$ac_check_lib_save_LIBS
12367fi
12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12369$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12370if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12371  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12372else
12373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12374$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12375if ${ac_cv_lib_svld_dlopen+:} false; then :
12376  $as_echo_n "(cached) " >&6
12377else
12378  ac_check_lib_save_LIBS=$LIBS
12379LIBS="-lsvld  $LIBS"
12380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381/* end confdefs.h.  */
12382
12383/* Override any GCC internal prototype to avoid an error.
12384   Use char because int might match the return type of a GCC
12385   builtin and then its argument prototype would still apply.  */
12386#ifdef __cplusplus
12387extern "C"
12388#endif
12389char dlopen ();
12390int
12391main ()
12392{
12393return dlopen ();
12394  ;
12395  return 0;
12396}
12397_ACEOF
12398if ac_fn_c_try_link "$LINENO"; then :
12399  ac_cv_lib_svld_dlopen=yes
12400else
12401  ac_cv_lib_svld_dlopen=no
12402fi
12403rm -f core conftest.err conftest.$ac_objext \
12404    conftest$ac_exeext conftest.$ac_ext
12405LIBS=$ac_check_lib_save_LIBS
12406fi
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12408$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12409if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12410  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12411else
12412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12413$as_echo_n "checking for dld_link in -ldld... " >&6; }
12414if ${ac_cv_lib_dld_dld_link+:} false; then :
12415  $as_echo_n "(cached) " >&6
12416else
12417  ac_check_lib_save_LIBS=$LIBS
12418LIBS="-ldld  $LIBS"
12419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420/* end confdefs.h.  */
12421
12422/* Override any GCC internal prototype to avoid an error.
12423   Use char because int might match the return type of a GCC
12424   builtin and then its argument prototype would still apply.  */
12425#ifdef __cplusplus
12426extern "C"
12427#endif
12428char dld_link ();
12429int
12430main ()
12431{
12432return dld_link ();
12433  ;
12434  return 0;
12435}
12436_ACEOF
12437if ac_fn_c_try_link "$LINENO"; then :
12438  ac_cv_lib_dld_dld_link=yes
12439else
12440  ac_cv_lib_dld_dld_link=no
12441fi
12442rm -f core conftest.err conftest.$ac_objext \
12443    conftest$ac_exeext conftest.$ac_ext
12444LIBS=$ac_check_lib_save_LIBS
12445fi
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12447$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12448if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12449  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12450fi
12451
12452
12453fi
12454
12455
12456fi
12457
12458
12459fi
12460
12461
12462fi
12463
12464
12465fi
12466
12467    ;;
12468  esac
12469
12470  if test no = "$lt_cv_dlopen"; then
12471    enable_dlopen=no
12472  else
12473    enable_dlopen=yes
12474  fi
12475
12476  case $lt_cv_dlopen in
12477  dlopen)
12478    save_CPPFLAGS=$CPPFLAGS
12479    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12480
12481    save_LDFLAGS=$LDFLAGS
12482    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12483
12484    save_LIBS=$LIBS
12485    LIBS="$lt_cv_dlopen_libs $LIBS"
12486
12487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12488$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12489if ${lt_cv_dlopen_self+:} false; then :
12490  $as_echo_n "(cached) " >&6
12491else
12492  	  if test yes = "$cross_compiling"; then :
12493  lt_cv_dlopen_self=cross
12494else
12495  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12496  lt_status=$lt_dlunknown
12497  cat > conftest.$ac_ext <<_LT_EOF
12498#line $LINENO "configure"
12499#include "confdefs.h"
12500
12501#if HAVE_DLFCN_H
12502#include <dlfcn.h>
12503#endif
12504
12505#include <stdio.h>
12506
12507#ifdef RTLD_GLOBAL
12508#  define LT_DLGLOBAL		RTLD_GLOBAL
12509#else
12510#  ifdef DL_GLOBAL
12511#    define LT_DLGLOBAL		DL_GLOBAL
12512#  else
12513#    define LT_DLGLOBAL		0
12514#  endif
12515#endif
12516
12517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12518   find out it does not work in some platform. */
12519#ifndef LT_DLLAZY_OR_NOW
12520#  ifdef RTLD_LAZY
12521#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12522#  else
12523#    ifdef DL_LAZY
12524#      define LT_DLLAZY_OR_NOW		DL_LAZY
12525#    else
12526#      ifdef RTLD_NOW
12527#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12528#      else
12529#        ifdef DL_NOW
12530#          define LT_DLLAZY_OR_NOW	DL_NOW
12531#        else
12532#          define LT_DLLAZY_OR_NOW	0
12533#        endif
12534#      endif
12535#    endif
12536#  endif
12537#endif
12538
12539/* When -fvisibility=hidden is used, assume the code has been annotated
12540   correspondingly for the symbols needed.  */
12541#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12542int fnord () __attribute__((visibility("default")));
12543#endif
12544
12545int fnord () { return 42; }
12546int main ()
12547{
12548  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12549  int status = $lt_dlunknown;
12550
12551  if (self)
12552    {
12553      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12554      else
12555        {
12556	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12557          else puts (dlerror ());
12558	}
12559      /* dlclose (self); */
12560    }
12561  else
12562    puts (dlerror ());
12563
12564  return status;
12565}
12566_LT_EOF
12567  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12568  (eval $ac_link) 2>&5
12569  ac_status=$?
12570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12572    (./conftest; exit; ) >&5 2>/dev/null
12573    lt_status=$?
12574    case x$lt_status in
12575      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12576      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12577      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12578    esac
12579  else :
12580    # compilation failed
12581    lt_cv_dlopen_self=no
12582  fi
12583fi
12584rm -fr conftest*
12585
12586
12587fi
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12589$as_echo "$lt_cv_dlopen_self" >&6; }
12590
12591    if test yes = "$lt_cv_dlopen_self"; then
12592      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12593      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12594$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12595if ${lt_cv_dlopen_self_static+:} false; then :
12596  $as_echo_n "(cached) " >&6
12597else
12598  	  if test yes = "$cross_compiling"; then :
12599  lt_cv_dlopen_self_static=cross
12600else
12601  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12602  lt_status=$lt_dlunknown
12603  cat > conftest.$ac_ext <<_LT_EOF
12604#line $LINENO "configure"
12605#include "confdefs.h"
12606
12607#if HAVE_DLFCN_H
12608#include <dlfcn.h>
12609#endif
12610
12611#include <stdio.h>
12612
12613#ifdef RTLD_GLOBAL
12614#  define LT_DLGLOBAL		RTLD_GLOBAL
12615#else
12616#  ifdef DL_GLOBAL
12617#    define LT_DLGLOBAL		DL_GLOBAL
12618#  else
12619#    define LT_DLGLOBAL		0
12620#  endif
12621#endif
12622
12623/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12624   find out it does not work in some platform. */
12625#ifndef LT_DLLAZY_OR_NOW
12626#  ifdef RTLD_LAZY
12627#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12628#  else
12629#    ifdef DL_LAZY
12630#      define LT_DLLAZY_OR_NOW		DL_LAZY
12631#    else
12632#      ifdef RTLD_NOW
12633#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12634#      else
12635#        ifdef DL_NOW
12636#          define LT_DLLAZY_OR_NOW	DL_NOW
12637#        else
12638#          define LT_DLLAZY_OR_NOW	0
12639#        endif
12640#      endif
12641#    endif
12642#  endif
12643#endif
12644
12645/* When -fvisibility=hidden is used, assume the code has been annotated
12646   correspondingly for the symbols needed.  */
12647#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12648int fnord () __attribute__((visibility("default")));
12649#endif
12650
12651int fnord () { return 42; }
12652int main ()
12653{
12654  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12655  int status = $lt_dlunknown;
12656
12657  if (self)
12658    {
12659      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12660      else
12661        {
12662	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12663          else puts (dlerror ());
12664	}
12665      /* dlclose (self); */
12666    }
12667  else
12668    puts (dlerror ());
12669
12670  return status;
12671}
12672_LT_EOF
12673  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12674  (eval $ac_link) 2>&5
12675  ac_status=$?
12676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12677  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12678    (./conftest; exit; ) >&5 2>/dev/null
12679    lt_status=$?
12680    case x$lt_status in
12681      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12682      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12683      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12684    esac
12685  else :
12686    # compilation failed
12687    lt_cv_dlopen_self_static=no
12688  fi
12689fi
12690rm -fr conftest*
12691
12692
12693fi
12694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12695$as_echo "$lt_cv_dlopen_self_static" >&6; }
12696    fi
12697
12698    CPPFLAGS=$save_CPPFLAGS
12699    LDFLAGS=$save_LDFLAGS
12700    LIBS=$save_LIBS
12701    ;;
12702  esac
12703
12704  case $lt_cv_dlopen_self in
12705  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12706  *) enable_dlopen_self=unknown ;;
12707  esac
12708
12709  case $lt_cv_dlopen_self_static in
12710  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12711  *) enable_dlopen_self_static=unknown ;;
12712  esac
12713fi
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731striplib=
12732old_striplib=
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12734$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12735if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12736  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12737  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12739$as_echo "yes" >&6; }
12740else
12741# FIXME - insert some real tests, host_os isn't really good enough
12742  case $host_os in
12743  darwin*)
12744    if test -n "$STRIP"; then
12745      striplib="$STRIP -x"
12746      old_striplib="$STRIP -S"
12747      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12748$as_echo "yes" >&6; }
12749    else
12750      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
12752    fi
12753    ;;
12754  *)
12755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756$as_echo "no" >&6; }
12757    ;;
12758  esac
12759fi
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772  # Report what library types will actually be built
12773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12774$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12776$as_echo "$can_build_shared" >&6; }
12777
12778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12779$as_echo_n "checking whether to build shared libraries... " >&6; }
12780  test no = "$can_build_shared" && enable_shared=no
12781
12782  # On AIX, shared libraries and static libraries use the same namespace, and
12783  # are all built from PIC.
12784  case $host_os in
12785  aix3*)
12786    test yes = "$enable_shared" && enable_static=no
12787    if test -n "$RANLIB"; then
12788      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12789      postinstall_cmds='$RANLIB $lib'
12790    fi
12791    ;;
12792
12793  aix[4-9]*)
12794    if test ia64 != "$host_cpu"; then
12795      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12796      yes,aix,yes) ;;			# shared object as lib.so file only
12797      yes,svr4,*) ;;			# shared object as lib.so archive member only
12798      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12799      esac
12800    fi
12801    ;;
12802  esac
12803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12804$as_echo "$enable_shared" >&6; }
12805
12806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12807$as_echo_n "checking whether to build static libraries... " >&6; }
12808  # Make sure either enable_shared or enable_static is yes.
12809  test yes = "$enable_shared" || enable_static=yes
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12811$as_echo "$enable_static" >&6; }
12812
12813
12814
12815
12816fi
12817ac_ext=c
12818ac_cpp='$CPP $CPPFLAGS'
12819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12821ac_compiler_gnu=$ac_cv_c_compiler_gnu
12822
12823CC=$lt_save_CC
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839        ac_config_commands="$ac_config_commands libtool"
12840
12841
12842
12843
12844# Only expand once:
12845
12846
12847# Check whether --enable-largefile was given.
12848if test "${enable_largefile+set}" = set; then :
12849  enableval=$enable_largefile;
12850fi
12851
12852if test "$enable_largefile" != no; then
12853
12854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12855$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12856if ${ac_cv_sys_largefile_CC+:} false; then :
12857  $as_echo_n "(cached) " >&6
12858else
12859  ac_cv_sys_largefile_CC=no
12860     if test "$GCC" != yes; then
12861       ac_save_CC=$CC
12862       while :; do
12863	 # IRIX 6.2 and later do not support large files by default,
12864	 # so use the C compiler's -n32 option if that helps.
12865	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h.  */
12867#include <sys/types.h>
12868 /* Check that off_t can represent 2**63 - 1 correctly.
12869    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12870    since some C++ compilers masquerading as C compilers
12871    incorrectly reject 9223372036854775807.  */
12872#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12873  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12874		       && LARGE_OFF_T % 2147483647 == 1)
12875		      ? 1 : -1];
12876int
12877main ()
12878{
12879
12880  ;
12881  return 0;
12882}
12883_ACEOF
12884	 if ac_fn_c_try_compile "$LINENO"; then :
12885  break
12886fi
12887rm -f core conftest.err conftest.$ac_objext
12888	 CC="$CC -n32"
12889	 if ac_fn_c_try_compile "$LINENO"; then :
12890  ac_cv_sys_largefile_CC=' -n32'; break
12891fi
12892rm -f core conftest.err conftest.$ac_objext
12893	 break
12894       done
12895       CC=$ac_save_CC
12896       rm -f conftest.$ac_ext
12897    fi
12898fi
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12900$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12901  if test "$ac_cv_sys_largefile_CC" != no; then
12902    CC=$CC$ac_cv_sys_largefile_CC
12903  fi
12904
12905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12906$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12907if ${ac_cv_sys_file_offset_bits+:} false; then :
12908  $as_echo_n "(cached) " >&6
12909else
12910  while :; do
12911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912/* end confdefs.h.  */
12913#include <sys/types.h>
12914 /* Check that off_t can represent 2**63 - 1 correctly.
12915    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12916    since some C++ compilers masquerading as C compilers
12917    incorrectly reject 9223372036854775807.  */
12918#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12919  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12920		       && LARGE_OFF_T % 2147483647 == 1)
12921		      ? 1 : -1];
12922int
12923main ()
12924{
12925
12926  ;
12927  return 0;
12928}
12929_ACEOF
12930if ac_fn_c_try_compile "$LINENO"; then :
12931  ac_cv_sys_file_offset_bits=no; break
12932fi
12933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935/* end confdefs.h.  */
12936#define _FILE_OFFSET_BITS 64
12937#include <sys/types.h>
12938 /* Check that off_t can represent 2**63 - 1 correctly.
12939    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12940    since some C++ compilers masquerading as C compilers
12941    incorrectly reject 9223372036854775807.  */
12942#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12943  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12944		       && LARGE_OFF_T % 2147483647 == 1)
12945		      ? 1 : -1];
12946int
12947main ()
12948{
12949
12950  ;
12951  return 0;
12952}
12953_ACEOF
12954if ac_fn_c_try_compile "$LINENO"; then :
12955  ac_cv_sys_file_offset_bits=64; break
12956fi
12957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12958  ac_cv_sys_file_offset_bits=unknown
12959  break
12960done
12961fi
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12963$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12964case $ac_cv_sys_file_offset_bits in #(
12965  no | unknown) ;;
12966  *)
12967cat >>confdefs.h <<_ACEOF
12968#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12969_ACEOF
12970;;
12971esac
12972rm -rf conftest*
12973  if test $ac_cv_sys_file_offset_bits = unknown; then
12974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12975$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12976if ${ac_cv_sys_large_files+:} false; then :
12977  $as_echo_n "(cached) " >&6
12978else
12979  while :; do
12980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981/* end confdefs.h.  */
12982#include <sys/types.h>
12983 /* Check that off_t can represent 2**63 - 1 correctly.
12984    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12985    since some C++ compilers masquerading as C compilers
12986    incorrectly reject 9223372036854775807.  */
12987#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12988  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12989		       && LARGE_OFF_T % 2147483647 == 1)
12990		      ? 1 : -1];
12991int
12992main ()
12993{
12994
12995  ;
12996  return 0;
12997}
12998_ACEOF
12999if ac_fn_c_try_compile "$LINENO"; then :
13000  ac_cv_sys_large_files=no; break
13001fi
13002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004/* end confdefs.h.  */
13005#define _LARGE_FILES 1
13006#include <sys/types.h>
13007 /* Check that off_t can represent 2**63 - 1 correctly.
13008    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13009    since some C++ compilers masquerading as C compilers
13010    incorrectly reject 9223372036854775807.  */
13011#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13012  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13013		       && LARGE_OFF_T % 2147483647 == 1)
13014		      ? 1 : -1];
13015int
13016main ()
13017{
13018
13019  ;
13020  return 0;
13021}
13022_ACEOF
13023if ac_fn_c_try_compile "$LINENO"; then :
13024  ac_cv_sys_large_files=1; break
13025fi
13026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027  ac_cv_sys_large_files=unknown
13028  break
13029done
13030fi
13031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13032$as_echo "$ac_cv_sys_large_files" >&6; }
13033case $ac_cv_sys_large_files in #(
13034  no | unknown) ;;
13035  *)
13036cat >>confdefs.h <<_ACEOF
13037#define _LARGE_FILES $ac_cv_sys_large_files
13038_ACEOF
13039;;
13040esac
13041rm -rf conftest*
13042  fi
13043
13044
13045fi
13046
13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13048$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13049if ${ac_cv_sys_largefile_source+:} false; then :
13050  $as_echo_n "(cached) " >&6
13051else
13052  while :; do
13053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054/* end confdefs.h.  */
13055#include <sys/types.h> /* for off_t */
13056     #include <stdio.h>
13057int
13058main ()
13059{
13060int (*fp) (FILE *, off_t, int) = fseeko;
13061     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13062  ;
13063  return 0;
13064}
13065_ACEOF
13066if ac_fn_c_try_link "$LINENO"; then :
13067  ac_cv_sys_largefile_source=no; break
13068fi
13069rm -f core conftest.err conftest.$ac_objext \
13070    conftest$ac_exeext conftest.$ac_ext
13071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072/* end confdefs.h.  */
13073#define _LARGEFILE_SOURCE 1
13074#include <sys/types.h> /* for off_t */
13075     #include <stdio.h>
13076int
13077main ()
13078{
13079int (*fp) (FILE *, off_t, int) = fseeko;
13080     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13081  ;
13082  return 0;
13083}
13084_ACEOF
13085if ac_fn_c_try_link "$LINENO"; then :
13086  ac_cv_sys_largefile_source=1; break
13087fi
13088rm -f core conftest.err conftest.$ac_objext \
13089    conftest$ac_exeext conftest.$ac_ext
13090  ac_cv_sys_largefile_source=unknown
13091  break
13092done
13093fi
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13095$as_echo "$ac_cv_sys_largefile_source" >&6; }
13096case $ac_cv_sys_largefile_source in #(
13097  no | unknown) ;;
13098  *)
13099cat >>confdefs.h <<_ACEOF
13100#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13101_ACEOF
13102;;
13103esac
13104rm -rf conftest*
13105
13106# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13107# in glibc 2.1.3, but that breaks too many other things.
13108# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13109if test $ac_cv_sys_largefile_source != unknown; then
13110
13111$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13112
13113fi
13114
13115ac_header_dirent=no
13116for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13117  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13119$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13120if eval \${$as_ac_Header+:} false; then :
13121  $as_echo_n "(cached) " >&6
13122else
13123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124/* end confdefs.h.  */
13125#include <sys/types.h>
13126#include <$ac_hdr>
13127
13128int
13129main ()
13130{
13131if ((DIR *) 0)
13132return 0;
13133  ;
13134  return 0;
13135}
13136_ACEOF
13137if ac_fn_c_try_compile "$LINENO"; then :
13138  eval "$as_ac_Header=yes"
13139else
13140  eval "$as_ac_Header=no"
13141fi
13142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13143fi
13144eval ac_res=\$$as_ac_Header
13145	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13146$as_echo "$ac_res" >&6; }
13147if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13148  cat >>confdefs.h <<_ACEOF
13149#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13150_ACEOF
13151
13152ac_header_dirent=$ac_hdr; break
13153fi
13154
13155done
13156# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13157if test $ac_header_dirent = dirent.h; then
13158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13159$as_echo_n "checking for library containing opendir... " >&6; }
13160if ${ac_cv_search_opendir+:} false; then :
13161  $as_echo_n "(cached) " >&6
13162else
13163  ac_func_search_save_LIBS=$LIBS
13164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165/* end confdefs.h.  */
13166
13167/* Override any GCC internal prototype to avoid an error.
13168   Use char because int might match the return type of a GCC
13169   builtin and then its argument prototype would still apply.  */
13170#ifdef __cplusplus
13171extern "C"
13172#endif
13173char opendir ();
13174int
13175main ()
13176{
13177return opendir ();
13178  ;
13179  return 0;
13180}
13181_ACEOF
13182for ac_lib in '' dir; do
13183  if test -z "$ac_lib"; then
13184    ac_res="none required"
13185  else
13186    ac_res=-l$ac_lib
13187    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13188  fi
13189  if ac_fn_c_try_link "$LINENO"; then :
13190  ac_cv_search_opendir=$ac_res
13191fi
13192rm -f core conftest.err conftest.$ac_objext \
13193    conftest$ac_exeext
13194  if ${ac_cv_search_opendir+:} false; then :
13195  break
13196fi
13197done
13198if ${ac_cv_search_opendir+:} false; then :
13199
13200else
13201  ac_cv_search_opendir=no
13202fi
13203rm conftest.$ac_ext
13204LIBS=$ac_func_search_save_LIBS
13205fi
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13207$as_echo "$ac_cv_search_opendir" >&6; }
13208ac_res=$ac_cv_search_opendir
13209if test "$ac_res" != no; then :
13210  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13211
13212fi
13213
13214else
13215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13216$as_echo_n "checking for library containing opendir... " >&6; }
13217if ${ac_cv_search_opendir+:} false; then :
13218  $as_echo_n "(cached) " >&6
13219else
13220  ac_func_search_save_LIBS=$LIBS
13221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222/* end confdefs.h.  */
13223
13224/* Override any GCC internal prototype to avoid an error.
13225   Use char because int might match the return type of a GCC
13226   builtin and then its argument prototype would still apply.  */
13227#ifdef __cplusplus
13228extern "C"
13229#endif
13230char opendir ();
13231int
13232main ()
13233{
13234return opendir ();
13235  ;
13236  return 0;
13237}
13238_ACEOF
13239for ac_lib in '' x; do
13240  if test -z "$ac_lib"; then
13241    ac_res="none required"
13242  else
13243    ac_res=-l$ac_lib
13244    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13245  fi
13246  if ac_fn_c_try_link "$LINENO"; then :
13247  ac_cv_search_opendir=$ac_res
13248fi
13249rm -f core conftest.err conftest.$ac_objext \
13250    conftest$ac_exeext
13251  if ${ac_cv_search_opendir+:} false; then :
13252  break
13253fi
13254done
13255if ${ac_cv_search_opendir+:} false; then :
13256
13257else
13258  ac_cv_search_opendir=no
13259fi
13260rm conftest.$ac_ext
13261LIBS=$ac_func_search_save_LIBS
13262fi
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13264$as_echo "$ac_cv_search_opendir" >&6; }
13265ac_res=$ac_cv_search_opendir
13266if test "$ac_res" != no; then :
13267  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13268
13269fi
13270
13271fi
13272
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13274$as_echo_n "checking for ANSI C header files... " >&6; }
13275if ${ac_cv_header_stdc+:} false; then :
13276  $as_echo_n "(cached) " >&6
13277else
13278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279/* end confdefs.h.  */
13280#include <stdlib.h>
13281#include <stdarg.h>
13282#include <string.h>
13283#include <float.h>
13284
13285int
13286main ()
13287{
13288
13289  ;
13290  return 0;
13291}
13292_ACEOF
13293if ac_fn_c_try_compile "$LINENO"; then :
13294  ac_cv_header_stdc=yes
13295else
13296  ac_cv_header_stdc=no
13297fi
13298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299
13300if test $ac_cv_header_stdc = yes; then
13301  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303/* end confdefs.h.  */
13304#include <string.h>
13305
13306_ACEOF
13307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13308  $EGREP "memchr" >/dev/null 2>&1; then :
13309
13310else
13311  ac_cv_header_stdc=no
13312fi
13313rm -f conftest*
13314
13315fi
13316
13317if test $ac_cv_header_stdc = yes; then
13318  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320/* end confdefs.h.  */
13321#include <stdlib.h>
13322
13323_ACEOF
13324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13325  $EGREP "free" >/dev/null 2>&1; then :
13326
13327else
13328  ac_cv_header_stdc=no
13329fi
13330rm -f conftest*
13331
13332fi
13333
13334if test $ac_cv_header_stdc = yes; then
13335  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13336  if test "$cross_compiling" = yes; then :
13337  :
13338else
13339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340/* end confdefs.h.  */
13341#include <ctype.h>
13342#include <stdlib.h>
13343#if ((' ' & 0x0FF) == 0x020)
13344# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13345# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13346#else
13347# define ISLOWER(c) \
13348		   (('a' <= (c) && (c) <= 'i') \
13349		     || ('j' <= (c) && (c) <= 'r') \
13350		     || ('s' <= (c) && (c) <= 'z'))
13351# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13352#endif
13353
13354#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13355int
13356main ()
13357{
13358  int i;
13359  for (i = 0; i < 256; i++)
13360    if (XOR (islower (i), ISLOWER (i))
13361	|| toupper (i) != TOUPPER (i))
13362      return 2;
13363  return 0;
13364}
13365_ACEOF
13366if ac_fn_c_try_run "$LINENO"; then :
13367
13368else
13369  ac_cv_header_stdc=no
13370fi
13371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13372  conftest.$ac_objext conftest.beam conftest.$ac_ext
13373fi
13374
13375fi
13376fi
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13378$as_echo "$ac_cv_header_stdc" >&6; }
13379if test $ac_cv_header_stdc = yes; then
13380
13381$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13382
13383fi
13384
13385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
13386$as_echo_n "checking whether closedir returns void... " >&6; }
13387if ${ac_cv_func_closedir_void+:} false; then :
13388  $as_echo_n "(cached) " >&6
13389else
13390  if test "$cross_compiling" = yes; then :
13391  ac_cv_func_closedir_void=yes
13392else
13393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h.  */
13395$ac_includes_default
13396#include <$ac_header_dirent>
13397#ifndef __cplusplus
13398int closedir ();
13399#endif
13400
13401int
13402main ()
13403{
13404return closedir (opendir (".")) != 0;
13405  ;
13406  return 0;
13407}
13408_ACEOF
13409if ac_fn_c_try_run "$LINENO"; then :
13410  ac_cv_func_closedir_void=no
13411else
13412  ac_cv_func_closedir_void=yes
13413fi
13414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13415  conftest.$ac_objext conftest.beam conftest.$ac_ext
13416fi
13417
13418fi
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
13420$as_echo "$ac_cv_func_closedir_void" >&6; }
13421if test $ac_cv_func_closedir_void = yes; then
13422
13423$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
13424
13425fi
13426
13427for ac_header in assert.h float.h limits.h pwd.h stdlib.h sys/param.h
13428do :
13429  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13430ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13431if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13432  cat >>confdefs.h <<_ACEOF
13433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13434_ACEOF
13435
13436fi
13437
13438done
13439
13440for ac_func in putenv
13441do :
13442  ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
13443if test "x$ac_cv_func_putenv" = xyes; then :
13444  cat >>confdefs.h <<_ACEOF
13445#define HAVE_PUTENV 1
13446_ACEOF
13447
13448fi
13449done
13450
13451for ac_func in getcwd getwd memcmp memcpy mkstemp mktemp strchr strrchr
13452do :
13453  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13454ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13455if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13456  cat >>confdefs.h <<_ACEOF
13457#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13458_ACEOF
13459
13460fi
13461done
13462
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13464$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13465if ${ac_cv_c_const+:} false; then :
13466  $as_echo_n "(cached) " >&6
13467else
13468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469/* end confdefs.h.  */
13470
13471int
13472main ()
13473{
13474
13475#ifndef __cplusplus
13476  /* Ultrix mips cc rejects this sort of thing.  */
13477  typedef int charset[2];
13478  const charset cs = { 0, 0 };
13479  /* SunOS 4.1.1 cc rejects this.  */
13480  char const *const *pcpcc;
13481  char **ppc;
13482  /* NEC SVR4.0.2 mips cc rejects this.  */
13483  struct point {int x, y;};
13484  static struct point const zero = {0,0};
13485  /* AIX XL C 1.02.0.0 rejects this.
13486     It does not let you subtract one const X* pointer from another in
13487     an arm of an if-expression whose if-part is not a constant
13488     expression */
13489  const char *g = "string";
13490  pcpcc = &g + (g ? g-g : 0);
13491  /* HPUX 7.0 cc rejects these. */
13492  ++pcpcc;
13493  ppc = (char**) pcpcc;
13494  pcpcc = (char const *const *) ppc;
13495  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13496    char tx;
13497    char *t = &tx;
13498    char const *s = 0 ? (char *) 0 : (char const *) 0;
13499
13500    *t++ = 0;
13501    if (s) return 0;
13502  }
13503  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13504    int x[] = {25, 17};
13505    const int *foo = &x[0];
13506    ++foo;
13507  }
13508  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13509    typedef const int *iptr;
13510    iptr p = 0;
13511    ++p;
13512  }
13513  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13514       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13515    struct s { int j; const int *ap[3]; } bx;
13516    struct s *b = &bx; b->j = 5;
13517  }
13518  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13519    const int foo = 10;
13520    if (!foo) return 0;
13521  }
13522  return !cs[0] && !zero.x;
13523#endif
13524
13525  ;
13526  return 0;
13527}
13528_ACEOF
13529if ac_fn_c_try_compile "$LINENO"; then :
13530  ac_cv_c_const=yes
13531else
13532  ac_cv_c_const=no
13533fi
13534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535fi
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13537$as_echo "$ac_cv_c_const" >&6; }
13538if test $ac_cv_c_const = no; then
13539
13540$as_echo "#define const /**/" >>confdefs.h
13541
13542fi
13543
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13545$as_echo_n "checking for inline... " >&6; }
13546if ${ac_cv_c_inline+:} false; then :
13547  $as_echo_n "(cached) " >&6
13548else
13549  ac_cv_c_inline=no
13550for ac_kw in inline __inline__ __inline; do
13551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552/* end confdefs.h.  */
13553#ifndef __cplusplus
13554typedef int foo_t;
13555static $ac_kw foo_t static_foo () {return 0; }
13556$ac_kw foo_t foo () {return 0; }
13557#endif
13558
13559_ACEOF
13560if ac_fn_c_try_compile "$LINENO"; then :
13561  ac_cv_c_inline=$ac_kw
13562fi
13563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564  test "$ac_cv_c_inline" != no && break
13565done
13566
13567fi
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13569$as_echo "$ac_cv_c_inline" >&6; }
13570
13571case $ac_cv_c_inline in
13572  inline | yes) ;;
13573  *)
13574    case $ac_cv_c_inline in
13575      no) ac_val=;;
13576      *) ac_val=$ac_cv_c_inline;;
13577    esac
13578    cat >>confdefs.h <<_ACEOF
13579#ifndef __cplusplus
13580#define inline $ac_val
13581#endif
13582_ACEOF
13583    ;;
13584esac
13585
13586ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13587if test "x$ac_cv_type_size_t" = xyes; then :
13588
13589else
13590
13591cat >>confdefs.h <<_ACEOF
13592#define size_t unsigned int
13593_ACEOF
13594
13595fi
13596
13597ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13598case $ac_cv_c_int64_t in #(
13599  no|yes) ;; #(
13600  *)
13601
13602cat >>confdefs.h <<_ACEOF
13603#define int64_t $ac_cv_c_int64_t
13604_ACEOF
13605;;
13606esac
13607
13608ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13609case $ac_cv_c_uint64_t in #(
13610  no|yes) ;; #(
13611  *)
13612
13613$as_echo "#define _UINT64_T 1" >>confdefs.h
13614
13615
13616cat >>confdefs.h <<_ACEOF
13617#define uint64_t $ac_cv_c_uint64_t
13618_ACEOF
13619;;
13620  esac
13621
13622case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
13623  *':no:'*) :
13624    as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
13625  *) :
13626     ;;
13627esac
13628ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13629if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13630
13631cat >>confdefs.h <<_ACEOF
13632#define HAVE_STRUCT_STAT_ST_MTIM 1
13633_ACEOF
13634
13635
13636fi
13637
13638
13639
13640for ac_prog in 'bison -y' byacc
13641do
13642  # Extract the first word of "$ac_prog", so it can be a program name with args.
13643set dummy $ac_prog; ac_word=$2
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645$as_echo_n "checking for $ac_word... " >&6; }
13646if ${ac_cv_prog_YACC+:} false; then :
13647  $as_echo_n "(cached) " >&6
13648else
13649  if test -n "$YACC"; then
13650  ac_cv_prog_YACC="$YACC" # Let the user override the test.
13651else
13652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653for as_dir in $PATH
13654do
13655  IFS=$as_save_IFS
13656  test -z "$as_dir" && as_dir=.
13657    for ac_exec_ext in '' $ac_executable_extensions; do
13658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13659    ac_cv_prog_YACC="$ac_prog"
13660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661    break 2
13662  fi
13663done
13664  done
13665IFS=$as_save_IFS
13666
13667fi
13668fi
13669YACC=$ac_cv_prog_YACC
13670if test -n "$YACC"; then
13671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13672$as_echo "$YACC" >&6; }
13673else
13674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675$as_echo "no" >&6; }
13676fi
13677
13678
13679  test -n "$YACC" && break
13680done
13681test -n "$YACC" || YACC="yacc"
13682
13683for ac_prog in flex lex
13684do
13685  # Extract the first word of "$ac_prog", so it can be a program name with args.
13686set dummy $ac_prog; ac_word=$2
13687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13688$as_echo_n "checking for $ac_word... " >&6; }
13689if ${ac_cv_prog_LEX+:} false; then :
13690  $as_echo_n "(cached) " >&6
13691else
13692  if test -n "$LEX"; then
13693  ac_cv_prog_LEX="$LEX" # Let the user override the test.
13694else
13695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13696for as_dir in $PATH
13697do
13698  IFS=$as_save_IFS
13699  test -z "$as_dir" && as_dir=.
13700    for ac_exec_ext in '' $ac_executable_extensions; do
13701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13702    ac_cv_prog_LEX="$ac_prog"
13703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13704    break 2
13705  fi
13706done
13707  done
13708IFS=$as_save_IFS
13709
13710fi
13711fi
13712LEX=$ac_cv_prog_LEX
13713if test -n "$LEX"; then
13714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13715$as_echo "$LEX" >&6; }
13716else
13717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718$as_echo "no" >&6; }
13719fi
13720
13721
13722  test -n "$LEX" && break
13723done
13724test -n "$LEX" || LEX=":"
13725
13726if test "x$LEX" != "x:"; then
13727  cat >conftest.l <<_ACEOF
13728%%
13729a { ECHO; }
13730b { REJECT; }
13731c { yymore (); }
13732d { yyless (1); }
13733e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
13734    yyless ((input () != 0)); }
13735f { unput (yytext[0]); }
13736. { BEGIN INITIAL; }
13737%%
13738#ifdef YYTEXT_POINTER
13739extern char *yytext;
13740#endif
13741int
13742main (void)
13743{
13744  return ! yylex () + ! yywrap ();
13745}
13746_ACEOF
13747{ { ac_try="$LEX conftest.l"
13748case "(($ac_try" in
13749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750  *) ac_try_echo=$ac_try;;
13751esac
13752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13753$as_echo "$ac_try_echo"; } >&5
13754  (eval "$LEX conftest.l") 2>&5
13755  ac_status=$?
13756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757  test $ac_status = 0; }
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13759$as_echo_n "checking lex output file root... " >&6; }
13760if ${ac_cv_prog_lex_root+:} false; then :
13761  $as_echo_n "(cached) " >&6
13762else
13763
13764if test -f lex.yy.c; then
13765  ac_cv_prog_lex_root=lex.yy
13766elif test -f lexyy.c; then
13767  ac_cv_prog_lex_root=lexyy
13768else
13769  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13770fi
13771fi
13772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13773$as_echo "$ac_cv_prog_lex_root" >&6; }
13774LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13775
13776if test -z "${LEXLIB+set}"; then
13777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13778$as_echo_n "checking lex library... " >&6; }
13779if ${ac_cv_lib_lex+:} false; then :
13780  $as_echo_n "(cached) " >&6
13781else
13782
13783    ac_save_LIBS=$LIBS
13784    ac_cv_lib_lex='none needed'
13785    for ac_lib in '' -lfl -ll; do
13786      LIBS="$ac_lib $ac_save_LIBS"
13787      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788/* end confdefs.h.  */
13789`cat $LEX_OUTPUT_ROOT.c`
13790_ACEOF
13791if ac_fn_c_try_link "$LINENO"; then :
13792  ac_cv_lib_lex=$ac_lib
13793fi
13794rm -f core conftest.err conftest.$ac_objext \
13795    conftest$ac_exeext conftest.$ac_ext
13796      test "$ac_cv_lib_lex" != 'none needed' && break
13797    done
13798    LIBS=$ac_save_LIBS
13799
13800fi
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13802$as_echo "$ac_cv_lib_lex" >&6; }
13803  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13804fi
13805
13806
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13808$as_echo_n "checking whether yytext is a pointer... " >&6; }
13809if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13810  $as_echo_n "(cached) " >&6
13811else
13812  # POSIX says lex can declare yytext either as a pointer or an array; the
13813# default is implementation-dependent.  Figure out which it is, since
13814# not all implementations provide the %pointer and %array declarations.
13815ac_cv_prog_lex_yytext_pointer=no
13816ac_save_LIBS=$LIBS
13817LIBS="$LEXLIB $ac_save_LIBS"
13818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819/* end confdefs.h.  */
13820
13821  #define YYTEXT_POINTER 1
13822`cat $LEX_OUTPUT_ROOT.c`
13823_ACEOF
13824if ac_fn_c_try_link "$LINENO"; then :
13825  ac_cv_prog_lex_yytext_pointer=yes
13826fi
13827rm -f core conftest.err conftest.$ac_objext \
13828    conftest$ac_exeext conftest.$ac_ext
13829LIBS=$ac_save_LIBS
13830
13831fi
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13833$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13834if test $ac_cv_prog_lex_yytext_pointer = yes; then
13835
13836$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13837
13838fi
13839rm -f conftest.l $LEX_OUTPUT_ROOT.c
13840
13841fi
13842
13843# Work around a problem with Flex Version 2.5.31 which needs -l flag.
13844# Since all recent versions of flex support -l, don't check for the
13845# specific version, but check that at least "--version" is supported.
13846# We also want to catch LEX=/some/where/flex, so:
13847case $LEX in
13848  *flex) $LEX --version >/dev/null 2>&1 && LEX="$LEX -l" ;;
13849esac
13850
13851
13852for ac_func in strerror
13853do :
13854  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13855if test "x$ac_cv_func_strerror" = xyes; then :
13856  cat >>confdefs.h <<_ACEOF
13857#define HAVE_STRERROR 1
13858_ACEOF
13859
13860fi
13861done
13862
13863for ac_header in errno.h
13864do :
13865  ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
13866if test "x$ac_cv_header_errno_h" = xyes; then :
13867  cat >>confdefs.h <<_ACEOF
13868#define HAVE_ERRNO_H 1
13869_ACEOF
13870
13871fi
13872
13873done
13874
13875# The cast to long int works around a bug in the HP C Compiler
13876# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13877# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13878# This bug is HP SR number 8606223364.
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13880$as_echo_n "checking size of int... " >&6; }
13881if ${ac_cv_sizeof_int+:} false; then :
13882  $as_echo_n "(cached) " >&6
13883else
13884  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13885
13886else
13887  if test "$ac_cv_type_int" = yes; then
13888     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13890as_fn_error 77 "cannot compute sizeof (int)
13891See \`config.log' for more details" "$LINENO" 5; }
13892   else
13893     ac_cv_sizeof_int=0
13894   fi
13895fi
13896
13897fi
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13899$as_echo "$ac_cv_sizeof_int" >&6; }
13900
13901
13902
13903cat >>confdefs.h <<_ACEOF
13904#define SIZEOF_INT $ac_cv_sizeof_int
13905_ACEOF
13906
13907
13908# The cast to long int works around a bug in the HP C Compiler
13909# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13910# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13911# This bug is HP SR number 8606223364.
13912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13913$as_echo_n "checking size of long... " >&6; }
13914if ${ac_cv_sizeof_long+:} false; then :
13915  $as_echo_n "(cached) " >&6
13916else
13917  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13918
13919else
13920  if test "$ac_cv_type_long" = yes; then
13921     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13923as_fn_error 77 "cannot compute sizeof (long)
13924See \`config.log' for more details" "$LINENO" 5; }
13925   else
13926     ac_cv_sizeof_long=0
13927   fi
13928fi
13929
13930fi
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13932$as_echo "$ac_cv_sizeof_long" >&6; }
13933
13934
13935
13936cat >>confdefs.h <<_ACEOF
13937#define SIZEOF_LONG $ac_cv_sizeof_long
13938_ACEOF
13939
13940
13941# The cast to long int works around a bug in the HP C Compiler
13942# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13943# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13944# This bug is HP SR number 8606223364.
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13946$as_echo_n "checking size of void *... " >&6; }
13947if ${ac_cv_sizeof_void_p+:} false; then :
13948  $as_echo_n "(cached) " >&6
13949else
13950  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13951
13952else
13953  if test "$ac_cv_type_void_p" = yes; then
13954     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13956as_fn_error 77 "cannot compute sizeof (void *)
13957See \`config.log' for more details" "$LINENO" 5; }
13958   else
13959     ac_cv_sizeof_void_p=0
13960   fi
13961fi
13962
13963fi
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13965$as_echo "$ac_cv_sizeof_void_p" >&6; }
13966
13967
13968
13969cat >>confdefs.h <<_ACEOF
13970#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13971_ACEOF
13972
13973
13974
13975  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13976if test "x$ac_cv_type_uintptr_t" = xyes; then :
13977
13978$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13979
13980else
13981  for ac_type in 'unsigned int' 'unsigned long int' \
13982	'unsigned long long int'; do
13983       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984/* end confdefs.h.  */
13985$ac_includes_default
13986int
13987main ()
13988{
13989static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13990test_array [0] = 0;
13991return test_array [0];
13992
13993  ;
13994  return 0;
13995}
13996_ACEOF
13997if ac_fn_c_try_compile "$LINENO"; then :
13998
13999cat >>confdefs.h <<_ACEOF
14000#define uintptr_t $ac_type
14001_ACEOF
14002
14003	  ac_type=
14004fi
14005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006       test -z "$ac_type" && break
14007     done
14008fi
14009
14010
14011
14012ac_fn_c_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
14013"
14014if test "x$ac_cv_have_decl_isascii" = xyes; then :
14015  ac_have_decl=1
14016else
14017  ac_have_decl=0
14018fi
14019
14020cat >>confdefs.h <<_ACEOF
14021#define HAVE_DECL_ISASCII $ac_have_decl
14022_ACEOF
14023
14024
14025ac_config_headers="$ac_config_headers kpathsea/c-auto.h:c-auto.in"
14026
14027
14028ac_config_files="$ac_config_files Makefile"
14029
14030
14031cat >confcache <<\_ACEOF
14032# This file is a shell script that caches the results of configure
14033# tests run on this system so they can be shared between configure
14034# scripts and configure runs, see configure's option --config-cache.
14035# It is not useful on other systems.  If it contains results you don't
14036# want to keep, you may remove or edit it.
14037#
14038# config.status only pays attention to the cache file if you give it
14039# the --recheck option to rerun configure.
14040#
14041# `ac_cv_env_foo' variables (set or unset) will be overridden when
14042# loading this file, other *unset* `ac_cv_foo' will be assigned the
14043# following values.
14044
14045_ACEOF
14046
14047# The following way of writing the cache mishandles newlines in values,
14048# but we know of no workaround that is simple, portable, and efficient.
14049# So, we kill variables containing newlines.
14050# Ultrix sh set writes to stderr and can't be redirected directly,
14051# and sets the high bit in the cache file unless we assign to the vars.
14052(
14053  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14054    eval ac_val=\$$ac_var
14055    case $ac_val in #(
14056    *${as_nl}*)
14057      case $ac_var in #(
14058      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14060      esac
14061      case $ac_var in #(
14062      _ | IFS | as_nl) ;; #(
14063      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14064      *) { eval $ac_var=; unset $ac_var;} ;;
14065      esac ;;
14066    esac
14067  done
14068
14069  (set) 2>&1 |
14070    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14071    *${as_nl}ac_space=\ *)
14072      # `set' does not quote correctly, so add quotes: double-quote
14073      # substitution turns \\\\ into \\, and sed turns \\ into \.
14074      sed -n \
14075	"s/'/'\\\\''/g;
14076	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14077      ;; #(
14078    *)
14079      # `set' quotes correctly as required by POSIX, so do not add quotes.
14080      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14081      ;;
14082    esac |
14083    sort
14084) |
14085  sed '
14086     /^ac_cv_env_/b end
14087     t clear
14088     :clear
14089     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14090     t end
14091     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14092     :end' >>confcache
14093if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14094  if test -w "$cache_file"; then
14095    if test "x$cache_file" != "x/dev/null"; then
14096      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14097$as_echo "$as_me: updating cache $cache_file" >&6;}
14098      if test ! -f "$cache_file" || test -h "$cache_file"; then
14099	cat confcache >"$cache_file"
14100      else
14101        case $cache_file in #(
14102        */* | ?:*)
14103	  mv -f confcache "$cache_file"$$ &&
14104	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14105        *)
14106	  mv -f confcache "$cache_file" ;;
14107	esac
14108      fi
14109    fi
14110  else
14111    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14112$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14113  fi
14114fi
14115rm -f confcache
14116
14117test "x$prefix" = xNONE && prefix=$ac_default_prefix
14118# Let make expand exec_prefix.
14119test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14120
14121DEFS=-DHAVE_CONFIG_H
14122
14123ac_libobjs=
14124ac_ltlibobjs=
14125U=
14126for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14127  # 1. Remove the extension, and $U if already installed.
14128  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14129  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14130  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14131  #    will be set to the directory where LIBOBJS objects are built.
14132  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14133  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14134done
14135LIBOBJS=$ac_libobjs
14136
14137LTLIBOBJS=$ac_ltlibobjs
14138
14139
14140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14141$as_echo_n "checking that generated files are newer than configure... " >&6; }
14142   if test -n "$am_sleep_pid"; then
14143     # Hide warnings about reused PIDs.
14144     wait $am_sleep_pid 2>/dev/null
14145   fi
14146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14147$as_echo "done" >&6; }
14148 if test -n "$EXEEXT"; then
14149  am__EXEEXT_TRUE=
14150  am__EXEEXT_FALSE='#'
14151else
14152  am__EXEEXT_TRUE='#'
14153  am__EXEEXT_FALSE=
14154fi
14155
14156if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14157  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14158Usually this means the macro was only invoked conditionally." "$LINENO" 5
14159fi
14160if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14161  as_fn_error $? "conditional \"AMDEP\" was never defined.
14162Usually this means the macro was only invoked conditionally." "$LINENO" 5
14163fi
14164if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14165  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14166Usually this means the macro was only invoked conditionally." "$LINENO" 5
14167fi
14168
14169: "${CONFIG_STATUS=./config.status}"
14170ac_write_fail=0
14171ac_clean_files_save=$ac_clean_files
14172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14174$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14175as_write_fail=0
14176cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14177#! $SHELL
14178# Generated by $as_me.
14179# Run this file to recreate the current configuration.
14180# Compiler output produced by configure, useful for debugging
14181# configure, is in config.log if it exists.
14182
14183debug=false
14184ac_cs_recheck=false
14185ac_cs_silent=false
14186
14187SHELL=\${CONFIG_SHELL-$SHELL}
14188export SHELL
14189_ASEOF
14190cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14191## -------------------- ##
14192## M4sh Initialization. ##
14193## -------------------- ##
14194
14195# Be more Bourne compatible
14196DUALCASE=1; export DUALCASE # for MKS sh
14197if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14198  emulate sh
14199  NULLCMD=:
14200  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14201  # is contrary to our usage.  Disable this feature.
14202  alias -g '${1+"$@"}'='"$@"'
14203  setopt NO_GLOB_SUBST
14204else
14205  case `(set -o) 2>/dev/null` in #(
14206  *posix*) :
14207    set -o posix ;; #(
14208  *) :
14209     ;;
14210esac
14211fi
14212
14213
14214as_nl='
14215'
14216export as_nl
14217# Printing a long string crashes Solaris 7 /usr/bin/printf.
14218as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14219as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14221# Prefer a ksh shell builtin over an external printf program on Solaris,
14222# but without wasting forks for bash or zsh.
14223if test -z "$BASH_VERSION$ZSH_VERSION" \
14224    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14225  as_echo='print -r --'
14226  as_echo_n='print -rn --'
14227elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14228  as_echo='printf %s\n'
14229  as_echo_n='printf %s'
14230else
14231  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14232    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14233    as_echo_n='/usr/ucb/echo -n'
14234  else
14235    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14236    as_echo_n_body='eval
14237      arg=$1;
14238      case $arg in #(
14239      *"$as_nl"*)
14240	expr "X$arg" : "X\\(.*\\)$as_nl";
14241	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14242      esac;
14243      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14244    '
14245    export as_echo_n_body
14246    as_echo_n='sh -c $as_echo_n_body as_echo'
14247  fi
14248  export as_echo_body
14249  as_echo='sh -c $as_echo_body as_echo'
14250fi
14251
14252# The user is always right.
14253if test "${PATH_SEPARATOR+set}" != set; then
14254  PATH_SEPARATOR=:
14255  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14256    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14257      PATH_SEPARATOR=';'
14258  }
14259fi
14260
14261
14262# IFS
14263# We need space, tab and new line, in precisely that order.  Quoting is
14264# there to prevent editors from complaining about space-tab.
14265# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14266# splitting by setting IFS to empty value.)
14267IFS=" ""	$as_nl"
14268
14269# Find who we are.  Look in the path if we contain no directory separator.
14270as_myself=
14271case $0 in #((
14272  *[\\/]* ) as_myself=$0 ;;
14273  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274for as_dir in $PATH
14275do
14276  IFS=$as_save_IFS
14277  test -z "$as_dir" && as_dir=.
14278    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14279  done
14280IFS=$as_save_IFS
14281
14282     ;;
14283esac
14284# We did not find ourselves, most probably we were run as `sh COMMAND'
14285# in which case we are not to be found in the path.
14286if test "x$as_myself" = x; then
14287  as_myself=$0
14288fi
14289if test ! -f "$as_myself"; then
14290  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14291  exit 1
14292fi
14293
14294# Unset variables that we do not need and which cause bugs (e.g. in
14295# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14296# suppresses any "Segmentation fault" message there.  '((' could
14297# trigger a bug in pdksh 5.2.14.
14298for as_var in BASH_ENV ENV MAIL MAILPATH
14299do eval test x\${$as_var+set} = xset \
14300  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14301done
14302PS1='$ '
14303PS2='> '
14304PS4='+ '
14305
14306# NLS nuisances.
14307LC_ALL=C
14308export LC_ALL
14309LANGUAGE=C
14310export LANGUAGE
14311
14312# CDPATH.
14313(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14314
14315
14316# as_fn_error STATUS ERROR [LINENO LOG_FD]
14317# ----------------------------------------
14318# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14319# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14320# script with STATUS, using 1 if that was 0.
14321as_fn_error ()
14322{
14323  as_status=$1; test $as_status -eq 0 && as_status=1
14324  if test "$4"; then
14325    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14326    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14327  fi
14328  $as_echo "$as_me: error: $2" >&2
14329  as_fn_exit $as_status
14330} # as_fn_error
14331
14332
14333# as_fn_set_status STATUS
14334# -----------------------
14335# Set $? to STATUS, without forking.
14336as_fn_set_status ()
14337{
14338  return $1
14339} # as_fn_set_status
14340
14341# as_fn_exit STATUS
14342# -----------------
14343# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14344as_fn_exit ()
14345{
14346  set +e
14347  as_fn_set_status $1
14348  exit $1
14349} # as_fn_exit
14350
14351# as_fn_unset VAR
14352# ---------------
14353# Portably unset VAR.
14354as_fn_unset ()
14355{
14356  { eval $1=; unset $1;}
14357}
14358as_unset=as_fn_unset
14359# as_fn_append VAR VALUE
14360# ----------------------
14361# Append the text in VALUE to the end of the definition contained in VAR. Take
14362# advantage of any shell optimizations that allow amortized linear growth over
14363# repeated appends, instead of the typical quadratic growth present in naive
14364# implementations.
14365if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14366  eval 'as_fn_append ()
14367  {
14368    eval $1+=\$2
14369  }'
14370else
14371  as_fn_append ()
14372  {
14373    eval $1=\$$1\$2
14374  }
14375fi # as_fn_append
14376
14377# as_fn_arith ARG...
14378# ------------------
14379# Perform arithmetic evaluation on the ARGs, and store the result in the
14380# global $as_val. Take advantage of shells that can avoid forks. The arguments
14381# must be portable across $(()) and expr.
14382if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14383  eval 'as_fn_arith ()
14384  {
14385    as_val=$(( $* ))
14386  }'
14387else
14388  as_fn_arith ()
14389  {
14390    as_val=`expr "$@" || test $? -eq 1`
14391  }
14392fi # as_fn_arith
14393
14394
14395if expr a : '\(a\)' >/dev/null 2>&1 &&
14396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14397  as_expr=expr
14398else
14399  as_expr=false
14400fi
14401
14402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14403  as_basename=basename
14404else
14405  as_basename=false
14406fi
14407
14408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14409  as_dirname=dirname
14410else
14411  as_dirname=false
14412fi
14413
14414as_me=`$as_basename -- "$0" ||
14415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14416	 X"$0" : 'X\(//\)$' \| \
14417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14418$as_echo X/"$0" |
14419    sed '/^.*\/\([^/][^/]*\)\/*$/{
14420	    s//\1/
14421	    q
14422	  }
14423	  /^X\/\(\/\/\)$/{
14424	    s//\1/
14425	    q
14426	  }
14427	  /^X\/\(\/\).*/{
14428	    s//\1/
14429	    q
14430	  }
14431	  s/.*/./; q'`
14432
14433# Avoid depending upon Character Ranges.
14434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14437as_cr_digits='0123456789'
14438as_cr_alnum=$as_cr_Letters$as_cr_digits
14439
14440ECHO_C= ECHO_N= ECHO_T=
14441case `echo -n x` in #(((((
14442-n*)
14443  case `echo 'xy\c'` in
14444  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14445  xy)  ECHO_C='\c';;
14446  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14447       ECHO_T='	';;
14448  esac;;
14449*)
14450  ECHO_N='-n';;
14451esac
14452
14453rm -f conf$$ conf$$.exe conf$$.file
14454if test -d conf$$.dir; then
14455  rm -f conf$$.dir/conf$$.file
14456else
14457  rm -f conf$$.dir
14458  mkdir conf$$.dir 2>/dev/null
14459fi
14460if (echo >conf$$.file) 2>/dev/null; then
14461  if ln -s conf$$.file conf$$ 2>/dev/null; then
14462    as_ln_s='ln -s'
14463    # ... but there are two gotchas:
14464    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14465    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14466    # In both cases, we have to default to `cp -pR'.
14467    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14468      as_ln_s='cp -pR'
14469  elif ln conf$$.file conf$$ 2>/dev/null; then
14470    as_ln_s=ln
14471  else
14472    as_ln_s='cp -pR'
14473  fi
14474else
14475  as_ln_s='cp -pR'
14476fi
14477rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14478rmdir conf$$.dir 2>/dev/null
14479
14480
14481# as_fn_mkdir_p
14482# -------------
14483# Create "$as_dir" as a directory, including parents if necessary.
14484as_fn_mkdir_p ()
14485{
14486
14487  case $as_dir in #(
14488  -*) as_dir=./$as_dir;;
14489  esac
14490  test -d "$as_dir" || eval $as_mkdir_p || {
14491    as_dirs=
14492    while :; do
14493      case $as_dir in #(
14494      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14495      *) as_qdir=$as_dir;;
14496      esac
14497      as_dirs="'$as_qdir' $as_dirs"
14498      as_dir=`$as_dirname -- "$as_dir" ||
14499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14500	 X"$as_dir" : 'X\(//\)[^/]' \| \
14501	 X"$as_dir" : 'X\(//\)$' \| \
14502	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14503$as_echo X"$as_dir" |
14504    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14505	    s//\1/
14506	    q
14507	  }
14508	  /^X\(\/\/\)[^/].*/{
14509	    s//\1/
14510	    q
14511	  }
14512	  /^X\(\/\/\)$/{
14513	    s//\1/
14514	    q
14515	  }
14516	  /^X\(\/\).*/{
14517	    s//\1/
14518	    q
14519	  }
14520	  s/.*/./; q'`
14521      test -d "$as_dir" && break
14522    done
14523    test -z "$as_dirs" || eval "mkdir $as_dirs"
14524  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14525
14526
14527} # as_fn_mkdir_p
14528if mkdir -p . 2>/dev/null; then
14529  as_mkdir_p='mkdir -p "$as_dir"'
14530else
14531  test -d ./-p && rmdir ./-p
14532  as_mkdir_p=false
14533fi
14534
14535
14536# as_fn_executable_p FILE
14537# -----------------------
14538# Test if FILE is an executable regular file.
14539as_fn_executable_p ()
14540{
14541  test -f "$1" && test -x "$1"
14542} # as_fn_executable_p
14543as_test_x='test -x'
14544as_executable_p=as_fn_executable_p
14545
14546# Sed expression to map a string onto a valid CPP name.
14547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14548
14549# Sed expression to map a string onto a valid variable name.
14550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14551
14552
14553exec 6>&1
14554## ----------------------------------- ##
14555## Main body of $CONFIG_STATUS script. ##
14556## ----------------------------------- ##
14557_ASEOF
14558test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14559
14560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14561# Save the log message, to keep $0 and so on meaningful, and to
14562# report actual input values of CONFIG_FILES etc. instead of their
14563# values after options handling.
14564ac_log="
14565This file was extended by Web2C Tools $as_me 2015, which was
14566generated by GNU Autoconf 2.69.  Invocation command line was
14567
14568  CONFIG_FILES    = $CONFIG_FILES
14569  CONFIG_HEADERS  = $CONFIG_HEADERS
14570  CONFIG_LINKS    = $CONFIG_LINKS
14571  CONFIG_COMMANDS = $CONFIG_COMMANDS
14572  $ $0 $@
14573
14574on `(hostname || uname -n) 2>/dev/null | sed 1q`
14575"
14576
14577_ACEOF
14578
14579case $ac_config_files in *"
14580"*) set x $ac_config_files; shift; ac_config_files=$*;;
14581esac
14582
14583case $ac_config_headers in *"
14584"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14585esac
14586
14587
14588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14589# Files that config.status was made for.
14590config_files="$ac_config_files"
14591config_headers="$ac_config_headers"
14592config_commands="$ac_config_commands"
14593
14594_ACEOF
14595
14596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14597ac_cs_usage="\
14598\`$as_me' instantiates files and other configuration actions
14599from templates according to the current configuration.  Unless the files
14600and actions are specified as TAGs, all are instantiated by default.
14601
14602Usage: $0 [OPTION]... [TAG]...
14603
14604  -h, --help       print this help, then exit
14605  -V, --version    print version number and configuration settings, then exit
14606      --config     print configuration, then exit
14607  -q, --quiet, --silent
14608                   do not print progress messages
14609  -d, --debug      don't remove temporary files
14610      --recheck    update $as_me by reconfiguring in the same conditions
14611      --file=FILE[:TEMPLATE]
14612                   instantiate the configuration file FILE
14613      --header=FILE[:TEMPLATE]
14614                   instantiate the configuration header FILE
14615
14616Configuration files:
14617$config_files
14618
14619Configuration headers:
14620$config_headers
14621
14622Configuration commands:
14623$config_commands
14624
14625Report bugs to <tex-k@tug.org>."
14626
14627_ACEOF
14628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14629ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14630ac_cs_version="\\
14631Web2C Tools config.status 2015
14632configured by $0, generated by GNU Autoconf 2.69,
14633  with options \\"\$ac_cs_config\\"
14634
14635Copyright (C) 2012 Free Software Foundation, Inc.
14636This config.status script is free software; the Free Software Foundation
14637gives unlimited permission to copy, distribute and modify it."
14638
14639ac_pwd='$ac_pwd'
14640srcdir='$srcdir'
14641INSTALL='$INSTALL'
14642MKDIR_P='$MKDIR_P'
14643AWK='$AWK'
14644test -n "\$AWK" || AWK=awk
14645_ACEOF
14646
14647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14648# The default lists apply if the user does not specify any file.
14649ac_need_defaults=:
14650while test $# != 0
14651do
14652  case $1 in
14653  --*=?*)
14654    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14655    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14656    ac_shift=:
14657    ;;
14658  --*=)
14659    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14660    ac_optarg=
14661    ac_shift=:
14662    ;;
14663  *)
14664    ac_option=$1
14665    ac_optarg=$2
14666    ac_shift=shift
14667    ;;
14668  esac
14669
14670  case $ac_option in
14671  # Handling of the options.
14672  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14673    ac_cs_recheck=: ;;
14674  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14675    $as_echo "$ac_cs_version"; exit ;;
14676  --config | --confi | --conf | --con | --co | --c )
14677    $as_echo "$ac_cs_config"; exit ;;
14678  --debug | --debu | --deb | --de | --d | -d )
14679    debug=: ;;
14680  --file | --fil | --fi | --f )
14681    $ac_shift
14682    case $ac_optarg in
14683    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14684    '') as_fn_error $? "missing file argument" ;;
14685    esac
14686    as_fn_append CONFIG_FILES " '$ac_optarg'"
14687    ac_need_defaults=false;;
14688  --header | --heade | --head | --hea )
14689    $ac_shift
14690    case $ac_optarg in
14691    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14692    esac
14693    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14694    ac_need_defaults=false;;
14695  --he | --h)
14696    # Conflict between --help and --header
14697    as_fn_error $? "ambiguous option: \`$1'
14698Try \`$0 --help' for more information.";;
14699  --help | --hel | -h )
14700    $as_echo "$ac_cs_usage"; exit ;;
14701  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14702  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14703    ac_cs_silent=: ;;
14704
14705  # This is an error.
14706  -*) as_fn_error $? "unrecognized option: \`$1'
14707Try \`$0 --help' for more information." ;;
14708
14709  *) as_fn_append ac_config_targets " $1"
14710     ac_need_defaults=false ;;
14711
14712  esac
14713  shift
14714done
14715
14716ac_configure_extra_args=
14717
14718if $ac_cs_silent; then
14719  exec 6>/dev/null
14720  ac_configure_extra_args="$ac_configure_extra_args --silent"
14721fi
14722
14723_ACEOF
14724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14725if \$ac_cs_recheck; then
14726  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14727  shift
14728  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14729  CONFIG_SHELL='$SHELL'
14730  export CONFIG_SHELL
14731  exec "\$@"
14732fi
14733
14734_ACEOF
14735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14736exec 5>>config.log
14737{
14738  echo
14739  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14740## Running $as_me. ##
14741_ASBOX
14742  $as_echo "$ac_log"
14743} >&5
14744
14745_ACEOF
14746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14747#
14748# INIT-COMMANDS
14749#
14750AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14751
14752
14753# The HP-UX ksh and POSIX shell print the target directory to stdout
14754# if CDPATH is set.
14755(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14756
14757sed_quote_subst='$sed_quote_subst'
14758double_quote_subst='$double_quote_subst'
14759delay_variable_subst='$delay_variable_subst'
14760macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14761macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14762AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14763DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14764OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14765enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14766enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14767pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14768enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14769shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14770SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14771ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14772PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14773host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14774host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14775host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14776build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14777build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14778build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14779SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14780Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14781GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14782EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14783FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14784LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14785NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14786LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14787max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14788ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14789exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14790lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14791lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14792lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14793lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14794lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14795reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14796reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14797deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14798file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14799file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14800want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14801sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14802AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14803AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14804archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14805STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14806RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14807old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14808old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14809old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14810lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14811CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14812CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14813compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14814GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14815lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14816lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14817lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14818lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14819lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14820lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14821nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14822lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14823lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14824objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14825MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14826lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14827lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14828lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14829lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14830lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14831need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14832MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14833DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14834NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14835LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14836OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14837OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14838libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14839shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14840extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14841archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14842enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14843export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14844whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14845compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14846old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14847old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14848archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14849archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14850module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14851module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14852with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14853allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14854no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14855hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14856hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14857hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14858hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14859hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14860hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14861hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14862inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14863link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14864always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14865export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14866exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14867include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14868prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14869postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14870file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14871variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14872need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14873need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14874version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14875runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14876shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14877shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14878libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14879library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14880soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14881install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14882postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14883postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14884finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14885finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14886hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14887sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14888configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14889configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14890hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14891enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14892enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14893enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14894old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14895striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14896
14897LTCC='$LTCC'
14898LTCFLAGS='$LTCFLAGS'
14899compiler='$compiler_DEFAULT'
14900
14901# A function that is used when there is no print builtin or printf.
14902func_fallback_echo ()
14903{
14904  eval 'cat <<_LTECHO_EOF
14905\$1
14906_LTECHO_EOF'
14907}
14908
14909# Quote evaled strings.
14910for var in AS \
14911DLLTOOL \
14912OBJDUMP \
14913SHELL \
14914ECHO \
14915PATH_SEPARATOR \
14916SED \
14917GREP \
14918EGREP \
14919FGREP \
14920LD \
14921NM \
14922LN_S \
14923lt_SP2NL \
14924lt_NL2SP \
14925reload_flag \
14926deplibs_check_method \
14927file_magic_cmd \
14928file_magic_glob \
14929want_nocaseglob \
14930sharedlib_from_linklib_cmd \
14931AR \
14932AR_FLAGS \
14933archiver_list_spec \
14934STRIP \
14935RANLIB \
14936CC \
14937CFLAGS \
14938compiler \
14939lt_cv_sys_global_symbol_pipe \
14940lt_cv_sys_global_symbol_to_cdecl \
14941lt_cv_sys_global_symbol_to_import \
14942lt_cv_sys_global_symbol_to_c_name_address \
14943lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14944lt_cv_nm_interface \
14945nm_file_list_spec \
14946lt_cv_truncate_bin \
14947lt_prog_compiler_no_builtin_flag \
14948lt_prog_compiler_pic \
14949lt_prog_compiler_wl \
14950lt_prog_compiler_static \
14951lt_cv_prog_compiler_c_o \
14952need_locks \
14953MANIFEST_TOOL \
14954DSYMUTIL \
14955NMEDIT \
14956LIPO \
14957OTOOL \
14958OTOOL64 \
14959shrext_cmds \
14960export_dynamic_flag_spec \
14961whole_archive_flag_spec \
14962compiler_needs_object \
14963with_gnu_ld \
14964allow_undefined_flag \
14965no_undefined_flag \
14966hardcode_libdir_flag_spec \
14967hardcode_libdir_separator \
14968exclude_expsyms \
14969include_expsyms \
14970file_list_spec \
14971variables_saved_for_relink \
14972libname_spec \
14973library_names_spec \
14974soname_spec \
14975install_override_mode \
14976finish_eval \
14977old_striplib \
14978striplib; do
14979    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14980    *[\\\\\\\`\\"\\\$]*)
14981      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14982      ;;
14983    *)
14984      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14985      ;;
14986    esac
14987done
14988
14989# Double-quote double-evaled strings.
14990for var in reload_cmds \
14991old_postinstall_cmds \
14992old_postuninstall_cmds \
14993old_archive_cmds \
14994extract_expsyms_cmds \
14995old_archive_from_new_cmds \
14996old_archive_from_expsyms_cmds \
14997archive_cmds \
14998archive_expsym_cmds \
14999module_cmds \
15000module_expsym_cmds \
15001export_symbols_cmds \
15002prelink_cmds \
15003postlink_cmds \
15004postinstall_cmds \
15005postuninstall_cmds \
15006finish_cmds \
15007sys_lib_search_path_spec \
15008configure_time_dlsearch_path \
15009configure_time_lt_sys_library_path; do
15010    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15011    *[\\\\\\\`\\"\\\$]*)
15012      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15013      ;;
15014    *)
15015      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15016      ;;
15017    esac
15018done
15019
15020ac_aux_dir='$ac_aux_dir'
15021
15022# See if we are running on zsh, and set the options that allow our
15023# commands through without removal of \ escapes INIT.
15024if test -n "\${ZSH_VERSION+set}"; then
15025   setopt NO_GLOB_SUBST
15026fi
15027
15028
15029    PACKAGE='$PACKAGE'
15030    VERSION='$VERSION'
15031    RM='$RM'
15032    ofile='$ofile'
15033
15034
15035
15036
15037_ACEOF
15038
15039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15040
15041# Handling of arguments.
15042for ac_config_target in $ac_config_targets
15043do
15044  case $ac_config_target in
15045    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15046    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15047    "kpathsea/c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS kpathsea/c-auto.h:c-auto.in" ;;
15048    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15049
15050  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15051  esac
15052done
15053
15054
15055# If the user did not use the arguments to specify the items to instantiate,
15056# then the envvar interface is used.  Set only those that are not.
15057# We use the long form for the default assignment because of an extremely
15058# bizarre bug on SunOS 4.1.3.
15059if $ac_need_defaults; then
15060  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15061  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15062  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15063fi
15064
15065# Have a temporary directory for convenience.  Make it in the build tree
15066# simply because there is no reason against having it here, and in addition,
15067# creating and moving files from /tmp can sometimes cause problems.
15068# Hook for its removal unless debugging.
15069# Note that there is a small window in which the directory will not be cleaned:
15070# after its creation but before its name has been assigned to `$tmp'.
15071$debug ||
15072{
15073  tmp= ac_tmp=
15074  trap 'exit_status=$?
15075  : "${ac_tmp:=$tmp}"
15076  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15077' 0
15078  trap 'as_fn_exit 1' 1 2 13 15
15079}
15080# Create a (secure) tmp directory for tmp files.
15081
15082{
15083  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15084  test -d "$tmp"
15085}  ||
15086{
15087  tmp=./conf$$-$RANDOM
15088  (umask 077 && mkdir "$tmp")
15089} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15090ac_tmp=$tmp
15091
15092# Set up the scripts for CONFIG_FILES section.
15093# No need to generate them if there are no CONFIG_FILES.
15094# This happens for instance with `./config.status config.h'.
15095if test -n "$CONFIG_FILES"; then
15096
15097
15098ac_cr=`echo X | tr X '\015'`
15099# On cygwin, bash can eat \r inside `` if the user requested igncr.
15100# But we know of no other shell where ac_cr would be empty at this
15101# point, so we can use a bashism as a fallback.
15102if test "x$ac_cr" = x; then
15103  eval ac_cr=\$\'\\r\'
15104fi
15105ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15106if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15107  ac_cs_awk_cr='\\r'
15108else
15109  ac_cs_awk_cr=$ac_cr
15110fi
15111
15112echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15113_ACEOF
15114
15115
15116{
15117  echo "cat >conf$$subs.awk <<_ACEOF" &&
15118  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15119  echo "_ACEOF"
15120} >conf$$subs.sh ||
15121  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15122ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15123ac_delim='%!_!# '
15124for ac_last_try in false false false false false :; do
15125  . ./conf$$subs.sh ||
15126    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15127
15128  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15129  if test $ac_delim_n = $ac_delim_num; then
15130    break
15131  elif $ac_last_try; then
15132    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15133  else
15134    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15135  fi
15136done
15137rm -f conf$$subs.sh
15138
15139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15140cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15141_ACEOF
15142sed -n '
15143h
15144s/^/S["/; s/!.*/"]=/
15145p
15146g
15147s/^[^!]*!//
15148:repl
15149t repl
15150s/'"$ac_delim"'$//
15151t delim
15152:nl
15153h
15154s/\(.\{148\}\)..*/\1/
15155t more1
15156s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15157p
15158n
15159b repl
15160:more1
15161s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15162p
15163g
15164s/.\{148\}//
15165t nl
15166:delim
15167h
15168s/\(.\{148\}\)..*/\1/
15169t more2
15170s/["\\]/\\&/g; s/^/"/; s/$/"/
15171p
15172b
15173:more2
15174s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15175p
15176g
15177s/.\{148\}//
15178t delim
15179' <conf$$subs.awk | sed '
15180/^[^""]/{
15181  N
15182  s/\n//
15183}
15184' >>$CONFIG_STATUS || ac_write_fail=1
15185rm -f conf$$subs.awk
15186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15187_ACAWK
15188cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15189  for (key in S) S_is_set[key] = 1
15190  FS = ""
15191
15192}
15193{
15194  line = $ 0
15195  nfields = split(line, field, "@")
15196  substed = 0
15197  len = length(field[1])
15198  for (i = 2; i < nfields; i++) {
15199    key = field[i]
15200    keylen = length(key)
15201    if (S_is_set[key]) {
15202      value = S[key]
15203      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15204      len += length(value) + length(field[++i])
15205      substed = 1
15206    } else
15207      len += 1 + keylen
15208  }
15209
15210  print line
15211}
15212
15213_ACAWK
15214_ACEOF
15215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15216if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15217  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15218else
15219  cat
15220fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15221  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15222_ACEOF
15223
15224# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15225# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15226# trailing colons and then remove the whole line if VPATH becomes empty
15227# (actually we leave an empty line to preserve line numbers).
15228if test "x$srcdir" = x.; then
15229  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15230h
15231s///
15232s/^/:/
15233s/[	 ]*$/:/
15234s/:\$(srcdir):/:/g
15235s/:\${srcdir}:/:/g
15236s/:@srcdir@:/:/g
15237s/^:*//
15238s/:*$//
15239x
15240s/\(=[	 ]*\).*/\1/
15241G
15242s/\n//
15243s/^[^=]*=[	 ]*$//
15244}'
15245fi
15246
15247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15248fi # test -n "$CONFIG_FILES"
15249
15250# Set up the scripts for CONFIG_HEADERS section.
15251# No need to generate them if there are no CONFIG_HEADERS.
15252# This happens for instance with `./config.status Makefile'.
15253if test -n "$CONFIG_HEADERS"; then
15254cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15255BEGIN {
15256_ACEOF
15257
15258# Transform confdefs.h into an awk script `defines.awk', embedded as
15259# here-document in config.status, that substitutes the proper values into
15260# config.h.in to produce config.h.
15261
15262# Create a delimiter string that does not exist in confdefs.h, to ease
15263# handling of long lines.
15264ac_delim='%!_!# '
15265for ac_last_try in false false :; do
15266  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15267  if test -z "$ac_tt"; then
15268    break
15269  elif $ac_last_try; then
15270    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15271  else
15272    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15273  fi
15274done
15275
15276# For the awk script, D is an array of macro values keyed by name,
15277# likewise P contains macro parameters if any.  Preserve backslash
15278# newline sequences.
15279
15280ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15281sed -n '
15282s/.\{148\}/&'"$ac_delim"'/g
15283t rset
15284:rset
15285s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15286t def
15287d
15288:def
15289s/\\$//
15290t bsnl
15291s/["\\]/\\&/g
15292s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15293D["\1"]=" \3"/p
15294s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15295d
15296:bsnl
15297s/["\\]/\\&/g
15298s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15299D["\1"]=" \3\\\\\\n"\\/p
15300t cont
15301s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15302t cont
15303d
15304:cont
15305n
15306s/.\{148\}/&'"$ac_delim"'/g
15307t clear
15308:clear
15309s/\\$//
15310t bsnlc
15311s/["\\]/\\&/g; s/^/"/; s/$/"/p
15312d
15313:bsnlc
15314s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15315b cont
15316' <confdefs.h | sed '
15317s/'"$ac_delim"'/"\\\
15318"/g' >>$CONFIG_STATUS || ac_write_fail=1
15319
15320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321  for (key in D) D_is_set[key] = 1
15322  FS = ""
15323}
15324/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15325  line = \$ 0
15326  split(line, arg, " ")
15327  if (arg[1] == "#") {
15328    defundef = arg[2]
15329    mac1 = arg[3]
15330  } else {
15331    defundef = substr(arg[1], 2)
15332    mac1 = arg[2]
15333  }
15334  split(mac1, mac2, "(") #)
15335  macro = mac2[1]
15336  prefix = substr(line, 1, index(line, defundef) - 1)
15337  if (D_is_set[macro]) {
15338    # Preserve the white space surrounding the "#".
15339    print prefix "define", macro P[macro] D[macro]
15340    next
15341  } else {
15342    # Replace #undef with comments.  This is necessary, for example,
15343    # in the case of _POSIX_SOURCE, which is predefined and required
15344    # on some systems where configure will not decide to define it.
15345    if (defundef == "undef") {
15346      print "/*", prefix defundef, macro, "*/"
15347      next
15348    }
15349  }
15350}
15351{ print }
15352_ACAWK
15353_ACEOF
15354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15355  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15356fi # test -n "$CONFIG_HEADERS"
15357
15358
15359eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15360shift
15361for ac_tag
15362do
15363  case $ac_tag in
15364  :[FHLC]) ac_mode=$ac_tag; continue;;
15365  esac
15366  case $ac_mode$ac_tag in
15367  :[FHL]*:*);;
15368  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15369  :[FH]-) ac_tag=-:-;;
15370  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15371  esac
15372  ac_save_IFS=$IFS
15373  IFS=:
15374  set x $ac_tag
15375  IFS=$ac_save_IFS
15376  shift
15377  ac_file=$1
15378  shift
15379
15380  case $ac_mode in
15381  :L) ac_source=$1;;
15382  :[FH])
15383    ac_file_inputs=
15384    for ac_f
15385    do
15386      case $ac_f in
15387      -) ac_f="$ac_tmp/stdin";;
15388      *) # Look for the file first in the build tree, then in the source tree
15389	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15390	 # because $ac_f cannot contain `:'.
15391	 test -f "$ac_f" ||
15392	   case $ac_f in
15393	   [\\/$]*) false;;
15394	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15395	   esac ||
15396	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15397      esac
15398      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15399      as_fn_append ac_file_inputs " '$ac_f'"
15400    done
15401
15402    # Let's still pretend it is `configure' which instantiates (i.e., don't
15403    # use $as_me), people would be surprised to read:
15404    #    /* config.h.  Generated by config.status.  */
15405    configure_input='Generated from '`
15406	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15407	`' by configure.'
15408    if test x"$ac_file" != x-; then
15409      configure_input="$ac_file.  $configure_input"
15410      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15411$as_echo "$as_me: creating $ac_file" >&6;}
15412    fi
15413    # Neutralize special characters interpreted by sed in replacement strings.
15414    case $configure_input in #(
15415    *\&* | *\|* | *\\* )
15416       ac_sed_conf_input=`$as_echo "$configure_input" |
15417       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15418    *) ac_sed_conf_input=$configure_input;;
15419    esac
15420
15421    case $ac_tag in
15422    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15423      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15424    esac
15425    ;;
15426  esac
15427
15428  ac_dir=`$as_dirname -- "$ac_file" ||
15429$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15430	 X"$ac_file" : 'X\(//\)[^/]' \| \
15431	 X"$ac_file" : 'X\(//\)$' \| \
15432	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15433$as_echo X"$ac_file" |
15434    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15435	    s//\1/
15436	    q
15437	  }
15438	  /^X\(\/\/\)[^/].*/{
15439	    s//\1/
15440	    q
15441	  }
15442	  /^X\(\/\/\)$/{
15443	    s//\1/
15444	    q
15445	  }
15446	  /^X\(\/\).*/{
15447	    s//\1/
15448	    q
15449	  }
15450	  s/.*/./; q'`
15451  as_dir="$ac_dir"; as_fn_mkdir_p
15452  ac_builddir=.
15453
15454case "$ac_dir" in
15455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15456*)
15457  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15458  # A ".." for each directory in $ac_dir_suffix.
15459  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15460  case $ac_top_builddir_sub in
15461  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15462  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15463  esac ;;
15464esac
15465ac_abs_top_builddir=$ac_pwd
15466ac_abs_builddir=$ac_pwd$ac_dir_suffix
15467# for backward compatibility:
15468ac_top_builddir=$ac_top_build_prefix
15469
15470case $srcdir in
15471  .)  # We are building in place.
15472    ac_srcdir=.
15473    ac_top_srcdir=$ac_top_builddir_sub
15474    ac_abs_top_srcdir=$ac_pwd ;;
15475  [\\/]* | ?:[\\/]* )  # Absolute name.
15476    ac_srcdir=$srcdir$ac_dir_suffix;
15477    ac_top_srcdir=$srcdir
15478    ac_abs_top_srcdir=$srcdir ;;
15479  *) # Relative name.
15480    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15481    ac_top_srcdir=$ac_top_build_prefix$srcdir
15482    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15483esac
15484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15485
15486
15487  case $ac_mode in
15488  :F)
15489  #
15490  # CONFIG_FILE
15491  #
15492
15493  case $INSTALL in
15494  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15495  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15496  esac
15497  ac_MKDIR_P=$MKDIR_P
15498  case $MKDIR_P in
15499  [\\/$]* | ?:[\\/]* ) ;;
15500  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15501  esac
15502_ACEOF
15503
15504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15505# If the template does not know about datarootdir, expand it.
15506# FIXME: This hack should be removed a few years after 2.60.
15507ac_datarootdir_hack=; ac_datarootdir_seen=
15508ac_sed_dataroot='
15509/datarootdir/ {
15510  p
15511  q
15512}
15513/@datadir@/p
15514/@docdir@/p
15515/@infodir@/p
15516/@localedir@/p
15517/@mandir@/p'
15518case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15519*datarootdir*) ac_datarootdir_seen=yes;;
15520*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15521  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15522$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15523_ACEOF
15524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15525  ac_datarootdir_hack='
15526  s&@datadir@&$datadir&g
15527  s&@docdir@&$docdir&g
15528  s&@infodir@&$infodir&g
15529  s&@localedir@&$localedir&g
15530  s&@mandir@&$mandir&g
15531  s&\\\${datarootdir}&$datarootdir&g' ;;
15532esac
15533_ACEOF
15534
15535# Neutralize VPATH when `$srcdir' = `.'.
15536# Shell code in configure.ac might set extrasub.
15537# FIXME: do we really want to maintain this feature?
15538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15539ac_sed_extra="$ac_vpsub
15540$extrasub
15541_ACEOF
15542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543:t
15544/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15545s|@configure_input@|$ac_sed_conf_input|;t t
15546s&@top_builddir@&$ac_top_builddir_sub&;t t
15547s&@top_build_prefix@&$ac_top_build_prefix&;t t
15548s&@srcdir@&$ac_srcdir&;t t
15549s&@abs_srcdir@&$ac_abs_srcdir&;t t
15550s&@top_srcdir@&$ac_top_srcdir&;t t
15551s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15552s&@builddir@&$ac_builddir&;t t
15553s&@abs_builddir@&$ac_abs_builddir&;t t
15554s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15555s&@INSTALL@&$ac_INSTALL&;t t
15556s&@MKDIR_P@&$ac_MKDIR_P&;t t
15557$ac_datarootdir_hack
15558"
15559eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15560  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15561
15562test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15563  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15564  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15565      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15566  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15567which seems to be undefined.  Please make sure it is defined" >&5
15568$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15569which seems to be undefined.  Please make sure it is defined" >&2;}
15570
15571  rm -f "$ac_tmp/stdin"
15572  case $ac_file in
15573  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15574  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15575  esac \
15576  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15577 ;;
15578  :H)
15579  #
15580  # CONFIG_HEADER
15581  #
15582  if test x"$ac_file" != x-; then
15583    {
15584      $as_echo "/* $configure_input  */" \
15585      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15586    } >"$ac_tmp/config.h" \
15587      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15588    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15589      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15590$as_echo "$as_me: $ac_file is unchanged" >&6;}
15591    else
15592      rm -f "$ac_file"
15593      mv "$ac_tmp/config.h" "$ac_file" \
15594	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15595    fi
15596  else
15597    $as_echo "/* $configure_input  */" \
15598      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15599      || as_fn_error $? "could not create -" "$LINENO" 5
15600  fi
15601# Compute "$ac_file"'s index in $config_headers.
15602_am_arg="$ac_file"
15603_am_stamp_count=1
15604for _am_header in $config_headers :; do
15605  case $_am_header in
15606    $_am_arg | $_am_arg:* )
15607      break ;;
15608    * )
15609      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15610  esac
15611done
15612echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15613$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15614	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15615	 X"$_am_arg" : 'X\(//\)$' \| \
15616	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15617$as_echo X"$_am_arg" |
15618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15619	    s//\1/
15620	    q
15621	  }
15622	  /^X\(\/\/\)[^/].*/{
15623	    s//\1/
15624	    q
15625	  }
15626	  /^X\(\/\/\)$/{
15627	    s//\1/
15628	    q
15629	  }
15630	  /^X\(\/\).*/{
15631	    s//\1/
15632	    q
15633	  }
15634	  s/.*/./; q'`/stamp-h$_am_stamp_count
15635 ;;
15636
15637  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15638$as_echo "$as_me: executing $ac_file commands" >&6;}
15639 ;;
15640  esac
15641
15642
15643  case $ac_file$ac_mode in
15644    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15645  # Older Autoconf quotes --file arguments for eval, but not when files
15646  # are listed without --file.  Let's play safe and only enable the eval
15647  # if we detect the quoting.
15648  case $CONFIG_FILES in
15649  *\'*) eval set x "$CONFIG_FILES" ;;
15650  *)   set x $CONFIG_FILES ;;
15651  esac
15652  shift
15653  for mf
15654  do
15655    # Strip MF so we end up with the name of the file.
15656    mf=`echo "$mf" | sed -e 's/:.*$//'`
15657    # Check whether this is an Automake generated Makefile or not.
15658    # We used to match only the files named 'Makefile.in', but
15659    # some people rename them; so instead we look at the file content.
15660    # Grep'ing the first line is not enough: some people post-process
15661    # each Makefile.in and add a new line on top of each file to say so.
15662    # Grep'ing the whole file is not good either: AIX grep has a line
15663    # limit of 2048, but all sed's we know have understand at least 4000.
15664    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15665      dirpart=`$as_dirname -- "$mf" ||
15666$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15667	 X"$mf" : 'X\(//\)[^/]' \| \
15668	 X"$mf" : 'X\(//\)$' \| \
15669	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15670$as_echo X"$mf" |
15671    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15672	    s//\1/
15673	    q
15674	  }
15675	  /^X\(\/\/\)[^/].*/{
15676	    s//\1/
15677	    q
15678	  }
15679	  /^X\(\/\/\)$/{
15680	    s//\1/
15681	    q
15682	  }
15683	  /^X\(\/\).*/{
15684	    s//\1/
15685	    q
15686	  }
15687	  s/.*/./; q'`
15688    else
15689      continue
15690    fi
15691    # Extract the definition of DEPDIR, am__include, and am__quote
15692    # from the Makefile without running 'make'.
15693    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15694    test -z "$DEPDIR" && continue
15695    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15696    test -z "$am__include" && continue
15697    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15698    # Find all dependency output files, they are included files with
15699    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15700    # simplest approach to changing $(DEPDIR) to its actual value in the
15701    # expansion.
15702    for file in `sed -n "
15703      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15704	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15705      # Make sure the directory exists.
15706      test -f "$dirpart/$file" && continue
15707      fdir=`$as_dirname -- "$file" ||
15708$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15709	 X"$file" : 'X\(//\)[^/]' \| \
15710	 X"$file" : 'X\(//\)$' \| \
15711	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15712$as_echo X"$file" |
15713    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15714	    s//\1/
15715	    q
15716	  }
15717	  /^X\(\/\/\)[^/].*/{
15718	    s//\1/
15719	    q
15720	  }
15721	  /^X\(\/\/\)$/{
15722	    s//\1/
15723	    q
15724	  }
15725	  /^X\(\/\).*/{
15726	    s//\1/
15727	    q
15728	  }
15729	  s/.*/./; q'`
15730      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15731      # echo "creating $dirpart/$file"
15732      echo '# dummy' > "$dirpart/$file"
15733    done
15734  done
15735}
15736 ;;
15737    "libtool":C)
15738
15739    # See if we are running on zsh, and set the options that allow our
15740    # commands through without removal of \ escapes.
15741    if test -n "${ZSH_VERSION+set}"; then
15742      setopt NO_GLOB_SUBST
15743    fi
15744
15745    cfgfile=${ofile}T
15746    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15747    $RM "$cfgfile"
15748
15749    cat <<_LT_EOF >> "$cfgfile"
15750#! $SHELL
15751# Generated automatically by $as_me ($PACKAGE) $VERSION
15752# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15753# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15754
15755# Provide generalized library-building support services.
15756# Written by Gordon Matzigkeit, 1996
15757
15758# Copyright (C) 2014 Free Software Foundation, Inc.
15759# This is free software; see the source for copying conditions.  There is NO
15760# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15761
15762# GNU Libtool is free software; you can redistribute it and/or modify
15763# it under the terms of the GNU General Public License as published by
15764# the Free Software Foundation; either version 2 of of the License, or
15765# (at your option) any later version.
15766#
15767# As a special exception to the GNU General Public License, if you
15768# distribute this file as part of a program or library that is built
15769# using GNU Libtool, you may include this file under the  same
15770# distribution terms that you use for the rest of that program.
15771#
15772# GNU Libtool is distributed in the hope that it will be useful, but
15773# WITHOUT ANY WARRANTY; without even the implied warranty of
15774# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15775# GNU General Public License for more details.
15776#
15777# You should have received a copy of the GNU General Public License
15778# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15779
15780
15781# The names of the tagged configurations supported by this script.
15782available_tags=''
15783
15784# Configured defaults for sys_lib_dlsearch_path munging.
15785: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15786
15787# ### BEGIN LIBTOOL CONFIG
15788
15789# Which release of libtool.m4 was used?
15790macro_version=$macro_version
15791macro_revision=$macro_revision
15792
15793# Assembler program.
15794AS=$lt_AS
15795
15796# DLL creation program.
15797DLLTOOL=$lt_DLLTOOL
15798
15799# Object dumper program.
15800OBJDUMP=$lt_OBJDUMP
15801
15802# Whether or not to build shared libraries.
15803build_libtool_libs=$enable_shared
15804
15805# Whether or not to build static libraries.
15806build_old_libs=$enable_static
15807
15808# What type of objects to build.
15809pic_mode=$pic_mode
15810
15811# Whether or not to optimize for fast installation.
15812fast_install=$enable_fast_install
15813
15814# Shared archive member basename,for filename based shared library versioning on AIX.
15815shared_archive_member_spec=$shared_archive_member_spec
15816
15817# Shell to use when invoking shell scripts.
15818SHELL=$lt_SHELL
15819
15820# An echo program that protects backslashes.
15821ECHO=$lt_ECHO
15822
15823# The PATH separator for the build system.
15824PATH_SEPARATOR=$lt_PATH_SEPARATOR
15825
15826# The host system.
15827host_alias=$host_alias
15828host=$host
15829host_os=$host_os
15830
15831# The build system.
15832build_alias=$build_alias
15833build=$build
15834build_os=$build_os
15835
15836# A sed program that does not truncate output.
15837SED=$lt_SED
15838
15839# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15840Xsed="\$SED -e 1s/^X//"
15841
15842# A grep program that handles long lines.
15843GREP=$lt_GREP
15844
15845# An ERE matcher.
15846EGREP=$lt_EGREP
15847
15848# A literal string matcher.
15849FGREP=$lt_FGREP
15850
15851# A BSD- or MS-compatible name lister.
15852NM=$lt_NM
15853
15854# Whether we need soft or hard links.
15855LN_S=$lt_LN_S
15856
15857# What is the maximum length of a command?
15858max_cmd_len=$max_cmd_len
15859
15860# Object file suffix (normally "o").
15861objext=$ac_objext
15862
15863# Executable file suffix (normally "").
15864exeext=$exeext
15865
15866# whether the shell understands "unset".
15867lt_unset=$lt_unset
15868
15869# turn spaces into newlines.
15870SP2NL=$lt_lt_SP2NL
15871
15872# turn newlines into spaces.
15873NL2SP=$lt_lt_NL2SP
15874
15875# convert \$build file names to \$host format.
15876to_host_file_cmd=$lt_cv_to_host_file_cmd
15877
15878# convert \$build files to toolchain format.
15879to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15880
15881# Method to check whether dependent libraries are shared objects.
15882deplibs_check_method=$lt_deplibs_check_method
15883
15884# Command to use when deplibs_check_method = "file_magic".
15885file_magic_cmd=$lt_file_magic_cmd
15886
15887# How to find potential files when deplibs_check_method = "file_magic".
15888file_magic_glob=$lt_file_magic_glob
15889
15890# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15891want_nocaseglob=$lt_want_nocaseglob
15892
15893# Command to associate shared and link libraries.
15894sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15895
15896# The archiver.
15897AR=$lt_AR
15898
15899# Flags to create an archive.
15900AR_FLAGS=$lt_AR_FLAGS
15901
15902# How to feed a file listing to the archiver.
15903archiver_list_spec=$lt_archiver_list_spec
15904
15905# A symbol stripping program.
15906STRIP=$lt_STRIP
15907
15908# Commands used to install an old-style archive.
15909RANLIB=$lt_RANLIB
15910old_postinstall_cmds=$lt_old_postinstall_cmds
15911old_postuninstall_cmds=$lt_old_postuninstall_cmds
15912
15913# Whether to use a lock for old archive extraction.
15914lock_old_archive_extraction=$lock_old_archive_extraction
15915
15916# A C compiler.
15917LTCC=$lt_CC
15918
15919# LTCC compiler flags.
15920LTCFLAGS=$lt_CFLAGS
15921
15922# Take the output of nm and produce a listing of raw symbols and C names.
15923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15924
15925# Transform the output of nm in a proper C declaration.
15926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15927
15928# Transform the output of nm into a list of symbols to manually relocate.
15929global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15930
15931# Transform the output of nm in a C name address pair.
15932global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15933
15934# Transform the output of nm in a C name address pair when lib prefix is needed.
15935global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15936
15937# The name lister interface.
15938nm_interface=$lt_lt_cv_nm_interface
15939
15940# Specify filename containing input files for \$NM.
15941nm_file_list_spec=$lt_nm_file_list_spec
15942
15943# The root where to search for dependent libraries,and where our libraries should be installed.
15944lt_sysroot=$lt_sysroot
15945
15946# Command to truncate a binary pipe.
15947lt_truncate_bin=$lt_lt_cv_truncate_bin
15948
15949# The name of the directory that contains temporary libtool files.
15950objdir=$objdir
15951
15952# Used to examine libraries when file_magic_cmd begins with "file".
15953MAGIC_CMD=$MAGIC_CMD
15954
15955# Must we lock files when doing compilation?
15956need_locks=$lt_need_locks
15957
15958# Manifest tool.
15959MANIFEST_TOOL=$lt_MANIFEST_TOOL
15960
15961# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15962DSYMUTIL=$lt_DSYMUTIL
15963
15964# Tool to change global to local symbols on Mac OS X.
15965NMEDIT=$lt_NMEDIT
15966
15967# Tool to manipulate fat objects and archives on Mac OS X.
15968LIPO=$lt_LIPO
15969
15970# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15971OTOOL=$lt_OTOOL
15972
15973# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15974OTOOL64=$lt_OTOOL64
15975
15976# Old archive suffix (normally "a").
15977libext=$libext
15978
15979# Shared library suffix (normally ".so").
15980shrext_cmds=$lt_shrext_cmds
15981
15982# The commands to extract the exported symbol list from a shared archive.
15983extract_expsyms_cmds=$lt_extract_expsyms_cmds
15984
15985# Variables whose values should be saved in libtool wrapper scripts and
15986# restored at link time.
15987variables_saved_for_relink=$lt_variables_saved_for_relink
15988
15989# Do we need the "lib" prefix for modules?
15990need_lib_prefix=$need_lib_prefix
15991
15992# Do we need a version for libraries?
15993need_version=$need_version
15994
15995# Library versioning type.
15996version_type=$version_type
15997
15998# Shared library runtime path variable.
15999runpath_var=$runpath_var
16000
16001# Shared library path variable.
16002shlibpath_var=$shlibpath_var
16003
16004# Is shlibpath searched before the hard-coded library search path?
16005shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16006
16007# Format of library name prefix.
16008libname_spec=$lt_libname_spec
16009
16010# List of archive names.  First name is the real one, the rest are links.
16011# The last name is the one that the linker finds with -lNAME
16012library_names_spec=$lt_library_names_spec
16013
16014# The coded name of the library, if different from the real name.
16015soname_spec=$lt_soname_spec
16016
16017# Permission mode override for installation of shared libraries.
16018install_override_mode=$lt_install_override_mode
16019
16020# Command to use after installation of a shared archive.
16021postinstall_cmds=$lt_postinstall_cmds
16022
16023# Command to use after uninstallation of a shared archive.
16024postuninstall_cmds=$lt_postuninstall_cmds
16025
16026# Commands used to finish a libtool library installation in a directory.
16027finish_cmds=$lt_finish_cmds
16028
16029# As "finish_cmds", except a single script fragment to be evaled but
16030# not shown.
16031finish_eval=$lt_finish_eval
16032
16033# Whether we should hardcode library paths into libraries.
16034hardcode_into_libs=$hardcode_into_libs
16035
16036# Compile-time system search path for libraries.
16037sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16038
16039# Detected run-time system search path for libraries.
16040sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16041
16042# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16043configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16044
16045# Whether dlopen is supported.
16046dlopen_support=$enable_dlopen
16047
16048# Whether dlopen of programs is supported.
16049dlopen_self=$enable_dlopen_self
16050
16051# Whether dlopen of statically linked programs is supported.
16052dlopen_self_static=$enable_dlopen_self_static
16053
16054# Commands to strip libraries.
16055old_striplib=$lt_old_striplib
16056striplib=$lt_striplib
16057
16058
16059# The linker used to build libraries.
16060LD=$lt_LD
16061
16062# How to create reloadable object files.
16063reload_flag=$lt_reload_flag
16064reload_cmds=$lt_reload_cmds
16065
16066# Commands used to build an old-style archive.
16067old_archive_cmds=$lt_old_archive_cmds
16068
16069# A language specific compiler.
16070CC=$lt_compiler
16071
16072# Is the compiler the GNU compiler?
16073with_gcc=$GCC
16074
16075# Compiler flag to turn off builtin functions.
16076no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16077
16078# Additional compiler flags for building library objects.
16079pic_flag=$lt_lt_prog_compiler_pic
16080
16081# How to pass a linker flag through the compiler.
16082wl=$lt_lt_prog_compiler_wl
16083
16084# Compiler flag to prevent dynamic linking.
16085link_static_flag=$lt_lt_prog_compiler_static
16086
16087# Does compiler simultaneously support -c and -o options?
16088compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16089
16090# Whether or not to add -lc for building shared libraries.
16091build_libtool_need_lc=$archive_cmds_need_lc
16092
16093# Whether or not to disallow shared libs when runtime libs are static.
16094allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16095
16096# Compiler flag to allow reflexive dlopens.
16097export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16098
16099# Compiler flag to generate shared objects directly from archives.
16100whole_archive_flag_spec=$lt_whole_archive_flag_spec
16101
16102# Whether the compiler copes with passing no objects directly.
16103compiler_needs_object=$lt_compiler_needs_object
16104
16105# Create an old-style archive from a shared archive.
16106old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16107
16108# Create a temporary old-style archive to link instead of a shared archive.
16109old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16110
16111# Commands used to build a shared archive.
16112archive_cmds=$lt_archive_cmds
16113archive_expsym_cmds=$lt_archive_expsym_cmds
16114
16115# Commands used to build a loadable module if different from building
16116# a shared archive.
16117module_cmds=$lt_module_cmds
16118module_expsym_cmds=$lt_module_expsym_cmds
16119
16120# Whether we are building with GNU ld or not.
16121with_gnu_ld=$lt_with_gnu_ld
16122
16123# Flag that allows shared libraries with undefined symbols to be built.
16124allow_undefined_flag=$lt_allow_undefined_flag
16125
16126# Flag that enforces no undefined symbols.
16127no_undefined_flag=$lt_no_undefined_flag
16128
16129# Flag to hardcode \$libdir into a binary during linking.
16130# This must work even if \$libdir does not exist
16131hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16132
16133# Whether we need a single "-rpath" flag with a separated argument.
16134hardcode_libdir_separator=$lt_hardcode_libdir_separator
16135
16136# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16137# DIR into the resulting binary.
16138hardcode_direct=$hardcode_direct
16139
16140# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16141# DIR into the resulting binary and the resulting library dependency is
16142# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16143# library is relocated.
16144hardcode_direct_absolute=$hardcode_direct_absolute
16145
16146# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16147# into the resulting binary.
16148hardcode_minus_L=$hardcode_minus_L
16149
16150# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16151# into the resulting binary.
16152hardcode_shlibpath_var=$hardcode_shlibpath_var
16153
16154# Set to "yes" if building a shared library automatically hardcodes DIR
16155# into the library and all subsequent libraries and executables linked
16156# against it.
16157hardcode_automatic=$hardcode_automatic
16158
16159# Set to yes if linker adds runtime paths of dependent libraries
16160# to runtime path list.
16161inherit_rpath=$inherit_rpath
16162
16163# Whether libtool must link a program against all its dependency libraries.
16164link_all_deplibs=$link_all_deplibs
16165
16166# Set to "yes" if exported symbols are required.
16167always_export_symbols=$always_export_symbols
16168
16169# The commands to list exported symbols.
16170export_symbols_cmds=$lt_export_symbols_cmds
16171
16172# Symbols that should not be listed in the preloaded symbols.
16173exclude_expsyms=$lt_exclude_expsyms
16174
16175# Symbols that must always be exported.
16176include_expsyms=$lt_include_expsyms
16177
16178# Commands necessary for linking programs (against libraries) with templates.
16179prelink_cmds=$lt_prelink_cmds
16180
16181# Commands necessary for finishing linking programs.
16182postlink_cmds=$lt_postlink_cmds
16183
16184# Specify filename containing input files.
16185file_list_spec=$lt_file_list_spec
16186
16187# How to hardcode a shared library path into an executable.
16188hardcode_action=$hardcode_action
16189
16190# ### END LIBTOOL CONFIG
16191
16192_LT_EOF
16193
16194    cat <<'_LT_EOF' >> "$cfgfile"
16195
16196# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16197
16198# func_munge_path_list VARIABLE PATH
16199# -----------------------------------
16200# VARIABLE is name of variable containing _space_ separated list of
16201# directories to be munged by the contents of PATH, which is string
16202# having a format:
16203# "DIR[:DIR]:"
16204#       string "DIR[ DIR]" will be prepended to VARIABLE
16205# ":DIR[:DIR]"
16206#       string "DIR[ DIR]" will be appended to VARIABLE
16207# "DIRP[:DIRP]::[DIRA:]DIRA"
16208#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16209#       "DIRA[ DIRA]" will be appended to VARIABLE
16210# "DIR[:DIR]"
16211#       VARIABLE will be replaced by "DIR[ DIR]"
16212func_munge_path_list ()
16213{
16214    case x$2 in
16215    x)
16216        ;;
16217    *:)
16218        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16219        ;;
16220    x:*)
16221        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16222        ;;
16223    *::*)
16224        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16225        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16226        ;;
16227    *)
16228        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16229        ;;
16230    esac
16231}
16232
16233
16234# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16235func_cc_basename ()
16236{
16237    for cc_temp in $*""; do
16238      case $cc_temp in
16239        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16240        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16241        \-*) ;;
16242        *) break;;
16243      esac
16244    done
16245    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16246}
16247
16248
16249# ### END FUNCTIONS SHARED WITH CONFIGURE
16250
16251_LT_EOF
16252
16253  case $host_os in
16254  aix3*)
16255    cat <<\_LT_EOF >> "$cfgfile"
16256# AIX sometimes has problems with the GCC collect2 program.  For some
16257# reason, if we set the COLLECT_NAMES environment variable, the problems
16258# vanish in a puff of smoke.
16259if test set != "${COLLECT_NAMES+set}"; then
16260  COLLECT_NAMES=
16261  export COLLECT_NAMES
16262fi
16263_LT_EOF
16264    ;;
16265  esac
16266
16267
16268ltmain=$ac_aux_dir/ltmain.sh
16269
16270
16271  # We use sed instead of cat because bash on DJGPP gets confused if
16272  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16273  # text mode, it properly converts lines to CR/LF.  This bash problem
16274  # is reportedly fixed, but why not run on old versions too?
16275  sed '$q' "$ltmain" >> "$cfgfile" \
16276     || (rm -f "$cfgfile"; exit 1)
16277
16278   mv -f "$cfgfile" "$ofile" ||
16279    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16280  chmod +x "$ofile"
16281
16282 ;;
16283
16284  esac
16285done # for ac_tag
16286
16287
16288as_fn_exit 0
16289_ACEOF
16290ac_clean_files=$ac_clean_files_save
16291
16292test $ac_write_fail = 0 ||
16293  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16294
16295
16296# configure is writing to config.log, and then calls config.status.
16297# config.status does its own redirection, appending to config.log.
16298# Unfortunately, on DOS this fails, as config.log is still kept open
16299# by configure, so config.status won't be able to write to it; its
16300# output is simply discarded.  So we exec the FD to /dev/null,
16301# effectively closing config.log, so it can be properly (re)opened and
16302# appended to by config.status.  When coming back to configure, we
16303# need to make the FD available again.
16304if test "$no_create" != yes; then
16305  ac_cs_success=:
16306  ac_config_status_args=
16307  test "$silent" = yes &&
16308    ac_config_status_args="$ac_config_status_args --quiet"
16309  exec 5>/dev/null
16310  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16311  exec 5>>config.log
16312  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16313  # would make configure fail if this is the last instruction.
16314  $ac_cs_success || as_fn_exit 1
16315fi
16316if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16317  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16318$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16319fi
16320
16321