• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libedit 3.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7# Inc.
8#
9#
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19then :
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 case e in #(
27  e) case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac ;;
33esac
34fi
35
36
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
45as_nl='
46'
47export as_nl
48IFS=" ""	$as_nl"
49
50PS1='$ '
51PS2='> '
52PS4='+ '
53
54# Ensure predictable behavior from utilities with locale-dependent output.
55LC_ALL=C
56export LC_ALL
57LANGUAGE=C
58export LANGUAGE
59
60# We cannot yet rely on "unset" to work, but we need these variables
61# to be unset--not just set to an empty or harmless value--now, to
62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63# also avoids known problems related to "unset" and subshell syntax
64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66do eval test \${$as_var+y} \
67  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68done
69
70# Ensure that fds 0, 1, and 2 are open.
71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75# The user is always right.
76if ${PATH_SEPARATOR+false} :; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# Find who we are.  Look in the path if we contain no directory separator.
86as_myself=
87case $0 in #((
88  *[\\/]* ) as_myself=$0 ;;
89  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90for as_dir in $PATH
91do
92  IFS=$as_save_IFS
93  case $as_dir in #(((
94    '') as_dir=./ ;;
95    */) ;;
96    *) as_dir=$as_dir/ ;;
97  esac
98    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as 'sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114
115# Use a proper internal environment variable to ensure we don't fall
116  # into an infinite loop, continuously re-executing ourselves.
117  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118    _as_can_reexec=no; export _as_can_reexec;
119    # We cannot yet assume a decent shell, so we have to provide a
120# neutralization value for shells without unset; and this also
121# works around shells that cannot unset nonexistent variables.
122# Preserve -v and -x to the replacement shell.
123BASH_ENV=/dev/null
124ENV=/dev/null
125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126case $- in # ((((
127  *v*x* | *x*v* ) as_opts=-vx ;;
128  *v* ) as_opts=-v ;;
129  *x* ) as_opts=-x ;;
130  * ) as_opts= ;;
131esac
132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133# Admittedly, this is quite paranoid, since all the known shells bail
134# out after a failed 'exec'.
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
137  fi
138  # We don't want this to propagate to other subprocesses.
139          { _as_can_reexec=; unset _as_can_reexec;}
140if test "x$CONFIG_SHELL" = x; then
141  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142then :
143  emulate sh
144  NULLCMD=:
145  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146  # is contrary to our usage.  Disable this feature.
147  alias -g '\${1+\"\$@\"}'='\"\$@\"'
148  setopt NO_GLOB_SUBST
149else case e in #(
150  e) case \`(set -o) 2>/dev/null\` in #(
151  *posix*) :
152    set -o posix ;; #(
153  *) :
154     ;;
155esac ;;
156esac
157fi
158"
159  as_required="as_fn_return () { (exit \$1); }
160as_fn_success () { as_fn_return 0; }
161as_fn_failure () { as_fn_return 1; }
162as_fn_ret_success () { return 0; }
163as_fn_ret_failure () { return 1; }
164
165exitcode=0
166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
172
173else case e in #(
174  e) exitcode=1; echo positional parameters were not saved. ;;
175esac
176fi
177test x\$exitcode = x0 || exit 1
178blah=\$(echo \$(echo blah))
179test x\"\$blah\" = xblah || exit 1
180test -x / || exit 1"
181  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    PATH=/empty FPATH=/empty; export PATH FPATH
191    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193test \$(( 1 + 1 )) = 2 || exit 1"
194  if (eval "$as_required") 2>/dev/null
195then :
196  as_have_required=yes
197else case e in #(
198  e) as_have_required=no ;;
199esac
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else case e in #(
205  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else case e in #(
239  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi ;;
244esac
245fi
246
247
248      if test "x$CONFIG_SHELL" != x
249then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed 'exec'.
267printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno
272then :
273  printf "%s\n" "$0: This script requires a shell more modern than all"
274  printf "%s\n" "$0: the shells that I found on your system."
275  if test ${ZSH_VERSION+y} ; then
276    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278  else
279    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
280$0: including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi ;;
286esac
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348printf "%s\n" X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388then :
389  eval 'as_fn_append ()
390  {
391    eval $1+=\$2
392  }'
393else case e in #(
394  e) as_fn_append ()
395  {
396    eval $1=\$$1\$2
397  } ;;
398esac
399fi # as_fn_append
400
401# as_fn_arith ARG...
402# ------------------
403# Perform arithmetic evaluation on the ARGs, and store the result in the
404# global $as_val. Take advantage of shells that can avoid forks. The arguments
405# must be portable across $(()) and expr.
406if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407then :
408  eval 'as_fn_arith ()
409  {
410    as_val=$(( $* ))
411  }'
412else case e in #(
413  e) as_fn_arith ()
414  {
415    as_val=`expr "$@" || test $? -eq 1`
416  } ;;
417esac
418fi # as_fn_arith
419
420
421# as_fn_error STATUS ERROR [LINENO LOG_FD]
422# ----------------------------------------
423# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425# script with STATUS, using 1 if that was 0.
426as_fn_error ()
427{
428  as_status=$1; test $as_status -eq 0 && as_status=1
429  if test "$4"; then
430    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432  fi
433  printf "%s\n" "$as_me: error: $2" >&2
434  as_fn_exit $as_status
435} # as_fn_error
436
437if expr a : '\(a\)' >/dev/null 2>&1 &&
438   test "X`expr 00001 : '.*\(...\)'`" = X001; then
439  as_expr=expr
440else
441  as_expr=false
442fi
443
444if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445  as_basename=basename
446else
447  as_basename=false
448fi
449
450if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451  as_dirname=dirname
452else
453  as_dirname=false
454fi
455
456as_me=`$as_basename -- "$0" ||
457$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458	 X"$0" : 'X\(//\)$' \| \
459	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460printf "%s\n" X/"$0" |
461    sed '/^.*\/\([^/][^/]*\)\/*$/{
462	    s//\1/
463	    q
464	  }
465	  /^X\/\(\/\/\)$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\).*/{
470	    s//\1/
471	    q
472	  }
473	  s/.*/./; q'`
474
475# Avoid depending upon Character Ranges.
476as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479as_cr_digits='0123456789'
480as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483  as_lineno_1=$LINENO as_lineno_1a=$LINENO
484  as_lineno_2=$LINENO as_lineno_2a=$LINENO
485  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
488  sed -n '
489    p
490    /[$]LINENO/=
491  ' <$as_myself |
492    sed '
493      t clear
494      :clear
495      s/[$]LINENO.*/&-/
496      t lineno
497      b
498      :lineno
499      N
500      :loop
501      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502      t loop
503      s/-\n.*//
504    ' >$as_me.lineno &&
505  chmod +x "$as_me.lineno" ||
506    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509  # already done that, so ensure we don't try to do so again and fall
510  # in an infinite loop.  This has already happened in practice.
511  _as_can_reexec=no; export _as_can_reexec
512  # Don't try to exec as it changes $[0], causing all sort of problems
513  # (the dirname of $[0] is not the place where we might find the
514  # original and so on.  Autoconf is especially sensitive to this).
515  . "./$as_me.lineno"
516  # Exit status is that of the last command.
517  exit
518}
519
520
521# Determine whether it's possible to make 'echo' print without a newline.
522# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523# for compatibility with existing Makefiles.
524ECHO_C= ECHO_N= ECHO_T=
525case `echo -n x` in #(((((
526-n*)
527  case `echo 'xy\c'` in
528  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
529  xy)  ECHO_C='\c';;
530  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
531       ECHO_T='	';;
532  esac;;
533*)
534  ECHO_N='-n';;
535esac
536
537# For backward compatibility with old third-party macros, we provide
538# the shell variables $as_echo and $as_echo_n.  New code should use
539# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540as_echo='printf %s\n'
541as_echo_n='printf %s'
542
543rm -f conf$$ conf$$.exe conf$$.file
544if test -d conf$$.dir; then
545  rm -f conf$$.dir/conf$$.file
546else
547  rm -f conf$$.dir
548  mkdir conf$$.dir 2>/dev/null
549fi
550if (echo >conf$$.file) 2>/dev/null; then
551  if ln -s conf$$.file conf$$ 2>/dev/null; then
552    as_ln_s='ln -s'
553    # ... but there are two gotchas:
554    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556    # In both cases, we have to default to 'cp -pR'.
557    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558      as_ln_s='cp -pR'
559  elif ln conf$$.file conf$$ 2>/dev/null; then
560    as_ln_s=ln
561  else
562    as_ln_s='cp -pR'
563  fi
564else
565  as_ln_s='cp -pR'
566fi
567rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568rmdir conf$$.dir 2>/dev/null
569
570if mkdir -p . 2>/dev/null; then
571  as_mkdir_p='mkdir -p "$as_dir"'
572else
573  test -d ./-p && rmdir ./-p
574  as_mkdir_p=false
575fi
576
577as_test_x='test -x'
578as_executable_p=as_fn_executable_p
579
580# Sed expression to map a string onto a valid CPP name.
581as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584# Sed expression to map a string onto a valid variable name.
585as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591test -n "$DJDIR" || exec 7<&0 </dev/null
592exec 6>&1
593
594# Name of the host.
595# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596# so uname gets run too.
597ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599#
600# Initializations.
601#
602ac_default_prefix=/usr/local
603ac_clean_files=
604ac_config_libobj_dir=.
605LIBOBJS=
606cross_compiling=no
607subdirs=
608MFLAGS=
609MAKEFLAGS=
610
611# Identity of this package.
612PACKAGE_NAME='libedit'
613PACKAGE_TARNAME='libedit-20250104'
614PACKAGE_VERSION='3.1'
615PACKAGE_STRING='libedit 3.1'
616PACKAGE_BUGREPORT=''
617PACKAGE_URL=''
618
619ac_unique_file="src/strlcat.c"
620# Factoring default headers for most tests.
621ac_includes_default="\
622#include <stddef.h>
623#ifdef HAVE_STDIO_H
624# include <stdio.h>
625#endif
626#ifdef HAVE_STDLIB_H
627# include <stdlib.h>
628#endif
629#ifdef HAVE_STRING_H
630# include <string.h>
631#endif
632#ifdef HAVE_INTTYPES_H
633# include <inttypes.h>
634#endif
635#ifdef HAVE_STDINT_H
636# include <stdint.h>
637#endif
638#ifdef HAVE_STRINGS_H
639# include <strings.h>
640#endif
641#ifdef HAVE_SYS_TYPES_H
642# include <sys/types.h>
643#endif
644#ifdef HAVE_SYS_STAT_H
645# include <sys/stat.h>
646#endif
647#ifdef HAVE_UNISTD_H
648# include <unistd.h>
649#endif"
650
651ac_header_c_list=
652ac_func_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656HAVE_UNVIS_FALSE
657HAVE_UNVIS_TRUE
658HAVE_VIS_FALSE
659HAVE_VIS_TRUE
660HAVE_GETLINE_FALSE
661HAVE_GETLINE_TRUE
662HAVE_STRLCAT_FALSE
663HAVE_STRLCAT_TRUE
664HAVE_STRLCPY_FALSE
665HAVE_STRLCPY_TRUE
666LIBOBJS
667ENABLE_EXAMPLES_FALSE
668ENABLE_EXAMPLES_TRUE
669MANTYPE
670NROFF
671LT_VERSION
672LT_SYS_LIBRARY_PATH
673OTOOL64
674OTOOL
675LIPO
676NMEDIT
677DSYMUTIL
678MANIFEST_TOOL
679RANLIB
680ac_ct_AR
681AR
682DLLTOOL
683OBJDUMP
684FILECMD
685LN_S
686NM
687ac_ct_DUMPBIN
688DUMPBIN
689LD
690FGREP
691EGREP
692GREP
693SED
694host_os
695host_vendor
696host_cpu
697host
698build_os
699build_vendor
700build_cpu
701build
702LIBTOOL
703am__xargs_n
704am__rm_f_notfound
705AM_BACKSLASH
706AM_DEFAULT_VERBOSITY
707AM_DEFAULT_V
708AM_V
709CSCOPE
710ETAGS
711CTAGS
712am__fastdepCC_FALSE
713am__fastdepCC_TRUE
714CCDEPMODE
715am__nodep
716AMDEPBACKSLASH
717AMDEP_FALSE
718AMDEP_TRUE
719am__include
720DEPDIR
721am__untar
722am__tar
723AMTAR
724am__leading_dot
725SET_MAKE
726AWK
727mkdir_p
728MKDIR_P
729INSTALL_STRIP_PROGRAM
730STRIP
731install_sh
732MAKEINFO
733AUTOHEADER
734AUTOMAKE
735AUTOCONF
736ACLOCAL
737VERSION
738PACKAGE
739CYGPATH_W
740am__isrc
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
744OBJEXT
745EXEEXT
746ac_ct_CC
747CPPFLAGS
748LDFLAGS
749CFLAGS
750CC
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770runstatedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL
790am__quote'
791ac_subst_files=''
792ac_user_opts='
793enable_option_checking
794enable_dependency_tracking
795enable_silent_rules
796enable_shared
797enable_static
798enable_pic
799with_pic
800enable_fast_install
801enable_aix_soname
802with_aix_soname
803with_gnu_ld
804with_sysroot
805enable_libtool_lock
806enable_widec
807enable_examples
808'
809      ac_precious_vars='build_alias
810host_alias
811target_alias
812CC
813CFLAGS
814LDFLAGS
815LIBS
816CPPFLAGS
817LT_SYS_LIBRARY_PATH'
818
819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823ac_unrecognized_opts=
824ac_unrecognized_sep=
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
847# (The list follows the same order as the GNU Coding Standards.)
848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
856runstatedir='${localstatedir}/run'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *=)   ac_optarg= ;;
883  *)    ac_optarg=yes ;;
884  esac
885
886  case $ac_dashdash$ac_option in
887  --)
888    ac_dashdash=yes ;;
889
890  -bindir | --bindir | --bindi | --bind | --bin | --bi)
891    ac_prev=bindir ;;
892  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893    bindir=$ac_optarg ;;
894
895  -build | --build | --buil | --bui | --bu)
896    ac_prev=build_alias ;;
897  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898    build_alias=$ac_optarg ;;
899
900  -cache-file | --cache-file | --cache-fil | --cache-fi \
901  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902    ac_prev=cache_file ;;
903  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905    cache_file=$ac_optarg ;;
906
907  --config-cache | -C)
908    cache_file=config.cache ;;
909
910  -datadir | --datadir | --datadi | --datad)
911    ac_prev=datadir ;;
912  -datadir=* | --datadir=* | --datadi=* | --datad=*)
913    datadir=$ac_optarg ;;
914
915  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916  | --dataroo | --dataro | --datar)
917    ac_prev=datarootdir ;;
918  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920    datarootdir=$ac_optarg ;;
921
922  -disable-* | --disable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=`printf "%s\n" "$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--disable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=no ;;
937
938  -docdir | --docdir | --docdi | --doc | --do)
939    ac_prev=docdir ;;
940  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941    docdir=$ac_optarg ;;
942
943  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944    ac_prev=dvidir ;;
945  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946    dvidir=$ac_optarg ;;
947
948  -enable-* | --enable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error $? "invalid feature name: '$ac_useropt'"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=\$ac_optarg ;;
963
964  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966  | --exec | --exe | --ex)
967    ac_prev=exec_prefix ;;
968  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970  | --exec=* | --exe=* | --ex=*)
971    exec_prefix=$ac_optarg ;;
972
973  -gas | --gas | --ga | --g)
974    # Obsolete; use --with-gas.
975    with_gas=yes ;;
976
977  -help | --help | --hel | --he | -h)
978    ac_init_help=long ;;
979  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980    ac_init_help=recursive ;;
981  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982    ac_init_help=short ;;
983
984  -host | --host | --hos | --ho)
985    ac_prev=host_alias ;;
986  -host=* | --host=* | --hos=* | --ho=*)
987    host_alias=$ac_optarg ;;
988
989  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990    ac_prev=htmldir ;;
991  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992  | --ht=*)
993    htmldir=$ac_optarg ;;
994
995  -includedir | --includedir | --includedi | --included | --include \
996  | --includ | --inclu | --incl | --inc)
997    ac_prev=includedir ;;
998  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999  | --includ=* | --inclu=* | --incl=* | --inc=*)
1000    includedir=$ac_optarg ;;
1001
1002  -infodir | --infodir | --infodi | --infod | --info | --inf)
1003    ac_prev=infodir ;;
1004  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005    infodir=$ac_optarg ;;
1006
1007  -libdir | --libdir | --libdi | --libd)
1008    ac_prev=libdir ;;
1009  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010    libdir=$ac_optarg ;;
1011
1012  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013  | --libexe | --libex | --libe)
1014    ac_prev=libexecdir ;;
1015  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016  | --libexe=* | --libex=* | --libe=*)
1017    libexecdir=$ac_optarg ;;
1018
1019  -localedir | --localedir | --localedi | --localed | --locale)
1020    ac_prev=localedir ;;
1021  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022    localedir=$ac_optarg ;;
1023
1024  -localstatedir | --localstatedir | --localstatedi | --localstated \
1025  | --localstate | --localstat | --localsta | --localst | --locals)
1026    ac_prev=localstatedir ;;
1027  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029    localstatedir=$ac_optarg ;;
1030
1031  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032    ac_prev=mandir ;;
1033  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034    mandir=$ac_optarg ;;
1035
1036  -nfp | --nfp | --nf)
1037    # Obsolete; use --without-fp.
1038    with_fp=no ;;
1039
1040  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041  | --no-cr | --no-c | -n)
1042    no_create=yes ;;
1043
1044  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046    no_recursion=yes ;;
1047
1048  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050  | --oldin | --oldi | --old | --ol | --o)
1051    ac_prev=oldincludedir ;;
1052  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055    oldincludedir=$ac_optarg ;;
1056
1057  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058    ac_prev=prefix ;;
1059  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060    prefix=$ac_optarg ;;
1061
1062  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063  | --program-pre | --program-pr | --program-p)
1064    ac_prev=program_prefix ;;
1065  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067    program_prefix=$ac_optarg ;;
1068
1069  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070  | --program-suf | --program-su | --program-s)
1071    ac_prev=program_suffix ;;
1072  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074    program_suffix=$ac_optarg ;;
1075
1076  -program-transform-name | --program-transform-name \
1077  | --program-transform-nam | --program-transform-na \
1078  | --program-transform-n | --program-transform- \
1079  | --program-transform | --program-transfor \
1080  | --program-transfo | --program-transf \
1081  | --program-trans | --program-tran \
1082  | --progr-tra | --program-tr | --program-t)
1083    ac_prev=program_transform_name ;;
1084  -program-transform-name=* | --program-transform-name=* \
1085  | --program-transform-nam=* | --program-transform-na=* \
1086  | --program-transform-n=* | --program-transform-=* \
1087  | --program-transform=* | --program-transfor=* \
1088  | --program-transfo=* | --program-transf=* \
1089  | --program-trans=* | --program-tran=* \
1090  | --progr-tra=* | --program-tr=* | --program-t=*)
1091    program_transform_name=$ac_optarg ;;
1092
1093  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094    ac_prev=pdfdir ;;
1095  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096    pdfdir=$ac_optarg ;;
1097
1098  -psdir | --psdir | --psdi | --psd | --ps)
1099    ac_prev=psdir ;;
1100  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101    psdir=$ac_optarg ;;
1102
1103  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104  | -silent | --silent | --silen | --sile | --sil)
1105    silent=yes ;;
1106
1107  -runstatedir | --runstatedir | --runstatedi | --runstated \
1108  | --runstate | --runstat | --runsta | --runst | --runs \
1109  | --run | --ru | --r)
1110    ac_prev=runstatedir ;;
1111  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1112  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1113  | --run=* | --ru=* | --r=*)
1114    runstatedir=$ac_optarg ;;
1115
1116  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117    ac_prev=sbindir ;;
1118  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119  | --sbi=* | --sb=*)
1120    sbindir=$ac_optarg ;;
1121
1122  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124  | --sharedst | --shareds | --shared | --share | --shar \
1125  | --sha | --sh)
1126    ac_prev=sharedstatedir ;;
1127  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130  | --sha=* | --sh=*)
1131    sharedstatedir=$ac_optarg ;;
1132
1133  -site | --site | --sit)
1134    ac_prev=site ;;
1135  -site=* | --site=* | --sit=*)
1136    site=$ac_optarg ;;
1137
1138  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139    ac_prev=srcdir ;;
1140  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141    srcdir=$ac_optarg ;;
1142
1143  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144  | --syscon | --sysco | --sysc | --sys | --sy)
1145    ac_prev=sysconfdir ;;
1146  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148    sysconfdir=$ac_optarg ;;
1149
1150  -target | --target | --targe | --targ | --tar | --ta | --t)
1151    ac_prev=target_alias ;;
1152  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153    target_alias=$ac_optarg ;;
1154
1155  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156    verbose=yes ;;
1157
1158  -version | --version | --versio | --versi | --vers | -V)
1159    ac_init_version=: ;;
1160
1161  -with-* | --with-*)
1162    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163    # Reject names that are not valid shell variable names.
1164    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165      as_fn_error $? "invalid package name: '$ac_useropt'"
1166    ac_useropt_orig=$ac_useropt
1167    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1168    case $ac_user_opts in
1169      *"
1170"with_$ac_useropt"
1171"*) ;;
1172      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173	 ac_unrecognized_sep=', ';;
1174    esac
1175    eval with_$ac_useropt=\$ac_optarg ;;
1176
1177  -without-* | --without-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error $? "invalid package name: '$ac_useropt'"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=no ;;
1192
1193  --x)
1194    # Obsolete; use --with-x.
1195    with_x=yes ;;
1196
1197  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198  | --x-incl | --x-inc | --x-in | --x-i)
1199    ac_prev=x_includes ;;
1200  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202    x_includes=$ac_optarg ;;
1203
1204  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206    ac_prev=x_libraries ;;
1207  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209    x_libraries=$ac_optarg ;;
1210
1211  -*) as_fn_error $? "unrecognized option: '$ac_option'
1212Try '$0 --help' for more information"
1213    ;;
1214
1215  *=*)
1216    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217    # Reject names that are not valid shell variable names.
1218    case $ac_envvar in #(
1219      '' | [0-9]* | *[!_$as_cr_alnum]* )
1220      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1221    esac
1222    eval $ac_envvar=\$ac_optarg
1223    export $ac_envvar ;;
1224
1225  *)
1226    # FIXME: should be removed in autoconf 3.0.
1227    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1228    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1230    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231    ;;
1232
1233  esac
1234done
1235
1236if test -n "$ac_prev"; then
1237  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238  as_fn_error $? "missing argument to $ac_option"
1239fi
1240
1241if test -n "$ac_unrecognized_opts"; then
1242  case $enable_option_checking in
1243    no) ;;
1244    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246  esac
1247fi
1248
1249# Check all directory arguments for consistency.
1250for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251		datadir sysconfdir sharedstatedir localstatedir includedir \
1252		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253		libdir localedir mandir runstatedir
1254do
1255  eval ac_val=\$$ac_var
1256  # Remove trailing slashes.
1257  case $ac_val in
1258    */ )
1259      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260      eval $ac_var=\$ac_val;;
1261  esac
1262  # Be sure to have absolute directory names.
1263  case $ac_val in
1264    [\\/$]* | ?:[\\/]* )  continue;;
1265    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266  esac
1267  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268done
1269
1270# There might be people who depend on the old broken behavior: '$host'
1271# used to hold the argument of --host etc.
1272# FIXME: To remove some day.
1273build=$build_alias
1274host=$host_alias
1275target=$target_alias
1276
1277# FIXME: To remove some day.
1278if test "x$host_alias" != x; then
1279  if test "x$build_alias" = x; then
1280    cross_compiling=maybe
1281  elif test "x$build_alias" != "x$host_alias"; then
1282    cross_compiling=yes
1283  fi
1284fi
1285
1286ac_tool_prefix=
1287test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289test "$silent" = yes && exec 6>/dev/null
1290
1291
1292ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293ac_ls_di=`ls -di .` &&
1294ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295  as_fn_error $? "working directory cannot be determined"
1296test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297  as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300# Find the source files, if location was not specified.
1301if test -z "$srcdir"; then
1302  ac_srcdir_defaulted=yes
1303  # Try the directory containing this script, then the parent directory.
1304  ac_confdir=`$as_dirname -- "$as_myself" ||
1305$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306	 X"$as_myself" : 'X\(//\)[^/]' \| \
1307	 X"$as_myself" : 'X\(//\)$' \| \
1308	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309printf "%s\n" X"$as_myself" |
1310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\/\)[^/].*/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)$/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\).*/{
1323	    s//\1/
1324	    q
1325	  }
1326	  s/.*/./; q'`
1327  srcdir=$ac_confdir
1328  if test ! -r "$srcdir/$ac_unique_file"; then
1329    srcdir=..
1330  fi
1331else
1332  ac_srcdir_defaulted=no
1333fi
1334if test ! -r "$srcdir/$ac_unique_file"; then
1335  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337fi
1338ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1339ac_abs_confdir=`(
1340	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341	pwd)`
1342# When building in place, set srcdir=.
1343if test "$ac_abs_confdir" = "$ac_pwd"; then
1344  srcdir=.
1345fi
1346# Remove unnecessary trailing slashes from srcdir.
1347# Double slashes in file names in object file debugging info
1348# mess up M-x gdb in Emacs.
1349case $srcdir in
1350*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351esac
1352for ac_var in $ac_precious_vars; do
1353  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354  eval ac_env_${ac_var}_value=\$${ac_var}
1355  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357done
1358
1359#
1360# Report the --help message.
1361#
1362if test "$ac_init_help" = "long"; then
1363  # Omit some internal or obsolete options to make the list less imposing.
1364  # This message is too long to be a string in the A/UX 3.1 sh.
1365  cat <<_ACEOF
1366'configure' configures libedit 3.1 to adapt to many kinds of systems.
1367
1368Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371VAR=VALUE.  See below for descriptions of some of the useful variables.
1372
1373Defaults for the options are specified in brackets.
1374
1375Configuration:
1376  -h, --help              display this help and exit
1377      --help=short        display options specific to this package
1378      --help=recursive    display the short help of all the included packages
1379  -V, --version           display version information and exit
1380  -q, --quiet, --silent   do not print 'checking ...' messages
1381      --cache-file=FILE   cache test results in FILE [disabled]
1382  -C, --config-cache      alias for '--cache-file=config.cache'
1383  -n, --no-create         do not create output files
1384      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1385
1386Installation directories:
1387  --prefix=PREFIX         install architecture-independent files in PREFIX
1388                          [$ac_default_prefix]
1389  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1390                          [PREFIX]
1391
1392By default, 'make install' will install all the files in
1393'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1394an installation prefix other than '$ac_default_prefix' using '--prefix',
1395for instance '--prefix=\$HOME'.
1396
1397For better control, use the options below.
1398
1399Fine tuning of the installation directories:
1400  --bindir=DIR            user executables [EPREFIX/bin]
1401  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1402  --libexecdir=DIR        program executables [EPREFIX/libexec]
1403  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1404  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1405  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1406  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1407  --libdir=DIR            object code libraries [EPREFIX/lib]
1408  --includedir=DIR        C header files [PREFIX/include]
1409  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1410  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1411  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1412  --infodir=DIR           info documentation [DATAROOTDIR/info]
1413  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1414  --mandir=DIR            man documentation [DATAROOTDIR/man]
1415  --docdir=DIR            documentation root
1416                          [DATAROOTDIR/doc/libedit-20250104]
1417  --htmldir=DIR           html documentation [DOCDIR]
1418  --dvidir=DIR            dvi documentation [DOCDIR]
1419  --pdfdir=DIR            pdf documentation [DOCDIR]
1420  --psdir=DIR             ps documentation [DOCDIR]
1421_ACEOF
1422
1423  cat <<\_ACEOF
1424
1425Program names:
1426  --program-prefix=PREFIX            prepend PREFIX to installed program names
1427  --program-suffix=SUFFIX            append SUFFIX to installed program names
1428  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1429
1430System types:
1431  --build=BUILD     configure for building on BUILD [guessed]
1432  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1433_ACEOF
1434fi
1435
1436if test -n "$ac_init_help"; then
1437  case $ac_init_help in
1438     short | recursive ) echo "Configuration of libedit 3.1:";;
1439   esac
1440  cat <<\_ACEOF
1441
1442Optional Features:
1443  --disable-option-checking  ignore unrecognized --enable/--with options
1444  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1445  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1446  --enable-dependency-tracking
1447                          do not reject slow dependency extractors
1448  --disable-dependency-tracking
1449                          speeds up one-time build
1450  --enable-silent-rules   less verbose build output (undo: "make V=1")
1451  --disable-silent-rules  verbose build output (undo: "make V=0")
1452  --enable-shared[=PKGS]  build shared libraries [default=yes]
1453  --enable-static[=PKGS]  build static libraries [default=yes]
1454  --enable-pic[=PKGS]     try to use only PIC/non-PIC objects [default=use
1455                          both]
1456  --enable-fast-install[=PKGS]
1457                          optimize for fast installation [default=yes]
1458  --enable-aix-soname=aix|svr4|both
1459                          shared library versioning (aka "SONAME") variant to
1460                          provide on AIX, [default=aix].
1461  --disable-libtool-lock  avoid locking (might break parallel builds)
1462  --enable-widec          deprecated, wide-character/UTF-8 is always enabled
1463  --enable-examples       build the example programs [default=yes]
1464
1465Optional Packages:
1466  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1467  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1468  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1469  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1470                          compiler's sysroot if not specified).
1471
1472Some influential environment variables:
1473  CC          C compiler command
1474  CFLAGS      C compiler flags
1475  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476              nonstandard directory <lib dir>
1477  LIBS        libraries to pass to the linker, e.g. -l<library>
1478  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479              you have headers in a nonstandard directory <include dir>
1480  LT_SYS_LIBRARY_PATH
1481              User-defined run-time library search path.
1482
1483Use these variables to override the choices made by 'configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to the package provider.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492  # If there are subdirs, report their specific --help.
1493  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494    test -d "$ac_dir" ||
1495      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496      continue
1497    ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1503  # A ".." for each directory in $ac_dir_suffix.
1504  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505  case $ac_top_builddir_sub in
1506  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508  esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516  .)  # We are building in place.
1517    ac_srcdir=.
1518    ac_top_srcdir=$ac_top_builddir_sub
1519    ac_abs_top_srcdir=$ac_pwd ;;
1520  [\\/]* | ?:[\\/]* )  # Absolute name.
1521    ac_srcdir=$srcdir$ac_dir_suffix;
1522    ac_top_srcdir=$srcdir
1523    ac_abs_top_srcdir=$srcdir ;;
1524  *) # Relative name.
1525    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526    ac_top_srcdir=$ac_top_build_prefix$srcdir
1527    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531    cd "$ac_dir" || { ac_status=$?; continue; }
1532    # Check for configure.gnu first; this name is used for a wrapper for
1533    # Metaconfig's "Configure" on case-insensitive file systems.
1534    if test -f "$ac_srcdir/configure.gnu"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537    elif test -f "$ac_srcdir/configure"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure" --help=recursive
1540    else
1541      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542    fi || ac_status=$?
1543    cd "$ac_pwd" || { ac_status=$?; break; }
1544  done
1545fi
1546
1547test -n "$ac_init_help" && exit $ac_status
1548if $ac_init_version; then
1549  cat <<\_ACEOF
1550libedit configure 3.1
1551generated by GNU Autoconf 2.72
1552
1553Copyright (C) 2023 Free Software Foundation, Inc.
1554This configure script is free software; the Free Software Foundation
1555gives unlimited permission to copy, distribute and modify it.
1556_ACEOF
1557  exit
1558fi
1559
1560## ------------------------ ##
1561## Autoconf initialization. ##
1562## ------------------------ ##
1563
1564# ac_fn_c_try_compile LINENO
1565# --------------------------
1566# Try to compile conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_compile ()
1568{
1569  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570  rm -f conftest.$ac_objext conftest.beam
1571  if { { ac_try="$ac_compile"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577printf "%s\n" "$ac_try_echo"; } >&5
1578  (eval "$ac_compile") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } && {
1587	 test -z "$ac_c_werror_flag" ||
1588	 test ! -s conftest.err
1589       } && test -s conftest.$ac_objext
1590then :
1591  ac_retval=0
1592else case e in #(
1593  e) printf "%s\n" "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596	ac_retval=1 ;;
1597esac
1598fi
1599  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600  as_fn_set_status $ac_retval
1601
1602} # ac_fn_c_try_compile
1603
1604# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1605# -------------------------------------------------------
1606# Tests whether HEADER exists and can be compiled using the include files in
1607# INCLUDES, setting the cache variable VAR accordingly.
1608ac_fn_c_check_header_compile ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612printf %s "checking for $2... " >&6; }
1613if eval test \${$3+y}
1614then :
1615  printf %s "(cached) " >&6
1616else case e in #(
1617  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618/* end confdefs.h.  */
1619$4
1620#include <$2>
1621_ACEOF
1622if ac_fn_c_try_compile "$LINENO"
1623then :
1624  eval "$3=yes"
1625else case e in #(
1626  e) eval "$3=no" ;;
1627esac
1628fi
1629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1630esac
1631fi
1632eval ac_res=\$$3
1633	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634printf "%s\n" "$ac_res" >&6; }
1635  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637} # ac_fn_c_check_header_compile
1638
1639# ac_fn_c_try_link LINENO
1640# -----------------------
1641# Try to link conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_link ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1646  if { { ac_try="$ac_link"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652printf "%s\n" "$ac_try_echo"; } >&5
1653  (eval "$ac_link") 2>conftest.err
1654  ac_status=$?
1655  if test -s conftest.err; then
1656    grep -v '^ *+' conftest.err >conftest.er1
1657    cat conftest.er1 >&5
1658    mv -f conftest.er1 conftest.err
1659  fi
1660  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } && {
1662	 test -z "$ac_c_werror_flag" ||
1663	 test ! -s conftest.err
1664       } && test -s conftest$ac_exeext && {
1665	 test "$cross_compiling" = yes ||
1666	 test -x conftest$ac_exeext
1667       }
1668then :
1669  ac_retval=0
1670else case e in #(
1671  e) printf "%s\n" "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674	ac_retval=1 ;;
1675esac
1676fi
1677  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1678  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1679  # interfere with the next link command; also delete a directory that is
1680  # left behind by Apple's compiler.  We do this before executing the actions.
1681  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683  as_fn_set_status $ac_retval
1684
1685} # ac_fn_c_try_link
1686
1687# ac_fn_c_check_func LINENO FUNC VAR
1688# ----------------------------------
1689# Tests whether FUNC exists, setting the cache variable VAR accordingly
1690ac_fn_c_check_func ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694printf %s "checking for $2... " >&6; }
1695if eval test \${$3+y}
1696then :
1697  printf %s "(cached) " >&6
1698else case e in #(
1699  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h.  */
1701/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1702   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1703#define $2 innocuous_$2
1704
1705/* System header to define __stub macros and hopefully few prototypes,
1706   which can conflict with char $2 (void); below.  */
1707
1708#include <limits.h>
1709#undef $2
1710
1711/* Override any GCC internal prototype to avoid an error.
1712   Use char because int might match the return type of a GCC
1713   builtin and then its argument prototype would still apply.  */
1714#ifdef __cplusplus
1715extern "C"
1716#endif
1717char $2 (void);
1718/* The GNU C library defines this for functions which it implements
1719    to always fail with ENOSYS.  Some functions are actually named
1720    something starting with __ and the normal name is an alias.  */
1721#if defined __stub_$2 || defined __stub___$2
1722choke me
1723#endif
1724
1725int
1726main (void)
1727{
1728return $2 ();
1729  ;
1730  return 0;
1731}
1732_ACEOF
1733if ac_fn_c_try_link "$LINENO"
1734then :
1735  eval "$3=yes"
1736else case e in #(
1737  e) eval "$3=no" ;;
1738esac
1739fi
1740rm -f core conftest.err conftest.$ac_objext conftest.beam \
1741    conftest$ac_exeext conftest.$ac_ext ;;
1742esac
1743fi
1744eval ac_res=\$$3
1745	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746printf "%s\n" "$ac_res" >&6; }
1747  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749} # ac_fn_c_check_func
1750
1751# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1752# ----------------------------------------------------
1753# Tries to find if the field MEMBER exists in type AGGR, after including
1754# INCLUDES, setting cache variable VAR accordingly.
1755ac_fn_c_check_member ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1759printf %s "checking for $2.$3... " >&6; }
1760if eval test \${$4+y}
1761then :
1762  printf %s "(cached) " >&6
1763else case e in #(
1764  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h.  */
1766$5
1767int
1768main (void)
1769{
1770static $2 ac_aggr;
1771if (ac_aggr.$3)
1772return 0;
1773  ;
1774  return 0;
1775}
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"
1778then :
1779  eval "$4=yes"
1780else case e in #(
1781  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783$5
1784int
1785main (void)
1786{
1787static $2 ac_aggr;
1788if (sizeof ac_aggr.$3)
1789return 0;
1790  ;
1791  return 0;
1792}
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"
1795then :
1796  eval "$4=yes"
1797else case e in #(
1798  e) eval "$4=no" ;;
1799esac
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1802esac
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1805esac
1806fi
1807eval ac_res=\$$4
1808	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809printf "%s\n" "$ac_res" >&6; }
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812} # ac_fn_c_check_member
1813
1814# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1815# -------------------------------------------
1816# Tests whether TYPE exists after having included INCLUDES, setting cache
1817# variable VAR accordingly.
1818ac_fn_c_check_type ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822printf %s "checking for $2... " >&6; }
1823if eval test \${$3+y}
1824then :
1825  printf %s "(cached) " >&6
1826else case e in #(
1827  e) eval "$3=no"
1828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830$4
1831int
1832main (void)
1833{
1834if (sizeof ($2))
1835	 return 0;
1836  ;
1837  return 0;
1838}
1839_ACEOF
1840if ac_fn_c_try_compile "$LINENO"
1841then :
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844$4
1845int
1846main (void)
1847{
1848if (sizeof (($2)))
1849	    return 0;
1850  ;
1851  return 0;
1852}
1853_ACEOF
1854if ac_fn_c_try_compile "$LINENO"
1855then :
1856
1857else case e in #(
1858  e) eval "$3=yes" ;;
1859esac
1860fi
1861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1862fi
1863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1864esac
1865fi
1866eval ac_res=\$$3
1867	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868printf "%s\n" "$ac_res" >&6; }
1869  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871} # ac_fn_c_check_type
1872
1873# ac_fn_c_try_run LINENO
1874# ----------------------
1875# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1876# executables *can* be run.
1877ac_fn_c_try_run ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  if { { ac_try="$ac_link"
1881case "(($ac_try" in
1882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883  *) ac_try_echo=$ac_try;;
1884esac
1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886printf "%s\n" "$ac_try_echo"; } >&5
1887  (eval "$ac_link") 2>&5
1888  ac_status=$?
1889  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1891  { { case "(($ac_try" in
1892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893  *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896printf "%s\n" "$ac_try_echo"; } >&5
1897  (eval "$ac_try") 2>&5
1898  ac_status=$?
1899  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900  test $ac_status = 0; }; }
1901then :
1902  ac_retval=0
1903else case e in #(
1904  e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1905       printf "%s\n" "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908       ac_retval=$ac_status ;;
1909esac
1910fi
1911  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913  as_fn_set_status $ac_retval
1914
1915} # ac_fn_c_try_run
1916ac_configure_args_raw=
1917for ac_arg
1918do
1919  case $ac_arg in
1920  *\'*)
1921    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1922  esac
1923  as_fn_append ac_configure_args_raw " '$ac_arg'"
1924done
1925
1926case $ac_configure_args_raw in
1927  *$as_nl*)
1928    ac_safe_unquote= ;;
1929  *)
1930    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1931    ac_unsafe_a="$ac_unsafe_z#~"
1932    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1933    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1934esac
1935
1936cat >config.log <<_ACEOF
1937This file contains any messages produced by compilers while
1938running configure, to aid debugging if configure makes a mistake.
1939
1940It was created by libedit $as_me 3.1, which was
1941generated by GNU Autoconf 2.72.  Invocation command line was
1942
1943  $ $0$ac_configure_args_raw
1944
1945_ACEOF
1946exec 5>>config.log
1947{
1948cat <<_ASUNAME
1949## --------- ##
1950## Platform. ##
1951## --------- ##
1952
1953hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1954uname -m = `(uname -m) 2>/dev/null || echo unknown`
1955uname -r = `(uname -r) 2>/dev/null || echo unknown`
1956uname -s = `(uname -s) 2>/dev/null || echo unknown`
1957uname -v = `(uname -v) 2>/dev/null || echo unknown`
1958
1959/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1960/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1961
1962/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1963/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1964/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1965/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1966/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1967/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1968/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1969
1970_ASUNAME
1971
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975  IFS=$as_save_IFS
1976  case $as_dir in #(((
1977    '') as_dir=./ ;;
1978    */) ;;
1979    *) as_dir=$as_dir/ ;;
1980  esac
1981    printf "%s\n" "PATH: $as_dir"
1982  done
1983IFS=$as_save_IFS
1984
1985} >&5
1986
1987cat >&5 <<_ACEOF
1988
1989
1990## ----------- ##
1991## Core tests. ##
1992## ----------- ##
1993
1994_ACEOF
1995
1996
1997# Keep a trace of the command line.
1998# Strip out --no-create and --no-recursion so they do not pile up.
1999# Strip out --silent because we don't want to record it for future runs.
2000# Also quote any args containing shell meta-characters.
2001# Make two passes to allow for proper duplicate-argument suppression.
2002ac_configure_args=
2003ac_configure_args0=
2004ac_configure_args1=
2005ac_must_keep_next=false
2006for ac_pass in 1 2
2007do
2008  for ac_arg
2009  do
2010    case $ac_arg in
2011    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2012    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2013    | -silent | --silent | --silen | --sile | --sil)
2014      continue ;;
2015    *\'*)
2016      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2017    esac
2018    case $ac_pass in
2019    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2020    2)
2021      as_fn_append ac_configure_args1 " '$ac_arg'"
2022      if test $ac_must_keep_next = true; then
2023	ac_must_keep_next=false # Got value, back to normal.
2024      else
2025	case $ac_arg in
2026	  *=* | --config-cache | -C | -disable-* | --disable-* \
2027	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2028	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2029	  | -with-* | --with-* | -without-* | --without-* | --x)
2030	    case "$ac_configure_args0 " in
2031	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2032	    esac
2033	    ;;
2034	  -* ) ac_must_keep_next=true ;;
2035	esac
2036      fi
2037      as_fn_append ac_configure_args " '$ac_arg'"
2038      ;;
2039    esac
2040  done
2041done
2042{ ac_configure_args0=; unset ac_configure_args0;}
2043{ ac_configure_args1=; unset ac_configure_args1;}
2044
2045# When interrupted or exit'd, cleanup temporary files, and complete
2046# config.log.  We remove comments because anyway the quotes in there
2047# would cause problems or look ugly.
2048# WARNING: Use '\'' to represent an apostrophe within the trap.
2049# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2050trap 'exit_status=$?
2051  # Sanitize IFS.
2052  IFS=" ""	$as_nl"
2053  # Save into config.log some information that might help in debugging.
2054  {
2055    echo
2056
2057    printf "%s\n" "## ---------------- ##
2058## Cache variables. ##
2059## ---------------- ##"
2060    echo
2061    # The following way of writing the cache mishandles newlines in values,
2062(
2063  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2064    eval ac_val=\$$ac_var
2065    case $ac_val in #(
2066    *${as_nl}*)
2067      case $ac_var in #(
2068      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2069printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2070      esac
2071      case $ac_var in #(
2072      _ | IFS | as_nl) ;; #(
2073      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2074      *) { eval $ac_var=; unset $ac_var;} ;;
2075      esac ;;
2076    esac
2077  done
2078  (set) 2>&1 |
2079    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2080    *${as_nl}ac_space=\ *)
2081      sed -n \
2082	"s/'\''/'\''\\\\'\'''\''/g;
2083	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2084      ;; #(
2085    *)
2086      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2087      ;;
2088    esac |
2089    sort
2090)
2091    echo
2092
2093    printf "%s\n" "## ----------------- ##
2094## Output variables. ##
2095## ----------------- ##"
2096    echo
2097    for ac_var in $ac_subst_vars
2098    do
2099      eval ac_val=\$$ac_var
2100      case $ac_val in
2101      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102      esac
2103      printf "%s\n" "$ac_var='\''$ac_val'\''"
2104    done | sort
2105    echo
2106
2107    if test -n "$ac_subst_files"; then
2108      printf "%s\n" "## ------------------- ##
2109## File substitutions. ##
2110## ------------------- ##"
2111      echo
2112      for ac_var in $ac_subst_files
2113      do
2114	eval ac_val=\$$ac_var
2115	case $ac_val in
2116	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117	esac
2118	printf "%s\n" "$ac_var='\''$ac_val'\''"
2119      done | sort
2120      echo
2121    fi
2122
2123    if test -s confdefs.h; then
2124      printf "%s\n" "## ----------- ##
2125## confdefs.h. ##
2126## ----------- ##"
2127      echo
2128      cat confdefs.h
2129      echo
2130    fi
2131    test "$ac_signal" != 0 &&
2132      printf "%s\n" "$as_me: caught signal $ac_signal"
2133    printf "%s\n" "$as_me: exit $exit_status"
2134  } >&5
2135  rm -f core *.core core.conftest.* &&
2136    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2137    exit $exit_status
2138' 0
2139for ac_signal in 1 2 13 15; do
2140  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2141done
2142ac_signal=0
2143
2144# confdefs.h avoids OS command line length limits that DEFS can exceed.
2145rm -f -r conftest* confdefs.h
2146
2147printf "%s\n" "/* confdefs.h */" > confdefs.h
2148
2149# Predefined preprocessor variables.
2150
2151printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2152
2153printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2154
2155printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2156
2157printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2158
2159printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2160
2161printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2162
2163
2164# Let the site file select an alternate cache file if it wants to.
2165# Prefer an explicitly selected file to automatically selected ones.
2166if test -n "$CONFIG_SITE"; then
2167  ac_site_files="$CONFIG_SITE"
2168elif test "x$prefix" != xNONE; then
2169  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2170else
2171  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2172fi
2173
2174for ac_site_file in $ac_site_files
2175do
2176  case $ac_site_file in #(
2177  */*) :
2178     ;; #(
2179  *) :
2180    ac_site_file=./$ac_site_file ;;
2181esac
2182  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2183    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2184printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2185    sed 's/^/| /' "$ac_site_file" >&5
2186    . "$ac_site_file" \
2187      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2188printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2189as_fn_error $? "failed to load site script $ac_site_file
2190See 'config.log' for more details" "$LINENO" 5; }
2191  fi
2192done
2193
2194if test -r "$cache_file"; then
2195  # Some versions of bash will fail to source /dev/null (special files
2196  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2197  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2198    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2199printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2200    case $cache_file in
2201      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2202      *)                      . "./$cache_file";;
2203    esac
2204  fi
2205else
2206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2207printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2208  >$cache_file
2209fi
2210
2211as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2212# Test code for whether the C compiler supports C89 (global declarations)
2213ac_c_conftest_c89_globals='
2214/* Does the compiler advertise C89 conformance?
2215   Do not test the value of __STDC__, because some compilers set it to 0
2216   while being otherwise adequately conformant. */
2217#if !defined __STDC__
2218# error "Compiler does not advertise C89 conformance"
2219#endif
2220
2221#include <stddef.h>
2222#include <stdarg.h>
2223struct stat;
2224/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2225struct buf { int x; };
2226struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2227static char *e (char **p, int i)
2228{
2229  return p[i];
2230}
2231static char *f (char * (*g) (char **, int), char **p, ...)
2232{
2233  char *s;
2234  va_list v;
2235  va_start (v,p);
2236  s = g (p, va_arg (v,int));
2237  va_end (v);
2238  return s;
2239}
2240
2241/* C89 style stringification. */
2242#define noexpand_stringify(a) #a
2243const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2244
2245/* C89 style token pasting.  Exercises some of the corner cases that
2246   e.g. old MSVC gets wrong, but not very hard. */
2247#define noexpand_concat(a,b) a##b
2248#define expand_concat(a,b) noexpand_concat(a,b)
2249extern int vA;
2250extern int vbee;
2251#define aye A
2252#define bee B
2253int *pvA = &expand_concat(v,aye);
2254int *pvbee = &noexpand_concat(v,bee);
2255
2256/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2257   function prototypes and stuff, but not \xHH hex character constants.
2258   These do not provoke an error unfortunately, instead are silently treated
2259   as an "x".  The following induces an error, until -std is added to get
2260   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2261   array size at least.  It is necessary to write \x00 == 0 to get something
2262   that is true only with -std.  */
2263int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2264
2265/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2266   inside strings and character constants.  */
2267#define FOO(x) '\''x'\''
2268int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2269
2270int test (int i, double x);
2271struct s1 {int (*f) (int a);};
2272struct s2 {int (*f) (double a);};
2273int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2274               int, int);'
2275
2276# Test code for whether the C compiler supports C89 (body of main).
2277ac_c_conftest_c89_main='
2278ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2279'
2280
2281# Test code for whether the C compiler supports C99 (global declarations)
2282ac_c_conftest_c99_globals='
2283/* Does the compiler advertise C99 conformance? */
2284#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2285# error "Compiler does not advertise C99 conformance"
2286#endif
2287
2288// See if C++-style comments work.
2289
2290#include <stdbool.h>
2291extern int puts (const char *);
2292extern int printf (const char *, ...);
2293extern int dprintf (int, const char *, ...);
2294extern void *malloc (size_t);
2295extern void free (void *);
2296
2297// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2298// dprintf is used instead of fprintf to avoid needing to declare
2299// FILE and stderr.
2300#define debug(...) dprintf (2, __VA_ARGS__)
2301#define showlist(...) puts (#__VA_ARGS__)
2302#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2303static void
2304test_varargs_macros (void)
2305{
2306  int x = 1234;
2307  int y = 5678;
2308  debug ("Flag");
2309  debug ("X = %d\n", x);
2310  showlist (The first, second, and third items.);
2311  report (x>y, "x is %d but y is %d", x, y);
2312}
2313
2314// Check long long types.
2315#define BIG64 18446744073709551615ull
2316#define BIG32 4294967295ul
2317#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2318#if !BIG_OK
2319  #error "your preprocessor is broken"
2320#endif
2321#if BIG_OK
2322#else
2323  #error "your preprocessor is broken"
2324#endif
2325static long long int bignum = -9223372036854775807LL;
2326static unsigned long long int ubignum = BIG64;
2327
2328struct incomplete_array
2329{
2330  int datasize;
2331  double data[];
2332};
2333
2334struct named_init {
2335  int number;
2336  const wchar_t *name;
2337  double average;
2338};
2339
2340typedef const char *ccp;
2341
2342static inline int
2343test_restrict (ccp restrict text)
2344{
2345  // Iterate through items via the restricted pointer.
2346  // Also check for declarations in for loops.
2347  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2348    continue;
2349  return 0;
2350}
2351
2352// Check varargs and va_copy.
2353static bool
2354test_varargs (const char *format, ...)
2355{
2356  va_list args;
2357  va_start (args, format);
2358  va_list args_copy;
2359  va_copy (args_copy, args);
2360
2361  const char *str = "";
2362  int number = 0;
2363  float fnumber = 0;
2364
2365  while (*format)
2366    {
2367      switch (*format++)
2368	{
2369	case '\''s'\'': // string
2370	  str = va_arg (args_copy, const char *);
2371	  break;
2372	case '\''d'\'': // int
2373	  number = va_arg (args_copy, int);
2374	  break;
2375	case '\''f'\'': // float
2376	  fnumber = va_arg (args_copy, double);
2377	  break;
2378	default:
2379	  break;
2380	}
2381    }
2382  va_end (args_copy);
2383  va_end (args);
2384
2385  return *str && number && fnumber;
2386}
2387'
2388
2389# Test code for whether the C compiler supports C99 (body of main).
2390ac_c_conftest_c99_main='
2391  // Check bool.
2392  _Bool success = false;
2393  success |= (argc != 0);
2394
2395  // Check restrict.
2396  if (test_restrict ("String literal") == 0)
2397    success = true;
2398  char *restrict newvar = "Another string";
2399
2400  // Check varargs.
2401  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2402  test_varargs_macros ();
2403
2404  // Check flexible array members.
2405  struct incomplete_array *ia =
2406    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2407  ia->datasize = 10;
2408  for (int i = 0; i < ia->datasize; ++i)
2409    ia->data[i] = i * 1.234;
2410  // Work around memory leak warnings.
2411  free (ia);
2412
2413  // Check named initializers.
2414  struct named_init ni = {
2415    .number = 34,
2416    .name = L"Test wide string",
2417    .average = 543.34343,
2418  };
2419
2420  ni.number = 58;
2421
2422  int dynamic_array[ni.number];
2423  dynamic_array[0] = argv[0][0];
2424  dynamic_array[ni.number - 1] = 543;
2425
2426  // work around unused variable warnings
2427  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2428	 || dynamic_array[ni.number - 1] != 543);
2429'
2430
2431# Test code for whether the C compiler supports C11 (global declarations)
2432ac_c_conftest_c11_globals='
2433/* Does the compiler advertise C11 conformance? */
2434#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2435# error "Compiler does not advertise C11 conformance"
2436#endif
2437
2438// Check _Alignas.
2439char _Alignas (double) aligned_as_double;
2440char _Alignas (0) no_special_alignment;
2441extern char aligned_as_int;
2442char _Alignas (0) _Alignas (int) aligned_as_int;
2443
2444// Check _Alignof.
2445enum
2446{
2447  int_alignment = _Alignof (int),
2448  int_array_alignment = _Alignof (int[100]),
2449  char_alignment = _Alignof (char)
2450};
2451_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2452
2453// Check _Noreturn.
2454int _Noreturn does_not_return (void) { for (;;) continue; }
2455
2456// Check _Static_assert.
2457struct test_static_assert
2458{
2459  int x;
2460  _Static_assert (sizeof (int) <= sizeof (long int),
2461                  "_Static_assert does not work in struct");
2462  long int y;
2463};
2464
2465// Check UTF-8 literals.
2466#define u8 syntax error!
2467char const utf8_literal[] = u8"happens to be ASCII" "another string";
2468
2469// Check duplicate typedefs.
2470typedef long *long_ptr;
2471typedef long int *long_ptr;
2472typedef long_ptr long_ptr;
2473
2474// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2475struct anonymous
2476{
2477  union {
2478    struct { int i; int j; };
2479    struct { int k; long int l; } w;
2480  };
2481  int m;
2482} v1;
2483'
2484
2485# Test code for whether the C compiler supports C11 (body of main).
2486ac_c_conftest_c11_main='
2487  _Static_assert ((offsetof (struct anonymous, i)
2488		   == offsetof (struct anonymous, w.k)),
2489		  "Anonymous union alignment botch");
2490  v1.i = 2;
2491  v1.w.k = 5;
2492  ok |= v1.i != 5;
2493'
2494
2495# Test code for whether the C compiler supports C11 (complete).
2496ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2497${ac_c_conftest_c99_globals}
2498${ac_c_conftest_c11_globals}
2499
2500int
2501main (int argc, char **argv)
2502{
2503  int ok = 0;
2504  ${ac_c_conftest_c89_main}
2505  ${ac_c_conftest_c99_main}
2506  ${ac_c_conftest_c11_main}
2507  return ok;
2508}
2509"
2510
2511# Test code for whether the C compiler supports C99 (complete).
2512ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2513${ac_c_conftest_c99_globals}
2514
2515int
2516main (int argc, char **argv)
2517{
2518  int ok = 0;
2519  ${ac_c_conftest_c89_main}
2520  ${ac_c_conftest_c99_main}
2521  return ok;
2522}
2523"
2524
2525# Test code for whether the C compiler supports C89 (complete).
2526ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2527
2528int
2529main (int argc, char **argv)
2530{
2531  int ok = 0;
2532  ${ac_c_conftest_c89_main}
2533  return ok;
2534}
2535"
2536
2537as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2538as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2539as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2540as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2541as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2542as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2543as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2544as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2545as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2546as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2547as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2548as_fn_append ac_func_c_list " fork HAVE_FORK"
2549as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2550
2551# Auxiliary files required by this configure script.
2552ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2553
2554# Locations in which to look for auxiliary files.
2555ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2556
2557# Search for a directory containing all of the required auxiliary files,
2558# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2559# If we don't find one directory that contains all the files we need,
2560# we report the set of missing files from the *first* directory in
2561# $ac_aux_dir_candidates and give up.
2562ac_missing_aux_files=""
2563ac_first_candidate=:
2564printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566as_found=false
2567for as_dir in $ac_aux_dir_candidates
2568do
2569  IFS=$as_save_IFS
2570  case $as_dir in #(((
2571    '') as_dir=./ ;;
2572    */) ;;
2573    *) as_dir=$as_dir/ ;;
2574  esac
2575  as_found=:
2576
2577  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2578  ac_aux_dir_found=yes
2579  ac_install_sh=
2580  for ac_aux in $ac_aux_files
2581  do
2582    # As a special case, if "install-sh" is required, that requirement
2583    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2584    # and $ac_install_sh is set appropriately for whichever one is found.
2585    if test x"$ac_aux" = x"install-sh"
2586    then
2587      if test -f "${as_dir}install-sh"; then
2588        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2589        ac_install_sh="${as_dir}install-sh -c"
2590      elif test -f "${as_dir}install.sh"; then
2591        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2592        ac_install_sh="${as_dir}install.sh -c"
2593      elif test -f "${as_dir}shtool"; then
2594        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2595        ac_install_sh="${as_dir}shtool install -c"
2596      else
2597        ac_aux_dir_found=no
2598        if $ac_first_candidate; then
2599          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2600        else
2601          break
2602        fi
2603      fi
2604    else
2605      if test -f "${as_dir}${ac_aux}"; then
2606        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2607      else
2608        ac_aux_dir_found=no
2609        if $ac_first_candidate; then
2610          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2611        else
2612          break
2613        fi
2614      fi
2615    fi
2616  done
2617  if test "$ac_aux_dir_found" = yes; then
2618    ac_aux_dir="$as_dir"
2619    break
2620  fi
2621  ac_first_candidate=false
2622
2623  as_found=false
2624done
2625IFS=$as_save_IFS
2626if $as_found
2627then :
2628
2629else case e in #(
2630  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2631esac
2632fi
2633
2634
2635# These three variables are undocumented and unsupported,
2636# and are intended to be withdrawn in a future Autoconf release.
2637# They can cause serious problems if a builder's source tree is in a directory
2638# whose full name contains unusual characters.
2639if test -f "${ac_aux_dir}config.guess"; then
2640  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2641fi
2642if test -f "${ac_aux_dir}config.sub"; then
2643  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2644fi
2645if test -f "$ac_aux_dir/configure"; then
2646  ac_configure="$SHELL ${ac_aux_dir}configure"
2647fi
2648
2649# Check that the precious variables saved in the cache have kept the same
2650# value.
2651ac_cache_corrupted=false
2652for ac_var in $ac_precious_vars; do
2653  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2654  eval ac_new_set=\$ac_env_${ac_var}_set
2655  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2656  eval ac_new_val=\$ac_env_${ac_var}_value
2657  case $ac_old_set,$ac_new_set in
2658    set,)
2659      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2660printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2661      ac_cache_corrupted=: ;;
2662    ,set)
2663      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2664printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2665      ac_cache_corrupted=: ;;
2666    ,);;
2667    *)
2668      if test "x$ac_old_val" != "x$ac_new_val"; then
2669	# differences in whitespace do not lead to failure.
2670	ac_old_val_w=`echo x $ac_old_val`
2671	ac_new_val_w=`echo x $ac_new_val`
2672	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2673	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2674printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2675	  ac_cache_corrupted=:
2676	else
2677	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2678printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2679	  eval $ac_var=\$ac_old_val
2680	fi
2681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2682printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2684printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2685      fi;;
2686  esac
2687  # Pass precious variables to config.status.
2688  if test "$ac_new_set" = set; then
2689    case $ac_new_val in
2690    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2691    *) ac_arg=$ac_var=$ac_new_val ;;
2692    esac
2693    case " $ac_configure_args " in
2694      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2695      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2696    esac
2697  fi
2698done
2699if $ac_cache_corrupted; then
2700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2701printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2703printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2704  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2705	    and start over" "$LINENO" 5
2706fi
2707## -------------------- ##
2708## Main body of script. ##
2709## -------------------- ##
2710
2711ac_ext=c
2712ac_cpp='$CPP $CPPFLAGS'
2713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716
2717
2718
2719
2720ac_config_headers="$ac_config_headers config.h"
2721
2722
2723# features of Posix that are extensions to C (define _GNU_SOURCE)
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735# Expand $ac_aux_dir to an absolute path.
2736am_aux_dir=`cd "$ac_aux_dir" && pwd`
2737
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743if test -n "$ac_tool_prefix"; then
2744  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2745set dummy ${ac_tool_prefix}gcc; ac_word=$2
2746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747printf %s "checking for $ac_word... " >&6; }
2748if test ${ac_cv_prog_CC+y}
2749then :
2750  printf %s "(cached) " >&6
2751else case e in #(
2752  e) if test -n "$CC"; then
2753  ac_cv_prog_CC="$CC" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  case $as_dir in #(((
2760    '') as_dir=./ ;;
2761    */) ;;
2762    *) as_dir=$as_dir/ ;;
2763  esac
2764    for ac_exec_ext in '' $ac_executable_extensions; do
2765  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2766    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2767    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2768    break 2
2769  fi
2770done
2771  done
2772IFS=$as_save_IFS
2773
2774fi ;;
2775esac
2776fi
2777CC=$ac_cv_prog_CC
2778if test -n "$CC"; then
2779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780printf "%s\n" "$CC" >&6; }
2781else
2782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783printf "%s\n" "no" >&6; }
2784fi
2785
2786
2787fi
2788if test -z "$ac_cv_prog_CC"; then
2789  ac_ct_CC=$CC
2790  # Extract the first word of "gcc", so it can be a program name with args.
2791set dummy gcc; ac_word=$2
2792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793printf %s "checking for $ac_word... " >&6; }
2794if test ${ac_cv_prog_ac_ct_CC+y}
2795then :
2796  printf %s "(cached) " >&6
2797else case e in #(
2798  e) if test -n "$ac_ct_CC"; then
2799  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  case $as_dir in #(((
2806    '') as_dir=./ ;;
2807    */) ;;
2808    *) as_dir=$as_dir/ ;;
2809  esac
2810    for ac_exec_ext in '' $ac_executable_extensions; do
2811  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2812    ac_cv_prog_ac_ct_CC="gcc"
2813    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2814    break 2
2815  fi
2816done
2817  done
2818IFS=$as_save_IFS
2819
2820fi ;;
2821esac
2822fi
2823ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824if test -n "$ac_ct_CC"; then
2825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2826printf "%s\n" "$ac_ct_CC" >&6; }
2827else
2828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829printf "%s\n" "no" >&6; }
2830fi
2831
2832  if test "x$ac_ct_CC" = x; then
2833    CC=""
2834  else
2835    case $cross_compiling:$ac_tool_warned in
2836yes:)
2837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2838printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2839ac_tool_warned=yes ;;
2840esac
2841    CC=$ac_ct_CC
2842  fi
2843else
2844  CC="$ac_cv_prog_CC"
2845fi
2846
2847if test -z "$CC"; then
2848          if test -n "$ac_tool_prefix"; then
2849    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2850set dummy ${ac_tool_prefix}cc; ac_word=$2
2851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852printf %s "checking for $ac_word... " >&6; }
2853if test ${ac_cv_prog_CC+y}
2854then :
2855  printf %s "(cached) " >&6
2856else case e in #(
2857  e) if test -n "$CC"; then
2858  ac_cv_prog_CC="$CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863  IFS=$as_save_IFS
2864  case $as_dir in #(((
2865    '') as_dir=./ ;;
2866    */) ;;
2867    *) as_dir=$as_dir/ ;;
2868  esac
2869    for ac_exec_ext in '' $ac_executable_extensions; do
2870  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2871    ac_cv_prog_CC="${ac_tool_prefix}cc"
2872    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2873    break 2
2874  fi
2875done
2876  done
2877IFS=$as_save_IFS
2878
2879fi ;;
2880esac
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885printf "%s\n" "$CC" >&6; }
2886else
2887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888printf "%s\n" "no" >&6; }
2889fi
2890
2891
2892  fi
2893fi
2894if test -z "$CC"; then
2895  # Extract the first word of "cc", so it can be a program name with args.
2896set dummy cc; ac_word=$2
2897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898printf %s "checking for $ac_word... " >&6; }
2899if test ${ac_cv_prog_CC+y}
2900then :
2901  printf %s "(cached) " >&6
2902else case e in #(
2903  e) if test -n "$CC"; then
2904  ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
2906  ac_prog_rejected=no
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  case $as_dir in #(((
2912    '') as_dir=./ ;;
2913    */) ;;
2914    *) as_dir=$as_dir/ ;;
2915  esac
2916    for ac_exec_ext in '' $ac_executable_extensions; do
2917  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2918    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2919       ac_prog_rejected=yes
2920       continue
2921     fi
2922    ac_cv_prog_CC="cc"
2923    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2924    break 2
2925  fi
2926done
2927  done
2928IFS=$as_save_IFS
2929
2930if test $ac_prog_rejected = yes; then
2931  # We found a bogon in the path, so make sure we never use it.
2932  set dummy $ac_cv_prog_CC
2933  shift
2934  if test $# != 0; then
2935    # We chose a different compiler from the bogus one.
2936    # However, it has the same basename, so the bogon will be chosen
2937    # first if we set CC to just the basename; use the full file name.
2938    shift
2939    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2940  fi
2941fi
2942fi ;;
2943esac
2944fi
2945CC=$ac_cv_prog_CC
2946if test -n "$CC"; then
2947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948printf "%s\n" "$CC" >&6; }
2949else
2950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951printf "%s\n" "no" >&6; }
2952fi
2953
2954
2955fi
2956if test -z "$CC"; then
2957  if test -n "$ac_tool_prefix"; then
2958  for ac_prog in cl.exe
2959  do
2960    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2961set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963printf %s "checking for $ac_word... " >&6; }
2964if test ${ac_cv_prog_CC+y}
2965then :
2966  printf %s "(cached) " >&6
2967else case e in #(
2968  e) if test -n "$CC"; then
2969  ac_cv_prog_CC="$CC" # Let the user override the test.
2970else
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974  IFS=$as_save_IFS
2975  case $as_dir in #(((
2976    '') as_dir=./ ;;
2977    */) ;;
2978    *) as_dir=$as_dir/ ;;
2979  esac
2980    for ac_exec_ext in '' $ac_executable_extensions; do
2981  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2982    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2983    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2984    break 2
2985  fi
2986done
2987  done
2988IFS=$as_save_IFS
2989
2990fi ;;
2991esac
2992fi
2993CC=$ac_cv_prog_CC
2994if test -n "$CC"; then
2995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996printf "%s\n" "$CC" >&6; }
2997else
2998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999printf "%s\n" "no" >&6; }
3000fi
3001
3002
3003    test -n "$CC" && break
3004  done
3005fi
3006if test -z "$CC"; then
3007  ac_ct_CC=$CC
3008  for ac_prog in cl.exe
3009do
3010  # Extract the first word of "$ac_prog", so it can be a program name with args.
3011set dummy $ac_prog; ac_word=$2
3012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013printf %s "checking for $ac_word... " >&6; }
3014if test ${ac_cv_prog_ac_ct_CC+y}
3015then :
3016  printf %s "(cached) " >&6
3017else case e in #(
3018  e) if test -n "$ac_ct_CC"; then
3019  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024  IFS=$as_save_IFS
3025  case $as_dir in #(((
3026    '') as_dir=./ ;;
3027    */) ;;
3028    *) as_dir=$as_dir/ ;;
3029  esac
3030    for ac_exec_ext in '' $ac_executable_extensions; do
3031  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3032    ac_cv_prog_ac_ct_CC="$ac_prog"
3033    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3034    break 2
3035  fi
3036done
3037  done
3038IFS=$as_save_IFS
3039
3040fi ;;
3041esac
3042fi
3043ac_ct_CC=$ac_cv_prog_ac_ct_CC
3044if test -n "$ac_ct_CC"; then
3045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3046printf "%s\n" "$ac_ct_CC" >&6; }
3047else
3048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049printf "%s\n" "no" >&6; }
3050fi
3051
3052
3053  test -n "$ac_ct_CC" && break
3054done
3055
3056  if test "x$ac_ct_CC" = x; then
3057    CC=""
3058  else
3059    case $cross_compiling:$ac_tool_warned in
3060yes:)
3061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3062printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3063ac_tool_warned=yes ;;
3064esac
3065    CC=$ac_ct_CC
3066  fi
3067fi
3068
3069fi
3070if test -z "$CC"; then
3071  if test -n "$ac_tool_prefix"; then
3072  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3073set dummy ${ac_tool_prefix}clang; ac_word=$2
3074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075printf %s "checking for $ac_word... " >&6; }
3076if test ${ac_cv_prog_CC+y}
3077then :
3078  printf %s "(cached) " >&6
3079else case e in #(
3080  e) if test -n "$CC"; then
3081  ac_cv_prog_CC="$CC" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  case $as_dir in #(((
3088    '') as_dir=./ ;;
3089    */) ;;
3090    *) as_dir=$as_dir/ ;;
3091  esac
3092    for ac_exec_ext in '' $ac_executable_extensions; do
3093  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3094    ac_cv_prog_CC="${ac_tool_prefix}clang"
3095    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3096    break 2
3097  fi
3098done
3099  done
3100IFS=$as_save_IFS
3101
3102fi ;;
3103esac
3104fi
3105CC=$ac_cv_prog_CC
3106if test -n "$CC"; then
3107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108printf "%s\n" "$CC" >&6; }
3109else
3110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111printf "%s\n" "no" >&6; }
3112fi
3113
3114
3115fi
3116if test -z "$ac_cv_prog_CC"; then
3117  ac_ct_CC=$CC
3118  # Extract the first word of "clang", so it can be a program name with args.
3119set dummy clang; ac_word=$2
3120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121printf %s "checking for $ac_word... " >&6; }
3122if test ${ac_cv_prog_ac_ct_CC+y}
3123then :
3124  printf %s "(cached) " >&6
3125else case e in #(
3126  e) if test -n "$ac_ct_CC"; then
3127  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132  IFS=$as_save_IFS
3133  case $as_dir in #(((
3134    '') as_dir=./ ;;
3135    */) ;;
3136    *) as_dir=$as_dir/ ;;
3137  esac
3138    for ac_exec_ext in '' $ac_executable_extensions; do
3139  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3140    ac_cv_prog_ac_ct_CC="clang"
3141    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3142    break 2
3143  fi
3144done
3145  done
3146IFS=$as_save_IFS
3147
3148fi ;;
3149esac
3150fi
3151ac_ct_CC=$ac_cv_prog_ac_ct_CC
3152if test -n "$ac_ct_CC"; then
3153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3154printf "%s\n" "$ac_ct_CC" >&6; }
3155else
3156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157printf "%s\n" "no" >&6; }
3158fi
3159
3160  if test "x$ac_ct_CC" = x; then
3161    CC=""
3162  else
3163    case $cross_compiling:$ac_tool_warned in
3164yes:)
3165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3166printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3167ac_tool_warned=yes ;;
3168esac
3169    CC=$ac_ct_CC
3170  fi
3171else
3172  CC="$ac_cv_prog_CC"
3173fi
3174
3175fi
3176
3177
3178test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3179printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3180as_fn_error $? "no acceptable C compiler found in \$PATH
3181See 'config.log' for more details" "$LINENO" 5; }
3182
3183# Provide some information about the compiler.
3184printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3185set X $ac_compile
3186ac_compiler=$2
3187for ac_option in --version -v -V -qversion -version; do
3188  { { ac_try="$ac_compiler $ac_option >&5"
3189case "(($ac_try" in
3190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191  *) ac_try_echo=$ac_try;;
3192esac
3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194printf "%s\n" "$ac_try_echo"; } >&5
3195  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3196  ac_status=$?
3197  if test -s conftest.err; then
3198    sed '10a\
3199... rest of stderr output deleted ...
3200         10q' conftest.err >conftest.er1
3201    cat conftest.er1 >&5
3202  fi
3203  rm -f conftest.er1 conftest.err
3204  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205  test $ac_status = 0; }
3206done
3207
3208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209/* end confdefs.h.  */
3210
3211int
3212main (void)
3213{
3214
3215  ;
3216  return 0;
3217}
3218_ACEOF
3219ac_clean_files_save=$ac_clean_files
3220ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3221# Try to create an executable without -o first, disregard a.out.
3222# It will help us diagnose broken compilers, and finding out an intuition
3223# of exeext.
3224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3225printf %s "checking whether the C compiler works... " >&6; }
3226ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3227
3228# The possible output files:
3229ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3230
3231ac_rmfiles=
3232for ac_file in $ac_files
3233do
3234  case $ac_file in
3235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3236    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3237  esac
3238done
3239rm -f $ac_rmfiles
3240
3241if { { ac_try="$ac_link_default"
3242case "(($ac_try" in
3243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244  *) ac_try_echo=$ac_try;;
3245esac
3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247printf "%s\n" "$ac_try_echo"; } >&5
3248  (eval "$ac_link_default") 2>&5
3249  ac_status=$?
3250  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251  test $ac_status = 0; }
3252then :
3253  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3254# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3255# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3256# so that the user can short-circuit this test for compilers unknown to
3257# Autoconf.
3258for ac_file in $ac_files ''
3259do
3260  test -f "$ac_file" || continue
3261  case $ac_file in
3262    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3263	;;
3264    [ab].out )
3265	# We found the default executable, but exeext='' is most
3266	# certainly right.
3267	break;;
3268    *.* )
3269	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3270	then :; else
3271	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272	fi
3273	# We set ac_cv_exeext here because the later test for it is not
3274	# safe: cross compilers may not add the suffix if given an '-o'
3275	# argument, so we may need to know it at that point already.
3276	# Even if this section looks crufty: it has the advantage of
3277	# actually working.
3278	break;;
3279    * )
3280	break;;
3281  esac
3282done
3283test "$ac_cv_exeext" = no && ac_cv_exeext=
3284
3285else case e in #(
3286  e) ac_file='' ;;
3287esac
3288fi
3289if test -z "$ac_file"
3290then :
3291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292printf "%s\n" "no" >&6; }
3293printf "%s\n" "$as_me: failed program was:" >&5
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
3296{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3297printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3298as_fn_error 77 "C compiler cannot create executables
3299See 'config.log' for more details" "$LINENO" 5; }
3300else case e in #(
3301  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302printf "%s\n" "yes" >&6; } ;;
3303esac
3304fi
3305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306printf %s "checking for C compiler default output file name... " >&6; }
3307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3308printf "%s\n" "$ac_file" >&6; }
3309ac_exeext=$ac_cv_exeext
3310
3311rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3312ac_clean_files=$ac_clean_files_save
3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3314printf %s "checking for suffix of executables... " >&6; }
3315if { { ac_try="$ac_link"
3316case "(($ac_try" in
3317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318  *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321printf "%s\n" "$ac_try_echo"; } >&5
3322  (eval "$ac_link") 2>&5
3323  ac_status=$?
3324  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325  test $ac_status = 0; }
3326then :
3327  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3328# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3329# work properly (i.e., refer to 'conftest.exe'), while it won't with
3330# 'rm'.
3331for ac_file in conftest.exe conftest conftest.*; do
3332  test -f "$ac_file" || continue
3333  case $ac_file in
3334    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336	  break;;
3337    * ) break;;
3338  esac
3339done
3340else case e in #(
3341  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3342printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3343as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3344See 'config.log' for more details" "$LINENO" 5; } ;;
3345esac
3346fi
3347rm -f conftest conftest$ac_cv_exeext
3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3349printf "%s\n" "$ac_cv_exeext" >&6; }
3350
3351rm -f conftest.$ac_ext
3352EXEEXT=$ac_cv_exeext
3353ac_exeext=$EXEEXT
3354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355/* end confdefs.h.  */
3356#include <stdio.h>
3357int
3358main (void)
3359{
3360FILE *f = fopen ("conftest.out", "w");
3361 if (!f)
3362  return 1;
3363 return ferror (f) || fclose (f) != 0;
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369ac_clean_files="$ac_clean_files conftest.out"
3370# Check that the compiler produces executables we can run.  If not, either
3371# the compiler is broken, or we cross compile.
3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3373printf %s "checking whether we are cross compiling... " >&6; }
3374if test "$cross_compiling" != yes; then
3375  { { ac_try="$ac_link"
3376case "(($ac_try" in
3377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378  *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381printf "%s\n" "$ac_try_echo"; } >&5
3382  (eval "$ac_link") 2>&5
3383  ac_status=$?
3384  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385  test $ac_status = 0; }
3386  if { ac_try='./conftest$ac_cv_exeext'
3387  { { case "(($ac_try" in
3388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389  *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392printf "%s\n" "$ac_try_echo"; } >&5
3393  (eval "$ac_try") 2>&5
3394  ac_status=$?
3395  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396  test $ac_status = 0; }; }; then
3397    cross_compiling=no
3398  else
3399    if test "$cross_compiling" = maybe; then
3400	cross_compiling=yes
3401    else
3402	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3403printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3404as_fn_error 77 "cannot run C compiled programs.
3405If you meant to cross compile, use '--host'.
3406See 'config.log' for more details" "$LINENO" 5; }
3407    fi
3408  fi
3409fi
3410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3411printf "%s\n" "$cross_compiling" >&6; }
3412
3413rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3414  conftest.o conftest.obj conftest.out
3415ac_clean_files=$ac_clean_files_save
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3417printf %s "checking for suffix of object files... " >&6; }
3418if test ${ac_cv_objext+y}
3419then :
3420  printf %s "(cached) " >&6
3421else case e in #(
3422  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h.  */
3424
3425int
3426main (void)
3427{
3428
3429  ;
3430  return 0;
3431}
3432_ACEOF
3433rm -f conftest.o conftest.obj
3434if { { ac_try="$ac_compile"
3435case "(($ac_try" in
3436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437  *) ac_try_echo=$ac_try;;
3438esac
3439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440printf "%s\n" "$ac_try_echo"; } >&5
3441  (eval "$ac_compile") 2>&5
3442  ac_status=$?
3443  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444  test $ac_status = 0; }
3445then :
3446  for ac_file in conftest.o conftest.obj conftest.*; do
3447  test -f "$ac_file" || continue;
3448  case $ac_file in
3449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3451       break;;
3452  esac
3453done
3454else case e in #(
3455  e) printf "%s\n" "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
3458{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3459printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3460as_fn_error $? "cannot compute suffix of object files: cannot compile
3461See 'config.log' for more details" "$LINENO" 5; } ;;
3462esac
3463fi
3464rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3465esac
3466fi
3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3468printf "%s\n" "$ac_cv_objext" >&6; }
3469OBJEXT=$ac_cv_objext
3470ac_objext=$OBJEXT
3471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3472printf %s "checking whether the compiler supports GNU C... " >&6; }
3473if test ${ac_cv_c_compiler_gnu+y}
3474then :
3475  printf %s "(cached) " >&6
3476else case e in #(
3477  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h.  */
3479
3480int
3481main (void)
3482{
3483#ifndef __GNUC__
3484       choke me
3485#endif
3486
3487  ;
3488  return 0;
3489}
3490_ACEOF
3491if ac_fn_c_try_compile "$LINENO"
3492then :
3493  ac_compiler_gnu=yes
3494else case e in #(
3495  e) ac_compiler_gnu=no ;;
3496esac
3497fi
3498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3499ac_cv_c_compiler_gnu=$ac_compiler_gnu
3500 ;;
3501esac
3502fi
3503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3505ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506
3507if test $ac_compiler_gnu = yes; then
3508  GCC=yes
3509else
3510  GCC=
3511fi
3512ac_test_CFLAGS=${CFLAGS+y}
3513ac_save_CFLAGS=$CFLAGS
3514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3515printf %s "checking whether $CC accepts -g... " >&6; }
3516if test ${ac_cv_prog_cc_g+y}
3517then :
3518  printf %s "(cached) " >&6
3519else case e in #(
3520  e) ac_save_c_werror_flag=$ac_c_werror_flag
3521   ac_c_werror_flag=yes
3522   ac_cv_prog_cc_g=no
3523   CFLAGS="-g"
3524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526
3527int
3528main (void)
3529{
3530
3531  ;
3532  return 0;
3533}
3534_ACEOF
3535if ac_fn_c_try_compile "$LINENO"
3536then :
3537  ac_cv_prog_cc_g=yes
3538else case e in #(
3539  e) CFLAGS=""
3540      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main (void)
3545{
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551if ac_fn_c_try_compile "$LINENO"
3552then :
3553
3554else case e in #(
3555  e) ac_c_werror_flag=$ac_save_c_werror_flag
3556	 CFLAGS="-g"
3557	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559
3560int
3561main (void)
3562{
3563
3564  ;
3565  return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_compile "$LINENO"
3569then :
3570  ac_cv_prog_cc_g=yes
3571fi
3572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3573esac
3574fi
3575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3576esac
3577fi
3578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3579   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3580esac
3581fi
3582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3583printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3584if test $ac_test_CFLAGS; then
3585  CFLAGS=$ac_save_CFLAGS
3586elif test $ac_cv_prog_cc_g = yes; then
3587  if test "$GCC" = yes; then
3588    CFLAGS="-g -O2"
3589  else
3590    CFLAGS="-g"
3591  fi
3592else
3593  if test "$GCC" = yes; then
3594    CFLAGS="-O2"
3595  else
3596    CFLAGS=
3597  fi
3598fi
3599ac_prog_cc_stdc=no
3600if test x$ac_prog_cc_stdc = xno
3601then :
3602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3603printf %s "checking for $CC option to enable C11 features... " >&6; }
3604if test ${ac_cv_prog_cc_c11+y}
3605then :
3606  printf %s "(cached) " >&6
3607else case e in #(
3608  e) ac_cv_prog_cc_c11=no
3609ac_save_CC=$CC
3610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612$ac_c_conftest_c11_program
3613_ACEOF
3614for ac_arg in '' -std=gnu11
3615do
3616  CC="$ac_save_CC $ac_arg"
3617  if ac_fn_c_try_compile "$LINENO"
3618then :
3619  ac_cv_prog_cc_c11=$ac_arg
3620fi
3621rm -f core conftest.err conftest.$ac_objext conftest.beam
3622  test "x$ac_cv_prog_cc_c11" != "xno" && break
3623done
3624rm -f conftest.$ac_ext
3625CC=$ac_save_CC ;;
3626esac
3627fi
3628
3629if test "x$ac_cv_prog_cc_c11" = xno
3630then :
3631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3632printf "%s\n" "unsupported" >&6; }
3633else case e in #(
3634  e) if test "x$ac_cv_prog_cc_c11" = x
3635then :
3636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3637printf "%s\n" "none needed" >&6; }
3638else case e in #(
3639  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3640printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3641     CC="$CC $ac_cv_prog_cc_c11" ;;
3642esac
3643fi
3644  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3645  ac_prog_cc_stdc=c11 ;;
3646esac
3647fi
3648fi
3649if test x$ac_prog_cc_stdc = xno
3650then :
3651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3652printf %s "checking for $CC option to enable C99 features... " >&6; }
3653if test ${ac_cv_prog_cc_c99+y}
3654then :
3655  printf %s "(cached) " >&6
3656else case e in #(
3657  e) ac_cv_prog_cc_c99=no
3658ac_save_CC=$CC
3659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h.  */
3661$ac_c_conftest_c99_program
3662_ACEOF
3663for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3664do
3665  CC="$ac_save_CC $ac_arg"
3666  if ac_fn_c_try_compile "$LINENO"
3667then :
3668  ac_cv_prog_cc_c99=$ac_arg
3669fi
3670rm -f core conftest.err conftest.$ac_objext conftest.beam
3671  test "x$ac_cv_prog_cc_c99" != "xno" && break
3672done
3673rm -f conftest.$ac_ext
3674CC=$ac_save_CC ;;
3675esac
3676fi
3677
3678if test "x$ac_cv_prog_cc_c99" = xno
3679then :
3680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3681printf "%s\n" "unsupported" >&6; }
3682else case e in #(
3683  e) if test "x$ac_cv_prog_cc_c99" = x
3684then :
3685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686printf "%s\n" "none needed" >&6; }
3687else case e in #(
3688  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3689printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3690     CC="$CC $ac_cv_prog_cc_c99" ;;
3691esac
3692fi
3693  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3694  ac_prog_cc_stdc=c99 ;;
3695esac
3696fi
3697fi
3698if test x$ac_prog_cc_stdc = xno
3699then :
3700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3701printf %s "checking for $CC option to enable C89 features... " >&6; }
3702if test ${ac_cv_prog_cc_c89+y}
3703then :
3704  printf %s "(cached) " >&6
3705else case e in #(
3706  e) ac_cv_prog_cc_c89=no
3707ac_save_CC=$CC
3708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h.  */
3710$ac_c_conftest_c89_program
3711_ACEOF
3712for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3713do
3714  CC="$ac_save_CC $ac_arg"
3715  if ac_fn_c_try_compile "$LINENO"
3716then :
3717  ac_cv_prog_cc_c89=$ac_arg
3718fi
3719rm -f core conftest.err conftest.$ac_objext conftest.beam
3720  test "x$ac_cv_prog_cc_c89" != "xno" && break
3721done
3722rm -f conftest.$ac_ext
3723CC=$ac_save_CC ;;
3724esac
3725fi
3726
3727if test "x$ac_cv_prog_cc_c89" = xno
3728then :
3729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730printf "%s\n" "unsupported" >&6; }
3731else case e in #(
3732  e) if test "x$ac_cv_prog_cc_c89" = x
3733then :
3734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735printf "%s\n" "none needed" >&6; }
3736else case e in #(
3737  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3738printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3739     CC="$CC $ac_cv_prog_cc_c89" ;;
3740esac
3741fi
3742  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3743  ac_prog_cc_stdc=c89 ;;
3744esac
3745fi
3746fi
3747
3748ac_ext=c
3749ac_cpp='$CPP $CPPFLAGS'
3750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754
3755  ac_ext=c
3756ac_cpp='$CPP $CPPFLAGS'
3757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3761printf %s "checking whether $CC understands -c and -o together... " >&6; }
3762if test ${am_cv_prog_cc_c_o+y}
3763then :
3764  printf %s "(cached) " >&6
3765else case e in #(
3766  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h.  */
3768
3769int
3770main (void)
3771{
3772
3773  ;
3774  return 0;
3775}
3776_ACEOF
3777  # Make sure it works both with $CC and with simple cc.
3778  # Following AC_PROG_CC_C_O, we do the test twice because some
3779  # compilers refuse to overwrite an existing .o file with -o,
3780  # though they will create one.
3781  am_cv_prog_cc_c_o=yes
3782  for am_i in 1 2; do
3783    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3784   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3785   ac_status=$?
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); } \
3788         && test -f conftest2.$ac_objext; then
3789      : OK
3790    else
3791      am_cv_prog_cc_c_o=no
3792      break
3793    fi
3794  done
3795  rm -f core conftest*
3796  unset am_i ;;
3797esac
3798fi
3799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3800printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3801if test "$am_cv_prog_cc_c_o" != yes; then
3802   # Losing compiler, so override with the script.
3803   # FIXME: It is wrong to rewrite CC.
3804   # But if we don't then we get into trouble of one sort or another.
3805   # A longer-term fix would be to have automake use am__CC in this case,
3806   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3807   CC="$am_aux_dir/compile $CC"
3808fi
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814
3815
3816
3817ac_header= ac_cache=
3818for ac_item in $ac_header_c_list
3819do
3820  if test $ac_cache; then
3821    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3822    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3823      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3824    fi
3825    ac_header= ac_cache=
3826  elif test $ac_header; then
3827    ac_cache=$ac_item
3828  else
3829    ac_header=$ac_item
3830  fi
3831done
3832
3833
3834
3835
3836
3837
3838
3839
3840if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3841then :
3842
3843printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3844
3845fi
3846
3847
3848
3849
3850
3851
3852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3853printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3854if test ${ac_cv_safe_to_define___extensions__+y}
3855then :
3856  printf %s "(cached) " >&6
3857else case e in #(
3858  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h.  */
3860
3861#         define __EXTENSIONS__ 1
3862          $ac_includes_default
3863int
3864main (void)
3865{
3866
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871if ac_fn_c_try_compile "$LINENO"
3872then :
3873  ac_cv_safe_to_define___extensions__=yes
3874else case e in #(
3875  e) ac_cv_safe_to_define___extensions__=no ;;
3876esac
3877fi
3878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3879esac
3880fi
3881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3882printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3883
3884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3885printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3886if test ${ac_cv_should_define__xopen_source+y}
3887then :
3888  printf %s "(cached) " >&6
3889else case e in #(
3890  e) ac_cv_should_define__xopen_source=no
3891    if test $ac_cv_header_wchar_h = yes
3892then :
3893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h.  */
3895
3896          #include <wchar.h>
3897          mbstate_t x;
3898int
3899main (void)
3900{
3901
3902  ;
3903  return 0;
3904}
3905_ACEOF
3906if ac_fn_c_try_compile "$LINENO"
3907then :
3908
3909else case e in #(
3910  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h.  */
3912
3913            #define _XOPEN_SOURCE 500
3914            #include <wchar.h>
3915            mbstate_t x;
3916int
3917main (void)
3918{
3919
3920  ;
3921  return 0;
3922}
3923_ACEOF
3924if ac_fn_c_try_compile "$LINENO"
3925then :
3926  ac_cv_should_define__xopen_source=yes
3927fi
3928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3929esac
3930fi
3931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3932fi ;;
3933esac
3934fi
3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3936printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3937
3938  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3939
3940  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3941
3942  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3943
3944  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3945
3946  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3947
3948  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3949
3950  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3951
3952  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3953
3954  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3955
3956  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3957
3958  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3959
3960  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3961
3962  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3963
3964  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3965
3966  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3967
3968  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3969
3970  if test $ac_cv_header_minix_config_h = yes
3971then :
3972  MINIX=yes
3973    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3974
3975    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3976
3977    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3978
3979else case e in #(
3980  e) MINIX= ;;
3981esac
3982fi
3983  if test $ac_cv_safe_to_define___extensions__ = yes
3984then :
3985  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3986
3987fi
3988  if test $ac_cv_should_define__xopen_source = yes
3989then :
3990  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3991
3992fi
3993
3994
3995am__api_version='1.17'
3996
3997
3998  # Find a good install program.  We prefer a C program (faster),
3999# so one script is as good as another.  But avoid the broken or
4000# incompatible versions:
4001# SysV /etc/install, /usr/sbin/install
4002# SunOS /usr/etc/install
4003# IRIX /sbin/install
4004# AIX /bin/install
4005# AmigaOS /C/install, which installs bootblocks on floppy discs
4006# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4007# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4008# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4009# OS/2's system install, which has a completely different semantic
4010# ./install, which can be erroneously created by make from ./install.sh.
4011# Reject install programs that cannot install multiple files.
4012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4013printf %s "checking for a BSD-compatible install... " >&6; }
4014if test -z "$INSTALL"; then
4015if test ${ac_cv_path_install+y}
4016then :
4017  printf %s "(cached) " >&6
4018else case e in #(
4019  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022  IFS=$as_save_IFS
4023  case $as_dir in #(((
4024    '') as_dir=./ ;;
4025    */) ;;
4026    *) as_dir=$as_dir/ ;;
4027  esac
4028    # Account for fact that we put trailing slashes in our PATH walk.
4029case $as_dir in #((
4030  ./ | /[cC]/* | \
4031  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4032  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4033  /usr/ucb/* ) ;;
4034  *)
4035    # OSF1 and SCO ODT 3.0 have their own names for install.
4036    # Don't use installbsd from OSF since it installs stuff as root
4037    # by default.
4038    for ac_prog in ginstall scoinst install; do
4039      for ac_exec_ext in '' $ac_executable_extensions; do
4040	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4041	  if test $ac_prog = install &&
4042	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4043	    # AIX install.  It has an incompatible calling convention.
4044	    :
4045	  elif test $ac_prog = install &&
4046	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4047	    # program-specific install script used by HP pwplus--don't use.
4048	    :
4049	  else
4050	    rm -rf conftest.one conftest.two conftest.dir
4051	    echo one > conftest.one
4052	    echo two > conftest.two
4053	    mkdir conftest.dir
4054	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4055	      test -s conftest.one && test -s conftest.two &&
4056	      test -s conftest.dir/conftest.one &&
4057	      test -s conftest.dir/conftest.two
4058	    then
4059	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4060	      break 3
4061	    fi
4062	  fi
4063	fi
4064      done
4065    done
4066    ;;
4067esac
4068
4069  done
4070IFS=$as_save_IFS
4071
4072rm -rf conftest.one conftest.two conftest.dir
4073 ;;
4074esac
4075fi
4076  if test ${ac_cv_path_install+y}; then
4077    INSTALL=$ac_cv_path_install
4078  else
4079    # As a last resort, use the slow shell script.  Don't cache a
4080    # value for INSTALL within a source directory, because that will
4081    # break other packages using the cache if that directory is
4082    # removed, or if the value is a relative name.
4083    INSTALL=$ac_install_sh
4084  fi
4085fi
4086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4087printf "%s\n" "$INSTALL" >&6; }
4088
4089# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4090# It thinks the first close brace ends the variable substitution.
4091test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4092
4093test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4094
4095test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4096
4097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4098printf %s "checking whether sleep supports fractional seconds... " >&6; }
4099if test ${am_cv_sleep_fractional_seconds+y}
4100then :
4101  printf %s "(cached) " >&6
4102else case e in #(
4103  e) if sleep 0.001 2>/dev/null
4104then :
4105  am_cv_sleep_fractional_seconds=yes
4106else case e in #(
4107  e) am_cv_sleep_fractional_seconds=no ;;
4108esac
4109fi
4110 ;;
4111esac
4112fi
4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4114printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4115
4116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4117printf %s "checking filesystem timestamp resolution... " >&6; }
4118if test ${am_cv_filesystem_timestamp_resolution+y}
4119then :
4120  printf %s "(cached) " >&6
4121else case e in #(
4122  e) # Default to the worst case.
4123am_cv_filesystem_timestamp_resolution=2
4124
4125# Only try to go finer than 1 sec if sleep can do it.
4126# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4127# - 1 sec is not much of a win compared to 2 sec, and
4128# - it takes 2 seconds to perform the test whether 1 sec works.
4129#
4130# Instead, just use the default 2s on platforms that have 1s resolution,
4131# accept the extra 1s delay when using $sleep in the Automake tests, in
4132# exchange for not incurring the 2s delay for running the test for all
4133# packages.
4134#
4135am_try_resolutions=
4136if test "$am_cv_sleep_fractional_seconds" = yes; then
4137  # Even a millisecond often causes a bunch of false positives,
4138  # so just try a hundredth of a second. The time saved between .001 and
4139  # .01 is not terribly consequential.
4140  am_try_resolutions="0.01 0.1 $am_try_resolutions"
4141fi
4142
4143# In order to catch current-generation FAT out, we must *modify* files
4144# that already exist; the *creation* timestamp is finer.  Use names
4145# that make ls -t sort them differently when they have equal
4146# timestamps than when they have distinct timestamps, keeping
4147# in mind that ls -t prints the *newest* file first.
4148rm -f conftest.ts?
4149: > conftest.ts1
4150: > conftest.ts2
4151: > conftest.ts3
4152
4153# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
4154# clobber the current shell's arguments. (Outer-level square brackets
4155# are removed by m4; they're present so that m4 does not expand
4156# <dollar><star>; be careful, easy to get confused.)
4157if (
4158     set X `ls -t conftest.ts[12]` &&
4159     {
4160       test "$*" != "X conftest.ts1 conftest.ts2" ||
4161       test "$*" != "X conftest.ts2 conftest.ts1";
4162     }
4163); then :; else
4164  # If neither matched, then we have a broken ls.  This can happen
4165  # if, for instance, CONFIG_SHELL is bash and it inherits a
4166  # broken ls alias from the environment.  This has actually
4167  # happened.  Such a system could not be considered "sane".
4168  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4169  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4170printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4171as_fn_error $? "ls -t produces unexpected output.
4172Make sure there is not a broken ls alias in your environment.
4173See 'config.log' for more details" "$LINENO" 5; }
4174fi
4175
4176for am_try_res in $am_try_resolutions; do
4177  # Any one fine-grained sleep might happen to cross the boundary
4178  # between two values of a coarser actual resolution, but if we do
4179  # two fine-grained sleeps in a row, at least one of them will fall
4180  # entirely within a coarse interval.
4181  echo alpha > conftest.ts1
4182  sleep $am_try_res
4183  echo beta > conftest.ts2
4184  sleep $am_try_res
4185  echo gamma > conftest.ts3
4186
4187  # We assume that 'ls -t' will make use of high-resolution
4188  # timestamps if the operating system supports them at all.
4189  if (set X `ls -t conftest.ts?` &&
4190      test "$2" = conftest.ts3 &&
4191      test "$3" = conftest.ts2 &&
4192      test "$4" = conftest.ts1); then
4193    #
4194    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4195    # because we don't need to test make.
4196    make_ok=true
4197    if test $am_try_res != 1; then
4198      # But if we've succeeded so far with a subsecond resolution, we
4199      # have one more thing to check: make. It can happen that
4200      # everything else supports the subsecond mtimes, but make doesn't;
4201      # notably on macOS, which ships make 3.81 from 2006 (the last one
4202      # released under GPLv2). https://bugs.gnu.org/68808
4203      #
4204      # We test $MAKE if it is defined in the environment, else "make".
4205      # It might get overridden later, but our hope is that in practice
4206      # it does not matter: it is the system "make" which is (by far)
4207      # the most likely to be broken, whereas if the user overrides it,
4208      # probably they did so with a better, or at least not worse, make.
4209      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4210      #
4211      # Create a Makefile (real tab character here):
4212      rm -f conftest.mk
4213      echo 'conftest.ts1: conftest.ts2' >conftest.mk
4214      echo '	touch conftest.ts2' >>conftest.mk
4215      #
4216      # Now, running
4217      #   touch conftest.ts1; touch conftest.ts2; make
4218      # should touch ts1 because ts2 is newer. This could happen by luck,
4219      # but most often, it will fail if make's support is insufficient. So
4220      # test for several consecutive successes.
4221      #
4222      # (We reuse conftest.ts[12] because we still want to modify existing
4223      # files, not create new ones, per above.)
4224      n=0
4225      make=${MAKE-make}
4226      until test $n -eq 3; do
4227        echo one > conftest.ts1
4228        sleep $am_try_res
4229        echo two > conftest.ts2 # ts2 should now be newer than ts1
4230        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4231          make_ok=false
4232          break # out of $n loop
4233        fi
4234        n=`expr $n + 1`
4235      done
4236    fi
4237    #
4238    if $make_ok; then
4239      # Everything we know to check worked out, so call this resolution good.
4240      am_cv_filesystem_timestamp_resolution=$am_try_res
4241      break # out of $am_try_res loop
4242    fi
4243    # Otherwise, we'll go on to check the next resolution.
4244  fi
4245done
4246rm -f conftest.ts?
4247# (end _am_filesystem_timestamp_resolution)
4248 ;;
4249esac
4250fi
4251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4252printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4253
4254# This check should not be cached, as it may vary across builds of
4255# different projects.
4256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4257printf %s "checking whether build environment is sane... " >&6; }
4258# Reject unsafe characters in $srcdir or the absolute working directory
4259# name.  Accept space and tab only in the latter.
4260am_lf='
4261'
4262case `pwd` in
4263  *[\\\"\#\$\&\'\`$am_lf]*)
4264    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4265esac
4266case $srcdir in
4267  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4268    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4269esac
4270
4271# Do 'set' in a subshell so we don't clobber the current shell's
4272# arguments.  Must try -L first in case configure is actually a
4273# symlink; some systems play weird games with the mod time of symlinks
4274# (eg FreeBSD returns the mod time of the symlink's containing
4275# directory).
4276am_build_env_is_sane=no
4277am_has_slept=no
4278rm -f conftest.file
4279for am_try in 1 2; do
4280  echo "timestamp, slept: $am_has_slept" > conftest.file
4281  if (
4282    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4283    if test "$*" = "X"; then
4284      # -L didn't work.
4285      set X `ls -t "$srcdir/configure" conftest.file`
4286    fi
4287    test "$2" = conftest.file
4288  ); then
4289    am_build_env_is_sane=yes
4290    break
4291  fi
4292  # Just in case.
4293  sleep "$am_cv_filesystem_timestamp_resolution"
4294  am_has_slept=yes
4295done
4296
4297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4298printf "%s\n" "$am_build_env_is_sane" >&6; }
4299if test "$am_build_env_is_sane" = no; then
4300  as_fn_error $? "newly created file is older than distributed files!
4301Check your system clock" "$LINENO" 5
4302fi
4303
4304# If we didn't sleep, we still need to ensure time stamps of config.status and
4305# generated files are strictly newer.
4306am_sleep_pid=
4307if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4308then :
4309
4310else case e in #(
4311  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4312  am_sleep_pid=$!
4313 ;;
4314esac
4315fi
4316
4317rm -f conftest.file
4318
4319test "$program_prefix" != NONE &&
4320  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4321# Use a double $ so make ignores it.
4322test "$program_suffix" != NONE &&
4323  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4324# Double any \ or $.
4325# By default was 's,x,x', remove it if useless.
4326ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4327program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4328
4329
4330  if test x"${MISSING+set}" != xset; then
4331  MISSING="\${SHELL} '$am_aux_dir/missing'"
4332fi
4333# Use eval to expand $SHELL
4334if eval "$MISSING --is-lightweight"; then
4335  am_missing_run="$MISSING "
4336else
4337  am_missing_run=
4338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4339printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4340fi
4341
4342if test x"${install_sh+set}" != xset; then
4343  case $am_aux_dir in
4344  *\ * | *\	*)
4345    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4346  *)
4347    install_sh="\${SHELL} $am_aux_dir/install-sh"
4348  esac
4349fi
4350
4351# Installed binaries are usually stripped using 'strip' when the user
4352# run "make install-strip".  However 'strip' might not be the right
4353# tool to use in cross-compilation environments, therefore Automake
4354# will honor the 'STRIP' environment variable to overrule this program.
4355if test "$cross_compiling" != no; then
4356  if test -n "$ac_tool_prefix"; then
4357  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4358set dummy ${ac_tool_prefix}strip; ac_word=$2
4359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360printf %s "checking for $ac_word... " >&6; }
4361if test ${ac_cv_prog_STRIP+y}
4362then :
4363  printf %s "(cached) " >&6
4364else case e in #(
4365  e) if test -n "$STRIP"; then
4366  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4367else
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371  IFS=$as_save_IFS
4372  case $as_dir in #(((
4373    '') as_dir=./ ;;
4374    */) ;;
4375    *) as_dir=$as_dir/ ;;
4376  esac
4377    for ac_exec_ext in '' $ac_executable_extensions; do
4378  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4379    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4380    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4381    break 2
4382  fi
4383done
4384  done
4385IFS=$as_save_IFS
4386
4387fi ;;
4388esac
4389fi
4390STRIP=$ac_cv_prog_STRIP
4391if test -n "$STRIP"; then
4392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4393printf "%s\n" "$STRIP" >&6; }
4394else
4395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396printf "%s\n" "no" >&6; }
4397fi
4398
4399
4400fi
4401if test -z "$ac_cv_prog_STRIP"; then
4402  ac_ct_STRIP=$STRIP
4403  # Extract the first word of "strip", so it can be a program name with args.
4404set dummy strip; ac_word=$2
4405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406printf %s "checking for $ac_word... " >&6; }
4407if test ${ac_cv_prog_ac_ct_STRIP+y}
4408then :
4409  printf %s "(cached) " >&6
4410else case e in #(
4411  e) if test -n "$ac_ct_STRIP"; then
4412  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417  IFS=$as_save_IFS
4418  case $as_dir in #(((
4419    '') as_dir=./ ;;
4420    */) ;;
4421    *) as_dir=$as_dir/ ;;
4422  esac
4423    for ac_exec_ext in '' $ac_executable_extensions; do
4424  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4425    ac_cv_prog_ac_ct_STRIP="strip"
4426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4427    break 2
4428  fi
4429done
4430  done
4431IFS=$as_save_IFS
4432
4433fi ;;
4434esac
4435fi
4436ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4437if test -n "$ac_ct_STRIP"; then
4438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4439printf "%s\n" "$ac_ct_STRIP" >&6; }
4440else
4441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442printf "%s\n" "no" >&6; }
4443fi
4444
4445  if test "x$ac_ct_STRIP" = x; then
4446    STRIP=":"
4447  else
4448    case $cross_compiling:$ac_tool_warned in
4449yes:)
4450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452ac_tool_warned=yes ;;
4453esac
4454    STRIP=$ac_ct_STRIP
4455  fi
4456else
4457  STRIP="$ac_cv_prog_STRIP"
4458fi
4459
4460fi
4461INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4462
4463
4464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4465printf %s "checking for a race-free mkdir -p... " >&6; }
4466if test -z "$MKDIR_P"; then
4467  if test ${ac_cv_path_mkdir+y}
4468then :
4469  printf %s "(cached) " >&6
4470else case e in #(
4471  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4473do
4474  IFS=$as_save_IFS
4475  case $as_dir in #(((
4476    '') as_dir=./ ;;
4477    */) ;;
4478    *) as_dir=$as_dir/ ;;
4479  esac
4480    for ac_prog in mkdir gmkdir; do
4481	 for ac_exec_ext in '' $ac_executable_extensions; do
4482	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4483	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4484	     'mkdir ('*'coreutils) '* | \
4485	     *'BusyBox '* | \
4486	     'mkdir (fileutils) '4.1*)
4487	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4488	       break 3;;
4489	   esac
4490	 done
4491       done
4492  done
4493IFS=$as_save_IFS
4494 ;;
4495esac
4496fi
4497
4498  test -d ./--version && rmdir ./--version
4499  if test ${ac_cv_path_mkdir+y}; then
4500    MKDIR_P="$ac_cv_path_mkdir -p"
4501  else
4502    # As a last resort, use plain mkdir -p,
4503    # in the hope it doesn't have the bugs of ancient mkdir.
4504    MKDIR_P='mkdir -p'
4505  fi
4506fi
4507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4508printf "%s\n" "$MKDIR_P" >&6; }
4509
4510for ac_prog in gawk mawk nawk awk
4511do
4512  # Extract the first word of "$ac_prog", so it can be a program name with args.
4513set dummy $ac_prog; ac_word=$2
4514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515printf %s "checking for $ac_word... " >&6; }
4516if test ${ac_cv_prog_AWK+y}
4517then :
4518  printf %s "(cached) " >&6
4519else case e in #(
4520  e) if test -n "$AWK"; then
4521  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4522else
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526  IFS=$as_save_IFS
4527  case $as_dir in #(((
4528    '') as_dir=./ ;;
4529    */) ;;
4530    *) as_dir=$as_dir/ ;;
4531  esac
4532    for ac_exec_ext in '' $ac_executable_extensions; do
4533  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4534    ac_cv_prog_AWK="$ac_prog"
4535    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4536    break 2
4537  fi
4538done
4539  done
4540IFS=$as_save_IFS
4541
4542fi ;;
4543esac
4544fi
4545AWK=$ac_cv_prog_AWK
4546if test -n "$AWK"; then
4547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4548printf "%s\n" "$AWK" >&6; }
4549else
4550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551printf "%s\n" "no" >&6; }
4552fi
4553
4554
4555  test -n "$AWK" && break
4556done
4557
4558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4559printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4560set x ${MAKE-make}
4561ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4562if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4563then :
4564  printf %s "(cached) " >&6
4565else case e in #(
4566  e) cat >conftest.make <<\_ACEOF
4567SHELL = /bin/sh
4568all:
4569	@echo '@@@%%%=$(MAKE)=@@@%%%'
4570_ACEOF
4571# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4572case `${MAKE-make} -f conftest.make 2>/dev/null` in
4573  *@@@%%%=?*=@@@%%%*)
4574    eval ac_cv_prog_make_${ac_make}_set=yes;;
4575  *)
4576    eval ac_cv_prog_make_${ac_make}_set=no;;
4577esac
4578rm -f conftest.make ;;
4579esac
4580fi
4581if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4583printf "%s\n" "yes" >&6; }
4584  SET_MAKE=
4585else
4586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587printf "%s\n" "no" >&6; }
4588  SET_MAKE="MAKE=${MAKE-make}"
4589fi
4590
4591rm -rf .tst 2>/dev/null
4592mkdir .tst 2>/dev/null
4593if test -d .tst; then
4594  am__leading_dot=.
4595else
4596  am__leading_dot=_
4597fi
4598rmdir .tst 2>/dev/null
4599
4600DEPDIR="${am__leading_dot}deps"
4601
4602ac_config_commands="$ac_config_commands depfiles"
4603
4604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4605printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4606cat > confinc.mk << 'END'
4607am__doit:
4608	@echo this is the am__doit target >confinc.out
4609.PHONY: am__doit
4610END
4611am__include="#"
4612am__quote=
4613# BSD make does it like this.
4614echo '.include "confinc.mk" # ignored' > confmf.BSD
4615# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4616echo 'include confinc.mk # ignored' > confmf.GNU
4617_am_result=no
4618for s in GNU BSD; do
4619  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4620   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }
4624  case $?:`cat confinc.out 2>/dev/null` in #(
4625  '0:this is the am__doit target') :
4626    case $s in #(
4627  BSD) :
4628    am__include='.include' am__quote='"' ;; #(
4629  *) :
4630    am__include='include' am__quote='' ;;
4631esac ;; #(
4632  *) :
4633     ;;
4634esac
4635  if test "$am__include" != "#"; then
4636    _am_result="yes ($s style)"
4637    break
4638  fi
4639done
4640rm -f confinc.* confmf.*
4641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4642printf "%s\n" "${_am_result}" >&6; }
4643
4644# Check whether --enable-dependency-tracking was given.
4645if test ${enable_dependency_tracking+y}
4646then :
4647  enableval=$enable_dependency_tracking;
4648fi
4649
4650if test "x$enable_dependency_tracking" != xno; then
4651  am_depcomp="$ac_aux_dir/depcomp"
4652  AMDEPBACKSLASH='\'
4653  am__nodep='_no'
4654fi
4655 if test "x$enable_dependency_tracking" != xno; then
4656  AMDEP_TRUE=
4657  AMDEP_FALSE='#'
4658else
4659  AMDEP_TRUE='#'
4660  AMDEP_FALSE=
4661fi
4662
4663
4664AM_DEFAULT_VERBOSITY=1
4665# Check whether --enable-silent-rules was given.
4666if test ${enable_silent_rules+y}
4667then :
4668  enableval=$enable_silent_rules;
4669fi
4670
4671am_make=${MAKE-make}
4672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4673printf %s "checking whether $am_make supports nested variables... " >&6; }
4674if test ${am_cv_make_support_nested_variables+y}
4675then :
4676  printf %s "(cached) " >&6
4677else case e in #(
4678  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4679BAR0=false
4680BAR1=true
4681V=1
4682am__doit:
4683	@$(TRUE)
4684.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4685  am_cv_make_support_nested_variables=yes
4686else
4687  am_cv_make_support_nested_variables=no
4688fi ;;
4689esac
4690fi
4691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4692printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4693AM_BACKSLASH='\'
4694
4695am__rm_f_notfound=
4696if (rm -f && rm -fr && rm -rf) 2>/dev/null
4697then :
4698
4699else case e in #(
4700  e) am__rm_f_notfound='""' ;;
4701esac
4702fi
4703
4704
4705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4706printf %s "checking xargs -n works... " >&6; }
4707if test ${am_cv_xargs_n_works+y}
4708then :
4709  printf %s "(cached) " >&6
4710else case e in #(
4711  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
47123"
4713then :
4714  am_cv_xargs_n_works=yes
4715else case e in #(
4716  e) am_cv_xargs_n_works=no ;;
4717esac
4718fi ;;
4719esac
4720fi
4721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4722printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4723if test "$am_cv_xargs_n_works" = yes
4724then :
4725  am__xargs_n='xargs -n'
4726else case e in #(
4727  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4728 ;;
4729esac
4730fi
4731
4732if test "`cd $srcdir && pwd`" != "`pwd`"; then
4733  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4734  # is not polluted with repeated "-I."
4735  am__isrc=' -I$(srcdir)'
4736  # test to see if srcdir already configured
4737  if test -f $srcdir/config.status; then
4738    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4739  fi
4740fi
4741
4742# test whether we have cygpath
4743if test -z "$CYGPATH_W"; then
4744  if (cygpath --version) >/dev/null 2>/dev/null; then
4745    CYGPATH_W='cygpath -w'
4746  else
4747    CYGPATH_W=echo
4748  fi
4749fi
4750
4751
4752# Define the identity of the package.
4753 PACKAGE='libedit-20250104'
4754 VERSION='3.1'
4755
4756
4757printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4758
4759
4760printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4761
4762# Some tools Automake needs.
4763
4764ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4765
4766
4767AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4768
4769
4770AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4771
4772
4773AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4774
4775
4776MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4777
4778# For better backward compatibility.  To be removed once Automake 1.9.x
4779# dies out for good.  For more background, see:
4780# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4781# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4782mkdir_p='$(MKDIR_P)'
4783
4784# We need awk for the "check" target (and possibly the TAP driver).  The
4785# system "awk" is bad on some platforms.
4786# Always define AMTAR for backward compatibility.  Yes, it's still used
4787# in the wild :-(  We should find a proper way to deprecate it ...
4788AMTAR='$${TAR-tar}'
4789
4790
4791# We'll loop over all known methods to create a tar archive until one works.
4792_am_tools='gnutar  pax cpio none'
4793
4794am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4795
4796
4797
4798
4799
4800depcc="$CC"   am_compiler_list=
4801
4802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4803printf %s "checking dependency style of $depcc... " >&6; }
4804if test ${am_cv_CC_dependencies_compiler_type+y}
4805then :
4806  printf %s "(cached) " >&6
4807else case e in #(
4808  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4809  # We make a subdir and do the tests there.  Otherwise we can end up
4810  # making bogus files that we don't know about and never remove.  For
4811  # instance it was reported that on HP-UX the gcc test will end up
4812  # making a dummy file named 'D' -- because '-MD' means "put the output
4813  # in D".
4814  rm -rf conftest.dir
4815  mkdir conftest.dir
4816  # Copy depcomp to subdir because otherwise we won't find it if we're
4817  # using a relative directory.
4818  cp "$am_depcomp" conftest.dir
4819  cd conftest.dir
4820  # We will build objects and dependencies in a subdirectory because
4821  # it helps to detect inapplicable dependency modes.  For instance
4822  # both Tru64's cc and ICC support -MD to output dependencies as a
4823  # side effect of compilation, but ICC will put the dependencies in
4824  # the current directory while Tru64 will put them in the object
4825  # directory.
4826  mkdir sub
4827
4828  am_cv_CC_dependencies_compiler_type=none
4829  if test "$am_compiler_list" = ""; then
4830     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4831  fi
4832  am__universal=false
4833  case " $depcc " in #(
4834     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4835     esac
4836
4837  for depmode in $am_compiler_list; do
4838    # Setup a source with many dependencies, because some compilers
4839    # like to wrap large dependency lists on column 80 (with \), and
4840    # we should not choose a depcomp mode which is confused by this.
4841    #
4842    # We need to recreate these files for each test, as the compiler may
4843    # overwrite some of them when testing with obscure command lines.
4844    # This happens at least with the AIX C compiler.
4845    : > sub/conftest.c
4846    for i in 1 2 3 4 5 6; do
4847      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4848      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4849      # Solaris 10 /bin/sh.
4850      echo '/* dummy */' > sub/conftst$i.h
4851    done
4852    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4853
4854    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4855    # mode.  It turns out that the SunPro C++ compiler does not properly
4856    # handle '-M -o', and we need to detect this.  Also, some Intel
4857    # versions had trouble with output in subdirs.
4858    am__obj=sub/conftest.${OBJEXT-o}
4859    am__minus_obj="-o $am__obj"
4860    case $depmode in
4861    gcc)
4862      # This depmode causes a compiler race in universal mode.
4863      test "$am__universal" = false || continue
4864      ;;
4865    nosideeffect)
4866      # After this tag, mechanisms are not by side-effect, so they'll
4867      # only be used when explicitly requested.
4868      if test "x$enable_dependency_tracking" = xyes; then
4869	continue
4870      else
4871	break
4872      fi
4873      ;;
4874    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4875      # This compiler won't grok '-c -o', but also, the minuso test has
4876      # not run yet.  These depmodes are late enough in the game, and
4877      # so weak that their functioning should not be impacted.
4878      am__obj=conftest.${OBJEXT-o}
4879      am__minus_obj=
4880      ;;
4881    none) break ;;
4882    esac
4883    if depmode=$depmode \
4884       source=sub/conftest.c object=$am__obj \
4885       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4886       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4887         >/dev/null 2>conftest.err &&
4888       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4889       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4890       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4891       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4892      # icc doesn't choke on unknown options, it will just issue warnings
4893      # or remarks (even with -Werror).  So we grep stderr for any message
4894      # that says an option was ignored or not supported.
4895      # When given -MP, icc 7.0 and 7.1 complain thus:
4896      #   icc: Command line warning: ignoring option '-M'; no argument required
4897      # The diagnosis changed in icc 8.0:
4898      #   icc: Command line remark: option '-MP' not supported
4899      if (grep 'ignoring option' conftest.err ||
4900          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4901        am_cv_CC_dependencies_compiler_type=$depmode
4902        break
4903      fi
4904    fi
4905  done
4906
4907  cd ..
4908  rm -rf conftest.dir
4909else
4910  am_cv_CC_dependencies_compiler_type=none
4911fi
4912 ;;
4913esac
4914fi
4915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4916printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4917CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4918
4919 if
4920  test "x$enable_dependency_tracking" != xno \
4921  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4922  am__fastdepCC_TRUE=
4923  am__fastdepCC_FALSE='#'
4924else
4925  am__fastdepCC_TRUE='#'
4926  am__fastdepCC_FALSE=
4927fi
4928
4929
4930# Variables for tags utilities; see am/tags.am
4931if test -z "$CTAGS"; then
4932  CTAGS=ctags
4933fi
4934
4935if test -z "$ETAGS"; then
4936  ETAGS=etags
4937fi
4938
4939if test -z "$CSCOPE"; then
4940  CSCOPE=cscope
4941fi
4942
4943
4944
4945
4946
4947
4948
4949case `pwd` in
4950  *\ * | *\	*)
4951    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4952printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4953esac
4954
4955
4956
4957macro_version='2.5.4'
4958macro_revision='2.5.4'
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973ltmain=$ac_aux_dir/ltmain.sh
4974
4975
4976
4977  # Make sure we can run config.sub.
4978$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4979  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4980
4981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4982printf %s "checking build system type... " >&6; }
4983if test ${ac_cv_build+y}
4984then :
4985  printf %s "(cached) " >&6
4986else case e in #(
4987  e) ac_build_alias=$build_alias
4988test "x$ac_build_alias" = x &&
4989  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4990test "x$ac_build_alias" = x &&
4991  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4992ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4993  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4994 ;;
4995esac
4996fi
4997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4998printf "%s\n" "$ac_cv_build" >&6; }
4999case $ac_cv_build in
5000*-*-*) ;;
5001*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5002esac
5003build=$ac_cv_build
5004ac_save_IFS=$IFS; IFS='-'
5005set x $ac_cv_build
5006shift
5007build_cpu=$1
5008build_vendor=$2
5009shift; shift
5010# Remember, the first character of IFS is used to create $*,
5011# except with old shells:
5012build_os=$*
5013IFS=$ac_save_IFS
5014case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5015
5016
5017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5018printf %s "checking host system type... " >&6; }
5019if test ${ac_cv_host+y}
5020then :
5021  printf %s "(cached) " >&6
5022else case e in #(
5023  e) if test "x$host_alias" = x; then
5024  ac_cv_host=$ac_cv_build
5025else
5026  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5027    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5028fi
5029 ;;
5030esac
5031fi
5032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5033printf "%s\n" "$ac_cv_host" >&6; }
5034case $ac_cv_host in
5035*-*-*) ;;
5036*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5037esac
5038host=$ac_cv_host
5039ac_save_IFS=$IFS; IFS='-'
5040set x $ac_cv_host
5041shift
5042host_cpu=$1
5043host_vendor=$2
5044shift; shift
5045# Remember, the first character of IFS is used to create $*,
5046# except with old shells:
5047host_os=$*
5048IFS=$ac_save_IFS
5049case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5050
5051
5052# Backslashify metacharacters that are still active within
5053# double-quoted strings.
5054sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5055
5056# Same as above, but do not quote variable references.
5057double_quote_subst='s/\(["`\\]\)/\\\1/g'
5058
5059# Sed substitution to delay expansion of an escaped shell variable in a
5060# double_quote_subst'ed string.
5061delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5062
5063# Sed substitution to delay expansion of an escaped single quote.
5064delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5065
5066# Sed substitution to avoid accidental globbing in evaled expressions
5067no_glob_subst='s/\*/\\\*/g'
5068
5069ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5070ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5071ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5072
5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5074printf %s "checking how to print strings... " >&6; }
5075# Test print first, because it will be a builtin if present.
5076if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5077   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5078  ECHO='print -r --'
5079elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5080  ECHO='printf %s\n'
5081else
5082  # Use this function as a fallback that always works.
5083  func_fallback_echo ()
5084  {
5085    eval 'cat <<_LTECHO_EOF
5086$1
5087_LTECHO_EOF'
5088  }
5089  ECHO='func_fallback_echo'
5090fi
5091
5092# func_echo_all arg...
5093# Invoke $ECHO with all args, space-separated.
5094func_echo_all ()
5095{
5096    $ECHO ""
5097}
5098
5099case $ECHO in
5100  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5101printf "%s\n" "printf" >&6; } ;;
5102  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5103printf "%s\n" "print -r" >&6; } ;;
5104  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5105printf "%s\n" "cat" >&6; } ;;
5106esac
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5122printf %s "checking for a sed that does not truncate output... " >&6; }
5123if test ${ac_cv_path_SED+y}
5124then :
5125  printf %s "(cached) " >&6
5126else case e in #(
5127  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5128     for ac_i in 1 2 3 4 5 6 7; do
5129       ac_script="$ac_script$as_nl$ac_script"
5130     done
5131     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5132     { ac_script=; unset ac_script;}
5133     if test -z "$SED"; then
5134  ac_path_SED_found=false
5135  # Loop through the user's path and test for each of PROGNAME-LIST
5136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139  IFS=$as_save_IFS
5140  case $as_dir in #(((
5141    '') as_dir=./ ;;
5142    */) ;;
5143    *) as_dir=$as_dir/ ;;
5144  esac
5145    for ac_prog in sed gsed
5146   do
5147    for ac_exec_ext in '' $ac_executable_extensions; do
5148      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5149      as_fn_executable_p "$ac_path_SED" || continue
5150# Check for GNU ac_path_SED and select it if it is found.
5151  # Check for GNU $ac_path_SED
5152case `"$ac_path_SED" --version 2>&1` in #(
5153*GNU*)
5154  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5155#(
5156*)
5157  ac_count=0
5158  printf %s 0123456789 >"conftest.in"
5159  while :
5160  do
5161    cat "conftest.in" "conftest.in" >"conftest.tmp"
5162    mv "conftest.tmp" "conftest.in"
5163    cp "conftest.in" "conftest.nl"
5164    printf "%s\n" '' >> "conftest.nl"
5165    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167    as_fn_arith $ac_count + 1 && ac_count=$as_val
5168    if test $ac_count -gt ${ac_path_SED_max-0}; then
5169      # Best one so far, save it but keep looking for a better one
5170      ac_cv_path_SED="$ac_path_SED"
5171      ac_path_SED_max=$ac_count
5172    fi
5173    # 10*(2^10) chars as input seems more than enough
5174    test $ac_count -gt 10 && break
5175  done
5176  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177esac
5178
5179      $ac_path_SED_found && break 3
5180    done
5181  done
5182  done
5183IFS=$as_save_IFS
5184  if test -z "$ac_cv_path_SED"; then
5185    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5186  fi
5187else
5188  ac_cv_path_SED=$SED
5189fi
5190 ;;
5191esac
5192fi
5193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5194printf "%s\n" "$ac_cv_path_SED" >&6; }
5195 SED="$ac_cv_path_SED"
5196  rm -f conftest.sed
5197
5198test -z "$SED" && SED=sed
5199Xsed="$SED -e 1s/^X//"
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5212printf %s "checking for grep that handles long lines and -e... " >&6; }
5213if test ${ac_cv_path_GREP+y}
5214then :
5215  printf %s "(cached) " >&6
5216else case e in #(
5217  e) if test -z "$GREP"; then
5218  ac_path_GREP_found=false
5219  # Loop through the user's path and test for each of PROGNAME-LIST
5220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5222do
5223  IFS=$as_save_IFS
5224  case $as_dir in #(((
5225    '') as_dir=./ ;;
5226    */) ;;
5227    *) as_dir=$as_dir/ ;;
5228  esac
5229    for ac_prog in grep ggrep
5230   do
5231    for ac_exec_ext in '' $ac_executable_extensions; do
5232      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5233      as_fn_executable_p "$ac_path_GREP" || continue
5234# Check for GNU ac_path_GREP and select it if it is found.
5235  # Check for GNU $ac_path_GREP
5236case `"$ac_path_GREP" --version 2>&1` in #(
5237*GNU*)
5238  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5239#(
5240*)
5241  ac_count=0
5242  printf %s 0123456789 >"conftest.in"
5243  while :
5244  do
5245    cat "conftest.in" "conftest.in" >"conftest.tmp"
5246    mv "conftest.tmp" "conftest.in"
5247    cp "conftest.in" "conftest.nl"
5248    printf "%s\n" 'GREP' >> "conftest.nl"
5249    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5250    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5251    as_fn_arith $ac_count + 1 && ac_count=$as_val
5252    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5253      # Best one so far, save it but keep looking for a better one
5254      ac_cv_path_GREP="$ac_path_GREP"
5255      ac_path_GREP_max=$ac_count
5256    fi
5257    # 10*(2^10) chars as input seems more than enough
5258    test $ac_count -gt 10 && break
5259  done
5260  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5261esac
5262
5263      $ac_path_GREP_found && break 3
5264    done
5265  done
5266  done
5267IFS=$as_save_IFS
5268  if test -z "$ac_cv_path_GREP"; then
5269    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270  fi
5271else
5272  ac_cv_path_GREP=$GREP
5273fi
5274 ;;
5275esac
5276fi
5277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5278printf "%s\n" "$ac_cv_path_GREP" >&6; }
5279 GREP="$ac_cv_path_GREP"
5280
5281
5282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5283printf %s "checking for egrep... " >&6; }
5284if test ${ac_cv_path_EGREP+y}
5285then :
5286  printf %s "(cached) " >&6
5287else case e in #(
5288  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5289   then ac_cv_path_EGREP="$GREP -E"
5290   else
5291     if test -z "$EGREP"; then
5292  ac_path_EGREP_found=false
5293  # Loop through the user's path and test for each of PROGNAME-LIST
5294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5296do
5297  IFS=$as_save_IFS
5298  case $as_dir in #(((
5299    '') as_dir=./ ;;
5300    */) ;;
5301    *) as_dir=$as_dir/ ;;
5302  esac
5303    for ac_prog in egrep
5304   do
5305    for ac_exec_ext in '' $ac_executable_extensions; do
5306      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5307      as_fn_executable_p "$ac_path_EGREP" || continue
5308# Check for GNU ac_path_EGREP and select it if it is found.
5309  # Check for GNU $ac_path_EGREP
5310case `"$ac_path_EGREP" --version 2>&1` in #(
5311*GNU*)
5312  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5313#(
5314*)
5315  ac_count=0
5316  printf %s 0123456789 >"conftest.in"
5317  while :
5318  do
5319    cat "conftest.in" "conftest.in" >"conftest.tmp"
5320    mv "conftest.tmp" "conftest.in"
5321    cp "conftest.in" "conftest.nl"
5322    printf "%s\n" 'EGREP' >> "conftest.nl"
5323    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5325    as_fn_arith $ac_count + 1 && ac_count=$as_val
5326    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5327      # Best one so far, save it but keep looking for a better one
5328      ac_cv_path_EGREP="$ac_path_EGREP"
5329      ac_path_EGREP_max=$ac_count
5330    fi
5331    # 10*(2^10) chars as input seems more than enough
5332    test $ac_count -gt 10 && break
5333  done
5334  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5335esac
5336
5337      $ac_path_EGREP_found && break 3
5338    done
5339  done
5340  done
5341IFS=$as_save_IFS
5342  if test -z "$ac_cv_path_EGREP"; then
5343    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5344  fi
5345else
5346  ac_cv_path_EGREP=$EGREP
5347fi
5348
5349   fi ;;
5350esac
5351fi
5352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5353printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5354 EGREP="$ac_cv_path_EGREP"
5355
5356         EGREP_TRADITIONAL=$EGREP
5357 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5358
5359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5360printf %s "checking for fgrep... " >&6; }
5361if test ${ac_cv_path_FGREP+y}
5362then :
5363  printf %s "(cached) " >&6
5364else case e in #(
5365  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5366   then ac_cv_path_FGREP="$GREP -F"
5367   else
5368     if test -z "$FGREP"; then
5369  ac_path_FGREP_found=false
5370  # Loop through the user's path and test for each of PROGNAME-LIST
5371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5373do
5374  IFS=$as_save_IFS
5375  case $as_dir in #(((
5376    '') as_dir=./ ;;
5377    */) ;;
5378    *) as_dir=$as_dir/ ;;
5379  esac
5380    for ac_prog in fgrep
5381   do
5382    for ac_exec_ext in '' $ac_executable_extensions; do
5383      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5384      as_fn_executable_p "$ac_path_FGREP" || continue
5385# Check for GNU ac_path_FGREP and select it if it is found.
5386  # Check for GNU $ac_path_FGREP
5387case `"$ac_path_FGREP" --version 2>&1` in #(
5388*GNU*)
5389  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5390#(
5391*)
5392  ac_count=0
5393  printf %s 0123456789 >"conftest.in"
5394  while :
5395  do
5396    cat "conftest.in" "conftest.in" >"conftest.tmp"
5397    mv "conftest.tmp" "conftest.in"
5398    cp "conftest.in" "conftest.nl"
5399    printf "%s\n" 'FGREP' >> "conftest.nl"
5400    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5401    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5402    as_fn_arith $ac_count + 1 && ac_count=$as_val
5403    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5404      # Best one so far, save it but keep looking for a better one
5405      ac_cv_path_FGREP="$ac_path_FGREP"
5406      ac_path_FGREP_max=$ac_count
5407    fi
5408    # 10*(2^10) chars as input seems more than enough
5409    test $ac_count -gt 10 && break
5410  done
5411  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5412esac
5413
5414      $ac_path_FGREP_found && break 3
5415    done
5416  done
5417  done
5418IFS=$as_save_IFS
5419  if test -z "$ac_cv_path_FGREP"; then
5420    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5421  fi
5422else
5423  ac_cv_path_FGREP=$FGREP
5424fi
5425
5426   fi ;;
5427esac
5428fi
5429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5430printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5431 FGREP="$ac_cv_path_FGREP"
5432
5433
5434test -z "$GREP" && GREP=grep
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454# Check whether --with-gnu-ld was given.
5455if test ${with_gnu_ld+y}
5456then :
5457  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5458else case e in #(
5459  e) with_gnu_ld=no ;;
5460esac
5461fi
5462
5463ac_prog=ld
5464if test yes = "$GCC"; then
5465  # Check if gcc -print-prog-name=ld gives a path.
5466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5467printf %s "checking for ld used by $CC... " >&6; }
5468  case $host in
5469  *-*-mingw* | *-*-windows*)
5470    # gcc leaves a trailing carriage return, which upsets mingw
5471    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5472  *)
5473    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5474  esac
5475  case $ac_prog in
5476    # Accept absolute paths.
5477    [\\/]* | ?:[\\/]*)
5478      re_direlt='/[^/][^/]*/\.\./'
5479      # Canonicalize the pathname of ld
5480      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5481      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5482	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5483      done
5484      test -z "$LD" && LD=$ac_prog
5485      ;;
5486  "")
5487    # If it fails, then pretend we aren't using GCC.
5488    ac_prog=ld
5489    ;;
5490  *)
5491    # If it is relative, then search for the first ld in PATH.
5492    with_gnu_ld=unknown
5493    ;;
5494  esac
5495elif test yes = "$with_gnu_ld"; then
5496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5497printf %s "checking for GNU ld... " >&6; }
5498else
5499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5500printf %s "checking for non-GNU ld... " >&6; }
5501fi
5502if test ${lt_cv_path_LD+y}
5503then :
5504  printf %s "(cached) " >&6
5505else case e in #(
5506  e) if test -z "$LD"; then
5507  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5508  for ac_dir in $PATH; do
5509    IFS=$lt_save_ifs
5510    test -z "$ac_dir" && ac_dir=.
5511    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5512      lt_cv_path_LD=$ac_dir/$ac_prog
5513      # Check to see if the program is GNU ld.  I'd rather use --version,
5514      # but apparently some variants of GNU ld only accept -v.
5515      # Break only if it was the GNU/non-GNU ld that we prefer.
5516      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5517      *GNU* | *'with BFD'*)
5518	test no != "$with_gnu_ld" && break
5519	;;
5520      *)
5521	test yes != "$with_gnu_ld" && break
5522	;;
5523      esac
5524    fi
5525  done
5526  IFS=$lt_save_ifs
5527else
5528  lt_cv_path_LD=$LD # Let the user override the test with a path.
5529fi ;;
5530esac
5531fi
5532
5533LD=$lt_cv_path_LD
5534if test -n "$LD"; then
5535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5536printf "%s\n" "$LD" >&6; }
5537else
5538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539printf "%s\n" "no" >&6; }
5540fi
5541test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5543printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5544if test ${lt_cv_prog_gnu_ld+y}
5545then :
5546  printf %s "(cached) " >&6
5547else case e in #(
5548  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5549case `$LD -v 2>&1 </dev/null` in
5550*GNU* | *'with BFD'*)
5551  lt_cv_prog_gnu_ld=yes
5552  ;;
5553*)
5554  lt_cv_prog_gnu_ld=no
5555  ;;
5556esac ;;
5557esac
5558fi
5559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5560printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5561with_gnu_ld=$lt_cv_prog_gnu_ld
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5572printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5573if test ${lt_cv_path_NM+y}
5574then :
5575  printf %s "(cached) " >&6
5576else case e in #(
5577  e) if test -n "$NM"; then
5578  # Let the user override the test.
5579  lt_cv_path_NM=$NM
5580else
5581  lt_nm_to_check=${ac_tool_prefix}nm
5582  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5583    lt_nm_to_check="$lt_nm_to_check nm"
5584  fi
5585  for lt_tmp_nm in $lt_nm_to_check; do
5586    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5587    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5588      IFS=$lt_save_ifs
5589      test -z "$ac_dir" && ac_dir=.
5590      tmp_nm=$ac_dir/$lt_tmp_nm
5591      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5592	# Check to see if the nm accepts a BSD-compat flag.
5593	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5594	#   nm: unknown option "B" ignored
5595	# Tru64's nm complains that /dev/null is an invalid object file
5596	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5597	case $build_os in
5598	mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5599	*) lt_bad_file=/dev/null ;;
5600	esac
5601	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5602	*$lt_bad_file* | *'Invalid file or object type'*)
5603	  lt_cv_path_NM="$tmp_nm -B"
5604	  break 2
5605	  ;;
5606	*)
5607	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5608	  */dev/null*)
5609	    lt_cv_path_NM="$tmp_nm -p"
5610	    break 2
5611	    ;;
5612	  *)
5613	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5614	    continue # so that we can try to find one that supports BSD flags
5615	    ;;
5616	  esac
5617	  ;;
5618	esac
5619      fi
5620    done
5621    IFS=$lt_save_ifs
5622  done
5623  : ${lt_cv_path_NM=no}
5624fi ;;
5625esac
5626fi
5627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5628printf "%s\n" "$lt_cv_path_NM" >&6; }
5629if test no != "$lt_cv_path_NM"; then
5630  NM=$lt_cv_path_NM
5631else
5632  # Didn't find any BSD compatible name lister, look for dumpbin.
5633  if test -n "$DUMPBIN"; then :
5634    # Let the user override the test.
5635  else
5636    if test -n "$ac_tool_prefix"; then
5637  for ac_prog in dumpbin "link -dump"
5638  do
5639    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5640set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642printf %s "checking for $ac_word... " >&6; }
5643if test ${ac_cv_prog_DUMPBIN+y}
5644then :
5645  printf %s "(cached) " >&6
5646else case e in #(
5647  e) if test -n "$DUMPBIN"; then
5648  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5649else
5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653  IFS=$as_save_IFS
5654  case $as_dir in #(((
5655    '') as_dir=./ ;;
5656    */) ;;
5657    *) as_dir=$as_dir/ ;;
5658  esac
5659    for ac_exec_ext in '' $ac_executable_extensions; do
5660  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5661    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5662    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5663    break 2
5664  fi
5665done
5666  done
5667IFS=$as_save_IFS
5668
5669fi ;;
5670esac
5671fi
5672DUMPBIN=$ac_cv_prog_DUMPBIN
5673if test -n "$DUMPBIN"; then
5674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5675printf "%s\n" "$DUMPBIN" >&6; }
5676else
5677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678printf "%s\n" "no" >&6; }
5679fi
5680
5681
5682    test -n "$DUMPBIN" && break
5683  done
5684fi
5685if test -z "$DUMPBIN"; then
5686  ac_ct_DUMPBIN=$DUMPBIN
5687  for ac_prog in dumpbin "link -dump"
5688do
5689  # Extract the first word of "$ac_prog", so it can be a program name with args.
5690set dummy $ac_prog; ac_word=$2
5691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692printf %s "checking for $ac_word... " >&6; }
5693if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5694then :
5695  printf %s "(cached) " >&6
5696else case e in #(
5697  e) if test -n "$ac_ct_DUMPBIN"; then
5698  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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  case $as_dir in #(((
5705    '') as_dir=./ ;;
5706    */) ;;
5707    *) as_dir=$as_dir/ ;;
5708  esac
5709    for ac_exec_ext in '' $ac_executable_extensions; do
5710  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5711    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5712    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5713    break 2
5714  fi
5715done
5716  done
5717IFS=$as_save_IFS
5718
5719fi ;;
5720esac
5721fi
5722ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5723if test -n "$ac_ct_DUMPBIN"; then
5724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5725printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5726else
5727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728printf "%s\n" "no" >&6; }
5729fi
5730
5731
5732  test -n "$ac_ct_DUMPBIN" && break
5733done
5734
5735  if test "x$ac_ct_DUMPBIN" = x; then
5736    DUMPBIN=":"
5737  else
5738    case $cross_compiling:$ac_tool_warned in
5739yes:)
5740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742ac_tool_warned=yes ;;
5743esac
5744    DUMPBIN=$ac_ct_DUMPBIN
5745  fi
5746fi
5747
5748    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5749    *COFF*)
5750      DUMPBIN="$DUMPBIN -symbols -headers"
5751      ;;
5752    *)
5753      DUMPBIN=:
5754      ;;
5755    esac
5756  fi
5757
5758  if test : != "$DUMPBIN"; then
5759    NM=$DUMPBIN
5760  fi
5761fi
5762test -z "$NM" && NM=nm
5763
5764
5765
5766
5767
5768
5769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5770printf %s "checking the name lister ($NM) interface... " >&6; }
5771if test ${lt_cv_nm_interface+y}
5772then :
5773  printf %s "(cached) " >&6
5774else case e in #(
5775  e) lt_cv_nm_interface="BSD nm"
5776  echo "int some_variable = 0;" > conftest.$ac_ext
5777  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5778  (eval "$ac_compile" 2>conftest.err)
5779  cat conftest.err >&5
5780  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5781  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5782  cat conftest.err >&5
5783  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5784  cat conftest.out >&5
5785  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5786    lt_cv_nm_interface="MS dumpbin"
5787  fi
5788  rm -f conftest* ;;
5789esac
5790fi
5791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5792printf "%s\n" "$lt_cv_nm_interface" >&6; }
5793
5794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5795printf %s "checking whether ln -s works... " >&6; }
5796LN_S=$as_ln_s
5797if test "$LN_S" = "ln -s"; then
5798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5799printf "%s\n" "yes" >&6; }
5800else
5801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5802printf "%s\n" "no, using $LN_S" >&6; }
5803fi
5804
5805# find the maximum length of command line arguments
5806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5807printf %s "checking the maximum length of command line arguments... " >&6; }
5808if test ${lt_cv_sys_max_cmd_len+y}
5809then :
5810  printf %s "(cached) " >&6
5811else case e in #(
5812  e)   i=0
5813  teststring=ABCD
5814
5815  case $build_os in
5816  msdosdjgpp*)
5817    # On DJGPP, this test can blow up pretty badly due to problems in libc
5818    # (any single argument exceeding 2000 bytes causes a buffer overrun
5819    # during glob expansion).  Even if it were fixed, the result of this
5820    # check would be larger than it should be.
5821    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5822    ;;
5823
5824  gnu* | ironclad*)
5825    # Under GNU Hurd and Ironclad, this test is not required because there
5826    # is no limit to the length of command line arguments.
5827    # Libtool will interpret -1 as no limit whatsoever
5828    lt_cv_sys_max_cmd_len=-1;
5829    ;;
5830
5831  cygwin* | mingw* | windows* | cegcc*)
5832    # On Win9x/ME, this test blows up -- it succeeds, but takes
5833    # about 5 minutes as the teststring grows exponentially.
5834    # Worse, since 9x/ME are not pre-emptively multitasking,
5835    # you end up with a "frozen" computer, even though with patience
5836    # the test eventually succeeds (with a max line length of 256k).
5837    # Instead, let's just punt: use the minimum linelength reported by
5838    # all of the supported platforms: 8192 (on NT/2K/XP).
5839    lt_cv_sys_max_cmd_len=8192;
5840    ;;
5841
5842  mint*)
5843    # On MiNT this can take a long time and run out of memory.
5844    lt_cv_sys_max_cmd_len=8192;
5845    ;;
5846
5847  amigaos*)
5848    # On AmigaOS with pdksh, this test takes hours, literally.
5849    # So we just punt and use a minimum line length of 8192.
5850    lt_cv_sys_max_cmd_len=8192;
5851    ;;
5852
5853  darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5854    # This has been around since 386BSD, at least.  Likely further.
5855    if test -x /sbin/sysctl; then
5856      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5857    elif test -x /usr/sbin/sysctl; then
5858      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5859    else
5860      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5861    fi
5862    # And add a safety zone
5863    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5864    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5865    ;;
5866
5867  interix*)
5868    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5869    lt_cv_sys_max_cmd_len=196608
5870    ;;
5871
5872  os2*)
5873    # The test takes a long time on OS/2.
5874    lt_cv_sys_max_cmd_len=8192
5875    ;;
5876
5877  osf*)
5878    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5879    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5880    # nice to cause kernel panics so lets avoid the loop below.
5881    # First set a reasonable default.
5882    lt_cv_sys_max_cmd_len=16384
5883    #
5884    if test -x /sbin/sysconfig; then
5885      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5886        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5887      esac
5888    fi
5889    ;;
5890  sco3.2v5*)
5891    lt_cv_sys_max_cmd_len=102400
5892    ;;
5893  sysv5* | sco5v6* | sysv4.2uw2*)
5894    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5895    if test -n "$kargmax"; then
5896      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5897    else
5898      lt_cv_sys_max_cmd_len=32768
5899    fi
5900    ;;
5901  *)
5902    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5903    if test -n "$lt_cv_sys_max_cmd_len" && \
5904       test undefined != "$lt_cv_sys_max_cmd_len"; then
5905      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5906      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5907    else
5908      # Make teststring a little bigger before we do anything with it.
5909      # a 1K string should be a reasonable start.
5910      for i in 1 2 3 4 5 6 7 8; do
5911        teststring=$teststring$teststring
5912      done
5913      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5914      # If test is not a shell built-in, we'll probably end up computing a
5915      # maximum length that is only half of the actual maximum length, but
5916      # we can't tell.
5917      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5918	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5919	      test 17 != "$i" # 1/2 MB should be enough
5920      do
5921        i=`expr $i + 1`
5922        teststring=$teststring$teststring
5923      done
5924      # Only check the string length outside the loop.
5925      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5926      teststring=
5927      # Add a significant safety factor because C++ compilers can tack on
5928      # massive amounts of additional arguments before passing them to the
5929      # linker.  It appears as though 1/2 is a usable value.
5930      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5931    fi
5932    ;;
5933  esac
5934 ;;
5935esac
5936fi
5937
5938if test -n "$lt_cv_sys_max_cmd_len"; then
5939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5940printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5941else
5942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5943printf "%s\n" "none" >&6; }
5944fi
5945max_cmd_len=$lt_cv_sys_max_cmd_len
5946
5947
5948
5949
5950
5951
5952: ${CP="cp -f"}
5953: ${MV="mv -f"}
5954: ${RM="rm -f"}
5955
5956if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5957  lt_unset=unset
5958else
5959  lt_unset=false
5960fi
5961
5962
5963
5964
5965
5966# test EBCDIC or ASCII
5967case `echo X|tr X '\101'` in
5968 A) # ASCII based system
5969    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5970  lt_SP2NL='tr \040 \012'
5971  lt_NL2SP='tr \015\012 \040\040'
5972  ;;
5973 *) # EBCDIC based system
5974  lt_SP2NL='tr \100 \n'
5975  lt_NL2SP='tr \r\n \100\100'
5976  ;;
5977esac
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5988printf %s "checking how to convert $build file names to $host format... " >&6; }
5989if test ${lt_cv_to_host_file_cmd+y}
5990then :
5991  printf %s "(cached) " >&6
5992else case e in #(
5993  e) case $host in
5994  *-*-mingw* )
5995    case $build in
5996      *-*-mingw* | *-*-windows* ) # actually msys
5997        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5998        ;;
5999      *-*-cygwin* )
6000        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6001        ;;
6002      * ) # otherwise, assume *nix
6003        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6004        ;;
6005    esac
6006    ;;
6007  *-*-cygwin* )
6008    case $build in
6009      *-*-mingw* | *-*-windows* ) # actually msys
6010        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6011        ;;
6012      *-*-cygwin* )
6013        lt_cv_to_host_file_cmd=func_convert_file_noop
6014        ;;
6015      * ) # otherwise, assume *nix
6016        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6017        ;;
6018    esac
6019    ;;
6020  * ) # unhandled hosts (and "normal" native builds)
6021    lt_cv_to_host_file_cmd=func_convert_file_noop
6022    ;;
6023esac
6024 ;;
6025esac
6026fi
6027
6028to_host_file_cmd=$lt_cv_to_host_file_cmd
6029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6030printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6031
6032
6033
6034
6035
6036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6037printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6038if test ${lt_cv_to_tool_file_cmd+y}
6039then :
6040  printf %s "(cached) " >&6
6041else case e in #(
6042  e) #assume ordinary cross tools, or native build.
6043lt_cv_to_tool_file_cmd=func_convert_file_noop
6044case $host in
6045  *-*-mingw* | *-*-windows* )
6046    case $build in
6047      *-*-mingw* | *-*-windows* ) # actually msys
6048        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6049        ;;
6050    esac
6051    ;;
6052esac
6053 ;;
6054esac
6055fi
6056
6057to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6059printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6060
6061
6062
6063
6064
6065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6066printf %s "checking for $LD option to reload object files... " >&6; }
6067if test ${lt_cv_ld_reload_flag+y}
6068then :
6069  printf %s "(cached) " >&6
6070else case e in #(
6071  e) lt_cv_ld_reload_flag='-r' ;;
6072esac
6073fi
6074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6075printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6076reload_flag=$lt_cv_ld_reload_flag
6077case $reload_flag in
6078"" | " "*) ;;
6079*) reload_flag=" $reload_flag" ;;
6080esac
6081reload_cmds='$LD$reload_flag -o $output$reload_objs'
6082case $host_os in
6083  cygwin* | mingw* | windows* | pw32* | cegcc*)
6084    if test yes != "$GCC"; then
6085      reload_cmds=false
6086    fi
6087    ;;
6088  darwin*)
6089    if test yes = "$GCC"; then
6090      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6091    else
6092      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6093    fi
6094    ;;
6095esac
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105# Extract the first word of "file", so it can be a program name with args.
6106set dummy file; ac_word=$2
6107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108printf %s "checking for $ac_word... " >&6; }
6109if test ${ac_cv_prog_FILECMD+y}
6110then :
6111  printf %s "(cached) " >&6
6112else case e in #(
6113  e) if test -n "$FILECMD"; then
6114  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6115else
6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119  IFS=$as_save_IFS
6120  case $as_dir in #(((
6121    '') as_dir=./ ;;
6122    */) ;;
6123    *) as_dir=$as_dir/ ;;
6124  esac
6125    for ac_exec_ext in '' $ac_executable_extensions; do
6126  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6127    ac_cv_prog_FILECMD="file"
6128    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6129    break 2
6130  fi
6131done
6132  done
6133IFS=$as_save_IFS
6134
6135  test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6136fi ;;
6137esac
6138fi
6139FILECMD=$ac_cv_prog_FILECMD
6140if test -n "$FILECMD"; then
6141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6142printf "%s\n" "$FILECMD" >&6; }
6143else
6144  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145printf "%s\n" "no" >&6; }
6146fi
6147
6148
6149
6150
6151
6152
6153
6154
6155if test -n "$ac_tool_prefix"; then
6156  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6157set dummy ${ac_tool_prefix}objdump; ac_word=$2
6158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159printf %s "checking for $ac_word... " >&6; }
6160if test ${ac_cv_prog_OBJDUMP+y}
6161then :
6162  printf %s "(cached) " >&6
6163else case e in #(
6164  e) if test -n "$OBJDUMP"; then
6165  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6166else
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170  IFS=$as_save_IFS
6171  case $as_dir in #(((
6172    '') as_dir=./ ;;
6173    */) ;;
6174    *) as_dir=$as_dir/ ;;
6175  esac
6176    for ac_exec_ext in '' $ac_executable_extensions; do
6177  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6178    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6179    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6180    break 2
6181  fi
6182done
6183  done
6184IFS=$as_save_IFS
6185
6186fi ;;
6187esac
6188fi
6189OBJDUMP=$ac_cv_prog_OBJDUMP
6190if test -n "$OBJDUMP"; then
6191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6192printf "%s\n" "$OBJDUMP" >&6; }
6193else
6194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195printf "%s\n" "no" >&6; }
6196fi
6197
6198
6199fi
6200if test -z "$ac_cv_prog_OBJDUMP"; then
6201  ac_ct_OBJDUMP=$OBJDUMP
6202  # Extract the first word of "objdump", so it can be a program name with args.
6203set dummy objdump; ac_word=$2
6204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205printf %s "checking for $ac_word... " >&6; }
6206if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6207then :
6208  printf %s "(cached) " >&6
6209else case e in #(
6210  e) if test -n "$ac_ct_OBJDUMP"; then
6211  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216  IFS=$as_save_IFS
6217  case $as_dir in #(((
6218    '') as_dir=./ ;;
6219    */) ;;
6220    *) as_dir=$as_dir/ ;;
6221  esac
6222    for ac_exec_ext in '' $ac_executable_extensions; do
6223  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6224    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6225    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6226    break 2
6227  fi
6228done
6229  done
6230IFS=$as_save_IFS
6231
6232fi ;;
6233esac
6234fi
6235ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6236if test -n "$ac_ct_OBJDUMP"; then
6237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6238printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6239else
6240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241printf "%s\n" "no" >&6; }
6242fi
6243
6244  if test "x$ac_ct_OBJDUMP" = x; then
6245    OBJDUMP="false"
6246  else
6247    case $cross_compiling:$ac_tool_warned in
6248yes:)
6249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251ac_tool_warned=yes ;;
6252esac
6253    OBJDUMP=$ac_ct_OBJDUMP
6254  fi
6255else
6256  OBJDUMP="$ac_cv_prog_OBJDUMP"
6257fi
6258
6259test -z "$OBJDUMP" && OBJDUMP=objdump
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6270printf %s "checking how to recognize dependent libraries... " >&6; }
6271if test ${lt_cv_deplibs_check_method+y}
6272then :
6273  printf %s "(cached) " >&6
6274else case e in #(
6275  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6276lt_cv_file_magic_test_file=
6277lt_cv_deplibs_check_method='unknown'
6278# Need to set the preceding variable on all platforms that support
6279# interlibrary dependencies.
6280# 'none' -- dependencies not supported.
6281# 'unknown' -- same as none, but documents that we really don't know.
6282# 'pass_all' -- all dependencies passed with no checks.
6283# 'file_magic [[regex]]' -- check by looking for files in library path
6284# that responds to the $file_magic_cmd with a given extended regex.
6285# If you have 'file' or equivalent on your system and you're not sure
6286# whether 'pass_all' will *always* work, you probably want this one.
6287
6288case $host_os in
6289aix[4-9]*)
6290  lt_cv_deplibs_check_method=pass_all
6291  ;;
6292
6293beos*)
6294  lt_cv_deplibs_check_method=pass_all
6295  ;;
6296
6297bsdi[45]*)
6298  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6299  lt_cv_file_magic_cmd='$FILECMD -L'
6300  lt_cv_file_magic_test_file=/shlib/libc.so
6301  ;;
6302
6303cygwin*)
6304  # func_win32_libid is a shell function defined in ltmain.sh
6305  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6306  lt_cv_file_magic_cmd='func_win32_libid'
6307  ;;
6308
6309mingw* | windows* | pw32*)
6310  # Base MSYS/MinGW do not provide the 'file' command needed by
6311  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6312  # unless we find 'file', for example because we are cross-compiling.
6313  if ( file / ) >/dev/null 2>&1; then
6314    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6315    lt_cv_file_magic_cmd='func_win32_libid'
6316  else
6317    # Keep this pattern in sync with the one in func_win32_libid.
6318    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6319    lt_cv_file_magic_cmd='$OBJDUMP -f'
6320  fi
6321  ;;
6322
6323cegcc*)
6324  # use the weaker test based on 'objdump'. See mingw*.
6325  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6326  lt_cv_file_magic_cmd='$OBJDUMP -f'
6327  ;;
6328
6329darwin* | rhapsody*)
6330  lt_cv_deplibs_check_method=pass_all
6331  ;;
6332
6333freebsd* | dragonfly* | midnightbsd*)
6334  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6335    case $host_cpu in
6336    i*86 )
6337      # Not sure whether the presence of OpenBSD here was a mistake.
6338      # Let's accept both of them until this is cleared up.
6339      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6340      lt_cv_file_magic_cmd=$FILECMD
6341      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6342      ;;
6343    esac
6344  else
6345    lt_cv_deplibs_check_method=pass_all
6346  fi
6347  ;;
6348
6349haiku*)
6350  lt_cv_deplibs_check_method=pass_all
6351  ;;
6352
6353hpux10.20* | hpux11*)
6354  lt_cv_file_magic_cmd=$FILECMD
6355  case $host_cpu in
6356  ia64*)
6357    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6358    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6359    ;;
6360  hppa*64*)
6361    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]'
6362    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6363    ;;
6364  *)
6365    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6366    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6367    ;;
6368  esac
6369  ;;
6370
6371interix[3-9]*)
6372  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6373  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6374  ;;
6375
6376irix5* | irix6* | nonstopux*)
6377  case $LD in
6378  *-32|*"-32 ") libmagic=32-bit;;
6379  *-n32|*"-n32 ") libmagic=N32;;
6380  *-64|*"-64 ") libmagic=64-bit;;
6381  *) libmagic=never-match;;
6382  esac
6383  lt_cv_deplibs_check_method=pass_all
6384  ;;
6385
6386# This must be glibc/ELF.
6387linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6388  lt_cv_deplibs_check_method=pass_all
6389  ;;
6390
6391*-mlibc)
6392  lt_cv_deplibs_check_method=pass_all
6393  ;;
6394
6395netbsd* | netbsdelf*-gnu)
6396  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6397    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6398  else
6399    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6400  fi
6401  ;;
6402
6403newos6*)
6404  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6405  lt_cv_file_magic_cmd=$FILECMD
6406  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6407  ;;
6408
6409*nto* | *qnx*)
6410  lt_cv_deplibs_check_method=pass_all
6411  ;;
6412
6413openbsd*)
6414  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6415    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6416  else
6417    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6418  fi
6419  ;;
6420
6421osf3* | osf4* | osf5*)
6422  lt_cv_deplibs_check_method=pass_all
6423  ;;
6424
6425rdos*)
6426  lt_cv_deplibs_check_method=pass_all
6427  ;;
6428
6429serenity*)
6430  lt_cv_deplibs_check_method=pass_all
6431  ;;
6432
6433solaris*)
6434  lt_cv_deplibs_check_method=pass_all
6435  ;;
6436
6437sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6438  lt_cv_deplibs_check_method=pass_all
6439  ;;
6440
6441sysv4 | sysv4.3*)
6442  case $host_vendor in
6443  motorola)
6444    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]'
6445    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6446    ;;
6447  ncr)
6448    lt_cv_deplibs_check_method=pass_all
6449    ;;
6450  sequent)
6451    lt_cv_file_magic_cmd='/bin/file'
6452    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6453    ;;
6454  sni)
6455    lt_cv_file_magic_cmd='/bin/file'
6456    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6457    lt_cv_file_magic_test_file=/lib/libc.so
6458    ;;
6459  siemens)
6460    lt_cv_deplibs_check_method=pass_all
6461    ;;
6462  pc)
6463    lt_cv_deplibs_check_method=pass_all
6464    ;;
6465  esac
6466  ;;
6467
6468tpf*)
6469  lt_cv_deplibs_check_method=pass_all
6470  ;;
6471os2*)
6472  lt_cv_deplibs_check_method=pass_all
6473  ;;
6474esac
6475 ;;
6476esac
6477fi
6478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6479printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6480
6481file_magic_glob=
6482want_nocaseglob=no
6483if test "$build" = "$host"; then
6484  case $host_os in
6485  mingw* | windows* | pw32*)
6486    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6487      want_nocaseglob=yes
6488    else
6489      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6490    fi
6491    ;;
6492  esac
6493fi
6494
6495file_magic_cmd=$lt_cv_file_magic_cmd
6496deplibs_check_method=$lt_cv_deplibs_check_method
6497test -z "$deplibs_check_method" && deplibs_check_method=unknown
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520if test -n "$ac_tool_prefix"; then
6521  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6522set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524printf %s "checking for $ac_word... " >&6; }
6525if test ${ac_cv_prog_DLLTOOL+y}
6526then :
6527  printf %s "(cached) " >&6
6528else case e in #(
6529  e) if test -n "$DLLTOOL"; then
6530  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535  IFS=$as_save_IFS
6536  case $as_dir in #(((
6537    '') as_dir=./ ;;
6538    */) ;;
6539    *) as_dir=$as_dir/ ;;
6540  esac
6541    for ac_exec_ext in '' $ac_executable_extensions; do
6542  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6543    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6544    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6545    break 2
6546  fi
6547done
6548  done
6549IFS=$as_save_IFS
6550
6551fi ;;
6552esac
6553fi
6554DLLTOOL=$ac_cv_prog_DLLTOOL
6555if test -n "$DLLTOOL"; then
6556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6557printf "%s\n" "$DLLTOOL" >&6; }
6558else
6559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560printf "%s\n" "no" >&6; }
6561fi
6562
6563
6564fi
6565if test -z "$ac_cv_prog_DLLTOOL"; then
6566  ac_ct_DLLTOOL=$DLLTOOL
6567  # Extract the first word of "dlltool", so it can be a program name with args.
6568set dummy dlltool; ac_word=$2
6569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570printf %s "checking for $ac_word... " >&6; }
6571if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6572then :
6573  printf %s "(cached) " >&6
6574else case e in #(
6575  e) if test -n "$ac_ct_DLLTOOL"; then
6576  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581  IFS=$as_save_IFS
6582  case $as_dir in #(((
6583    '') as_dir=./ ;;
6584    */) ;;
6585    *) as_dir=$as_dir/ ;;
6586  esac
6587    for ac_exec_ext in '' $ac_executable_extensions; do
6588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6589    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594  done
6595IFS=$as_save_IFS
6596
6597fi ;;
6598esac
6599fi
6600ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6601if test -n "$ac_ct_DLLTOOL"; then
6602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6603printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6604else
6605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606printf "%s\n" "no" >&6; }
6607fi
6608
6609  if test "x$ac_ct_DLLTOOL" = x; then
6610    DLLTOOL="false"
6611  else
6612    case $cross_compiling:$ac_tool_warned in
6613yes:)
6614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616ac_tool_warned=yes ;;
6617esac
6618    DLLTOOL=$ac_ct_DLLTOOL
6619  fi
6620else
6621  DLLTOOL="$ac_cv_prog_DLLTOOL"
6622fi
6623
6624test -z "$DLLTOOL" && DLLTOOL=dlltool
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6636printf %s "checking how to associate runtime and link libraries... " >&6; }
6637if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6638then :
6639  printf %s "(cached) " >&6
6640else case e in #(
6641  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6642
6643case $host_os in
6644cygwin* | mingw* | windows* | pw32* | cegcc*)
6645  # two different shell functions defined in ltmain.sh;
6646  # decide which one to use based on capabilities of $DLLTOOL
6647  case `$DLLTOOL --help 2>&1` in
6648  *--identify-strict*)
6649    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6650    ;;
6651  *)
6652    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6653    ;;
6654  esac
6655  ;;
6656*)
6657  # fallback: assume linklib IS sharedlib
6658  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6659  ;;
6660esac
6661 ;;
6662esac
6663fi
6664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6665printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6666sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6667test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6668
6669
6670
6671
6672
6673
6674
6675if test -n "$ac_tool_prefix"; then
6676  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6677set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679printf %s "checking for $ac_word... " >&6; }
6680if test ${ac_cv_prog_RANLIB+y}
6681then :
6682  printf %s "(cached) " >&6
6683else case e in #(
6684  e) if test -n "$RANLIB"; then
6685  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6686else
6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690  IFS=$as_save_IFS
6691  case $as_dir in #(((
6692    '') as_dir=./ ;;
6693    */) ;;
6694    *) as_dir=$as_dir/ ;;
6695  esac
6696    for ac_exec_ext in '' $ac_executable_extensions; do
6697  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6698    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6699    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6700    break 2
6701  fi
6702done
6703  done
6704IFS=$as_save_IFS
6705
6706fi ;;
6707esac
6708fi
6709RANLIB=$ac_cv_prog_RANLIB
6710if test -n "$RANLIB"; then
6711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6712printf "%s\n" "$RANLIB" >&6; }
6713else
6714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715printf "%s\n" "no" >&6; }
6716fi
6717
6718
6719fi
6720if test -z "$ac_cv_prog_RANLIB"; then
6721  ac_ct_RANLIB=$RANLIB
6722  # Extract the first word of "ranlib", so it can be a program name with args.
6723set dummy ranlib; ac_word=$2
6724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725printf %s "checking for $ac_word... " >&6; }
6726if test ${ac_cv_prog_ac_ct_RANLIB+y}
6727then :
6728  printf %s "(cached) " >&6
6729else case e in #(
6730  e) if test -n "$ac_ct_RANLIB"; then
6731  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6732else
6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736  IFS=$as_save_IFS
6737  case $as_dir in #(((
6738    '') as_dir=./ ;;
6739    */) ;;
6740    *) as_dir=$as_dir/ ;;
6741  esac
6742    for ac_exec_ext in '' $ac_executable_extensions; do
6743  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6744    ac_cv_prog_ac_ct_RANLIB="ranlib"
6745    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749  done
6750IFS=$as_save_IFS
6751
6752fi ;;
6753esac
6754fi
6755ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6756if test -n "$ac_ct_RANLIB"; then
6757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6758printf "%s\n" "$ac_ct_RANLIB" >&6; }
6759else
6760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761printf "%s\n" "no" >&6; }
6762fi
6763
6764  if test "x$ac_ct_RANLIB" = x; then
6765    RANLIB=":"
6766  else
6767    case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773    RANLIB=$ac_ct_RANLIB
6774  fi
6775else
6776  RANLIB="$ac_cv_prog_RANLIB"
6777fi
6778
6779if test -n "$ac_tool_prefix"; then
6780  for ac_prog in ar
6781  do
6782    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785printf %s "checking for $ac_word... " >&6; }
6786if test ${ac_cv_prog_AR+y}
6787then :
6788  printf %s "(cached) " >&6
6789else case e in #(
6790  e) if test -n "$AR"; then
6791  ac_cv_prog_AR="$AR" # Let the user override the test.
6792else
6793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796  IFS=$as_save_IFS
6797  case $as_dir in #(((
6798    '') as_dir=./ ;;
6799    */) ;;
6800    *) as_dir=$as_dir/ ;;
6801  esac
6802    for ac_exec_ext in '' $ac_executable_extensions; do
6803  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6804    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6805    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6806    break 2
6807  fi
6808done
6809  done
6810IFS=$as_save_IFS
6811
6812fi ;;
6813esac
6814fi
6815AR=$ac_cv_prog_AR
6816if test -n "$AR"; then
6817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6818printf "%s\n" "$AR" >&6; }
6819else
6820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821printf "%s\n" "no" >&6; }
6822fi
6823
6824
6825    test -n "$AR" && break
6826  done
6827fi
6828if test -z "$AR"; then
6829  ac_ct_AR=$AR
6830  for ac_prog in ar
6831do
6832  # Extract the first word of "$ac_prog", so it can be a program name with args.
6833set dummy $ac_prog; ac_word=$2
6834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835printf %s "checking for $ac_word... " >&6; }
6836if test ${ac_cv_prog_ac_ct_AR+y}
6837then :
6838  printf %s "(cached) " >&6
6839else case e in #(
6840  e) if test -n "$ac_ct_AR"; then
6841  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6842else
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846  IFS=$as_save_IFS
6847  case $as_dir in #(((
6848    '') as_dir=./ ;;
6849    */) ;;
6850    *) as_dir=$as_dir/ ;;
6851  esac
6852    for ac_exec_ext in '' $ac_executable_extensions; do
6853  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6854    ac_cv_prog_ac_ct_AR="$ac_prog"
6855    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6856    break 2
6857  fi
6858done
6859  done
6860IFS=$as_save_IFS
6861
6862fi ;;
6863esac
6864fi
6865ac_ct_AR=$ac_cv_prog_ac_ct_AR
6866if test -n "$ac_ct_AR"; then
6867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6868printf "%s\n" "$ac_ct_AR" >&6; }
6869else
6870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871printf "%s\n" "no" >&6; }
6872fi
6873
6874
6875  test -n "$ac_ct_AR" && break
6876done
6877
6878  if test "x$ac_ct_AR" = x; then
6879    AR="false"
6880  else
6881    case $cross_compiling:$ac_tool_warned in
6882yes:)
6883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6884printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6885ac_tool_warned=yes ;;
6886esac
6887    AR=$ac_ct_AR
6888  fi
6889fi
6890
6891: ${AR=ar}
6892
6893
6894
6895
6896
6897
6898# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6899# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6900# higher priority because that's what people were doing historically (setting
6901# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6902# variable obsoleted/removed.
6903
6904test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6905lt_ar_flags=$AR_FLAGS
6906
6907
6908
6909
6910
6911
6912# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6913# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6914
6915
6916
6917
6918
6919
6920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6921printf %s "checking for archiver @FILE support... " >&6; }
6922if test ${lt_cv_ar_at_file+y}
6923then :
6924  printf %s "(cached) " >&6
6925else case e in #(
6926  e) lt_cv_ar_at_file=no
6927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h.  */
6929
6930int
6931main (void)
6932{
6933
6934  ;
6935  return 0;
6936}
6937_ACEOF
6938if ac_fn_c_try_compile "$LINENO"
6939then :
6940  echo conftest.$ac_objext > conftest.lst
6941      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6942      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6943  (eval $lt_ar_try) 2>&5
6944  ac_status=$?
6945  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946  test $ac_status = 0; }
6947      if test 0 -eq "$ac_status"; then
6948	# Ensure the archiver fails upon bogus file names.
6949	rm -f conftest.$ac_objext libconftest.a
6950	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6951  (eval $lt_ar_try) 2>&5
6952  ac_status=$?
6953  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954  test $ac_status = 0; }
6955	if test 0 -ne "$ac_status"; then
6956          lt_cv_ar_at_file=@
6957        fi
6958      fi
6959      rm -f conftest.* libconftest.a
6960
6961fi
6962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6963   ;;
6964esac
6965fi
6966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6967printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6968
6969if test no = "$lt_cv_ar_at_file"; then
6970  archiver_list_spec=
6971else
6972  archiver_list_spec=$lt_cv_ar_at_file
6973fi
6974
6975
6976
6977
6978
6979
6980
6981if test -n "$ac_tool_prefix"; then
6982  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6983set dummy ${ac_tool_prefix}strip; ac_word=$2
6984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985printf %s "checking for $ac_word... " >&6; }
6986if test ${ac_cv_prog_STRIP+y}
6987then :
6988  printf %s "(cached) " >&6
6989else case e in #(
6990  e) if test -n "$STRIP"; then
6991  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6992else
6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996  IFS=$as_save_IFS
6997  case $as_dir in #(((
6998    '') as_dir=./ ;;
6999    */) ;;
7000    *) as_dir=$as_dir/ ;;
7001  esac
7002    for ac_exec_ext in '' $ac_executable_extensions; do
7003  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7004    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7005    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7006    break 2
7007  fi
7008done
7009  done
7010IFS=$as_save_IFS
7011
7012fi ;;
7013esac
7014fi
7015STRIP=$ac_cv_prog_STRIP
7016if test -n "$STRIP"; then
7017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7018printf "%s\n" "$STRIP" >&6; }
7019else
7020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021printf "%s\n" "no" >&6; }
7022fi
7023
7024
7025fi
7026if test -z "$ac_cv_prog_STRIP"; then
7027  ac_ct_STRIP=$STRIP
7028  # Extract the first word of "strip", so it can be a program name with args.
7029set dummy strip; ac_word=$2
7030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031printf %s "checking for $ac_word... " >&6; }
7032if test ${ac_cv_prog_ac_ct_STRIP+y}
7033then :
7034  printf %s "(cached) " >&6
7035else case e in #(
7036  e) if test -n "$ac_ct_STRIP"; then
7037  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7038else
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042  IFS=$as_save_IFS
7043  case $as_dir in #(((
7044    '') as_dir=./ ;;
7045    */) ;;
7046    *) as_dir=$as_dir/ ;;
7047  esac
7048    for ac_exec_ext in '' $ac_executable_extensions; do
7049  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7050    ac_cv_prog_ac_ct_STRIP="strip"
7051    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7052    break 2
7053  fi
7054done
7055  done
7056IFS=$as_save_IFS
7057
7058fi ;;
7059esac
7060fi
7061ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7062if test -n "$ac_ct_STRIP"; then
7063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7064printf "%s\n" "$ac_ct_STRIP" >&6; }
7065else
7066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067printf "%s\n" "no" >&6; }
7068fi
7069
7070  if test "x$ac_ct_STRIP" = x; then
7071    STRIP=":"
7072  else
7073    case $cross_compiling:$ac_tool_warned in
7074yes:)
7075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077ac_tool_warned=yes ;;
7078esac
7079    STRIP=$ac_ct_STRIP
7080  fi
7081else
7082  STRIP="$ac_cv_prog_STRIP"
7083fi
7084
7085test -z "$STRIP" && STRIP=:
7086
7087
7088
7089
7090
7091
7092
7093test -z "$RANLIB" && RANLIB=:
7094
7095
7096
7097
7098
7099
7100# Determine commands to create old-style static archives.
7101old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7102old_postinstall_cmds='chmod 644 $oldlib'
7103old_postuninstall_cmds=
7104
7105if test -n "$RANLIB"; then
7106  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7107  old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7108fi
7109
7110case $host_os in
7111  darwin*)
7112    lock_old_archive_extraction=yes ;;
7113  *)
7114    lock_old_archive_extraction=no ;;
7115esac
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155# If no C compiler was specified, use CC.
7156LTCC=${LTCC-"$CC"}
7157
7158# If no C compiler flags were specified, use CFLAGS.
7159LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7160
7161# Allow CC to be a program name with arguments.
7162compiler=$CC
7163
7164
7165# Check for command to grab the raw symbol name followed by C symbol from nm.
7166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7167printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7168if test ${lt_cv_sys_global_symbol_pipe+y}
7169then :
7170  printf %s "(cached) " >&6
7171else case e in #(
7172  e)
7173# These are sane defaults that work on at least a few old systems.
7174# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7175
7176# Character class describing NM global symbol codes.
7177symcode='[BCDEGRST]'
7178
7179# Regexp to match symbols that can be accessed directly from C.
7180sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7181
7182# Define system-specific variables.
7183case $host_os in
7184aix*)
7185  symcode='[BCDT]'
7186  ;;
7187cygwin* | mingw* | windows* | pw32* | cegcc*)
7188  symcode='[ABCDGISTW]'
7189  ;;
7190hpux*)
7191  if test ia64 = "$host_cpu"; then
7192    symcode='[ABCDEGRST]'
7193  fi
7194  ;;
7195irix* | nonstopux*)
7196  symcode='[BCDEGRST]'
7197  ;;
7198osf*)
7199  symcode='[BCDEGQRST]'
7200  ;;
7201solaris*)
7202  symcode='[BCDRT]'
7203  ;;
7204sco3.2v5*)
7205  symcode='[DT]'
7206  ;;
7207sysv4.2uw2*)
7208  symcode='[DT]'
7209  ;;
7210sysv5* | sco5v6* | unixware* | OpenUNIX*)
7211  symcode='[ABDT]'
7212  ;;
7213sysv4)
7214  symcode='[DFNSTU]'
7215  ;;
7216esac
7217
7218# If we're using GNU nm, then use its standard symbol codes.
7219case `$NM -V 2>&1` in
7220*GNU* | *'with BFD'*)
7221  symcode='[ABCDGIRSTW]' ;;
7222esac
7223
7224if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7225  # Gets list of data symbols to import.
7226  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7227  # Adjust the below global symbol transforms to fixup imported variables.
7228  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7229  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7230  lt_c_name_lib_hook="\
7231  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7232  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7233else
7234  # Disable hooks by default.
7235  lt_cv_sys_global_symbol_to_import=
7236  lt_cdecl_hook=
7237  lt_c_name_hook=
7238  lt_c_name_lib_hook=
7239fi
7240
7241# Transform an extracted symbol line into a proper C declaration.
7242# Some systems (esp. on ia64) link data and code symbols differently,
7243# so use this general approach.
7244lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7245$lt_cdecl_hook\
7246" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7247" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7248
7249# Transform an extracted symbol line into symbol name and symbol address
7250lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7251$lt_c_name_hook\
7252" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7253" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7254
7255# Transform an extracted symbol line into symbol name with lib prefix and
7256# symbol address.
7257lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7258$lt_c_name_lib_hook\
7259" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7260" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7261" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7262
7263# Handle CRLF in mingw tool chain
7264opt_cr=
7265case $build_os in
7266mingw* | windows*)
7267  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7268  ;;
7269esac
7270
7271# Try without a prefix underscore, then with it.
7272for ac_symprfx in "" "_"; do
7273
7274  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7275  symxfrm="\\1 $ac_symprfx\\2 \\2"
7276
7277  # Write the raw and C identifiers.
7278  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7279    # Fake it for dumpbin and say T for any non-static function,
7280    # D for any global variable and I for any imported variable.
7281    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7282    # which start with @ or ?.
7283    lt_cv_sys_global_symbol_pipe="$AWK '"\
7284"     {last_section=section; section=\$ 3};"\
7285"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7286"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7287"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7288"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7289"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7290"     \$ 0!~/External *\|/{next};"\
7291"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7292"     {if(hide[section]) next};"\
7293"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7294"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7295"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7296"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7297"     ' prfx=^$ac_symprfx"
7298  else
7299    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7300  fi
7301  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7302
7303  # Check to see that the pipe works correctly.
7304  pipe_works=no
7305
7306  rm -f conftest*
7307  cat > conftest.$ac_ext <<_LT_EOF
7308#ifdef __cplusplus
7309extern "C" {
7310#endif
7311char nm_test_var;
7312void nm_test_func(void);
7313void nm_test_func(void){}
7314#ifdef __cplusplus
7315}
7316#endif
7317int main(void){nm_test_var='a';nm_test_func();return(0);}
7318_LT_EOF
7319
7320  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7321  (eval $ac_compile) 2>&5
7322  ac_status=$?
7323  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324  test $ac_status = 0; }; then
7325    # Now try to grab the symbols.
7326    nlist=conftest.nm
7327    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7328    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7329      # Try sorting and uniquifying the output.
7330      if sort "$nlist" | uniq > "$nlist"T; then
7331	mv -f "$nlist"T "$nlist"
7332      else
7333	rm -f "$nlist"T
7334      fi
7335
7336      # Make sure that we snagged all the symbols we need.
7337      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7338	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7339	  cat <<_LT_EOF > conftest.$ac_ext
7340/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7341#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7342/* DATA imports from DLLs on WIN32 can't be const, because runtime
7343   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7344# define LT_DLSYM_CONST
7345#elif defined __osf__
7346/* This system does not cope well with relocations in const data.  */
7347# define LT_DLSYM_CONST
7348#else
7349# define LT_DLSYM_CONST const
7350#endif
7351
7352#ifdef __cplusplus
7353extern "C" {
7354#endif
7355
7356_LT_EOF
7357	  # Now generate the symbol file.
7358	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7359
7360	  cat <<_LT_EOF >> conftest.$ac_ext
7361
7362/* The mapping between symbol names and symbols.  */
7363LT_DLSYM_CONST struct {
7364  const char *name;
7365  void       *address;
7366}
7367lt__PROGRAM__LTX_preloaded_symbols[] =
7368{
7369  { "@PROGRAM@", (void *) 0 },
7370_LT_EOF
7371	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7372	  cat <<\_LT_EOF >> conftest.$ac_ext
7373  {0, (void *) 0}
7374};
7375
7376/* This works around a problem in FreeBSD linker */
7377#ifdef FREEBSD_WORKAROUND
7378static const void *lt_preloaded_setup() {
7379  return lt__PROGRAM__LTX_preloaded_symbols;
7380}
7381#endif
7382
7383#ifdef __cplusplus
7384}
7385#endif
7386_LT_EOF
7387	  # Now try linking the two files.
7388	  mv conftest.$ac_objext conftstm.$ac_objext
7389	  lt_globsym_save_LIBS=$LIBS
7390	  lt_globsym_save_CFLAGS=$CFLAGS
7391	  LIBS=conftstm.$ac_objext
7392	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7393	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7394  (eval $ac_link) 2>&5
7395  ac_status=$?
7396  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7398	    pipe_works=yes
7399	  fi
7400	  LIBS=$lt_globsym_save_LIBS
7401	  CFLAGS=$lt_globsym_save_CFLAGS
7402	else
7403	  echo "cannot find nm_test_func in $nlist" >&5
7404	fi
7405      else
7406	echo "cannot find nm_test_var in $nlist" >&5
7407      fi
7408    else
7409      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7410    fi
7411  else
7412    echo "$progname: failed program was:" >&5
7413    cat conftest.$ac_ext >&5
7414  fi
7415  rm -rf conftest* conftst*
7416
7417  # Do not use the global_symbol_pipe unless it works.
7418  if test yes = "$pipe_works"; then
7419    break
7420  else
7421    lt_cv_sys_global_symbol_pipe=
7422  fi
7423done
7424 ;;
7425esac
7426fi
7427
7428if test -z "$lt_cv_sys_global_symbol_pipe"; then
7429  lt_cv_sys_global_symbol_to_cdecl=
7430fi
7431if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7433printf "%s\n" "failed" >&6; }
7434else
7435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7436printf "%s\n" "ok" >&6; }
7437fi
7438
7439# Response file support.
7440if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7441  nm_file_list_spec='@'
7442elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7443  nm_file_list_spec='@'
7444fi
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7483printf %s "checking for sysroot... " >&6; }
7484
7485# Check whether --with-sysroot was given.
7486if test ${with_sysroot+y}
7487then :
7488  withval=$with_sysroot;
7489else case e in #(
7490  e) with_sysroot=no ;;
7491esac
7492fi
7493
7494
7495lt_sysroot=
7496case $with_sysroot in #(
7497 yes)
7498   if test yes = "$GCC"; then
7499     # Trim trailing / since we'll always append absolute paths and we want
7500     # to avoid //, if only for less confusing output for the user.
7501     lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7502   fi
7503   ;; #(
7504 /*)
7505   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7506   ;; #(
7507 no|'')
7508   ;; #(
7509 *)
7510   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7511printf "%s\n" "$with_sysroot" >&6; }
7512   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7513   ;;
7514esac
7515
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7517printf "%s\n" "${lt_sysroot:-no}" >&6; }
7518
7519
7520
7521
7522
7523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7524printf %s "checking for a working dd... " >&6; }
7525if test ${ac_cv_path_lt_DD+y}
7526then :
7527  printf %s "(cached) " >&6
7528else case e in #(
7529  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7530cat conftest.i conftest.i >conftest2.i
7531: ${lt_DD:=$DD}
7532if test -z "$lt_DD"; then
7533  ac_path_lt_DD_found=false
7534  # Loop through the user's path and test for each of PROGNAME-LIST
7535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538  IFS=$as_save_IFS
7539  case $as_dir in #(((
7540    '') as_dir=./ ;;
7541    */) ;;
7542    *) as_dir=$as_dir/ ;;
7543  esac
7544    for ac_prog in dd
7545   do
7546    for ac_exec_ext in '' $ac_executable_extensions; do
7547      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7548      as_fn_executable_p "$ac_path_lt_DD" || continue
7549if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7550  cmp -s conftest.i conftest.out \
7551  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7552fi
7553      $ac_path_lt_DD_found && break 3
7554    done
7555  done
7556  done
7557IFS=$as_save_IFS
7558  if test -z "$ac_cv_path_lt_DD"; then
7559    :
7560  fi
7561else
7562  ac_cv_path_lt_DD=$lt_DD
7563fi
7564
7565rm -f conftest.i conftest2.i conftest.out ;;
7566esac
7567fi
7568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7569printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7570
7571
7572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7573printf %s "checking how to truncate binary pipes... " >&6; }
7574if test ${lt_cv_truncate_bin+y}
7575then :
7576  printf %s "(cached) " >&6
7577else case e in #(
7578  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7579cat conftest.i conftest.i >conftest2.i
7580lt_cv_truncate_bin=
7581if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7582  cmp -s conftest.i conftest.out \
7583  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7584fi
7585rm -f conftest.i conftest2.i conftest.out
7586test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7587esac
7588fi
7589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7590printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7591
7592
7593
7594
7595
7596
7597
7598# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7599func_cc_basename ()
7600{
7601    for cc_temp in $*""; do
7602      case $cc_temp in
7603        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7604        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7605        \-*) ;;
7606        *) break;;
7607      esac
7608    done
7609    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7610}
7611
7612# Check whether --enable-libtool-lock was given.
7613if test ${enable_libtool_lock+y}
7614then :
7615  enableval=$enable_libtool_lock;
7616fi
7617
7618test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7619
7620# Some flags need to be propagated to the compiler or linker for good
7621# libtool support.
7622case $host in
7623ia64-*-hpux*)
7624  # Find out what ABI is being produced by ac_compile, and set mode
7625  # options accordingly.
7626  echo 'int i;' > conftest.$ac_ext
7627  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7628  (eval $ac_compile) 2>&5
7629  ac_status=$?
7630  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7631  test $ac_status = 0; }; then
7632    case `$FILECMD conftest.$ac_objext` in
7633      *ELF-32*)
7634	HPUX_IA64_MODE=32
7635	;;
7636      *ELF-64*)
7637	HPUX_IA64_MODE=64
7638	;;
7639    esac
7640  fi
7641  rm -rf conftest*
7642  ;;
7643*-*-irix6*)
7644  # Find out what ABI is being produced by ac_compile, and set linker
7645  # options accordingly.
7646  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7647  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7648  (eval $ac_compile) 2>&5
7649  ac_status=$?
7650  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7651  test $ac_status = 0; }; then
7652    if test yes = "$lt_cv_prog_gnu_ld"; then
7653      case `$FILECMD conftest.$ac_objext` in
7654	*32-bit*)
7655	  LD="${LD-ld} -melf32bsmip"
7656	  ;;
7657	*N32*)
7658	  LD="${LD-ld} -melf32bmipn32"
7659	  ;;
7660	*64-bit*)
7661	  LD="${LD-ld} -melf64bmip"
7662	;;
7663      esac
7664    else
7665      case `$FILECMD conftest.$ac_objext` in
7666	*32-bit*)
7667	  LD="${LD-ld} -32"
7668	  ;;
7669	*N32*)
7670	  LD="${LD-ld} -n32"
7671	  ;;
7672	*64-bit*)
7673	  LD="${LD-ld} -64"
7674	  ;;
7675      esac
7676    fi
7677  fi
7678  rm -rf conftest*
7679  ;;
7680
7681mips64*-*linux*)
7682  # Find out what ABI is being produced by ac_compile, and set linker
7683  # options accordingly.
7684  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7685  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7686  (eval $ac_compile) 2>&5
7687  ac_status=$?
7688  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7689  test $ac_status = 0; }; then
7690    emul=elf
7691    case `$FILECMD conftest.$ac_objext` in
7692      *32-bit*)
7693	emul="${emul}32"
7694	;;
7695      *64-bit*)
7696	emul="${emul}64"
7697	;;
7698    esac
7699    case `$FILECMD conftest.$ac_objext` in
7700      *MSB*)
7701	emul="${emul}btsmip"
7702	;;
7703      *LSB*)
7704	emul="${emul}ltsmip"
7705	;;
7706    esac
7707    case `$FILECMD conftest.$ac_objext` in
7708      *N32*)
7709	emul="${emul}n32"
7710	;;
7711    esac
7712    LD="${LD-ld} -m $emul"
7713  fi
7714  rm -rf conftest*
7715  ;;
7716
7717x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7718s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7719  # Find out what ABI is being produced by ac_compile, and set linker
7720  # options accordingly.  Note that the listed cases only cover the
7721  # situations where additional linker options are needed (such as when
7722  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7723  # vice versa); the common cases where no linker options are needed do
7724  # not appear in the list.
7725  echo 'int i;' > conftest.$ac_ext
7726  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727  (eval $ac_compile) 2>&5
7728  ac_status=$?
7729  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730  test $ac_status = 0; }; then
7731    case `$FILECMD conftest.o` in
7732      *32-bit*)
7733	case $host in
7734	  x86_64-*kfreebsd*-gnu)
7735	    LD="${LD-ld} -m elf_i386_fbsd"
7736	    ;;
7737	  x86_64-*linux*|x86_64-gnu*)
7738	    case `$FILECMD conftest.o` in
7739	      *x86-64*)
7740		LD="${LD-ld} -m elf32_x86_64"
7741		;;
7742	      *)
7743		LD="${LD-ld} -m elf_i386"
7744		;;
7745	    esac
7746	    ;;
7747	  powerpc64le-*linux*)
7748	    LD="${LD-ld} -m elf32lppclinux"
7749	    ;;
7750	  powerpc64-*linux*)
7751	    LD="${LD-ld} -m elf32ppclinux"
7752	    ;;
7753	  s390x-*linux*)
7754	    LD="${LD-ld} -m elf_s390"
7755	    ;;
7756	  sparc64-*linux*)
7757	    LD="${LD-ld} -m elf32_sparc"
7758	    ;;
7759	esac
7760	;;
7761      *64-bit*)
7762	case $host in
7763	  x86_64-*kfreebsd*-gnu)
7764	    LD="${LD-ld} -m elf_x86_64_fbsd"
7765	    ;;
7766	  x86_64-*linux*|x86_64-gnu*)
7767	    LD="${LD-ld} -m elf_x86_64"
7768	    ;;
7769	  powerpcle-*linux*)
7770	    LD="${LD-ld} -m elf64lppc"
7771	    ;;
7772	  powerpc-*linux*)
7773	    LD="${LD-ld} -m elf64ppc"
7774	    ;;
7775	  s390*-*linux*|s390*-*tpf*)
7776	    LD="${LD-ld} -m elf64_s390"
7777	    ;;
7778	  sparc*-*linux*)
7779	    LD="${LD-ld} -m elf64_sparc"
7780	    ;;
7781	esac
7782	;;
7783    esac
7784  fi
7785  rm -rf conftest*
7786  ;;
7787
7788*-*-sco3.2v5*)
7789  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7790  SAVE_CFLAGS=$CFLAGS
7791  CFLAGS="$CFLAGS -belf"
7792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7793printf %s "checking whether the C compiler needs -belf... " >&6; }
7794if test ${lt_cv_cc_needs_belf+y}
7795then :
7796  printf %s "(cached) " >&6
7797else case e in #(
7798  e) ac_ext=c
7799ac_cpp='$CPP $CPPFLAGS'
7800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7802ac_compiler_gnu=$ac_cv_c_compiler_gnu
7803
7804     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h.  */
7806
7807int
7808main (void)
7809{
7810
7811  ;
7812  return 0;
7813}
7814_ACEOF
7815if ac_fn_c_try_link "$LINENO"
7816then :
7817  lt_cv_cc_needs_belf=yes
7818else case e in #(
7819  e) lt_cv_cc_needs_belf=no ;;
7820esac
7821fi
7822rm -f core conftest.err conftest.$ac_objext conftest.beam \
7823    conftest$ac_exeext conftest.$ac_ext
7824     ac_ext=c
7825ac_cpp='$CPP $CPPFLAGS'
7826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828ac_compiler_gnu=$ac_cv_c_compiler_gnu
7829 ;;
7830esac
7831fi
7832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7833printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7834  if test yes != "$lt_cv_cc_needs_belf"; then
7835    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7836    CFLAGS=$SAVE_CFLAGS
7837  fi
7838  ;;
7839*-*solaris*)
7840  # Find out what ABI is being produced by ac_compile, and set linker
7841  # options accordingly.
7842  echo 'int i;' > conftest.$ac_ext
7843  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7844  (eval $ac_compile) 2>&5
7845  ac_status=$?
7846  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847  test $ac_status = 0; }; then
7848    case `$FILECMD conftest.o` in
7849    *64-bit*)
7850      case $lt_cv_prog_gnu_ld in
7851      yes*)
7852        case $host in
7853        i?86-*-solaris*|x86_64-*-solaris*)
7854          LD="${LD-ld} -m elf_x86_64"
7855          ;;
7856        sparc*-*-solaris*)
7857          LD="${LD-ld} -m elf64_sparc"
7858          ;;
7859        esac
7860        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7861        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7862          LD=${LD-ld}_sol2
7863        fi
7864        ;;
7865      *)
7866	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7867	  LD="${LD-ld} -64"
7868	fi
7869	;;
7870      esac
7871      ;;
7872    esac
7873  fi
7874  rm -rf conftest*
7875  ;;
7876esac
7877
7878need_locks=$enable_libtool_lock
7879
7880if test -n "$ac_tool_prefix"; then
7881  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7882set dummy ${ac_tool_prefix}mt; ac_word=$2
7883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884printf %s "checking for $ac_word... " >&6; }
7885if test ${ac_cv_prog_MANIFEST_TOOL+y}
7886then :
7887  printf %s "(cached) " >&6
7888else case e in #(
7889  e) if test -n "$MANIFEST_TOOL"; then
7890  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7891else
7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895  IFS=$as_save_IFS
7896  case $as_dir in #(((
7897    '') as_dir=./ ;;
7898    */) ;;
7899    *) as_dir=$as_dir/ ;;
7900  esac
7901    for ac_exec_ext in '' $ac_executable_extensions; do
7902  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7903    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7904    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7905    break 2
7906  fi
7907done
7908  done
7909IFS=$as_save_IFS
7910
7911fi ;;
7912esac
7913fi
7914MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7915if test -n "$MANIFEST_TOOL"; then
7916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7917printf "%s\n" "$MANIFEST_TOOL" >&6; }
7918else
7919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920printf "%s\n" "no" >&6; }
7921fi
7922
7923
7924fi
7925if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7926  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7927  # Extract the first word of "mt", so it can be a program name with args.
7928set dummy mt; ac_word=$2
7929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930printf %s "checking for $ac_word... " >&6; }
7931if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7932then :
7933  printf %s "(cached) " >&6
7934else case e in #(
7935  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7936  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7937else
7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939for as_dir in $PATH
7940do
7941  IFS=$as_save_IFS
7942  case $as_dir in #(((
7943    '') as_dir=./ ;;
7944    */) ;;
7945    *) as_dir=$as_dir/ ;;
7946  esac
7947    for ac_exec_ext in '' $ac_executable_extensions; do
7948  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7949    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7950    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7951    break 2
7952  fi
7953done
7954  done
7955IFS=$as_save_IFS
7956
7957fi ;;
7958esac
7959fi
7960ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7961if test -n "$ac_ct_MANIFEST_TOOL"; then
7962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7963printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7964else
7965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966printf "%s\n" "no" >&6; }
7967fi
7968
7969  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7970    MANIFEST_TOOL=":"
7971  else
7972    case $cross_compiling:$ac_tool_warned in
7973yes:)
7974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976ac_tool_warned=yes ;;
7977esac
7978    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7979  fi
7980else
7981  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7982fi
7983
7984test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7986printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7987if test ${lt_cv_path_manifest_tool+y}
7988then :
7989  printf %s "(cached) " >&6
7990else case e in #(
7991  e) lt_cv_path_manifest_tool=no
7992  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7993  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7994  cat conftest.err >&5
7995  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7996    lt_cv_path_manifest_tool=yes
7997  fi
7998  rm -f conftest* ;;
7999esac
8000fi
8001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8002printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8003if test yes != "$lt_cv_path_manifest_tool"; then
8004  MANIFEST_TOOL=:
8005fi
8006
8007
8008
8009
8010
8011
8012  case $host_os in
8013    rhapsody* | darwin*)
8014    if test -n "$ac_tool_prefix"; then
8015  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8016set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018printf %s "checking for $ac_word... " >&6; }
8019if test ${ac_cv_prog_DSYMUTIL+y}
8020then :
8021  printf %s "(cached) " >&6
8022else case e in #(
8023  e) if test -n "$DSYMUTIL"; then
8024  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  case $as_dir in #(((
8031    '') as_dir=./ ;;
8032    */) ;;
8033    *) as_dir=$as_dir/ ;;
8034  esac
8035    for ac_exec_ext in '' $ac_executable_extensions; do
8036  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8038    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039    break 2
8040  fi
8041done
8042  done
8043IFS=$as_save_IFS
8044
8045fi ;;
8046esac
8047fi
8048DSYMUTIL=$ac_cv_prog_DSYMUTIL
8049if test -n "$DSYMUTIL"; then
8050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8051printf "%s\n" "$DSYMUTIL" >&6; }
8052else
8053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054printf "%s\n" "no" >&6; }
8055fi
8056
8057
8058fi
8059if test -z "$ac_cv_prog_DSYMUTIL"; then
8060  ac_ct_DSYMUTIL=$DSYMUTIL
8061  # Extract the first word of "dsymutil", so it can be a program name with args.
8062set dummy dsymutil; ac_word=$2
8063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064printf %s "checking for $ac_word... " >&6; }
8065if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8066then :
8067  printf %s "(cached) " >&6
8068else case e in #(
8069  e) if test -n "$ac_ct_DSYMUTIL"; then
8070  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8071else
8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073for as_dir in $PATH
8074do
8075  IFS=$as_save_IFS
8076  case $as_dir in #(((
8077    '') as_dir=./ ;;
8078    */) ;;
8079    *) as_dir=$as_dir/ ;;
8080  esac
8081    for ac_exec_ext in '' $ac_executable_extensions; do
8082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8083    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8085    break 2
8086  fi
8087done
8088  done
8089IFS=$as_save_IFS
8090
8091fi ;;
8092esac
8093fi
8094ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8095if test -n "$ac_ct_DSYMUTIL"; then
8096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8097printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8098else
8099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100printf "%s\n" "no" >&6; }
8101fi
8102
8103  if test "x$ac_ct_DSYMUTIL" = x; then
8104    DSYMUTIL=":"
8105  else
8106    case $cross_compiling:$ac_tool_warned in
8107yes:)
8108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8109printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8110ac_tool_warned=yes ;;
8111esac
8112    DSYMUTIL=$ac_ct_DSYMUTIL
8113  fi
8114else
8115  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8116fi
8117
8118    if test -n "$ac_tool_prefix"; then
8119  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8120set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122printf %s "checking for $ac_word... " >&6; }
8123if test ${ac_cv_prog_NMEDIT+y}
8124then :
8125  printf %s "(cached) " >&6
8126else case e in #(
8127  e) if test -n "$NMEDIT"; then
8128  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8129else
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133  IFS=$as_save_IFS
8134  case $as_dir in #(((
8135    '') as_dir=./ ;;
8136    */) ;;
8137    *) as_dir=$as_dir/ ;;
8138  esac
8139    for ac_exec_ext in '' $ac_executable_extensions; do
8140  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8141    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8142    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8143    break 2
8144  fi
8145done
8146  done
8147IFS=$as_save_IFS
8148
8149fi ;;
8150esac
8151fi
8152NMEDIT=$ac_cv_prog_NMEDIT
8153if test -n "$NMEDIT"; then
8154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8155printf "%s\n" "$NMEDIT" >&6; }
8156else
8157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158printf "%s\n" "no" >&6; }
8159fi
8160
8161
8162fi
8163if test -z "$ac_cv_prog_NMEDIT"; then
8164  ac_ct_NMEDIT=$NMEDIT
8165  # Extract the first word of "nmedit", so it can be a program name with args.
8166set dummy nmedit; ac_word=$2
8167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168printf %s "checking for $ac_word... " >&6; }
8169if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8170then :
8171  printf %s "(cached) " >&6
8172else case e in #(
8173  e) if test -n "$ac_ct_NMEDIT"; then
8174  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8175else
8176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177for as_dir in $PATH
8178do
8179  IFS=$as_save_IFS
8180  case $as_dir in #(((
8181    '') as_dir=./ ;;
8182    */) ;;
8183    *) as_dir=$as_dir/ ;;
8184  esac
8185    for ac_exec_ext in '' $ac_executable_extensions; do
8186  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8187    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8188    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8189    break 2
8190  fi
8191done
8192  done
8193IFS=$as_save_IFS
8194
8195fi ;;
8196esac
8197fi
8198ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8199if test -n "$ac_ct_NMEDIT"; then
8200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8201printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8202else
8203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204printf "%s\n" "no" >&6; }
8205fi
8206
8207  if test "x$ac_ct_NMEDIT" = x; then
8208    NMEDIT=":"
8209  else
8210    case $cross_compiling:$ac_tool_warned in
8211yes:)
8212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214ac_tool_warned=yes ;;
8215esac
8216    NMEDIT=$ac_ct_NMEDIT
8217  fi
8218else
8219  NMEDIT="$ac_cv_prog_NMEDIT"
8220fi
8221
8222    if test -n "$ac_tool_prefix"; then
8223  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8224set dummy ${ac_tool_prefix}lipo; ac_word=$2
8225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226printf %s "checking for $ac_word... " >&6; }
8227if test ${ac_cv_prog_LIPO+y}
8228then :
8229  printf %s "(cached) " >&6
8230else case e in #(
8231  e) if test -n "$LIPO"; then
8232  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237  IFS=$as_save_IFS
8238  case $as_dir in #(((
8239    '') as_dir=./ ;;
8240    */) ;;
8241    *) as_dir=$as_dir/ ;;
8242  esac
8243    for ac_exec_ext in '' $ac_executable_extensions; do
8244  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8245    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8246    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8247    break 2
8248  fi
8249done
8250  done
8251IFS=$as_save_IFS
8252
8253fi ;;
8254esac
8255fi
8256LIPO=$ac_cv_prog_LIPO
8257if test -n "$LIPO"; then
8258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8259printf "%s\n" "$LIPO" >&6; }
8260else
8261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262printf "%s\n" "no" >&6; }
8263fi
8264
8265
8266fi
8267if test -z "$ac_cv_prog_LIPO"; then
8268  ac_ct_LIPO=$LIPO
8269  # Extract the first word of "lipo", so it can be a program name with args.
8270set dummy lipo; ac_word=$2
8271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272printf %s "checking for $ac_word... " >&6; }
8273if test ${ac_cv_prog_ac_ct_LIPO+y}
8274then :
8275  printf %s "(cached) " >&6
8276else case e in #(
8277  e) if test -n "$ac_ct_LIPO"; then
8278  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8279else
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283  IFS=$as_save_IFS
8284  case $as_dir in #(((
8285    '') as_dir=./ ;;
8286    */) ;;
8287    *) as_dir=$as_dir/ ;;
8288  esac
8289    for ac_exec_ext in '' $ac_executable_extensions; do
8290  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8291    ac_cv_prog_ac_ct_LIPO="lipo"
8292    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8293    break 2
8294  fi
8295done
8296  done
8297IFS=$as_save_IFS
8298
8299fi ;;
8300esac
8301fi
8302ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8303if test -n "$ac_ct_LIPO"; then
8304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8305printf "%s\n" "$ac_ct_LIPO" >&6; }
8306else
8307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308printf "%s\n" "no" >&6; }
8309fi
8310
8311  if test "x$ac_ct_LIPO" = x; then
8312    LIPO=":"
8313  else
8314    case $cross_compiling:$ac_tool_warned in
8315yes:)
8316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8317printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8318ac_tool_warned=yes ;;
8319esac
8320    LIPO=$ac_ct_LIPO
8321  fi
8322else
8323  LIPO="$ac_cv_prog_LIPO"
8324fi
8325
8326    if test -n "$ac_tool_prefix"; then
8327  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8328set dummy ${ac_tool_prefix}otool; ac_word=$2
8329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330printf %s "checking for $ac_word... " >&6; }
8331if test ${ac_cv_prog_OTOOL+y}
8332then :
8333  printf %s "(cached) " >&6
8334else case e in #(
8335  e) if test -n "$OTOOL"; then
8336  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8337else
8338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341  IFS=$as_save_IFS
8342  case $as_dir in #(((
8343    '') as_dir=./ ;;
8344    */) ;;
8345    *) as_dir=$as_dir/ ;;
8346  esac
8347    for ac_exec_ext in '' $ac_executable_extensions; do
8348  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8349    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8350    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8351    break 2
8352  fi
8353done
8354  done
8355IFS=$as_save_IFS
8356
8357fi ;;
8358esac
8359fi
8360OTOOL=$ac_cv_prog_OTOOL
8361if test -n "$OTOOL"; then
8362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8363printf "%s\n" "$OTOOL" >&6; }
8364else
8365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366printf "%s\n" "no" >&6; }
8367fi
8368
8369
8370fi
8371if test -z "$ac_cv_prog_OTOOL"; then
8372  ac_ct_OTOOL=$OTOOL
8373  # Extract the first word of "otool", so it can be a program name with args.
8374set dummy otool; ac_word=$2
8375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376printf %s "checking for $ac_word... " >&6; }
8377if test ${ac_cv_prog_ac_ct_OTOOL+y}
8378then :
8379  printf %s "(cached) " >&6
8380else case e in #(
8381  e) if test -n "$ac_ct_OTOOL"; then
8382  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8383else
8384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385for as_dir in $PATH
8386do
8387  IFS=$as_save_IFS
8388  case $as_dir in #(((
8389    '') as_dir=./ ;;
8390    */) ;;
8391    *) as_dir=$as_dir/ ;;
8392  esac
8393    for ac_exec_ext in '' $ac_executable_extensions; do
8394  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8395    ac_cv_prog_ac_ct_OTOOL="otool"
8396    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8397    break 2
8398  fi
8399done
8400  done
8401IFS=$as_save_IFS
8402
8403fi ;;
8404esac
8405fi
8406ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8407if test -n "$ac_ct_OTOOL"; then
8408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8409printf "%s\n" "$ac_ct_OTOOL" >&6; }
8410else
8411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412printf "%s\n" "no" >&6; }
8413fi
8414
8415  if test "x$ac_ct_OTOOL" = x; then
8416    OTOOL=":"
8417  else
8418    case $cross_compiling:$ac_tool_warned in
8419yes:)
8420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8421printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8422ac_tool_warned=yes ;;
8423esac
8424    OTOOL=$ac_ct_OTOOL
8425  fi
8426else
8427  OTOOL="$ac_cv_prog_OTOOL"
8428fi
8429
8430    if test -n "$ac_tool_prefix"; then
8431  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8432set dummy ${ac_tool_prefix}otool64; ac_word=$2
8433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434printf %s "checking for $ac_word... " >&6; }
8435if test ${ac_cv_prog_OTOOL64+y}
8436then :
8437  printf %s "(cached) " >&6
8438else case e in #(
8439  e) if test -n "$OTOOL64"; then
8440  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8441else
8442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443for as_dir in $PATH
8444do
8445  IFS=$as_save_IFS
8446  case $as_dir in #(((
8447    '') as_dir=./ ;;
8448    */) ;;
8449    *) as_dir=$as_dir/ ;;
8450  esac
8451    for ac_exec_ext in '' $ac_executable_extensions; do
8452  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8453    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8454    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8455    break 2
8456  fi
8457done
8458  done
8459IFS=$as_save_IFS
8460
8461fi ;;
8462esac
8463fi
8464OTOOL64=$ac_cv_prog_OTOOL64
8465if test -n "$OTOOL64"; then
8466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8467printf "%s\n" "$OTOOL64" >&6; }
8468else
8469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470printf "%s\n" "no" >&6; }
8471fi
8472
8473
8474fi
8475if test -z "$ac_cv_prog_OTOOL64"; then
8476  ac_ct_OTOOL64=$OTOOL64
8477  # Extract the first word of "otool64", so it can be a program name with args.
8478set dummy otool64; ac_word=$2
8479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480printf %s "checking for $ac_word... " >&6; }
8481if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8482then :
8483  printf %s "(cached) " >&6
8484else case e in #(
8485  e) if test -n "$ac_ct_OTOOL64"; then
8486  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8487else
8488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489for as_dir in $PATH
8490do
8491  IFS=$as_save_IFS
8492  case $as_dir in #(((
8493    '') as_dir=./ ;;
8494    */) ;;
8495    *) as_dir=$as_dir/ ;;
8496  esac
8497    for ac_exec_ext in '' $ac_executable_extensions; do
8498  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8499    ac_cv_prog_ac_ct_OTOOL64="otool64"
8500    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8501    break 2
8502  fi
8503done
8504  done
8505IFS=$as_save_IFS
8506
8507fi ;;
8508esac
8509fi
8510ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8511if test -n "$ac_ct_OTOOL64"; then
8512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8513printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8514else
8515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516printf "%s\n" "no" >&6; }
8517fi
8518
8519  if test "x$ac_ct_OTOOL64" = x; then
8520    OTOOL64=":"
8521  else
8522    case $cross_compiling:$ac_tool_warned in
8523yes:)
8524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8525printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8526ac_tool_warned=yes ;;
8527esac
8528    OTOOL64=$ac_ct_OTOOL64
8529  fi
8530else
8531  OTOOL64="$ac_cv_prog_OTOOL64"
8532fi
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8561printf %s "checking for -single_module linker flag... " >&6; }
8562if test ${lt_cv_apple_cc_single_mod+y}
8563then :
8564  printf %s "(cached) " >&6
8565else case e in #(
8566  e) lt_cv_apple_cc_single_mod=no
8567      if test -z "$LT_MULTI_MODULE"; then
8568	# By default we will add the -single_module flag. You can override
8569	# by either setting the environment variable LT_MULTI_MODULE
8570	# non-empty at configure time, or by adding -multi_module to the
8571	# link flags.
8572	rm -rf libconftest.dylib*
8573	echo "int foo(void){return 1;}" > conftest.c
8574	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8575-dynamiclib -Wl,-single_module conftest.c" >&5
8576	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8577	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8578        _lt_result=$?
8579	# If there is a non-empty error log, and "single_module"
8580	# appears in it, assume the flag caused a linker warning
8581        if test -s conftest.err && $GREP single_module conftest.err; then
8582	  cat conftest.err >&5
8583	# Otherwise, if the output was created with a 0 exit code from
8584	# the compiler, it worked.
8585	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8586	  lt_cv_apple_cc_single_mod=yes
8587	else
8588	  cat conftest.err >&5
8589	fi
8590	rm -rf libconftest.dylib*
8591	rm -f conftest.*
8592      fi ;;
8593esac
8594fi
8595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8596printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8597
8598    # Feature test to disable chained fixups since it is not
8599    # compatible with '-undefined dynamic_lookup'
8600    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8601printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8602if test ${lt_cv_support_no_fixup_chains+y}
8603then :
8604  printf %s "(cached) " >&6
8605else case e in #(
8606  e)  save_LDFLAGS=$LDFLAGS
8607        LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8608        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609/* end confdefs.h.  */
8610
8611int
8612main (void)
8613{
8614
8615  ;
8616  return 0;
8617}
8618_ACEOF
8619if ac_fn_c_try_link "$LINENO"
8620then :
8621  lt_cv_support_no_fixup_chains=yes
8622else case e in #(
8623  e) lt_cv_support_no_fixup_chains=no
8624         ;;
8625esac
8626fi
8627rm -f core conftest.err conftest.$ac_objext conftest.beam \
8628    conftest$ac_exeext conftest.$ac_ext
8629        LDFLAGS=$save_LDFLAGS
8630
8631     ;;
8632esac
8633fi
8634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8635printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8636
8637    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8638printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8639if test ${lt_cv_ld_exported_symbols_list+y}
8640then :
8641  printf %s "(cached) " >&6
8642else case e in #(
8643  e) lt_cv_ld_exported_symbols_list=no
8644      save_LDFLAGS=$LDFLAGS
8645      echo "_main" > conftest.sym
8646      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8647      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648/* end confdefs.h.  */
8649
8650int
8651main (void)
8652{
8653
8654  ;
8655  return 0;
8656}
8657_ACEOF
8658if ac_fn_c_try_link "$LINENO"
8659then :
8660  lt_cv_ld_exported_symbols_list=yes
8661else case e in #(
8662  e) lt_cv_ld_exported_symbols_list=no ;;
8663esac
8664fi
8665rm -f core conftest.err conftest.$ac_objext conftest.beam \
8666    conftest$ac_exeext conftest.$ac_ext
8667	LDFLAGS=$save_LDFLAGS
8668     ;;
8669esac
8670fi
8671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8672printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8673
8674    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8675printf %s "checking for -force_load linker flag... " >&6; }
8676if test ${lt_cv_ld_force_load+y}
8677then :
8678  printf %s "(cached) " >&6
8679else case e in #(
8680  e) lt_cv_ld_force_load=no
8681      cat > conftest.c << _LT_EOF
8682int forced_loaded() { return 2;}
8683_LT_EOF
8684      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8685      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8686      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8687      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8688      echo "$RANLIB libconftest.a" >&5
8689      $RANLIB libconftest.a 2>&5
8690      cat > conftest.c << _LT_EOF
8691int main(void) { return 0;}
8692_LT_EOF
8693      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8694      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8695      _lt_result=$?
8696      if test -s conftest.err && $GREP force_load conftest.err; then
8697	cat conftest.err >&5
8698      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8699	lt_cv_ld_force_load=yes
8700      else
8701	cat conftest.err >&5
8702      fi
8703        rm -f conftest.err libconftest.a conftest conftest.c
8704        rm -rf conftest.dSYM
8705     ;;
8706esac
8707fi
8708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8709printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8710    case $host_os in
8711    rhapsody* | darwin1.[012])
8712      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8713    darwin1.*)
8714      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8715    darwin*)
8716      case $MACOSX_DEPLOYMENT_TARGET,$host in
8717        10.[012],*|,*powerpc*-darwin[5-8]*)
8718          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8719        *)
8720          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8721          if test yes = "$lt_cv_support_no_fixup_chains"; then
8722            as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8723          fi
8724        ;;
8725      esac
8726    ;;
8727  esac
8728    if test yes = "$lt_cv_apple_cc_single_mod"; then
8729      _lt_dar_single_mod='$single_module'
8730    fi
8731    _lt_dar_needs_single_mod=no
8732    case $host_os in
8733    rhapsody* | darwin1.*)
8734      _lt_dar_needs_single_mod=yes ;;
8735    darwin*)
8736      # When targeting Mac OS X 10.4 (darwin 8) or later,
8737      # -single_module is the default and -multi_module is unsupported.
8738      # The toolchain on macOS 10.14 (darwin 18) and later cannot
8739      # target any OS version that needs -single_module.
8740      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8741      10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8742        _lt_dar_needs_single_mod=yes ;;
8743      esac
8744    ;;
8745    esac
8746    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8747      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8748    else
8749      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8750    fi
8751    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8752      _lt_dsymutil='~$DSYMUTIL $lib || :'
8753    else
8754      _lt_dsymutil=
8755    fi
8756    ;;
8757  esac
8758
8759# func_munge_path_list VARIABLE PATH
8760# -----------------------------------
8761# VARIABLE is name of variable containing _space_ separated list of
8762# directories to be munged by the contents of PATH, which is string
8763# having a format:
8764# "DIR[:DIR]:"
8765#       string "DIR[ DIR]" will be prepended to VARIABLE
8766# ":DIR[:DIR]"
8767#       string "DIR[ DIR]" will be appended to VARIABLE
8768# "DIRP[:DIRP]::[DIRA:]DIRA"
8769#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8770#       "DIRA[ DIRA]" will be appended to VARIABLE
8771# "DIR[:DIR]"
8772#       VARIABLE will be replaced by "DIR[ DIR]"
8773func_munge_path_list ()
8774{
8775    case x$2 in
8776    x)
8777        ;;
8778    *:)
8779        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8780        ;;
8781    x:*)
8782        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8783        ;;
8784    *::*)
8785        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8786        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8787        ;;
8788    *)
8789        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8790        ;;
8791    esac
8792}
8793
8794ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8795"
8796if test "x$ac_cv_header_dlfcn_h" = xyes
8797then :
8798  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8799
8800fi
8801
8802
8803
8804
8805
8806# Set options
8807
8808
8809
8810        enable_dlopen=no
8811
8812
8813  enable_win32_dll=no
8814
8815
8816            # Check whether --enable-shared was given.
8817if test ${enable_shared+y}
8818then :
8819  enableval=$enable_shared; p=${PACKAGE-default}
8820    case $enableval in
8821    yes) enable_shared=yes ;;
8822    no) enable_shared=no ;;
8823    *)
8824      enable_shared=no
8825      # Look at the argument we got.  We use all the common list separators.
8826      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8827      for pkg in $enableval; do
8828	IFS=$lt_save_ifs
8829	if test "X$pkg" = "X$p"; then
8830	  enable_shared=yes
8831	fi
8832      done
8833      IFS=$lt_save_ifs
8834      ;;
8835    esac
8836else case e in #(
8837  e) enable_shared=yes ;;
8838esac
8839fi
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849  # Check whether --enable-static was given.
8850if test ${enable_static+y}
8851then :
8852  enableval=$enable_static; p=${PACKAGE-default}
8853    case $enableval in
8854    yes) enable_static=yes ;;
8855    no) enable_static=no ;;
8856    *)
8857     enable_static=no
8858      # Look at the argument we got.  We use all the common list separators.
8859      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8860      for pkg in $enableval; do
8861	IFS=$lt_save_ifs
8862	if test "X$pkg" = "X$p"; then
8863	  enable_static=yes
8864	fi
8865      done
8866      IFS=$lt_save_ifs
8867      ;;
8868    esac
8869else case e in #(
8870  e) enable_static=yes ;;
8871esac
8872fi
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882  # Check whether --enable-pic was given.
8883if test ${enable_pic+y}
8884then :
8885  enableval=$enable_pic; lt_p=${PACKAGE-default}
8886     case $enableval in
8887     yes|no) pic_mode=$enableval ;;
8888     *)
8889       pic_mode=default
8890       # Look at the argument we got.  We use all the common list separators.
8891       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8892       for lt_pkg in $enableval; do
8893	 IFS=$lt_save_ifs
8894	 if test "X$lt_pkg" = "X$lt_p"; then
8895	   pic_mode=yes
8896	 fi
8897       done
8898       IFS=$lt_save_ifs
8899       ;;
8900     esac
8901else case e in #(
8902  e)           # Check whether --with-pic was given.
8903if test ${with_pic+y}
8904then :
8905  withval=$with_pic; lt_p=${PACKAGE-default}
8906	 case $withval in
8907	 yes|no) pic_mode=$withval ;;
8908	 *)
8909	   pic_mode=default
8910	   # Look at the argument we got.  We use all the common list separators.
8911	   lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8912	   for lt_pkg in $withval; do
8913	     IFS=$lt_save_ifs
8914	     if test "X$lt_pkg" = "X$lt_p"; then
8915	       pic_mode=yes
8916	     fi
8917	   done
8918	   IFS=$lt_save_ifs
8919	   ;;
8920	 esac
8921else case e in #(
8922  e) pic_mode=default ;;
8923esac
8924fi
8925
8926     ;;
8927esac
8928fi
8929
8930
8931
8932
8933
8934
8935
8936
8937  # Check whether --enable-fast-install was given.
8938if test ${enable_fast_install+y}
8939then :
8940  enableval=$enable_fast_install; p=${PACKAGE-default}
8941    case $enableval in
8942    yes) enable_fast_install=yes ;;
8943    no) enable_fast_install=no ;;
8944    *)
8945      enable_fast_install=no
8946      # Look at the argument we got.  We use all the common list separators.
8947      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8948      for pkg in $enableval; do
8949	IFS=$lt_save_ifs
8950	if test "X$pkg" = "X$p"; then
8951	  enable_fast_install=yes
8952	fi
8953      done
8954      IFS=$lt_save_ifs
8955      ;;
8956    esac
8957else case e in #(
8958  e) enable_fast_install=yes ;;
8959esac
8960fi
8961
8962
8963
8964
8965
8966
8967
8968
8969  shared_archive_member_spec=
8970case $host,$enable_shared in
8971power*-*-aix[5-9]*,yes)
8972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8973printf %s "checking which variant of shared library versioning to provide... " >&6; }
8974  # Check whether --enable-aix-soname was given.
8975if test ${enable_aix_soname+y}
8976then :
8977  enableval=$enable_aix_soname; case $enableval in
8978     aix|svr4|both)
8979       ;;
8980     *)
8981       as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8982       ;;
8983     esac
8984     lt_cv_with_aix_soname=$enable_aix_soname
8985else case e in #(
8986  e) # Check whether --with-aix-soname was given.
8987if test ${with_aix_soname+y}
8988then :
8989  withval=$with_aix_soname; case $withval in
8990         aix|svr4|both)
8991           ;;
8992         *)
8993           as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8994           ;;
8995         esac
8996         lt_cv_with_aix_soname=$with_aix_soname
8997else case e in #(
8998  e) if test ${lt_cv_with_aix_soname+y}
8999then :
9000  printf %s "(cached) " >&6
9001else case e in #(
9002  e) lt_cv_with_aix_soname=aix ;;
9003esac
9004fi
9005 ;;
9006esac
9007fi
9008
9009     enable_aix_soname=$lt_cv_with_aix_soname ;;
9010esac
9011fi
9012
9013  with_aix_soname=$enable_aix_soname
9014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9015printf "%s\n" "$with_aix_soname" >&6; }
9016  if test aix != "$with_aix_soname"; then
9017    # For the AIX way of multilib, we name the shared archive member
9018    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9019    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9020    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9021    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9022    if test 64 = "${OBJECT_MODE-32}"; then
9023      shared_archive_member_spec=shr_64
9024    else
9025      shared_archive_member_spec=shr
9026    fi
9027  fi
9028  ;;
9029*)
9030  with_aix_soname=aix
9031  ;;
9032esac
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043# This can be used to rebuild libtool when needed
9044LIBTOOL_DEPS=$ltmain
9045
9046# Always use our own libtool.
9047LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078test -z "$LN_S" && LN_S="ln -s"
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093if test -n "${ZSH_VERSION+set}"; then
9094   setopt NO_GLOB_SUBST
9095fi
9096
9097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9098printf %s "checking for objdir... " >&6; }
9099if test ${lt_cv_objdir+y}
9100then :
9101  printf %s "(cached) " >&6
9102else case e in #(
9103  e) rm -f .libs 2>/dev/null
9104mkdir .libs 2>/dev/null
9105if test -d .libs; then
9106  lt_cv_objdir=.libs
9107else
9108  # MS-DOS does not allow filenames that begin with a dot.
9109  lt_cv_objdir=_libs
9110fi
9111rmdir .libs 2>/dev/null ;;
9112esac
9113fi
9114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9115printf "%s\n" "$lt_cv_objdir" >&6; }
9116objdir=$lt_cv_objdir
9117
9118
9119
9120
9121
9122printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9123
9124
9125
9126
9127case $host_os in
9128aix3*)
9129  # AIX sometimes has problems with the GCC collect2 program.  For some
9130  # reason, if we set the COLLECT_NAMES environment variable, the problems
9131  # vanish in a puff of smoke.
9132  if test set != "${COLLECT_NAMES+set}"; then
9133    COLLECT_NAMES=
9134    export COLLECT_NAMES
9135  fi
9136  ;;
9137esac
9138
9139# Global variables:
9140ofile=libtool
9141can_build_shared=yes
9142
9143# All known linkers require a '.a' archive for static linking (except MSVC and
9144# ICC, which need '.lib').
9145libext=a
9146
9147with_gnu_ld=$lt_cv_prog_gnu_ld
9148
9149old_CC=$CC
9150old_CFLAGS=$CFLAGS
9151
9152# Set sane defaults for various variables
9153test -z "$CC" && CC=cc
9154test -z "$LTCC" && LTCC=$CC
9155test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9156test -z "$LD" && LD=ld
9157test -z "$ac_objext" && ac_objext=o
9158
9159func_cc_basename $compiler
9160cc_basename=$func_cc_basename_result
9161
9162
9163# Only perform the check for file, if the check method requires it
9164test -z "$MAGIC_CMD" && MAGIC_CMD=file
9165case $deplibs_check_method in
9166file_magic*)
9167  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9168    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9169printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9170if test ${lt_cv_path_MAGIC_CMD+y}
9171then :
9172  printf %s "(cached) " >&6
9173else case e in #(
9174  e) case $MAGIC_CMD in
9175[\\/*] |  ?:[\\/]*)
9176  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9177  ;;
9178*)
9179  lt_save_MAGIC_CMD=$MAGIC_CMD
9180  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9181  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9182  for ac_dir in $ac_dummy; do
9183    IFS=$lt_save_ifs
9184    test -z "$ac_dir" && ac_dir=.
9185    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9186      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9187      if test -n "$file_magic_test_file"; then
9188	case $deplibs_check_method in
9189	"file_magic "*)
9190	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9191	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9192	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9193	    $EGREP "$file_magic_regex" > /dev/null; then
9194	    :
9195	  else
9196	    cat <<_LT_EOF 1>&2
9197
9198*** Warning: the command libtool uses to detect shared libraries,
9199*** $file_magic_cmd, produces output that libtool cannot recognize.
9200*** The result is that libtool may fail to recognize shared libraries
9201*** as such.  This will affect the creation of libtool libraries that
9202*** depend on shared libraries, but programs linked with such libtool
9203*** libraries will work regardless of this problem.  Nevertheless, you
9204*** may want to report the problem to your system manager and/or to
9205*** bug-libtool@gnu.org
9206
9207_LT_EOF
9208	  fi ;;
9209	esac
9210      fi
9211      break
9212    fi
9213  done
9214  IFS=$lt_save_ifs
9215  MAGIC_CMD=$lt_save_MAGIC_CMD
9216  ;;
9217esac ;;
9218esac
9219fi
9220
9221MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9222if test -n "$MAGIC_CMD"; then
9223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9224printf "%s\n" "$MAGIC_CMD" >&6; }
9225else
9226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9227printf "%s\n" "no" >&6; }
9228fi
9229
9230
9231
9232
9233
9234if test -z "$lt_cv_path_MAGIC_CMD"; then
9235  if test -n "$ac_tool_prefix"; then
9236    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9237printf %s "checking for file... " >&6; }
9238if test ${lt_cv_path_MAGIC_CMD+y}
9239then :
9240  printf %s "(cached) " >&6
9241else case e in #(
9242  e) case $MAGIC_CMD in
9243[\\/*] |  ?:[\\/]*)
9244  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9245  ;;
9246*)
9247  lt_save_MAGIC_CMD=$MAGIC_CMD
9248  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9249  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9250  for ac_dir in $ac_dummy; do
9251    IFS=$lt_save_ifs
9252    test -z "$ac_dir" && ac_dir=.
9253    if test -f "$ac_dir/file"; then
9254      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9255      if test -n "$file_magic_test_file"; then
9256	case $deplibs_check_method in
9257	"file_magic "*)
9258	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9259	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9260	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9261	    $EGREP "$file_magic_regex" > /dev/null; then
9262	    :
9263	  else
9264	    cat <<_LT_EOF 1>&2
9265
9266*** Warning: the command libtool uses to detect shared libraries,
9267*** $file_magic_cmd, produces output that libtool cannot recognize.
9268*** The result is that libtool may fail to recognize shared libraries
9269*** as such.  This will affect the creation of libtool libraries that
9270*** depend on shared libraries, but programs linked with such libtool
9271*** libraries will work regardless of this problem.  Nevertheless, you
9272*** may want to report the problem to your system manager and/or to
9273*** bug-libtool@gnu.org
9274
9275_LT_EOF
9276	  fi ;;
9277	esac
9278      fi
9279      break
9280    fi
9281  done
9282  IFS=$lt_save_ifs
9283  MAGIC_CMD=$lt_save_MAGIC_CMD
9284  ;;
9285esac ;;
9286esac
9287fi
9288
9289MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9290if test -n "$MAGIC_CMD"; then
9291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9292printf "%s\n" "$MAGIC_CMD" >&6; }
9293else
9294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295printf "%s\n" "no" >&6; }
9296fi
9297
9298
9299  else
9300    MAGIC_CMD=:
9301  fi
9302fi
9303
9304  fi
9305  ;;
9306esac
9307
9308# Use C for the default configuration in the libtool script
9309
9310lt_save_CC=$CC
9311ac_ext=c
9312ac_cpp='$CPP $CPPFLAGS'
9313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9315ac_compiler_gnu=$ac_cv_c_compiler_gnu
9316
9317
9318# Source file extension for C test sources.
9319ac_ext=c
9320
9321# Object file extension for compiled C test sources.
9322objext=o
9323objext=$objext
9324
9325# Code to be used in simple compile tests
9326lt_simple_compile_test_code="int some_variable = 0;"
9327
9328# Code to be used in simple link tests
9329lt_simple_link_test_code='int main(void){return(0);}'
9330
9331
9332
9333
9334
9335
9336
9337# If no C compiler was specified, use CC.
9338LTCC=${LTCC-"$CC"}
9339
9340# If no C compiler flags were specified, use CFLAGS.
9341LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9342
9343# Allow CC to be a program name with arguments.
9344compiler=$CC
9345
9346# Save the default compiler, since it gets overwritten when the other
9347# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9348compiler_DEFAULT=$CC
9349
9350# save warnings/boilerplate of simple test code
9351ac_outfile=conftest.$ac_objext
9352echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9353eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9354_lt_compiler_boilerplate=`cat conftest.err`
9355$RM conftest*
9356
9357ac_outfile=conftest.$ac_objext
9358echo "$lt_simple_link_test_code" >conftest.$ac_ext
9359eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9360_lt_linker_boilerplate=`cat conftest.err`
9361$RM -r conftest*
9362
9363
9364## CAVEAT EMPTOR:
9365## There is no encapsulation within the following macros, do not change
9366## the running order or otherwise move them around unless you know exactly
9367## what you are doing...
9368if test -n "$compiler"; then
9369
9370lt_prog_compiler_no_builtin_flag=
9371
9372if test yes = "$GCC"; then
9373  case $cc_basename in
9374  nvcc*)
9375    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9376  *)
9377    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9378  esac
9379
9380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9381printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9382if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9383then :
9384  printf %s "(cached) " >&6
9385else case e in #(
9386  e) lt_cv_prog_compiler_rtti_exceptions=no
9387   ac_outfile=conftest.$ac_objext
9388   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9389   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9390   # Insert the option either (1) after the last *FLAGS variable, or
9391   # (2) before a word containing "conftest.", or (3) at the end.
9392   # Note that $ac_compile itself does not contain backslashes and begins
9393   # with a dollar sign (not a hyphen), so the echo should work correctly.
9394   # The option is referenced via a variable to avoid confusing sed.
9395   lt_compile=`echo "$ac_compile" | $SED \
9396   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9397   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9398   -e 's:$: $lt_compiler_flag:'`
9399   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9400   (eval "$lt_compile" 2>conftest.err)
9401   ac_status=$?
9402   cat conftest.err >&5
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   if (exit $ac_status) && test -s "$ac_outfile"; then
9405     # The compiler can only warn and ignore the option if not recognized
9406     # So say no if there are warnings other than the usual output.
9407     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9408     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9409     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9410       lt_cv_prog_compiler_rtti_exceptions=yes
9411     fi
9412   fi
9413   $RM conftest*
9414 ;;
9415esac
9416fi
9417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9418printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9419
9420if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9421    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9422else
9423    :
9424fi
9425
9426fi
9427
9428
9429
9430
9431
9432
9433  lt_prog_compiler_wl=
9434lt_prog_compiler_pic=
9435lt_prog_compiler_static=
9436
9437
9438  if test yes = "$GCC"; then
9439    lt_prog_compiler_wl='-Wl,'
9440    lt_prog_compiler_static='-static'
9441
9442    case $host_os in
9443      aix*)
9444      # All AIX code is PIC.
9445      if test ia64 = "$host_cpu"; then
9446	# AIX 5 now supports IA64 processor
9447	lt_prog_compiler_static='-Bstatic'
9448      fi
9449      lt_prog_compiler_pic='-fPIC'
9450      ;;
9451
9452    amigaos*)
9453      case $host_cpu in
9454      powerpc)
9455            # see comment about AmigaOS4 .so support
9456            lt_prog_compiler_pic='-fPIC'
9457        ;;
9458      m68k)
9459            # FIXME: we need at least 68020 code to build shared libraries, but
9460            # adding the '-m68020' flag to GCC prevents building anything better,
9461            # like '-m68040'.
9462            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9463        ;;
9464      esac
9465      ;;
9466
9467    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9468      # PIC is the default for these OSes.
9469      ;;
9470
9471    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9472      # This hack is so that the source file can tell whether it is being
9473      # built for inclusion in a dll (and should export symbols for example).
9474      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9475      # (--disable-auto-import) libraries
9476      lt_prog_compiler_pic='-DDLL_EXPORT'
9477      case $host_os in
9478      os2*)
9479	lt_prog_compiler_static='$wl-static'
9480	;;
9481      esac
9482      ;;
9483
9484    darwin* | rhapsody*)
9485      # PIC is the default on this platform
9486      # Common symbols not allowed in MH_DYLIB files
9487      lt_prog_compiler_pic='-fno-common'
9488      ;;
9489
9490    haiku*)
9491      # PIC is the default for Haiku.
9492      # The "-static" flag exists, but is broken.
9493      lt_prog_compiler_static=
9494      ;;
9495
9496    hpux*)
9497      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9498      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9499      # sets the default TLS model and affects inlining.
9500      case $host_cpu in
9501      hppa*64*)
9502	# +Z the default
9503	;;
9504      *)
9505	lt_prog_compiler_pic='-fPIC'
9506	;;
9507      esac
9508      ;;
9509
9510    interix[3-9]*)
9511      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9512      # Instead, we relocate shared libraries at runtime.
9513      ;;
9514
9515    msdosdjgpp*)
9516      # Just because we use GCC doesn't mean we suddenly get shared libraries
9517      # on systems that don't support them.
9518      lt_prog_compiler_can_build_shared=no
9519      enable_shared=no
9520      ;;
9521
9522    *nto* | *qnx*)
9523      # QNX uses GNU C++, but need to define -shared option too, otherwise
9524      # it will coredump.
9525      lt_prog_compiler_pic='-fPIC -shared'
9526      ;;
9527
9528    sysv4*MP*)
9529      if test -d /usr/nec; then
9530	lt_prog_compiler_pic=-Kconform_pic
9531      fi
9532      ;;
9533
9534    *)
9535      lt_prog_compiler_pic='-fPIC'
9536      ;;
9537    esac
9538
9539    case $cc_basename in
9540    nvcc*) # Cuda Compiler Driver 2.2
9541      lt_prog_compiler_wl='-Xlinker '
9542      if test -n "$lt_prog_compiler_pic"; then
9543        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9544      fi
9545      ;;
9546    esac
9547  else
9548    # PORTME Check for flag to pass linker flags through the system compiler.
9549    case $host_os in
9550    aix*)
9551      lt_prog_compiler_wl='-Wl,'
9552      if test ia64 = "$host_cpu"; then
9553	# AIX 5 now supports IA64 processor
9554	lt_prog_compiler_static='-Bstatic'
9555      else
9556	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9557      fi
9558      ;;
9559
9560    darwin* | rhapsody*)
9561      # PIC is the default on this platform
9562      # Common symbols not allowed in MH_DYLIB files
9563      lt_prog_compiler_pic='-fno-common'
9564      case $cc_basename in
9565      nagfor*)
9566        # NAG Fortran compiler
9567        lt_prog_compiler_wl='-Wl,-Wl,,'
9568        lt_prog_compiler_pic='-PIC'
9569        lt_prog_compiler_static='-Bstatic'
9570        ;;
9571      esac
9572      ;;
9573
9574    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9575      # This hack is so that the source file can tell whether it is being
9576      # built for inclusion in a dll (and should export symbols for example).
9577      lt_prog_compiler_pic='-DDLL_EXPORT'
9578      case $host_os in
9579      os2*)
9580	lt_prog_compiler_static='$wl-static'
9581	;;
9582      esac
9583      ;;
9584
9585    hpux9* | hpux10* | hpux11*)
9586      lt_prog_compiler_wl='-Wl,'
9587      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9588      # not for PA HP-UX.
9589      case $host_cpu in
9590      hppa*64*|ia64*)
9591	# +Z the default
9592	;;
9593      *)
9594	lt_prog_compiler_pic='+Z'
9595	;;
9596      esac
9597      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9598      lt_prog_compiler_static='$wl-a ${wl}archive'
9599      ;;
9600
9601    irix5* | irix6* | nonstopux*)
9602      lt_prog_compiler_wl='-Wl,'
9603      # PIC (with -KPIC) is the default.
9604      lt_prog_compiler_static='-non_shared'
9605      ;;
9606
9607    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9608      case $cc_basename in
9609      # old Intel for x86_64, which still supported -KPIC.
9610      ecc*)
9611	lt_prog_compiler_wl='-Wl,'
9612	lt_prog_compiler_pic='-KPIC'
9613	lt_prog_compiler_static='-static'
9614        ;;
9615      *flang* | ftn | f18* | f95*)
9616        # Flang compiler.
9617	lt_prog_compiler_wl='-Wl,'
9618	lt_prog_compiler_pic='-fPIC'
9619	lt_prog_compiler_static='-static'
9620        ;;
9621      # icc used to be incompatible with GCC.
9622      # ICC 10 doesn't accept -KPIC any more.
9623      icc* | ifort*)
9624	lt_prog_compiler_wl='-Wl,'
9625	lt_prog_compiler_pic='-fPIC'
9626	lt_prog_compiler_static='-static'
9627        ;;
9628      # Lahey Fortran 8.1.
9629      lf95*)
9630	lt_prog_compiler_wl='-Wl,'
9631	lt_prog_compiler_pic='--shared'
9632	lt_prog_compiler_static='--static'
9633	;;
9634      nagfor*)
9635	# NAG Fortran compiler
9636	lt_prog_compiler_wl='-Wl,-Wl,,'
9637	lt_prog_compiler_pic='-PIC'
9638	lt_prog_compiler_static='-Bstatic'
9639	;;
9640      tcc*)
9641	# Fabrice Bellard et al's Tiny C Compiler
9642	lt_prog_compiler_wl='-Wl,'
9643	lt_prog_compiler_pic='-fPIC'
9644	lt_prog_compiler_static='-static'
9645	;;
9646      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9647        # Portland Group compilers (*not* the Pentium gcc compiler,
9648	# which looks to be a dead project)
9649	lt_prog_compiler_wl='-Wl,'
9650	lt_prog_compiler_pic='-fpic'
9651	lt_prog_compiler_static='-Bstatic'
9652        ;;
9653      ccc*)
9654        lt_prog_compiler_wl='-Wl,'
9655        # All Alpha code is PIC.
9656        lt_prog_compiler_static='-non_shared'
9657        ;;
9658      xl* | bgxl* | bgf* | mpixl*)
9659	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9660	lt_prog_compiler_wl='-Wl,'
9661	lt_prog_compiler_pic='-qpic'
9662	lt_prog_compiler_static='-qstaticlink'
9663	;;
9664      *)
9665	case `$CC -V 2>&1 | $SED 5q` in
9666	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9667	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9668	  lt_prog_compiler_pic='-KPIC'
9669	  lt_prog_compiler_static='-Bstatic'
9670	  lt_prog_compiler_wl=''
9671	  ;;
9672	*Sun\ F* | *Sun*Fortran*)
9673	  lt_prog_compiler_pic='-KPIC'
9674	  lt_prog_compiler_static='-Bstatic'
9675	  lt_prog_compiler_wl='-Qoption ld '
9676	  ;;
9677	*Sun\ C*)
9678	  # Sun C 5.9
9679	  lt_prog_compiler_pic='-KPIC'
9680	  lt_prog_compiler_static='-Bstatic'
9681	  lt_prog_compiler_wl='-Wl,'
9682	  ;;
9683        *Intel*\ [CF]*Compiler*)
9684	  lt_prog_compiler_wl='-Wl,'
9685	  lt_prog_compiler_pic='-fPIC'
9686	  lt_prog_compiler_static='-static'
9687	  ;;
9688	*Portland\ Group*)
9689	  lt_prog_compiler_wl='-Wl,'
9690	  lt_prog_compiler_pic='-fpic'
9691	  lt_prog_compiler_static='-Bstatic'
9692	  ;;
9693	esac
9694	;;
9695      esac
9696      ;;
9697
9698    newsos6)
9699      lt_prog_compiler_pic='-KPIC'
9700      lt_prog_compiler_static='-Bstatic'
9701      ;;
9702
9703    *-mlibc)
9704      lt_prog_compiler_wl='-Wl,'
9705      lt_prog_compiler_pic='-fPIC'
9706      lt_prog_compiler_static='-static'
9707      ;;
9708
9709    *nto* | *qnx*)
9710      # QNX uses GNU C++, but need to define -shared option too, otherwise
9711      # it will coredump.
9712      lt_prog_compiler_pic='-fPIC -shared'
9713      ;;
9714
9715    osf3* | osf4* | osf5*)
9716      lt_prog_compiler_wl='-Wl,'
9717      # All OSF/1 code is PIC.
9718      lt_prog_compiler_static='-non_shared'
9719      ;;
9720
9721    rdos*)
9722      lt_prog_compiler_static='-non_shared'
9723      ;;
9724
9725    serenity*)
9726      ;;
9727
9728    solaris*)
9729      lt_prog_compiler_pic='-KPIC'
9730      lt_prog_compiler_static='-Bstatic'
9731      case $cc_basename in
9732      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9733	lt_prog_compiler_wl='-Qoption ld ';;
9734      *)
9735	lt_prog_compiler_wl='-Wl,';;
9736      esac
9737      ;;
9738
9739    sunos4*)
9740      lt_prog_compiler_wl='-Qoption ld '
9741      lt_prog_compiler_pic='-PIC'
9742      lt_prog_compiler_static='-Bstatic'
9743      ;;
9744
9745    sysv4 | sysv4.2uw2* | sysv4.3*)
9746      lt_prog_compiler_wl='-Wl,'
9747      lt_prog_compiler_pic='-KPIC'
9748      lt_prog_compiler_static='-Bstatic'
9749      ;;
9750
9751    sysv4*MP*)
9752      if test -d /usr/nec; then
9753	lt_prog_compiler_pic='-Kconform_pic'
9754	lt_prog_compiler_static='-Bstatic'
9755      fi
9756      ;;
9757
9758    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9759      lt_prog_compiler_wl='-Wl,'
9760      lt_prog_compiler_pic='-KPIC'
9761      lt_prog_compiler_static='-Bstatic'
9762      ;;
9763
9764    unicos*)
9765      lt_prog_compiler_wl='-Wl,'
9766      lt_prog_compiler_can_build_shared=no
9767      ;;
9768
9769    uts4*)
9770      lt_prog_compiler_pic='-pic'
9771      lt_prog_compiler_static='-Bstatic'
9772      ;;
9773
9774    *)
9775      lt_prog_compiler_can_build_shared=no
9776      ;;
9777    esac
9778  fi
9779
9780case $host_os in
9781  # For platforms that do not support PIC, -DPIC is meaningless:
9782  *djgpp*)
9783    lt_prog_compiler_pic=
9784    ;;
9785  *)
9786    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9787    ;;
9788esac
9789
9790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9791printf %s "checking for $compiler option to produce PIC... " >&6; }
9792if test ${lt_cv_prog_compiler_pic+y}
9793then :
9794  printf %s "(cached) " >&6
9795else case e in #(
9796  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9797esac
9798fi
9799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9800printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9801lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9802
9803#
9804# Check to make sure the PIC flag actually works.
9805#
9806if test -n "$lt_prog_compiler_pic"; then
9807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9808printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9809if test ${lt_cv_prog_compiler_pic_works+y}
9810then :
9811  printf %s "(cached) " >&6
9812else case e in #(
9813  e) lt_cv_prog_compiler_pic_works=no
9814   ac_outfile=conftest.$ac_objext
9815   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9816   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9817   # Insert the option either (1) after the last *FLAGS variable, or
9818   # (2) before a word containing "conftest.", or (3) at the end.
9819   # Note that $ac_compile itself does not contain backslashes and begins
9820   # with a dollar sign (not a hyphen), so the echo should work correctly.
9821   # The option is referenced via a variable to avoid confusing sed.
9822   lt_compile=`echo "$ac_compile" | $SED \
9823   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9824   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9825   -e 's:$: $lt_compiler_flag:'`
9826   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9827   (eval "$lt_compile" 2>conftest.err)
9828   ac_status=$?
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   if (exit $ac_status) && test -s "$ac_outfile"; then
9832     # The compiler can only warn and ignore the option if not recognized
9833     # So say no if there are warnings other than the usual output.
9834     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9835     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9836     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9837       lt_cv_prog_compiler_pic_works=yes
9838     fi
9839   fi
9840   $RM conftest*
9841 ;;
9842esac
9843fi
9844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9845printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9846
9847if test yes = "$lt_cv_prog_compiler_pic_works"; then
9848    case $lt_prog_compiler_pic in
9849     "" | " "*) ;;
9850     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9851     esac
9852else
9853    lt_prog_compiler_pic=
9854     lt_prog_compiler_can_build_shared=no
9855fi
9856
9857fi
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869#
9870# Check to make sure the static flag actually works.
9871#
9872wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9874printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9875if test ${lt_cv_prog_compiler_static_works+y}
9876then :
9877  printf %s "(cached) " >&6
9878else case e in #(
9879  e) lt_cv_prog_compiler_static_works=no
9880   save_LDFLAGS=$LDFLAGS
9881   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9882   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9883   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9884     # The linker can only warn and ignore the option if not recognized
9885     # So say no if there are warnings
9886     if test -s conftest.err; then
9887       # Append any errors to the config.log.
9888       cat conftest.err 1>&5
9889       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9890       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9891       if diff conftest.exp conftest.er2 >/dev/null; then
9892         lt_cv_prog_compiler_static_works=yes
9893       fi
9894     else
9895       lt_cv_prog_compiler_static_works=yes
9896     fi
9897   fi
9898   $RM -r conftest*
9899   LDFLAGS=$save_LDFLAGS
9900 ;;
9901esac
9902fi
9903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9904printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9905
9906if test yes = "$lt_cv_prog_compiler_static_works"; then
9907    :
9908else
9909    lt_prog_compiler_static=
9910fi
9911
9912
9913
9914
9915
9916
9917
9918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9919printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9920if test ${lt_cv_prog_compiler_c_o+y}
9921then :
9922  printf %s "(cached) " >&6
9923else case e in #(
9924  e) lt_cv_prog_compiler_c_o=no
9925   $RM -r conftest 2>/dev/null
9926   mkdir conftest
9927   cd conftest
9928   mkdir out
9929   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9930
9931   lt_compiler_flag="-o out/conftest2.$ac_objext"
9932   # Insert the option either (1) after the last *FLAGS variable, or
9933   # (2) before a word containing "conftest.", or (3) at the end.
9934   # Note that $ac_compile itself does not contain backslashes and begins
9935   # with a dollar sign (not a hyphen), so the echo should work correctly.
9936   lt_compile=`echo "$ac_compile" | $SED \
9937   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9938   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9939   -e 's:$: $lt_compiler_flag:'`
9940   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9941   (eval "$lt_compile" 2>out/conftest.err)
9942   ac_status=$?
9943   cat out/conftest.err >&5
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9946   then
9947     # The compiler can only warn and ignore the option if not recognized
9948     # So say no if there are warnings
9949     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9950     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9951     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9952       lt_cv_prog_compiler_c_o=yes
9953     fi
9954   fi
9955   chmod u+w . 2>&5
9956   $RM conftest*
9957   # SGI C++ compiler will create directory out/ii_files/ for
9958   # template instantiation
9959   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9960   $RM out/* && rmdir out
9961   cd ..
9962   $RM -r conftest
9963   $RM conftest*
9964 ;;
9965esac
9966fi
9967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9968printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9969
9970
9971
9972
9973
9974
9975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9976printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9977if test ${lt_cv_prog_compiler_c_o+y}
9978then :
9979  printf %s "(cached) " >&6
9980else case e in #(
9981  e) lt_cv_prog_compiler_c_o=no
9982   $RM -r conftest 2>/dev/null
9983   mkdir conftest
9984   cd conftest
9985   mkdir out
9986   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9987
9988   lt_compiler_flag="-o out/conftest2.$ac_objext"
9989   # Insert the option either (1) after the last *FLAGS variable, or
9990   # (2) before a word containing "conftest.", or (3) at the end.
9991   # Note that $ac_compile itself does not contain backslashes and begins
9992   # with a dollar sign (not a hyphen), so the echo should work correctly.
9993   lt_compile=`echo "$ac_compile" | $SED \
9994   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9995   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9996   -e 's:$: $lt_compiler_flag:'`
9997   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9998   (eval "$lt_compile" 2>out/conftest.err)
9999   ac_status=$?
10000   cat out/conftest.err >&5
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10003   then
10004     # The compiler can only warn and ignore the option if not recognized
10005     # So say no if there are warnings
10006     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10007     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10008     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10009       lt_cv_prog_compiler_c_o=yes
10010     fi
10011   fi
10012   chmod u+w . 2>&5
10013   $RM conftest*
10014   # SGI C++ compiler will create directory out/ii_files/ for
10015   # template instantiation
10016   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10017   $RM out/* && rmdir out
10018   cd ..
10019   $RM -r conftest
10020   $RM conftest*
10021 ;;
10022esac
10023fi
10024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10025printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10026
10027
10028
10029
10030hard_links=nottested
10031if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10032  # do not overwrite the value of need_locks provided by the user
10033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10034printf %s "checking if we can lock with hard links... " >&6; }
10035  hard_links=yes
10036  $RM conftest*
10037  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10038  touch conftest.a
10039  ln conftest.a conftest.b 2>&5 || hard_links=no
10040  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10042printf "%s\n" "$hard_links" >&6; }
10043  if test no = "$hard_links"; then
10044    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10045printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10046    need_locks=warn
10047  fi
10048else
10049  need_locks=no
10050fi
10051
10052
10053
10054
10055
10056
10057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10058printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10059
10060  runpath_var=
10061  allow_undefined_flag=
10062  always_export_symbols=no
10063  archive_cmds=
10064  archive_expsym_cmds=
10065  compiler_needs_object=no
10066  enable_shared_with_static_runtimes=no
10067  export_dynamic_flag_spec=
10068  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10069  hardcode_automatic=no
10070  hardcode_direct=no
10071  hardcode_direct_absolute=no
10072  hardcode_libdir_flag_spec=
10073  hardcode_libdir_separator=
10074  hardcode_minus_L=no
10075  hardcode_shlibpath_var=unsupported
10076  inherit_rpath=no
10077  link_all_deplibs=unknown
10078  module_cmds=
10079  module_expsym_cmds=
10080  old_archive_from_new_cmds=
10081  old_archive_from_expsyms_cmds=
10082  thread_safe_flag_spec=
10083  whole_archive_flag_spec=
10084  # include_expsyms should be a list of space-separated symbols to be *always*
10085  # included in the symbol list
10086  include_expsyms=
10087  # exclude_expsyms can be an extended regexp of symbols to exclude
10088  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10089  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10090  # as well as any symbol that contains 'd'.
10091  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10092  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10093  # platforms (ab)use it in PIC code, but their linkers get confused if
10094  # the symbol is explicitly referenced.  Since portable code cannot
10095  # rely on this symbol name, it's probably fine to never include it in
10096  # preloaded symbol tables.
10097  # Exclude shared library initialization/finalization symbols.
10098  extract_expsyms_cmds=
10099
10100  case $host_os in
10101  cygwin* | mingw* | windows* | pw32* | cegcc*)
10102    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10103    # When not using gcc, we currently assume that we are using
10104    # Microsoft Visual C++ or Intel C++ Compiler.
10105    if test yes != "$GCC"; then
10106      with_gnu_ld=no
10107    fi
10108    ;;
10109  interix*)
10110    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10111    with_gnu_ld=yes
10112    ;;
10113  esac
10114
10115  ld_shlibs=yes
10116
10117  # On some targets, GNU ld is compatible enough with the native linker
10118  # that we're better off using the native interface for both.
10119  lt_use_gnu_ld_interface=no
10120  if test yes = "$with_gnu_ld"; then
10121    case $host_os in
10122      aix*)
10123	# The AIX port of GNU ld has always aspired to compatibility
10124	# with the native linker.  However, as the warning in the GNU ld
10125	# block says, versions before 2.19.5* couldn't really create working
10126	# shared libraries, regardless of the interface used.
10127	case `$LD -v 2>&1` in
10128	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10129	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10130	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10131	  *)
10132	    lt_use_gnu_ld_interface=yes
10133	    ;;
10134	esac
10135	;;
10136      *)
10137	lt_use_gnu_ld_interface=yes
10138	;;
10139    esac
10140  fi
10141
10142  if test yes = "$lt_use_gnu_ld_interface"; then
10143    # If archive_cmds runs LD, not CC, wlarc should be empty
10144    wlarc='$wl'
10145
10146    # Set some defaults for GNU ld with shared library support. These
10147    # are reset later if shared libraries are not supported. Putting them
10148    # here allows them to be overridden if necessary.
10149    runpath_var=LD_RUN_PATH
10150    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10151    export_dynamic_flag_spec='$wl--export-dynamic'
10152    # ancient GNU ld didn't support --whole-archive et. al.
10153    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10154      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10155    else
10156      whole_archive_flag_spec=
10157    fi
10158    supports_anon_versioning=no
10159    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10160      *GNU\ gold*) supports_anon_versioning=yes ;;
10161      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10162      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10163      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10164      *\ 2.11.*) ;; # other 2.11 versions
10165      *) supports_anon_versioning=yes ;;
10166    esac
10167
10168    # See if GNU ld supports shared libraries.
10169    case $host_os in
10170    aix[3-9]*)
10171      # On AIX/PPC, the GNU linker is very broken
10172      if test ia64 != "$host_cpu"; then
10173	ld_shlibs=no
10174	cat <<_LT_EOF 1>&2
10175
10176*** Warning: the GNU linker, at least up to release 2.19, is reported
10177*** to be unable to reliably create shared libraries on AIX.
10178*** Therefore, libtool is disabling shared libraries support.  If you
10179*** really care for shared libraries, you may want to install binutils
10180*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10181*** You will then need to restart the configuration process.
10182
10183_LT_EOF
10184      fi
10185      ;;
10186
10187    amigaos*)
10188      case $host_cpu in
10189      powerpc)
10190            # see comment about AmigaOS4 .so support
10191            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10192            archive_expsym_cmds=''
10193        ;;
10194      m68k)
10195            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)'
10196            hardcode_libdir_flag_spec='-L$libdir'
10197            hardcode_minus_L=yes
10198        ;;
10199      esac
10200      ;;
10201
10202    beos*)
10203      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204	allow_undefined_flag=unsupported
10205	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10206	# support --undefined.  This deserves some investigation.  FIXME
10207	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10208      else
10209	ld_shlibs=no
10210      fi
10211      ;;
10212
10213    cygwin* | mingw* | windows* | pw32* | cegcc*)
10214      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10215      # as there is no search path for DLLs.
10216      hardcode_libdir_flag_spec='-L$libdir'
10217      export_dynamic_flag_spec='$wl--export-all-symbols'
10218      allow_undefined_flag=unsupported
10219      always_export_symbols=no
10220      enable_shared_with_static_runtimes=yes
10221      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'
10222      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10223      file_list_spec='@'
10224
10225      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10226        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10227	# If the export-symbols file already is a .def file, use it as
10228	# is; otherwise, prepend EXPORTS...
10229	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10230          cp $export_symbols $output_objdir/$soname.def;
10231        else
10232          echo EXPORTS > $output_objdir/$soname.def;
10233          cat $export_symbols >> $output_objdir/$soname.def;
10234        fi~
10235        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10236      else
10237	ld_shlibs=no
10238      fi
10239      ;;
10240
10241    haiku*)
10242      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10243      link_all_deplibs=no
10244      ;;
10245
10246    os2*)
10247      hardcode_libdir_flag_spec='-L$libdir'
10248      hardcode_minus_L=yes
10249      allow_undefined_flag=unsupported
10250      shrext_cmds=.dll
10251      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10252	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10253	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10254	$ECHO EXPORTS >> $output_objdir/$libname.def~
10255	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10256	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10257	emximp -o $lib $output_objdir/$libname.def'
10258      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10259	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10260	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10261	$ECHO EXPORTS >> $output_objdir/$libname.def~
10262	prefix_cmds="$SED"~
10263	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10264	  prefix_cmds="$prefix_cmds -e 1d";
10265	fi~
10266	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10267	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10268	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10269	emximp -o $lib $output_objdir/$libname.def'
10270      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10271      enable_shared_with_static_runtimes=yes
10272      file_list_spec='@'
10273      ;;
10274
10275    interix[3-9]*)
10276      hardcode_direct=no
10277      hardcode_shlibpath_var=no
10278      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10279      export_dynamic_flag_spec='$wl-E'
10280      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10281      # Instead, shared libraries are loaded at an image base (0x10000000 by
10282      # default) and relocated if they conflict, which is a slow very memory
10283      # consuming and fragmenting process.  To avoid this, we pick a random,
10284      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10285      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10286      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10287      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'
10288      ;;
10289
10290    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10291      tmp_diet=no
10292      if test linux-dietlibc = "$host_os"; then
10293	case $cc_basename in
10294	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10295	esac
10296      fi
10297      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10298	 && test no = "$tmp_diet"
10299      then
10300	tmp_addflag=' $pic_flag'
10301	tmp_sharedflag='-shared'
10302	case $cc_basename,$host_cpu in
10303        pgcc*)				# Portland Group C compiler
10304	  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'
10305	  tmp_addflag=' $pic_flag'
10306	  ;;
10307	pgf77* | pgf90* | pgf95* | pgfortran*)
10308					# Portland Group f77 and f90 compilers
10309	  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'
10310	  tmp_addflag=' $pic_flag -Mnomain' ;;
10311	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10312	  tmp_addflag=' -i_dynamic' ;;
10313	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10314	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10315	ifc* | ifort*)			# Intel Fortran compiler
10316	  tmp_addflag=' -nofor_main' ;;
10317	lf95*)				# Lahey Fortran 8.1
10318	  whole_archive_flag_spec=
10319	  tmp_sharedflag='--shared' ;;
10320        nagfor*)                        # NAGFOR 5.3
10321          tmp_sharedflag='-Wl,-shared' ;;
10322	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10323	  tmp_sharedflag='-qmkshrobj'
10324	  tmp_addflag= ;;
10325	nvcc*)	# Cuda Compiler Driver 2.2
10326	  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'
10327	  compiler_needs_object=yes
10328	  ;;
10329	esac
10330	case `$CC -V 2>&1 | $SED 5q` in
10331	*Sun\ C*)			# Sun C 5.9
10332	  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'
10333	  compiler_needs_object=yes
10334	  tmp_sharedflag='-G' ;;
10335	*Sun\ F*)			# Sun Fortran 8.3
10336	  tmp_sharedflag='-G' ;;
10337	esac
10338	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10339
10340        if test yes = "$supports_anon_versioning"; then
10341          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10342            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10343            echo "local: *; };" >> $output_objdir/$libname.ver~
10344            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10345        fi
10346
10347	case $cc_basename in
10348	tcc*)
10349	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10350	  export_dynamic_flag_spec='-rdynamic'
10351	  ;;
10352	xlf* | bgf* | bgxlf* | mpixlf*)
10353	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10354	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10355	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10356	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10357	  if test yes = "$supports_anon_versioning"; then
10358	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10359              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10360              echo "local: *; };" >> $output_objdir/$libname.ver~
10361              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10362	  fi
10363	  ;;
10364	esac
10365      else
10366        ld_shlibs=no
10367      fi
10368      ;;
10369
10370    *-mlibc)
10371	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10372	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10373      ;;
10374
10375    netbsd* | netbsdelf*-gnu)
10376      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10377	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10378	wlarc=
10379      else
10380	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10381	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10382      fi
10383      ;;
10384
10385    solaris*)
10386      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10387	ld_shlibs=no
10388	cat <<_LT_EOF 1>&2
10389
10390*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10391*** create shared libraries on Solaris systems.  Therefore, libtool
10392*** is disabling shared libraries support.  We urge you to upgrade GNU
10393*** binutils to release 2.9.1 or newer.  Another option is to modify
10394*** your PATH or compiler configuration so that the native linker is
10395*** used, and then restart.
10396
10397_LT_EOF
10398      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10399	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10400	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10401      else
10402	ld_shlibs=no
10403      fi
10404      ;;
10405
10406    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10407      case `$LD -v 2>&1` in
10408        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10409	ld_shlibs=no
10410	cat <<_LT_EOF 1>&2
10411
10412*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10413*** reliably create shared libraries on SCO systems.  Therefore, libtool
10414*** is disabling shared libraries support.  We urge you to upgrade GNU
10415*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10416*** your PATH or compiler configuration so that the native linker is
10417*** used, and then restart.
10418
10419_LT_EOF
10420	;;
10421	*)
10422	  # For security reasons, it is highly recommended that you always
10423	  # use absolute paths for naming shared libraries, and exclude the
10424	  # DT_RUNPATH tag from executables and libraries.  But doing so
10425	  # requires that you compile everything twice, which is a pain.
10426	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10427	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10428	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10429	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10430	  else
10431	    ld_shlibs=no
10432	  fi
10433	;;
10434      esac
10435      ;;
10436
10437    sunos4*)
10438      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10439      wlarc=
10440      hardcode_direct=yes
10441      hardcode_shlibpath_var=no
10442      ;;
10443
10444    *)
10445      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10446	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10447	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10448      else
10449	ld_shlibs=no
10450      fi
10451      ;;
10452    esac
10453
10454    if test no = "$ld_shlibs"; then
10455      runpath_var=
10456      hardcode_libdir_flag_spec=
10457      export_dynamic_flag_spec=
10458      whole_archive_flag_spec=
10459    fi
10460  else
10461    # PORTME fill in a description of your system's linker (not GNU ld)
10462    case $host_os in
10463    aix3*)
10464      allow_undefined_flag=unsupported
10465      always_export_symbols=yes
10466      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'
10467      # Note: this linker hardcodes the directories in LIBPATH if there
10468      # are no directories specified by -L.
10469      hardcode_minus_L=yes
10470      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10471	# Neither direct hardcoding nor static linking is supported with a
10472	# broken collect2.
10473	hardcode_direct=unsupported
10474      fi
10475      ;;
10476
10477    aix[4-9]*)
10478      if test ia64 = "$host_cpu"; then
10479	# On IA64, the linker does run time linking by default, so we don't
10480	# have to do anything special.
10481	aix_use_runtimelinking=no
10482	exp_sym_flag='-Bexport'
10483	no_entry_flag=
10484      else
10485	# If we're using GNU nm, then we don't want the "-C" option.
10486	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10487	# Without the "-l" option, or with the "-B" option, AIX nm treats
10488	# weak defined symbols like other global defined symbols, whereas
10489	# GNU nm marks them as "W".
10490	# While the 'weak' keyword is ignored in the Export File, we need
10491	# it in the Import File for the 'aix-soname' feature, so we have
10492	# to replace the "-B" option with "-P" for AIX nm.
10493	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10494	  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'
10495	else
10496	  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 == "L") || (\$ 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'
10497	fi
10498	aix_use_runtimelinking=no
10499
10500	# Test if we are trying to use run time linking or normal
10501	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10502	# have runtime linking enabled, and use it for executables.
10503	# For shared libraries, we enable/disable runtime linking
10504	# depending on the kind of the shared library created -
10505	# when "with_aix_soname,aix_use_runtimelinking" is:
10506	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10507	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10508	#            lib.a           static archive
10509	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10510	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10511	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10512	#            lib.a(lib.so.V) shared, rtl:no
10513	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10514	#            lib.a           static archive
10515	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10516	  for ld_flag in $LDFLAGS; do
10517	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10518	    aix_use_runtimelinking=yes
10519	    break
10520	  fi
10521	  done
10522	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10523	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10524	    # so we don't have lib.a shared libs to link our executables.
10525	    # We have to force runtime linking in this case.
10526	    aix_use_runtimelinking=yes
10527	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10528	  fi
10529	  ;;
10530	esac
10531
10532	exp_sym_flag='-bexport'
10533	no_entry_flag='-bnoentry'
10534      fi
10535
10536      # When large executables or shared objects are built, AIX ld can
10537      # have problems creating the table of contents.  If linking a library
10538      # or program results in "error TOC overflow" add -mminimal-toc to
10539      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10540      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10541
10542      archive_cmds=''
10543      hardcode_direct=yes
10544      hardcode_direct_absolute=yes
10545      hardcode_libdir_separator=':'
10546      link_all_deplibs=yes
10547      file_list_spec='$wl-f,'
10548      case $with_aix_soname,$aix_use_runtimelinking in
10549      aix,*) ;; # traditional, no import file
10550      svr4,* | *,yes) # use import file
10551	# The Import File defines what to hardcode.
10552	hardcode_direct=no
10553	hardcode_direct_absolute=no
10554	;;
10555      esac
10556
10557      if test yes = "$GCC"; then
10558	case $host_os in aix4.[012]|aix4.[012].*)
10559	# We only want to do this on AIX 4.2 and lower, the check
10560	# below for broken collect2 doesn't work under 4.3+
10561	  collect2name=`$CC -print-prog-name=collect2`
10562	  if test -f "$collect2name" &&
10563	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10564	  then
10565	  # We have reworked collect2
10566	  :
10567	  else
10568	  # We have old collect2
10569	  hardcode_direct=unsupported
10570	  # It fails to find uninstalled libraries when the uninstalled
10571	  # path is not listed in the libpath.  Setting hardcode_minus_L
10572	  # to unsupported forces relinking
10573	  hardcode_minus_L=yes
10574	  hardcode_libdir_flag_spec='-L$libdir'
10575	  hardcode_libdir_separator=
10576	  fi
10577	  ;;
10578	esac
10579	shared_flag='-shared'
10580	if test yes = "$aix_use_runtimelinking"; then
10581	  shared_flag="$shared_flag "'$wl-G'
10582	fi
10583	# Need to ensure runtime linking is disabled for the traditional
10584	# shared library, or the linker may eventually find shared libraries
10585	# /with/ Import File - we do not want to mix them.
10586	shared_flag_aix='-shared'
10587	shared_flag_svr4='-shared $wl-G'
10588      else
10589	# not using gcc
10590	if test ia64 = "$host_cpu"; then
10591	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10592	# chokes on -Wl,-G. The following line is correct:
10593	  shared_flag='-G'
10594	else
10595	  if test yes = "$aix_use_runtimelinking"; then
10596	    shared_flag='$wl-G'
10597	  else
10598	    shared_flag='$wl-bM:SRE'
10599	  fi
10600	  shared_flag_aix='$wl-bM:SRE'
10601	  shared_flag_svr4='$wl-G'
10602	fi
10603      fi
10604
10605      export_dynamic_flag_spec='$wl-bexpall'
10606      # It seems that -bexpall does not export symbols beginning with
10607      # underscore (_), so it is better to generate a list of symbols to export.
10608      always_export_symbols=yes
10609      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10610	# Warning - without using the other runtime loading flags (-brtl),
10611	# -berok will link without error, but may produce a broken library.
10612	allow_undefined_flag='-berok'
10613        # Determine the default libpath from the value encoded in an
10614        # empty executable.
10615        if test set = "${lt_cv_aix_libpath+set}"; then
10616  aix_libpath=$lt_cv_aix_libpath
10617else
10618  if test ${lt_cv_aix_libpath_+y}
10619then :
10620  printf %s "(cached) " >&6
10621else case e in #(
10622  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h.  */
10624
10625int
10626main (void)
10627{
10628
10629  ;
10630  return 0;
10631}
10632_ACEOF
10633if ac_fn_c_try_link "$LINENO"
10634then :
10635
10636  lt_aix_libpath_sed='
10637      /Import File Strings/,/^$/ {
10638	  /^0/ {
10639	      s/^0  *\([^ ]*\) *$/\1/
10640	      p
10641	  }
10642      }'
10643  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10644  # Check for a 64-bit object if we didn't find anything.
10645  if test -z "$lt_cv_aix_libpath_"; then
10646    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10647  fi
10648fi
10649rm -f core conftest.err conftest.$ac_objext conftest.beam \
10650    conftest$ac_exeext conftest.$ac_ext
10651  if test -z "$lt_cv_aix_libpath_"; then
10652    lt_cv_aix_libpath_=/usr/lib:/lib
10653  fi
10654   ;;
10655esac
10656fi
10657
10658  aix_libpath=$lt_cv_aix_libpath_
10659fi
10660
10661        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10662        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
10663      else
10664	if test ia64 = "$host_cpu"; then
10665	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10666	  allow_undefined_flag="-z nodefs"
10667	  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"
10668	else
10669	 # Determine the default libpath from the value encoded in an
10670	 # empty executable.
10671	 if test set = "${lt_cv_aix_libpath+set}"; then
10672  aix_libpath=$lt_cv_aix_libpath
10673else
10674  if test ${lt_cv_aix_libpath_+y}
10675then :
10676  printf %s "(cached) " >&6
10677else case e in #(
10678  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679/* end confdefs.h.  */
10680
10681int
10682main (void)
10683{
10684
10685  ;
10686  return 0;
10687}
10688_ACEOF
10689if ac_fn_c_try_link "$LINENO"
10690then :
10691
10692  lt_aix_libpath_sed='
10693      /Import File Strings/,/^$/ {
10694	  /^0/ {
10695	      s/^0  *\([^ ]*\) *$/\1/
10696	      p
10697	  }
10698      }'
10699  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10700  # Check for a 64-bit object if we didn't find anything.
10701  if test -z "$lt_cv_aix_libpath_"; then
10702    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10703  fi
10704fi
10705rm -f core conftest.err conftest.$ac_objext conftest.beam \
10706    conftest$ac_exeext conftest.$ac_ext
10707  if test -z "$lt_cv_aix_libpath_"; then
10708    lt_cv_aix_libpath_=/usr/lib:/lib
10709  fi
10710   ;;
10711esac
10712fi
10713
10714  aix_libpath=$lt_cv_aix_libpath_
10715fi
10716
10717	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10718	  # Warning - without using the other run time loading flags,
10719	  # -berok will link without error, but may produce a broken library.
10720	  no_undefined_flag=' $wl-bernotok'
10721	  allow_undefined_flag=' $wl-berok'
10722	  if test yes = "$with_gnu_ld"; then
10723	    # We only use this code for GNU lds that support --whole-archive.
10724	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10725	  else
10726	    # Exported symbols can be pulled into shared objects from archives
10727	    whole_archive_flag_spec='$convenience'
10728	  fi
10729	  archive_cmds_need_lc=yes
10730	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10731	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10732	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10733	  if test svr4 != "$with_aix_soname"; then
10734	    # This is similar to how AIX traditionally builds its shared libraries.
10735	    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'
10736	  fi
10737	  if test aix != "$with_aix_soname"; then
10738	    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'
10739	  else
10740	    # used by -dlpreopen to get the symbols
10741	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10742	  fi
10743	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10744	fi
10745      fi
10746      ;;
10747
10748    amigaos*)
10749      case $host_cpu in
10750      powerpc)
10751            # see comment about AmigaOS4 .so support
10752            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10753            archive_expsym_cmds=''
10754        ;;
10755      m68k)
10756            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)'
10757            hardcode_libdir_flag_spec='-L$libdir'
10758            hardcode_minus_L=yes
10759        ;;
10760      esac
10761      ;;
10762
10763    bsdi[45]*)
10764      export_dynamic_flag_spec=-rdynamic
10765      ;;
10766
10767    cygwin* | mingw* | windows* | pw32* | cegcc*)
10768      # When not using gcc, we currently assume that we are using
10769      # Microsoft Visual C++ or Intel C++ Compiler.
10770      # hardcode_libdir_flag_spec is actually meaningless, as there is
10771      # no search path for DLLs.
10772      case $cc_basename in
10773      cl* | icl*)
10774	# Native MSVC or ICC
10775	hardcode_libdir_flag_spec=' '
10776	allow_undefined_flag=unsupported
10777	always_export_symbols=yes
10778	file_list_spec='@'
10779	# Tell ltmain to make .lib files, not .a files.
10780	libext=lib
10781	# Tell ltmain to make .dll files, not .so files.
10782	shrext_cmds=.dll
10783	# FIXME: Setting linknames here is a bad hack.
10784	archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10785	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10786            cp "$export_symbols" "$output_objdir/$soname.def";
10787            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10788          else
10789            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10790          fi~
10791          $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10792          linknames='
10793	# The linker will not automatically build a static lib if we build a DLL.
10794	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10795	enable_shared_with_static_runtimes=yes
10796	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10797	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10798	# Don't use ranlib
10799	old_postinstall_cmds='chmod 644 $oldlib'
10800	postlink_cmds='lt_outputfile="@OUTPUT@"~
10801          lt_tool_outputfile="@TOOL_OUTPUT@"~
10802          case $lt_outputfile in
10803            *.exe|*.EXE) ;;
10804            *)
10805              lt_outputfile=$lt_outputfile.exe
10806              lt_tool_outputfile=$lt_tool_outputfile.exe
10807              ;;
10808          esac~
10809          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10810            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10811            $RM "$lt_outputfile.manifest";
10812          fi'
10813	;;
10814      *)
10815	# Assume MSVC and ICC wrapper
10816	hardcode_libdir_flag_spec=' '
10817	allow_undefined_flag=unsupported
10818	# Tell ltmain to make .lib files, not .a files.
10819	libext=lib
10820	# Tell ltmain to make .dll files, not .so files.
10821	shrext_cmds=.dll
10822	# FIXME: Setting linknames here is a bad hack.
10823	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10824	# The linker will automatically build a .lib file if we build a DLL.
10825	old_archive_from_new_cmds='true'
10826	# FIXME: Should let the user specify the lib program.
10827	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10828	enable_shared_with_static_runtimes=yes
10829	;;
10830      esac
10831      ;;
10832
10833    darwin* | rhapsody*)
10834
10835
10836  archive_cmds_need_lc=no
10837  hardcode_direct=no
10838  hardcode_automatic=yes
10839  hardcode_shlibpath_var=unsupported
10840  if test yes = "$lt_cv_ld_force_load"; then
10841    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\"`'
10842
10843  else
10844    whole_archive_flag_spec=''
10845  fi
10846  link_all_deplibs=yes
10847  allow_undefined_flag=$_lt_dar_allow_undefined
10848  case $cc_basename in
10849     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10850     *) _lt_dar_can_shared=$GCC ;;
10851  esac
10852  if test yes = "$_lt_dar_can_shared"; then
10853    output_verbose_link_cmd=func_echo_all
10854    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10855    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10856    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"
10857    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"
10858
10859  else
10860  ld_shlibs=no
10861  fi
10862
10863      ;;
10864
10865    dgux*)
10866      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10867      hardcode_libdir_flag_spec='-L$libdir'
10868      hardcode_shlibpath_var=no
10869      ;;
10870
10871    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10872    # support.  Future versions do this automatically, but an explicit c++rt0.o
10873    # does not break anything, and helps significantly (at the cost of a little
10874    # extra space).
10875    freebsd2.2*)
10876      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10877      hardcode_libdir_flag_spec='-R$libdir'
10878      hardcode_direct=yes
10879      hardcode_shlibpath_var=no
10880      ;;
10881
10882    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10883    freebsd2.*)
10884      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10885      hardcode_direct=yes
10886      hardcode_minus_L=yes
10887      hardcode_shlibpath_var=no
10888      ;;
10889
10890    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10891    freebsd* | dragonfly* | midnightbsd*)
10892      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10893      hardcode_libdir_flag_spec='-R$libdir'
10894      hardcode_direct=yes
10895      hardcode_shlibpath_var=no
10896      ;;
10897
10898    hpux9*)
10899      if test yes = "$GCC"; then
10900	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'
10901      else
10902	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'
10903      fi
10904      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10905      hardcode_libdir_separator=:
10906      hardcode_direct=yes
10907
10908      # hardcode_minus_L: Not really in the search PATH,
10909      # but as the default location of the library.
10910      hardcode_minus_L=yes
10911      export_dynamic_flag_spec='$wl-E'
10912      ;;
10913
10914    hpux10*)
10915      if test yes,no = "$GCC,$with_gnu_ld"; then
10916	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10917      else
10918	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10919      fi
10920      if test no = "$with_gnu_ld"; then
10921	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10922	hardcode_libdir_separator=:
10923	hardcode_direct=yes
10924	hardcode_direct_absolute=yes
10925	export_dynamic_flag_spec='$wl-E'
10926	# hardcode_minus_L: Not really in the search PATH,
10927	# but as the default location of the library.
10928	hardcode_minus_L=yes
10929      fi
10930      ;;
10931
10932    hpux11*)
10933      if test yes,no = "$GCC,$with_gnu_ld"; then
10934	case $host_cpu in
10935	hppa*64*)
10936	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10937	  ;;
10938	ia64*)
10939	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10940	  ;;
10941	*)
10942	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10943	  ;;
10944	esac
10945      else
10946	case $host_cpu in
10947	hppa*64*)
10948	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10949	  ;;
10950	ia64*)
10951	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10952	  ;;
10953	*)
10954
10955	  # Older versions of the 11.00 compiler do not understand -b yet
10956	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10957	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10958printf %s "checking if $CC understands -b... " >&6; }
10959if test ${lt_cv_prog_compiler__b+y}
10960then :
10961  printf %s "(cached) " >&6
10962else case e in #(
10963  e) lt_cv_prog_compiler__b=no
10964   save_LDFLAGS=$LDFLAGS
10965   LDFLAGS="$LDFLAGS -b"
10966   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10967   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10968     # The linker can only warn and ignore the option if not recognized
10969     # So say no if there are warnings
10970     if test -s conftest.err; then
10971       # Append any errors to the config.log.
10972       cat conftest.err 1>&5
10973       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10974       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10975       if diff conftest.exp conftest.er2 >/dev/null; then
10976         lt_cv_prog_compiler__b=yes
10977       fi
10978     else
10979       lt_cv_prog_compiler__b=yes
10980     fi
10981   fi
10982   $RM -r conftest*
10983   LDFLAGS=$save_LDFLAGS
10984 ;;
10985esac
10986fi
10987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10988printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10989
10990if test yes = "$lt_cv_prog_compiler__b"; then
10991    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10992else
10993    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10994fi
10995
10996	  ;;
10997	esac
10998      fi
10999      if test no = "$with_gnu_ld"; then
11000	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11001	hardcode_libdir_separator=:
11002
11003	case $host_cpu in
11004	hppa*64*|ia64*)
11005	  hardcode_direct=no
11006	  hardcode_shlibpath_var=no
11007	  ;;
11008	*)
11009	  hardcode_direct=yes
11010	  hardcode_direct_absolute=yes
11011	  export_dynamic_flag_spec='$wl-E'
11012
11013	  # hardcode_minus_L: Not really in the search PATH,
11014	  # but as the default location of the library.
11015	  hardcode_minus_L=yes
11016	  ;;
11017	esac
11018      fi
11019      ;;
11020
11021    irix5* | irix6* | nonstopux*)
11022      if test yes = "$GCC"; then
11023	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'
11024	# Try to use the -exported_symbol ld option, if it does not
11025	# work, assume that -exports_file does not work either and
11026	# implicitly export all symbols.
11027	# This should be the same for all languages, so no per-tag cache variable.
11028	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11029printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11030if test ${lt_cv_irix_exported_symbol+y}
11031then :
11032  printf %s "(cached) " >&6
11033else case e in #(
11034  e) save_LDFLAGS=$LDFLAGS
11035	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11036	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037/* end confdefs.h.  */
11038int foo (void) { return 0; }
11039_ACEOF
11040if ac_fn_c_try_link "$LINENO"
11041then :
11042  lt_cv_irix_exported_symbol=yes
11043else case e in #(
11044  e) lt_cv_irix_exported_symbol=no ;;
11045esac
11046fi
11047rm -f core conftest.err conftest.$ac_objext conftest.beam \
11048    conftest$ac_exeext conftest.$ac_ext
11049           LDFLAGS=$save_LDFLAGS ;;
11050esac
11051fi
11052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11053printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11054	if test yes = "$lt_cv_irix_exported_symbol"; then
11055          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'
11056	fi
11057      else
11058	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'
11059	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'
11060      fi
11061      archive_cmds_need_lc='no'
11062      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11063      hardcode_libdir_separator=:
11064      inherit_rpath=yes
11065      link_all_deplibs=yes
11066      ;;
11067
11068    linux*)
11069      case $cc_basename in
11070      tcc*)
11071	# Fabrice Bellard et al's Tiny C Compiler
11072	ld_shlibs=yes
11073	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11074	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11075	;;
11076      esac
11077      ;;
11078
11079    *-mlibc)
11080      ;;
11081
11082    netbsd* | netbsdelf*-gnu)
11083      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11084	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11085      else
11086	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11087      fi
11088      hardcode_libdir_flag_spec='-R$libdir'
11089      hardcode_direct=yes
11090      hardcode_shlibpath_var=no
11091      ;;
11092
11093    newsos6)
11094      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11095      hardcode_direct=yes
11096      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11097      hardcode_libdir_separator=:
11098      hardcode_shlibpath_var=no
11099      ;;
11100
11101    *nto* | *qnx*)
11102      ;;
11103
11104    openbsd*)
11105      if test -f /usr/libexec/ld.so; then
11106	hardcode_direct=yes
11107	hardcode_shlibpath_var=no
11108	hardcode_direct_absolute=yes
11109	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11110	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11111	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11112	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11113	  export_dynamic_flag_spec='$wl-E'
11114	else
11115	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11116	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11117	fi
11118      else
11119	ld_shlibs=no
11120      fi
11121      ;;
11122
11123    os2*)
11124      hardcode_libdir_flag_spec='-L$libdir'
11125      hardcode_minus_L=yes
11126      allow_undefined_flag=unsupported
11127      shrext_cmds=.dll
11128      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11129	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11130	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11131	$ECHO EXPORTS >> $output_objdir/$libname.def~
11132	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11133	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11134	emximp -o $lib $output_objdir/$libname.def'
11135      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11136	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11137	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11138	$ECHO EXPORTS >> $output_objdir/$libname.def~
11139	prefix_cmds="$SED"~
11140	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11141	  prefix_cmds="$prefix_cmds -e 1d";
11142	fi~
11143	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11144	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11145	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11146	emximp -o $lib $output_objdir/$libname.def'
11147      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11148      enable_shared_with_static_runtimes=yes
11149      file_list_spec='@'
11150      ;;
11151
11152    osf3*)
11153      if test yes = "$GCC"; then
11154	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11155	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'
11156      else
11157	allow_undefined_flag=' -expect_unresolved \*'
11158	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'
11159      fi
11160      archive_cmds_need_lc='no'
11161      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11162      hardcode_libdir_separator=:
11163      ;;
11164
11165    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11166      if test yes = "$GCC"; then
11167	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11168	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'
11169	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11170      else
11171	allow_undefined_flag=' -expect_unresolved \*'
11172	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'
11173	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~
11174          $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'
11175
11176	# Both c and cxx compiler support -rpath directly
11177	hardcode_libdir_flag_spec='-rpath $libdir'
11178      fi
11179      archive_cmds_need_lc='no'
11180      hardcode_libdir_separator=:
11181      ;;
11182
11183    serenity*)
11184      ;;
11185
11186    solaris*)
11187      no_undefined_flag=' -z defs'
11188      if test yes = "$GCC"; then
11189	wlarc='$wl'
11190	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11191	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11192          $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'
11193      else
11194	case `$CC -V 2>&1` in
11195	*"Compilers 5.0"*)
11196	  wlarc=''
11197	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11198	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11199            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11200	  ;;
11201	*)
11202	  wlarc='$wl'
11203	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11204	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11205            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11206	  ;;
11207	esac
11208      fi
11209      hardcode_libdir_flag_spec='-R$libdir'
11210      hardcode_shlibpath_var=no
11211      case $host_os in
11212      solaris2.[0-5] | solaris2.[0-5].*) ;;
11213      *)
11214	# The compiler driver will combine and reorder linker options,
11215	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11216	# but is careful enough not to reorder.
11217	# Supported since Solaris 2.6 (maybe 2.5.1?)
11218	if test yes = "$GCC"; then
11219	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11220	else
11221	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11222	fi
11223	;;
11224      esac
11225      link_all_deplibs=yes
11226      ;;
11227
11228    sunos4*)
11229      if test sequent = "$host_vendor"; then
11230	# Use $CC to link under sequent, because it throws in some extra .o
11231	# files that make .init and .fini sections work.
11232	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11233      else
11234	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11235      fi
11236      hardcode_libdir_flag_spec='-L$libdir'
11237      hardcode_direct=yes
11238      hardcode_minus_L=yes
11239      hardcode_shlibpath_var=no
11240      ;;
11241
11242    sysv4)
11243      case $host_vendor in
11244	sni)
11245	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11246	  hardcode_direct=yes # is this really true???
11247	;;
11248	siemens)
11249	  ## LD is ld it makes a PLAMLIB
11250	  ## CC just makes a GrossModule.
11251	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11252	  reload_cmds='$CC -r -o $output$reload_objs'
11253	  hardcode_direct=no
11254        ;;
11255	motorola)
11256	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11257	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11258	;;
11259      esac
11260      runpath_var='LD_RUN_PATH'
11261      hardcode_shlibpath_var=no
11262      ;;
11263
11264    sysv4.3*)
11265      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11266      hardcode_shlibpath_var=no
11267      export_dynamic_flag_spec='-Bexport'
11268      ;;
11269
11270    sysv4*MP*)
11271      if test -d /usr/nec; then
11272	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11273	hardcode_shlibpath_var=no
11274	runpath_var=LD_RUN_PATH
11275	hardcode_runpath_var=yes
11276	ld_shlibs=yes
11277      fi
11278      ;;
11279
11280    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11281      no_undefined_flag='$wl-z,text'
11282      archive_cmds_need_lc=no
11283      hardcode_shlibpath_var=no
11284      runpath_var='LD_RUN_PATH'
11285
11286      if test yes = "$GCC"; then
11287	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11288	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11289      else
11290	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11292      fi
11293      ;;
11294
11295    sysv5* | sco3.2v5* | sco5v6*)
11296      # Note: We CANNOT use -z defs as we might desire, because we do not
11297      # link with -lc, and that would cause any symbols used from libc to
11298      # always be unresolved, which means just about no library would
11299      # ever link correctly.  If we're not using GNU ld we use -z text
11300      # though, which does catch some bad symbols but isn't as heavy-handed
11301      # as -z defs.
11302      no_undefined_flag='$wl-z,text'
11303      allow_undefined_flag='$wl-z,nodefs'
11304      archive_cmds_need_lc=no
11305      hardcode_shlibpath_var=no
11306      hardcode_libdir_flag_spec='$wl-R,$libdir'
11307      hardcode_libdir_separator=':'
11308      link_all_deplibs=yes
11309      export_dynamic_flag_spec='$wl-Bexport'
11310      runpath_var='LD_RUN_PATH'
11311
11312      if test yes = "$GCC"; then
11313	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11315      else
11316	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11317	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11318      fi
11319      ;;
11320
11321    uts4*)
11322      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11323      hardcode_libdir_flag_spec='-L$libdir'
11324      hardcode_shlibpath_var=no
11325      ;;
11326
11327    *)
11328      ld_shlibs=no
11329      ;;
11330    esac
11331
11332    if test sni = "$host_vendor"; then
11333      case $host in
11334      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11335	export_dynamic_flag_spec='$wl-Blargedynsym'
11336	;;
11337      esac
11338    fi
11339  fi
11340
11341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11342printf "%s\n" "$ld_shlibs" >&6; }
11343test no = "$ld_shlibs" && can_build_shared=no
11344
11345with_gnu_ld=$with_gnu_ld
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361#
11362# Do we need to explicitly link libc?
11363#
11364case "x$archive_cmds_need_lc" in
11365x|xyes)
11366  # Assume -lc should be added
11367  archive_cmds_need_lc=yes
11368
11369  if test yes,yes = "$GCC,$enable_shared"; then
11370    case $archive_cmds in
11371    *'~'*)
11372      # FIXME: we may have to deal with multi-command sequences.
11373      ;;
11374    '$CC '*)
11375      # Test whether the compiler implicitly links with -lc since on some
11376      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11377      # to ld, don't add -lc before -lgcc.
11378      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11379printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11380if test ${lt_cv_archive_cmds_need_lc+y}
11381then :
11382  printf %s "(cached) " >&6
11383else case e in #(
11384  e) $RM conftest*
11385	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11386
11387	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11388  (eval $ac_compile) 2>&5
11389  ac_status=$?
11390  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11391  test $ac_status = 0; } 2>conftest.err; then
11392	  soname=conftest
11393	  lib=conftest
11394	  libobjs=conftest.$ac_objext
11395	  deplibs=
11396	  wl=$lt_prog_compiler_wl
11397	  pic_flag=$lt_prog_compiler_pic
11398	  compiler_flags=-v
11399	  linker_flags=-v
11400	  verstring=
11401	  output_objdir=.
11402	  libname=conftest
11403	  lt_save_allow_undefined_flag=$allow_undefined_flag
11404	  allow_undefined_flag=
11405	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11406  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11407  ac_status=$?
11408  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11409  test $ac_status = 0; }
11410	  then
11411	    lt_cv_archive_cmds_need_lc=no
11412	  else
11413	    lt_cv_archive_cmds_need_lc=yes
11414	  fi
11415	  allow_undefined_flag=$lt_save_allow_undefined_flag
11416	else
11417	  cat conftest.err 1>&5
11418	fi
11419	$RM conftest*
11420	 ;;
11421esac
11422fi
11423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11424printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11425      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11426      ;;
11427    esac
11428  fi
11429  ;;
11430esac
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11584printf %s "checking dynamic linker characteristics... " >&6; }
11585
11586if test yes = "$GCC"; then
11587  case $host_os in
11588    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11589    *) lt_awk_arg='/^libraries:/' ;;
11590  esac
11591  case $host_os in
11592    mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11593    *) lt_sed_strip_eq='s|=/|/|g' ;;
11594  esac
11595  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11596  case $lt_search_path_spec in
11597  *\;*)
11598    # if the path contains ";" then we assume it to be the separator
11599    # otherwise default to the standard path separator (i.e. ":") - it is
11600    # assumed that no part of a normal pathname contains ";" but that should
11601    # okay in the real world where ";" in dirpaths is itself problematic.
11602    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11603    ;;
11604  *)
11605    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11606    ;;
11607  esac
11608  # Ok, now we have the path, separated by spaces, we can step through it
11609  # and add multilib dir if necessary...
11610  lt_tmp_lt_search_path_spec=
11611  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11612  # ...but if some path component already ends with the multilib dir we assume
11613  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11614  case "$lt_multi_os_dir; $lt_search_path_spec " in
11615  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11616    lt_multi_os_dir=
11617    ;;
11618  esac
11619  for lt_sys_path in $lt_search_path_spec; do
11620    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11621      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11622    elif test -n "$lt_multi_os_dir"; then
11623      test -d "$lt_sys_path" && \
11624	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11625    fi
11626  done
11627  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11628BEGIN {RS = " "; FS = "/|\n";} {
11629  lt_foo = "";
11630  lt_count = 0;
11631  for (lt_i = NF; lt_i > 0; lt_i--) {
11632    if ($lt_i != "" && $lt_i != ".") {
11633      if ($lt_i == "..") {
11634        lt_count++;
11635      } else {
11636        if (lt_count == 0) {
11637          lt_foo = "/" $lt_i lt_foo;
11638        } else {
11639          lt_count--;
11640        }
11641      }
11642    }
11643  }
11644  if (lt_foo != "") { lt_freq[lt_foo]++; }
11645  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11646}'`
11647  # AWK program above erroneously prepends '/' to C:/dos/paths
11648  # for these hosts.
11649  case $host_os in
11650    mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11651      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11652  esac
11653  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11654else
11655  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11656fi
11657library_names_spec=
11658libname_spec='lib$name'
11659soname_spec=
11660shrext_cmds=.so
11661postinstall_cmds=
11662postuninstall_cmds=
11663finish_cmds=
11664finish_eval=
11665shlibpath_var=
11666shlibpath_overrides_runpath=unknown
11667version_type=none
11668dynamic_linker="$host_os ld.so"
11669sys_lib_dlsearch_path_spec="/lib /usr/lib"
11670need_lib_prefix=unknown
11671hardcode_into_libs=no
11672
11673# when you set need_version to no, make sure it does not cause -set_version
11674# flags to be left without arguments
11675need_version=unknown
11676
11677
11678
11679case $host_os in
11680aix3*)
11681  version_type=linux # correct to gnu/linux during the next big refactor
11682  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11683  shlibpath_var=LIBPATH
11684
11685  # AIX 3 has no versioning support, so we append a major version to the name.
11686  soname_spec='$libname$release$shared_ext$major'
11687  ;;
11688
11689aix[4-9]*)
11690  version_type=linux # correct to gnu/linux during the next big refactor
11691  need_lib_prefix=no
11692  need_version=no
11693  hardcode_into_libs=yes
11694  if test ia64 = "$host_cpu"; then
11695    # AIX 5 supports IA64
11696    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11697    shlibpath_var=LD_LIBRARY_PATH
11698  else
11699    # With GCC up to 2.95.x, collect2 would create an import file
11700    # for dependence libraries.  The import file would start with
11701    # the line '#! .'.  This would cause the generated library to
11702    # depend on '.', always an invalid library.  This was fixed in
11703    # development snapshots of GCC prior to 3.0.
11704    case $host_os in
11705      aix4 | aix4.[01] | aix4.[01].*)
11706      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11707	   echo ' yes '
11708	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11709	:
11710      else
11711	can_build_shared=no
11712      fi
11713      ;;
11714    esac
11715    # Using Import Files as archive members, it is possible to support
11716    # filename-based versioning of shared library archives on AIX. While
11717    # this would work for both with and without runtime linking, it will
11718    # prevent static linking of such archives. So we do filename-based
11719    # shared library versioning with .so extension only, which is used
11720    # when both runtime linking and shared linking is enabled.
11721    # Unfortunately, runtime linking may impact performance, so we do
11722    # not want this to be the default eventually. Also, we use the
11723    # versioned .so libs for executables only if there is the -brtl
11724    # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11725    # To allow for filename-based versioning support, we need to create
11726    # libNAME.so.V as an archive file, containing:
11727    # *) an Import File, referring to the versioned filename of the
11728    #    archive as well as the shared archive member, telling the
11729    #    bitwidth (32 or 64) of that shared object, and providing the
11730    #    list of exported symbols of that shared object, eventually
11731    #    decorated with the 'weak' keyword
11732    # *) the shared object with the F_LOADONLY flag set, to really avoid
11733    #    it being seen by the linker.
11734    # At run time we better use the real file rather than another symlink,
11735    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11736
11737    case $with_aix_soname,$aix_use_runtimelinking in
11738    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11739    # soname into executable. Probably we can add versioning support to
11740    # collect2, so additional links can be useful in future.
11741    aix,yes) # traditional libtool
11742      dynamic_linker='AIX unversionable lib.so'
11743      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11744      # instead of lib<name>.a to let people know that these are not
11745      # typical AIX shared libraries.
11746      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747      ;;
11748    aix,no) # traditional AIX only
11749      dynamic_linker='AIX lib.a(lib.so.V)'
11750      # We preserve .a as extension for shared libraries through AIX4.2
11751      # and later when we are not doing run time linking.
11752      library_names_spec='$libname$release.a $libname.a'
11753      soname_spec='$libname$release$shared_ext$major'
11754      ;;
11755    svr4,*) # full svr4 only
11756      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11757      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11758      # We do not specify a path in Import Files, so LIBPATH fires.
11759      shlibpath_overrides_runpath=yes
11760      ;;
11761    *,yes) # both, prefer svr4
11762      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11763      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11764      # unpreferred sharedlib libNAME.a needs extra handling
11765      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"'
11766      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"'
11767      # We do not specify a path in Import Files, so LIBPATH fires.
11768      shlibpath_overrides_runpath=yes
11769      ;;
11770    *,no) # both, prefer aix
11771      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11772      library_names_spec='$libname$release.a $libname.a'
11773      soname_spec='$libname$release$shared_ext$major'
11774      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11775      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)'
11776      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"'
11777      ;;
11778    esac
11779    shlibpath_var=LIBPATH
11780  fi
11781  ;;
11782
11783amigaos*)
11784  case $host_cpu in
11785  powerpc)
11786    # Since July 2007 AmigaOS4 officially supports .so libraries.
11787    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11788    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11789    ;;
11790  m68k)
11791    library_names_spec='$libname.ixlibrary $libname.a'
11792    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11793    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'
11794    ;;
11795  esac
11796  ;;
11797
11798beos*)
11799  library_names_spec='$libname$shared_ext'
11800  dynamic_linker="$host_os ld.so"
11801  shlibpath_var=LIBRARY_PATH
11802  ;;
11803
11804bsdi[45]*)
11805  version_type=linux # correct to gnu/linux during the next big refactor
11806  need_version=no
11807  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11808  soname_spec='$libname$release$shared_ext$major'
11809  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11810  shlibpath_var=LD_LIBRARY_PATH
11811  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11812  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11813  # the default ld.so.conf also contains /usr/contrib/lib and
11814  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11815  # libtool to hard-code these into programs
11816  ;;
11817
11818cygwin* | mingw* | windows* | pw32* | cegcc*)
11819  version_type=windows
11820  shrext_cmds=.dll
11821  need_version=no
11822  need_lib_prefix=no
11823
11824  case $GCC,$cc_basename in
11825  yes,*)
11826    # gcc
11827    library_names_spec='$libname.dll.a'
11828    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11829    # If user builds GCC with multilib enabled,
11830    # it should just install on $(libdir)
11831    # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11832    if test xyes = x"$multilib"; then
11833      postinstall_cmds='base_file=`basename \$file`~
11834        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11835        dldir=$destdir/`dirname \$dlpath`~
11836        $install_prog $dir/$dlname $destdir/$dlname~
11837        chmod a+x $destdir/$dlname~
11838        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11839          eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11840        fi'
11841    else
11842      postinstall_cmds='base_file=`basename \$file`~
11843        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11844        dldir=$destdir/`dirname \$dlpath`~
11845        test -d \$dldir || mkdir -p \$dldir~
11846        $install_prog $dir/$dlname \$dldir/$dlname~
11847        chmod a+x \$dldir/$dlname~
11848        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11849          eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11850        fi'
11851    fi
11852    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11853      dlpath=$dir/\$dldll~
11854       $RM \$dlpath'
11855    shlibpath_overrides_runpath=yes
11856
11857    case $host_os in
11858    cygwin*)
11859      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11860      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11861
11862      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11863      ;;
11864    mingw* | windows* | cegcc*)
11865      # MinGW DLLs use traditional 'lib' prefix
11866      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11867      ;;
11868    pw32*)
11869      # pw32 DLLs use 'pw' prefix rather than 'lib'
11870      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11871      ;;
11872    esac
11873    dynamic_linker='Win32 ld.exe'
11874    ;;
11875
11876  *,cl* | *,icl*)
11877    # Native MSVC or ICC
11878    libname_spec='$name'
11879    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11880    library_names_spec='$libname.dll.lib'
11881
11882    case $build_os in
11883    mingw* | windows*)
11884      sys_lib_search_path_spec=
11885      lt_save_ifs=$IFS
11886      IFS=';'
11887      for lt_path in $LIB
11888      do
11889        IFS=$lt_save_ifs
11890        # Let DOS variable expansion print the short 8.3 style file name.
11891        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11892        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11893      done
11894      IFS=$lt_save_ifs
11895      # Convert to MSYS style.
11896      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11897      ;;
11898    cygwin*)
11899      # Convert to unix form, then to dos form, then back to unix form
11900      # but this time dos style (no spaces!) so that the unix form looks
11901      # like /cygdrive/c/PROGRA~1:/cygdr...
11902      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11903      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11904      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11905      ;;
11906    *)
11907      sys_lib_search_path_spec=$LIB
11908      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11909        # It is most probably a Windows format PATH.
11910        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11911      else
11912        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11913      fi
11914      # FIXME: find the short name or the path components, as spaces are
11915      # common. (e.g. "Program Files" -> "PROGRA~1")
11916      ;;
11917    esac
11918
11919    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11920    postinstall_cmds='base_file=`basename \$file`~
11921      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11922      dldir=$destdir/`dirname \$dlpath`~
11923      test -d \$dldir || mkdir -p \$dldir~
11924      $install_prog $dir/$dlname \$dldir/$dlname'
11925    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11926      dlpath=$dir/\$dldll~
11927       $RM \$dlpath'
11928    shlibpath_overrides_runpath=yes
11929    dynamic_linker='Win32 link.exe'
11930    ;;
11931
11932  *)
11933    # Assume MSVC and ICC wrapper
11934    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11935    dynamic_linker='Win32 ld.exe'
11936    ;;
11937  esac
11938  # FIXME: first we should search . and the directory the executable is in
11939  shlibpath_var=PATH
11940  ;;
11941
11942darwin* | rhapsody*)
11943  dynamic_linker="$host_os dyld"
11944  version_type=darwin
11945  need_lib_prefix=no
11946  need_version=no
11947  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11948  soname_spec='$libname$release$major$shared_ext'
11949  shlibpath_overrides_runpath=yes
11950  shlibpath_var=DYLD_LIBRARY_PATH
11951  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11952
11953  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11954  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11955  ;;
11956
11957dgux*)
11958  version_type=linux # correct to gnu/linux during the next big refactor
11959  need_lib_prefix=no
11960  need_version=no
11961  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11962  soname_spec='$libname$release$shared_ext$major'
11963  shlibpath_var=LD_LIBRARY_PATH
11964  ;;
11965
11966freebsd* | dragonfly* | midnightbsd*)
11967  # DragonFly does not have aout.  When/if they implement a new
11968  # versioning mechanism, adjust this.
11969  if test -x /usr/bin/objformat; then
11970    objformat=`/usr/bin/objformat`
11971  else
11972    case $host_os in
11973    freebsd[23].*) objformat=aout ;;
11974    *) objformat=elf ;;
11975    esac
11976  fi
11977  version_type=freebsd-$objformat
11978  case $version_type in
11979    freebsd-elf*)
11980      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981      soname_spec='$libname$release$shared_ext$major'
11982      need_version=no
11983      need_lib_prefix=no
11984      ;;
11985    freebsd-*)
11986      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11987      need_version=yes
11988      ;;
11989  esac
11990  case $host_cpu in
11991    powerpc64)
11992      # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11993      # binaries.  See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995/* end confdefs.h.  */
11996int test_pointer_size[sizeof (void *) - 5];
11997
11998_ACEOF
11999if ac_fn_c_try_compile "$LINENO"
12000then :
12001  shlibpath_var=LD_LIBRARY_PATH
12002else case e in #(
12003  e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12004esac
12005fi
12006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12007      ;;
12008    *)
12009      shlibpath_var=LD_LIBRARY_PATH
12010      ;;
12011  esac
12012  case $host_os in
12013  freebsd2.*)
12014    shlibpath_overrides_runpath=yes
12015    ;;
12016  freebsd3.[01]* | freebsdelf3.[01]*)
12017    shlibpath_overrides_runpath=yes
12018    hardcode_into_libs=yes
12019    ;;
12020  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12021  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12022    shlibpath_overrides_runpath=no
12023    hardcode_into_libs=yes
12024    ;;
12025  *) # from 4.6 on, and DragonFly
12026    shlibpath_overrides_runpath=yes
12027    hardcode_into_libs=yes
12028    ;;
12029  esac
12030  ;;
12031
12032haiku*)
12033  version_type=linux # correct to gnu/linux during the next big refactor
12034  need_lib_prefix=no
12035  need_version=no
12036  dynamic_linker="$host_os runtime_loader"
12037  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12038  soname_spec='$libname$release$shared_ext$major'
12039  shlibpath_var=LIBRARY_PATH
12040  shlibpath_overrides_runpath=no
12041  sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12042  sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12043  hardcode_into_libs=no
12044  ;;
12045
12046hpux9* | hpux10* | hpux11*)
12047  # Give a soname corresponding to the major version so that dld.sl refuses to
12048  # link against other versions.
12049  version_type=sunos
12050  need_lib_prefix=no
12051  need_version=no
12052  case $host_cpu in
12053  ia64*)
12054    shrext_cmds='.so'
12055    hardcode_into_libs=yes
12056    dynamic_linker="$host_os dld.so"
12057    shlibpath_var=LD_LIBRARY_PATH
12058    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12059    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060    soname_spec='$libname$release$shared_ext$major'
12061    if test 32 = "$HPUX_IA64_MODE"; then
12062      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12063      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12064    else
12065      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12066      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12067    fi
12068    ;;
12069  hppa*64*)
12070    shrext_cmds='.sl'
12071    hardcode_into_libs=yes
12072    dynamic_linker="$host_os dld.sl"
12073    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12074    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12075    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12076    soname_spec='$libname$release$shared_ext$major'
12077    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12078    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12079    ;;
12080  *)
12081    shrext_cmds='.sl'
12082    dynamic_linker="$host_os dld.sl"
12083    shlibpath_var=SHLIB_PATH
12084    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12085    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12086    soname_spec='$libname$release$shared_ext$major'
12087    ;;
12088  esac
12089  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12090  postinstall_cmds='chmod 555 $lib'
12091  # or fails outright, so override atomically:
12092  install_override_mode=555
12093  ;;
12094
12095interix[3-9]*)
12096  version_type=linux # correct to gnu/linux during the next big refactor
12097  need_lib_prefix=no
12098  need_version=no
12099  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12100  soname_spec='$libname$release$shared_ext$major'
12101  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12102  shlibpath_var=LD_LIBRARY_PATH
12103  shlibpath_overrides_runpath=no
12104  hardcode_into_libs=yes
12105  ;;
12106
12107irix5* | irix6* | nonstopux*)
12108  case $host_os in
12109    nonstopux*) version_type=nonstopux ;;
12110    *)
12111	if test yes = "$lt_cv_prog_gnu_ld"; then
12112		version_type=linux # correct to gnu/linux during the next big refactor
12113	else
12114		version_type=irix
12115	fi ;;
12116  esac
12117  need_lib_prefix=no
12118  need_version=no
12119  soname_spec='$libname$release$shared_ext$major'
12120  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12121  case $host_os in
12122  irix5* | nonstopux*)
12123    libsuff= shlibsuff=
12124    ;;
12125  *)
12126    case $LD in # libtool.m4 will add one of these switches to LD
12127    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12128      libsuff= shlibsuff= libmagic=32-bit;;
12129    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12130      libsuff=32 shlibsuff=N32 libmagic=N32;;
12131    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12132      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12133    *) libsuff= shlibsuff= libmagic=never-match;;
12134    esac
12135    ;;
12136  esac
12137  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12138  shlibpath_overrides_runpath=no
12139  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12140  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12141  hardcode_into_libs=yes
12142  ;;
12143
12144# No shared lib support for Linux oldld, aout, or coff.
12145linux*oldld* | linux*aout* | linux*coff*)
12146  dynamic_linker=no
12147  ;;
12148
12149linux*android*)
12150  version_type=none # Android doesn't support versioned libraries.
12151  need_lib_prefix=no
12152  need_version=no
12153  library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12154  soname_spec='$libname$release$shared_ext'
12155  finish_cmds=
12156  shlibpath_var=LD_LIBRARY_PATH
12157  shlibpath_overrides_runpath=yes
12158
12159  # This implies no fast_install, which is unacceptable.
12160  # Some rework will be needed to allow for fast_install
12161  # before this can be enabled.
12162  hardcode_into_libs=yes
12163
12164  dynamic_linker='Android linker'
12165  # -rpath works at least for libraries that are not overridden by
12166  # libraries installed in system locations.
12167  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12168  ;;
12169
12170# This must be glibc/ELF.
12171linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12172  version_type=linux # correct to gnu/linux during the next big refactor
12173  need_lib_prefix=no
12174  need_version=no
12175  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12176  soname_spec='$libname$release$shared_ext$major'
12177  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12178  shlibpath_var=LD_LIBRARY_PATH
12179  shlibpath_overrides_runpath=no
12180
12181  # Some binutils ld are patched to set DT_RUNPATH
12182  if test ${lt_cv_shlibpath_overrides_runpath+y}
12183then :
12184  printf %s "(cached) " >&6
12185else case e in #(
12186  e) lt_cv_shlibpath_overrides_runpath=no
12187    save_LDFLAGS=$LDFLAGS
12188    save_libdir=$libdir
12189    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12190	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192/* end confdefs.h.  */
12193
12194int
12195main (void)
12196{
12197
12198  ;
12199  return 0;
12200}
12201_ACEOF
12202if ac_fn_c_try_link "$LINENO"
12203then :
12204  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12205then :
12206  lt_cv_shlibpath_overrides_runpath=yes
12207fi
12208fi
12209rm -f core conftest.err conftest.$ac_objext conftest.beam \
12210    conftest$ac_exeext conftest.$ac_ext
12211    LDFLAGS=$save_LDFLAGS
12212    libdir=$save_libdir
12213     ;;
12214esac
12215fi
12216
12217  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12218
12219  # This implies no fast_install, which is unacceptable.
12220  # Some rework will be needed to allow for fast_install
12221  # before this can be enabled.
12222  hardcode_into_libs=yes
12223
12224  # Ideally, we could use ldconfig to report *all* directories which are
12225  # searched for libraries, however this is still not possible.  Aside from not
12226  # being certain /sbin/ldconfig is available, command
12227  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12228  # even though it is searched at run-time.  Try to do the best guess by
12229  # appending ld.so.conf contents (and includes) to the search path.
12230  if test -f /etc/ld.so.conf; then
12231    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' ' '`
12232    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12233  fi
12234
12235  # We used to test for /lib/ld.so.1 and disable shared libraries on
12236  # powerpc, because MkLinux only supported shared libraries with the
12237  # GNU dynamic linker.  Since this was broken with cross compilers,
12238  # most powerpc-linux boxes support dynamic linking these days and
12239  # people can always --disable-shared, the test was removed, and we
12240  # assume the GNU/Linux dynamic linker is in use.
12241  dynamic_linker='GNU/Linux ld.so'
12242  ;;
12243
12244netbsdelf*-gnu)
12245  version_type=linux
12246  need_lib_prefix=no
12247  need_version=no
12248  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12249  soname_spec='$libname$release$shared_ext$major'
12250  shlibpath_var=LD_LIBRARY_PATH
12251  shlibpath_overrides_runpath=no
12252  hardcode_into_libs=yes
12253  dynamic_linker='NetBSD ld.elf_so'
12254  ;;
12255
12256netbsd*)
12257  version_type=sunos
12258  need_lib_prefix=no
12259  need_version=no
12260  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12261    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12262    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12263    dynamic_linker='NetBSD (a.out) ld.so'
12264  else
12265    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12266    soname_spec='$libname$release$shared_ext$major'
12267    dynamic_linker='NetBSD ld.elf_so'
12268  fi
12269  shlibpath_var=LD_LIBRARY_PATH
12270  shlibpath_overrides_runpath=yes
12271  hardcode_into_libs=yes
12272  ;;
12273
12274*-mlibc)
12275  version_type=linux # correct to gnu/linux during the next big refactor
12276  need_lib_prefix=no
12277  need_version=no
12278  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12279  soname_spec='$libname$release$shared_ext$major'
12280  dynamic_linker='mlibc ld.so'
12281  shlibpath_var=LD_LIBRARY_PATH
12282  shlibpath_overrides_runpath=no
12283  hardcode_into_libs=yes
12284  ;;
12285
12286newsos6)
12287  version_type=linux # correct to gnu/linux during the next big refactor
12288  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12289  shlibpath_var=LD_LIBRARY_PATH
12290  shlibpath_overrides_runpath=yes
12291  ;;
12292
12293*nto* | *qnx*)
12294  version_type=qnx
12295  need_lib_prefix=no
12296  need_version=no
12297  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12298  soname_spec='$libname$release$shared_ext$major'
12299  shlibpath_var=LD_LIBRARY_PATH
12300  shlibpath_overrides_runpath=no
12301  hardcode_into_libs=yes
12302  dynamic_linker='ldqnx.so'
12303  ;;
12304
12305openbsd*)
12306  version_type=sunos
12307  sys_lib_dlsearch_path_spec=/usr/lib
12308  need_lib_prefix=no
12309  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12310    need_version=no
12311  else
12312    need_version=yes
12313  fi
12314  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12315  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12316  shlibpath_var=LD_LIBRARY_PATH
12317  shlibpath_overrides_runpath=yes
12318  ;;
12319
12320os2*)
12321  libname_spec='$name'
12322  version_type=windows
12323  shrext_cmds=.dll
12324  need_version=no
12325  need_lib_prefix=no
12326  # OS/2 can only load a DLL with a base name of 8 characters or less.
12327  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12328    v=$($ECHO $release$versuffix | tr -d .-);
12329    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12330    $ECHO $n$v`$shared_ext'
12331  library_names_spec='${libname}_dll.$libext'
12332  dynamic_linker='OS/2 ld.exe'
12333  shlibpath_var=BEGINLIBPATH
12334  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12335  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12336  postinstall_cmds='base_file=`basename \$file`~
12337    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12338    dldir=$destdir/`dirname \$dlpath`~
12339    test -d \$dldir || mkdir -p \$dldir~
12340    $install_prog $dir/$dlname \$dldir/$dlname~
12341    chmod a+x \$dldir/$dlname~
12342    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12343      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12344    fi'
12345  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12346    dlpath=$dir/\$dldll~
12347    $RM \$dlpath'
12348  ;;
12349
12350osf3* | osf4* | osf5*)
12351  version_type=osf
12352  need_lib_prefix=no
12353  need_version=no
12354  soname_spec='$libname$release$shared_ext$major'
12355  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12356  shlibpath_var=LD_LIBRARY_PATH
12357  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12358  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12359  ;;
12360
12361rdos*)
12362  dynamic_linker=no
12363  ;;
12364
12365serenity*)
12366  version_type=linux # correct to gnu/linux during the next big refactor
12367  need_lib_prefix=no
12368  need_version=no
12369  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12370  soname_spec='$libname$release$shared_ext$major'
12371  shlibpath_var=LD_LIBRARY_PATH
12372  shlibpath_overrides_runpath=no
12373  dynamic_linker='SerenityOS LibELF'
12374  ;;
12375
12376solaris*)
12377  version_type=linux # correct to gnu/linux during the next big refactor
12378  need_lib_prefix=no
12379  need_version=no
12380  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12381  soname_spec='$libname$release$shared_ext$major'
12382  shlibpath_var=LD_LIBRARY_PATH
12383  shlibpath_overrides_runpath=yes
12384  hardcode_into_libs=yes
12385  # ldd complains unless libraries are executable
12386  postinstall_cmds='chmod +x $lib'
12387  ;;
12388
12389sunos4*)
12390  version_type=sunos
12391  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12392  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12393  shlibpath_var=LD_LIBRARY_PATH
12394  shlibpath_overrides_runpath=yes
12395  if test yes = "$with_gnu_ld"; then
12396    need_lib_prefix=no
12397  fi
12398  need_version=yes
12399  ;;
12400
12401sysv4 | sysv4.3*)
12402  version_type=linux # correct to gnu/linux during the next big refactor
12403  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12404  soname_spec='$libname$release$shared_ext$major'
12405  shlibpath_var=LD_LIBRARY_PATH
12406  case $host_vendor in
12407    sni)
12408      shlibpath_overrides_runpath=no
12409      need_lib_prefix=no
12410      runpath_var=LD_RUN_PATH
12411      ;;
12412    siemens)
12413      need_lib_prefix=no
12414      ;;
12415    motorola)
12416      need_lib_prefix=no
12417      need_version=no
12418      shlibpath_overrides_runpath=no
12419      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12420      ;;
12421  esac
12422  ;;
12423
12424sysv4*MP*)
12425  if test -d /usr/nec; then
12426    version_type=linux # correct to gnu/linux during the next big refactor
12427    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12428    soname_spec='$libname$shared_ext.$major'
12429    shlibpath_var=LD_LIBRARY_PATH
12430  fi
12431  ;;
12432
12433sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12434  version_type=sco
12435  need_lib_prefix=no
12436  need_version=no
12437  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12438  soname_spec='$libname$release$shared_ext$major'
12439  shlibpath_var=LD_LIBRARY_PATH
12440  shlibpath_overrides_runpath=yes
12441  hardcode_into_libs=yes
12442  if test yes = "$with_gnu_ld"; then
12443    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12444  else
12445    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12446    case $host_os in
12447      sco3.2v5*)
12448        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12449	;;
12450    esac
12451  fi
12452  sys_lib_dlsearch_path_spec='/usr/lib'
12453  ;;
12454
12455tpf*)
12456  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12457  version_type=linux # correct to gnu/linux during the next big refactor
12458  need_lib_prefix=no
12459  need_version=no
12460  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12461  shlibpath_var=LD_LIBRARY_PATH
12462  shlibpath_overrides_runpath=no
12463  hardcode_into_libs=yes
12464  ;;
12465
12466uts4*)
12467  version_type=linux # correct to gnu/linux during the next big refactor
12468  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12469  soname_spec='$libname$release$shared_ext$major'
12470  shlibpath_var=LD_LIBRARY_PATH
12471  ;;
12472
12473emscripten*)
12474  version_type=none
12475  need_lib_prefix=no
12476  need_version=no
12477  library_names_spec='$libname$release$shared_ext'
12478  soname_spec='$libname$release$shared_ext'
12479  finish_cmds=
12480  dynamic_linker="Emscripten linker"
12481  lt_prog_compiler_wl=
12482lt_prog_compiler_pic=
12483lt_prog_compiler_static=
12484
12485
12486  if test yes = "$GCC"; then
12487    lt_prog_compiler_wl='-Wl,'
12488    lt_prog_compiler_static='-static'
12489
12490    case $host_os in
12491      aix*)
12492      # All AIX code is PIC.
12493      if test ia64 = "$host_cpu"; then
12494	# AIX 5 now supports IA64 processor
12495	lt_prog_compiler_static='-Bstatic'
12496      fi
12497      lt_prog_compiler_pic='-fPIC'
12498      ;;
12499
12500    amigaos*)
12501      case $host_cpu in
12502      powerpc)
12503            # see comment about AmigaOS4 .so support
12504            lt_prog_compiler_pic='-fPIC'
12505        ;;
12506      m68k)
12507            # FIXME: we need at least 68020 code to build shared libraries, but
12508            # adding the '-m68020' flag to GCC prevents building anything better,
12509            # like '-m68040'.
12510            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12511        ;;
12512      esac
12513      ;;
12514
12515    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12516      # PIC is the default for these OSes.
12517      ;;
12518
12519    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12520      # This hack is so that the source file can tell whether it is being
12521      # built for inclusion in a dll (and should export symbols for example).
12522      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12523      # (--disable-auto-import) libraries
12524      lt_prog_compiler_pic='-DDLL_EXPORT'
12525      case $host_os in
12526      os2*)
12527	lt_prog_compiler_static='$wl-static'
12528	;;
12529      esac
12530      ;;
12531
12532    darwin* | rhapsody*)
12533      # PIC is the default on this platform
12534      # Common symbols not allowed in MH_DYLIB files
12535      lt_prog_compiler_pic='-fno-common'
12536      ;;
12537
12538    haiku*)
12539      # PIC is the default for Haiku.
12540      # The "-static" flag exists, but is broken.
12541      lt_prog_compiler_static=
12542      ;;
12543
12544    hpux*)
12545      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12546      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12547      # sets the default TLS model and affects inlining.
12548      case $host_cpu in
12549      hppa*64*)
12550	# +Z the default
12551	;;
12552      *)
12553	lt_prog_compiler_pic='-fPIC'
12554	;;
12555      esac
12556      ;;
12557
12558    interix[3-9]*)
12559      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12560      # Instead, we relocate shared libraries at runtime.
12561      ;;
12562
12563    msdosdjgpp*)
12564      # Just because we use GCC doesn't mean we suddenly get shared libraries
12565      # on systems that don't support them.
12566      lt_prog_compiler_can_build_shared=no
12567      enable_shared=no
12568      ;;
12569
12570    *nto* | *qnx*)
12571      # QNX uses GNU C++, but need to define -shared option too, otherwise
12572      # it will coredump.
12573      lt_prog_compiler_pic='-fPIC -shared'
12574      ;;
12575
12576    sysv4*MP*)
12577      if test -d /usr/nec; then
12578	lt_prog_compiler_pic=-Kconform_pic
12579      fi
12580      ;;
12581
12582    *)
12583      lt_prog_compiler_pic='-fPIC'
12584      ;;
12585    esac
12586
12587    case $cc_basename in
12588    nvcc*) # Cuda Compiler Driver 2.2
12589      lt_prog_compiler_wl='-Xlinker '
12590      if test -n "$lt_prog_compiler_pic"; then
12591        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12592      fi
12593      ;;
12594    esac
12595  else
12596    # PORTME Check for flag to pass linker flags through the system compiler.
12597    case $host_os in
12598    aix*)
12599      lt_prog_compiler_wl='-Wl,'
12600      if test ia64 = "$host_cpu"; then
12601	# AIX 5 now supports IA64 processor
12602	lt_prog_compiler_static='-Bstatic'
12603      else
12604	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12605      fi
12606      ;;
12607
12608    darwin* | rhapsody*)
12609      # PIC is the default on this platform
12610      # Common symbols not allowed in MH_DYLIB files
12611      lt_prog_compiler_pic='-fno-common'
12612      case $cc_basename in
12613      nagfor*)
12614        # NAG Fortran compiler
12615        lt_prog_compiler_wl='-Wl,-Wl,,'
12616        lt_prog_compiler_pic='-PIC'
12617        lt_prog_compiler_static='-Bstatic'
12618        ;;
12619      esac
12620      ;;
12621
12622    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12623      # This hack is so that the source file can tell whether it is being
12624      # built for inclusion in a dll (and should export symbols for example).
12625      lt_prog_compiler_pic='-DDLL_EXPORT'
12626      case $host_os in
12627      os2*)
12628	lt_prog_compiler_static='$wl-static'
12629	;;
12630      esac
12631      ;;
12632
12633    hpux9* | hpux10* | hpux11*)
12634      lt_prog_compiler_wl='-Wl,'
12635      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12636      # not for PA HP-UX.
12637      case $host_cpu in
12638      hppa*64*|ia64*)
12639	# +Z the default
12640	;;
12641      *)
12642	lt_prog_compiler_pic='+Z'
12643	;;
12644      esac
12645      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12646      lt_prog_compiler_static='$wl-a ${wl}archive'
12647      ;;
12648
12649    irix5* | irix6* | nonstopux*)
12650      lt_prog_compiler_wl='-Wl,'
12651      # PIC (with -KPIC) is the default.
12652      lt_prog_compiler_static='-non_shared'
12653      ;;
12654
12655    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12656      case $cc_basename in
12657      # old Intel for x86_64, which still supported -KPIC.
12658      ecc*)
12659	lt_prog_compiler_wl='-Wl,'
12660	lt_prog_compiler_pic='-KPIC'
12661	lt_prog_compiler_static='-static'
12662        ;;
12663      *flang* | ftn | f18* | f95*)
12664        # Flang compiler.
12665	lt_prog_compiler_wl='-Wl,'
12666	lt_prog_compiler_pic='-fPIC'
12667	lt_prog_compiler_static='-static'
12668        ;;
12669      # icc used to be incompatible with GCC.
12670      # ICC 10 doesn't accept -KPIC any more.
12671      icc* | ifort*)
12672	lt_prog_compiler_wl='-Wl,'
12673	lt_prog_compiler_pic='-fPIC'
12674	lt_prog_compiler_static='-static'
12675        ;;
12676      # Lahey Fortran 8.1.
12677      lf95*)
12678	lt_prog_compiler_wl='-Wl,'
12679	lt_prog_compiler_pic='--shared'
12680	lt_prog_compiler_static='--static'
12681	;;
12682      nagfor*)
12683	# NAG Fortran compiler
12684	lt_prog_compiler_wl='-Wl,-Wl,,'
12685	lt_prog_compiler_pic='-PIC'
12686	lt_prog_compiler_static='-Bstatic'
12687	;;
12688      tcc*)
12689	# Fabrice Bellard et al's Tiny C Compiler
12690	lt_prog_compiler_wl='-Wl,'
12691	lt_prog_compiler_pic='-fPIC'
12692	lt_prog_compiler_static='-static'
12693	;;
12694      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12695        # Portland Group compilers (*not* the Pentium gcc compiler,
12696	# which looks to be a dead project)
12697	lt_prog_compiler_wl='-Wl,'
12698	lt_prog_compiler_pic='-fpic'
12699	lt_prog_compiler_static='-Bstatic'
12700        ;;
12701      ccc*)
12702        lt_prog_compiler_wl='-Wl,'
12703        # All Alpha code is PIC.
12704        lt_prog_compiler_static='-non_shared'
12705        ;;
12706      xl* | bgxl* | bgf* | mpixl*)
12707	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12708	lt_prog_compiler_wl='-Wl,'
12709	lt_prog_compiler_pic='-qpic'
12710	lt_prog_compiler_static='-qstaticlink'
12711	;;
12712      *)
12713	case `$CC -V 2>&1 | $SED 5q` in
12714	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12715	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12716	  lt_prog_compiler_pic='-KPIC'
12717	  lt_prog_compiler_static='-Bstatic'
12718	  lt_prog_compiler_wl=''
12719	  ;;
12720	*Sun\ F* | *Sun*Fortran*)
12721	  lt_prog_compiler_pic='-KPIC'
12722	  lt_prog_compiler_static='-Bstatic'
12723	  lt_prog_compiler_wl='-Qoption ld '
12724	  ;;
12725	*Sun\ C*)
12726	  # Sun C 5.9
12727	  lt_prog_compiler_pic='-KPIC'
12728	  lt_prog_compiler_static='-Bstatic'
12729	  lt_prog_compiler_wl='-Wl,'
12730	  ;;
12731        *Intel*\ [CF]*Compiler*)
12732	  lt_prog_compiler_wl='-Wl,'
12733	  lt_prog_compiler_pic='-fPIC'
12734	  lt_prog_compiler_static='-static'
12735	  ;;
12736	*Portland\ Group*)
12737	  lt_prog_compiler_wl='-Wl,'
12738	  lt_prog_compiler_pic='-fpic'
12739	  lt_prog_compiler_static='-Bstatic'
12740	  ;;
12741	esac
12742	;;
12743      esac
12744      ;;
12745
12746    newsos6)
12747      lt_prog_compiler_pic='-KPIC'
12748      lt_prog_compiler_static='-Bstatic'
12749      ;;
12750
12751    *-mlibc)
12752      lt_prog_compiler_wl='-Wl,'
12753      lt_prog_compiler_pic='-fPIC'
12754      lt_prog_compiler_static='-static'
12755      ;;
12756
12757    *nto* | *qnx*)
12758      # QNX uses GNU C++, but need to define -shared option too, otherwise
12759      # it will coredump.
12760      lt_prog_compiler_pic='-fPIC -shared'
12761      ;;
12762
12763    osf3* | osf4* | osf5*)
12764      lt_prog_compiler_wl='-Wl,'
12765      # All OSF/1 code is PIC.
12766      lt_prog_compiler_static='-non_shared'
12767      ;;
12768
12769    rdos*)
12770      lt_prog_compiler_static='-non_shared'
12771      ;;
12772
12773    serenity*)
12774      ;;
12775
12776    solaris*)
12777      lt_prog_compiler_pic='-KPIC'
12778      lt_prog_compiler_static='-Bstatic'
12779      case $cc_basename in
12780      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12781	lt_prog_compiler_wl='-Qoption ld ';;
12782      *)
12783	lt_prog_compiler_wl='-Wl,';;
12784      esac
12785      ;;
12786
12787    sunos4*)
12788      lt_prog_compiler_wl='-Qoption ld '
12789      lt_prog_compiler_pic='-PIC'
12790      lt_prog_compiler_static='-Bstatic'
12791      ;;
12792
12793    sysv4 | sysv4.2uw2* | sysv4.3*)
12794      lt_prog_compiler_wl='-Wl,'
12795      lt_prog_compiler_pic='-KPIC'
12796      lt_prog_compiler_static='-Bstatic'
12797      ;;
12798
12799    sysv4*MP*)
12800      if test -d /usr/nec; then
12801	lt_prog_compiler_pic='-Kconform_pic'
12802	lt_prog_compiler_static='-Bstatic'
12803      fi
12804      ;;
12805
12806    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12807      lt_prog_compiler_wl='-Wl,'
12808      lt_prog_compiler_pic='-KPIC'
12809      lt_prog_compiler_static='-Bstatic'
12810      ;;
12811
12812    unicos*)
12813      lt_prog_compiler_wl='-Wl,'
12814      lt_prog_compiler_can_build_shared=no
12815      ;;
12816
12817    uts4*)
12818      lt_prog_compiler_pic='-pic'
12819      lt_prog_compiler_static='-Bstatic'
12820      ;;
12821
12822    *)
12823      lt_prog_compiler_can_build_shared=no
12824      ;;
12825    esac
12826  fi
12827
12828case $host_os in
12829  # For platforms that do not support PIC, -DPIC is meaningless:
12830  *djgpp*)
12831    lt_prog_compiler_pic=
12832    ;;
12833  *)
12834    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12835    ;;
12836esac
12837
12838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12839printf %s "checking for $compiler option to produce PIC... " >&6; }
12840if test ${lt_cv_prog_compiler_pic+y}
12841then :
12842  printf %s "(cached) " >&6
12843else case e in #(
12844  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12845esac
12846fi
12847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12848printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12849lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12850
12851#
12852# Check to make sure the PIC flag actually works.
12853#
12854if test -n "$lt_prog_compiler_pic"; then
12855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12856printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12857if test ${lt_cv_prog_compiler_pic_works+y}
12858then :
12859  printf %s "(cached) " >&6
12860else case e in #(
12861  e) lt_cv_prog_compiler_pic_works=no
12862   ac_outfile=conftest.$ac_objext
12863   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12864   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12865   # Insert the option either (1) after the last *FLAGS variable, or
12866   # (2) before a word containing "conftest.", or (3) at the end.
12867   # Note that $ac_compile itself does not contain backslashes and begins
12868   # with a dollar sign (not a hyphen), so the echo should work correctly.
12869   # The option is referenced via a variable to avoid confusing sed.
12870   lt_compile=`echo "$ac_compile" | $SED \
12871   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12872   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12873   -e 's:$: $lt_compiler_flag:'`
12874   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12875   (eval "$lt_compile" 2>conftest.err)
12876   ac_status=$?
12877   cat conftest.err >&5
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   if (exit $ac_status) && test -s "$ac_outfile"; then
12880     # The compiler can only warn and ignore the option if not recognized
12881     # So say no if there are warnings other than the usual output.
12882     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12883     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12884     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12885       lt_cv_prog_compiler_pic_works=yes
12886     fi
12887   fi
12888   $RM conftest*
12889 ;;
12890esac
12891fi
12892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12893printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12894
12895if test yes = "$lt_cv_prog_compiler_pic_works"; then
12896    case $lt_prog_compiler_pic in
12897     "" | " "*) ;;
12898     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12899     esac
12900else
12901    lt_prog_compiler_pic=
12902     lt_prog_compiler_can_build_shared=no
12903fi
12904
12905fi
12906
12907
12908
12909
12910
12911#
12912# Check to make sure the static flag actually works.
12913#
12914wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12916printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12917if test ${lt_cv_prog_compiler_static_works+y}
12918then :
12919  printf %s "(cached) " >&6
12920else case e in #(
12921  e) lt_cv_prog_compiler_static_works=no
12922   save_LDFLAGS=$LDFLAGS
12923   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12924   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12925   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12926     # The linker can only warn and ignore the option if not recognized
12927     # So say no if there are warnings
12928     if test -s conftest.err; then
12929       # Append any errors to the config.log.
12930       cat conftest.err 1>&5
12931       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12932       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12933       if diff conftest.exp conftest.er2 >/dev/null; then
12934         lt_cv_prog_compiler_static_works=yes
12935       fi
12936     else
12937       lt_cv_prog_compiler_static_works=yes
12938     fi
12939   fi
12940   $RM -r conftest*
12941   LDFLAGS=$save_LDFLAGS
12942 ;;
12943esac
12944fi
12945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12946printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12947
12948if test yes = "$lt_cv_prog_compiler_static_works"; then
12949    :
12950else
12951    lt_prog_compiler_static=
12952fi
12953
12954
12955
12956='-fPIC'
12957  archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12958  archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12959  archive_cmds_need_lc=no
12960  no_undefined_flag=
12961  ;;
12962
12963*)
12964  dynamic_linker=no
12965  ;;
12966esac
12967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12968printf "%s\n" "$dynamic_linker" >&6; }
12969test no = "$dynamic_linker" && can_build_shared=no
12970
12971variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12972if test yes = "$GCC"; then
12973  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12974fi
12975
12976if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12977  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12978fi
12979
12980if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12981  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12982fi
12983
12984# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12985configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12986
12987# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12988func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12989
12990# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12991configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13090printf %s "checking how to hardcode library paths into programs... " >&6; }
13091hardcode_action=
13092if test -n "$hardcode_libdir_flag_spec" ||
13093   test -n "$runpath_var" ||
13094   test yes = "$hardcode_automatic"; then
13095
13096  # We can hardcode non-existent directories.
13097  if test no != "$hardcode_direct" &&
13098     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13099     # have to relink, otherwise we might link with an installed library
13100     # when we should be linking with a yet-to-be-installed one
13101     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13102     test no != "$hardcode_minus_L"; then
13103    # Linking always hardcodes the temporary library directory.
13104    hardcode_action=relink
13105  else
13106    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13107    hardcode_action=immediate
13108  fi
13109else
13110  # We cannot hardcode anything, or else we can only hardcode existing
13111  # directories.
13112  hardcode_action=unsupported
13113fi
13114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13115printf "%s\n" "$hardcode_action" >&6; }
13116
13117if test relink = "$hardcode_action" ||
13118   test yes = "$inherit_rpath"; then
13119  # Fast installation is not supported
13120  enable_fast_install=no
13121elif test yes = "$shlibpath_overrides_runpath" ||
13122     test no = "$enable_shared"; then
13123  # Fast installation is not necessary
13124  enable_fast_install=needless
13125fi
13126
13127
13128
13129
13130
13131
13132  if test yes != "$enable_dlopen"; then
13133  enable_dlopen=unknown
13134  enable_dlopen_self=unknown
13135  enable_dlopen_self_static=unknown
13136else
13137  lt_cv_dlopen=no
13138  lt_cv_dlopen_libs=
13139
13140  case $host_os in
13141  beos*)
13142    lt_cv_dlopen=load_add_on
13143    lt_cv_dlopen_libs=
13144    lt_cv_dlopen_self=yes
13145    ;;
13146
13147  mingw* | windows* | pw32* | cegcc*)
13148    lt_cv_dlopen=LoadLibrary
13149    lt_cv_dlopen_libs=
13150    ;;
13151
13152  cygwin*)
13153    lt_cv_dlopen=dlopen
13154    lt_cv_dlopen_libs=
13155    ;;
13156
13157  darwin*)
13158    # if libdl is installed we need to link against it
13159    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13160printf %s "checking for dlopen in -ldl... " >&6; }
13161if test ${ac_cv_lib_dl_dlopen+y}
13162then :
13163  printf %s "(cached) " >&6
13164else case e in #(
13165  e) ac_check_lib_save_LIBS=$LIBS
13166LIBS="-ldl  $LIBS"
13167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168/* end confdefs.h.  */
13169
13170/* Override any GCC internal prototype to avoid an error.
13171   Use char because int might match the return type of a GCC
13172   builtin and then its argument prototype would still apply.
13173   The 'extern "C"' is for builds by C++ compilers;
13174   although this is not generally supported in C code supporting it here
13175   has little cost and some practical benefit (sr 110532).  */
13176#ifdef __cplusplus
13177extern "C"
13178#endif
13179char dlopen (void);
13180int
13181main (void)
13182{
13183return dlopen ();
13184  ;
13185  return 0;
13186}
13187_ACEOF
13188if ac_fn_c_try_link "$LINENO"
13189then :
13190  ac_cv_lib_dl_dlopen=yes
13191else case e in #(
13192  e) ac_cv_lib_dl_dlopen=no ;;
13193esac
13194fi
13195rm -f core conftest.err conftest.$ac_objext conftest.beam \
13196    conftest$ac_exeext conftest.$ac_ext
13197LIBS=$ac_check_lib_save_LIBS ;;
13198esac
13199fi
13200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13201printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13202if test "x$ac_cv_lib_dl_dlopen" = xyes
13203then :
13204  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13205else case e in #(
13206  e)
13207    lt_cv_dlopen=dyld
13208    lt_cv_dlopen_libs=
13209    lt_cv_dlopen_self=yes
13210     ;;
13211esac
13212fi
13213
13214    ;;
13215
13216  tpf*)
13217    # Don't try to run any link tests for TPF.  We know it's impossible
13218    # because TPF is a cross-compiler, and we know how we open DSOs.
13219    lt_cv_dlopen=dlopen
13220    lt_cv_dlopen_libs=
13221    lt_cv_dlopen_self=no
13222    ;;
13223
13224  *)
13225    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13226if test "x$ac_cv_func_shl_load" = xyes
13227then :
13228  lt_cv_dlopen=shl_load
13229else case e in #(
13230  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13231printf %s "checking for shl_load in -ldld... " >&6; }
13232if test ${ac_cv_lib_dld_shl_load+y}
13233then :
13234  printf %s "(cached) " >&6
13235else case e in #(
13236  e) ac_check_lib_save_LIBS=$LIBS
13237LIBS="-ldld  $LIBS"
13238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239/* end confdefs.h.  */
13240
13241/* Override any GCC internal prototype to avoid an error.
13242   Use char because int might match the return type of a GCC
13243   builtin and then its argument prototype would still apply.
13244   The 'extern "C"' is for builds by C++ compilers;
13245   although this is not generally supported in C code supporting it here
13246   has little cost and some practical benefit (sr 110532).  */
13247#ifdef __cplusplus
13248extern "C"
13249#endif
13250char shl_load (void);
13251int
13252main (void)
13253{
13254return shl_load ();
13255  ;
13256  return 0;
13257}
13258_ACEOF
13259if ac_fn_c_try_link "$LINENO"
13260then :
13261  ac_cv_lib_dld_shl_load=yes
13262else case e in #(
13263  e) ac_cv_lib_dld_shl_load=no ;;
13264esac
13265fi
13266rm -f core conftest.err conftest.$ac_objext conftest.beam \
13267    conftest$ac_exeext conftest.$ac_ext
13268LIBS=$ac_check_lib_save_LIBS ;;
13269esac
13270fi
13271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13272printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13273if test "x$ac_cv_lib_dld_shl_load" = xyes
13274then :
13275  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13276else case e in #(
13277  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13278if test "x$ac_cv_func_dlopen" = xyes
13279then :
13280  lt_cv_dlopen=dlopen
13281else case e in #(
13282  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13283printf %s "checking for dlopen in -ldl... " >&6; }
13284if test ${ac_cv_lib_dl_dlopen+y}
13285then :
13286  printf %s "(cached) " >&6
13287else case e in #(
13288  e) ac_check_lib_save_LIBS=$LIBS
13289LIBS="-ldl  $LIBS"
13290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291/* end confdefs.h.  */
13292
13293/* Override any GCC internal prototype to avoid an error.
13294   Use char because int might match the return type of a GCC
13295   builtin and then its argument prototype would still apply.
13296   The 'extern "C"' is for builds by C++ compilers;
13297   although this is not generally supported in C code supporting it here
13298   has little cost and some practical benefit (sr 110532).  */
13299#ifdef __cplusplus
13300extern "C"
13301#endif
13302char dlopen (void);
13303int
13304main (void)
13305{
13306return dlopen ();
13307  ;
13308  return 0;
13309}
13310_ACEOF
13311if ac_fn_c_try_link "$LINENO"
13312then :
13313  ac_cv_lib_dl_dlopen=yes
13314else case e in #(
13315  e) ac_cv_lib_dl_dlopen=no ;;
13316esac
13317fi
13318rm -f core conftest.err conftest.$ac_objext conftest.beam \
13319    conftest$ac_exeext conftest.$ac_ext
13320LIBS=$ac_check_lib_save_LIBS ;;
13321esac
13322fi
13323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13324printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13325if test "x$ac_cv_lib_dl_dlopen" = xyes
13326then :
13327  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13328else case e in #(
13329  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13330printf %s "checking for dlopen in -lsvld... " >&6; }
13331if test ${ac_cv_lib_svld_dlopen+y}
13332then :
13333  printf %s "(cached) " >&6
13334else case e in #(
13335  e) ac_check_lib_save_LIBS=$LIBS
13336LIBS="-lsvld  $LIBS"
13337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338/* end confdefs.h.  */
13339
13340/* Override any GCC internal prototype to avoid an error.
13341   Use char because int might match the return type of a GCC
13342   builtin and then its argument prototype would still apply.
13343   The 'extern "C"' is for builds by C++ compilers;
13344   although this is not generally supported in C code supporting it here
13345   has little cost and some practical benefit (sr 110532).  */
13346#ifdef __cplusplus
13347extern "C"
13348#endif
13349char dlopen (void);
13350int
13351main (void)
13352{
13353return dlopen ();
13354  ;
13355  return 0;
13356}
13357_ACEOF
13358if ac_fn_c_try_link "$LINENO"
13359then :
13360  ac_cv_lib_svld_dlopen=yes
13361else case e in #(
13362  e) ac_cv_lib_svld_dlopen=no ;;
13363esac
13364fi
13365rm -f core conftest.err conftest.$ac_objext conftest.beam \
13366    conftest$ac_exeext conftest.$ac_ext
13367LIBS=$ac_check_lib_save_LIBS ;;
13368esac
13369fi
13370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13371printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13372if test "x$ac_cv_lib_svld_dlopen" = xyes
13373then :
13374  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13375else case e in #(
13376  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13377printf %s "checking for dld_link in -ldld... " >&6; }
13378if test ${ac_cv_lib_dld_dld_link+y}
13379then :
13380  printf %s "(cached) " >&6
13381else case e in #(
13382  e) ac_check_lib_save_LIBS=$LIBS
13383LIBS="-ldld  $LIBS"
13384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385/* end confdefs.h.  */
13386
13387/* Override any GCC internal prototype to avoid an error.
13388   Use char because int might match the return type of a GCC
13389   builtin and then its argument prototype would still apply.
13390   The 'extern "C"' is for builds by C++ compilers;
13391   although this is not generally supported in C code supporting it here
13392   has little cost and some practical benefit (sr 110532).  */
13393#ifdef __cplusplus
13394extern "C"
13395#endif
13396char dld_link (void);
13397int
13398main (void)
13399{
13400return dld_link ();
13401  ;
13402  return 0;
13403}
13404_ACEOF
13405if ac_fn_c_try_link "$LINENO"
13406then :
13407  ac_cv_lib_dld_dld_link=yes
13408else case e in #(
13409  e) ac_cv_lib_dld_dld_link=no ;;
13410esac
13411fi
13412rm -f core conftest.err conftest.$ac_objext conftest.beam \
13413    conftest$ac_exeext conftest.$ac_ext
13414LIBS=$ac_check_lib_save_LIBS ;;
13415esac
13416fi
13417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13418printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13419if test "x$ac_cv_lib_dld_dld_link" = xyes
13420then :
13421  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13422fi
13423
13424	       ;;
13425esac
13426fi
13427
13428	     ;;
13429esac
13430fi
13431
13432	   ;;
13433esac
13434fi
13435
13436	 ;;
13437esac
13438fi
13439
13440       ;;
13441esac
13442fi
13443
13444    ;;
13445  esac
13446
13447  if test no = "$lt_cv_dlopen"; then
13448    enable_dlopen=no
13449  else
13450    enable_dlopen=yes
13451  fi
13452
13453  case $lt_cv_dlopen in
13454  dlopen)
13455    save_CPPFLAGS=$CPPFLAGS
13456    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13457
13458    save_LDFLAGS=$LDFLAGS
13459    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13460
13461    save_LIBS=$LIBS
13462    LIBS="$lt_cv_dlopen_libs $LIBS"
13463
13464    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13465printf %s "checking whether a program can dlopen itself... " >&6; }
13466if test ${lt_cv_dlopen_self+y}
13467then :
13468  printf %s "(cached) " >&6
13469else case e in #(
13470  e) 	  if test yes = "$cross_compiling"; then :
13471  lt_cv_dlopen_self=cross
13472else
13473  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13474  lt_status=$lt_dlunknown
13475  cat > conftest.$ac_ext <<_LT_EOF
13476#line $LINENO "configure"
13477#include "confdefs.h"
13478
13479#if HAVE_DLFCN_H
13480#include <dlfcn.h>
13481#endif
13482
13483#include <stdio.h>
13484
13485#ifdef RTLD_GLOBAL
13486#  define LT_DLGLOBAL		RTLD_GLOBAL
13487#else
13488#  ifdef DL_GLOBAL
13489#    define LT_DLGLOBAL		DL_GLOBAL
13490#  else
13491#    define LT_DLGLOBAL		0
13492#  endif
13493#endif
13494
13495/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13496   find out it does not work in some platform. */
13497#ifndef LT_DLLAZY_OR_NOW
13498#  ifdef RTLD_LAZY
13499#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13500#  else
13501#    ifdef DL_LAZY
13502#      define LT_DLLAZY_OR_NOW		DL_LAZY
13503#    else
13504#      ifdef RTLD_NOW
13505#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13506#      else
13507#        ifdef DL_NOW
13508#          define LT_DLLAZY_OR_NOW	DL_NOW
13509#        else
13510#          define LT_DLLAZY_OR_NOW	0
13511#        endif
13512#      endif
13513#    endif
13514#  endif
13515#endif
13516
13517/* When -fvisibility=hidden is used, assume the code has been annotated
13518   correspondingly for the symbols needed.  */
13519#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13520int fnord (void) __attribute__((visibility("default")));
13521#endif
13522
13523int fnord (void) { return 42; }
13524int main (void)
13525{
13526  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13527  int status = $lt_dlunknown;
13528
13529  if (self)
13530    {
13531      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13532      else
13533        {
13534	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13535          else puts (dlerror ());
13536	}
13537      /* dlclose (self); */
13538    }
13539  else
13540    puts (dlerror ());
13541
13542  return status;
13543}
13544_LT_EOF
13545  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13546  (eval $ac_link) 2>&5
13547  ac_status=$?
13548  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13549  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13550    (./conftest; exit; ) >&5 2>/dev/null
13551    lt_status=$?
13552    case x$lt_status in
13553      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13554      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13555      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13556    esac
13557  else :
13558    # compilation failed
13559    lt_cv_dlopen_self=no
13560  fi
13561fi
13562rm -fr conftest*
13563
13564     ;;
13565esac
13566fi
13567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13568printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13569
13570    if test yes = "$lt_cv_dlopen_self"; then
13571      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13572      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13573printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13574if test ${lt_cv_dlopen_self_static+y}
13575then :
13576  printf %s "(cached) " >&6
13577else case e in #(
13578  e) 	  if test yes = "$cross_compiling"; then :
13579  lt_cv_dlopen_self_static=cross
13580else
13581  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13582  lt_status=$lt_dlunknown
13583  cat > conftest.$ac_ext <<_LT_EOF
13584#line $LINENO "configure"
13585#include "confdefs.h"
13586
13587#if HAVE_DLFCN_H
13588#include <dlfcn.h>
13589#endif
13590
13591#include <stdio.h>
13592
13593#ifdef RTLD_GLOBAL
13594#  define LT_DLGLOBAL		RTLD_GLOBAL
13595#else
13596#  ifdef DL_GLOBAL
13597#    define LT_DLGLOBAL		DL_GLOBAL
13598#  else
13599#    define LT_DLGLOBAL		0
13600#  endif
13601#endif
13602
13603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13604   find out it does not work in some platform. */
13605#ifndef LT_DLLAZY_OR_NOW
13606#  ifdef RTLD_LAZY
13607#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13608#  else
13609#    ifdef DL_LAZY
13610#      define LT_DLLAZY_OR_NOW		DL_LAZY
13611#    else
13612#      ifdef RTLD_NOW
13613#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13614#      else
13615#        ifdef DL_NOW
13616#          define LT_DLLAZY_OR_NOW	DL_NOW
13617#        else
13618#          define LT_DLLAZY_OR_NOW	0
13619#        endif
13620#      endif
13621#    endif
13622#  endif
13623#endif
13624
13625/* When -fvisibility=hidden is used, assume the code has been annotated
13626   correspondingly for the symbols needed.  */
13627#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13628int fnord (void) __attribute__((visibility("default")));
13629#endif
13630
13631int fnord (void) { return 42; }
13632int main (void)
13633{
13634  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13635  int status = $lt_dlunknown;
13636
13637  if (self)
13638    {
13639      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13640      else
13641        {
13642	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13643          else puts (dlerror ());
13644	}
13645      /* dlclose (self); */
13646    }
13647  else
13648    puts (dlerror ());
13649
13650  return status;
13651}
13652_LT_EOF
13653  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13654  (eval $ac_link) 2>&5
13655  ac_status=$?
13656  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13657  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13658    (./conftest; exit; ) >&5 2>/dev/null
13659    lt_status=$?
13660    case x$lt_status in
13661      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13662      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13663      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13664    esac
13665  else :
13666    # compilation failed
13667    lt_cv_dlopen_self_static=no
13668  fi
13669fi
13670rm -fr conftest*
13671
13672       ;;
13673esac
13674fi
13675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13676printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13677    fi
13678
13679    CPPFLAGS=$save_CPPFLAGS
13680    LDFLAGS=$save_LDFLAGS
13681    LIBS=$save_LIBS
13682    ;;
13683  esac
13684
13685  case $lt_cv_dlopen_self in
13686  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13687  *) enable_dlopen_self=unknown ;;
13688  esac
13689
13690  case $lt_cv_dlopen_self_static in
13691  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13692  *) enable_dlopen_self_static=unknown ;;
13693  esac
13694fi
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712striplib=
13713old_striplib=
13714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13715printf %s "checking whether stripping libraries is possible... " >&6; }
13716if test -z "$STRIP"; then
13717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718printf "%s\n" "no" >&6; }
13719else
13720  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13721    old_striplib="$STRIP --strip-debug"
13722    striplib="$STRIP --strip-unneeded"
13723    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13724printf "%s\n" "yes" >&6; }
13725  else
13726    case $host_os in
13727    darwin*)
13728      # FIXME - insert some real tests, host_os isn't really good enough
13729      striplib="$STRIP -x"
13730      old_striplib="$STRIP -S"
13731      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13732printf "%s\n" "yes" >&6; }
13733      ;;
13734    freebsd*)
13735      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13736        old_striplib="$STRIP --strip-debug"
13737        striplib="$STRIP --strip-unneeded"
13738        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13739printf "%s\n" "yes" >&6; }
13740      else
13741        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742printf "%s\n" "no" >&6; }
13743      fi
13744      ;;
13745    *)
13746      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747printf "%s\n" "no" >&6; }
13748      ;;
13749    esac
13750  fi
13751fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764  # Report what library types will actually be built
13765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13766printf %s "checking if libtool supports shared libraries... " >&6; }
13767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13768printf "%s\n" "$can_build_shared" >&6; }
13769
13770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13771printf %s "checking whether to build shared libraries... " >&6; }
13772  test no = "$can_build_shared" && enable_shared=no
13773
13774  # On AIX, shared libraries and static libraries use the same namespace, and
13775  # are all built from PIC.
13776  case $host_os in
13777  aix3*)
13778    test yes = "$enable_shared" && enable_static=no
13779    if test -n "$RANLIB"; then
13780      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13781      postinstall_cmds='$RANLIB $lib'
13782    fi
13783    ;;
13784
13785  aix[4-9]*)
13786    if test ia64 != "$host_cpu"; then
13787      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13788      yes,aix,yes) ;;			# shared object as lib.so file only
13789      yes,svr4,*) ;;			# shared object as lib.so archive member only
13790      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13791      esac
13792    fi
13793    ;;
13794  esac
13795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13796printf "%s\n" "$enable_shared" >&6; }
13797
13798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13799printf %s "checking whether to build static libraries... " >&6; }
13800  # Make sure either enable_shared or enable_static is yes.
13801  test yes = "$enable_shared" || enable_static=yes
13802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13803printf "%s\n" "$enable_static" >&6; }
13804
13805
13806
13807
13808fi
13809ac_ext=c
13810ac_cpp='$CPP $CPPFLAGS'
13811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813ac_compiler_gnu=$ac_cv_c_compiler_gnu
13814
13815CC=$lt_save_CC
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831        ac_config_commands="$ac_config_commands libtool"
13832
13833
13834
13835
13836# Only expand once:
13837
13838
13839
13840# libtool -version-info
13841LT_VERSION=0:75:0
13842
13843
13844
13845AM_DEFAULT_VERBOSITY=0
13846
13847# Checks for programs.
13848ac_ext=c
13849ac_cpp='$CPP $CPPFLAGS'
13850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13852ac_compiler_gnu=$ac_cv_c_compiler_gnu
13853if test -n "$ac_tool_prefix"; then
13854  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13855set dummy ${ac_tool_prefix}gcc; ac_word=$2
13856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13857printf %s "checking for $ac_word... " >&6; }
13858if test ${ac_cv_prog_CC+y}
13859then :
13860  printf %s "(cached) " >&6
13861else case e in #(
13862  e) if test -n "$CC"; then
13863  ac_cv_prog_CC="$CC" # Let the user override the test.
13864else
13865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866for as_dir in $PATH
13867do
13868  IFS=$as_save_IFS
13869  case $as_dir in #(((
13870    '') as_dir=./ ;;
13871    */) ;;
13872    *) as_dir=$as_dir/ ;;
13873  esac
13874    for ac_exec_ext in '' $ac_executable_extensions; do
13875  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13876    ac_cv_prog_CC="${ac_tool_prefix}gcc"
13877    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13878    break 2
13879  fi
13880done
13881  done
13882IFS=$as_save_IFS
13883
13884fi ;;
13885esac
13886fi
13887CC=$ac_cv_prog_CC
13888if test -n "$CC"; then
13889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13890printf "%s\n" "$CC" >&6; }
13891else
13892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893printf "%s\n" "no" >&6; }
13894fi
13895
13896
13897fi
13898if test -z "$ac_cv_prog_CC"; then
13899  ac_ct_CC=$CC
13900  # Extract the first word of "gcc", so it can be a program name with args.
13901set dummy gcc; ac_word=$2
13902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13903printf %s "checking for $ac_word... " >&6; }
13904if test ${ac_cv_prog_ac_ct_CC+y}
13905then :
13906  printf %s "(cached) " >&6
13907else case e in #(
13908  e) if test -n "$ac_ct_CC"; then
13909  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13910else
13911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13912for as_dir in $PATH
13913do
13914  IFS=$as_save_IFS
13915  case $as_dir in #(((
13916    '') as_dir=./ ;;
13917    */) ;;
13918    *) as_dir=$as_dir/ ;;
13919  esac
13920    for ac_exec_ext in '' $ac_executable_extensions; do
13921  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13922    ac_cv_prog_ac_ct_CC="gcc"
13923    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13924    break 2
13925  fi
13926done
13927  done
13928IFS=$as_save_IFS
13929
13930fi ;;
13931esac
13932fi
13933ac_ct_CC=$ac_cv_prog_ac_ct_CC
13934if test -n "$ac_ct_CC"; then
13935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13936printf "%s\n" "$ac_ct_CC" >&6; }
13937else
13938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13939printf "%s\n" "no" >&6; }
13940fi
13941
13942  if test "x$ac_ct_CC" = x; then
13943    CC=""
13944  else
13945    case $cross_compiling:$ac_tool_warned in
13946yes:)
13947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13948printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13949ac_tool_warned=yes ;;
13950esac
13951    CC=$ac_ct_CC
13952  fi
13953else
13954  CC="$ac_cv_prog_CC"
13955fi
13956
13957if test -z "$CC"; then
13958          if test -n "$ac_tool_prefix"; then
13959    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13960set dummy ${ac_tool_prefix}cc; ac_word=$2
13961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13962printf %s "checking for $ac_word... " >&6; }
13963if test ${ac_cv_prog_CC+y}
13964then :
13965  printf %s "(cached) " >&6
13966else case e in #(
13967  e) if test -n "$CC"; then
13968  ac_cv_prog_CC="$CC" # Let the user override the test.
13969else
13970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13971for as_dir in $PATH
13972do
13973  IFS=$as_save_IFS
13974  case $as_dir in #(((
13975    '') as_dir=./ ;;
13976    */) ;;
13977    *) as_dir=$as_dir/ ;;
13978  esac
13979    for ac_exec_ext in '' $ac_executable_extensions; do
13980  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13981    ac_cv_prog_CC="${ac_tool_prefix}cc"
13982    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13983    break 2
13984  fi
13985done
13986  done
13987IFS=$as_save_IFS
13988
13989fi ;;
13990esac
13991fi
13992CC=$ac_cv_prog_CC
13993if test -n "$CC"; then
13994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13995printf "%s\n" "$CC" >&6; }
13996else
13997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998printf "%s\n" "no" >&6; }
13999fi
14000
14001
14002  fi
14003fi
14004if test -z "$CC"; then
14005  # Extract the first word of "cc", so it can be a program name with args.
14006set dummy cc; ac_word=$2
14007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14008printf %s "checking for $ac_word... " >&6; }
14009if test ${ac_cv_prog_CC+y}
14010then :
14011  printf %s "(cached) " >&6
14012else case e in #(
14013  e) if test -n "$CC"; then
14014  ac_cv_prog_CC="$CC" # Let the user override the test.
14015else
14016  ac_prog_rejected=no
14017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018for as_dir in $PATH
14019do
14020  IFS=$as_save_IFS
14021  case $as_dir in #(((
14022    '') as_dir=./ ;;
14023    */) ;;
14024    *) as_dir=$as_dir/ ;;
14025  esac
14026    for ac_exec_ext in '' $ac_executable_extensions; do
14027  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14028    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14029       ac_prog_rejected=yes
14030       continue
14031     fi
14032    ac_cv_prog_CC="cc"
14033    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14034    break 2
14035  fi
14036done
14037  done
14038IFS=$as_save_IFS
14039
14040if test $ac_prog_rejected = yes; then
14041  # We found a bogon in the path, so make sure we never use it.
14042  set dummy $ac_cv_prog_CC
14043  shift
14044  if test $# != 0; then
14045    # We chose a different compiler from the bogus one.
14046    # However, it has the same basename, so the bogon will be chosen
14047    # first if we set CC to just the basename; use the full file name.
14048    shift
14049    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14050  fi
14051fi
14052fi ;;
14053esac
14054fi
14055CC=$ac_cv_prog_CC
14056if test -n "$CC"; then
14057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14058printf "%s\n" "$CC" >&6; }
14059else
14060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061printf "%s\n" "no" >&6; }
14062fi
14063
14064
14065fi
14066if test -z "$CC"; then
14067  if test -n "$ac_tool_prefix"; then
14068  for ac_prog in cl.exe
14069  do
14070    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14071set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14073printf %s "checking for $ac_word... " >&6; }
14074if test ${ac_cv_prog_CC+y}
14075then :
14076  printf %s "(cached) " >&6
14077else case e in #(
14078  e) if test -n "$CC"; then
14079  ac_cv_prog_CC="$CC" # Let the user override the test.
14080else
14081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14082for as_dir in $PATH
14083do
14084  IFS=$as_save_IFS
14085  case $as_dir in #(((
14086    '') as_dir=./ ;;
14087    */) ;;
14088    *) as_dir=$as_dir/ ;;
14089  esac
14090    for ac_exec_ext in '' $ac_executable_extensions; do
14091  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14092    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14093    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14094    break 2
14095  fi
14096done
14097  done
14098IFS=$as_save_IFS
14099
14100fi ;;
14101esac
14102fi
14103CC=$ac_cv_prog_CC
14104if test -n "$CC"; then
14105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14106printf "%s\n" "$CC" >&6; }
14107else
14108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109printf "%s\n" "no" >&6; }
14110fi
14111
14112
14113    test -n "$CC" && break
14114  done
14115fi
14116if test -z "$CC"; then
14117  ac_ct_CC=$CC
14118  for ac_prog in cl.exe
14119do
14120  # Extract the first word of "$ac_prog", so it can be a program name with args.
14121set dummy $ac_prog; ac_word=$2
14122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14123printf %s "checking for $ac_word... " >&6; }
14124if test ${ac_cv_prog_ac_ct_CC+y}
14125then :
14126  printf %s "(cached) " >&6
14127else case e in #(
14128  e) if test -n "$ac_ct_CC"; then
14129  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14130else
14131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132for as_dir in $PATH
14133do
14134  IFS=$as_save_IFS
14135  case $as_dir in #(((
14136    '') as_dir=./ ;;
14137    */) ;;
14138    *) as_dir=$as_dir/ ;;
14139  esac
14140    for ac_exec_ext in '' $ac_executable_extensions; do
14141  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14142    ac_cv_prog_ac_ct_CC="$ac_prog"
14143    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14144    break 2
14145  fi
14146done
14147  done
14148IFS=$as_save_IFS
14149
14150fi ;;
14151esac
14152fi
14153ac_ct_CC=$ac_cv_prog_ac_ct_CC
14154if test -n "$ac_ct_CC"; then
14155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14156printf "%s\n" "$ac_ct_CC" >&6; }
14157else
14158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159printf "%s\n" "no" >&6; }
14160fi
14161
14162
14163  test -n "$ac_ct_CC" && break
14164done
14165
14166  if test "x$ac_ct_CC" = x; then
14167    CC=""
14168  else
14169    case $cross_compiling:$ac_tool_warned in
14170yes:)
14171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14172printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14173ac_tool_warned=yes ;;
14174esac
14175    CC=$ac_ct_CC
14176  fi
14177fi
14178
14179fi
14180if test -z "$CC"; then
14181  if test -n "$ac_tool_prefix"; then
14182  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14183set dummy ${ac_tool_prefix}clang; ac_word=$2
14184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14185printf %s "checking for $ac_word... " >&6; }
14186if test ${ac_cv_prog_CC+y}
14187then :
14188  printf %s "(cached) " >&6
14189else case e in #(
14190  e) if test -n "$CC"; then
14191  ac_cv_prog_CC="$CC" # Let the user override the test.
14192else
14193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194for as_dir in $PATH
14195do
14196  IFS=$as_save_IFS
14197  case $as_dir in #(((
14198    '') as_dir=./ ;;
14199    */) ;;
14200    *) as_dir=$as_dir/ ;;
14201  esac
14202    for ac_exec_ext in '' $ac_executable_extensions; do
14203  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14204    ac_cv_prog_CC="${ac_tool_prefix}clang"
14205    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14206    break 2
14207  fi
14208done
14209  done
14210IFS=$as_save_IFS
14211
14212fi ;;
14213esac
14214fi
14215CC=$ac_cv_prog_CC
14216if test -n "$CC"; then
14217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14218printf "%s\n" "$CC" >&6; }
14219else
14220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221printf "%s\n" "no" >&6; }
14222fi
14223
14224
14225fi
14226if test -z "$ac_cv_prog_CC"; then
14227  ac_ct_CC=$CC
14228  # Extract the first word of "clang", so it can be a program name with args.
14229set dummy clang; ac_word=$2
14230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14231printf %s "checking for $ac_word... " >&6; }
14232if test ${ac_cv_prog_ac_ct_CC+y}
14233then :
14234  printf %s "(cached) " >&6
14235else case e in #(
14236  e) if test -n "$ac_ct_CC"; then
14237  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14238else
14239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14240for as_dir in $PATH
14241do
14242  IFS=$as_save_IFS
14243  case $as_dir in #(((
14244    '') as_dir=./ ;;
14245    */) ;;
14246    *) as_dir=$as_dir/ ;;
14247  esac
14248    for ac_exec_ext in '' $ac_executable_extensions; do
14249  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14250    ac_cv_prog_ac_ct_CC="clang"
14251    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14252    break 2
14253  fi
14254done
14255  done
14256IFS=$as_save_IFS
14257
14258fi ;;
14259esac
14260fi
14261ac_ct_CC=$ac_cv_prog_ac_ct_CC
14262if test -n "$ac_ct_CC"; then
14263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14264printf "%s\n" "$ac_ct_CC" >&6; }
14265else
14266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267printf "%s\n" "no" >&6; }
14268fi
14269
14270  if test "x$ac_ct_CC" = x; then
14271    CC=""
14272  else
14273    case $cross_compiling:$ac_tool_warned in
14274yes:)
14275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14276printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14277ac_tool_warned=yes ;;
14278esac
14279    CC=$ac_ct_CC
14280  fi
14281else
14282  CC="$ac_cv_prog_CC"
14283fi
14284
14285fi
14286
14287
14288test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14289printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14290as_fn_error $? "no acceptable C compiler found in \$PATH
14291See 'config.log' for more details" "$LINENO" 5; }
14292
14293# Provide some information about the compiler.
14294printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14295set X $ac_compile
14296ac_compiler=$2
14297for ac_option in --version -v -V -qversion -version; do
14298  { { ac_try="$ac_compiler $ac_option >&5"
14299case "(($ac_try" in
14300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301  *) ac_try_echo=$ac_try;;
14302esac
14303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14304printf "%s\n" "$ac_try_echo"; } >&5
14305  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14306  ac_status=$?
14307  if test -s conftest.err; then
14308    sed '10a\
14309... rest of stderr output deleted ...
14310         10q' conftest.err >conftest.er1
14311    cat conftest.er1 >&5
14312  fi
14313  rm -f conftest.er1 conftest.err
14314  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14315  test $ac_status = 0; }
14316done
14317
14318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14319printf %s "checking whether the compiler supports GNU C... " >&6; }
14320if test ${ac_cv_c_compiler_gnu+y}
14321then :
14322  printf %s "(cached) " >&6
14323else case e in #(
14324  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325/* end confdefs.h.  */
14326
14327int
14328main (void)
14329{
14330#ifndef __GNUC__
14331       choke me
14332#endif
14333
14334  ;
14335  return 0;
14336}
14337_ACEOF
14338if ac_fn_c_try_compile "$LINENO"
14339then :
14340  ac_compiler_gnu=yes
14341else case e in #(
14342  e) ac_compiler_gnu=no ;;
14343esac
14344fi
14345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14346ac_cv_c_compiler_gnu=$ac_compiler_gnu
14347 ;;
14348esac
14349fi
14350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14351printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14352ac_compiler_gnu=$ac_cv_c_compiler_gnu
14353
14354if test $ac_compiler_gnu = yes; then
14355  GCC=yes
14356else
14357  GCC=
14358fi
14359ac_test_CFLAGS=${CFLAGS+y}
14360ac_save_CFLAGS=$CFLAGS
14361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14362printf %s "checking whether $CC accepts -g... " >&6; }
14363if test ${ac_cv_prog_cc_g+y}
14364then :
14365  printf %s "(cached) " >&6
14366else case e in #(
14367  e) ac_save_c_werror_flag=$ac_c_werror_flag
14368   ac_c_werror_flag=yes
14369   ac_cv_prog_cc_g=no
14370   CFLAGS="-g"
14371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372/* end confdefs.h.  */
14373
14374int
14375main (void)
14376{
14377
14378  ;
14379  return 0;
14380}
14381_ACEOF
14382if ac_fn_c_try_compile "$LINENO"
14383then :
14384  ac_cv_prog_cc_g=yes
14385else case e in #(
14386  e) CFLAGS=""
14387      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388/* end confdefs.h.  */
14389
14390int
14391main (void)
14392{
14393
14394  ;
14395  return 0;
14396}
14397_ACEOF
14398if ac_fn_c_try_compile "$LINENO"
14399then :
14400
14401else case e in #(
14402  e) ac_c_werror_flag=$ac_save_c_werror_flag
14403	 CFLAGS="-g"
14404	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405/* end confdefs.h.  */
14406
14407int
14408main (void)
14409{
14410
14411  ;
14412  return 0;
14413}
14414_ACEOF
14415if ac_fn_c_try_compile "$LINENO"
14416then :
14417  ac_cv_prog_cc_g=yes
14418fi
14419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14420esac
14421fi
14422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14423esac
14424fi
14425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14426   ac_c_werror_flag=$ac_save_c_werror_flag ;;
14427esac
14428fi
14429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14430printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14431if test $ac_test_CFLAGS; then
14432  CFLAGS=$ac_save_CFLAGS
14433elif test $ac_cv_prog_cc_g = yes; then
14434  if test "$GCC" = yes; then
14435    CFLAGS="-g -O2"
14436  else
14437    CFLAGS="-g"
14438  fi
14439else
14440  if test "$GCC" = yes; then
14441    CFLAGS="-O2"
14442  else
14443    CFLAGS=
14444  fi
14445fi
14446ac_prog_cc_stdc=no
14447if test x$ac_prog_cc_stdc = xno
14448then :
14449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14450printf %s "checking for $CC option to enable C11 features... " >&6; }
14451if test ${ac_cv_prog_cc_c11+y}
14452then :
14453  printf %s "(cached) " >&6
14454else case e in #(
14455  e) ac_cv_prog_cc_c11=no
14456ac_save_CC=$CC
14457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458/* end confdefs.h.  */
14459$ac_c_conftest_c11_program
14460_ACEOF
14461for ac_arg in '' -std=gnu11
14462do
14463  CC="$ac_save_CC $ac_arg"
14464  if ac_fn_c_try_compile "$LINENO"
14465then :
14466  ac_cv_prog_cc_c11=$ac_arg
14467fi
14468rm -f core conftest.err conftest.$ac_objext conftest.beam
14469  test "x$ac_cv_prog_cc_c11" != "xno" && break
14470done
14471rm -f conftest.$ac_ext
14472CC=$ac_save_CC ;;
14473esac
14474fi
14475
14476if test "x$ac_cv_prog_cc_c11" = xno
14477then :
14478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14479printf "%s\n" "unsupported" >&6; }
14480else case e in #(
14481  e) if test "x$ac_cv_prog_cc_c11" = x
14482then :
14483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14484printf "%s\n" "none needed" >&6; }
14485else case e in #(
14486  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14487printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14488     CC="$CC $ac_cv_prog_cc_c11" ;;
14489esac
14490fi
14491  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14492  ac_prog_cc_stdc=c11 ;;
14493esac
14494fi
14495fi
14496if test x$ac_prog_cc_stdc = xno
14497then :
14498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14499printf %s "checking for $CC option to enable C99 features... " >&6; }
14500if test ${ac_cv_prog_cc_c99+y}
14501then :
14502  printf %s "(cached) " >&6
14503else case e in #(
14504  e) ac_cv_prog_cc_c99=no
14505ac_save_CC=$CC
14506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507/* end confdefs.h.  */
14508$ac_c_conftest_c99_program
14509_ACEOF
14510for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14511do
14512  CC="$ac_save_CC $ac_arg"
14513  if ac_fn_c_try_compile "$LINENO"
14514then :
14515  ac_cv_prog_cc_c99=$ac_arg
14516fi
14517rm -f core conftest.err conftest.$ac_objext conftest.beam
14518  test "x$ac_cv_prog_cc_c99" != "xno" && break
14519done
14520rm -f conftest.$ac_ext
14521CC=$ac_save_CC ;;
14522esac
14523fi
14524
14525if test "x$ac_cv_prog_cc_c99" = xno
14526then :
14527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14528printf "%s\n" "unsupported" >&6; }
14529else case e in #(
14530  e) if test "x$ac_cv_prog_cc_c99" = x
14531then :
14532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14533printf "%s\n" "none needed" >&6; }
14534else case e in #(
14535  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14536printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14537     CC="$CC $ac_cv_prog_cc_c99" ;;
14538esac
14539fi
14540  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14541  ac_prog_cc_stdc=c99 ;;
14542esac
14543fi
14544fi
14545if test x$ac_prog_cc_stdc = xno
14546then :
14547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14548printf %s "checking for $CC option to enable C89 features... " >&6; }
14549if test ${ac_cv_prog_cc_c89+y}
14550then :
14551  printf %s "(cached) " >&6
14552else case e in #(
14553  e) ac_cv_prog_cc_c89=no
14554ac_save_CC=$CC
14555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556/* end confdefs.h.  */
14557$ac_c_conftest_c89_program
14558_ACEOF
14559for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14560do
14561  CC="$ac_save_CC $ac_arg"
14562  if ac_fn_c_try_compile "$LINENO"
14563then :
14564  ac_cv_prog_cc_c89=$ac_arg
14565fi
14566rm -f core conftest.err conftest.$ac_objext conftest.beam
14567  test "x$ac_cv_prog_cc_c89" != "xno" && break
14568done
14569rm -f conftest.$ac_ext
14570CC=$ac_save_CC ;;
14571esac
14572fi
14573
14574if test "x$ac_cv_prog_cc_c89" = xno
14575then :
14576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14577printf "%s\n" "unsupported" >&6; }
14578else case e in #(
14579  e) if test "x$ac_cv_prog_cc_c89" = x
14580then :
14581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14582printf "%s\n" "none needed" >&6; }
14583else case e in #(
14584  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14585printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14586     CC="$CC $ac_cv_prog_cc_c89" ;;
14587esac
14588fi
14589  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14590  ac_prog_cc_stdc=c89 ;;
14591esac
14592fi
14593fi
14594
14595ac_ext=c
14596ac_cpp='$CPP $CPPFLAGS'
14597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14599ac_compiler_gnu=$ac_cv_c_compiler_gnu
14600
14601
14602  ac_ext=c
14603ac_cpp='$CPP $CPPFLAGS'
14604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14606ac_compiler_gnu=$ac_cv_c_compiler_gnu
14607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14608printf %s "checking whether $CC understands -c and -o together... " >&6; }
14609if test ${am_cv_prog_cc_c_o+y}
14610then :
14611  printf %s "(cached) " >&6
14612else case e in #(
14613  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614/* end confdefs.h.  */
14615
14616int
14617main (void)
14618{
14619
14620  ;
14621  return 0;
14622}
14623_ACEOF
14624  # Make sure it works both with $CC and with simple cc.
14625  # Following AC_PROG_CC_C_O, we do the test twice because some
14626  # compilers refuse to overwrite an existing .o file with -o,
14627  # though they will create one.
14628  am_cv_prog_cc_c_o=yes
14629  for am_i in 1 2; do
14630    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14631   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); } \
14635         && test -f conftest2.$ac_objext; then
14636      : OK
14637    else
14638      am_cv_prog_cc_c_o=no
14639      break
14640    fi
14641  done
14642  rm -f core conftest*
14643  unset am_i ;;
14644esac
14645fi
14646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14647printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14648if test "$am_cv_prog_cc_c_o" != yes; then
14649   # Losing compiler, so override with the script.
14650   # FIXME: It is wrong to rewrite CC.
14651   # But if we don't then we get into trouble of one sort or another.
14652   # A longer-term fix would be to have automake use am__CC in this case,
14653   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14654   CC="$am_aux_dir/compile $CC"
14655fi
14656ac_ext=c
14657ac_cpp='$CPP $CPPFLAGS'
14658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14660ac_compiler_gnu=$ac_cv_c_compiler_gnu
14661
14662
14663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14664printf %s "checking whether ln -s works... " >&6; }
14665LN_S=$as_ln_s
14666if test "$LN_S" = "ln -s"; then
14667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14668printf "%s\n" "yes" >&6; }
14669else
14670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14671printf "%s\n" "no, using $LN_S" >&6; }
14672fi
14673
14674for ac_prog in gawk mawk nawk awk
14675do
14676  # Extract the first word of "$ac_prog", so it can be a program name with args.
14677set dummy $ac_prog; ac_word=$2
14678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14679printf %s "checking for $ac_word... " >&6; }
14680if test ${ac_cv_prog_AWK+y}
14681then :
14682  printf %s "(cached) " >&6
14683else case e in #(
14684  e) if test -n "$AWK"; then
14685  ac_cv_prog_AWK="$AWK" # Let the user override the test.
14686else
14687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14688for as_dir in $PATH
14689do
14690  IFS=$as_save_IFS
14691  case $as_dir in #(((
14692    '') as_dir=./ ;;
14693    */) ;;
14694    *) as_dir=$as_dir/ ;;
14695  esac
14696    for ac_exec_ext in '' $ac_executable_extensions; do
14697  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14698    ac_cv_prog_AWK="$ac_prog"
14699    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14700    break 2
14701  fi
14702done
14703  done
14704IFS=$as_save_IFS
14705
14706fi ;;
14707esac
14708fi
14709AWK=$ac_cv_prog_AWK
14710if test -n "$AWK"; then
14711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14712printf "%s\n" "$AWK" >&6; }
14713else
14714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14715printf "%s\n" "no" >&6; }
14716fi
14717
14718
14719  test -n "$AWK" && break
14720done
14721
14722
14723   MANTYPE=
14724   TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
14725   for ac_prog in nroff awf
14726do
14727  # Extract the first word of "$ac_prog", so it can be a program name with args.
14728set dummy $ac_prog; ac_word=$2
14729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14730printf %s "checking for $ac_word... " >&6; }
14731if test ${ac_cv_path_NROFF+y}
14732then :
14733  printf %s "(cached) " >&6
14734else case e in #(
14735  e) case $NROFF in
14736  [\\/]* | ?:[\\/]*)
14737  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
14738  ;;
14739  *)
14740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14741for as_dir in $TestPath
14742do
14743  IFS=$as_save_IFS
14744  case $as_dir in #(((
14745    '') as_dir=./ ;;
14746    */) ;;
14747    *) as_dir=$as_dir/ ;;
14748  esac
14749    for ac_exec_ext in '' $ac_executable_extensions; do
14750  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14751    ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
14752    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14753    break 2
14754  fi
14755done
14756  done
14757IFS=$as_save_IFS
14758
14759  ;;
14760esac ;;
14761esac
14762fi
14763NROFF=$ac_cv_path_NROFF
14764if test -n "$NROFF"; then
14765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
14766printf "%s\n" "$NROFF" >&6; }
14767else
14768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769printf "%s\n" "no" >&6; }
14770fi
14771
14772
14773  test -n "$NROFF" && break
14774done
14775test -n "$NROFF" || NROFF="/bin/false"
14776
14777   if ${NROFF} -mdoc ${srcdir}/doc/editrc.5.roff >/dev/null 2>&1; then
14778      MANTYPE=mdoc
14779   fi
14780
14781
14782
14783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
14784printf %s "checking for tgetent in -lncurses... " >&6; }
14785if test ${ac_cv_lib_ncurses_tgetent+y}
14786then :
14787  printf %s "(cached) " >&6
14788else case e in #(
14789  e) ac_check_lib_save_LIBS=$LIBS
14790LIBS="-lncurses  $LIBS"
14791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792/* end confdefs.h.  */
14793
14794/* Override any GCC internal prototype to avoid an error.
14795   Use char because int might match the return type of a GCC
14796   builtin and then its argument prototype would still apply.
14797   The 'extern "C"' is for builds by C++ compilers;
14798   although this is not generally supported in C code supporting it here
14799   has little cost and some practical benefit (sr 110532).  */
14800#ifdef __cplusplus
14801extern "C"
14802#endif
14803char tgetent (void);
14804int
14805main (void)
14806{
14807return tgetent ();
14808  ;
14809  return 0;
14810}
14811_ACEOF
14812if ac_fn_c_try_link "$LINENO"
14813then :
14814  ac_cv_lib_ncurses_tgetent=yes
14815else case e in #(
14816  e) ac_cv_lib_ncurses_tgetent=no ;;
14817esac
14818fi
14819rm -f core conftest.err conftest.$ac_objext conftest.beam \
14820    conftest$ac_exeext conftest.$ac_ext
14821LIBS=$ac_check_lib_save_LIBS ;;
14822esac
14823fi
14824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
14825printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; }
14826if test "x$ac_cv_lib_ncurses_tgetent" = xyes
14827then :
14828  printf "%s\n" "#define HAVE_LIBNCURSES 1" >>confdefs.h
14829
14830  LIBS="-lncurses $LIBS"
14831
14832else case e in #(
14833  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
14834printf %s "checking for tgetent in -lcurses... " >&6; }
14835if test ${ac_cv_lib_curses_tgetent+y}
14836then :
14837  printf %s "(cached) " >&6
14838else case e in #(
14839  e) ac_check_lib_save_LIBS=$LIBS
14840LIBS="-lcurses  $LIBS"
14841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842/* end confdefs.h.  */
14843
14844/* Override any GCC internal prototype to avoid an error.
14845   Use char because int might match the return type of a GCC
14846   builtin and then its argument prototype would still apply.
14847   The 'extern "C"' is for builds by C++ compilers;
14848   although this is not generally supported in C code supporting it here
14849   has little cost and some practical benefit (sr 110532).  */
14850#ifdef __cplusplus
14851extern "C"
14852#endif
14853char tgetent (void);
14854int
14855main (void)
14856{
14857return tgetent ();
14858  ;
14859  return 0;
14860}
14861_ACEOF
14862if ac_fn_c_try_link "$LINENO"
14863then :
14864  ac_cv_lib_curses_tgetent=yes
14865else case e in #(
14866  e) ac_cv_lib_curses_tgetent=no ;;
14867esac
14868fi
14869rm -f core conftest.err conftest.$ac_objext conftest.beam \
14870    conftest$ac_exeext conftest.$ac_ext
14871LIBS=$ac_check_lib_save_LIBS ;;
14872esac
14873fi
14874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
14875printf "%s\n" "$ac_cv_lib_curses_tgetent" >&6; }
14876if test "x$ac_cv_lib_curses_tgetent" = xyes
14877then :
14878  printf "%s\n" "#define HAVE_LIBCURSES 1" >>confdefs.h
14879
14880  LIBS="-lcurses $LIBS"
14881
14882else case e in #(
14883  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
14884printf %s "checking for tgetent in -ltermcap... " >&6; }
14885if test ${ac_cv_lib_termcap_tgetent+y}
14886then :
14887  printf %s "(cached) " >&6
14888else case e in #(
14889  e) ac_check_lib_save_LIBS=$LIBS
14890LIBS="-ltermcap  $LIBS"
14891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892/* end confdefs.h.  */
14893
14894/* Override any GCC internal prototype to avoid an error.
14895   Use char because int might match the return type of a GCC
14896   builtin and then its argument prototype would still apply.
14897   The 'extern "C"' is for builds by C++ compilers;
14898   although this is not generally supported in C code supporting it here
14899   has little cost and some practical benefit (sr 110532).  */
14900#ifdef __cplusplus
14901extern "C"
14902#endif
14903char tgetent (void);
14904int
14905main (void)
14906{
14907return tgetent ();
14908  ;
14909  return 0;
14910}
14911_ACEOF
14912if ac_fn_c_try_link "$LINENO"
14913then :
14914  ac_cv_lib_termcap_tgetent=yes
14915else case e in #(
14916  e) ac_cv_lib_termcap_tgetent=no ;;
14917esac
14918fi
14919rm -f core conftest.err conftest.$ac_objext conftest.beam \
14920    conftest$ac_exeext conftest.$ac_ext
14921LIBS=$ac_check_lib_save_LIBS ;;
14922esac
14923fi
14924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
14925printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
14926if test "x$ac_cv_lib_termcap_tgetent" = xyes
14927then :
14928  printf "%s\n" "#define HAVE_LIBTERMCAP 1" >>confdefs.h
14929
14930  LIBS="-ltermcap $LIBS"
14931
14932else case e in #(
14933  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
14934printf %s "checking for tgetent in -ltinfo... " >&6; }
14935if test ${ac_cv_lib_tinfo_tgetent+y}
14936then :
14937  printf %s "(cached) " >&6
14938else case e in #(
14939  e) ac_check_lib_save_LIBS=$LIBS
14940LIBS="-ltinfo  $LIBS"
14941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942/* end confdefs.h.  */
14943
14944/* Override any GCC internal prototype to avoid an error.
14945   Use char because int might match the return type of a GCC
14946   builtin and then its argument prototype would still apply.
14947   The 'extern "C"' is for builds by C++ compilers;
14948   although this is not generally supported in C code supporting it here
14949   has little cost and some practical benefit (sr 110532).  */
14950#ifdef __cplusplus
14951extern "C"
14952#endif
14953char tgetent (void);
14954int
14955main (void)
14956{
14957return tgetent ();
14958  ;
14959  return 0;
14960}
14961_ACEOF
14962if ac_fn_c_try_link "$LINENO"
14963then :
14964  ac_cv_lib_tinfo_tgetent=yes
14965else case e in #(
14966  e) ac_cv_lib_tinfo_tgetent=no ;;
14967esac
14968fi
14969rm -f core conftest.err conftest.$ac_objext conftest.beam \
14970    conftest$ac_exeext conftest.$ac_ext
14971LIBS=$ac_check_lib_save_LIBS ;;
14972esac
14973fi
14974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
14975printf "%s\n" "$ac_cv_lib_tinfo_tgetent" >&6; }
14976if test "x$ac_cv_lib_tinfo_tgetent" = xyes
14977then :
14978  printf "%s\n" "#define HAVE_LIBTINFO 1" >>confdefs.h
14979
14980  LIBS="-ltinfo $LIBS"
14981
14982else case e in #(
14983  e) as_fn_error $? "libncurses, libcurses, libtermcap or libtinfo is required!" "$LINENO" 5
14984       ;;
14985esac
14986fi
14987
14988     ;;
14989esac
14990fi
14991
14992   ;;
14993esac
14994fi
14995
14996 ;;
14997esac
14998fi
14999
15000
15001### deprecate option --enable-widec to turn on use of wide-character support
15002
15003   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if you want wide-character code" >&5
15004printf %s "checking if you want wide-character code... " >&6; }
15005   # Check whether --enable-widec was given.
15006if test ${enable_widec+y}
15007then :
15008  enableval=$enable_widec; with_widec=$enableval
15009else case e in #(
15010  e) with_widec=no ;;
15011esac
15012fi
15013
15014   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_widec" >&5
15015printf "%s\n" "$with_widec" >&6; }
15016   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-widec is deprecated, wide-character/UTF-8 is always enabled" >&5
15017printf "%s\n" "$as_me: WARNING: --enable-widec is deprecated, wide-character/UTF-8 is always enabled" >&2;}
15018
15019
15020# Check whether --enable-examples was given.
15021if test ${enable_examples+y}
15022then :
15023  enableval=$enable_examples; enable_examples="$enableval"
15024else case e in #(
15025  e) enable_examples="yes"
15026 ;;
15027esac
15028fi
15029
15030
15031 if test "$enable_examples" = "yes"; then
15032  ENABLE_EXAMPLES_TRUE=
15033  ENABLE_EXAMPLES_FALSE='#'
15034else
15035  ENABLE_EXAMPLES_TRUE='#'
15036  ENABLE_EXAMPLES_FALSE=
15037fi
15038
15039
15040# Checks for header files.
15041ac_header_dirent=no
15042for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15043  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15045printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15046if eval test \${$as_ac_Header+y}
15047then :
15048  printf %s "(cached) " >&6
15049else case e in #(
15050  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051/* end confdefs.h.  */
15052#include <sys/types.h>
15053#include <$ac_hdr>
15054
15055int
15056main (void)
15057{
15058if ((DIR *) 0)
15059return 0;
15060  ;
15061  return 0;
15062}
15063_ACEOF
15064if ac_fn_c_try_compile "$LINENO"
15065then :
15066  eval "$as_ac_Header=yes"
15067else case e in #(
15068  e) eval "$as_ac_Header=no" ;;
15069esac
15070fi
15071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15072esac
15073fi
15074eval ac_res=\$$as_ac_Header
15075	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15076printf "%s\n" "$ac_res" >&6; }
15077if eval test \"x\$"$as_ac_Header"\" = x"yes"
15078then :
15079  cat >>confdefs.h <<_ACEOF
15080#define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15081_ACEOF
15082
15083ac_header_dirent=$ac_hdr; break
15084fi
15085
15086done
15087# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15088if test $ac_header_dirent = dirent.h; then
15089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15090printf %s "checking for library containing opendir... " >&6; }
15091if test ${ac_cv_search_opendir+y}
15092then :
15093  printf %s "(cached) " >&6
15094else case e in #(
15095  e) ac_func_search_save_LIBS=$LIBS
15096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h.  */
15098
15099/* Override any GCC internal prototype to avoid an error.
15100   Use char because int might match the return type of a GCC
15101   builtin and then its argument prototype would still apply.
15102   The 'extern "C"' is for builds by C++ compilers;
15103   although this is not generally supported in C code supporting it here
15104   has little cost and some practical benefit (sr 110532).  */
15105#ifdef __cplusplus
15106extern "C"
15107#endif
15108char opendir (void);
15109int
15110main (void)
15111{
15112return opendir ();
15113  ;
15114  return 0;
15115}
15116_ACEOF
15117for ac_lib in '' dir
15118do
15119  if test -z "$ac_lib"; then
15120    ac_res="none required"
15121  else
15122    ac_res=-l$ac_lib
15123    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15124  fi
15125  if ac_fn_c_try_link "$LINENO"
15126then :
15127  ac_cv_search_opendir=$ac_res
15128fi
15129rm -f core conftest.err conftest.$ac_objext conftest.beam \
15130    conftest$ac_exeext
15131  if test ${ac_cv_search_opendir+y}
15132then :
15133  break
15134fi
15135done
15136if test ${ac_cv_search_opendir+y}
15137then :
15138
15139else case e in #(
15140  e) ac_cv_search_opendir=no ;;
15141esac
15142fi
15143rm conftest.$ac_ext
15144LIBS=$ac_func_search_save_LIBS ;;
15145esac
15146fi
15147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15148printf "%s\n" "$ac_cv_search_opendir" >&6; }
15149ac_res=$ac_cv_search_opendir
15150if test "$ac_res" != no
15151then :
15152  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15153
15154fi
15155
15156else
15157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15158printf %s "checking for library containing opendir... " >&6; }
15159if test ${ac_cv_search_opendir+y}
15160then :
15161  printf %s "(cached) " >&6
15162else case e in #(
15163  e) ac_func_search_save_LIBS=$LIBS
15164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165/* end confdefs.h.  */
15166
15167/* Override any GCC internal prototype to avoid an error.
15168   Use char because int might match the return type of a GCC
15169   builtin and then its argument prototype would still apply.
15170   The 'extern "C"' is for builds by C++ compilers;
15171   although this is not generally supported in C code supporting it here
15172   has little cost and some practical benefit (sr 110532).  */
15173#ifdef __cplusplus
15174extern "C"
15175#endif
15176char opendir (void);
15177int
15178main (void)
15179{
15180return opendir ();
15181  ;
15182  return 0;
15183}
15184_ACEOF
15185for ac_lib in '' x
15186do
15187  if test -z "$ac_lib"; then
15188    ac_res="none required"
15189  else
15190    ac_res=-l$ac_lib
15191    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15192  fi
15193  if ac_fn_c_try_link "$LINENO"
15194then :
15195  ac_cv_search_opendir=$ac_res
15196fi
15197rm -f core conftest.err conftest.$ac_objext conftest.beam \
15198    conftest$ac_exeext
15199  if test ${ac_cv_search_opendir+y}
15200then :
15201  break
15202fi
15203done
15204if test ${ac_cv_search_opendir+y}
15205then :
15206
15207else case e in #(
15208  e) ac_cv_search_opendir=no ;;
15209esac
15210fi
15211rm conftest.$ac_ext
15212LIBS=$ac_func_search_save_LIBS ;;
15213esac
15214fi
15215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15216printf "%s\n" "$ac_cv_search_opendir" >&6; }
15217ac_res=$ac_cv_search_opendir
15218if test "$ac_res" != no
15219then :
15220  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15221
15222fi
15223
15224fi
15225
15226
15227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
15228printf %s "checking for egrep... " >&6; }
15229if test ${ac_cv_path_EGREP+y}
15230then :
15231  printf %s "(cached) " >&6
15232else case e in #(
15233  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
15234   then ac_cv_path_EGREP="$GREP -E"
15235   else
15236     if test -z "$EGREP"; then
15237  ac_path_EGREP_found=false
15238  # Loop through the user's path and test for each of PROGNAME-LIST
15239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15241do
15242  IFS=$as_save_IFS
15243  case $as_dir in #(((
15244    '') as_dir=./ ;;
15245    */) ;;
15246    *) as_dir=$as_dir/ ;;
15247  esac
15248    for ac_prog in egrep
15249   do
15250    for ac_exec_ext in '' $ac_executable_extensions; do
15251      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
15252      as_fn_executable_p "$ac_path_EGREP" || continue
15253# Check for GNU ac_path_EGREP and select it if it is found.
15254  # Check for GNU $ac_path_EGREP
15255case `"$ac_path_EGREP" --version 2>&1` in #(
15256*GNU*)
15257  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
15258#(
15259*)
15260  ac_count=0
15261  printf %s 0123456789 >"conftest.in"
15262  while :
15263  do
15264    cat "conftest.in" "conftest.in" >"conftest.tmp"
15265    mv "conftest.tmp" "conftest.in"
15266    cp "conftest.in" "conftest.nl"
15267    printf "%s\n" 'EGREP' >> "conftest.nl"
15268    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15269    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15270    as_fn_arith $ac_count + 1 && ac_count=$as_val
15271    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
15272      # Best one so far, save it but keep looking for a better one
15273      ac_cv_path_EGREP="$ac_path_EGREP"
15274      ac_path_EGREP_max=$ac_count
15275    fi
15276    # 10*(2^10) chars as input seems more than enough
15277    test $ac_count -gt 10 && break
15278  done
15279  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15280esac
15281
15282      $ac_path_EGREP_found && break 3
15283    done
15284  done
15285  done
15286IFS=$as_save_IFS
15287  if test -z "$ac_cv_path_EGREP"; then
15288    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15289  fi
15290else
15291  ac_cv_path_EGREP=$EGREP
15292fi
15293
15294   fi ;;
15295esac
15296fi
15297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
15298printf "%s\n" "$ac_cv_path_EGREP" >&6; }
15299 EGREP="$ac_cv_path_EGREP"
15300
15301         EGREP_TRADITIONAL=$EGREP
15302 ac_cv_path_EGREP_TRADITIONAL=$EGREP
15303
15304
15305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15306printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15307if test ${ac_cv_header_sys_wait_h+y}
15308then :
15309  printf %s "(cached) " >&6
15310else case e in #(
15311  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312/* end confdefs.h.  */
15313#include <sys/types.h>
15314#include <sys/wait.h>
15315#ifndef WEXITSTATUS
15316# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15317#endif
15318#ifndef WIFEXITED
15319# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15320#endif
15321
15322int
15323main (void)
15324{
15325  int s;
15326  wait (&s);
15327  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15328  ;
15329  return 0;
15330}
15331_ACEOF
15332if ac_fn_c_try_compile "$LINENO"
15333then :
15334  ac_cv_header_sys_wait_h=yes
15335else case e in #(
15336  e) ac_cv_header_sys_wait_h=no ;;
15337esac
15338fi
15339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15340esac
15341fi
15342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15343printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
15344if test $ac_cv_header_sys_wait_h = yes; then
15345
15346printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15347
15348fi
15349
15350ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15351if test "x$ac_cv_header_fcntl_h" = xyes
15352then :
15353  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15354
15355fi
15356ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15357if test "x$ac_cv_header_limits_h" = xyes
15358then :
15359  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15360
15361fi
15362ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
15363if test "x$ac_cv_header_malloc_h" = xyes
15364then :
15365  printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
15366
15367fi
15368ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15369if test "x$ac_cv_header_stdlib_h" = xyes
15370then :
15371  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15372
15373fi
15374ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
15375if test "x$ac_cv_header_string_h" = xyes
15376then :
15377  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
15378
15379fi
15380ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
15381if test "x$ac_cv_header_sys_ioctl_h" = xyes
15382then :
15383  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
15384
15385fi
15386ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15387if test "x$ac_cv_header_sys_param_h" = xyes
15388then :
15389  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15390
15391fi
15392ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15393if test "x$ac_cv_header_unistd_h" = xyes
15394then :
15395  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
15396
15397fi
15398ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
15399if test "x$ac_cv_header_curses_h" = xyes
15400then :
15401  printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
15402
15403fi
15404ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
15405if test "x$ac_cv_header_ncurses_h" = xyes
15406then :
15407  printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
15408
15409fi
15410ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
15411if test "x$ac_cv_header_sys_cdefs_h" = xyes
15412then :
15413  printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
15414
15415fi
15416ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
15417if test "x$ac_cv_header_termcap_h" = xyes
15418then :
15419  printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h
15420
15421fi
15422
15423
15424ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
15425if test "x$ac_cv_header_ncurses_h" = xyes
15426then :
15427
15428else case e in #(
15429  e) ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
15430if test "x$ac_cv_header_curses_h" = xyes
15431then :
15432
15433else case e in #(
15434  e) ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
15435if test "x$ac_cv_header_termcap_h" = xyes
15436then :
15437
15438else case e in #(
15439  e) as_fn_error $? "ncurses.h, curses.h, or termcap.h is required!" "$LINENO" 5 ;;
15440esac
15441fi
15442 ;;
15443esac
15444fi
15445 ;;
15446esac
15447fi
15448
15449
15450ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
15451if test "x$ac_cv_header_termios_h" = xyes
15452then :
15453
15454else case e in #(
15455  e) as_fn_error $? "termios.h is required!" "$LINENO" 5 ;;
15456esac
15457fi
15458
15459
15460## include curses.h to prevent "Present But Cannot Be Compiled"
15461ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
15462# include <curses.h>
15463#elif HAVE_NCURSES_H
15464# include <ncurses.h>
15465#endif
15466
15467"
15468if test "x$ac_cv_header_term_h" = xyes
15469then :
15470  printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h
15471
15472fi
15473
15474
15475# Check for dirent.d_namlen field explicitly
15476# (This is a bit more straightforward than, if not quite as portable as,
15477# the recipe given by the autoconf maintainers.)
15478ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H
15479#include <dirent.h>
15480#endif
15481
15482"
15483if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
15484then :
15485
15486printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
15487
15488fi
15489
15490
15491# Checks for typedefs, structures, and compiler characteristics.
15492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15493printf %s "checking for an ANSI C-conforming const... " >&6; }
15494if test ${ac_cv_c_const+y}
15495then :
15496  printf %s "(cached) " >&6
15497else case e in #(
15498  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499/* end confdefs.h.  */
15500
15501int
15502main (void)
15503{
15504
15505#ifndef __cplusplus
15506  /* Ultrix mips cc rejects this sort of thing.  */
15507  typedef int charset[2];
15508  const charset cs = { 0, 0 };
15509  /* SunOS 4.1.1 cc rejects this.  */
15510  char const *const *pcpcc;
15511  char **ppc;
15512  /* NEC SVR4.0.2 mips cc rejects this.  */
15513  struct point {int x, y;};
15514  static struct point const zero = {0,0};
15515  /* IBM XL C 1.02.0.0 rejects this.
15516     It does not let you subtract one const X* pointer from another in
15517     an arm of an if-expression whose if-part is not a constant
15518     expression */
15519  const char *g = "string";
15520  pcpcc = &g + (g ? g-g : 0);
15521  /* HPUX 7.0 cc rejects these. */
15522  ++pcpcc;
15523  ppc = (char**) pcpcc;
15524  pcpcc = (char const *const *) ppc;
15525  { /* SCO 3.2v4 cc rejects this sort of thing.  */
15526    char tx;
15527    char *t = &tx;
15528    char const *s = 0 ? (char *) 0 : (char const *) 0;
15529
15530    *t++ = 0;
15531    if (s) return 0;
15532  }
15533  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15534    int x[] = {25, 17};
15535    const int *foo = &x[0];
15536    ++foo;
15537  }
15538  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15539    typedef const int *iptr;
15540    iptr p = 0;
15541    ++p;
15542  }
15543  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15544       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15545    struct s { int j; const int *ap[3]; } bx;
15546    struct s *b = &bx; b->j = 5;
15547  }
15548  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15549    const int foo = 10;
15550    if (!foo) return 0;
15551  }
15552  return !cs[0] && !zero.x;
15553#endif
15554
15555  ;
15556  return 0;
15557}
15558_ACEOF
15559if ac_fn_c_try_compile "$LINENO"
15560then :
15561  ac_cv_c_const=yes
15562else case e in #(
15563  e) ac_cv_c_const=no ;;
15564esac
15565fi
15566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15567esac
15568fi
15569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15570printf "%s\n" "$ac_cv_c_const" >&6; }
15571if test $ac_cv_c_const = no; then
15572
15573printf "%s\n" "#define const /**/" >>confdefs.h
15574
15575fi
15576
15577
15578  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
15579"
15580if test "x$ac_cv_type_pid_t" = xyes
15581then :
15582
15583else case e in #(
15584  e)                                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585/* end confdefs.h.  */
15586
15587          #if defined _WIN64 && !defined __CYGWIN__
15588          LLP64
15589          #endif
15590
15591int
15592main (void)
15593{
15594
15595  ;
15596  return 0;
15597}
15598
15599_ACEOF
15600if ac_fn_c_try_compile "$LINENO"
15601then :
15602  ac_pid_type='int'
15603else case e in #(
15604  e) ac_pid_type='__int64' ;;
15605esac
15606fi
15607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15608
15609printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
15610
15611     ;;
15612esac
15613fi
15614
15615
15616ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15617if test "x$ac_cv_type_size_t" = xyes
15618then :
15619
15620else case e in #(
15621  e)
15622printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15623 ;;
15624esac
15625fi
15626
15627ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
15628if test "x$ac_cv_type_u_int32_t" = xyes
15629then :
15630
15631printf "%s\n" "#define HAVE_U_INT32_T 1" >>confdefs.h
15632
15633
15634fi
15635
15636
15637# Checks for library functions.
15638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15639printf %s "checking whether closedir returns void... " >&6; }
15640if test ${ac_cv_func_closedir_void+y}
15641then :
15642  printf %s "(cached) " >&6
15643else case e in #(
15644  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645/* end confdefs.h.  */
15646
15647#include <$ac_header_dirent>
15648
15649int
15650main (void)
15651{
15652
15653  return closedir(0);
15654
15655  ;
15656  return 0;
15657}
15658_ACEOF
15659if ac_fn_c_try_compile "$LINENO"
15660then :
15661  ac_cv_func_closedir_void=no
15662else case e in #(
15663  e) ac_cv_func_closedir_void=yes ;;
15664esac
15665fi
15666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15667esac
15668fi
15669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15670printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15671if test $ac_cv_func_closedir_void = yes; then
15672
15673printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15674
15675fi
15676
15677
15678ac_func=
15679for ac_item in $ac_func_c_list
15680do
15681  if test $ac_func; then
15682    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
15683    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
15684      echo "#define $ac_item 1" >> confdefs.h
15685    fi
15686    ac_func=
15687  else
15688    ac_func=$ac_item
15689  fi
15690done
15691
15692
15693
15694if test "x$ac_cv_func_fork" = xyes; then
15695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15696printf %s "checking for working fork... " >&6; }
15697if test ${ac_cv_func_fork_works+y}
15698then :
15699  printf %s "(cached) " >&6
15700else case e in #(
15701  e) if test "$cross_compiling" = yes
15702then :
15703  ac_cv_func_fork_works=cross
15704else case e in #(
15705  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706/* end confdefs.h.  */
15707$ac_includes_default
15708int
15709main (void)
15710{
15711
15712	  /* By R. Kuhlmann. */
15713	  return fork () < 0;
15714
15715  ;
15716  return 0;
15717}
15718_ACEOF
15719if ac_fn_c_try_run "$LINENO"
15720then :
15721  ac_cv_func_fork_works=yes
15722else case e in #(
15723  e) ac_cv_func_fork_works=no ;;
15724esac
15725fi
15726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15727  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15728esac
15729fi
15730 ;;
15731esac
15732fi
15733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15734printf "%s\n" "$ac_cv_func_fork_works" >&6; }
15735
15736else
15737  ac_cv_func_fork_works=$ac_cv_func_fork
15738fi
15739if test "x$ac_cv_func_fork_works" = xcross; then
15740  case $host in
15741    *-*-amigaos* | *-*-msdosdjgpp*)
15742      # Override, as these systems have only a dummy fork() stub
15743      ac_cv_func_fork_works=no
15744      ;;
15745    *)
15746      ac_cv_func_fork_works=yes
15747      ;;
15748  esac
15749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15750printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15751fi
15752ac_cv_func_vfork_works=$ac_cv_func_vfork
15753if test "x$ac_cv_func_vfork" = xyes; then
15754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15755printf %s "checking for working vfork... " >&6; }
15756if test ${ac_cv_func_vfork_works+y}
15757then :
15758  printf %s "(cached) " >&6
15759else case e in #(
15760  e) if test "$cross_compiling" = yes
15761then :
15762  ac_cv_func_vfork_works=cross
15763else case e in #(
15764  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15765/* end confdefs.h.  */
15766/* Thanks to Paul Eggert for this test.  */
15767$ac_includes_default
15768#include <signal.h>
15769#include <sys/wait.h>
15770#ifdef HAVE_VFORK_H
15771# include <vfork.h>
15772#endif
15773
15774static void
15775do_nothing (int sig)
15776{
15777  (void) sig;
15778}
15779
15780/* On some sparc systems, changes by the child to local and incoming
15781   argument registers are propagated back to the parent.  The compiler
15782   is told about this with #include <vfork.h>, but some compilers
15783   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15784   static variable whose address is put into a register that is
15785   clobbered by the vfork.  */
15786static void
15787sparc_address_test (int arg)
15788{
15789  static pid_t child;
15790  if (!child) {
15791    child = vfork ();
15792    if (child < 0) {
15793      perror ("vfork");
15794      _exit(2);
15795    }
15796    if (!child) {
15797      arg = getpid();
15798      write(-1, "", 0);
15799      _exit (arg);
15800    }
15801  }
15802}
15803
15804int
15805main (void)
15806{
15807  pid_t parent = getpid ();
15808  pid_t child;
15809
15810  sparc_address_test (0);
15811
15812  /* On Solaris 2.4, changes by the child to the signal handler
15813     also munge signal handlers in the parent.  To detect this,
15814     start by putting the parent's handler in a known state.  */
15815  signal (SIGTERM, SIG_DFL);
15816
15817  child = vfork ();
15818
15819  if (child == 0) {
15820    /* Here is another test for sparc vfork register problems.  This
15821       test uses lots of local variables, at least as many local
15822       variables as main has allocated so far including compiler
15823       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15824       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15825       reuse the register of parent for one of the local variables,
15826       since it will think that parent can't possibly be used any more
15827       in this routine.  Assigning to the local variable will thus
15828       munge parent in the parent process.  */
15829    pid_t
15830      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15831      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15832    /* Convince the compiler that p..p7 are live; otherwise, it might
15833       use the same hardware register for all 8 local variables.  */
15834    if (p != p1 || p != p2 || p != p3 || p != p4
15835	|| p != p5 || p != p6 || p != p7)
15836      _exit(1);
15837
15838    /* Alter the child's signal handler.  */
15839    if (signal (SIGTERM, do_nothing) != SIG_DFL)
15840      _exit(1);
15841
15842    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15843       from child file descriptors.  If the child closes a descriptor
15844       before it execs or exits, this munges the parent's descriptor
15845       as well.  Test for this by closing stdout in the child.  */
15846    _exit(close(fileno(stdout)) != 0);
15847  } else {
15848    int status;
15849    struct stat st;
15850
15851    while (wait(&status) != child)
15852      ;
15853    return (
15854	 /* Was there some problem with vforking?  */
15855	 child < 0
15856
15857	 /* Did the child munge the parent's signal handler?  */
15858	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
15859
15860	 /* Did the child fail?  (This shouldn't happen.)  */
15861	 || status
15862
15863	 /* Did the vfork/compiler bug occur?  */
15864	 || parent != getpid()
15865
15866	 /* Did the file descriptor bug occur?  */
15867	 || fstat(fileno(stdout), &st) != 0
15868	 );
15869  }
15870}
15871_ACEOF
15872if ac_fn_c_try_run "$LINENO"
15873then :
15874  ac_cv_func_vfork_works=yes
15875else case e in #(
15876  e) ac_cv_func_vfork_works=no ;;
15877esac
15878fi
15879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15880  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15881esac
15882fi
15883 ;;
15884esac
15885fi
15886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15887printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
15888
15889fi;
15890if test "x$ac_cv_func_fork_works" = xcross; then
15891  ac_cv_func_vfork_works=$ac_cv_func_vfork
15892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15893printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15894fi
15895
15896if test "x$ac_cv_func_vfork_works" = xyes; then
15897
15898printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15899
15900else
15901
15902printf "%s\n" "#define vfork fork" >>confdefs.h
15903
15904fi
15905if test "x$ac_cv_func_fork_works" = xyes; then
15906
15907printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
15908
15909fi
15910
15911ac_ext=c
15912ac_cpp='$CPP $CPPFLAGS'
15913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15915ac_compiler_gnu=$ac_cv_c_compiler_gnu
15916if test -n "$ac_tool_prefix"; then
15917  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15918set dummy ${ac_tool_prefix}gcc; ac_word=$2
15919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15920printf %s "checking for $ac_word... " >&6; }
15921if test ${ac_cv_prog_CC+y}
15922then :
15923  printf %s "(cached) " >&6
15924else case e in #(
15925  e) if test -n "$CC"; then
15926  ac_cv_prog_CC="$CC" # Let the user override the test.
15927else
15928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15929for as_dir in $PATH
15930do
15931  IFS=$as_save_IFS
15932  case $as_dir in #(((
15933    '') as_dir=./ ;;
15934    */) ;;
15935    *) as_dir=$as_dir/ ;;
15936  esac
15937    for ac_exec_ext in '' $ac_executable_extensions; do
15938  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15939    ac_cv_prog_CC="${ac_tool_prefix}gcc"
15940    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15941    break 2
15942  fi
15943done
15944  done
15945IFS=$as_save_IFS
15946
15947fi ;;
15948esac
15949fi
15950CC=$ac_cv_prog_CC
15951if test -n "$CC"; then
15952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15953printf "%s\n" "$CC" >&6; }
15954else
15955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15956printf "%s\n" "no" >&6; }
15957fi
15958
15959
15960fi
15961if test -z "$ac_cv_prog_CC"; then
15962  ac_ct_CC=$CC
15963  # Extract the first word of "gcc", so it can be a program name with args.
15964set dummy gcc; ac_word=$2
15965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15966printf %s "checking for $ac_word... " >&6; }
15967if test ${ac_cv_prog_ac_ct_CC+y}
15968then :
15969  printf %s "(cached) " >&6
15970else case e in #(
15971  e) if test -n "$ac_ct_CC"; then
15972  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15973else
15974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15975for as_dir in $PATH
15976do
15977  IFS=$as_save_IFS
15978  case $as_dir in #(((
15979    '') as_dir=./ ;;
15980    */) ;;
15981    *) as_dir=$as_dir/ ;;
15982  esac
15983    for ac_exec_ext in '' $ac_executable_extensions; do
15984  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15985    ac_cv_prog_ac_ct_CC="gcc"
15986    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15987    break 2
15988  fi
15989done
15990  done
15991IFS=$as_save_IFS
15992
15993fi ;;
15994esac
15995fi
15996ac_ct_CC=$ac_cv_prog_ac_ct_CC
15997if test -n "$ac_ct_CC"; then
15998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15999printf "%s\n" "$ac_ct_CC" >&6; }
16000else
16001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16002printf "%s\n" "no" >&6; }
16003fi
16004
16005  if test "x$ac_ct_CC" = x; then
16006    CC=""
16007  else
16008    case $cross_compiling:$ac_tool_warned in
16009yes:)
16010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16011printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16012ac_tool_warned=yes ;;
16013esac
16014    CC=$ac_ct_CC
16015  fi
16016else
16017  CC="$ac_cv_prog_CC"
16018fi
16019
16020if test -z "$CC"; then
16021          if test -n "$ac_tool_prefix"; then
16022    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16023set dummy ${ac_tool_prefix}cc; ac_word=$2
16024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16025printf %s "checking for $ac_word... " >&6; }
16026if test ${ac_cv_prog_CC+y}
16027then :
16028  printf %s "(cached) " >&6
16029else case e in #(
16030  e) if test -n "$CC"; then
16031  ac_cv_prog_CC="$CC" # Let the user override the test.
16032else
16033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034for as_dir in $PATH
16035do
16036  IFS=$as_save_IFS
16037  case $as_dir in #(((
16038    '') as_dir=./ ;;
16039    */) ;;
16040    *) as_dir=$as_dir/ ;;
16041  esac
16042    for ac_exec_ext in '' $ac_executable_extensions; do
16043  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16044    ac_cv_prog_CC="${ac_tool_prefix}cc"
16045    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16046    break 2
16047  fi
16048done
16049  done
16050IFS=$as_save_IFS
16051
16052fi ;;
16053esac
16054fi
16055CC=$ac_cv_prog_CC
16056if test -n "$CC"; then
16057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16058printf "%s\n" "$CC" >&6; }
16059else
16060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16061printf "%s\n" "no" >&6; }
16062fi
16063
16064
16065  fi
16066fi
16067if test -z "$CC"; then
16068  # Extract the first word of "cc", so it can be a program name with args.
16069set dummy cc; ac_word=$2
16070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16071printf %s "checking for $ac_word... " >&6; }
16072if test ${ac_cv_prog_CC+y}
16073then :
16074  printf %s "(cached) " >&6
16075else case e in #(
16076  e) if test -n "$CC"; then
16077  ac_cv_prog_CC="$CC" # Let the user override the test.
16078else
16079  ac_prog_rejected=no
16080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16081for as_dir in $PATH
16082do
16083  IFS=$as_save_IFS
16084  case $as_dir in #(((
16085    '') as_dir=./ ;;
16086    */) ;;
16087    *) as_dir=$as_dir/ ;;
16088  esac
16089    for ac_exec_ext in '' $ac_executable_extensions; do
16090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16091    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16092       ac_prog_rejected=yes
16093       continue
16094     fi
16095    ac_cv_prog_CC="cc"
16096    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16097    break 2
16098  fi
16099done
16100  done
16101IFS=$as_save_IFS
16102
16103if test $ac_prog_rejected = yes; then
16104  # We found a bogon in the path, so make sure we never use it.
16105  set dummy $ac_cv_prog_CC
16106  shift
16107  if test $# != 0; then
16108    # We chose a different compiler from the bogus one.
16109    # However, it has the same basename, so the bogon will be chosen
16110    # first if we set CC to just the basename; use the full file name.
16111    shift
16112    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
16113  fi
16114fi
16115fi ;;
16116esac
16117fi
16118CC=$ac_cv_prog_CC
16119if test -n "$CC"; then
16120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16121printf "%s\n" "$CC" >&6; }
16122else
16123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16124printf "%s\n" "no" >&6; }
16125fi
16126
16127
16128fi
16129if test -z "$CC"; then
16130  if test -n "$ac_tool_prefix"; then
16131  for ac_prog in cl.exe
16132  do
16133    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16136printf %s "checking for $ac_word... " >&6; }
16137if test ${ac_cv_prog_CC+y}
16138then :
16139  printf %s "(cached) " >&6
16140else case e in #(
16141  e) if test -n "$CC"; then
16142  ac_cv_prog_CC="$CC" # Let the user override the test.
16143else
16144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16145for as_dir in $PATH
16146do
16147  IFS=$as_save_IFS
16148  case $as_dir in #(((
16149    '') as_dir=./ ;;
16150    */) ;;
16151    *) as_dir=$as_dir/ ;;
16152  esac
16153    for ac_exec_ext in '' $ac_executable_extensions; do
16154  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16155    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16156    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16157    break 2
16158  fi
16159done
16160  done
16161IFS=$as_save_IFS
16162
16163fi ;;
16164esac
16165fi
16166CC=$ac_cv_prog_CC
16167if test -n "$CC"; then
16168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16169printf "%s\n" "$CC" >&6; }
16170else
16171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16172printf "%s\n" "no" >&6; }
16173fi
16174
16175
16176    test -n "$CC" && break
16177  done
16178fi
16179if test -z "$CC"; then
16180  ac_ct_CC=$CC
16181  for ac_prog in cl.exe
16182do
16183  # Extract the first word of "$ac_prog", so it can be a program name with args.
16184set dummy $ac_prog; ac_word=$2
16185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16186printf %s "checking for $ac_word... " >&6; }
16187if test ${ac_cv_prog_ac_ct_CC+y}
16188then :
16189  printf %s "(cached) " >&6
16190else case e in #(
16191  e) if test -n "$ac_ct_CC"; then
16192  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16193else
16194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16195for as_dir in $PATH
16196do
16197  IFS=$as_save_IFS
16198  case $as_dir in #(((
16199    '') as_dir=./ ;;
16200    */) ;;
16201    *) as_dir=$as_dir/ ;;
16202  esac
16203    for ac_exec_ext in '' $ac_executable_extensions; do
16204  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16205    ac_cv_prog_ac_ct_CC="$ac_prog"
16206    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16207    break 2
16208  fi
16209done
16210  done
16211IFS=$as_save_IFS
16212
16213fi ;;
16214esac
16215fi
16216ac_ct_CC=$ac_cv_prog_ac_ct_CC
16217if test -n "$ac_ct_CC"; then
16218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16219printf "%s\n" "$ac_ct_CC" >&6; }
16220else
16221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222printf "%s\n" "no" >&6; }
16223fi
16224
16225
16226  test -n "$ac_ct_CC" && break
16227done
16228
16229  if test "x$ac_ct_CC" = x; then
16230    CC=""
16231  else
16232    case $cross_compiling:$ac_tool_warned in
16233yes:)
16234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16235printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16236ac_tool_warned=yes ;;
16237esac
16238    CC=$ac_ct_CC
16239  fi
16240fi
16241
16242fi
16243if test -z "$CC"; then
16244  if test -n "$ac_tool_prefix"; then
16245  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
16246set dummy ${ac_tool_prefix}clang; ac_word=$2
16247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16248printf %s "checking for $ac_word... " >&6; }
16249if test ${ac_cv_prog_CC+y}
16250then :
16251  printf %s "(cached) " >&6
16252else case e in #(
16253  e) if test -n "$CC"; then
16254  ac_cv_prog_CC="$CC" # Let the user override the test.
16255else
16256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16257for as_dir in $PATH
16258do
16259  IFS=$as_save_IFS
16260  case $as_dir in #(((
16261    '') as_dir=./ ;;
16262    */) ;;
16263    *) as_dir=$as_dir/ ;;
16264  esac
16265    for ac_exec_ext in '' $ac_executable_extensions; do
16266  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16267    ac_cv_prog_CC="${ac_tool_prefix}clang"
16268    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16269    break 2
16270  fi
16271done
16272  done
16273IFS=$as_save_IFS
16274
16275fi ;;
16276esac
16277fi
16278CC=$ac_cv_prog_CC
16279if test -n "$CC"; then
16280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16281printf "%s\n" "$CC" >&6; }
16282else
16283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284printf "%s\n" "no" >&6; }
16285fi
16286
16287
16288fi
16289if test -z "$ac_cv_prog_CC"; then
16290  ac_ct_CC=$CC
16291  # Extract the first word of "clang", so it can be a program name with args.
16292set dummy clang; ac_word=$2
16293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16294printf %s "checking for $ac_word... " >&6; }
16295if test ${ac_cv_prog_ac_ct_CC+y}
16296then :
16297  printf %s "(cached) " >&6
16298else case e in #(
16299  e) if test -n "$ac_ct_CC"; then
16300  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16301else
16302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16303for as_dir in $PATH
16304do
16305  IFS=$as_save_IFS
16306  case $as_dir in #(((
16307    '') as_dir=./ ;;
16308    */) ;;
16309    *) as_dir=$as_dir/ ;;
16310  esac
16311    for ac_exec_ext in '' $ac_executable_extensions; do
16312  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16313    ac_cv_prog_ac_ct_CC="clang"
16314    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16315    break 2
16316  fi
16317done
16318  done
16319IFS=$as_save_IFS
16320
16321fi ;;
16322esac
16323fi
16324ac_ct_CC=$ac_cv_prog_ac_ct_CC
16325if test -n "$ac_ct_CC"; then
16326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16327printf "%s\n" "$ac_ct_CC" >&6; }
16328else
16329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16330printf "%s\n" "no" >&6; }
16331fi
16332
16333  if test "x$ac_ct_CC" = x; then
16334    CC=""
16335  else
16336    case $cross_compiling:$ac_tool_warned in
16337yes:)
16338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16339printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16340ac_tool_warned=yes ;;
16341esac
16342    CC=$ac_ct_CC
16343  fi
16344else
16345  CC="$ac_cv_prog_CC"
16346fi
16347
16348fi
16349
16350
16351test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16352printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16353as_fn_error $? "no acceptable C compiler found in \$PATH
16354See 'config.log' for more details" "$LINENO" 5; }
16355
16356# Provide some information about the compiler.
16357printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16358set X $ac_compile
16359ac_compiler=$2
16360for ac_option in --version -v -V -qversion -version; do
16361  { { ac_try="$ac_compiler $ac_option >&5"
16362case "(($ac_try" in
16363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364  *) ac_try_echo=$ac_try;;
16365esac
16366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16367printf "%s\n" "$ac_try_echo"; } >&5
16368  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16369  ac_status=$?
16370  if test -s conftest.err; then
16371    sed '10a\
16372... rest of stderr output deleted ...
16373         10q' conftest.err >conftest.er1
16374    cat conftest.er1 >&5
16375  fi
16376  rm -f conftest.er1 conftest.err
16377  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16378  test $ac_status = 0; }
16379done
16380
16381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
16382printf %s "checking whether the compiler supports GNU C... " >&6; }
16383if test ${ac_cv_c_compiler_gnu+y}
16384then :
16385  printf %s "(cached) " >&6
16386else case e in #(
16387  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388/* end confdefs.h.  */
16389
16390int
16391main (void)
16392{
16393#ifndef __GNUC__
16394       choke me
16395#endif
16396
16397  ;
16398  return 0;
16399}
16400_ACEOF
16401if ac_fn_c_try_compile "$LINENO"
16402then :
16403  ac_compiler_gnu=yes
16404else case e in #(
16405  e) ac_compiler_gnu=no ;;
16406esac
16407fi
16408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16409ac_cv_c_compiler_gnu=$ac_compiler_gnu
16410 ;;
16411esac
16412fi
16413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16414printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
16415ac_compiler_gnu=$ac_cv_c_compiler_gnu
16416
16417if test $ac_compiler_gnu = yes; then
16418  GCC=yes
16419else
16420  GCC=
16421fi
16422ac_test_CFLAGS=${CFLAGS+y}
16423ac_save_CFLAGS=$CFLAGS
16424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16425printf %s "checking whether $CC accepts -g... " >&6; }
16426if test ${ac_cv_prog_cc_g+y}
16427then :
16428  printf %s "(cached) " >&6
16429else case e in #(
16430  e) ac_save_c_werror_flag=$ac_c_werror_flag
16431   ac_c_werror_flag=yes
16432   ac_cv_prog_cc_g=no
16433   CFLAGS="-g"
16434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435/* end confdefs.h.  */
16436
16437int
16438main (void)
16439{
16440
16441  ;
16442  return 0;
16443}
16444_ACEOF
16445if ac_fn_c_try_compile "$LINENO"
16446then :
16447  ac_cv_prog_cc_g=yes
16448else case e in #(
16449  e) CFLAGS=""
16450      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451/* end confdefs.h.  */
16452
16453int
16454main (void)
16455{
16456
16457  ;
16458  return 0;
16459}
16460_ACEOF
16461if ac_fn_c_try_compile "$LINENO"
16462then :
16463
16464else case e in #(
16465  e) ac_c_werror_flag=$ac_save_c_werror_flag
16466	 CFLAGS="-g"
16467	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468/* end confdefs.h.  */
16469
16470int
16471main (void)
16472{
16473
16474  ;
16475  return 0;
16476}
16477_ACEOF
16478if ac_fn_c_try_compile "$LINENO"
16479then :
16480  ac_cv_prog_cc_g=yes
16481fi
16482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16483esac
16484fi
16485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16486esac
16487fi
16488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16489   ac_c_werror_flag=$ac_save_c_werror_flag ;;
16490esac
16491fi
16492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16493printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
16494if test $ac_test_CFLAGS; then
16495  CFLAGS=$ac_save_CFLAGS
16496elif test $ac_cv_prog_cc_g = yes; then
16497  if test "$GCC" = yes; then
16498    CFLAGS="-g -O2"
16499  else
16500    CFLAGS="-g"
16501  fi
16502else
16503  if test "$GCC" = yes; then
16504    CFLAGS="-O2"
16505  else
16506    CFLAGS=
16507  fi
16508fi
16509ac_prog_cc_stdc=no
16510if test x$ac_prog_cc_stdc = xno
16511then :
16512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
16513printf %s "checking for $CC option to enable C11 features... " >&6; }
16514if test ${ac_cv_prog_cc_c11+y}
16515then :
16516  printf %s "(cached) " >&6
16517else case e in #(
16518  e) ac_cv_prog_cc_c11=no
16519ac_save_CC=$CC
16520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521/* end confdefs.h.  */
16522$ac_c_conftest_c11_program
16523_ACEOF
16524for ac_arg in '' -std=gnu11
16525do
16526  CC="$ac_save_CC $ac_arg"
16527  if ac_fn_c_try_compile "$LINENO"
16528then :
16529  ac_cv_prog_cc_c11=$ac_arg
16530fi
16531rm -f core conftest.err conftest.$ac_objext conftest.beam
16532  test "x$ac_cv_prog_cc_c11" != "xno" && break
16533done
16534rm -f conftest.$ac_ext
16535CC=$ac_save_CC ;;
16536esac
16537fi
16538
16539if test "x$ac_cv_prog_cc_c11" = xno
16540then :
16541  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16542printf "%s\n" "unsupported" >&6; }
16543else case e in #(
16544  e) if test "x$ac_cv_prog_cc_c11" = x
16545then :
16546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16547printf "%s\n" "none needed" >&6; }
16548else case e in #(
16549  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
16550printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
16551     CC="$CC $ac_cv_prog_cc_c11" ;;
16552esac
16553fi
16554  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
16555  ac_prog_cc_stdc=c11 ;;
16556esac
16557fi
16558fi
16559if test x$ac_prog_cc_stdc = xno
16560then :
16561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
16562printf %s "checking for $CC option to enable C99 features... " >&6; }
16563if test ${ac_cv_prog_cc_c99+y}
16564then :
16565  printf %s "(cached) " >&6
16566else case e in #(
16567  e) ac_cv_prog_cc_c99=no
16568ac_save_CC=$CC
16569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570/* end confdefs.h.  */
16571$ac_c_conftest_c99_program
16572_ACEOF
16573for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
16574do
16575  CC="$ac_save_CC $ac_arg"
16576  if ac_fn_c_try_compile "$LINENO"
16577then :
16578  ac_cv_prog_cc_c99=$ac_arg
16579fi
16580rm -f core conftest.err conftest.$ac_objext conftest.beam
16581  test "x$ac_cv_prog_cc_c99" != "xno" && break
16582done
16583rm -f conftest.$ac_ext
16584CC=$ac_save_CC ;;
16585esac
16586fi
16587
16588if test "x$ac_cv_prog_cc_c99" = xno
16589then :
16590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16591printf "%s\n" "unsupported" >&6; }
16592else case e in #(
16593  e) if test "x$ac_cv_prog_cc_c99" = x
16594then :
16595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16596printf "%s\n" "none needed" >&6; }
16597else case e in #(
16598  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
16599printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
16600     CC="$CC $ac_cv_prog_cc_c99" ;;
16601esac
16602fi
16603  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
16604  ac_prog_cc_stdc=c99 ;;
16605esac
16606fi
16607fi
16608if test x$ac_prog_cc_stdc = xno
16609then :
16610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
16611printf %s "checking for $CC option to enable C89 features... " >&6; }
16612if test ${ac_cv_prog_cc_c89+y}
16613then :
16614  printf %s "(cached) " >&6
16615else case e in #(
16616  e) ac_cv_prog_cc_c89=no
16617ac_save_CC=$CC
16618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619/* end confdefs.h.  */
16620$ac_c_conftest_c89_program
16621_ACEOF
16622for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16623do
16624  CC="$ac_save_CC $ac_arg"
16625  if ac_fn_c_try_compile "$LINENO"
16626then :
16627  ac_cv_prog_cc_c89=$ac_arg
16628fi
16629rm -f core conftest.err conftest.$ac_objext conftest.beam
16630  test "x$ac_cv_prog_cc_c89" != "xno" && break
16631done
16632rm -f conftest.$ac_ext
16633CC=$ac_save_CC ;;
16634esac
16635fi
16636
16637if test "x$ac_cv_prog_cc_c89" = xno
16638then :
16639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16640printf "%s\n" "unsupported" >&6; }
16641else case e in #(
16642  e) if test "x$ac_cv_prog_cc_c89" = x
16643then :
16644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16645printf "%s\n" "none needed" >&6; }
16646else case e in #(
16647  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16648printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
16649     CC="$CC $ac_cv_prog_cc_c89" ;;
16650esac
16651fi
16652  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
16653  ac_prog_cc_stdc=c89 ;;
16654esac
16655fi
16656fi
16657
16658ac_ext=c
16659ac_cpp='$CPP $CPPFLAGS'
16660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16662ac_compiler_gnu=$ac_cv_c_compiler_gnu
16663
16664
16665  ac_ext=c
16666ac_cpp='$CPP $CPPFLAGS'
16667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16669ac_compiler_gnu=$ac_cv_c_compiler_gnu
16670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16671printf %s "checking whether $CC understands -c and -o together... " >&6; }
16672if test ${am_cv_prog_cc_c_o+y}
16673then :
16674  printf %s "(cached) " >&6
16675else case e in #(
16676  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677/* end confdefs.h.  */
16678
16679int
16680main (void)
16681{
16682
16683  ;
16684  return 0;
16685}
16686_ACEOF
16687  # Make sure it works both with $CC and with simple cc.
16688  # Following AC_PROG_CC_C_O, we do the test twice because some
16689  # compilers refuse to overwrite an existing .o file with -o,
16690  # though they will create one.
16691  am_cv_prog_cc_c_o=yes
16692  for am_i in 1 2; do
16693    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16694   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } \
16698         && test -f conftest2.$ac_objext; then
16699      : OK
16700    else
16701      am_cv_prog_cc_c_o=no
16702      break
16703    fi
16704  done
16705  rm -f core conftest*
16706  unset am_i ;;
16707esac
16708fi
16709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16710printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
16711if test "$am_cv_prog_cc_c_o" != yes; then
16712   # Losing compiler, so override with the script.
16713   # FIXME: It is wrong to rewrite CC.
16714   # But if we don't then we get into trouble of one sort or another.
16715   # A longer-term fix would be to have automake use am__CC in this case,
16716   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16717   CC="$am_aux_dir/compile $CC"
16718fi
16719ac_ext=c
16720ac_cpp='$CPP $CPPFLAGS'
16721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16723ac_compiler_gnu=$ac_cv_c_compiler_gnu
16724
16725
16726## _AIX is offended by rpl_malloc and rpl_realloc
16727#AC_FUNC_MALLOC
16728#AC_FUNC_REALLOC
16729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16730printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
16731if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
16732then :
16733  printf %s "(cached) " >&6
16734else case e in #(
16735  e) rm -f conftest.sym conftest.file
16736echo >conftest.file
16737if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16738  if test "$cross_compiling" = yes
16739then :
16740  case "$host_os" in # ((
16741			   # Guess yes on glibc systems.
16742		   *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
16743			   # If we don't know, assume the worst.
16744		   *)      ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
16745		 esac
16746else case e in #(
16747  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h.  */
16749$ac_includes_default
16750int
16751main (void)
16752{
16753struct stat sbuf;
16754     /* Linux will dereference the symlink and fail, as required by POSIX.
16755	That is better in the sense that it means we will not
16756	have to compile and use the lstat wrapper.  */
16757     return lstat ("conftest.sym/", &sbuf) == 0;
16758  ;
16759  return 0;
16760}
16761_ACEOF
16762if ac_fn_c_try_run "$LINENO"
16763then :
16764  ac_cv_func_lstat_dereferences_slashed_symlink=yes
16765else case e in #(
16766  e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
16767esac
16768fi
16769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16770  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16771esac
16772fi
16773
16774else
16775  # If the 'ln -s' command failed, then we probably don't even
16776  # have an lstat function.
16777  ac_cv_func_lstat_dereferences_slashed_symlink=no
16778fi
16779rm -f conftest.sym conftest.file
16780 ;;
16781esac
16782fi
16783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16784printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16785
16786test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16787
16788printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
16789
16790
16791if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16792  case " $LIBOBJS " in
16793  *" lstat.$ac_objext "* ) ;;
16794  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16795 ;;
16796esac
16797
16798fi
16799
16800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
16801printf %s "checking whether stat accepts an empty string... " >&6; }
16802if test ${ac_cv_func_stat_empty_string_bug+y}
16803then :
16804  printf %s "(cached) " >&6
16805else case e in #(
16806  e) if test "$cross_compiling" = yes
16807then :
16808  ac_cv_func_stat_empty_string_bug=yes
16809else case e in #(
16810  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811/* end confdefs.h.  */
16812$ac_includes_default
16813int
16814main (void)
16815{
16816struct stat sbuf;
16817  return stat ("", &sbuf) == 0;
16818  ;
16819  return 0;
16820}
16821_ACEOF
16822if ac_fn_c_try_run "$LINENO"
16823then :
16824  ac_cv_func_stat_empty_string_bug=no
16825else case e in #(
16826  e) ac_cv_func_stat_empty_string_bug=yes ;;
16827esac
16828fi
16829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16830  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16831esac
16832fi
16833 ;;
16834esac
16835fi
16836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
16837printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
16838if test $ac_cv_func_stat_empty_string_bug = yes; then
16839  case " $LIBOBJS " in
16840  *" stat.$ac_objext "* ) ;;
16841  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
16842 ;;
16843esac
16844
16845
16846printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
16847
16848fi
16849
16850ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
16851if test "x$ac_cv_func_endpwent" = xyes
16852then :
16853  printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h
16854
16855fi
16856ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
16857if test "x$ac_cv_func_isascii" = xyes
16858then :
16859  printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h
16860
16861fi
16862ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
16863if test "x$ac_cv_func_memchr" = xyes
16864then :
16865  printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h
16866
16867fi
16868ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
16869if test "x$ac_cv_func_memset" = xyes
16870then :
16871  printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
16872
16873fi
16874ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
16875if test "x$ac_cv_func_re_comp" = xyes
16876then :
16877  printf "%s\n" "#define HAVE_RE_COMP 1" >>confdefs.h
16878
16879fi
16880ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
16881if test "x$ac_cv_func_regcomp" = xyes
16882then :
16883  printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
16884
16885fi
16886ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
16887if test "x$ac_cv_func_strcasecmp" = xyes
16888then :
16889  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
16890
16891fi
16892ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
16893if test "x$ac_cv_func_strchr" = xyes
16894then :
16895  printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
16896
16897fi
16898ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
16899if test "x$ac_cv_func_strcspn" = xyes
16900then :
16901  printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
16902
16903fi
16904ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
16905if test "x$ac_cv_func_strdup" = xyes
16906then :
16907  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
16908
16909fi
16910ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
16911if test "x$ac_cv_func_strerror" = xyes
16912then :
16913  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
16914
16915fi
16916ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
16917if test "x$ac_cv_func_strrchr" = xyes
16918then :
16919  printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
16920
16921fi
16922ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
16923if test "x$ac_cv_func_strstr" = xyes
16924then :
16925  printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
16926
16927fi
16928ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
16929if test "x$ac_cv_func_strtol" = xyes
16930then :
16931  printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
16932
16933fi
16934ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
16935if test "x$ac_cv_func_issetugid" = xyes
16936then :
16937  printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
16938
16939fi
16940ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
16941if test "x$ac_cv_func_wcsdup" = xyes
16942then :
16943  printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
16944
16945fi
16946ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16947if test "x$ac_cv_func_strlcpy" = xyes
16948then :
16949  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
16950
16951fi
16952ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
16953if test "x$ac_cv_func_strlcat" = xyes
16954then :
16955  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
16956
16957fi
16958ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis"
16959if test "x$ac_cv_func_vis" = xyes
16960then :
16961  printf "%s\n" "#define HAVE_VIS 1" >>confdefs.h
16962
16963fi
16964ac_fn_c_check_func "$LINENO" "strvis" "ac_cv_func_strvis"
16965if test "x$ac_cv_func_strvis" = xyes
16966then :
16967  printf "%s\n" "#define HAVE_STRVIS 1" >>confdefs.h
16968
16969fi
16970ac_fn_c_check_func "$LINENO" "strunvis" "ac_cv_func_strunvis"
16971if test "x$ac_cv_func_strunvis" = xyes
16972then :
16973  printf "%s\n" "#define HAVE_STRUNVIS 1" >>confdefs.h
16974
16975fi
16976ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
16977if test "x$ac_cv_func___secure_getenv" = xyes
16978then :
16979  printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
16980
16981fi
16982ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
16983if test "x$ac_cv_func_secure_getenv" = xyes
16984then :
16985  printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
16986
16987fi
16988ac_fn_c_check_func "$LINENO" "reallocarr" "ac_cv_func_reallocarr"
16989if test "x$ac_cv_func_reallocarr" = xyes
16990then :
16991  printf "%s\n" "#define HAVE_REALLOCARR 1" >>confdefs.h
16992
16993fi
16994
16995
16996# strlcpy
16997ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16998if test "x$ac_cv_func_strlcpy" = xyes
16999then :
17000  found_strlcpy=yes
17001else case e in #(
17002  e) found_strlcpy=no ;;
17003esac
17004fi
17005
17006 if test "x$found_strlcpy" = xyes; then
17007  HAVE_STRLCPY_TRUE=
17008  HAVE_STRLCPY_FALSE='#'
17009else
17010  HAVE_STRLCPY_TRUE='#'
17011  HAVE_STRLCPY_FALSE=
17012fi
17013
17014
17015# strlcat
17016ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17017if test "x$ac_cv_func_strlcat" = xyes
17018then :
17019  found_strlcat=yes
17020else case e in #(
17021  e) found_strlcat=no ;;
17022esac
17023fi
17024
17025 if test "x$found_strlcat" = xyes; then
17026  HAVE_STRLCAT_TRUE=
17027  HAVE_STRLCAT_FALSE='#'
17028else
17029  HAVE_STRLCAT_TRUE='#'
17030  HAVE_STRLCAT_FALSE=
17031fi
17032
17033
17034# getline
17035ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
17036if test "x$ac_cv_func_getline" = xyes
17037then :
17038  found_getline=yes
17039else case e in #(
17040  e) found_getline=no ;;
17041esac
17042fi
17043
17044 if test "x$found_getline" = xyes; then
17045  HAVE_GETLINE_TRUE=
17046  HAVE_GETLINE_FALSE='#'
17047else
17048  HAVE_GETLINE_TRUE='#'
17049  HAVE_GETLINE_FALSE=
17050fi
17051
17052
17053# vis
17054ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis"
17055if test "x$ac_cv_func_vis" = xyes
17056then :
17057  found_vis=yes
17058else case e in #(
17059  e) found_vis=no ;;
17060esac
17061fi
17062
17063 if test "x$found_vis" = xyes; then
17064  HAVE_VIS_TRUE=
17065  HAVE_VIS_FALSE='#'
17066else
17067  HAVE_VIS_TRUE='#'
17068  HAVE_VIS_FALSE=
17069fi
17070
17071
17072# unvis
17073ac_fn_c_check_func "$LINENO" "unvis" "ac_cv_func_unvis"
17074if test "x$ac_cv_func_unvis" = xyes
17075then :
17076  found_unvis=yes
17077else case e in #(
17078  e) found_unvis=no ;;
17079esac
17080fi
17081
17082 if test "x$found_unvis" = xyes; then
17083  HAVE_UNVIS_TRUE=
17084  HAVE_UNVIS_FALSE='#'
17085else
17086  HAVE_UNVIS_TRUE='#'
17087  HAVE_UNVIS_FALSE=
17088fi
17089
17090
17091
17092
17093   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix like" >&5
17094printf %s "checking whether getpwnam_r and getpwuid_r are posix like... " >&6; }
17095      # The prototype for the POSIX version is:
17096      # int getpwnam_r(char *, struct passwd *, char *, size_t, struct passwd **)
17097      # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
17098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099/* end confdefs.h.  */
17100#include <stdlib.h>
17101                #include <sys/types.h>
17102                #include <pwd.h>
17103int
17104main (void)
17105{
17106getpwnam_r(NULL, NULL, NULL, (size_t)0, NULL);
17107                getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
17108  ;
17109  return 0;
17110}
17111_ACEOF
17112if ac_fn_c_try_link "$LINENO"
17113then :
17114
17115printf "%s\n" "#define HAVE_GETPW_R_POSIX 1" >>confdefs.h
17116
17117       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17118printf "%s\n" "yes" >&6; }
17119else case e in #(
17120  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17121printf "%s\n" "no" >&6; } ;;
17122esac
17123fi
17124rm -f core conftest.err conftest.$ac_objext conftest.beam \
17125    conftest$ac_exeext conftest.$ac_ext
17126
17127
17128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix _draft_ like" >&5
17129printf %s "checking whether getpwnam_r and getpwuid_r are posix _draft_ like... " >&6; }
17130      # The prototype for the POSIX draft version is:
17131      # struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
17132      # struct passwd *getpwnam_r(char *, struct passwd *,  char *, int);
17133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134/* end confdefs.h.  */
17135#include <stdlib.h>
17136                #include <sys/types.h>
17137                #include <pwd.h>
17138int
17139main (void)
17140{
17141getpwnam_r(NULL, NULL, NULL, (size_t)0);
17142                getpwuid_r((uid_t)0, NULL, NULL, (size_t)0);
17143  ;
17144  return 0;
17145}
17146_ACEOF
17147if ac_fn_c_try_link "$LINENO"
17148then :
17149
17150printf "%s\n" "#define HAVE_GETPW_R_DRAFT 1" >>confdefs.h
17151
17152       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17153printf "%s\n" "yes" >&6; }
17154else case e in #(
17155  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17156printf "%s\n" "no" >&6; } ;;
17157esac
17158fi
17159rm -f core conftest.err conftest.$ac_objext conftest.beam \
17160    conftest$ac_exeext conftest.$ac_ext
17161
17162
17163
17164
17165
17166ac_config_files="$ac_config_files Makefile libedit.pc src/Makefile doc/Makefile examples/Makefile"
17167
17168cat >confcache <<\_ACEOF
17169# This file is a shell script that caches the results of configure
17170# tests run on this system so they can be shared between configure
17171# scripts and configure runs, see configure's option --config-cache.
17172# It is not useful on other systems.  If it contains results you don't
17173# want to keep, you may remove or edit it.
17174#
17175# config.status only pays attention to the cache file if you give it
17176# the --recheck option to rerun configure.
17177#
17178# 'ac_cv_env_foo' variables (set or unset) will be overridden when
17179# loading this file, other *unset* 'ac_cv_foo' will be assigned the
17180# following values.
17181
17182_ACEOF
17183
17184# The following way of writing the cache mishandles newlines in values,
17185# but we know of no workaround that is simple, portable, and efficient.
17186# So, we kill variables containing newlines.
17187# Ultrix sh set writes to stderr and can't be redirected directly,
17188# and sets the high bit in the cache file unless we assign to the vars.
17189(
17190  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17191    eval ac_val=\$$ac_var
17192    case $ac_val in #(
17193    *${as_nl}*)
17194      case $ac_var in #(
17195      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17196printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17197      esac
17198      case $ac_var in #(
17199      _ | IFS | as_nl) ;; #(
17200      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17201      *) { eval $ac_var=; unset $ac_var;} ;;
17202      esac ;;
17203    esac
17204  done
17205
17206  (set) 2>&1 |
17207    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17208    *${as_nl}ac_space=\ *)
17209      # 'set' does not quote correctly, so add quotes: double-quote
17210      # substitution turns \\\\ into \\, and sed turns \\ into \.
17211      sed -n \
17212	"s/'/'\\\\''/g;
17213	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17214      ;; #(
17215    *)
17216      # 'set' quotes correctly as required by POSIX, so do not add quotes.
17217      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17218      ;;
17219    esac |
17220    sort
17221) |
17222  sed '
17223     /^ac_cv_env_/b end
17224     t clear
17225     :clear
17226     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17227     t end
17228     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17229     :end' >>confcache
17230if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17231  if test -w "$cache_file"; then
17232    if test "x$cache_file" != "x/dev/null"; then
17233      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17234printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17235      if test ! -f "$cache_file" || test -h "$cache_file"; then
17236	cat confcache >"$cache_file"
17237      else
17238        case $cache_file in #(
17239        */* | ?:*)
17240	  mv -f confcache "$cache_file"$$ &&
17241	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17242        *)
17243	  mv -f confcache "$cache_file" ;;
17244	esac
17245      fi
17246    fi
17247  else
17248    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17249printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17250  fi
17251fi
17252rm -f confcache
17253
17254test "x$prefix" = xNONE && prefix=$ac_default_prefix
17255# Let make expand exec_prefix.
17256test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17257
17258DEFS=-DHAVE_CONFIG_H
17259
17260ac_libobjs=
17261ac_ltlibobjs=
17262U=
17263for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17264  # 1. Remove the extension, and $U if already installed.
17265  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17266  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17267  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17268  #    will be set to the directory where LIBOBJS objects are built.
17269  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17270  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17271done
17272LIBOBJS=$ac_libobjs
17273
17274LTLIBOBJS=$ac_ltlibobjs
17275
17276
17277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17278printf %s "checking that generated files are newer than configure... " >&6; }
17279   if test -n "$am_sleep_pid"; then
17280     # Hide warnings about reused PIDs.
17281     wait $am_sleep_pid 2>/dev/null
17282   fi
17283   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17284printf "%s\n" "done" >&6; }
17285if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17286  as_fn_error $? "conditional \"AMDEP\" was never defined.
17287Usually this means the macro was only invoked conditionally." "$LINENO" 5
17288fi
17289if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17290  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17291Usually this means the macro was only invoked conditionally." "$LINENO" 5
17292fi
17293case $enable_silent_rules in # (((
17294  yes) AM_DEFAULT_VERBOSITY=0;;
17295   no) AM_DEFAULT_VERBOSITY=1;;
17296esac
17297if test $am_cv_make_support_nested_variables = yes; then
17298    AM_V='$(V)'
17299  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17300else
17301  AM_V=$AM_DEFAULT_VERBOSITY
17302  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17303fi
17304
17305 if test -n "$EXEEXT"; then
17306  am__EXEEXT_TRUE=
17307  am__EXEEXT_FALSE='#'
17308else
17309  am__EXEEXT_TRUE='#'
17310  am__EXEEXT_FALSE=
17311fi
17312
17313if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
17314  as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
17315Usually this means the macro was only invoked conditionally." "$LINENO" 5
17316fi
17317if test -z "${HAVE_STRLCPY_TRUE}" && test -z "${HAVE_STRLCPY_FALSE}"; then
17318  as_fn_error $? "conditional \"HAVE_STRLCPY\" was never defined.
17319Usually this means the macro was only invoked conditionally." "$LINENO" 5
17320fi
17321if test -z "${HAVE_STRLCAT_TRUE}" && test -z "${HAVE_STRLCAT_FALSE}"; then
17322  as_fn_error $? "conditional \"HAVE_STRLCAT\" was never defined.
17323Usually this means the macro was only invoked conditionally." "$LINENO" 5
17324fi
17325if test -z "${HAVE_GETLINE_TRUE}" && test -z "${HAVE_GETLINE_FALSE}"; then
17326  as_fn_error $? "conditional \"HAVE_GETLINE\" was never defined.
17327Usually this means the macro was only invoked conditionally." "$LINENO" 5
17328fi
17329if test -z "${HAVE_VIS_TRUE}" && test -z "${HAVE_VIS_FALSE}"; then
17330  as_fn_error $? "conditional \"HAVE_VIS\" was never defined.
17331Usually this means the macro was only invoked conditionally." "$LINENO" 5
17332fi
17333if test -z "${HAVE_UNVIS_TRUE}" && test -z "${HAVE_UNVIS_FALSE}"; then
17334  as_fn_error $? "conditional \"HAVE_UNVIS\" was never defined.
17335Usually this means the macro was only invoked conditionally." "$LINENO" 5
17336fi
17337
17338: "${CONFIG_STATUS=./config.status}"
17339ac_write_fail=0
17340ac_clean_files_save=$ac_clean_files
17341ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17343printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17344as_write_fail=0
17345cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17346#! $SHELL
17347# Generated by $as_me.
17348# Run this file to recreate the current configuration.
17349# Compiler output produced by configure, useful for debugging
17350# configure, is in config.log if it exists.
17351
17352debug=false
17353ac_cs_recheck=false
17354ac_cs_silent=false
17355
17356SHELL=\${CONFIG_SHELL-$SHELL}
17357export SHELL
17358_ASEOF
17359cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17360## -------------------- ##
17361## M4sh Initialization. ##
17362## -------------------- ##
17363
17364# Be more Bourne compatible
17365DUALCASE=1; export DUALCASE # for MKS sh
17366if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17367then :
17368  emulate sh
17369  NULLCMD=:
17370  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17371  # is contrary to our usage.  Disable this feature.
17372  alias -g '${1+"$@"}'='"$@"'
17373  setopt NO_GLOB_SUBST
17374else case e in #(
17375  e) case `(set -o) 2>/dev/null` in #(
17376  *posix*) :
17377    set -o posix ;; #(
17378  *) :
17379     ;;
17380esac ;;
17381esac
17382fi
17383
17384
17385
17386# Reset variables that may have inherited troublesome values from
17387# the environment.
17388
17389# IFS needs to be set, to space, tab, and newline, in precisely that order.
17390# (If _AS_PATH_WALK were called with IFS unset, it would have the
17391# side effect of setting IFS to empty, thus disabling word splitting.)
17392# Quoting is to prevent editors from complaining about space-tab.
17393as_nl='
17394'
17395export as_nl
17396IFS=" ""	$as_nl"
17397
17398PS1='$ '
17399PS2='> '
17400PS4='+ '
17401
17402# Ensure predictable behavior from utilities with locale-dependent output.
17403LC_ALL=C
17404export LC_ALL
17405LANGUAGE=C
17406export LANGUAGE
17407
17408# We cannot yet rely on "unset" to work, but we need these variables
17409# to be unset--not just set to an empty or harmless value--now, to
17410# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
17411# also avoids known problems related to "unset" and subshell syntax
17412# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17413for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17414do eval test \${$as_var+y} \
17415  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17416done
17417
17418# Ensure that fds 0, 1, and 2 are open.
17419if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17420if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17421if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
17422
17423# The user is always right.
17424if ${PATH_SEPARATOR+false} :; then
17425  PATH_SEPARATOR=:
17426  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17427    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17428      PATH_SEPARATOR=';'
17429  }
17430fi
17431
17432
17433# Find who we are.  Look in the path if we contain no directory separator.
17434as_myself=
17435case $0 in #((
17436  *[\\/]* ) as_myself=$0 ;;
17437  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17438for as_dir in $PATH
17439do
17440  IFS=$as_save_IFS
17441  case $as_dir in #(((
17442    '') as_dir=./ ;;
17443    */) ;;
17444    *) as_dir=$as_dir/ ;;
17445  esac
17446    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17447  done
17448IFS=$as_save_IFS
17449
17450     ;;
17451esac
17452# We did not find ourselves, most probably we were run as 'sh COMMAND'
17453# in which case we are not to be found in the path.
17454if test "x$as_myself" = x; then
17455  as_myself=$0
17456fi
17457if test ! -f "$as_myself"; then
17458  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17459  exit 1
17460fi
17461
17462
17463
17464# as_fn_error STATUS ERROR [LINENO LOG_FD]
17465# ----------------------------------------
17466# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17467# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17468# script with STATUS, using 1 if that was 0.
17469as_fn_error ()
17470{
17471  as_status=$1; test $as_status -eq 0 && as_status=1
17472  if test "$4"; then
17473    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17474    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17475  fi
17476  printf "%s\n" "$as_me: error: $2" >&2
17477  as_fn_exit $as_status
17478} # as_fn_error
17479
17480
17481# as_fn_set_status STATUS
17482# -----------------------
17483# Set $? to STATUS, without forking.
17484as_fn_set_status ()
17485{
17486  return $1
17487} # as_fn_set_status
17488
17489# as_fn_exit STATUS
17490# -----------------
17491# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17492as_fn_exit ()
17493{
17494  set +e
17495  as_fn_set_status $1
17496  exit $1
17497} # as_fn_exit
17498
17499# as_fn_unset VAR
17500# ---------------
17501# Portably unset VAR.
17502as_fn_unset ()
17503{
17504  { eval $1=; unset $1;}
17505}
17506as_unset=as_fn_unset
17507
17508# as_fn_append VAR VALUE
17509# ----------------------
17510# Append the text in VALUE to the end of the definition contained in VAR. Take
17511# advantage of any shell optimizations that allow amortized linear growth over
17512# repeated appends, instead of the typical quadratic growth present in naive
17513# implementations.
17514if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17515then :
17516  eval 'as_fn_append ()
17517  {
17518    eval $1+=\$2
17519  }'
17520else case e in #(
17521  e) as_fn_append ()
17522  {
17523    eval $1=\$$1\$2
17524  } ;;
17525esac
17526fi # as_fn_append
17527
17528# as_fn_arith ARG...
17529# ------------------
17530# Perform arithmetic evaluation on the ARGs, and store the result in the
17531# global $as_val. Take advantage of shells that can avoid forks. The arguments
17532# must be portable across $(()) and expr.
17533if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17534then :
17535  eval 'as_fn_arith ()
17536  {
17537    as_val=$(( $* ))
17538  }'
17539else case e in #(
17540  e) as_fn_arith ()
17541  {
17542    as_val=`expr "$@" || test $? -eq 1`
17543  } ;;
17544esac
17545fi # as_fn_arith
17546
17547
17548if expr a : '\(a\)' >/dev/null 2>&1 &&
17549   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17550  as_expr=expr
17551else
17552  as_expr=false
17553fi
17554
17555if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17556  as_basename=basename
17557else
17558  as_basename=false
17559fi
17560
17561if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17562  as_dirname=dirname
17563else
17564  as_dirname=false
17565fi
17566
17567as_me=`$as_basename -- "$0" ||
17568$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17569	 X"$0" : 'X\(//\)$' \| \
17570	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17571printf "%s\n" X/"$0" |
17572    sed '/^.*\/\([^/][^/]*\)\/*$/{
17573	    s//\1/
17574	    q
17575	  }
17576	  /^X\/\(\/\/\)$/{
17577	    s//\1/
17578	    q
17579	  }
17580	  /^X\/\(\/\).*/{
17581	    s//\1/
17582	    q
17583	  }
17584	  s/.*/./; q'`
17585
17586# Avoid depending upon Character Ranges.
17587as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17588as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17589as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17590as_cr_digits='0123456789'
17591as_cr_alnum=$as_cr_Letters$as_cr_digits
17592
17593
17594# Determine whether it's possible to make 'echo' print without a newline.
17595# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17596# for compatibility with existing Makefiles.
17597ECHO_C= ECHO_N= ECHO_T=
17598case `echo -n x` in #(((((
17599-n*)
17600  case `echo 'xy\c'` in
17601  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17602  xy)  ECHO_C='\c';;
17603  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17604       ECHO_T='	';;
17605  esac;;
17606*)
17607  ECHO_N='-n';;
17608esac
17609
17610# For backward compatibility with old third-party macros, we provide
17611# the shell variables $as_echo and $as_echo_n.  New code should use
17612# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17613as_echo='printf %s\n'
17614as_echo_n='printf %s'
17615
17616rm -f conf$$ conf$$.exe conf$$.file
17617if test -d conf$$.dir; then
17618  rm -f conf$$.dir/conf$$.file
17619else
17620  rm -f conf$$.dir
17621  mkdir conf$$.dir 2>/dev/null
17622fi
17623if (echo >conf$$.file) 2>/dev/null; then
17624  if ln -s conf$$.file conf$$ 2>/dev/null; then
17625    as_ln_s='ln -s'
17626    # ... but there are two gotchas:
17627    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17628    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17629    # In both cases, we have to default to 'cp -pR'.
17630    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17631      as_ln_s='cp -pR'
17632  elif ln conf$$.file conf$$ 2>/dev/null; then
17633    as_ln_s=ln
17634  else
17635    as_ln_s='cp -pR'
17636  fi
17637else
17638  as_ln_s='cp -pR'
17639fi
17640rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17641rmdir conf$$.dir 2>/dev/null
17642
17643
17644# as_fn_mkdir_p
17645# -------------
17646# Create "$as_dir" as a directory, including parents if necessary.
17647as_fn_mkdir_p ()
17648{
17649
17650  case $as_dir in #(
17651  -*) as_dir=./$as_dir;;
17652  esac
17653  test -d "$as_dir" || eval $as_mkdir_p || {
17654    as_dirs=
17655    while :; do
17656      case $as_dir in #(
17657      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17658      *) as_qdir=$as_dir;;
17659      esac
17660      as_dirs="'$as_qdir' $as_dirs"
17661      as_dir=`$as_dirname -- "$as_dir" ||
17662$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17663	 X"$as_dir" : 'X\(//\)[^/]' \| \
17664	 X"$as_dir" : 'X\(//\)$' \| \
17665	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17666printf "%s\n" X"$as_dir" |
17667    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17668	    s//\1/
17669	    q
17670	  }
17671	  /^X\(\/\/\)[^/].*/{
17672	    s//\1/
17673	    q
17674	  }
17675	  /^X\(\/\/\)$/{
17676	    s//\1/
17677	    q
17678	  }
17679	  /^X\(\/\).*/{
17680	    s//\1/
17681	    q
17682	  }
17683	  s/.*/./; q'`
17684      test -d "$as_dir" && break
17685    done
17686    test -z "$as_dirs" || eval "mkdir $as_dirs"
17687  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17688
17689
17690} # as_fn_mkdir_p
17691if mkdir -p . 2>/dev/null; then
17692  as_mkdir_p='mkdir -p "$as_dir"'
17693else
17694  test -d ./-p && rmdir ./-p
17695  as_mkdir_p=false
17696fi
17697
17698
17699# as_fn_executable_p FILE
17700# -----------------------
17701# Test if FILE is an executable regular file.
17702as_fn_executable_p ()
17703{
17704  test -f "$1" && test -x "$1"
17705} # as_fn_executable_p
17706as_test_x='test -x'
17707as_executable_p=as_fn_executable_p
17708
17709# Sed expression to map a string onto a valid CPP name.
17710as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17711as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17712
17713# Sed expression to map a string onto a valid variable name.
17714as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17715as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17716
17717
17718exec 6>&1
17719## ----------------------------------- ##
17720## Main body of $CONFIG_STATUS script. ##
17721## ----------------------------------- ##
17722_ASEOF
17723test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17724
17725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17726# Save the log message, to keep $0 and so on meaningful, and to
17727# report actual input values of CONFIG_FILES etc. instead of their
17728# values after options handling.
17729ac_log="
17730This file was extended by libedit $as_me 3.1, which was
17731generated by GNU Autoconf 2.72.  Invocation command line was
17732
17733  CONFIG_FILES    = $CONFIG_FILES
17734  CONFIG_HEADERS  = $CONFIG_HEADERS
17735  CONFIG_LINKS    = $CONFIG_LINKS
17736  CONFIG_COMMANDS = $CONFIG_COMMANDS
17737  $ $0 $@
17738
17739on `(hostname || uname -n) 2>/dev/null | sed 1q`
17740"
17741
17742_ACEOF
17743
17744case $ac_config_files in *"
17745"*) set x $ac_config_files; shift; ac_config_files=$*;;
17746esac
17747
17748case $ac_config_headers in *"
17749"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17750esac
17751
17752
17753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17754# Files that config.status was made for.
17755config_files="$ac_config_files"
17756config_headers="$ac_config_headers"
17757config_commands="$ac_config_commands"
17758
17759_ACEOF
17760
17761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17762ac_cs_usage="\
17763'$as_me' instantiates files and other configuration actions
17764from templates according to the current configuration.  Unless the files
17765and actions are specified as TAGs, all are instantiated by default.
17766
17767Usage: $0 [OPTION]... [TAG]...
17768
17769  -h, --help       print this help, then exit
17770  -V, --version    print version number and configuration settings, then exit
17771      --config     print configuration, then exit
17772  -q, --quiet, --silent
17773                   do not print progress messages
17774  -d, --debug      don't remove temporary files
17775      --recheck    update $as_me by reconfiguring in the same conditions
17776      --file=FILE[:TEMPLATE]
17777                   instantiate the configuration file FILE
17778      --header=FILE[:TEMPLATE]
17779                   instantiate the configuration header FILE
17780
17781Configuration files:
17782$config_files
17783
17784Configuration headers:
17785$config_headers
17786
17787Configuration commands:
17788$config_commands
17789
17790Report bugs to the package provider."
17791
17792_ACEOF
17793ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17794ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796ac_cs_config='$ac_cs_config_escaped'
17797ac_cs_version="\\
17798libedit config.status 3.1
17799configured by $0, generated by GNU Autoconf 2.72,
17800  with options \\"\$ac_cs_config\\"
17801
17802Copyright (C) 2023 Free Software Foundation, Inc.
17803This config.status script is free software; the Free Software Foundation
17804gives unlimited permission to copy, distribute and modify it."
17805
17806ac_pwd='$ac_pwd'
17807srcdir='$srcdir'
17808INSTALL='$INSTALL'
17809MKDIR_P='$MKDIR_P'
17810AWK='$AWK'
17811test -n "\$AWK" || AWK=awk
17812_ACEOF
17813
17814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17815# The default lists apply if the user does not specify any file.
17816ac_need_defaults=:
17817while test $# != 0
17818do
17819  case $1 in
17820  --*=?*)
17821    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17822    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17823    ac_shift=:
17824    ;;
17825  --*=)
17826    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17827    ac_optarg=
17828    ac_shift=:
17829    ;;
17830  *)
17831    ac_option=$1
17832    ac_optarg=$2
17833    ac_shift=shift
17834    ;;
17835  esac
17836
17837  case $ac_option in
17838  # Handling of the options.
17839  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17840    ac_cs_recheck=: ;;
17841  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17842    printf "%s\n" "$ac_cs_version"; exit ;;
17843  --config | --confi | --conf | --con | --co | --c )
17844    printf "%s\n" "$ac_cs_config"; exit ;;
17845  --debug | --debu | --deb | --de | --d | -d )
17846    debug=: ;;
17847  --file | --fil | --fi | --f )
17848    $ac_shift
17849    case $ac_optarg in
17850    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17851    '') as_fn_error $? "missing file argument" ;;
17852    esac
17853    as_fn_append CONFIG_FILES " '$ac_optarg'"
17854    ac_need_defaults=false;;
17855  --header | --heade | --head | --hea )
17856    $ac_shift
17857    case $ac_optarg in
17858    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17859    esac
17860    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17861    ac_need_defaults=false;;
17862  --he | --h)
17863    # Conflict between --help and --header
17864    as_fn_error $? "ambiguous option: '$1'
17865Try '$0 --help' for more information.";;
17866  --help | --hel | -h )
17867    printf "%s\n" "$ac_cs_usage"; exit ;;
17868  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17869  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17870    ac_cs_silent=: ;;
17871
17872  # This is an error.
17873  -*) as_fn_error $? "unrecognized option: '$1'
17874Try '$0 --help' for more information." ;;
17875
17876  *) as_fn_append ac_config_targets " $1"
17877     ac_need_defaults=false ;;
17878
17879  esac
17880  shift
17881done
17882
17883ac_configure_extra_args=
17884
17885if $ac_cs_silent; then
17886  exec 6>/dev/null
17887  ac_configure_extra_args="$ac_configure_extra_args --silent"
17888fi
17889
17890_ACEOF
17891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17892if \$ac_cs_recheck; then
17893  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17894  shift
17895  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17896  CONFIG_SHELL='$SHELL'
17897  export CONFIG_SHELL
17898  exec "\$@"
17899fi
17900
17901_ACEOF
17902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17903exec 5>>config.log
17904{
17905  echo
17906  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17907## Running $as_me. ##
17908_ASBOX
17909  printf "%s\n" "$ac_log"
17910} >&5
17911
17912_ACEOF
17913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17914#
17915# INIT-COMMANDS
17916#
17917AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17918
17919
17920# The HP-UX ksh and POSIX shell print the target directory to stdout
17921# if CDPATH is set.
17922(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17923
17924sed_quote_subst='$sed_quote_subst'
17925double_quote_subst='$double_quote_subst'
17926delay_variable_subst='$delay_variable_subst'
17927macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17928macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17929enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17930enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17931pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17932enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17933shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17934SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17935ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17936PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17937host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17938host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17939host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17940build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17941build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17942build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17943SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17944Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17945GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17946EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17947FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17948LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17949NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17950LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17951max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17952ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17953exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17954lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17955lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17956lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17957lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17958lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17959reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17960reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17961FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17962OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17963deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17964file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17965file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17966want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17967DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17968sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17969AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17970lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17971AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17972archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17973STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17974RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17975old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17976old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17977old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17978lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17979CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17980CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17981compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17982GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17983lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17984lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17985lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17986lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17987lt_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"`'
17988lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17989nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17990lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17991lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17992objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17993MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17994lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17995lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17996lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17997lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17998lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17999need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18000MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18001DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18002NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18003LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18004OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18005OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18006libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18007shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18008extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18009archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18010enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18011export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18012whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18013compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18014old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18015old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18016archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18017archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18018module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18019module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18020with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18021allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18022no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18023hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18024hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18025hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18026hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18027hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18028hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18029hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18030inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18031link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18032always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18033export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18034exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18035include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18036prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18037postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18038file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18039variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18040need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18041need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18042version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18043runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18044shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18045shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18046libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18047library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18048soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18049install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18050postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18051postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18052finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18053finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18054hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18055sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18056configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18057configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18058hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18059enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18060enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18061enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18062old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18063striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18064
18065LTCC='$LTCC'
18066LTCFLAGS='$LTCFLAGS'
18067compiler='$compiler_DEFAULT'
18068
18069# A function that is used when there is no print builtin or printf.
18070func_fallback_echo ()
18071{
18072  eval 'cat <<_LTECHO_EOF
18073\$1
18074_LTECHO_EOF'
18075}
18076
18077# Quote evaled strings.
18078for var in SHELL \
18079ECHO \
18080PATH_SEPARATOR \
18081SED \
18082GREP \
18083EGREP \
18084FGREP \
18085LD \
18086NM \
18087LN_S \
18088lt_SP2NL \
18089lt_NL2SP \
18090reload_flag \
18091FILECMD \
18092OBJDUMP \
18093deplibs_check_method \
18094file_magic_cmd \
18095file_magic_glob \
18096want_nocaseglob \
18097DLLTOOL \
18098sharedlib_from_linklib_cmd \
18099AR \
18100archiver_list_spec \
18101STRIP \
18102RANLIB \
18103CC \
18104CFLAGS \
18105compiler \
18106lt_cv_sys_global_symbol_pipe \
18107lt_cv_sys_global_symbol_to_cdecl \
18108lt_cv_sys_global_symbol_to_import \
18109lt_cv_sys_global_symbol_to_c_name_address \
18110lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18111lt_cv_nm_interface \
18112nm_file_list_spec \
18113lt_cv_truncate_bin \
18114lt_prog_compiler_no_builtin_flag \
18115lt_prog_compiler_pic \
18116lt_prog_compiler_wl \
18117lt_prog_compiler_static \
18118lt_cv_prog_compiler_c_o \
18119need_locks \
18120MANIFEST_TOOL \
18121DSYMUTIL \
18122NMEDIT \
18123LIPO \
18124OTOOL \
18125OTOOL64 \
18126shrext_cmds \
18127export_dynamic_flag_spec \
18128whole_archive_flag_spec \
18129compiler_needs_object \
18130with_gnu_ld \
18131allow_undefined_flag \
18132no_undefined_flag \
18133hardcode_libdir_flag_spec \
18134hardcode_libdir_separator \
18135exclude_expsyms \
18136include_expsyms \
18137file_list_spec \
18138variables_saved_for_relink \
18139libname_spec \
18140library_names_spec \
18141soname_spec \
18142install_override_mode \
18143finish_eval \
18144old_striplib \
18145striplib; do
18146    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18147    *[\\\\\\\`\\"\\\$]*)
18148      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18149      ;;
18150    *)
18151      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18152      ;;
18153    esac
18154done
18155
18156# Double-quote double-evaled strings.
18157for var in reload_cmds \
18158old_postinstall_cmds \
18159old_postuninstall_cmds \
18160old_archive_cmds \
18161extract_expsyms_cmds \
18162old_archive_from_new_cmds \
18163old_archive_from_expsyms_cmds \
18164archive_cmds \
18165archive_expsym_cmds \
18166module_cmds \
18167module_expsym_cmds \
18168export_symbols_cmds \
18169prelink_cmds \
18170postlink_cmds \
18171postinstall_cmds \
18172postuninstall_cmds \
18173finish_cmds \
18174sys_lib_search_path_spec \
18175configure_time_dlsearch_path \
18176configure_time_lt_sys_library_path; do
18177    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18178    *[\\\\\\\`\\"\\\$]*)
18179      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18180      ;;
18181    *)
18182      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18183      ;;
18184    esac
18185done
18186
18187ac_aux_dir='$ac_aux_dir'
18188
18189# See if we are running on zsh, and set the options that allow our
18190# commands through without removal of \ escapes INIT.
18191if test -n "\${ZSH_VERSION+set}"; then
18192   setopt NO_GLOB_SUBST
18193fi
18194
18195
18196    PACKAGE='$PACKAGE'
18197    VERSION='$VERSION'
18198    RM='$RM'
18199    ofile='$ofile'
18200
18201
18202
18203
18204_ACEOF
18205
18206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18207
18208# Handling of arguments.
18209for ac_config_target in $ac_config_targets
18210do
18211  case $ac_config_target in
18212    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18213    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18214    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18215    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18216    "libedit.pc") CONFIG_FILES="$CONFIG_FILES libedit.pc" ;;
18217    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18218    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18219    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18220
18221  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18222  esac
18223done
18224
18225
18226# If the user did not use the arguments to specify the items to instantiate,
18227# then the envvar interface is used.  Set only those that are not.
18228# We use the long form for the default assignment because of an extremely
18229# bizarre bug on SunOS 4.1.3.
18230if $ac_need_defaults; then
18231  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18232  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18233  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18234fi
18235
18236# Have a temporary directory for convenience.  Make it in the build tree
18237# simply because there is no reason against having it here, and in addition,
18238# creating and moving files from /tmp can sometimes cause problems.
18239# Hook for its removal unless debugging.
18240# Note that there is a small window in which the directory will not be cleaned:
18241# after its creation but before its name has been assigned to '$tmp'.
18242$debug ||
18243{
18244  tmp= ac_tmp=
18245  trap 'exit_status=$?
18246  : "${ac_tmp:=$tmp}"
18247  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18248' 0
18249  trap 'as_fn_exit 1' 1 2 13 15
18250}
18251# Create a (secure) tmp directory for tmp files.
18252
18253{
18254  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18255  test -d "$tmp"
18256}  ||
18257{
18258  tmp=./conf$$-$RANDOM
18259  (umask 077 && mkdir "$tmp")
18260} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18261ac_tmp=$tmp
18262
18263# Set up the scripts for CONFIG_FILES section.
18264# No need to generate them if there are no CONFIG_FILES.
18265# This happens for instance with './config.status config.h'.
18266if test -n "$CONFIG_FILES"; then
18267
18268
18269ac_cr=`echo X | tr X '\015'`
18270# On cygwin, bash can eat \r inside `` if the user requested igncr.
18271# But we know of no other shell where ac_cr would be empty at this
18272# point, so we can use a bashism as a fallback.
18273if test "x$ac_cr" = x; then
18274  eval ac_cr=\$\'\\r\'
18275fi
18276ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18277if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18278  ac_cs_awk_cr='\\r'
18279else
18280  ac_cs_awk_cr=$ac_cr
18281fi
18282
18283echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18284_ACEOF
18285
18286
18287{
18288  echo "cat >conf$$subs.awk <<_ACEOF" &&
18289  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18290  echo "_ACEOF"
18291} >conf$$subs.sh ||
18292  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18293ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18294ac_delim='%!_!# '
18295for ac_last_try in false false false false false :; do
18296  . ./conf$$subs.sh ||
18297    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18298
18299  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18300  if test $ac_delim_n = $ac_delim_num; then
18301    break
18302  elif $ac_last_try; then
18303    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18304  else
18305    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18306  fi
18307done
18308rm -f conf$$subs.sh
18309
18310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18311cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18312_ACEOF
18313sed -n '
18314h
18315s/^/S["/; s/!.*/"]=/
18316p
18317g
18318s/^[^!]*!//
18319:repl
18320t repl
18321s/'"$ac_delim"'$//
18322t delim
18323:nl
18324h
18325s/\(.\{148\}\)..*/\1/
18326t more1
18327s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18328p
18329n
18330b repl
18331:more1
18332s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18333p
18334g
18335s/.\{148\}//
18336t nl
18337:delim
18338h
18339s/\(.\{148\}\)..*/\1/
18340t more2
18341s/["\\]/\\&/g; s/^/"/; s/$/"/
18342p
18343b
18344:more2
18345s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18346p
18347g
18348s/.\{148\}//
18349t delim
18350' <conf$$subs.awk | sed '
18351/^[^""]/{
18352  N
18353  s/\n//
18354}
18355' >>$CONFIG_STATUS || ac_write_fail=1
18356rm -f conf$$subs.awk
18357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18358_ACAWK
18359cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18360  for (key in S) S_is_set[key] = 1
18361  FS = ""
18362
18363}
18364{
18365  line = $ 0
18366  nfields = split(line, field, "@")
18367  substed = 0
18368  len = length(field[1])
18369  for (i = 2; i < nfields; i++) {
18370    key = field[i]
18371    keylen = length(key)
18372    if (S_is_set[key]) {
18373      value = S[key]
18374      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18375      len += length(value) + length(field[++i])
18376      substed = 1
18377    } else
18378      len += 1 + keylen
18379  }
18380
18381  print line
18382}
18383
18384_ACAWK
18385_ACEOF
18386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18387if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18388  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18389else
18390  cat
18391fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18392  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18393_ACEOF
18394
18395# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18396# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18397# trailing colons and then remove the whole line if VPATH becomes empty
18398# (actually we leave an empty line to preserve line numbers).
18399if test "x$srcdir" = x.; then
18400  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18401h
18402s///
18403s/^/:/
18404s/[	 ]*$/:/
18405s/:\$(srcdir):/:/g
18406s/:\${srcdir}:/:/g
18407s/:@srcdir@:/:/g
18408s/^:*//
18409s/:*$//
18410x
18411s/\(=[	 ]*\).*/\1/
18412G
18413s/\n//
18414s/^[^=]*=[	 ]*$//
18415}'
18416fi
18417
18418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18419fi # test -n "$CONFIG_FILES"
18420
18421# Set up the scripts for CONFIG_HEADERS section.
18422# No need to generate them if there are no CONFIG_HEADERS.
18423# This happens for instance with './config.status Makefile'.
18424if test -n "$CONFIG_HEADERS"; then
18425cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18426BEGIN {
18427_ACEOF
18428
18429# Transform confdefs.h into an awk script 'defines.awk', embedded as
18430# here-document in config.status, that substitutes the proper values into
18431# config.h.in to produce config.h.
18432
18433# Create a delimiter string that does not exist in confdefs.h, to ease
18434# handling of long lines.
18435ac_delim='%!_!# '
18436for ac_last_try in false false :; do
18437  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18438  if test -z "$ac_tt"; then
18439    break
18440  elif $ac_last_try; then
18441    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18442  else
18443    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18444  fi
18445done
18446
18447# For the awk script, D is an array of macro values keyed by name,
18448# likewise P contains macro parameters if any.  Preserve backslash
18449# newline sequences.
18450
18451ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18452sed -n '
18453s/.\{148\}/&'"$ac_delim"'/g
18454t rset
18455:rset
18456s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18457t def
18458d
18459:def
18460s/\\$//
18461t bsnl
18462s/["\\]/\\&/g
18463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18464D["\1"]=" \3"/p
18465s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18466d
18467:bsnl
18468s/["\\]/\\&/g
18469s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18470D["\1"]=" \3\\\\\\n"\\/p
18471t cont
18472s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18473t cont
18474d
18475:cont
18476n
18477s/.\{148\}/&'"$ac_delim"'/g
18478t clear
18479:clear
18480s/\\$//
18481t bsnlc
18482s/["\\]/\\&/g; s/^/"/; s/$/"/p
18483d
18484:bsnlc
18485s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18486b cont
18487' <confdefs.h | sed '
18488s/'"$ac_delim"'/"\\\
18489"/g' >>$CONFIG_STATUS || ac_write_fail=1
18490
18491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18492  for (key in D) D_is_set[key] = 1
18493  FS = ""
18494}
18495/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18496  line = \$ 0
18497  split(line, arg, " ")
18498  if (arg[1] == "#") {
18499    defundef = arg[2]
18500    mac1 = arg[3]
18501  } else {
18502    defundef = substr(arg[1], 2)
18503    mac1 = arg[2]
18504  }
18505  split(mac1, mac2, "(") #)
18506  macro = mac2[1]
18507  prefix = substr(line, 1, index(line, defundef) - 1)
18508  if (D_is_set[macro]) {
18509    # Preserve the white space surrounding the "#".
18510    print prefix "define", macro P[macro] D[macro]
18511    next
18512  } else {
18513    # Replace #undef with comments.  This is necessary, for example,
18514    # in the case of _POSIX_SOURCE, which is predefined and required
18515    # on some systems where configure will not decide to define it.
18516    if (defundef == "undef") {
18517      print "/*", prefix defundef, macro, "*/"
18518      next
18519    }
18520  }
18521}
18522{ print }
18523_ACAWK
18524_ACEOF
18525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18526  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18527fi # test -n "$CONFIG_HEADERS"
18528
18529
18530eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18531shift
18532for ac_tag
18533do
18534  case $ac_tag in
18535  :[FHLC]) ac_mode=$ac_tag; continue;;
18536  esac
18537  case $ac_mode$ac_tag in
18538  :[FHL]*:*);;
18539  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18540  :[FH]-) ac_tag=-:-;;
18541  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18542  esac
18543  ac_save_IFS=$IFS
18544  IFS=:
18545  set x $ac_tag
18546  IFS=$ac_save_IFS
18547  shift
18548  ac_file=$1
18549  shift
18550
18551  case $ac_mode in
18552  :L) ac_source=$1;;
18553  :[FH])
18554    ac_file_inputs=
18555    for ac_f
18556    do
18557      case $ac_f in
18558      -) ac_f="$ac_tmp/stdin";;
18559      *) # Look for the file first in the build tree, then in the source tree
18560	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18561	 # because $ac_f cannot contain ':'.
18562	 test -f "$ac_f" ||
18563	   case $ac_f in
18564	   [\\/$]*) false;;
18565	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18566	   esac ||
18567	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18568      esac
18569      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18570      as_fn_append ac_file_inputs " '$ac_f'"
18571    done
18572
18573    # Let's still pretend it is 'configure' which instantiates (i.e., don't
18574    # use $as_me), people would be surprised to read:
18575    #    /* config.h.  Generated by config.status.  */
18576    configure_input='Generated from '`
18577	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18578	`' by configure.'
18579    if test x"$ac_file" != x-; then
18580      configure_input="$ac_file.  $configure_input"
18581      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18582printf "%s\n" "$as_me: creating $ac_file" >&6;}
18583    fi
18584    # Neutralize special characters interpreted by sed in replacement strings.
18585    case $configure_input in #(
18586    *\&* | *\|* | *\\* )
18587       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18588       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18589    *) ac_sed_conf_input=$configure_input;;
18590    esac
18591
18592    case $ac_tag in
18593    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18594      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18595    esac
18596    ;;
18597  esac
18598
18599  ac_dir=`$as_dirname -- "$ac_file" ||
18600$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18601	 X"$ac_file" : 'X\(//\)[^/]' \| \
18602	 X"$ac_file" : 'X\(//\)$' \| \
18603	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18604printf "%s\n" X"$ac_file" |
18605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18606	    s//\1/
18607	    q
18608	  }
18609	  /^X\(\/\/\)[^/].*/{
18610	    s//\1/
18611	    q
18612	  }
18613	  /^X\(\/\/\)$/{
18614	    s//\1/
18615	    q
18616	  }
18617	  /^X\(\/\).*/{
18618	    s//\1/
18619	    q
18620	  }
18621	  s/.*/./; q'`
18622  as_dir="$ac_dir"; as_fn_mkdir_p
18623  ac_builddir=.
18624
18625case "$ac_dir" in
18626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18627*)
18628  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18629  # A ".." for each directory in $ac_dir_suffix.
18630  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18631  case $ac_top_builddir_sub in
18632  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18633  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18634  esac ;;
18635esac
18636ac_abs_top_builddir=$ac_pwd
18637ac_abs_builddir=$ac_pwd$ac_dir_suffix
18638# for backward compatibility:
18639ac_top_builddir=$ac_top_build_prefix
18640
18641case $srcdir in
18642  .)  # We are building in place.
18643    ac_srcdir=.
18644    ac_top_srcdir=$ac_top_builddir_sub
18645    ac_abs_top_srcdir=$ac_pwd ;;
18646  [\\/]* | ?:[\\/]* )  # Absolute name.
18647    ac_srcdir=$srcdir$ac_dir_suffix;
18648    ac_top_srcdir=$srcdir
18649    ac_abs_top_srcdir=$srcdir ;;
18650  *) # Relative name.
18651    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18652    ac_top_srcdir=$ac_top_build_prefix$srcdir
18653    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18654esac
18655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18656
18657
18658  case $ac_mode in
18659  :F)
18660  #
18661  # CONFIG_FILE
18662  #
18663
18664  case $INSTALL in
18665  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18666  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18667  esac
18668  ac_MKDIR_P=$MKDIR_P
18669  case $MKDIR_P in
18670  [\\/$]* | ?:[\\/]* ) ;;
18671  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18672  esac
18673_ACEOF
18674
18675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18676# If the template does not know about datarootdir, expand it.
18677# FIXME: This hack should be removed a few years after 2.60.
18678ac_datarootdir_hack=; ac_datarootdir_seen=
18679ac_sed_dataroot='
18680/datarootdir/ {
18681  p
18682  q
18683}
18684/@datadir@/p
18685/@docdir@/p
18686/@infodir@/p
18687/@localedir@/p
18688/@mandir@/p'
18689case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18690*datarootdir*) ac_datarootdir_seen=yes;;
18691*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18693printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18694_ACEOF
18695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18696  ac_datarootdir_hack='
18697  s&@datadir@&$datadir&g
18698  s&@docdir@&$docdir&g
18699  s&@infodir@&$infodir&g
18700  s&@localedir@&$localedir&g
18701  s&@mandir@&$mandir&g
18702  s&\\\${datarootdir}&$datarootdir&g' ;;
18703esac
18704_ACEOF
18705
18706# Neutralize VPATH when '$srcdir' = '.'.
18707# Shell code in configure.ac might set extrasub.
18708# FIXME: do we really want to maintain this feature?
18709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18710ac_sed_extra="$ac_vpsub
18711$extrasub
18712_ACEOF
18713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18714:t
18715/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18716s|@configure_input@|$ac_sed_conf_input|;t t
18717s&@top_builddir@&$ac_top_builddir_sub&;t t
18718s&@top_build_prefix@&$ac_top_build_prefix&;t t
18719s&@srcdir@&$ac_srcdir&;t t
18720s&@abs_srcdir@&$ac_abs_srcdir&;t t
18721s&@top_srcdir@&$ac_top_srcdir&;t t
18722s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18723s&@builddir@&$ac_builddir&;t t
18724s&@abs_builddir@&$ac_abs_builddir&;t t
18725s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18726s&@INSTALL@&$ac_INSTALL&;t t
18727s&@MKDIR_P@&$ac_MKDIR_P&;t t
18728$ac_datarootdir_hack
18729"
18730eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18731  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18732
18733test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18734  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18735  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18736      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18738which seems to be undefined.  Please make sure it is defined" >&5
18739printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18740which seems to be undefined.  Please make sure it is defined" >&2;}
18741
18742  rm -f "$ac_tmp/stdin"
18743  case $ac_file in
18744  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18745  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18746  esac \
18747  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18748 ;;
18749  :H)
18750  #
18751  # CONFIG_HEADER
18752  #
18753  if test x"$ac_file" != x-; then
18754    {
18755      printf "%s\n" "/* $configure_input  */" >&1 \
18756      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18757    } >"$ac_tmp/config.h" \
18758      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18759    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18760      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18761printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18762    else
18763      rm -f "$ac_file"
18764      mv "$ac_tmp/config.h" "$ac_file" \
18765	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18766    fi
18767  else
18768    printf "%s\n" "/* $configure_input  */" >&1 \
18769      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18770      || as_fn_error $? "could not create -" "$LINENO" 5
18771  fi
18772# Compute "$ac_file"'s index in $config_headers.
18773_am_arg="$ac_file"
18774_am_stamp_count=1
18775for _am_header in $config_headers :; do
18776  case $_am_header in
18777    $_am_arg | $_am_arg:* )
18778      break ;;
18779    * )
18780      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18781  esac
18782done
18783echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18784$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18785	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18786	 X"$_am_arg" : 'X\(//\)$' \| \
18787	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18788printf "%s\n" X"$_am_arg" |
18789    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18790	    s//\1/
18791	    q
18792	  }
18793	  /^X\(\/\/\)[^/].*/{
18794	    s//\1/
18795	    q
18796	  }
18797	  /^X\(\/\/\)$/{
18798	    s//\1/
18799	    q
18800	  }
18801	  /^X\(\/\).*/{
18802	    s//\1/
18803	    q
18804	  }
18805	  s/.*/./; q'`/stamp-h$_am_stamp_count
18806 ;;
18807
18808  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18809printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18810 ;;
18811  esac
18812
18813
18814  case $ac_file$ac_mode in
18815    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18816  # Older Autoconf quotes --file arguments for eval, but not when files
18817  # are listed without --file.  Let's play safe and only enable the eval
18818  # if we detect the quoting.
18819  # TODO: see whether this extra hack can be removed once we start
18820  # requiring Autoconf 2.70 or later.
18821  case $CONFIG_FILES in #(
18822  *\'*) :
18823    eval set x "$CONFIG_FILES" ;; #(
18824  *) :
18825    set x $CONFIG_FILES ;; #(
18826  *) :
18827     ;;
18828esac
18829  shift
18830  # Used to flag and report bootstrapping failures.
18831  am_rc=0
18832  for am_mf
18833  do
18834    # Strip MF so we end up with the name of the file.
18835    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18836    # Check whether this is an Automake generated Makefile which includes
18837    # dependency-tracking related rules and includes.
18838    # Grep'ing the whole file directly is not great: AIX grep has a line
18839    # limit of 2048, but all sed's we know have understand at least 4000.
18840    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18841      || continue
18842    am_dirpart=`$as_dirname -- "$am_mf" ||
18843$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18844	 X"$am_mf" : 'X\(//\)[^/]' \| \
18845	 X"$am_mf" : 'X\(//\)$' \| \
18846	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18847printf "%s\n" X"$am_mf" |
18848    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18849	    s//\1/
18850	    q
18851	  }
18852	  /^X\(\/\/\)[^/].*/{
18853	    s//\1/
18854	    q
18855	  }
18856	  /^X\(\/\/\)$/{
18857	    s//\1/
18858	    q
18859	  }
18860	  /^X\(\/\).*/{
18861	    s//\1/
18862	    q
18863	  }
18864	  s/.*/./; q'`
18865    am_filepart=`$as_basename -- "$am_mf" ||
18866$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18867	 X"$am_mf" : 'X\(//\)$' \| \
18868	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18869printf "%s\n" X/"$am_mf" |
18870    sed '/^.*\/\([^/][^/]*\)\/*$/{
18871	    s//\1/
18872	    q
18873	  }
18874	  /^X\/\(\/\/\)$/{
18875	    s//\1/
18876	    q
18877	  }
18878	  /^X\/\(\/\).*/{
18879	    s//\1/
18880	    q
18881	  }
18882	  s/.*/./; q'`
18883    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18884      && sed -e '/# am--include-marker/d' "$am_filepart" \
18885        | $MAKE -f - am--depfiles" >&5
18886   (cd "$am_dirpart" \
18887      && sed -e '/# am--include-marker/d' "$am_filepart" \
18888        | $MAKE -f - am--depfiles) >&5 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); } || am_rc=$?
18892  done
18893  if test $am_rc -ne 0; then
18894    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18895printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18896as_fn_error $? "Something went wrong bootstrapping makefile fragments
18897    for automatic dependency tracking.  If GNU make was not used, consider
18898    re-running the configure script with MAKE=\"gmake\" (or whatever is
18899    necessary).  You can also try re-running configure with the
18900    '--disable-dependency-tracking' option to at least be able to build
18901    the package (albeit without support for automatic dependency tracking).
18902See 'config.log' for more details" "$LINENO" 5; }
18903  fi
18904  { am_dirpart=; unset am_dirpart;}
18905  { am_filepart=; unset am_filepart;}
18906  { am_mf=; unset am_mf;}
18907  { am_rc=; unset am_rc;}
18908  rm -f conftest-deps.mk
18909}
18910 ;;
18911    "libtool":C)
18912
18913    # See if we are running on zsh, and set the options that allow our
18914    # commands through without removal of \ escapes.
18915    if test -n "${ZSH_VERSION+set}"; then
18916      setopt NO_GLOB_SUBST
18917    fi
18918
18919    cfgfile=${ofile}T
18920    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18921    $RM "$cfgfile"
18922
18923    cat <<_LT_EOF >> "$cfgfile"
18924#! $SHELL
18925# Generated automatically by $as_me ($PACKAGE) $VERSION
18926# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18927
18928# Provide generalized library-building support services.
18929# Written by Gordon Matzigkeit, 1996
18930
18931# Copyright (C) 2024 Free Software Foundation, Inc.
18932# This is free software; see the source for copying conditions.  There is NO
18933# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18934
18935# GNU Libtool is free software; you can redistribute it and/or modify
18936# it under the terms of the GNU General Public License as published by
18937# the Free Software Foundation; either version 2 of the License, or
18938# (at your option) any later version.
18939#
18940# As a special exception to the GNU General Public License, if you
18941# distribute this file as part of a program or library that is built
18942# using GNU Libtool, you may include this file under the  same
18943# distribution terms that you use for the rest of that program.
18944#
18945# GNU Libtool is distributed in the hope that it will be useful, but
18946# WITHOUT ANY WARRANTY; without even the implied warranty of
18947# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18948# GNU General Public License for more details.
18949#
18950# You should have received a copy of the GNU General Public License
18951# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18952
18953
18954# The names of the tagged configurations supported by this script.
18955available_tags=''
18956
18957# Configured defaults for sys_lib_dlsearch_path munging.
18958: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18959
18960# ### BEGIN LIBTOOL CONFIG
18961
18962# Which release of libtool.m4 was used?
18963macro_version=$macro_version
18964macro_revision=$macro_revision
18965
18966# Whether or not to build shared libraries.
18967build_libtool_libs=$enable_shared
18968
18969# Whether or not to build static libraries.
18970build_old_libs=$enable_static
18971
18972# What type of objects to build.
18973pic_mode=$pic_mode
18974
18975# Whether or not to optimize for fast installation.
18976fast_install=$enable_fast_install
18977
18978# Shared archive member basename,for filename based shared library versioning on AIX.
18979shared_archive_member_spec=$shared_archive_member_spec
18980
18981# Shell to use when invoking shell scripts.
18982SHELL=$lt_SHELL
18983
18984# An echo program that protects backslashes.
18985ECHO=$lt_ECHO
18986
18987# The PATH separator for the build system.
18988PATH_SEPARATOR=$lt_PATH_SEPARATOR
18989
18990# The host system.
18991host_alias=$host_alias
18992host=$host
18993host_os=$host_os
18994
18995# The build system.
18996build_alias=$build_alias
18997build=$build
18998build_os=$build_os
18999
19000# A sed program that does not truncate output.
19001SED=$lt_SED
19002
19003# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19004Xsed="\$SED -e 1s/^X//"
19005
19006# A grep program that handles long lines.
19007GREP=$lt_GREP
19008
19009# An ERE matcher.
19010EGREP=$lt_EGREP
19011
19012# A literal string matcher.
19013FGREP=$lt_FGREP
19014
19015# A BSD- or MS-compatible name lister.
19016NM=$lt_NM
19017
19018# Whether we need soft or hard links.
19019LN_S=$lt_LN_S
19020
19021# What is the maximum length of a command?
19022max_cmd_len=$max_cmd_len
19023
19024# Object file suffix (normally "o").
19025objext=$ac_objext
19026
19027# Executable file suffix (normally "").
19028exeext=$exeext
19029
19030# whether the shell understands "unset".
19031lt_unset=$lt_unset
19032
19033# turn spaces into newlines.
19034SP2NL=$lt_lt_SP2NL
19035
19036# turn newlines into spaces.
19037NL2SP=$lt_lt_NL2SP
19038
19039# convert \$build file names to \$host format.
19040to_host_file_cmd=$lt_cv_to_host_file_cmd
19041
19042# convert \$build files to toolchain format.
19043to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19044
19045# A file(cmd) program that detects file types.
19046FILECMD=$lt_FILECMD
19047
19048# An object symbol dumper.
19049OBJDUMP=$lt_OBJDUMP
19050
19051# Method to check whether dependent libraries are shared objects.
19052deplibs_check_method=$lt_deplibs_check_method
19053
19054# Command to use when deplibs_check_method = "file_magic".
19055file_magic_cmd=$lt_file_magic_cmd
19056
19057# How to find potential files when deplibs_check_method = "file_magic".
19058file_magic_glob=$lt_file_magic_glob
19059
19060# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19061want_nocaseglob=$lt_want_nocaseglob
19062
19063# DLL creation program.
19064DLLTOOL=$lt_DLLTOOL
19065
19066# Command to associate shared and link libraries.
19067sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19068
19069# The archiver.
19070AR=$lt_AR
19071
19072# Flags to create an archive (by configure).
19073lt_ar_flags=$lt_ar_flags
19074
19075# Flags to create an archive.
19076AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19077
19078# How to feed a file listing to the archiver.
19079archiver_list_spec=$lt_archiver_list_spec
19080
19081# A symbol stripping program.
19082STRIP=$lt_STRIP
19083
19084# Commands used to install an old-style archive.
19085RANLIB=$lt_RANLIB
19086old_postinstall_cmds=$lt_old_postinstall_cmds
19087old_postuninstall_cmds=$lt_old_postuninstall_cmds
19088
19089# Whether to use a lock for old archive extraction.
19090lock_old_archive_extraction=$lock_old_archive_extraction
19091
19092# A C compiler.
19093LTCC=$lt_CC
19094
19095# LTCC compiler flags.
19096LTCFLAGS=$lt_CFLAGS
19097
19098# Take the output of nm and produce a listing of raw symbols and C names.
19099global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19100
19101# Transform the output of nm in a proper C declaration.
19102global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19103
19104# Transform the output of nm into a list of symbols to manually relocate.
19105global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19106
19107# Transform the output of nm in a C name address pair.
19108global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19109
19110# Transform the output of nm in a C name address pair when lib prefix is needed.
19111global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19112
19113# The name lister interface.
19114nm_interface=$lt_lt_cv_nm_interface
19115
19116# Specify filename containing input files for \$NM.
19117nm_file_list_spec=$lt_nm_file_list_spec
19118
19119# The root where to search for dependent libraries,and where our libraries should be installed.
19120lt_sysroot=$lt_sysroot
19121
19122# Command to truncate a binary pipe.
19123lt_truncate_bin=$lt_lt_cv_truncate_bin
19124
19125# The name of the directory that contains temporary libtool files.
19126objdir=$objdir
19127
19128# Used to examine libraries when file_magic_cmd begins with "file".
19129MAGIC_CMD=$MAGIC_CMD
19130
19131# Must we lock files when doing compilation?
19132need_locks=$lt_need_locks
19133
19134# Manifest tool.
19135MANIFEST_TOOL=$lt_MANIFEST_TOOL
19136
19137# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19138DSYMUTIL=$lt_DSYMUTIL
19139
19140# Tool to change global to local symbols on Mac OS X.
19141NMEDIT=$lt_NMEDIT
19142
19143# Tool to manipulate fat objects and archives on Mac OS X.
19144LIPO=$lt_LIPO
19145
19146# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19147OTOOL=$lt_OTOOL
19148
19149# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19150OTOOL64=$lt_OTOOL64
19151
19152# Old archive suffix (normally "a").
19153libext=$libext
19154
19155# Shared library suffix (normally ".so").
19156shrext_cmds=$lt_shrext_cmds
19157
19158# The commands to extract the exported symbol list from a shared archive.
19159extract_expsyms_cmds=$lt_extract_expsyms_cmds
19160
19161# Variables whose values should be saved in libtool wrapper scripts and
19162# restored at link time.
19163variables_saved_for_relink=$lt_variables_saved_for_relink
19164
19165# Do we need the "lib" prefix for modules?
19166need_lib_prefix=$need_lib_prefix
19167
19168# Do we need a version for libraries?
19169need_version=$need_version
19170
19171# Library versioning type.
19172version_type=$version_type
19173
19174# Shared library runtime path variable.
19175runpath_var=$runpath_var
19176
19177# Shared library path variable.
19178shlibpath_var=$shlibpath_var
19179
19180# Is shlibpath searched before the hard-coded library search path?
19181shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19182
19183# Format of library name prefix.
19184libname_spec=$lt_libname_spec
19185
19186# List of archive names.  First name is the real one, the rest are links.
19187# The last name is the one that the linker finds with -lNAME
19188library_names_spec=$lt_library_names_spec
19189
19190# The coded name of the library, if different from the real name.
19191soname_spec=$lt_soname_spec
19192
19193# Permission mode override for installation of shared libraries.
19194install_override_mode=$lt_install_override_mode
19195
19196# Command to use after installation of a shared archive.
19197postinstall_cmds=$lt_postinstall_cmds
19198
19199# Command to use after uninstallation of a shared archive.
19200postuninstall_cmds=$lt_postuninstall_cmds
19201
19202# Commands used to finish a libtool library installation in a directory.
19203finish_cmds=$lt_finish_cmds
19204
19205# As "finish_cmds", except a single script fragment to be evaled but
19206# not shown.
19207finish_eval=$lt_finish_eval
19208
19209# Whether we should hardcode library paths into libraries.
19210hardcode_into_libs=$hardcode_into_libs
19211
19212# Compile-time system search path for libraries.
19213sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19214
19215# Detected run-time system search path for libraries.
19216sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19217
19218# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19219configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19220
19221# Whether dlopen is supported.
19222dlopen_support=$enable_dlopen
19223
19224# Whether dlopen of programs is supported.
19225dlopen_self=$enable_dlopen_self
19226
19227# Whether dlopen of statically linked programs is supported.
19228dlopen_self_static=$enable_dlopen_self_static
19229
19230# Commands to strip libraries.
19231old_striplib=$lt_old_striplib
19232striplib=$lt_striplib
19233
19234
19235# The linker used to build libraries.
19236LD=$lt_LD
19237
19238# How to create reloadable object files.
19239reload_flag=$lt_reload_flag
19240reload_cmds=$lt_reload_cmds
19241
19242# Commands used to build an old-style archive.
19243old_archive_cmds=$lt_old_archive_cmds
19244
19245# A language specific compiler.
19246CC=$lt_compiler
19247
19248# Is the compiler the GNU compiler?
19249with_gcc=$GCC
19250
19251# Compiler flag to turn off builtin functions.
19252no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19253
19254# Additional compiler flags for building library objects.
19255pic_flag=$lt_lt_prog_compiler_pic
19256
19257# How to pass a linker flag through the compiler.
19258wl=$lt_lt_prog_compiler_wl
19259
19260# Compiler flag to prevent dynamic linking.
19261link_static_flag=$lt_lt_prog_compiler_static
19262
19263# Does compiler simultaneously support -c and -o options?
19264compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19265
19266# Whether or not to add -lc for building shared libraries.
19267build_libtool_need_lc=$archive_cmds_need_lc
19268
19269# Whether or not to disallow shared libs when runtime libs are static.
19270allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19271
19272# Compiler flag to allow reflexive dlopens.
19273export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19274
19275# Compiler flag to generate shared objects directly from archives.
19276whole_archive_flag_spec=$lt_whole_archive_flag_spec
19277
19278# Whether the compiler copes with passing no objects directly.
19279compiler_needs_object=$lt_compiler_needs_object
19280
19281# Create an old-style archive from a shared archive.
19282old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19283
19284# Create a temporary old-style archive to link instead of a shared archive.
19285old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19286
19287# Commands used to build a shared archive.
19288archive_cmds=$lt_archive_cmds
19289archive_expsym_cmds=$lt_archive_expsym_cmds
19290
19291# Commands used to build a loadable module if different from building
19292# a shared archive.
19293module_cmds=$lt_module_cmds
19294module_expsym_cmds=$lt_module_expsym_cmds
19295
19296# Whether we are building with GNU ld or not.
19297with_gnu_ld=$lt_with_gnu_ld
19298
19299# Flag that allows shared libraries with undefined symbols to be built.
19300allow_undefined_flag=$lt_allow_undefined_flag
19301
19302# Flag that enforces no undefined symbols.
19303no_undefined_flag=$lt_no_undefined_flag
19304
19305# Flag to hardcode \$libdir into a binary during linking.
19306# This must work even if \$libdir does not exist
19307hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19308
19309# Whether we need a single "-rpath" flag with a separated argument.
19310hardcode_libdir_separator=$lt_hardcode_libdir_separator
19311
19312# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19313# DIR into the resulting binary.
19314hardcode_direct=$hardcode_direct
19315
19316# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19317# DIR into the resulting binary and the resulting library dependency is
19318# "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19319# library is relocated.
19320hardcode_direct_absolute=$hardcode_direct_absolute
19321
19322# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19323# into the resulting binary.
19324hardcode_minus_L=$hardcode_minus_L
19325
19326# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19327# into the resulting binary.
19328hardcode_shlibpath_var=$hardcode_shlibpath_var
19329
19330# Set to "yes" if building a shared library automatically hardcodes DIR
19331# into the library and all subsequent libraries and executables linked
19332# against it.
19333hardcode_automatic=$hardcode_automatic
19334
19335# Set to yes if linker adds runtime paths of dependent libraries
19336# to runtime path list.
19337inherit_rpath=$inherit_rpath
19338
19339# Whether libtool must link a program against all its dependency libraries.
19340link_all_deplibs=$link_all_deplibs
19341
19342# Set to "yes" if exported symbols are required.
19343always_export_symbols=$always_export_symbols
19344
19345# The commands to list exported symbols.
19346export_symbols_cmds=$lt_export_symbols_cmds
19347
19348# Symbols that should not be listed in the preloaded symbols.
19349exclude_expsyms=$lt_exclude_expsyms
19350
19351# Symbols that must always be exported.
19352include_expsyms=$lt_include_expsyms
19353
19354# Commands necessary for linking programs (against libraries) with templates.
19355prelink_cmds=$lt_prelink_cmds
19356
19357# Commands necessary for finishing linking programs.
19358postlink_cmds=$lt_postlink_cmds
19359
19360# Specify filename containing input files.
19361file_list_spec=$lt_file_list_spec
19362
19363# How to hardcode a shared library path into an executable.
19364hardcode_action=$hardcode_action
19365
19366# ### END LIBTOOL CONFIG
19367
19368_LT_EOF
19369
19370    cat <<'_LT_EOF' >> "$cfgfile"
19371
19372# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19373
19374# func_munge_path_list VARIABLE PATH
19375# -----------------------------------
19376# VARIABLE is name of variable containing _space_ separated list of
19377# directories to be munged by the contents of PATH, which is string
19378# having a format:
19379# "DIR[:DIR]:"
19380#       string "DIR[ DIR]" will be prepended to VARIABLE
19381# ":DIR[:DIR]"
19382#       string "DIR[ DIR]" will be appended to VARIABLE
19383# "DIRP[:DIRP]::[DIRA:]DIRA"
19384#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19385#       "DIRA[ DIRA]" will be appended to VARIABLE
19386# "DIR[:DIR]"
19387#       VARIABLE will be replaced by "DIR[ DIR]"
19388func_munge_path_list ()
19389{
19390    case x$2 in
19391    x)
19392        ;;
19393    *:)
19394        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19395        ;;
19396    x:*)
19397        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19398        ;;
19399    *::*)
19400        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19401        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19402        ;;
19403    *)
19404        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19405        ;;
19406    esac
19407}
19408
19409
19410# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19411func_cc_basename ()
19412{
19413    for cc_temp in $*""; do
19414      case $cc_temp in
19415        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19416        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19417        \-*) ;;
19418        *) break;;
19419      esac
19420    done
19421    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19422}
19423
19424
19425# ### END FUNCTIONS SHARED WITH CONFIGURE
19426
19427_LT_EOF
19428
19429  case $host_os in
19430  aix3*)
19431    cat <<\_LT_EOF >> "$cfgfile"
19432# AIX sometimes has problems with the GCC collect2 program.  For some
19433# reason, if we set the COLLECT_NAMES environment variable, the problems
19434# vanish in a puff of smoke.
19435if test set != "${COLLECT_NAMES+set}"; then
19436  COLLECT_NAMES=
19437  export COLLECT_NAMES
19438fi
19439_LT_EOF
19440    ;;
19441  esac
19442
19443
19444
19445ltmain=$ac_aux_dir/ltmain.sh
19446
19447
19448  # We use sed instead of cat because bash on DJGPP gets confused if
19449  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19450  # text mode, it properly converts lines to CR/LF.  This bash problem
19451  # is reportedly fixed, but why not run on old versions too?
19452  $SED '$q' "$ltmain" >> "$cfgfile" \
19453     || (rm -f "$cfgfile"; exit 1)
19454
19455   mv -f "$cfgfile" "$ofile" ||
19456    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19457  chmod +x "$ofile"
19458
19459 ;;
19460
19461  esac
19462done # for ac_tag
19463
19464
19465as_fn_exit 0
19466_ACEOF
19467ac_clean_files=$ac_clean_files_save
19468
19469test $ac_write_fail = 0 ||
19470  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19471
19472
19473# configure is writing to config.log, and then calls config.status.
19474# config.status does its own redirection, appending to config.log.
19475# Unfortunately, on DOS this fails, as config.log is still kept open
19476# by configure, so config.status won't be able to write to it; its
19477# output is simply discarded.  So we exec the FD to /dev/null,
19478# effectively closing config.log, so it can be properly (re)opened and
19479# appended to by config.status.  When coming back to configure, we
19480# need to make the FD available again.
19481if test "$no_create" != yes; then
19482  ac_cs_success=:
19483  ac_config_status_args=
19484  test "$silent" = yes &&
19485    ac_config_status_args="$ac_config_status_args --quiet"
19486  exec 5>/dev/null
19487  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19488  exec 5>>config.log
19489  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19490  # would make configure fail if this is the last instruction.
19491  $ac_cs_success || as_fn_exit 1
19492fi
19493if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19495printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19496fi
19497
19498
19499