1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libedit 3.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
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  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libedit'
589PACKAGE_TARNAME='libedit-20130712'
590PACKAGE_VERSION='3.1'
591PACKAGE_STRING='libedit 3.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/strlcat.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635HAVE_UNVIS_FALSE
636HAVE_UNVIS_TRUE
637HAVE_VIS_FALSE
638HAVE_VIS_TRUE
639HAVE_STRLCAT_FALSE
640HAVE_STRLCAT_TRUE
641HAVE_STRLCPY_FALSE
642HAVE_STRLCPY_TRUE
643LIBOBJS
644WIDECHAR_FALSE
645WIDECHAR_TRUE
646MANTYPE
647NROFF
648LT_VERSION
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675LIBTOOL
676AM_BACKSLASH
677AM_DEFAULT_VERBOSITY
678AM_DEFAULT_V
679AM_V
680am__fastdepCC_FALSE
681am__fastdepCC_TRUE
682CCDEPMODE
683am__nodep
684AMDEPBACKSLASH
685AMDEP_FALSE
686AMDEP_TRUE
687am__quote
688am__include
689DEPDIR
690am__untar
691am__tar
692AMTAR
693am__leading_dot
694SET_MAKE
695AWK
696mkdir_p
697MKDIR_P
698INSTALL_STRIP_PROGRAM
699STRIP
700install_sh
701MAKEINFO
702AUTOHEADER
703AUTOMAKE
704AUTOCONF
705ACLOCAL
706VERSION
707PACKAGE
708CYGPATH_W
709am__isrc
710INSTALL_DATA
711INSTALL_SCRIPT
712INSTALL_PROGRAM
713EGREP
714GREP
715CPP
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_dependency_tracking
765enable_silent_rules
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_gnu_ld
771with_sysroot
772enable_libtool_lock
773enable_widec
774'
775      ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
781LIBS
782CPPFLAGS
783CPP'
784
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
789ac_unrecognized_opts=
790ac_unrecognized_sep=
791# The variables have the same names as the options, with
792# dashes changed to underlines.
793cache_file=/dev/null
794exec_prefix=NONE
795no_create=
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
804verbose=
805x_includes=NONE
806x_libraries=NONE
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
813# (The list follows the same order as the GNU Coding Standards.)
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838  # If the previous option needs an argument, assign it.
839  if test -n "$ac_prev"; then
840    eval $ac_prev=\$ac_option
841    ac_prev=
842    continue
843  fi
844
845  case $ac_option in
846  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847  *=)   ac_optarg= ;;
848  *)    ac_optarg=yes ;;
849  esac
850
851  # Accept the important Cygnus configure options, so we can diagnose typos.
852
853  case $ac_dashdash$ac_option in
854  --)
855    ac_dashdash=yes ;;
856
857  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858    ac_prev=bindir ;;
859  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860    bindir=$ac_optarg ;;
861
862  -build | --build | --buil | --bui | --bu)
863    ac_prev=build_alias ;;
864  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865    build_alias=$ac_optarg ;;
866
867  -cache-file | --cache-file | --cache-fil | --cache-fi \
868  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869    ac_prev=cache_file ;;
870  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872    cache_file=$ac_optarg ;;
873
874  --config-cache | -C)
875    cache_file=config.cache ;;
876
877  -datadir | --datadir | --datadi | --datad)
878    ac_prev=datadir ;;
879  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880    datadir=$ac_optarg ;;
881
882  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883  | --dataroo | --dataro | --datar)
884    ac_prev=datarootdir ;;
885  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887    datarootdir=$ac_optarg ;;
888
889  -disable-* | --disable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=no ;;
904
905  -docdir | --docdir | --docdi | --doc | --do)
906    ac_prev=docdir ;;
907  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908    docdir=$ac_optarg ;;
909
910  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911    ac_prev=dvidir ;;
912  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913    dvidir=$ac_optarg ;;
914
915  -enable-* | --enable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error $? "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075    ac_prev=sbindir ;;
1076  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077  | --sbi=* | --sb=*)
1078    sbindir=$ac_optarg ;;
1079
1080  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082  | --sharedst | --shareds | --shared | --share | --shar \
1083  | --sha | --sh)
1084    ac_prev=sharedstatedir ;;
1085  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088  | --sha=* | --sh=*)
1089    sharedstatedir=$ac_optarg ;;
1090
1091  -site | --site | --sit)
1092    ac_prev=site ;;
1093  -site=* | --site=* | --sit=*)
1094    site=$ac_optarg ;;
1095
1096  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097    ac_prev=srcdir ;;
1098  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099    srcdir=$ac_optarg ;;
1100
1101  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102  | --syscon | --sysco | --sysc | --sys | --sy)
1103    ac_prev=sysconfdir ;;
1104  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106    sysconfdir=$ac_optarg ;;
1107
1108  -target | --target | --targe | --targ | --tar | --ta | --t)
1109    ac_prev=target_alias ;;
1110  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111    target_alias=$ac_optarg ;;
1112
1113  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114    verbose=yes ;;
1115
1116  -version | --version | --versio | --versi | --vers | -V)
1117    ac_init_version=: ;;
1118
1119  -with-* | --with-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=\$ac_optarg ;;
1134
1135  -without-* | --without-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=no ;;
1150
1151  --x)
1152    # Obsolete; use --with-x.
1153    with_x=yes ;;
1154
1155  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156  | --x-incl | --x-inc | --x-in | --x-i)
1157    ac_prev=x_includes ;;
1158  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160    x_includes=$ac_optarg ;;
1161
1162  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164    ac_prev=x_libraries ;;
1165  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167    x_libraries=$ac_optarg ;;
1168
1169  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
1171    ;;
1172
1173  *=*)
1174    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175    # Reject names that are not valid shell variable names.
1176    case $ac_envvar in #(
1177      '' | [0-9]* | *[!_$as_cr_alnum]* )
1178      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179    esac
1180    eval $ac_envvar=\$ac_optarg
1181    export $ac_envvar ;;
1182
1183  *)
1184    # FIXME: should be removed in autoconf 3.0.
1185    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189    ;;
1190
1191  esac
1192done
1193
1194if test -n "$ac_prev"; then
1195  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196  as_fn_error $? "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200  case $enable_option_checking in
1201    no) ;;
1202    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204  esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209		datadir sysconfdir sharedstatedir localstatedir includedir \
1210		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211		libdir localedir mandir
1212do
1213  eval ac_val=\$$ac_var
1214  # Remove trailing slashes.
1215  case $ac_val in
1216    */ )
1217      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218      eval $ac_var=\$ac_val;;
1219  esac
1220  # Be sure to have absolute directory names.
1221  case $ac_val in
1222    [\\/$]* | ?:[\\/]* )  continue;;
1223    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224  esac
1225  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237  if test "x$build_alias" = x; then
1238    cross_compiling=maybe
1239  elif test "x$build_alias" != "x$host_alias"; then
1240    cross_compiling=yes
1241  fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253  as_fn_error $? "working directory cannot be determined"
1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255  as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260  ac_srcdir_defaulted=yes
1261  # Try the directory containing this script, then the parent directory.
1262  ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264	 X"$as_myself" : 'X\(//\)[^/]' \| \
1265	 X"$as_myself" : 'X\(//\)$' \| \
1266	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
1268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\/\)[^/].*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\/\)$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\).*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  s/.*/./; q'`
1285  srcdir=$ac_confdir
1286  if test ! -r "$srcdir/$ac_unique_file"; then
1287    srcdir=..
1288  fi
1289else
1290  ac_srcdir_defaulted=no
1291fi
1292if test ! -r "$srcdir/$ac_unique_file"; then
1293  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
1298	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299	pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302  srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312  eval ac_env_${ac_var}_value=\$${ac_var}
1313  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
1316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321  # Omit some internal or obsolete options to make the list less imposing.
1322  # This message is too long to be a string in the A/UX 3.1 sh.
1323  cat <<_ACEOF
1324\`configure' configures libedit 3.1 to adapt to many kinds of systems.
1325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334  -h, --help              display this help and exit
1335      --help=short        display options specific to this package
1336      --help=recursive    display the short help of all the included packages
1337  -V, --version           display version information and exit
1338  -q, --quiet, --silent   do not print \`checking ...' messages
1339      --cache-file=FILE   cache test results in FILE [disabled]
1340  -C, --config-cache      alias for \`--cache-file=config.cache'
1341  -n, --no-create         do not create output files
1342      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344Installation directories:
1345  --prefix=PREFIX         install architecture-independent files in PREFIX
1346                          [$ac_default_prefix]
1347  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                          [PREFIX]
1349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
1358  --bindir=DIR            user executables [EPREFIX/bin]
1359  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1360  --libexecdir=DIR        program executables [EPREFIX/libexec]
1361  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1362  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1363  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1364  --libdir=DIR            object code libraries [EPREFIX/lib]
1365  --includedir=DIR        C header files [PREFIX/include]
1366  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1367  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1368  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1369  --infodir=DIR           info documentation [DATAROOTDIR/info]
1370  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1371  --mandir=DIR            man documentation [DATAROOTDIR/man]
1372  --docdir=DIR            documentation root
1373                          [DATAROOTDIR/doc/libedit-20130712]
1374  --htmldir=DIR           html documentation [DOCDIR]
1375  --dvidir=DIR            dvi documentation [DOCDIR]
1376  --pdfdir=DIR            pdf documentation [DOCDIR]
1377  --psdir=DIR             ps documentation [DOCDIR]
1378_ACEOF
1379
1380  cat <<\_ACEOF
1381
1382Program names:
1383  --program-prefix=PREFIX            prepend PREFIX to installed program names
1384  --program-suffix=SUFFIX            append SUFFIX to installed program names
1385  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1386
1387System types:
1388  --build=BUILD     configure for building on BUILD [guessed]
1389  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390_ACEOF
1391fi
1392
1393if test -n "$ac_init_help"; then
1394  case $ac_init_help in
1395     short | recursive ) echo "Configuration of libedit 3.1:";;
1396   esac
1397  cat <<\_ACEOF
1398
1399Optional Features:
1400  --disable-option-checking  ignore unrecognized --enable/--with options
1401  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403  --enable-dependency-tracking
1404                          do not reject slow dependency extractors
1405  --disable-dependency-tracking
1406                          speeds up one-time build
1407  --enable-silent-rules   less verbose build output (undo: "make V=1")
1408  --disable-silent-rules  verbose build output (undo: "make V=0")
1409  --enable-shared[=PKGS]  build shared libraries [default=yes]
1410  --enable-static[=PKGS]  build static libraries [default=yes]
1411  --enable-fast-install[=PKGS]
1412                          optimize for fast installation [default=yes]
1413  --disable-libtool-lock  avoid locking (might break parallel builds)
1414  --enable-widec          compile with wide-char/UTF-8 code
1415
1416Optional Packages:
1417  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1418  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1419  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1420                          both]
1421  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1422  --with-sysroot=DIR Search for dependent libraries within DIR
1423                        (or the compiler's sysroot if not specified).
1424
1425Some influential environment variables:
1426  CC          C compiler command
1427  CFLAGS      C compiler flags
1428  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1429              nonstandard directory <lib dir>
1430  LIBS        libraries to pass to the linker, e.g. -l<library>
1431  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1432              you have headers in a nonstandard directory <include dir>
1433  CPP         C preprocessor
1434
1435Use these variables to override the choices made by `configure' or to help
1436it to find libraries and programs with nonstandard names/locations.
1437
1438Report bugs to the package provider.
1439_ACEOF
1440ac_status=$?
1441fi
1442
1443if test "$ac_init_help" = "recursive"; then
1444  # If there are subdirs, report their specific --help.
1445  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446    test -d "$ac_dir" ||
1447      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448      continue
1449    ac_builddir=.
1450
1451case "$ac_dir" in
1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453*)
1454  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455  # A ".." for each directory in $ac_dir_suffix.
1456  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457  case $ac_top_builddir_sub in
1458  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460  esac ;;
1461esac
1462ac_abs_top_builddir=$ac_pwd
1463ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464# for backward compatibility:
1465ac_top_builddir=$ac_top_build_prefix
1466
1467case $srcdir in
1468  .)  # We are building in place.
1469    ac_srcdir=.
1470    ac_top_srcdir=$ac_top_builddir_sub
1471    ac_abs_top_srcdir=$ac_pwd ;;
1472  [\\/]* | ?:[\\/]* )  # Absolute name.
1473    ac_srcdir=$srcdir$ac_dir_suffix;
1474    ac_top_srcdir=$srcdir
1475    ac_abs_top_srcdir=$srcdir ;;
1476  *) # Relative name.
1477    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478    ac_top_srcdir=$ac_top_build_prefix$srcdir
1479    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480esac
1481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483    cd "$ac_dir" || { ac_status=$?; continue; }
1484    # Check for guested configure.
1485    if test -f "$ac_srcdir/configure.gnu"; then
1486      echo &&
1487      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488    elif test -f "$ac_srcdir/configure"; then
1489      echo &&
1490      $SHELL "$ac_srcdir/configure" --help=recursive
1491    else
1492      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493    fi || ac_status=$?
1494    cd "$ac_pwd" || { ac_status=$?; break; }
1495  done
1496fi
1497
1498test -n "$ac_init_help" && exit $ac_status
1499if $ac_init_version; then
1500  cat <<\_ACEOF
1501libedit configure 3.1
1502generated by GNU Autoconf 2.69
1503
1504Copyright (C) 2012 Free Software Foundation, Inc.
1505This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it.
1507_ACEOF
1508  exit
1509fi
1510
1511## ------------------------ ##
1512## Autoconf initialization. ##
1513## ------------------------ ##
1514
1515# ac_fn_c_try_compile LINENO
1516# --------------------------
1517# Try to compile conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_compile ()
1519{
1520  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521  rm -f conftest.$ac_objext
1522  if { { ac_try="$ac_compile"
1523case "(($ac_try" in
1524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525  *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529  (eval "$ac_compile") 2>conftest.err
1530  ac_status=$?
1531  if test -s conftest.err; then
1532    grep -v '^ *+' conftest.err >conftest.er1
1533    cat conftest.er1 >&5
1534    mv -f conftest.er1 conftest.err
1535  fi
1536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537  test $ac_status = 0; } && {
1538	 test -z "$ac_c_werror_flag" ||
1539	 test ! -s conftest.err
1540       } && test -s conftest.$ac_objext; then :
1541  ac_retval=0
1542else
1543  $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546	ac_retval=1
1547fi
1548  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549  as_fn_set_status $ac_retval
1550
1551} # ac_fn_c_try_compile
1552
1553# ac_fn_c_try_cpp LINENO
1554# ----------------------
1555# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_cpp ()
1557{
1558  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559  if { { ac_try="$ac_cpp conftest.$ac_ext"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } > conftest.i && {
1575	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       }; then :
1578  ac_retval=0
1579else
1580  $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583    ac_retval=1
1584fi
1585  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586  as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_cpp
1589
1590# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1591# -------------------------------------------------------
1592# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1593# the include files in INCLUDES and setting the cache variable VAR
1594# accordingly.
1595ac_fn_c_check_header_mongrel ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  if eval \${$3+:} false; then :
1599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1600$as_echo_n "checking for $2... " >&6; }
1601if eval \${$3+:} false; then :
1602  $as_echo_n "(cached) " >&6
1603fi
1604eval ac_res=\$$3
1605	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606$as_echo "$ac_res" >&6; }
1607else
1608  # Is the header compilable?
1609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1610$as_echo_n "checking $2 usability... " >&6; }
1611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612/* end confdefs.h.  */
1613$4
1614#include <$2>
1615_ACEOF
1616if ac_fn_c_try_compile "$LINENO"; then :
1617  ac_header_compiler=yes
1618else
1619  ac_header_compiler=no
1620fi
1621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1623$as_echo "$ac_header_compiler" >&6; }
1624
1625# Is the header present?
1626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1627$as_echo_n "checking $2 presence... " >&6; }
1628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629/* end confdefs.h.  */
1630#include <$2>
1631_ACEOF
1632if ac_fn_c_try_cpp "$LINENO"; then :
1633  ac_header_preproc=yes
1634else
1635  ac_header_preproc=no
1636fi
1637rm -f conftest.err conftest.i conftest.$ac_ext
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1639$as_echo "$ac_header_preproc" >&6; }
1640
1641# So?  What about this header?
1642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1643  yes:no: )
1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1645$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1647$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1648    ;;
1649  no:yes:* )
1650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1651$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1653$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1655$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1656    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1657$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660    ;;
1661esac
1662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663$as_echo_n "checking for $2... " >&6; }
1664if eval \${$3+:} false; then :
1665  $as_echo_n "(cached) " >&6
1666else
1667  eval "$3=\$ac_header_compiler"
1668fi
1669eval ac_res=\$$3
1670	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671$as_echo "$ac_res" >&6; }
1672fi
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675} # ac_fn_c_check_header_mongrel
1676
1677# ac_fn_c_try_run LINENO
1678# ----------------------
1679# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680# that executables *can* be run.
1681ac_fn_c_try_run ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  if { { ac_try="$ac_link"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691  (eval "$ac_link") 2>&5
1692  ac_status=$?
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695  { { case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701  (eval "$ac_try") 2>&5
1702  ac_status=$?
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; }; }; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: program exited with status $ac_status" >&5
1708       $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711       ac_retval=$ac_status
1712fi
1713  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_run
1718
1719# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1720# -------------------------------------------------------
1721# Tests whether HEADER exists and can be compiled using the include files in
1722# INCLUDES, setting the cache variable VAR accordingly.
1723ac_fn_c_check_header_compile ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727$as_echo_n "checking for $2... " >&6; }
1728if eval \${$3+:} false; then :
1729  $as_echo_n "(cached) " >&6
1730else
1731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h.  */
1733$4
1734#include <$2>
1735_ACEOF
1736if ac_fn_c_try_compile "$LINENO"; then :
1737  eval "$3=yes"
1738else
1739  eval "$3=no"
1740fi
1741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742fi
1743eval ac_res=\$$3
1744	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745$as_echo "$ac_res" >&6; }
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747
1748} # ac_fn_c_check_header_compile
1749
1750# ac_fn_c_try_link LINENO
1751# -----------------------
1752# Try to link conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_link ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  rm -f conftest.$ac_objext conftest$ac_exeext
1757  if { { ac_try="$ac_link"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_link") 2>conftest.err
1765  ac_status=$?
1766  if test -s conftest.err; then
1767    grep -v '^ *+' conftest.err >conftest.er1
1768    cat conftest.er1 >&5
1769    mv -f conftest.er1 conftest.err
1770  fi
1771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772  test $ac_status = 0; } && {
1773	 test -z "$ac_c_werror_flag" ||
1774	 test ! -s conftest.err
1775       } && test -s conftest$ac_exeext && {
1776	 test "$cross_compiling" = yes ||
1777	 test -x conftest$ac_exeext
1778       }; then :
1779  ac_retval=0
1780else
1781  $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784	ac_retval=1
1785fi
1786  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788  # interfere with the next link command; also delete a directory that is
1789  # left behind by Apple's compiler.  We do this before executing the actions.
1790  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792  as_fn_set_status $ac_retval
1793
1794} # ac_fn_c_try_link
1795
1796# ac_fn_c_check_func LINENO FUNC VAR
1797# ----------------------------------
1798# Tests whether FUNC exists, setting the cache variable VAR accordingly
1799ac_fn_c_check_func ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803$as_echo_n "checking for $2... " >&6; }
1804if eval \${$3+:} false; then :
1805  $as_echo_n "(cached) " >&6
1806else
1807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h.  */
1809/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1811#define $2 innocuous_$2
1812
1813/* System header to define __stub macros and hopefully few prototypes,
1814    which can conflict with char $2 (); below.
1815    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1816    <limits.h> exists even on freestanding compilers.  */
1817
1818#ifdef __STDC__
1819# include <limits.h>
1820#else
1821# include <assert.h>
1822#endif
1823
1824#undef $2
1825
1826/* Override any GCC internal prototype to avoid an error.
1827   Use char because int might match the return type of a GCC
1828   builtin and then its argument prototype would still apply.  */
1829#ifdef __cplusplus
1830extern "C"
1831#endif
1832char $2 ();
1833/* The GNU C library defines this for functions which it implements
1834    to always fail with ENOSYS.  Some functions are actually named
1835    something starting with __ and the normal name is an alias.  */
1836#if defined __stub_$2 || defined __stub___$2
1837choke me
1838#endif
1839
1840int
1841main ()
1842{
1843return $2 ();
1844  ;
1845  return 0;
1846}
1847_ACEOF
1848if ac_fn_c_try_link "$LINENO"; then :
1849  eval "$3=yes"
1850else
1851  eval "$3=no"
1852fi
1853rm -f core conftest.err conftest.$ac_objext \
1854    conftest$ac_exeext conftest.$ac_ext
1855fi
1856eval ac_res=\$$3
1857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861} # ac_fn_c_check_func
1862
1863# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1864# ----------------------------------------------------
1865# Tries to find if the field MEMBER exists in type AGGR, after including
1866# INCLUDES, setting cache variable VAR accordingly.
1867ac_fn_c_check_member ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1871$as_echo_n "checking for $2.$3... " >&6; }
1872if eval \${$4+:} false; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877$5
1878int
1879main ()
1880{
1881static $2 ac_aggr;
1882if (ac_aggr.$3)
1883return 0;
1884  ;
1885  return 0;
1886}
1887_ACEOF
1888if ac_fn_c_try_compile "$LINENO"; then :
1889  eval "$4=yes"
1890else
1891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893$5
1894int
1895main ()
1896{
1897static $2 ac_aggr;
1898if (sizeof ac_aggr.$3)
1899return 0;
1900  ;
1901  return 0;
1902}
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905  eval "$4=yes"
1906else
1907  eval "$4=no"
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910fi
1911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912fi
1913eval ac_res=\$$4
1914	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_member
1919
1920# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1921# -------------------------------------------
1922# Tests whether TYPE exists after having included INCLUDES, setting cache
1923# variable VAR accordingly.
1924ac_fn_c_check_type ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if eval \${$3+:} false; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  eval "$3=no"
1933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h.  */
1935$4
1936int
1937main ()
1938{
1939if (sizeof ($2))
1940	 return 0;
1941  ;
1942  return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_compile "$LINENO"; then :
1946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949int
1950main ()
1951{
1952if (sizeof (($2)))
1953	    return 0;
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959
1960else
1961  eval "$3=yes"
1962fi
1963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_type
1973cat >config.log <<_ACEOF
1974This file contains any messages produced by compilers while
1975running configure, to aid debugging if configure makes a mistake.
1976
1977It was created by libedit $as_me 3.1, which was
1978generated by GNU Autoconf 2.69.  Invocation command line was
1979
1980  $ $0 $@
1981
1982_ACEOF
1983exec 5>>config.log
1984{
1985cat <<_ASUNAME
1986## --------- ##
1987## Platform. ##
1988## --------- ##
1989
1990hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1991uname -m = `(uname -m) 2>/dev/null || echo unknown`
1992uname -r = `(uname -r) 2>/dev/null || echo unknown`
1993uname -s = `(uname -s) 2>/dev/null || echo unknown`
1994uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995
1996/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1997/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1998
1999/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2000/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2001/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2002/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2003/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2004/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2005/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2006
2007_ASUNAME
2008
2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010for as_dir in $PATH
2011do
2012  IFS=$as_save_IFS
2013  test -z "$as_dir" && as_dir=.
2014    $as_echo "PATH: $as_dir"
2015  done
2016IFS=$as_save_IFS
2017
2018} >&5
2019
2020cat >&5 <<_ACEOF
2021
2022
2023## ----------- ##
2024## Core tests. ##
2025## ----------- ##
2026
2027_ACEOF
2028
2029
2030# Keep a trace of the command line.
2031# Strip out --no-create and --no-recursion so they do not pile up.
2032# Strip out --silent because we don't want to record it for future runs.
2033# Also quote any args containing shell meta-characters.
2034# Make two passes to allow for proper duplicate-argument suppression.
2035ac_configure_args=
2036ac_configure_args0=
2037ac_configure_args1=
2038ac_must_keep_next=false
2039for ac_pass in 1 2
2040do
2041  for ac_arg
2042  do
2043    case $ac_arg in
2044    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2045    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2046    | -silent | --silent | --silen | --sile | --sil)
2047      continue ;;
2048    *\'*)
2049      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050    esac
2051    case $ac_pass in
2052    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053    2)
2054      as_fn_append ac_configure_args1 " '$ac_arg'"
2055      if test $ac_must_keep_next = true; then
2056	ac_must_keep_next=false # Got value, back to normal.
2057      else
2058	case $ac_arg in
2059	  *=* | --config-cache | -C | -disable-* | --disable-* \
2060	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2061	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2062	  | -with-* | --with-* | -without-* | --without-* | --x)
2063	    case "$ac_configure_args0 " in
2064	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065	    esac
2066	    ;;
2067	  -* ) ac_must_keep_next=true ;;
2068	esac
2069      fi
2070      as_fn_append ac_configure_args " '$ac_arg'"
2071      ;;
2072    esac
2073  done
2074done
2075{ ac_configure_args0=; unset ac_configure_args0;}
2076{ ac_configure_args1=; unset ac_configure_args1;}
2077
2078# When interrupted or exit'd, cleanup temporary files, and complete
2079# config.log.  We remove comments because anyway the quotes in there
2080# would cause problems or look ugly.
2081# WARNING: Use '\'' to represent an apostrophe within the trap.
2082# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2083trap 'exit_status=$?
2084  # Save into config.log some information that might help in debugging.
2085  {
2086    echo
2087
2088    $as_echo "## ---------------- ##
2089## Cache variables. ##
2090## ---------------- ##"
2091    echo
2092    # The following way of writing the cache mishandles newlines in values,
2093(
2094  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2095    eval ac_val=\$$ac_var
2096    case $ac_val in #(
2097    *${as_nl}*)
2098      case $ac_var in #(
2099      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2100$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2101      esac
2102      case $ac_var in #(
2103      _ | IFS | as_nl) ;; #(
2104      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2105      *) { eval $ac_var=; unset $ac_var;} ;;
2106      esac ;;
2107    esac
2108  done
2109  (set) 2>&1 |
2110    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2111    *${as_nl}ac_space=\ *)
2112      sed -n \
2113	"s/'\''/'\''\\\\'\'''\''/g;
2114	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2115      ;; #(
2116    *)
2117      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2118      ;;
2119    esac |
2120    sort
2121)
2122    echo
2123
2124    $as_echo "## ----------------- ##
2125## Output variables. ##
2126## ----------------- ##"
2127    echo
2128    for ac_var in $ac_subst_vars
2129    do
2130      eval ac_val=\$$ac_var
2131      case $ac_val in
2132      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133      esac
2134      $as_echo "$ac_var='\''$ac_val'\''"
2135    done | sort
2136    echo
2137
2138    if test -n "$ac_subst_files"; then
2139      $as_echo "## ------------------- ##
2140## File substitutions. ##
2141## ------------------- ##"
2142      echo
2143      for ac_var in $ac_subst_files
2144      do
2145	eval ac_val=\$$ac_var
2146	case $ac_val in
2147	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148	esac
2149	$as_echo "$ac_var='\''$ac_val'\''"
2150      done | sort
2151      echo
2152    fi
2153
2154    if test -s confdefs.h; then
2155      $as_echo "## ----------- ##
2156## confdefs.h. ##
2157## ----------- ##"
2158      echo
2159      cat confdefs.h
2160      echo
2161    fi
2162    test "$ac_signal" != 0 &&
2163      $as_echo "$as_me: caught signal $ac_signal"
2164    $as_echo "$as_me: exit $exit_status"
2165  } >&5
2166  rm -f core *.core core.conftest.* &&
2167    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2168    exit $exit_status
2169' 0
2170for ac_signal in 1 2 13 15; do
2171  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2172done
2173ac_signal=0
2174
2175# confdefs.h avoids OS command line length limits that DEFS can exceed.
2176rm -f -r conftest* confdefs.h
2177
2178$as_echo "/* confdefs.h */" > confdefs.h
2179
2180# Predefined preprocessor variables.
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_NAME "$PACKAGE_NAME"
2184_ACEOF
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188_ACEOF
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_VERSION "$PACKAGE_VERSION"
2192_ACEOF
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_STRING "$PACKAGE_STRING"
2196_ACEOF
2197
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2200_ACEOF
2201
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_URL "$PACKAGE_URL"
2204_ACEOF
2205
2206
2207# Let the site file select an alternate cache file if it wants to.
2208# Prefer an explicitly selected file to automatically selected ones.
2209ac_site_file1=NONE
2210ac_site_file2=NONE
2211if test -n "$CONFIG_SITE"; then
2212  # We do not want a PATH search for config.site.
2213  case $CONFIG_SITE in #((
2214    -*)  ac_site_file1=./$CONFIG_SITE;;
2215    */*) ac_site_file1=$CONFIG_SITE;;
2216    *)   ac_site_file1=./$CONFIG_SITE;;
2217  esac
2218elif test "x$prefix" != xNONE; then
2219  ac_site_file1=$prefix/share/config.site
2220  ac_site_file2=$prefix/etc/config.site
2221else
2222  ac_site_file1=$ac_default_prefix/share/config.site
2223  ac_site_file2=$ac_default_prefix/etc/config.site
2224fi
2225for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2226do
2227  test "x$ac_site_file" = xNONE && continue
2228  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2229    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2230$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2231    sed 's/^/| /' "$ac_site_file" >&5
2232    . "$ac_site_file" \
2233      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2235as_fn_error $? "failed to load site script $ac_site_file
2236See \`config.log' for more details" "$LINENO" 5; }
2237  fi
2238done
2239
2240if test -r "$cache_file"; then
2241  # Some versions of bash will fail to source /dev/null (special files
2242  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2243  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2244    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2245$as_echo "$as_me: loading cache $cache_file" >&6;}
2246    case $cache_file in
2247      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2248      *)                      . "./$cache_file";;
2249    esac
2250  fi
2251else
2252  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2253$as_echo "$as_me: creating cache $cache_file" >&6;}
2254  >$cache_file
2255fi
2256
2257# Check that the precious variables saved in the cache have kept the same
2258# value.
2259ac_cache_corrupted=false
2260for ac_var in $ac_precious_vars; do
2261  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2262  eval ac_new_set=\$ac_env_${ac_var}_set
2263  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2264  eval ac_new_val=\$ac_env_${ac_var}_value
2265  case $ac_old_set,$ac_new_set in
2266    set,)
2267      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2268$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2269      ac_cache_corrupted=: ;;
2270    ,set)
2271      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2272$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2273      ac_cache_corrupted=: ;;
2274    ,);;
2275    *)
2276      if test "x$ac_old_val" != "x$ac_new_val"; then
2277	# differences in whitespace do not lead to failure.
2278	ac_old_val_w=`echo x $ac_old_val`
2279	ac_new_val_w=`echo x $ac_new_val`
2280	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2281	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2282$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2283	  ac_cache_corrupted=:
2284	else
2285	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2286$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2287	  eval $ac_var=\$ac_old_val
2288	fi
2289	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2290$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2291	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2292$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2293      fi;;
2294  esac
2295  # Pass precious variables to config.status.
2296  if test "$ac_new_set" = set; then
2297    case $ac_new_val in
2298    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2299    *) ac_arg=$ac_var=$ac_new_val ;;
2300    esac
2301    case " $ac_configure_args " in
2302      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2303      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2304    esac
2305  fi
2306done
2307if $ac_cache_corrupted; then
2308  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2311$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2312  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2313fi
2314## -------------------- ##
2315## Main body of script. ##
2316## -------------------- ##
2317
2318ac_ext=c
2319ac_cpp='$CPP $CPPFLAGS'
2320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323
2324
2325
2326
2327ac_config_headers="$ac_config_headers config.h"
2328
2329
2330# features of Posix that are extensions to C (define _GNU_SOURCE)
2331# expand $ac_aux_dir to an absolute path
2332am_aux_dir=`cd $ac_aux_dir && pwd`
2333
2334ac_ext=c
2335ac_cpp='$CPP $CPPFLAGS'
2336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339if test -n "$ac_tool_prefix"; then
2340  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2341set dummy ${ac_tool_prefix}gcc; ac_word=$2
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2343$as_echo_n "checking for $ac_word... " >&6; }
2344if ${ac_cv_prog_CC+:} false; then :
2345  $as_echo_n "(cached) " >&6
2346else
2347  if test -n "$CC"; then
2348  ac_cv_prog_CC="$CC" # Let the user override the test.
2349else
2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353  IFS=$as_save_IFS
2354  test -z "$as_dir" && as_dir=.
2355    for ac_exec_ext in '' $ac_executable_extensions; do
2356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2357    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2359    break 2
2360  fi
2361done
2362  done
2363IFS=$as_save_IFS
2364
2365fi
2366fi
2367CC=$ac_cv_prog_CC
2368if test -n "$CC"; then
2369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2370$as_echo "$CC" >&6; }
2371else
2372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2373$as_echo "no" >&6; }
2374fi
2375
2376
2377fi
2378if test -z "$ac_cv_prog_CC"; then
2379  ac_ct_CC=$CC
2380  # Extract the first word of "gcc", so it can be a program name with args.
2381set dummy gcc; ac_word=$2
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383$as_echo_n "checking for $ac_word... " >&6; }
2384if ${ac_cv_prog_ac_ct_CC+:} false; then :
2385  $as_echo_n "(cached) " >&6
2386else
2387  if test -n "$ac_ct_CC"; then
2388  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389else
2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391for as_dir in $PATH
2392do
2393  IFS=$as_save_IFS
2394  test -z "$as_dir" && as_dir=.
2395    for ac_exec_ext in '' $ac_executable_extensions; do
2396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397    ac_cv_prog_ac_ct_CC="gcc"
2398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2399    break 2
2400  fi
2401done
2402  done
2403IFS=$as_save_IFS
2404
2405fi
2406fi
2407ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408if test -n "$ac_ct_CC"; then
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2410$as_echo "$ac_ct_CC" >&6; }
2411else
2412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413$as_echo "no" >&6; }
2414fi
2415
2416  if test "x$ac_ct_CC" = x; then
2417    CC=""
2418  else
2419    case $cross_compiling:$ac_tool_warned in
2420yes:)
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2423ac_tool_warned=yes ;;
2424esac
2425    CC=$ac_ct_CC
2426  fi
2427else
2428  CC="$ac_cv_prog_CC"
2429fi
2430
2431if test -z "$CC"; then
2432          if test -n "$ac_tool_prefix"; then
2433    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2434set dummy ${ac_tool_prefix}cc; ac_word=$2
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436$as_echo_n "checking for $ac_word... " >&6; }
2437if ${ac_cv_prog_CC+:} false; then :
2438  $as_echo_n "(cached) " >&6
2439else
2440  if test -n "$CC"; then
2441  ac_cv_prog_CC="$CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446  IFS=$as_save_IFS
2447  test -z "$as_dir" && as_dir=.
2448    for ac_exec_ext in '' $ac_executable_extensions; do
2449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2450    ac_cv_prog_CC="${ac_tool_prefix}cc"
2451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452    break 2
2453  fi
2454done
2455  done
2456IFS=$as_save_IFS
2457
2458fi
2459fi
2460CC=$ac_cv_prog_CC
2461if test -n "$CC"; then
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2463$as_echo "$CC" >&6; }
2464else
2465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466$as_echo "no" >&6; }
2467fi
2468
2469
2470  fi
2471fi
2472if test -z "$CC"; then
2473  # Extract the first word of "cc", so it can be a program name with args.
2474set dummy cc; ac_word=$2
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476$as_echo_n "checking for $ac_word... " >&6; }
2477if ${ac_cv_prog_CC+:} false; then :
2478  $as_echo_n "(cached) " >&6
2479else
2480  if test -n "$CC"; then
2481  ac_cv_prog_CC="$CC" # Let the user override the test.
2482else
2483  ac_prog_rejected=no
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487  IFS=$as_save_IFS
2488  test -z "$as_dir" && as_dir=.
2489    for ac_exec_ext in '' $ac_executable_extensions; do
2490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2492       ac_prog_rejected=yes
2493       continue
2494     fi
2495    ac_cv_prog_CC="cc"
2496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497    break 2
2498  fi
2499done
2500  done
2501IFS=$as_save_IFS
2502
2503if test $ac_prog_rejected = yes; then
2504  # We found a bogon in the path, so make sure we never use it.
2505  set dummy $ac_cv_prog_CC
2506  shift
2507  if test $# != 0; then
2508    # We chose a different compiler from the bogus one.
2509    # However, it has the same basename, so the bogon will be chosen
2510    # first if we set CC to just the basename; use the full file name.
2511    shift
2512    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2513  fi
2514fi
2515fi
2516fi
2517CC=$ac_cv_prog_CC
2518if test -n "$CC"; then
2519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2520$as_echo "$CC" >&6; }
2521else
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523$as_echo "no" >&6; }
2524fi
2525
2526
2527fi
2528if test -z "$CC"; then
2529  if test -n "$ac_tool_prefix"; then
2530  for ac_prog in cl.exe
2531  do
2532    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2533set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535$as_echo_n "checking for $ac_word... " >&6; }
2536if ${ac_cv_prog_CC+:} false; then :
2537  $as_echo_n "(cached) " >&6
2538else
2539  if test -n "$CC"; then
2540  ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545  IFS=$as_save_IFS
2546  test -z "$as_dir" && as_dir=.
2547    for ac_exec_ext in '' $ac_executable_extensions; do
2548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551    break 2
2552  fi
2553done
2554  done
2555IFS=$as_save_IFS
2556
2557fi
2558fi
2559CC=$ac_cv_prog_CC
2560if test -n "$CC"; then
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2562$as_echo "$CC" >&6; }
2563else
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565$as_echo "no" >&6; }
2566fi
2567
2568
2569    test -n "$CC" && break
2570  done
2571fi
2572if test -z "$CC"; then
2573  ac_ct_CC=$CC
2574  for ac_prog in cl.exe
2575do
2576  # Extract the first word of "$ac_prog", so it can be a program name with args.
2577set dummy $ac_prog; ac_word=$2
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579$as_echo_n "checking for $ac_word... " >&6; }
2580if ${ac_cv_prog_ac_ct_CC+:} false; then :
2581  $as_echo_n "(cached) " >&6
2582else
2583  if test -n "$ac_ct_CC"; then
2584  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589  IFS=$as_save_IFS
2590  test -z "$as_dir" && as_dir=.
2591    for ac_exec_ext in '' $ac_executable_extensions; do
2592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593    ac_cv_prog_ac_ct_CC="$ac_prog"
2594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595    break 2
2596  fi
2597done
2598  done
2599IFS=$as_save_IFS
2600
2601fi
2602fi
2603ac_ct_CC=$ac_cv_prog_ac_ct_CC
2604if test -n "$ac_ct_CC"; then
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2606$as_echo "$ac_ct_CC" >&6; }
2607else
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609$as_echo "no" >&6; }
2610fi
2611
2612
2613  test -n "$ac_ct_CC" && break
2614done
2615
2616  if test "x$ac_ct_CC" = x; then
2617    CC=""
2618  else
2619    case $cross_compiling:$ac_tool_warned in
2620yes:)
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2623ac_tool_warned=yes ;;
2624esac
2625    CC=$ac_ct_CC
2626  fi
2627fi
2628
2629fi
2630
2631
2632test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634as_fn_error $? "no acceptable C compiler found in \$PATH
2635See \`config.log' for more details" "$LINENO" 5; }
2636
2637# Provide some information about the compiler.
2638$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2639set X $ac_compile
2640ac_compiler=$2
2641for ac_option in --version -v -V -qversion; do
2642  { { ac_try="$ac_compiler $ac_option >&5"
2643case "(($ac_try" in
2644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645  *) ac_try_echo=$ac_try;;
2646esac
2647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648$as_echo "$ac_try_echo"; } >&5
2649  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2650  ac_status=$?
2651  if test -s conftest.err; then
2652    sed '10a\
2653... rest of stderr output deleted ...
2654         10q' conftest.err >conftest.er1
2655    cat conftest.er1 >&5
2656  fi
2657  rm -f conftest.er1 conftest.err
2658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2659  test $ac_status = 0; }
2660done
2661
2662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h.  */
2664
2665int
2666main ()
2667{
2668
2669  ;
2670  return 0;
2671}
2672_ACEOF
2673ac_clean_files_save=$ac_clean_files
2674ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2675# Try to create an executable without -o first, disregard a.out.
2676# It will help us diagnose broken compilers, and finding out an intuition
2677# of exeext.
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2679$as_echo_n "checking whether the C compiler works... " >&6; }
2680ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2681
2682# The possible output files:
2683ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2684
2685ac_rmfiles=
2686for ac_file in $ac_files
2687do
2688  case $ac_file in
2689    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2690    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2691  esac
2692done
2693rm -f $ac_rmfiles
2694
2695if { { ac_try="$ac_link_default"
2696case "(($ac_try" in
2697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698  *) ac_try_echo=$ac_try;;
2699esac
2700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701$as_echo "$ac_try_echo"; } >&5
2702  (eval "$ac_link_default") 2>&5
2703  ac_status=$?
2704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705  test $ac_status = 0; }; then :
2706  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2707# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2708# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2709# so that the user can short-circuit this test for compilers unknown to
2710# Autoconf.
2711for ac_file in $ac_files ''
2712do
2713  test -f "$ac_file" || continue
2714  case $ac_file in
2715    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2716	;;
2717    [ab].out )
2718	# We found the default executable, but exeext='' is most
2719	# certainly right.
2720	break;;
2721    *.* )
2722	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2723	then :; else
2724	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2725	fi
2726	# We set ac_cv_exeext here because the later test for it is not
2727	# safe: cross compilers may not add the suffix if given an `-o'
2728	# argument, so we may need to know it at that point already.
2729	# Even if this section looks crufty: it has the advantage of
2730	# actually working.
2731	break;;
2732    * )
2733	break;;
2734  esac
2735done
2736test "$ac_cv_exeext" = no && ac_cv_exeext=
2737
2738else
2739  ac_file=''
2740fi
2741if test -z "$ac_file"; then :
2742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743$as_echo "no" >&6; }
2744$as_echo "$as_me: failed program was:" >&5
2745sed 's/^/| /' conftest.$ac_ext >&5
2746
2747{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2749as_fn_error 77 "C compiler cannot create executables
2750See \`config.log' for more details" "$LINENO" 5; }
2751else
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2753$as_echo "yes" >&6; }
2754fi
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2756$as_echo_n "checking for C compiler default output file name... " >&6; }
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2758$as_echo "$ac_file" >&6; }
2759ac_exeext=$ac_cv_exeext
2760
2761rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2762ac_clean_files=$ac_clean_files_save
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2764$as_echo_n "checking for suffix of executables... " >&6; }
2765if { { ac_try="$ac_link"
2766case "(($ac_try" in
2767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768  *) ac_try_echo=$ac_try;;
2769esac
2770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2771$as_echo "$ac_try_echo"; } >&5
2772  (eval "$ac_link") 2>&5
2773  ac_status=$?
2774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2775  test $ac_status = 0; }; then :
2776  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2777# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2778# work properly (i.e., refer to `conftest.exe'), while it won't with
2779# `rm'.
2780for ac_file in conftest.exe conftest conftest.*; do
2781  test -f "$ac_file" || continue
2782  case $ac_file in
2783    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2784    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2785	  break;;
2786    * ) break;;
2787  esac
2788done
2789else
2790  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2793See \`config.log' for more details" "$LINENO" 5; }
2794fi
2795rm -f conftest conftest$ac_cv_exeext
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2797$as_echo "$ac_cv_exeext" >&6; }
2798
2799rm -f conftest.$ac_ext
2800EXEEXT=$ac_cv_exeext
2801ac_exeext=$EXEEXT
2802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h.  */
2804#include <stdio.h>
2805int
2806main ()
2807{
2808FILE *f = fopen ("conftest.out", "w");
2809 return ferror (f) || fclose (f) != 0;
2810
2811  ;
2812  return 0;
2813}
2814_ACEOF
2815ac_clean_files="$ac_clean_files conftest.out"
2816# Check that the compiler produces executables we can run.  If not, either
2817# the compiler is broken, or we cross compile.
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2819$as_echo_n "checking whether we are cross compiling... " >&6; }
2820if test "$cross_compiling" != yes; then
2821  { { ac_try="$ac_link"
2822case "(($ac_try" in
2823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824  *) ac_try_echo=$ac_try;;
2825esac
2826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2827$as_echo "$ac_try_echo"; } >&5
2828  (eval "$ac_link") 2>&5
2829  ac_status=$?
2830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831  test $ac_status = 0; }
2832  if { ac_try='./conftest$ac_cv_exeext'
2833  { { case "(($ac_try" in
2834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835  *) ac_try_echo=$ac_try;;
2836esac
2837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838$as_echo "$ac_try_echo"; } >&5
2839  (eval "$ac_try") 2>&5
2840  ac_status=$?
2841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842  test $ac_status = 0; }; }; then
2843    cross_compiling=no
2844  else
2845    if test "$cross_compiling" = maybe; then
2846	cross_compiling=yes
2847    else
2848	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2850as_fn_error $? "cannot run C compiled programs.
2851If you meant to cross compile, use \`--host'.
2852See \`config.log' for more details" "$LINENO" 5; }
2853    fi
2854  fi
2855fi
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2857$as_echo "$cross_compiling" >&6; }
2858
2859rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2860ac_clean_files=$ac_clean_files_save
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2862$as_echo_n "checking for suffix of object files... " >&6; }
2863if ${ac_cv_objext+:} false; then :
2864  $as_echo_n "(cached) " >&6
2865else
2866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867/* end confdefs.h.  */
2868
2869int
2870main ()
2871{
2872
2873  ;
2874  return 0;
2875}
2876_ACEOF
2877rm -f conftest.o conftest.obj
2878if { { ac_try="$ac_compile"
2879case "(($ac_try" in
2880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881  *) ac_try_echo=$ac_try;;
2882esac
2883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884$as_echo "$ac_try_echo"; } >&5
2885  (eval "$ac_compile") 2>&5
2886  ac_status=$?
2887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888  test $ac_status = 0; }; then :
2889  for ac_file in conftest.o conftest.obj conftest.*; do
2890  test -f "$ac_file" || continue;
2891  case $ac_file in
2892    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2893    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2894       break;;
2895  esac
2896done
2897else
2898  $as_echo "$as_me: failed program was:" >&5
2899sed 's/^/| /' conftest.$ac_ext >&5
2900
2901{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2903as_fn_error $? "cannot compute suffix of object files: cannot compile
2904See \`config.log' for more details" "$LINENO" 5; }
2905fi
2906rm -f conftest.$ac_cv_objext conftest.$ac_ext
2907fi
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2909$as_echo "$ac_cv_objext" >&6; }
2910OBJEXT=$ac_cv_objext
2911ac_objext=$OBJEXT
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2913$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2914if ${ac_cv_c_compiler_gnu+:} false; then :
2915  $as_echo_n "(cached) " >&6
2916else
2917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918/* end confdefs.h.  */
2919
2920int
2921main ()
2922{
2923#ifndef __GNUC__
2924       choke me
2925#endif
2926
2927  ;
2928  return 0;
2929}
2930_ACEOF
2931if ac_fn_c_try_compile "$LINENO"; then :
2932  ac_compiler_gnu=yes
2933else
2934  ac_compiler_gnu=no
2935fi
2936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2937ac_cv_c_compiler_gnu=$ac_compiler_gnu
2938
2939fi
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2941$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2942if test $ac_compiler_gnu = yes; then
2943  GCC=yes
2944else
2945  GCC=
2946fi
2947ac_test_CFLAGS=${CFLAGS+set}
2948ac_save_CFLAGS=$CFLAGS
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2950$as_echo_n "checking whether $CC accepts -g... " >&6; }
2951if ${ac_cv_prog_cc_g+:} false; then :
2952  $as_echo_n "(cached) " >&6
2953else
2954  ac_save_c_werror_flag=$ac_c_werror_flag
2955   ac_c_werror_flag=yes
2956   ac_cv_prog_cc_g=no
2957   CFLAGS="-g"
2958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_compile "$LINENO"; then :
2970  ac_cv_prog_cc_g=yes
2971else
2972  CFLAGS=""
2973      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974/* end confdefs.h.  */
2975
2976int
2977main ()
2978{
2979
2980  ;
2981  return 0;
2982}
2983_ACEOF
2984if ac_fn_c_try_compile "$LINENO"; then :
2985
2986else
2987  ac_c_werror_flag=$ac_save_c_werror_flag
2988	 CFLAGS="-g"
2989	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990/* end confdefs.h.  */
2991
2992int
2993main ()
2994{
2995
2996  ;
2997  return 0;
2998}
2999_ACEOF
3000if ac_fn_c_try_compile "$LINENO"; then :
3001  ac_cv_prog_cc_g=yes
3002fi
3003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004fi
3005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006fi
3007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008   ac_c_werror_flag=$ac_save_c_werror_flag
3009fi
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3011$as_echo "$ac_cv_prog_cc_g" >&6; }
3012if test "$ac_test_CFLAGS" = set; then
3013  CFLAGS=$ac_save_CFLAGS
3014elif test $ac_cv_prog_cc_g = yes; then
3015  if test "$GCC" = yes; then
3016    CFLAGS="-g -O2"
3017  else
3018    CFLAGS="-g"
3019  fi
3020else
3021  if test "$GCC" = yes; then
3022    CFLAGS="-O2"
3023  else
3024    CFLAGS=
3025  fi
3026fi
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3028$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3029if ${ac_cv_prog_cc_c89+:} false; then :
3030  $as_echo_n "(cached) " >&6
3031else
3032  ac_cv_prog_cc_c89=no
3033ac_save_CC=$CC
3034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035/* end confdefs.h.  */
3036#include <stdarg.h>
3037#include <stdio.h>
3038struct stat;
3039/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3040struct buf { int x; };
3041FILE * (*rcsopen) (struct buf *, struct stat *, int);
3042static char *e (p, i)
3043     char **p;
3044     int i;
3045{
3046  return p[i];
3047}
3048static char *f (char * (*g) (char **, int), char **p, ...)
3049{
3050  char *s;
3051  va_list v;
3052  va_start (v,p);
3053  s = g (p, va_arg (v,int));
3054  va_end (v);
3055  return s;
3056}
3057
3058/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3059   function prototypes and stuff, but not '\xHH' hex character constants.
3060   These don't provoke an error unfortunately, instead are silently treated
3061   as 'x'.  The following induces an error, until -std is added to get
3062   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3063   array size at least.  It's necessary to write '\x00'==0 to get something
3064   that's true only with -std.  */
3065int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3066
3067/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3068   inside strings and character constants.  */
3069#define FOO(x) 'x'
3070int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3071
3072int test (int i, double x);
3073struct s1 {int (*f) (int a);};
3074struct s2 {int (*f) (double a);};
3075int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3076int argc;
3077char **argv;
3078int
3079main ()
3080{
3081return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3082  ;
3083  return 0;
3084}
3085_ACEOF
3086for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3087	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3088do
3089  CC="$ac_save_CC $ac_arg"
3090  if ac_fn_c_try_compile "$LINENO"; then :
3091  ac_cv_prog_cc_c89=$ac_arg
3092fi
3093rm -f core conftest.err conftest.$ac_objext
3094  test "x$ac_cv_prog_cc_c89" != "xno" && break
3095done
3096rm -f conftest.$ac_ext
3097CC=$ac_save_CC
3098
3099fi
3100# AC_CACHE_VAL
3101case "x$ac_cv_prog_cc_c89" in
3102  x)
3103    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3104$as_echo "none needed" >&6; } ;;
3105  xno)
3106    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3107$as_echo "unsupported" >&6; } ;;
3108  *)
3109    CC="$CC $ac_cv_prog_cc_c89"
3110    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3111$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3112esac
3113if test "x$ac_cv_prog_cc_c89" != xno; then :
3114
3115fi
3116
3117ac_ext=c
3118ac_cpp='$CPP $CPPFLAGS'
3119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122
3123ac_ext=c
3124ac_cpp='$CPP $CPPFLAGS'
3125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3129$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3130if ${am_cv_prog_cc_c_o+:} false; then :
3131  $as_echo_n "(cached) " >&6
3132else
3133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h.  */
3135
3136int
3137main ()
3138{
3139
3140  ;
3141  return 0;
3142}
3143_ACEOF
3144  # Make sure it works both with $CC and with simple cc.
3145  # Following AC_PROG_CC_C_O, we do the test twice because some
3146  # compilers refuse to overwrite an existing .o file with -o,
3147  # though they will create one.
3148  am_cv_prog_cc_c_o=yes
3149  for am_i in 1 2; do
3150    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3151   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); } \
3155         && test -f conftest2.$ac_objext; then
3156      : OK
3157    else
3158      am_cv_prog_cc_c_o=no
3159      break
3160    fi
3161  done
3162  rm -f core conftest*
3163  unset am_i
3164fi
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3166$as_echo "$am_cv_prog_cc_c_o" >&6; }
3167if test "$am_cv_prog_cc_c_o" != yes; then
3168   # Losing compiler, so override with the script.
3169   # FIXME: It is wrong to rewrite CC.
3170   # But if we don't then we get into trouble of one sort or another.
3171   # A longer-term fix would be to have automake use am__CC in this case,
3172   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3173   CC="$am_aux_dir/compile $CC"
3174fi
3175ac_ext=c
3176ac_cpp='$CPP $CPPFLAGS'
3177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180
3181
3182
3183ac_ext=c
3184ac_cpp='$CPP $CPPFLAGS'
3185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3189$as_echo_n "checking how to run the C preprocessor... " >&6; }
3190# On Suns, sometimes $CPP names a directory.
3191if test -n "$CPP" && test -d "$CPP"; then
3192  CPP=
3193fi
3194if test -z "$CPP"; then
3195  if ${ac_cv_prog_CPP+:} false; then :
3196  $as_echo_n "(cached) " >&6
3197else
3198      # Double quotes because CPP needs to be expanded
3199    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3200    do
3201      ac_preproc_ok=false
3202for ac_c_preproc_warn_flag in '' yes
3203do
3204  # Use a header file that comes with gcc, so configuring glibc
3205  # with a fresh cross-compiler works.
3206  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3207  # <limits.h> exists even on freestanding compilers.
3208  # On the NeXT, cc -E runs the code through the compiler's parser,
3209  # not just through cpp. "Syntax error" is here to catch this case.
3210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211/* end confdefs.h.  */
3212#ifdef __STDC__
3213# include <limits.h>
3214#else
3215# include <assert.h>
3216#endif
3217		     Syntax error
3218_ACEOF
3219if ac_fn_c_try_cpp "$LINENO"; then :
3220
3221else
3222  # Broken: fails on valid input.
3223continue
3224fi
3225rm -f conftest.err conftest.i conftest.$ac_ext
3226
3227  # OK, works on sane cases.  Now check whether nonexistent headers
3228  # can be detected and how.
3229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230/* end confdefs.h.  */
3231#include <ac_nonexistent.h>
3232_ACEOF
3233if ac_fn_c_try_cpp "$LINENO"; then :
3234  # Broken: success on invalid input.
3235continue
3236else
3237  # Passes both tests.
3238ac_preproc_ok=:
3239break
3240fi
3241rm -f conftest.err conftest.i conftest.$ac_ext
3242
3243done
3244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3245rm -f conftest.i conftest.err conftest.$ac_ext
3246if $ac_preproc_ok; then :
3247  break
3248fi
3249
3250    done
3251    ac_cv_prog_CPP=$CPP
3252
3253fi
3254  CPP=$ac_cv_prog_CPP
3255else
3256  ac_cv_prog_CPP=$CPP
3257fi
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3259$as_echo "$CPP" >&6; }
3260ac_preproc_ok=false
3261for ac_c_preproc_warn_flag in '' yes
3262do
3263  # Use a header file that comes with gcc, so configuring glibc
3264  # with a fresh cross-compiler works.
3265  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3266  # <limits.h> exists even on freestanding compilers.
3267  # On the NeXT, cc -E runs the code through the compiler's parser,
3268  # not just through cpp. "Syntax error" is here to catch this case.
3269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h.  */
3271#ifdef __STDC__
3272# include <limits.h>
3273#else
3274# include <assert.h>
3275#endif
3276		     Syntax error
3277_ACEOF
3278if ac_fn_c_try_cpp "$LINENO"; then :
3279
3280else
3281  # Broken: fails on valid input.
3282continue
3283fi
3284rm -f conftest.err conftest.i conftest.$ac_ext
3285
3286  # OK, works on sane cases.  Now check whether nonexistent headers
3287  # can be detected and how.
3288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h.  */
3290#include <ac_nonexistent.h>
3291_ACEOF
3292if ac_fn_c_try_cpp "$LINENO"; then :
3293  # Broken: success on invalid input.
3294continue
3295else
3296  # Passes both tests.
3297ac_preproc_ok=:
3298break
3299fi
3300rm -f conftest.err conftest.i conftest.$ac_ext
3301
3302done
3303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3304rm -f conftest.i conftest.err conftest.$ac_ext
3305if $ac_preproc_ok; then :
3306
3307else
3308  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3311See \`config.log' for more details" "$LINENO" 5; }
3312fi
3313
3314ac_ext=c
3315ac_cpp='$CPP $CPPFLAGS'
3316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319
3320
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3322$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3323if ${ac_cv_path_GREP+:} false; then :
3324  $as_echo_n "(cached) " >&6
3325else
3326  if test -z "$GREP"; then
3327  ac_path_GREP_found=false
3328  # Loop through the user's path and test for each of PROGNAME-LIST
3329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334    for ac_prog in grep ggrep; do
3335    for ac_exec_ext in '' $ac_executable_extensions; do
3336      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3337      as_fn_executable_p "$ac_path_GREP" || continue
3338# Check for GNU ac_path_GREP and select it if it is found.
3339  # Check for GNU $ac_path_GREP
3340case `"$ac_path_GREP" --version 2>&1` in
3341*GNU*)
3342  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3343*)
3344  ac_count=0
3345  $as_echo_n 0123456789 >"conftest.in"
3346  while :
3347  do
3348    cat "conftest.in" "conftest.in" >"conftest.tmp"
3349    mv "conftest.tmp" "conftest.in"
3350    cp "conftest.in" "conftest.nl"
3351    $as_echo 'GREP' >> "conftest.nl"
3352    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3353    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3354    as_fn_arith $ac_count + 1 && ac_count=$as_val
3355    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3356      # Best one so far, save it but keep looking for a better one
3357      ac_cv_path_GREP="$ac_path_GREP"
3358      ac_path_GREP_max=$ac_count
3359    fi
3360    # 10*(2^10) chars as input seems more than enough
3361    test $ac_count -gt 10 && break
3362  done
3363  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3364esac
3365
3366      $ac_path_GREP_found && break 3
3367    done
3368  done
3369  done
3370IFS=$as_save_IFS
3371  if test -z "$ac_cv_path_GREP"; then
3372    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3373  fi
3374else
3375  ac_cv_path_GREP=$GREP
3376fi
3377
3378fi
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3380$as_echo "$ac_cv_path_GREP" >&6; }
3381 GREP="$ac_cv_path_GREP"
3382
3383
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3385$as_echo_n "checking for egrep... " >&6; }
3386if ${ac_cv_path_EGREP+:} false; then :
3387  $as_echo_n "(cached) " >&6
3388else
3389  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3390   then ac_cv_path_EGREP="$GREP -E"
3391   else
3392     if test -z "$EGREP"; then
3393  ac_path_EGREP_found=false
3394  # Loop through the user's path and test for each of PROGNAME-LIST
3395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3397do
3398  IFS=$as_save_IFS
3399  test -z "$as_dir" && as_dir=.
3400    for ac_prog in egrep; do
3401    for ac_exec_ext in '' $ac_executable_extensions; do
3402      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3403      as_fn_executable_p "$ac_path_EGREP" || continue
3404# Check for GNU ac_path_EGREP and select it if it is found.
3405  # Check for GNU $ac_path_EGREP
3406case `"$ac_path_EGREP" --version 2>&1` in
3407*GNU*)
3408  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3409*)
3410  ac_count=0
3411  $as_echo_n 0123456789 >"conftest.in"
3412  while :
3413  do
3414    cat "conftest.in" "conftest.in" >"conftest.tmp"
3415    mv "conftest.tmp" "conftest.in"
3416    cp "conftest.in" "conftest.nl"
3417    $as_echo 'EGREP' >> "conftest.nl"
3418    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3419    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3420    as_fn_arith $ac_count + 1 && ac_count=$as_val
3421    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3422      # Best one so far, save it but keep looking for a better one
3423      ac_cv_path_EGREP="$ac_path_EGREP"
3424      ac_path_EGREP_max=$ac_count
3425    fi
3426    # 10*(2^10) chars as input seems more than enough
3427    test $ac_count -gt 10 && break
3428  done
3429  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3430esac
3431
3432      $ac_path_EGREP_found && break 3
3433    done
3434  done
3435  done
3436IFS=$as_save_IFS
3437  if test -z "$ac_cv_path_EGREP"; then
3438    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3439  fi
3440else
3441  ac_cv_path_EGREP=$EGREP
3442fi
3443
3444   fi
3445fi
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3447$as_echo "$ac_cv_path_EGREP" >&6; }
3448 EGREP="$ac_cv_path_EGREP"
3449
3450
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3452$as_echo_n "checking for ANSI C header files... " >&6; }
3453if ${ac_cv_header_stdc+:} false; then :
3454  $as_echo_n "(cached) " >&6
3455else
3456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h.  */
3458#include <stdlib.h>
3459#include <stdarg.h>
3460#include <string.h>
3461#include <float.h>
3462
3463int
3464main ()
3465{
3466
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471if ac_fn_c_try_compile "$LINENO"; then :
3472  ac_cv_header_stdc=yes
3473else
3474  ac_cv_header_stdc=no
3475fi
3476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477
3478if test $ac_cv_header_stdc = yes; then
3479  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481/* end confdefs.h.  */
3482#include <string.h>
3483
3484_ACEOF
3485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486  $EGREP "memchr" >/dev/null 2>&1; then :
3487
3488else
3489  ac_cv_header_stdc=no
3490fi
3491rm -f conftest*
3492
3493fi
3494
3495if test $ac_cv_header_stdc = yes; then
3496  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499#include <stdlib.h>
3500
3501_ACEOF
3502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503  $EGREP "free" >/dev/null 2>&1; then :
3504
3505else
3506  ac_cv_header_stdc=no
3507fi
3508rm -f conftest*
3509
3510fi
3511
3512if test $ac_cv_header_stdc = yes; then
3513  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3514  if test "$cross_compiling" = yes; then :
3515  :
3516else
3517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h.  */
3519#include <ctype.h>
3520#include <stdlib.h>
3521#if ((' ' & 0x0FF) == 0x020)
3522# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3523# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3524#else
3525# define ISLOWER(c) \
3526		   (('a' <= (c) && (c) <= 'i') \
3527		     || ('j' <= (c) && (c) <= 'r') \
3528		     || ('s' <= (c) && (c) <= 'z'))
3529# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3530#endif
3531
3532#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3533int
3534main ()
3535{
3536  int i;
3537  for (i = 0; i < 256; i++)
3538    if (XOR (islower (i), ISLOWER (i))
3539	|| toupper (i) != TOUPPER (i))
3540      return 2;
3541  return 0;
3542}
3543_ACEOF
3544if ac_fn_c_try_run "$LINENO"; then :
3545
3546else
3547  ac_cv_header_stdc=no
3548fi
3549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3550  conftest.$ac_objext conftest.beam conftest.$ac_ext
3551fi
3552
3553fi
3554fi
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3556$as_echo "$ac_cv_header_stdc" >&6; }
3557if test $ac_cv_header_stdc = yes; then
3558
3559$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3560
3561fi
3562
3563# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3564for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3565		  inttypes.h stdint.h unistd.h
3566do :
3567  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3568ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3569"
3570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3571  cat >>confdefs.h <<_ACEOF
3572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3573_ACEOF
3574
3575fi
3576
3577done
3578
3579
3580
3581  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3582if test "x$ac_cv_header_minix_config_h" = xyes; then :
3583  MINIX=yes
3584else
3585  MINIX=
3586fi
3587
3588
3589  if test "$MINIX" = yes; then
3590
3591$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3592
3593
3594$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3595
3596
3597$as_echo "#define _MINIX 1" >>confdefs.h
3598
3599  fi
3600
3601
3602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3603$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3604if ${ac_cv_safe_to_define___extensions__+:} false; then :
3605  $as_echo_n "(cached) " >&6
3606else
3607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h.  */
3609
3610#         define __EXTENSIONS__ 1
3611          $ac_includes_default
3612int
3613main ()
3614{
3615
3616  ;
3617  return 0;
3618}
3619_ACEOF
3620if ac_fn_c_try_compile "$LINENO"; then :
3621  ac_cv_safe_to_define___extensions__=yes
3622else
3623  ac_cv_safe_to_define___extensions__=no
3624fi
3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3628$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3629  test $ac_cv_safe_to_define___extensions__ = yes &&
3630    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3631
3632  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3633
3634  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3635
3636  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3637
3638  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3639
3640
3641
3642am__api_version='1.14'
3643
3644ac_aux_dir=
3645for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3646  if test -f "$ac_dir/install-sh"; then
3647    ac_aux_dir=$ac_dir
3648    ac_install_sh="$ac_aux_dir/install-sh -c"
3649    break
3650  elif test -f "$ac_dir/install.sh"; then
3651    ac_aux_dir=$ac_dir
3652    ac_install_sh="$ac_aux_dir/install.sh -c"
3653    break
3654  elif test -f "$ac_dir/shtool"; then
3655    ac_aux_dir=$ac_dir
3656    ac_install_sh="$ac_aux_dir/shtool install -c"
3657    break
3658  fi
3659done
3660if test -z "$ac_aux_dir"; then
3661  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3662fi
3663
3664# These three variables are undocumented and unsupported,
3665# and are intended to be withdrawn in a future Autoconf release.
3666# They can cause serious problems if a builder's source tree is in a directory
3667# whose full name contains unusual characters.
3668ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3669ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3670ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3671
3672
3673# Find a good install program.  We prefer a C program (faster),
3674# so one script is as good as another.  But avoid the broken or
3675# incompatible versions:
3676# SysV /etc/install, /usr/sbin/install
3677# SunOS /usr/etc/install
3678# IRIX /sbin/install
3679# AIX /bin/install
3680# AmigaOS /C/install, which installs bootblocks on floppy discs
3681# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3682# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3683# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3684# OS/2's system install, which has a completely different semantic
3685# ./install, which can be erroneously created by make from ./install.sh.
3686# Reject install programs that cannot install multiple files.
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3688$as_echo_n "checking for a BSD-compatible install... " >&6; }
3689if test -z "$INSTALL"; then
3690if ${ac_cv_path_install+:} false; then :
3691  $as_echo_n "(cached) " >&6
3692else
3693  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696  IFS=$as_save_IFS
3697  test -z "$as_dir" && as_dir=.
3698    # Account for people who put trailing slashes in PATH elements.
3699case $as_dir/ in #((
3700  ./ | .// | /[cC]/* | \
3701  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3702  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3703  /usr/ucb/* ) ;;
3704  *)
3705    # OSF1 and SCO ODT 3.0 have their own names for install.
3706    # Don't use installbsd from OSF since it installs stuff as root
3707    # by default.
3708    for ac_prog in ginstall scoinst install; do
3709      for ac_exec_ext in '' $ac_executable_extensions; do
3710	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3711	  if test $ac_prog = install &&
3712	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3713	    # AIX install.  It has an incompatible calling convention.
3714	    :
3715	  elif test $ac_prog = install &&
3716	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3717	    # program-specific install script used by HP pwplus--don't use.
3718	    :
3719	  else
3720	    rm -rf conftest.one conftest.two conftest.dir
3721	    echo one > conftest.one
3722	    echo two > conftest.two
3723	    mkdir conftest.dir
3724	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3725	      test -s conftest.one && test -s conftest.two &&
3726	      test -s conftest.dir/conftest.one &&
3727	      test -s conftest.dir/conftest.two
3728	    then
3729	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3730	      break 3
3731	    fi
3732	  fi
3733	fi
3734      done
3735    done
3736    ;;
3737esac
3738
3739  done
3740IFS=$as_save_IFS
3741
3742rm -rf conftest.one conftest.two conftest.dir
3743
3744fi
3745  if test "${ac_cv_path_install+set}" = set; then
3746    INSTALL=$ac_cv_path_install
3747  else
3748    # As a last resort, use the slow shell script.  Don't cache a
3749    # value for INSTALL within a source directory, because that will
3750    # break other packages using the cache if that directory is
3751    # removed, or if the value is a relative name.
3752    INSTALL=$ac_install_sh
3753  fi
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3756$as_echo "$INSTALL" >&6; }
3757
3758# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3759# It thinks the first close brace ends the variable substitution.
3760test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3761
3762test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3763
3764test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3765
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3767$as_echo_n "checking whether build environment is sane... " >&6; }
3768# Reject unsafe characters in $srcdir or the absolute working directory
3769# name.  Accept space and tab only in the latter.
3770am_lf='
3771'
3772case `pwd` in
3773  *[\\\"\#\$\&\'\`$am_lf]*)
3774    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3775esac
3776case $srcdir in
3777  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3778    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3779esac
3780
3781# Do 'set' in a subshell so we don't clobber the current shell's
3782# arguments.  Must try -L first in case configure is actually a
3783# symlink; some systems play weird games with the mod time of symlinks
3784# (eg FreeBSD returns the mod time of the symlink's containing
3785# directory).
3786if (
3787   am_has_slept=no
3788   for am_try in 1 2; do
3789     echo "timestamp, slept: $am_has_slept" > conftest.file
3790     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3791     if test "$*" = "X"; then
3792	# -L didn't work.
3793	set X `ls -t "$srcdir/configure" conftest.file`
3794     fi
3795     if test "$*" != "X $srcdir/configure conftest.file" \
3796	&& test "$*" != "X conftest.file $srcdir/configure"; then
3797
3798	# If neither matched, then we have a broken ls.  This can happen
3799	# if, for instance, CONFIG_SHELL is bash and it inherits a
3800	# broken ls alias from the environment.  This has actually
3801	# happened.  Such a system could not be considered "sane".
3802	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3803  alias in your environment" "$LINENO" 5
3804     fi
3805     if test "$2" = conftest.file || test $am_try -eq 2; then
3806       break
3807     fi
3808     # Just in case.
3809     sleep 1
3810     am_has_slept=yes
3811   done
3812   test "$2" = conftest.file
3813   )
3814then
3815   # Ok.
3816   :
3817else
3818   as_fn_error $? "newly created file is older than distributed files!
3819Check your system clock" "$LINENO" 5
3820fi
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3822$as_echo "yes" >&6; }
3823# If we didn't sleep, we still need to ensure time stamps of config.status and
3824# generated files are strictly newer.
3825am_sleep_pid=
3826if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3827  ( sleep 1 ) &
3828  am_sleep_pid=$!
3829fi
3830
3831rm -f conftest.file
3832
3833test "$program_prefix" != NONE &&
3834  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3835# Use a double $ so make ignores it.
3836test "$program_suffix" != NONE &&
3837  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3838# Double any \ or $.
3839# By default was `s,x,x', remove it if useless.
3840ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3841program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3842
3843if test x"${MISSING+set}" != xset; then
3844  case $am_aux_dir in
3845  *\ * | *\	*)
3846    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3847  *)
3848    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3849  esac
3850fi
3851# Use eval to expand $SHELL
3852if eval "$MISSING --is-lightweight"; then
3853  am_missing_run="$MISSING "
3854else
3855  am_missing_run=
3856  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3857$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3858fi
3859
3860if test x"${install_sh}" != xset; then
3861  case $am_aux_dir in
3862  *\ * | *\	*)
3863    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3864  *)
3865    install_sh="\${SHELL} $am_aux_dir/install-sh"
3866  esac
3867fi
3868
3869# Installed binaries are usually stripped using 'strip' when the user
3870# run "make install-strip".  However 'strip' might not be the right
3871# tool to use in cross-compilation environments, therefore Automake
3872# will honor the 'STRIP' environment variable to overrule this program.
3873if test "$cross_compiling" != no; then
3874  if test -n "$ac_tool_prefix"; then
3875  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3876set dummy ${ac_tool_prefix}strip; ac_word=$2
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878$as_echo_n "checking for $ac_word... " >&6; }
3879if ${ac_cv_prog_STRIP+:} false; then :
3880  $as_echo_n "(cached) " >&6
3881else
3882  if test -n "$STRIP"; then
3883  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3884else
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888  IFS=$as_save_IFS
3889  test -z "$as_dir" && as_dir=.
3890    for ac_exec_ext in '' $ac_executable_extensions; do
3891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894    break 2
3895  fi
3896done
3897  done
3898IFS=$as_save_IFS
3899
3900fi
3901fi
3902STRIP=$ac_cv_prog_STRIP
3903if test -n "$STRIP"; then
3904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3905$as_echo "$STRIP" >&6; }
3906else
3907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908$as_echo "no" >&6; }
3909fi
3910
3911
3912fi
3913if test -z "$ac_cv_prog_STRIP"; then
3914  ac_ct_STRIP=$STRIP
3915  # Extract the first word of "strip", so it can be a program name with args.
3916set dummy strip; ac_word=$2
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918$as_echo_n "checking for $ac_word... " >&6; }
3919if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3920  $as_echo_n "(cached) " >&6
3921else
3922  if test -n "$ac_ct_STRIP"; then
3923  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3924else
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928  IFS=$as_save_IFS
3929  test -z "$as_dir" && as_dir=.
3930    for ac_exec_ext in '' $ac_executable_extensions; do
3931  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932    ac_cv_prog_ac_ct_STRIP="strip"
3933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934    break 2
3935  fi
3936done
3937  done
3938IFS=$as_save_IFS
3939
3940fi
3941fi
3942ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3943if test -n "$ac_ct_STRIP"; then
3944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3945$as_echo "$ac_ct_STRIP" >&6; }
3946else
3947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948$as_echo "no" >&6; }
3949fi
3950
3951  if test "x$ac_ct_STRIP" = x; then
3952    STRIP=":"
3953  else
3954    case $cross_compiling:$ac_tool_warned in
3955yes:)
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958ac_tool_warned=yes ;;
3959esac
3960    STRIP=$ac_ct_STRIP
3961  fi
3962else
3963  STRIP="$ac_cv_prog_STRIP"
3964fi
3965
3966fi
3967INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3968
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3970$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3971if test -z "$MKDIR_P"; then
3972  if ${ac_cv_path_mkdir+:} false; then :
3973  $as_echo_n "(cached) " >&6
3974else
3975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3977do
3978  IFS=$as_save_IFS
3979  test -z "$as_dir" && as_dir=.
3980    for ac_prog in mkdir gmkdir; do
3981	 for ac_exec_ext in '' $ac_executable_extensions; do
3982	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3983	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3984	     'mkdir (GNU coreutils) '* | \
3985	     'mkdir (coreutils) '* | \
3986	     'mkdir (fileutils) '4.1*)
3987	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3988	       break 3;;
3989	   esac
3990	 done
3991       done
3992  done
3993IFS=$as_save_IFS
3994
3995fi
3996
3997  test -d ./--version && rmdir ./--version
3998  if test "${ac_cv_path_mkdir+set}" = set; then
3999    MKDIR_P="$ac_cv_path_mkdir -p"
4000  else
4001    # As a last resort, use the slow shell script.  Don't cache a
4002    # value for MKDIR_P within a source directory, because that will
4003    # break other packages using the cache if that directory is
4004    # removed, or if the value is a relative name.
4005    MKDIR_P="$ac_install_sh -d"
4006  fi
4007fi
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4009$as_echo "$MKDIR_P" >&6; }
4010
4011for ac_prog in gawk mawk nawk awk
4012do
4013  # Extract the first word of "$ac_prog", so it can be a program name with args.
4014set dummy $ac_prog; ac_word=$2
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016$as_echo_n "checking for $ac_word... " >&6; }
4017if ${ac_cv_prog_AWK+:} false; then :
4018  $as_echo_n "(cached) " >&6
4019else
4020  if test -n "$AWK"; then
4021  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4022else
4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH
4025do
4026  IFS=$as_save_IFS
4027  test -z "$as_dir" && as_dir=.
4028    for ac_exec_ext in '' $ac_executable_extensions; do
4029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030    ac_cv_prog_AWK="$ac_prog"
4031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032    break 2
4033  fi
4034done
4035  done
4036IFS=$as_save_IFS
4037
4038fi
4039fi
4040AWK=$ac_cv_prog_AWK
4041if test -n "$AWK"; then
4042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4043$as_echo "$AWK" >&6; }
4044else
4045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046$as_echo "no" >&6; }
4047fi
4048
4049
4050  test -n "$AWK" && break
4051done
4052
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4054$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4055set x ${MAKE-make}
4056ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4057if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4058  $as_echo_n "(cached) " >&6
4059else
4060  cat >conftest.make <<\_ACEOF
4061SHELL = /bin/sh
4062all:
4063	@echo '@@@%%%=$(MAKE)=@@@%%%'
4064_ACEOF
4065# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4066case `${MAKE-make} -f conftest.make 2>/dev/null` in
4067  *@@@%%%=?*=@@@%%%*)
4068    eval ac_cv_prog_make_${ac_make}_set=yes;;
4069  *)
4070    eval ac_cv_prog_make_${ac_make}_set=no;;
4071esac
4072rm -f conftest.make
4073fi
4074if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076$as_echo "yes" >&6; }
4077  SET_MAKE=
4078else
4079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080$as_echo "no" >&6; }
4081  SET_MAKE="MAKE=${MAKE-make}"
4082fi
4083
4084rm -rf .tst 2>/dev/null
4085mkdir .tst 2>/dev/null
4086if test -d .tst; then
4087  am__leading_dot=.
4088else
4089  am__leading_dot=_
4090fi
4091rmdir .tst 2>/dev/null
4092
4093DEPDIR="${am__leading_dot}deps"
4094
4095ac_config_commands="$ac_config_commands depfiles"
4096
4097
4098am_make=${MAKE-make}
4099cat > confinc << 'END'
4100am__doit:
4101	@echo this is the am__doit target
4102.PHONY: am__doit
4103END
4104# If we don't find an include directive, just comment out the code.
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4106$as_echo_n "checking for style of include used by $am_make... " >&6; }
4107am__include="#"
4108am__quote=
4109_am_result=none
4110# First try GNU make style include.
4111echo "include confinc" > confmf
4112# Ignore all kinds of additional output from 'make'.
4113case `$am_make -s -f confmf 2> /dev/null` in #(
4114*the\ am__doit\ target*)
4115  am__include=include
4116  am__quote=
4117  _am_result=GNU
4118  ;;
4119esac
4120# Now try BSD make style include.
4121if test "$am__include" = "#"; then
4122   echo '.include "confinc"' > confmf
4123   case `$am_make -s -f confmf 2> /dev/null` in #(
4124   *the\ am__doit\ target*)
4125     am__include=.include
4126     am__quote="\""
4127     _am_result=BSD
4128     ;;
4129   esac
4130fi
4131
4132
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4134$as_echo "$_am_result" >&6; }
4135rm -f confinc confmf
4136
4137# Check whether --enable-dependency-tracking was given.
4138if test "${enable_dependency_tracking+set}" = set; then :
4139  enableval=$enable_dependency_tracking;
4140fi
4141
4142if test "x$enable_dependency_tracking" != xno; then
4143  am_depcomp="$ac_aux_dir/depcomp"
4144  AMDEPBACKSLASH='\'
4145  am__nodep='_no'
4146fi
4147 if test "x$enable_dependency_tracking" != xno; then
4148  AMDEP_TRUE=
4149  AMDEP_FALSE='#'
4150else
4151  AMDEP_TRUE='#'
4152  AMDEP_FALSE=
4153fi
4154
4155
4156# Check whether --enable-silent-rules was given.
4157if test "${enable_silent_rules+set}" = set; then :
4158  enableval=$enable_silent_rules;
4159fi
4160
4161case $enable_silent_rules in # (((
4162  yes) AM_DEFAULT_VERBOSITY=0;;
4163   no) AM_DEFAULT_VERBOSITY=1;;
4164    *) AM_DEFAULT_VERBOSITY=1;;
4165esac
4166am_make=${MAKE-make}
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4168$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4169if ${am_cv_make_support_nested_variables+:} false; then :
4170  $as_echo_n "(cached) " >&6
4171else
4172  if $as_echo 'TRUE=$(BAR$(V))
4173BAR0=false
4174BAR1=true
4175V=1
4176am__doit:
4177	@$(TRUE)
4178.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4179  am_cv_make_support_nested_variables=yes
4180else
4181  am_cv_make_support_nested_variables=no
4182fi
4183fi
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4185$as_echo "$am_cv_make_support_nested_variables" >&6; }
4186if test $am_cv_make_support_nested_variables = yes; then
4187    AM_V='$(V)'
4188  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4189else
4190  AM_V=$AM_DEFAULT_VERBOSITY
4191  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4192fi
4193AM_BACKSLASH='\'
4194
4195if test "`cd $srcdir && pwd`" != "`pwd`"; then
4196  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4197  # is not polluted with repeated "-I."
4198  am__isrc=' -I$(srcdir)'
4199  # test to see if srcdir already configured
4200  if test -f $srcdir/config.status; then
4201    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4202  fi
4203fi
4204
4205# test whether we have cygpath
4206if test -z "$CYGPATH_W"; then
4207  if (cygpath --version) >/dev/null 2>/dev/null; then
4208    CYGPATH_W='cygpath -w'
4209  else
4210    CYGPATH_W=echo
4211  fi
4212fi
4213
4214
4215# Define the identity of the package.
4216 PACKAGE='libedit-20130712'
4217 VERSION='3.1'
4218
4219
4220cat >>confdefs.h <<_ACEOF
4221#define PACKAGE "$PACKAGE"
4222_ACEOF
4223
4224
4225cat >>confdefs.h <<_ACEOF
4226#define VERSION "$VERSION"
4227_ACEOF
4228
4229# Some tools Automake needs.
4230
4231ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4232
4233
4234AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4235
4236
4237AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4238
4239
4240AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4241
4242
4243MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4244
4245# For better backward compatibility.  To be removed once Automake 1.9.x
4246# dies out for good.  For more background, see:
4247# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4248# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4249mkdir_p='$(MKDIR_P)'
4250
4251# We need awk for the "check" target.  The system "awk" is bad on
4252# some platforms.
4253# Always define AMTAR for backward compatibility.  Yes, it's still used
4254# in the wild :-(  We should find a proper way to deprecate it ...
4255AMTAR='$${TAR-tar}'
4256
4257
4258# We'll loop over all known methods to create a tar archive until one works.
4259_am_tools='gnutar  pax cpio none'
4260
4261am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4262
4263
4264
4265
4266
4267depcc="$CC"   am_compiler_list=
4268
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4270$as_echo_n "checking dependency style of $depcc... " >&6; }
4271if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4272  $as_echo_n "(cached) " >&6
4273else
4274  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4275  # We make a subdir and do the tests there.  Otherwise we can end up
4276  # making bogus files that we don't know about and never remove.  For
4277  # instance it was reported that on HP-UX the gcc test will end up
4278  # making a dummy file named 'D' -- because '-MD' means "put the output
4279  # in D".
4280  rm -rf conftest.dir
4281  mkdir conftest.dir
4282  # Copy depcomp to subdir because otherwise we won't find it if we're
4283  # using a relative directory.
4284  cp "$am_depcomp" conftest.dir
4285  cd conftest.dir
4286  # We will build objects and dependencies in a subdirectory because
4287  # it helps to detect inapplicable dependency modes.  For instance
4288  # both Tru64's cc and ICC support -MD to output dependencies as a
4289  # side effect of compilation, but ICC will put the dependencies in
4290  # the current directory while Tru64 will put them in the object
4291  # directory.
4292  mkdir sub
4293
4294  am_cv_CC_dependencies_compiler_type=none
4295  if test "$am_compiler_list" = ""; then
4296     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4297  fi
4298  am__universal=false
4299  case " $depcc " in #(
4300     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4301     esac
4302
4303  for depmode in $am_compiler_list; do
4304    # Setup a source with many dependencies, because some compilers
4305    # like to wrap large dependency lists on column 80 (with \), and
4306    # we should not choose a depcomp mode which is confused by this.
4307    #
4308    # We need to recreate these files for each test, as the compiler may
4309    # overwrite some of them when testing with obscure command lines.
4310    # This happens at least with the AIX C compiler.
4311    : > sub/conftest.c
4312    for i in 1 2 3 4 5 6; do
4313      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4314      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4315      # Solaris 10 /bin/sh.
4316      echo '/* dummy */' > sub/conftst$i.h
4317    done
4318    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4319
4320    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4321    # mode.  It turns out that the SunPro C++ compiler does not properly
4322    # handle '-M -o', and we need to detect this.  Also, some Intel
4323    # versions had trouble with output in subdirs.
4324    am__obj=sub/conftest.${OBJEXT-o}
4325    am__minus_obj="-o $am__obj"
4326    case $depmode in
4327    gcc)
4328      # This depmode causes a compiler race in universal mode.
4329      test "$am__universal" = false || continue
4330      ;;
4331    nosideeffect)
4332      # After this tag, mechanisms are not by side-effect, so they'll
4333      # only be used when explicitly requested.
4334      if test "x$enable_dependency_tracking" = xyes; then
4335	continue
4336      else
4337	break
4338      fi
4339      ;;
4340    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4341      # This compiler won't grok '-c -o', but also, the minuso test has
4342      # not run yet.  These depmodes are late enough in the game, and
4343      # so weak that their functioning should not be impacted.
4344      am__obj=conftest.${OBJEXT-o}
4345      am__minus_obj=
4346      ;;
4347    none) break ;;
4348    esac
4349    if depmode=$depmode \
4350       source=sub/conftest.c object=$am__obj \
4351       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4352       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4353         >/dev/null 2>conftest.err &&
4354       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4355       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4356       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4357       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4358      # icc doesn't choke on unknown options, it will just issue warnings
4359      # or remarks (even with -Werror).  So we grep stderr for any message
4360      # that says an option was ignored or not supported.
4361      # When given -MP, icc 7.0 and 7.1 complain thusly:
4362      #   icc: Command line warning: ignoring option '-M'; no argument required
4363      # The diagnosis changed in icc 8.0:
4364      #   icc: Command line remark: option '-MP' not supported
4365      if (grep 'ignoring option' conftest.err ||
4366          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4367        am_cv_CC_dependencies_compiler_type=$depmode
4368        break
4369      fi
4370    fi
4371  done
4372
4373  cd ..
4374  rm -rf conftest.dir
4375else
4376  am_cv_CC_dependencies_compiler_type=none
4377fi
4378
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4381$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4382CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4383
4384 if
4385  test "x$enable_dependency_tracking" != xno \
4386  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4387  am__fastdepCC_TRUE=
4388  am__fastdepCC_FALSE='#'
4389else
4390  am__fastdepCC_TRUE='#'
4391  am__fastdepCC_FALSE=
4392fi
4393
4394
4395
4396# POSIX will say in a future version that running "rm -f" with no argument
4397# is OK; and we want to be able to make that assumption in our Makefile
4398# recipes.  So use an aggressive probe to check that the usage we want is
4399# actually supported "in the wild" to an acceptable degree.
4400# See automake bug#10828.
4401# To make any issue more visible, cause the running configure to be aborted
4402# by default if the 'rm' program in use doesn't match our expectations; the
4403# user can still override this though.
4404if rm -f && rm -fr && rm -rf; then : OK; else
4405  cat >&2 <<'END'
4406Oops!
4407
4408Your 'rm' program seems unable to run without file operands specified
4409on the command line, even when the '-f' option is present.  This is contrary
4410to the behaviour of most rm programs out there, and not conforming with
4411the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4412
4413Please tell bug-automake@gnu.org about your system, including the value
4414of your $PATH and any error possibly output before this message.  This
4415can help us improve future automake versions.
4416
4417END
4418  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4419    echo 'Configuration will proceed anyway, since you have set the' >&2
4420    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4421    echo >&2
4422  else
4423    cat >&2 <<'END'
4424Aborting the configuration process, to ensure you take notice of the issue.
4425
4426You can download and install GNU coreutils to get an 'rm' implementation
4427that behaves properly: <http://www.gnu.org/software/coreutils/>.
4428
4429If you want to complete the configuration process using your problematic
4430'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4431to "yes", and re-run configure.
4432
4433END
4434    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4435  fi
4436fi
4437case `pwd` in
4438  *\ * | *\	*)
4439    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4440$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4441esac
4442
4443
4444
4445macro_version='2.4.2'
4446macro_revision='1.3337'
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460ltmain="$ac_aux_dir/ltmain.sh"
4461
4462# Make sure we can run config.sub.
4463$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4464  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4467$as_echo_n "checking build system type... " >&6; }
4468if ${ac_cv_build+:} false; then :
4469  $as_echo_n "(cached) " >&6
4470else
4471  ac_build_alias=$build_alias
4472test "x$ac_build_alias" = x &&
4473  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4474test "x$ac_build_alias" = x &&
4475  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4476ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4477  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4478
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4481$as_echo "$ac_cv_build" >&6; }
4482case $ac_cv_build in
4483*-*-*) ;;
4484*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4485esac
4486build=$ac_cv_build
4487ac_save_IFS=$IFS; IFS='-'
4488set x $ac_cv_build
4489shift
4490build_cpu=$1
4491build_vendor=$2
4492shift; shift
4493# Remember, the first character of IFS is used to create $*,
4494# except with old shells:
4495build_os=$*
4496IFS=$ac_save_IFS
4497case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4498
4499
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4501$as_echo_n "checking host system type... " >&6; }
4502if ${ac_cv_host+:} false; then :
4503  $as_echo_n "(cached) " >&6
4504else
4505  if test "x$host_alias" = x; then
4506  ac_cv_host=$ac_cv_build
4507else
4508  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4509    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4510fi
4511
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4514$as_echo "$ac_cv_host" >&6; }
4515case $ac_cv_host in
4516*-*-*) ;;
4517*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4518esac
4519host=$ac_cv_host
4520ac_save_IFS=$IFS; IFS='-'
4521set x $ac_cv_host
4522shift
4523host_cpu=$1
4524host_vendor=$2
4525shift; shift
4526# Remember, the first character of IFS is used to create $*,
4527# except with old shells:
4528host_os=$*
4529IFS=$ac_save_IFS
4530case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4531
4532
4533# Backslashify metacharacters that are still active within
4534# double-quoted strings.
4535sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4536
4537# Same as above, but do not quote variable references.
4538double_quote_subst='s/\(["`\\]\)/\\\1/g'
4539
4540# Sed substitution to delay expansion of an escaped shell variable in a
4541# double_quote_subst'ed string.
4542delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4543
4544# Sed substitution to delay expansion of an escaped single quote.
4545delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4546
4547# Sed substitution to avoid accidental globbing in evaled expressions
4548no_glob_subst='s/\*/\\\*/g'
4549
4550ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4551ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4552ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4553
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4555$as_echo_n "checking how to print strings... " >&6; }
4556# Test print first, because it will be a builtin if present.
4557if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4558   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4559  ECHO='print -r --'
4560elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4561  ECHO='printf %s\n'
4562else
4563  # Use this function as a fallback that always works.
4564  func_fallback_echo ()
4565  {
4566    eval 'cat <<_LTECHO_EOF
4567$1
4568_LTECHO_EOF'
4569  }
4570  ECHO='func_fallback_echo'
4571fi
4572
4573# func_echo_all arg...
4574# Invoke $ECHO with all args, space-separated.
4575func_echo_all ()
4576{
4577    $ECHO ""
4578}
4579
4580case "$ECHO" in
4581  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4582$as_echo "printf" >&6; } ;;
4583  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4584$as_echo "print -r" >&6; } ;;
4585  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4586$as_echo "cat" >&6; } ;;
4587esac
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4603$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4604if ${ac_cv_path_SED+:} false; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4608     for ac_i in 1 2 3 4 5 6 7; do
4609       ac_script="$ac_script$as_nl$ac_script"
4610     done
4611     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4612     { ac_script=; unset ac_script;}
4613     if test -z "$SED"; then
4614  ac_path_SED_found=false
4615  # Loop through the user's path and test for each of PROGNAME-LIST
4616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619  IFS=$as_save_IFS
4620  test -z "$as_dir" && as_dir=.
4621    for ac_prog in sed gsed; do
4622    for ac_exec_ext in '' $ac_executable_extensions; do
4623      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4624      as_fn_executable_p "$ac_path_SED" || continue
4625# Check for GNU ac_path_SED and select it if it is found.
4626  # Check for GNU $ac_path_SED
4627case `"$ac_path_SED" --version 2>&1` in
4628*GNU*)
4629  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4630*)
4631  ac_count=0
4632  $as_echo_n 0123456789 >"conftest.in"
4633  while :
4634  do
4635    cat "conftest.in" "conftest.in" >"conftest.tmp"
4636    mv "conftest.tmp" "conftest.in"
4637    cp "conftest.in" "conftest.nl"
4638    $as_echo '' >> "conftest.nl"
4639    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641    as_fn_arith $ac_count + 1 && ac_count=$as_val
4642    if test $ac_count -gt ${ac_path_SED_max-0}; then
4643      # Best one so far, save it but keep looking for a better one
4644      ac_cv_path_SED="$ac_path_SED"
4645      ac_path_SED_max=$ac_count
4646    fi
4647    # 10*(2^10) chars as input seems more than enough
4648    test $ac_count -gt 10 && break
4649  done
4650  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651esac
4652
4653      $ac_path_SED_found && break 3
4654    done
4655  done
4656  done
4657IFS=$as_save_IFS
4658  if test -z "$ac_cv_path_SED"; then
4659    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4660  fi
4661else
4662  ac_cv_path_SED=$SED
4663fi
4664
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4667$as_echo "$ac_cv_path_SED" >&6; }
4668 SED="$ac_cv_path_SED"
4669  rm -f conftest.sed
4670
4671test -z "$SED" && SED=sed
4672Xsed="$SED -e 1s/^X//"
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4685$as_echo_n "checking for fgrep... " >&6; }
4686if ${ac_cv_path_FGREP+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4690   then ac_cv_path_FGREP="$GREP -F"
4691   else
4692     if test -z "$FGREP"; then
4693  ac_path_FGREP_found=false
4694  # Loop through the user's path and test for each of PROGNAME-LIST
4695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4697do
4698  IFS=$as_save_IFS
4699  test -z "$as_dir" && as_dir=.
4700    for ac_prog in fgrep; do
4701    for ac_exec_ext in '' $ac_executable_extensions; do
4702      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4703      as_fn_executable_p "$ac_path_FGREP" || continue
4704# Check for GNU ac_path_FGREP and select it if it is found.
4705  # Check for GNU $ac_path_FGREP
4706case `"$ac_path_FGREP" --version 2>&1` in
4707*GNU*)
4708  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4709*)
4710  ac_count=0
4711  $as_echo_n 0123456789 >"conftest.in"
4712  while :
4713  do
4714    cat "conftest.in" "conftest.in" >"conftest.tmp"
4715    mv "conftest.tmp" "conftest.in"
4716    cp "conftest.in" "conftest.nl"
4717    $as_echo 'FGREP' >> "conftest.nl"
4718    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4720    as_fn_arith $ac_count + 1 && ac_count=$as_val
4721    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4722      # Best one so far, save it but keep looking for a better one
4723      ac_cv_path_FGREP="$ac_path_FGREP"
4724      ac_path_FGREP_max=$ac_count
4725    fi
4726    # 10*(2^10) chars as input seems more than enough
4727    test $ac_count -gt 10 && break
4728  done
4729  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730esac
4731
4732      $ac_path_FGREP_found && break 3
4733    done
4734  done
4735  done
4736IFS=$as_save_IFS
4737  if test -z "$ac_cv_path_FGREP"; then
4738    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4739  fi
4740else
4741  ac_cv_path_FGREP=$FGREP
4742fi
4743
4744   fi
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4747$as_echo "$ac_cv_path_FGREP" >&6; }
4748 FGREP="$ac_cv_path_FGREP"
4749
4750
4751test -z "$GREP" && GREP=grep
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771# Check whether --with-gnu-ld was given.
4772if test "${with_gnu_ld+set}" = set; then :
4773  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4774else
4775  with_gnu_ld=no
4776fi
4777
4778ac_prog=ld
4779if test "$GCC" = yes; then
4780  # Check if gcc -print-prog-name=ld gives a path.
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4782$as_echo_n "checking for ld used by $CC... " >&6; }
4783  case $host in
4784  *-*-mingw*)
4785    # gcc leaves a trailing carriage return which upsets mingw
4786    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4787  *)
4788    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4789  esac
4790  case $ac_prog in
4791    # Accept absolute paths.
4792    [\\/]* | ?:[\\/]*)
4793      re_direlt='/[^/][^/]*/\.\./'
4794      # Canonicalize the pathname of ld
4795      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4796      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4797	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4798      done
4799      test -z "$LD" && LD="$ac_prog"
4800      ;;
4801  "")
4802    # If it fails, then pretend we aren't using GCC.
4803    ac_prog=ld
4804    ;;
4805  *)
4806    # If it is relative, then search for the first ld in PATH.
4807    with_gnu_ld=unknown
4808    ;;
4809  esac
4810elif test "$with_gnu_ld" = yes; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4812$as_echo_n "checking for GNU ld... " >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4815$as_echo_n "checking for non-GNU ld... " >&6; }
4816fi
4817if ${lt_cv_path_LD+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  if test -z "$LD"; then
4821  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4822  for ac_dir in $PATH; do
4823    IFS="$lt_save_ifs"
4824    test -z "$ac_dir" && ac_dir=.
4825    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4826      lt_cv_path_LD="$ac_dir/$ac_prog"
4827      # Check to see if the program is GNU ld.  I'd rather use --version,
4828      # but apparently some variants of GNU ld only accept -v.
4829      # Break only if it was the GNU/non-GNU ld that we prefer.
4830      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4831      *GNU* | *'with BFD'*)
4832	test "$with_gnu_ld" != no && break
4833	;;
4834      *)
4835	test "$with_gnu_ld" != yes && break
4836	;;
4837      esac
4838    fi
4839  done
4840  IFS="$lt_save_ifs"
4841else
4842  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4843fi
4844fi
4845
4846LD="$lt_cv_path_LD"
4847if test -n "$LD"; then
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4849$as_echo "$LD" >&6; }
4850else
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4856$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4857if ${lt_cv_prog_gnu_ld+:} false; then :
4858  $as_echo_n "(cached) " >&6
4859else
4860  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4861case `$LD -v 2>&1 </dev/null` in
4862*GNU* | *'with BFD'*)
4863  lt_cv_prog_gnu_ld=yes
4864  ;;
4865*)
4866  lt_cv_prog_gnu_ld=no
4867  ;;
4868esac
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4871$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4872with_gnu_ld=$lt_cv_prog_gnu_ld
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4883$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4884if ${lt_cv_path_NM+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  if test -n "$NM"; then
4888  # Let the user override the test.
4889  lt_cv_path_NM="$NM"
4890else
4891  lt_nm_to_check="${ac_tool_prefix}nm"
4892  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4893    lt_nm_to_check="$lt_nm_to_check nm"
4894  fi
4895  for lt_tmp_nm in $lt_nm_to_check; do
4896    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4897    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4898      IFS="$lt_save_ifs"
4899      test -z "$ac_dir" && ac_dir=.
4900      tmp_nm="$ac_dir/$lt_tmp_nm"
4901      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4902	# Check to see if the nm accepts a BSD-compat flag.
4903	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4904	#   nm: unknown option "B" ignored
4905	# Tru64's nm complains that /dev/null is an invalid object file
4906	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4907	*/dev/null* | *'Invalid file or object type'*)
4908	  lt_cv_path_NM="$tmp_nm -B"
4909	  break
4910	  ;;
4911	*)
4912	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4913	  */dev/null*)
4914	    lt_cv_path_NM="$tmp_nm -p"
4915	    break
4916	    ;;
4917	  *)
4918	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4919	    continue # so that we can try to find one that supports BSD flags
4920	    ;;
4921	  esac
4922	  ;;
4923	esac
4924      fi
4925    done
4926    IFS="$lt_save_ifs"
4927  done
4928  : ${lt_cv_path_NM=no}
4929fi
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4932$as_echo "$lt_cv_path_NM" >&6; }
4933if test "$lt_cv_path_NM" != "no"; then
4934  NM="$lt_cv_path_NM"
4935else
4936  # Didn't find any BSD compatible name lister, look for dumpbin.
4937  if test -n "$DUMPBIN"; then :
4938    # Let the user override the test.
4939  else
4940    if test -n "$ac_tool_prefix"; then
4941  for ac_prog in dumpbin "link -dump"
4942  do
4943    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if ${ac_cv_prog_DUMPBIN+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if test -n "$DUMPBIN"; then
4951  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970DUMPBIN=$ac_cv_prog_DUMPBIN
4971if test -n "$DUMPBIN"; then
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4973$as_echo "$DUMPBIN" >&6; }
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979
4980    test -n "$DUMPBIN" && break
4981  done
4982fi
4983if test -z "$DUMPBIN"; then
4984  ac_ct_DUMPBIN=$DUMPBIN
4985  for ac_prog in dumpbin "link -dump"
4986do
4987  # Extract the first word of "$ac_prog", so it can be a program name with args.
4988set dummy $ac_prog; ac_word=$2
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990$as_echo_n "checking for $ac_word... " >&6; }
4991if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4992  $as_echo_n "(cached) " >&6
4993else
4994  if test -n "$ac_ct_DUMPBIN"; then
4995  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4996else
4997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998for as_dir in $PATH
4999do
5000  IFS=$as_save_IFS
5001  test -z "$as_dir" && as_dir=.
5002    for ac_exec_ext in '' $ac_executable_extensions; do
5003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006    break 2
5007  fi
5008done
5009  done
5010IFS=$as_save_IFS
5011
5012fi
5013fi
5014ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5015if test -n "$ac_ct_DUMPBIN"; then
5016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5017$as_echo "$ac_ct_DUMPBIN" >&6; }
5018else
5019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020$as_echo "no" >&6; }
5021fi
5022
5023
5024  test -n "$ac_ct_DUMPBIN" && break
5025done
5026
5027  if test "x$ac_ct_DUMPBIN" = x; then
5028    DUMPBIN=":"
5029  else
5030    case $cross_compiling:$ac_tool_warned in
5031yes:)
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5034ac_tool_warned=yes ;;
5035esac
5036    DUMPBIN=$ac_ct_DUMPBIN
5037  fi
5038fi
5039
5040    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5041    *COFF*)
5042      DUMPBIN="$DUMPBIN -symbols"
5043      ;;
5044    *)
5045      DUMPBIN=:
5046      ;;
5047    esac
5048  fi
5049
5050  if test "$DUMPBIN" != ":"; then
5051    NM="$DUMPBIN"
5052  fi
5053fi
5054test -z "$NM" && NM=nm
5055
5056
5057
5058
5059
5060
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5062$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5063if ${lt_cv_nm_interface+:} false; then :
5064  $as_echo_n "(cached) " >&6
5065else
5066  lt_cv_nm_interface="BSD nm"
5067  echo "int some_variable = 0;" > conftest.$ac_ext
5068  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5069  (eval "$ac_compile" 2>conftest.err)
5070  cat conftest.err >&5
5071  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5072  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5073  cat conftest.err >&5
5074  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5075  cat conftest.out >&5
5076  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5077    lt_cv_nm_interface="MS dumpbin"
5078  fi
5079  rm -f conftest*
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5082$as_echo "$lt_cv_nm_interface" >&6; }
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5085$as_echo_n "checking whether ln -s works... " >&6; }
5086LN_S=$as_ln_s
5087if test "$LN_S" = "ln -s"; then
5088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5089$as_echo "yes" >&6; }
5090else
5091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5092$as_echo "no, using $LN_S" >&6; }
5093fi
5094
5095# find the maximum length of command line arguments
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5097$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5098if ${lt_cv_sys_max_cmd_len+:} false; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101    i=0
5102  teststring="ABCD"
5103
5104  case $build_os in
5105  msdosdjgpp*)
5106    # On DJGPP, this test can blow up pretty badly due to problems in libc
5107    # (any single argument exceeding 2000 bytes causes a buffer overrun
5108    # during glob expansion).  Even if it were fixed, the result of this
5109    # check would be larger than it should be.
5110    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5111    ;;
5112
5113  gnu*)
5114    # Under GNU Hurd, this test is not required because there is
5115    # no limit to the length of command line arguments.
5116    # Libtool will interpret -1 as no limit whatsoever
5117    lt_cv_sys_max_cmd_len=-1;
5118    ;;
5119
5120  cygwin* | mingw* | cegcc*)
5121    # On Win9x/ME, this test blows up -- it succeeds, but takes
5122    # about 5 minutes as the teststring grows exponentially.
5123    # Worse, since 9x/ME are not pre-emptively multitasking,
5124    # you end up with a "frozen" computer, even though with patience
5125    # the test eventually succeeds (with a max line length of 256k).
5126    # Instead, let's just punt: use the minimum linelength reported by
5127    # all of the supported platforms: 8192 (on NT/2K/XP).
5128    lt_cv_sys_max_cmd_len=8192;
5129    ;;
5130
5131  mint*)
5132    # On MiNT this can take a long time and run out of memory.
5133    lt_cv_sys_max_cmd_len=8192;
5134    ;;
5135
5136  amigaos*)
5137    # On AmigaOS with pdksh, this test takes hours, literally.
5138    # So we just punt and use a minimum line length of 8192.
5139    lt_cv_sys_max_cmd_len=8192;
5140    ;;
5141
5142  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5143    # This has been around since 386BSD, at least.  Likely further.
5144    if test -x /sbin/sysctl; then
5145      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5146    elif test -x /usr/sbin/sysctl; then
5147      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5148    else
5149      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5150    fi
5151    # And add a safety zone
5152    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5153    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5154    ;;
5155
5156  interix*)
5157    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5158    lt_cv_sys_max_cmd_len=196608
5159    ;;
5160
5161  os2*)
5162    # The test takes a long time on OS/2.
5163    lt_cv_sys_max_cmd_len=8192
5164    ;;
5165
5166  osf*)
5167    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5168    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5169    # nice to cause kernel panics so lets avoid the loop below.
5170    # First set a reasonable default.
5171    lt_cv_sys_max_cmd_len=16384
5172    #
5173    if test -x /sbin/sysconfig; then
5174      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5175        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5176      esac
5177    fi
5178    ;;
5179  sco3.2v5*)
5180    lt_cv_sys_max_cmd_len=102400
5181    ;;
5182  sysv5* | sco5v6* | sysv4.2uw2*)
5183    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5184    if test -n "$kargmax"; then
5185      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5186    else
5187      lt_cv_sys_max_cmd_len=32768
5188    fi
5189    ;;
5190  *)
5191    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5192    if test -n "$lt_cv_sys_max_cmd_len"; then
5193      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5194      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5195    else
5196      # Make teststring a little bigger before we do anything with it.
5197      # a 1K string should be a reasonable start.
5198      for i in 1 2 3 4 5 6 7 8 ; do
5199        teststring=$teststring$teststring
5200      done
5201      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5202      # If test is not a shell built-in, we'll probably end up computing a
5203      # maximum length that is only half of the actual maximum length, but
5204      # we can't tell.
5205      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5206	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5207	      test $i != 17 # 1/2 MB should be enough
5208      do
5209        i=`expr $i + 1`
5210        teststring=$teststring$teststring
5211      done
5212      # Only check the string length outside the loop.
5213      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5214      teststring=
5215      # Add a significant safety factor because C++ compilers can tack on
5216      # massive amounts of additional arguments before passing them to the
5217      # linker.  It appears as though 1/2 is a usable value.
5218      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5219    fi
5220    ;;
5221  esac
5222
5223fi
5224
5225if test -n $lt_cv_sys_max_cmd_len ; then
5226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5227$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5228else
5229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5230$as_echo "none" >&6; }
5231fi
5232max_cmd_len=$lt_cv_sys_max_cmd_len
5233
5234
5235
5236
5237
5238
5239: ${CP="cp -f"}
5240: ${MV="mv -f"}
5241: ${RM="rm -f"}
5242
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5244$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5245# Try some XSI features
5246xsi_shell=no
5247( _lt_dummy="a/b/c"
5248  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5249      = c,a/b,b/c, \
5250    && eval 'test $(( 1 + 1 )) -eq 2 \
5251    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5252  && xsi_shell=yes
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5254$as_echo "$xsi_shell" >&6; }
5255
5256
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5258$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5259lt_shell_append=no
5260( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5261    >/dev/null 2>&1 \
5262  && lt_shell_append=yes
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5264$as_echo "$lt_shell_append" >&6; }
5265
5266
5267if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5268  lt_unset=unset
5269else
5270  lt_unset=false
5271fi
5272
5273
5274
5275
5276
5277# test EBCDIC or ASCII
5278case `echo X|tr X '\101'` in
5279 A) # ASCII based system
5280    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5281  lt_SP2NL='tr \040 \012'
5282  lt_NL2SP='tr \015\012 \040\040'
5283  ;;
5284 *) # EBCDIC based system
5285  lt_SP2NL='tr \100 \n'
5286  lt_NL2SP='tr \r\n \100\100'
5287  ;;
5288esac
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5299$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5300if ${lt_cv_to_host_file_cmd+:} false; then :
5301  $as_echo_n "(cached) " >&6
5302else
5303  case $host in
5304  *-*-mingw* )
5305    case $build in
5306      *-*-mingw* ) # actually msys
5307        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5308        ;;
5309      *-*-cygwin* )
5310        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5311        ;;
5312      * ) # otherwise, assume *nix
5313        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5314        ;;
5315    esac
5316    ;;
5317  *-*-cygwin* )
5318    case $build in
5319      *-*-mingw* ) # actually msys
5320        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5321        ;;
5322      *-*-cygwin* )
5323        lt_cv_to_host_file_cmd=func_convert_file_noop
5324        ;;
5325      * ) # otherwise, assume *nix
5326        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5327        ;;
5328    esac
5329    ;;
5330  * ) # unhandled hosts (and "normal" native builds)
5331    lt_cv_to_host_file_cmd=func_convert_file_noop
5332    ;;
5333esac
5334
5335fi
5336
5337to_host_file_cmd=$lt_cv_to_host_file_cmd
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5339$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5340
5341
5342
5343
5344
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5346$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5347if ${lt_cv_to_tool_file_cmd+:} false; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  #assume ordinary cross tools, or native build.
5351lt_cv_to_tool_file_cmd=func_convert_file_noop
5352case $host in
5353  *-*-mingw* )
5354    case $build in
5355      *-*-mingw* ) # actually msys
5356        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5357        ;;
5358    esac
5359    ;;
5360esac
5361
5362fi
5363
5364to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5366$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5367
5368
5369
5370
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5373$as_echo_n "checking for $LD option to reload object files... " >&6; }
5374if ${lt_cv_ld_reload_flag+:} false; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377  lt_cv_ld_reload_flag='-r'
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5380$as_echo "$lt_cv_ld_reload_flag" >&6; }
5381reload_flag=$lt_cv_ld_reload_flag
5382case $reload_flag in
5383"" | " "*) ;;
5384*) reload_flag=" $reload_flag" ;;
5385esac
5386reload_cmds='$LD$reload_flag -o $output$reload_objs'
5387case $host_os in
5388  cygwin* | mingw* | pw32* | cegcc*)
5389    if test "$GCC" != yes; then
5390      reload_cmds=false
5391    fi
5392    ;;
5393  darwin*)
5394    if test "$GCC" = yes; then
5395      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5396    else
5397      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5398    fi
5399    ;;
5400esac
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410if test -n "$ac_tool_prefix"; then
5411  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5412set dummy ${ac_tool_prefix}objdump; ac_word=$2
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414$as_echo_n "checking for $ac_word... " >&6; }
5415if ${ac_cv_prog_OBJDUMP+:} false; then :
5416  $as_echo_n "(cached) " >&6
5417else
5418  if test -n "$OBJDUMP"; then
5419  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5420else
5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424  IFS=$as_save_IFS
5425  test -z "$as_dir" && as_dir=.
5426    for ac_exec_ext in '' $ac_executable_extensions; do
5427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430    break 2
5431  fi
5432done
5433  done
5434IFS=$as_save_IFS
5435
5436fi
5437fi
5438OBJDUMP=$ac_cv_prog_OBJDUMP
5439if test -n "$OBJDUMP"; then
5440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5441$as_echo "$OBJDUMP" >&6; }
5442else
5443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444$as_echo "no" >&6; }
5445fi
5446
5447
5448fi
5449if test -z "$ac_cv_prog_OBJDUMP"; then
5450  ac_ct_OBJDUMP=$OBJDUMP
5451  # Extract the first word of "objdump", so it can be a program name with args.
5452set dummy objdump; ac_word=$2
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
5455if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5456  $as_echo_n "(cached) " >&6
5457else
5458  if test -n "$ac_ct_OBJDUMP"; then
5459  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464  IFS=$as_save_IFS
5465  test -z "$as_dir" && as_dir=.
5466    for ac_exec_ext in '' $ac_executable_extensions; do
5467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470    break 2
5471  fi
5472done
5473  done
5474IFS=$as_save_IFS
5475
5476fi
5477fi
5478ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5479if test -n "$ac_ct_OBJDUMP"; then
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5481$as_echo "$ac_ct_OBJDUMP" >&6; }
5482else
5483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484$as_echo "no" >&6; }
5485fi
5486
5487  if test "x$ac_ct_OBJDUMP" = x; then
5488    OBJDUMP="false"
5489  else
5490    case $cross_compiling:$ac_tool_warned in
5491yes:)
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494ac_tool_warned=yes ;;
5495esac
5496    OBJDUMP=$ac_ct_OBJDUMP
5497  fi
5498else
5499  OBJDUMP="$ac_cv_prog_OBJDUMP"
5500fi
5501
5502test -z "$OBJDUMP" && OBJDUMP=objdump
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5513$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5514if ${lt_cv_deplibs_check_method+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  lt_cv_file_magic_cmd='$MAGIC_CMD'
5518lt_cv_file_magic_test_file=
5519lt_cv_deplibs_check_method='unknown'
5520# Need to set the preceding variable on all platforms that support
5521# interlibrary dependencies.
5522# 'none' -- dependencies not supported.
5523# `unknown' -- same as none, but documents that we really don't know.
5524# 'pass_all' -- all dependencies passed with no checks.
5525# 'test_compile' -- check by making test program.
5526# 'file_magic [[regex]]' -- check by looking for files in library path
5527# which responds to the $file_magic_cmd with a given extended regex.
5528# If you have `file' or equivalent on your system and you're not sure
5529# whether `pass_all' will *always* work, you probably want this one.
5530
5531case $host_os in
5532aix[4-9]*)
5533  lt_cv_deplibs_check_method=pass_all
5534  ;;
5535
5536beos*)
5537  lt_cv_deplibs_check_method=pass_all
5538  ;;
5539
5540bsdi[45]*)
5541  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5542  lt_cv_file_magic_cmd='/usr/bin/file -L'
5543  lt_cv_file_magic_test_file=/shlib/libc.so
5544  ;;
5545
5546cygwin*)
5547  # func_win32_libid is a shell function defined in ltmain.sh
5548  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5549  lt_cv_file_magic_cmd='func_win32_libid'
5550  ;;
5551
5552mingw* | pw32*)
5553  # Base MSYS/MinGW do not provide the 'file' command needed by
5554  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5555  # unless we find 'file', for example because we are cross-compiling.
5556  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5557  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5558    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5559    lt_cv_file_magic_cmd='func_win32_libid'
5560  else
5561    # Keep this pattern in sync with the one in func_win32_libid.
5562    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5563    lt_cv_file_magic_cmd='$OBJDUMP -f'
5564  fi
5565  ;;
5566
5567cegcc*)
5568  # use the weaker test based on 'objdump'. See mingw*.
5569  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5570  lt_cv_file_magic_cmd='$OBJDUMP -f'
5571  ;;
5572
5573darwin* | rhapsody*)
5574  lt_cv_deplibs_check_method=pass_all
5575  ;;
5576
5577freebsd* | dragonfly*)
5578  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5579    case $host_cpu in
5580    i*86 )
5581      # Not sure whether the presence of OpenBSD here was a mistake.
5582      # Let's accept both of them until this is cleared up.
5583      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5584      lt_cv_file_magic_cmd=/usr/bin/file
5585      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5586      ;;
5587    esac
5588  else
5589    lt_cv_deplibs_check_method=pass_all
5590  fi
5591  ;;
5592
5593gnu*)
5594  lt_cv_deplibs_check_method=pass_all
5595  ;;
5596
5597haiku*)
5598  lt_cv_deplibs_check_method=pass_all
5599  ;;
5600
5601hpux10.20* | hpux11*)
5602  lt_cv_file_magic_cmd=/usr/bin/file
5603  case $host_cpu in
5604  ia64*)
5605    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5606    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5607    ;;
5608  hppa*64*)
5609    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]'
5610    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5611    ;;
5612  *)
5613    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5614    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5615    ;;
5616  esac
5617  ;;
5618
5619interix[3-9]*)
5620  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5621  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5622  ;;
5623
5624irix5* | irix6* | nonstopux*)
5625  case $LD in
5626  *-32|*"-32 ") libmagic=32-bit;;
5627  *-n32|*"-n32 ") libmagic=N32;;
5628  *-64|*"-64 ") libmagic=64-bit;;
5629  *) libmagic=never-match;;
5630  esac
5631  lt_cv_deplibs_check_method=pass_all
5632  ;;
5633
5634# This must be glibc/ELF.
5635linux* | k*bsd*-gnu | kopensolaris*-gnu)
5636  lt_cv_deplibs_check_method=pass_all
5637  ;;
5638
5639netbsd*)
5640  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5641    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5642  else
5643    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5644  fi
5645  ;;
5646
5647newos6*)
5648  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5649  lt_cv_file_magic_cmd=/usr/bin/file
5650  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5651  ;;
5652
5653*nto* | *qnx*)
5654  lt_cv_deplibs_check_method=pass_all
5655  ;;
5656
5657openbsd*)
5658  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5659    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5660  else
5661    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5662  fi
5663  ;;
5664
5665osf3* | osf4* | osf5*)
5666  lt_cv_deplibs_check_method=pass_all
5667  ;;
5668
5669rdos*)
5670  lt_cv_deplibs_check_method=pass_all
5671  ;;
5672
5673solaris*)
5674  lt_cv_deplibs_check_method=pass_all
5675  ;;
5676
5677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5678  lt_cv_deplibs_check_method=pass_all
5679  ;;
5680
5681sysv4 | sysv4.3*)
5682  case $host_vendor in
5683  motorola)
5684    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]'
5685    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5686    ;;
5687  ncr)
5688    lt_cv_deplibs_check_method=pass_all
5689    ;;
5690  sequent)
5691    lt_cv_file_magic_cmd='/bin/file'
5692    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5693    ;;
5694  sni)
5695    lt_cv_file_magic_cmd='/bin/file'
5696    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5697    lt_cv_file_magic_test_file=/lib/libc.so
5698    ;;
5699  siemens)
5700    lt_cv_deplibs_check_method=pass_all
5701    ;;
5702  pc)
5703    lt_cv_deplibs_check_method=pass_all
5704    ;;
5705  esac
5706  ;;
5707
5708tpf*)
5709  lt_cv_deplibs_check_method=pass_all
5710  ;;
5711esac
5712
5713fi
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5715$as_echo "$lt_cv_deplibs_check_method" >&6; }
5716
5717file_magic_glob=
5718want_nocaseglob=no
5719if test "$build" = "$host"; then
5720  case $host_os in
5721  mingw* | pw32*)
5722    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5723      want_nocaseglob=yes
5724    else
5725      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5726    fi
5727    ;;
5728  esac
5729fi
5730
5731file_magic_cmd=$lt_cv_file_magic_cmd
5732deplibs_check_method=$lt_cv_deplibs_check_method
5733test -z "$deplibs_check_method" && deplibs_check_method=unknown
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756if test -n "$ac_tool_prefix"; then
5757  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5758set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760$as_echo_n "checking for $ac_word... " >&6; }
5761if ${ac_cv_prog_DLLTOOL+:} false; then :
5762  $as_echo_n "(cached) " >&6
5763else
5764  if test -n "$DLLTOOL"; then
5765  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5766else
5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768for as_dir in $PATH
5769do
5770  IFS=$as_save_IFS
5771  test -z "$as_dir" && as_dir=.
5772    for ac_exec_ext in '' $ac_executable_extensions; do
5773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776    break 2
5777  fi
5778done
5779  done
5780IFS=$as_save_IFS
5781
5782fi
5783fi
5784DLLTOOL=$ac_cv_prog_DLLTOOL
5785if test -n "$DLLTOOL"; then
5786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5787$as_echo "$DLLTOOL" >&6; }
5788else
5789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790$as_echo "no" >&6; }
5791fi
5792
5793
5794fi
5795if test -z "$ac_cv_prog_DLLTOOL"; then
5796  ac_ct_DLLTOOL=$DLLTOOL
5797  # Extract the first word of "dlltool", so it can be a program name with args.
5798set dummy dlltool; ac_word=$2
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800$as_echo_n "checking for $ac_word... " >&6; }
5801if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5802  $as_echo_n "(cached) " >&6
5803else
5804  if test -n "$ac_ct_DLLTOOL"; then
5805  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810  IFS=$as_save_IFS
5811  test -z "$as_dir" && as_dir=.
5812    for ac_exec_ext in '' $ac_executable_extensions; do
5813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816    break 2
5817  fi
5818done
5819  done
5820IFS=$as_save_IFS
5821
5822fi
5823fi
5824ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5825if test -n "$ac_ct_DLLTOOL"; then
5826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5827$as_echo "$ac_ct_DLLTOOL" >&6; }
5828else
5829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830$as_echo "no" >&6; }
5831fi
5832
5833  if test "x$ac_ct_DLLTOOL" = x; then
5834    DLLTOOL="false"
5835  else
5836    case $cross_compiling:$ac_tool_warned in
5837yes:)
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5840ac_tool_warned=yes ;;
5841esac
5842    DLLTOOL=$ac_ct_DLLTOOL
5843  fi
5844else
5845  DLLTOOL="$ac_cv_prog_DLLTOOL"
5846fi
5847
5848test -z "$DLLTOOL" && DLLTOOL=dlltool
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5860$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5861if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  lt_cv_sharedlib_from_linklib_cmd='unknown'
5865
5866case $host_os in
5867cygwin* | mingw* | pw32* | cegcc*)
5868  # two different shell functions defined in ltmain.sh
5869  # decide which to use based on capabilities of $DLLTOOL
5870  case `$DLLTOOL --help 2>&1` in
5871  *--identify-strict*)
5872    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5873    ;;
5874  *)
5875    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5876    ;;
5877  esac
5878  ;;
5879*)
5880  # fallback: assume linklib IS sharedlib
5881  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5882  ;;
5883esac
5884
5885fi
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5887$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5888sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5889test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5890
5891
5892
5893
5894
5895
5896
5897if test -n "$ac_tool_prefix"; then
5898  for ac_prog in ar
5899  do
5900    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5901set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903$as_echo_n "checking for $ac_word... " >&6; }
5904if ${ac_cv_prog_AR+:} false; then :
5905  $as_echo_n "(cached) " >&6
5906else
5907  if test -n "$AR"; then
5908  ac_cv_prog_AR="$AR" # Let the user override the test.
5909else
5910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913  IFS=$as_save_IFS
5914  test -z "$as_dir" && as_dir=.
5915    for ac_exec_ext in '' $ac_executable_extensions; do
5916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919    break 2
5920  fi
5921done
5922  done
5923IFS=$as_save_IFS
5924
5925fi
5926fi
5927AR=$ac_cv_prog_AR
5928if test -n "$AR"; then
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5930$as_echo "$AR" >&6; }
5931else
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933$as_echo "no" >&6; }
5934fi
5935
5936
5937    test -n "$AR" && break
5938  done
5939fi
5940if test -z "$AR"; then
5941  ac_ct_AR=$AR
5942  for ac_prog in ar
5943do
5944  # Extract the first word of "$ac_prog", so it can be a program name with args.
5945set dummy $ac_prog; ac_word=$2
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
5948if ${ac_cv_prog_ac_ct_AR+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  if test -n "$ac_ct_AR"; then
5952  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957  IFS=$as_save_IFS
5958  test -z "$as_dir" && as_dir=.
5959    for ac_exec_ext in '' $ac_executable_extensions; do
5960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961    ac_cv_prog_ac_ct_AR="$ac_prog"
5962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963    break 2
5964  fi
5965done
5966  done
5967IFS=$as_save_IFS
5968
5969fi
5970fi
5971ac_ct_AR=$ac_cv_prog_ac_ct_AR
5972if test -n "$ac_ct_AR"; then
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5974$as_echo "$ac_ct_AR" >&6; }
5975else
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977$as_echo "no" >&6; }
5978fi
5979
5980
5981  test -n "$ac_ct_AR" && break
5982done
5983
5984  if test "x$ac_ct_AR" = x; then
5985    AR="false"
5986  else
5987    case $cross_compiling:$ac_tool_warned in
5988yes:)
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991ac_tool_warned=yes ;;
5992esac
5993    AR=$ac_ct_AR
5994  fi
5995fi
5996
5997: ${AR=ar}
5998: ${AR_FLAGS=cru}
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6011$as_echo_n "checking for archiver @FILE support... " >&6; }
6012if ${lt_cv_ar_at_file+:} false; then :
6013  $as_echo_n "(cached) " >&6
6014else
6015  lt_cv_ar_at_file=no
6016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017/* end confdefs.h.  */
6018
6019int
6020main ()
6021{
6022
6023  ;
6024  return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_compile "$LINENO"; then :
6028  echo conftest.$ac_objext > conftest.lst
6029      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6030      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6031  (eval $lt_ar_try) 2>&5
6032  ac_status=$?
6033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034  test $ac_status = 0; }
6035      if test "$ac_status" -eq 0; then
6036	# Ensure the archiver fails upon bogus file names.
6037	rm -f conftest.$ac_objext libconftest.a
6038	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6039  (eval $lt_ar_try) 2>&5
6040  ac_status=$?
6041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042  test $ac_status = 0; }
6043	if test "$ac_status" -ne 0; then
6044          lt_cv_ar_at_file=@
6045        fi
6046      fi
6047      rm -f conftest.* libconftest.a
6048
6049fi
6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051
6052fi
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6054$as_echo "$lt_cv_ar_at_file" >&6; }
6055
6056if test "x$lt_cv_ar_at_file" = xno; then
6057  archiver_list_spec=
6058else
6059  archiver_list_spec=$lt_cv_ar_at_file
6060fi
6061
6062
6063
6064
6065
6066
6067
6068if test -n "$ac_tool_prefix"; then
6069  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6070set dummy ${ac_tool_prefix}strip; ac_word=$2
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072$as_echo_n "checking for $ac_word... " >&6; }
6073if ${ac_cv_prog_STRIP+:} false; then :
6074  $as_echo_n "(cached) " >&6
6075else
6076  if test -n "$STRIP"; then
6077  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6078else
6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080for as_dir in $PATH
6081do
6082  IFS=$as_save_IFS
6083  test -z "$as_dir" && as_dir=.
6084    for ac_exec_ext in '' $ac_executable_extensions; do
6085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088    break 2
6089  fi
6090done
6091  done
6092IFS=$as_save_IFS
6093
6094fi
6095fi
6096STRIP=$ac_cv_prog_STRIP
6097if test -n "$STRIP"; then
6098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6099$as_echo "$STRIP" >&6; }
6100else
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102$as_echo "no" >&6; }
6103fi
6104
6105
6106fi
6107if test -z "$ac_cv_prog_STRIP"; then
6108  ac_ct_STRIP=$STRIP
6109  # Extract the first word of "strip", so it can be a program name with args.
6110set dummy strip; ac_word=$2
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
6113if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6114  $as_echo_n "(cached) " >&6
6115else
6116  if test -n "$ac_ct_STRIP"; then
6117  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122  IFS=$as_save_IFS
6123  test -z "$as_dir" && as_dir=.
6124    for ac_exec_ext in '' $ac_executable_extensions; do
6125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126    ac_cv_prog_ac_ct_STRIP="strip"
6127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128    break 2
6129  fi
6130done
6131  done
6132IFS=$as_save_IFS
6133
6134fi
6135fi
6136ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6137if test -n "$ac_ct_STRIP"; then
6138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6139$as_echo "$ac_ct_STRIP" >&6; }
6140else
6141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
6144
6145  if test "x$ac_ct_STRIP" = x; then
6146    STRIP=":"
6147  else
6148    case $cross_compiling:$ac_tool_warned in
6149yes:)
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152ac_tool_warned=yes ;;
6153esac
6154    STRIP=$ac_ct_STRIP
6155  fi
6156else
6157  STRIP="$ac_cv_prog_STRIP"
6158fi
6159
6160test -z "$STRIP" && STRIP=:
6161
6162
6163
6164
6165
6166
6167if test -n "$ac_tool_prefix"; then
6168  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6169set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
6172if ${ac_cv_prog_RANLIB+:} false; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  if test -n "$RANLIB"; then
6176  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181  IFS=$as_save_IFS
6182  test -z "$as_dir" && as_dir=.
6183    for ac_exec_ext in '' $ac_executable_extensions; do
6184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187    break 2
6188  fi
6189done
6190  done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195RANLIB=$ac_cv_prog_RANLIB
6196if test -n "$RANLIB"; then
6197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6198$as_echo "$RANLIB" >&6; }
6199else
6200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201$as_echo "no" >&6; }
6202fi
6203
6204
6205fi
6206if test -z "$ac_cv_prog_RANLIB"; then
6207  ac_ct_RANLIB=$RANLIB
6208  # Extract the first word of "ranlib", so it can be a program name with args.
6209set dummy ranlib; ac_word=$2
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
6212if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  if test -n "$ac_ct_RANLIB"; then
6216  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221  IFS=$as_save_IFS
6222  test -z "$as_dir" && as_dir=.
6223    for ac_exec_ext in '' $ac_executable_extensions; do
6224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225    ac_cv_prog_ac_ct_RANLIB="ranlib"
6226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227    break 2
6228  fi
6229done
6230  done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6236if test -n "$ac_ct_RANLIB"; then
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6238$as_echo "$ac_ct_RANLIB" >&6; }
6239else
6240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241$as_echo "no" >&6; }
6242fi
6243
6244  if test "x$ac_ct_RANLIB" = x; then
6245    RANLIB=":"
6246  else
6247    case $cross_compiling:$ac_tool_warned in
6248yes:)
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251ac_tool_warned=yes ;;
6252esac
6253    RANLIB=$ac_ct_RANLIB
6254  fi
6255else
6256  RANLIB="$ac_cv_prog_RANLIB"
6257fi
6258
6259test -z "$RANLIB" && RANLIB=:
6260
6261
6262
6263
6264
6265
6266# Determine commands to create old-style static archives.
6267old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6268old_postinstall_cmds='chmod 644 $oldlib'
6269old_postuninstall_cmds=
6270
6271if test -n "$RANLIB"; then
6272  case $host_os in
6273  openbsd*)
6274    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6275    ;;
6276  *)
6277    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6278    ;;
6279  esac
6280  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6281fi
6282
6283case $host_os in
6284  darwin*)
6285    lock_old_archive_extraction=yes ;;
6286  *)
6287    lock_old_archive_extraction=no ;;
6288esac
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328# If no C compiler was specified, use CC.
6329LTCC=${LTCC-"$CC"}
6330
6331# If no C compiler flags were specified, use CFLAGS.
6332LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6333
6334# Allow CC to be a program name with arguments.
6335compiler=$CC
6336
6337
6338# Check for command to grab the raw symbol name followed by C symbol from nm.
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6340$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6341if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344
6345# These are sane defaults that work on at least a few old systems.
6346# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6347
6348# Character class describing NM global symbol codes.
6349symcode='[BCDEGRST]'
6350
6351# Regexp to match symbols that can be accessed directly from C.
6352sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6353
6354# Define system-specific variables.
6355case $host_os in
6356aix*)
6357  symcode='[BCDT]'
6358  ;;
6359cygwin* | mingw* | pw32* | cegcc*)
6360  symcode='[ABCDGISTW]'
6361  ;;
6362hpux*)
6363  if test "$host_cpu" = ia64; then
6364    symcode='[ABCDEGRST]'
6365  fi
6366  ;;
6367irix* | nonstopux*)
6368  symcode='[BCDEGRST]'
6369  ;;
6370osf*)
6371  symcode='[BCDEGQRST]'
6372  ;;
6373solaris*)
6374  symcode='[BDRT]'
6375  ;;
6376sco3.2v5*)
6377  symcode='[DT]'
6378  ;;
6379sysv4.2uw2*)
6380  symcode='[DT]'
6381  ;;
6382sysv5* | sco5v6* | unixware* | OpenUNIX*)
6383  symcode='[ABDT]'
6384  ;;
6385sysv4)
6386  symcode='[DFNSTU]'
6387  ;;
6388esac
6389
6390# If we're using GNU nm, then use its standard symbol codes.
6391case `$NM -V 2>&1` in
6392*GNU* | *'with BFD'*)
6393  symcode='[ABCDGIRSTW]' ;;
6394esac
6395
6396# Transform an extracted symbol line into a proper C declaration.
6397# Some systems (esp. on ia64) link data and code symbols differently,
6398# so use this general approach.
6399lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6400
6401# Transform an extracted symbol line into symbol name and symbol address
6402lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6403lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6404
6405# Handle CRLF in mingw tool chain
6406opt_cr=
6407case $build_os in
6408mingw*)
6409  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6410  ;;
6411esac
6412
6413# Try without a prefix underscore, then with it.
6414for ac_symprfx in "" "_"; do
6415
6416  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6417  symxfrm="\\1 $ac_symprfx\\2 \\2"
6418
6419  # Write the raw and C identifiers.
6420  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6421    # Fake it for dumpbin and say T for any non-static function
6422    # and D for any global variable.
6423    # Also find C++ and __fastcall symbols from MSVC++,
6424    # which start with @ or ?.
6425    lt_cv_sys_global_symbol_pipe="$AWK '"\
6426"     {last_section=section; section=\$ 3};"\
6427"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6428"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6429"     \$ 0!~/External *\|/{next};"\
6430"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6431"     {if(hide[section]) next};"\
6432"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6433"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6434"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6435"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6436"     ' prfx=^$ac_symprfx"
6437  else
6438    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6439  fi
6440  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6441
6442  # Check to see that the pipe works correctly.
6443  pipe_works=no
6444
6445  rm -f conftest*
6446  cat > conftest.$ac_ext <<_LT_EOF
6447#ifdef __cplusplus
6448extern "C" {
6449#endif
6450char nm_test_var;
6451void nm_test_func(void);
6452void nm_test_func(void){}
6453#ifdef __cplusplus
6454}
6455#endif
6456int main(){nm_test_var='a';nm_test_func();return(0);}
6457_LT_EOF
6458
6459  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6460  (eval $ac_compile) 2>&5
6461  ac_status=$?
6462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6463  test $ac_status = 0; }; then
6464    # Now try to grab the symbols.
6465    nlist=conftest.nm
6466    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6467  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6468  ac_status=$?
6469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470  test $ac_status = 0; } && test -s "$nlist"; then
6471      # Try sorting and uniquifying the output.
6472      if sort "$nlist" | uniq > "$nlist"T; then
6473	mv -f "$nlist"T "$nlist"
6474      else
6475	rm -f "$nlist"T
6476      fi
6477
6478      # Make sure that we snagged all the symbols we need.
6479      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6480	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6481	  cat <<_LT_EOF > conftest.$ac_ext
6482/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6483#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6484/* DATA imports from DLLs on WIN32 con't be const, because runtime
6485   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6486# define LT_DLSYM_CONST
6487#elif defined(__osf__)
6488/* This system does not cope well with relocations in const data.  */
6489# define LT_DLSYM_CONST
6490#else
6491# define LT_DLSYM_CONST const
6492#endif
6493
6494#ifdef __cplusplus
6495extern "C" {
6496#endif
6497
6498_LT_EOF
6499	  # Now generate the symbol file.
6500	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6501
6502	  cat <<_LT_EOF >> conftest.$ac_ext
6503
6504/* The mapping between symbol names and symbols.  */
6505LT_DLSYM_CONST struct {
6506  const char *name;
6507  void       *address;
6508}
6509lt__PROGRAM__LTX_preloaded_symbols[] =
6510{
6511  { "@PROGRAM@", (void *) 0 },
6512_LT_EOF
6513	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6514	  cat <<\_LT_EOF >> conftest.$ac_ext
6515  {0, (void *) 0}
6516};
6517
6518/* This works around a problem in FreeBSD linker */
6519#ifdef FREEBSD_WORKAROUND
6520static const void *lt_preloaded_setup() {
6521  return lt__PROGRAM__LTX_preloaded_symbols;
6522}
6523#endif
6524
6525#ifdef __cplusplus
6526}
6527#endif
6528_LT_EOF
6529	  # Now try linking the two files.
6530	  mv conftest.$ac_objext conftstm.$ac_objext
6531	  lt_globsym_save_LIBS=$LIBS
6532	  lt_globsym_save_CFLAGS=$CFLAGS
6533	  LIBS="conftstm.$ac_objext"
6534	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6535	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6536  (eval $ac_link) 2>&5
6537  ac_status=$?
6538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6540	    pipe_works=yes
6541	  fi
6542	  LIBS=$lt_globsym_save_LIBS
6543	  CFLAGS=$lt_globsym_save_CFLAGS
6544	else
6545	  echo "cannot find nm_test_func in $nlist" >&5
6546	fi
6547      else
6548	echo "cannot find nm_test_var in $nlist" >&5
6549      fi
6550    else
6551      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6552    fi
6553  else
6554    echo "$progname: failed program was:" >&5
6555    cat conftest.$ac_ext >&5
6556  fi
6557  rm -rf conftest* conftst*
6558
6559  # Do not use the global_symbol_pipe unless it works.
6560  if test "$pipe_works" = yes; then
6561    break
6562  else
6563    lt_cv_sys_global_symbol_pipe=
6564  fi
6565done
6566
6567fi
6568
6569if test -z "$lt_cv_sys_global_symbol_pipe"; then
6570  lt_cv_sys_global_symbol_to_cdecl=
6571fi
6572if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6574$as_echo "failed" >&6; }
6575else
6576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6577$as_echo "ok" >&6; }
6578fi
6579
6580# Response file support.
6581if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6582  nm_file_list_spec='@'
6583elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6584  nm_file_list_spec='@'
6585fi
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6614$as_echo_n "checking for sysroot... " >&6; }
6615
6616# Check whether --with-sysroot was given.
6617if test "${with_sysroot+set}" = set; then :
6618  withval=$with_sysroot;
6619else
6620  with_sysroot=no
6621fi
6622
6623
6624lt_sysroot=
6625case ${with_sysroot} in #(
6626 yes)
6627   if test "$GCC" = yes; then
6628     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6629   fi
6630   ;; #(
6631 /*)
6632   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6633   ;; #(
6634 no|'')
6635   ;; #(
6636 *)
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6638$as_echo "${with_sysroot}" >&6; }
6639   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6640   ;;
6641esac
6642
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6644$as_echo "${lt_sysroot:-no}" >&6; }
6645
6646
6647
6648
6649
6650# Check whether --enable-libtool-lock was given.
6651if test "${enable_libtool_lock+set}" = set; then :
6652  enableval=$enable_libtool_lock;
6653fi
6654
6655test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6656
6657# Some flags need to be propagated to the compiler or linker for good
6658# libtool support.
6659case $host in
6660ia64-*-hpux*)
6661  # Find out which ABI we are using.
6662  echo 'int i;' > conftest.$ac_ext
6663  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6664  (eval $ac_compile) 2>&5
6665  ac_status=$?
6666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667  test $ac_status = 0; }; then
6668    case `/usr/bin/file conftest.$ac_objext` in
6669      *ELF-32*)
6670	HPUX_IA64_MODE="32"
6671	;;
6672      *ELF-64*)
6673	HPUX_IA64_MODE="64"
6674	;;
6675    esac
6676  fi
6677  rm -rf conftest*
6678  ;;
6679*-*-irix6*)
6680  # Find out which ABI we are using.
6681  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6682  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6683  (eval $ac_compile) 2>&5
6684  ac_status=$?
6685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686  test $ac_status = 0; }; then
6687    if test "$lt_cv_prog_gnu_ld" = yes; then
6688      case `/usr/bin/file conftest.$ac_objext` in
6689	*32-bit*)
6690	  LD="${LD-ld} -melf32bsmip"
6691	  ;;
6692	*N32*)
6693	  LD="${LD-ld} -melf32bmipn32"
6694	  ;;
6695	*64-bit*)
6696	  LD="${LD-ld} -melf64bmip"
6697	;;
6698      esac
6699    else
6700      case `/usr/bin/file conftest.$ac_objext` in
6701	*32-bit*)
6702	  LD="${LD-ld} -32"
6703	  ;;
6704	*N32*)
6705	  LD="${LD-ld} -n32"
6706	  ;;
6707	*64-bit*)
6708	  LD="${LD-ld} -64"
6709	  ;;
6710      esac
6711    fi
6712  fi
6713  rm -rf conftest*
6714  ;;
6715
6716x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6717s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6718  # Find out which ABI we are using.
6719  echo 'int i;' > conftest.$ac_ext
6720  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6721  (eval $ac_compile) 2>&5
6722  ac_status=$?
6723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724  test $ac_status = 0; }; then
6725    case `/usr/bin/file conftest.o` in
6726      *32-bit*)
6727	case $host in
6728	  x86_64-*kfreebsd*-gnu)
6729	    LD="${LD-ld} -m elf_i386_fbsd"
6730	    ;;
6731	  x86_64-*linux*)
6732	    LD="${LD-ld} -m elf_i386"
6733	    ;;
6734	  ppc64-*linux*|powerpc64-*linux*)
6735	    LD="${LD-ld} -m elf32ppclinux"
6736	    ;;
6737	  s390x-*linux*)
6738	    LD="${LD-ld} -m elf_s390"
6739	    ;;
6740	  sparc64-*linux*)
6741	    LD="${LD-ld} -m elf32_sparc"
6742	    ;;
6743	esac
6744	;;
6745      *64-bit*)
6746	case $host in
6747	  x86_64-*kfreebsd*-gnu)
6748	    LD="${LD-ld} -m elf_x86_64_fbsd"
6749	    ;;
6750	  x86_64-*linux*)
6751	    LD="${LD-ld} -m elf_x86_64"
6752	    ;;
6753	  ppc*-*linux*|powerpc*-*linux*)
6754	    LD="${LD-ld} -m elf64ppc"
6755	    ;;
6756	  s390*-*linux*|s390*-*tpf*)
6757	    LD="${LD-ld} -m elf64_s390"
6758	    ;;
6759	  sparc*-*linux*)
6760	    LD="${LD-ld} -m elf64_sparc"
6761	    ;;
6762	esac
6763	;;
6764    esac
6765  fi
6766  rm -rf conftest*
6767  ;;
6768
6769*-*-sco3.2v5*)
6770  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6771  SAVE_CFLAGS="$CFLAGS"
6772  CFLAGS="$CFLAGS -belf"
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6774$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6775if ${lt_cv_cc_needs_belf+:} false; then :
6776  $as_echo_n "(cached) " >&6
6777else
6778  ac_ext=c
6779ac_cpp='$CPP $CPPFLAGS'
6780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782ac_compiler_gnu=$ac_cv_c_compiler_gnu
6783
6784     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h.  */
6786
6787int
6788main ()
6789{
6790
6791  ;
6792  return 0;
6793}
6794_ACEOF
6795if ac_fn_c_try_link "$LINENO"; then :
6796  lt_cv_cc_needs_belf=yes
6797else
6798  lt_cv_cc_needs_belf=no
6799fi
6800rm -f core conftest.err conftest.$ac_objext \
6801    conftest$ac_exeext conftest.$ac_ext
6802     ac_ext=c
6803ac_cpp='$CPP $CPPFLAGS'
6804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807
6808fi
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6810$as_echo "$lt_cv_cc_needs_belf" >&6; }
6811  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6812    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6813    CFLAGS="$SAVE_CFLAGS"
6814  fi
6815  ;;
6816*-*solaris*)
6817  # Find out which ABI we are using.
6818  echo 'int i;' > conftest.$ac_ext
6819  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6820  (eval $ac_compile) 2>&5
6821  ac_status=$?
6822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823  test $ac_status = 0; }; then
6824    case `/usr/bin/file conftest.o` in
6825    *64-bit*)
6826      case $lt_cv_prog_gnu_ld in
6827      yes*)
6828        case $host in
6829        i?86-*-solaris*)
6830          LD="${LD-ld} -m elf_x86_64"
6831          ;;
6832        sparc*-*-solaris*)
6833          LD="${LD-ld} -m elf64_sparc"
6834          ;;
6835        esac
6836        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6837        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6838          LD="${LD-ld}_sol2"
6839        fi
6840        ;;
6841      *)
6842	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6843	  LD="${LD-ld} -64"
6844	fi
6845	;;
6846      esac
6847      ;;
6848    esac
6849  fi
6850  rm -rf conftest*
6851  ;;
6852esac
6853
6854need_locks="$enable_libtool_lock"
6855
6856if test -n "$ac_tool_prefix"; then
6857  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6858set dummy ${ac_tool_prefix}mt; ac_word=$2
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test -n "$MANIFEST_TOOL"; then
6865  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872    for ac_exec_ext in '' $ac_executable_extensions; do
6873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879  done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6885if test -n "$MANIFEST_TOOL"; then
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6887$as_echo "$MANIFEST_TOOL" >&6; }
6888else
6889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893
6894fi
6895if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6896  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6897  # Extract the first word of "mt", so it can be a program name with args.
6898set dummy mt; ac_word=$2
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900$as_echo_n "checking for $ac_word... " >&6; }
6901if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6902  $as_echo_n "(cached) " >&6
6903else
6904  if test -n "$ac_ct_MANIFEST_TOOL"; then
6905  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910  IFS=$as_save_IFS
6911  test -z "$as_dir" && as_dir=.
6912    for ac_exec_ext in '' $ac_executable_extensions; do
6913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916    break 2
6917  fi
6918done
6919  done
6920IFS=$as_save_IFS
6921
6922fi
6923fi
6924ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6925if test -n "$ac_ct_MANIFEST_TOOL"; then
6926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6927$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6928else
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6934    MANIFEST_TOOL=":"
6935  else
6936    case $cross_compiling:$ac_tool_warned in
6937yes:)
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940ac_tool_warned=yes ;;
6941esac
6942    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6943  fi
6944else
6945  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6946fi
6947
6948test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6950$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6951if ${lt_cv_path_mainfest_tool+:} false; then :
6952  $as_echo_n "(cached) " >&6
6953else
6954  lt_cv_path_mainfest_tool=no
6955  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6956  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6957  cat conftest.err >&5
6958  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6959    lt_cv_path_mainfest_tool=yes
6960  fi
6961  rm -f conftest*
6962fi
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6964$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6965if test "x$lt_cv_path_mainfest_tool" != xyes; then
6966  MANIFEST_TOOL=:
6967fi
6968
6969
6970
6971
6972
6973
6974  case $host_os in
6975    rhapsody* | darwin*)
6976    if test -n "$ac_tool_prefix"; then
6977  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6978set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980$as_echo_n "checking for $ac_word... " >&6; }
6981if ${ac_cv_prog_DSYMUTIL+:} false; then :
6982  $as_echo_n "(cached) " >&6
6983else
6984  if test -n "$DSYMUTIL"; then
6985  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6986else
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990  IFS=$as_save_IFS
6991  test -z "$as_dir" && as_dir=.
6992    for ac_exec_ext in '' $ac_executable_extensions; do
6993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996    break 2
6997  fi
6998done
6999  done
7000IFS=$as_save_IFS
7001
7002fi
7003fi
7004DSYMUTIL=$ac_cv_prog_DSYMUTIL
7005if test -n "$DSYMUTIL"; then
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7007$as_echo "$DSYMUTIL" >&6; }
7008else
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010$as_echo "no" >&6; }
7011fi
7012
7013
7014fi
7015if test -z "$ac_cv_prog_DSYMUTIL"; then
7016  ac_ct_DSYMUTIL=$DSYMUTIL
7017  # Extract the first word of "dsymutil", so it can be a program name with args.
7018set dummy dsymutil; ac_word=$2
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020$as_echo_n "checking for $ac_word... " >&6; }
7021if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7022  $as_echo_n "(cached) " >&6
7023else
7024  if test -n "$ac_ct_DSYMUTIL"; then
7025  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030  IFS=$as_save_IFS
7031  test -z "$as_dir" && as_dir=.
7032    for ac_exec_ext in '' $ac_executable_extensions; do
7033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036    break 2
7037  fi
7038done
7039  done
7040IFS=$as_save_IFS
7041
7042fi
7043fi
7044ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7045if test -n "$ac_ct_DSYMUTIL"; then
7046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7047$as_echo "$ac_ct_DSYMUTIL" >&6; }
7048else
7049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050$as_echo "no" >&6; }
7051fi
7052
7053  if test "x$ac_ct_DSYMUTIL" = x; then
7054    DSYMUTIL=":"
7055  else
7056    case $cross_compiling:$ac_tool_warned in
7057yes:)
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060ac_tool_warned=yes ;;
7061esac
7062    DSYMUTIL=$ac_ct_DSYMUTIL
7063  fi
7064else
7065  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7066fi
7067
7068    if test -n "$ac_tool_prefix"; then
7069  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7070set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072$as_echo_n "checking for $ac_word... " >&6; }
7073if ${ac_cv_prog_NMEDIT+:} false; then :
7074  $as_echo_n "(cached) " >&6
7075else
7076  if test -n "$NMEDIT"; then
7077  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082  IFS=$as_save_IFS
7083  test -z "$as_dir" && as_dir=.
7084    for ac_exec_ext in '' $ac_executable_extensions; do
7085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088    break 2
7089  fi
7090done
7091  done
7092IFS=$as_save_IFS
7093
7094fi
7095fi
7096NMEDIT=$ac_cv_prog_NMEDIT
7097if test -n "$NMEDIT"; then
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7099$as_echo "$NMEDIT" >&6; }
7100else
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102$as_echo "no" >&6; }
7103fi
7104
7105
7106fi
7107if test -z "$ac_cv_prog_NMEDIT"; then
7108  ac_ct_NMEDIT=$NMEDIT
7109  # Extract the first word of "nmedit", so it can be a program name with args.
7110set dummy nmedit; ac_word=$2
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
7113if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  if test -n "$ac_ct_NMEDIT"; then
7117  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122  IFS=$as_save_IFS
7123  test -z "$as_dir" && as_dir=.
7124    for ac_exec_ext in '' $ac_executable_extensions; do
7125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128    break 2
7129  fi
7130done
7131  done
7132IFS=$as_save_IFS
7133
7134fi
7135fi
7136ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7137if test -n "$ac_ct_NMEDIT"; then
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7139$as_echo "$ac_ct_NMEDIT" >&6; }
7140else
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145  if test "x$ac_ct_NMEDIT" = x; then
7146    NMEDIT=":"
7147  else
7148    case $cross_compiling:$ac_tool_warned in
7149yes:)
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152ac_tool_warned=yes ;;
7153esac
7154    NMEDIT=$ac_ct_NMEDIT
7155  fi
7156else
7157  NMEDIT="$ac_cv_prog_NMEDIT"
7158fi
7159
7160    if test -n "$ac_tool_prefix"; then
7161  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7162set dummy ${ac_tool_prefix}lipo; ac_word=$2
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164$as_echo_n "checking for $ac_word... " >&6; }
7165if ${ac_cv_prog_LIPO+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  if test -n "$LIPO"; then
7169  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176    for ac_exec_ext in '' $ac_executable_extensions; do
7177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183  done
7184IFS=$as_save_IFS
7185
7186fi
7187fi
7188LIPO=$ac_cv_prog_LIPO
7189if test -n "$LIPO"; then
7190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7191$as_echo "$LIPO" >&6; }
7192else
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194$as_echo "no" >&6; }
7195fi
7196
7197
7198fi
7199if test -z "$ac_cv_prog_LIPO"; then
7200  ac_ct_LIPO=$LIPO
7201  # Extract the first word of "lipo", so it can be a program name with args.
7202set dummy lipo; ac_word=$2
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204$as_echo_n "checking for $ac_word... " >&6; }
7205if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7206  $as_echo_n "(cached) " >&6
7207else
7208  if test -n "$ac_ct_LIPO"; then
7209  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7210else
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214  IFS=$as_save_IFS
7215  test -z "$as_dir" && as_dir=.
7216    for ac_exec_ext in '' $ac_executable_extensions; do
7217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218    ac_cv_prog_ac_ct_LIPO="lipo"
7219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220    break 2
7221  fi
7222done
7223  done
7224IFS=$as_save_IFS
7225
7226fi
7227fi
7228ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7229if test -n "$ac_ct_LIPO"; then
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7231$as_echo "$ac_ct_LIPO" >&6; }
7232else
7233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234$as_echo "no" >&6; }
7235fi
7236
7237  if test "x$ac_ct_LIPO" = x; then
7238    LIPO=":"
7239  else
7240    case $cross_compiling:$ac_tool_warned in
7241yes:)
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244ac_tool_warned=yes ;;
7245esac
7246    LIPO=$ac_ct_LIPO
7247  fi
7248else
7249  LIPO="$ac_cv_prog_LIPO"
7250fi
7251
7252    if test -n "$ac_tool_prefix"; then
7253  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7254set dummy ${ac_tool_prefix}otool; ac_word=$2
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256$as_echo_n "checking for $ac_word... " >&6; }
7257if ${ac_cv_prog_OTOOL+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  if test -n "$OTOOL"; then
7261  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7262else
7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266  IFS=$as_save_IFS
7267  test -z "$as_dir" && as_dir=.
7268    for ac_exec_ext in '' $ac_executable_extensions; do
7269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272    break 2
7273  fi
7274done
7275  done
7276IFS=$as_save_IFS
7277
7278fi
7279fi
7280OTOOL=$ac_cv_prog_OTOOL
7281if test -n "$OTOOL"; then
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7283$as_echo "$OTOOL" >&6; }
7284else
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286$as_echo "no" >&6; }
7287fi
7288
7289
7290fi
7291if test -z "$ac_cv_prog_OTOOL"; then
7292  ac_ct_OTOOL=$OTOOL
7293  # Extract the first word of "otool", so it can be a program name with args.
7294set dummy otool; ac_word=$2
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296$as_echo_n "checking for $ac_word... " >&6; }
7297if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7298  $as_echo_n "(cached) " >&6
7299else
7300  if test -n "$ac_ct_OTOOL"; then
7301  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306  IFS=$as_save_IFS
7307  test -z "$as_dir" && as_dir=.
7308    for ac_exec_ext in '' $ac_executable_extensions; do
7309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310    ac_cv_prog_ac_ct_OTOOL="otool"
7311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312    break 2
7313  fi
7314done
7315  done
7316IFS=$as_save_IFS
7317
7318fi
7319fi
7320ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7321if test -n "$ac_ct_OTOOL"; then
7322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7323$as_echo "$ac_ct_OTOOL" >&6; }
7324else
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
7328
7329  if test "x$ac_ct_OTOOL" = x; then
7330    OTOOL=":"
7331  else
7332    case $cross_compiling:$ac_tool_warned in
7333yes:)
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7336ac_tool_warned=yes ;;
7337esac
7338    OTOOL=$ac_ct_OTOOL
7339  fi
7340else
7341  OTOOL="$ac_cv_prog_OTOOL"
7342fi
7343
7344    if test -n "$ac_tool_prefix"; then
7345  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7346set dummy ${ac_tool_prefix}otool64; ac_word=$2
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348$as_echo_n "checking for $ac_word... " >&6; }
7349if ${ac_cv_prog_OTOOL64+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  if test -n "$OTOOL64"; then
7353  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7354else
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358  IFS=$as_save_IFS
7359  test -z "$as_dir" && as_dir=.
7360    for ac_exec_ext in '' $ac_executable_extensions; do
7361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364    break 2
7365  fi
7366done
7367  done
7368IFS=$as_save_IFS
7369
7370fi
7371fi
7372OTOOL64=$ac_cv_prog_OTOOL64
7373if test -n "$OTOOL64"; then
7374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7375$as_echo "$OTOOL64" >&6; }
7376else
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378$as_echo "no" >&6; }
7379fi
7380
7381
7382fi
7383if test -z "$ac_cv_prog_OTOOL64"; then
7384  ac_ct_OTOOL64=$OTOOL64
7385  # Extract the first word of "otool64", so it can be a program name with args.
7386set dummy otool64; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  if test -n "$ac_ct_OTOOL64"; then
7393  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398  IFS=$as_save_IFS
7399  test -z "$as_dir" && as_dir=.
7400    for ac_exec_ext in '' $ac_executable_extensions; do
7401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402    ac_cv_prog_ac_ct_OTOOL64="otool64"
7403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404    break 2
7405  fi
7406done
7407  done
7408IFS=$as_save_IFS
7409
7410fi
7411fi
7412ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7413if test -n "$ac_ct_OTOOL64"; then
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7415$as_echo "$ac_ct_OTOOL64" >&6; }
7416else
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421  if test "x$ac_ct_OTOOL64" = x; then
7422    OTOOL64=":"
7423  else
7424    case $cross_compiling:$ac_tool_warned in
7425yes:)
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7428ac_tool_warned=yes ;;
7429esac
7430    OTOOL64=$ac_ct_OTOOL64
7431  fi
7432else
7433  OTOOL64="$ac_cv_prog_OTOOL64"
7434fi
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7463$as_echo_n "checking for -single_module linker flag... " >&6; }
7464if ${lt_cv_apple_cc_single_mod+:} false; then :
7465  $as_echo_n "(cached) " >&6
7466else
7467  lt_cv_apple_cc_single_mod=no
7468      if test -z "${LT_MULTI_MODULE}"; then
7469	# By default we will add the -single_module flag. You can override
7470	# by either setting the environment variable LT_MULTI_MODULE
7471	# non-empty at configure time, or by adding -multi_module to the
7472	# link flags.
7473	rm -rf libconftest.dylib*
7474	echo "int foo(void){return 1;}" > conftest.c
7475	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7476-dynamiclib -Wl,-single_module conftest.c" >&5
7477	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7478	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7479        _lt_result=$?
7480	# If there is a non-empty error log, and "single_module"
7481	# appears in it, assume the flag caused a linker warning
7482        if test -s conftest.err && $GREP single_module conftest.err; then
7483	  cat conftest.err >&5
7484	# Otherwise, if the output was created with a 0 exit code from
7485	# the compiler, it worked.
7486	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7487	  lt_cv_apple_cc_single_mod=yes
7488	else
7489	  cat conftest.err >&5
7490	fi
7491	rm -rf libconftest.dylib*
7492	rm -f conftest.*
7493      fi
7494fi
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7496$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7497
7498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7499$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7500if ${lt_cv_ld_exported_symbols_list+:} false; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  lt_cv_ld_exported_symbols_list=no
7504      save_LDFLAGS=$LDFLAGS
7505      echo "_main" > conftest.sym
7506      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7507      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509
7510int
7511main ()
7512{
7513
7514  ;
7515  return 0;
7516}
7517_ACEOF
7518if ac_fn_c_try_link "$LINENO"; then :
7519  lt_cv_ld_exported_symbols_list=yes
7520else
7521  lt_cv_ld_exported_symbols_list=no
7522fi
7523rm -f core conftest.err conftest.$ac_objext \
7524    conftest$ac_exeext conftest.$ac_ext
7525	LDFLAGS="$save_LDFLAGS"
7526
7527fi
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7529$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7530
7531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7532$as_echo_n "checking for -force_load linker flag... " >&6; }
7533if ${lt_cv_ld_force_load+:} false; then :
7534  $as_echo_n "(cached) " >&6
7535else
7536  lt_cv_ld_force_load=no
7537      cat > conftest.c << _LT_EOF
7538int forced_loaded() { return 2;}
7539_LT_EOF
7540      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7541      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7542      echo "$AR cru libconftest.a conftest.o" >&5
7543      $AR cru libconftest.a conftest.o 2>&5
7544      echo "$RANLIB libconftest.a" >&5
7545      $RANLIB libconftest.a 2>&5
7546      cat > conftest.c << _LT_EOF
7547int main() { return 0;}
7548_LT_EOF
7549      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7550      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7551      _lt_result=$?
7552      if test -s conftest.err && $GREP force_load conftest.err; then
7553	cat conftest.err >&5
7554      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7555	lt_cv_ld_force_load=yes
7556      else
7557	cat conftest.err >&5
7558      fi
7559        rm -f conftest.err libconftest.a conftest conftest.c
7560        rm -rf conftest.dSYM
7561
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7564$as_echo "$lt_cv_ld_force_load" >&6; }
7565    case $host_os in
7566    rhapsody* | darwin1.[012])
7567      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7568    darwin1.*)
7569      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7570    darwin*) # darwin 5.x on
7571      # if running on 10.5 or later, the deployment target defaults
7572      # to the OS version, if on x86, and 10.4, the deployment
7573      # target defaults to 10.4. Don't you love it?
7574      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7575	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7576	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7577	10.[012]*)
7578	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7579	10.*)
7580	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7581      esac
7582    ;;
7583  esac
7584    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7585      _lt_dar_single_mod='$single_module'
7586    fi
7587    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7588      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7589    else
7590      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7591    fi
7592    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7593      _lt_dsymutil='~$DSYMUTIL $lib || :'
7594    else
7595      _lt_dsymutil=
7596    fi
7597    ;;
7598  esac
7599
7600for ac_header in dlfcn.h
7601do :
7602  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7603"
7604if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7605  cat >>confdefs.h <<_ACEOF
7606#define HAVE_DLFCN_H 1
7607_ACEOF
7608
7609fi
7610
7611done
7612
7613
7614
7615
7616
7617# Set options
7618
7619
7620
7621        enable_dlopen=no
7622
7623
7624  enable_win32_dll=no
7625
7626
7627            # Check whether --enable-shared was given.
7628if test "${enable_shared+set}" = set; then :
7629  enableval=$enable_shared; p=${PACKAGE-default}
7630    case $enableval in
7631    yes) enable_shared=yes ;;
7632    no) enable_shared=no ;;
7633    *)
7634      enable_shared=no
7635      # Look at the argument we got.  We use all the common list separators.
7636      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7637      for pkg in $enableval; do
7638	IFS="$lt_save_ifs"
7639	if test "X$pkg" = "X$p"; then
7640	  enable_shared=yes
7641	fi
7642      done
7643      IFS="$lt_save_ifs"
7644      ;;
7645    esac
7646else
7647  enable_shared=yes
7648fi
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658  # Check whether --enable-static was given.
7659if test "${enable_static+set}" = set; then :
7660  enableval=$enable_static; p=${PACKAGE-default}
7661    case $enableval in
7662    yes) enable_static=yes ;;
7663    no) enable_static=no ;;
7664    *)
7665     enable_static=no
7666      # Look at the argument we got.  We use all the common list separators.
7667      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7668      for pkg in $enableval; do
7669	IFS="$lt_save_ifs"
7670	if test "X$pkg" = "X$p"; then
7671	  enable_static=yes
7672	fi
7673      done
7674      IFS="$lt_save_ifs"
7675      ;;
7676    esac
7677else
7678  enable_static=yes
7679fi
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690# Check whether --with-pic was given.
7691if test "${with_pic+set}" = set; then :
7692  withval=$with_pic; lt_p=${PACKAGE-default}
7693    case $withval in
7694    yes|no) pic_mode=$withval ;;
7695    *)
7696      pic_mode=default
7697      # Look at the argument we got.  We use all the common list separators.
7698      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7699      for lt_pkg in $withval; do
7700	IFS="$lt_save_ifs"
7701	if test "X$lt_pkg" = "X$lt_p"; then
7702	  pic_mode=yes
7703	fi
7704      done
7705      IFS="$lt_save_ifs"
7706      ;;
7707    esac
7708else
7709  pic_mode=default
7710fi
7711
7712
7713test -z "$pic_mode" && pic_mode=default
7714
7715
7716
7717
7718
7719
7720
7721  # Check whether --enable-fast-install was given.
7722if test "${enable_fast_install+set}" = set; then :
7723  enableval=$enable_fast_install; p=${PACKAGE-default}
7724    case $enableval in
7725    yes) enable_fast_install=yes ;;
7726    no) enable_fast_install=no ;;
7727    *)
7728      enable_fast_install=no
7729      # Look at the argument we got.  We use all the common list separators.
7730      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7731      for pkg in $enableval; do
7732	IFS="$lt_save_ifs"
7733	if test "X$pkg" = "X$p"; then
7734	  enable_fast_install=yes
7735	fi
7736      done
7737      IFS="$lt_save_ifs"
7738      ;;
7739    esac
7740else
7741  enable_fast_install=yes
7742fi
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754# This can be used to rebuild libtool when needed
7755LIBTOOL_DEPS="$ltmain"
7756
7757# Always use our own libtool.
7758LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789test -z "$LN_S" && LN_S="ln -s"
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804if test -n "${ZSH_VERSION+set}" ; then
7805   setopt NO_GLOB_SUBST
7806fi
7807
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7809$as_echo_n "checking for objdir... " >&6; }
7810if ${lt_cv_objdir+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  rm -f .libs 2>/dev/null
7814mkdir .libs 2>/dev/null
7815if test -d .libs; then
7816  lt_cv_objdir=.libs
7817else
7818  # MS-DOS does not allow filenames that begin with a dot.
7819  lt_cv_objdir=_libs
7820fi
7821rmdir .libs 2>/dev/null
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7824$as_echo "$lt_cv_objdir" >&6; }
7825objdir=$lt_cv_objdir
7826
7827
7828
7829
7830
7831cat >>confdefs.h <<_ACEOF
7832#define LT_OBJDIR "$lt_cv_objdir/"
7833_ACEOF
7834
7835
7836
7837
7838case $host_os in
7839aix3*)
7840  # AIX sometimes has problems with the GCC collect2 program.  For some
7841  # reason, if we set the COLLECT_NAMES environment variable, the problems
7842  # vanish in a puff of smoke.
7843  if test "X${COLLECT_NAMES+set}" != Xset; then
7844    COLLECT_NAMES=
7845    export COLLECT_NAMES
7846  fi
7847  ;;
7848esac
7849
7850# Global variables:
7851ofile=libtool
7852can_build_shared=yes
7853
7854# All known linkers require a `.a' archive for static linking (except MSVC,
7855# which needs '.lib').
7856libext=a
7857
7858with_gnu_ld="$lt_cv_prog_gnu_ld"
7859
7860old_CC="$CC"
7861old_CFLAGS="$CFLAGS"
7862
7863# Set sane defaults for various variables
7864test -z "$CC" && CC=cc
7865test -z "$LTCC" && LTCC=$CC
7866test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7867test -z "$LD" && LD=ld
7868test -z "$ac_objext" && ac_objext=o
7869
7870for cc_temp in $compiler""; do
7871  case $cc_temp in
7872    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7873    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7874    \-*) ;;
7875    *) break;;
7876  esac
7877done
7878cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7879
7880
7881# Only perform the check for file, if the check method requires it
7882test -z "$MAGIC_CMD" && MAGIC_CMD=file
7883case $deplibs_check_method in
7884file_magic*)
7885  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7887$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7888if ${lt_cv_path_MAGIC_CMD+:} false; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891  case $MAGIC_CMD in
7892[\\/*] |  ?:[\\/]*)
7893  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7894  ;;
7895*)
7896  lt_save_MAGIC_CMD="$MAGIC_CMD"
7897  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7898  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7899  for ac_dir in $ac_dummy; do
7900    IFS="$lt_save_ifs"
7901    test -z "$ac_dir" && ac_dir=.
7902    if test -f $ac_dir/${ac_tool_prefix}file; then
7903      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7904      if test -n "$file_magic_test_file"; then
7905	case $deplibs_check_method in
7906	"file_magic "*)
7907	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7908	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7909	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7910	    $EGREP "$file_magic_regex" > /dev/null; then
7911	    :
7912	  else
7913	    cat <<_LT_EOF 1>&2
7914
7915*** Warning: the command libtool uses to detect shared libraries,
7916*** $file_magic_cmd, produces output that libtool cannot recognize.
7917*** The result is that libtool may fail to recognize shared libraries
7918*** as such.  This will affect the creation of libtool libraries that
7919*** depend on shared libraries, but programs linked with such libtool
7920*** libraries will work regardless of this problem.  Nevertheless, you
7921*** may want to report the problem to your system manager and/or to
7922*** bug-libtool@gnu.org
7923
7924_LT_EOF
7925	  fi ;;
7926	esac
7927      fi
7928      break
7929    fi
7930  done
7931  IFS="$lt_save_ifs"
7932  MAGIC_CMD="$lt_save_MAGIC_CMD"
7933  ;;
7934esac
7935fi
7936
7937MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7938if test -n "$MAGIC_CMD"; then
7939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7940$as_echo "$MAGIC_CMD" >&6; }
7941else
7942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943$as_echo "no" >&6; }
7944fi
7945
7946
7947
7948
7949
7950if test -z "$lt_cv_path_MAGIC_CMD"; then
7951  if test -n "$ac_tool_prefix"; then
7952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7953$as_echo_n "checking for file... " >&6; }
7954if ${lt_cv_path_MAGIC_CMD+:} false; then :
7955  $as_echo_n "(cached) " >&6
7956else
7957  case $MAGIC_CMD in
7958[\\/*] |  ?:[\\/]*)
7959  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7960  ;;
7961*)
7962  lt_save_MAGIC_CMD="$MAGIC_CMD"
7963  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7964  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7965  for ac_dir in $ac_dummy; do
7966    IFS="$lt_save_ifs"
7967    test -z "$ac_dir" && ac_dir=.
7968    if test -f $ac_dir/file; then
7969      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7970      if test -n "$file_magic_test_file"; then
7971	case $deplibs_check_method in
7972	"file_magic "*)
7973	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7974	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7975	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7976	    $EGREP "$file_magic_regex" > /dev/null; then
7977	    :
7978	  else
7979	    cat <<_LT_EOF 1>&2
7980
7981*** Warning: the command libtool uses to detect shared libraries,
7982*** $file_magic_cmd, produces output that libtool cannot recognize.
7983*** The result is that libtool may fail to recognize shared libraries
7984*** as such.  This will affect the creation of libtool libraries that
7985*** depend on shared libraries, but programs linked with such libtool
7986*** libraries will work regardless of this problem.  Nevertheless, you
7987*** may want to report the problem to your system manager and/or to
7988*** bug-libtool@gnu.org
7989
7990_LT_EOF
7991	  fi ;;
7992	esac
7993      fi
7994      break
7995    fi
7996  done
7997  IFS="$lt_save_ifs"
7998  MAGIC_CMD="$lt_save_MAGIC_CMD"
7999  ;;
8000esac
8001fi
8002
8003MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8004if test -n "$MAGIC_CMD"; then
8005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8006$as_echo "$MAGIC_CMD" >&6; }
8007else
8008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009$as_echo "no" >&6; }
8010fi
8011
8012
8013  else
8014    MAGIC_CMD=:
8015  fi
8016fi
8017
8018  fi
8019  ;;
8020esac
8021
8022# Use C for the default configuration in the libtool script
8023
8024lt_save_CC="$CC"
8025ac_ext=c
8026ac_cpp='$CPP $CPPFLAGS'
8027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029ac_compiler_gnu=$ac_cv_c_compiler_gnu
8030
8031
8032# Source file extension for C test sources.
8033ac_ext=c
8034
8035# Object file extension for compiled C test sources.
8036objext=o
8037objext=$objext
8038
8039# Code to be used in simple compile tests
8040lt_simple_compile_test_code="int some_variable = 0;"
8041
8042# Code to be used in simple link tests
8043lt_simple_link_test_code='int main(){return(0);}'
8044
8045
8046
8047
8048
8049
8050
8051# If no C compiler was specified, use CC.
8052LTCC=${LTCC-"$CC"}
8053
8054# If no C compiler flags were specified, use CFLAGS.
8055LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8056
8057# Allow CC to be a program name with arguments.
8058compiler=$CC
8059
8060# Save the default compiler, since it gets overwritten when the other
8061# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8062compiler_DEFAULT=$CC
8063
8064# save warnings/boilerplate of simple test code
8065ac_outfile=conftest.$ac_objext
8066echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8067eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8068_lt_compiler_boilerplate=`cat conftest.err`
8069$RM conftest*
8070
8071ac_outfile=conftest.$ac_objext
8072echo "$lt_simple_link_test_code" >conftest.$ac_ext
8073eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8074_lt_linker_boilerplate=`cat conftest.err`
8075$RM -r conftest*
8076
8077
8078## CAVEAT EMPTOR:
8079## There is no encapsulation within the following macros, do not change
8080## the running order or otherwise move them around unless you know exactly
8081## what you are doing...
8082if test -n "$compiler"; then
8083
8084lt_prog_compiler_no_builtin_flag=
8085
8086if test "$GCC" = yes; then
8087  case $cc_basename in
8088  nvcc*)
8089    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8090  *)
8091    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8092  esac
8093
8094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8095$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8096if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8097  $as_echo_n "(cached) " >&6
8098else
8099  lt_cv_prog_compiler_rtti_exceptions=no
8100   ac_outfile=conftest.$ac_objext
8101   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8102   lt_compiler_flag="-fno-rtti -fno-exceptions"
8103   # Insert the option either (1) after the last *FLAGS variable, or
8104   # (2) before a word containing "conftest.", or (3) at the end.
8105   # Note that $ac_compile itself does not contain backslashes and begins
8106   # with a dollar sign (not a hyphen), so the echo should work correctly.
8107   # The option is referenced via a variable to avoid confusing sed.
8108   lt_compile=`echo "$ac_compile" | $SED \
8109   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8110   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8111   -e 's:$: $lt_compiler_flag:'`
8112   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8113   (eval "$lt_compile" 2>conftest.err)
8114   ac_status=$?
8115   cat conftest.err >&5
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   if (exit $ac_status) && test -s "$ac_outfile"; then
8118     # The compiler can only warn and ignore the option if not recognized
8119     # So say no if there are warnings other than the usual output.
8120     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8121     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8122     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8123       lt_cv_prog_compiler_rtti_exceptions=yes
8124     fi
8125   fi
8126   $RM conftest*
8127
8128fi
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8130$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8131
8132if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8133    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8134else
8135    :
8136fi
8137
8138fi
8139
8140
8141
8142
8143
8144
8145  lt_prog_compiler_wl=
8146lt_prog_compiler_pic=
8147lt_prog_compiler_static=
8148
8149
8150  if test "$GCC" = yes; then
8151    lt_prog_compiler_wl='-Wl,'
8152    lt_prog_compiler_static='-static'
8153
8154    case $host_os in
8155      aix*)
8156      # All AIX code is PIC.
8157      if test "$host_cpu" = ia64; then
8158	# AIX 5 now supports IA64 processor
8159	lt_prog_compiler_static='-Bstatic'
8160      fi
8161      ;;
8162
8163    amigaos*)
8164      case $host_cpu in
8165      powerpc)
8166            # see comment about AmigaOS4 .so support
8167            lt_prog_compiler_pic='-fPIC'
8168        ;;
8169      m68k)
8170            # FIXME: we need at least 68020 code to build shared libraries, but
8171            # adding the `-m68020' flag to GCC prevents building anything better,
8172            # like `-m68040'.
8173            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8174        ;;
8175      esac
8176      ;;
8177
8178    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8179      # PIC is the default for these OSes.
8180      ;;
8181
8182    mingw* | cygwin* | pw32* | os2* | cegcc*)
8183      # This hack is so that the source file can tell whether it is being
8184      # built for inclusion in a dll (and should export symbols for example).
8185      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8186      # (--disable-auto-import) libraries
8187      lt_prog_compiler_pic='-DDLL_EXPORT'
8188      ;;
8189
8190    darwin* | rhapsody*)
8191      # PIC is the default on this platform
8192      # Common symbols not allowed in MH_DYLIB files
8193      lt_prog_compiler_pic='-fno-common'
8194      ;;
8195
8196    haiku*)
8197      # PIC is the default for Haiku.
8198      # The "-static" flag exists, but is broken.
8199      lt_prog_compiler_static=
8200      ;;
8201
8202    hpux*)
8203      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8204      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8205      # sets the default TLS model and affects inlining.
8206      case $host_cpu in
8207      hppa*64*)
8208	# +Z the default
8209	;;
8210      *)
8211	lt_prog_compiler_pic='-fPIC'
8212	;;
8213      esac
8214      ;;
8215
8216    interix[3-9]*)
8217      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8218      # Instead, we relocate shared libraries at runtime.
8219      ;;
8220
8221    msdosdjgpp*)
8222      # Just because we use GCC doesn't mean we suddenly get shared libraries
8223      # on systems that don't support them.
8224      lt_prog_compiler_can_build_shared=no
8225      enable_shared=no
8226      ;;
8227
8228    *nto* | *qnx*)
8229      # QNX uses GNU C++, but need to define -shared option too, otherwise
8230      # it will coredump.
8231      lt_prog_compiler_pic='-fPIC -shared'
8232      ;;
8233
8234    sysv4*MP*)
8235      if test -d /usr/nec; then
8236	lt_prog_compiler_pic=-Kconform_pic
8237      fi
8238      ;;
8239
8240    *)
8241      lt_prog_compiler_pic='-fPIC'
8242      ;;
8243    esac
8244
8245    case $cc_basename in
8246    nvcc*) # Cuda Compiler Driver 2.2
8247      lt_prog_compiler_wl='-Xlinker '
8248      if test -n "$lt_prog_compiler_pic"; then
8249        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8250      fi
8251      ;;
8252    esac
8253  else
8254    # PORTME Check for flag to pass linker flags through the system compiler.
8255    case $host_os in
8256    aix*)
8257      lt_prog_compiler_wl='-Wl,'
8258      if test "$host_cpu" = ia64; then
8259	# AIX 5 now supports IA64 processor
8260	lt_prog_compiler_static='-Bstatic'
8261      else
8262	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8263      fi
8264      ;;
8265
8266    mingw* | cygwin* | pw32* | os2* | cegcc*)
8267      # This hack is so that the source file can tell whether it is being
8268      # built for inclusion in a dll (and should export symbols for example).
8269      lt_prog_compiler_pic='-DDLL_EXPORT'
8270      ;;
8271
8272    hpux9* | hpux10* | hpux11*)
8273      lt_prog_compiler_wl='-Wl,'
8274      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8275      # not for PA HP-UX.
8276      case $host_cpu in
8277      hppa*64*|ia64*)
8278	# +Z the default
8279	;;
8280      *)
8281	lt_prog_compiler_pic='+Z'
8282	;;
8283      esac
8284      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8285      lt_prog_compiler_static='${wl}-a ${wl}archive'
8286      ;;
8287
8288    irix5* | irix6* | nonstopux*)
8289      lt_prog_compiler_wl='-Wl,'
8290      # PIC (with -KPIC) is the default.
8291      lt_prog_compiler_static='-non_shared'
8292      ;;
8293
8294    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8295      case $cc_basename in
8296      # old Intel for x86_64 which still supported -KPIC.
8297      ecc*)
8298	lt_prog_compiler_wl='-Wl,'
8299	lt_prog_compiler_pic='-KPIC'
8300	lt_prog_compiler_static='-static'
8301        ;;
8302      # icc used to be incompatible with GCC.
8303      # ICC 10 doesn't accept -KPIC any more.
8304      icc* | ifort*)
8305	lt_prog_compiler_wl='-Wl,'
8306	lt_prog_compiler_pic='-fPIC'
8307	lt_prog_compiler_static='-static'
8308        ;;
8309      # Lahey Fortran 8.1.
8310      lf95*)
8311	lt_prog_compiler_wl='-Wl,'
8312	lt_prog_compiler_pic='--shared'
8313	lt_prog_compiler_static='--static'
8314	;;
8315      nagfor*)
8316	# NAG Fortran compiler
8317	lt_prog_compiler_wl='-Wl,-Wl,,'
8318	lt_prog_compiler_pic='-PIC'
8319	lt_prog_compiler_static='-Bstatic'
8320	;;
8321      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8322        # Portland Group compilers (*not* the Pentium gcc compiler,
8323	# which looks to be a dead project)
8324	lt_prog_compiler_wl='-Wl,'
8325	lt_prog_compiler_pic='-fpic'
8326	lt_prog_compiler_static='-Bstatic'
8327        ;;
8328      ccc*)
8329        lt_prog_compiler_wl='-Wl,'
8330        # All Alpha code is PIC.
8331        lt_prog_compiler_static='-non_shared'
8332        ;;
8333      xl* | bgxl* | bgf* | mpixl*)
8334	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8335	lt_prog_compiler_wl='-Wl,'
8336	lt_prog_compiler_pic='-qpic'
8337	lt_prog_compiler_static='-qstaticlink'
8338	;;
8339      *)
8340	case `$CC -V 2>&1 | sed 5q` in
8341	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8342	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8343	  lt_prog_compiler_pic='-KPIC'
8344	  lt_prog_compiler_static='-Bstatic'
8345	  lt_prog_compiler_wl=''
8346	  ;;
8347	*Sun\ F* | *Sun*Fortran*)
8348	  lt_prog_compiler_pic='-KPIC'
8349	  lt_prog_compiler_static='-Bstatic'
8350	  lt_prog_compiler_wl='-Qoption ld '
8351	  ;;
8352	*Sun\ C*)
8353	  # Sun C 5.9
8354	  lt_prog_compiler_pic='-KPIC'
8355	  lt_prog_compiler_static='-Bstatic'
8356	  lt_prog_compiler_wl='-Wl,'
8357	  ;;
8358        *Intel*\ [CF]*Compiler*)
8359	  lt_prog_compiler_wl='-Wl,'
8360	  lt_prog_compiler_pic='-fPIC'
8361	  lt_prog_compiler_static='-static'
8362	  ;;
8363	*Portland\ Group*)
8364	  lt_prog_compiler_wl='-Wl,'
8365	  lt_prog_compiler_pic='-fpic'
8366	  lt_prog_compiler_static='-Bstatic'
8367	  ;;
8368	esac
8369	;;
8370      esac
8371      ;;
8372
8373    newsos6)
8374      lt_prog_compiler_pic='-KPIC'
8375      lt_prog_compiler_static='-Bstatic'
8376      ;;
8377
8378    *nto* | *qnx*)
8379      # QNX uses GNU C++, but need to define -shared option too, otherwise
8380      # it will coredump.
8381      lt_prog_compiler_pic='-fPIC -shared'
8382      ;;
8383
8384    osf3* | osf4* | osf5*)
8385      lt_prog_compiler_wl='-Wl,'
8386      # All OSF/1 code is PIC.
8387      lt_prog_compiler_static='-non_shared'
8388      ;;
8389
8390    rdos*)
8391      lt_prog_compiler_static='-non_shared'
8392      ;;
8393
8394    solaris*)
8395      lt_prog_compiler_pic='-KPIC'
8396      lt_prog_compiler_static='-Bstatic'
8397      case $cc_basename in
8398      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8399	lt_prog_compiler_wl='-Qoption ld ';;
8400      *)
8401	lt_prog_compiler_wl='-Wl,';;
8402      esac
8403      ;;
8404
8405    sunos4*)
8406      lt_prog_compiler_wl='-Qoption ld '
8407      lt_prog_compiler_pic='-PIC'
8408      lt_prog_compiler_static='-Bstatic'
8409      ;;
8410
8411    sysv4 | sysv4.2uw2* | sysv4.3*)
8412      lt_prog_compiler_wl='-Wl,'
8413      lt_prog_compiler_pic='-KPIC'
8414      lt_prog_compiler_static='-Bstatic'
8415      ;;
8416
8417    sysv4*MP*)
8418      if test -d /usr/nec ;then
8419	lt_prog_compiler_pic='-Kconform_pic'
8420	lt_prog_compiler_static='-Bstatic'
8421      fi
8422      ;;
8423
8424    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8425      lt_prog_compiler_wl='-Wl,'
8426      lt_prog_compiler_pic='-KPIC'
8427      lt_prog_compiler_static='-Bstatic'
8428      ;;
8429
8430    unicos*)
8431      lt_prog_compiler_wl='-Wl,'
8432      lt_prog_compiler_can_build_shared=no
8433      ;;
8434
8435    uts4*)
8436      lt_prog_compiler_pic='-pic'
8437      lt_prog_compiler_static='-Bstatic'
8438      ;;
8439
8440    *)
8441      lt_prog_compiler_can_build_shared=no
8442      ;;
8443    esac
8444  fi
8445
8446case $host_os in
8447  # For platforms which do not support PIC, -DPIC is meaningless:
8448  *djgpp*)
8449    lt_prog_compiler_pic=
8450    ;;
8451  *)
8452    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8453    ;;
8454esac
8455
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8457$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8458if ${lt_cv_prog_compiler_pic+:} false; then :
8459  $as_echo_n "(cached) " >&6
8460else
8461  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8462fi
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8464$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8465lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8466
8467#
8468# Check to make sure the PIC flag actually works.
8469#
8470if test -n "$lt_prog_compiler_pic"; then
8471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8472$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8473if ${lt_cv_prog_compiler_pic_works+:} false; then :
8474  $as_echo_n "(cached) " >&6
8475else
8476  lt_cv_prog_compiler_pic_works=no
8477   ac_outfile=conftest.$ac_objext
8478   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8479   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8480   # Insert the option either (1) after the last *FLAGS variable, or
8481   # (2) before a word containing "conftest.", or (3) at the end.
8482   # Note that $ac_compile itself does not contain backslashes and begins
8483   # with a dollar sign (not a hyphen), so the echo should work correctly.
8484   # The option is referenced via a variable to avoid confusing sed.
8485   lt_compile=`echo "$ac_compile" | $SED \
8486   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8487   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8488   -e 's:$: $lt_compiler_flag:'`
8489   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8490   (eval "$lt_compile" 2>conftest.err)
8491   ac_status=$?
8492   cat conftest.err >&5
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   if (exit $ac_status) && test -s "$ac_outfile"; then
8495     # The compiler can only warn and ignore the option if not recognized
8496     # So say no if there are warnings other than the usual output.
8497     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8498     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8499     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8500       lt_cv_prog_compiler_pic_works=yes
8501     fi
8502   fi
8503   $RM conftest*
8504
8505fi
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8507$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8508
8509if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8510    case $lt_prog_compiler_pic in
8511     "" | " "*) ;;
8512     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8513     esac
8514else
8515    lt_prog_compiler_pic=
8516     lt_prog_compiler_can_build_shared=no
8517fi
8518
8519fi
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531#
8532# Check to make sure the static flag actually works.
8533#
8534wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8536$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8537if ${lt_cv_prog_compiler_static_works+:} false; then :
8538  $as_echo_n "(cached) " >&6
8539else
8540  lt_cv_prog_compiler_static_works=no
8541   save_LDFLAGS="$LDFLAGS"
8542   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8543   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8544   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8545     # The linker can only warn and ignore the option if not recognized
8546     # So say no if there are warnings
8547     if test -s conftest.err; then
8548       # Append any errors to the config.log.
8549       cat conftest.err 1>&5
8550       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8551       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8552       if diff conftest.exp conftest.er2 >/dev/null; then
8553         lt_cv_prog_compiler_static_works=yes
8554       fi
8555     else
8556       lt_cv_prog_compiler_static_works=yes
8557     fi
8558   fi
8559   $RM -r conftest*
8560   LDFLAGS="$save_LDFLAGS"
8561
8562fi
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8564$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8565
8566if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8567    :
8568else
8569    lt_prog_compiler_static=
8570fi
8571
8572
8573
8574
8575
8576
8577
8578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8579$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8580if ${lt_cv_prog_compiler_c_o+:} false; then :
8581  $as_echo_n "(cached) " >&6
8582else
8583  lt_cv_prog_compiler_c_o=no
8584   $RM -r conftest 2>/dev/null
8585   mkdir conftest
8586   cd conftest
8587   mkdir out
8588   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8589
8590   lt_compiler_flag="-o out/conftest2.$ac_objext"
8591   # Insert the option either (1) after the last *FLAGS variable, or
8592   # (2) before a word containing "conftest.", or (3) at the end.
8593   # Note that $ac_compile itself does not contain backslashes and begins
8594   # with a dollar sign (not a hyphen), so the echo should work correctly.
8595   lt_compile=`echo "$ac_compile" | $SED \
8596   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8597   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8598   -e 's:$: $lt_compiler_flag:'`
8599   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8600   (eval "$lt_compile" 2>out/conftest.err)
8601   ac_status=$?
8602   cat out/conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8605   then
8606     # The compiler can only warn and ignore the option if not recognized
8607     # So say no if there are warnings
8608     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8609     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8610     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8611       lt_cv_prog_compiler_c_o=yes
8612     fi
8613   fi
8614   chmod u+w . 2>&5
8615   $RM conftest*
8616   # SGI C++ compiler will create directory out/ii_files/ for
8617   # template instantiation
8618   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8619   $RM out/* && rmdir out
8620   cd ..
8621   $RM -r conftest
8622   $RM conftest*
8623
8624fi
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8626$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8627
8628
8629
8630
8631
8632
8633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8634$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8635if ${lt_cv_prog_compiler_c_o+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  lt_cv_prog_compiler_c_o=no
8639   $RM -r conftest 2>/dev/null
8640   mkdir conftest
8641   cd conftest
8642   mkdir out
8643   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8644
8645   lt_compiler_flag="-o out/conftest2.$ac_objext"
8646   # Insert the option either (1) after the last *FLAGS variable, or
8647   # (2) before a word containing "conftest.", or (3) at the end.
8648   # Note that $ac_compile itself does not contain backslashes and begins
8649   # with a dollar sign (not a hyphen), so the echo should work correctly.
8650   lt_compile=`echo "$ac_compile" | $SED \
8651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8653   -e 's:$: $lt_compiler_flag:'`
8654   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8655   (eval "$lt_compile" 2>out/conftest.err)
8656   ac_status=$?
8657   cat out/conftest.err >&5
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8660   then
8661     # The compiler can only warn and ignore the option if not recognized
8662     # So say no if there are warnings
8663     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8664     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8665     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8666       lt_cv_prog_compiler_c_o=yes
8667     fi
8668   fi
8669   chmod u+w . 2>&5
8670   $RM conftest*
8671   # SGI C++ compiler will create directory out/ii_files/ for
8672   # template instantiation
8673   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8674   $RM out/* && rmdir out
8675   cd ..
8676   $RM -r conftest
8677   $RM conftest*
8678
8679fi
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8681$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8682
8683
8684
8685
8686hard_links="nottested"
8687if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8688  # do not overwrite the value of need_locks provided by the user
8689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8690$as_echo_n "checking if we can lock with hard links... " >&6; }
8691  hard_links=yes
8692  $RM conftest*
8693  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8694  touch conftest.a
8695  ln conftest.a conftest.b 2>&5 || hard_links=no
8696  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8698$as_echo "$hard_links" >&6; }
8699  if test "$hard_links" = no; then
8700    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8701$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8702    need_locks=warn
8703  fi
8704else
8705  need_locks=no
8706fi
8707
8708
8709
8710
8711
8712
8713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8714$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8715
8716  runpath_var=
8717  allow_undefined_flag=
8718  always_export_symbols=no
8719  archive_cmds=
8720  archive_expsym_cmds=
8721  compiler_needs_object=no
8722  enable_shared_with_static_runtimes=no
8723  export_dynamic_flag_spec=
8724  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8725  hardcode_automatic=no
8726  hardcode_direct=no
8727  hardcode_direct_absolute=no
8728  hardcode_libdir_flag_spec=
8729  hardcode_libdir_separator=
8730  hardcode_minus_L=no
8731  hardcode_shlibpath_var=unsupported
8732  inherit_rpath=no
8733  link_all_deplibs=unknown
8734  module_cmds=
8735  module_expsym_cmds=
8736  old_archive_from_new_cmds=
8737  old_archive_from_expsyms_cmds=
8738  thread_safe_flag_spec=
8739  whole_archive_flag_spec=
8740  # include_expsyms should be a list of space-separated symbols to be *always*
8741  # included in the symbol list
8742  include_expsyms=
8743  # exclude_expsyms can be an extended regexp of symbols to exclude
8744  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8745  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8746  # as well as any symbol that contains `d'.
8747  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8748  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8749  # platforms (ab)use it in PIC code, but their linkers get confused if
8750  # the symbol is explicitly referenced.  Since portable code cannot
8751  # rely on this symbol name, it's probably fine to never include it in
8752  # preloaded symbol tables.
8753  # Exclude shared library initialization/finalization symbols.
8754  extract_expsyms_cmds=
8755
8756  case $host_os in
8757  cygwin* | mingw* | pw32* | cegcc*)
8758    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8759    # When not using gcc, we currently assume that we are using
8760    # Microsoft Visual C++.
8761    if test "$GCC" != yes; then
8762      with_gnu_ld=no
8763    fi
8764    ;;
8765  interix*)
8766    # we just hope/assume this is gcc and not c89 (= MSVC++)
8767    with_gnu_ld=yes
8768    ;;
8769  openbsd*)
8770    with_gnu_ld=no
8771    ;;
8772  esac
8773
8774  ld_shlibs=yes
8775
8776  # On some targets, GNU ld is compatible enough with the native linker
8777  # that we're better off using the native interface for both.
8778  lt_use_gnu_ld_interface=no
8779  if test "$with_gnu_ld" = yes; then
8780    case $host_os in
8781      aix*)
8782	# The AIX port of GNU ld has always aspired to compatibility
8783	# with the native linker.  However, as the warning in the GNU ld
8784	# block says, versions before 2.19.5* couldn't really create working
8785	# shared libraries, regardless of the interface used.
8786	case `$LD -v 2>&1` in
8787	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8788	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8789	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8790	  *)
8791	    lt_use_gnu_ld_interface=yes
8792	    ;;
8793	esac
8794	;;
8795      *)
8796	lt_use_gnu_ld_interface=yes
8797	;;
8798    esac
8799  fi
8800
8801  if test "$lt_use_gnu_ld_interface" = yes; then
8802    # If archive_cmds runs LD, not CC, wlarc should be empty
8803    wlarc='${wl}'
8804
8805    # Set some defaults for GNU ld with shared library support. These
8806    # are reset later if shared libraries are not supported. Putting them
8807    # here allows them to be overridden if necessary.
8808    runpath_var=LD_RUN_PATH
8809    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810    export_dynamic_flag_spec='${wl}--export-dynamic'
8811    # ancient GNU ld didn't support --whole-archive et. al.
8812    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8813      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8814    else
8815      whole_archive_flag_spec=
8816    fi
8817    supports_anon_versioning=no
8818    case `$LD -v 2>&1` in
8819      *GNU\ gold*) supports_anon_versioning=yes ;;
8820      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8821      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8822      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8823      *\ 2.11.*) ;; # other 2.11 versions
8824      *) supports_anon_versioning=yes ;;
8825    esac
8826
8827    # See if GNU ld supports shared libraries.
8828    case $host_os in
8829    aix[3-9]*)
8830      # On AIX/PPC, the GNU linker is very broken
8831      if test "$host_cpu" != ia64; then
8832	ld_shlibs=no
8833	cat <<_LT_EOF 1>&2
8834
8835*** Warning: the GNU linker, at least up to release 2.19, is reported
8836*** to be unable to reliably create shared libraries on AIX.
8837*** Therefore, libtool is disabling shared libraries support.  If you
8838*** really care for shared libraries, you may want to install binutils
8839*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8840*** You will then need to restart the configuration process.
8841
8842_LT_EOF
8843      fi
8844      ;;
8845
8846    amigaos*)
8847      case $host_cpu in
8848      powerpc)
8849            # see comment about AmigaOS4 .so support
8850            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851            archive_expsym_cmds=''
8852        ;;
8853      m68k)
8854            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)'
8855            hardcode_libdir_flag_spec='-L$libdir'
8856            hardcode_minus_L=yes
8857        ;;
8858      esac
8859      ;;
8860
8861    beos*)
8862      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8863	allow_undefined_flag=unsupported
8864	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8865	# support --undefined.  This deserves some investigation.  FIXME
8866	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867      else
8868	ld_shlibs=no
8869      fi
8870      ;;
8871
8872    cygwin* | mingw* | pw32* | cegcc*)
8873      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8874      # as there is no search path for DLLs.
8875      hardcode_libdir_flag_spec='-L$libdir'
8876      export_dynamic_flag_spec='${wl}--export-all-symbols'
8877      allow_undefined_flag=unsupported
8878      always_export_symbols=no
8879      enable_shared_with_static_runtimes=yes
8880      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'
8881      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8882
8883      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8884        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8885	# If the export-symbols file already is a .def file (1st line
8886	# is EXPORTS), use it as is; otherwise, prepend...
8887	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8888	  cp $export_symbols $output_objdir/$soname.def;
8889	else
8890	  echo EXPORTS > $output_objdir/$soname.def;
8891	  cat $export_symbols >> $output_objdir/$soname.def;
8892	fi~
8893	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8894      else
8895	ld_shlibs=no
8896      fi
8897      ;;
8898
8899    haiku*)
8900      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901      link_all_deplibs=yes
8902      ;;
8903
8904    interix[3-9]*)
8905      hardcode_direct=no
8906      hardcode_shlibpath_var=no
8907      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8908      export_dynamic_flag_spec='${wl}-E'
8909      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8910      # Instead, shared libraries are loaded at an image base (0x10000000 by
8911      # default) and relocated if they conflict, which is a slow very memory
8912      # consuming and fragmenting process.  To avoid this, we pick a random,
8913      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8914      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8915      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8916      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'
8917      ;;
8918
8919    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8920      tmp_diet=no
8921      if test "$host_os" = linux-dietlibc; then
8922	case $cc_basename in
8923	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8924	esac
8925      fi
8926      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8927	 && test "$tmp_diet" = no
8928      then
8929	tmp_addflag=' $pic_flag'
8930	tmp_sharedflag='-shared'
8931	case $cc_basename,$host_cpu in
8932        pgcc*)				# Portland Group C compiler
8933	  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'
8934	  tmp_addflag=' $pic_flag'
8935	  ;;
8936	pgf77* | pgf90* | pgf95* | pgfortran*)
8937					# Portland Group f77 and f90 compilers
8938	  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'
8939	  tmp_addflag=' $pic_flag -Mnomain' ;;
8940	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8941	  tmp_addflag=' -i_dynamic' ;;
8942	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8943	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8944	ifc* | ifort*)			# Intel Fortran compiler
8945	  tmp_addflag=' -nofor_main' ;;
8946	lf95*)				# Lahey Fortran 8.1
8947	  whole_archive_flag_spec=
8948	  tmp_sharedflag='--shared' ;;
8949	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8950	  tmp_sharedflag='-qmkshrobj'
8951	  tmp_addflag= ;;
8952	nvcc*)	# Cuda Compiler Driver 2.2
8953	  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'
8954	  compiler_needs_object=yes
8955	  ;;
8956	esac
8957	case `$CC -V 2>&1 | sed 5q` in
8958	*Sun\ C*)			# Sun C 5.9
8959	  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'
8960	  compiler_needs_object=yes
8961	  tmp_sharedflag='-G' ;;
8962	*Sun\ F*)			# Sun Fortran 8.3
8963	  tmp_sharedflag='-G' ;;
8964	esac
8965	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966
8967        if test "x$supports_anon_versioning" = xyes; then
8968          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8969	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8970	    echo "local: *; };" >> $output_objdir/$libname.ver~
8971	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8972        fi
8973
8974	case $cc_basename in
8975	xlf* | bgf* | bgxlf* | mpixlf*)
8976	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8977	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8978	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8980	  if test "x$supports_anon_versioning" = xyes; then
8981	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8982	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8983	      echo "local: *; };" >> $output_objdir/$libname.ver~
8984	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8985	  fi
8986	  ;;
8987	esac
8988      else
8989        ld_shlibs=no
8990      fi
8991      ;;
8992
8993    netbsd*)
8994      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8995	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8996	wlarc=
8997      else
8998	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8999	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9000      fi
9001      ;;
9002
9003    solaris*)
9004      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9005	ld_shlibs=no
9006	cat <<_LT_EOF 1>&2
9007
9008*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9009*** create shared libraries on Solaris systems.  Therefore, libtool
9010*** is disabling shared libraries support.  We urge you to upgrade GNU
9011*** binutils to release 2.9.1 or newer.  Another option is to modify
9012*** your PATH or compiler configuration so that the native linker is
9013*** used, and then restart.
9014
9015_LT_EOF
9016      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9017	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9019      else
9020	ld_shlibs=no
9021      fi
9022      ;;
9023
9024    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9025      case `$LD -v 2>&1` in
9026        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9027	ld_shlibs=no
9028	cat <<_LT_EOF 1>&2
9029
9030*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9031*** reliably create shared libraries on SCO systems.  Therefore, libtool
9032*** is disabling shared libraries support.  We urge you to upgrade GNU
9033*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9034*** your PATH or compiler configuration so that the native linker is
9035*** used, and then restart.
9036
9037_LT_EOF
9038	;;
9039	*)
9040	  # For security reasons, it is highly recommended that you always
9041	  # use absolute paths for naming shared libraries, and exclude the
9042	  # DT_RUNPATH tag from executables and libraries.  But doing so
9043	  # requires that you compile everything twice, which is a pain.
9044	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9045	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9046	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9048	  else
9049	    ld_shlibs=no
9050	  fi
9051	;;
9052      esac
9053      ;;
9054
9055    sunos4*)
9056      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9057      wlarc=
9058      hardcode_direct=yes
9059      hardcode_shlibpath_var=no
9060      ;;
9061
9062    *)
9063      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9064	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9066      else
9067	ld_shlibs=no
9068      fi
9069      ;;
9070    esac
9071
9072    if test "$ld_shlibs" = no; then
9073      runpath_var=
9074      hardcode_libdir_flag_spec=
9075      export_dynamic_flag_spec=
9076      whole_archive_flag_spec=
9077    fi
9078  else
9079    # PORTME fill in a description of your system's linker (not GNU ld)
9080    case $host_os in
9081    aix3*)
9082      allow_undefined_flag=unsupported
9083      always_export_symbols=yes
9084      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'
9085      # Note: this linker hardcodes the directories in LIBPATH if there
9086      # are no directories specified by -L.
9087      hardcode_minus_L=yes
9088      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9089	# Neither direct hardcoding nor static linking is supported with a
9090	# broken collect2.
9091	hardcode_direct=unsupported
9092      fi
9093      ;;
9094
9095    aix[4-9]*)
9096      if test "$host_cpu" = ia64; then
9097	# On IA64, the linker does run time linking by default, so we don't
9098	# have to do anything special.
9099	aix_use_runtimelinking=no
9100	exp_sym_flag='-Bexport'
9101	no_entry_flag=""
9102      else
9103	# If we're using GNU nm, then we don't want the "-C" option.
9104	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9105	# Also, AIX nm treats weak defined symbols like other global
9106	# defined symbols, whereas GNU nm marks them as "W".
9107	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9108	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9109	else
9110	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9111	fi
9112	aix_use_runtimelinking=no
9113
9114	# Test if we are trying to use run time linking or normal
9115	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9116	# need to do runtime linking.
9117	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9118	  for ld_flag in $LDFLAGS; do
9119	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9120	    aix_use_runtimelinking=yes
9121	    break
9122	  fi
9123	  done
9124	  ;;
9125	esac
9126
9127	exp_sym_flag='-bexport'
9128	no_entry_flag='-bnoentry'
9129      fi
9130
9131      # When large executables or shared objects are built, AIX ld can
9132      # have problems creating the table of contents.  If linking a library
9133      # or program results in "error TOC overflow" add -mminimal-toc to
9134      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9135      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9136
9137      archive_cmds=''
9138      hardcode_direct=yes
9139      hardcode_direct_absolute=yes
9140      hardcode_libdir_separator=':'
9141      link_all_deplibs=yes
9142      file_list_spec='${wl}-f,'
9143
9144      if test "$GCC" = yes; then
9145	case $host_os in aix4.[012]|aix4.[012].*)
9146	# We only want to do this on AIX 4.2 and lower, the check
9147	# below for broken collect2 doesn't work under 4.3+
9148	  collect2name=`${CC} -print-prog-name=collect2`
9149	  if test -f "$collect2name" &&
9150	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9151	  then
9152	  # We have reworked collect2
9153	  :
9154	  else
9155	  # We have old collect2
9156	  hardcode_direct=unsupported
9157	  # It fails to find uninstalled libraries when the uninstalled
9158	  # path is not listed in the libpath.  Setting hardcode_minus_L
9159	  # to unsupported forces relinking
9160	  hardcode_minus_L=yes
9161	  hardcode_libdir_flag_spec='-L$libdir'
9162	  hardcode_libdir_separator=
9163	  fi
9164	  ;;
9165	esac
9166	shared_flag='-shared'
9167	if test "$aix_use_runtimelinking" = yes; then
9168	  shared_flag="$shared_flag "'${wl}-G'
9169	fi
9170      else
9171	# not using gcc
9172	if test "$host_cpu" = ia64; then
9173	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9174	# chokes on -Wl,-G. The following line is correct:
9175	  shared_flag='-G'
9176	else
9177	  if test "$aix_use_runtimelinking" = yes; then
9178	    shared_flag='${wl}-G'
9179	  else
9180	    shared_flag='${wl}-bM:SRE'
9181	  fi
9182	fi
9183      fi
9184
9185      export_dynamic_flag_spec='${wl}-bexpall'
9186      # It seems that -bexpall does not export symbols beginning with
9187      # underscore (_), so it is better to generate a list of symbols to export.
9188      always_export_symbols=yes
9189      if test "$aix_use_runtimelinking" = yes; then
9190	# Warning - without using the other runtime loading flags (-brtl),
9191	# -berok will link without error, but may produce a broken library.
9192	allow_undefined_flag='-berok'
9193        # Determine the default libpath from the value encoded in an
9194        # empty executable.
9195        if test "${lt_cv_aix_libpath+set}" = set; then
9196  aix_libpath=$lt_cv_aix_libpath
9197else
9198  if ${lt_cv_aix_libpath_+:} false; then :
9199  $as_echo_n "(cached) " >&6
9200else
9201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202/* end confdefs.h.  */
9203
9204int
9205main ()
9206{
9207
9208  ;
9209  return 0;
9210}
9211_ACEOF
9212if ac_fn_c_try_link "$LINENO"; then :
9213
9214  lt_aix_libpath_sed='
9215      /Import File Strings/,/^$/ {
9216	  /^0/ {
9217	      s/^0  *\([^ ]*\) *$/\1/
9218	      p
9219	  }
9220      }'
9221  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222  # Check for a 64-bit object if we didn't find anything.
9223  if test -z "$lt_cv_aix_libpath_"; then
9224    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225  fi
9226fi
9227rm -f core conftest.err conftest.$ac_objext \
9228    conftest$ac_exeext conftest.$ac_ext
9229  if test -z "$lt_cv_aix_libpath_"; then
9230    lt_cv_aix_libpath_="/usr/lib:/lib"
9231  fi
9232
9233fi
9234
9235  aix_libpath=$lt_cv_aix_libpath_
9236fi
9237
9238        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9239        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9240      else
9241	if test "$host_cpu" = ia64; then
9242	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9243	  allow_undefined_flag="-z nodefs"
9244	  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"
9245	else
9246	 # Determine the default libpath from the value encoded in an
9247	 # empty executable.
9248	 if test "${lt_cv_aix_libpath+set}" = set; then
9249  aix_libpath=$lt_cv_aix_libpath
9250else
9251  if ${lt_cv_aix_libpath_+:} false; then :
9252  $as_echo_n "(cached) " >&6
9253else
9254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255/* end confdefs.h.  */
9256
9257int
9258main ()
9259{
9260
9261  ;
9262  return 0;
9263}
9264_ACEOF
9265if ac_fn_c_try_link "$LINENO"; then :
9266
9267  lt_aix_libpath_sed='
9268      /Import File Strings/,/^$/ {
9269	  /^0/ {
9270	      s/^0  *\([^ ]*\) *$/\1/
9271	      p
9272	  }
9273      }'
9274  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9275  # Check for a 64-bit object if we didn't find anything.
9276  if test -z "$lt_cv_aix_libpath_"; then
9277    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9278  fi
9279fi
9280rm -f core conftest.err conftest.$ac_objext \
9281    conftest$ac_exeext conftest.$ac_ext
9282  if test -z "$lt_cv_aix_libpath_"; then
9283    lt_cv_aix_libpath_="/usr/lib:/lib"
9284  fi
9285
9286fi
9287
9288  aix_libpath=$lt_cv_aix_libpath_
9289fi
9290
9291	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9292	  # Warning - without using the other run time loading flags,
9293	  # -berok will link without error, but may produce a broken library.
9294	  no_undefined_flag=' ${wl}-bernotok'
9295	  allow_undefined_flag=' ${wl}-berok'
9296	  if test "$with_gnu_ld" = yes; then
9297	    # We only use this code for GNU lds that support --whole-archive.
9298	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9299	  else
9300	    # Exported symbols can be pulled into shared objects from archives
9301	    whole_archive_flag_spec='$convenience'
9302	  fi
9303	  archive_cmds_need_lc=yes
9304	  # This is similar to how AIX traditionally builds its shared libraries.
9305	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9306	fi
9307      fi
9308      ;;
9309
9310    amigaos*)
9311      case $host_cpu in
9312      powerpc)
9313            # see comment about AmigaOS4 .so support
9314            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9315            archive_expsym_cmds=''
9316        ;;
9317      m68k)
9318            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)'
9319            hardcode_libdir_flag_spec='-L$libdir'
9320            hardcode_minus_L=yes
9321        ;;
9322      esac
9323      ;;
9324
9325    bsdi[45]*)
9326      export_dynamic_flag_spec=-rdynamic
9327      ;;
9328
9329    cygwin* | mingw* | pw32* | cegcc*)
9330      # When not using gcc, we currently assume that we are using
9331      # Microsoft Visual C++.
9332      # hardcode_libdir_flag_spec is actually meaningless, as there is
9333      # no search path for DLLs.
9334      case $cc_basename in
9335      cl*)
9336	# Native MSVC
9337	hardcode_libdir_flag_spec=' '
9338	allow_undefined_flag=unsupported
9339	always_export_symbols=yes
9340	file_list_spec='@'
9341	# Tell ltmain to make .lib files, not .a files.
9342	libext=lib
9343	# Tell ltmain to make .dll files, not .so files.
9344	shrext_cmds=".dll"
9345	# FIXME: Setting linknames here is a bad hack.
9346	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9347	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9348	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9349	  else
9350	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9351	  fi~
9352	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9353	  linknames='
9354	# The linker will not automatically build a static lib if we build a DLL.
9355	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9356	enable_shared_with_static_runtimes=yes
9357	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9358	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9359	# Don't use ranlib
9360	old_postinstall_cmds='chmod 644 $oldlib'
9361	postlink_cmds='lt_outputfile="@OUTPUT@"~
9362	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9363	  case $lt_outputfile in
9364	    *.exe|*.EXE) ;;
9365	    *)
9366	      lt_outputfile="$lt_outputfile.exe"
9367	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9368	      ;;
9369	  esac~
9370	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9371	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9372	    $RM "$lt_outputfile.manifest";
9373	  fi'
9374	;;
9375      *)
9376	# Assume MSVC wrapper
9377	hardcode_libdir_flag_spec=' '
9378	allow_undefined_flag=unsupported
9379	# Tell ltmain to make .lib files, not .a files.
9380	libext=lib
9381	# Tell ltmain to make .dll files, not .so files.
9382	shrext_cmds=".dll"
9383	# FIXME: Setting linknames here is a bad hack.
9384	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9385	# The linker will automatically build a .lib file if we build a DLL.
9386	old_archive_from_new_cmds='true'
9387	# FIXME: Should let the user specify the lib program.
9388	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9389	enable_shared_with_static_runtimes=yes
9390	;;
9391      esac
9392      ;;
9393
9394    darwin* | rhapsody*)
9395
9396
9397  archive_cmds_need_lc=no
9398  hardcode_direct=no
9399  hardcode_automatic=yes
9400  hardcode_shlibpath_var=unsupported
9401  if test "$lt_cv_ld_force_load" = "yes"; then
9402    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\"`'
9403
9404  else
9405    whole_archive_flag_spec=''
9406  fi
9407  link_all_deplibs=yes
9408  allow_undefined_flag="$_lt_dar_allow_undefined"
9409  case $cc_basename in
9410     ifort*) _lt_dar_can_shared=yes ;;
9411     *) _lt_dar_can_shared=$GCC ;;
9412  esac
9413  if test "$_lt_dar_can_shared" = "yes"; then
9414    output_verbose_link_cmd=func_echo_all
9415    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9416    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9417    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}"
9418    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}"
9419
9420  else
9421  ld_shlibs=no
9422  fi
9423
9424      ;;
9425
9426    dgux*)
9427      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428      hardcode_libdir_flag_spec='-L$libdir'
9429      hardcode_shlibpath_var=no
9430      ;;
9431
9432    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9433    # support.  Future versions do this automatically, but an explicit c++rt0.o
9434    # does not break anything, and helps significantly (at the cost of a little
9435    # extra space).
9436    freebsd2.2*)
9437      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9438      hardcode_libdir_flag_spec='-R$libdir'
9439      hardcode_direct=yes
9440      hardcode_shlibpath_var=no
9441      ;;
9442
9443    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9444    freebsd2.*)
9445      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9446      hardcode_direct=yes
9447      hardcode_minus_L=yes
9448      hardcode_shlibpath_var=no
9449      ;;
9450
9451    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9452    freebsd* | dragonfly*)
9453      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9454      hardcode_libdir_flag_spec='-R$libdir'
9455      hardcode_direct=yes
9456      hardcode_shlibpath_var=no
9457      ;;
9458
9459    hpux9*)
9460      if test "$GCC" = yes; then
9461	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9462      else
9463	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9464      fi
9465      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9466      hardcode_libdir_separator=:
9467      hardcode_direct=yes
9468
9469      # hardcode_minus_L: Not really in the search PATH,
9470      # but as the default location of the library.
9471      hardcode_minus_L=yes
9472      export_dynamic_flag_spec='${wl}-E'
9473      ;;
9474
9475    hpux10*)
9476      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9477	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9478      else
9479	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9480      fi
9481      if test "$with_gnu_ld" = no; then
9482	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9483	hardcode_libdir_separator=:
9484	hardcode_direct=yes
9485	hardcode_direct_absolute=yes
9486	export_dynamic_flag_spec='${wl}-E'
9487	# hardcode_minus_L: Not really in the search PATH,
9488	# but as the default location of the library.
9489	hardcode_minus_L=yes
9490      fi
9491      ;;
9492
9493    hpux11*)
9494      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9495	case $host_cpu in
9496	hppa*64*)
9497	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9498	  ;;
9499	ia64*)
9500	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9501	  ;;
9502	*)
9503	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9504	  ;;
9505	esac
9506      else
9507	case $host_cpu in
9508	hppa*64*)
9509	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9510	  ;;
9511	ia64*)
9512	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9513	  ;;
9514	*)
9515
9516	  # Older versions of the 11.00 compiler do not understand -b yet
9517	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9518	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9519$as_echo_n "checking if $CC understands -b... " >&6; }
9520if ${lt_cv_prog_compiler__b+:} false; then :
9521  $as_echo_n "(cached) " >&6
9522else
9523  lt_cv_prog_compiler__b=no
9524   save_LDFLAGS="$LDFLAGS"
9525   LDFLAGS="$LDFLAGS -b"
9526   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9527   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9528     # The linker can only warn and ignore the option if not recognized
9529     # So say no if there are warnings
9530     if test -s conftest.err; then
9531       # Append any errors to the config.log.
9532       cat conftest.err 1>&5
9533       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9534       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9535       if diff conftest.exp conftest.er2 >/dev/null; then
9536         lt_cv_prog_compiler__b=yes
9537       fi
9538     else
9539       lt_cv_prog_compiler__b=yes
9540     fi
9541   fi
9542   $RM -r conftest*
9543   LDFLAGS="$save_LDFLAGS"
9544
9545fi
9546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9547$as_echo "$lt_cv_prog_compiler__b" >&6; }
9548
9549if test x"$lt_cv_prog_compiler__b" = xyes; then
9550    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9551else
9552    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9553fi
9554
9555	  ;;
9556	esac
9557      fi
9558      if test "$with_gnu_ld" = no; then
9559	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9560	hardcode_libdir_separator=:
9561
9562	case $host_cpu in
9563	hppa*64*|ia64*)
9564	  hardcode_direct=no
9565	  hardcode_shlibpath_var=no
9566	  ;;
9567	*)
9568	  hardcode_direct=yes
9569	  hardcode_direct_absolute=yes
9570	  export_dynamic_flag_spec='${wl}-E'
9571
9572	  # hardcode_minus_L: Not really in the search PATH,
9573	  # but as the default location of the library.
9574	  hardcode_minus_L=yes
9575	  ;;
9576	esac
9577      fi
9578      ;;
9579
9580    irix5* | irix6* | nonstopux*)
9581      if test "$GCC" = yes; then
9582	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'
9583	# Try to use the -exported_symbol ld option, if it does not
9584	# work, assume that -exports_file does not work either and
9585	# implicitly export all symbols.
9586	# This should be the same for all languages, so no per-tag cache variable.
9587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9588$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9589if ${lt_cv_irix_exported_symbol+:} false; then :
9590  $as_echo_n "(cached) " >&6
9591else
9592  save_LDFLAGS="$LDFLAGS"
9593	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9594	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h.  */
9596int foo (void) { return 0; }
9597_ACEOF
9598if ac_fn_c_try_link "$LINENO"; then :
9599  lt_cv_irix_exported_symbol=yes
9600else
9601  lt_cv_irix_exported_symbol=no
9602fi
9603rm -f core conftest.err conftest.$ac_objext \
9604    conftest$ac_exeext conftest.$ac_ext
9605           LDFLAGS="$save_LDFLAGS"
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9608$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9609	if test "$lt_cv_irix_exported_symbol" = yes; then
9610          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'
9611	fi
9612      else
9613	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'
9614	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'
9615      fi
9616      archive_cmds_need_lc='no'
9617      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9618      hardcode_libdir_separator=:
9619      inherit_rpath=yes
9620      link_all_deplibs=yes
9621      ;;
9622
9623    netbsd*)
9624      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9625	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9626      else
9627	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9628      fi
9629      hardcode_libdir_flag_spec='-R$libdir'
9630      hardcode_direct=yes
9631      hardcode_shlibpath_var=no
9632      ;;
9633
9634    newsos6)
9635      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9636      hardcode_direct=yes
9637      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9638      hardcode_libdir_separator=:
9639      hardcode_shlibpath_var=no
9640      ;;
9641
9642    *nto* | *qnx*)
9643      ;;
9644
9645    openbsd*)
9646      if test -f /usr/libexec/ld.so; then
9647	hardcode_direct=yes
9648	hardcode_shlibpath_var=no
9649	hardcode_direct_absolute=yes
9650	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9651	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9652	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9653	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9654	  export_dynamic_flag_spec='${wl}-E'
9655	else
9656	  case $host_os in
9657	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9658	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9659	     hardcode_libdir_flag_spec='-R$libdir'
9660	     ;;
9661	   *)
9662	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9663	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9664	     ;;
9665	  esac
9666	fi
9667      else
9668	ld_shlibs=no
9669      fi
9670      ;;
9671
9672    os2*)
9673      hardcode_libdir_flag_spec='-L$libdir'
9674      hardcode_minus_L=yes
9675      allow_undefined_flag=unsupported
9676      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9677      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9678      ;;
9679
9680    osf3*)
9681      if test "$GCC" = yes; then
9682	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9683	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'
9684      else
9685	allow_undefined_flag=' -expect_unresolved \*'
9686	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'
9687      fi
9688      archive_cmds_need_lc='no'
9689      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9690      hardcode_libdir_separator=:
9691      ;;
9692
9693    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9694      if test "$GCC" = yes; then
9695	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9696	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'
9697	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9698      else
9699	allow_undefined_flag=' -expect_unresolved \*'
9700	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'
9701	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~
9702	$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'
9703
9704	# Both c and cxx compiler support -rpath directly
9705	hardcode_libdir_flag_spec='-rpath $libdir'
9706      fi
9707      archive_cmds_need_lc='no'
9708      hardcode_libdir_separator=:
9709      ;;
9710
9711    solaris*)
9712      no_undefined_flag=' -z defs'
9713      if test "$GCC" = yes; then
9714	wlarc='${wl}'
9715	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9716	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9717	  $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'
9718      else
9719	case `$CC -V 2>&1` in
9720	*"Compilers 5.0"*)
9721	  wlarc=''
9722	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9724	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9725	  ;;
9726	*)
9727	  wlarc='${wl}'
9728	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9729	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9730	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9731	  ;;
9732	esac
9733      fi
9734      hardcode_libdir_flag_spec='-R$libdir'
9735      hardcode_shlibpath_var=no
9736      case $host_os in
9737      solaris2.[0-5] | solaris2.[0-5].*) ;;
9738      *)
9739	# The compiler driver will combine and reorder linker options,
9740	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9741	# but is careful enough not to reorder.
9742	# Supported since Solaris 2.6 (maybe 2.5.1?)
9743	if test "$GCC" = yes; then
9744	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9745	else
9746	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9747	fi
9748	;;
9749      esac
9750      link_all_deplibs=yes
9751      ;;
9752
9753    sunos4*)
9754      if test "x$host_vendor" = xsequent; then
9755	# Use $CC to link under sequent, because it throws in some extra .o
9756	# files that make .init and .fini sections work.
9757	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9758      else
9759	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9760      fi
9761      hardcode_libdir_flag_spec='-L$libdir'
9762      hardcode_direct=yes
9763      hardcode_minus_L=yes
9764      hardcode_shlibpath_var=no
9765      ;;
9766
9767    sysv4)
9768      case $host_vendor in
9769	sni)
9770	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771	  hardcode_direct=yes # is this really true???
9772	;;
9773	siemens)
9774	  ## LD is ld it makes a PLAMLIB
9775	  ## CC just makes a GrossModule.
9776	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9777	  reload_cmds='$CC -r -o $output$reload_objs'
9778	  hardcode_direct=no
9779        ;;
9780	motorola)
9781	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9783	;;
9784      esac
9785      runpath_var='LD_RUN_PATH'
9786      hardcode_shlibpath_var=no
9787      ;;
9788
9789    sysv4.3*)
9790      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791      hardcode_shlibpath_var=no
9792      export_dynamic_flag_spec='-Bexport'
9793      ;;
9794
9795    sysv4*MP*)
9796      if test -d /usr/nec; then
9797	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798	hardcode_shlibpath_var=no
9799	runpath_var=LD_RUN_PATH
9800	hardcode_runpath_var=yes
9801	ld_shlibs=yes
9802      fi
9803      ;;
9804
9805    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9806      no_undefined_flag='${wl}-z,text'
9807      archive_cmds_need_lc=no
9808      hardcode_shlibpath_var=no
9809      runpath_var='LD_RUN_PATH'
9810
9811      if test "$GCC" = yes; then
9812	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814      else
9815	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817      fi
9818      ;;
9819
9820    sysv5* | sco3.2v5* | sco5v6*)
9821      # Note: We can NOT use -z defs as we might desire, because we do not
9822      # link with -lc, and that would cause any symbols used from libc to
9823      # always be unresolved, which means just about no library would
9824      # ever link correctly.  If we're not using GNU ld we use -z text
9825      # though, which does catch some bad symbols but isn't as heavy-handed
9826      # as -z defs.
9827      no_undefined_flag='${wl}-z,text'
9828      allow_undefined_flag='${wl}-z,nodefs'
9829      archive_cmds_need_lc=no
9830      hardcode_shlibpath_var=no
9831      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9832      hardcode_libdir_separator=':'
9833      link_all_deplibs=yes
9834      export_dynamic_flag_spec='${wl}-Bexport'
9835      runpath_var='LD_RUN_PATH'
9836
9837      if test "$GCC" = yes; then
9838	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840      else
9841	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843      fi
9844      ;;
9845
9846    uts4*)
9847      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848      hardcode_libdir_flag_spec='-L$libdir'
9849      hardcode_shlibpath_var=no
9850      ;;
9851
9852    *)
9853      ld_shlibs=no
9854      ;;
9855    esac
9856
9857    if test x$host_vendor = xsni; then
9858      case $host in
9859      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9860	export_dynamic_flag_spec='${wl}-Blargedynsym'
9861	;;
9862      esac
9863    fi
9864  fi
9865
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9867$as_echo "$ld_shlibs" >&6; }
9868test "$ld_shlibs" = no && can_build_shared=no
9869
9870with_gnu_ld=$with_gnu_ld
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886#
9887# Do we need to explicitly link libc?
9888#
9889case "x$archive_cmds_need_lc" in
9890x|xyes)
9891  # Assume -lc should be added
9892  archive_cmds_need_lc=yes
9893
9894  if test "$enable_shared" = yes && test "$GCC" = yes; then
9895    case $archive_cmds in
9896    *'~'*)
9897      # FIXME: we may have to deal with multi-command sequences.
9898      ;;
9899    '$CC '*)
9900      # Test whether the compiler implicitly links with -lc since on some
9901      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9902      # to ld, don't add -lc before -lgcc.
9903      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9904$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9905if ${lt_cv_archive_cmds_need_lc+:} false; then :
9906  $as_echo_n "(cached) " >&6
9907else
9908  $RM conftest*
9909	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9910
9911	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9912  (eval $ac_compile) 2>&5
9913  ac_status=$?
9914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9915  test $ac_status = 0; } 2>conftest.err; then
9916	  soname=conftest
9917	  lib=conftest
9918	  libobjs=conftest.$ac_objext
9919	  deplibs=
9920	  wl=$lt_prog_compiler_wl
9921	  pic_flag=$lt_prog_compiler_pic
9922	  compiler_flags=-v
9923	  linker_flags=-v
9924	  verstring=
9925	  output_objdir=.
9926	  libname=conftest
9927	  lt_save_allow_undefined_flag=$allow_undefined_flag
9928	  allow_undefined_flag=
9929	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9930  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9931  ac_status=$?
9932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933  test $ac_status = 0; }
9934	  then
9935	    lt_cv_archive_cmds_need_lc=no
9936	  else
9937	    lt_cv_archive_cmds_need_lc=yes
9938	  fi
9939	  allow_undefined_flag=$lt_save_allow_undefined_flag
9940	else
9941	  cat conftest.err 1>&5
9942	fi
9943	$RM conftest*
9944
9945fi
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9947$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9948      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9949      ;;
9950    esac
9951  fi
9952  ;;
9953esac
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10107$as_echo_n "checking dynamic linker characteristics... " >&6; }
10108
10109if test "$GCC" = yes; then
10110  case $host_os in
10111    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10112    *) lt_awk_arg="/^libraries:/" ;;
10113  esac
10114  case $host_os in
10115    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10116    *) lt_sed_strip_eq="s,=/,/,g" ;;
10117  esac
10118  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10119  case $lt_search_path_spec in
10120  *\;*)
10121    # if the path contains ";" then we assume it to be the separator
10122    # otherwise default to the standard path separator (i.e. ":") - it is
10123    # assumed that no part of a normal pathname contains ";" but that should
10124    # okay in the real world where ";" in dirpaths is itself problematic.
10125    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10126    ;;
10127  *)
10128    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10129    ;;
10130  esac
10131  # Ok, now we have the path, separated by spaces, we can step through it
10132  # and add multilib dir if necessary.
10133  lt_tmp_lt_search_path_spec=
10134  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10135  for lt_sys_path in $lt_search_path_spec; do
10136    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10137      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10138    else
10139      test -d "$lt_sys_path" && \
10140	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10141    fi
10142  done
10143  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10144BEGIN {RS=" "; FS="/|\n";} {
10145  lt_foo="";
10146  lt_count=0;
10147  for (lt_i = NF; lt_i > 0; lt_i--) {
10148    if ($lt_i != "" && $lt_i != ".") {
10149      if ($lt_i == "..") {
10150        lt_count++;
10151      } else {
10152        if (lt_count == 0) {
10153          lt_foo="/" $lt_i lt_foo;
10154        } else {
10155          lt_count--;
10156        }
10157      }
10158    }
10159  }
10160  if (lt_foo != "") { lt_freq[lt_foo]++; }
10161  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10162}'`
10163  # AWK program above erroneously prepends '/' to C:/dos/paths
10164  # for these hosts.
10165  case $host_os in
10166    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10167      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10168  esac
10169  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10170else
10171  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10172fi
10173library_names_spec=
10174libname_spec='lib$name'
10175soname_spec=
10176shrext_cmds=".so"
10177postinstall_cmds=
10178postuninstall_cmds=
10179finish_cmds=
10180finish_eval=
10181shlibpath_var=
10182shlibpath_overrides_runpath=unknown
10183version_type=none
10184dynamic_linker="$host_os ld.so"
10185sys_lib_dlsearch_path_spec="/lib /usr/lib"
10186need_lib_prefix=unknown
10187hardcode_into_libs=no
10188
10189# when you set need_version to no, make sure it does not cause -set_version
10190# flags to be left without arguments
10191need_version=unknown
10192
10193case $host_os in
10194aix3*)
10195  version_type=linux # correct to gnu/linux during the next big refactor
10196  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10197  shlibpath_var=LIBPATH
10198
10199  # AIX 3 has no versioning support, so we append a major version to the name.
10200  soname_spec='${libname}${release}${shared_ext}$major'
10201  ;;
10202
10203aix[4-9]*)
10204  version_type=linux # correct to gnu/linux during the next big refactor
10205  need_lib_prefix=no
10206  need_version=no
10207  hardcode_into_libs=yes
10208  if test "$host_cpu" = ia64; then
10209    # AIX 5 supports IA64
10210    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10211    shlibpath_var=LD_LIBRARY_PATH
10212  else
10213    # With GCC up to 2.95.x, collect2 would create an import file
10214    # for dependence libraries.  The import file would start with
10215    # the line `#! .'.  This would cause the generated library to
10216    # depend on `.', always an invalid library.  This was fixed in
10217    # development snapshots of GCC prior to 3.0.
10218    case $host_os in
10219      aix4 | aix4.[01] | aix4.[01].*)
10220      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10221	   echo ' yes '
10222	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10223	:
10224      else
10225	can_build_shared=no
10226      fi
10227      ;;
10228    esac
10229    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10230    # soname into executable. Probably we can add versioning support to
10231    # collect2, so additional links can be useful in future.
10232    if test "$aix_use_runtimelinking" = yes; then
10233      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10234      # instead of lib<name>.a to let people know that these are not
10235      # typical AIX shared libraries.
10236      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237    else
10238      # We preserve .a as extension for shared libraries through AIX4.2
10239      # and later when we are not doing run time linking.
10240      library_names_spec='${libname}${release}.a $libname.a'
10241      soname_spec='${libname}${release}${shared_ext}$major'
10242    fi
10243    shlibpath_var=LIBPATH
10244  fi
10245  ;;
10246
10247amigaos*)
10248  case $host_cpu in
10249  powerpc)
10250    # Since July 2007 AmigaOS4 officially supports .so libraries.
10251    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10252    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253    ;;
10254  m68k)
10255    library_names_spec='$libname.ixlibrary $libname.a'
10256    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10257    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10258    ;;
10259  esac
10260  ;;
10261
10262beos*)
10263  library_names_spec='${libname}${shared_ext}'
10264  dynamic_linker="$host_os ld.so"
10265  shlibpath_var=LIBRARY_PATH
10266  ;;
10267
10268bsdi[45]*)
10269  version_type=linux # correct to gnu/linux during the next big refactor
10270  need_version=no
10271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272  soname_spec='${libname}${release}${shared_ext}$major'
10273  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10274  shlibpath_var=LD_LIBRARY_PATH
10275  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10276  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10277  # the default ld.so.conf also contains /usr/contrib/lib and
10278  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10279  # libtool to hard-code these into programs
10280  ;;
10281
10282cygwin* | mingw* | pw32* | cegcc*)
10283  version_type=windows
10284  shrext_cmds=".dll"
10285  need_version=no
10286  need_lib_prefix=no
10287
10288  case $GCC,$cc_basename in
10289  yes,*)
10290    # gcc
10291    library_names_spec='$libname.dll.a'
10292    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10293    postinstall_cmds='base_file=`basename \${file}`~
10294      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10295      dldir=$destdir/`dirname \$dlpath`~
10296      test -d \$dldir || mkdir -p \$dldir~
10297      $install_prog $dir/$dlname \$dldir/$dlname~
10298      chmod a+x \$dldir/$dlname~
10299      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10300        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10301      fi'
10302    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10303      dlpath=$dir/\$dldll~
10304       $RM \$dlpath'
10305    shlibpath_overrides_runpath=yes
10306
10307    case $host_os in
10308    cygwin*)
10309      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10310      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10311
10312      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10313      ;;
10314    mingw* | cegcc*)
10315      # MinGW DLLs use traditional 'lib' prefix
10316      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10317      ;;
10318    pw32*)
10319      # pw32 DLLs use 'pw' prefix rather than 'lib'
10320      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10321      ;;
10322    esac
10323    dynamic_linker='Win32 ld.exe'
10324    ;;
10325
10326  *,cl*)
10327    # Native MSVC
10328    libname_spec='$name'
10329    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10330    library_names_spec='${libname}.dll.lib'
10331
10332    case $build_os in
10333    mingw*)
10334      sys_lib_search_path_spec=
10335      lt_save_ifs=$IFS
10336      IFS=';'
10337      for lt_path in $LIB
10338      do
10339        IFS=$lt_save_ifs
10340        # Let DOS variable expansion print the short 8.3 style file name.
10341        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10342        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10343      done
10344      IFS=$lt_save_ifs
10345      # Convert to MSYS style.
10346      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10347      ;;
10348    cygwin*)
10349      # Convert to unix form, then to dos form, then back to unix form
10350      # but this time dos style (no spaces!) so that the unix form looks
10351      # like /cygdrive/c/PROGRA~1:/cygdr...
10352      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10353      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10354      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10355      ;;
10356    *)
10357      sys_lib_search_path_spec="$LIB"
10358      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10359        # It is most probably a Windows format PATH.
10360        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10361      else
10362        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10363      fi
10364      # FIXME: find the short name or the path components, as spaces are
10365      # common. (e.g. "Program Files" -> "PROGRA~1")
10366      ;;
10367    esac
10368
10369    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10370    postinstall_cmds='base_file=`basename \${file}`~
10371      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10372      dldir=$destdir/`dirname \$dlpath`~
10373      test -d \$dldir || mkdir -p \$dldir~
10374      $install_prog $dir/$dlname \$dldir/$dlname'
10375    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10376      dlpath=$dir/\$dldll~
10377       $RM \$dlpath'
10378    shlibpath_overrides_runpath=yes
10379    dynamic_linker='Win32 link.exe'
10380    ;;
10381
10382  *)
10383    # Assume MSVC wrapper
10384    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10385    dynamic_linker='Win32 ld.exe'
10386    ;;
10387  esac
10388  # FIXME: first we should search . and the directory the executable is in
10389  shlibpath_var=PATH
10390  ;;
10391
10392darwin* | rhapsody*)
10393  dynamic_linker="$host_os dyld"
10394  version_type=darwin
10395  need_lib_prefix=no
10396  need_version=no
10397  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10398  soname_spec='${libname}${release}${major}$shared_ext'
10399  shlibpath_overrides_runpath=yes
10400  shlibpath_var=DYLD_LIBRARY_PATH
10401  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10402
10403  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10404  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10405  ;;
10406
10407dgux*)
10408  version_type=linux # correct to gnu/linux during the next big refactor
10409  need_lib_prefix=no
10410  need_version=no
10411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10412  soname_spec='${libname}${release}${shared_ext}$major'
10413  shlibpath_var=LD_LIBRARY_PATH
10414  ;;
10415
10416freebsd* | dragonfly*)
10417  # DragonFly does not have aout.  When/if they implement a new
10418  # versioning mechanism, adjust this.
10419  if test -x /usr/bin/objformat; then
10420    objformat=`/usr/bin/objformat`
10421  else
10422    case $host_os in
10423    freebsd[23].*) objformat=aout ;;
10424    *) objformat=elf ;;
10425    esac
10426  fi
10427  version_type=freebsd-$objformat
10428  case $version_type in
10429    freebsd-elf*)
10430      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10431      need_version=no
10432      need_lib_prefix=no
10433      ;;
10434    freebsd-*)
10435      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10436      need_version=yes
10437      ;;
10438  esac
10439  shlibpath_var=LD_LIBRARY_PATH
10440  case $host_os in
10441  freebsd2.*)
10442    shlibpath_overrides_runpath=yes
10443    ;;
10444  freebsd3.[01]* | freebsdelf3.[01]*)
10445    shlibpath_overrides_runpath=yes
10446    hardcode_into_libs=yes
10447    ;;
10448  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10449  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10450    shlibpath_overrides_runpath=no
10451    hardcode_into_libs=yes
10452    ;;
10453  *) # from 4.6 on, and DragonFly
10454    shlibpath_overrides_runpath=yes
10455    hardcode_into_libs=yes
10456    ;;
10457  esac
10458  ;;
10459
10460gnu*)
10461  version_type=linux # correct to gnu/linux during the next big refactor
10462  need_lib_prefix=no
10463  need_version=no
10464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10465  soname_spec='${libname}${release}${shared_ext}$major'
10466  shlibpath_var=LD_LIBRARY_PATH
10467  shlibpath_overrides_runpath=no
10468  hardcode_into_libs=yes
10469  ;;
10470
10471haiku*)
10472  version_type=linux # correct to gnu/linux during the next big refactor
10473  need_lib_prefix=no
10474  need_version=no
10475  dynamic_linker="$host_os runtime_loader"
10476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10477  soname_spec='${libname}${release}${shared_ext}$major'
10478  shlibpath_var=LIBRARY_PATH
10479  shlibpath_overrides_runpath=yes
10480  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10481  hardcode_into_libs=yes
10482  ;;
10483
10484hpux9* | hpux10* | hpux11*)
10485  # Give a soname corresponding to the major version so that dld.sl refuses to
10486  # link against other versions.
10487  version_type=sunos
10488  need_lib_prefix=no
10489  need_version=no
10490  case $host_cpu in
10491  ia64*)
10492    shrext_cmds='.so'
10493    hardcode_into_libs=yes
10494    dynamic_linker="$host_os dld.so"
10495    shlibpath_var=LD_LIBRARY_PATH
10496    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10497    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498    soname_spec='${libname}${release}${shared_ext}$major'
10499    if test "X$HPUX_IA64_MODE" = X32; then
10500      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10501    else
10502      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10503    fi
10504    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10505    ;;
10506  hppa*64*)
10507    shrext_cmds='.sl'
10508    hardcode_into_libs=yes
10509    dynamic_linker="$host_os dld.sl"
10510    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10511    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10512    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513    soname_spec='${libname}${release}${shared_ext}$major'
10514    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10515    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10516    ;;
10517  *)
10518    shrext_cmds='.sl'
10519    dynamic_linker="$host_os dld.sl"
10520    shlibpath_var=SHLIB_PATH
10521    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10522    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523    soname_spec='${libname}${release}${shared_ext}$major'
10524    ;;
10525  esac
10526  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10527  postinstall_cmds='chmod 555 $lib'
10528  # or fails outright, so override atomically:
10529  install_override_mode=555
10530  ;;
10531
10532interix[3-9]*)
10533  version_type=linux # correct to gnu/linux during the next big refactor
10534  need_lib_prefix=no
10535  need_version=no
10536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10537  soname_spec='${libname}${release}${shared_ext}$major'
10538  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10539  shlibpath_var=LD_LIBRARY_PATH
10540  shlibpath_overrides_runpath=no
10541  hardcode_into_libs=yes
10542  ;;
10543
10544irix5* | irix6* | nonstopux*)
10545  case $host_os in
10546    nonstopux*) version_type=nonstopux ;;
10547    *)
10548	if test "$lt_cv_prog_gnu_ld" = yes; then
10549		version_type=linux # correct to gnu/linux during the next big refactor
10550	else
10551		version_type=irix
10552	fi ;;
10553  esac
10554  need_lib_prefix=no
10555  need_version=no
10556  soname_spec='${libname}${release}${shared_ext}$major'
10557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10558  case $host_os in
10559  irix5* | nonstopux*)
10560    libsuff= shlibsuff=
10561    ;;
10562  *)
10563    case $LD in # libtool.m4 will add one of these switches to LD
10564    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10565      libsuff= shlibsuff= libmagic=32-bit;;
10566    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10567      libsuff=32 shlibsuff=N32 libmagic=N32;;
10568    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10569      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10570    *) libsuff= shlibsuff= libmagic=never-match;;
10571    esac
10572    ;;
10573  esac
10574  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10575  shlibpath_overrides_runpath=no
10576  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10577  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10578  hardcode_into_libs=yes
10579  ;;
10580
10581# No shared lib support for Linux oldld, aout, or coff.
10582linux*oldld* | linux*aout* | linux*coff*)
10583  dynamic_linker=no
10584  ;;
10585
10586# This must be glibc/ELF.
10587linux* | k*bsd*-gnu | kopensolaris*-gnu)
10588  version_type=linux # correct to gnu/linux during the next big refactor
10589  need_lib_prefix=no
10590  need_version=no
10591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592  soname_spec='${libname}${release}${shared_ext}$major'
10593  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10594  shlibpath_var=LD_LIBRARY_PATH
10595  shlibpath_overrides_runpath=no
10596
10597  # Some binutils ld are patched to set DT_RUNPATH
10598  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10599  $as_echo_n "(cached) " >&6
10600else
10601  lt_cv_shlibpath_overrides_runpath=no
10602    save_LDFLAGS=$LDFLAGS
10603    save_libdir=$libdir
10604    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10605	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10606    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608
10609int
10610main ()
10611{
10612
10613  ;
10614  return 0;
10615}
10616_ACEOF
10617if ac_fn_c_try_link "$LINENO"; then :
10618  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10619  lt_cv_shlibpath_overrides_runpath=yes
10620fi
10621fi
10622rm -f core conftest.err conftest.$ac_objext \
10623    conftest$ac_exeext conftest.$ac_ext
10624    LDFLAGS=$save_LDFLAGS
10625    libdir=$save_libdir
10626
10627fi
10628
10629  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10630
10631  # This implies no fast_install, which is unacceptable.
10632  # Some rework will be needed to allow for fast_install
10633  # before this can be enabled.
10634  hardcode_into_libs=yes
10635
10636  # Append ld.so.conf contents to the search path
10637  if test -f /etc/ld.so.conf; then
10638    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' ' '`
10639    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10640  fi
10641
10642  # We used to test for /lib/ld.so.1 and disable shared libraries on
10643  # powerpc, because MkLinux only supported shared libraries with the
10644  # GNU dynamic linker.  Since this was broken with cross compilers,
10645  # most powerpc-linux boxes support dynamic linking these days and
10646  # people can always --disable-shared, the test was removed, and we
10647  # assume the GNU/Linux dynamic linker is in use.
10648  dynamic_linker='GNU/Linux ld.so'
10649  ;;
10650
10651netbsd*)
10652  version_type=sunos
10653  need_lib_prefix=no
10654  need_version=no
10655  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10656    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10657    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10658    dynamic_linker='NetBSD (a.out) ld.so'
10659  else
10660    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10661    soname_spec='${libname}${release}${shared_ext}$major'
10662    dynamic_linker='NetBSD ld.elf_so'
10663  fi
10664  shlibpath_var=LD_LIBRARY_PATH
10665  shlibpath_overrides_runpath=yes
10666  hardcode_into_libs=yes
10667  ;;
10668
10669newsos6)
10670  version_type=linux # correct to gnu/linux during the next big refactor
10671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672  shlibpath_var=LD_LIBRARY_PATH
10673  shlibpath_overrides_runpath=yes
10674  ;;
10675
10676*nto* | *qnx*)
10677  version_type=qnx
10678  need_lib_prefix=no
10679  need_version=no
10680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681  soname_spec='${libname}${release}${shared_ext}$major'
10682  shlibpath_var=LD_LIBRARY_PATH
10683  shlibpath_overrides_runpath=no
10684  hardcode_into_libs=yes
10685  dynamic_linker='ldqnx.so'
10686  ;;
10687
10688openbsd*)
10689  version_type=sunos
10690  sys_lib_dlsearch_path_spec="/usr/lib"
10691  need_lib_prefix=no
10692  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10693  case $host_os in
10694    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10695    *)				need_version=no  ;;
10696  esac
10697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10698  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10699  shlibpath_var=LD_LIBRARY_PATH
10700  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10701    case $host_os in
10702      openbsd2.[89] | openbsd2.[89].*)
10703	shlibpath_overrides_runpath=no
10704	;;
10705      *)
10706	shlibpath_overrides_runpath=yes
10707	;;
10708      esac
10709  else
10710    shlibpath_overrides_runpath=yes
10711  fi
10712  ;;
10713
10714os2*)
10715  libname_spec='$name'
10716  shrext_cmds=".dll"
10717  need_lib_prefix=no
10718  library_names_spec='$libname${shared_ext} $libname.a'
10719  dynamic_linker='OS/2 ld.exe'
10720  shlibpath_var=LIBPATH
10721  ;;
10722
10723osf3* | osf4* | osf5*)
10724  version_type=osf
10725  need_lib_prefix=no
10726  need_version=no
10727  soname_spec='${libname}${release}${shared_ext}$major'
10728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729  shlibpath_var=LD_LIBRARY_PATH
10730  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10731  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10732  ;;
10733
10734rdos*)
10735  dynamic_linker=no
10736  ;;
10737
10738solaris*)
10739  version_type=linux # correct to gnu/linux during the next big refactor
10740  need_lib_prefix=no
10741  need_version=no
10742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743  soname_spec='${libname}${release}${shared_ext}$major'
10744  shlibpath_var=LD_LIBRARY_PATH
10745  shlibpath_overrides_runpath=yes
10746  hardcode_into_libs=yes
10747  # ldd complains unless libraries are executable
10748  postinstall_cmds='chmod +x $lib'
10749  ;;
10750
10751sunos4*)
10752  version_type=sunos
10753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10754  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10755  shlibpath_var=LD_LIBRARY_PATH
10756  shlibpath_overrides_runpath=yes
10757  if test "$with_gnu_ld" = yes; then
10758    need_lib_prefix=no
10759  fi
10760  need_version=yes
10761  ;;
10762
10763sysv4 | sysv4.3*)
10764  version_type=linux # correct to gnu/linux during the next big refactor
10765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766  soname_spec='${libname}${release}${shared_ext}$major'
10767  shlibpath_var=LD_LIBRARY_PATH
10768  case $host_vendor in
10769    sni)
10770      shlibpath_overrides_runpath=no
10771      need_lib_prefix=no
10772      runpath_var=LD_RUN_PATH
10773      ;;
10774    siemens)
10775      need_lib_prefix=no
10776      ;;
10777    motorola)
10778      need_lib_prefix=no
10779      need_version=no
10780      shlibpath_overrides_runpath=no
10781      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10782      ;;
10783  esac
10784  ;;
10785
10786sysv4*MP*)
10787  if test -d /usr/nec ;then
10788    version_type=linux # correct to gnu/linux during the next big refactor
10789    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10790    soname_spec='$libname${shared_ext}.$major'
10791    shlibpath_var=LD_LIBRARY_PATH
10792  fi
10793  ;;
10794
10795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10796  version_type=freebsd-elf
10797  need_lib_prefix=no
10798  need_version=no
10799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10800  soname_spec='${libname}${release}${shared_ext}$major'
10801  shlibpath_var=LD_LIBRARY_PATH
10802  shlibpath_overrides_runpath=yes
10803  hardcode_into_libs=yes
10804  if test "$with_gnu_ld" = yes; then
10805    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10806  else
10807    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10808    case $host_os in
10809      sco3.2v5*)
10810        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10811	;;
10812    esac
10813  fi
10814  sys_lib_dlsearch_path_spec='/usr/lib'
10815  ;;
10816
10817tpf*)
10818  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10819  version_type=linux # correct to gnu/linux during the next big refactor
10820  need_lib_prefix=no
10821  need_version=no
10822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823  shlibpath_var=LD_LIBRARY_PATH
10824  shlibpath_overrides_runpath=no
10825  hardcode_into_libs=yes
10826  ;;
10827
10828uts4*)
10829  version_type=linux # correct to gnu/linux during the next big refactor
10830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831  soname_spec='${libname}${release}${shared_ext}$major'
10832  shlibpath_var=LD_LIBRARY_PATH
10833  ;;
10834
10835*)
10836  dynamic_linker=no
10837  ;;
10838esac
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10840$as_echo "$dynamic_linker" >&6; }
10841test "$dynamic_linker" = no && can_build_shared=no
10842
10843variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10844if test "$GCC" = yes; then
10845  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10846fi
10847
10848if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10849  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10850fi
10851if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10852  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10853fi
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10947$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10948hardcode_action=
10949if test -n "$hardcode_libdir_flag_spec" ||
10950   test -n "$runpath_var" ||
10951   test "X$hardcode_automatic" = "Xyes" ; then
10952
10953  # We can hardcode non-existent directories.
10954  if test "$hardcode_direct" != no &&
10955     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10956     # have to relink, otherwise we might link with an installed library
10957     # when we should be linking with a yet-to-be-installed one
10958     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10959     test "$hardcode_minus_L" != no; then
10960    # Linking always hardcodes the temporary library directory.
10961    hardcode_action=relink
10962  else
10963    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10964    hardcode_action=immediate
10965  fi
10966else
10967  # We cannot hardcode anything, or else we can only hardcode existing
10968  # directories.
10969  hardcode_action=unsupported
10970fi
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10972$as_echo "$hardcode_action" >&6; }
10973
10974if test "$hardcode_action" = relink ||
10975   test "$inherit_rpath" = yes; then
10976  # Fast installation is not supported
10977  enable_fast_install=no
10978elif test "$shlibpath_overrides_runpath" = yes ||
10979     test "$enable_shared" = no; then
10980  # Fast installation is not necessary
10981  enable_fast_install=needless
10982fi
10983
10984
10985
10986
10987
10988
10989  if test "x$enable_dlopen" != xyes; then
10990  enable_dlopen=unknown
10991  enable_dlopen_self=unknown
10992  enable_dlopen_self_static=unknown
10993else
10994  lt_cv_dlopen=no
10995  lt_cv_dlopen_libs=
10996
10997  case $host_os in
10998  beos*)
10999    lt_cv_dlopen="load_add_on"
11000    lt_cv_dlopen_libs=
11001    lt_cv_dlopen_self=yes
11002    ;;
11003
11004  mingw* | pw32* | cegcc*)
11005    lt_cv_dlopen="LoadLibrary"
11006    lt_cv_dlopen_libs=
11007    ;;
11008
11009  cygwin*)
11010    lt_cv_dlopen="dlopen"
11011    lt_cv_dlopen_libs=
11012    ;;
11013
11014  darwin*)
11015  # if libdl is installed we need to link against it
11016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11017$as_echo_n "checking for dlopen in -ldl... " >&6; }
11018if ${ac_cv_lib_dl_dlopen+:} false; then :
11019  $as_echo_n "(cached) " >&6
11020else
11021  ac_check_lib_save_LIBS=$LIBS
11022LIBS="-ldl  $LIBS"
11023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024/* end confdefs.h.  */
11025
11026/* Override any GCC internal prototype to avoid an error.
11027   Use char because int might match the return type of a GCC
11028   builtin and then its argument prototype would still apply.  */
11029#ifdef __cplusplus
11030extern "C"
11031#endif
11032char dlopen ();
11033int
11034main ()
11035{
11036return dlopen ();
11037  ;
11038  return 0;
11039}
11040_ACEOF
11041if ac_fn_c_try_link "$LINENO"; then :
11042  ac_cv_lib_dl_dlopen=yes
11043else
11044  ac_cv_lib_dl_dlopen=no
11045fi
11046rm -f core conftest.err conftest.$ac_objext \
11047    conftest$ac_exeext conftest.$ac_ext
11048LIBS=$ac_check_lib_save_LIBS
11049fi
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11051$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11052if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11053  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11054else
11055
11056    lt_cv_dlopen="dyld"
11057    lt_cv_dlopen_libs=
11058    lt_cv_dlopen_self=yes
11059
11060fi
11061
11062    ;;
11063
11064  *)
11065    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11066if test "x$ac_cv_func_shl_load" = xyes; then :
11067  lt_cv_dlopen="shl_load"
11068else
11069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11070$as_echo_n "checking for shl_load in -ldld... " >&6; }
11071if ${ac_cv_lib_dld_shl_load+:} false; then :
11072  $as_echo_n "(cached) " >&6
11073else
11074  ac_check_lib_save_LIBS=$LIBS
11075LIBS="-ldld  $LIBS"
11076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077/* end confdefs.h.  */
11078
11079/* Override any GCC internal prototype to avoid an error.
11080   Use char because int might match the return type of a GCC
11081   builtin and then its argument prototype would still apply.  */
11082#ifdef __cplusplus
11083extern "C"
11084#endif
11085char shl_load ();
11086int
11087main ()
11088{
11089return shl_load ();
11090  ;
11091  return 0;
11092}
11093_ACEOF
11094if ac_fn_c_try_link "$LINENO"; then :
11095  ac_cv_lib_dld_shl_load=yes
11096else
11097  ac_cv_lib_dld_shl_load=no
11098fi
11099rm -f core conftest.err conftest.$ac_objext \
11100    conftest$ac_exeext conftest.$ac_ext
11101LIBS=$ac_check_lib_save_LIBS
11102fi
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11104$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11105if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11106  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11107else
11108  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11109if test "x$ac_cv_func_dlopen" = xyes; then :
11110  lt_cv_dlopen="dlopen"
11111else
11112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11113$as_echo_n "checking for dlopen in -ldl... " >&6; }
11114if ${ac_cv_lib_dl_dlopen+:} false; then :
11115  $as_echo_n "(cached) " >&6
11116else
11117  ac_check_lib_save_LIBS=$LIBS
11118LIBS="-ldl  $LIBS"
11119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120/* end confdefs.h.  */
11121
11122/* Override any GCC internal prototype to avoid an error.
11123   Use char because int might match the return type of a GCC
11124   builtin and then its argument prototype would still apply.  */
11125#ifdef __cplusplus
11126extern "C"
11127#endif
11128char dlopen ();
11129int
11130main ()
11131{
11132return dlopen ();
11133  ;
11134  return 0;
11135}
11136_ACEOF
11137if ac_fn_c_try_link "$LINENO"; then :
11138  ac_cv_lib_dl_dlopen=yes
11139else
11140  ac_cv_lib_dl_dlopen=no
11141fi
11142rm -f core conftest.err conftest.$ac_objext \
11143    conftest$ac_exeext conftest.$ac_ext
11144LIBS=$ac_check_lib_save_LIBS
11145fi
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11147$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11148if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11149  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11150else
11151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11152$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11153if ${ac_cv_lib_svld_dlopen+:} false; then :
11154  $as_echo_n "(cached) " >&6
11155else
11156  ac_check_lib_save_LIBS=$LIBS
11157LIBS="-lsvld  $LIBS"
11158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159/* end confdefs.h.  */
11160
11161/* Override any GCC internal prototype to avoid an error.
11162   Use char because int might match the return type of a GCC
11163   builtin and then its argument prototype would still apply.  */
11164#ifdef __cplusplus
11165extern "C"
11166#endif
11167char dlopen ();
11168int
11169main ()
11170{
11171return dlopen ();
11172  ;
11173  return 0;
11174}
11175_ACEOF
11176if ac_fn_c_try_link "$LINENO"; then :
11177  ac_cv_lib_svld_dlopen=yes
11178else
11179  ac_cv_lib_svld_dlopen=no
11180fi
11181rm -f core conftest.err conftest.$ac_objext \
11182    conftest$ac_exeext conftest.$ac_ext
11183LIBS=$ac_check_lib_save_LIBS
11184fi
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11186$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11187if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11188  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11189else
11190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11191$as_echo_n "checking for dld_link in -ldld... " >&6; }
11192if ${ac_cv_lib_dld_dld_link+:} false; then :
11193  $as_echo_n "(cached) " >&6
11194else
11195  ac_check_lib_save_LIBS=$LIBS
11196LIBS="-ldld  $LIBS"
11197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h.  */
11199
11200/* Override any GCC internal prototype to avoid an error.
11201   Use char because int might match the return type of a GCC
11202   builtin and then its argument prototype would still apply.  */
11203#ifdef __cplusplus
11204extern "C"
11205#endif
11206char dld_link ();
11207int
11208main ()
11209{
11210return dld_link ();
11211  ;
11212  return 0;
11213}
11214_ACEOF
11215if ac_fn_c_try_link "$LINENO"; then :
11216  ac_cv_lib_dld_dld_link=yes
11217else
11218  ac_cv_lib_dld_dld_link=no
11219fi
11220rm -f core conftest.err conftest.$ac_objext \
11221    conftest$ac_exeext conftest.$ac_ext
11222LIBS=$ac_check_lib_save_LIBS
11223fi
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11225$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11226if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11227  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11228fi
11229
11230
11231fi
11232
11233
11234fi
11235
11236
11237fi
11238
11239
11240fi
11241
11242
11243fi
11244
11245    ;;
11246  esac
11247
11248  if test "x$lt_cv_dlopen" != xno; then
11249    enable_dlopen=yes
11250  else
11251    enable_dlopen=no
11252  fi
11253
11254  case $lt_cv_dlopen in
11255  dlopen)
11256    save_CPPFLAGS="$CPPFLAGS"
11257    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11258
11259    save_LDFLAGS="$LDFLAGS"
11260    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11261
11262    save_LIBS="$LIBS"
11263    LIBS="$lt_cv_dlopen_libs $LIBS"
11264
11265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11266$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11267if ${lt_cv_dlopen_self+:} false; then :
11268  $as_echo_n "(cached) " >&6
11269else
11270  	  if test "$cross_compiling" = yes; then :
11271  lt_cv_dlopen_self=cross
11272else
11273  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11274  lt_status=$lt_dlunknown
11275  cat > conftest.$ac_ext <<_LT_EOF
11276#line $LINENO "configure"
11277#include "confdefs.h"
11278
11279#if HAVE_DLFCN_H
11280#include <dlfcn.h>
11281#endif
11282
11283#include <stdio.h>
11284
11285#ifdef RTLD_GLOBAL
11286#  define LT_DLGLOBAL		RTLD_GLOBAL
11287#else
11288#  ifdef DL_GLOBAL
11289#    define LT_DLGLOBAL		DL_GLOBAL
11290#  else
11291#    define LT_DLGLOBAL		0
11292#  endif
11293#endif
11294
11295/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11296   find out it does not work in some platform. */
11297#ifndef LT_DLLAZY_OR_NOW
11298#  ifdef RTLD_LAZY
11299#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11300#  else
11301#    ifdef DL_LAZY
11302#      define LT_DLLAZY_OR_NOW		DL_LAZY
11303#    else
11304#      ifdef RTLD_NOW
11305#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11306#      else
11307#        ifdef DL_NOW
11308#          define LT_DLLAZY_OR_NOW	DL_NOW
11309#        else
11310#          define LT_DLLAZY_OR_NOW	0
11311#        endif
11312#      endif
11313#    endif
11314#  endif
11315#endif
11316
11317/* When -fvisbility=hidden is used, assume the code has been annotated
11318   correspondingly for the symbols needed.  */
11319#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11320int fnord () __attribute__((visibility("default")));
11321#endif
11322
11323int fnord () { return 42; }
11324int main ()
11325{
11326  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11327  int status = $lt_dlunknown;
11328
11329  if (self)
11330    {
11331      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11332      else
11333        {
11334	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11335          else puts (dlerror ());
11336	}
11337      /* dlclose (self); */
11338    }
11339  else
11340    puts (dlerror ());
11341
11342  return status;
11343}
11344_LT_EOF
11345  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11346  (eval $ac_link) 2>&5
11347  ac_status=$?
11348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11349  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11350    (./conftest; exit; ) >&5 2>/dev/null
11351    lt_status=$?
11352    case x$lt_status in
11353      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11354      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11355      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11356    esac
11357  else :
11358    # compilation failed
11359    lt_cv_dlopen_self=no
11360  fi
11361fi
11362rm -fr conftest*
11363
11364
11365fi
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11367$as_echo "$lt_cv_dlopen_self" >&6; }
11368
11369    if test "x$lt_cv_dlopen_self" = xyes; then
11370      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11371      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11372$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11373if ${lt_cv_dlopen_self_static+:} false; then :
11374  $as_echo_n "(cached) " >&6
11375else
11376  	  if test "$cross_compiling" = yes; then :
11377  lt_cv_dlopen_self_static=cross
11378else
11379  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11380  lt_status=$lt_dlunknown
11381  cat > conftest.$ac_ext <<_LT_EOF
11382#line $LINENO "configure"
11383#include "confdefs.h"
11384
11385#if HAVE_DLFCN_H
11386#include <dlfcn.h>
11387#endif
11388
11389#include <stdio.h>
11390
11391#ifdef RTLD_GLOBAL
11392#  define LT_DLGLOBAL		RTLD_GLOBAL
11393#else
11394#  ifdef DL_GLOBAL
11395#    define LT_DLGLOBAL		DL_GLOBAL
11396#  else
11397#    define LT_DLGLOBAL		0
11398#  endif
11399#endif
11400
11401/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11402   find out it does not work in some platform. */
11403#ifndef LT_DLLAZY_OR_NOW
11404#  ifdef RTLD_LAZY
11405#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11406#  else
11407#    ifdef DL_LAZY
11408#      define LT_DLLAZY_OR_NOW		DL_LAZY
11409#    else
11410#      ifdef RTLD_NOW
11411#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11412#      else
11413#        ifdef DL_NOW
11414#          define LT_DLLAZY_OR_NOW	DL_NOW
11415#        else
11416#          define LT_DLLAZY_OR_NOW	0
11417#        endif
11418#      endif
11419#    endif
11420#  endif
11421#endif
11422
11423/* When -fvisbility=hidden is used, assume the code has been annotated
11424   correspondingly for the symbols needed.  */
11425#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11426int fnord () __attribute__((visibility("default")));
11427#endif
11428
11429int fnord () { return 42; }
11430int main ()
11431{
11432  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11433  int status = $lt_dlunknown;
11434
11435  if (self)
11436    {
11437      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11438      else
11439        {
11440	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11441          else puts (dlerror ());
11442	}
11443      /* dlclose (self); */
11444    }
11445  else
11446    puts (dlerror ());
11447
11448  return status;
11449}
11450_LT_EOF
11451  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11452  (eval $ac_link) 2>&5
11453  ac_status=$?
11454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11455  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11456    (./conftest; exit; ) >&5 2>/dev/null
11457    lt_status=$?
11458    case x$lt_status in
11459      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11460      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11461      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11462    esac
11463  else :
11464    # compilation failed
11465    lt_cv_dlopen_self_static=no
11466  fi
11467fi
11468rm -fr conftest*
11469
11470
11471fi
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11473$as_echo "$lt_cv_dlopen_self_static" >&6; }
11474    fi
11475
11476    CPPFLAGS="$save_CPPFLAGS"
11477    LDFLAGS="$save_LDFLAGS"
11478    LIBS="$save_LIBS"
11479    ;;
11480  esac
11481
11482  case $lt_cv_dlopen_self in
11483  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11484  *) enable_dlopen_self=unknown ;;
11485  esac
11486
11487  case $lt_cv_dlopen_self_static in
11488  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11489  *) enable_dlopen_self_static=unknown ;;
11490  esac
11491fi
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509striplib=
11510old_striplib=
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11512$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11513if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11514  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11515  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11517$as_echo "yes" >&6; }
11518else
11519# FIXME - insert some real tests, host_os isn't really good enough
11520  case $host_os in
11521  darwin*)
11522    if test -n "$STRIP" ; then
11523      striplib="$STRIP -x"
11524      old_striplib="$STRIP -S"
11525      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11526$as_echo "yes" >&6; }
11527    else
11528      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529$as_echo "no" >&6; }
11530    fi
11531    ;;
11532  *)
11533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
11535    ;;
11536  esac
11537fi
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550  # Report which library types will actually be built
11551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11552$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11554$as_echo "$can_build_shared" >&6; }
11555
11556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11557$as_echo_n "checking whether to build shared libraries... " >&6; }
11558  test "$can_build_shared" = "no" && enable_shared=no
11559
11560  # On AIX, shared libraries and static libraries use the same namespace, and
11561  # are all built from PIC.
11562  case $host_os in
11563  aix3*)
11564    test "$enable_shared" = yes && enable_static=no
11565    if test -n "$RANLIB"; then
11566      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11567      postinstall_cmds='$RANLIB $lib'
11568    fi
11569    ;;
11570
11571  aix[4-9]*)
11572    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11573      test "$enable_shared" = yes && enable_static=no
11574    fi
11575    ;;
11576  esac
11577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11578$as_echo "$enable_shared" >&6; }
11579
11580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11581$as_echo_n "checking whether to build static libraries... " >&6; }
11582  # Make sure either enable_shared or enable_static is yes.
11583  test "$enable_shared" = yes || enable_static=yes
11584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11585$as_echo "$enable_static" >&6; }
11586
11587
11588
11589
11590fi
11591ac_ext=c
11592ac_cpp='$CPP $CPPFLAGS'
11593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11595ac_compiler_gnu=$ac_cv_c_compiler_gnu
11596
11597CC="$lt_save_CC"
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613        ac_config_commands="$ac_config_commands libtool"
11614
11615
11616
11617
11618# Only expand once:
11619
11620
11621
11622# libtool -version-info
11623LT_VERSION=0:47:0
11624
11625
11626# Check whether --enable-silent-rules was given.
11627if test "${enable_silent_rules+set}" = set; then :
11628  enableval=$enable_silent_rules;
11629fi
11630
11631case $enable_silent_rules in # (((
11632  yes) AM_DEFAULT_VERBOSITY=0;;
11633   no) AM_DEFAULT_VERBOSITY=1;;
11634    *) AM_DEFAULT_VERBOSITY=0;;
11635esac
11636am_make=${MAKE-make}
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11638$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11639if ${am_cv_make_support_nested_variables+:} false; then :
11640  $as_echo_n "(cached) " >&6
11641else
11642  if $as_echo 'TRUE=$(BAR$(V))
11643BAR0=false
11644BAR1=true
11645V=1
11646am__doit:
11647	@$(TRUE)
11648.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11649  am_cv_make_support_nested_variables=yes
11650else
11651  am_cv_make_support_nested_variables=no
11652fi
11653fi
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11655$as_echo "$am_cv_make_support_nested_variables" >&6; }
11656if test $am_cv_make_support_nested_variables = yes; then
11657    AM_V='$(V)'
11658  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11659else
11660  AM_V=$AM_DEFAULT_VERBOSITY
11661  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11662fi
11663AM_BACKSLASH='\'
11664
11665
11666# Checks for programs.
11667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11668$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11669if ${ac_cv_prog_cc_c99+:} false; then :
11670  $as_echo_n "(cached) " >&6
11671else
11672  ac_cv_prog_cc_c99=no
11673ac_save_CC=$CC
11674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675/* end confdefs.h.  */
11676#include <stdarg.h>
11677#include <stdbool.h>
11678#include <stdlib.h>
11679#include <wchar.h>
11680#include <stdio.h>
11681
11682// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11683#define debug(...) fprintf (stderr, __VA_ARGS__)
11684#define showlist(...) puts (#__VA_ARGS__)
11685#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11686static void
11687test_varargs_macros (void)
11688{
11689  int x = 1234;
11690  int y = 5678;
11691  debug ("Flag");
11692  debug ("X = %d\n", x);
11693  showlist (The first, second, and third items.);
11694  report (x>y, "x is %d but y is %d", x, y);
11695}
11696
11697// Check long long types.
11698#define BIG64 18446744073709551615ull
11699#define BIG32 4294967295ul
11700#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11701#if !BIG_OK
11702  your preprocessor is broken;
11703#endif
11704#if BIG_OK
11705#else
11706  your preprocessor is broken;
11707#endif
11708static long long int bignum = -9223372036854775807LL;
11709static unsigned long long int ubignum = BIG64;
11710
11711struct incomplete_array
11712{
11713  int datasize;
11714  double data[];
11715};
11716
11717struct named_init {
11718  int number;
11719  const wchar_t *name;
11720  double average;
11721};
11722
11723typedef const char *ccp;
11724
11725static inline int
11726test_restrict (ccp restrict text)
11727{
11728  // See if C++-style comments work.
11729  // Iterate through items via the restricted pointer.
11730  // Also check for declarations in for loops.
11731  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11732    continue;
11733  return 0;
11734}
11735
11736// Check varargs and va_copy.
11737static void
11738test_varargs (const char *format, ...)
11739{
11740  va_list args;
11741  va_start (args, format);
11742  va_list args_copy;
11743  va_copy (args_copy, args);
11744
11745  const char *str;
11746  int number;
11747  float fnumber;
11748
11749  while (*format)
11750    {
11751      switch (*format++)
11752	{
11753	case 's': // string
11754	  str = va_arg (args_copy, const char *);
11755	  break;
11756	case 'd': // int
11757	  number = va_arg (args_copy, int);
11758	  break;
11759	case 'f': // float
11760	  fnumber = va_arg (args_copy, double);
11761	  break;
11762	default:
11763	  break;
11764	}
11765    }
11766  va_end (args_copy);
11767  va_end (args);
11768}
11769
11770int
11771main ()
11772{
11773
11774  // Check bool.
11775  _Bool success = false;
11776
11777  // Check restrict.
11778  if (test_restrict ("String literal") == 0)
11779    success = true;
11780  char *restrict newvar = "Another string";
11781
11782  // Check varargs.
11783  test_varargs ("s, d' f .", "string", 65, 34.234);
11784  test_varargs_macros ();
11785
11786  // Check flexible array members.
11787  struct incomplete_array *ia =
11788    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11789  ia->datasize = 10;
11790  for (int i = 0; i < ia->datasize; ++i)
11791    ia->data[i] = i * 1.234;
11792
11793  // Check named initializers.
11794  struct named_init ni = {
11795    .number = 34,
11796    .name = L"Test wide string",
11797    .average = 543.34343,
11798  };
11799
11800  ni.number = 58;
11801
11802  int dynamic_array[ni.number];
11803  dynamic_array[ni.number - 1] = 543;
11804
11805  // work around unused variable warnings
11806  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11807	  || dynamic_array[ni.number - 1] != 543);
11808
11809  ;
11810  return 0;
11811}
11812_ACEOF
11813for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11814do
11815  CC="$ac_save_CC $ac_arg"
11816  if ac_fn_c_try_compile "$LINENO"; then :
11817  ac_cv_prog_cc_c99=$ac_arg
11818fi
11819rm -f core conftest.err conftest.$ac_objext
11820  test "x$ac_cv_prog_cc_c99" != "xno" && break
11821done
11822rm -f conftest.$ac_ext
11823CC=$ac_save_CC
11824
11825fi
11826# AC_CACHE_VAL
11827case "x$ac_cv_prog_cc_c99" in
11828  x)
11829    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11830$as_echo "none needed" >&6; } ;;
11831  xno)
11832    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11833$as_echo "unsupported" >&6; } ;;
11834  *)
11835    CC="$CC $ac_cv_prog_cc_c99"
11836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11837$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11838esac
11839if test "x$ac_cv_prog_cc_c99" != xno; then :
11840
11841fi
11842
11843
11844#AC_PROG_CC
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11846$as_echo_n "checking whether ln -s works... " >&6; }
11847LN_S=$as_ln_s
11848if test "$LN_S" = "ln -s"; then
11849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11850$as_echo "yes" >&6; }
11851else
11852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11853$as_echo "no, using $LN_S" >&6; }
11854fi
11855
11856for ac_prog in gawk mawk nawk awk
11857do
11858  # Extract the first word of "$ac_prog", so it can be a program name with args.
11859set dummy $ac_prog; ac_word=$2
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861$as_echo_n "checking for $ac_word... " >&6; }
11862if ${ac_cv_prog_AWK+:} false; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  if test -n "$AWK"; then
11866  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11867else
11868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869for as_dir in $PATH
11870do
11871  IFS=$as_save_IFS
11872  test -z "$as_dir" && as_dir=.
11873    for ac_exec_ext in '' $ac_executable_extensions; do
11874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875    ac_cv_prog_AWK="$ac_prog"
11876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877    break 2
11878  fi
11879done
11880  done
11881IFS=$as_save_IFS
11882
11883fi
11884fi
11885AWK=$ac_cv_prog_AWK
11886if test -n "$AWK"; then
11887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11888$as_echo "$AWK" >&6; }
11889else
11890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
11892fi
11893
11894
11895  test -n "$AWK" && break
11896done
11897
11898
11899   MANTYPE=
11900   TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
11901   for ac_prog in nroff awf
11902do
11903  # Extract the first word of "$ac_prog", so it can be a program name with args.
11904set dummy $ac_prog; ac_word=$2
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906$as_echo_n "checking for $ac_word... " >&6; }
11907if ${ac_cv_path_NROFF+:} false; then :
11908  $as_echo_n "(cached) " >&6
11909else
11910  case $NROFF in
11911  [\\/]* | ?:[\\/]*)
11912  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
11913  ;;
11914  *)
11915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916for as_dir in $TestPath
11917do
11918  IFS=$as_save_IFS
11919  test -z "$as_dir" && as_dir=.
11920    for ac_exec_ext in '' $ac_executable_extensions; do
11921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11922    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
11923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924    break 2
11925  fi
11926done
11927  done
11928IFS=$as_save_IFS
11929
11930  ;;
11931esac
11932fi
11933NROFF=$ac_cv_path_NROFF
11934if test -n "$NROFF"; then
11935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
11936$as_echo "$NROFF" >&6; }
11937else
11938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
11940fi
11941
11942
11943  test -n "$NROFF" && break
11944done
11945test -n "$NROFF" || NROFF="/bin/false"
11946
11947   if ${NROFF} -mdoc ${srcdir}/doc/editrc.5.roff >/dev/null 2>&1; then
11948      MANTYPE=mdoc
11949   fi
11950
11951
11952
11953
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
11955$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
11956if ${ac_cv_lib_tinfo_tgetent+:} false; then :
11957  $as_echo_n "(cached) " >&6
11958else
11959  ac_check_lib_save_LIBS=$LIBS
11960LIBS="-ltinfo  $LIBS"
11961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962/* end confdefs.h.  */
11963
11964/* Override any GCC internal prototype to avoid an error.
11965   Use char because int might match the return type of a GCC
11966   builtin and then its argument prototype would still apply.  */
11967#ifdef __cplusplus
11968extern "C"
11969#endif
11970char tgetent ();
11971int
11972main ()
11973{
11974return tgetent ();
11975  ;
11976  return 0;
11977}
11978_ACEOF
11979if ac_fn_c_try_link "$LINENO"; then :
11980  ac_cv_lib_tinfo_tgetent=yes
11981else
11982  ac_cv_lib_tinfo_tgetent=no
11983fi
11984rm -f core conftest.err conftest.$ac_objext \
11985    conftest$ac_exeext conftest.$ac_ext
11986LIBS=$ac_check_lib_save_LIBS
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
11989$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
11990if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
11991  cat >>confdefs.h <<_ACEOF
11992#define HAVE_LIBTINFO 1
11993_ACEOF
11994
11995  LIBS="-ltinfo $LIBS"
11996
11997else
11998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lterminfo" >&5
11999$as_echo_n "checking for tgetent in -lterminfo... " >&6; }
12000if ${ac_cv_lib_terminfo_tgetent+:} false; then :
12001  $as_echo_n "(cached) " >&6
12002else
12003  ac_check_lib_save_LIBS=$LIBS
12004LIBS="-lterminfo  $LIBS"
12005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006/* end confdefs.h.  */
12007
12008/* Override any GCC internal prototype to avoid an error.
12009   Use char because int might match the return type of a GCC
12010   builtin and then its argument prototype would still apply.  */
12011#ifdef __cplusplus
12012extern "C"
12013#endif
12014char tgetent ();
12015int
12016main ()
12017{
12018return tgetent ();
12019  ;
12020  return 0;
12021}
12022_ACEOF
12023if ac_fn_c_try_link "$LINENO"; then :
12024  ac_cv_lib_terminfo_tgetent=yes
12025else
12026  ac_cv_lib_terminfo_tgetent=no
12027fi
12028rm -f core conftest.err conftest.$ac_objext \
12029    conftest$ac_exeext conftest.$ac_ext
12030LIBS=$ac_check_lib_save_LIBS
12031fi
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_terminfo_tgetent" >&5
12033$as_echo "$ac_cv_lib_terminfo_tgetent" >&6; }
12034if test "x$ac_cv_lib_terminfo_tgetent" = xyes; then :
12035  cat >>confdefs.h <<_ACEOF
12036#define HAVE_LIBTERMINFO 1
12037_ACEOF
12038
12039  LIBS="-lterminfo $LIBS"
12040
12041else
12042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
12043$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
12044if ${ac_cv_lib_termcap_tgetent+:} false; then :
12045  $as_echo_n "(cached) " >&6
12046else
12047  ac_check_lib_save_LIBS=$LIBS
12048LIBS="-ltermcap  $LIBS"
12049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050/* end confdefs.h.  */
12051
12052/* Override any GCC internal prototype to avoid an error.
12053   Use char because int might match the return type of a GCC
12054   builtin and then its argument prototype would still apply.  */
12055#ifdef __cplusplus
12056extern "C"
12057#endif
12058char tgetent ();
12059int
12060main ()
12061{
12062return tgetent ();
12063  ;
12064  return 0;
12065}
12066_ACEOF
12067if ac_fn_c_try_link "$LINENO"; then :
12068  ac_cv_lib_termcap_tgetent=yes
12069else
12070  ac_cv_lib_termcap_tgetent=no
12071fi
12072rm -f core conftest.err conftest.$ac_objext \
12073    conftest$ac_exeext conftest.$ac_ext
12074LIBS=$ac_check_lib_save_LIBS
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
12077$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
12078if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
12079  cat >>confdefs.h <<_ACEOF
12080#define HAVE_LIBTERMCAP 1
12081_ACEOF
12082
12083  LIBS="-ltermcap $LIBS"
12084
12085else
12086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
12087$as_echo_n "checking for tgetent in -ltermlib... " >&6; }
12088if ${ac_cv_lib_termlib_tgetent+:} false; then :
12089  $as_echo_n "(cached) " >&6
12090else
12091  ac_check_lib_save_LIBS=$LIBS
12092LIBS="-ltermlib  $LIBS"
12093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094/* end confdefs.h.  */
12095
12096/* Override any GCC internal prototype to avoid an error.
12097   Use char because int might match the return type of a GCC
12098   builtin and then its argument prototype would still apply.  */
12099#ifdef __cplusplus
12100extern "C"
12101#endif
12102char tgetent ();
12103int
12104main ()
12105{
12106return tgetent ();
12107  ;
12108  return 0;
12109}
12110_ACEOF
12111if ac_fn_c_try_link "$LINENO"; then :
12112  ac_cv_lib_termlib_tgetent=yes
12113else
12114  ac_cv_lib_termlib_tgetent=no
12115fi
12116rm -f core conftest.err conftest.$ac_objext \
12117    conftest$ac_exeext conftest.$ac_ext
12118LIBS=$ac_check_lib_save_LIBS
12119fi
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
12121$as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
12122if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
12123  cat >>confdefs.h <<_ACEOF
12124#define HAVE_LIBTERMLIB 1
12125_ACEOF
12126
12127  LIBS="-ltermlib $LIBS"
12128
12129else
12130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
12131$as_echo_n "checking for tgetent in -lcurses... " >&6; }
12132if ${ac_cv_lib_curses_tgetent+:} false; then :
12133  $as_echo_n "(cached) " >&6
12134else
12135  ac_check_lib_save_LIBS=$LIBS
12136LIBS="-lcurses  $LIBS"
12137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138/* end confdefs.h.  */
12139
12140/* Override any GCC internal prototype to avoid an error.
12141   Use char because int might match the return type of a GCC
12142   builtin and then its argument prototype would still apply.  */
12143#ifdef __cplusplus
12144extern "C"
12145#endif
12146char tgetent ();
12147int
12148main ()
12149{
12150return tgetent ();
12151  ;
12152  return 0;
12153}
12154_ACEOF
12155if ac_fn_c_try_link "$LINENO"; then :
12156  ac_cv_lib_curses_tgetent=yes
12157else
12158  ac_cv_lib_curses_tgetent=no
12159fi
12160rm -f core conftest.err conftest.$ac_objext \
12161    conftest$ac_exeext conftest.$ac_ext
12162LIBS=$ac_check_lib_save_LIBS
12163fi
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
12165$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
12166if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
12167  cat >>confdefs.h <<_ACEOF
12168#define HAVE_LIBCURSES 1
12169_ACEOF
12170
12171  LIBS="-lcurses $LIBS"
12172
12173else
12174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
12175$as_echo_n "checking for tgetent in -lncurses... " >&6; }
12176if ${ac_cv_lib_ncurses_tgetent+:} false; then :
12177  $as_echo_n "(cached) " >&6
12178else
12179  ac_check_lib_save_LIBS=$LIBS
12180LIBS="-lncurses  $LIBS"
12181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h.  */
12183
12184/* Override any GCC internal prototype to avoid an error.
12185   Use char because int might match the return type of a GCC
12186   builtin and then its argument prototype would still apply.  */
12187#ifdef __cplusplus
12188extern "C"
12189#endif
12190char tgetent ();
12191int
12192main ()
12193{
12194return tgetent ();
12195  ;
12196  return 0;
12197}
12198_ACEOF
12199if ac_fn_c_try_link "$LINENO"; then :
12200  ac_cv_lib_ncurses_tgetent=yes
12201else
12202  ac_cv_lib_ncurses_tgetent=no
12203fi
12204rm -f core conftest.err conftest.$ac_objext \
12205    conftest$ac_exeext conftest.$ac_ext
12206LIBS=$ac_check_lib_save_LIBS
12207fi
12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
12209$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
12210if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
12211  cat >>confdefs.h <<_ACEOF
12212#define HAVE_LIBNCURSES 1
12213_ACEOF
12214
12215  LIBS="-lncurses $LIBS"
12216
12217else
12218  as_fn_error $? "libcurses or libncurses are required!" "$LINENO" 5
12219
12220fi
12221
12222
12223fi
12224
12225
12226fi
12227
12228
12229fi
12230
12231
12232fi
12233
12234
12235fi
12236
12237
12238
12239### use option --enable-widec to turn on use of wide-character support
12240
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want wide-character code" >&5
12242$as_echo_n "checking if you want wide-character code... " >&6; }
12243   # Check whether --enable-widec was given.
12244if test "${enable_widec+set}" = set; then :
12245  enableval=$enable_widec; with_widec=$enableval
12246else
12247  with_widec=no
12248fi
12249
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_widec" >&5
12251$as_echo "$with_widec" >&6; }
12252   if test "$with_widec" = yes ; then
12253
12254$as_echo "#define WIDECHAR 1" >>confdefs.h
12255
12256   fi
12257    if test "$with_widec" = yes; then
12258  WIDECHAR_TRUE=
12259  WIDECHAR_FALSE='#'
12260else
12261  WIDECHAR_TRUE='#'
12262  WIDECHAR_FALSE=
12263fi
12264
12265
12266
12267# Checks for header files.
12268ac_header_dirent=no
12269for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12270  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12272$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12273if eval \${$as_ac_Header+:} false; then :
12274  $as_echo_n "(cached) " >&6
12275else
12276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277/* end confdefs.h.  */
12278#include <sys/types.h>
12279#include <$ac_hdr>
12280
12281int
12282main ()
12283{
12284if ((DIR *) 0)
12285return 0;
12286  ;
12287  return 0;
12288}
12289_ACEOF
12290if ac_fn_c_try_compile "$LINENO"; then :
12291  eval "$as_ac_Header=yes"
12292else
12293  eval "$as_ac_Header=no"
12294fi
12295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296fi
12297eval ac_res=\$$as_ac_Header
12298	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12299$as_echo "$ac_res" >&6; }
12300if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12301  cat >>confdefs.h <<_ACEOF
12302#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12303_ACEOF
12304
12305ac_header_dirent=$ac_hdr; break
12306fi
12307
12308done
12309# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12310if test $ac_header_dirent = dirent.h; then
12311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12312$as_echo_n "checking for library containing opendir... " >&6; }
12313if ${ac_cv_search_opendir+:} false; then :
12314  $as_echo_n "(cached) " >&6
12315else
12316  ac_func_search_save_LIBS=$LIBS
12317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318/* end confdefs.h.  */
12319
12320/* Override any GCC internal prototype to avoid an error.
12321   Use char because int might match the return type of a GCC
12322   builtin and then its argument prototype would still apply.  */
12323#ifdef __cplusplus
12324extern "C"
12325#endif
12326char opendir ();
12327int
12328main ()
12329{
12330return opendir ();
12331  ;
12332  return 0;
12333}
12334_ACEOF
12335for ac_lib in '' dir; do
12336  if test -z "$ac_lib"; then
12337    ac_res="none required"
12338  else
12339    ac_res=-l$ac_lib
12340    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12341  fi
12342  if ac_fn_c_try_link "$LINENO"; then :
12343  ac_cv_search_opendir=$ac_res
12344fi
12345rm -f core conftest.err conftest.$ac_objext \
12346    conftest$ac_exeext
12347  if ${ac_cv_search_opendir+:} false; then :
12348  break
12349fi
12350done
12351if ${ac_cv_search_opendir+:} false; then :
12352
12353else
12354  ac_cv_search_opendir=no
12355fi
12356rm conftest.$ac_ext
12357LIBS=$ac_func_search_save_LIBS
12358fi
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12360$as_echo "$ac_cv_search_opendir" >&6; }
12361ac_res=$ac_cv_search_opendir
12362if test "$ac_res" != no; then :
12363  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12364
12365fi
12366
12367else
12368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12369$as_echo_n "checking for library containing opendir... " >&6; }
12370if ${ac_cv_search_opendir+:} false; then :
12371  $as_echo_n "(cached) " >&6
12372else
12373  ac_func_search_save_LIBS=$LIBS
12374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375/* end confdefs.h.  */
12376
12377/* Override any GCC internal prototype to avoid an error.
12378   Use char because int might match the return type of a GCC
12379   builtin and then its argument prototype would still apply.  */
12380#ifdef __cplusplus
12381extern "C"
12382#endif
12383char opendir ();
12384int
12385main ()
12386{
12387return opendir ();
12388  ;
12389  return 0;
12390}
12391_ACEOF
12392for ac_lib in '' x; do
12393  if test -z "$ac_lib"; then
12394    ac_res="none required"
12395  else
12396    ac_res=-l$ac_lib
12397    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12398  fi
12399  if ac_fn_c_try_link "$LINENO"; then :
12400  ac_cv_search_opendir=$ac_res
12401fi
12402rm -f core conftest.err conftest.$ac_objext \
12403    conftest$ac_exeext
12404  if ${ac_cv_search_opendir+:} false; then :
12405  break
12406fi
12407done
12408if ${ac_cv_search_opendir+:} false; then :
12409
12410else
12411  ac_cv_search_opendir=no
12412fi
12413rm conftest.$ac_ext
12414LIBS=$ac_func_search_save_LIBS
12415fi
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12417$as_echo "$ac_cv_search_opendir" >&6; }
12418ac_res=$ac_cv_search_opendir
12419if test "$ac_res" != no; then :
12420  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12421
12422fi
12423
12424fi
12425
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12427$as_echo_n "checking for ANSI C header files... " >&6; }
12428if ${ac_cv_header_stdc+:} false; then :
12429  $as_echo_n "(cached) " >&6
12430else
12431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432/* end confdefs.h.  */
12433#include <stdlib.h>
12434#include <stdarg.h>
12435#include <string.h>
12436#include <float.h>
12437
12438int
12439main ()
12440{
12441
12442  ;
12443  return 0;
12444}
12445_ACEOF
12446if ac_fn_c_try_compile "$LINENO"; then :
12447  ac_cv_header_stdc=yes
12448else
12449  ac_cv_header_stdc=no
12450fi
12451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452
12453if test $ac_cv_header_stdc = yes; then
12454  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456/* end confdefs.h.  */
12457#include <string.h>
12458
12459_ACEOF
12460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12461  $EGREP "memchr" >/dev/null 2>&1; then :
12462
12463else
12464  ac_cv_header_stdc=no
12465fi
12466rm -f conftest*
12467
12468fi
12469
12470if test $ac_cv_header_stdc = yes; then
12471  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473/* end confdefs.h.  */
12474#include <stdlib.h>
12475
12476_ACEOF
12477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12478  $EGREP "free" >/dev/null 2>&1; then :
12479
12480else
12481  ac_cv_header_stdc=no
12482fi
12483rm -f conftest*
12484
12485fi
12486
12487if test $ac_cv_header_stdc = yes; then
12488  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12489  if test "$cross_compiling" = yes; then :
12490  :
12491else
12492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493/* end confdefs.h.  */
12494#include <ctype.h>
12495#include <stdlib.h>
12496#if ((' ' & 0x0FF) == 0x020)
12497# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12498# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12499#else
12500# define ISLOWER(c) \
12501		   (('a' <= (c) && (c) <= 'i') \
12502		     || ('j' <= (c) && (c) <= 'r') \
12503		     || ('s' <= (c) && (c) <= 'z'))
12504# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12505#endif
12506
12507#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12508int
12509main ()
12510{
12511  int i;
12512  for (i = 0; i < 256; i++)
12513    if (XOR (islower (i), ISLOWER (i))
12514	|| toupper (i) != TOUPPER (i))
12515      return 2;
12516  return 0;
12517}
12518_ACEOF
12519if ac_fn_c_try_run "$LINENO"; then :
12520
12521else
12522  ac_cv_header_stdc=no
12523fi
12524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12525  conftest.$ac_objext conftest.beam conftest.$ac_ext
12526fi
12527
12528fi
12529fi
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12531$as_echo "$ac_cv_header_stdc" >&6; }
12532if test $ac_cv_header_stdc = yes; then
12533
12534$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12535
12536fi
12537
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12539$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12540if ${ac_cv_header_sys_wait_h+:} false; then :
12541  $as_echo_n "(cached) " >&6
12542else
12543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544/* end confdefs.h.  */
12545#include <sys/types.h>
12546#include <sys/wait.h>
12547#ifndef WEXITSTATUS
12548# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12549#endif
12550#ifndef WIFEXITED
12551# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12552#endif
12553
12554int
12555main ()
12556{
12557  int s;
12558  wait (&s);
12559  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12560  ;
12561  return 0;
12562}
12563_ACEOF
12564if ac_fn_c_try_compile "$LINENO"; then :
12565  ac_cv_header_sys_wait_h=yes
12566else
12567  ac_cv_header_sys_wait_h=no
12568fi
12569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570fi
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12572$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12573if test $ac_cv_header_sys_wait_h = yes; then
12574
12575$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12576
12577fi
12578
12579for ac_header in fcntl.h limits.h malloc.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h curses.h ncurses.h sys/cdefs.h termcap.h
12580do :
12581  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12582ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12583if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12584  cat >>confdefs.h <<_ACEOF
12585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12586_ACEOF
12587
12588fi
12589
12590done
12591
12592
12593ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
12594if test "x$ac_cv_header_termios_h" = xyes; then :
12595
12596else
12597  as_fn_error $? "termios.h is required!" "$LINENO" 5
12598fi
12599
12600
12601
12602## include curses.h to prevent "Present But Cannot Be Compiled"
12603for ac_header in term.h
12604do :
12605  ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12606# include <curses.h>
12607#elif HAVE_NCURSES_H
12608# include <ncurses.h>
12609#endif
12610
12611"
12612if test "x$ac_cv_header_term_h" = xyes; then :
12613  cat >>confdefs.h <<_ACEOF
12614#define HAVE_TERM_H 1
12615_ACEOF
12616
12617fi
12618
12619done
12620
12621
12622# Check for dirent.d_namlen field explicitly
12623# (This is a bit more straightforward than, if not quite as portable as,
12624# the recipe given by the autoconf maintainers.)
12625ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H
12626#include <dirent.h>
12627#endif
12628
12629"
12630if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then :
12631
12632$as_echo "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
12633
12634fi
12635
12636
12637# Checks for typedefs, structures, and compiler characteristics.
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12639$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12640if ${ac_cv_c_const+:} false; then :
12641  $as_echo_n "(cached) " >&6
12642else
12643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644/* end confdefs.h.  */
12645
12646int
12647main ()
12648{
12649
12650#ifndef __cplusplus
12651  /* Ultrix mips cc rejects this sort of thing.  */
12652  typedef int charset[2];
12653  const charset cs = { 0, 0 };
12654  /* SunOS 4.1.1 cc rejects this.  */
12655  char const *const *pcpcc;
12656  char **ppc;
12657  /* NEC SVR4.0.2 mips cc rejects this.  */
12658  struct point {int x, y;};
12659  static struct point const zero = {0,0};
12660  /* AIX XL C 1.02.0.0 rejects this.
12661     It does not let you subtract one const X* pointer from another in
12662     an arm of an if-expression whose if-part is not a constant
12663     expression */
12664  const char *g = "string";
12665  pcpcc = &g + (g ? g-g : 0);
12666  /* HPUX 7.0 cc rejects these. */
12667  ++pcpcc;
12668  ppc = (char**) pcpcc;
12669  pcpcc = (char const *const *) ppc;
12670  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12671    char tx;
12672    char *t = &tx;
12673    char const *s = 0 ? (char *) 0 : (char const *) 0;
12674
12675    *t++ = 0;
12676    if (s) return 0;
12677  }
12678  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12679    int x[] = {25, 17};
12680    const int *foo = &x[0];
12681    ++foo;
12682  }
12683  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12684    typedef const int *iptr;
12685    iptr p = 0;
12686    ++p;
12687  }
12688  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12689       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12690    struct s { int j; const int *ap[3]; } bx;
12691    struct s *b = &bx; b->j = 5;
12692  }
12693  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12694    const int foo = 10;
12695    if (!foo) return 0;
12696  }
12697  return !cs[0] && !zero.x;
12698#endif
12699
12700  ;
12701  return 0;
12702}
12703_ACEOF
12704if ac_fn_c_try_compile "$LINENO"; then :
12705  ac_cv_c_const=yes
12706else
12707  ac_cv_c_const=no
12708fi
12709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710fi
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12712$as_echo "$ac_cv_c_const" >&6; }
12713if test $ac_cv_c_const = no; then
12714
12715$as_echo "#define const /**/" >>confdefs.h
12716
12717fi
12718
12719ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12720if test "x$ac_cv_type_pid_t" = xyes; then :
12721
12722else
12723
12724cat >>confdefs.h <<_ACEOF
12725#define pid_t int
12726_ACEOF
12727
12728fi
12729
12730ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12731if test "x$ac_cv_type_size_t" = xyes; then :
12732
12733else
12734
12735cat >>confdefs.h <<_ACEOF
12736#define size_t unsigned int
12737_ACEOF
12738
12739fi
12740
12741ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
12742if test "x$ac_cv_type_u_int32_t" = xyes; then :
12743
12744cat >>confdefs.h <<_ACEOF
12745#define HAVE_U_INT32_T 1
12746_ACEOF
12747
12748
12749fi
12750
12751
12752# Checks for library functions.
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
12754$as_echo_n "checking whether closedir returns void... " >&6; }
12755if ${ac_cv_func_closedir_void+:} false; then :
12756  $as_echo_n "(cached) " >&6
12757else
12758  if test "$cross_compiling" = yes; then :
12759  ac_cv_func_closedir_void=yes
12760else
12761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762/* end confdefs.h.  */
12763$ac_includes_default
12764#include <$ac_header_dirent>
12765#ifndef __cplusplus
12766int closedir ();
12767#endif
12768
12769int
12770main ()
12771{
12772return closedir (opendir (".")) != 0;
12773  ;
12774  return 0;
12775}
12776_ACEOF
12777if ac_fn_c_try_run "$LINENO"; then :
12778  ac_cv_func_closedir_void=no
12779else
12780  ac_cv_func_closedir_void=yes
12781fi
12782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12783  conftest.$ac_objext conftest.beam conftest.$ac_ext
12784fi
12785
12786fi
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
12788$as_echo "$ac_cv_func_closedir_void" >&6; }
12789if test $ac_cv_func_closedir_void = yes; then
12790
12791$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
12792
12793fi
12794
12795for ac_header in vfork.h
12796do :
12797  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12798if test "x$ac_cv_header_vfork_h" = xyes; then :
12799  cat >>confdefs.h <<_ACEOF
12800#define HAVE_VFORK_H 1
12801_ACEOF
12802
12803fi
12804
12805done
12806
12807for ac_func in fork vfork
12808do :
12809  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12810ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12811if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12812  cat >>confdefs.h <<_ACEOF
12813#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12814_ACEOF
12815
12816fi
12817done
12818
12819if test "x$ac_cv_func_fork" = xyes; then
12820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12821$as_echo_n "checking for working fork... " >&6; }
12822if ${ac_cv_func_fork_works+:} false; then :
12823  $as_echo_n "(cached) " >&6
12824else
12825  if test "$cross_compiling" = yes; then :
12826  ac_cv_func_fork_works=cross
12827else
12828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829/* end confdefs.h.  */
12830$ac_includes_default
12831int
12832main ()
12833{
12834
12835	  /* By Ruediger Kuhlmann. */
12836	  return fork () < 0;
12837
12838  ;
12839  return 0;
12840}
12841_ACEOF
12842if ac_fn_c_try_run "$LINENO"; then :
12843  ac_cv_func_fork_works=yes
12844else
12845  ac_cv_func_fork_works=no
12846fi
12847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12848  conftest.$ac_objext conftest.beam conftest.$ac_ext
12849fi
12850
12851fi
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12853$as_echo "$ac_cv_func_fork_works" >&6; }
12854
12855else
12856  ac_cv_func_fork_works=$ac_cv_func_fork
12857fi
12858if test "x$ac_cv_func_fork_works" = xcross; then
12859  case $host in
12860    *-*-amigaos* | *-*-msdosdjgpp*)
12861      # Override, as these systems have only a dummy fork() stub
12862      ac_cv_func_fork_works=no
12863      ;;
12864    *)
12865      ac_cv_func_fork_works=yes
12866      ;;
12867  esac
12868  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12869$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12870fi
12871ac_cv_func_vfork_works=$ac_cv_func_vfork
12872if test "x$ac_cv_func_vfork" = xyes; then
12873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12874$as_echo_n "checking for working vfork... " >&6; }
12875if ${ac_cv_func_vfork_works+:} false; then :
12876  $as_echo_n "(cached) " >&6
12877else
12878  if test "$cross_compiling" = yes; then :
12879  ac_cv_func_vfork_works=cross
12880else
12881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882/* end confdefs.h.  */
12883/* Thanks to Paul Eggert for this test.  */
12884$ac_includes_default
12885#include <sys/wait.h>
12886#ifdef HAVE_VFORK_H
12887# include <vfork.h>
12888#endif
12889/* On some sparc systems, changes by the child to local and incoming
12890   argument registers are propagated back to the parent.  The compiler
12891   is told about this with #include <vfork.h>, but some compilers
12892   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12893   static variable whose address is put into a register that is
12894   clobbered by the vfork.  */
12895static void
12896#ifdef __cplusplus
12897sparc_address_test (int arg)
12898# else
12899sparc_address_test (arg) int arg;
12900#endif
12901{
12902  static pid_t child;
12903  if (!child) {
12904    child = vfork ();
12905    if (child < 0) {
12906      perror ("vfork");
12907      _exit(2);
12908    }
12909    if (!child) {
12910      arg = getpid();
12911      write(-1, "", 0);
12912      _exit (arg);
12913    }
12914  }
12915}
12916
12917int
12918main ()
12919{
12920  pid_t parent = getpid ();
12921  pid_t child;
12922
12923  sparc_address_test (0);
12924
12925  child = vfork ();
12926
12927  if (child == 0) {
12928    /* Here is another test for sparc vfork register problems.  This
12929       test uses lots of local variables, at least as many local
12930       variables as main has allocated so far including compiler
12931       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12932       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12933       reuse the register of parent for one of the local variables,
12934       since it will think that parent can't possibly be used any more
12935       in this routine.  Assigning to the local variable will thus
12936       munge parent in the parent process.  */
12937    pid_t
12938      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12939      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12940    /* Convince the compiler that p..p7 are live; otherwise, it might
12941       use the same hardware register for all 8 local variables.  */
12942    if (p != p1 || p != p2 || p != p3 || p != p4
12943	|| p != p5 || p != p6 || p != p7)
12944      _exit(1);
12945
12946    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12947       from child file descriptors.  If the child closes a descriptor
12948       before it execs or exits, this munges the parent's descriptor
12949       as well.  Test for this by closing stdout in the child.  */
12950    _exit(close(fileno(stdout)) != 0);
12951  } else {
12952    int status;
12953    struct stat st;
12954
12955    while (wait(&status) != child)
12956      ;
12957    return (
12958	 /* Was there some problem with vforking?  */
12959	 child < 0
12960
12961	 /* Did the child fail?  (This shouldn't happen.)  */
12962	 || status
12963
12964	 /* Did the vfork/compiler bug occur?  */
12965	 || parent != getpid()
12966
12967	 /* Did the file descriptor bug occur?  */
12968	 || fstat(fileno(stdout), &st) != 0
12969	 );
12970  }
12971}
12972_ACEOF
12973if ac_fn_c_try_run "$LINENO"; then :
12974  ac_cv_func_vfork_works=yes
12975else
12976  ac_cv_func_vfork_works=no
12977fi
12978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12979  conftest.$ac_objext conftest.beam conftest.$ac_ext
12980fi
12981
12982fi
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12984$as_echo "$ac_cv_func_vfork_works" >&6; }
12985
12986fi;
12987if test "x$ac_cv_func_fork_works" = xcross; then
12988  ac_cv_func_vfork_works=$ac_cv_func_vfork
12989  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12990$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12991fi
12992
12993if test "x$ac_cv_func_vfork_works" = xyes; then
12994
12995$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12996
12997else
12998
12999$as_echo "#define vfork fork" >>confdefs.h
13000
13001fi
13002if test "x$ac_cv_func_fork_works" = xyes; then
13003
13004$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13005
13006fi
13007
13008if test $ac_cv_c_compiler_gnu = yes; then
13009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13010$as_echo_n "checking whether $CC needs -traditional... " >&6; }
13011if ${ac_cv_prog_gcc_traditional+:} false; then :
13012  $as_echo_n "(cached) " >&6
13013else
13014    ac_pattern="Autoconf.*'x'"
13015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016/* end confdefs.h.  */
13017#include <sgtty.h>
13018Autoconf TIOCGETP
13019_ACEOF
13020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13021  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13022  ac_cv_prog_gcc_traditional=yes
13023else
13024  ac_cv_prog_gcc_traditional=no
13025fi
13026rm -f conftest*
13027
13028
13029  if test $ac_cv_prog_gcc_traditional = no; then
13030    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031/* end confdefs.h.  */
13032#include <termio.h>
13033Autoconf TCGETA
13034_ACEOF
13035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13036  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13037  ac_cv_prog_gcc_traditional=yes
13038fi
13039rm -f conftest*
13040
13041  fi
13042fi
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13044$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13045  if test $ac_cv_prog_gcc_traditional = yes; then
13046    CC="$CC -traditional"
13047  fi
13048fi
13049
13050## _AIX is offended by rpl_malloc and rpl_realloc
13051#AC_FUNC_MALLOC
13052#AC_FUNC_REALLOC
13053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13054$as_echo_n "checking return type of signal handlers... " >&6; }
13055if ${ac_cv_type_signal+:} false; then :
13056  $as_echo_n "(cached) " >&6
13057else
13058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059/* end confdefs.h.  */
13060#include <sys/types.h>
13061#include <signal.h>
13062
13063int
13064main ()
13065{
13066return *(signal (0, 0)) (0) == 1;
13067  ;
13068  return 0;
13069}
13070_ACEOF
13071if ac_fn_c_try_compile "$LINENO"; then :
13072  ac_cv_type_signal=int
13073else
13074  ac_cv_type_signal=void
13075fi
13076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077fi
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13079$as_echo "$ac_cv_type_signal" >&6; }
13080
13081cat >>confdefs.h <<_ACEOF
13082#define RETSIGTYPE $ac_cv_type_signal
13083_ACEOF
13084
13085
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13087$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
13088if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
13089  $as_echo_n "(cached) " >&6
13090else
13091  rm -f conftest.sym conftest.file
13092echo >conftest.file
13093if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13094  if test "$cross_compiling" = yes; then :
13095  ac_cv_func_lstat_dereferences_slashed_symlink=no
13096else
13097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098/* end confdefs.h.  */
13099$ac_includes_default
13100int
13101main ()
13102{
13103struct stat sbuf;
13104     /* Linux will dereference the symlink and fail, as required by POSIX.
13105	That is better in the sense that it means we will not
13106	have to compile and use the lstat wrapper.  */
13107     return lstat ("conftest.sym/", &sbuf) == 0;
13108  ;
13109  return 0;
13110}
13111_ACEOF
13112if ac_fn_c_try_run "$LINENO"; then :
13113  ac_cv_func_lstat_dereferences_slashed_symlink=yes
13114else
13115  ac_cv_func_lstat_dereferences_slashed_symlink=no
13116fi
13117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13118  conftest.$ac_objext conftest.beam conftest.$ac_ext
13119fi
13120
13121else
13122  # If the `ln -s' command failed, then we probably don't even
13123  # have an lstat function.
13124  ac_cv_func_lstat_dereferences_slashed_symlink=no
13125fi
13126rm -f conftest.sym conftest.file
13127
13128fi
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13130$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13131
13132test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13133
13134cat >>confdefs.h <<_ACEOF
13135#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13136_ACEOF
13137
13138
13139if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
13140  case " $LIBOBJS " in
13141  *" lstat.$ac_objext "* ) ;;
13142  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13143 ;;
13144esac
13145
13146fi
13147
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13149$as_echo_n "checking whether stat accepts an empty string... " >&6; }
13150if ${ac_cv_func_stat_empty_string_bug+:} false; then :
13151  $as_echo_n "(cached) " >&6
13152else
13153  if test "$cross_compiling" = yes; then :
13154  ac_cv_func_stat_empty_string_bug=yes
13155else
13156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157/* end confdefs.h.  */
13158$ac_includes_default
13159int
13160main ()
13161{
13162struct stat sbuf;
13163  return stat ("", &sbuf) == 0;
13164  ;
13165  return 0;
13166}
13167_ACEOF
13168if ac_fn_c_try_run "$LINENO"; then :
13169  ac_cv_func_stat_empty_string_bug=no
13170else
13171  ac_cv_func_stat_empty_string_bug=yes
13172fi
13173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13174  conftest.$ac_objext conftest.beam conftest.$ac_ext
13175fi
13176
13177fi
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13179$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
13180if test $ac_cv_func_stat_empty_string_bug = yes; then
13181  case " $LIBOBJS " in
13182  *" stat.$ac_objext "* ) ;;
13183  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13184 ;;
13185esac
13186
13187
13188cat >>confdefs.h <<_ACEOF
13189#define HAVE_STAT_EMPTY_STRING_BUG 1
13190_ACEOF
13191
13192fi
13193
13194for ac_func in endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid wcsdup strlcpy strlcat fgetln vis strvis strunvis __secure_getenv secure_getenv
13195do :
13196  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13197ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13198if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13199  cat >>confdefs.h <<_ACEOF
13200#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13201_ACEOF
13202
13203fi
13204done
13205
13206
13207# strlcpy
13208ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
13209if test "x$ac_cv_func_strlcpy" = xyes; then :
13210  found_strlcpy=yes
13211else
13212  found_strlcpy=no
13213fi
13214
13215 if test "x$found_strlcpy" = xyes; then
13216  HAVE_STRLCPY_TRUE=
13217  HAVE_STRLCPY_FALSE='#'
13218else
13219  HAVE_STRLCPY_TRUE='#'
13220  HAVE_STRLCPY_FALSE=
13221fi
13222
13223
13224# strlcat
13225ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
13226if test "x$ac_cv_func_strlcat" = xyes; then :
13227  found_strlcat=yes
13228else
13229  found_strlcat=no
13230fi
13231
13232 if test "x$found_strlcat" = xyes; then
13233  HAVE_STRLCAT_TRUE=
13234  HAVE_STRLCAT_FALSE='#'
13235else
13236  HAVE_STRLCAT_TRUE='#'
13237  HAVE_STRLCAT_FALSE=
13238fi
13239
13240
13241# vis
13242ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis"
13243if test "x$ac_cv_func_vis" = xyes; then :
13244  found_vis=yes
13245else
13246  found_vis=no
13247fi
13248
13249 if test "x$found_vis" = xyes; then
13250  HAVE_VIS_TRUE=
13251  HAVE_VIS_FALSE='#'
13252else
13253  HAVE_VIS_TRUE='#'
13254  HAVE_VIS_FALSE=
13255fi
13256
13257
13258# unvis
13259ac_fn_c_check_func "$LINENO" "unvis" "ac_cv_func_unvis"
13260if test "x$ac_cv_func_unvis" = xyes; then :
13261  found_unvis=yes
13262else
13263  found_unvis=no
13264fi
13265
13266 if test "x$found_unvis" = xyes; then
13267  HAVE_UNVIS_TRUE=
13268  HAVE_UNVIS_FALSE='#'
13269else
13270  HAVE_UNVIS_TRUE='#'
13271  HAVE_UNVIS_FALSE=
13272fi
13273
13274
13275
13276
13277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix like" >&5
13278$as_echo_n "checking whether getpwnam_r and getpwuid_r are posix like... " >&6; }
13279      # The prototype for the POSIX version is:
13280      # int getpwnam_r(char *, struct passwd *, char *, size_t, struct passwd **)
13281      # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
13282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283/* end confdefs.h.  */
13284#include <stdlib.h>
13285                #include <sys/types.h>
13286                #include <pwd.h>
13287int
13288main ()
13289{
13290getpwnam_r(NULL, NULL, NULL, (size_t)0, NULL);
13291                getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
13292  ;
13293  return 0;
13294}
13295_ACEOF
13296if ac_fn_c_try_link "$LINENO"; then :
13297
13298$as_echo "#define HAVE_GETPW_R_POSIX 1" >>confdefs.h
13299
13300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301$as_echo "yes" >&6; }
13302else
13303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304$as_echo "no" >&6; }
13305fi
13306rm -f core conftest.err conftest.$ac_objext \
13307    conftest$ac_exeext conftest.$ac_ext
13308
13309
13310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix _draft_ like" >&5
13311$as_echo_n "checking whether getpwnam_r and getpwuid_r are posix _draft_ like... " >&6; }
13312      # The prototype for the POSIX draft version is:
13313      # struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
13314      # struct passwd *getpwnam_r(char *, struct passwd *,  char *, int);
13315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316/* end confdefs.h.  */
13317#include <stdlib.h>
13318                #include <sys/types.h>
13319                #include <pwd.h>
13320int
13321main ()
13322{
13323getpwnam_r(NULL, NULL, NULL, (size_t)0);
13324                getpwuid_r((uid_t)0, NULL, NULL, (size_t)0);
13325  ;
13326  return 0;
13327}
13328_ACEOF
13329if ac_fn_c_try_link "$LINENO"; then :
13330
13331$as_echo "#define HAVE_GETPW_R_DRAFT 1" >>confdefs.h
13332
13333       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13334$as_echo "yes" >&6; }
13335else
13336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337$as_echo "no" >&6; }
13338fi
13339rm -f core conftest.err conftest.$ac_objext \
13340    conftest$ac_exeext conftest.$ac_ext
13341
13342
13343
13344
13345
13346ac_config_files="$ac_config_files Makefile libedit.pc src/Makefile doc/Makefile examples/Makefile"
13347
13348cat >confcache <<\_ACEOF
13349# This file is a shell script that caches the results of configure
13350# tests run on this system so they can be shared between configure
13351# scripts and configure runs, see configure's option --config-cache.
13352# It is not useful on other systems.  If it contains results you don't
13353# want to keep, you may remove or edit it.
13354#
13355# config.status only pays attention to the cache file if you give it
13356# the --recheck option to rerun configure.
13357#
13358# `ac_cv_env_foo' variables (set or unset) will be overridden when
13359# loading this file, other *unset* `ac_cv_foo' will be assigned the
13360# following values.
13361
13362_ACEOF
13363
13364# The following way of writing the cache mishandles newlines in values,
13365# but we know of no workaround that is simple, portable, and efficient.
13366# So, we kill variables containing newlines.
13367# Ultrix sh set writes to stderr and can't be redirected directly,
13368# and sets the high bit in the cache file unless we assign to the vars.
13369(
13370  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13371    eval ac_val=\$$ac_var
13372    case $ac_val in #(
13373    *${as_nl}*)
13374      case $ac_var in #(
13375      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13376$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13377      esac
13378      case $ac_var in #(
13379      _ | IFS | as_nl) ;; #(
13380      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13381      *) { eval $ac_var=; unset $ac_var;} ;;
13382      esac ;;
13383    esac
13384  done
13385
13386  (set) 2>&1 |
13387    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13388    *${as_nl}ac_space=\ *)
13389      # `set' does not quote correctly, so add quotes: double-quote
13390      # substitution turns \\\\ into \\, and sed turns \\ into \.
13391      sed -n \
13392	"s/'/'\\\\''/g;
13393	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13394      ;; #(
13395    *)
13396      # `set' quotes correctly as required by POSIX, so do not add quotes.
13397      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13398      ;;
13399    esac |
13400    sort
13401) |
13402  sed '
13403     /^ac_cv_env_/b end
13404     t clear
13405     :clear
13406     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13407     t end
13408     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13409     :end' >>confcache
13410if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13411  if test -w "$cache_file"; then
13412    if test "x$cache_file" != "x/dev/null"; then
13413      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13414$as_echo "$as_me: updating cache $cache_file" >&6;}
13415      if test ! -f "$cache_file" || test -h "$cache_file"; then
13416	cat confcache >"$cache_file"
13417      else
13418        case $cache_file in #(
13419        */* | ?:*)
13420	  mv -f confcache "$cache_file"$$ &&
13421	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13422        *)
13423	  mv -f confcache "$cache_file" ;;
13424	esac
13425      fi
13426    fi
13427  else
13428    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13429$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13430  fi
13431fi
13432rm -f confcache
13433
13434test "x$prefix" = xNONE && prefix=$ac_default_prefix
13435# Let make expand exec_prefix.
13436test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13437
13438DEFS=-DHAVE_CONFIG_H
13439
13440ac_libobjs=
13441ac_ltlibobjs=
13442U=
13443for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13444  # 1. Remove the extension, and $U if already installed.
13445  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13446  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13447  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13448  #    will be set to the directory where LIBOBJS objects are built.
13449  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13450  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13451done
13452LIBOBJS=$ac_libobjs
13453
13454LTLIBOBJS=$ac_ltlibobjs
13455
13456
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13458$as_echo_n "checking that generated files are newer than configure... " >&6; }
13459   if test -n "$am_sleep_pid"; then
13460     # Hide warnings about reused PIDs.
13461     wait $am_sleep_pid 2>/dev/null
13462   fi
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13464$as_echo "done" >&6; }
13465if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13466  as_fn_error $? "conditional \"AMDEP\" was never defined.
13467Usually this means the macro was only invoked conditionally." "$LINENO" 5
13468fi
13469if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13470  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13471Usually this means the macro was only invoked conditionally." "$LINENO" 5
13472fi
13473 if test -n "$EXEEXT"; then
13474  am__EXEEXT_TRUE=
13475  am__EXEEXT_FALSE='#'
13476else
13477  am__EXEEXT_TRUE='#'
13478  am__EXEEXT_FALSE=
13479fi
13480
13481if test -z "${WIDECHAR_TRUE}" && test -z "${WIDECHAR_FALSE}"; then
13482  as_fn_error $? "conditional \"WIDECHAR\" was never defined.
13483Usually this means the macro was only invoked conditionally." "$LINENO" 5
13484fi
13485if test -z "${HAVE_STRLCPY_TRUE}" && test -z "${HAVE_STRLCPY_FALSE}"; then
13486  as_fn_error $? "conditional \"HAVE_STRLCPY\" was never defined.
13487Usually this means the macro was only invoked conditionally." "$LINENO" 5
13488fi
13489if test -z "${HAVE_STRLCAT_TRUE}" && test -z "${HAVE_STRLCAT_FALSE}"; then
13490  as_fn_error $? "conditional \"HAVE_STRLCAT\" was never defined.
13491Usually this means the macro was only invoked conditionally." "$LINENO" 5
13492fi
13493if test -z "${HAVE_VIS_TRUE}" && test -z "${HAVE_VIS_FALSE}"; then
13494  as_fn_error $? "conditional \"HAVE_VIS\" was never defined.
13495Usually this means the macro was only invoked conditionally." "$LINENO" 5
13496fi
13497if test -z "${HAVE_UNVIS_TRUE}" && test -z "${HAVE_UNVIS_FALSE}"; then
13498  as_fn_error $? "conditional \"HAVE_UNVIS\" was never defined.
13499Usually this means the macro was only invoked conditionally." "$LINENO" 5
13500fi
13501
13502: "${CONFIG_STATUS=./config.status}"
13503ac_write_fail=0
13504ac_clean_files_save=$ac_clean_files
13505ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13507$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13508as_write_fail=0
13509cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13510#! $SHELL
13511# Generated by $as_me.
13512# Run this file to recreate the current configuration.
13513# Compiler output produced by configure, useful for debugging
13514# configure, is in config.log if it exists.
13515
13516debug=false
13517ac_cs_recheck=false
13518ac_cs_silent=false
13519
13520SHELL=\${CONFIG_SHELL-$SHELL}
13521export SHELL
13522_ASEOF
13523cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13524## -------------------- ##
13525## M4sh Initialization. ##
13526## -------------------- ##
13527
13528# Be more Bourne compatible
13529DUALCASE=1; export DUALCASE # for MKS sh
13530if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13531  emulate sh
13532  NULLCMD=:
13533  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13534  # is contrary to our usage.  Disable this feature.
13535  alias -g '${1+"$@"}'='"$@"'
13536  setopt NO_GLOB_SUBST
13537else
13538  case `(set -o) 2>/dev/null` in #(
13539  *posix*) :
13540    set -o posix ;; #(
13541  *) :
13542     ;;
13543esac
13544fi
13545
13546
13547as_nl='
13548'
13549export as_nl
13550# Printing a long string crashes Solaris 7 /usr/bin/printf.
13551as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13552as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13553as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13554# Prefer a ksh shell builtin over an external printf program on Solaris,
13555# but without wasting forks for bash or zsh.
13556if test -z "$BASH_VERSION$ZSH_VERSION" \
13557    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13558  as_echo='print -r --'
13559  as_echo_n='print -rn --'
13560elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13561  as_echo='printf %s\n'
13562  as_echo_n='printf %s'
13563else
13564  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13565    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13566    as_echo_n='/usr/ucb/echo -n'
13567  else
13568    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13569    as_echo_n_body='eval
13570      arg=$1;
13571      case $arg in #(
13572      *"$as_nl"*)
13573	expr "X$arg" : "X\\(.*\\)$as_nl";
13574	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13575      esac;
13576      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13577    '
13578    export as_echo_n_body
13579    as_echo_n='sh -c $as_echo_n_body as_echo'
13580  fi
13581  export as_echo_body
13582  as_echo='sh -c $as_echo_body as_echo'
13583fi
13584
13585# The user is always right.
13586if test "${PATH_SEPARATOR+set}" != set; then
13587  PATH_SEPARATOR=:
13588  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13589    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13590      PATH_SEPARATOR=';'
13591  }
13592fi
13593
13594
13595# IFS
13596# We need space, tab and new line, in precisely that order.  Quoting is
13597# there to prevent editors from complaining about space-tab.
13598# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13599# splitting by setting IFS to empty value.)
13600IFS=" ""	$as_nl"
13601
13602# Find who we are.  Look in the path if we contain no directory separator.
13603as_myself=
13604case $0 in #((
13605  *[\\/]* ) as_myself=$0 ;;
13606  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607for as_dir in $PATH
13608do
13609  IFS=$as_save_IFS
13610  test -z "$as_dir" && as_dir=.
13611    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13612  done
13613IFS=$as_save_IFS
13614
13615     ;;
13616esac
13617# We did not find ourselves, most probably we were run as `sh COMMAND'
13618# in which case we are not to be found in the path.
13619if test "x$as_myself" = x; then
13620  as_myself=$0
13621fi
13622if test ! -f "$as_myself"; then
13623  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13624  exit 1
13625fi
13626
13627# Unset variables that we do not need and which cause bugs (e.g. in
13628# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13629# suppresses any "Segmentation fault" message there.  '((' could
13630# trigger a bug in pdksh 5.2.14.
13631for as_var in BASH_ENV ENV MAIL MAILPATH
13632do eval test x\${$as_var+set} = xset \
13633  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13634done
13635PS1='$ '
13636PS2='> '
13637PS4='+ '
13638
13639# NLS nuisances.
13640LC_ALL=C
13641export LC_ALL
13642LANGUAGE=C
13643export LANGUAGE
13644
13645# CDPATH.
13646(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13647
13648
13649# as_fn_error STATUS ERROR [LINENO LOG_FD]
13650# ----------------------------------------
13651# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13652# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13653# script with STATUS, using 1 if that was 0.
13654as_fn_error ()
13655{
13656  as_status=$1; test $as_status -eq 0 && as_status=1
13657  if test "$4"; then
13658    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13659    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13660  fi
13661  $as_echo "$as_me: error: $2" >&2
13662  as_fn_exit $as_status
13663} # as_fn_error
13664
13665
13666# as_fn_set_status STATUS
13667# -----------------------
13668# Set $? to STATUS, without forking.
13669as_fn_set_status ()
13670{
13671  return $1
13672} # as_fn_set_status
13673
13674# as_fn_exit STATUS
13675# -----------------
13676# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13677as_fn_exit ()
13678{
13679  set +e
13680  as_fn_set_status $1
13681  exit $1
13682} # as_fn_exit
13683
13684# as_fn_unset VAR
13685# ---------------
13686# Portably unset VAR.
13687as_fn_unset ()
13688{
13689  { eval $1=; unset $1;}
13690}
13691as_unset=as_fn_unset
13692# as_fn_append VAR VALUE
13693# ----------------------
13694# Append the text in VALUE to the end of the definition contained in VAR. Take
13695# advantage of any shell optimizations that allow amortized linear growth over
13696# repeated appends, instead of the typical quadratic growth present in naive
13697# implementations.
13698if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13699  eval 'as_fn_append ()
13700  {
13701    eval $1+=\$2
13702  }'
13703else
13704  as_fn_append ()
13705  {
13706    eval $1=\$$1\$2
13707  }
13708fi # as_fn_append
13709
13710# as_fn_arith ARG...
13711# ------------------
13712# Perform arithmetic evaluation on the ARGs, and store the result in the
13713# global $as_val. Take advantage of shells that can avoid forks. The arguments
13714# must be portable across $(()) and expr.
13715if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13716  eval 'as_fn_arith ()
13717  {
13718    as_val=$(( $* ))
13719  }'
13720else
13721  as_fn_arith ()
13722  {
13723    as_val=`expr "$@" || test $? -eq 1`
13724  }
13725fi # as_fn_arith
13726
13727
13728if expr a : '\(a\)' >/dev/null 2>&1 &&
13729   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13730  as_expr=expr
13731else
13732  as_expr=false
13733fi
13734
13735if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13736  as_basename=basename
13737else
13738  as_basename=false
13739fi
13740
13741if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13742  as_dirname=dirname
13743else
13744  as_dirname=false
13745fi
13746
13747as_me=`$as_basename -- "$0" ||
13748$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13749	 X"$0" : 'X\(//\)$' \| \
13750	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13751$as_echo X/"$0" |
13752    sed '/^.*\/\([^/][^/]*\)\/*$/{
13753	    s//\1/
13754	    q
13755	  }
13756	  /^X\/\(\/\/\)$/{
13757	    s//\1/
13758	    q
13759	  }
13760	  /^X\/\(\/\).*/{
13761	    s//\1/
13762	    q
13763	  }
13764	  s/.*/./; q'`
13765
13766# Avoid depending upon Character Ranges.
13767as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13768as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13769as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13770as_cr_digits='0123456789'
13771as_cr_alnum=$as_cr_Letters$as_cr_digits
13772
13773ECHO_C= ECHO_N= ECHO_T=
13774case `echo -n x` in #(((((
13775-n*)
13776  case `echo 'xy\c'` in
13777  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13778  xy)  ECHO_C='\c';;
13779  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13780       ECHO_T='	';;
13781  esac;;
13782*)
13783  ECHO_N='-n';;
13784esac
13785
13786rm -f conf$$ conf$$.exe conf$$.file
13787if test -d conf$$.dir; then
13788  rm -f conf$$.dir/conf$$.file
13789else
13790  rm -f conf$$.dir
13791  mkdir conf$$.dir 2>/dev/null
13792fi
13793if (echo >conf$$.file) 2>/dev/null; then
13794  if ln -s conf$$.file conf$$ 2>/dev/null; then
13795    as_ln_s='ln -s'
13796    # ... but there are two gotchas:
13797    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13798    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13799    # In both cases, we have to default to `cp -pR'.
13800    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13801      as_ln_s='cp -pR'
13802  elif ln conf$$.file conf$$ 2>/dev/null; then
13803    as_ln_s=ln
13804  else
13805    as_ln_s='cp -pR'
13806  fi
13807else
13808  as_ln_s='cp -pR'
13809fi
13810rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13811rmdir conf$$.dir 2>/dev/null
13812
13813
13814# as_fn_mkdir_p
13815# -------------
13816# Create "$as_dir" as a directory, including parents if necessary.
13817as_fn_mkdir_p ()
13818{
13819
13820  case $as_dir in #(
13821  -*) as_dir=./$as_dir;;
13822  esac
13823  test -d "$as_dir" || eval $as_mkdir_p || {
13824    as_dirs=
13825    while :; do
13826      case $as_dir in #(
13827      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13828      *) as_qdir=$as_dir;;
13829      esac
13830      as_dirs="'$as_qdir' $as_dirs"
13831      as_dir=`$as_dirname -- "$as_dir" ||
13832$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13833	 X"$as_dir" : 'X\(//\)[^/]' \| \
13834	 X"$as_dir" : 'X\(//\)$' \| \
13835	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13836$as_echo X"$as_dir" |
13837    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13838	    s//\1/
13839	    q
13840	  }
13841	  /^X\(\/\/\)[^/].*/{
13842	    s//\1/
13843	    q
13844	  }
13845	  /^X\(\/\/\)$/{
13846	    s//\1/
13847	    q
13848	  }
13849	  /^X\(\/\).*/{
13850	    s//\1/
13851	    q
13852	  }
13853	  s/.*/./; q'`
13854      test -d "$as_dir" && break
13855    done
13856    test -z "$as_dirs" || eval "mkdir $as_dirs"
13857  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13858
13859
13860} # as_fn_mkdir_p
13861if mkdir -p . 2>/dev/null; then
13862  as_mkdir_p='mkdir -p "$as_dir"'
13863else
13864  test -d ./-p && rmdir ./-p
13865  as_mkdir_p=false
13866fi
13867
13868
13869# as_fn_executable_p FILE
13870# -----------------------
13871# Test if FILE is an executable regular file.
13872as_fn_executable_p ()
13873{
13874  test -f "$1" && test -x "$1"
13875} # as_fn_executable_p
13876as_test_x='test -x'
13877as_executable_p=as_fn_executable_p
13878
13879# Sed expression to map a string onto a valid CPP name.
13880as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13881
13882# Sed expression to map a string onto a valid variable name.
13883as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13884
13885
13886exec 6>&1
13887## ----------------------------------- ##
13888## Main body of $CONFIG_STATUS script. ##
13889## ----------------------------------- ##
13890_ASEOF
13891test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13892
13893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13894# Save the log message, to keep $0 and so on meaningful, and to
13895# report actual input values of CONFIG_FILES etc. instead of their
13896# values after options handling.
13897ac_log="
13898This file was extended by libedit $as_me 3.1, which was
13899generated by GNU Autoconf 2.69.  Invocation command line was
13900
13901  CONFIG_FILES    = $CONFIG_FILES
13902  CONFIG_HEADERS  = $CONFIG_HEADERS
13903  CONFIG_LINKS    = $CONFIG_LINKS
13904  CONFIG_COMMANDS = $CONFIG_COMMANDS
13905  $ $0 $@
13906
13907on `(hostname || uname -n) 2>/dev/null | sed 1q`
13908"
13909
13910_ACEOF
13911
13912case $ac_config_files in *"
13913"*) set x $ac_config_files; shift; ac_config_files=$*;;
13914esac
13915
13916case $ac_config_headers in *"
13917"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13918esac
13919
13920
13921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13922# Files that config.status was made for.
13923config_files="$ac_config_files"
13924config_headers="$ac_config_headers"
13925config_commands="$ac_config_commands"
13926
13927_ACEOF
13928
13929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13930ac_cs_usage="\
13931\`$as_me' instantiates files and other configuration actions
13932from templates according to the current configuration.  Unless the files
13933and actions are specified as TAGs, all are instantiated by default.
13934
13935Usage: $0 [OPTION]... [TAG]...
13936
13937  -h, --help       print this help, then exit
13938  -V, --version    print version number and configuration settings, then exit
13939      --config     print configuration, then exit
13940  -q, --quiet, --silent
13941                   do not print progress messages
13942  -d, --debug      don't remove temporary files
13943      --recheck    update $as_me by reconfiguring in the same conditions
13944      --file=FILE[:TEMPLATE]
13945                   instantiate the configuration file FILE
13946      --header=FILE[:TEMPLATE]
13947                   instantiate the configuration header FILE
13948
13949Configuration files:
13950$config_files
13951
13952Configuration headers:
13953$config_headers
13954
13955Configuration commands:
13956$config_commands
13957
13958Report bugs to the package provider."
13959
13960_ACEOF
13961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13962ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13963ac_cs_version="\\
13964libedit config.status 3.1
13965configured by $0, generated by GNU Autoconf 2.69,
13966  with options \\"\$ac_cs_config\\"
13967
13968Copyright (C) 2012 Free Software Foundation, Inc.
13969This config.status script is free software; the Free Software Foundation
13970gives unlimited permission to copy, distribute and modify it."
13971
13972ac_pwd='$ac_pwd'
13973srcdir='$srcdir'
13974INSTALL='$INSTALL'
13975MKDIR_P='$MKDIR_P'
13976AWK='$AWK'
13977test -n "\$AWK" || AWK=awk
13978_ACEOF
13979
13980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13981# The default lists apply if the user does not specify any file.
13982ac_need_defaults=:
13983while test $# != 0
13984do
13985  case $1 in
13986  --*=?*)
13987    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13988    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13989    ac_shift=:
13990    ;;
13991  --*=)
13992    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13993    ac_optarg=
13994    ac_shift=:
13995    ;;
13996  *)
13997    ac_option=$1
13998    ac_optarg=$2
13999    ac_shift=shift
14000    ;;
14001  esac
14002
14003  case $ac_option in
14004  # Handling of the options.
14005  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14006    ac_cs_recheck=: ;;
14007  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14008    $as_echo "$ac_cs_version"; exit ;;
14009  --config | --confi | --conf | --con | --co | --c )
14010    $as_echo "$ac_cs_config"; exit ;;
14011  --debug | --debu | --deb | --de | --d | -d )
14012    debug=: ;;
14013  --file | --fil | --fi | --f )
14014    $ac_shift
14015    case $ac_optarg in
14016    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14017    '') as_fn_error $? "missing file argument" ;;
14018    esac
14019    as_fn_append CONFIG_FILES " '$ac_optarg'"
14020    ac_need_defaults=false;;
14021  --header | --heade | --head | --hea )
14022    $ac_shift
14023    case $ac_optarg in
14024    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14025    esac
14026    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14027    ac_need_defaults=false;;
14028  --he | --h)
14029    # Conflict between --help and --header
14030    as_fn_error $? "ambiguous option: \`$1'
14031Try \`$0 --help' for more information.";;
14032  --help | --hel | -h )
14033    $as_echo "$ac_cs_usage"; exit ;;
14034  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14035  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14036    ac_cs_silent=: ;;
14037
14038  # This is an error.
14039  -*) as_fn_error $? "unrecognized option: \`$1'
14040Try \`$0 --help' for more information." ;;
14041
14042  *) as_fn_append ac_config_targets " $1"
14043     ac_need_defaults=false ;;
14044
14045  esac
14046  shift
14047done
14048
14049ac_configure_extra_args=
14050
14051if $ac_cs_silent; then
14052  exec 6>/dev/null
14053  ac_configure_extra_args="$ac_configure_extra_args --silent"
14054fi
14055
14056_ACEOF
14057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14058if \$ac_cs_recheck; then
14059  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14060  shift
14061  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14062  CONFIG_SHELL='$SHELL'
14063  export CONFIG_SHELL
14064  exec "\$@"
14065fi
14066
14067_ACEOF
14068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14069exec 5>>config.log
14070{
14071  echo
14072  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14073## Running $as_me. ##
14074_ASBOX
14075  $as_echo "$ac_log"
14076} >&5
14077
14078_ACEOF
14079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14080#
14081# INIT-COMMANDS
14082#
14083AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14084
14085
14086# The HP-UX ksh and POSIX shell print the target directory to stdout
14087# if CDPATH is set.
14088(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14089
14090sed_quote_subst='$sed_quote_subst'
14091double_quote_subst='$double_quote_subst'
14092delay_variable_subst='$delay_variable_subst'
14093macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14094macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14095enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14096enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14097pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14098enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14099SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14100ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14101PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14102host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14103host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14104host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14105build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14106build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14107build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14108SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14109Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14110GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14111EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14112FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14113LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14114NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14115LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14116max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14117ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14118exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14119lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14120lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14121lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14122lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14123lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14124reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14125reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14126OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14127deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14128file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14129file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14130want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14131DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14132sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14133AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14134AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14135archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14136STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14137RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14138old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14139old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14140old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14141lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14142CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14143CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14144compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14145GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14146lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14147lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14148lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14149lt_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"`'
14150nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14151lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14152objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14153MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14154lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14155lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14156lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14157lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14158lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14159need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14160MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14161DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14162NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14163LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14164OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14165OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14166libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14167shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14168extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14169archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14170enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14171export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14172whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14173compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14174old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14175old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14176archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14177archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14178module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14179module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14180with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14181allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14182no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14183hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14184hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14185hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14186hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14187hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14188hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14189hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14190inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14191link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14192always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14193export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14194exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14195include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14196prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14197postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14198file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14199variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14200need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14201need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14202version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14203runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14204shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14205shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14206libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14207library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14208soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14209install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14210postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14211postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14212finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14213finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14214hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14215sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14216sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14217hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14218enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14219enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14220enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14221old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14222striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14223
14224LTCC='$LTCC'
14225LTCFLAGS='$LTCFLAGS'
14226compiler='$compiler_DEFAULT'
14227
14228# A function that is used when there is no print builtin or printf.
14229func_fallback_echo ()
14230{
14231  eval 'cat <<_LTECHO_EOF
14232\$1
14233_LTECHO_EOF'
14234}
14235
14236# Quote evaled strings.
14237for var in SHELL \
14238ECHO \
14239PATH_SEPARATOR \
14240SED \
14241GREP \
14242EGREP \
14243FGREP \
14244LD \
14245NM \
14246LN_S \
14247lt_SP2NL \
14248lt_NL2SP \
14249reload_flag \
14250OBJDUMP \
14251deplibs_check_method \
14252file_magic_cmd \
14253file_magic_glob \
14254want_nocaseglob \
14255DLLTOOL \
14256sharedlib_from_linklib_cmd \
14257AR \
14258AR_FLAGS \
14259archiver_list_spec \
14260STRIP \
14261RANLIB \
14262CC \
14263CFLAGS \
14264compiler \
14265lt_cv_sys_global_symbol_pipe \
14266lt_cv_sys_global_symbol_to_cdecl \
14267lt_cv_sys_global_symbol_to_c_name_address \
14268lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14269nm_file_list_spec \
14270lt_prog_compiler_no_builtin_flag \
14271lt_prog_compiler_pic \
14272lt_prog_compiler_wl \
14273lt_prog_compiler_static \
14274lt_cv_prog_compiler_c_o \
14275need_locks \
14276MANIFEST_TOOL \
14277DSYMUTIL \
14278NMEDIT \
14279LIPO \
14280OTOOL \
14281OTOOL64 \
14282shrext_cmds \
14283export_dynamic_flag_spec \
14284whole_archive_flag_spec \
14285compiler_needs_object \
14286with_gnu_ld \
14287allow_undefined_flag \
14288no_undefined_flag \
14289hardcode_libdir_flag_spec \
14290hardcode_libdir_separator \
14291exclude_expsyms \
14292include_expsyms \
14293file_list_spec \
14294variables_saved_for_relink \
14295libname_spec \
14296library_names_spec \
14297soname_spec \
14298install_override_mode \
14299finish_eval \
14300old_striplib \
14301striplib; do
14302    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14303    *[\\\\\\\`\\"\\\$]*)
14304      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14305      ;;
14306    *)
14307      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14308      ;;
14309    esac
14310done
14311
14312# Double-quote double-evaled strings.
14313for var in reload_cmds \
14314old_postinstall_cmds \
14315old_postuninstall_cmds \
14316old_archive_cmds \
14317extract_expsyms_cmds \
14318old_archive_from_new_cmds \
14319old_archive_from_expsyms_cmds \
14320archive_cmds \
14321archive_expsym_cmds \
14322module_cmds \
14323module_expsym_cmds \
14324export_symbols_cmds \
14325prelink_cmds \
14326postlink_cmds \
14327postinstall_cmds \
14328postuninstall_cmds \
14329finish_cmds \
14330sys_lib_search_path_spec \
14331sys_lib_dlsearch_path_spec; do
14332    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14333    *[\\\\\\\`\\"\\\$]*)
14334      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14335      ;;
14336    *)
14337      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14338      ;;
14339    esac
14340done
14341
14342ac_aux_dir='$ac_aux_dir'
14343xsi_shell='$xsi_shell'
14344lt_shell_append='$lt_shell_append'
14345
14346# See if we are running on zsh, and set the options which allow our
14347# commands through without removal of \ escapes INIT.
14348if test -n "\${ZSH_VERSION+set}" ; then
14349   setopt NO_GLOB_SUBST
14350fi
14351
14352
14353    PACKAGE='$PACKAGE'
14354    VERSION='$VERSION'
14355    TIMESTAMP='$TIMESTAMP'
14356    RM='$RM'
14357    ofile='$ofile'
14358
14359
14360
14361
14362_ACEOF
14363
14364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14365
14366# Handling of arguments.
14367for ac_config_target in $ac_config_targets
14368do
14369  case $ac_config_target in
14370    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14371    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14372    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14373    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14374    "libedit.pc") CONFIG_FILES="$CONFIG_FILES libedit.pc" ;;
14375    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14376    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14377    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14378
14379  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14380  esac
14381done
14382
14383
14384# If the user did not use the arguments to specify the items to instantiate,
14385# then the envvar interface is used.  Set only those that are not.
14386# We use the long form for the default assignment because of an extremely
14387# bizarre bug on SunOS 4.1.3.
14388if $ac_need_defaults; then
14389  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14390  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14391  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14392fi
14393
14394# Have a temporary directory for convenience.  Make it in the build tree
14395# simply because there is no reason against having it here, and in addition,
14396# creating and moving files from /tmp can sometimes cause problems.
14397# Hook for its removal unless debugging.
14398# Note that there is a small window in which the directory will not be cleaned:
14399# after its creation but before its name has been assigned to `$tmp'.
14400$debug ||
14401{
14402  tmp= ac_tmp=
14403  trap 'exit_status=$?
14404  : "${ac_tmp:=$tmp}"
14405  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14406' 0
14407  trap 'as_fn_exit 1' 1 2 13 15
14408}
14409# Create a (secure) tmp directory for tmp files.
14410
14411{
14412  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14413  test -d "$tmp"
14414}  ||
14415{
14416  tmp=./conf$$-$RANDOM
14417  (umask 077 && mkdir "$tmp")
14418} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14419ac_tmp=$tmp
14420
14421# Set up the scripts for CONFIG_FILES section.
14422# No need to generate them if there are no CONFIG_FILES.
14423# This happens for instance with `./config.status config.h'.
14424if test -n "$CONFIG_FILES"; then
14425
14426
14427ac_cr=`echo X | tr X '\015'`
14428# On cygwin, bash can eat \r inside `` if the user requested igncr.
14429# But we know of no other shell where ac_cr would be empty at this
14430# point, so we can use a bashism as a fallback.
14431if test "x$ac_cr" = x; then
14432  eval ac_cr=\$\'\\r\'
14433fi
14434ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14435if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14436  ac_cs_awk_cr='\\r'
14437else
14438  ac_cs_awk_cr=$ac_cr
14439fi
14440
14441echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14442_ACEOF
14443
14444
14445{
14446  echo "cat >conf$$subs.awk <<_ACEOF" &&
14447  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14448  echo "_ACEOF"
14449} >conf$$subs.sh ||
14450  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14451ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14452ac_delim='%!_!# '
14453for ac_last_try in false false false false false :; do
14454  . ./conf$$subs.sh ||
14455    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14456
14457  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14458  if test $ac_delim_n = $ac_delim_num; then
14459    break
14460  elif $ac_last_try; then
14461    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14462  else
14463    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14464  fi
14465done
14466rm -f conf$$subs.sh
14467
14468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14469cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14470_ACEOF
14471sed -n '
14472h
14473s/^/S["/; s/!.*/"]=/
14474p
14475g
14476s/^[^!]*!//
14477:repl
14478t repl
14479s/'"$ac_delim"'$//
14480t delim
14481:nl
14482h
14483s/\(.\{148\}\)..*/\1/
14484t more1
14485s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14486p
14487n
14488b repl
14489:more1
14490s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14491p
14492g
14493s/.\{148\}//
14494t nl
14495:delim
14496h
14497s/\(.\{148\}\)..*/\1/
14498t more2
14499s/["\\]/\\&/g; s/^/"/; s/$/"/
14500p
14501b
14502:more2
14503s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14504p
14505g
14506s/.\{148\}//
14507t delim
14508' <conf$$subs.awk | sed '
14509/^[^""]/{
14510  N
14511  s/\n//
14512}
14513' >>$CONFIG_STATUS || ac_write_fail=1
14514rm -f conf$$subs.awk
14515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14516_ACAWK
14517cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14518  for (key in S) S_is_set[key] = 1
14519  FS = ""
14520
14521}
14522{
14523  line = $ 0
14524  nfields = split(line, field, "@")
14525  substed = 0
14526  len = length(field[1])
14527  for (i = 2; i < nfields; i++) {
14528    key = field[i]
14529    keylen = length(key)
14530    if (S_is_set[key]) {
14531      value = S[key]
14532      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14533      len += length(value) + length(field[++i])
14534      substed = 1
14535    } else
14536      len += 1 + keylen
14537  }
14538
14539  print line
14540}
14541
14542_ACAWK
14543_ACEOF
14544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14545if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14546  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14547else
14548  cat
14549fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14550  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14551_ACEOF
14552
14553# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14554# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14555# trailing colons and then remove the whole line if VPATH becomes empty
14556# (actually we leave an empty line to preserve line numbers).
14557if test "x$srcdir" = x.; then
14558  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14559h
14560s///
14561s/^/:/
14562s/[	 ]*$/:/
14563s/:\$(srcdir):/:/g
14564s/:\${srcdir}:/:/g
14565s/:@srcdir@:/:/g
14566s/^:*//
14567s/:*$//
14568x
14569s/\(=[	 ]*\).*/\1/
14570G
14571s/\n//
14572s/^[^=]*=[	 ]*$//
14573}'
14574fi
14575
14576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14577fi # test -n "$CONFIG_FILES"
14578
14579# Set up the scripts for CONFIG_HEADERS section.
14580# No need to generate them if there are no CONFIG_HEADERS.
14581# This happens for instance with `./config.status Makefile'.
14582if test -n "$CONFIG_HEADERS"; then
14583cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14584BEGIN {
14585_ACEOF
14586
14587# Transform confdefs.h into an awk script `defines.awk', embedded as
14588# here-document in config.status, that substitutes the proper values into
14589# config.h.in to produce config.h.
14590
14591# Create a delimiter string that does not exist in confdefs.h, to ease
14592# handling of long lines.
14593ac_delim='%!_!# '
14594for ac_last_try in false false :; do
14595  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14596  if test -z "$ac_tt"; then
14597    break
14598  elif $ac_last_try; then
14599    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14600  else
14601    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14602  fi
14603done
14604
14605# For the awk script, D is an array of macro values keyed by name,
14606# likewise P contains macro parameters if any.  Preserve backslash
14607# newline sequences.
14608
14609ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14610sed -n '
14611s/.\{148\}/&'"$ac_delim"'/g
14612t rset
14613:rset
14614s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14615t def
14616d
14617:def
14618s/\\$//
14619t bsnl
14620s/["\\]/\\&/g
14621s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14622D["\1"]=" \3"/p
14623s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14624d
14625:bsnl
14626s/["\\]/\\&/g
14627s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14628D["\1"]=" \3\\\\\\n"\\/p
14629t cont
14630s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14631t cont
14632d
14633:cont
14634n
14635s/.\{148\}/&'"$ac_delim"'/g
14636t clear
14637:clear
14638s/\\$//
14639t bsnlc
14640s/["\\]/\\&/g; s/^/"/; s/$/"/p
14641d
14642:bsnlc
14643s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14644b cont
14645' <confdefs.h | sed '
14646s/'"$ac_delim"'/"\\\
14647"/g' >>$CONFIG_STATUS || ac_write_fail=1
14648
14649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14650  for (key in D) D_is_set[key] = 1
14651  FS = ""
14652}
14653/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14654  line = \$ 0
14655  split(line, arg, " ")
14656  if (arg[1] == "#") {
14657    defundef = arg[2]
14658    mac1 = arg[3]
14659  } else {
14660    defundef = substr(arg[1], 2)
14661    mac1 = arg[2]
14662  }
14663  split(mac1, mac2, "(") #)
14664  macro = mac2[1]
14665  prefix = substr(line, 1, index(line, defundef) - 1)
14666  if (D_is_set[macro]) {
14667    # Preserve the white space surrounding the "#".
14668    print prefix "define", macro P[macro] D[macro]
14669    next
14670  } else {
14671    # Replace #undef with comments.  This is necessary, for example,
14672    # in the case of _POSIX_SOURCE, which is predefined and required
14673    # on some systems where configure will not decide to define it.
14674    if (defundef == "undef") {
14675      print "/*", prefix defundef, macro, "*/"
14676      next
14677    }
14678  }
14679}
14680{ print }
14681_ACAWK
14682_ACEOF
14683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14684  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14685fi # test -n "$CONFIG_HEADERS"
14686
14687
14688eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14689shift
14690for ac_tag
14691do
14692  case $ac_tag in
14693  :[FHLC]) ac_mode=$ac_tag; continue;;
14694  esac
14695  case $ac_mode$ac_tag in
14696  :[FHL]*:*);;
14697  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14698  :[FH]-) ac_tag=-:-;;
14699  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14700  esac
14701  ac_save_IFS=$IFS
14702  IFS=:
14703  set x $ac_tag
14704  IFS=$ac_save_IFS
14705  shift
14706  ac_file=$1
14707  shift
14708
14709  case $ac_mode in
14710  :L) ac_source=$1;;
14711  :[FH])
14712    ac_file_inputs=
14713    for ac_f
14714    do
14715      case $ac_f in
14716      -) ac_f="$ac_tmp/stdin";;
14717      *) # Look for the file first in the build tree, then in the source tree
14718	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14719	 # because $ac_f cannot contain `:'.
14720	 test -f "$ac_f" ||
14721	   case $ac_f in
14722	   [\\/$]*) false;;
14723	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14724	   esac ||
14725	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14726      esac
14727      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14728      as_fn_append ac_file_inputs " '$ac_f'"
14729    done
14730
14731    # Let's still pretend it is `configure' which instantiates (i.e., don't
14732    # use $as_me), people would be surprised to read:
14733    #    /* config.h.  Generated by config.status.  */
14734    configure_input='Generated from '`
14735	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14736	`' by configure.'
14737    if test x"$ac_file" != x-; then
14738      configure_input="$ac_file.  $configure_input"
14739      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14740$as_echo "$as_me: creating $ac_file" >&6;}
14741    fi
14742    # Neutralize special characters interpreted by sed in replacement strings.
14743    case $configure_input in #(
14744    *\&* | *\|* | *\\* )
14745       ac_sed_conf_input=`$as_echo "$configure_input" |
14746       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14747    *) ac_sed_conf_input=$configure_input;;
14748    esac
14749
14750    case $ac_tag in
14751    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14752      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14753    esac
14754    ;;
14755  esac
14756
14757  ac_dir=`$as_dirname -- "$ac_file" ||
14758$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14759	 X"$ac_file" : 'X\(//\)[^/]' \| \
14760	 X"$ac_file" : 'X\(//\)$' \| \
14761	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14762$as_echo X"$ac_file" |
14763    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14764	    s//\1/
14765	    q
14766	  }
14767	  /^X\(\/\/\)[^/].*/{
14768	    s//\1/
14769	    q
14770	  }
14771	  /^X\(\/\/\)$/{
14772	    s//\1/
14773	    q
14774	  }
14775	  /^X\(\/\).*/{
14776	    s//\1/
14777	    q
14778	  }
14779	  s/.*/./; q'`
14780  as_dir="$ac_dir"; as_fn_mkdir_p
14781  ac_builddir=.
14782
14783case "$ac_dir" in
14784.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14785*)
14786  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14787  # A ".." for each directory in $ac_dir_suffix.
14788  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14789  case $ac_top_builddir_sub in
14790  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14791  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14792  esac ;;
14793esac
14794ac_abs_top_builddir=$ac_pwd
14795ac_abs_builddir=$ac_pwd$ac_dir_suffix
14796# for backward compatibility:
14797ac_top_builddir=$ac_top_build_prefix
14798
14799case $srcdir in
14800  .)  # We are building in place.
14801    ac_srcdir=.
14802    ac_top_srcdir=$ac_top_builddir_sub
14803    ac_abs_top_srcdir=$ac_pwd ;;
14804  [\\/]* | ?:[\\/]* )  # Absolute name.
14805    ac_srcdir=$srcdir$ac_dir_suffix;
14806    ac_top_srcdir=$srcdir
14807    ac_abs_top_srcdir=$srcdir ;;
14808  *) # Relative name.
14809    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14810    ac_top_srcdir=$ac_top_build_prefix$srcdir
14811    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14812esac
14813ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14814
14815
14816  case $ac_mode in
14817  :F)
14818  #
14819  # CONFIG_FILE
14820  #
14821
14822  case $INSTALL in
14823  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14824  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14825  esac
14826  ac_MKDIR_P=$MKDIR_P
14827  case $MKDIR_P in
14828  [\\/$]* | ?:[\\/]* ) ;;
14829  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14830  esac
14831_ACEOF
14832
14833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14834# If the template does not know about datarootdir, expand it.
14835# FIXME: This hack should be removed a few years after 2.60.
14836ac_datarootdir_hack=; ac_datarootdir_seen=
14837ac_sed_dataroot='
14838/datarootdir/ {
14839  p
14840  q
14841}
14842/@datadir@/p
14843/@docdir@/p
14844/@infodir@/p
14845/@localedir@/p
14846/@mandir@/p'
14847case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14848*datarootdir*) ac_datarootdir_seen=yes;;
14849*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14850  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14851$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14852_ACEOF
14853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14854  ac_datarootdir_hack='
14855  s&@datadir@&$datadir&g
14856  s&@docdir@&$docdir&g
14857  s&@infodir@&$infodir&g
14858  s&@localedir@&$localedir&g
14859  s&@mandir@&$mandir&g
14860  s&\\\${datarootdir}&$datarootdir&g' ;;
14861esac
14862_ACEOF
14863
14864# Neutralize VPATH when `$srcdir' = `.'.
14865# Shell code in configure.ac might set extrasub.
14866# FIXME: do we really want to maintain this feature?
14867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14868ac_sed_extra="$ac_vpsub
14869$extrasub
14870_ACEOF
14871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14872:t
14873/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14874s|@configure_input@|$ac_sed_conf_input|;t t
14875s&@top_builddir@&$ac_top_builddir_sub&;t t
14876s&@top_build_prefix@&$ac_top_build_prefix&;t t
14877s&@srcdir@&$ac_srcdir&;t t
14878s&@abs_srcdir@&$ac_abs_srcdir&;t t
14879s&@top_srcdir@&$ac_top_srcdir&;t t
14880s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14881s&@builddir@&$ac_builddir&;t t
14882s&@abs_builddir@&$ac_abs_builddir&;t t
14883s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14884s&@INSTALL@&$ac_INSTALL&;t t
14885s&@MKDIR_P@&$ac_MKDIR_P&;t t
14886$ac_datarootdir_hack
14887"
14888eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14889  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14890
14891test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14892  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14893  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14894      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14895  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14896which seems to be undefined.  Please make sure it is defined" >&5
14897$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14898which seems to be undefined.  Please make sure it is defined" >&2;}
14899
14900  rm -f "$ac_tmp/stdin"
14901  case $ac_file in
14902  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14903  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14904  esac \
14905  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14906 ;;
14907  :H)
14908  #
14909  # CONFIG_HEADER
14910  #
14911  if test x"$ac_file" != x-; then
14912    {
14913      $as_echo "/* $configure_input  */" \
14914      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14915    } >"$ac_tmp/config.h" \
14916      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14917    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14918      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14919$as_echo "$as_me: $ac_file is unchanged" >&6;}
14920    else
14921      rm -f "$ac_file"
14922      mv "$ac_tmp/config.h" "$ac_file" \
14923	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14924    fi
14925  else
14926    $as_echo "/* $configure_input  */" \
14927      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14928      || as_fn_error $? "could not create -" "$LINENO" 5
14929  fi
14930# Compute "$ac_file"'s index in $config_headers.
14931_am_arg="$ac_file"
14932_am_stamp_count=1
14933for _am_header in $config_headers :; do
14934  case $_am_header in
14935    $_am_arg | $_am_arg:* )
14936      break ;;
14937    * )
14938      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14939  esac
14940done
14941echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14942$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14943	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14944	 X"$_am_arg" : 'X\(//\)$' \| \
14945	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14946$as_echo X"$_am_arg" |
14947    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14948	    s//\1/
14949	    q
14950	  }
14951	  /^X\(\/\/\)[^/].*/{
14952	    s//\1/
14953	    q
14954	  }
14955	  /^X\(\/\/\)$/{
14956	    s//\1/
14957	    q
14958	  }
14959	  /^X\(\/\).*/{
14960	    s//\1/
14961	    q
14962	  }
14963	  s/.*/./; q'`/stamp-h$_am_stamp_count
14964 ;;
14965
14966  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14967$as_echo "$as_me: executing $ac_file commands" >&6;}
14968 ;;
14969  esac
14970
14971
14972  case $ac_file$ac_mode in
14973    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14974  # Older Autoconf quotes --file arguments for eval, but not when files
14975  # are listed without --file.  Let's play safe and only enable the eval
14976  # if we detect the quoting.
14977  case $CONFIG_FILES in
14978  *\'*) eval set x "$CONFIG_FILES" ;;
14979  *)   set x $CONFIG_FILES ;;
14980  esac
14981  shift
14982  for mf
14983  do
14984    # Strip MF so we end up with the name of the file.
14985    mf=`echo "$mf" | sed -e 's/:.*$//'`
14986    # Check whether this is an Automake generated Makefile or not.
14987    # We used to match only the files named 'Makefile.in', but
14988    # some people rename them; so instead we look at the file content.
14989    # Grep'ing the first line is not enough: some people post-process
14990    # each Makefile.in and add a new line on top of each file to say so.
14991    # Grep'ing the whole file is not good either: AIX grep has a line
14992    # limit of 2048, but all sed's we know have understand at least 4000.
14993    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14994      dirpart=`$as_dirname -- "$mf" ||
14995$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14996	 X"$mf" : 'X\(//\)[^/]' \| \
14997	 X"$mf" : 'X\(//\)$' \| \
14998	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14999$as_echo X"$mf" |
15000    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15001	    s//\1/
15002	    q
15003	  }
15004	  /^X\(\/\/\)[^/].*/{
15005	    s//\1/
15006	    q
15007	  }
15008	  /^X\(\/\/\)$/{
15009	    s//\1/
15010	    q
15011	  }
15012	  /^X\(\/\).*/{
15013	    s//\1/
15014	    q
15015	  }
15016	  s/.*/./; q'`
15017    else
15018      continue
15019    fi
15020    # Extract the definition of DEPDIR, am__include, and am__quote
15021    # from the Makefile without running 'make'.
15022    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15023    test -z "$DEPDIR" && continue
15024    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15025    test -z "$am__include" && continue
15026    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15027    # Find all dependency output files, they are included files with
15028    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15029    # simplest approach to changing $(DEPDIR) to its actual value in the
15030    # expansion.
15031    for file in `sed -n "
15032      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15033	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15034      # Make sure the directory exists.
15035      test -f "$dirpart/$file" && continue
15036      fdir=`$as_dirname -- "$file" ||
15037$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15038	 X"$file" : 'X\(//\)[^/]' \| \
15039	 X"$file" : 'X\(//\)$' \| \
15040	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15041$as_echo X"$file" |
15042    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15043	    s//\1/
15044	    q
15045	  }
15046	  /^X\(\/\/\)[^/].*/{
15047	    s//\1/
15048	    q
15049	  }
15050	  /^X\(\/\/\)$/{
15051	    s//\1/
15052	    q
15053	  }
15054	  /^X\(\/\).*/{
15055	    s//\1/
15056	    q
15057	  }
15058	  s/.*/./; q'`
15059      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15060      # echo "creating $dirpart/$file"
15061      echo '# dummy' > "$dirpart/$file"
15062    done
15063  done
15064}
15065 ;;
15066    "libtool":C)
15067
15068    # See if we are running on zsh, and set the options which allow our
15069    # commands through without removal of \ escapes.
15070    if test -n "${ZSH_VERSION+set}" ; then
15071      setopt NO_GLOB_SUBST
15072    fi
15073
15074    cfgfile="${ofile}T"
15075    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15076    $RM "$cfgfile"
15077
15078    cat <<_LT_EOF >> "$cfgfile"
15079#! $SHELL
15080
15081# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15082# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15083# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15084# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15085#
15086#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15087#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15088#                 Foundation, Inc.
15089#   Written by Gordon Matzigkeit, 1996
15090#
15091#   This file is part of GNU Libtool.
15092#
15093# GNU Libtool is free software; you can redistribute it and/or
15094# modify it under the terms of the GNU General Public License as
15095# published by the Free Software Foundation; either version 2 of
15096# the License, or (at your option) any later version.
15097#
15098# As a special exception to the GNU General Public License,
15099# if you distribute this file as part of a program or library that
15100# is built using GNU Libtool, you may include this file under the
15101# same distribution terms that you use for the rest of that program.
15102#
15103# GNU Libtool is distributed in the hope that it will be useful,
15104# but WITHOUT ANY WARRANTY; without even the implied warranty of
15105# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15106# GNU General Public License for more details.
15107#
15108# You should have received a copy of the GNU General Public License
15109# along with GNU Libtool; see the file COPYING.  If not, a copy
15110# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15111# obtained by writing to the Free Software Foundation, Inc.,
15112# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15113
15114
15115# The names of the tagged configurations supported by this script.
15116available_tags=""
15117
15118# ### BEGIN LIBTOOL CONFIG
15119
15120# Which release of libtool.m4 was used?
15121macro_version=$macro_version
15122macro_revision=$macro_revision
15123
15124# Whether or not to build shared libraries.
15125build_libtool_libs=$enable_shared
15126
15127# Whether or not to build static libraries.
15128build_old_libs=$enable_static
15129
15130# What type of objects to build.
15131pic_mode=$pic_mode
15132
15133# Whether or not to optimize for fast installation.
15134fast_install=$enable_fast_install
15135
15136# Shell to use when invoking shell scripts.
15137SHELL=$lt_SHELL
15138
15139# An echo program that protects backslashes.
15140ECHO=$lt_ECHO
15141
15142# The PATH separator for the build system.
15143PATH_SEPARATOR=$lt_PATH_SEPARATOR
15144
15145# The host system.
15146host_alias=$host_alias
15147host=$host
15148host_os=$host_os
15149
15150# The build system.
15151build_alias=$build_alias
15152build=$build
15153build_os=$build_os
15154
15155# A sed program that does not truncate output.
15156SED=$lt_SED
15157
15158# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15159Xsed="\$SED -e 1s/^X//"
15160
15161# A grep program that handles long lines.
15162GREP=$lt_GREP
15163
15164# An ERE matcher.
15165EGREP=$lt_EGREP
15166
15167# A literal string matcher.
15168FGREP=$lt_FGREP
15169
15170# A BSD- or MS-compatible name lister.
15171NM=$lt_NM
15172
15173# Whether we need soft or hard links.
15174LN_S=$lt_LN_S
15175
15176# What is the maximum length of a command?
15177max_cmd_len=$max_cmd_len
15178
15179# Object file suffix (normally "o").
15180objext=$ac_objext
15181
15182# Executable file suffix (normally "").
15183exeext=$exeext
15184
15185# whether the shell understands "unset".
15186lt_unset=$lt_unset
15187
15188# turn spaces into newlines.
15189SP2NL=$lt_lt_SP2NL
15190
15191# turn newlines into spaces.
15192NL2SP=$lt_lt_NL2SP
15193
15194# convert \$build file names to \$host format.
15195to_host_file_cmd=$lt_cv_to_host_file_cmd
15196
15197# convert \$build files to toolchain format.
15198to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15199
15200# An object symbol dumper.
15201OBJDUMP=$lt_OBJDUMP
15202
15203# Method to check whether dependent libraries are shared objects.
15204deplibs_check_method=$lt_deplibs_check_method
15205
15206# Command to use when deplibs_check_method = "file_magic".
15207file_magic_cmd=$lt_file_magic_cmd
15208
15209# How to find potential files when deplibs_check_method = "file_magic".
15210file_magic_glob=$lt_file_magic_glob
15211
15212# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15213want_nocaseglob=$lt_want_nocaseglob
15214
15215# DLL creation program.
15216DLLTOOL=$lt_DLLTOOL
15217
15218# Command to associate shared and link libraries.
15219sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15220
15221# The archiver.
15222AR=$lt_AR
15223
15224# Flags to create an archive.
15225AR_FLAGS=$lt_AR_FLAGS
15226
15227# How to feed a file listing to the archiver.
15228archiver_list_spec=$lt_archiver_list_spec
15229
15230# A symbol stripping program.
15231STRIP=$lt_STRIP
15232
15233# Commands used to install an old-style archive.
15234RANLIB=$lt_RANLIB
15235old_postinstall_cmds=$lt_old_postinstall_cmds
15236old_postuninstall_cmds=$lt_old_postuninstall_cmds
15237
15238# Whether to use a lock for old archive extraction.
15239lock_old_archive_extraction=$lock_old_archive_extraction
15240
15241# A C compiler.
15242LTCC=$lt_CC
15243
15244# LTCC compiler flags.
15245LTCFLAGS=$lt_CFLAGS
15246
15247# Take the output of nm and produce a listing of raw symbols and C names.
15248global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15249
15250# Transform the output of nm in a proper C declaration.
15251global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15252
15253# Transform the output of nm in a C name address pair.
15254global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15255
15256# Transform the output of nm in a C name address pair when lib prefix is needed.
15257global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15258
15259# Specify filename containing input files for \$NM.
15260nm_file_list_spec=$lt_nm_file_list_spec
15261
15262# The root where to search for dependent libraries,and in which our libraries should be installed.
15263lt_sysroot=$lt_sysroot
15264
15265# The name of the directory that contains temporary libtool files.
15266objdir=$objdir
15267
15268# Used to examine libraries when file_magic_cmd begins with "file".
15269MAGIC_CMD=$MAGIC_CMD
15270
15271# Must we lock files when doing compilation?
15272need_locks=$lt_need_locks
15273
15274# Manifest tool.
15275MANIFEST_TOOL=$lt_MANIFEST_TOOL
15276
15277# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15278DSYMUTIL=$lt_DSYMUTIL
15279
15280# Tool to change global to local symbols on Mac OS X.
15281NMEDIT=$lt_NMEDIT
15282
15283# Tool to manipulate fat objects and archives on Mac OS X.
15284LIPO=$lt_LIPO
15285
15286# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15287OTOOL=$lt_OTOOL
15288
15289# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15290OTOOL64=$lt_OTOOL64
15291
15292# Old archive suffix (normally "a").
15293libext=$libext
15294
15295# Shared library suffix (normally ".so").
15296shrext_cmds=$lt_shrext_cmds
15297
15298# The commands to extract the exported symbol list from a shared archive.
15299extract_expsyms_cmds=$lt_extract_expsyms_cmds
15300
15301# Variables whose values should be saved in libtool wrapper scripts and
15302# restored at link time.
15303variables_saved_for_relink=$lt_variables_saved_for_relink
15304
15305# Do we need the "lib" prefix for modules?
15306need_lib_prefix=$need_lib_prefix
15307
15308# Do we need a version for libraries?
15309need_version=$need_version
15310
15311# Library versioning type.
15312version_type=$version_type
15313
15314# Shared library runtime path variable.
15315runpath_var=$runpath_var
15316
15317# Shared library path variable.
15318shlibpath_var=$shlibpath_var
15319
15320# Is shlibpath searched before the hard-coded library search path?
15321shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15322
15323# Format of library name prefix.
15324libname_spec=$lt_libname_spec
15325
15326# List of archive names.  First name is the real one, the rest are links.
15327# The last name is the one that the linker finds with -lNAME
15328library_names_spec=$lt_library_names_spec
15329
15330# The coded name of the library, if different from the real name.
15331soname_spec=$lt_soname_spec
15332
15333# Permission mode override for installation of shared libraries.
15334install_override_mode=$lt_install_override_mode
15335
15336# Command to use after installation of a shared archive.
15337postinstall_cmds=$lt_postinstall_cmds
15338
15339# Command to use after uninstallation of a shared archive.
15340postuninstall_cmds=$lt_postuninstall_cmds
15341
15342# Commands used to finish a libtool library installation in a directory.
15343finish_cmds=$lt_finish_cmds
15344
15345# As "finish_cmds", except a single script fragment to be evaled but
15346# not shown.
15347finish_eval=$lt_finish_eval
15348
15349# Whether we should hardcode library paths into libraries.
15350hardcode_into_libs=$hardcode_into_libs
15351
15352# Compile-time system search path for libraries.
15353sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15354
15355# Run-time system search path for libraries.
15356sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15357
15358# Whether dlopen is supported.
15359dlopen_support=$enable_dlopen
15360
15361# Whether dlopen of programs is supported.
15362dlopen_self=$enable_dlopen_self
15363
15364# Whether dlopen of statically linked programs is supported.
15365dlopen_self_static=$enable_dlopen_self_static
15366
15367# Commands to strip libraries.
15368old_striplib=$lt_old_striplib
15369striplib=$lt_striplib
15370
15371
15372# The linker used to build libraries.
15373LD=$lt_LD
15374
15375# How to create reloadable object files.
15376reload_flag=$lt_reload_flag
15377reload_cmds=$lt_reload_cmds
15378
15379# Commands used to build an old-style archive.
15380old_archive_cmds=$lt_old_archive_cmds
15381
15382# A language specific compiler.
15383CC=$lt_compiler
15384
15385# Is the compiler the GNU compiler?
15386with_gcc=$GCC
15387
15388# Compiler flag to turn off builtin functions.
15389no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15390
15391# Additional compiler flags for building library objects.
15392pic_flag=$lt_lt_prog_compiler_pic
15393
15394# How to pass a linker flag through the compiler.
15395wl=$lt_lt_prog_compiler_wl
15396
15397# Compiler flag to prevent dynamic linking.
15398link_static_flag=$lt_lt_prog_compiler_static
15399
15400# Does compiler simultaneously support -c and -o options?
15401compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15402
15403# Whether or not to add -lc for building shared libraries.
15404build_libtool_need_lc=$archive_cmds_need_lc
15405
15406# Whether or not to disallow shared libs when runtime libs are static.
15407allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15408
15409# Compiler flag to allow reflexive dlopens.
15410export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15411
15412# Compiler flag to generate shared objects directly from archives.
15413whole_archive_flag_spec=$lt_whole_archive_flag_spec
15414
15415# Whether the compiler copes with passing no objects directly.
15416compiler_needs_object=$lt_compiler_needs_object
15417
15418# Create an old-style archive from a shared archive.
15419old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15420
15421# Create a temporary old-style archive to link instead of a shared archive.
15422old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15423
15424# Commands used to build a shared archive.
15425archive_cmds=$lt_archive_cmds
15426archive_expsym_cmds=$lt_archive_expsym_cmds
15427
15428# Commands used to build a loadable module if different from building
15429# a shared archive.
15430module_cmds=$lt_module_cmds
15431module_expsym_cmds=$lt_module_expsym_cmds
15432
15433# Whether we are building with GNU ld or not.
15434with_gnu_ld=$lt_with_gnu_ld
15435
15436# Flag that allows shared libraries with undefined symbols to be built.
15437allow_undefined_flag=$lt_allow_undefined_flag
15438
15439# Flag that enforces no undefined symbols.
15440no_undefined_flag=$lt_no_undefined_flag
15441
15442# Flag to hardcode \$libdir into a binary during linking.
15443# This must work even if \$libdir does not exist
15444hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15445
15446# Whether we need a single "-rpath" flag with a separated argument.
15447hardcode_libdir_separator=$lt_hardcode_libdir_separator
15448
15449# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15450# DIR into the resulting binary.
15451hardcode_direct=$hardcode_direct
15452
15453# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15454# DIR into the resulting binary and the resulting library dependency is
15455# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15456# library is relocated.
15457hardcode_direct_absolute=$hardcode_direct_absolute
15458
15459# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15460# into the resulting binary.
15461hardcode_minus_L=$hardcode_minus_L
15462
15463# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15464# into the resulting binary.
15465hardcode_shlibpath_var=$hardcode_shlibpath_var
15466
15467# Set to "yes" if building a shared library automatically hardcodes DIR
15468# into the library and all subsequent libraries and executables linked
15469# against it.
15470hardcode_automatic=$hardcode_automatic
15471
15472# Set to yes if linker adds runtime paths of dependent libraries
15473# to runtime path list.
15474inherit_rpath=$inherit_rpath
15475
15476# Whether libtool must link a program against all its dependency libraries.
15477link_all_deplibs=$link_all_deplibs
15478
15479# Set to "yes" if exported symbols are required.
15480always_export_symbols=$always_export_symbols
15481
15482# The commands to list exported symbols.
15483export_symbols_cmds=$lt_export_symbols_cmds
15484
15485# Symbols that should not be listed in the preloaded symbols.
15486exclude_expsyms=$lt_exclude_expsyms
15487
15488# Symbols that must always be exported.
15489include_expsyms=$lt_include_expsyms
15490
15491# Commands necessary for linking programs (against libraries) with templates.
15492prelink_cmds=$lt_prelink_cmds
15493
15494# Commands necessary for finishing linking programs.
15495postlink_cmds=$lt_postlink_cmds
15496
15497# Specify filename containing input files.
15498file_list_spec=$lt_file_list_spec
15499
15500# How to hardcode a shared library path into an executable.
15501hardcode_action=$hardcode_action
15502
15503# ### END LIBTOOL CONFIG
15504
15505_LT_EOF
15506
15507  case $host_os in
15508  aix3*)
15509    cat <<\_LT_EOF >> "$cfgfile"
15510# AIX sometimes has problems with the GCC collect2 program.  For some
15511# reason, if we set the COLLECT_NAMES environment variable, the problems
15512# vanish in a puff of smoke.
15513if test "X${COLLECT_NAMES+set}" != Xset; then
15514  COLLECT_NAMES=
15515  export COLLECT_NAMES
15516fi
15517_LT_EOF
15518    ;;
15519  esac
15520
15521
15522ltmain="$ac_aux_dir/ltmain.sh"
15523
15524
15525  # We use sed instead of cat because bash on DJGPP gets confused if
15526  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15527  # text mode, it properly converts lines to CR/LF.  This bash problem
15528  # is reportedly fixed, but why not run on old versions too?
15529  sed '$q' "$ltmain" >> "$cfgfile" \
15530     || (rm -f "$cfgfile"; exit 1)
15531
15532  if test x"$xsi_shell" = xyes; then
15533  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15534func_dirname ()\
15535{\
15536\    case ${1} in\
15537\      */*) func_dirname_result="${1%/*}${2}" ;;\
15538\      *  ) func_dirname_result="${3}" ;;\
15539\    esac\
15540} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15541  && mv -f "$cfgfile.tmp" "$cfgfile" \
15542    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15543test 0 -eq $? || _lt_function_replace_fail=:
15544
15545
15546  sed -e '/^func_basename ()$/,/^} # func_basename /c\
15547func_basename ()\
15548{\
15549\    func_basename_result="${1##*/}"\
15550} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15551  && mv -f "$cfgfile.tmp" "$cfgfile" \
15552    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15553test 0 -eq $? || _lt_function_replace_fail=:
15554
15555
15556  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15557func_dirname_and_basename ()\
15558{\
15559\    case ${1} in\
15560\      */*) func_dirname_result="${1%/*}${2}" ;;\
15561\      *  ) func_dirname_result="${3}" ;;\
15562\    esac\
15563\    func_basename_result="${1##*/}"\
15564} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15565  && mv -f "$cfgfile.tmp" "$cfgfile" \
15566    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15567test 0 -eq $? || _lt_function_replace_fail=:
15568
15569
15570  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15571func_stripname ()\
15572{\
15573\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15574\    # positional parameters, so assign one to ordinary parameter first.\
15575\    func_stripname_result=${3}\
15576\    func_stripname_result=${func_stripname_result#"${1}"}\
15577\    func_stripname_result=${func_stripname_result%"${2}"}\
15578} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15579  && mv -f "$cfgfile.tmp" "$cfgfile" \
15580    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15581test 0 -eq $? || _lt_function_replace_fail=:
15582
15583
15584  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15585func_split_long_opt ()\
15586{\
15587\    func_split_long_opt_name=${1%%=*}\
15588\    func_split_long_opt_arg=${1#*=}\
15589} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15590  && mv -f "$cfgfile.tmp" "$cfgfile" \
15591    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15592test 0 -eq $? || _lt_function_replace_fail=:
15593
15594
15595  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15596func_split_short_opt ()\
15597{\
15598\    func_split_short_opt_arg=${1#??}\
15599\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15600} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15601  && mv -f "$cfgfile.tmp" "$cfgfile" \
15602    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15603test 0 -eq $? || _lt_function_replace_fail=:
15604
15605
15606  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15607func_lo2o ()\
15608{\
15609\    case ${1} in\
15610\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15611\      *)    func_lo2o_result=${1} ;;\
15612\    esac\
15613} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15614  && mv -f "$cfgfile.tmp" "$cfgfile" \
15615    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15616test 0 -eq $? || _lt_function_replace_fail=:
15617
15618
15619  sed -e '/^func_xform ()$/,/^} # func_xform /c\
15620func_xform ()\
15621{\
15622    func_xform_result=${1%.*}.lo\
15623} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15624  && mv -f "$cfgfile.tmp" "$cfgfile" \
15625    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15626test 0 -eq $? || _lt_function_replace_fail=:
15627
15628
15629  sed -e '/^func_arith ()$/,/^} # func_arith /c\
15630func_arith ()\
15631{\
15632    func_arith_result=$(( $* ))\
15633} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15634  && mv -f "$cfgfile.tmp" "$cfgfile" \
15635    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15636test 0 -eq $? || _lt_function_replace_fail=:
15637
15638
15639  sed -e '/^func_len ()$/,/^} # func_len /c\
15640func_len ()\
15641{\
15642    func_len_result=${#1}\
15643} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15644  && mv -f "$cfgfile.tmp" "$cfgfile" \
15645    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15646test 0 -eq $? || _lt_function_replace_fail=:
15647
15648fi
15649
15650if test x"$lt_shell_append" = xyes; then
15651  sed -e '/^func_append ()$/,/^} # func_append /c\
15652func_append ()\
15653{\
15654    eval "${1}+=\\${2}"\
15655} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15656  && mv -f "$cfgfile.tmp" "$cfgfile" \
15657    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15658test 0 -eq $? || _lt_function_replace_fail=:
15659
15660
15661  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15662func_append_quoted ()\
15663{\
15664\    func_quote_for_eval "${2}"\
15665\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15666} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15667  && mv -f "$cfgfile.tmp" "$cfgfile" \
15668    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15669test 0 -eq $? || _lt_function_replace_fail=:
15670
15671
15672  # Save a `func_append' function call where possible by direct use of '+='
15673  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15674    && mv -f "$cfgfile.tmp" "$cfgfile" \
15675      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15676  test 0 -eq $? || _lt_function_replace_fail=:
15677else
15678  # Save a `func_append' function call even when '+=' is not available
15679  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15680    && mv -f "$cfgfile.tmp" "$cfgfile" \
15681      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15682  test 0 -eq $? || _lt_function_replace_fail=:
15683fi
15684
15685if test x"$_lt_function_replace_fail" = x":"; then
15686  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15687$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15688fi
15689
15690
15691   mv -f "$cfgfile" "$ofile" ||
15692    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15693  chmod +x "$ofile"
15694
15695 ;;
15696
15697  esac
15698done # for ac_tag
15699
15700
15701as_fn_exit 0
15702_ACEOF
15703ac_clean_files=$ac_clean_files_save
15704
15705test $ac_write_fail = 0 ||
15706  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15707
15708
15709# configure is writing to config.log, and then calls config.status.
15710# config.status does its own redirection, appending to config.log.
15711# Unfortunately, on DOS this fails, as config.log is still kept open
15712# by configure, so config.status won't be able to write to it; its
15713# output is simply discarded.  So we exec the FD to /dev/null,
15714# effectively closing config.log, so it can be properly (re)opened and
15715# appended to by config.status.  When coming back to configure, we
15716# need to make the FD available again.
15717if test "$no_create" != yes; then
15718  ac_cs_success=:
15719  ac_config_status_args=
15720  test "$silent" = yes &&
15721    ac_config_status_args="$ac_config_status_args --quiet"
15722  exec 5>/dev/null
15723  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15724  exec 5>>config.log
15725  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15726  # would make configure fail if this is the last instruction.
15727  $ac_cs_success || as_fn_exit 1
15728fi
15729if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15730  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15731$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15732fi
15733
15734