xref: /freebsd/contrib/file/configure (revision 49dae58b287906be26f56ba3e3dc693c3ba8cf37)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for file 5.26.
4#
5# Report bugs to <christos@astron.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: christos@astron.com about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='file'
592PACKAGE_TARNAME='file'
593PACKAGE_VERSION='5.26'
594PACKAGE_STRING='file 5.26'
595PACKAGE_BUGREPORT='christos@astron.com'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_header_list=
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638IS_CROSS_COMPILE_FALSE
639IS_CROSS_COMPILE_TRUE
640LIBOBJS
641HAVE_VISIBILITY
642CFLAG_VISIBILITY
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
648MANIFEST_TOOL
649RANLIB
650ac_ct_AR
651AR
652DLLTOOL
653OBJDUMP
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659SED
660LIBTOOL
661LN_S
662EGREP
663GREP
664CPP
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
668am__nodep
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
682WARNINGS
683FSECT5_FALSE
684FSECT5_TRUE
685fsect
686pkgdatadir
687MINGW_FALSE
688MINGW_TRUE
689MINGW
690host_os
691host_vendor
692host_cpu
693host
694build_os
695build_vendor
696build_cpu
697build
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_silent_rules
767enable_elf
768enable_elf_core
769enable_fsect_man5
770enable_dependency_tracking
771enable_static
772with_pic
773enable_shared
774enable_fast_install
775with_gnu_ld
776with_sysroot
777enable_libtool_lock
778enable_largefile
779enable_warnings
780'
781      ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
789CPP'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844  # If the previous option needs an argument, assign it.
845  if test -n "$ac_prev"; then
846    eval $ac_prev=\$ac_option
847    ac_prev=
848    continue
849  fi
850
851  case $ac_option in
852  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853  *=)   ac_optarg= ;;
854  *)    ac_optarg=yes ;;
855  esac
856
857  # Accept the important Cygnus configure options, so we can diagnose typos.
858
859  case $ac_dashdash$ac_option in
860  --)
861    ac_dashdash=yes ;;
862
863  -bindir | --bindir | --bindi | --bind | --bin | --bi)
864    ac_prev=bindir ;;
865  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866    bindir=$ac_optarg ;;
867
868  -build | --build | --buil | --bui | --bu)
869    ac_prev=build_alias ;;
870  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871    build_alias=$ac_optarg ;;
872
873  -cache-file | --cache-file | --cache-fil | --cache-fi \
874  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875    ac_prev=cache_file ;;
876  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878    cache_file=$ac_optarg ;;
879
880  --config-cache | -C)
881    cache_file=config.cache ;;
882
883  -datadir | --datadir | --datadi | --datad)
884    ac_prev=datadir ;;
885  -datadir=* | --datadir=* | --datadi=* | --datad=*)
886    datadir=$ac_optarg ;;
887
888  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889  | --dataroo | --dataro | --datar)
890    ac_prev=datarootdir ;;
891  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893    datarootdir=$ac_optarg ;;
894
895  -disable-* | --disable-*)
896    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897    # Reject names that are not valid shell variable names.
898    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899      as_fn_error $? "invalid feature name: $ac_useropt"
900    ac_useropt_orig=$ac_useropt
901    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902    case $ac_user_opts in
903      *"
904"enable_$ac_useropt"
905"*) ;;
906      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907	 ac_unrecognized_sep=', ';;
908    esac
909    eval enable_$ac_useropt=no ;;
910
911  -docdir | --docdir | --docdi | --doc | --do)
912    ac_prev=docdir ;;
913  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914    docdir=$ac_optarg ;;
915
916  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917    ac_prev=dvidir ;;
918  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919    dvidir=$ac_optarg ;;
920
921  -enable-* | --enable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=\$ac_optarg ;;
936
937  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939  | --exec | --exe | --ex)
940    ac_prev=exec_prefix ;;
941  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943  | --exec=* | --exe=* | --ex=*)
944    exec_prefix=$ac_optarg ;;
945
946  -gas | --gas | --ga | --g)
947    # Obsolete; use --with-gas.
948    with_gas=yes ;;
949
950  -help | --help | --hel | --he | -h)
951    ac_init_help=long ;;
952  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953    ac_init_help=recursive ;;
954  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955    ac_init_help=short ;;
956
957  -host | --host | --hos | --ho)
958    ac_prev=host_alias ;;
959  -host=* | --host=* | --hos=* | --ho=*)
960    host_alias=$ac_optarg ;;
961
962  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963    ac_prev=htmldir ;;
964  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965  | --ht=*)
966    htmldir=$ac_optarg ;;
967
968  -includedir | --includedir | --includedi | --included | --include \
969  | --includ | --inclu | --incl | --inc)
970    ac_prev=includedir ;;
971  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972  | --includ=* | --inclu=* | --incl=* | --inc=*)
973    includedir=$ac_optarg ;;
974
975  -infodir | --infodir | --infodi | --infod | --info | --inf)
976    ac_prev=infodir ;;
977  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978    infodir=$ac_optarg ;;
979
980  -libdir | --libdir | --libdi | --libd)
981    ac_prev=libdir ;;
982  -libdir=* | --libdir=* | --libdi=* | --libd=*)
983    libdir=$ac_optarg ;;
984
985  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986  | --libexe | --libex | --libe)
987    ac_prev=libexecdir ;;
988  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989  | --libexe=* | --libex=* | --libe=*)
990    libexecdir=$ac_optarg ;;
991
992  -localedir | --localedir | --localedi | --localed | --locale)
993    ac_prev=localedir ;;
994  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995    localedir=$ac_optarg ;;
996
997  -localstatedir | --localstatedir | --localstatedi | --localstated \
998  | --localstate | --localstat | --localsta | --localst | --locals)
999    ac_prev=localstatedir ;;
1000  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002    localstatedir=$ac_optarg ;;
1003
1004  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005    ac_prev=mandir ;;
1006  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007    mandir=$ac_optarg ;;
1008
1009  -nfp | --nfp | --nf)
1010    # Obsolete; use --without-fp.
1011    with_fp=no ;;
1012
1013  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014  | --no-cr | --no-c | -n)
1015    no_create=yes ;;
1016
1017  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019    no_recursion=yes ;;
1020
1021  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023  | --oldin | --oldi | --old | --ol | --o)
1024    ac_prev=oldincludedir ;;
1025  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028    oldincludedir=$ac_optarg ;;
1029
1030  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031    ac_prev=prefix ;;
1032  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033    prefix=$ac_optarg ;;
1034
1035  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036  | --program-pre | --program-pr | --program-p)
1037    ac_prev=program_prefix ;;
1038  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040    program_prefix=$ac_optarg ;;
1041
1042  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043  | --program-suf | --program-su | --program-s)
1044    ac_prev=program_suffix ;;
1045  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047    program_suffix=$ac_optarg ;;
1048
1049  -program-transform-name | --program-transform-name \
1050  | --program-transform-nam | --program-transform-na \
1051  | --program-transform-n | --program-transform- \
1052  | --program-transform | --program-transfor \
1053  | --program-transfo | --program-transf \
1054  | --program-trans | --program-tran \
1055  | --progr-tra | --program-tr | --program-t)
1056    ac_prev=program_transform_name ;;
1057  -program-transform-name=* | --program-transform-name=* \
1058  | --program-transform-nam=* | --program-transform-na=* \
1059  | --program-transform-n=* | --program-transform-=* \
1060  | --program-transform=* | --program-transfor=* \
1061  | --program-transfo=* | --program-transf=* \
1062  | --program-trans=* | --program-tran=* \
1063  | --progr-tra=* | --program-tr=* | --program-t=*)
1064    program_transform_name=$ac_optarg ;;
1065
1066  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067    ac_prev=pdfdir ;;
1068  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069    pdfdir=$ac_optarg ;;
1070
1071  -psdir | --psdir | --psdi | --psd | --ps)
1072    ac_prev=psdir ;;
1073  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074    psdir=$ac_optarg ;;
1075
1076  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077  | -silent | --silent | --silen | --sile | --sil)
1078    silent=yes ;;
1079
1080  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081    ac_prev=sbindir ;;
1082  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083  | --sbi=* | --sb=*)
1084    sbindir=$ac_optarg ;;
1085
1086  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088  | --sharedst | --shareds | --shared | --share | --shar \
1089  | --sha | --sh)
1090    ac_prev=sharedstatedir ;;
1091  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094  | --sha=* | --sh=*)
1095    sharedstatedir=$ac_optarg ;;
1096
1097  -site | --site | --sit)
1098    ac_prev=site ;;
1099  -site=* | --site=* | --sit=*)
1100    site=$ac_optarg ;;
1101
1102  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103    ac_prev=srcdir ;;
1104  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105    srcdir=$ac_optarg ;;
1106
1107  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108  | --syscon | --sysco | --sysc | --sys | --sy)
1109    ac_prev=sysconfdir ;;
1110  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112    sysconfdir=$ac_optarg ;;
1113
1114  -target | --target | --targe | --targ | --tar | --ta | --t)
1115    ac_prev=target_alias ;;
1116  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117    target_alias=$ac_optarg ;;
1118
1119  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120    verbose=yes ;;
1121
1122  -version | --version | --versio | --versi | --vers | -V)
1123    ac_init_version=: ;;
1124
1125  -with-* | --with-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error $? "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=\$ac_optarg ;;
1140
1141  -without-* | --without-*)
1142    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143    # Reject names that are not valid shell variable names.
1144    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145      as_fn_error $? "invalid package name: $ac_useropt"
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=no ;;
1156
1157  --x)
1158    # Obsolete; use --with-x.
1159    with_x=yes ;;
1160
1161  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162  | --x-incl | --x-inc | --x-in | --x-i)
1163    ac_prev=x_includes ;;
1164  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166    x_includes=$ac_optarg ;;
1167
1168  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170    ac_prev=x_libraries ;;
1171  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173    x_libraries=$ac_optarg ;;
1174
1175  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
1177    ;;
1178
1179  *=*)
1180    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181    # Reject names that are not valid shell variable names.
1182    case $ac_envvar in #(
1183      '' | [0-9]* | *[!_$as_cr_alnum]* )
1184      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185    esac
1186    eval $ac_envvar=\$ac_optarg
1187    export $ac_envvar ;;
1188
1189  *)
1190    # FIXME: should be removed in autoconf 3.0.
1191    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195    ;;
1196
1197  esac
1198done
1199
1200if test -n "$ac_prev"; then
1201  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202  as_fn_error $? "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206  case $enable_option_checking in
1207    no) ;;
1208    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210  esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215		datadir sysconfdir sharedstatedir localstatedir includedir \
1216		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217		libdir localedir mandir
1218do
1219  eval ac_val=\$$ac_var
1220  # Remove trailing slashes.
1221  case $ac_val in
1222    */ )
1223      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224      eval $ac_var=\$ac_val;;
1225  esac
1226  # Be sure to have absolute directory names.
1227  case $ac_val in
1228    [\\/$]* | ?:[\\/]* )  continue;;
1229    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230  esac
1231  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243  if test "x$build_alias" = x; then
1244    cross_compiling=maybe
1245  elif test "x$build_alias" != "x$host_alias"; then
1246    cross_compiling=yes
1247  fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259  as_fn_error $? "working directory cannot be determined"
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261  as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266  ac_srcdir_defaulted=yes
1267  # Try the directory containing this script, then the parent directory.
1268  ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270	 X"$as_myself" : 'X\(//\)[^/]' \| \
1271	 X"$as_myself" : 'X\(//\)$' \| \
1272	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)[^/].*/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\/\)$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\).*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  s/.*/./; q'`
1291  srcdir=$ac_confdir
1292  if test ! -r "$srcdir/$ac_unique_file"; then
1293    srcdir=..
1294  fi
1295else
1296  ac_srcdir_defaulted=no
1297fi
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
1304	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305	pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308  srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318  eval ac_env_${ac_var}_value=\$${ac_var}
1319  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327  # Omit some internal or obsolete options to make the list less imposing.
1328  # This message is too long to be a string in the A/UX 3.1 sh.
1329  cat <<_ACEOF
1330\`configure' configures file 5.26 to adapt to many kinds of systems.
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340  -h, --help              display this help and exit
1341      --help=short        display options specific to this package
1342      --help=recursive    display the short help of all the included packages
1343  -V, --version           display version information and exit
1344  -q, --quiet, --silent   do not print \`checking ...' messages
1345      --cache-file=FILE   cache test results in FILE [disabled]
1346  -C, --config-cache      alias for \`--cache-file=config.cache'
1347  -n, --no-create         do not create output files
1348      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350Installation directories:
1351  --prefix=PREFIX         install architecture-independent files in PREFIX
1352                          [$ac_default_prefix]
1353  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                          [PREFIX]
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
1364  --bindir=DIR            user executables [EPREFIX/bin]
1365  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1366  --libexecdir=DIR        program executables [EPREFIX/libexec]
1367  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1368  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1369  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1370  --libdir=DIR            object code libraries [EPREFIX/lib]
1371  --includedir=DIR        C header files [PREFIX/include]
1372  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1373  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1374  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1375  --infodir=DIR           info documentation [DATAROOTDIR/info]
1376  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1377  --mandir=DIR            man documentation [DATAROOTDIR/man]
1378  --docdir=DIR            documentation root [DATAROOTDIR/doc/file]
1379  --htmldir=DIR           html documentation [DOCDIR]
1380  --dvidir=DIR            dvi documentation [DOCDIR]
1381  --pdfdir=DIR            pdf documentation [DOCDIR]
1382  --psdir=DIR             ps documentation [DOCDIR]
1383_ACEOF
1384
1385  cat <<\_ACEOF
1386
1387Program names:
1388  --program-prefix=PREFIX            prepend PREFIX to installed program names
1389  --program-suffix=SUFFIX            append SUFFIX to installed program names
1390  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1391
1392System types:
1393  --build=BUILD     configure for building on BUILD [guessed]
1394  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1395_ACEOF
1396fi
1397
1398if test -n "$ac_init_help"; then
1399  case $ac_init_help in
1400     short | recursive ) echo "Configuration of file 5.26:";;
1401   esac
1402  cat <<\_ACEOF
1403
1404Optional Features:
1405  --disable-option-checking  ignore unrecognized --enable/--with options
1406  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1407  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1408  --enable-silent-rules   less verbose build output (undo: "make V=1")
1409  --disable-silent-rules  verbose build output (undo: "make V=0")
1410  --disable-elf            disable builtin ELF support
1411  --disable-elf-core       disable ELF core file support
1412  --enable-fsect-man5      enable file formats in man section 5
1413  --enable-dependency-tracking
1414                          do not reject slow dependency extractors
1415  --disable-dependency-tracking
1416                          speeds up one-time build
1417  --enable-static[=PKGS]  build static libraries [default=no]
1418  --enable-shared[=PKGS]  build shared libraries [default=yes]
1419  --enable-fast-install[=PKGS]
1420                          optimize for fast installation [default=yes]
1421  --disable-libtool-lock  avoid locking (might break parallel builds)
1422  --disable-largefile     omit support for large files
1423  --disable-warnings	disable compiler warnings
1424
1425Optional Packages:
1426  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1429                          both]
1430  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1431  --with-sysroot=DIR Search for dependent libraries within DIR
1432                        (or the compiler's sysroot if not specified).
1433
1434Some influential environment variables:
1435  CC          C compiler command
1436  CFLAGS      C compiler flags
1437  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1438              nonstandard directory <lib dir>
1439  LIBS        libraries to pass to the linker, e.g. -l<library>
1440  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441              you have headers in a nonstandard directory <include dir>
1442  CPP         C preprocessor
1443
1444Use these variables to override the choices made by `configure' or to help
1445it to find libraries and programs with nonstandard names/locations.
1446
1447Report bugs to <christos@astron.com>.
1448_ACEOF
1449ac_status=$?
1450fi
1451
1452if test "$ac_init_help" = "recursive"; then
1453  # If there are subdirs, report their specific --help.
1454  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455    test -d "$ac_dir" ||
1456      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457      continue
1458    ac_builddir=.
1459
1460case "$ac_dir" in
1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462*)
1463  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464  # A ".." for each directory in $ac_dir_suffix.
1465  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466  case $ac_top_builddir_sub in
1467  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469  esac ;;
1470esac
1471ac_abs_top_builddir=$ac_pwd
1472ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473# for backward compatibility:
1474ac_top_builddir=$ac_top_build_prefix
1475
1476case $srcdir in
1477  .)  # We are building in place.
1478    ac_srcdir=.
1479    ac_top_srcdir=$ac_top_builddir_sub
1480    ac_abs_top_srcdir=$ac_pwd ;;
1481  [\\/]* | ?:[\\/]* )  # Absolute name.
1482    ac_srcdir=$srcdir$ac_dir_suffix;
1483    ac_top_srcdir=$srcdir
1484    ac_abs_top_srcdir=$srcdir ;;
1485  *) # Relative name.
1486    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487    ac_top_srcdir=$ac_top_build_prefix$srcdir
1488    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489esac
1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492    cd "$ac_dir" || { ac_status=$?; continue; }
1493    # Check for guested configure.
1494    if test -f "$ac_srcdir/configure.gnu"; then
1495      echo &&
1496      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497    elif test -f "$ac_srcdir/configure"; then
1498      echo &&
1499      $SHELL "$ac_srcdir/configure" --help=recursive
1500    else
1501      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502    fi || ac_status=$?
1503    cd "$ac_pwd" || { ac_status=$?; break; }
1504  done
1505fi
1506
1507test -n "$ac_init_help" && exit $ac_status
1508if $ac_init_version; then
1509  cat <<\_ACEOF
1510file configure 5.26
1511generated by GNU Autoconf 2.69
1512
1513Copyright (C) 2012 Free Software Foundation, Inc.
1514This configure script is free software; the Free Software Foundation
1515gives unlimited permission to copy, distribute and modify it.
1516_ACEOF
1517  exit
1518fi
1519
1520## ------------------------ ##
1521## Autoconf initialization. ##
1522## ------------------------ ##
1523
1524# ac_fn_c_try_compile LINENO
1525# --------------------------
1526# Try to compile conftest.$ac_ext, and return whether this succeeded.
1527ac_fn_c_try_compile ()
1528{
1529  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530  rm -f conftest.$ac_objext
1531  if { { ac_try="$ac_compile"
1532case "(($ac_try" in
1533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534  *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
1538  (eval "$ac_compile") 2>conftest.err
1539  ac_status=$?
1540  if test -s conftest.err; then
1541    grep -v '^ *+' conftest.err >conftest.er1
1542    cat conftest.er1 >&5
1543    mv -f conftest.er1 conftest.err
1544  fi
1545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546  test $ac_status = 0; } && {
1547	 test -z "$ac_c_werror_flag" ||
1548	 test ! -s conftest.err
1549       } && test -s conftest.$ac_objext; then :
1550  ac_retval=0
1551else
1552  $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
1555	ac_retval=1
1556fi
1557  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558  as_fn_set_status $ac_retval
1559
1560} # ac_fn_c_try_compile
1561
1562# ac_fn_c_try_cpp LINENO
1563# ----------------------
1564# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_cpp ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  if { { ac_try="$ac_cpp conftest.$ac_ext"
1569case "(($ac_try" in
1570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571  *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576  ac_status=$?
1577  if test -s conftest.err; then
1578    grep -v '^ *+' conftest.err >conftest.er1
1579    cat conftest.er1 >&5
1580    mv -f conftest.er1 conftest.err
1581  fi
1582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583  test $ac_status = 0; } > conftest.i && {
1584	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1585	 test ! -s conftest.err
1586       }; then :
1587  ac_retval=0
1588else
1589  $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
1591
1592    ac_retval=1
1593fi
1594  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595  as_fn_set_status $ac_retval
1596
1597} # ac_fn_c_try_cpp
1598
1599# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1600# -------------------------------------------------------
1601# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1602# the include files in INCLUDES and setting the cache variable VAR
1603# accordingly.
1604ac_fn_c_check_header_mongrel ()
1605{
1606  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607  if eval \${$3+:} false; then :
1608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609$as_echo_n "checking for $2... " >&6; }
1610if eval \${$3+:} false; then :
1611  $as_echo_n "(cached) " >&6
1612fi
1613eval ac_res=\$$3
1614	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1615$as_echo "$ac_res" >&6; }
1616else
1617  # Is the header compilable?
1618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1619$as_echo_n "checking $2 usability... " >&6; }
1620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621/* end confdefs.h.  */
1622$4
1623#include <$2>
1624_ACEOF
1625if ac_fn_c_try_compile "$LINENO"; then :
1626  ac_header_compiler=yes
1627else
1628  ac_header_compiler=no
1629fi
1630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1632$as_echo "$ac_header_compiler" >&6; }
1633
1634# Is the header present?
1635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1636$as_echo_n "checking $2 presence... " >&6; }
1637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h.  */
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_cpp "$LINENO"; then :
1642  ac_header_preproc=yes
1643else
1644  ac_header_preproc=no
1645fi
1646rm -f conftest.err conftest.i conftest.$ac_ext
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1648$as_echo "$ac_header_preproc" >&6; }
1649
1650# So?  What about this header?
1651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1652  yes:no: )
1653    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1654$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1655    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657    ;;
1658  no:yes:* )
1659    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1660$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1661    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1662$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1663    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1664$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1665    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1666$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1667    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669( $as_echo "## ---------------------------------- ##
1670## Report this to christos@astron.com ##
1671## ---------------------------------- ##"
1672     ) | sed "s/^/$as_me: WARNING:     /" >&2
1673    ;;
1674esac
1675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676$as_echo_n "checking for $2... " >&6; }
1677if eval \${$3+:} false; then :
1678  $as_echo_n "(cached) " >&6
1679else
1680  eval "$3=\$ac_header_compiler"
1681fi
1682eval ac_res=\$$3
1683	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684$as_echo "$ac_res" >&6; }
1685fi
1686  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688} # ac_fn_c_check_header_mongrel
1689
1690# ac_fn_c_try_run LINENO
1691# ----------------------
1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693# that executables *can* be run.
1694ac_fn_c_try_run ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  if { { ac_try="$ac_link"
1698case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_link") 2>&5
1705  ac_status=$?
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708  { { case "(($ac_try" in
1709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710  *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714  (eval "$ac_try") 2>&5
1715  ac_status=$?
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; }; }; then :
1718  ac_retval=0
1719else
1720  $as_echo "$as_me: program exited with status $ac_status" >&5
1721       $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724       ac_retval=$ac_status
1725fi
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_run
1731
1732# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733# -------------------------------------------------------
1734# Tests whether HEADER exists and can be compiled using the include files in
1735# INCLUDES, setting the cache variable VAR accordingly.
1736ac_fn_c_check_header_compile ()
1737{
1738  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
1741if eval \${$3+:} false; then :
1742  $as_echo_n "(cached) " >&6
1743else
1744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h.  */
1746$4
1747#include <$2>
1748_ACEOF
1749if ac_fn_c_try_compile "$LINENO"; then :
1750  eval "$3=yes"
1751else
1752  eval "$3=no"
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755fi
1756eval ac_res=\$$3
1757	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758$as_echo "$ac_res" >&6; }
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761} # ac_fn_c_check_header_compile
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  rm -f conftest.$ac_objext conftest$ac_exeext
1770  if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773  *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777  (eval "$ac_link") 2>conftest.err
1778  ac_status=$?
1779  if test -s conftest.err; then
1780    grep -v '^ *+' conftest.err >conftest.er1
1781    cat conftest.er1 >&5
1782    mv -f conftest.er1 conftest.err
1783  fi
1784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785  test $ac_status = 0; } && {
1786	 test -z "$ac_c_werror_flag" ||
1787	 test ! -s conftest.err
1788       } && test -s conftest$ac_exeext && {
1789	 test "$cross_compiling" = yes ||
1790	 test -x conftest$ac_exeext
1791       }; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797	ac_retval=1
1798fi
1799  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801  # interfere with the next link command; also delete a directory that is
1802  # left behind by Apple's compiler.  We do this before executing the actions.
1803  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805  as_fn_set_status $ac_retval
1806
1807} # ac_fn_c_try_link
1808
1809# ac_fn_c_check_func LINENO FUNC VAR
1810# ----------------------------------
1811# Tests whether FUNC exists, setting the cache variable VAR accordingly
1812ac_fn_c_check_func ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if eval \${$3+:} false; then :
1818  $as_echo_n "(cached) " >&6
1819else
1820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h.  */
1822/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1824#define $2 innocuous_$2
1825
1826/* System header to define __stub macros and hopefully few prototypes,
1827    which can conflict with char $2 (); below.
1828    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829    <limits.h> exists even on freestanding compilers.  */
1830
1831#ifdef __STDC__
1832# include <limits.h>
1833#else
1834# include <assert.h>
1835#endif
1836
1837#undef $2
1838
1839/* Override any GCC internal prototype to avoid an error.
1840   Use char because int might match the return type of a GCC
1841   builtin and then its argument prototype would still apply.  */
1842#ifdef __cplusplus
1843extern "C"
1844#endif
1845char $2 ();
1846/* The GNU C library defines this for functions which it implements
1847    to always fail with ENOSYS.  Some functions are actually named
1848    something starting with __ and the normal name is an alias.  */
1849#if defined __stub_$2 || defined __stub___$2
1850choke me
1851#endif
1852
1853int
1854main ()
1855{
1856return $2 ();
1857  ;
1858  return 0;
1859}
1860_ACEOF
1861if ac_fn_c_try_link "$LINENO"; then :
1862  eval "$3=yes"
1863else
1864  eval "$3=no"
1865fi
1866rm -f core conftest.err conftest.$ac_objext \
1867    conftest$ac_exeext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_func
1875
1876# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1877# -------------------------------------------
1878# Tests whether TYPE exists after having included INCLUDES, setting cache
1879# variable VAR accordingly.
1880ac_fn_c_check_type ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if eval \${$3+:} false; then :
1886  $as_echo_n "(cached) " >&6
1887else
1888  eval "$3=no"
1889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h.  */
1891$4
1892int
1893main ()
1894{
1895if (sizeof ($2))
1896	 return 0;
1897  ;
1898  return 0;
1899}
1900_ACEOF
1901if ac_fn_c_try_compile "$LINENO"; then :
1902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h.  */
1904$4
1905int
1906main ()
1907{
1908if (sizeof (($2)))
1909	    return 0;
1910  ;
1911  return 0;
1912}
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915
1916else
1917  eval "$3=yes"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922fi
1923eval ac_res=\$$3
1924	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928} # ac_fn_c_check_type
1929
1930# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1931# ----------------------------------------------------
1932# Tries to find if the field MEMBER exists in type AGGR, after including
1933# INCLUDES, setting cache variable VAR accordingly.
1934ac_fn_c_check_member ()
1935{
1936  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1938$as_echo_n "checking for $2.$3... " >&6; }
1939if eval \${$4+:} false; then :
1940  $as_echo_n "(cached) " >&6
1941else
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$5
1945int
1946main ()
1947{
1948static $2 ac_aggr;
1949if (ac_aggr.$3)
1950return 0;
1951  ;
1952  return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956  eval "$4=yes"
1957else
1958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h.  */
1960$5
1961int
1962main ()
1963{
1964static $2 ac_aggr;
1965if (sizeof ac_aggr.$3)
1966return 0;
1967  ;
1968  return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_compile "$LINENO"; then :
1972  eval "$4=yes"
1973else
1974  eval "$4=no"
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980eval ac_res=\$$4
1981	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985} # ac_fn_c_check_member
1986
1987# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1988# ---------------------------------------------
1989# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1990# accordingly.
1991ac_fn_c_check_decl ()
1992{
1993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994  as_decl_name=`echo $2|sed 's/ *(.*//'`
1995  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1997$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1998if eval \${$3+:} false; then :
1999  $as_echo_n "(cached) " >&6
2000else
2001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h.  */
2003$4
2004int
2005main ()
2006{
2007#ifndef $as_decl_name
2008#ifdef __cplusplus
2009  (void) $as_decl_use;
2010#else
2011  (void) $as_decl_name;
2012#endif
2013#endif
2014
2015  ;
2016  return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020  eval "$3=yes"
2021else
2022  eval "$3=no"
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025fi
2026eval ac_res=\$$3
2027	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028$as_echo "$ac_res" >&6; }
2029  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030
2031} # ac_fn_c_check_decl
2032
2033# ac_fn_c_find_uintX_t LINENO BITS VAR
2034# ------------------------------------
2035# Finds an unsigned integer type with width BITS, setting cache variable VAR
2036# accordingly.
2037ac_fn_c_find_uintX_t ()
2038{
2039  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2041$as_echo_n "checking for uint$2_t... " >&6; }
2042if eval \${$3+:} false; then :
2043  $as_echo_n "(cached) " >&6
2044else
2045  eval "$3=no"
2046     # Order is important - never check a type that is potentially smaller
2047     # than half of the expected target width.
2048     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2049	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2050       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h.  */
2052$ac_includes_default
2053int
2054main ()
2055{
2056static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2057test_array [0] = 0;
2058return test_array [0];
2059
2060  ;
2061  return 0;
2062}
2063_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then :
2065  case $ac_type in #(
2066  uint$2_t) :
2067    eval "$3=yes" ;; #(
2068  *) :
2069    eval "$3=\$ac_type" ;;
2070esac
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073       if eval test \"x\$"$3"\" = x"no"; then :
2074
2075else
2076  break
2077fi
2078     done
2079fi
2080eval ac_res=\$$3
2081	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082$as_echo "$ac_res" >&6; }
2083  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084
2085} # ac_fn_c_find_uintX_t
2086
2087# ac_fn_c_find_intX_t LINENO BITS VAR
2088# -----------------------------------
2089# Finds a signed integer type with width BITS, setting cache variable VAR
2090# accordingly.
2091ac_fn_c_find_intX_t ()
2092{
2093  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2095$as_echo_n "checking for int$2_t... " >&6; }
2096if eval \${$3+:} false; then :
2097  $as_echo_n "(cached) " >&6
2098else
2099  eval "$3=no"
2100     # Order is important - never check a type that is potentially smaller
2101     # than half of the expected target width.
2102     for ac_type in int$2_t 'int' 'long int' \
2103	 'long long int' 'short int' 'signed char'; do
2104       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h.  */
2106$ac_includes_default
2107	     enum { N = $2 / 2 - 1 };
2108int
2109main ()
2110{
2111static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2112test_array [0] = 0;
2113return test_array [0];
2114
2115  ;
2116  return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122$ac_includes_default
2123	        enum { N = $2 / 2 - 1 };
2124int
2125main ()
2126{
2127static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2128		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2129test_array [0] = 0;
2130return test_array [0];
2131
2132  ;
2133  return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137
2138else
2139  case $ac_type in #(
2140  int$2_t) :
2141    eval "$3=yes" ;; #(
2142  *) :
2143    eval "$3=\$ac_type" ;;
2144esac
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149       if eval test \"x\$"$3"\" = x"no"; then :
2150
2151else
2152  break
2153fi
2154     done
2155fi
2156eval ac_res=\$$3
2157	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158$as_echo "$ac_res" >&6; }
2159  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160
2161} # ac_fn_c_find_intX_t
2162cat >config.log <<_ACEOF
2163This file contains any messages produced by compilers while
2164running configure, to aid debugging if configure makes a mistake.
2165
2166It was created by file $as_me 5.26, which was
2167generated by GNU Autoconf 2.69.  Invocation command line was
2168
2169  $ $0 $@
2170
2171_ACEOF
2172exec 5>>config.log
2173{
2174cat <<_ASUNAME
2175## --------- ##
2176## Platform. ##
2177## --------- ##
2178
2179hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2187
2188/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2189/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2190/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2192/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2193/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2194/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2195
2196_ASUNAME
2197
2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199for as_dir in $PATH
2200do
2201  IFS=$as_save_IFS
2202  test -z "$as_dir" && as_dir=.
2203    $as_echo "PATH: $as_dir"
2204  done
2205IFS=$as_save_IFS
2206
2207} >&5
2208
2209cat >&5 <<_ACEOF
2210
2211
2212## ----------- ##
2213## Core tests. ##
2214## ----------- ##
2215
2216_ACEOF
2217
2218
2219# Keep a trace of the command line.
2220# Strip out --no-create and --no-recursion so they do not pile up.
2221# Strip out --silent because we don't want to record it for future runs.
2222# Also quote any args containing shell meta-characters.
2223# Make two passes to allow for proper duplicate-argument suppression.
2224ac_configure_args=
2225ac_configure_args0=
2226ac_configure_args1=
2227ac_must_keep_next=false
2228for ac_pass in 1 2
2229do
2230  for ac_arg
2231  do
2232    case $ac_arg in
2233    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235    | -silent | --silent | --silen | --sile | --sil)
2236      continue ;;
2237    *\'*)
2238      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239    esac
2240    case $ac_pass in
2241    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2242    2)
2243      as_fn_append ac_configure_args1 " '$ac_arg'"
2244      if test $ac_must_keep_next = true; then
2245	ac_must_keep_next=false # Got value, back to normal.
2246      else
2247	case $ac_arg in
2248	  *=* | --config-cache | -C | -disable-* | --disable-* \
2249	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251	  | -with-* | --with-* | -without-* | --without-* | --x)
2252	    case "$ac_configure_args0 " in
2253	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254	    esac
2255	    ;;
2256	  -* ) ac_must_keep_next=true ;;
2257	esac
2258      fi
2259      as_fn_append ac_configure_args " '$ac_arg'"
2260      ;;
2261    esac
2262  done
2263done
2264{ ac_configure_args0=; unset ac_configure_args0;}
2265{ ac_configure_args1=; unset ac_configure_args1;}
2266
2267# When interrupted or exit'd, cleanup temporary files, and complete
2268# config.log.  We remove comments because anyway the quotes in there
2269# would cause problems or look ugly.
2270# WARNING: Use '\'' to represent an apostrophe within the trap.
2271# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272trap 'exit_status=$?
2273  # Save into config.log some information that might help in debugging.
2274  {
2275    echo
2276
2277    $as_echo "## ---------------- ##
2278## Cache variables. ##
2279## ---------------- ##"
2280    echo
2281    # The following way of writing the cache mishandles newlines in values,
2282(
2283  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284    eval ac_val=\$$ac_var
2285    case $ac_val in #(
2286    *${as_nl}*)
2287      case $ac_var in #(
2288      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290      esac
2291      case $ac_var in #(
2292      _ | IFS | as_nl) ;; #(
2293      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294      *) { eval $ac_var=; unset $ac_var;} ;;
2295      esac ;;
2296    esac
2297  done
2298  (set) 2>&1 |
2299    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300    *${as_nl}ac_space=\ *)
2301      sed -n \
2302	"s/'\''/'\''\\\\'\'''\''/g;
2303	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304      ;; #(
2305    *)
2306      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307      ;;
2308    esac |
2309    sort
2310)
2311    echo
2312
2313    $as_echo "## ----------------- ##
2314## Output variables. ##
2315## ----------------- ##"
2316    echo
2317    for ac_var in $ac_subst_vars
2318    do
2319      eval ac_val=\$$ac_var
2320      case $ac_val in
2321      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322      esac
2323      $as_echo "$ac_var='\''$ac_val'\''"
2324    done | sort
2325    echo
2326
2327    if test -n "$ac_subst_files"; then
2328      $as_echo "## ------------------- ##
2329## File substitutions. ##
2330## ------------------- ##"
2331      echo
2332      for ac_var in $ac_subst_files
2333      do
2334	eval ac_val=\$$ac_var
2335	case $ac_val in
2336	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337	esac
2338	$as_echo "$ac_var='\''$ac_val'\''"
2339      done | sort
2340      echo
2341    fi
2342
2343    if test -s confdefs.h; then
2344      $as_echo "## ----------- ##
2345## confdefs.h. ##
2346## ----------- ##"
2347      echo
2348      cat confdefs.h
2349      echo
2350    fi
2351    test "$ac_signal" != 0 &&
2352      $as_echo "$as_me: caught signal $ac_signal"
2353    $as_echo "$as_me: exit $exit_status"
2354  } >&5
2355  rm -f core *.core core.conftest.* &&
2356    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357    exit $exit_status
2358' 0
2359for ac_signal in 1 2 13 15; do
2360  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2361done
2362ac_signal=0
2363
2364# confdefs.h avoids OS command line length limits that DEFS can exceed.
2365rm -f -r conftest* confdefs.h
2366
2367$as_echo "/* confdefs.h */" > confdefs.h
2368
2369# Predefined preprocessor variables.
2370
2371cat >>confdefs.h <<_ACEOF
2372#define PACKAGE_NAME "$PACKAGE_NAME"
2373_ACEOF
2374
2375cat >>confdefs.h <<_ACEOF
2376#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377_ACEOF
2378
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_VERSION "$PACKAGE_VERSION"
2381_ACEOF
2382
2383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_STRING "$PACKAGE_STRING"
2385_ACEOF
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_URL "$PACKAGE_URL"
2393_ACEOF
2394
2395
2396# Let the site file select an alternate cache file if it wants to.
2397# Prefer an explicitly selected file to automatically selected ones.
2398ac_site_file1=NONE
2399ac_site_file2=NONE
2400if test -n "$CONFIG_SITE"; then
2401  # We do not want a PATH search for config.site.
2402  case $CONFIG_SITE in #((
2403    -*)  ac_site_file1=./$CONFIG_SITE;;
2404    */*) ac_site_file1=$CONFIG_SITE;;
2405    *)   ac_site_file1=./$CONFIG_SITE;;
2406  esac
2407elif test "x$prefix" != xNONE; then
2408  ac_site_file1=$prefix/share/config.site
2409  ac_site_file2=$prefix/etc/config.site
2410else
2411  ac_site_file1=$ac_default_prefix/share/config.site
2412  ac_site_file2=$ac_default_prefix/etc/config.site
2413fi
2414for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415do
2416  test "x$ac_site_file" = xNONE && continue
2417  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420    sed 's/^/| /' "$ac_site_file" >&5
2421    . "$ac_site_file" \
2422      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424as_fn_error $? "failed to load site script $ac_site_file
2425See \`config.log' for more details" "$LINENO" 5; }
2426  fi
2427done
2428
2429if test -r "$cache_file"; then
2430  # Some versions of bash will fail to source /dev/null (special files
2431  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2432  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434$as_echo "$as_me: loading cache $cache_file" >&6;}
2435    case $cache_file in
2436      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437      *)                      . "./$cache_file";;
2438    esac
2439  fi
2440else
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442$as_echo "$as_me: creating cache $cache_file" >&6;}
2443  >$cache_file
2444fi
2445
2446as_fn_append ac_header_list " stdlib.h"
2447as_fn_append ac_header_list " unistd.h"
2448as_fn_append ac_header_list " sys/param.h"
2449# Check that the precious variables saved in the cache have kept the same
2450# value.
2451ac_cache_corrupted=false
2452for ac_var in $ac_precious_vars; do
2453  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2454  eval ac_new_set=\$ac_env_${ac_var}_set
2455  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2456  eval ac_new_val=\$ac_env_${ac_var}_value
2457  case $ac_old_set,$ac_new_set in
2458    set,)
2459      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2460$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2461      ac_cache_corrupted=: ;;
2462    ,set)
2463      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2464$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2465      ac_cache_corrupted=: ;;
2466    ,);;
2467    *)
2468      if test "x$ac_old_val" != "x$ac_new_val"; then
2469	# differences in whitespace do not lead to failure.
2470	ac_old_val_w=`echo x $ac_old_val`
2471	ac_new_val_w=`echo x $ac_new_val`
2472	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2473	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2474$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2475	  ac_cache_corrupted=:
2476	else
2477	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2478$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2479	  eval $ac_var=\$ac_old_val
2480	fi
2481	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2482$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2483	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2484$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2485      fi;;
2486  esac
2487  # Pass precious variables to config.status.
2488  if test "$ac_new_set" = set; then
2489    case $ac_new_val in
2490    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2491    *) ac_arg=$ac_var=$ac_new_val ;;
2492    esac
2493    case " $ac_configure_args " in
2494      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2495      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2496    esac
2497  fi
2498done
2499if $ac_cache_corrupted; then
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2503$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2504  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2505fi
2506## -------------------- ##
2507## Main body of script. ##
2508## -------------------- ##
2509
2510ac_ext=c
2511ac_cpp='$CPP $CPPFLAGS'
2512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515
2516
2517am__api_version='1.15'
2518
2519ac_aux_dir=
2520for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2521  if test -f "$ac_dir/install-sh"; then
2522    ac_aux_dir=$ac_dir
2523    ac_install_sh="$ac_aux_dir/install-sh -c"
2524    break
2525  elif test -f "$ac_dir/install.sh"; then
2526    ac_aux_dir=$ac_dir
2527    ac_install_sh="$ac_aux_dir/install.sh -c"
2528    break
2529  elif test -f "$ac_dir/shtool"; then
2530    ac_aux_dir=$ac_dir
2531    ac_install_sh="$ac_aux_dir/shtool install -c"
2532    break
2533  fi
2534done
2535if test -z "$ac_aux_dir"; then
2536  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2537fi
2538
2539# These three variables are undocumented and unsupported,
2540# and are intended to be withdrawn in a future Autoconf release.
2541# They can cause serious problems if a builder's source tree is in a directory
2542# whose full name contains unusual characters.
2543ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2544ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2545ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2546
2547
2548# Find a good install program.  We prefer a C program (faster),
2549# so one script is as good as another.  But avoid the broken or
2550# incompatible versions:
2551# SysV /etc/install, /usr/sbin/install
2552# SunOS /usr/etc/install
2553# IRIX /sbin/install
2554# AIX /bin/install
2555# AmigaOS /C/install, which installs bootblocks on floppy discs
2556# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2557# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2558# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2559# OS/2's system install, which has a completely different semantic
2560# ./install, which can be erroneously created by make from ./install.sh.
2561# Reject install programs that cannot install multiple files.
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2563$as_echo_n "checking for a BSD-compatible install... " >&6; }
2564if test -z "$INSTALL"; then
2565if ${ac_cv_path_install+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571  IFS=$as_save_IFS
2572  test -z "$as_dir" && as_dir=.
2573    # Account for people who put trailing slashes in PATH elements.
2574case $as_dir/ in #((
2575  ./ | .// | /[cC]/* | \
2576  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2577  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2578  /usr/ucb/* ) ;;
2579  *)
2580    # OSF1 and SCO ODT 3.0 have their own names for install.
2581    # Don't use installbsd from OSF since it installs stuff as root
2582    # by default.
2583    for ac_prog in ginstall scoinst install; do
2584      for ac_exec_ext in '' $ac_executable_extensions; do
2585	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2586	  if test $ac_prog = install &&
2587	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2588	    # AIX install.  It has an incompatible calling convention.
2589	    :
2590	  elif test $ac_prog = install &&
2591	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2592	    # program-specific install script used by HP pwplus--don't use.
2593	    :
2594	  else
2595	    rm -rf conftest.one conftest.two conftest.dir
2596	    echo one > conftest.one
2597	    echo two > conftest.two
2598	    mkdir conftest.dir
2599	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2600	      test -s conftest.one && test -s conftest.two &&
2601	      test -s conftest.dir/conftest.one &&
2602	      test -s conftest.dir/conftest.two
2603	    then
2604	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2605	      break 3
2606	    fi
2607	  fi
2608	fi
2609      done
2610    done
2611    ;;
2612esac
2613
2614  done
2615IFS=$as_save_IFS
2616
2617rm -rf conftest.one conftest.two conftest.dir
2618
2619fi
2620  if test "${ac_cv_path_install+set}" = set; then
2621    INSTALL=$ac_cv_path_install
2622  else
2623    # As a last resort, use the slow shell script.  Don't cache a
2624    # value for INSTALL within a source directory, because that will
2625    # break other packages using the cache if that directory is
2626    # removed, or if the value is a relative name.
2627    INSTALL=$ac_install_sh
2628  fi
2629fi
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2631$as_echo "$INSTALL" >&6; }
2632
2633# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2634# It thinks the first close brace ends the variable substitution.
2635test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2636
2637test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2638
2639test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2640
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2642$as_echo_n "checking whether build environment is sane... " >&6; }
2643# Reject unsafe characters in $srcdir or the absolute working directory
2644# name.  Accept space and tab only in the latter.
2645am_lf='
2646'
2647case `pwd` in
2648  *[\\\"\#\$\&\'\`$am_lf]*)
2649    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2650esac
2651case $srcdir in
2652  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2653    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2654esac
2655
2656# Do 'set' in a subshell so we don't clobber the current shell's
2657# arguments.  Must try -L first in case configure is actually a
2658# symlink; some systems play weird games with the mod time of symlinks
2659# (eg FreeBSD returns the mod time of the symlink's containing
2660# directory).
2661if (
2662   am_has_slept=no
2663   for am_try in 1 2; do
2664     echo "timestamp, slept: $am_has_slept" > conftest.file
2665     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2666     if test "$*" = "X"; then
2667	# -L didn't work.
2668	set X `ls -t "$srcdir/configure" conftest.file`
2669     fi
2670     if test "$*" != "X $srcdir/configure conftest.file" \
2671	&& test "$*" != "X conftest.file $srcdir/configure"; then
2672
2673	# If neither matched, then we have a broken ls.  This can happen
2674	# if, for instance, CONFIG_SHELL is bash and it inherits a
2675	# broken ls alias from the environment.  This has actually
2676	# happened.  Such a system could not be considered "sane".
2677	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2678  alias in your environment" "$LINENO" 5
2679     fi
2680     if test "$2" = conftest.file || test $am_try -eq 2; then
2681       break
2682     fi
2683     # Just in case.
2684     sleep 1
2685     am_has_slept=yes
2686   done
2687   test "$2" = conftest.file
2688   )
2689then
2690   # Ok.
2691   :
2692else
2693   as_fn_error $? "newly created file is older than distributed files!
2694Check your system clock" "$LINENO" 5
2695fi
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2697$as_echo "yes" >&6; }
2698# If we didn't sleep, we still need to ensure time stamps of config.status and
2699# generated files are strictly newer.
2700am_sleep_pid=
2701if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2702  ( sleep 1 ) &
2703  am_sleep_pid=$!
2704fi
2705
2706rm -f conftest.file
2707
2708test "$program_prefix" != NONE &&
2709  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2710# Use a double $ so make ignores it.
2711test "$program_suffix" != NONE &&
2712  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2713# Double any \ or $.
2714# By default was `s,x,x', remove it if useless.
2715ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2716program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2717
2718# Expand $ac_aux_dir to an absolute path.
2719am_aux_dir=`cd "$ac_aux_dir" && pwd`
2720
2721if test x"${MISSING+set}" != xset; then
2722  case $am_aux_dir in
2723  *\ * | *\	*)
2724    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2725  *)
2726    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2727  esac
2728fi
2729# Use eval to expand $SHELL
2730if eval "$MISSING --is-lightweight"; then
2731  am_missing_run="$MISSING "
2732else
2733  am_missing_run=
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2735$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2736fi
2737
2738if test x"${install_sh+set}" != xset; then
2739  case $am_aux_dir in
2740  *\ * | *\	*)
2741    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2742  *)
2743    install_sh="\${SHELL} $am_aux_dir/install-sh"
2744  esac
2745fi
2746
2747# Installed binaries are usually stripped using 'strip' when the user
2748# run "make install-strip".  However 'strip' might not be the right
2749# tool to use in cross-compilation environments, therefore Automake
2750# will honor the 'STRIP' environment variable to overrule this program.
2751if test "$cross_compiling" != no; then
2752  if test -n "$ac_tool_prefix"; then
2753  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2754set dummy ${ac_tool_prefix}strip; ac_word=$2
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if ${ac_cv_prog_STRIP+:} false; then :
2758  $as_echo_n "(cached) " >&6
2759else
2760  if test -n "$STRIP"; then
2761  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766  IFS=$as_save_IFS
2767  test -z "$as_dir" && as_dir=.
2768    for ac_exec_ext in '' $ac_executable_extensions; do
2769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772    break 2
2773  fi
2774done
2775  done
2776IFS=$as_save_IFS
2777
2778fi
2779fi
2780STRIP=$ac_cv_prog_STRIP
2781if test -n "$STRIP"; then
2782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2783$as_echo "$STRIP" >&6; }
2784else
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786$as_echo "no" >&6; }
2787fi
2788
2789
2790fi
2791if test -z "$ac_cv_prog_STRIP"; then
2792  ac_ct_STRIP=$STRIP
2793  # Extract the first word of "strip", so it can be a program name with args.
2794set dummy strip; ac_word=$2
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2798  $as_echo_n "(cached) " >&6
2799else
2800  if test -n "$ac_ct_STRIP"; then
2801  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808    for ac_exec_ext in '' $ac_executable_extensions; do
2809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810    ac_cv_prog_ac_ct_STRIP="strip"
2811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812    break 2
2813  fi
2814done
2815  done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2821if test -n "$ac_ct_STRIP"; then
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2823$as_echo "$ac_ct_STRIP" >&6; }
2824else
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829  if test "x$ac_ct_STRIP" = x; then
2830    STRIP=":"
2831  else
2832    case $cross_compiling:$ac_tool_warned in
2833yes:)
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836ac_tool_warned=yes ;;
2837esac
2838    STRIP=$ac_ct_STRIP
2839  fi
2840else
2841  STRIP="$ac_cv_prog_STRIP"
2842fi
2843
2844fi
2845INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2846
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2848$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2849if test -z "$MKDIR_P"; then
2850  if ${ac_cv_path_mkdir+:} false; then :
2851  $as_echo_n "(cached) " >&6
2852else
2853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2855do
2856  IFS=$as_save_IFS
2857  test -z "$as_dir" && as_dir=.
2858    for ac_prog in mkdir gmkdir; do
2859	 for ac_exec_ext in '' $ac_executable_extensions; do
2860	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2861	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2862	     'mkdir (GNU coreutils) '* | \
2863	     'mkdir (coreutils) '* | \
2864	     'mkdir (fileutils) '4.1*)
2865	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2866	       break 3;;
2867	   esac
2868	 done
2869       done
2870  done
2871IFS=$as_save_IFS
2872
2873fi
2874
2875  test -d ./--version && rmdir ./--version
2876  if test "${ac_cv_path_mkdir+set}" = set; then
2877    MKDIR_P="$ac_cv_path_mkdir -p"
2878  else
2879    # As a last resort, use the slow shell script.  Don't cache a
2880    # value for MKDIR_P within a source directory, because that will
2881    # break other packages using the cache if that directory is
2882    # removed, or if the value is a relative name.
2883    MKDIR_P="$ac_install_sh -d"
2884  fi
2885fi
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2887$as_echo "$MKDIR_P" >&6; }
2888
2889for ac_prog in gawk mawk nawk awk
2890do
2891  # Extract the first word of "$ac_prog", so it can be a program name with args.
2892set dummy $ac_prog; ac_word=$2
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if ${ac_cv_prog_AWK+:} false; then :
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test -n "$AWK"; then
2899  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906    for ac_exec_ext in '' $ac_executable_extensions; do
2907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908    ac_cv_prog_AWK="$ac_prog"
2909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918AWK=$ac_cv_prog_AWK
2919if test -n "$AWK"; then
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2921$as_echo "$AWK" >&6; }
2922else
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927
2928  test -n "$AWK" && break
2929done
2930
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2932$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2933set x ${MAKE-make}
2934ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2935if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  cat >conftest.make <<\_ACEOF
2939SHELL = /bin/sh
2940all:
2941	@echo '@@@%%%=$(MAKE)=@@@%%%'
2942_ACEOF
2943# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2944case `${MAKE-make} -f conftest.make 2>/dev/null` in
2945  *@@@%%%=?*=@@@%%%*)
2946    eval ac_cv_prog_make_${ac_make}_set=yes;;
2947  *)
2948    eval ac_cv_prog_make_${ac_make}_set=no;;
2949esac
2950rm -f conftest.make
2951fi
2952if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2954$as_echo "yes" >&6; }
2955  SET_MAKE=
2956else
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958$as_echo "no" >&6; }
2959  SET_MAKE="MAKE=${MAKE-make}"
2960fi
2961
2962rm -rf .tst 2>/dev/null
2963mkdir .tst 2>/dev/null
2964if test -d .tst; then
2965  am__leading_dot=.
2966else
2967  am__leading_dot=_
2968fi
2969rmdir .tst 2>/dev/null
2970
2971# Check whether --enable-silent-rules was given.
2972if test "${enable_silent_rules+set}" = set; then :
2973  enableval=$enable_silent_rules;
2974fi
2975
2976case $enable_silent_rules in # (((
2977  yes) AM_DEFAULT_VERBOSITY=0;;
2978   no) AM_DEFAULT_VERBOSITY=1;;
2979    *) AM_DEFAULT_VERBOSITY=1;;
2980esac
2981am_make=${MAKE-make}
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2983$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2984if ${am_cv_make_support_nested_variables+:} false; then :
2985  $as_echo_n "(cached) " >&6
2986else
2987  if $as_echo 'TRUE=$(BAR$(V))
2988BAR0=false
2989BAR1=true
2990V=1
2991am__doit:
2992	@$(TRUE)
2993.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2994  am_cv_make_support_nested_variables=yes
2995else
2996  am_cv_make_support_nested_variables=no
2997fi
2998fi
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3000$as_echo "$am_cv_make_support_nested_variables" >&6; }
3001if test $am_cv_make_support_nested_variables = yes; then
3002    AM_V='$(V)'
3003  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3004else
3005  AM_V=$AM_DEFAULT_VERBOSITY
3006  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3007fi
3008AM_BACKSLASH='\'
3009
3010if test "`cd $srcdir && pwd`" != "`pwd`"; then
3011  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3012  # is not polluted with repeated "-I."
3013  am__isrc=' -I$(srcdir)'
3014  # test to see if srcdir already configured
3015  if test -f $srcdir/config.status; then
3016    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3017  fi
3018fi
3019
3020# test whether we have cygpath
3021if test -z "$CYGPATH_W"; then
3022  if (cygpath --version) >/dev/null 2>/dev/null; then
3023    CYGPATH_W='cygpath -w'
3024  else
3025    CYGPATH_W=echo
3026  fi
3027fi
3028
3029
3030# Define the identity of the package.
3031 PACKAGE='file'
3032 VERSION='5.26'
3033
3034
3035cat >>confdefs.h <<_ACEOF
3036#define PACKAGE "$PACKAGE"
3037_ACEOF
3038
3039
3040cat >>confdefs.h <<_ACEOF
3041#define VERSION "$VERSION"
3042_ACEOF
3043
3044# Some tools Automake needs.
3045
3046ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3047
3048
3049AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3050
3051
3052AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3053
3054
3055AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3056
3057
3058MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3059
3060# For better backward compatibility.  To be removed once Automake 1.9.x
3061# dies out for good.  For more background, see:
3062# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3063# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3064mkdir_p='$(MKDIR_P)'
3065
3066# We need awk for the "check" target (and possibly the TAP driver).  The
3067# system "awk" is bad on some platforms.
3068# Always define AMTAR for backward compatibility.  Yes, it's still used
3069# in the wild :-(  We should find a proper way to deprecate it ...
3070AMTAR='$${TAR-tar}'
3071
3072
3073# We'll loop over all known methods to create a tar archive until one works.
3074_am_tools='gnutar  pax cpio none'
3075
3076am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3077
3078
3079
3080
3081
3082
3083# POSIX will say in a future version that running "rm -f" with no argument
3084# is OK; and we want to be able to make that assumption in our Makefile
3085# recipes.  So use an aggressive probe to check that the usage we want is
3086# actually supported "in the wild" to an acceptable degree.
3087# See automake bug#10828.
3088# To make any issue more visible, cause the running configure to be aborted
3089# by default if the 'rm' program in use doesn't match our expectations; the
3090# user can still override this though.
3091if rm -f && rm -fr && rm -rf; then : OK; else
3092  cat >&2 <<'END'
3093Oops!
3094
3095Your 'rm' program seems unable to run without file operands specified
3096on the command line, even when the '-f' option is present.  This is contrary
3097to the behaviour of most rm programs out there, and not conforming with
3098the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3099
3100Please tell bug-automake@gnu.org about your system, including the value
3101of your $PATH and any error possibly output before this message.  This
3102can help us improve future automake versions.
3103
3104END
3105  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3106    echo 'Configuration will proceed anyway, since you have set the' >&2
3107    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3108    echo >&2
3109  else
3110    cat >&2 <<'END'
3111Aborting the configuration process, to ensure you take notice of the issue.
3112
3113You can download and install GNU coreutils to get an 'rm' implementation
3114that behaves properly: <http://www.gnu.org/software/coreutils/>.
3115
3116If you want to complete the configuration process using your problematic
3117'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3118to "yes", and re-run configure.
3119
3120END
3121    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3122  fi
3123fi
3124
3125# Check whether --enable-silent-rules was given.
3126if test "${enable_silent_rules+set}" = set; then :
3127  enableval=$enable_silent_rules;
3128fi
3129
3130case $enable_silent_rules in # (((
3131  yes) AM_DEFAULT_VERBOSITY=0;;
3132   no) AM_DEFAULT_VERBOSITY=1;;
3133    *) AM_DEFAULT_VERBOSITY=0;;
3134esac
3135am_make=${MAKE-make}
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3137$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3138if ${am_cv_make_support_nested_variables+:} false; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141  if $as_echo 'TRUE=$(BAR$(V))
3142BAR0=false
3143BAR1=true
3144V=1
3145am__doit:
3146	@$(TRUE)
3147.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3148  am_cv_make_support_nested_variables=yes
3149else
3150  am_cv_make_support_nested_variables=no
3151fi
3152fi
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3154$as_echo "$am_cv_make_support_nested_variables" >&6; }
3155if test $am_cv_make_support_nested_variables = yes; then
3156    AM_V='$(V)'
3157  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3158else
3159  AM_V=$AM_DEFAULT_VERBOSITY
3160  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3161fi
3162AM_BACKSLASH='\'
3163
3164
3165ac_config_headers="$ac_config_headers config.h"
3166
3167
3168
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3170$as_echo_n "checking for builtin ELF support... " >&6; }
3171# Check whether --enable-elf was given.
3172if test "${enable_elf+set}" = set; then :
3173  enableval=$enable_elf; if test "${enableval}" = yes; then
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175$as_echo "yes" >&6; }
3176
3177$as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3178
3179else
3180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182fi
3183else
3184
3185  # enable by default
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187$as_echo "yes" >&6; }
3188
3189$as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3190
3191
3192fi
3193
3194
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3196$as_echo_n "checking for ELF core file support... " >&6; }
3197# Check whether --enable-elf-core was given.
3198if test "${enable_elf_core+set}" = set; then :
3199  enableval=$enable_elf_core; if test "${enableval}" = yes; then
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201$as_echo "yes" >&6; }
3202
3203$as_echo "#define ELFCORE 1" >>confdefs.h
3204
3205else
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208fi
3209else
3210
3211  # enable by default
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213$as_echo "yes" >&6; }
3214
3215$as_echo "#define ELFCORE 1" >>confdefs.h
3216
3217
3218fi
3219
3220
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3222$as_echo_n "checking for file formats in man section 5... " >&6; }
3223# Check whether --enable-fsect-man5 was given.
3224if test "${enable_fsect_man5+set}" = set; then :
3225  enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227$as_echo "yes" >&6; }
3228  fsect=5
3229else
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231$as_echo "no" >&6; }
3232  fsect=4
3233fi
3234else
3235
3236  # disable by default
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239  fsect=4
3240
3241fi
3242
3243
3244# Make sure we can run config.sub.
3245$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3246  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3247
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3249$as_echo_n "checking build system type... " >&6; }
3250if ${ac_cv_build+:} false; then :
3251  $as_echo_n "(cached) " >&6
3252else
3253  ac_build_alias=$build_alias
3254test "x$ac_build_alias" = x &&
3255  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3256test "x$ac_build_alias" = x &&
3257  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3258ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3259  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3260
3261fi
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3263$as_echo "$ac_cv_build" >&6; }
3264case $ac_cv_build in
3265*-*-*) ;;
3266*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3267esac
3268build=$ac_cv_build
3269ac_save_IFS=$IFS; IFS='-'
3270set x $ac_cv_build
3271shift
3272build_cpu=$1
3273build_vendor=$2
3274shift; shift
3275# Remember, the first character of IFS is used to create $*,
3276# except with old shells:
3277build_os=$*
3278IFS=$ac_save_IFS
3279case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3280
3281
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3283$as_echo_n "checking host system type... " >&6; }
3284if ${ac_cv_host+:} false; then :
3285  $as_echo_n "(cached) " >&6
3286else
3287  if test "x$host_alias" = x; then
3288  ac_cv_host=$ac_cv_build
3289else
3290  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3291    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3292fi
3293
3294fi
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3296$as_echo "$ac_cv_host" >&6; }
3297case $ac_cv_host in
3298*-*-*) ;;
3299*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3300esac
3301host=$ac_cv_host
3302ac_save_IFS=$IFS; IFS='-'
3303set x $ac_cv_host
3304shift
3305host_cpu=$1
3306host_vendor=$2
3307shift; shift
3308# Remember, the first character of IFS is used to create $*,
3309# except with old shells:
3310host_os=$*
3311IFS=$ac_save_IFS
3312case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3313
3314
3315case "$host_os" in
3316   mingw32*)
3317      MINGW=1
3318      ;;
3319   *)
3320      MINGW=0
3321      ;;
3322esac
3323
3324 if test "$MINGW" = 1; then
3325  MINGW_TRUE=
3326  MINGW_FALSE='#'
3327else
3328  MINGW_TRUE='#'
3329  MINGW_FALSE=
3330fi
3331
3332
3333pkgdatadir='$(datadir)/misc'
3334
3335
3336 if test x$fsect = x5; then
3337  FSECT5_TRUE=
3338  FSECT5_FALSE='#'
3339else
3340  FSECT5_TRUE='#'
3341  FSECT5_FALSE=
3342fi
3343
3344
3345
3346
3347DEPDIR="${am__leading_dot}deps"
3348
3349ac_config_commands="$ac_config_commands depfiles"
3350
3351
3352am_make=${MAKE-make}
3353cat > confinc << 'END'
3354am__doit:
3355	@echo this is the am__doit target
3356.PHONY: am__doit
3357END
3358# If we don't find an include directive, just comment out the code.
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3360$as_echo_n "checking for style of include used by $am_make... " >&6; }
3361am__include="#"
3362am__quote=
3363_am_result=none
3364# First try GNU make style include.
3365echo "include confinc" > confmf
3366# Ignore all kinds of additional output from 'make'.
3367case `$am_make -s -f confmf 2> /dev/null` in #(
3368*the\ am__doit\ target*)
3369  am__include=include
3370  am__quote=
3371  _am_result=GNU
3372  ;;
3373esac
3374# Now try BSD make style include.
3375if test "$am__include" = "#"; then
3376   echo '.include "confinc"' > confmf
3377   case `$am_make -s -f confmf 2> /dev/null` in #(
3378   *the\ am__doit\ target*)
3379     am__include=.include
3380     am__quote="\""
3381     _am_result=BSD
3382     ;;
3383   esac
3384fi
3385
3386
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3388$as_echo "$_am_result" >&6; }
3389rm -f confinc confmf
3390
3391# Check whether --enable-dependency-tracking was given.
3392if test "${enable_dependency_tracking+set}" = set; then :
3393  enableval=$enable_dependency_tracking;
3394fi
3395
3396if test "x$enable_dependency_tracking" != xno; then
3397  am_depcomp="$ac_aux_dir/depcomp"
3398  AMDEPBACKSLASH='\'
3399  am__nodep='_no'
3400fi
3401 if test "x$enable_dependency_tracking" != xno; then
3402  AMDEP_TRUE=
3403  AMDEP_FALSE='#'
3404else
3405  AMDEP_TRUE='#'
3406  AMDEP_FALSE=
3407fi
3408
3409
3410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415if test -n "$ac_tool_prefix"; then
3416  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3417set dummy ${ac_tool_prefix}gcc; ac_word=$2
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419$as_echo_n "checking for $ac_word... " >&6; }
3420if ${ac_cv_prog_CC+:} false; then :
3421  $as_echo_n "(cached) " >&6
3422else
3423  if test -n "$CC"; then
3424  ac_cv_prog_CC="$CC" # Let the user override the test.
3425else
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429  IFS=$as_save_IFS
3430  test -z "$as_dir" && as_dir=.
3431    for ac_exec_ext in '' $ac_executable_extensions; do
3432  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435    break 2
3436  fi
3437done
3438  done
3439IFS=$as_save_IFS
3440
3441fi
3442fi
3443CC=$ac_cv_prog_CC
3444if test -n "$CC"; then
3445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446$as_echo "$CC" >&6; }
3447else
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449$as_echo "no" >&6; }
3450fi
3451
3452
3453fi
3454if test -z "$ac_cv_prog_CC"; then
3455  ac_ct_CC=$CC
3456  # Extract the first word of "gcc", so it can be a program name with args.
3457set dummy gcc; ac_word=$2
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459$as_echo_n "checking for $ac_word... " >&6; }
3460if ${ac_cv_prog_ac_ct_CC+:} false; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  if test -n "$ac_ct_CC"; then
3464  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3465else
3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH
3468do
3469  IFS=$as_save_IFS
3470  test -z "$as_dir" && as_dir=.
3471    for ac_exec_ext in '' $ac_executable_extensions; do
3472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473    ac_cv_prog_ac_ct_CC="gcc"
3474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475    break 2
3476  fi
3477done
3478  done
3479IFS=$as_save_IFS
3480
3481fi
3482fi
3483ac_ct_CC=$ac_cv_prog_ac_ct_CC
3484if test -n "$ac_ct_CC"; then
3485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3486$as_echo "$ac_ct_CC" >&6; }
3487else
3488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489$as_echo "no" >&6; }
3490fi
3491
3492  if test "x$ac_ct_CC" = x; then
3493    CC=""
3494  else
3495    case $cross_compiling:$ac_tool_warned in
3496yes:)
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499ac_tool_warned=yes ;;
3500esac
3501    CC=$ac_ct_CC
3502  fi
3503else
3504  CC="$ac_cv_prog_CC"
3505fi
3506
3507if test -z "$CC"; then
3508          if test -n "$ac_tool_prefix"; then
3509    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3510set dummy ${ac_tool_prefix}cc; ac_word=$2
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512$as_echo_n "checking for $ac_word... " >&6; }
3513if ${ac_cv_prog_CC+:} false; then :
3514  $as_echo_n "(cached) " >&6
3515else
3516  if test -n "$CC"; then
3517  ac_cv_prog_CC="$CC" # Let the user override the test.
3518else
3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522  IFS=$as_save_IFS
3523  test -z "$as_dir" && as_dir=.
3524    for ac_exec_ext in '' $ac_executable_extensions; do
3525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526    ac_cv_prog_CC="${ac_tool_prefix}cc"
3527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528    break 2
3529  fi
3530done
3531  done
3532IFS=$as_save_IFS
3533
3534fi
3535fi
3536CC=$ac_cv_prog_CC
3537if test -n "$CC"; then
3538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539$as_echo "$CC" >&6; }
3540else
3541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542$as_echo "no" >&6; }
3543fi
3544
3545
3546  fi
3547fi
3548if test -z "$CC"; then
3549  # Extract the first word of "cc", so it can be a program name with args.
3550set dummy cc; ac_word=$2
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552$as_echo_n "checking for $ac_word... " >&6; }
3553if ${ac_cv_prog_CC+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  if test -n "$CC"; then
3557  ac_cv_prog_CC="$CC" # Let the user override the test.
3558else
3559  ac_prog_rejected=no
3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563  IFS=$as_save_IFS
3564  test -z "$as_dir" && as_dir=.
3565    for ac_exec_ext in '' $ac_executable_extensions; do
3566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3568       ac_prog_rejected=yes
3569       continue
3570     fi
3571    ac_cv_prog_CC="cc"
3572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573    break 2
3574  fi
3575done
3576  done
3577IFS=$as_save_IFS
3578
3579if test $ac_prog_rejected = yes; then
3580  # We found a bogon in the path, so make sure we never use it.
3581  set dummy $ac_cv_prog_CC
3582  shift
3583  if test $# != 0; then
3584    # We chose a different compiler from the bogus one.
3585    # However, it has the same basename, so the bogon will be chosen
3586    # first if we set CC to just the basename; use the full file name.
3587    shift
3588    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3589  fi
3590fi
3591fi
3592fi
3593CC=$ac_cv_prog_CC
3594if test -n "$CC"; then
3595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596$as_echo "$CC" >&6; }
3597else
3598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599$as_echo "no" >&6; }
3600fi
3601
3602
3603fi
3604if test -z "$CC"; then
3605  if test -n "$ac_tool_prefix"; then
3606  for ac_prog in cl.exe
3607  do
3608    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3609set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611$as_echo_n "checking for $ac_word... " >&6; }
3612if ${ac_cv_prog_CC+:} false; then :
3613  $as_echo_n "(cached) " >&6
3614else
3615  if test -n "$CC"; then
3616  ac_cv_prog_CC="$CC" # Let the user override the test.
3617else
3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619for as_dir in $PATH
3620do
3621  IFS=$as_save_IFS
3622  test -z "$as_dir" && as_dir=.
3623    for ac_exec_ext in '' $ac_executable_extensions; do
3624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627    break 2
3628  fi
3629done
3630  done
3631IFS=$as_save_IFS
3632
3633fi
3634fi
3635CC=$ac_cv_prog_CC
3636if test -n "$CC"; then
3637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638$as_echo "$CC" >&6; }
3639else
3640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641$as_echo "no" >&6; }
3642fi
3643
3644
3645    test -n "$CC" && break
3646  done
3647fi
3648if test -z "$CC"; then
3649  ac_ct_CC=$CC
3650  for ac_prog in cl.exe
3651do
3652  # Extract the first word of "$ac_prog", so it can be a program name with args.
3653set dummy $ac_prog; ac_word=$2
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655$as_echo_n "checking for $ac_word... " >&6; }
3656if ${ac_cv_prog_ac_ct_CC+:} false; then :
3657  $as_echo_n "(cached) " >&6
3658else
3659  if test -n "$ac_ct_CC"; then
3660  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3661else
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665  IFS=$as_save_IFS
3666  test -z "$as_dir" && as_dir=.
3667    for ac_exec_ext in '' $ac_executable_extensions; do
3668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669    ac_cv_prog_ac_ct_CC="$ac_prog"
3670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671    break 2
3672  fi
3673done
3674  done
3675IFS=$as_save_IFS
3676
3677fi
3678fi
3679ac_ct_CC=$ac_cv_prog_ac_ct_CC
3680if test -n "$ac_ct_CC"; then
3681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3682$as_echo "$ac_ct_CC" >&6; }
3683else
3684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685$as_echo "no" >&6; }
3686fi
3687
3688
3689  test -n "$ac_ct_CC" && break
3690done
3691
3692  if test "x$ac_ct_CC" = x; then
3693    CC=""
3694  else
3695    case $cross_compiling:$ac_tool_warned in
3696yes:)
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699ac_tool_warned=yes ;;
3700esac
3701    CC=$ac_ct_CC
3702  fi
3703fi
3704
3705fi
3706
3707
3708test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710as_fn_error $? "no acceptable C compiler found in \$PATH
3711See \`config.log' for more details" "$LINENO" 5; }
3712
3713# Provide some information about the compiler.
3714$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3715set X $ac_compile
3716ac_compiler=$2
3717for ac_option in --version -v -V -qversion; do
3718  { { ac_try="$ac_compiler $ac_option >&5"
3719case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
3725  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3726  ac_status=$?
3727  if test -s conftest.err; then
3728    sed '10a\
3729... rest of stderr output deleted ...
3730         10q' conftest.err >conftest.er1
3731    cat conftest.er1 >&5
3732  fi
3733  rm -f conftest.er1 conftest.err
3734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735  test $ac_status = 0; }
3736done
3737
3738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739/* end confdefs.h.  */
3740
3741int
3742main ()
3743{
3744
3745  ;
3746  return 0;
3747}
3748_ACEOF
3749ac_clean_files_save=$ac_clean_files
3750ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3751# Try to create an executable without -o first, disregard a.out.
3752# It will help us diagnose broken compilers, and finding out an intuition
3753# of exeext.
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3755$as_echo_n "checking whether the C compiler works... " >&6; }
3756ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3757
3758# The possible output files:
3759ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3760
3761ac_rmfiles=
3762for ac_file in $ac_files
3763do
3764  case $ac_file in
3765    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3766    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3767  esac
3768done
3769rm -f $ac_rmfiles
3770
3771if { { ac_try="$ac_link_default"
3772case "(($ac_try" in
3773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774  *) ac_try_echo=$ac_try;;
3775esac
3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777$as_echo "$ac_try_echo"; } >&5
3778  (eval "$ac_link_default") 2>&5
3779  ac_status=$?
3780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781  test $ac_status = 0; }; then :
3782  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3783# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3784# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3785# so that the user can short-circuit this test for compilers unknown to
3786# Autoconf.
3787for ac_file in $ac_files ''
3788do
3789  test -f "$ac_file" || continue
3790  case $ac_file in
3791    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3792	;;
3793    [ab].out )
3794	# We found the default executable, but exeext='' is most
3795	# certainly right.
3796	break;;
3797    *.* )
3798	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3799	then :; else
3800	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3801	fi
3802	# We set ac_cv_exeext here because the later test for it is not
3803	# safe: cross compilers may not add the suffix if given an `-o'
3804	# argument, so we may need to know it at that point already.
3805	# Even if this section looks crufty: it has the advantage of
3806	# actually working.
3807	break;;
3808    * )
3809	break;;
3810  esac
3811done
3812test "$ac_cv_exeext" = no && ac_cv_exeext=
3813
3814else
3815  ac_file=''
3816fi
3817if test -z "$ac_file"; then :
3818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819$as_echo "no" >&6; }
3820$as_echo "$as_me: failed program was:" >&5
3821sed 's/^/| /' conftest.$ac_ext >&5
3822
3823{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825as_fn_error 77 "C compiler cannot create executables
3826See \`config.log' for more details" "$LINENO" 5; }
3827else
3828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3829$as_echo "yes" >&6; }
3830fi
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3832$as_echo_n "checking for C compiler default output file name... " >&6; }
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3834$as_echo "$ac_file" >&6; }
3835ac_exeext=$ac_cv_exeext
3836
3837rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3838ac_clean_files=$ac_clean_files_save
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3840$as_echo_n "checking for suffix of executables... " >&6; }
3841if { { ac_try="$ac_link"
3842case "(($ac_try" in
3843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844  *) ac_try_echo=$ac_try;;
3845esac
3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847$as_echo "$ac_try_echo"; } >&5
3848  (eval "$ac_link") 2>&5
3849  ac_status=$?
3850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851  test $ac_status = 0; }; then :
3852  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3853# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3854# work properly (i.e., refer to `conftest.exe'), while it won't with
3855# `rm'.
3856for ac_file in conftest.exe conftest conftest.*; do
3857  test -f "$ac_file" || continue
3858  case $ac_file in
3859    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3860    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3861	  break;;
3862    * ) break;;
3863  esac
3864done
3865else
3866  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3869See \`config.log' for more details" "$LINENO" 5; }
3870fi
3871rm -f conftest conftest$ac_cv_exeext
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3873$as_echo "$ac_cv_exeext" >&6; }
3874
3875rm -f conftest.$ac_ext
3876EXEEXT=$ac_cv_exeext
3877ac_exeext=$EXEEXT
3878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h.  */
3880#include <stdio.h>
3881int
3882main ()
3883{
3884FILE *f = fopen ("conftest.out", "w");
3885 return ferror (f) || fclose (f) != 0;
3886
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891ac_clean_files="$ac_clean_files conftest.out"
3892# Check that the compiler produces executables we can run.  If not, either
3893# the compiler is broken, or we cross compile.
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3895$as_echo_n "checking whether we are cross compiling... " >&6; }
3896if test "$cross_compiling" != yes; then
3897  { { ac_try="$ac_link"
3898case "(($ac_try" in
3899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900  *) ac_try_echo=$ac_try;;
3901esac
3902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903$as_echo "$ac_try_echo"; } >&5
3904  (eval "$ac_link") 2>&5
3905  ac_status=$?
3906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907  test $ac_status = 0; }
3908  if { ac_try='./conftest$ac_cv_exeext'
3909  { { case "(($ac_try" in
3910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911  *) ac_try_echo=$ac_try;;
3912esac
3913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914$as_echo "$ac_try_echo"; } >&5
3915  (eval "$ac_try") 2>&5
3916  ac_status=$?
3917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918  test $ac_status = 0; }; }; then
3919    cross_compiling=no
3920  else
3921    if test "$cross_compiling" = maybe; then
3922	cross_compiling=yes
3923    else
3924	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926as_fn_error $? "cannot run C compiled programs.
3927If you meant to cross compile, use \`--host'.
3928See \`config.log' for more details" "$LINENO" 5; }
3929    fi
3930  fi
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3933$as_echo "$cross_compiling" >&6; }
3934
3935rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3936ac_clean_files=$ac_clean_files_save
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3938$as_echo_n "checking for suffix of object files... " >&6; }
3939if ${ac_cv_objext+:} false; then :
3940  $as_echo_n "(cached) " >&6
3941else
3942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943/* end confdefs.h.  */
3944
3945int
3946main ()
3947{
3948
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953rm -f conftest.o conftest.obj
3954if { { ac_try="$ac_compile"
3955case "(($ac_try" in
3956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957  *) ac_try_echo=$ac_try;;
3958esac
3959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960$as_echo "$ac_try_echo"; } >&5
3961  (eval "$ac_compile") 2>&5
3962  ac_status=$?
3963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964  test $ac_status = 0; }; then :
3965  for ac_file in conftest.o conftest.obj conftest.*; do
3966  test -f "$ac_file" || continue;
3967  case $ac_file in
3968    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3969    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3970       break;;
3971  esac
3972done
3973else
3974  $as_echo "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
3977{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979as_fn_error $? "cannot compute suffix of object files: cannot compile
3980See \`config.log' for more details" "$LINENO" 5; }
3981fi
3982rm -f conftest.$ac_cv_objext conftest.$ac_ext
3983fi
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3985$as_echo "$ac_cv_objext" >&6; }
3986OBJEXT=$ac_cv_objext
3987ac_objext=$OBJEXT
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3989$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3990if ${ac_cv_c_compiler_gnu+:} false; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h.  */
3995
3996int
3997main ()
3998{
3999#ifndef __GNUC__
4000       choke me
4001#endif
4002
4003  ;
4004  return 0;
4005}
4006_ACEOF
4007if ac_fn_c_try_compile "$LINENO"; then :
4008  ac_compiler_gnu=yes
4009else
4010  ac_compiler_gnu=no
4011fi
4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013ac_cv_c_compiler_gnu=$ac_compiler_gnu
4014
4015fi
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4017$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4018if test $ac_compiler_gnu = yes; then
4019  GCC=yes
4020else
4021  GCC=
4022fi
4023ac_test_CFLAGS=${CFLAGS+set}
4024ac_save_CFLAGS=$CFLAGS
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4026$as_echo_n "checking whether $CC accepts -g... " >&6; }
4027if ${ac_cv_prog_cc_g+:} false; then :
4028  $as_echo_n "(cached) " >&6
4029else
4030  ac_save_c_werror_flag=$ac_c_werror_flag
4031   ac_c_werror_flag=yes
4032   ac_cv_prog_cc_g=no
4033   CFLAGS="-g"
4034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036
4037int
4038main ()
4039{
4040
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045if ac_fn_c_try_compile "$LINENO"; then :
4046  ac_cv_prog_cc_g=yes
4047else
4048  CFLAGS=""
4049      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h.  */
4051
4052int
4053main ()
4054{
4055
4056  ;
4057  return 0;
4058}
4059_ACEOF
4060if ac_fn_c_try_compile "$LINENO"; then :
4061
4062else
4063  ac_c_werror_flag=$ac_save_c_werror_flag
4064	 CFLAGS="-g"
4065	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h.  */
4067
4068int
4069main ()
4070{
4071
4072  ;
4073  return 0;
4074}
4075_ACEOF
4076if ac_fn_c_try_compile "$LINENO"; then :
4077  ac_cv_prog_cc_g=yes
4078fi
4079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080fi
4081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082fi
4083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084   ac_c_werror_flag=$ac_save_c_werror_flag
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4087$as_echo "$ac_cv_prog_cc_g" >&6; }
4088if test "$ac_test_CFLAGS" = set; then
4089  CFLAGS=$ac_save_CFLAGS
4090elif test $ac_cv_prog_cc_g = yes; then
4091  if test "$GCC" = yes; then
4092    CFLAGS="-g -O2"
4093  else
4094    CFLAGS="-g"
4095  fi
4096else
4097  if test "$GCC" = yes; then
4098    CFLAGS="-O2"
4099  else
4100    CFLAGS=
4101  fi
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4104$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4105if ${ac_cv_prog_cc_c89+:} false; then :
4106  $as_echo_n "(cached) " >&6
4107else
4108  ac_cv_prog_cc_c89=no
4109ac_save_CC=$CC
4110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h.  */
4112#include <stdarg.h>
4113#include <stdio.h>
4114struct stat;
4115/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4116struct buf { int x; };
4117FILE * (*rcsopen) (struct buf *, struct stat *, int);
4118static char *e (p, i)
4119     char **p;
4120     int i;
4121{
4122  return p[i];
4123}
4124static char *f (char * (*g) (char **, int), char **p, ...)
4125{
4126  char *s;
4127  va_list v;
4128  va_start (v,p);
4129  s = g (p, va_arg (v,int));
4130  va_end (v);
4131  return s;
4132}
4133
4134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4135   function prototypes and stuff, but not '\xHH' hex character constants.
4136   These don't provoke an error unfortunately, instead are silently treated
4137   as 'x'.  The following induces an error, until -std is added to get
4138   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4139   array size at least.  It's necessary to write '\x00'==0 to get something
4140   that's true only with -std.  */
4141int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4142
4143/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4144   inside strings and character constants.  */
4145#define FOO(x) 'x'
4146int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4147
4148int test (int i, double x);
4149struct s1 {int (*f) (int a);};
4150struct s2 {int (*f) (double a);};
4151int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4152int argc;
4153char **argv;
4154int
4155main ()
4156{
4157return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4158  ;
4159  return 0;
4160}
4161_ACEOF
4162for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4163	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4164do
4165  CC="$ac_save_CC $ac_arg"
4166  if ac_fn_c_try_compile "$LINENO"; then :
4167  ac_cv_prog_cc_c89=$ac_arg
4168fi
4169rm -f core conftest.err conftest.$ac_objext
4170  test "x$ac_cv_prog_cc_c89" != "xno" && break
4171done
4172rm -f conftest.$ac_ext
4173CC=$ac_save_CC
4174
4175fi
4176# AC_CACHE_VAL
4177case "x$ac_cv_prog_cc_c89" in
4178  x)
4179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4180$as_echo "none needed" >&6; } ;;
4181  xno)
4182    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4183$as_echo "unsupported" >&6; } ;;
4184  *)
4185    CC="$CC $ac_cv_prog_cc_c89"
4186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4187$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4188esac
4189if test "x$ac_cv_prog_cc_c89" != xno; then :
4190
4191fi
4192
4193ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199ac_ext=c
4200ac_cpp='$CPP $CPPFLAGS'
4201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4205$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4206if ${am_cv_prog_cc_c_o+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211
4212int
4213main ()
4214{
4215
4216  ;
4217  return 0;
4218}
4219_ACEOF
4220  # Make sure it works both with $CC and with simple cc.
4221  # Following AC_PROG_CC_C_O, we do the test twice because some
4222  # compilers refuse to overwrite an existing .o file with -o,
4223  # though they will create one.
4224  am_cv_prog_cc_c_o=yes
4225  for am_i in 1 2; do
4226    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4227   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); } \
4231         && test -f conftest2.$ac_objext; then
4232      : OK
4233    else
4234      am_cv_prog_cc_c_o=no
4235      break
4236    fi
4237  done
4238  rm -f core conftest*
4239  unset am_i
4240fi
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4242$as_echo "$am_cv_prog_cc_c_o" >&6; }
4243if test "$am_cv_prog_cc_c_o" != yes; then
4244   # Losing compiler, so override with the script.
4245   # FIXME: It is wrong to rewrite CC.
4246   # But if we don't then we get into trouble of one sort or another.
4247   # A longer-term fix would be to have automake use am__CC in this case,
4248   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4249   CC="$am_aux_dir/compile $CC"
4250fi
4251ac_ext=c
4252ac_cpp='$CPP $CPPFLAGS'
4253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
4258depcc="$CC"   am_compiler_list=
4259
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4261$as_echo_n "checking dependency style of $depcc... " >&6; }
4262if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4263  $as_echo_n "(cached) " >&6
4264else
4265  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4266  # We make a subdir and do the tests there.  Otherwise we can end up
4267  # making bogus files that we don't know about and never remove.  For
4268  # instance it was reported that on HP-UX the gcc test will end up
4269  # making a dummy file named 'D' -- because '-MD' means "put the output
4270  # in D".
4271  rm -rf conftest.dir
4272  mkdir conftest.dir
4273  # Copy depcomp to subdir because otherwise we won't find it if we're
4274  # using a relative directory.
4275  cp "$am_depcomp" conftest.dir
4276  cd conftest.dir
4277  # We will build objects and dependencies in a subdirectory because
4278  # it helps to detect inapplicable dependency modes.  For instance
4279  # both Tru64's cc and ICC support -MD to output dependencies as a
4280  # side effect of compilation, but ICC will put the dependencies in
4281  # the current directory while Tru64 will put them in the object
4282  # directory.
4283  mkdir sub
4284
4285  am_cv_CC_dependencies_compiler_type=none
4286  if test "$am_compiler_list" = ""; then
4287     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4288  fi
4289  am__universal=false
4290  case " $depcc " in #(
4291     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4292     esac
4293
4294  for depmode in $am_compiler_list; do
4295    # Setup a source with many dependencies, because some compilers
4296    # like to wrap large dependency lists on column 80 (with \), and
4297    # we should not choose a depcomp mode which is confused by this.
4298    #
4299    # We need to recreate these files for each test, as the compiler may
4300    # overwrite some of them when testing with obscure command lines.
4301    # This happens at least with the AIX C compiler.
4302    : > sub/conftest.c
4303    for i in 1 2 3 4 5 6; do
4304      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4305      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4306      # Solaris 10 /bin/sh.
4307      echo '/* dummy */' > sub/conftst$i.h
4308    done
4309    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4310
4311    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4312    # mode.  It turns out that the SunPro C++ compiler does not properly
4313    # handle '-M -o', and we need to detect this.  Also, some Intel
4314    # versions had trouble with output in subdirs.
4315    am__obj=sub/conftest.${OBJEXT-o}
4316    am__minus_obj="-o $am__obj"
4317    case $depmode in
4318    gcc)
4319      # This depmode causes a compiler race in universal mode.
4320      test "$am__universal" = false || continue
4321      ;;
4322    nosideeffect)
4323      # After this tag, mechanisms are not by side-effect, so they'll
4324      # only be used when explicitly requested.
4325      if test "x$enable_dependency_tracking" = xyes; then
4326	continue
4327      else
4328	break
4329      fi
4330      ;;
4331    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4332      # This compiler won't grok '-c -o', but also, the minuso test has
4333      # not run yet.  These depmodes are late enough in the game, and
4334      # so weak that their functioning should not be impacted.
4335      am__obj=conftest.${OBJEXT-o}
4336      am__minus_obj=
4337      ;;
4338    none) break ;;
4339    esac
4340    if depmode=$depmode \
4341       source=sub/conftest.c object=$am__obj \
4342       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4343       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4344         >/dev/null 2>conftest.err &&
4345       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4346       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4347       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4348       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4349      # icc doesn't choke on unknown options, it will just issue warnings
4350      # or remarks (even with -Werror).  So we grep stderr for any message
4351      # that says an option was ignored or not supported.
4352      # When given -MP, icc 7.0 and 7.1 complain thusly:
4353      #   icc: Command line warning: ignoring option '-M'; no argument required
4354      # The diagnosis changed in icc 8.0:
4355      #   icc: Command line remark: option '-MP' not supported
4356      if (grep 'ignoring option' conftest.err ||
4357          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4358        am_cv_CC_dependencies_compiler_type=$depmode
4359        break
4360      fi
4361    fi
4362  done
4363
4364  cd ..
4365  rm -rf conftest.dir
4366else
4367  am_cv_CC_dependencies_compiler_type=none
4368fi
4369
4370fi
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4372$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4373CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4374
4375 if
4376  test "x$enable_dependency_tracking" != xno \
4377  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4378  am__fastdepCC_TRUE=
4379  am__fastdepCC_FALSE='#'
4380else
4381  am__fastdepCC_TRUE='#'
4382  am__fastdepCC_FALSE=
4383fi
4384
4385
4386   case $ac_cv_prog_cc_stdc in #(
4387  no) :
4388    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4389  *) :
4390    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4391$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4392if ${ac_cv_prog_cc_c99+:} false; then :
4393  $as_echo_n "(cached) " >&6
4394else
4395  ac_cv_prog_cc_c99=no
4396ac_save_CC=$CC
4397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h.  */
4399#include <stdarg.h>
4400#include <stdbool.h>
4401#include <stdlib.h>
4402#include <wchar.h>
4403#include <stdio.h>
4404
4405// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4406#define debug(...) fprintf (stderr, __VA_ARGS__)
4407#define showlist(...) puts (#__VA_ARGS__)
4408#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4409static void
4410test_varargs_macros (void)
4411{
4412  int x = 1234;
4413  int y = 5678;
4414  debug ("Flag");
4415  debug ("X = %d\n", x);
4416  showlist (The first, second, and third items.);
4417  report (x>y, "x is %d but y is %d", x, y);
4418}
4419
4420// Check long long types.
4421#define BIG64 18446744073709551615ull
4422#define BIG32 4294967295ul
4423#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4424#if !BIG_OK
4425  your preprocessor is broken;
4426#endif
4427#if BIG_OK
4428#else
4429  your preprocessor is broken;
4430#endif
4431static long long int bignum = -9223372036854775807LL;
4432static unsigned long long int ubignum = BIG64;
4433
4434struct incomplete_array
4435{
4436  int datasize;
4437  double data[];
4438};
4439
4440struct named_init {
4441  int number;
4442  const wchar_t *name;
4443  double average;
4444};
4445
4446typedef const char *ccp;
4447
4448static inline int
4449test_restrict (ccp restrict text)
4450{
4451  // See if C++-style comments work.
4452  // Iterate through items via the restricted pointer.
4453  // Also check for declarations in for loops.
4454  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4455    continue;
4456  return 0;
4457}
4458
4459// Check varargs and va_copy.
4460static void
4461test_varargs (const char *format, ...)
4462{
4463  va_list args;
4464  va_start (args, format);
4465  va_list args_copy;
4466  va_copy (args_copy, args);
4467
4468  const char *str;
4469  int number;
4470  float fnumber;
4471
4472  while (*format)
4473    {
4474      switch (*format++)
4475	{
4476	case 's': // string
4477	  str = va_arg (args_copy, const char *);
4478	  break;
4479	case 'd': // int
4480	  number = va_arg (args_copy, int);
4481	  break;
4482	case 'f': // float
4483	  fnumber = va_arg (args_copy, double);
4484	  break;
4485	default:
4486	  break;
4487	}
4488    }
4489  va_end (args_copy);
4490  va_end (args);
4491}
4492
4493int
4494main ()
4495{
4496
4497  // Check bool.
4498  _Bool success = false;
4499
4500  // Check restrict.
4501  if (test_restrict ("String literal") == 0)
4502    success = true;
4503  char *restrict newvar = "Another string";
4504
4505  // Check varargs.
4506  test_varargs ("s, d' f .", "string", 65, 34.234);
4507  test_varargs_macros ();
4508
4509  // Check flexible array members.
4510  struct incomplete_array *ia =
4511    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4512  ia->datasize = 10;
4513  for (int i = 0; i < ia->datasize; ++i)
4514    ia->data[i] = i * 1.234;
4515
4516  // Check named initializers.
4517  struct named_init ni = {
4518    .number = 34,
4519    .name = L"Test wide string",
4520    .average = 543.34343,
4521  };
4522
4523  ni.number = 58;
4524
4525  int dynamic_array[ni.number];
4526  dynamic_array[ni.number - 1] = 543;
4527
4528  // work around unused variable warnings
4529  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4530	  || dynamic_array[ni.number - 1] != 543);
4531
4532  ;
4533  return 0;
4534}
4535_ACEOF
4536for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4537do
4538  CC="$ac_save_CC $ac_arg"
4539  if ac_fn_c_try_compile "$LINENO"; then :
4540  ac_cv_prog_cc_c99=$ac_arg
4541fi
4542rm -f core conftest.err conftest.$ac_objext
4543  test "x$ac_cv_prog_cc_c99" != "xno" && break
4544done
4545rm -f conftest.$ac_ext
4546CC=$ac_save_CC
4547
4548fi
4549# AC_CACHE_VAL
4550case "x$ac_cv_prog_cc_c99" in
4551  x)
4552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4553$as_echo "none needed" >&6; } ;;
4554  xno)
4555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4556$as_echo "unsupported" >&6; } ;;
4557  *)
4558    CC="$CC $ac_cv_prog_cc_c99"
4559    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4560$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4561esac
4562if test "x$ac_cv_prog_cc_c99" != xno; then :
4563  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4564else
4565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4566$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4567if ${ac_cv_prog_cc_c89+:} false; then :
4568  $as_echo_n "(cached) " >&6
4569else
4570  ac_cv_prog_cc_c89=no
4571ac_save_CC=$CC
4572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574#include <stdarg.h>
4575#include <stdio.h>
4576struct stat;
4577/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4578struct buf { int x; };
4579FILE * (*rcsopen) (struct buf *, struct stat *, int);
4580static char *e (p, i)
4581     char **p;
4582     int i;
4583{
4584  return p[i];
4585}
4586static char *f (char * (*g) (char **, int), char **p, ...)
4587{
4588  char *s;
4589  va_list v;
4590  va_start (v,p);
4591  s = g (p, va_arg (v,int));
4592  va_end (v);
4593  return s;
4594}
4595
4596/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4597   function prototypes and stuff, but not '\xHH' hex character constants.
4598   These don't provoke an error unfortunately, instead are silently treated
4599   as 'x'.  The following induces an error, until -std is added to get
4600   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4601   array size at least.  It's necessary to write '\x00'==0 to get something
4602   that's true only with -std.  */
4603int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4604
4605/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4606   inside strings and character constants.  */
4607#define FOO(x) 'x'
4608int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4609
4610int test (int i, double x);
4611struct s1 {int (*f) (int a);};
4612struct s2 {int (*f) (double a);};
4613int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4614int argc;
4615char **argv;
4616int
4617main ()
4618{
4619return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4620  ;
4621  return 0;
4622}
4623_ACEOF
4624for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4625	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4626do
4627  CC="$ac_save_CC $ac_arg"
4628  if ac_fn_c_try_compile "$LINENO"; then :
4629  ac_cv_prog_cc_c89=$ac_arg
4630fi
4631rm -f core conftest.err conftest.$ac_objext
4632  test "x$ac_cv_prog_cc_c89" != "xno" && break
4633done
4634rm -f conftest.$ac_ext
4635CC=$ac_save_CC
4636
4637fi
4638# AC_CACHE_VAL
4639case "x$ac_cv_prog_cc_c89" in
4640  x)
4641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4642$as_echo "none needed" >&6; } ;;
4643  xno)
4644    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4645$as_echo "unsupported" >&6; } ;;
4646  *)
4647    CC="$CC $ac_cv_prog_cc_c89"
4648    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4649$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4650esac
4651if test "x$ac_cv_prog_cc_c89" != xno; then :
4652  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4653else
4654  ac_cv_prog_cc_stdc=no
4655fi
4656
4657fi
4658 ;;
4659esac
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4661$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4662  if ${ac_cv_prog_cc_stdc+:} false; then :
4663  $as_echo_n "(cached) " >&6
4664fi
4665
4666  case $ac_cv_prog_cc_stdc in #(
4667  no) :
4668    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669$as_echo "unsupported" >&6; } ;; #(
4670  '') :
4671    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4672$as_echo "none needed" >&6; } ;; #(
4673  *) :
4674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4675$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4676esac
4677
4678
4679ac_ext=c
4680ac_cpp='$CPP $CPPFLAGS'
4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4685$as_echo_n "checking how to run the C preprocessor... " >&6; }
4686# On Suns, sometimes $CPP names a directory.
4687if test -n "$CPP" && test -d "$CPP"; then
4688  CPP=
4689fi
4690if test -z "$CPP"; then
4691  if ${ac_cv_prog_CPP+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694      # Double quotes because CPP needs to be expanded
4695    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4696    do
4697      ac_preproc_ok=false
4698for ac_c_preproc_warn_flag in '' yes
4699do
4700  # Use a header file that comes with gcc, so configuring glibc
4701  # with a fresh cross-compiler works.
4702  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4703  # <limits.h> exists even on freestanding compilers.
4704  # On the NeXT, cc -E runs the code through the compiler's parser,
4705  # not just through cpp. "Syntax error" is here to catch this case.
4706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h.  */
4708#ifdef __STDC__
4709# include <limits.h>
4710#else
4711# include <assert.h>
4712#endif
4713		     Syntax error
4714_ACEOF
4715if ac_fn_c_try_cpp "$LINENO"; then :
4716
4717else
4718  # Broken: fails on valid input.
4719continue
4720fi
4721rm -f conftest.err conftest.i conftest.$ac_ext
4722
4723  # OK, works on sane cases.  Now check whether nonexistent headers
4724  # can be detected and how.
4725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h.  */
4727#include <ac_nonexistent.h>
4728_ACEOF
4729if ac_fn_c_try_cpp "$LINENO"; then :
4730  # Broken: success on invalid input.
4731continue
4732else
4733  # Passes both tests.
4734ac_preproc_ok=:
4735break
4736fi
4737rm -f conftest.err conftest.i conftest.$ac_ext
4738
4739done
4740# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4741rm -f conftest.i conftest.err conftest.$ac_ext
4742if $ac_preproc_ok; then :
4743  break
4744fi
4745
4746    done
4747    ac_cv_prog_CPP=$CPP
4748
4749fi
4750  CPP=$ac_cv_prog_CPP
4751else
4752  ac_cv_prog_CPP=$CPP
4753fi
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4755$as_echo "$CPP" >&6; }
4756ac_preproc_ok=false
4757for ac_c_preproc_warn_flag in '' yes
4758do
4759  # Use a header file that comes with gcc, so configuring glibc
4760  # with a fresh cross-compiler works.
4761  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4762  # <limits.h> exists even on freestanding compilers.
4763  # On the NeXT, cc -E runs the code through the compiler's parser,
4764  # not just through cpp. "Syntax error" is here to catch this case.
4765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766/* end confdefs.h.  */
4767#ifdef __STDC__
4768# include <limits.h>
4769#else
4770# include <assert.h>
4771#endif
4772		     Syntax error
4773_ACEOF
4774if ac_fn_c_try_cpp "$LINENO"; then :
4775
4776else
4777  # Broken: fails on valid input.
4778continue
4779fi
4780rm -f conftest.err conftest.i conftest.$ac_ext
4781
4782  # OK, works on sane cases.  Now check whether nonexistent headers
4783  # can be detected and how.
4784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h.  */
4786#include <ac_nonexistent.h>
4787_ACEOF
4788if ac_fn_c_try_cpp "$LINENO"; then :
4789  # Broken: success on invalid input.
4790continue
4791else
4792  # Passes both tests.
4793ac_preproc_ok=:
4794break
4795fi
4796rm -f conftest.err conftest.i conftest.$ac_ext
4797
4798done
4799# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4800rm -f conftest.i conftest.err conftest.$ac_ext
4801if $ac_preproc_ok; then :
4802
4803else
4804  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4806as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4807See \`config.log' for more details" "$LINENO" 5; }
4808fi
4809
4810ac_ext=c
4811ac_cpp='$CPP $CPPFLAGS'
4812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815
4816
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4818$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4819if ${ac_cv_path_GREP+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  if test -z "$GREP"; then
4823  ac_path_GREP_found=false
4824  # Loop through the user's path and test for each of PROGNAME-LIST
4825  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4827do
4828  IFS=$as_save_IFS
4829  test -z "$as_dir" && as_dir=.
4830    for ac_prog in grep ggrep; do
4831    for ac_exec_ext in '' $ac_executable_extensions; do
4832      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4833      as_fn_executable_p "$ac_path_GREP" || continue
4834# Check for GNU ac_path_GREP and select it if it is found.
4835  # Check for GNU $ac_path_GREP
4836case `"$ac_path_GREP" --version 2>&1` in
4837*GNU*)
4838  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4839*)
4840  ac_count=0
4841  $as_echo_n 0123456789 >"conftest.in"
4842  while :
4843  do
4844    cat "conftest.in" "conftest.in" >"conftest.tmp"
4845    mv "conftest.tmp" "conftest.in"
4846    cp "conftest.in" "conftest.nl"
4847    $as_echo 'GREP' >> "conftest.nl"
4848    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850    as_fn_arith $ac_count + 1 && ac_count=$as_val
4851    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4852      # Best one so far, save it but keep looking for a better one
4853      ac_cv_path_GREP="$ac_path_GREP"
4854      ac_path_GREP_max=$ac_count
4855    fi
4856    # 10*(2^10) chars as input seems more than enough
4857    test $ac_count -gt 10 && break
4858  done
4859  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860esac
4861
4862      $ac_path_GREP_found && break 3
4863    done
4864  done
4865  done
4866IFS=$as_save_IFS
4867  if test -z "$ac_cv_path_GREP"; then
4868    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869  fi
4870else
4871  ac_cv_path_GREP=$GREP
4872fi
4873
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4876$as_echo "$ac_cv_path_GREP" >&6; }
4877 GREP="$ac_cv_path_GREP"
4878
4879
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4881$as_echo_n "checking for egrep... " >&6; }
4882if ${ac_cv_path_EGREP+:} false; then :
4883  $as_echo_n "(cached) " >&6
4884else
4885  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4886   then ac_cv_path_EGREP="$GREP -E"
4887   else
4888     if test -z "$EGREP"; then
4889  ac_path_EGREP_found=false
4890  # Loop through the user's path and test for each of PROGNAME-LIST
4891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4893do
4894  IFS=$as_save_IFS
4895  test -z "$as_dir" && as_dir=.
4896    for ac_prog in egrep; do
4897    for ac_exec_ext in '' $ac_executable_extensions; do
4898      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4899      as_fn_executable_p "$ac_path_EGREP" || continue
4900# Check for GNU ac_path_EGREP and select it if it is found.
4901  # Check for GNU $ac_path_EGREP
4902case `"$ac_path_EGREP" --version 2>&1` in
4903*GNU*)
4904  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4905*)
4906  ac_count=0
4907  $as_echo_n 0123456789 >"conftest.in"
4908  while :
4909  do
4910    cat "conftest.in" "conftest.in" >"conftest.tmp"
4911    mv "conftest.tmp" "conftest.in"
4912    cp "conftest.in" "conftest.nl"
4913    $as_echo 'EGREP' >> "conftest.nl"
4914    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4915    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4916    as_fn_arith $ac_count + 1 && ac_count=$as_val
4917    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4918      # Best one so far, save it but keep looking for a better one
4919      ac_cv_path_EGREP="$ac_path_EGREP"
4920      ac_path_EGREP_max=$ac_count
4921    fi
4922    # 10*(2^10) chars as input seems more than enough
4923    test $ac_count -gt 10 && break
4924  done
4925  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926esac
4927
4928      $ac_path_EGREP_found && break 3
4929    done
4930  done
4931  done
4932IFS=$as_save_IFS
4933  if test -z "$ac_cv_path_EGREP"; then
4934    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4935  fi
4936else
4937  ac_cv_path_EGREP=$EGREP
4938fi
4939
4940   fi
4941fi
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4943$as_echo "$ac_cv_path_EGREP" >&6; }
4944 EGREP="$ac_cv_path_EGREP"
4945
4946
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4948$as_echo_n "checking for ANSI C header files... " >&6; }
4949if ${ac_cv_header_stdc+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953/* end confdefs.h.  */
4954#include <stdlib.h>
4955#include <stdarg.h>
4956#include <string.h>
4957#include <float.h>
4958
4959int
4960main ()
4961{
4962
4963  ;
4964  return 0;
4965}
4966_ACEOF
4967if ac_fn_c_try_compile "$LINENO"; then :
4968  ac_cv_header_stdc=yes
4969else
4970  ac_cv_header_stdc=no
4971fi
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973
4974if test $ac_cv_header_stdc = yes; then
4975  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h.  */
4978#include <string.h>
4979
4980_ACEOF
4981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4982  $EGREP "memchr" >/dev/null 2>&1; then :
4983
4984else
4985  ac_cv_header_stdc=no
4986fi
4987rm -f conftest*
4988
4989fi
4990
4991if test $ac_cv_header_stdc = yes; then
4992  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994/* end confdefs.h.  */
4995#include <stdlib.h>
4996
4997_ACEOF
4998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4999  $EGREP "free" >/dev/null 2>&1; then :
5000
5001else
5002  ac_cv_header_stdc=no
5003fi
5004rm -f conftest*
5005
5006fi
5007
5008if test $ac_cv_header_stdc = yes; then
5009  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5010  if test "$cross_compiling" = yes; then :
5011  :
5012else
5013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h.  */
5015#include <ctype.h>
5016#include <stdlib.h>
5017#if ((' ' & 0x0FF) == 0x020)
5018# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5019# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5020#else
5021# define ISLOWER(c) \
5022		   (('a' <= (c) && (c) <= 'i') \
5023		     || ('j' <= (c) && (c) <= 'r') \
5024		     || ('s' <= (c) && (c) <= 'z'))
5025# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5026#endif
5027
5028#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5029int
5030main ()
5031{
5032  int i;
5033  for (i = 0; i < 256; i++)
5034    if (XOR (islower (i), ISLOWER (i))
5035	|| toupper (i) != TOUPPER (i))
5036      return 2;
5037  return 0;
5038}
5039_ACEOF
5040if ac_fn_c_try_run "$LINENO"; then :
5041
5042else
5043  ac_cv_header_stdc=no
5044fi
5045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5046  conftest.$ac_objext conftest.beam conftest.$ac_ext
5047fi
5048
5049fi
5050fi
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5052$as_echo "$ac_cv_header_stdc" >&6; }
5053if test $ac_cv_header_stdc = yes; then
5054
5055$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5056
5057fi
5058
5059# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5060for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5061		  inttypes.h stdint.h unistd.h
5062do :
5063  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5064ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5065"
5066if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5067  cat >>confdefs.h <<_ACEOF
5068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5069_ACEOF
5070
5071fi
5072
5073done
5074
5075
5076
5077  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5078if test "x$ac_cv_header_minix_config_h" = xyes; then :
5079  MINIX=yes
5080else
5081  MINIX=
5082fi
5083
5084
5085  if test "$MINIX" = yes; then
5086
5087$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5088
5089
5090$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5091
5092
5093$as_echo "#define _MINIX 1" >>confdefs.h
5094
5095  fi
5096
5097
5098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5099$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5100if ${ac_cv_safe_to_define___extensions__+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h.  */
5105
5106#         define __EXTENSIONS__ 1
5107          $ac_includes_default
5108int
5109main ()
5110{
5111
5112  ;
5113  return 0;
5114}
5115_ACEOF
5116if ac_fn_c_try_compile "$LINENO"; then :
5117  ac_cv_safe_to_define___extensions__=yes
5118else
5119  ac_cv_safe_to_define___extensions__=no
5120fi
5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122fi
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5124$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5125  test $ac_cv_safe_to_define___extensions__ = yes &&
5126    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5127
5128  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5129
5130  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5131
5132  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5133
5134  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5135
5136
5137
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5139$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5140if ${ac_cv_c_bigendian+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  ac_cv_c_bigendian=unknown
5144    # See if we're dealing with a universal compiler.
5145    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h.  */
5147#ifndef __APPLE_CC__
5148	       not a universal capable compiler
5149	     #endif
5150	     typedef int dummy;
5151
5152_ACEOF
5153if ac_fn_c_try_compile "$LINENO"; then :
5154
5155	# Check for potential -arch flags.  It is not universal unless
5156	# there are at least two -arch flags with different values.
5157	ac_arch=
5158	ac_prev=
5159	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5160	 if test -n "$ac_prev"; then
5161	   case $ac_word in
5162	     i?86 | x86_64 | ppc | ppc64)
5163	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5164		 ac_arch=$ac_word
5165	       else
5166		 ac_cv_c_bigendian=universal
5167		 break
5168	       fi
5169	       ;;
5170	   esac
5171	   ac_prev=
5172	 elif test "x$ac_word" = "x-arch"; then
5173	   ac_prev=arch
5174	 fi
5175       done
5176fi
5177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178    if test $ac_cv_c_bigendian = unknown; then
5179      # See if sys/param.h defines the BYTE_ORDER macro.
5180      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h.  */
5182#include <sys/types.h>
5183	     #include <sys/param.h>
5184
5185int
5186main ()
5187{
5188#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5189		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5190		     && LITTLE_ENDIAN)
5191	      bogus endian macros
5192	     #endif
5193
5194  ;
5195  return 0;
5196}
5197_ACEOF
5198if ac_fn_c_try_compile "$LINENO"; then :
5199  # It does; now see whether it defined to BIG_ENDIAN or not.
5200	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201/* end confdefs.h.  */
5202#include <sys/types.h>
5203		#include <sys/param.h>
5204
5205int
5206main ()
5207{
5208#if BYTE_ORDER != BIG_ENDIAN
5209		 not big endian
5210		#endif
5211
5212  ;
5213  return 0;
5214}
5215_ACEOF
5216if ac_fn_c_try_compile "$LINENO"; then :
5217  ac_cv_c_bigendian=yes
5218else
5219  ac_cv_c_bigendian=no
5220fi
5221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222fi
5223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224    fi
5225    if test $ac_cv_c_bigendian = unknown; then
5226      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5227      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229#include <limits.h>
5230
5231int
5232main ()
5233{
5234#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5235	      bogus endian macros
5236	     #endif
5237
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242if ac_fn_c_try_compile "$LINENO"; then :
5243  # It does; now see whether it defined to _BIG_ENDIAN or not.
5244	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245/* end confdefs.h.  */
5246#include <limits.h>
5247
5248int
5249main ()
5250{
5251#ifndef _BIG_ENDIAN
5252		 not big endian
5253		#endif
5254
5255  ;
5256  return 0;
5257}
5258_ACEOF
5259if ac_fn_c_try_compile "$LINENO"; then :
5260  ac_cv_c_bigendian=yes
5261else
5262  ac_cv_c_bigendian=no
5263fi
5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265fi
5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267    fi
5268    if test $ac_cv_c_bigendian = unknown; then
5269      # Compile a test program.
5270      if test "$cross_compiling" = yes; then :
5271  # Try to guess by grepping values from an object file.
5272	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h.  */
5274short int ascii_mm[] =
5275		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5276		short int ascii_ii[] =
5277		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5278		int use_ascii (int i) {
5279		  return ascii_mm[i] + ascii_ii[i];
5280		}
5281		short int ebcdic_ii[] =
5282		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5283		short int ebcdic_mm[] =
5284		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5285		int use_ebcdic (int i) {
5286		  return ebcdic_mm[i] + ebcdic_ii[i];
5287		}
5288		extern int foo;
5289
5290int
5291main ()
5292{
5293return use_ascii (foo) == use_ebcdic (foo);
5294  ;
5295  return 0;
5296}
5297_ACEOF
5298if ac_fn_c_try_compile "$LINENO"; then :
5299  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5300	      ac_cv_c_bigendian=yes
5301	    fi
5302	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5303	      if test "$ac_cv_c_bigendian" = unknown; then
5304		ac_cv_c_bigendian=no
5305	      else
5306		# finding both strings is unlikely to happen, but who knows?
5307		ac_cv_c_bigendian=unknown
5308	      fi
5309	    fi
5310fi
5311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312else
5313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h.  */
5315$ac_includes_default
5316int
5317main ()
5318{
5319
5320	     /* Are we little or big endian?  From Harbison&Steele.  */
5321	     union
5322	     {
5323	       long int l;
5324	       char c[sizeof (long int)];
5325	     } u;
5326	     u.l = 1;
5327	     return u.c[sizeof (long int) - 1] == 1;
5328
5329  ;
5330  return 0;
5331}
5332_ACEOF
5333if ac_fn_c_try_run "$LINENO"; then :
5334  ac_cv_c_bigendian=no
5335else
5336  ac_cv_c_bigendian=yes
5337fi
5338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5339  conftest.$ac_objext conftest.beam conftest.$ac_ext
5340fi
5341
5342    fi
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5345$as_echo "$ac_cv_c_bigendian" >&6; }
5346 case $ac_cv_c_bigendian in #(
5347   yes)
5348     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5349;; #(
5350   no)
5351      ;; #(
5352   universal)
5353
5354$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5355
5356     ;; #(
5357   *)
5358     as_fn_error $? "unknown endianness
5359 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5360 esac
5361
5362
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5364$as_echo_n "checking whether ln -s works... " >&6; }
5365LN_S=$as_ln_s
5366if test "$LN_S" = "ln -s"; then
5367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5368$as_echo "yes" >&6; }
5369else
5370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5371$as_echo "no, using $LN_S" >&6; }
5372fi
5373
5374case `pwd` in
5375  *\ * | *\	*)
5376    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5377$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5378esac
5379
5380
5381
5382macro_version='2.4.2'
5383macro_revision='1.3337'
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397ltmain="$ac_aux_dir/ltmain.sh"
5398
5399# Backslashify metacharacters that are still active within
5400# double-quoted strings.
5401sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5402
5403# Same as above, but do not quote variable references.
5404double_quote_subst='s/\(["`\\]\)/\\\1/g'
5405
5406# Sed substitution to delay expansion of an escaped shell variable in a
5407# double_quote_subst'ed string.
5408delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5409
5410# Sed substitution to delay expansion of an escaped single quote.
5411delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5412
5413# Sed substitution to avoid accidental globbing in evaled expressions
5414no_glob_subst='s/\*/\\\*/g'
5415
5416ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5417ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5418ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5419
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5421$as_echo_n "checking how to print strings... " >&6; }
5422# Test print first, because it will be a builtin if present.
5423if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5424   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5425  ECHO='print -r --'
5426elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5427  ECHO='printf %s\n'
5428else
5429  # Use this function as a fallback that always works.
5430  func_fallback_echo ()
5431  {
5432    eval 'cat <<_LTECHO_EOF
5433$1
5434_LTECHO_EOF'
5435  }
5436  ECHO='func_fallback_echo'
5437fi
5438
5439# func_echo_all arg...
5440# Invoke $ECHO with all args, space-separated.
5441func_echo_all ()
5442{
5443    $ECHO ""
5444}
5445
5446case "$ECHO" in
5447  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5448$as_echo "printf" >&6; } ;;
5449  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5450$as_echo "print -r" >&6; } ;;
5451  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5452$as_echo "cat" >&6; } ;;
5453esac
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5469$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5470if ${ac_cv_path_SED+:} false; then :
5471  $as_echo_n "(cached) " >&6
5472else
5473            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5474     for ac_i in 1 2 3 4 5 6 7; do
5475       ac_script="$ac_script$as_nl$ac_script"
5476     done
5477     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5478     { ac_script=; unset ac_script;}
5479     if test -z "$SED"; then
5480  ac_path_SED_found=false
5481  # Loop through the user's path and test for each of PROGNAME-LIST
5482  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485  IFS=$as_save_IFS
5486  test -z "$as_dir" && as_dir=.
5487    for ac_prog in sed gsed; do
5488    for ac_exec_ext in '' $ac_executable_extensions; do
5489      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5490      as_fn_executable_p "$ac_path_SED" || continue
5491# Check for GNU ac_path_SED and select it if it is found.
5492  # Check for GNU $ac_path_SED
5493case `"$ac_path_SED" --version 2>&1` in
5494*GNU*)
5495  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5496*)
5497  ac_count=0
5498  $as_echo_n 0123456789 >"conftest.in"
5499  while :
5500  do
5501    cat "conftest.in" "conftest.in" >"conftest.tmp"
5502    mv "conftest.tmp" "conftest.in"
5503    cp "conftest.in" "conftest.nl"
5504    $as_echo '' >> "conftest.nl"
5505    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5506    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5507    as_fn_arith $ac_count + 1 && ac_count=$as_val
5508    if test $ac_count -gt ${ac_path_SED_max-0}; then
5509      # Best one so far, save it but keep looking for a better one
5510      ac_cv_path_SED="$ac_path_SED"
5511      ac_path_SED_max=$ac_count
5512    fi
5513    # 10*(2^10) chars as input seems more than enough
5514    test $ac_count -gt 10 && break
5515  done
5516  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5517esac
5518
5519      $ac_path_SED_found && break 3
5520    done
5521  done
5522  done
5523IFS=$as_save_IFS
5524  if test -z "$ac_cv_path_SED"; then
5525    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5526  fi
5527else
5528  ac_cv_path_SED=$SED
5529fi
5530
5531fi
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5533$as_echo "$ac_cv_path_SED" >&6; }
5534 SED="$ac_cv_path_SED"
5535  rm -f conftest.sed
5536
5537test -z "$SED" && SED=sed
5538Xsed="$SED -e 1s/^X//"
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5551$as_echo_n "checking for fgrep... " >&6; }
5552if ${ac_cv_path_FGREP+:} false; then :
5553  $as_echo_n "(cached) " >&6
5554else
5555  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5556   then ac_cv_path_FGREP="$GREP -F"
5557   else
5558     if test -z "$FGREP"; then
5559  ac_path_FGREP_found=false
5560  # Loop through the user's path and test for each of PROGNAME-LIST
5561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5563do
5564  IFS=$as_save_IFS
5565  test -z "$as_dir" && as_dir=.
5566    for ac_prog in fgrep; do
5567    for ac_exec_ext in '' $ac_executable_extensions; do
5568      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5569      as_fn_executable_p "$ac_path_FGREP" || continue
5570# Check for GNU ac_path_FGREP and select it if it is found.
5571  # Check for GNU $ac_path_FGREP
5572case `"$ac_path_FGREP" --version 2>&1` in
5573*GNU*)
5574  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5575*)
5576  ac_count=0
5577  $as_echo_n 0123456789 >"conftest.in"
5578  while :
5579  do
5580    cat "conftest.in" "conftest.in" >"conftest.tmp"
5581    mv "conftest.tmp" "conftest.in"
5582    cp "conftest.in" "conftest.nl"
5583    $as_echo 'FGREP' >> "conftest.nl"
5584    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5585    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5586    as_fn_arith $ac_count + 1 && ac_count=$as_val
5587    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5588      # Best one so far, save it but keep looking for a better one
5589      ac_cv_path_FGREP="$ac_path_FGREP"
5590      ac_path_FGREP_max=$ac_count
5591    fi
5592    # 10*(2^10) chars as input seems more than enough
5593    test $ac_count -gt 10 && break
5594  done
5595  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596esac
5597
5598      $ac_path_FGREP_found && break 3
5599    done
5600  done
5601  done
5602IFS=$as_save_IFS
5603  if test -z "$ac_cv_path_FGREP"; then
5604    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5605  fi
5606else
5607  ac_cv_path_FGREP=$FGREP
5608fi
5609
5610   fi
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5613$as_echo "$ac_cv_path_FGREP" >&6; }
5614 FGREP="$ac_cv_path_FGREP"
5615
5616
5617test -z "$GREP" && GREP=grep
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637# Check whether --with-gnu-ld was given.
5638if test "${with_gnu_ld+set}" = set; then :
5639  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5640else
5641  with_gnu_ld=no
5642fi
5643
5644ac_prog=ld
5645if test "$GCC" = yes; then
5646  # Check if gcc -print-prog-name=ld gives a path.
5647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5648$as_echo_n "checking for ld used by $CC... " >&6; }
5649  case $host in
5650  *-*-mingw*)
5651    # gcc leaves a trailing carriage return which upsets mingw
5652    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5653  *)
5654    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5655  esac
5656  case $ac_prog in
5657    # Accept absolute paths.
5658    [\\/]* | ?:[\\/]*)
5659      re_direlt='/[^/][^/]*/\.\./'
5660      # Canonicalize the pathname of ld
5661      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5662      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5663	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5664      done
5665      test -z "$LD" && LD="$ac_prog"
5666      ;;
5667  "")
5668    # If it fails, then pretend we aren't using GCC.
5669    ac_prog=ld
5670    ;;
5671  *)
5672    # If it is relative, then search for the first ld in PATH.
5673    with_gnu_ld=unknown
5674    ;;
5675  esac
5676elif test "$with_gnu_ld" = yes; then
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5678$as_echo_n "checking for GNU ld... " >&6; }
5679else
5680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5681$as_echo_n "checking for non-GNU ld... " >&6; }
5682fi
5683if ${lt_cv_path_LD+:} false; then :
5684  $as_echo_n "(cached) " >&6
5685else
5686  if test -z "$LD"; then
5687  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5688  for ac_dir in $PATH; do
5689    IFS="$lt_save_ifs"
5690    test -z "$ac_dir" && ac_dir=.
5691    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5692      lt_cv_path_LD="$ac_dir/$ac_prog"
5693      # Check to see if the program is GNU ld.  I'd rather use --version,
5694      # but apparently some variants of GNU ld only accept -v.
5695      # Break only if it was the GNU/non-GNU ld that we prefer.
5696      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5697      *GNU* | *'with BFD'*)
5698	test "$with_gnu_ld" != no && break
5699	;;
5700      *)
5701	test "$with_gnu_ld" != yes && break
5702	;;
5703      esac
5704    fi
5705  done
5706  IFS="$lt_save_ifs"
5707else
5708  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5709fi
5710fi
5711
5712LD="$lt_cv_path_LD"
5713if test -n "$LD"; then
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5715$as_echo "$LD" >&6; }
5716else
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5722$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5723if ${lt_cv_prog_gnu_ld+:} false; then :
5724  $as_echo_n "(cached) " >&6
5725else
5726  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5727case `$LD -v 2>&1 </dev/null` in
5728*GNU* | *'with BFD'*)
5729  lt_cv_prog_gnu_ld=yes
5730  ;;
5731*)
5732  lt_cv_prog_gnu_ld=no
5733  ;;
5734esac
5735fi
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5737$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5738with_gnu_ld=$lt_cv_prog_gnu_ld
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5749$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5750if ${lt_cv_path_NM+:} false; then :
5751  $as_echo_n "(cached) " >&6
5752else
5753  if test -n "$NM"; then
5754  # Let the user override the test.
5755  lt_cv_path_NM="$NM"
5756else
5757  lt_nm_to_check="${ac_tool_prefix}nm"
5758  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5759    lt_nm_to_check="$lt_nm_to_check nm"
5760  fi
5761  for lt_tmp_nm in $lt_nm_to_check; do
5762    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5763    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5764      IFS="$lt_save_ifs"
5765      test -z "$ac_dir" && ac_dir=.
5766      tmp_nm="$ac_dir/$lt_tmp_nm"
5767      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5768	# Check to see if the nm accepts a BSD-compat flag.
5769	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5770	#   nm: unknown option "B" ignored
5771	# Tru64's nm complains that /dev/null is an invalid object file
5772	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5773	*/dev/null* | *'Invalid file or object type'*)
5774	  lt_cv_path_NM="$tmp_nm -B"
5775	  break
5776	  ;;
5777	*)
5778	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5779	  */dev/null*)
5780	    lt_cv_path_NM="$tmp_nm -p"
5781	    break
5782	    ;;
5783	  *)
5784	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5785	    continue # so that we can try to find one that supports BSD flags
5786	    ;;
5787	  esac
5788	  ;;
5789	esac
5790      fi
5791    done
5792    IFS="$lt_save_ifs"
5793  done
5794  : ${lt_cv_path_NM=no}
5795fi
5796fi
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5798$as_echo "$lt_cv_path_NM" >&6; }
5799if test "$lt_cv_path_NM" != "no"; then
5800  NM="$lt_cv_path_NM"
5801else
5802  # Didn't find any BSD compatible name lister, look for dumpbin.
5803  if test -n "$DUMPBIN"; then :
5804    # Let the user override the test.
5805  else
5806    if test -n "$ac_tool_prefix"; then
5807  for ac_prog in dumpbin "link -dump"
5808  do
5809    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5810set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812$as_echo_n "checking for $ac_word... " >&6; }
5813if ${ac_cv_prog_DUMPBIN+:} false; then :
5814  $as_echo_n "(cached) " >&6
5815else
5816  if test -n "$DUMPBIN"; then
5817  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5818else
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822  IFS=$as_save_IFS
5823  test -z "$as_dir" && as_dir=.
5824    for ac_exec_ext in '' $ac_executable_extensions; do
5825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828    break 2
5829  fi
5830done
5831  done
5832IFS=$as_save_IFS
5833
5834fi
5835fi
5836DUMPBIN=$ac_cv_prog_DUMPBIN
5837if test -n "$DUMPBIN"; then
5838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5839$as_echo "$DUMPBIN" >&6; }
5840else
5841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842$as_echo "no" >&6; }
5843fi
5844
5845
5846    test -n "$DUMPBIN" && break
5847  done
5848fi
5849if test -z "$DUMPBIN"; then
5850  ac_ct_DUMPBIN=$DUMPBIN
5851  for ac_prog in dumpbin "link -dump"
5852do
5853  # Extract the first word of "$ac_prog", so it can be a program name with args.
5854set dummy $ac_prog; ac_word=$2
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856$as_echo_n "checking for $ac_word... " >&6; }
5857if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5858  $as_echo_n "(cached) " >&6
5859else
5860  if test -n "$ac_ct_DUMPBIN"; then
5861  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866  IFS=$as_save_IFS
5867  test -z "$as_dir" && as_dir=.
5868    for ac_exec_ext in '' $ac_executable_extensions; do
5869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872    break 2
5873  fi
5874done
5875  done
5876IFS=$as_save_IFS
5877
5878fi
5879fi
5880ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5881if test -n "$ac_ct_DUMPBIN"; then
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5883$as_echo "$ac_ct_DUMPBIN" >&6; }
5884else
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886$as_echo "no" >&6; }
5887fi
5888
5889
5890  test -n "$ac_ct_DUMPBIN" && break
5891done
5892
5893  if test "x$ac_ct_DUMPBIN" = x; then
5894    DUMPBIN=":"
5895  else
5896    case $cross_compiling:$ac_tool_warned in
5897yes:)
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900ac_tool_warned=yes ;;
5901esac
5902    DUMPBIN=$ac_ct_DUMPBIN
5903  fi
5904fi
5905
5906    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5907    *COFF*)
5908      DUMPBIN="$DUMPBIN -symbols"
5909      ;;
5910    *)
5911      DUMPBIN=:
5912      ;;
5913    esac
5914  fi
5915
5916  if test "$DUMPBIN" != ":"; then
5917    NM="$DUMPBIN"
5918  fi
5919fi
5920test -z "$NM" && NM=nm
5921
5922
5923
5924
5925
5926
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5928$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5929if ${lt_cv_nm_interface+:} false; then :
5930  $as_echo_n "(cached) " >&6
5931else
5932  lt_cv_nm_interface="BSD nm"
5933  echo "int some_variable = 0;" > conftest.$ac_ext
5934  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5935  (eval "$ac_compile" 2>conftest.err)
5936  cat conftest.err >&5
5937  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5938  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5939  cat conftest.err >&5
5940  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5941  cat conftest.out >&5
5942  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5943    lt_cv_nm_interface="MS dumpbin"
5944  fi
5945  rm -f conftest*
5946fi
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5948$as_echo "$lt_cv_nm_interface" >&6; }
5949
5950# find the maximum length of command line arguments
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5952$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5953if ${lt_cv_sys_max_cmd_len+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956    i=0
5957  teststring="ABCD"
5958
5959  case $build_os in
5960  msdosdjgpp*)
5961    # On DJGPP, this test can blow up pretty badly due to problems in libc
5962    # (any single argument exceeding 2000 bytes causes a buffer overrun
5963    # during glob expansion).  Even if it were fixed, the result of this
5964    # check would be larger than it should be.
5965    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5966    ;;
5967
5968  gnu*)
5969    # Under GNU Hurd, this test is not required because there is
5970    # no limit to the length of command line arguments.
5971    # Libtool will interpret -1 as no limit whatsoever
5972    lt_cv_sys_max_cmd_len=-1;
5973    ;;
5974
5975  cygwin* | mingw* | cegcc*)
5976    # On Win9x/ME, this test blows up -- it succeeds, but takes
5977    # about 5 minutes as the teststring grows exponentially.
5978    # Worse, since 9x/ME are not pre-emptively multitasking,
5979    # you end up with a "frozen" computer, even though with patience
5980    # the test eventually succeeds (with a max line length of 256k).
5981    # Instead, let's just punt: use the minimum linelength reported by
5982    # all of the supported platforms: 8192 (on NT/2K/XP).
5983    lt_cv_sys_max_cmd_len=8192;
5984    ;;
5985
5986  mint*)
5987    # On MiNT this can take a long time and run out of memory.
5988    lt_cv_sys_max_cmd_len=8192;
5989    ;;
5990
5991  amigaos*)
5992    # On AmigaOS with pdksh, this test takes hours, literally.
5993    # So we just punt and use a minimum line length of 8192.
5994    lt_cv_sys_max_cmd_len=8192;
5995    ;;
5996
5997  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5998    # This has been around since 386BSD, at least.  Likely further.
5999    if test -x /sbin/sysctl; then
6000      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6001    elif test -x /usr/sbin/sysctl; then
6002      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6003    else
6004      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6005    fi
6006    # And add a safety zone
6007    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6008    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6009    ;;
6010
6011  interix*)
6012    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6013    lt_cv_sys_max_cmd_len=196608
6014    ;;
6015
6016  os2*)
6017    # The test takes a long time on OS/2.
6018    lt_cv_sys_max_cmd_len=8192
6019    ;;
6020
6021  osf*)
6022    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6023    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6024    # nice to cause kernel panics so lets avoid the loop below.
6025    # First set a reasonable default.
6026    lt_cv_sys_max_cmd_len=16384
6027    #
6028    if test -x /sbin/sysconfig; then
6029      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6030        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6031      esac
6032    fi
6033    ;;
6034  sco3.2v5*)
6035    lt_cv_sys_max_cmd_len=102400
6036    ;;
6037  sysv5* | sco5v6* | sysv4.2uw2*)
6038    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6039    if test -n "$kargmax"; then
6040      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6041    else
6042      lt_cv_sys_max_cmd_len=32768
6043    fi
6044    ;;
6045  *)
6046    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6047    if test -n "$lt_cv_sys_max_cmd_len"; then
6048      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6049      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6050    else
6051      # Make teststring a little bigger before we do anything with it.
6052      # a 1K string should be a reasonable start.
6053      for i in 1 2 3 4 5 6 7 8 ; do
6054        teststring=$teststring$teststring
6055      done
6056      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6057      # If test is not a shell built-in, we'll probably end up computing a
6058      # maximum length that is only half of the actual maximum length, but
6059      # we can't tell.
6060      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6061	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6062	      test $i != 17 # 1/2 MB should be enough
6063      do
6064        i=`expr $i + 1`
6065        teststring=$teststring$teststring
6066      done
6067      # Only check the string length outside the loop.
6068      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6069      teststring=
6070      # Add a significant safety factor because C++ compilers can tack on
6071      # massive amounts of additional arguments before passing them to the
6072      # linker.  It appears as though 1/2 is a usable value.
6073      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6074    fi
6075    ;;
6076  esac
6077
6078fi
6079
6080if test -n $lt_cv_sys_max_cmd_len ; then
6081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6082$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6083else
6084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6085$as_echo "none" >&6; }
6086fi
6087max_cmd_len=$lt_cv_sys_max_cmd_len
6088
6089
6090
6091
6092
6093
6094: ${CP="cp -f"}
6095: ${MV="mv -f"}
6096: ${RM="rm -f"}
6097
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6099$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6100# Try some XSI features
6101xsi_shell=no
6102( _lt_dummy="a/b/c"
6103  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6104      = c,a/b,b/c, \
6105    && eval 'test $(( 1 + 1 )) -eq 2 \
6106    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6107  && xsi_shell=yes
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6109$as_echo "$xsi_shell" >&6; }
6110
6111
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6113$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6114lt_shell_append=no
6115( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6116    >/dev/null 2>&1 \
6117  && lt_shell_append=yes
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6119$as_echo "$lt_shell_append" >&6; }
6120
6121
6122if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6123  lt_unset=unset
6124else
6125  lt_unset=false
6126fi
6127
6128
6129
6130
6131
6132# test EBCDIC or ASCII
6133case `echo X|tr X '\101'` in
6134 A) # ASCII based system
6135    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6136  lt_SP2NL='tr \040 \012'
6137  lt_NL2SP='tr \015\012 \040\040'
6138  ;;
6139 *) # EBCDIC based system
6140  lt_SP2NL='tr \100 \n'
6141  lt_NL2SP='tr \r\n \100\100'
6142  ;;
6143esac
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6154$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6155if ${lt_cv_to_host_file_cmd+:} false; then :
6156  $as_echo_n "(cached) " >&6
6157else
6158  case $host in
6159  *-*-mingw* )
6160    case $build in
6161      *-*-mingw* ) # actually msys
6162        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6163        ;;
6164      *-*-cygwin* )
6165        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6166        ;;
6167      * ) # otherwise, assume *nix
6168        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6169        ;;
6170    esac
6171    ;;
6172  *-*-cygwin* )
6173    case $build in
6174      *-*-mingw* ) # actually msys
6175        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6176        ;;
6177      *-*-cygwin* )
6178        lt_cv_to_host_file_cmd=func_convert_file_noop
6179        ;;
6180      * ) # otherwise, assume *nix
6181        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6182        ;;
6183    esac
6184    ;;
6185  * ) # unhandled hosts (and "normal" native builds)
6186    lt_cv_to_host_file_cmd=func_convert_file_noop
6187    ;;
6188esac
6189
6190fi
6191
6192to_host_file_cmd=$lt_cv_to_host_file_cmd
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6194$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6195
6196
6197
6198
6199
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6201$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6202if ${lt_cv_to_tool_file_cmd+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  #assume ordinary cross tools, or native build.
6206lt_cv_to_tool_file_cmd=func_convert_file_noop
6207case $host in
6208  *-*-mingw* )
6209    case $build in
6210      *-*-mingw* ) # actually msys
6211        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6212        ;;
6213    esac
6214    ;;
6215esac
6216
6217fi
6218
6219to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6221$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6222
6223
6224
6225
6226
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6228$as_echo_n "checking for $LD option to reload object files... " >&6; }
6229if ${lt_cv_ld_reload_flag+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232  lt_cv_ld_reload_flag='-r'
6233fi
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6235$as_echo "$lt_cv_ld_reload_flag" >&6; }
6236reload_flag=$lt_cv_ld_reload_flag
6237case $reload_flag in
6238"" | " "*) ;;
6239*) reload_flag=" $reload_flag" ;;
6240esac
6241reload_cmds='$LD$reload_flag -o $output$reload_objs'
6242case $host_os in
6243  cygwin* | mingw* | pw32* | cegcc*)
6244    if test "$GCC" != yes; then
6245      reload_cmds=false
6246    fi
6247    ;;
6248  darwin*)
6249    if test "$GCC" = yes; then
6250      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6251    else
6252      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6253    fi
6254    ;;
6255esac
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265if test -n "$ac_tool_prefix"; then
6266  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6267set dummy ${ac_tool_prefix}objdump; ac_word=$2
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269$as_echo_n "checking for $ac_word... " >&6; }
6270if ${ac_cv_prog_OBJDUMP+:} false; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273  if test -n "$OBJDUMP"; then
6274  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6275else
6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279  IFS=$as_save_IFS
6280  test -z "$as_dir" && as_dir=.
6281    for ac_exec_ext in '' $ac_executable_extensions; do
6282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6283    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285    break 2
6286  fi
6287done
6288  done
6289IFS=$as_save_IFS
6290
6291fi
6292fi
6293OBJDUMP=$ac_cv_prog_OBJDUMP
6294if test -n "$OBJDUMP"; then
6295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6296$as_echo "$OBJDUMP" >&6; }
6297else
6298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299$as_echo "no" >&6; }
6300fi
6301
6302
6303fi
6304if test -z "$ac_cv_prog_OBJDUMP"; then
6305  ac_ct_OBJDUMP=$OBJDUMP
6306  # Extract the first word of "objdump", so it can be a program name with args.
6307set dummy objdump; ac_word=$2
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309$as_echo_n "checking for $ac_word... " >&6; }
6310if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  if test -n "$ac_ct_OBJDUMP"; then
6314  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319  IFS=$as_save_IFS
6320  test -z "$as_dir" && as_dir=.
6321    for ac_exec_ext in '' $ac_executable_extensions; do
6322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325    break 2
6326  fi
6327done
6328  done
6329IFS=$as_save_IFS
6330
6331fi
6332fi
6333ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6334if test -n "$ac_ct_OBJDUMP"; then
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6336$as_echo "$ac_ct_OBJDUMP" >&6; }
6337else
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339$as_echo "no" >&6; }
6340fi
6341
6342  if test "x$ac_ct_OBJDUMP" = x; then
6343    OBJDUMP="false"
6344  else
6345    case $cross_compiling:$ac_tool_warned in
6346yes:)
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349ac_tool_warned=yes ;;
6350esac
6351    OBJDUMP=$ac_ct_OBJDUMP
6352  fi
6353else
6354  OBJDUMP="$ac_cv_prog_OBJDUMP"
6355fi
6356
6357test -z "$OBJDUMP" && OBJDUMP=objdump
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6368$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6369if ${lt_cv_deplibs_check_method+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  lt_cv_file_magic_cmd='$MAGIC_CMD'
6373lt_cv_file_magic_test_file=
6374lt_cv_deplibs_check_method='unknown'
6375# Need to set the preceding variable on all platforms that support
6376# interlibrary dependencies.
6377# 'none' -- dependencies not supported.
6378# `unknown' -- same as none, but documents that we really don't know.
6379# 'pass_all' -- all dependencies passed with no checks.
6380# 'test_compile' -- check by making test program.
6381# 'file_magic [[regex]]' -- check by looking for files in library path
6382# which responds to the $file_magic_cmd with a given extended regex.
6383# If you have `file' or equivalent on your system and you're not sure
6384# whether `pass_all' will *always* work, you probably want this one.
6385
6386case $host_os in
6387aix[4-9]*)
6388  lt_cv_deplibs_check_method=pass_all
6389  ;;
6390
6391beos*)
6392  lt_cv_deplibs_check_method=pass_all
6393  ;;
6394
6395bsdi[45]*)
6396  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6397  lt_cv_file_magic_cmd='/usr/bin/file -L'
6398  lt_cv_file_magic_test_file=/shlib/libc.so
6399  ;;
6400
6401cygwin*)
6402  # func_win32_libid is a shell function defined in ltmain.sh
6403  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6404  lt_cv_file_magic_cmd='func_win32_libid'
6405  ;;
6406
6407mingw* | pw32*)
6408  # Base MSYS/MinGW do not provide the 'file' command needed by
6409  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6410  # unless we find 'file', for example because we are cross-compiling.
6411  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6412  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6413    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6414    lt_cv_file_magic_cmd='func_win32_libid'
6415  else
6416    # Keep this pattern in sync with the one in func_win32_libid.
6417    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6418    lt_cv_file_magic_cmd='$OBJDUMP -f'
6419  fi
6420  ;;
6421
6422cegcc*)
6423  # use the weaker test based on 'objdump'. See mingw*.
6424  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6425  lt_cv_file_magic_cmd='$OBJDUMP -f'
6426  ;;
6427
6428darwin* | rhapsody*)
6429  lt_cv_deplibs_check_method=pass_all
6430  ;;
6431
6432freebsd* | dragonfly*)
6433  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6434    case $host_cpu in
6435    i*86 )
6436      # Not sure whether the presence of OpenBSD here was a mistake.
6437      # Let's accept both of them until this is cleared up.
6438      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6439      lt_cv_file_magic_cmd=/usr/bin/file
6440      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6441      ;;
6442    esac
6443  else
6444    lt_cv_deplibs_check_method=pass_all
6445  fi
6446  ;;
6447
6448gnu*)
6449  lt_cv_deplibs_check_method=pass_all
6450  ;;
6451
6452haiku*)
6453  lt_cv_deplibs_check_method=pass_all
6454  ;;
6455
6456hpux10.20* | hpux11*)
6457  lt_cv_file_magic_cmd=/usr/bin/file
6458  case $host_cpu in
6459  ia64*)
6460    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6461    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6462    ;;
6463  hppa*64*)
6464    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]'
6465    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6466    ;;
6467  *)
6468    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6469    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6470    ;;
6471  esac
6472  ;;
6473
6474interix[3-9]*)
6475  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6476  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6477  ;;
6478
6479irix5* | irix6* | nonstopux*)
6480  case $LD in
6481  *-32|*"-32 ") libmagic=32-bit;;
6482  *-n32|*"-n32 ") libmagic=N32;;
6483  *-64|*"-64 ") libmagic=64-bit;;
6484  *) libmagic=never-match;;
6485  esac
6486  lt_cv_deplibs_check_method=pass_all
6487  ;;
6488
6489# This must be glibc/ELF.
6490linux* | k*bsd*-gnu | kopensolaris*-gnu)
6491  lt_cv_deplibs_check_method=pass_all
6492  ;;
6493
6494netbsd*)
6495  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6496    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6497  else
6498    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6499  fi
6500  ;;
6501
6502newos6*)
6503  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6504  lt_cv_file_magic_cmd=/usr/bin/file
6505  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6506  ;;
6507
6508*nto* | *qnx*)
6509  lt_cv_deplibs_check_method=pass_all
6510  ;;
6511
6512openbsd*)
6513  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6514    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6515  else
6516    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6517  fi
6518  ;;
6519
6520osf3* | osf4* | osf5*)
6521  lt_cv_deplibs_check_method=pass_all
6522  ;;
6523
6524rdos*)
6525  lt_cv_deplibs_check_method=pass_all
6526  ;;
6527
6528solaris*)
6529  lt_cv_deplibs_check_method=pass_all
6530  ;;
6531
6532sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6533  lt_cv_deplibs_check_method=pass_all
6534  ;;
6535
6536sysv4 | sysv4.3*)
6537  case $host_vendor in
6538  motorola)
6539    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]'
6540    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6541    ;;
6542  ncr)
6543    lt_cv_deplibs_check_method=pass_all
6544    ;;
6545  sequent)
6546    lt_cv_file_magic_cmd='/bin/file'
6547    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6548    ;;
6549  sni)
6550    lt_cv_file_magic_cmd='/bin/file'
6551    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6552    lt_cv_file_magic_test_file=/lib/libc.so
6553    ;;
6554  siemens)
6555    lt_cv_deplibs_check_method=pass_all
6556    ;;
6557  pc)
6558    lt_cv_deplibs_check_method=pass_all
6559    ;;
6560  esac
6561  ;;
6562
6563tpf*)
6564  lt_cv_deplibs_check_method=pass_all
6565  ;;
6566esac
6567
6568fi
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6570$as_echo "$lt_cv_deplibs_check_method" >&6; }
6571
6572file_magic_glob=
6573want_nocaseglob=no
6574if test "$build" = "$host"; then
6575  case $host_os in
6576  mingw* | pw32*)
6577    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6578      want_nocaseglob=yes
6579    else
6580      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6581    fi
6582    ;;
6583  esac
6584fi
6585
6586file_magic_cmd=$lt_cv_file_magic_cmd
6587deplibs_check_method=$lt_cv_deplibs_check_method
6588test -z "$deplibs_check_method" && deplibs_check_method=unknown
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611if test -n "$ac_tool_prefix"; then
6612  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6613set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if ${ac_cv_prog_DLLTOOL+:} false; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  if test -n "$DLLTOOL"; then
6620  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625  IFS=$as_save_IFS
6626  test -z "$as_dir" && as_dir=.
6627    for ac_exec_ext in '' $ac_executable_extensions; do
6628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631    break 2
6632  fi
6633done
6634  done
6635IFS=$as_save_IFS
6636
6637fi
6638fi
6639DLLTOOL=$ac_cv_prog_DLLTOOL
6640if test -n "$DLLTOOL"; then
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6642$as_echo "$DLLTOOL" >&6; }
6643else
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648
6649fi
6650if test -z "$ac_cv_prog_DLLTOOL"; then
6651  ac_ct_DLLTOOL=$DLLTOOL
6652  # Extract the first word of "dlltool", so it can be a program name with args.
6653set dummy dlltool; ac_word=$2
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
6656if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6657  $as_echo_n "(cached) " >&6
6658else
6659  if test -n "$ac_ct_DLLTOOL"; then
6660  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665  IFS=$as_save_IFS
6666  test -z "$as_dir" && as_dir=.
6667    for ac_exec_ext in '' $ac_executable_extensions; do
6668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671    break 2
6672  fi
6673done
6674  done
6675IFS=$as_save_IFS
6676
6677fi
6678fi
6679ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6680if test -n "$ac_ct_DLLTOOL"; then
6681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6682$as_echo "$ac_ct_DLLTOOL" >&6; }
6683else
6684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685$as_echo "no" >&6; }
6686fi
6687
6688  if test "x$ac_ct_DLLTOOL" = x; then
6689    DLLTOOL="false"
6690  else
6691    case $cross_compiling:$ac_tool_warned in
6692yes:)
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695ac_tool_warned=yes ;;
6696esac
6697    DLLTOOL=$ac_ct_DLLTOOL
6698  fi
6699else
6700  DLLTOOL="$ac_cv_prog_DLLTOOL"
6701fi
6702
6703test -z "$DLLTOOL" && DLLTOOL=dlltool
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6715$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6716if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  lt_cv_sharedlib_from_linklib_cmd='unknown'
6720
6721case $host_os in
6722cygwin* | mingw* | pw32* | cegcc*)
6723  # two different shell functions defined in ltmain.sh
6724  # decide which to use based on capabilities of $DLLTOOL
6725  case `$DLLTOOL --help 2>&1` in
6726  *--identify-strict*)
6727    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6728    ;;
6729  *)
6730    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6731    ;;
6732  esac
6733  ;;
6734*)
6735  # fallback: assume linklib IS sharedlib
6736  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6737  ;;
6738esac
6739
6740fi
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6742$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6743sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6744test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6745
6746
6747
6748
6749
6750
6751
6752if test -n "$ac_tool_prefix"; then
6753  for ac_prog in ar
6754  do
6755    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6756set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758$as_echo_n "checking for $ac_word... " >&6; }
6759if ${ac_cv_prog_AR+:} false; then :
6760  $as_echo_n "(cached) " >&6
6761else
6762  if test -n "$AR"; then
6763  ac_cv_prog_AR="$AR" # Let the user override the test.
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768  IFS=$as_save_IFS
6769  test -z "$as_dir" && as_dir=.
6770    for ac_exec_ext in '' $ac_executable_extensions; do
6771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774    break 2
6775  fi
6776done
6777  done
6778IFS=$as_save_IFS
6779
6780fi
6781fi
6782AR=$ac_cv_prog_AR
6783if test -n "$AR"; then
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6785$as_echo "$AR" >&6; }
6786else
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788$as_echo "no" >&6; }
6789fi
6790
6791
6792    test -n "$AR" && break
6793  done
6794fi
6795if test -z "$AR"; then
6796  ac_ct_AR=$AR
6797  for ac_prog in ar
6798do
6799  # Extract the first word of "$ac_prog", so it can be a program name with args.
6800set dummy $ac_prog; ac_word=$2
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802$as_echo_n "checking for $ac_word... " >&6; }
6803if ${ac_cv_prog_ac_ct_AR+:} false; then :
6804  $as_echo_n "(cached) " >&6
6805else
6806  if test -n "$ac_ct_AR"; then
6807  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6808else
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812  IFS=$as_save_IFS
6813  test -z "$as_dir" && as_dir=.
6814    for ac_exec_ext in '' $ac_executable_extensions; do
6815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6816    ac_cv_prog_ac_ct_AR="$ac_prog"
6817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818    break 2
6819  fi
6820done
6821  done
6822IFS=$as_save_IFS
6823
6824fi
6825fi
6826ac_ct_AR=$ac_cv_prog_ac_ct_AR
6827if test -n "$ac_ct_AR"; then
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6829$as_echo "$ac_ct_AR" >&6; }
6830else
6831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832$as_echo "no" >&6; }
6833fi
6834
6835
6836  test -n "$ac_ct_AR" && break
6837done
6838
6839  if test "x$ac_ct_AR" = x; then
6840    AR="false"
6841  else
6842    case $cross_compiling:$ac_tool_warned in
6843yes:)
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6846ac_tool_warned=yes ;;
6847esac
6848    AR=$ac_ct_AR
6849  fi
6850fi
6851
6852: ${AR=ar}
6853: ${AR_FLAGS=cru}
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6866$as_echo_n "checking for archiver @FILE support... " >&6; }
6867if ${lt_cv_ar_at_file+:} false; then :
6868  $as_echo_n "(cached) " >&6
6869else
6870  lt_cv_ar_at_file=no
6871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h.  */
6873
6874int
6875main ()
6876{
6877
6878  ;
6879  return 0;
6880}
6881_ACEOF
6882if ac_fn_c_try_compile "$LINENO"; then :
6883  echo conftest.$ac_objext > conftest.lst
6884      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6885      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6886  (eval $lt_ar_try) 2>&5
6887  ac_status=$?
6888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889  test $ac_status = 0; }
6890      if test "$ac_status" -eq 0; then
6891	# Ensure the archiver fails upon bogus file names.
6892	rm -f conftest.$ac_objext libconftest.a
6893	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6894  (eval $lt_ar_try) 2>&5
6895  ac_status=$?
6896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897  test $ac_status = 0; }
6898	if test "$ac_status" -ne 0; then
6899          lt_cv_ar_at_file=@
6900        fi
6901      fi
6902      rm -f conftest.* libconftest.a
6903
6904fi
6905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906
6907fi
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6909$as_echo "$lt_cv_ar_at_file" >&6; }
6910
6911if test "x$lt_cv_ar_at_file" = xno; then
6912  archiver_list_spec=
6913else
6914  archiver_list_spec=$lt_cv_ar_at_file
6915fi
6916
6917
6918
6919
6920
6921
6922
6923if test -n "$ac_tool_prefix"; then
6924  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6925set dummy ${ac_tool_prefix}strip; ac_word=$2
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927$as_echo_n "checking for $ac_word... " >&6; }
6928if ${ac_cv_prog_STRIP+:} false; then :
6929  $as_echo_n "(cached) " >&6
6930else
6931  if test -n "$STRIP"; then
6932  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6933else
6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937  IFS=$as_save_IFS
6938  test -z "$as_dir" && as_dir=.
6939    for ac_exec_ext in '' $ac_executable_extensions; do
6940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943    break 2
6944  fi
6945done
6946  done
6947IFS=$as_save_IFS
6948
6949fi
6950fi
6951STRIP=$ac_cv_prog_STRIP
6952if test -n "$STRIP"; then
6953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6954$as_echo "$STRIP" >&6; }
6955else
6956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957$as_echo "no" >&6; }
6958fi
6959
6960
6961fi
6962if test -z "$ac_cv_prog_STRIP"; then
6963  ac_ct_STRIP=$STRIP
6964  # Extract the first word of "strip", so it can be a program name with args.
6965set dummy strip; ac_word=$2
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967$as_echo_n "checking for $ac_word... " >&6; }
6968if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6969  $as_echo_n "(cached) " >&6
6970else
6971  if test -n "$ac_ct_STRIP"; then
6972  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977  IFS=$as_save_IFS
6978  test -z "$as_dir" && as_dir=.
6979    for ac_exec_ext in '' $ac_executable_extensions; do
6980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6981    ac_cv_prog_ac_ct_STRIP="strip"
6982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983    break 2
6984  fi
6985done
6986  done
6987IFS=$as_save_IFS
6988
6989fi
6990fi
6991ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6992if test -n "$ac_ct_STRIP"; then
6993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6994$as_echo "$ac_ct_STRIP" >&6; }
6995else
6996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997$as_echo "no" >&6; }
6998fi
6999
7000  if test "x$ac_ct_STRIP" = x; then
7001    STRIP=":"
7002  else
7003    case $cross_compiling:$ac_tool_warned in
7004yes:)
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7007ac_tool_warned=yes ;;
7008esac
7009    STRIP=$ac_ct_STRIP
7010  fi
7011else
7012  STRIP="$ac_cv_prog_STRIP"
7013fi
7014
7015test -z "$STRIP" && STRIP=:
7016
7017
7018
7019
7020
7021
7022if test -n "$ac_tool_prefix"; then
7023  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7024set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026$as_echo_n "checking for $ac_word... " >&6; }
7027if ${ac_cv_prog_RANLIB+:} false; then :
7028  $as_echo_n "(cached) " >&6
7029else
7030  if test -n "$RANLIB"; then
7031  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036  IFS=$as_save_IFS
7037  test -z "$as_dir" && as_dir=.
7038    for ac_exec_ext in '' $ac_executable_extensions; do
7039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042    break 2
7043  fi
7044done
7045  done
7046IFS=$as_save_IFS
7047
7048fi
7049fi
7050RANLIB=$ac_cv_prog_RANLIB
7051if test -n "$RANLIB"; then
7052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7053$as_echo "$RANLIB" >&6; }
7054else
7055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056$as_echo "no" >&6; }
7057fi
7058
7059
7060fi
7061if test -z "$ac_cv_prog_RANLIB"; then
7062  ac_ct_RANLIB=$RANLIB
7063  # Extract the first word of "ranlib", so it can be a program name with args.
7064set dummy ranlib; ac_word=$2
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066$as_echo_n "checking for $ac_word... " >&6; }
7067if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7068  $as_echo_n "(cached) " >&6
7069else
7070  if test -n "$ac_ct_RANLIB"; then
7071  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076  IFS=$as_save_IFS
7077  test -z "$as_dir" && as_dir=.
7078    for ac_exec_ext in '' $ac_executable_extensions; do
7079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080    ac_cv_prog_ac_ct_RANLIB="ranlib"
7081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082    break 2
7083  fi
7084done
7085  done
7086IFS=$as_save_IFS
7087
7088fi
7089fi
7090ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7091if test -n "$ac_ct_RANLIB"; then
7092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7093$as_echo "$ac_ct_RANLIB" >&6; }
7094else
7095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096$as_echo "no" >&6; }
7097fi
7098
7099  if test "x$ac_ct_RANLIB" = x; then
7100    RANLIB=":"
7101  else
7102    case $cross_compiling:$ac_tool_warned in
7103yes:)
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7106ac_tool_warned=yes ;;
7107esac
7108    RANLIB=$ac_ct_RANLIB
7109  fi
7110else
7111  RANLIB="$ac_cv_prog_RANLIB"
7112fi
7113
7114test -z "$RANLIB" && RANLIB=:
7115
7116
7117
7118
7119
7120
7121# Determine commands to create old-style static archives.
7122old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7123old_postinstall_cmds='chmod 644 $oldlib'
7124old_postuninstall_cmds=
7125
7126if test -n "$RANLIB"; then
7127  case $host_os in
7128  openbsd*)
7129    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7130    ;;
7131  *)
7132    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7133    ;;
7134  esac
7135  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7136fi
7137
7138case $host_os in
7139  darwin*)
7140    lock_old_archive_extraction=yes ;;
7141  *)
7142    lock_old_archive_extraction=no ;;
7143esac
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183# If no C compiler was specified, use CC.
7184LTCC=${LTCC-"$CC"}
7185
7186# If no C compiler flags were specified, use CFLAGS.
7187LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7188
7189# Allow CC to be a program name with arguments.
7190compiler=$CC
7191
7192
7193# Check for command to grab the raw symbol name followed by C symbol from nm.
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7195$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7196if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7197  $as_echo_n "(cached) " >&6
7198else
7199
7200# These are sane defaults that work on at least a few old systems.
7201# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7202
7203# Character class describing NM global symbol codes.
7204symcode='[BCDEGRST]'
7205
7206# Regexp to match symbols that can be accessed directly from C.
7207sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7208
7209# Define system-specific variables.
7210case $host_os in
7211aix*)
7212  symcode='[BCDT]'
7213  ;;
7214cygwin* | mingw* | pw32* | cegcc*)
7215  symcode='[ABCDGISTW]'
7216  ;;
7217hpux*)
7218  if test "$host_cpu" = ia64; then
7219    symcode='[ABCDEGRST]'
7220  fi
7221  ;;
7222irix* | nonstopux*)
7223  symcode='[BCDEGRST]'
7224  ;;
7225osf*)
7226  symcode='[BCDEGQRST]'
7227  ;;
7228solaris*)
7229  symcode='[BDRT]'
7230  ;;
7231sco3.2v5*)
7232  symcode='[DT]'
7233  ;;
7234sysv4.2uw2*)
7235  symcode='[DT]'
7236  ;;
7237sysv5* | sco5v6* | unixware* | OpenUNIX*)
7238  symcode='[ABDT]'
7239  ;;
7240sysv4)
7241  symcode='[DFNSTU]'
7242  ;;
7243esac
7244
7245# If we're using GNU nm, then use its standard symbol codes.
7246case `$NM -V 2>&1` in
7247*GNU* | *'with BFD'*)
7248  symcode='[ABCDGIRSTW]' ;;
7249esac
7250
7251# Transform an extracted symbol line into a proper C declaration.
7252# Some systems (esp. on ia64) link data and code symbols differently,
7253# so use this general approach.
7254lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7255
7256# Transform an extracted symbol line into symbol name and symbol address
7257lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7258lt_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'"
7259
7260# Handle CRLF in mingw tool chain
7261opt_cr=
7262case $build_os in
7263mingw*)
7264  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7265  ;;
7266esac
7267
7268# Try without a prefix underscore, then with it.
7269for ac_symprfx in "" "_"; do
7270
7271  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7272  symxfrm="\\1 $ac_symprfx\\2 \\2"
7273
7274  # Write the raw and C identifiers.
7275  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7276    # Fake it for dumpbin and say T for any non-static function
7277    # and D for any global variable.
7278    # Also find C++ and __fastcall symbols from MSVC++,
7279    # which start with @ or ?.
7280    lt_cv_sys_global_symbol_pipe="$AWK '"\
7281"     {last_section=section; section=\$ 3};"\
7282"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7283"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7284"     \$ 0!~/External *\|/{next};"\
7285"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7286"     {if(hide[section]) next};"\
7287"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7288"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7289"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7290"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7291"     ' prfx=^$ac_symprfx"
7292  else
7293    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7294  fi
7295  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7296
7297  # Check to see that the pipe works correctly.
7298  pipe_works=no
7299
7300  rm -f conftest*
7301  cat > conftest.$ac_ext <<_LT_EOF
7302#ifdef __cplusplus
7303extern "C" {
7304#endif
7305char nm_test_var;
7306void nm_test_func(void);
7307void nm_test_func(void){}
7308#ifdef __cplusplus
7309}
7310#endif
7311int main(){nm_test_var='a';nm_test_func();return(0);}
7312_LT_EOF
7313
7314  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7315  (eval $ac_compile) 2>&5
7316  ac_status=$?
7317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318  test $ac_status = 0; }; then
7319    # Now try to grab the symbols.
7320    nlist=conftest.nm
7321    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7322  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7323  ac_status=$?
7324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325  test $ac_status = 0; } && test -s "$nlist"; then
7326      # Try sorting and uniquifying the output.
7327      if sort "$nlist" | uniq > "$nlist"T; then
7328	mv -f "$nlist"T "$nlist"
7329      else
7330	rm -f "$nlist"T
7331      fi
7332
7333      # Make sure that we snagged all the symbols we need.
7334      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7335	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7336	  cat <<_LT_EOF > conftest.$ac_ext
7337/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7338#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7339/* DATA imports from DLLs on WIN32 con't be const, because runtime
7340   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7341# define LT_DLSYM_CONST
7342#elif defined(__osf__)
7343/* This system does not cope well with relocations in const data.  */
7344# define LT_DLSYM_CONST
7345#else
7346# define LT_DLSYM_CONST const
7347#endif
7348
7349#ifdef __cplusplus
7350extern "C" {
7351#endif
7352
7353_LT_EOF
7354	  # Now generate the symbol file.
7355	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7356
7357	  cat <<_LT_EOF >> conftest.$ac_ext
7358
7359/* The mapping between symbol names and symbols.  */
7360LT_DLSYM_CONST struct {
7361  const char *name;
7362  void       *address;
7363}
7364lt__PROGRAM__LTX_preloaded_symbols[] =
7365{
7366  { "@PROGRAM@", (void *) 0 },
7367_LT_EOF
7368	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7369	  cat <<\_LT_EOF >> conftest.$ac_ext
7370  {0, (void *) 0}
7371};
7372
7373/* This works around a problem in FreeBSD linker */
7374#ifdef FREEBSD_WORKAROUND
7375static const void *lt_preloaded_setup() {
7376  return lt__PROGRAM__LTX_preloaded_symbols;
7377}
7378#endif
7379
7380#ifdef __cplusplus
7381}
7382#endif
7383_LT_EOF
7384	  # Now try linking the two files.
7385	  mv conftest.$ac_objext conftstm.$ac_objext
7386	  lt_globsym_save_LIBS=$LIBS
7387	  lt_globsym_save_CFLAGS=$CFLAGS
7388	  LIBS="conftstm.$ac_objext"
7389	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7390	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7391  (eval $ac_link) 2>&5
7392  ac_status=$?
7393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7395	    pipe_works=yes
7396	  fi
7397	  LIBS=$lt_globsym_save_LIBS
7398	  CFLAGS=$lt_globsym_save_CFLAGS
7399	else
7400	  echo "cannot find nm_test_func in $nlist" >&5
7401	fi
7402      else
7403	echo "cannot find nm_test_var in $nlist" >&5
7404      fi
7405    else
7406      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7407    fi
7408  else
7409    echo "$progname: failed program was:" >&5
7410    cat conftest.$ac_ext >&5
7411  fi
7412  rm -rf conftest* conftst*
7413
7414  # Do not use the global_symbol_pipe unless it works.
7415  if test "$pipe_works" = yes; then
7416    break
7417  else
7418    lt_cv_sys_global_symbol_pipe=
7419  fi
7420done
7421
7422fi
7423
7424if test -z "$lt_cv_sys_global_symbol_pipe"; then
7425  lt_cv_sys_global_symbol_to_cdecl=
7426fi
7427if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7429$as_echo "failed" >&6; }
7430else
7431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7432$as_echo "ok" >&6; }
7433fi
7434
7435# Response file support.
7436if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7437  nm_file_list_spec='@'
7438elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7439  nm_file_list_spec='@'
7440fi
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7469$as_echo_n "checking for sysroot... " >&6; }
7470
7471# Check whether --with-sysroot was given.
7472if test "${with_sysroot+set}" = set; then :
7473  withval=$with_sysroot;
7474else
7475  with_sysroot=no
7476fi
7477
7478
7479lt_sysroot=
7480case ${with_sysroot} in #(
7481 yes)
7482   if test "$GCC" = yes; then
7483     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7484   fi
7485   ;; #(
7486 /*)
7487   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7488   ;; #(
7489 no|'')
7490   ;; #(
7491 *)
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7493$as_echo "${with_sysroot}" >&6; }
7494   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7495   ;;
7496esac
7497
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7499$as_echo "${lt_sysroot:-no}" >&6; }
7500
7501
7502
7503
7504
7505# Check whether --enable-libtool-lock was given.
7506if test "${enable_libtool_lock+set}" = set; then :
7507  enableval=$enable_libtool_lock;
7508fi
7509
7510test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7511
7512# Some flags need to be propagated to the compiler or linker for good
7513# libtool support.
7514case $host in
7515ia64-*-hpux*)
7516  # Find out which ABI we are using.
7517  echo 'int i;' > conftest.$ac_ext
7518  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7519  (eval $ac_compile) 2>&5
7520  ac_status=$?
7521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522  test $ac_status = 0; }; then
7523    case `/usr/bin/file conftest.$ac_objext` in
7524      *ELF-32*)
7525	HPUX_IA64_MODE="32"
7526	;;
7527      *ELF-64*)
7528	HPUX_IA64_MODE="64"
7529	;;
7530    esac
7531  fi
7532  rm -rf conftest*
7533  ;;
7534*-*-irix6*)
7535  # Find out which ABI we are using.
7536  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7537  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7538  (eval $ac_compile) 2>&5
7539  ac_status=$?
7540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541  test $ac_status = 0; }; then
7542    if test "$lt_cv_prog_gnu_ld" = yes; then
7543      case `/usr/bin/file conftest.$ac_objext` in
7544	*32-bit*)
7545	  LD="${LD-ld} -melf32bsmip"
7546	  ;;
7547	*N32*)
7548	  LD="${LD-ld} -melf32bmipn32"
7549	  ;;
7550	*64-bit*)
7551	  LD="${LD-ld} -melf64bmip"
7552	;;
7553      esac
7554    else
7555      case `/usr/bin/file conftest.$ac_objext` in
7556	*32-bit*)
7557	  LD="${LD-ld} -32"
7558	  ;;
7559	*N32*)
7560	  LD="${LD-ld} -n32"
7561	  ;;
7562	*64-bit*)
7563	  LD="${LD-ld} -64"
7564	  ;;
7565      esac
7566    fi
7567  fi
7568  rm -rf conftest*
7569  ;;
7570
7571x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7572s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7573  # Find out which ABI we are using.
7574  echo 'int i;' > conftest.$ac_ext
7575  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7576  (eval $ac_compile) 2>&5
7577  ac_status=$?
7578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579  test $ac_status = 0; }; then
7580    case `/usr/bin/file conftest.o` in
7581      *32-bit*)
7582	case $host in
7583	  x86_64-*kfreebsd*-gnu)
7584	    LD="${LD-ld} -m elf_i386_fbsd"
7585	    ;;
7586	  x86_64-*linux*)
7587	    LD="${LD-ld} -m elf_i386"
7588	    ;;
7589	  ppc64-*linux*|powerpc64-*linux*)
7590	    LD="${LD-ld} -m elf32ppclinux"
7591	    ;;
7592	  s390x-*linux*)
7593	    LD="${LD-ld} -m elf_s390"
7594	    ;;
7595	  sparc64-*linux*)
7596	    LD="${LD-ld} -m elf32_sparc"
7597	    ;;
7598	esac
7599	;;
7600      *64-bit*)
7601	case $host in
7602	  x86_64-*kfreebsd*-gnu)
7603	    LD="${LD-ld} -m elf_x86_64_fbsd"
7604	    ;;
7605	  x86_64-*linux*)
7606	    LD="${LD-ld} -m elf_x86_64"
7607	    ;;
7608	  ppc*-*linux*|powerpc*-*linux*)
7609	    LD="${LD-ld} -m elf64ppc"
7610	    ;;
7611	  s390*-*linux*|s390*-*tpf*)
7612	    LD="${LD-ld} -m elf64_s390"
7613	    ;;
7614	  sparc*-*linux*)
7615	    LD="${LD-ld} -m elf64_sparc"
7616	    ;;
7617	esac
7618	;;
7619    esac
7620  fi
7621  rm -rf conftest*
7622  ;;
7623
7624*-*-sco3.2v5*)
7625  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7626  SAVE_CFLAGS="$CFLAGS"
7627  CFLAGS="$CFLAGS -belf"
7628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7629$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7630if ${lt_cv_cc_needs_belf+:} false; then :
7631  $as_echo_n "(cached) " >&6
7632else
7633  ac_ext=c
7634ac_cpp='$CPP $CPPFLAGS'
7635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7637ac_compiler_gnu=$ac_cv_c_compiler_gnu
7638
7639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640/* end confdefs.h.  */
7641
7642int
7643main ()
7644{
7645
7646  ;
7647  return 0;
7648}
7649_ACEOF
7650if ac_fn_c_try_link "$LINENO"; then :
7651  lt_cv_cc_needs_belf=yes
7652else
7653  lt_cv_cc_needs_belf=no
7654fi
7655rm -f core conftest.err conftest.$ac_objext \
7656    conftest$ac_exeext conftest.$ac_ext
7657     ac_ext=c
7658ac_cpp='$CPP $CPPFLAGS'
7659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661ac_compiler_gnu=$ac_cv_c_compiler_gnu
7662
7663fi
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7665$as_echo "$lt_cv_cc_needs_belf" >&6; }
7666  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7667    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7668    CFLAGS="$SAVE_CFLAGS"
7669  fi
7670  ;;
7671*-*solaris*)
7672  # Find out which ABI we are using.
7673  echo 'int i;' > conftest.$ac_ext
7674  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7675  (eval $ac_compile) 2>&5
7676  ac_status=$?
7677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7678  test $ac_status = 0; }; then
7679    case `/usr/bin/file conftest.o` in
7680    *64-bit*)
7681      case $lt_cv_prog_gnu_ld in
7682      yes*)
7683        case $host in
7684        i?86-*-solaris*)
7685          LD="${LD-ld} -m elf_x86_64"
7686          ;;
7687        sparc*-*-solaris*)
7688          LD="${LD-ld} -m elf64_sparc"
7689          ;;
7690        esac
7691        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7692        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7693          LD="${LD-ld}_sol2"
7694        fi
7695        ;;
7696      *)
7697	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7698	  LD="${LD-ld} -64"
7699	fi
7700	;;
7701      esac
7702      ;;
7703    esac
7704  fi
7705  rm -rf conftest*
7706  ;;
7707esac
7708
7709need_locks="$enable_libtool_lock"
7710
7711if test -n "$ac_tool_prefix"; then
7712  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7713set dummy ${ac_tool_prefix}mt; ac_word=$2
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715$as_echo_n "checking for $ac_word... " >&6; }
7716if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  if test -n "$MANIFEST_TOOL"; then
7720  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725  IFS=$as_save_IFS
7726  test -z "$as_dir" && as_dir=.
7727    for ac_exec_ext in '' $ac_executable_extensions; do
7728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7729    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731    break 2
7732  fi
7733done
7734  done
7735IFS=$as_save_IFS
7736
7737fi
7738fi
7739MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7740if test -n "$MANIFEST_TOOL"; then
7741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7742$as_echo "$MANIFEST_TOOL" >&6; }
7743else
7744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
7746fi
7747
7748
7749fi
7750if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7751  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7752  # Extract the first word of "mt", so it can be a program name with args.
7753set dummy mt; ac_word=$2
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755$as_echo_n "checking for $ac_word... " >&6; }
7756if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7757  $as_echo_n "(cached) " >&6
7758else
7759  if test -n "$ac_ct_MANIFEST_TOOL"; then
7760  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7761else
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765  IFS=$as_save_IFS
7766  test -z "$as_dir" && as_dir=.
7767    for ac_exec_ext in '' $ac_executable_extensions; do
7768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771    break 2
7772  fi
7773done
7774  done
7775IFS=$as_save_IFS
7776
7777fi
7778fi
7779ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7780if test -n "$ac_ct_MANIFEST_TOOL"; then
7781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7782$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7783else
7784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785$as_echo "no" >&6; }
7786fi
7787
7788  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7789    MANIFEST_TOOL=":"
7790  else
7791    case $cross_compiling:$ac_tool_warned in
7792yes:)
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7795ac_tool_warned=yes ;;
7796esac
7797    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7798  fi
7799else
7800  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7801fi
7802
7803test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7805$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7806if ${lt_cv_path_mainfest_tool+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  lt_cv_path_mainfest_tool=no
7810  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7811  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7812  cat conftest.err >&5
7813  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7814    lt_cv_path_mainfest_tool=yes
7815  fi
7816  rm -f conftest*
7817fi
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7819$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7820if test "x$lt_cv_path_mainfest_tool" != xyes; then
7821  MANIFEST_TOOL=:
7822fi
7823
7824
7825
7826
7827
7828
7829  case $host_os in
7830    rhapsody* | darwin*)
7831    if test -n "$ac_tool_prefix"; then
7832  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7833set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835$as_echo_n "checking for $ac_word... " >&6; }
7836if ${ac_cv_prog_DSYMUTIL+:} false; then :
7837  $as_echo_n "(cached) " >&6
7838else
7839  if test -n "$DSYMUTIL"; then
7840  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7841else
7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845  IFS=$as_save_IFS
7846  test -z "$as_dir" && as_dir=.
7847    for ac_exec_ext in '' $ac_executable_extensions; do
7848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851    break 2
7852  fi
7853done
7854  done
7855IFS=$as_save_IFS
7856
7857fi
7858fi
7859DSYMUTIL=$ac_cv_prog_DSYMUTIL
7860if test -n "$DSYMUTIL"; then
7861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7862$as_echo "$DSYMUTIL" >&6; }
7863else
7864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865$as_echo "no" >&6; }
7866fi
7867
7868
7869fi
7870if test -z "$ac_cv_prog_DSYMUTIL"; then
7871  ac_ct_DSYMUTIL=$DSYMUTIL
7872  # Extract the first word of "dsymutil", so it can be a program name with args.
7873set dummy dsymutil; ac_word=$2
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875$as_echo_n "checking for $ac_word... " >&6; }
7876if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7877  $as_echo_n "(cached) " >&6
7878else
7879  if test -n "$ac_ct_DSYMUTIL"; then
7880  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7881else
7882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885  IFS=$as_save_IFS
7886  test -z "$as_dir" && as_dir=.
7887    for ac_exec_ext in '' $ac_executable_extensions; do
7888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891    break 2
7892  fi
7893done
7894  done
7895IFS=$as_save_IFS
7896
7897fi
7898fi
7899ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7900if test -n "$ac_ct_DSYMUTIL"; then
7901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7902$as_echo "$ac_ct_DSYMUTIL" >&6; }
7903else
7904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905$as_echo "no" >&6; }
7906fi
7907
7908  if test "x$ac_ct_DSYMUTIL" = x; then
7909    DSYMUTIL=":"
7910  else
7911    case $cross_compiling:$ac_tool_warned in
7912yes:)
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7915ac_tool_warned=yes ;;
7916esac
7917    DSYMUTIL=$ac_ct_DSYMUTIL
7918  fi
7919else
7920  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7921fi
7922
7923    if test -n "$ac_tool_prefix"; then
7924  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7925set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927$as_echo_n "checking for $ac_word... " >&6; }
7928if ${ac_cv_prog_NMEDIT+:} false; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  if test -n "$NMEDIT"; then
7932  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7933else
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937  IFS=$as_save_IFS
7938  test -z "$as_dir" && as_dir=.
7939    for ac_exec_ext in '' $ac_executable_extensions; do
7940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943    break 2
7944  fi
7945done
7946  done
7947IFS=$as_save_IFS
7948
7949fi
7950fi
7951NMEDIT=$ac_cv_prog_NMEDIT
7952if test -n "$NMEDIT"; then
7953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7954$as_echo "$NMEDIT" >&6; }
7955else
7956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
7958fi
7959
7960
7961fi
7962if test -z "$ac_cv_prog_NMEDIT"; then
7963  ac_ct_NMEDIT=$NMEDIT
7964  # Extract the first word of "nmedit", so it can be a program name with args.
7965set dummy nmedit; ac_word=$2
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967$as_echo_n "checking for $ac_word... " >&6; }
7968if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7969  $as_echo_n "(cached) " >&6
7970else
7971  if test -n "$ac_ct_NMEDIT"; then
7972  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7973else
7974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975for as_dir in $PATH
7976do
7977  IFS=$as_save_IFS
7978  test -z "$as_dir" && as_dir=.
7979    for ac_exec_ext in '' $ac_executable_extensions; do
7980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7981    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983    break 2
7984  fi
7985done
7986  done
7987IFS=$as_save_IFS
7988
7989fi
7990fi
7991ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7992if test -n "$ac_ct_NMEDIT"; then
7993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7994$as_echo "$ac_ct_NMEDIT" >&6; }
7995else
7996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997$as_echo "no" >&6; }
7998fi
7999
8000  if test "x$ac_ct_NMEDIT" = x; then
8001    NMEDIT=":"
8002  else
8003    case $cross_compiling:$ac_tool_warned in
8004yes:)
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8007ac_tool_warned=yes ;;
8008esac
8009    NMEDIT=$ac_ct_NMEDIT
8010  fi
8011else
8012  NMEDIT="$ac_cv_prog_NMEDIT"
8013fi
8014
8015    if test -n "$ac_tool_prefix"; then
8016  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8017set dummy ${ac_tool_prefix}lipo; ac_word=$2
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if ${ac_cv_prog_LIPO+:} false; then :
8021  $as_echo_n "(cached) " >&6
8022else
8023  if test -n "$LIPO"; then
8024  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  test -z "$as_dir" && as_dir=.
8031    for ac_exec_ext in '' $ac_executable_extensions; do
8032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035    break 2
8036  fi
8037done
8038  done
8039IFS=$as_save_IFS
8040
8041fi
8042fi
8043LIPO=$ac_cv_prog_LIPO
8044if test -n "$LIPO"; then
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8046$as_echo "$LIPO" >&6; }
8047else
8048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
8050fi
8051
8052
8053fi
8054if test -z "$ac_cv_prog_LIPO"; then
8055  ac_ct_LIPO=$LIPO
8056  # Extract the first word of "lipo", so it can be a program name with args.
8057set dummy lipo; ac_word=$2
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059$as_echo_n "checking for $ac_word... " >&6; }
8060if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8061  $as_echo_n "(cached) " >&6
8062else
8063  if test -n "$ac_ct_LIPO"; then
8064  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069  IFS=$as_save_IFS
8070  test -z "$as_dir" && as_dir=.
8071    for ac_exec_ext in '' $ac_executable_extensions; do
8072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073    ac_cv_prog_ac_ct_LIPO="lipo"
8074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075    break 2
8076  fi
8077done
8078  done
8079IFS=$as_save_IFS
8080
8081fi
8082fi
8083ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8084if test -n "$ac_ct_LIPO"; then
8085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8086$as_echo "$ac_ct_LIPO" >&6; }
8087else
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
8090fi
8091
8092  if test "x$ac_ct_LIPO" = x; then
8093    LIPO=":"
8094  else
8095    case $cross_compiling:$ac_tool_warned in
8096yes:)
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8099ac_tool_warned=yes ;;
8100esac
8101    LIPO=$ac_ct_LIPO
8102  fi
8103else
8104  LIPO="$ac_cv_prog_LIPO"
8105fi
8106
8107    if test -n "$ac_tool_prefix"; then
8108  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8109set dummy ${ac_tool_prefix}otool; ac_word=$2
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111$as_echo_n "checking for $ac_word... " >&6; }
8112if ${ac_cv_prog_OTOOL+:} false; then :
8113  $as_echo_n "(cached) " >&6
8114else
8115  if test -n "$OTOOL"; then
8116  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8117else
8118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121  IFS=$as_save_IFS
8122  test -z "$as_dir" && as_dir=.
8123    for ac_exec_ext in '' $ac_executable_extensions; do
8124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127    break 2
8128  fi
8129done
8130  done
8131IFS=$as_save_IFS
8132
8133fi
8134fi
8135OTOOL=$ac_cv_prog_OTOOL
8136if test -n "$OTOOL"; then
8137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8138$as_echo "$OTOOL" >&6; }
8139else
8140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141$as_echo "no" >&6; }
8142fi
8143
8144
8145fi
8146if test -z "$ac_cv_prog_OTOOL"; then
8147  ac_ct_OTOOL=$OTOOL
8148  # Extract the first word of "otool", so it can be a program name with args.
8149set dummy otool; ac_word=$2
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151$as_echo_n "checking for $ac_word... " >&6; }
8152if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  if test -n "$ac_ct_OTOOL"; then
8156  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8157else
8158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159for as_dir in $PATH
8160do
8161  IFS=$as_save_IFS
8162  test -z "$as_dir" && as_dir=.
8163    for ac_exec_ext in '' $ac_executable_extensions; do
8164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165    ac_cv_prog_ac_ct_OTOOL="otool"
8166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167    break 2
8168  fi
8169done
8170  done
8171IFS=$as_save_IFS
8172
8173fi
8174fi
8175ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8176if test -n "$ac_ct_OTOOL"; then
8177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8178$as_echo "$ac_ct_OTOOL" >&6; }
8179else
8180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181$as_echo "no" >&6; }
8182fi
8183
8184  if test "x$ac_ct_OTOOL" = x; then
8185    OTOOL=":"
8186  else
8187    case $cross_compiling:$ac_tool_warned in
8188yes:)
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8191ac_tool_warned=yes ;;
8192esac
8193    OTOOL=$ac_ct_OTOOL
8194  fi
8195else
8196  OTOOL="$ac_cv_prog_OTOOL"
8197fi
8198
8199    if test -n "$ac_tool_prefix"; then
8200  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8201set dummy ${ac_tool_prefix}otool64; ac_word=$2
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203$as_echo_n "checking for $ac_word... " >&6; }
8204if ${ac_cv_prog_OTOOL64+:} false; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  if test -n "$OTOOL64"; then
8208  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8209else
8210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213  IFS=$as_save_IFS
8214  test -z "$as_dir" && as_dir=.
8215    for ac_exec_ext in '' $ac_executable_extensions; do
8216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219    break 2
8220  fi
8221done
8222  done
8223IFS=$as_save_IFS
8224
8225fi
8226fi
8227OTOOL64=$ac_cv_prog_OTOOL64
8228if test -n "$OTOOL64"; then
8229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8230$as_echo "$OTOOL64" >&6; }
8231else
8232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233$as_echo "no" >&6; }
8234fi
8235
8236
8237fi
8238if test -z "$ac_cv_prog_OTOOL64"; then
8239  ac_ct_OTOOL64=$OTOOL64
8240  # Extract the first word of "otool64", so it can be a program name with args.
8241set dummy otool64; ac_word=$2
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243$as_echo_n "checking for $ac_word... " >&6; }
8244if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8245  $as_echo_n "(cached) " >&6
8246else
8247  if test -n "$ac_ct_OTOOL64"; then
8248  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8249else
8250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251for as_dir in $PATH
8252do
8253  IFS=$as_save_IFS
8254  test -z "$as_dir" && as_dir=.
8255    for ac_exec_ext in '' $ac_executable_extensions; do
8256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8257    ac_cv_prog_ac_ct_OTOOL64="otool64"
8258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259    break 2
8260  fi
8261done
8262  done
8263IFS=$as_save_IFS
8264
8265fi
8266fi
8267ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8268if test -n "$ac_ct_OTOOL64"; then
8269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8270$as_echo "$ac_ct_OTOOL64" >&6; }
8271else
8272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273$as_echo "no" >&6; }
8274fi
8275
8276  if test "x$ac_ct_OTOOL64" = x; then
8277    OTOOL64=":"
8278  else
8279    case $cross_compiling:$ac_tool_warned in
8280yes:)
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8283ac_tool_warned=yes ;;
8284esac
8285    OTOOL64=$ac_ct_OTOOL64
8286  fi
8287else
8288  OTOOL64="$ac_cv_prog_OTOOL64"
8289fi
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8318$as_echo_n "checking for -single_module linker flag... " >&6; }
8319if ${lt_cv_apple_cc_single_mod+:} false; then :
8320  $as_echo_n "(cached) " >&6
8321else
8322  lt_cv_apple_cc_single_mod=no
8323      if test -z "${LT_MULTI_MODULE}"; then
8324	# By default we will add the -single_module flag. You can override
8325	# by either setting the environment variable LT_MULTI_MODULE
8326	# non-empty at configure time, or by adding -multi_module to the
8327	# link flags.
8328	rm -rf libconftest.dylib*
8329	echo "int foo(void){return 1;}" > conftest.c
8330	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8331-dynamiclib -Wl,-single_module conftest.c" >&5
8332	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8333	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8334        _lt_result=$?
8335	# If there is a non-empty error log, and "single_module"
8336	# appears in it, assume the flag caused a linker warning
8337        if test -s conftest.err && $GREP single_module conftest.err; then
8338	  cat conftest.err >&5
8339	# Otherwise, if the output was created with a 0 exit code from
8340	# the compiler, it worked.
8341	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8342	  lt_cv_apple_cc_single_mod=yes
8343	else
8344	  cat conftest.err >&5
8345	fi
8346	rm -rf libconftest.dylib*
8347	rm -f conftest.*
8348      fi
8349fi
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8351$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8352
8353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8354$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8355if ${lt_cv_ld_exported_symbols_list+:} false; then :
8356  $as_echo_n "(cached) " >&6
8357else
8358  lt_cv_ld_exported_symbols_list=no
8359      save_LDFLAGS=$LDFLAGS
8360      echo "_main" > conftest.sym
8361      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8362      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363/* end confdefs.h.  */
8364
8365int
8366main ()
8367{
8368
8369  ;
8370  return 0;
8371}
8372_ACEOF
8373if ac_fn_c_try_link "$LINENO"; then :
8374  lt_cv_ld_exported_symbols_list=yes
8375else
8376  lt_cv_ld_exported_symbols_list=no
8377fi
8378rm -f core conftest.err conftest.$ac_objext \
8379    conftest$ac_exeext conftest.$ac_ext
8380	LDFLAGS="$save_LDFLAGS"
8381
8382fi
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8384$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8385
8386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8387$as_echo_n "checking for -force_load linker flag... " >&6; }
8388if ${lt_cv_ld_force_load+:} false; then :
8389  $as_echo_n "(cached) " >&6
8390else
8391  lt_cv_ld_force_load=no
8392      cat > conftest.c << _LT_EOF
8393int forced_loaded() { return 2;}
8394_LT_EOF
8395      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8396      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8397      echo "$AR cru libconftest.a conftest.o" >&5
8398      $AR cru libconftest.a conftest.o 2>&5
8399      echo "$RANLIB libconftest.a" >&5
8400      $RANLIB libconftest.a 2>&5
8401      cat > conftest.c << _LT_EOF
8402int main() { return 0;}
8403_LT_EOF
8404      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8405      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8406      _lt_result=$?
8407      if test -s conftest.err && $GREP force_load conftest.err; then
8408	cat conftest.err >&5
8409      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8410	lt_cv_ld_force_load=yes
8411      else
8412	cat conftest.err >&5
8413      fi
8414        rm -f conftest.err libconftest.a conftest conftest.c
8415        rm -rf conftest.dSYM
8416
8417fi
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8419$as_echo "$lt_cv_ld_force_load" >&6; }
8420    case $host_os in
8421    rhapsody* | darwin1.[012])
8422      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8423    darwin1.*)
8424      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8425    darwin*) # darwin 5.x on
8426      # if running on 10.5 or later, the deployment target defaults
8427      # to the OS version, if on x86, and 10.4, the deployment
8428      # target defaults to 10.4. Don't you love it?
8429      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8430	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8431	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8432	10.[012]*)
8433	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8434	10.*)
8435	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8436      esac
8437    ;;
8438  esac
8439    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8440      _lt_dar_single_mod='$single_module'
8441    fi
8442    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8443      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8444    else
8445      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8446    fi
8447    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8448      _lt_dsymutil='~$DSYMUTIL $lib || :'
8449    else
8450      _lt_dsymutil=
8451    fi
8452    ;;
8453  esac
8454
8455for ac_header in dlfcn.h
8456do :
8457  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8458"
8459if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8460  cat >>confdefs.h <<_ACEOF
8461#define HAVE_DLFCN_H 1
8462_ACEOF
8463
8464fi
8465
8466done
8467
8468
8469
8470
8471
8472# Set options
8473# Check whether --enable-static was given.
8474if test "${enable_static+set}" = set; then :
8475  enableval=$enable_static; p=${PACKAGE-default}
8476    case $enableval in
8477    yes) enable_static=yes ;;
8478    no) enable_static=no ;;
8479    *)
8480     enable_static=no
8481      # Look at the argument we got.  We use all the common list separators.
8482      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8483      for pkg in $enableval; do
8484	IFS="$lt_save_ifs"
8485	if test "X$pkg" = "X$p"; then
8486	  enable_static=yes
8487	fi
8488      done
8489      IFS="$lt_save_ifs"
8490      ;;
8491    esac
8492else
8493  enable_static=no
8494fi
8495
8496
8497
8498
8499
8500
8501
8502
8503# Check whether --with-pic was given.
8504if test "${with_pic+set}" = set; then :
8505  withval=$with_pic; lt_p=${PACKAGE-default}
8506    case $withval in
8507    yes|no) pic_mode=$withval ;;
8508    *)
8509      pic_mode=default
8510      # Look at the argument we got.  We use all the common list separators.
8511      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8512      for lt_pkg in $withval; do
8513	IFS="$lt_save_ifs"
8514	if test "X$lt_pkg" = "X$lt_p"; then
8515	  pic_mode=yes
8516	fi
8517      done
8518      IFS="$lt_save_ifs"
8519      ;;
8520    esac
8521else
8522  pic_mode=default
8523fi
8524
8525
8526test -z "$pic_mode" && pic_mode=yes
8527
8528
8529
8530
8531
8532
8533
8534
8535        enable_dlopen=no
8536
8537
8538  enable_win32_dll=no
8539
8540
8541            # Check whether --enable-shared was given.
8542if test "${enable_shared+set}" = set; then :
8543  enableval=$enable_shared; p=${PACKAGE-default}
8544    case $enableval in
8545    yes) enable_shared=yes ;;
8546    no) enable_shared=no ;;
8547    *)
8548      enable_shared=no
8549      # Look at the argument we got.  We use all the common list separators.
8550      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8551      for pkg in $enableval; do
8552	IFS="$lt_save_ifs"
8553	if test "X$pkg" = "X$p"; then
8554	  enable_shared=yes
8555	fi
8556      done
8557      IFS="$lt_save_ifs"
8558      ;;
8559    esac
8560else
8561  enable_shared=yes
8562fi
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574  # Check whether --enable-fast-install was given.
8575if test "${enable_fast_install+set}" = set; then :
8576  enableval=$enable_fast_install; p=${PACKAGE-default}
8577    case $enableval in
8578    yes) enable_fast_install=yes ;;
8579    no) enable_fast_install=no ;;
8580    *)
8581      enable_fast_install=no
8582      # Look at the argument we got.  We use all the common list separators.
8583      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8584      for pkg in $enableval; do
8585	IFS="$lt_save_ifs"
8586	if test "X$pkg" = "X$p"; then
8587	  enable_fast_install=yes
8588	fi
8589      done
8590      IFS="$lt_save_ifs"
8591      ;;
8592    esac
8593else
8594  enable_fast_install=yes
8595fi
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607# This can be used to rebuild libtool when needed
8608LIBTOOL_DEPS="$ltmain"
8609
8610# Always use our own libtool.
8611LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642test -z "$LN_S" && LN_S="ln -s"
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657if test -n "${ZSH_VERSION+set}" ; then
8658   setopt NO_GLOB_SUBST
8659fi
8660
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8662$as_echo_n "checking for objdir... " >&6; }
8663if ${lt_cv_objdir+:} false; then :
8664  $as_echo_n "(cached) " >&6
8665else
8666  rm -f .libs 2>/dev/null
8667mkdir .libs 2>/dev/null
8668if test -d .libs; then
8669  lt_cv_objdir=.libs
8670else
8671  # MS-DOS does not allow filenames that begin with a dot.
8672  lt_cv_objdir=_libs
8673fi
8674rmdir .libs 2>/dev/null
8675fi
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8677$as_echo "$lt_cv_objdir" >&6; }
8678objdir=$lt_cv_objdir
8679
8680
8681
8682
8683
8684cat >>confdefs.h <<_ACEOF
8685#define LT_OBJDIR "$lt_cv_objdir/"
8686_ACEOF
8687
8688
8689
8690
8691case $host_os in
8692aix3*)
8693  # AIX sometimes has problems with the GCC collect2 program.  For some
8694  # reason, if we set the COLLECT_NAMES environment variable, the problems
8695  # vanish in a puff of smoke.
8696  if test "X${COLLECT_NAMES+set}" != Xset; then
8697    COLLECT_NAMES=
8698    export COLLECT_NAMES
8699  fi
8700  ;;
8701esac
8702
8703# Global variables:
8704ofile=libtool
8705can_build_shared=yes
8706
8707# All known linkers require a `.a' archive for static linking (except MSVC,
8708# which needs '.lib').
8709libext=a
8710
8711with_gnu_ld="$lt_cv_prog_gnu_ld"
8712
8713old_CC="$CC"
8714old_CFLAGS="$CFLAGS"
8715
8716# Set sane defaults for various variables
8717test -z "$CC" && CC=cc
8718test -z "$LTCC" && LTCC=$CC
8719test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8720test -z "$LD" && LD=ld
8721test -z "$ac_objext" && ac_objext=o
8722
8723for cc_temp in $compiler""; do
8724  case $cc_temp in
8725    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8726    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8727    \-*) ;;
8728    *) break;;
8729  esac
8730done
8731cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8732
8733
8734# Only perform the check for file, if the check method requires it
8735test -z "$MAGIC_CMD" && MAGIC_CMD=file
8736case $deplibs_check_method in
8737file_magic*)
8738  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8740$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8741if ${lt_cv_path_MAGIC_CMD+:} false; then :
8742  $as_echo_n "(cached) " >&6
8743else
8744  case $MAGIC_CMD in
8745[\\/*] |  ?:[\\/]*)
8746  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8747  ;;
8748*)
8749  lt_save_MAGIC_CMD="$MAGIC_CMD"
8750  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8751  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8752  for ac_dir in $ac_dummy; do
8753    IFS="$lt_save_ifs"
8754    test -z "$ac_dir" && ac_dir=.
8755    if test -f $ac_dir/${ac_tool_prefix}file; then
8756      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8757      if test -n "$file_magic_test_file"; then
8758	case $deplibs_check_method in
8759	"file_magic "*)
8760	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8761	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8762	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8763	    $EGREP "$file_magic_regex" > /dev/null; then
8764	    :
8765	  else
8766	    cat <<_LT_EOF 1>&2
8767
8768*** Warning: the command libtool uses to detect shared libraries,
8769*** $file_magic_cmd, produces output that libtool cannot recognize.
8770*** The result is that libtool may fail to recognize shared libraries
8771*** as such.  This will affect the creation of libtool libraries that
8772*** depend on shared libraries, but programs linked with such libtool
8773*** libraries will work regardless of this problem.  Nevertheless, you
8774*** may want to report the problem to your system manager and/or to
8775*** bug-libtool@gnu.org
8776
8777_LT_EOF
8778	  fi ;;
8779	esac
8780      fi
8781      break
8782    fi
8783  done
8784  IFS="$lt_save_ifs"
8785  MAGIC_CMD="$lt_save_MAGIC_CMD"
8786  ;;
8787esac
8788fi
8789
8790MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8791if test -n "$MAGIC_CMD"; then
8792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8793$as_echo "$MAGIC_CMD" >&6; }
8794else
8795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796$as_echo "no" >&6; }
8797fi
8798
8799
8800
8801
8802
8803if test -z "$lt_cv_path_MAGIC_CMD"; then
8804  if test -n "$ac_tool_prefix"; then
8805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8806$as_echo_n "checking for file... " >&6; }
8807if ${lt_cv_path_MAGIC_CMD+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  case $MAGIC_CMD in
8811[\\/*] |  ?:[\\/]*)
8812  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8813  ;;
8814*)
8815  lt_save_MAGIC_CMD="$MAGIC_CMD"
8816  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8817  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8818  for ac_dir in $ac_dummy; do
8819    IFS="$lt_save_ifs"
8820    test -z "$ac_dir" && ac_dir=.
8821    if test -f $ac_dir/file; then
8822      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8823      if test -n "$file_magic_test_file"; then
8824	case $deplibs_check_method in
8825	"file_magic "*)
8826	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8827	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8828	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8829	    $EGREP "$file_magic_regex" > /dev/null; then
8830	    :
8831	  else
8832	    cat <<_LT_EOF 1>&2
8833
8834*** Warning: the command libtool uses to detect shared libraries,
8835*** $file_magic_cmd, produces output that libtool cannot recognize.
8836*** The result is that libtool may fail to recognize shared libraries
8837*** as such.  This will affect the creation of libtool libraries that
8838*** depend on shared libraries, but programs linked with such libtool
8839*** libraries will work regardless of this problem.  Nevertheless, you
8840*** may want to report the problem to your system manager and/or to
8841*** bug-libtool@gnu.org
8842
8843_LT_EOF
8844	  fi ;;
8845	esac
8846      fi
8847      break
8848    fi
8849  done
8850  IFS="$lt_save_ifs"
8851  MAGIC_CMD="$lt_save_MAGIC_CMD"
8852  ;;
8853esac
8854fi
8855
8856MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8857if test -n "$MAGIC_CMD"; then
8858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8859$as_echo "$MAGIC_CMD" >&6; }
8860else
8861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862$as_echo "no" >&6; }
8863fi
8864
8865
8866  else
8867    MAGIC_CMD=:
8868  fi
8869fi
8870
8871  fi
8872  ;;
8873esac
8874
8875# Use C for the default configuration in the libtool script
8876
8877lt_save_CC="$CC"
8878ac_ext=c
8879ac_cpp='$CPP $CPPFLAGS'
8880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8882ac_compiler_gnu=$ac_cv_c_compiler_gnu
8883
8884
8885# Source file extension for C test sources.
8886ac_ext=c
8887
8888# Object file extension for compiled C test sources.
8889objext=o
8890objext=$objext
8891
8892# Code to be used in simple compile tests
8893lt_simple_compile_test_code="int some_variable = 0;"
8894
8895# Code to be used in simple link tests
8896lt_simple_link_test_code='int main(){return(0);}'
8897
8898
8899
8900
8901
8902
8903
8904# If no C compiler was specified, use CC.
8905LTCC=${LTCC-"$CC"}
8906
8907# If no C compiler flags were specified, use CFLAGS.
8908LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8909
8910# Allow CC to be a program name with arguments.
8911compiler=$CC
8912
8913# Save the default compiler, since it gets overwritten when the other
8914# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8915compiler_DEFAULT=$CC
8916
8917# save warnings/boilerplate of simple test code
8918ac_outfile=conftest.$ac_objext
8919echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8920eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8921_lt_compiler_boilerplate=`cat conftest.err`
8922$RM conftest*
8923
8924ac_outfile=conftest.$ac_objext
8925echo "$lt_simple_link_test_code" >conftest.$ac_ext
8926eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8927_lt_linker_boilerplate=`cat conftest.err`
8928$RM -r conftest*
8929
8930
8931## CAVEAT EMPTOR:
8932## There is no encapsulation within the following macros, do not change
8933## the running order or otherwise move them around unless you know exactly
8934## what you are doing...
8935if test -n "$compiler"; then
8936
8937lt_prog_compiler_no_builtin_flag=
8938
8939if test "$GCC" = yes; then
8940  case $cc_basename in
8941  nvcc*)
8942    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8943  *)
8944    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8945  esac
8946
8947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8948$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8949if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  lt_cv_prog_compiler_rtti_exceptions=no
8953   ac_outfile=conftest.$ac_objext
8954   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8955   lt_compiler_flag="-fno-rtti -fno-exceptions"
8956   # Insert the option either (1) after the last *FLAGS variable, or
8957   # (2) before a word containing "conftest.", or (3) at the end.
8958   # Note that $ac_compile itself does not contain backslashes and begins
8959   # with a dollar sign (not a hyphen), so the echo should work correctly.
8960   # The option is referenced via a variable to avoid confusing sed.
8961   lt_compile=`echo "$ac_compile" | $SED \
8962   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8963   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8964   -e 's:$: $lt_compiler_flag:'`
8965   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8966   (eval "$lt_compile" 2>conftest.err)
8967   ac_status=$?
8968   cat conftest.err >&5
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   if (exit $ac_status) && test -s "$ac_outfile"; then
8971     # The compiler can only warn and ignore the option if not recognized
8972     # So say no if there are warnings other than the usual output.
8973     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8974     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8975     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8976       lt_cv_prog_compiler_rtti_exceptions=yes
8977     fi
8978   fi
8979   $RM conftest*
8980
8981fi
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8983$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8984
8985if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8986    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8987else
8988    :
8989fi
8990
8991fi
8992
8993
8994
8995
8996
8997
8998  lt_prog_compiler_wl=
8999lt_prog_compiler_pic=
9000lt_prog_compiler_static=
9001
9002
9003  if test "$GCC" = yes; then
9004    lt_prog_compiler_wl='-Wl,'
9005    lt_prog_compiler_static='-static'
9006
9007    case $host_os in
9008      aix*)
9009      # All AIX code is PIC.
9010      if test "$host_cpu" = ia64; then
9011	# AIX 5 now supports IA64 processor
9012	lt_prog_compiler_static='-Bstatic'
9013      fi
9014      ;;
9015
9016    amigaos*)
9017      case $host_cpu in
9018      powerpc)
9019            # see comment about AmigaOS4 .so support
9020            lt_prog_compiler_pic='-fPIC'
9021        ;;
9022      m68k)
9023            # FIXME: we need at least 68020 code to build shared libraries, but
9024            # adding the `-m68020' flag to GCC prevents building anything better,
9025            # like `-m68040'.
9026            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9027        ;;
9028      esac
9029      ;;
9030
9031    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9032      # PIC is the default for these OSes.
9033      ;;
9034
9035    mingw* | cygwin* | pw32* | os2* | cegcc*)
9036      # This hack is so that the source file can tell whether it is being
9037      # built for inclusion in a dll (and should export symbols for example).
9038      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9039      # (--disable-auto-import) libraries
9040      lt_prog_compiler_pic='-DDLL_EXPORT'
9041      ;;
9042
9043    darwin* | rhapsody*)
9044      # PIC is the default on this platform
9045      # Common symbols not allowed in MH_DYLIB files
9046      lt_prog_compiler_pic='-fno-common'
9047      ;;
9048
9049    haiku*)
9050      # PIC is the default for Haiku.
9051      # The "-static" flag exists, but is broken.
9052      lt_prog_compiler_static=
9053      ;;
9054
9055    hpux*)
9056      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9057      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9058      # sets the default TLS model and affects inlining.
9059      case $host_cpu in
9060      hppa*64*)
9061	# +Z the default
9062	;;
9063      *)
9064	lt_prog_compiler_pic='-fPIC'
9065	;;
9066      esac
9067      ;;
9068
9069    interix[3-9]*)
9070      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9071      # Instead, we relocate shared libraries at runtime.
9072      ;;
9073
9074    msdosdjgpp*)
9075      # Just because we use GCC doesn't mean we suddenly get shared libraries
9076      # on systems that don't support them.
9077      lt_prog_compiler_can_build_shared=no
9078      enable_shared=no
9079      ;;
9080
9081    *nto* | *qnx*)
9082      # QNX uses GNU C++, but need to define -shared option too, otherwise
9083      # it will coredump.
9084      lt_prog_compiler_pic='-fPIC -shared'
9085      ;;
9086
9087    sysv4*MP*)
9088      if test -d /usr/nec; then
9089	lt_prog_compiler_pic=-Kconform_pic
9090      fi
9091      ;;
9092
9093    *)
9094      lt_prog_compiler_pic='-fPIC'
9095      ;;
9096    esac
9097
9098    case $cc_basename in
9099    nvcc*) # Cuda Compiler Driver 2.2
9100      lt_prog_compiler_wl='-Xlinker '
9101      if test -n "$lt_prog_compiler_pic"; then
9102        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9103      fi
9104      ;;
9105    esac
9106  else
9107    # PORTME Check for flag to pass linker flags through the system compiler.
9108    case $host_os in
9109    aix*)
9110      lt_prog_compiler_wl='-Wl,'
9111      if test "$host_cpu" = ia64; then
9112	# AIX 5 now supports IA64 processor
9113	lt_prog_compiler_static='-Bstatic'
9114      else
9115	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9116      fi
9117      ;;
9118
9119    mingw* | cygwin* | pw32* | os2* | cegcc*)
9120      # This hack is so that the source file can tell whether it is being
9121      # built for inclusion in a dll (and should export symbols for example).
9122      lt_prog_compiler_pic='-DDLL_EXPORT'
9123      ;;
9124
9125    hpux9* | hpux10* | hpux11*)
9126      lt_prog_compiler_wl='-Wl,'
9127      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9128      # not for PA HP-UX.
9129      case $host_cpu in
9130      hppa*64*|ia64*)
9131	# +Z the default
9132	;;
9133      *)
9134	lt_prog_compiler_pic='+Z'
9135	;;
9136      esac
9137      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9138      lt_prog_compiler_static='${wl}-a ${wl}archive'
9139      ;;
9140
9141    irix5* | irix6* | nonstopux*)
9142      lt_prog_compiler_wl='-Wl,'
9143      # PIC (with -KPIC) is the default.
9144      lt_prog_compiler_static='-non_shared'
9145      ;;
9146
9147    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9148      case $cc_basename in
9149      # old Intel for x86_64 which still supported -KPIC.
9150      ecc*)
9151	lt_prog_compiler_wl='-Wl,'
9152	lt_prog_compiler_pic='-KPIC'
9153	lt_prog_compiler_static='-static'
9154        ;;
9155      # icc used to be incompatible with GCC.
9156      # ICC 10 doesn't accept -KPIC any more.
9157      icc* | ifort*)
9158	lt_prog_compiler_wl='-Wl,'
9159	lt_prog_compiler_pic='-fPIC'
9160	lt_prog_compiler_static='-static'
9161        ;;
9162      # Lahey Fortran 8.1.
9163      lf95*)
9164	lt_prog_compiler_wl='-Wl,'
9165	lt_prog_compiler_pic='--shared'
9166	lt_prog_compiler_static='--static'
9167	;;
9168      nagfor*)
9169	# NAG Fortran compiler
9170	lt_prog_compiler_wl='-Wl,-Wl,,'
9171	lt_prog_compiler_pic='-PIC'
9172	lt_prog_compiler_static='-Bstatic'
9173	;;
9174      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9175        # Portland Group compilers (*not* the Pentium gcc compiler,
9176	# which looks to be a dead project)
9177	lt_prog_compiler_wl='-Wl,'
9178	lt_prog_compiler_pic='-fpic'
9179	lt_prog_compiler_static='-Bstatic'
9180        ;;
9181      ccc*)
9182        lt_prog_compiler_wl='-Wl,'
9183        # All Alpha code is PIC.
9184        lt_prog_compiler_static='-non_shared'
9185        ;;
9186      xl* | bgxl* | bgf* | mpixl*)
9187	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9188	lt_prog_compiler_wl='-Wl,'
9189	lt_prog_compiler_pic='-qpic'
9190	lt_prog_compiler_static='-qstaticlink'
9191	;;
9192      *)
9193	case `$CC -V 2>&1 | sed 5q` in
9194	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9195	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9196	  lt_prog_compiler_pic='-KPIC'
9197	  lt_prog_compiler_static='-Bstatic'
9198	  lt_prog_compiler_wl=''
9199	  ;;
9200	*Sun\ F* | *Sun*Fortran*)
9201	  lt_prog_compiler_pic='-KPIC'
9202	  lt_prog_compiler_static='-Bstatic'
9203	  lt_prog_compiler_wl='-Qoption ld '
9204	  ;;
9205	*Sun\ C*)
9206	  # Sun C 5.9
9207	  lt_prog_compiler_pic='-KPIC'
9208	  lt_prog_compiler_static='-Bstatic'
9209	  lt_prog_compiler_wl='-Wl,'
9210	  ;;
9211        *Intel*\ [CF]*Compiler*)
9212	  lt_prog_compiler_wl='-Wl,'
9213	  lt_prog_compiler_pic='-fPIC'
9214	  lt_prog_compiler_static='-static'
9215	  ;;
9216	*Portland\ Group*)
9217	  lt_prog_compiler_wl='-Wl,'
9218	  lt_prog_compiler_pic='-fpic'
9219	  lt_prog_compiler_static='-Bstatic'
9220	  ;;
9221	esac
9222	;;
9223      esac
9224      ;;
9225
9226    newsos6)
9227      lt_prog_compiler_pic='-KPIC'
9228      lt_prog_compiler_static='-Bstatic'
9229      ;;
9230
9231    *nto* | *qnx*)
9232      # QNX uses GNU C++, but need to define -shared option too, otherwise
9233      # it will coredump.
9234      lt_prog_compiler_pic='-fPIC -shared'
9235      ;;
9236
9237    osf3* | osf4* | osf5*)
9238      lt_prog_compiler_wl='-Wl,'
9239      # All OSF/1 code is PIC.
9240      lt_prog_compiler_static='-non_shared'
9241      ;;
9242
9243    rdos*)
9244      lt_prog_compiler_static='-non_shared'
9245      ;;
9246
9247    solaris*)
9248      lt_prog_compiler_pic='-KPIC'
9249      lt_prog_compiler_static='-Bstatic'
9250      case $cc_basename in
9251      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9252	lt_prog_compiler_wl='-Qoption ld ';;
9253      *)
9254	lt_prog_compiler_wl='-Wl,';;
9255      esac
9256      ;;
9257
9258    sunos4*)
9259      lt_prog_compiler_wl='-Qoption ld '
9260      lt_prog_compiler_pic='-PIC'
9261      lt_prog_compiler_static='-Bstatic'
9262      ;;
9263
9264    sysv4 | sysv4.2uw2* | sysv4.3*)
9265      lt_prog_compiler_wl='-Wl,'
9266      lt_prog_compiler_pic='-KPIC'
9267      lt_prog_compiler_static='-Bstatic'
9268      ;;
9269
9270    sysv4*MP*)
9271      if test -d /usr/nec ;then
9272	lt_prog_compiler_pic='-Kconform_pic'
9273	lt_prog_compiler_static='-Bstatic'
9274      fi
9275      ;;
9276
9277    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9278      lt_prog_compiler_wl='-Wl,'
9279      lt_prog_compiler_pic='-KPIC'
9280      lt_prog_compiler_static='-Bstatic'
9281      ;;
9282
9283    unicos*)
9284      lt_prog_compiler_wl='-Wl,'
9285      lt_prog_compiler_can_build_shared=no
9286      ;;
9287
9288    uts4*)
9289      lt_prog_compiler_pic='-pic'
9290      lt_prog_compiler_static='-Bstatic'
9291      ;;
9292
9293    *)
9294      lt_prog_compiler_can_build_shared=no
9295      ;;
9296    esac
9297  fi
9298
9299case $host_os in
9300  # For platforms which do not support PIC, -DPIC is meaningless:
9301  *djgpp*)
9302    lt_prog_compiler_pic=
9303    ;;
9304  *)
9305    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9306    ;;
9307esac
9308
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9310$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9311if ${lt_cv_prog_compiler_pic+:} false; then :
9312  $as_echo_n "(cached) " >&6
9313else
9314  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9315fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9317$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9318lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9319
9320#
9321# Check to make sure the PIC flag actually works.
9322#
9323if test -n "$lt_prog_compiler_pic"; then
9324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9325$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9326if ${lt_cv_prog_compiler_pic_works+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  lt_cv_prog_compiler_pic_works=no
9330   ac_outfile=conftest.$ac_objext
9331   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9332   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9333   # Insert the option either (1) after the last *FLAGS variable, or
9334   # (2) before a word containing "conftest.", or (3) at the end.
9335   # Note that $ac_compile itself does not contain backslashes and begins
9336   # with a dollar sign (not a hyphen), so the echo should work correctly.
9337   # The option is referenced via a variable to avoid confusing sed.
9338   lt_compile=`echo "$ac_compile" | $SED \
9339   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9340   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9341   -e 's:$: $lt_compiler_flag:'`
9342   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9343   (eval "$lt_compile" 2>conftest.err)
9344   ac_status=$?
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   if (exit $ac_status) && test -s "$ac_outfile"; then
9348     # The compiler can only warn and ignore the option if not recognized
9349     # So say no if there are warnings other than the usual output.
9350     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9351     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9352     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9353       lt_cv_prog_compiler_pic_works=yes
9354     fi
9355   fi
9356   $RM conftest*
9357
9358fi
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9360$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9361
9362if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9363    case $lt_prog_compiler_pic in
9364     "" | " "*) ;;
9365     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9366     esac
9367else
9368    lt_prog_compiler_pic=
9369     lt_prog_compiler_can_build_shared=no
9370fi
9371
9372fi
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384#
9385# Check to make sure the static flag actually works.
9386#
9387wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9389$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9390if ${lt_cv_prog_compiler_static_works+:} false; then :
9391  $as_echo_n "(cached) " >&6
9392else
9393  lt_cv_prog_compiler_static_works=no
9394   save_LDFLAGS="$LDFLAGS"
9395   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9396   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9397   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9398     # The linker can only warn and ignore the option if not recognized
9399     # So say no if there are warnings
9400     if test -s conftest.err; then
9401       # Append any errors to the config.log.
9402       cat conftest.err 1>&5
9403       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9404       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9405       if diff conftest.exp conftest.er2 >/dev/null; then
9406         lt_cv_prog_compiler_static_works=yes
9407       fi
9408     else
9409       lt_cv_prog_compiler_static_works=yes
9410     fi
9411   fi
9412   $RM -r conftest*
9413   LDFLAGS="$save_LDFLAGS"
9414
9415fi
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9417$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9418
9419if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9420    :
9421else
9422    lt_prog_compiler_static=
9423fi
9424
9425
9426
9427
9428
9429
9430
9431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9432$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9433if ${lt_cv_prog_compiler_c_o+:} false; then :
9434  $as_echo_n "(cached) " >&6
9435else
9436  lt_cv_prog_compiler_c_o=no
9437   $RM -r conftest 2>/dev/null
9438   mkdir conftest
9439   cd conftest
9440   mkdir out
9441   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9442
9443   lt_compiler_flag="-o out/conftest2.$ac_objext"
9444   # Insert the option either (1) after the last *FLAGS variable, or
9445   # (2) before a word containing "conftest.", or (3) at the end.
9446   # Note that $ac_compile itself does not contain backslashes and begins
9447   # with a dollar sign (not a hyphen), so the echo should work correctly.
9448   lt_compile=`echo "$ac_compile" | $SED \
9449   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9450   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9451   -e 's:$: $lt_compiler_flag:'`
9452   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9453   (eval "$lt_compile" 2>out/conftest.err)
9454   ac_status=$?
9455   cat out/conftest.err >&5
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9458   then
9459     # The compiler can only warn and ignore the option if not recognized
9460     # So say no if there are warnings
9461     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9462     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9463     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9464       lt_cv_prog_compiler_c_o=yes
9465     fi
9466   fi
9467   chmod u+w . 2>&5
9468   $RM conftest*
9469   # SGI C++ compiler will create directory out/ii_files/ for
9470   # template instantiation
9471   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9472   $RM out/* && rmdir out
9473   cd ..
9474   $RM -r conftest
9475   $RM conftest*
9476
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9479$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9480
9481
9482
9483
9484
9485
9486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9487$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9488if ${lt_cv_prog_compiler_c_o+:} false; then :
9489  $as_echo_n "(cached) " >&6
9490else
9491  lt_cv_prog_compiler_c_o=no
9492   $RM -r conftest 2>/dev/null
9493   mkdir conftest
9494   cd conftest
9495   mkdir out
9496   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9497
9498   lt_compiler_flag="-o out/conftest2.$ac_objext"
9499   # Insert the option either (1) after the last *FLAGS variable, or
9500   # (2) before a word containing "conftest.", or (3) at the end.
9501   # Note that $ac_compile itself does not contain backslashes and begins
9502   # with a dollar sign (not a hyphen), so the echo should work correctly.
9503   lt_compile=`echo "$ac_compile" | $SED \
9504   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9505   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9506   -e 's:$: $lt_compiler_flag:'`
9507   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9508   (eval "$lt_compile" 2>out/conftest.err)
9509   ac_status=$?
9510   cat out/conftest.err >&5
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9513   then
9514     # The compiler can only warn and ignore the option if not recognized
9515     # So say no if there are warnings
9516     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9517     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9518     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9519       lt_cv_prog_compiler_c_o=yes
9520     fi
9521   fi
9522   chmod u+w . 2>&5
9523   $RM conftest*
9524   # SGI C++ compiler will create directory out/ii_files/ for
9525   # template instantiation
9526   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9527   $RM out/* && rmdir out
9528   cd ..
9529   $RM -r conftest
9530   $RM conftest*
9531
9532fi
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9534$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9535
9536
9537
9538
9539hard_links="nottested"
9540if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9541  # do not overwrite the value of need_locks provided by the user
9542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9543$as_echo_n "checking if we can lock with hard links... " >&6; }
9544  hard_links=yes
9545  $RM conftest*
9546  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9547  touch conftest.a
9548  ln conftest.a conftest.b 2>&5 || hard_links=no
9549  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9551$as_echo "$hard_links" >&6; }
9552  if test "$hard_links" = no; then
9553    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9554$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9555    need_locks=warn
9556  fi
9557else
9558  need_locks=no
9559fi
9560
9561
9562
9563
9564
9565
9566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9567$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9568
9569  runpath_var=
9570  allow_undefined_flag=
9571  always_export_symbols=no
9572  archive_cmds=
9573  archive_expsym_cmds=
9574  compiler_needs_object=no
9575  enable_shared_with_static_runtimes=no
9576  export_dynamic_flag_spec=
9577  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9578  hardcode_automatic=no
9579  hardcode_direct=no
9580  hardcode_direct_absolute=no
9581  hardcode_libdir_flag_spec=
9582  hardcode_libdir_separator=
9583  hardcode_minus_L=no
9584  hardcode_shlibpath_var=unsupported
9585  inherit_rpath=no
9586  link_all_deplibs=unknown
9587  module_cmds=
9588  module_expsym_cmds=
9589  old_archive_from_new_cmds=
9590  old_archive_from_expsyms_cmds=
9591  thread_safe_flag_spec=
9592  whole_archive_flag_spec=
9593  # include_expsyms should be a list of space-separated symbols to be *always*
9594  # included in the symbol list
9595  include_expsyms=
9596  # exclude_expsyms can be an extended regexp of symbols to exclude
9597  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9598  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9599  # as well as any symbol that contains `d'.
9600  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9601  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9602  # platforms (ab)use it in PIC code, but their linkers get confused if
9603  # the symbol is explicitly referenced.  Since portable code cannot
9604  # rely on this symbol name, it's probably fine to never include it in
9605  # preloaded symbol tables.
9606  # Exclude shared library initialization/finalization symbols.
9607  extract_expsyms_cmds=
9608
9609  case $host_os in
9610  cygwin* | mingw* | pw32* | cegcc*)
9611    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9612    # When not using gcc, we currently assume that we are using
9613    # Microsoft Visual C++.
9614    if test "$GCC" != yes; then
9615      with_gnu_ld=no
9616    fi
9617    ;;
9618  interix*)
9619    # we just hope/assume this is gcc and not c89 (= MSVC++)
9620    with_gnu_ld=yes
9621    ;;
9622  openbsd*)
9623    with_gnu_ld=no
9624    ;;
9625  esac
9626
9627  ld_shlibs=yes
9628
9629  # On some targets, GNU ld is compatible enough with the native linker
9630  # that we're better off using the native interface for both.
9631  lt_use_gnu_ld_interface=no
9632  if test "$with_gnu_ld" = yes; then
9633    case $host_os in
9634      aix*)
9635	# The AIX port of GNU ld has always aspired to compatibility
9636	# with the native linker.  However, as the warning in the GNU ld
9637	# block says, versions before 2.19.5* couldn't really create working
9638	# shared libraries, regardless of the interface used.
9639	case `$LD -v 2>&1` in
9640	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9641	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9642	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9643	  *)
9644	    lt_use_gnu_ld_interface=yes
9645	    ;;
9646	esac
9647	;;
9648      *)
9649	lt_use_gnu_ld_interface=yes
9650	;;
9651    esac
9652  fi
9653
9654  if test "$lt_use_gnu_ld_interface" = yes; then
9655    # If archive_cmds runs LD, not CC, wlarc should be empty
9656    wlarc='${wl}'
9657
9658    # Set some defaults for GNU ld with shared library support. These
9659    # are reset later if shared libraries are not supported. Putting them
9660    # here allows them to be overridden if necessary.
9661    runpath_var=LD_RUN_PATH
9662    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9663    export_dynamic_flag_spec='${wl}--export-dynamic'
9664    # ancient GNU ld didn't support --whole-archive et. al.
9665    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9666      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9667    else
9668      whole_archive_flag_spec=
9669    fi
9670    supports_anon_versioning=no
9671    case `$LD -v 2>&1` in
9672      *GNU\ gold*) supports_anon_versioning=yes ;;
9673      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9674      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9675      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9676      *\ 2.11.*) ;; # other 2.11 versions
9677      *) supports_anon_versioning=yes ;;
9678    esac
9679
9680    # See if GNU ld supports shared libraries.
9681    case $host_os in
9682    aix[3-9]*)
9683      # On AIX/PPC, the GNU linker is very broken
9684      if test "$host_cpu" != ia64; then
9685	ld_shlibs=no
9686	cat <<_LT_EOF 1>&2
9687
9688*** Warning: the GNU linker, at least up to release 2.19, is reported
9689*** to be unable to reliably create shared libraries on AIX.
9690*** Therefore, libtool is disabling shared libraries support.  If you
9691*** really care for shared libraries, you may want to install binutils
9692*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9693*** You will then need to restart the configuration process.
9694
9695_LT_EOF
9696      fi
9697      ;;
9698
9699    amigaos*)
9700      case $host_cpu in
9701      powerpc)
9702            # see comment about AmigaOS4 .so support
9703            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704            archive_expsym_cmds=''
9705        ;;
9706      m68k)
9707            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)'
9708            hardcode_libdir_flag_spec='-L$libdir'
9709            hardcode_minus_L=yes
9710        ;;
9711      esac
9712      ;;
9713
9714    beos*)
9715      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9716	allow_undefined_flag=unsupported
9717	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9718	# support --undefined.  This deserves some investigation.  FIXME
9719	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720      else
9721	ld_shlibs=no
9722      fi
9723      ;;
9724
9725    cygwin* | mingw* | pw32* | cegcc*)
9726      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9727      # as there is no search path for DLLs.
9728      hardcode_libdir_flag_spec='-L$libdir'
9729      export_dynamic_flag_spec='${wl}--export-all-symbols'
9730      allow_undefined_flag=unsupported
9731      always_export_symbols=no
9732      enable_shared_with_static_runtimes=yes
9733      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'
9734      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9735
9736      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9737        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9738	# If the export-symbols file already is a .def file (1st line
9739	# is EXPORTS), use it as is; otherwise, prepend...
9740	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9741	  cp $export_symbols $output_objdir/$soname.def;
9742	else
9743	  echo EXPORTS > $output_objdir/$soname.def;
9744	  cat $export_symbols >> $output_objdir/$soname.def;
9745	fi~
9746	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9747      else
9748	ld_shlibs=no
9749      fi
9750      ;;
9751
9752    haiku*)
9753      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9754      link_all_deplibs=yes
9755      ;;
9756
9757    interix[3-9]*)
9758      hardcode_direct=no
9759      hardcode_shlibpath_var=no
9760      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9761      export_dynamic_flag_spec='${wl}-E'
9762      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9763      # Instead, shared libraries are loaded at an image base (0x10000000 by
9764      # default) and relocated if they conflict, which is a slow very memory
9765      # consuming and fragmenting process.  To avoid this, we pick a random,
9766      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9767      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9768      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9769      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'
9770      ;;
9771
9772    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9773      tmp_diet=no
9774      if test "$host_os" = linux-dietlibc; then
9775	case $cc_basename in
9776	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9777	esac
9778      fi
9779      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9780	 && test "$tmp_diet" = no
9781      then
9782	tmp_addflag=' $pic_flag'
9783	tmp_sharedflag='-shared'
9784	case $cc_basename,$host_cpu in
9785        pgcc*)				# Portland Group C compiler
9786	  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'
9787	  tmp_addflag=' $pic_flag'
9788	  ;;
9789	pgf77* | pgf90* | pgf95* | pgfortran*)
9790					# Portland Group f77 and f90 compilers
9791	  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'
9792	  tmp_addflag=' $pic_flag -Mnomain' ;;
9793	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9794	  tmp_addflag=' -i_dynamic' ;;
9795	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9796	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9797	ifc* | ifort*)			# Intel Fortran compiler
9798	  tmp_addflag=' -nofor_main' ;;
9799	lf95*)				# Lahey Fortran 8.1
9800	  whole_archive_flag_spec=
9801	  tmp_sharedflag='--shared' ;;
9802	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9803	  tmp_sharedflag='-qmkshrobj'
9804	  tmp_addflag= ;;
9805	nvcc*)	# Cuda Compiler Driver 2.2
9806	  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'
9807	  compiler_needs_object=yes
9808	  ;;
9809	esac
9810	case `$CC -V 2>&1 | sed 5q` in
9811	*Sun\ C*)			# Sun C 5.9
9812	  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'
9813	  compiler_needs_object=yes
9814	  tmp_sharedflag='-G' ;;
9815	*Sun\ F*)			# Sun Fortran 8.3
9816	  tmp_sharedflag='-G' ;;
9817	esac
9818	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9819
9820        if test "x$supports_anon_versioning" = xyes; then
9821          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9822	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9823	    echo "local: *; };" >> $output_objdir/$libname.ver~
9824	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9825        fi
9826
9827	case $cc_basename in
9828	xlf* | bgf* | bgxlf* | mpixlf*)
9829	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9830	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9831	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9832	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9833	  if test "x$supports_anon_versioning" = xyes; then
9834	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9835	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9836	      echo "local: *; };" >> $output_objdir/$libname.ver~
9837	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9838	  fi
9839	  ;;
9840	esac
9841      else
9842        ld_shlibs=no
9843      fi
9844      ;;
9845
9846    netbsd*)
9847      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9848	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9849	wlarc=
9850      else
9851	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9852	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9853      fi
9854      ;;
9855
9856    solaris*)
9857      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9858	ld_shlibs=no
9859	cat <<_LT_EOF 1>&2
9860
9861*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9862*** create shared libraries on Solaris systems.  Therefore, libtool
9863*** is disabling shared libraries support.  We urge you to upgrade GNU
9864*** binutils to release 2.9.1 or newer.  Another option is to modify
9865*** your PATH or compiler configuration so that the native linker is
9866*** used, and then restart.
9867
9868_LT_EOF
9869      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9870	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9871	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9872      else
9873	ld_shlibs=no
9874      fi
9875      ;;
9876
9877    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9878      case `$LD -v 2>&1` in
9879        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9880	ld_shlibs=no
9881	cat <<_LT_EOF 1>&2
9882
9883*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9884*** reliably create shared libraries on SCO systems.  Therefore, libtool
9885*** is disabling shared libraries support.  We urge you to upgrade GNU
9886*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9887*** your PATH or compiler configuration so that the native linker is
9888*** used, and then restart.
9889
9890_LT_EOF
9891	;;
9892	*)
9893	  # For security reasons, it is highly recommended that you always
9894	  # use absolute paths for naming shared libraries, and exclude the
9895	  # DT_RUNPATH tag from executables and libraries.  But doing so
9896	  # requires that you compile everything twice, which is a pain.
9897	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9898	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9899	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9900	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9901	  else
9902	    ld_shlibs=no
9903	  fi
9904	;;
9905      esac
9906      ;;
9907
9908    sunos4*)
9909      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9910      wlarc=
9911      hardcode_direct=yes
9912      hardcode_shlibpath_var=no
9913      ;;
9914
9915    *)
9916      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9917	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9918	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9919      else
9920	ld_shlibs=no
9921      fi
9922      ;;
9923    esac
9924
9925    if test "$ld_shlibs" = no; then
9926      runpath_var=
9927      hardcode_libdir_flag_spec=
9928      export_dynamic_flag_spec=
9929      whole_archive_flag_spec=
9930    fi
9931  else
9932    # PORTME fill in a description of your system's linker (not GNU ld)
9933    case $host_os in
9934    aix3*)
9935      allow_undefined_flag=unsupported
9936      always_export_symbols=yes
9937      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'
9938      # Note: this linker hardcodes the directories in LIBPATH if there
9939      # are no directories specified by -L.
9940      hardcode_minus_L=yes
9941      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9942	# Neither direct hardcoding nor static linking is supported with a
9943	# broken collect2.
9944	hardcode_direct=unsupported
9945      fi
9946      ;;
9947
9948    aix[4-9]*)
9949      if test "$host_cpu" = ia64; then
9950	# On IA64, the linker does run time linking by default, so we don't
9951	# have to do anything special.
9952	aix_use_runtimelinking=no
9953	exp_sym_flag='-Bexport'
9954	no_entry_flag=""
9955      else
9956	# If we're using GNU nm, then we don't want the "-C" option.
9957	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9958	# Also, AIX nm treats weak defined symbols like other global
9959	# defined symbols, whereas GNU nm marks them as "W".
9960	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9961	  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'
9962	else
9963	  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'
9964	fi
9965	aix_use_runtimelinking=no
9966
9967	# Test if we are trying to use run time linking or normal
9968	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9969	# need to do runtime linking.
9970	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9971	  for ld_flag in $LDFLAGS; do
9972	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9973	    aix_use_runtimelinking=yes
9974	    break
9975	  fi
9976	  done
9977	  ;;
9978	esac
9979
9980	exp_sym_flag='-bexport'
9981	no_entry_flag='-bnoentry'
9982      fi
9983
9984      # When large executables or shared objects are built, AIX ld can
9985      # have problems creating the table of contents.  If linking a library
9986      # or program results in "error TOC overflow" add -mminimal-toc to
9987      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9988      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9989
9990      archive_cmds=''
9991      hardcode_direct=yes
9992      hardcode_direct_absolute=yes
9993      hardcode_libdir_separator=':'
9994      link_all_deplibs=yes
9995      file_list_spec='${wl}-f,'
9996
9997      if test "$GCC" = yes; then
9998	case $host_os in aix4.[012]|aix4.[012].*)
9999	# We only want to do this on AIX 4.2 and lower, the check
10000	# below for broken collect2 doesn't work under 4.3+
10001	  collect2name=`${CC} -print-prog-name=collect2`
10002	  if test -f "$collect2name" &&
10003	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10004	  then
10005	  # We have reworked collect2
10006	  :
10007	  else
10008	  # We have old collect2
10009	  hardcode_direct=unsupported
10010	  # It fails to find uninstalled libraries when the uninstalled
10011	  # path is not listed in the libpath.  Setting hardcode_minus_L
10012	  # to unsupported forces relinking
10013	  hardcode_minus_L=yes
10014	  hardcode_libdir_flag_spec='-L$libdir'
10015	  hardcode_libdir_separator=
10016	  fi
10017	  ;;
10018	esac
10019	shared_flag='-shared'
10020	if test "$aix_use_runtimelinking" = yes; then
10021	  shared_flag="$shared_flag "'${wl}-G'
10022	fi
10023      else
10024	# not using gcc
10025	if test "$host_cpu" = ia64; then
10026	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10027	# chokes on -Wl,-G. The following line is correct:
10028	  shared_flag='-G'
10029	else
10030	  if test "$aix_use_runtimelinking" = yes; then
10031	    shared_flag='${wl}-G'
10032	  else
10033	    shared_flag='${wl}-bM:SRE'
10034	  fi
10035	fi
10036      fi
10037
10038      export_dynamic_flag_spec='${wl}-bexpall'
10039      # It seems that -bexpall does not export symbols beginning with
10040      # underscore (_), so it is better to generate a list of symbols to export.
10041      always_export_symbols=yes
10042      if test "$aix_use_runtimelinking" = yes; then
10043	# Warning - without using the other runtime loading flags (-brtl),
10044	# -berok will link without error, but may produce a broken library.
10045	allow_undefined_flag='-berok'
10046        # Determine the default libpath from the value encoded in an
10047        # empty executable.
10048        if test "${lt_cv_aix_libpath+set}" = set; then
10049  aix_libpath=$lt_cv_aix_libpath
10050else
10051  if ${lt_cv_aix_libpath_+:} false; then :
10052  $as_echo_n "(cached) " >&6
10053else
10054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055/* end confdefs.h.  */
10056
10057int
10058main ()
10059{
10060
10061  ;
10062  return 0;
10063}
10064_ACEOF
10065if ac_fn_c_try_link "$LINENO"; then :
10066
10067  lt_aix_libpath_sed='
10068      /Import File Strings/,/^$/ {
10069	  /^0/ {
10070	      s/^0  *\([^ ]*\) *$/\1/
10071	      p
10072	  }
10073      }'
10074  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10075  # Check for a 64-bit object if we didn't find anything.
10076  if test -z "$lt_cv_aix_libpath_"; then
10077    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10078  fi
10079fi
10080rm -f core conftest.err conftest.$ac_objext \
10081    conftest$ac_exeext conftest.$ac_ext
10082  if test -z "$lt_cv_aix_libpath_"; then
10083    lt_cv_aix_libpath_="/usr/lib:/lib"
10084  fi
10085
10086fi
10087
10088  aix_libpath=$lt_cv_aix_libpath_
10089fi
10090
10091        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10092        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"
10093      else
10094	if test "$host_cpu" = ia64; then
10095	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10096	  allow_undefined_flag="-z nodefs"
10097	  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"
10098	else
10099	 # Determine the default libpath from the value encoded in an
10100	 # empty executable.
10101	 if test "${lt_cv_aix_libpath+set}" = set; then
10102  aix_libpath=$lt_cv_aix_libpath
10103else
10104  if ${lt_cv_aix_libpath_+:} false; then :
10105  $as_echo_n "(cached) " >&6
10106else
10107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h.  */
10109
10110int
10111main ()
10112{
10113
10114  ;
10115  return 0;
10116}
10117_ACEOF
10118if ac_fn_c_try_link "$LINENO"; then :
10119
10120  lt_aix_libpath_sed='
10121      /Import File Strings/,/^$/ {
10122	  /^0/ {
10123	      s/^0  *\([^ ]*\) *$/\1/
10124	      p
10125	  }
10126      }'
10127  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10128  # Check for a 64-bit object if we didn't find anything.
10129  if test -z "$lt_cv_aix_libpath_"; then
10130    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10131  fi
10132fi
10133rm -f core conftest.err conftest.$ac_objext \
10134    conftest$ac_exeext conftest.$ac_ext
10135  if test -z "$lt_cv_aix_libpath_"; then
10136    lt_cv_aix_libpath_="/usr/lib:/lib"
10137  fi
10138
10139fi
10140
10141  aix_libpath=$lt_cv_aix_libpath_
10142fi
10143
10144	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10145	  # Warning - without using the other run time loading flags,
10146	  # -berok will link without error, but may produce a broken library.
10147	  no_undefined_flag=' ${wl}-bernotok'
10148	  allow_undefined_flag=' ${wl}-berok'
10149	  if test "$with_gnu_ld" = yes; then
10150	    # We only use this code for GNU lds that support --whole-archive.
10151	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10152	  else
10153	    # Exported symbols can be pulled into shared objects from archives
10154	    whole_archive_flag_spec='$convenience'
10155	  fi
10156	  archive_cmds_need_lc=yes
10157	  # This is similar to how AIX traditionally builds its shared libraries.
10158	  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'
10159	fi
10160      fi
10161      ;;
10162
10163    amigaos*)
10164      case $host_cpu in
10165      powerpc)
10166            # see comment about AmigaOS4 .so support
10167            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10168            archive_expsym_cmds=''
10169        ;;
10170      m68k)
10171            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)'
10172            hardcode_libdir_flag_spec='-L$libdir'
10173            hardcode_minus_L=yes
10174        ;;
10175      esac
10176      ;;
10177
10178    bsdi[45]*)
10179      export_dynamic_flag_spec=-rdynamic
10180      ;;
10181
10182    cygwin* | mingw* | pw32* | cegcc*)
10183      # When not using gcc, we currently assume that we are using
10184      # Microsoft Visual C++.
10185      # hardcode_libdir_flag_spec is actually meaningless, as there is
10186      # no search path for DLLs.
10187      case $cc_basename in
10188      cl*)
10189	# Native MSVC
10190	hardcode_libdir_flag_spec=' '
10191	allow_undefined_flag=unsupported
10192	always_export_symbols=yes
10193	file_list_spec='@'
10194	# Tell ltmain to make .lib files, not .a files.
10195	libext=lib
10196	# Tell ltmain to make .dll files, not .so files.
10197	shrext_cmds=".dll"
10198	# FIXME: Setting linknames here is a bad hack.
10199	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10200	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10201	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10202	  else
10203	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10204	  fi~
10205	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10206	  linknames='
10207	# The linker will not automatically build a static lib if we build a DLL.
10208	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10209	enable_shared_with_static_runtimes=yes
10210	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10211	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10212	# Don't use ranlib
10213	old_postinstall_cmds='chmod 644 $oldlib'
10214	postlink_cmds='lt_outputfile="@OUTPUT@"~
10215	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10216	  case $lt_outputfile in
10217	    *.exe|*.EXE) ;;
10218	    *)
10219	      lt_outputfile="$lt_outputfile.exe"
10220	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10221	      ;;
10222	  esac~
10223	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10224	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10225	    $RM "$lt_outputfile.manifest";
10226	  fi'
10227	;;
10228      *)
10229	# Assume MSVC wrapper
10230	hardcode_libdir_flag_spec=' '
10231	allow_undefined_flag=unsupported
10232	# Tell ltmain to make .lib files, not .a files.
10233	libext=lib
10234	# Tell ltmain to make .dll files, not .so files.
10235	shrext_cmds=".dll"
10236	# FIXME: Setting linknames here is a bad hack.
10237	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10238	# The linker will automatically build a .lib file if we build a DLL.
10239	old_archive_from_new_cmds='true'
10240	# FIXME: Should let the user specify the lib program.
10241	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10242	enable_shared_with_static_runtimes=yes
10243	;;
10244      esac
10245      ;;
10246
10247    darwin* | rhapsody*)
10248
10249
10250  archive_cmds_need_lc=no
10251  hardcode_direct=no
10252  hardcode_automatic=yes
10253  hardcode_shlibpath_var=unsupported
10254  if test "$lt_cv_ld_force_load" = "yes"; then
10255    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\"`'
10256
10257  else
10258    whole_archive_flag_spec=''
10259  fi
10260  link_all_deplibs=yes
10261  allow_undefined_flag="$_lt_dar_allow_undefined"
10262  case $cc_basename in
10263     ifort*) _lt_dar_can_shared=yes ;;
10264     *) _lt_dar_can_shared=$GCC ;;
10265  esac
10266  if test "$_lt_dar_can_shared" = "yes"; then
10267    output_verbose_link_cmd=func_echo_all
10268    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10269    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10270    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}"
10271    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}"
10272
10273  else
10274  ld_shlibs=no
10275  fi
10276
10277      ;;
10278
10279    dgux*)
10280      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281      hardcode_libdir_flag_spec='-L$libdir'
10282      hardcode_shlibpath_var=no
10283      ;;
10284
10285    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10286    # support.  Future versions do this automatically, but an explicit c++rt0.o
10287    # does not break anything, and helps significantly (at the cost of a little
10288    # extra space).
10289    freebsd2.2*)
10290      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10291      hardcode_libdir_flag_spec='-R$libdir'
10292      hardcode_direct=yes
10293      hardcode_shlibpath_var=no
10294      ;;
10295
10296    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10297    freebsd2.*)
10298      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10299      hardcode_direct=yes
10300      hardcode_minus_L=yes
10301      hardcode_shlibpath_var=no
10302      ;;
10303
10304    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10305    freebsd* | dragonfly*)
10306      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10307      hardcode_libdir_flag_spec='-R$libdir'
10308      hardcode_direct=yes
10309      hardcode_shlibpath_var=no
10310      ;;
10311
10312    hpux9*)
10313      if test "$GCC" = yes; then
10314	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'
10315      else
10316	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'
10317      fi
10318      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10319      hardcode_libdir_separator=:
10320      hardcode_direct=yes
10321
10322      # hardcode_minus_L: Not really in the search PATH,
10323      # but as the default location of the library.
10324      hardcode_minus_L=yes
10325      export_dynamic_flag_spec='${wl}-E'
10326      ;;
10327
10328    hpux10*)
10329      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10330	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10331      else
10332	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10333      fi
10334      if test "$with_gnu_ld" = no; then
10335	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10336	hardcode_libdir_separator=:
10337	hardcode_direct=yes
10338	hardcode_direct_absolute=yes
10339	export_dynamic_flag_spec='${wl}-E'
10340	# hardcode_minus_L: Not really in the search PATH,
10341	# but as the default location of the library.
10342	hardcode_minus_L=yes
10343      fi
10344      ;;
10345
10346    hpux11*)
10347      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10348	case $host_cpu in
10349	hppa*64*)
10350	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10351	  ;;
10352	ia64*)
10353	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10354	  ;;
10355	*)
10356	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10357	  ;;
10358	esac
10359      else
10360	case $host_cpu in
10361	hppa*64*)
10362	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10363	  ;;
10364	ia64*)
10365	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10366	  ;;
10367	*)
10368
10369	  # Older versions of the 11.00 compiler do not understand -b yet
10370	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10371	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10372$as_echo_n "checking if $CC understands -b... " >&6; }
10373if ${lt_cv_prog_compiler__b+:} false; then :
10374  $as_echo_n "(cached) " >&6
10375else
10376  lt_cv_prog_compiler__b=no
10377   save_LDFLAGS="$LDFLAGS"
10378   LDFLAGS="$LDFLAGS -b"
10379   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10380   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10381     # The linker can only warn and ignore the option if not recognized
10382     # So say no if there are warnings
10383     if test -s conftest.err; then
10384       # Append any errors to the config.log.
10385       cat conftest.err 1>&5
10386       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10387       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10388       if diff conftest.exp conftest.er2 >/dev/null; then
10389         lt_cv_prog_compiler__b=yes
10390       fi
10391     else
10392       lt_cv_prog_compiler__b=yes
10393     fi
10394   fi
10395   $RM -r conftest*
10396   LDFLAGS="$save_LDFLAGS"
10397
10398fi
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10400$as_echo "$lt_cv_prog_compiler__b" >&6; }
10401
10402if test x"$lt_cv_prog_compiler__b" = xyes; then
10403    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10404else
10405    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10406fi
10407
10408	  ;;
10409	esac
10410      fi
10411      if test "$with_gnu_ld" = no; then
10412	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10413	hardcode_libdir_separator=:
10414
10415	case $host_cpu in
10416	hppa*64*|ia64*)
10417	  hardcode_direct=no
10418	  hardcode_shlibpath_var=no
10419	  ;;
10420	*)
10421	  hardcode_direct=yes
10422	  hardcode_direct_absolute=yes
10423	  export_dynamic_flag_spec='${wl}-E'
10424
10425	  # hardcode_minus_L: Not really in the search PATH,
10426	  # but as the default location of the library.
10427	  hardcode_minus_L=yes
10428	  ;;
10429	esac
10430      fi
10431      ;;
10432
10433    irix5* | irix6* | nonstopux*)
10434      if test "$GCC" = yes; then
10435	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'
10436	# Try to use the -exported_symbol ld option, if it does not
10437	# work, assume that -exports_file does not work either and
10438	# implicitly export all symbols.
10439	# This should be the same for all languages, so no per-tag cache variable.
10440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10441$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10442if ${lt_cv_irix_exported_symbol+:} false; then :
10443  $as_echo_n "(cached) " >&6
10444else
10445  save_LDFLAGS="$LDFLAGS"
10446	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10447	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448/* end confdefs.h.  */
10449int foo (void) { return 0; }
10450_ACEOF
10451if ac_fn_c_try_link "$LINENO"; then :
10452  lt_cv_irix_exported_symbol=yes
10453else
10454  lt_cv_irix_exported_symbol=no
10455fi
10456rm -f core conftest.err conftest.$ac_objext \
10457    conftest$ac_exeext conftest.$ac_ext
10458           LDFLAGS="$save_LDFLAGS"
10459fi
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10461$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10462	if test "$lt_cv_irix_exported_symbol" = yes; then
10463          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'
10464	fi
10465      else
10466	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'
10467	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'
10468      fi
10469      archive_cmds_need_lc='no'
10470      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10471      hardcode_libdir_separator=:
10472      inherit_rpath=yes
10473      link_all_deplibs=yes
10474      ;;
10475
10476    netbsd*)
10477      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10478	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10479      else
10480	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10481      fi
10482      hardcode_libdir_flag_spec='-R$libdir'
10483      hardcode_direct=yes
10484      hardcode_shlibpath_var=no
10485      ;;
10486
10487    newsos6)
10488      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10489      hardcode_direct=yes
10490      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10491      hardcode_libdir_separator=:
10492      hardcode_shlibpath_var=no
10493      ;;
10494
10495    *nto* | *qnx*)
10496      ;;
10497
10498    openbsd*)
10499      if test -f /usr/libexec/ld.so; then
10500	hardcode_direct=yes
10501	hardcode_shlibpath_var=no
10502	hardcode_direct_absolute=yes
10503	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10504	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10505	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10506	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10507	  export_dynamic_flag_spec='${wl}-E'
10508	else
10509	  case $host_os in
10510	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10511	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10512	     hardcode_libdir_flag_spec='-R$libdir'
10513	     ;;
10514	   *)
10515	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10516	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10517	     ;;
10518	  esac
10519	fi
10520      else
10521	ld_shlibs=no
10522      fi
10523      ;;
10524
10525    os2*)
10526      hardcode_libdir_flag_spec='-L$libdir'
10527      hardcode_minus_L=yes
10528      allow_undefined_flag=unsupported
10529      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'
10530      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10531      ;;
10532
10533    osf3*)
10534      if test "$GCC" = yes; then
10535	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10536	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'
10537      else
10538	allow_undefined_flag=' -expect_unresolved \*'
10539	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'
10540      fi
10541      archive_cmds_need_lc='no'
10542      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10543      hardcode_libdir_separator=:
10544      ;;
10545
10546    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10547      if test "$GCC" = yes; then
10548	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10549	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'
10550	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10551      else
10552	allow_undefined_flag=' -expect_unresolved \*'
10553	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'
10554	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~
10555	$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'
10556
10557	# Both c and cxx compiler support -rpath directly
10558	hardcode_libdir_flag_spec='-rpath $libdir'
10559      fi
10560      archive_cmds_need_lc='no'
10561      hardcode_libdir_separator=:
10562      ;;
10563
10564    solaris*)
10565      no_undefined_flag=' -z defs'
10566      if test "$GCC" = yes; then
10567	wlarc='${wl}'
10568	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10569	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10570	  $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'
10571      else
10572	case `$CC -V 2>&1` in
10573	*"Compilers 5.0"*)
10574	  wlarc=''
10575	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10576	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10577	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10578	  ;;
10579	*)
10580	  wlarc='${wl}'
10581	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10582	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10583	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10584	  ;;
10585	esac
10586      fi
10587      hardcode_libdir_flag_spec='-R$libdir'
10588      hardcode_shlibpath_var=no
10589      case $host_os in
10590      solaris2.[0-5] | solaris2.[0-5].*) ;;
10591      *)
10592	# The compiler driver will combine and reorder linker options,
10593	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10594	# but is careful enough not to reorder.
10595	# Supported since Solaris 2.6 (maybe 2.5.1?)
10596	if test "$GCC" = yes; then
10597	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10598	else
10599	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10600	fi
10601	;;
10602      esac
10603      link_all_deplibs=yes
10604      ;;
10605
10606    sunos4*)
10607      if test "x$host_vendor" = xsequent; then
10608	# Use $CC to link under sequent, because it throws in some extra .o
10609	# files that make .init and .fini sections work.
10610	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10611      else
10612	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10613      fi
10614      hardcode_libdir_flag_spec='-L$libdir'
10615      hardcode_direct=yes
10616      hardcode_minus_L=yes
10617      hardcode_shlibpath_var=no
10618      ;;
10619
10620    sysv4)
10621      case $host_vendor in
10622	sni)
10623	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10624	  hardcode_direct=yes # is this really true???
10625	;;
10626	siemens)
10627	  ## LD is ld it makes a PLAMLIB
10628	  ## CC just makes a GrossModule.
10629	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10630	  reload_cmds='$CC -r -o $output$reload_objs'
10631	  hardcode_direct=no
10632        ;;
10633	motorola)
10634	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10635	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10636	;;
10637      esac
10638      runpath_var='LD_RUN_PATH'
10639      hardcode_shlibpath_var=no
10640      ;;
10641
10642    sysv4.3*)
10643      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644      hardcode_shlibpath_var=no
10645      export_dynamic_flag_spec='-Bexport'
10646      ;;
10647
10648    sysv4*MP*)
10649      if test -d /usr/nec; then
10650	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10651	hardcode_shlibpath_var=no
10652	runpath_var=LD_RUN_PATH
10653	hardcode_runpath_var=yes
10654	ld_shlibs=yes
10655      fi
10656      ;;
10657
10658    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10659      no_undefined_flag='${wl}-z,text'
10660      archive_cmds_need_lc=no
10661      hardcode_shlibpath_var=no
10662      runpath_var='LD_RUN_PATH'
10663
10664      if test "$GCC" = yes; then
10665	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667      else
10668	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670      fi
10671      ;;
10672
10673    sysv5* | sco3.2v5* | sco5v6*)
10674      # Note: We can NOT use -z defs as we might desire, because we do not
10675      # link with -lc, and that would cause any symbols used from libc to
10676      # always be unresolved, which means just about no library would
10677      # ever link correctly.  If we're not using GNU ld we use -z text
10678      # though, which does catch some bad symbols but isn't as heavy-handed
10679      # as -z defs.
10680      no_undefined_flag='${wl}-z,text'
10681      allow_undefined_flag='${wl}-z,nodefs'
10682      archive_cmds_need_lc=no
10683      hardcode_shlibpath_var=no
10684      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10685      hardcode_libdir_separator=':'
10686      link_all_deplibs=yes
10687      export_dynamic_flag_spec='${wl}-Bexport'
10688      runpath_var='LD_RUN_PATH'
10689
10690      if test "$GCC" = yes; then
10691	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10692	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10693      else
10694	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10696      fi
10697      ;;
10698
10699    uts4*)
10700      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701      hardcode_libdir_flag_spec='-L$libdir'
10702      hardcode_shlibpath_var=no
10703      ;;
10704
10705    *)
10706      ld_shlibs=no
10707      ;;
10708    esac
10709
10710    if test x$host_vendor = xsni; then
10711      case $host in
10712      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10713	export_dynamic_flag_spec='${wl}-Blargedynsym'
10714	;;
10715      esac
10716    fi
10717  fi
10718
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10720$as_echo "$ld_shlibs" >&6; }
10721test "$ld_shlibs" = no && can_build_shared=no
10722
10723with_gnu_ld=$with_gnu_ld
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739#
10740# Do we need to explicitly link libc?
10741#
10742case "x$archive_cmds_need_lc" in
10743x|xyes)
10744  # Assume -lc should be added
10745  archive_cmds_need_lc=yes
10746
10747  if test "$enable_shared" = yes && test "$GCC" = yes; then
10748    case $archive_cmds in
10749    *'~'*)
10750      # FIXME: we may have to deal with multi-command sequences.
10751      ;;
10752    '$CC '*)
10753      # Test whether the compiler implicitly links with -lc since on some
10754      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10755      # to ld, don't add -lc before -lgcc.
10756      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10757$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10758if ${lt_cv_archive_cmds_need_lc+:} false; then :
10759  $as_echo_n "(cached) " >&6
10760else
10761  $RM conftest*
10762	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10763
10764	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10765  (eval $ac_compile) 2>&5
10766  ac_status=$?
10767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10768  test $ac_status = 0; } 2>conftest.err; then
10769	  soname=conftest
10770	  lib=conftest
10771	  libobjs=conftest.$ac_objext
10772	  deplibs=
10773	  wl=$lt_prog_compiler_wl
10774	  pic_flag=$lt_prog_compiler_pic
10775	  compiler_flags=-v
10776	  linker_flags=-v
10777	  verstring=
10778	  output_objdir=.
10779	  libname=conftest
10780	  lt_save_allow_undefined_flag=$allow_undefined_flag
10781	  allow_undefined_flag=
10782	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10783  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10784  ac_status=$?
10785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10786  test $ac_status = 0; }
10787	  then
10788	    lt_cv_archive_cmds_need_lc=no
10789	  else
10790	    lt_cv_archive_cmds_need_lc=yes
10791	  fi
10792	  allow_undefined_flag=$lt_save_allow_undefined_flag
10793	else
10794	  cat conftest.err 1>&5
10795	fi
10796	$RM conftest*
10797
10798fi
10799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10800$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10801      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10802      ;;
10803    esac
10804  fi
10805  ;;
10806esac
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
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
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10960$as_echo_n "checking dynamic linker characteristics... " >&6; }
10961
10962if test "$GCC" = yes; then
10963  case $host_os in
10964    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10965    *) lt_awk_arg="/^libraries:/" ;;
10966  esac
10967  case $host_os in
10968    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10969    *) lt_sed_strip_eq="s,=/,/,g" ;;
10970  esac
10971  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10972  case $lt_search_path_spec in
10973  *\;*)
10974    # if the path contains ";" then we assume it to be the separator
10975    # otherwise default to the standard path separator (i.e. ":") - it is
10976    # assumed that no part of a normal pathname contains ";" but that should
10977    # okay in the real world where ";" in dirpaths is itself problematic.
10978    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10979    ;;
10980  *)
10981    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10982    ;;
10983  esac
10984  # Ok, now we have the path, separated by spaces, we can step through it
10985  # and add multilib dir if necessary.
10986  lt_tmp_lt_search_path_spec=
10987  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10988  for lt_sys_path in $lt_search_path_spec; do
10989    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10990      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10991    else
10992      test -d "$lt_sys_path" && \
10993	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10994    fi
10995  done
10996  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10997BEGIN {RS=" "; FS="/|\n";} {
10998  lt_foo="";
10999  lt_count=0;
11000  for (lt_i = NF; lt_i > 0; lt_i--) {
11001    if ($lt_i != "" && $lt_i != ".") {
11002      if ($lt_i == "..") {
11003        lt_count++;
11004      } else {
11005        if (lt_count == 0) {
11006          lt_foo="/" $lt_i lt_foo;
11007        } else {
11008          lt_count--;
11009        }
11010      }
11011    }
11012  }
11013  if (lt_foo != "") { lt_freq[lt_foo]++; }
11014  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11015}'`
11016  # AWK program above erroneously prepends '/' to C:/dos/paths
11017  # for these hosts.
11018  case $host_os in
11019    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11020      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11021  esac
11022  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11023else
11024  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11025fi
11026library_names_spec=
11027libname_spec='lib$name'
11028soname_spec=
11029shrext_cmds=".so"
11030postinstall_cmds=
11031postuninstall_cmds=
11032finish_cmds=
11033finish_eval=
11034shlibpath_var=
11035shlibpath_overrides_runpath=unknown
11036version_type=none
11037dynamic_linker="$host_os ld.so"
11038sys_lib_dlsearch_path_spec="/lib /usr/lib"
11039need_lib_prefix=unknown
11040hardcode_into_libs=no
11041
11042# when you set need_version to no, make sure it does not cause -set_version
11043# flags to be left without arguments
11044need_version=unknown
11045
11046case $host_os in
11047aix3*)
11048  version_type=linux # correct to gnu/linux during the next big refactor
11049  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11050  shlibpath_var=LIBPATH
11051
11052  # AIX 3 has no versioning support, so we append a major version to the name.
11053  soname_spec='${libname}${release}${shared_ext}$major'
11054  ;;
11055
11056aix[4-9]*)
11057  version_type=linux # correct to gnu/linux during the next big refactor
11058  need_lib_prefix=no
11059  need_version=no
11060  hardcode_into_libs=yes
11061  if test "$host_cpu" = ia64; then
11062    # AIX 5 supports IA64
11063    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11064    shlibpath_var=LD_LIBRARY_PATH
11065  else
11066    # With GCC up to 2.95.x, collect2 would create an import file
11067    # for dependence libraries.  The import file would start with
11068    # the line `#! .'.  This would cause the generated library to
11069    # depend on `.', always an invalid library.  This was fixed in
11070    # development snapshots of GCC prior to 3.0.
11071    case $host_os in
11072      aix4 | aix4.[01] | aix4.[01].*)
11073      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11074	   echo ' yes '
11075	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11076	:
11077      else
11078	can_build_shared=no
11079      fi
11080      ;;
11081    esac
11082    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11083    # soname into executable. Probably we can add versioning support to
11084    # collect2, so additional links can be useful in future.
11085    if test "$aix_use_runtimelinking" = yes; then
11086      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11087      # instead of lib<name>.a to let people know that these are not
11088      # typical AIX shared libraries.
11089      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090    else
11091      # We preserve .a as extension for shared libraries through AIX4.2
11092      # and later when we are not doing run time linking.
11093      library_names_spec='${libname}${release}.a $libname.a'
11094      soname_spec='${libname}${release}${shared_ext}$major'
11095    fi
11096    shlibpath_var=LIBPATH
11097  fi
11098  ;;
11099
11100amigaos*)
11101  case $host_cpu in
11102  powerpc)
11103    # Since July 2007 AmigaOS4 officially supports .so libraries.
11104    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11105    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11106    ;;
11107  m68k)
11108    library_names_spec='$libname.ixlibrary $libname.a'
11109    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11110    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'
11111    ;;
11112  esac
11113  ;;
11114
11115beos*)
11116  library_names_spec='${libname}${shared_ext}'
11117  dynamic_linker="$host_os ld.so"
11118  shlibpath_var=LIBRARY_PATH
11119  ;;
11120
11121bsdi[45]*)
11122  version_type=linux # correct to gnu/linux during the next big refactor
11123  need_version=no
11124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125  soname_spec='${libname}${release}${shared_ext}$major'
11126  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11127  shlibpath_var=LD_LIBRARY_PATH
11128  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11129  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11130  # the default ld.so.conf also contains /usr/contrib/lib and
11131  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11132  # libtool to hard-code these into programs
11133  ;;
11134
11135cygwin* | mingw* | pw32* | cegcc*)
11136  version_type=windows
11137  shrext_cmds=".dll"
11138  need_version=no
11139  need_lib_prefix=no
11140
11141  case $GCC,$cc_basename in
11142  yes,*)
11143    # gcc
11144    library_names_spec='$libname.dll.a'
11145    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11146    postinstall_cmds='base_file=`basename \${file}`~
11147      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11148      dldir=$destdir/`dirname \$dlpath`~
11149      test -d \$dldir || mkdir -p \$dldir~
11150      $install_prog $dir/$dlname \$dldir/$dlname~
11151      chmod a+x \$dldir/$dlname~
11152      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11153        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11154      fi'
11155    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11156      dlpath=$dir/\$dldll~
11157       $RM \$dlpath'
11158    shlibpath_overrides_runpath=yes
11159
11160    case $host_os in
11161    cygwin*)
11162      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11163      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11164
11165      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11166      ;;
11167    mingw* | cegcc*)
11168      # MinGW DLLs use traditional 'lib' prefix
11169      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170      ;;
11171    pw32*)
11172      # pw32 DLLs use 'pw' prefix rather than 'lib'
11173      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11174      ;;
11175    esac
11176    dynamic_linker='Win32 ld.exe'
11177    ;;
11178
11179  *,cl*)
11180    # Native MSVC
11181    libname_spec='$name'
11182    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11183    library_names_spec='${libname}.dll.lib'
11184
11185    case $build_os in
11186    mingw*)
11187      sys_lib_search_path_spec=
11188      lt_save_ifs=$IFS
11189      IFS=';'
11190      for lt_path in $LIB
11191      do
11192        IFS=$lt_save_ifs
11193        # Let DOS variable expansion print the short 8.3 style file name.
11194        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11195        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11196      done
11197      IFS=$lt_save_ifs
11198      # Convert to MSYS style.
11199      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11200      ;;
11201    cygwin*)
11202      # Convert to unix form, then to dos form, then back to unix form
11203      # but this time dos style (no spaces!) so that the unix form looks
11204      # like /cygdrive/c/PROGRA~1:/cygdr...
11205      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11206      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11207      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11208      ;;
11209    *)
11210      sys_lib_search_path_spec="$LIB"
11211      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11212        # It is most probably a Windows format PATH.
11213        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11214      else
11215        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11216      fi
11217      # FIXME: find the short name or the path components, as spaces are
11218      # common. (e.g. "Program Files" -> "PROGRA~1")
11219      ;;
11220    esac
11221
11222    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11223    postinstall_cmds='base_file=`basename \${file}`~
11224      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11225      dldir=$destdir/`dirname \$dlpath`~
11226      test -d \$dldir || mkdir -p \$dldir~
11227      $install_prog $dir/$dlname \$dldir/$dlname'
11228    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11229      dlpath=$dir/\$dldll~
11230       $RM \$dlpath'
11231    shlibpath_overrides_runpath=yes
11232    dynamic_linker='Win32 link.exe'
11233    ;;
11234
11235  *)
11236    # Assume MSVC wrapper
11237    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11238    dynamic_linker='Win32 ld.exe'
11239    ;;
11240  esac
11241  # FIXME: first we should search . and the directory the executable is in
11242  shlibpath_var=PATH
11243  ;;
11244
11245darwin* | rhapsody*)
11246  dynamic_linker="$host_os dyld"
11247  version_type=darwin
11248  need_lib_prefix=no
11249  need_version=no
11250  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11251  soname_spec='${libname}${release}${major}$shared_ext'
11252  shlibpath_overrides_runpath=yes
11253  shlibpath_var=DYLD_LIBRARY_PATH
11254  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11255
11256  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11257  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11258  ;;
11259
11260dgux*)
11261  version_type=linux # correct to gnu/linux during the next big refactor
11262  need_lib_prefix=no
11263  need_version=no
11264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11265  soname_spec='${libname}${release}${shared_ext}$major'
11266  shlibpath_var=LD_LIBRARY_PATH
11267  ;;
11268
11269freebsd* | dragonfly*)
11270  # DragonFly does not have aout.  When/if they implement a new
11271  # versioning mechanism, adjust this.
11272  if test -x /usr/bin/objformat; then
11273    objformat=`/usr/bin/objformat`
11274  else
11275    case $host_os in
11276    freebsd[23].*) objformat=aout ;;
11277    *) objformat=elf ;;
11278    esac
11279  fi
11280  version_type=freebsd-$objformat
11281  case $version_type in
11282    freebsd-elf*)
11283      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11284      need_version=no
11285      need_lib_prefix=no
11286      ;;
11287    freebsd-*)
11288      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11289      need_version=yes
11290      ;;
11291  esac
11292  shlibpath_var=LD_LIBRARY_PATH
11293  case $host_os in
11294  freebsd2.*)
11295    shlibpath_overrides_runpath=yes
11296    ;;
11297  freebsd3.[01]* | freebsdelf3.[01]*)
11298    shlibpath_overrides_runpath=yes
11299    hardcode_into_libs=yes
11300    ;;
11301  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11302  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11303    shlibpath_overrides_runpath=no
11304    hardcode_into_libs=yes
11305    ;;
11306  *) # from 4.6 on, and DragonFly
11307    shlibpath_overrides_runpath=yes
11308    hardcode_into_libs=yes
11309    ;;
11310  esac
11311  ;;
11312
11313gnu*)
11314  version_type=linux # correct to gnu/linux during the next big refactor
11315  need_lib_prefix=no
11316  need_version=no
11317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11318  soname_spec='${libname}${release}${shared_ext}$major'
11319  shlibpath_var=LD_LIBRARY_PATH
11320  shlibpath_overrides_runpath=no
11321  hardcode_into_libs=yes
11322  ;;
11323
11324haiku*)
11325  version_type=linux # correct to gnu/linux during the next big refactor
11326  need_lib_prefix=no
11327  need_version=no
11328  dynamic_linker="$host_os runtime_loader"
11329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11330  soname_spec='${libname}${release}${shared_ext}$major'
11331  shlibpath_var=LIBRARY_PATH
11332  shlibpath_overrides_runpath=yes
11333  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11334  hardcode_into_libs=yes
11335  ;;
11336
11337hpux9* | hpux10* | hpux11*)
11338  # Give a soname corresponding to the major version so that dld.sl refuses to
11339  # link against other versions.
11340  version_type=sunos
11341  need_lib_prefix=no
11342  need_version=no
11343  case $host_cpu in
11344  ia64*)
11345    shrext_cmds='.so'
11346    hardcode_into_libs=yes
11347    dynamic_linker="$host_os dld.so"
11348    shlibpath_var=LD_LIBRARY_PATH
11349    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11350    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351    soname_spec='${libname}${release}${shared_ext}$major'
11352    if test "X$HPUX_IA64_MODE" = X32; then
11353      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11354    else
11355      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11356    fi
11357    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11358    ;;
11359  hppa*64*)
11360    shrext_cmds='.sl'
11361    hardcode_into_libs=yes
11362    dynamic_linker="$host_os dld.sl"
11363    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11364    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11365    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366    soname_spec='${libname}${release}${shared_ext}$major'
11367    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11368    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11369    ;;
11370  *)
11371    shrext_cmds='.sl'
11372    dynamic_linker="$host_os dld.sl"
11373    shlibpath_var=SHLIB_PATH
11374    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11375    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376    soname_spec='${libname}${release}${shared_ext}$major'
11377    ;;
11378  esac
11379  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11380  postinstall_cmds='chmod 555 $lib'
11381  # or fails outright, so override atomically:
11382  install_override_mode=555
11383  ;;
11384
11385interix[3-9]*)
11386  version_type=linux # correct to gnu/linux during the next big refactor
11387  need_lib_prefix=no
11388  need_version=no
11389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11390  soname_spec='${libname}${release}${shared_ext}$major'
11391  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11392  shlibpath_var=LD_LIBRARY_PATH
11393  shlibpath_overrides_runpath=no
11394  hardcode_into_libs=yes
11395  ;;
11396
11397irix5* | irix6* | nonstopux*)
11398  case $host_os in
11399    nonstopux*) version_type=nonstopux ;;
11400    *)
11401	if test "$lt_cv_prog_gnu_ld" = yes; then
11402		version_type=linux # correct to gnu/linux during the next big refactor
11403	else
11404		version_type=irix
11405	fi ;;
11406  esac
11407  need_lib_prefix=no
11408  need_version=no
11409  soname_spec='${libname}${release}${shared_ext}$major'
11410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11411  case $host_os in
11412  irix5* | nonstopux*)
11413    libsuff= shlibsuff=
11414    ;;
11415  *)
11416    case $LD in # libtool.m4 will add one of these switches to LD
11417    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11418      libsuff= shlibsuff= libmagic=32-bit;;
11419    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11420      libsuff=32 shlibsuff=N32 libmagic=N32;;
11421    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11422      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11423    *) libsuff= shlibsuff= libmagic=never-match;;
11424    esac
11425    ;;
11426  esac
11427  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11428  shlibpath_overrides_runpath=no
11429  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11430  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11431  hardcode_into_libs=yes
11432  ;;
11433
11434# No shared lib support for Linux oldld, aout, or coff.
11435linux*oldld* | linux*aout* | linux*coff*)
11436  dynamic_linker=no
11437  ;;
11438
11439# This must be glibc/ELF.
11440linux* | k*bsd*-gnu | kopensolaris*-gnu)
11441  version_type=linux # correct to gnu/linux during the next big refactor
11442  need_lib_prefix=no
11443  need_version=no
11444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445  soname_spec='${libname}${release}${shared_ext}$major'
11446  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11447  shlibpath_var=LD_LIBRARY_PATH
11448  shlibpath_overrides_runpath=no
11449
11450  # Some binutils ld are patched to set DT_RUNPATH
11451  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11452  $as_echo_n "(cached) " >&6
11453else
11454  lt_cv_shlibpath_overrides_runpath=no
11455    save_LDFLAGS=$LDFLAGS
11456    save_libdir=$libdir
11457    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11458	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11459    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460/* end confdefs.h.  */
11461
11462int
11463main ()
11464{
11465
11466  ;
11467  return 0;
11468}
11469_ACEOF
11470if ac_fn_c_try_link "$LINENO"; then :
11471  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11472  lt_cv_shlibpath_overrides_runpath=yes
11473fi
11474fi
11475rm -f core conftest.err conftest.$ac_objext \
11476    conftest$ac_exeext conftest.$ac_ext
11477    LDFLAGS=$save_LDFLAGS
11478    libdir=$save_libdir
11479
11480fi
11481
11482  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11483
11484  # This implies no fast_install, which is unacceptable.
11485  # Some rework will be needed to allow for fast_install
11486  # before this can be enabled.
11487  hardcode_into_libs=yes
11488
11489  # Append ld.so.conf contents to the search path
11490  if test -f /etc/ld.so.conf; then
11491    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' ' '`
11492    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11493  fi
11494
11495  # We used to test for /lib/ld.so.1 and disable shared libraries on
11496  # powerpc, because MkLinux only supported shared libraries with the
11497  # GNU dynamic linker.  Since this was broken with cross compilers,
11498  # most powerpc-linux boxes support dynamic linking these days and
11499  # people can always --disable-shared, the test was removed, and we
11500  # assume the GNU/Linux dynamic linker is in use.
11501  dynamic_linker='GNU/Linux ld.so'
11502  ;;
11503
11504netbsd*)
11505  version_type=sunos
11506  need_lib_prefix=no
11507  need_version=no
11508  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11509    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11510    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11511    dynamic_linker='NetBSD (a.out) ld.so'
11512  else
11513    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11514    soname_spec='${libname}${release}${shared_ext}$major'
11515    dynamic_linker='NetBSD ld.elf_so'
11516  fi
11517  shlibpath_var=LD_LIBRARY_PATH
11518  shlibpath_overrides_runpath=yes
11519  hardcode_into_libs=yes
11520  ;;
11521
11522newsos6)
11523  version_type=linux # correct to gnu/linux during the next big refactor
11524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525  shlibpath_var=LD_LIBRARY_PATH
11526  shlibpath_overrides_runpath=yes
11527  ;;
11528
11529*nto* | *qnx*)
11530  version_type=qnx
11531  need_lib_prefix=no
11532  need_version=no
11533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534  soname_spec='${libname}${release}${shared_ext}$major'
11535  shlibpath_var=LD_LIBRARY_PATH
11536  shlibpath_overrides_runpath=no
11537  hardcode_into_libs=yes
11538  dynamic_linker='ldqnx.so'
11539  ;;
11540
11541openbsd*)
11542  version_type=sunos
11543  sys_lib_dlsearch_path_spec="/usr/lib"
11544  need_lib_prefix=no
11545  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11546  case $host_os in
11547    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11548    *)				need_version=no  ;;
11549  esac
11550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11551  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11552  shlibpath_var=LD_LIBRARY_PATH
11553  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11554    case $host_os in
11555      openbsd2.[89] | openbsd2.[89].*)
11556	shlibpath_overrides_runpath=no
11557	;;
11558      *)
11559	shlibpath_overrides_runpath=yes
11560	;;
11561      esac
11562  else
11563    shlibpath_overrides_runpath=yes
11564  fi
11565  ;;
11566
11567os2*)
11568  libname_spec='$name'
11569  shrext_cmds=".dll"
11570  need_lib_prefix=no
11571  library_names_spec='$libname${shared_ext} $libname.a'
11572  dynamic_linker='OS/2 ld.exe'
11573  shlibpath_var=LIBPATH
11574  ;;
11575
11576osf3* | osf4* | osf5*)
11577  version_type=osf
11578  need_lib_prefix=no
11579  need_version=no
11580  soname_spec='${libname}${release}${shared_ext}$major'
11581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582  shlibpath_var=LD_LIBRARY_PATH
11583  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11584  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11585  ;;
11586
11587rdos*)
11588  dynamic_linker=no
11589  ;;
11590
11591solaris*)
11592  version_type=linux # correct to gnu/linux during the next big refactor
11593  need_lib_prefix=no
11594  need_version=no
11595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596  soname_spec='${libname}${release}${shared_ext}$major'
11597  shlibpath_var=LD_LIBRARY_PATH
11598  shlibpath_overrides_runpath=yes
11599  hardcode_into_libs=yes
11600  # ldd complains unless libraries are executable
11601  postinstall_cmds='chmod +x $lib'
11602  ;;
11603
11604sunos4*)
11605  version_type=sunos
11606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11607  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11608  shlibpath_var=LD_LIBRARY_PATH
11609  shlibpath_overrides_runpath=yes
11610  if test "$with_gnu_ld" = yes; then
11611    need_lib_prefix=no
11612  fi
11613  need_version=yes
11614  ;;
11615
11616sysv4 | sysv4.3*)
11617  version_type=linux # correct to gnu/linux during the next big refactor
11618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619  soname_spec='${libname}${release}${shared_ext}$major'
11620  shlibpath_var=LD_LIBRARY_PATH
11621  case $host_vendor in
11622    sni)
11623      shlibpath_overrides_runpath=no
11624      need_lib_prefix=no
11625      runpath_var=LD_RUN_PATH
11626      ;;
11627    siemens)
11628      need_lib_prefix=no
11629      ;;
11630    motorola)
11631      need_lib_prefix=no
11632      need_version=no
11633      shlibpath_overrides_runpath=no
11634      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11635      ;;
11636  esac
11637  ;;
11638
11639sysv4*MP*)
11640  if test -d /usr/nec ;then
11641    version_type=linux # correct to gnu/linux during the next big refactor
11642    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11643    soname_spec='$libname${shared_ext}.$major'
11644    shlibpath_var=LD_LIBRARY_PATH
11645  fi
11646  ;;
11647
11648sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11649  version_type=freebsd-elf
11650  need_lib_prefix=no
11651  need_version=no
11652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11653  soname_spec='${libname}${release}${shared_ext}$major'
11654  shlibpath_var=LD_LIBRARY_PATH
11655  shlibpath_overrides_runpath=yes
11656  hardcode_into_libs=yes
11657  if test "$with_gnu_ld" = yes; then
11658    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11659  else
11660    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11661    case $host_os in
11662      sco3.2v5*)
11663        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11664	;;
11665    esac
11666  fi
11667  sys_lib_dlsearch_path_spec='/usr/lib'
11668  ;;
11669
11670tpf*)
11671  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11672  version_type=linux # correct to gnu/linux during the next big refactor
11673  need_lib_prefix=no
11674  need_version=no
11675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11676  shlibpath_var=LD_LIBRARY_PATH
11677  shlibpath_overrides_runpath=no
11678  hardcode_into_libs=yes
11679  ;;
11680
11681uts4*)
11682  version_type=linux # correct to gnu/linux during the next big refactor
11683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11684  soname_spec='${libname}${release}${shared_ext}$major'
11685  shlibpath_var=LD_LIBRARY_PATH
11686  ;;
11687
11688*)
11689  dynamic_linker=no
11690  ;;
11691esac
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11693$as_echo "$dynamic_linker" >&6; }
11694test "$dynamic_linker" = no && can_build_shared=no
11695
11696variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11697if test "$GCC" = yes; then
11698  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11699fi
11700
11701if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11702  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11703fi
11704if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11705  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11706fi
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11800$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11801hardcode_action=
11802if test -n "$hardcode_libdir_flag_spec" ||
11803   test -n "$runpath_var" ||
11804   test "X$hardcode_automatic" = "Xyes" ; then
11805
11806  # We can hardcode non-existent directories.
11807  if test "$hardcode_direct" != no &&
11808     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11809     # have to relink, otherwise we might link with an installed library
11810     # when we should be linking with a yet-to-be-installed one
11811     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11812     test "$hardcode_minus_L" != no; then
11813    # Linking always hardcodes the temporary library directory.
11814    hardcode_action=relink
11815  else
11816    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11817    hardcode_action=immediate
11818  fi
11819else
11820  # We cannot hardcode anything, or else we can only hardcode existing
11821  # directories.
11822  hardcode_action=unsupported
11823fi
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11825$as_echo "$hardcode_action" >&6; }
11826
11827if test "$hardcode_action" = relink ||
11828   test "$inherit_rpath" = yes; then
11829  # Fast installation is not supported
11830  enable_fast_install=no
11831elif test "$shlibpath_overrides_runpath" = yes ||
11832     test "$enable_shared" = no; then
11833  # Fast installation is not necessary
11834  enable_fast_install=needless
11835fi
11836
11837
11838
11839
11840
11841
11842  if test "x$enable_dlopen" != xyes; then
11843  enable_dlopen=unknown
11844  enable_dlopen_self=unknown
11845  enable_dlopen_self_static=unknown
11846else
11847  lt_cv_dlopen=no
11848  lt_cv_dlopen_libs=
11849
11850  case $host_os in
11851  beos*)
11852    lt_cv_dlopen="load_add_on"
11853    lt_cv_dlopen_libs=
11854    lt_cv_dlopen_self=yes
11855    ;;
11856
11857  mingw* | pw32* | cegcc*)
11858    lt_cv_dlopen="LoadLibrary"
11859    lt_cv_dlopen_libs=
11860    ;;
11861
11862  cygwin*)
11863    lt_cv_dlopen="dlopen"
11864    lt_cv_dlopen_libs=
11865    ;;
11866
11867  darwin*)
11868  # if libdl is installed we need to link against it
11869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11870$as_echo_n "checking for dlopen in -ldl... " >&6; }
11871if ${ac_cv_lib_dl_dlopen+:} false; then :
11872  $as_echo_n "(cached) " >&6
11873else
11874  ac_check_lib_save_LIBS=$LIBS
11875LIBS="-ldl  $LIBS"
11876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877/* end confdefs.h.  */
11878
11879/* Override any GCC internal prototype to avoid an error.
11880   Use char because int might match the return type of a GCC
11881   builtin and then its argument prototype would still apply.  */
11882#ifdef __cplusplus
11883extern "C"
11884#endif
11885char dlopen ();
11886int
11887main ()
11888{
11889return dlopen ();
11890  ;
11891  return 0;
11892}
11893_ACEOF
11894if ac_fn_c_try_link "$LINENO"; then :
11895  ac_cv_lib_dl_dlopen=yes
11896else
11897  ac_cv_lib_dl_dlopen=no
11898fi
11899rm -f core conftest.err conftest.$ac_objext \
11900    conftest$ac_exeext conftest.$ac_ext
11901LIBS=$ac_check_lib_save_LIBS
11902fi
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11904$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11905if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11906  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11907else
11908
11909    lt_cv_dlopen="dyld"
11910    lt_cv_dlopen_libs=
11911    lt_cv_dlopen_self=yes
11912
11913fi
11914
11915    ;;
11916
11917  *)
11918    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11919if test "x$ac_cv_func_shl_load" = xyes; then :
11920  lt_cv_dlopen="shl_load"
11921else
11922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11923$as_echo_n "checking for shl_load in -ldld... " >&6; }
11924if ${ac_cv_lib_dld_shl_load+:} false; then :
11925  $as_echo_n "(cached) " >&6
11926else
11927  ac_check_lib_save_LIBS=$LIBS
11928LIBS="-ldld  $LIBS"
11929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930/* end confdefs.h.  */
11931
11932/* Override any GCC internal prototype to avoid an error.
11933   Use char because int might match the return type of a GCC
11934   builtin and then its argument prototype would still apply.  */
11935#ifdef __cplusplus
11936extern "C"
11937#endif
11938char shl_load ();
11939int
11940main ()
11941{
11942return shl_load ();
11943  ;
11944  return 0;
11945}
11946_ACEOF
11947if ac_fn_c_try_link "$LINENO"; then :
11948  ac_cv_lib_dld_shl_load=yes
11949else
11950  ac_cv_lib_dld_shl_load=no
11951fi
11952rm -f core conftest.err conftest.$ac_objext \
11953    conftest$ac_exeext conftest.$ac_ext
11954LIBS=$ac_check_lib_save_LIBS
11955fi
11956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11957$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11958if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11959  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11960else
11961  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11962if test "x$ac_cv_func_dlopen" = xyes; then :
11963  lt_cv_dlopen="dlopen"
11964else
11965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11966$as_echo_n "checking for dlopen in -ldl... " >&6; }
11967if ${ac_cv_lib_dl_dlopen+:} false; then :
11968  $as_echo_n "(cached) " >&6
11969else
11970  ac_check_lib_save_LIBS=$LIBS
11971LIBS="-ldl  $LIBS"
11972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973/* end confdefs.h.  */
11974
11975/* Override any GCC internal prototype to avoid an error.
11976   Use char because int might match the return type of a GCC
11977   builtin and then its argument prototype would still apply.  */
11978#ifdef __cplusplus
11979extern "C"
11980#endif
11981char dlopen ();
11982int
11983main ()
11984{
11985return dlopen ();
11986  ;
11987  return 0;
11988}
11989_ACEOF
11990if ac_fn_c_try_link "$LINENO"; then :
11991  ac_cv_lib_dl_dlopen=yes
11992else
11993  ac_cv_lib_dl_dlopen=no
11994fi
11995rm -f core conftest.err conftest.$ac_objext \
11996    conftest$ac_exeext conftest.$ac_ext
11997LIBS=$ac_check_lib_save_LIBS
11998fi
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12000$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12001if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12002  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12003else
12004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12005$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12006if ${ac_cv_lib_svld_dlopen+:} false; then :
12007  $as_echo_n "(cached) " >&6
12008else
12009  ac_check_lib_save_LIBS=$LIBS
12010LIBS="-lsvld  $LIBS"
12011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012/* end confdefs.h.  */
12013
12014/* Override any GCC internal prototype to avoid an error.
12015   Use char because int might match the return type of a GCC
12016   builtin and then its argument prototype would still apply.  */
12017#ifdef __cplusplus
12018extern "C"
12019#endif
12020char dlopen ();
12021int
12022main ()
12023{
12024return dlopen ();
12025  ;
12026  return 0;
12027}
12028_ACEOF
12029if ac_fn_c_try_link "$LINENO"; then :
12030  ac_cv_lib_svld_dlopen=yes
12031else
12032  ac_cv_lib_svld_dlopen=no
12033fi
12034rm -f core conftest.err conftest.$ac_objext \
12035    conftest$ac_exeext conftest.$ac_ext
12036LIBS=$ac_check_lib_save_LIBS
12037fi
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12039$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12040if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12041  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12042else
12043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12044$as_echo_n "checking for dld_link in -ldld... " >&6; }
12045if ${ac_cv_lib_dld_dld_link+:} false; then :
12046  $as_echo_n "(cached) " >&6
12047else
12048  ac_check_lib_save_LIBS=$LIBS
12049LIBS="-ldld  $LIBS"
12050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051/* end confdefs.h.  */
12052
12053/* Override any GCC internal prototype to avoid an error.
12054   Use char because int might match the return type of a GCC
12055   builtin and then its argument prototype would still apply.  */
12056#ifdef __cplusplus
12057extern "C"
12058#endif
12059char dld_link ();
12060int
12061main ()
12062{
12063return dld_link ();
12064  ;
12065  return 0;
12066}
12067_ACEOF
12068if ac_fn_c_try_link "$LINENO"; then :
12069  ac_cv_lib_dld_dld_link=yes
12070else
12071  ac_cv_lib_dld_dld_link=no
12072fi
12073rm -f core conftest.err conftest.$ac_objext \
12074    conftest$ac_exeext conftest.$ac_ext
12075LIBS=$ac_check_lib_save_LIBS
12076fi
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12078$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12079if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12080  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12081fi
12082
12083
12084fi
12085
12086
12087fi
12088
12089
12090fi
12091
12092
12093fi
12094
12095
12096fi
12097
12098    ;;
12099  esac
12100
12101  if test "x$lt_cv_dlopen" != xno; then
12102    enable_dlopen=yes
12103  else
12104    enable_dlopen=no
12105  fi
12106
12107  case $lt_cv_dlopen in
12108  dlopen)
12109    save_CPPFLAGS="$CPPFLAGS"
12110    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12111
12112    save_LDFLAGS="$LDFLAGS"
12113    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12114
12115    save_LIBS="$LIBS"
12116    LIBS="$lt_cv_dlopen_libs $LIBS"
12117
12118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12119$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12120if ${lt_cv_dlopen_self+:} false; then :
12121  $as_echo_n "(cached) " >&6
12122else
12123  	  if test "$cross_compiling" = yes; then :
12124  lt_cv_dlopen_self=cross
12125else
12126  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12127  lt_status=$lt_dlunknown
12128  cat > conftest.$ac_ext <<_LT_EOF
12129#line $LINENO "configure"
12130#include "confdefs.h"
12131
12132#if HAVE_DLFCN_H
12133#include <dlfcn.h>
12134#endif
12135
12136#include <stdio.h>
12137
12138#ifdef RTLD_GLOBAL
12139#  define LT_DLGLOBAL		RTLD_GLOBAL
12140#else
12141#  ifdef DL_GLOBAL
12142#    define LT_DLGLOBAL		DL_GLOBAL
12143#  else
12144#    define LT_DLGLOBAL		0
12145#  endif
12146#endif
12147
12148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12149   find out it does not work in some platform. */
12150#ifndef LT_DLLAZY_OR_NOW
12151#  ifdef RTLD_LAZY
12152#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12153#  else
12154#    ifdef DL_LAZY
12155#      define LT_DLLAZY_OR_NOW		DL_LAZY
12156#    else
12157#      ifdef RTLD_NOW
12158#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12159#      else
12160#        ifdef DL_NOW
12161#          define LT_DLLAZY_OR_NOW	DL_NOW
12162#        else
12163#          define LT_DLLAZY_OR_NOW	0
12164#        endif
12165#      endif
12166#    endif
12167#  endif
12168#endif
12169
12170/* When -fvisbility=hidden is used, assume the code has been annotated
12171   correspondingly for the symbols needed.  */
12172#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12173int fnord () __attribute__((visibility("default")));
12174#endif
12175
12176int fnord () { return 42; }
12177int main ()
12178{
12179  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12180  int status = $lt_dlunknown;
12181
12182  if (self)
12183    {
12184      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12185      else
12186        {
12187	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12188          else puts (dlerror ());
12189	}
12190      /* dlclose (self); */
12191    }
12192  else
12193    puts (dlerror ());
12194
12195  return status;
12196}
12197_LT_EOF
12198  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12199  (eval $ac_link) 2>&5
12200  ac_status=$?
12201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12203    (./conftest; exit; ) >&5 2>/dev/null
12204    lt_status=$?
12205    case x$lt_status in
12206      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12207      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12208      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12209    esac
12210  else :
12211    # compilation failed
12212    lt_cv_dlopen_self=no
12213  fi
12214fi
12215rm -fr conftest*
12216
12217
12218fi
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12220$as_echo "$lt_cv_dlopen_self" >&6; }
12221
12222    if test "x$lt_cv_dlopen_self" = xyes; then
12223      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12224      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12225$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12226if ${lt_cv_dlopen_self_static+:} false; then :
12227  $as_echo_n "(cached) " >&6
12228else
12229  	  if test "$cross_compiling" = yes; then :
12230  lt_cv_dlopen_self_static=cross
12231else
12232  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233  lt_status=$lt_dlunknown
12234  cat > conftest.$ac_ext <<_LT_EOF
12235#line $LINENO "configure"
12236#include "confdefs.h"
12237
12238#if HAVE_DLFCN_H
12239#include <dlfcn.h>
12240#endif
12241
12242#include <stdio.h>
12243
12244#ifdef RTLD_GLOBAL
12245#  define LT_DLGLOBAL		RTLD_GLOBAL
12246#else
12247#  ifdef DL_GLOBAL
12248#    define LT_DLGLOBAL		DL_GLOBAL
12249#  else
12250#    define LT_DLGLOBAL		0
12251#  endif
12252#endif
12253
12254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255   find out it does not work in some platform. */
12256#ifndef LT_DLLAZY_OR_NOW
12257#  ifdef RTLD_LAZY
12258#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12259#  else
12260#    ifdef DL_LAZY
12261#      define LT_DLLAZY_OR_NOW		DL_LAZY
12262#    else
12263#      ifdef RTLD_NOW
12264#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12265#      else
12266#        ifdef DL_NOW
12267#          define LT_DLLAZY_OR_NOW	DL_NOW
12268#        else
12269#          define LT_DLLAZY_OR_NOW	0
12270#        endif
12271#      endif
12272#    endif
12273#  endif
12274#endif
12275
12276/* When -fvisbility=hidden is used, assume the code has been annotated
12277   correspondingly for the symbols needed.  */
12278#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12279int fnord () __attribute__((visibility("default")));
12280#endif
12281
12282int fnord () { return 42; }
12283int main ()
12284{
12285  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12286  int status = $lt_dlunknown;
12287
12288  if (self)
12289    {
12290      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12291      else
12292        {
12293	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12294          else puts (dlerror ());
12295	}
12296      /* dlclose (self); */
12297    }
12298  else
12299    puts (dlerror ());
12300
12301  return status;
12302}
12303_LT_EOF
12304  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12305  (eval $ac_link) 2>&5
12306  ac_status=$?
12307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12309    (./conftest; exit; ) >&5 2>/dev/null
12310    lt_status=$?
12311    case x$lt_status in
12312      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12313      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12314      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12315    esac
12316  else :
12317    # compilation failed
12318    lt_cv_dlopen_self_static=no
12319  fi
12320fi
12321rm -fr conftest*
12322
12323
12324fi
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12326$as_echo "$lt_cv_dlopen_self_static" >&6; }
12327    fi
12328
12329    CPPFLAGS="$save_CPPFLAGS"
12330    LDFLAGS="$save_LDFLAGS"
12331    LIBS="$save_LIBS"
12332    ;;
12333  esac
12334
12335  case $lt_cv_dlopen_self in
12336  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12337  *) enable_dlopen_self=unknown ;;
12338  esac
12339
12340  case $lt_cv_dlopen_self_static in
12341  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12342  *) enable_dlopen_self_static=unknown ;;
12343  esac
12344fi
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362striplib=
12363old_striplib=
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12365$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12366if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12367  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12368  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12370$as_echo "yes" >&6; }
12371else
12372# FIXME - insert some real tests, host_os isn't really good enough
12373  case $host_os in
12374  darwin*)
12375    if test -n "$STRIP" ; then
12376      striplib="$STRIP -x"
12377      old_striplib="$STRIP -S"
12378      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12379$as_echo "yes" >&6; }
12380    else
12381      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382$as_echo "no" >&6; }
12383    fi
12384    ;;
12385  *)
12386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388    ;;
12389  esac
12390fi
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403  # Report which library types will actually be built
12404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12405$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12407$as_echo "$can_build_shared" >&6; }
12408
12409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12410$as_echo_n "checking whether to build shared libraries... " >&6; }
12411  test "$can_build_shared" = "no" && enable_shared=no
12412
12413  # On AIX, shared libraries and static libraries use the same namespace, and
12414  # are all built from PIC.
12415  case $host_os in
12416  aix3*)
12417    test "$enable_shared" = yes && enable_static=no
12418    if test -n "$RANLIB"; then
12419      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12420      postinstall_cmds='$RANLIB $lib'
12421    fi
12422    ;;
12423
12424  aix[4-9]*)
12425    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12426      test "$enable_shared" = yes && enable_static=no
12427    fi
12428    ;;
12429  esac
12430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12431$as_echo "$enable_shared" >&6; }
12432
12433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12434$as_echo_n "checking whether to build static libraries... " >&6; }
12435  # Make sure either enable_shared or enable_static is yes.
12436  test "$enable_shared" = yes || enable_static=yes
12437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12438$as_echo "$enable_static" >&6; }
12439
12440
12441
12442
12443fi
12444ac_ext=c
12445ac_cpp='$CPP $CPPFLAGS'
12446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12448ac_compiler_gnu=$ac_cv_c_compiler_gnu
12449
12450CC="$lt_save_CC"
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466        ac_config_commands="$ac_config_commands libtool"
12467
12468
12469
12470
12471# Only expand once:
12472
12473
12474
12475
12476  CFLAG_VISIBILITY=
12477  HAVE_VISIBILITY=0
12478  if test -n "$GCC"; then
12479                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
12480$as_echo_n "checking whether the -Werror option is usable... " >&6; }
12481    if ${gl_cv_cc_vis_werror+:} false; then :
12482  $as_echo_n "(cached) " >&6
12483else
12484
12485      gl_save_CFLAGS="$CFLAGS"
12486      CFLAGS="$CFLAGS -Werror"
12487      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488/* end confdefs.h.  */
12489
12490int
12491main ()
12492{
12493
12494  ;
12495  return 0;
12496}
12497_ACEOF
12498if ac_fn_c_try_compile "$LINENO"; then :
12499  gl_cv_cc_vis_werror=yes
12500else
12501  gl_cv_cc_vis_werror=no
12502fi
12503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12504      CFLAGS="$gl_save_CFLAGS"
12505fi
12506
12507    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
12508$as_echo "$gl_cv_cc_vis_werror" >&6; }
12509        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12510$as_echo_n "checking for simple visibility declarations... " >&6; }
12511    if ${gl_cv_cc_visibility+:} false; then :
12512  $as_echo_n "(cached) " >&6
12513else
12514
12515      gl_save_CFLAGS="$CFLAGS"
12516      CFLAGS="$CFLAGS -fvisibility=hidden"
12517                                    if test $gl_cv_cc_vis_werror = yes; then
12518        CFLAGS="$CFLAGS -Werror"
12519      fi
12520      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h.  */
12522extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12523             extern __attribute__((__visibility__("default"))) int exportedvar;
12524             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12525             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12526             void dummyfunc (void) {}
12527
12528int
12529main ()
12530{
12531
12532  ;
12533  return 0;
12534}
12535_ACEOF
12536if ac_fn_c_try_compile "$LINENO"; then :
12537  gl_cv_cc_visibility=yes
12538else
12539  gl_cv_cc_visibility=no
12540fi
12541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12542      CFLAGS="$gl_save_CFLAGS"
12543fi
12544
12545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12546$as_echo "$gl_cv_cc_visibility" >&6; }
12547    if test $gl_cv_cc_visibility = yes; then
12548      CFLAG_VISIBILITY="-fvisibility=hidden"
12549      HAVE_VISIBILITY=1
12550    fi
12551  fi
12552
12553
12554
12555cat >>confdefs.h <<_ACEOF
12556#define HAVE_VISIBILITY $HAVE_VISIBILITY
12557_ACEOF
12558
12559
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12561$as_echo_n "checking for ANSI C header files... " >&6; }
12562if ${ac_cv_header_stdc+:} false; then :
12563  $as_echo_n "(cached) " >&6
12564else
12565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566/* end confdefs.h.  */
12567#include <stdlib.h>
12568#include <stdarg.h>
12569#include <string.h>
12570#include <float.h>
12571
12572int
12573main ()
12574{
12575
12576  ;
12577  return 0;
12578}
12579_ACEOF
12580if ac_fn_c_try_compile "$LINENO"; then :
12581  ac_cv_header_stdc=yes
12582else
12583  ac_cv_header_stdc=no
12584fi
12585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586
12587if test $ac_cv_header_stdc = yes; then
12588  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590/* end confdefs.h.  */
12591#include <string.h>
12592
12593_ACEOF
12594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12595  $EGREP "memchr" >/dev/null 2>&1; then :
12596
12597else
12598  ac_cv_header_stdc=no
12599fi
12600rm -f conftest*
12601
12602fi
12603
12604if test $ac_cv_header_stdc = yes; then
12605  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607/* end confdefs.h.  */
12608#include <stdlib.h>
12609
12610_ACEOF
12611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12612  $EGREP "free" >/dev/null 2>&1; then :
12613
12614else
12615  ac_cv_header_stdc=no
12616fi
12617rm -f conftest*
12618
12619fi
12620
12621if test $ac_cv_header_stdc = yes; then
12622  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12623  if test "$cross_compiling" = yes; then :
12624  :
12625else
12626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627/* end confdefs.h.  */
12628#include <ctype.h>
12629#include <stdlib.h>
12630#if ((' ' & 0x0FF) == 0x020)
12631# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12632# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12633#else
12634# define ISLOWER(c) \
12635		   (('a' <= (c) && (c) <= 'i') \
12636		     || ('j' <= (c) && (c) <= 'r') \
12637		     || ('s' <= (c) && (c) <= 'z'))
12638# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12639#endif
12640
12641#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12642int
12643main ()
12644{
12645  int i;
12646  for (i = 0; i < 256; i++)
12647    if (XOR (islower (i), ISLOWER (i))
12648	|| toupper (i) != TOUPPER (i))
12649      return 2;
12650  return 0;
12651}
12652_ACEOF
12653if ac_fn_c_try_run "$LINENO"; then :
12654
12655else
12656  ac_cv_header_stdc=no
12657fi
12658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12659  conftest.$ac_objext conftest.beam conftest.$ac_ext
12660fi
12661
12662fi
12663fi
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12665$as_echo "$ac_cv_header_stdc" >&6; }
12666if test $ac_cv_header_stdc = yes; then
12667
12668$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12669
12670fi
12671
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
12673$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
12674if ${ac_cv_header_sys_types_h_makedev+:} false; then :
12675  $as_echo_n "(cached) " >&6
12676else
12677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678/* end confdefs.h.  */
12679#include <sys/types.h>
12680int
12681main ()
12682{
12683return makedev(0, 0);
12684  ;
12685  return 0;
12686}
12687_ACEOF
12688if ac_fn_c_try_link "$LINENO"; then :
12689  ac_cv_header_sys_types_h_makedev=yes
12690else
12691  ac_cv_header_sys_types_h_makedev=no
12692fi
12693rm -f core conftest.err conftest.$ac_objext \
12694    conftest$ac_exeext conftest.$ac_ext
12695
12696fi
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
12698$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
12699
12700if test $ac_cv_header_sys_types_h_makedev = no; then
12701ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12702if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
12703
12704$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12705
12706fi
12707
12708
12709
12710  if test $ac_cv_header_sys_mkdev_h = no; then
12711    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12712if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
12713
12714$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12715
12716fi
12717
12718
12719  fi
12720fi
12721
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12723$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12724if ${ac_cv_header_sys_wait_h+:} false; then :
12725  $as_echo_n "(cached) " >&6
12726else
12727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728/* end confdefs.h.  */
12729#include <sys/types.h>
12730#include <sys/wait.h>
12731#ifndef WEXITSTATUS
12732# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12733#endif
12734#ifndef WIFEXITED
12735# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12736#endif
12737
12738int
12739main ()
12740{
12741  int s;
12742  wait (&s);
12743  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12744  ;
12745  return 0;
12746}
12747_ACEOF
12748if ac_fn_c_try_compile "$LINENO"; then :
12749  ac_cv_header_sys_wait_h=yes
12750else
12751  ac_cv_header_sys_wait_h=no
12752fi
12753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754fi
12755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12756$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12757if test $ac_cv_header_sys_wait_h = yes; then
12758
12759$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12760
12761fi
12762
12763for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
12764do :
12765  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12766ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12767if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12768  cat >>confdefs.h <<_ACEOF
12769#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12770_ACEOF
12771
12772fi
12773
12774done
12775
12776for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
12777do :
12778  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12779ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12781  cat >>confdefs.h <<_ACEOF
12782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12783_ACEOF
12784
12785fi
12786
12787done
12788
12789for ac_header in getopt.h err.h xlocale.h signal.h
12790do :
12791  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12792ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12793if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12794  cat >>confdefs.h <<_ACEOF
12795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12796_ACEOF
12797
12798fi
12799
12800done
12801
12802for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
12803do :
12804  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12805ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12806if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12807  cat >>confdefs.h <<_ACEOF
12808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12809_ACEOF
12810
12811fi
12812
12813done
12814
12815for ac_header in zlib.h
12816do :
12817  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12818if test "x$ac_cv_header_zlib_h" = xyes; then :
12819  cat >>confdefs.h <<_ACEOF
12820#define HAVE_ZLIB_H 1
12821_ACEOF
12822
12823fi
12824
12825done
12826
12827ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "
12828#ifdef HAVE_SIGNAL_H
12829#include <signal.h>
12830#endif
12831"
12832if test "x$ac_cv_type_sig_t" = xyes; then :
12833
12834$as_echo "#define HAVE_SIG_T 1" >>confdefs.h
12835
12836fi
12837
12838
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12840$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12841if ${ac_cv_c_const+:} false; then :
12842  $as_echo_n "(cached) " >&6
12843else
12844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845/* end confdefs.h.  */
12846
12847int
12848main ()
12849{
12850
12851#ifndef __cplusplus
12852  /* Ultrix mips cc rejects this sort of thing.  */
12853  typedef int charset[2];
12854  const charset cs = { 0, 0 };
12855  /* SunOS 4.1.1 cc rejects this.  */
12856  char const *const *pcpcc;
12857  char **ppc;
12858  /* NEC SVR4.0.2 mips cc rejects this.  */
12859  struct point {int x, y;};
12860  static struct point const zero = {0,0};
12861  /* AIX XL C 1.02.0.0 rejects this.
12862     It does not let you subtract one const X* pointer from another in
12863     an arm of an if-expression whose if-part is not a constant
12864     expression */
12865  const char *g = "string";
12866  pcpcc = &g + (g ? g-g : 0);
12867  /* HPUX 7.0 cc rejects these. */
12868  ++pcpcc;
12869  ppc = (char**) pcpcc;
12870  pcpcc = (char const *const *) ppc;
12871  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12872    char tx;
12873    char *t = &tx;
12874    char const *s = 0 ? (char *) 0 : (char const *) 0;
12875
12876    *t++ = 0;
12877    if (s) return 0;
12878  }
12879  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12880    int x[] = {25, 17};
12881    const int *foo = &x[0];
12882    ++foo;
12883  }
12884  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12885    typedef const int *iptr;
12886    iptr p = 0;
12887    ++p;
12888  }
12889  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12890       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12891    struct s { int j; const int *ap[3]; } bx;
12892    struct s *b = &bx; b->j = 5;
12893  }
12894  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12895    const int foo = 10;
12896    if (!foo) return 0;
12897  }
12898  return !cs[0] && !zero.x;
12899#endif
12900
12901  ;
12902  return 0;
12903}
12904_ACEOF
12905if ac_fn_c_try_compile "$LINENO"; then :
12906  ac_cv_c_const=yes
12907else
12908  ac_cv_c_const=no
12909fi
12910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911fi
12912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12913$as_echo "$ac_cv_c_const" >&6; }
12914if test $ac_cv_c_const = no; then
12915
12916$as_echo "#define const /**/" >>confdefs.h
12917
12918fi
12919
12920ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12921if test "x$ac_cv_type_off_t" = xyes; then :
12922
12923else
12924
12925cat >>confdefs.h <<_ACEOF
12926#define off_t long int
12927_ACEOF
12928
12929fi
12930
12931ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12932if test "x$ac_cv_type_size_t" = xyes; then :
12933
12934else
12935
12936cat >>confdefs.h <<_ACEOF
12937#define size_t unsigned int
12938_ACEOF
12939
12940fi
12941
12942ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12943if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12944
12945cat >>confdefs.h <<_ACEOF
12946#define HAVE_STRUCT_STAT_ST_RDEV 1
12947_ACEOF
12948
12949
12950fi
12951
12952
12953ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
12954if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12955
12956cat >>confdefs.h <<_ACEOF
12957#define HAVE_STRUCT_TM_TM_GMTOFF 1
12958_ACEOF
12959
12960
12961fi
12962
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12964$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12965if ${ac_cv_struct_tm+:} false; then :
12966  $as_echo_n "(cached) " >&6
12967else
12968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969/* end confdefs.h.  */
12970#include <sys/types.h>
12971#include <time.h>
12972
12973int
12974main ()
12975{
12976struct tm tm;
12977				     int *p = &tm.tm_sec;
12978				     return !p;
12979  ;
12980  return 0;
12981}
12982_ACEOF
12983if ac_fn_c_try_compile "$LINENO"; then :
12984  ac_cv_struct_tm=time.h
12985else
12986  ac_cv_struct_tm=sys/time.h
12987fi
12988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12989fi
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12991$as_echo "$ac_cv_struct_tm" >&6; }
12992if test $ac_cv_struct_tm = sys/time.h; then
12993
12994$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12995
12996fi
12997
12998ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12999#include <$ac_cv_struct_tm>
13000
13001"
13002if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13003
13004cat >>confdefs.h <<_ACEOF
13005#define HAVE_STRUCT_TM_TM_ZONE 1
13006_ACEOF
13007
13008
13009fi
13010
13011if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13012
13013$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13014
13015else
13016  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13017"
13018if test "x$ac_cv_have_decl_tzname" = xyes; then :
13019  ac_have_decl=1
13020else
13021  ac_have_decl=0
13022fi
13023
13024cat >>confdefs.h <<_ACEOF
13025#define HAVE_DECL_TZNAME $ac_have_decl
13026_ACEOF
13027
13028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13029$as_echo_n "checking for tzname... " >&6; }
13030if ${ac_cv_var_tzname+:} false; then :
13031  $as_echo_n "(cached) " >&6
13032else
13033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034/* end confdefs.h.  */
13035#include <time.h>
13036#if !HAVE_DECL_TZNAME
13037extern char *tzname[];
13038#endif
13039
13040int
13041main ()
13042{
13043return tzname[0][0];
13044  ;
13045  return 0;
13046}
13047_ACEOF
13048if ac_fn_c_try_link "$LINENO"; then :
13049  ac_cv_var_tzname=yes
13050else
13051  ac_cv_var_tzname=no
13052fi
13053rm -f core conftest.err conftest.$ac_objext \
13054    conftest$ac_exeext conftest.$ac_ext
13055fi
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13057$as_echo "$ac_cv_var_tzname" >&6; }
13058  if test $ac_cv_var_tzname = yes; then
13059
13060$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13061
13062  fi
13063fi
13064
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13066$as_echo_n "checking for tm_zone in struct tm... " >&6; }
13067if ${ac_cv_struct_tm_zone+:} false; then :
13068  $as_echo_n "(cached) " >&6
13069else
13070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071/* end confdefs.h.  */
13072#include <sys/types.h>
13073#include <$ac_cv_struct_tm>
13074int
13075main ()
13076{
13077struct tm tm; tm.tm_zone;
13078  ;
13079  return 0;
13080}
13081_ACEOF
13082if ac_fn_c_try_compile "$LINENO"; then :
13083  ac_cv_struct_tm_zone=yes
13084else
13085  ac_cv_struct_tm_zone=no
13086fi
13087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13088fi
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13090$as_echo "$ac_cv_struct_tm_zone" >&6; }
13091if test "$ac_cv_struct_tm_zone" = yes; then
13092
13093$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13094
13095fi
13096
13097# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13098# consider it declared and we won't give our own extern.
13099ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13100"
13101if test "x$ac_cv_have_decl_tzname" = xyes; then :
13102  ac_have_decl=1
13103else
13104  ac_have_decl=0
13105fi
13106
13107cat >>confdefs.h <<_ACEOF
13108#define HAVE_DECL_TZNAME $ac_have_decl
13109_ACEOF
13110
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13112$as_echo_n "checking for tzname... " >&6; }
13113if ${ac_cv_var_tzname+:} false; then :
13114  $as_echo_n "(cached) " >&6
13115else
13116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117/* end confdefs.h.  */
13118#include <time.h>
13119#if !HAVE_DECL_TZNAME
13120extern char *tzname[];
13121#endif
13122int
13123main ()
13124{
13125return tzname[0][0];
13126  ;
13127  return 0;
13128}
13129_ACEOF
13130if ac_fn_c_try_link "$LINENO"; then :
13131  ac_cv_var_tzname=yes
13132else
13133  ac_cv_var_tzname=no
13134fi
13135rm -f core conftest.err conftest.$ac_objext \
13136    conftest$ac_exeext conftest.$ac_ext
13137fi
13138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13139$as_echo "$ac_cv_var_tzname" >&6; }
13140  if test $ac_cv_var_tzname = yes; then
13141
13142$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13143
13144  fi
13145
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13147$as_echo_n "checking for tm_isdst in struct tm... " >&6; }
13148if ${ac_cv_struct_tm_isdst+:} false; then :
13149  $as_echo_n "(cached) " >&6
13150else
13151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152/* end confdefs.h.  */
13153#include <sys/types.h>
13154#include <$ac_cv_struct_tm>
13155int
13156main ()
13157{
13158struct tm tm; tm.tm_isdst;
13159  ;
13160  return 0;
13161}
13162_ACEOF
13163if ac_fn_c_try_compile "$LINENO"; then :
13164  ac_cv_struct_tm_isdst=yes
13165else
13166  ac_cv_struct_tm_isdst=no
13167fi
13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169fi
13170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
13171$as_echo "$ac_cv_struct_tm_isdst" >&6; }
13172if test "$ac_cv_struct_tm_isdst" = yes; then
13173
13174$as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
13175
13176fi
13177
13178
13179ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
13180"
13181if test "x$ac_cv_have_decl_daylight" = xyes; then :
13182  ac_have_decl=1
13183else
13184  ac_have_decl=0
13185fi
13186
13187cat >>confdefs.h <<_ACEOF
13188#define HAVE_DECL_DAYLIGHT $ac_have_decl
13189_ACEOF
13190
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
13192$as_echo_n "checking for daylight... " >&6; }
13193if ${ac_cv_var_daylight+:} false; then :
13194  $as_echo_n "(cached) " >&6
13195else
13196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197/* end confdefs.h.  */
13198#include <time.h>
13199#if !HAVE_DECL_DAYLIGHT
13200extern int daylight;
13201#endif
13202int
13203main ()
13204{
13205atoi(daylight);
13206  ;
13207  return 0;
13208}
13209_ACEOF
13210if ac_fn_c_try_link "$LINENO"; then :
13211  ac_cv_var_daylight=yes
13212else
13213  ac_cv_var_daylight=no
13214fi
13215rm -f core conftest.err conftest.$ac_objext \
13216    conftest$ac_exeext conftest.$ac_ext
13217fi
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
13219$as_echo "$ac_cv_var_daylight" >&6; }
13220  if test $ac_cv_var_daylight = yes; then
13221
13222$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13223
13224  fi
13225
13226# Check whether --enable-largefile was given.
13227if test "${enable_largefile+set}" = set; then :
13228  enableval=$enable_largefile;
13229fi
13230
13231if test "$enable_largefile" != no; then
13232
13233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13234$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13235if ${ac_cv_sys_largefile_CC+:} false; then :
13236  $as_echo_n "(cached) " >&6
13237else
13238  ac_cv_sys_largefile_CC=no
13239     if test "$GCC" != yes; then
13240       ac_save_CC=$CC
13241       while :; do
13242	 # IRIX 6.2 and later do not support large files by default,
13243	 # so use the C compiler's -n32 option if that helps.
13244	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245/* end confdefs.h.  */
13246#include <sys/types.h>
13247 /* Check that off_t can represent 2**63 - 1 correctly.
13248    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13249    since some C++ compilers masquerading as C compilers
13250    incorrectly reject 9223372036854775807.  */
13251#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13252  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13253		       && LARGE_OFF_T % 2147483647 == 1)
13254		      ? 1 : -1];
13255int
13256main ()
13257{
13258
13259  ;
13260  return 0;
13261}
13262_ACEOF
13263	 if ac_fn_c_try_compile "$LINENO"; then :
13264  break
13265fi
13266rm -f core conftest.err conftest.$ac_objext
13267	 CC="$CC -n32"
13268	 if ac_fn_c_try_compile "$LINENO"; then :
13269  ac_cv_sys_largefile_CC=' -n32'; break
13270fi
13271rm -f core conftest.err conftest.$ac_objext
13272	 break
13273       done
13274       CC=$ac_save_CC
13275       rm -f conftest.$ac_ext
13276    fi
13277fi
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13279$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13280  if test "$ac_cv_sys_largefile_CC" != no; then
13281    CC=$CC$ac_cv_sys_largefile_CC
13282  fi
13283
13284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13285$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13286if ${ac_cv_sys_file_offset_bits+:} false; then :
13287  $as_echo_n "(cached) " >&6
13288else
13289  while :; do
13290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291/* end confdefs.h.  */
13292#include <sys/types.h>
13293 /* Check that off_t can represent 2**63 - 1 correctly.
13294    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13295    since some C++ compilers masquerading as C compilers
13296    incorrectly reject 9223372036854775807.  */
13297#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13298  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13299		       && LARGE_OFF_T % 2147483647 == 1)
13300		      ? 1 : -1];
13301int
13302main ()
13303{
13304
13305  ;
13306  return 0;
13307}
13308_ACEOF
13309if ac_fn_c_try_compile "$LINENO"; then :
13310  ac_cv_sys_file_offset_bits=no; break
13311fi
13312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314/* end confdefs.h.  */
13315#define _FILE_OFFSET_BITS 64
13316#include <sys/types.h>
13317 /* Check that off_t can represent 2**63 - 1 correctly.
13318    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13319    since some C++ compilers masquerading as C compilers
13320    incorrectly reject 9223372036854775807.  */
13321#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13322  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13323		       && LARGE_OFF_T % 2147483647 == 1)
13324		      ? 1 : -1];
13325int
13326main ()
13327{
13328
13329  ;
13330  return 0;
13331}
13332_ACEOF
13333if ac_fn_c_try_compile "$LINENO"; then :
13334  ac_cv_sys_file_offset_bits=64; break
13335fi
13336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337  ac_cv_sys_file_offset_bits=unknown
13338  break
13339done
13340fi
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13342$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13343case $ac_cv_sys_file_offset_bits in #(
13344  no | unknown) ;;
13345  *)
13346cat >>confdefs.h <<_ACEOF
13347#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13348_ACEOF
13349;;
13350esac
13351rm -rf conftest*
13352  if test $ac_cv_sys_file_offset_bits = unknown; then
13353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13354$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13355if ${ac_cv_sys_large_files+:} false; then :
13356  $as_echo_n "(cached) " >&6
13357else
13358  while :; do
13359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360/* end confdefs.h.  */
13361#include <sys/types.h>
13362 /* Check that off_t can represent 2**63 - 1 correctly.
13363    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13364    since some C++ compilers masquerading as C compilers
13365    incorrectly reject 9223372036854775807.  */
13366#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13367  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13368		       && LARGE_OFF_T % 2147483647 == 1)
13369		      ? 1 : -1];
13370int
13371main ()
13372{
13373
13374  ;
13375  return 0;
13376}
13377_ACEOF
13378if ac_fn_c_try_compile "$LINENO"; then :
13379  ac_cv_sys_large_files=no; break
13380fi
13381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383/* end confdefs.h.  */
13384#define _LARGE_FILES 1
13385#include <sys/types.h>
13386 /* Check that off_t can represent 2**63 - 1 correctly.
13387    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13388    since some C++ compilers masquerading as C compilers
13389    incorrectly reject 9223372036854775807.  */
13390#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13391  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13392		       && LARGE_OFF_T % 2147483647 == 1)
13393		      ? 1 : -1];
13394int
13395main ()
13396{
13397
13398  ;
13399  return 0;
13400}
13401_ACEOF
13402if ac_fn_c_try_compile "$LINENO"; then :
13403  ac_cv_sys_large_files=1; break
13404fi
13405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406  ac_cv_sys_large_files=unknown
13407  break
13408done
13409fi
13410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13411$as_echo "$ac_cv_sys_large_files" >&6; }
13412case $ac_cv_sys_large_files in #(
13413  no | unknown) ;;
13414  *)
13415cat >>confdefs.h <<_ACEOF
13416#define _LARGE_FILES $ac_cv_sys_large_files
13417_ACEOF
13418;;
13419esac
13420rm -rf conftest*
13421  fi
13422
13423
13424fi
13425
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13427$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13428if ${ac_cv_sys_largefile_source+:} false; then :
13429  $as_echo_n "(cached) " >&6
13430else
13431  while :; do
13432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433/* end confdefs.h.  */
13434#include <sys/types.h> /* for off_t */
13435     #include <stdio.h>
13436int
13437main ()
13438{
13439int (*fp) (FILE *, off_t, int) = fseeko;
13440     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13441  ;
13442  return 0;
13443}
13444_ACEOF
13445if ac_fn_c_try_link "$LINENO"; then :
13446  ac_cv_sys_largefile_source=no; break
13447fi
13448rm -f core conftest.err conftest.$ac_objext \
13449    conftest$ac_exeext conftest.$ac_ext
13450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451/* end confdefs.h.  */
13452#define _LARGEFILE_SOURCE 1
13453#include <sys/types.h> /* for off_t */
13454     #include <stdio.h>
13455int
13456main ()
13457{
13458int (*fp) (FILE *, off_t, int) = fseeko;
13459     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13460  ;
13461  return 0;
13462}
13463_ACEOF
13464if ac_fn_c_try_link "$LINENO"; then :
13465  ac_cv_sys_largefile_source=1; break
13466fi
13467rm -f core conftest.err conftest.$ac_objext \
13468    conftest$ac_exeext conftest.$ac_ext
13469  ac_cv_sys_largefile_source=unknown
13470  break
13471done
13472fi
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13474$as_echo "$ac_cv_sys_largefile_source" >&6; }
13475case $ac_cv_sys_largefile_source in #(
13476  no | unknown) ;;
13477  *)
13478cat >>confdefs.h <<_ACEOF
13479#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13480_ACEOF
13481;;
13482esac
13483rm -rf conftest*
13484
13485# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13486# in glibc 2.1.3, but that breaks too many other things.
13487# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13488if test $ac_cv_sys_largefile_source != unknown; then
13489
13490$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13491
13492fi
13493
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13495$as_echo_n "checking for mbstate_t... " >&6; }
13496if ${ac_cv_type_mbstate_t+:} false; then :
13497  $as_echo_n "(cached) " >&6
13498else
13499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500/* end confdefs.h.  */
13501$ac_includes_default
13502#	    include <wchar.h>
13503int
13504main ()
13505{
13506mbstate_t x; return sizeof x;
13507  ;
13508  return 0;
13509}
13510_ACEOF
13511if ac_fn_c_try_compile "$LINENO"; then :
13512  ac_cv_type_mbstate_t=yes
13513else
13514  ac_cv_type_mbstate_t=no
13515fi
13516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517fi
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13519$as_echo "$ac_cv_type_mbstate_t" >&6; }
13520   if test $ac_cv_type_mbstate_t = yes; then
13521
13522$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13523
13524   else
13525
13526$as_echo "#define mbstate_t int" >>confdefs.h
13527
13528   fi
13529
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
13531$as_echo_n "checking for struct option in getopt... " >&6; }
13532if ${ac_cv_struct_option_getopt_h+:} false; then :
13533  $as_echo_n "(cached) " >&6
13534else
13535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536/* end confdefs.h.  */
13537#include <getopt.h>
13538int
13539main ()
13540{
13541struct option op; op.name;
13542  ;
13543  return 0;
13544}
13545_ACEOF
13546if ac_fn_c_try_compile "$LINENO"; then :
13547  ac_cv_struct_option_getopt_h=yes
13548else
13549  ac_cv_struct_option_getopt_h=no
13550fi
13551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552fi
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
13554$as_echo "$ac_cv_struct_option_getopt_h" >&6; }
13555if test "$ac_cv_struct_option_getopt_h" = yes; then
13556
13557$as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
13558
13559fi
13560
13561ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13562if test "x$ac_cv_type_pid_t" = xyes; then :
13563
13564else
13565
13566cat >>confdefs.h <<_ACEOF
13567#define pid_t int
13568_ACEOF
13569
13570fi
13571
13572ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13573case $ac_cv_c_uint8_t in #(
13574  no|yes) ;; #(
13575  *)
13576
13577$as_echo "#define _UINT8_T 1" >>confdefs.h
13578
13579
13580cat >>confdefs.h <<_ACEOF
13581#define uint8_t $ac_cv_c_uint8_t
13582_ACEOF
13583;;
13584  esac
13585
13586ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13587case $ac_cv_c_uint16_t in #(
13588  no|yes) ;; #(
13589  *)
13590
13591
13592cat >>confdefs.h <<_ACEOF
13593#define uint16_t $ac_cv_c_uint16_t
13594_ACEOF
13595;;
13596  esac
13597
13598ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13599case $ac_cv_c_uint32_t in #(
13600  no|yes) ;; #(
13601  *)
13602
13603$as_echo "#define _UINT32_T 1" >>confdefs.h
13604
13605
13606cat >>confdefs.h <<_ACEOF
13607#define uint32_t $ac_cv_c_uint32_t
13608_ACEOF
13609;;
13610  esac
13611
13612ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13613case $ac_cv_c_int32_t in #(
13614  no|yes) ;; #(
13615  *)
13616
13617cat >>confdefs.h <<_ACEOF
13618#define int32_t $ac_cv_c_int32_t
13619_ACEOF
13620;;
13621esac
13622
13623ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13624case $ac_cv_c_uint64_t in #(
13625  no|yes) ;; #(
13626  *)
13627
13628$as_echo "#define _UINT64_T 1" >>confdefs.h
13629
13630
13631cat >>confdefs.h <<_ACEOF
13632#define uint64_t $ac_cv_c_uint64_t
13633_ACEOF
13634;;
13635  esac
13636
13637ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13638case $ac_cv_c_int64_t in #(
13639  no|yes) ;; #(
13640  *)
13641
13642cat >>confdefs.h <<_ACEOF
13643#define int64_t $ac_cv_c_int64_t
13644_ACEOF
13645;;
13646esac
13647
13648
13649  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13650if test "x$ac_cv_type_intptr_t" = xyes; then :
13651
13652$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13653
13654else
13655  for ac_type in 'int' 'long int' 'long long int'; do
13656       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657/* end confdefs.h.  */
13658$ac_includes_default
13659int
13660main ()
13661{
13662static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13663test_array [0] = 0;
13664return test_array [0];
13665
13666  ;
13667  return 0;
13668}
13669_ACEOF
13670if ac_fn_c_try_compile "$LINENO"; then :
13671
13672cat >>confdefs.h <<_ACEOF
13673#define intptr_t $ac_type
13674_ACEOF
13675
13676	  ac_type=
13677fi
13678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679       test -z "$ac_type" && break
13680     done
13681fi
13682
13683
13684
13685  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13686if test "x$ac_cv_type_uintptr_t" = xyes; then :
13687
13688$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13689
13690else
13691  for ac_type in 'unsigned int' 'unsigned long int' \
13692	'unsigned long long int'; do
13693       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694/* end confdefs.h.  */
13695$ac_includes_default
13696int
13697main ()
13698{
13699static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13700test_array [0] = 0;
13701return test_array [0];
13702
13703  ;
13704  return 0;
13705}
13706_ACEOF
13707if ac_fn_c_try_compile "$LINENO"; then :
13708
13709cat >>confdefs.h <<_ACEOF
13710#define uintptr_t $ac_type
13711_ACEOF
13712
13713	  ac_type=
13714fi
13715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716       test -z "$ac_type" && break
13717     done
13718fi
13719
13720
13721
13722
13723
13724  for ac_header in $ac_header_list
13725do :
13726  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13727ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13728"
13729if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13730  cat >>confdefs.h <<_ACEOF
13731#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13732_ACEOF
13733
13734fi
13735
13736done
13737
13738
13739
13740
13741
13742
13743
13744
13745for ac_func in getpagesize
13746do :
13747  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13748if test "x$ac_cv_func_getpagesize" = xyes; then :
13749  cat >>confdefs.h <<_ACEOF
13750#define HAVE_GETPAGESIZE 1
13751_ACEOF
13752
13753fi
13754done
13755
13756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13757$as_echo_n "checking for working mmap... " >&6; }
13758if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13759  $as_echo_n "(cached) " >&6
13760else
13761  if test "$cross_compiling" = yes; then :
13762  ac_cv_func_mmap_fixed_mapped=no
13763else
13764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765/* end confdefs.h.  */
13766$ac_includes_default
13767/* malloc might have been renamed as rpl_malloc. */
13768#undef malloc
13769
13770/* Thanks to Mike Haertel and Jim Avera for this test.
13771   Here is a matrix of mmap possibilities:
13772	mmap private not fixed
13773	mmap private fixed at somewhere currently unmapped
13774	mmap private fixed at somewhere already mapped
13775	mmap shared not fixed
13776	mmap shared fixed at somewhere currently unmapped
13777	mmap shared fixed at somewhere already mapped
13778   For private mappings, we should verify that changes cannot be read()
13779   back from the file, nor mmap's back from the file at a different
13780   address.  (There have been systems where private was not correctly
13781   implemented like the infamous i386 svr4.0, and systems where the
13782   VM page cache was not coherent with the file system buffer cache
13783   like early versions of FreeBSD and possibly contemporary NetBSD.)
13784   For shared mappings, we should conversely verify that changes get
13785   propagated back to all the places they're supposed to be.
13786
13787   Grep wants private fixed already mapped.
13788   The main things grep needs to know about mmap are:
13789   * does it exist and is it safe to write into the mmap'd area
13790   * how to use it (BSD variants)  */
13791
13792#include <fcntl.h>
13793#include <sys/mman.h>
13794
13795#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13796char *malloc ();
13797#endif
13798
13799/* This mess was copied from the GNU getpagesize.h.  */
13800#ifndef HAVE_GETPAGESIZE
13801# ifdef _SC_PAGESIZE
13802#  define getpagesize() sysconf(_SC_PAGESIZE)
13803# else /* no _SC_PAGESIZE */
13804#  ifdef HAVE_SYS_PARAM_H
13805#   include <sys/param.h>
13806#   ifdef EXEC_PAGESIZE
13807#    define getpagesize() EXEC_PAGESIZE
13808#   else /* no EXEC_PAGESIZE */
13809#    ifdef NBPG
13810#     define getpagesize() NBPG * CLSIZE
13811#     ifndef CLSIZE
13812#      define CLSIZE 1
13813#     endif /* no CLSIZE */
13814#    else /* no NBPG */
13815#     ifdef NBPC
13816#      define getpagesize() NBPC
13817#     else /* no NBPC */
13818#      ifdef PAGESIZE
13819#       define getpagesize() PAGESIZE
13820#      endif /* PAGESIZE */
13821#     endif /* no NBPC */
13822#    endif /* no NBPG */
13823#   endif /* no EXEC_PAGESIZE */
13824#  else /* no HAVE_SYS_PARAM_H */
13825#   define getpagesize() 8192	/* punt totally */
13826#  endif /* no HAVE_SYS_PARAM_H */
13827# endif /* no _SC_PAGESIZE */
13828
13829#endif /* no HAVE_GETPAGESIZE */
13830
13831int
13832main ()
13833{
13834  char *data, *data2, *data3;
13835  const char *cdata2;
13836  int i, pagesize;
13837  int fd, fd2;
13838
13839  pagesize = getpagesize ();
13840
13841  /* First, make a file with some known garbage in it. */
13842  data = (char *) malloc (pagesize);
13843  if (!data)
13844    return 1;
13845  for (i = 0; i < pagesize; ++i)
13846    *(data + i) = rand ();
13847  umask (0);
13848  fd = creat ("conftest.mmap", 0600);
13849  if (fd < 0)
13850    return 2;
13851  if (write (fd, data, pagesize) != pagesize)
13852    return 3;
13853  close (fd);
13854
13855  /* Next, check that the tail of a page is zero-filled.  File must have
13856     non-zero length, otherwise we risk SIGBUS for entire page.  */
13857  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13858  if (fd2 < 0)
13859    return 4;
13860  cdata2 = "";
13861  if (write (fd2, cdata2, 1) != 1)
13862    return 5;
13863  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13864  if (data2 == MAP_FAILED)
13865    return 6;
13866  for (i = 0; i < pagesize; ++i)
13867    if (*(data2 + i))
13868      return 7;
13869  close (fd2);
13870  if (munmap (data2, pagesize))
13871    return 8;
13872
13873  /* Next, try to mmap the file at a fixed address which already has
13874     something else allocated at it.  If we can, also make sure that
13875     we see the same garbage.  */
13876  fd = open ("conftest.mmap", O_RDWR);
13877  if (fd < 0)
13878    return 9;
13879  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13880		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
13881    return 10;
13882  for (i = 0; i < pagesize; ++i)
13883    if (*(data + i) != *(data2 + i))
13884      return 11;
13885
13886  /* Finally, make sure that changes to the mapped area do not
13887     percolate back to the file as seen by read().  (This is a bug on
13888     some variants of i386 svr4.0.)  */
13889  for (i = 0; i < pagesize; ++i)
13890    *(data2 + i) = *(data2 + i) + 1;
13891  data3 = (char *) malloc (pagesize);
13892  if (!data3)
13893    return 12;
13894  if (read (fd, data3, pagesize) != pagesize)
13895    return 13;
13896  for (i = 0; i < pagesize; ++i)
13897    if (*(data + i) != *(data3 + i))
13898      return 14;
13899  close (fd);
13900  return 0;
13901}
13902_ACEOF
13903if ac_fn_c_try_run "$LINENO"; then :
13904  ac_cv_func_mmap_fixed_mapped=yes
13905else
13906  ac_cv_func_mmap_fixed_mapped=no
13907fi
13908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13909  conftest.$ac_objext conftest.beam conftest.$ac_ext
13910fi
13911
13912fi
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13914$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13915if test $ac_cv_func_mmap_fixed_mapped = yes; then
13916
13917$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13918
13919fi
13920rm -f conftest.mmap conftest.txt
13921
13922for ac_header in vfork.h
13923do :
13924  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13925if test "x$ac_cv_header_vfork_h" = xyes; then :
13926  cat >>confdefs.h <<_ACEOF
13927#define HAVE_VFORK_H 1
13928_ACEOF
13929
13930fi
13931
13932done
13933
13934for ac_func in fork vfork
13935do :
13936  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13937ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13938if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13939  cat >>confdefs.h <<_ACEOF
13940#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13941_ACEOF
13942
13943fi
13944done
13945
13946if test "x$ac_cv_func_fork" = xyes; then
13947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13948$as_echo_n "checking for working fork... " >&6; }
13949if ${ac_cv_func_fork_works+:} false; then :
13950  $as_echo_n "(cached) " >&6
13951else
13952  if test "$cross_compiling" = yes; then :
13953  ac_cv_func_fork_works=cross
13954else
13955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956/* end confdefs.h.  */
13957$ac_includes_default
13958int
13959main ()
13960{
13961
13962	  /* By Ruediger Kuhlmann. */
13963	  return fork () < 0;
13964
13965  ;
13966  return 0;
13967}
13968_ACEOF
13969if ac_fn_c_try_run "$LINENO"; then :
13970  ac_cv_func_fork_works=yes
13971else
13972  ac_cv_func_fork_works=no
13973fi
13974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13975  conftest.$ac_objext conftest.beam conftest.$ac_ext
13976fi
13977
13978fi
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13980$as_echo "$ac_cv_func_fork_works" >&6; }
13981
13982else
13983  ac_cv_func_fork_works=$ac_cv_func_fork
13984fi
13985if test "x$ac_cv_func_fork_works" = xcross; then
13986  case $host in
13987    *-*-amigaos* | *-*-msdosdjgpp*)
13988      # Override, as these systems have only a dummy fork() stub
13989      ac_cv_func_fork_works=no
13990      ;;
13991    *)
13992      ac_cv_func_fork_works=yes
13993      ;;
13994  esac
13995  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13996$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13997fi
13998ac_cv_func_vfork_works=$ac_cv_func_vfork
13999if test "x$ac_cv_func_vfork" = xyes; then
14000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14001$as_echo_n "checking for working vfork... " >&6; }
14002if ${ac_cv_func_vfork_works+:} false; then :
14003  $as_echo_n "(cached) " >&6
14004else
14005  if test "$cross_compiling" = yes; then :
14006  ac_cv_func_vfork_works=cross
14007else
14008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009/* end confdefs.h.  */
14010/* Thanks to Paul Eggert for this test.  */
14011$ac_includes_default
14012#include <sys/wait.h>
14013#ifdef HAVE_VFORK_H
14014# include <vfork.h>
14015#endif
14016/* On some sparc systems, changes by the child to local and incoming
14017   argument registers are propagated back to the parent.  The compiler
14018   is told about this with #include <vfork.h>, but some compilers
14019   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14020   static variable whose address is put into a register that is
14021   clobbered by the vfork.  */
14022static void
14023#ifdef __cplusplus
14024sparc_address_test (int arg)
14025# else
14026sparc_address_test (arg) int arg;
14027#endif
14028{
14029  static pid_t child;
14030  if (!child) {
14031    child = vfork ();
14032    if (child < 0) {
14033      perror ("vfork");
14034      _exit(2);
14035    }
14036    if (!child) {
14037      arg = getpid();
14038      write(-1, "", 0);
14039      _exit (arg);
14040    }
14041  }
14042}
14043
14044int
14045main ()
14046{
14047  pid_t parent = getpid ();
14048  pid_t child;
14049
14050  sparc_address_test (0);
14051
14052  child = vfork ();
14053
14054  if (child == 0) {
14055    /* Here is another test for sparc vfork register problems.  This
14056       test uses lots of local variables, at least as many local
14057       variables as main has allocated so far including compiler
14058       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14059       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14060       reuse the register of parent for one of the local variables,
14061       since it will think that parent can't possibly be used any more
14062       in this routine.  Assigning to the local variable will thus
14063       munge parent in the parent process.  */
14064    pid_t
14065      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14066      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14067    /* Convince the compiler that p..p7 are live; otherwise, it might
14068       use the same hardware register for all 8 local variables.  */
14069    if (p != p1 || p != p2 || p != p3 || p != p4
14070	|| p != p5 || p != p6 || p != p7)
14071      _exit(1);
14072
14073    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14074       from child file descriptors.  If the child closes a descriptor
14075       before it execs or exits, this munges the parent's descriptor
14076       as well.  Test for this by closing stdout in the child.  */
14077    _exit(close(fileno(stdout)) != 0);
14078  } else {
14079    int status;
14080    struct stat st;
14081
14082    while (wait(&status) != child)
14083      ;
14084    return (
14085	 /* Was there some problem with vforking?  */
14086	 child < 0
14087
14088	 /* Did the child fail?  (This shouldn't happen.)  */
14089	 || status
14090
14091	 /* Did the vfork/compiler bug occur?  */
14092	 || parent != getpid()
14093
14094	 /* Did the file descriptor bug occur?  */
14095	 || fstat(fileno(stdout), &st) != 0
14096	 );
14097  }
14098}
14099_ACEOF
14100if ac_fn_c_try_run "$LINENO"; then :
14101  ac_cv_func_vfork_works=yes
14102else
14103  ac_cv_func_vfork_works=no
14104fi
14105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14106  conftest.$ac_objext conftest.beam conftest.$ac_ext
14107fi
14108
14109fi
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14111$as_echo "$ac_cv_func_vfork_works" >&6; }
14112
14113fi;
14114if test "x$ac_cv_func_fork_works" = xcross; then
14115  ac_cv_func_vfork_works=$ac_cv_func_vfork
14116  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14117$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14118fi
14119
14120if test "x$ac_cv_func_vfork_works" = xyes; then
14121
14122$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14123
14124else
14125
14126$as_echo "#define vfork fork" >>confdefs.h
14127
14128fi
14129if test "x$ac_cv_func_fork_works" = xyes; then
14130
14131$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14132
14133fi
14134
14135
14136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14137$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14138if ${ac_cv_func_mbrtowc+:} false; then :
14139  $as_echo_n "(cached) " >&6
14140else
14141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142/* end confdefs.h.  */
14143#include <wchar.h>
14144int
14145main ()
14146{
14147wchar_t wc;
14148	      char const s[] = "";
14149	      size_t n = 1;
14150	      mbstate_t state;
14151	      return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14152  ;
14153  return 0;
14154}
14155_ACEOF
14156if ac_fn_c_try_link "$LINENO"; then :
14157  ac_cv_func_mbrtowc=yes
14158else
14159  ac_cv_func_mbrtowc=no
14160fi
14161rm -f core conftest.err conftest.$ac_objext \
14162    conftest$ac_exeext conftest.$ac_ext
14163fi
14164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14165$as_echo "$ac_cv_func_mbrtowc" >&6; }
14166  if test $ac_cv_func_mbrtowc = yes; then
14167
14168$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
14169
14170  fi
14171
14172
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
14174$as_echo_n "checking for gcc compiler warnings... " >&6; }
14175# Check whether --enable-warnings was given.
14176if test "${enable_warnings+set}" = set; then :
14177  enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179$as_echo "no" >&6; }
14180   WARNINGS=
14181else
14182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14183$as_echo "yes" >&6; }
14184   WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14185       -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14186       -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14187       -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14188fi
14189else
14190
14191if test "$GCC" = yes; then
14192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14193$as_echo "yes" >&6; }
14194   WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14195       -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14196       -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14197       -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14198else
14199   WARNINGS=
14200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201$as_echo "no" >&6; }
14202fi
14203fi
14204
14205
14206for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale
14207do :
14208  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14209ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14210if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14211  cat >>confdefs.h <<_ACEOF
14212#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14213_ACEOF
14214
14215fi
14216done
14217
14218
14219ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14220if test "x$ac_cv_func_getopt_long" = xyes; then :
14221  $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14222
14223else
14224  case " $LIBOBJS " in
14225  *" getopt_long.$ac_objext "* ) ;;
14226  *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
14227 ;;
14228esac
14229
14230fi
14231
14232ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14233if test "x$ac_cv_func_asprintf" = xyes; then :
14234  $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
14235
14236else
14237  case " $LIBOBJS " in
14238  *" asprintf.$ac_objext "* ) ;;
14239  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
14240 ;;
14241esac
14242
14243fi
14244
14245ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14246if test "x$ac_cv_func_vasprintf" = xyes; then :
14247  $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14248
14249else
14250  case " $LIBOBJS " in
14251  *" vasprintf.$ac_objext "* ) ;;
14252  *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14253 ;;
14254esac
14255
14256fi
14257
14258ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14259if test "x$ac_cv_func_strlcpy" = xyes; then :
14260  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14261
14262else
14263  case " $LIBOBJS " in
14264  *" strlcpy.$ac_objext "* ) ;;
14265  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14266 ;;
14267esac
14268
14269fi
14270
14271ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
14272if test "x$ac_cv_func_strlcat" = xyes; then :
14273  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
14274
14275else
14276  case " $LIBOBJS " in
14277  *" strlcat.$ac_objext "* ) ;;
14278  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
14279 ;;
14280esac
14281
14282fi
14283
14284ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14285if test "x$ac_cv_func_getline" = xyes; then :
14286  $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
14287
14288else
14289  case " $LIBOBJS " in
14290  *" getline.$ac_objext "* ) ;;
14291  *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14292 ;;
14293esac
14294
14295fi
14296
14297ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
14298if test "x$ac_cv_func_ctime_r" = xyes; then :
14299  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
14300
14301else
14302  case " $LIBOBJS " in
14303  *" ctime_r.$ac_objext "* ) ;;
14304  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
14305 ;;
14306esac
14307
14308fi
14309
14310ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14311if test "x$ac_cv_func_asctime_r" = xyes; then :
14312  $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
14313
14314else
14315  case " $LIBOBJS " in
14316  *" asctime_r.$ac_objext "* ) ;;
14317  *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
14318 ;;
14319esac
14320
14321fi
14322
14323ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14324if test "x$ac_cv_func_localtime_r" = xyes; then :
14325  $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
14326
14327else
14328  case " $LIBOBJS " in
14329  *" localtime_r.$ac_objext "* ) ;;
14330  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
14331 ;;
14332esac
14333
14334fi
14335
14336ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
14337if test "x$ac_cv_func_gmtime_r" = xyes; then :
14338  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
14339
14340else
14341  case " $LIBOBJS " in
14342  *" gmtime_r.$ac_objext "* ) ;;
14343  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
14344 ;;
14345esac
14346
14347fi
14348
14349ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14350if test "x$ac_cv_func_pread" = xyes; then :
14351  $as_echo "#define HAVE_PREAD 1" >>confdefs.h
14352
14353else
14354  case " $LIBOBJS " in
14355  *" pread.$ac_objext "* ) ;;
14356  *) LIBOBJS="$LIBOBJS pread.$ac_objext"
14357 ;;
14358esac
14359
14360fi
14361
14362ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14363if test "x$ac_cv_func_strcasestr" = xyes; then :
14364  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14365
14366else
14367  case " $LIBOBJS " in
14368  *" strcasestr.$ac_objext "* ) ;;
14369  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14370 ;;
14371esac
14372
14373fi
14374
14375ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
14376if test "x$ac_cv_func_fmtcheck" = xyes; then :
14377  $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
14378
14379else
14380  case " $LIBOBJS " in
14381  *" fmtcheck.$ac_objext "* ) ;;
14382  *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
14383 ;;
14384esac
14385
14386fi
14387
14388ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14389if test "x$ac_cv_func_dprintf" = xyes; then :
14390  $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
14391
14392else
14393  case " $LIBOBJS " in
14394  *" dprintf.$ac_objext "* ) ;;
14395  *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
14396 ;;
14397esac
14398
14399fi
14400
14401
14402
14403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14404$as_echo_n "checking for gzopen in -lz... " >&6; }
14405if ${ac_cv_lib_z_gzopen+:} false; then :
14406  $as_echo_n "(cached) " >&6
14407else
14408  ac_check_lib_save_LIBS=$LIBS
14409LIBS="-lz  $LIBS"
14410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411/* end confdefs.h.  */
14412
14413/* Override any GCC internal prototype to avoid an error.
14414   Use char because int might match the return type of a GCC
14415   builtin and then its argument prototype would still apply.  */
14416#ifdef __cplusplus
14417extern "C"
14418#endif
14419char gzopen ();
14420int
14421main ()
14422{
14423return gzopen ();
14424  ;
14425  return 0;
14426}
14427_ACEOF
14428if ac_fn_c_try_link "$LINENO"; then :
14429  ac_cv_lib_z_gzopen=yes
14430else
14431  ac_cv_lib_z_gzopen=no
14432fi
14433rm -f core conftest.err conftest.$ac_objext \
14434    conftest$ac_exeext conftest.$ac_ext
14435LIBS=$ac_check_lib_save_LIBS
14436fi
14437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14438$as_echo "$ac_cv_lib_z_gzopen" >&6; }
14439if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14440  cat >>confdefs.h <<_ACEOF
14441#define HAVE_LIBZ 1
14442_ACEOF
14443
14444  LIBS="-lz $LIBS"
14445
14446fi
14447
14448if test "$MINGW" = 1; then
14449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
14450$as_echo_n "checking for regexec in -lgnurx... " >&6; }
14451if ${ac_cv_lib_gnurx_regexec+:} false; then :
14452  $as_echo_n "(cached) " >&6
14453else
14454  ac_check_lib_save_LIBS=$LIBS
14455LIBS="-lgnurx  $LIBS"
14456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457/* end confdefs.h.  */
14458
14459/* Override any GCC internal prototype to avoid an error.
14460   Use char because int might match the return type of a GCC
14461   builtin and then its argument prototype would still apply.  */
14462#ifdef __cplusplus
14463extern "C"
14464#endif
14465char regexec ();
14466int
14467main ()
14468{
14469return regexec ();
14470  ;
14471  return 0;
14472}
14473_ACEOF
14474if ac_fn_c_try_link "$LINENO"; then :
14475  ac_cv_lib_gnurx_regexec=yes
14476else
14477  ac_cv_lib_gnurx_regexec=no
14478fi
14479rm -f core conftest.err conftest.$ac_objext \
14480    conftest$ac_exeext conftest.$ac_ext
14481LIBS=$ac_check_lib_save_LIBS
14482fi
14483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
14484$as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
14485if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
14486  cat >>confdefs.h <<_ACEOF
14487#define HAVE_LIBGNURX 1
14488_ACEOF
14489
14490  LIBS="-lgnurx $LIBS"
14491
14492else
14493  as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
14494fi
14495
14496fi
14497
14498 if test "$cross_compiling" = yes; then
14499  IS_CROSS_COMPILE_TRUE=
14500  IS_CROSS_COMPILE_FALSE='#'
14501else
14502  IS_CROSS_COMPILE_TRUE='#'
14503  IS_CROSS_COMPILE_FALSE=
14504fi
14505
14506
14507ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
14508
14509cat >confcache <<\_ACEOF
14510# This file is a shell script that caches the results of configure
14511# tests run on this system so they can be shared between configure
14512# scripts and configure runs, see configure's option --config-cache.
14513# It is not useful on other systems.  If it contains results you don't
14514# want to keep, you may remove or edit it.
14515#
14516# config.status only pays attention to the cache file if you give it
14517# the --recheck option to rerun configure.
14518#
14519# `ac_cv_env_foo' variables (set or unset) will be overridden when
14520# loading this file, other *unset* `ac_cv_foo' will be assigned the
14521# following values.
14522
14523_ACEOF
14524
14525# The following way of writing the cache mishandles newlines in values,
14526# but we know of no workaround that is simple, portable, and efficient.
14527# So, we kill variables containing newlines.
14528# Ultrix sh set writes to stderr and can't be redirected directly,
14529# and sets the high bit in the cache file unless we assign to the vars.
14530(
14531  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14532    eval ac_val=\$$ac_var
14533    case $ac_val in #(
14534    *${as_nl}*)
14535      case $ac_var in #(
14536      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14537$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14538      esac
14539      case $ac_var in #(
14540      _ | IFS | as_nl) ;; #(
14541      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14542      *) { eval $ac_var=; unset $ac_var;} ;;
14543      esac ;;
14544    esac
14545  done
14546
14547  (set) 2>&1 |
14548    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14549    *${as_nl}ac_space=\ *)
14550      # `set' does not quote correctly, so add quotes: double-quote
14551      # substitution turns \\\\ into \\, and sed turns \\ into \.
14552      sed -n \
14553	"s/'/'\\\\''/g;
14554	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14555      ;; #(
14556    *)
14557      # `set' quotes correctly as required by POSIX, so do not add quotes.
14558      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14559      ;;
14560    esac |
14561    sort
14562) |
14563  sed '
14564     /^ac_cv_env_/b end
14565     t clear
14566     :clear
14567     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14568     t end
14569     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14570     :end' >>confcache
14571if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14572  if test -w "$cache_file"; then
14573    if test "x$cache_file" != "x/dev/null"; then
14574      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14575$as_echo "$as_me: updating cache $cache_file" >&6;}
14576      if test ! -f "$cache_file" || test -h "$cache_file"; then
14577	cat confcache >"$cache_file"
14578      else
14579        case $cache_file in #(
14580        */* | ?:*)
14581	  mv -f confcache "$cache_file"$$ &&
14582	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14583        *)
14584	  mv -f confcache "$cache_file" ;;
14585	esac
14586      fi
14587    fi
14588  else
14589    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14590$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14591  fi
14592fi
14593rm -f confcache
14594
14595test "x$prefix" = xNONE && prefix=$ac_default_prefix
14596# Let make expand exec_prefix.
14597test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14598
14599DEFS=-DHAVE_CONFIG_H
14600
14601ac_libobjs=
14602ac_ltlibobjs=
14603U=
14604for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14605  # 1. Remove the extension, and $U if already installed.
14606  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14607  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14608  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14609  #    will be set to the directory where LIBOBJS objects are built.
14610  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14611  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14612done
14613LIBOBJS=$ac_libobjs
14614
14615LTLIBOBJS=$ac_ltlibobjs
14616
14617
14618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14619$as_echo_n "checking that generated files are newer than configure... " >&6; }
14620   if test -n "$am_sleep_pid"; then
14621     # Hide warnings about reused PIDs.
14622     wait $am_sleep_pid 2>/dev/null
14623   fi
14624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14625$as_echo "done" >&6; }
14626 if test -n "$EXEEXT"; then
14627  am__EXEEXT_TRUE=
14628  am__EXEEXT_FALSE='#'
14629else
14630  am__EXEEXT_TRUE='#'
14631  am__EXEEXT_FALSE=
14632fi
14633
14634if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14635  as_fn_error $? "conditional \"MINGW\" was never defined.
14636Usually this means the macro was only invoked conditionally." "$LINENO" 5
14637fi
14638if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
14639  as_fn_error $? "conditional \"FSECT5\" was never defined.
14640Usually this means the macro was only invoked conditionally." "$LINENO" 5
14641fi
14642if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14643  as_fn_error $? "conditional \"AMDEP\" was never defined.
14644Usually this means the macro was only invoked conditionally." "$LINENO" 5
14645fi
14646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14647  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14648Usually this means the macro was only invoked conditionally." "$LINENO" 5
14649fi
14650
14651if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
14652  as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
14653Usually this means the macro was only invoked conditionally." "$LINENO" 5
14654fi
14655
14656: "${CONFIG_STATUS=./config.status}"
14657ac_write_fail=0
14658ac_clean_files_save=$ac_clean_files
14659ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14660{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14661$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14662as_write_fail=0
14663cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14664#! $SHELL
14665# Generated by $as_me.
14666# Run this file to recreate the current configuration.
14667# Compiler output produced by configure, useful for debugging
14668# configure, is in config.log if it exists.
14669
14670debug=false
14671ac_cs_recheck=false
14672ac_cs_silent=false
14673
14674SHELL=\${CONFIG_SHELL-$SHELL}
14675export SHELL
14676_ASEOF
14677cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14678## -------------------- ##
14679## M4sh Initialization. ##
14680## -------------------- ##
14681
14682# Be more Bourne compatible
14683DUALCASE=1; export DUALCASE # for MKS sh
14684if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14685  emulate sh
14686  NULLCMD=:
14687  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14688  # is contrary to our usage.  Disable this feature.
14689  alias -g '${1+"$@"}'='"$@"'
14690  setopt NO_GLOB_SUBST
14691else
14692  case `(set -o) 2>/dev/null` in #(
14693  *posix*) :
14694    set -o posix ;; #(
14695  *) :
14696     ;;
14697esac
14698fi
14699
14700
14701as_nl='
14702'
14703export as_nl
14704# Printing a long string crashes Solaris 7 /usr/bin/printf.
14705as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14706as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14707as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14708# Prefer a ksh shell builtin over an external printf program on Solaris,
14709# but without wasting forks for bash or zsh.
14710if test -z "$BASH_VERSION$ZSH_VERSION" \
14711    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14712  as_echo='print -r --'
14713  as_echo_n='print -rn --'
14714elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14715  as_echo='printf %s\n'
14716  as_echo_n='printf %s'
14717else
14718  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14719    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14720    as_echo_n='/usr/ucb/echo -n'
14721  else
14722    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14723    as_echo_n_body='eval
14724      arg=$1;
14725      case $arg in #(
14726      *"$as_nl"*)
14727	expr "X$arg" : "X\\(.*\\)$as_nl";
14728	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14729      esac;
14730      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14731    '
14732    export as_echo_n_body
14733    as_echo_n='sh -c $as_echo_n_body as_echo'
14734  fi
14735  export as_echo_body
14736  as_echo='sh -c $as_echo_body as_echo'
14737fi
14738
14739# The user is always right.
14740if test "${PATH_SEPARATOR+set}" != set; then
14741  PATH_SEPARATOR=:
14742  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14743    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14744      PATH_SEPARATOR=';'
14745  }
14746fi
14747
14748
14749# IFS
14750# We need space, tab and new line, in precisely that order.  Quoting is
14751# there to prevent editors from complaining about space-tab.
14752# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14753# splitting by setting IFS to empty value.)
14754IFS=" ""	$as_nl"
14755
14756# Find who we are.  Look in the path if we contain no directory separator.
14757as_myself=
14758case $0 in #((
14759  *[\\/]* ) as_myself=$0 ;;
14760  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14761for as_dir in $PATH
14762do
14763  IFS=$as_save_IFS
14764  test -z "$as_dir" && as_dir=.
14765    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14766  done
14767IFS=$as_save_IFS
14768
14769     ;;
14770esac
14771# We did not find ourselves, most probably we were run as `sh COMMAND'
14772# in which case we are not to be found in the path.
14773if test "x$as_myself" = x; then
14774  as_myself=$0
14775fi
14776if test ! -f "$as_myself"; then
14777  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14778  exit 1
14779fi
14780
14781# Unset variables that we do not need and which cause bugs (e.g. in
14782# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14783# suppresses any "Segmentation fault" message there.  '((' could
14784# trigger a bug in pdksh 5.2.14.
14785for as_var in BASH_ENV ENV MAIL MAILPATH
14786do eval test x\${$as_var+set} = xset \
14787  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14788done
14789PS1='$ '
14790PS2='> '
14791PS4='+ '
14792
14793# NLS nuisances.
14794LC_ALL=C
14795export LC_ALL
14796LANGUAGE=C
14797export LANGUAGE
14798
14799# CDPATH.
14800(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14801
14802
14803# as_fn_error STATUS ERROR [LINENO LOG_FD]
14804# ----------------------------------------
14805# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14806# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14807# script with STATUS, using 1 if that was 0.
14808as_fn_error ()
14809{
14810  as_status=$1; test $as_status -eq 0 && as_status=1
14811  if test "$4"; then
14812    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14813    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14814  fi
14815  $as_echo "$as_me: error: $2" >&2
14816  as_fn_exit $as_status
14817} # as_fn_error
14818
14819
14820# as_fn_set_status STATUS
14821# -----------------------
14822# Set $? to STATUS, without forking.
14823as_fn_set_status ()
14824{
14825  return $1
14826} # as_fn_set_status
14827
14828# as_fn_exit STATUS
14829# -----------------
14830# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14831as_fn_exit ()
14832{
14833  set +e
14834  as_fn_set_status $1
14835  exit $1
14836} # as_fn_exit
14837
14838# as_fn_unset VAR
14839# ---------------
14840# Portably unset VAR.
14841as_fn_unset ()
14842{
14843  { eval $1=; unset $1;}
14844}
14845as_unset=as_fn_unset
14846# as_fn_append VAR VALUE
14847# ----------------------
14848# Append the text in VALUE to the end of the definition contained in VAR. Take
14849# advantage of any shell optimizations that allow amortized linear growth over
14850# repeated appends, instead of the typical quadratic growth present in naive
14851# implementations.
14852if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14853  eval 'as_fn_append ()
14854  {
14855    eval $1+=\$2
14856  }'
14857else
14858  as_fn_append ()
14859  {
14860    eval $1=\$$1\$2
14861  }
14862fi # as_fn_append
14863
14864# as_fn_arith ARG...
14865# ------------------
14866# Perform arithmetic evaluation on the ARGs, and store the result in the
14867# global $as_val. Take advantage of shells that can avoid forks. The arguments
14868# must be portable across $(()) and expr.
14869if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14870  eval 'as_fn_arith ()
14871  {
14872    as_val=$(( $* ))
14873  }'
14874else
14875  as_fn_arith ()
14876  {
14877    as_val=`expr "$@" || test $? -eq 1`
14878  }
14879fi # as_fn_arith
14880
14881
14882if expr a : '\(a\)' >/dev/null 2>&1 &&
14883   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14884  as_expr=expr
14885else
14886  as_expr=false
14887fi
14888
14889if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14890  as_basename=basename
14891else
14892  as_basename=false
14893fi
14894
14895if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14896  as_dirname=dirname
14897else
14898  as_dirname=false
14899fi
14900
14901as_me=`$as_basename -- "$0" ||
14902$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14903	 X"$0" : 'X\(//\)$' \| \
14904	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14905$as_echo X/"$0" |
14906    sed '/^.*\/\([^/][^/]*\)\/*$/{
14907	    s//\1/
14908	    q
14909	  }
14910	  /^X\/\(\/\/\)$/{
14911	    s//\1/
14912	    q
14913	  }
14914	  /^X\/\(\/\).*/{
14915	    s//\1/
14916	    q
14917	  }
14918	  s/.*/./; q'`
14919
14920# Avoid depending upon Character Ranges.
14921as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14922as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14923as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14924as_cr_digits='0123456789'
14925as_cr_alnum=$as_cr_Letters$as_cr_digits
14926
14927ECHO_C= ECHO_N= ECHO_T=
14928case `echo -n x` in #(((((
14929-n*)
14930  case `echo 'xy\c'` in
14931  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14932  xy)  ECHO_C='\c';;
14933  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14934       ECHO_T='	';;
14935  esac;;
14936*)
14937  ECHO_N='-n';;
14938esac
14939
14940rm -f conf$$ conf$$.exe conf$$.file
14941if test -d conf$$.dir; then
14942  rm -f conf$$.dir/conf$$.file
14943else
14944  rm -f conf$$.dir
14945  mkdir conf$$.dir 2>/dev/null
14946fi
14947if (echo >conf$$.file) 2>/dev/null; then
14948  if ln -s conf$$.file conf$$ 2>/dev/null; then
14949    as_ln_s='ln -s'
14950    # ... but there are two gotchas:
14951    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14952    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14953    # In both cases, we have to default to `cp -pR'.
14954    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14955      as_ln_s='cp -pR'
14956  elif ln conf$$.file conf$$ 2>/dev/null; then
14957    as_ln_s=ln
14958  else
14959    as_ln_s='cp -pR'
14960  fi
14961else
14962  as_ln_s='cp -pR'
14963fi
14964rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14965rmdir conf$$.dir 2>/dev/null
14966
14967
14968# as_fn_mkdir_p
14969# -------------
14970# Create "$as_dir" as a directory, including parents if necessary.
14971as_fn_mkdir_p ()
14972{
14973
14974  case $as_dir in #(
14975  -*) as_dir=./$as_dir;;
14976  esac
14977  test -d "$as_dir" || eval $as_mkdir_p || {
14978    as_dirs=
14979    while :; do
14980      case $as_dir in #(
14981      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14982      *) as_qdir=$as_dir;;
14983      esac
14984      as_dirs="'$as_qdir' $as_dirs"
14985      as_dir=`$as_dirname -- "$as_dir" ||
14986$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14987	 X"$as_dir" : 'X\(//\)[^/]' \| \
14988	 X"$as_dir" : 'X\(//\)$' \| \
14989	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14990$as_echo X"$as_dir" |
14991    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14992	    s//\1/
14993	    q
14994	  }
14995	  /^X\(\/\/\)[^/].*/{
14996	    s//\1/
14997	    q
14998	  }
14999	  /^X\(\/\/\)$/{
15000	    s//\1/
15001	    q
15002	  }
15003	  /^X\(\/\).*/{
15004	    s//\1/
15005	    q
15006	  }
15007	  s/.*/./; q'`
15008      test -d "$as_dir" && break
15009    done
15010    test -z "$as_dirs" || eval "mkdir $as_dirs"
15011  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15012
15013
15014} # as_fn_mkdir_p
15015if mkdir -p . 2>/dev/null; then
15016  as_mkdir_p='mkdir -p "$as_dir"'
15017else
15018  test -d ./-p && rmdir ./-p
15019  as_mkdir_p=false
15020fi
15021
15022
15023# as_fn_executable_p FILE
15024# -----------------------
15025# Test if FILE is an executable regular file.
15026as_fn_executable_p ()
15027{
15028  test -f "$1" && test -x "$1"
15029} # as_fn_executable_p
15030as_test_x='test -x'
15031as_executable_p=as_fn_executable_p
15032
15033# Sed expression to map a string onto a valid CPP name.
15034as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15035
15036# Sed expression to map a string onto a valid variable name.
15037as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15038
15039
15040exec 6>&1
15041## ----------------------------------- ##
15042## Main body of $CONFIG_STATUS script. ##
15043## ----------------------------------- ##
15044_ASEOF
15045test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15046
15047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15048# Save the log message, to keep $0 and so on meaningful, and to
15049# report actual input values of CONFIG_FILES etc. instead of their
15050# values after options handling.
15051ac_log="
15052This file was extended by file $as_me 5.26, which was
15053generated by GNU Autoconf 2.69.  Invocation command line was
15054
15055  CONFIG_FILES    = $CONFIG_FILES
15056  CONFIG_HEADERS  = $CONFIG_HEADERS
15057  CONFIG_LINKS    = $CONFIG_LINKS
15058  CONFIG_COMMANDS = $CONFIG_COMMANDS
15059  $ $0 $@
15060
15061on `(hostname || uname -n) 2>/dev/null | sed 1q`
15062"
15063
15064_ACEOF
15065
15066case $ac_config_files in *"
15067"*) set x $ac_config_files; shift; ac_config_files=$*;;
15068esac
15069
15070case $ac_config_headers in *"
15071"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15072esac
15073
15074
15075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15076# Files that config.status was made for.
15077config_files="$ac_config_files"
15078config_headers="$ac_config_headers"
15079config_commands="$ac_config_commands"
15080
15081_ACEOF
15082
15083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15084ac_cs_usage="\
15085\`$as_me' instantiates files and other configuration actions
15086from templates according to the current configuration.  Unless the files
15087and actions are specified as TAGs, all are instantiated by default.
15088
15089Usage: $0 [OPTION]... [TAG]...
15090
15091  -h, --help       print this help, then exit
15092  -V, --version    print version number and configuration settings, then exit
15093      --config     print configuration, then exit
15094  -q, --quiet, --silent
15095                   do not print progress messages
15096  -d, --debug      don't remove temporary files
15097      --recheck    update $as_me by reconfiguring in the same conditions
15098      --file=FILE[:TEMPLATE]
15099                   instantiate the configuration file FILE
15100      --header=FILE[:TEMPLATE]
15101                   instantiate the configuration header FILE
15102
15103Configuration files:
15104$config_files
15105
15106Configuration headers:
15107$config_headers
15108
15109Configuration commands:
15110$config_commands
15111
15112Report bugs to <christos@astron.com>."
15113
15114_ACEOF
15115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15116ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15117ac_cs_version="\\
15118file config.status 5.26
15119configured by $0, generated by GNU Autoconf 2.69,
15120  with options \\"\$ac_cs_config\\"
15121
15122Copyright (C) 2012 Free Software Foundation, Inc.
15123This config.status script is free software; the Free Software Foundation
15124gives unlimited permission to copy, distribute and modify it."
15125
15126ac_pwd='$ac_pwd'
15127srcdir='$srcdir'
15128INSTALL='$INSTALL'
15129MKDIR_P='$MKDIR_P'
15130AWK='$AWK'
15131test -n "\$AWK" || AWK=awk
15132_ACEOF
15133
15134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15135# The default lists apply if the user does not specify any file.
15136ac_need_defaults=:
15137while test $# != 0
15138do
15139  case $1 in
15140  --*=?*)
15141    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15142    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15143    ac_shift=:
15144    ;;
15145  --*=)
15146    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15147    ac_optarg=
15148    ac_shift=:
15149    ;;
15150  *)
15151    ac_option=$1
15152    ac_optarg=$2
15153    ac_shift=shift
15154    ;;
15155  esac
15156
15157  case $ac_option in
15158  # Handling of the options.
15159  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15160    ac_cs_recheck=: ;;
15161  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15162    $as_echo "$ac_cs_version"; exit ;;
15163  --config | --confi | --conf | --con | --co | --c )
15164    $as_echo "$ac_cs_config"; exit ;;
15165  --debug | --debu | --deb | --de | --d | -d )
15166    debug=: ;;
15167  --file | --fil | --fi | --f )
15168    $ac_shift
15169    case $ac_optarg in
15170    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15171    '') as_fn_error $? "missing file argument" ;;
15172    esac
15173    as_fn_append CONFIG_FILES " '$ac_optarg'"
15174    ac_need_defaults=false;;
15175  --header | --heade | --head | --hea )
15176    $ac_shift
15177    case $ac_optarg in
15178    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15179    esac
15180    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15181    ac_need_defaults=false;;
15182  --he | --h)
15183    # Conflict between --help and --header
15184    as_fn_error $? "ambiguous option: \`$1'
15185Try \`$0 --help' for more information.";;
15186  --help | --hel | -h )
15187    $as_echo "$ac_cs_usage"; exit ;;
15188  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15189  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15190    ac_cs_silent=: ;;
15191
15192  # This is an error.
15193  -*) as_fn_error $? "unrecognized option: \`$1'
15194Try \`$0 --help' for more information." ;;
15195
15196  *) as_fn_append ac_config_targets " $1"
15197     ac_need_defaults=false ;;
15198
15199  esac
15200  shift
15201done
15202
15203ac_configure_extra_args=
15204
15205if $ac_cs_silent; then
15206  exec 6>/dev/null
15207  ac_configure_extra_args="$ac_configure_extra_args --silent"
15208fi
15209
15210_ACEOF
15211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15212if \$ac_cs_recheck; then
15213  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15214  shift
15215  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15216  CONFIG_SHELL='$SHELL'
15217  export CONFIG_SHELL
15218  exec "\$@"
15219fi
15220
15221_ACEOF
15222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15223exec 5>>config.log
15224{
15225  echo
15226  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15227## Running $as_me. ##
15228_ASBOX
15229  $as_echo "$ac_log"
15230} >&5
15231
15232_ACEOF
15233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15234#
15235# INIT-COMMANDS
15236#
15237AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15238
15239
15240# The HP-UX ksh and POSIX shell print the target directory to stdout
15241# if CDPATH is set.
15242(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15243
15244sed_quote_subst='$sed_quote_subst'
15245double_quote_subst='$double_quote_subst'
15246delay_variable_subst='$delay_variable_subst'
15247macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15248macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15249enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15250pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15251enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15252enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15253SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15254ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15255PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15256host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15257host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15258host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15259build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15260build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15261build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15262SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15263Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15264GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15265EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15266FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15267LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15268NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15269LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15270max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15271ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15272exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15273lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15274lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15275lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15276lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15277lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15278reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15279reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15280OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15281deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15282file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15283file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15284want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15285DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15286sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15287AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15288AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15289archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15290STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15291RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15292old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15293old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15294old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15295lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15296CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15297CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15298compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15299GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15300lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15301lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15302lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15303lt_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"`'
15304nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15305lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15306objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15307MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15308lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15309lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15310lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15311lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15312lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15313need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15314MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15315DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15316NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15317LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15318OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15319OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15320libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15321shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15322extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15323archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15324enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15325export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15326whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15327compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15328old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15329old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15330archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15331archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15332module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15333module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15334with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15335allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15336no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15337hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15338hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15339hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15340hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15341hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15342hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15343hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15344inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15345link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15346always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15347export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15348exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15349include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15350prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15351postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15352file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15353variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15354need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15355need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15356version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15357runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15358shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15359shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15360libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15361library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15362soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15363install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15364postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15365postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15366finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15367finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15368hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15369sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15370sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15371hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15372enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15373enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15374enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15375old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15376striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15377
15378LTCC='$LTCC'
15379LTCFLAGS='$LTCFLAGS'
15380compiler='$compiler_DEFAULT'
15381
15382# A function that is used when there is no print builtin or printf.
15383func_fallback_echo ()
15384{
15385  eval 'cat <<_LTECHO_EOF
15386\$1
15387_LTECHO_EOF'
15388}
15389
15390# Quote evaled strings.
15391for var in SHELL \
15392ECHO \
15393PATH_SEPARATOR \
15394SED \
15395GREP \
15396EGREP \
15397FGREP \
15398LD \
15399NM \
15400LN_S \
15401lt_SP2NL \
15402lt_NL2SP \
15403reload_flag \
15404OBJDUMP \
15405deplibs_check_method \
15406file_magic_cmd \
15407file_magic_glob \
15408want_nocaseglob \
15409DLLTOOL \
15410sharedlib_from_linklib_cmd \
15411AR \
15412AR_FLAGS \
15413archiver_list_spec \
15414STRIP \
15415RANLIB \
15416CC \
15417CFLAGS \
15418compiler \
15419lt_cv_sys_global_symbol_pipe \
15420lt_cv_sys_global_symbol_to_cdecl \
15421lt_cv_sys_global_symbol_to_c_name_address \
15422lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15423nm_file_list_spec \
15424lt_prog_compiler_no_builtin_flag \
15425lt_prog_compiler_pic \
15426lt_prog_compiler_wl \
15427lt_prog_compiler_static \
15428lt_cv_prog_compiler_c_o \
15429need_locks \
15430MANIFEST_TOOL \
15431DSYMUTIL \
15432NMEDIT \
15433LIPO \
15434OTOOL \
15435OTOOL64 \
15436shrext_cmds \
15437export_dynamic_flag_spec \
15438whole_archive_flag_spec \
15439compiler_needs_object \
15440with_gnu_ld \
15441allow_undefined_flag \
15442no_undefined_flag \
15443hardcode_libdir_flag_spec \
15444hardcode_libdir_separator \
15445exclude_expsyms \
15446include_expsyms \
15447file_list_spec \
15448variables_saved_for_relink \
15449libname_spec \
15450library_names_spec \
15451soname_spec \
15452install_override_mode \
15453finish_eval \
15454old_striplib \
15455striplib; do
15456    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15457    *[\\\\\\\`\\"\\\$]*)
15458      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15459      ;;
15460    *)
15461      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15462      ;;
15463    esac
15464done
15465
15466# Double-quote double-evaled strings.
15467for var in reload_cmds \
15468old_postinstall_cmds \
15469old_postuninstall_cmds \
15470old_archive_cmds \
15471extract_expsyms_cmds \
15472old_archive_from_new_cmds \
15473old_archive_from_expsyms_cmds \
15474archive_cmds \
15475archive_expsym_cmds \
15476module_cmds \
15477module_expsym_cmds \
15478export_symbols_cmds \
15479prelink_cmds \
15480postlink_cmds \
15481postinstall_cmds \
15482postuninstall_cmds \
15483finish_cmds \
15484sys_lib_search_path_spec \
15485sys_lib_dlsearch_path_spec; do
15486    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15487    *[\\\\\\\`\\"\\\$]*)
15488      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15489      ;;
15490    *)
15491      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15492      ;;
15493    esac
15494done
15495
15496ac_aux_dir='$ac_aux_dir'
15497xsi_shell='$xsi_shell'
15498lt_shell_append='$lt_shell_append'
15499
15500# See if we are running on zsh, and set the options which allow our
15501# commands through without removal of \ escapes INIT.
15502if test -n "\${ZSH_VERSION+set}" ; then
15503   setopt NO_GLOB_SUBST
15504fi
15505
15506
15507    PACKAGE='$PACKAGE'
15508    VERSION='$VERSION'
15509    TIMESTAMP='$TIMESTAMP'
15510    RM='$RM'
15511    ofile='$ofile'
15512
15513
15514
15515
15516_ACEOF
15517
15518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15519
15520# Handling of arguments.
15521for ac_config_target in $ac_config_targets
15522do
15523  case $ac_config_target in
15524    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15525    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15526    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15527    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15528    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15529    "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
15530    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15531    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15532    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15533
15534  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15535  esac
15536done
15537
15538
15539# If the user did not use the arguments to specify the items to instantiate,
15540# then the envvar interface is used.  Set only those that are not.
15541# We use the long form for the default assignment because of an extremely
15542# bizarre bug on SunOS 4.1.3.
15543if $ac_need_defaults; then
15544  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15545  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15546  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15547fi
15548
15549# Have a temporary directory for convenience.  Make it in the build tree
15550# simply because there is no reason against having it here, and in addition,
15551# creating and moving files from /tmp can sometimes cause problems.
15552# Hook for its removal unless debugging.
15553# Note that there is a small window in which the directory will not be cleaned:
15554# after its creation but before its name has been assigned to `$tmp'.
15555$debug ||
15556{
15557  tmp= ac_tmp=
15558  trap 'exit_status=$?
15559  : "${ac_tmp:=$tmp}"
15560  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15561' 0
15562  trap 'as_fn_exit 1' 1 2 13 15
15563}
15564# Create a (secure) tmp directory for tmp files.
15565
15566{
15567  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15568  test -d "$tmp"
15569}  ||
15570{
15571  tmp=./conf$$-$RANDOM
15572  (umask 077 && mkdir "$tmp")
15573} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15574ac_tmp=$tmp
15575
15576# Set up the scripts for CONFIG_FILES section.
15577# No need to generate them if there are no CONFIG_FILES.
15578# This happens for instance with `./config.status config.h'.
15579if test -n "$CONFIG_FILES"; then
15580
15581
15582ac_cr=`echo X | tr X '\015'`
15583# On cygwin, bash can eat \r inside `` if the user requested igncr.
15584# But we know of no other shell where ac_cr would be empty at this
15585# point, so we can use a bashism as a fallback.
15586if test "x$ac_cr" = x; then
15587  eval ac_cr=\$\'\\r\'
15588fi
15589ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15590if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15591  ac_cs_awk_cr='\\r'
15592else
15593  ac_cs_awk_cr=$ac_cr
15594fi
15595
15596echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15597_ACEOF
15598
15599
15600{
15601  echo "cat >conf$$subs.awk <<_ACEOF" &&
15602  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15603  echo "_ACEOF"
15604} >conf$$subs.sh ||
15605  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15606ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15607ac_delim='%!_!# '
15608for ac_last_try in false false false false false :; do
15609  . ./conf$$subs.sh ||
15610    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15611
15612  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15613  if test $ac_delim_n = $ac_delim_num; then
15614    break
15615  elif $ac_last_try; then
15616    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15617  else
15618    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15619  fi
15620done
15621rm -f conf$$subs.sh
15622
15623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15624cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15625_ACEOF
15626sed -n '
15627h
15628s/^/S["/; s/!.*/"]=/
15629p
15630g
15631s/^[^!]*!//
15632:repl
15633t repl
15634s/'"$ac_delim"'$//
15635t delim
15636:nl
15637h
15638s/\(.\{148\}\)..*/\1/
15639t more1
15640s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15641p
15642n
15643b repl
15644:more1
15645s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15646p
15647g
15648s/.\{148\}//
15649t nl
15650:delim
15651h
15652s/\(.\{148\}\)..*/\1/
15653t more2
15654s/["\\]/\\&/g; s/^/"/; s/$/"/
15655p
15656b
15657:more2
15658s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15659p
15660g
15661s/.\{148\}//
15662t delim
15663' <conf$$subs.awk | sed '
15664/^[^""]/{
15665  N
15666  s/\n//
15667}
15668' >>$CONFIG_STATUS || ac_write_fail=1
15669rm -f conf$$subs.awk
15670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15671_ACAWK
15672cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15673  for (key in S) S_is_set[key] = 1
15674  FS = ""
15675
15676}
15677{
15678  line = $ 0
15679  nfields = split(line, field, "@")
15680  substed = 0
15681  len = length(field[1])
15682  for (i = 2; i < nfields; i++) {
15683    key = field[i]
15684    keylen = length(key)
15685    if (S_is_set[key]) {
15686      value = S[key]
15687      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15688      len += length(value) + length(field[++i])
15689      substed = 1
15690    } else
15691      len += 1 + keylen
15692  }
15693
15694  print line
15695}
15696
15697_ACAWK
15698_ACEOF
15699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15700if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15701  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15702else
15703  cat
15704fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15705  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15706_ACEOF
15707
15708# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15709# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15710# trailing colons and then remove the whole line if VPATH becomes empty
15711# (actually we leave an empty line to preserve line numbers).
15712if test "x$srcdir" = x.; then
15713  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15714h
15715s///
15716s/^/:/
15717s/[	 ]*$/:/
15718s/:\$(srcdir):/:/g
15719s/:\${srcdir}:/:/g
15720s/:@srcdir@:/:/g
15721s/^:*//
15722s/:*$//
15723x
15724s/\(=[	 ]*\).*/\1/
15725G
15726s/\n//
15727s/^[^=]*=[	 ]*$//
15728}'
15729fi
15730
15731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15732fi # test -n "$CONFIG_FILES"
15733
15734# Set up the scripts for CONFIG_HEADERS section.
15735# No need to generate them if there are no CONFIG_HEADERS.
15736# This happens for instance with `./config.status Makefile'.
15737if test -n "$CONFIG_HEADERS"; then
15738cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15739BEGIN {
15740_ACEOF
15741
15742# Transform confdefs.h into an awk script `defines.awk', embedded as
15743# here-document in config.status, that substitutes the proper values into
15744# config.h.in to produce config.h.
15745
15746# Create a delimiter string that does not exist in confdefs.h, to ease
15747# handling of long lines.
15748ac_delim='%!_!# '
15749for ac_last_try in false false :; do
15750  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15751  if test -z "$ac_tt"; then
15752    break
15753  elif $ac_last_try; then
15754    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15755  else
15756    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15757  fi
15758done
15759
15760# For the awk script, D is an array of macro values keyed by name,
15761# likewise P contains macro parameters if any.  Preserve backslash
15762# newline sequences.
15763
15764ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15765sed -n '
15766s/.\{148\}/&'"$ac_delim"'/g
15767t rset
15768:rset
15769s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15770t def
15771d
15772:def
15773s/\\$//
15774t bsnl
15775s/["\\]/\\&/g
15776s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15777D["\1"]=" \3"/p
15778s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15779d
15780:bsnl
15781s/["\\]/\\&/g
15782s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15783D["\1"]=" \3\\\\\\n"\\/p
15784t cont
15785s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15786t cont
15787d
15788:cont
15789n
15790s/.\{148\}/&'"$ac_delim"'/g
15791t clear
15792:clear
15793s/\\$//
15794t bsnlc
15795s/["\\]/\\&/g; s/^/"/; s/$/"/p
15796d
15797:bsnlc
15798s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15799b cont
15800' <confdefs.h | sed '
15801s/'"$ac_delim"'/"\\\
15802"/g' >>$CONFIG_STATUS || ac_write_fail=1
15803
15804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15805  for (key in D) D_is_set[key] = 1
15806  FS = ""
15807}
15808/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15809  line = \$ 0
15810  split(line, arg, " ")
15811  if (arg[1] == "#") {
15812    defundef = arg[2]
15813    mac1 = arg[3]
15814  } else {
15815    defundef = substr(arg[1], 2)
15816    mac1 = arg[2]
15817  }
15818  split(mac1, mac2, "(") #)
15819  macro = mac2[1]
15820  prefix = substr(line, 1, index(line, defundef) - 1)
15821  if (D_is_set[macro]) {
15822    # Preserve the white space surrounding the "#".
15823    print prefix "define", macro P[macro] D[macro]
15824    next
15825  } else {
15826    # Replace #undef with comments.  This is necessary, for example,
15827    # in the case of _POSIX_SOURCE, which is predefined and required
15828    # on some systems where configure will not decide to define it.
15829    if (defundef == "undef") {
15830      print "/*", prefix defundef, macro, "*/"
15831      next
15832    }
15833  }
15834}
15835{ print }
15836_ACAWK
15837_ACEOF
15838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15839  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15840fi # test -n "$CONFIG_HEADERS"
15841
15842
15843eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15844shift
15845for ac_tag
15846do
15847  case $ac_tag in
15848  :[FHLC]) ac_mode=$ac_tag; continue;;
15849  esac
15850  case $ac_mode$ac_tag in
15851  :[FHL]*:*);;
15852  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15853  :[FH]-) ac_tag=-:-;;
15854  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15855  esac
15856  ac_save_IFS=$IFS
15857  IFS=:
15858  set x $ac_tag
15859  IFS=$ac_save_IFS
15860  shift
15861  ac_file=$1
15862  shift
15863
15864  case $ac_mode in
15865  :L) ac_source=$1;;
15866  :[FH])
15867    ac_file_inputs=
15868    for ac_f
15869    do
15870      case $ac_f in
15871      -) ac_f="$ac_tmp/stdin";;
15872      *) # Look for the file first in the build tree, then in the source tree
15873	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15874	 # because $ac_f cannot contain `:'.
15875	 test -f "$ac_f" ||
15876	   case $ac_f in
15877	   [\\/$]*) false;;
15878	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15879	   esac ||
15880	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15881      esac
15882      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15883      as_fn_append ac_file_inputs " '$ac_f'"
15884    done
15885
15886    # Let's still pretend it is `configure' which instantiates (i.e., don't
15887    # use $as_me), people would be surprised to read:
15888    #    /* config.h.  Generated by config.status.  */
15889    configure_input='Generated from '`
15890	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15891	`' by configure.'
15892    if test x"$ac_file" != x-; then
15893      configure_input="$ac_file.  $configure_input"
15894      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15895$as_echo "$as_me: creating $ac_file" >&6;}
15896    fi
15897    # Neutralize special characters interpreted by sed in replacement strings.
15898    case $configure_input in #(
15899    *\&* | *\|* | *\\* )
15900       ac_sed_conf_input=`$as_echo "$configure_input" |
15901       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15902    *) ac_sed_conf_input=$configure_input;;
15903    esac
15904
15905    case $ac_tag in
15906    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15907      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15908    esac
15909    ;;
15910  esac
15911
15912  ac_dir=`$as_dirname -- "$ac_file" ||
15913$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15914	 X"$ac_file" : 'X\(//\)[^/]' \| \
15915	 X"$ac_file" : 'X\(//\)$' \| \
15916	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15917$as_echo X"$ac_file" |
15918    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15919	    s//\1/
15920	    q
15921	  }
15922	  /^X\(\/\/\)[^/].*/{
15923	    s//\1/
15924	    q
15925	  }
15926	  /^X\(\/\/\)$/{
15927	    s//\1/
15928	    q
15929	  }
15930	  /^X\(\/\).*/{
15931	    s//\1/
15932	    q
15933	  }
15934	  s/.*/./; q'`
15935  as_dir="$ac_dir"; as_fn_mkdir_p
15936  ac_builddir=.
15937
15938case "$ac_dir" in
15939.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15940*)
15941  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15942  # A ".." for each directory in $ac_dir_suffix.
15943  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15944  case $ac_top_builddir_sub in
15945  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15946  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15947  esac ;;
15948esac
15949ac_abs_top_builddir=$ac_pwd
15950ac_abs_builddir=$ac_pwd$ac_dir_suffix
15951# for backward compatibility:
15952ac_top_builddir=$ac_top_build_prefix
15953
15954case $srcdir in
15955  .)  # We are building in place.
15956    ac_srcdir=.
15957    ac_top_srcdir=$ac_top_builddir_sub
15958    ac_abs_top_srcdir=$ac_pwd ;;
15959  [\\/]* | ?:[\\/]* )  # Absolute name.
15960    ac_srcdir=$srcdir$ac_dir_suffix;
15961    ac_top_srcdir=$srcdir
15962    ac_abs_top_srcdir=$srcdir ;;
15963  *) # Relative name.
15964    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15965    ac_top_srcdir=$ac_top_build_prefix$srcdir
15966    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15967esac
15968ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15969
15970
15971  case $ac_mode in
15972  :F)
15973  #
15974  # CONFIG_FILE
15975  #
15976
15977  case $INSTALL in
15978  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15979  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15980  esac
15981  ac_MKDIR_P=$MKDIR_P
15982  case $MKDIR_P in
15983  [\\/$]* | ?:[\\/]* ) ;;
15984  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15985  esac
15986_ACEOF
15987
15988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15989# If the template does not know about datarootdir, expand it.
15990# FIXME: This hack should be removed a few years after 2.60.
15991ac_datarootdir_hack=; ac_datarootdir_seen=
15992ac_sed_dataroot='
15993/datarootdir/ {
15994  p
15995  q
15996}
15997/@datadir@/p
15998/@docdir@/p
15999/@infodir@/p
16000/@localedir@/p
16001/@mandir@/p'
16002case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16003*datarootdir*) ac_datarootdir_seen=yes;;
16004*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16005  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16006$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16007_ACEOF
16008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16009  ac_datarootdir_hack='
16010  s&@datadir@&$datadir&g
16011  s&@docdir@&$docdir&g
16012  s&@infodir@&$infodir&g
16013  s&@localedir@&$localedir&g
16014  s&@mandir@&$mandir&g
16015  s&\\\${datarootdir}&$datarootdir&g' ;;
16016esac
16017_ACEOF
16018
16019# Neutralize VPATH when `$srcdir' = `.'.
16020# Shell code in configure.ac might set extrasub.
16021# FIXME: do we really want to maintain this feature?
16022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16023ac_sed_extra="$ac_vpsub
16024$extrasub
16025_ACEOF
16026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16027:t
16028/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16029s|@configure_input@|$ac_sed_conf_input|;t t
16030s&@top_builddir@&$ac_top_builddir_sub&;t t
16031s&@top_build_prefix@&$ac_top_build_prefix&;t t
16032s&@srcdir@&$ac_srcdir&;t t
16033s&@abs_srcdir@&$ac_abs_srcdir&;t t
16034s&@top_srcdir@&$ac_top_srcdir&;t t
16035s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16036s&@builddir@&$ac_builddir&;t t
16037s&@abs_builddir@&$ac_abs_builddir&;t t
16038s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16039s&@INSTALL@&$ac_INSTALL&;t t
16040s&@MKDIR_P@&$ac_MKDIR_P&;t t
16041$ac_datarootdir_hack
16042"
16043eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16044  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16045
16046test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16047  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16048  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16049      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16050  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16051which seems to be undefined.  Please make sure it is defined" >&5
16052$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16053which seems to be undefined.  Please make sure it is defined" >&2;}
16054
16055  rm -f "$ac_tmp/stdin"
16056  case $ac_file in
16057  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16058  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16059  esac \
16060  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16061 ;;
16062  :H)
16063  #
16064  # CONFIG_HEADER
16065  #
16066  if test x"$ac_file" != x-; then
16067    {
16068      $as_echo "/* $configure_input  */" \
16069      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16070    } >"$ac_tmp/config.h" \
16071      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16072    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16073      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16074$as_echo "$as_me: $ac_file is unchanged" >&6;}
16075    else
16076      rm -f "$ac_file"
16077      mv "$ac_tmp/config.h" "$ac_file" \
16078	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16079    fi
16080  else
16081    $as_echo "/* $configure_input  */" \
16082      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16083      || as_fn_error $? "could not create -" "$LINENO" 5
16084  fi
16085# Compute "$ac_file"'s index in $config_headers.
16086_am_arg="$ac_file"
16087_am_stamp_count=1
16088for _am_header in $config_headers :; do
16089  case $_am_header in
16090    $_am_arg | $_am_arg:* )
16091      break ;;
16092    * )
16093      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16094  esac
16095done
16096echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16097$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16098	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16099	 X"$_am_arg" : 'X\(//\)$' \| \
16100	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16101$as_echo X"$_am_arg" |
16102    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16103	    s//\1/
16104	    q
16105	  }
16106	  /^X\(\/\/\)[^/].*/{
16107	    s//\1/
16108	    q
16109	  }
16110	  /^X\(\/\/\)$/{
16111	    s//\1/
16112	    q
16113	  }
16114	  /^X\(\/\).*/{
16115	    s//\1/
16116	    q
16117	  }
16118	  s/.*/./; q'`/stamp-h$_am_stamp_count
16119 ;;
16120
16121  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16122$as_echo "$as_me: executing $ac_file commands" >&6;}
16123 ;;
16124  esac
16125
16126
16127  case $ac_file$ac_mode in
16128    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16129  # Older Autoconf quotes --file arguments for eval, but not when files
16130  # are listed without --file.  Let's play safe and only enable the eval
16131  # if we detect the quoting.
16132  case $CONFIG_FILES in
16133  *\'*) eval set x "$CONFIG_FILES" ;;
16134  *)   set x $CONFIG_FILES ;;
16135  esac
16136  shift
16137  for mf
16138  do
16139    # Strip MF so we end up with the name of the file.
16140    mf=`echo "$mf" | sed -e 's/:.*$//'`
16141    # Check whether this is an Automake generated Makefile or not.
16142    # We used to match only the files named 'Makefile.in', but
16143    # some people rename them; so instead we look at the file content.
16144    # Grep'ing the first line is not enough: some people post-process
16145    # each Makefile.in and add a new line on top of each file to say so.
16146    # Grep'ing the whole file is not good either: AIX grep has a line
16147    # limit of 2048, but all sed's we know have understand at least 4000.
16148    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16149      dirpart=`$as_dirname -- "$mf" ||
16150$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16151	 X"$mf" : 'X\(//\)[^/]' \| \
16152	 X"$mf" : 'X\(//\)$' \| \
16153	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16154$as_echo X"$mf" |
16155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16156	    s//\1/
16157	    q
16158	  }
16159	  /^X\(\/\/\)[^/].*/{
16160	    s//\1/
16161	    q
16162	  }
16163	  /^X\(\/\/\)$/{
16164	    s//\1/
16165	    q
16166	  }
16167	  /^X\(\/\).*/{
16168	    s//\1/
16169	    q
16170	  }
16171	  s/.*/./; q'`
16172    else
16173      continue
16174    fi
16175    # Extract the definition of DEPDIR, am__include, and am__quote
16176    # from the Makefile without running 'make'.
16177    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16178    test -z "$DEPDIR" && continue
16179    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16180    test -z "$am__include" && continue
16181    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16182    # Find all dependency output files, they are included files with
16183    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16184    # simplest approach to changing $(DEPDIR) to its actual value in the
16185    # expansion.
16186    for file in `sed -n "
16187      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16188	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16189      # Make sure the directory exists.
16190      test -f "$dirpart/$file" && continue
16191      fdir=`$as_dirname -- "$file" ||
16192$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16193	 X"$file" : 'X\(//\)[^/]' \| \
16194	 X"$file" : 'X\(//\)$' \| \
16195	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16196$as_echo X"$file" |
16197    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16198	    s//\1/
16199	    q
16200	  }
16201	  /^X\(\/\/\)[^/].*/{
16202	    s//\1/
16203	    q
16204	  }
16205	  /^X\(\/\/\)$/{
16206	    s//\1/
16207	    q
16208	  }
16209	  /^X\(\/\).*/{
16210	    s//\1/
16211	    q
16212	  }
16213	  s/.*/./; q'`
16214      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16215      # echo "creating $dirpart/$file"
16216      echo '# dummy' > "$dirpart/$file"
16217    done
16218  done
16219}
16220 ;;
16221    "libtool":C)
16222
16223    # See if we are running on zsh, and set the options which allow our
16224    # commands through without removal of \ escapes.
16225    if test -n "${ZSH_VERSION+set}" ; then
16226      setopt NO_GLOB_SUBST
16227    fi
16228
16229    cfgfile="${ofile}T"
16230    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16231    $RM "$cfgfile"
16232
16233    cat <<_LT_EOF >> "$cfgfile"
16234#! $SHELL
16235
16236# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16237# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16238# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16239# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16240#
16241#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16242#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16243#                 Foundation, Inc.
16244#   Written by Gordon Matzigkeit, 1996
16245#
16246#   This file is part of GNU Libtool.
16247#
16248# GNU Libtool is free software; you can redistribute it and/or
16249# modify it under the terms of the GNU General Public License as
16250# published by the Free Software Foundation; either version 2 of
16251# the License, or (at your option) any later version.
16252#
16253# As a special exception to the GNU General Public License,
16254# if you distribute this file as part of a program or library that
16255# is built using GNU Libtool, you may include this file under the
16256# same distribution terms that you use for the rest of that program.
16257#
16258# GNU Libtool is distributed in the hope that it will be useful,
16259# but WITHOUT ANY WARRANTY; without even the implied warranty of
16260# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16261# GNU General Public License for more details.
16262#
16263# You should have received a copy of the GNU General Public License
16264# along with GNU Libtool; see the file COPYING.  If not, a copy
16265# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16266# obtained by writing to the Free Software Foundation, Inc.,
16267# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16268
16269
16270# The names of the tagged configurations supported by this script.
16271available_tags=""
16272
16273# ### BEGIN LIBTOOL CONFIG
16274
16275# Which release of libtool.m4 was used?
16276macro_version=$macro_version
16277macro_revision=$macro_revision
16278
16279# Whether or not to build static libraries.
16280build_old_libs=$enable_static
16281
16282# What type of objects to build.
16283pic_mode=$pic_mode
16284
16285# Whether or not to build shared libraries.
16286build_libtool_libs=$enable_shared
16287
16288# Whether or not to optimize for fast installation.
16289fast_install=$enable_fast_install
16290
16291# Shell to use when invoking shell scripts.
16292SHELL=$lt_SHELL
16293
16294# An echo program that protects backslashes.
16295ECHO=$lt_ECHO
16296
16297# The PATH separator for the build system.
16298PATH_SEPARATOR=$lt_PATH_SEPARATOR
16299
16300# The host system.
16301host_alias=$host_alias
16302host=$host
16303host_os=$host_os
16304
16305# The build system.
16306build_alias=$build_alias
16307build=$build
16308build_os=$build_os
16309
16310# A sed program that does not truncate output.
16311SED=$lt_SED
16312
16313# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16314Xsed="\$SED -e 1s/^X//"
16315
16316# A grep program that handles long lines.
16317GREP=$lt_GREP
16318
16319# An ERE matcher.
16320EGREP=$lt_EGREP
16321
16322# A literal string matcher.
16323FGREP=$lt_FGREP
16324
16325# A BSD- or MS-compatible name lister.
16326NM=$lt_NM
16327
16328# Whether we need soft or hard links.
16329LN_S=$lt_LN_S
16330
16331# What is the maximum length of a command?
16332max_cmd_len=$max_cmd_len
16333
16334# Object file suffix (normally "o").
16335objext=$ac_objext
16336
16337# Executable file suffix (normally "").
16338exeext=$exeext
16339
16340# whether the shell understands "unset".
16341lt_unset=$lt_unset
16342
16343# turn spaces into newlines.
16344SP2NL=$lt_lt_SP2NL
16345
16346# turn newlines into spaces.
16347NL2SP=$lt_lt_NL2SP
16348
16349# convert \$build file names to \$host format.
16350to_host_file_cmd=$lt_cv_to_host_file_cmd
16351
16352# convert \$build files to toolchain format.
16353to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16354
16355# An object symbol dumper.
16356OBJDUMP=$lt_OBJDUMP
16357
16358# Method to check whether dependent libraries are shared objects.
16359deplibs_check_method=$lt_deplibs_check_method
16360
16361# Command to use when deplibs_check_method = "file_magic".
16362file_magic_cmd=$lt_file_magic_cmd
16363
16364# How to find potential files when deplibs_check_method = "file_magic".
16365file_magic_glob=$lt_file_magic_glob
16366
16367# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16368want_nocaseglob=$lt_want_nocaseglob
16369
16370# DLL creation program.
16371DLLTOOL=$lt_DLLTOOL
16372
16373# Command to associate shared and link libraries.
16374sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16375
16376# The archiver.
16377AR=$lt_AR
16378
16379# Flags to create an archive.
16380AR_FLAGS=$lt_AR_FLAGS
16381
16382# How to feed a file listing to the archiver.
16383archiver_list_spec=$lt_archiver_list_spec
16384
16385# A symbol stripping program.
16386STRIP=$lt_STRIP
16387
16388# Commands used to install an old-style archive.
16389RANLIB=$lt_RANLIB
16390old_postinstall_cmds=$lt_old_postinstall_cmds
16391old_postuninstall_cmds=$lt_old_postuninstall_cmds
16392
16393# Whether to use a lock for old archive extraction.
16394lock_old_archive_extraction=$lock_old_archive_extraction
16395
16396# A C compiler.
16397LTCC=$lt_CC
16398
16399# LTCC compiler flags.
16400LTCFLAGS=$lt_CFLAGS
16401
16402# Take the output of nm and produce a listing of raw symbols and C names.
16403global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16404
16405# Transform the output of nm in a proper C declaration.
16406global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16407
16408# Transform the output of nm in a C name address pair.
16409global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16410
16411# Transform the output of nm in a C name address pair when lib prefix is needed.
16412global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16413
16414# Specify filename containing input files for \$NM.
16415nm_file_list_spec=$lt_nm_file_list_spec
16416
16417# The root where to search for dependent libraries,and in which our libraries should be installed.
16418lt_sysroot=$lt_sysroot
16419
16420# The name of the directory that contains temporary libtool files.
16421objdir=$objdir
16422
16423# Used to examine libraries when file_magic_cmd begins with "file".
16424MAGIC_CMD=$MAGIC_CMD
16425
16426# Must we lock files when doing compilation?
16427need_locks=$lt_need_locks
16428
16429# Manifest tool.
16430MANIFEST_TOOL=$lt_MANIFEST_TOOL
16431
16432# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16433DSYMUTIL=$lt_DSYMUTIL
16434
16435# Tool to change global to local symbols on Mac OS X.
16436NMEDIT=$lt_NMEDIT
16437
16438# Tool to manipulate fat objects and archives on Mac OS X.
16439LIPO=$lt_LIPO
16440
16441# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16442OTOOL=$lt_OTOOL
16443
16444# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16445OTOOL64=$lt_OTOOL64
16446
16447# Old archive suffix (normally "a").
16448libext=$libext
16449
16450# Shared library suffix (normally ".so").
16451shrext_cmds=$lt_shrext_cmds
16452
16453# The commands to extract the exported symbol list from a shared archive.
16454extract_expsyms_cmds=$lt_extract_expsyms_cmds
16455
16456# Variables whose values should be saved in libtool wrapper scripts and
16457# restored at link time.
16458variables_saved_for_relink=$lt_variables_saved_for_relink
16459
16460# Do we need the "lib" prefix for modules?
16461need_lib_prefix=$need_lib_prefix
16462
16463# Do we need a version for libraries?
16464need_version=$need_version
16465
16466# Library versioning type.
16467version_type=$version_type
16468
16469# Shared library runtime path variable.
16470runpath_var=$runpath_var
16471
16472# Shared library path variable.
16473shlibpath_var=$shlibpath_var
16474
16475# Is shlibpath searched before the hard-coded library search path?
16476shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16477
16478# Format of library name prefix.
16479libname_spec=$lt_libname_spec
16480
16481# List of archive names.  First name is the real one, the rest are links.
16482# The last name is the one that the linker finds with -lNAME
16483library_names_spec=$lt_library_names_spec
16484
16485# The coded name of the library, if different from the real name.
16486soname_spec=$lt_soname_spec
16487
16488# Permission mode override for installation of shared libraries.
16489install_override_mode=$lt_install_override_mode
16490
16491# Command to use after installation of a shared archive.
16492postinstall_cmds=$lt_postinstall_cmds
16493
16494# Command to use after uninstallation of a shared archive.
16495postuninstall_cmds=$lt_postuninstall_cmds
16496
16497# Commands used to finish a libtool library installation in a directory.
16498finish_cmds=$lt_finish_cmds
16499
16500# As "finish_cmds", except a single script fragment to be evaled but
16501# not shown.
16502finish_eval=$lt_finish_eval
16503
16504# Whether we should hardcode library paths into libraries.
16505hardcode_into_libs=$hardcode_into_libs
16506
16507# Compile-time system search path for libraries.
16508sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16509
16510# Run-time system search path for libraries.
16511sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16512
16513# Whether dlopen is supported.
16514dlopen_support=$enable_dlopen
16515
16516# Whether dlopen of programs is supported.
16517dlopen_self=$enable_dlopen_self
16518
16519# Whether dlopen of statically linked programs is supported.
16520dlopen_self_static=$enable_dlopen_self_static
16521
16522# Commands to strip libraries.
16523old_striplib=$lt_old_striplib
16524striplib=$lt_striplib
16525
16526
16527# The linker used to build libraries.
16528LD=$lt_LD
16529
16530# How to create reloadable object files.
16531reload_flag=$lt_reload_flag
16532reload_cmds=$lt_reload_cmds
16533
16534# Commands used to build an old-style archive.
16535old_archive_cmds=$lt_old_archive_cmds
16536
16537# A language specific compiler.
16538CC=$lt_compiler
16539
16540# Is the compiler the GNU compiler?
16541with_gcc=$GCC
16542
16543# Compiler flag to turn off builtin functions.
16544no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16545
16546# Additional compiler flags for building library objects.
16547pic_flag=$lt_lt_prog_compiler_pic
16548
16549# How to pass a linker flag through the compiler.
16550wl=$lt_lt_prog_compiler_wl
16551
16552# Compiler flag to prevent dynamic linking.
16553link_static_flag=$lt_lt_prog_compiler_static
16554
16555# Does compiler simultaneously support -c and -o options?
16556compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16557
16558# Whether or not to add -lc for building shared libraries.
16559build_libtool_need_lc=$archive_cmds_need_lc
16560
16561# Whether or not to disallow shared libs when runtime libs are static.
16562allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16563
16564# Compiler flag to allow reflexive dlopens.
16565export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16566
16567# Compiler flag to generate shared objects directly from archives.
16568whole_archive_flag_spec=$lt_whole_archive_flag_spec
16569
16570# Whether the compiler copes with passing no objects directly.
16571compiler_needs_object=$lt_compiler_needs_object
16572
16573# Create an old-style archive from a shared archive.
16574old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16575
16576# Create a temporary old-style archive to link instead of a shared archive.
16577old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16578
16579# Commands used to build a shared archive.
16580archive_cmds=$lt_archive_cmds
16581archive_expsym_cmds=$lt_archive_expsym_cmds
16582
16583# Commands used to build a loadable module if different from building
16584# a shared archive.
16585module_cmds=$lt_module_cmds
16586module_expsym_cmds=$lt_module_expsym_cmds
16587
16588# Whether we are building with GNU ld or not.
16589with_gnu_ld=$lt_with_gnu_ld
16590
16591# Flag that allows shared libraries with undefined symbols to be built.
16592allow_undefined_flag=$lt_allow_undefined_flag
16593
16594# Flag that enforces no undefined symbols.
16595no_undefined_flag=$lt_no_undefined_flag
16596
16597# Flag to hardcode \$libdir into a binary during linking.
16598# This must work even if \$libdir does not exist
16599hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16600
16601# Whether we need a single "-rpath" flag with a separated argument.
16602hardcode_libdir_separator=$lt_hardcode_libdir_separator
16603
16604# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16605# DIR into the resulting binary.
16606hardcode_direct=$hardcode_direct
16607
16608# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16609# DIR into the resulting binary and the resulting library dependency is
16610# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16611# library is relocated.
16612hardcode_direct_absolute=$hardcode_direct_absolute
16613
16614# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16615# into the resulting binary.
16616hardcode_minus_L=$hardcode_minus_L
16617
16618# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16619# into the resulting binary.
16620hardcode_shlibpath_var=$hardcode_shlibpath_var
16621
16622# Set to "yes" if building a shared library automatically hardcodes DIR
16623# into the library and all subsequent libraries and executables linked
16624# against it.
16625hardcode_automatic=$hardcode_automatic
16626
16627# Set to yes if linker adds runtime paths of dependent libraries
16628# to runtime path list.
16629inherit_rpath=$inherit_rpath
16630
16631# Whether libtool must link a program against all its dependency libraries.
16632link_all_deplibs=$link_all_deplibs
16633
16634# Set to "yes" if exported symbols are required.
16635always_export_symbols=$always_export_symbols
16636
16637# The commands to list exported symbols.
16638export_symbols_cmds=$lt_export_symbols_cmds
16639
16640# Symbols that should not be listed in the preloaded symbols.
16641exclude_expsyms=$lt_exclude_expsyms
16642
16643# Symbols that must always be exported.
16644include_expsyms=$lt_include_expsyms
16645
16646# Commands necessary for linking programs (against libraries) with templates.
16647prelink_cmds=$lt_prelink_cmds
16648
16649# Commands necessary for finishing linking programs.
16650postlink_cmds=$lt_postlink_cmds
16651
16652# Specify filename containing input files.
16653file_list_spec=$lt_file_list_spec
16654
16655# How to hardcode a shared library path into an executable.
16656hardcode_action=$hardcode_action
16657
16658# ### END LIBTOOL CONFIG
16659
16660_LT_EOF
16661
16662  case $host_os in
16663  aix3*)
16664    cat <<\_LT_EOF >> "$cfgfile"
16665# AIX sometimes has problems with the GCC collect2 program.  For some
16666# reason, if we set the COLLECT_NAMES environment variable, the problems
16667# vanish in a puff of smoke.
16668if test "X${COLLECT_NAMES+set}" != Xset; then
16669  COLLECT_NAMES=
16670  export COLLECT_NAMES
16671fi
16672_LT_EOF
16673    ;;
16674  esac
16675
16676
16677ltmain="$ac_aux_dir/ltmain.sh"
16678
16679
16680  # We use sed instead of cat because bash on DJGPP gets confused if
16681  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16682  # text mode, it properly converts lines to CR/LF.  This bash problem
16683  # is reportedly fixed, but why not run on old versions too?
16684  sed '$q' "$ltmain" >> "$cfgfile" \
16685     || (rm -f "$cfgfile"; exit 1)
16686
16687  if test x"$xsi_shell" = xyes; then
16688  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16689func_dirname ()\
16690{\
16691\    case ${1} in\
16692\      */*) func_dirname_result="${1%/*}${2}" ;;\
16693\      *  ) func_dirname_result="${3}" ;;\
16694\    esac\
16695} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16696  && mv -f "$cfgfile.tmp" "$cfgfile" \
16697    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16698test 0 -eq $? || _lt_function_replace_fail=:
16699
16700
16701  sed -e '/^func_basename ()$/,/^} # func_basename /c\
16702func_basename ()\
16703{\
16704\    func_basename_result="${1##*/}"\
16705} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16706  && mv -f "$cfgfile.tmp" "$cfgfile" \
16707    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16708test 0 -eq $? || _lt_function_replace_fail=:
16709
16710
16711  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16712func_dirname_and_basename ()\
16713{\
16714\    case ${1} in\
16715\      */*) func_dirname_result="${1%/*}${2}" ;;\
16716\      *  ) func_dirname_result="${3}" ;;\
16717\    esac\
16718\    func_basename_result="${1##*/}"\
16719} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16720  && mv -f "$cfgfile.tmp" "$cfgfile" \
16721    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16722test 0 -eq $? || _lt_function_replace_fail=:
16723
16724
16725  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16726func_stripname ()\
16727{\
16728\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16729\    # positional parameters, so assign one to ordinary parameter first.\
16730\    func_stripname_result=${3}\
16731\    func_stripname_result=${func_stripname_result#"${1}"}\
16732\    func_stripname_result=${func_stripname_result%"${2}"}\
16733} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16734  && mv -f "$cfgfile.tmp" "$cfgfile" \
16735    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16736test 0 -eq $? || _lt_function_replace_fail=:
16737
16738
16739  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16740func_split_long_opt ()\
16741{\
16742\    func_split_long_opt_name=${1%%=*}\
16743\    func_split_long_opt_arg=${1#*=}\
16744} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16745  && mv -f "$cfgfile.tmp" "$cfgfile" \
16746    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16747test 0 -eq $? || _lt_function_replace_fail=:
16748
16749
16750  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16751func_split_short_opt ()\
16752{\
16753\    func_split_short_opt_arg=${1#??}\
16754\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16755} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16756  && mv -f "$cfgfile.tmp" "$cfgfile" \
16757    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16758test 0 -eq $? || _lt_function_replace_fail=:
16759
16760
16761  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16762func_lo2o ()\
16763{\
16764\    case ${1} in\
16765\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16766\      *)    func_lo2o_result=${1} ;;\
16767\    esac\
16768} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16769  && mv -f "$cfgfile.tmp" "$cfgfile" \
16770    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16771test 0 -eq $? || _lt_function_replace_fail=:
16772
16773
16774  sed -e '/^func_xform ()$/,/^} # func_xform /c\
16775func_xform ()\
16776{\
16777    func_xform_result=${1%.*}.lo\
16778} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16779  && mv -f "$cfgfile.tmp" "$cfgfile" \
16780    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16781test 0 -eq $? || _lt_function_replace_fail=:
16782
16783
16784  sed -e '/^func_arith ()$/,/^} # func_arith /c\
16785func_arith ()\
16786{\
16787    func_arith_result=$(( $* ))\
16788} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16789  && mv -f "$cfgfile.tmp" "$cfgfile" \
16790    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16791test 0 -eq $? || _lt_function_replace_fail=:
16792
16793
16794  sed -e '/^func_len ()$/,/^} # func_len /c\
16795func_len ()\
16796{\
16797    func_len_result=${#1}\
16798} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16799  && mv -f "$cfgfile.tmp" "$cfgfile" \
16800    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16801test 0 -eq $? || _lt_function_replace_fail=:
16802
16803fi
16804
16805if test x"$lt_shell_append" = xyes; then
16806  sed -e '/^func_append ()$/,/^} # func_append /c\
16807func_append ()\
16808{\
16809    eval "${1}+=\\${2}"\
16810} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16811  && mv -f "$cfgfile.tmp" "$cfgfile" \
16812    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16813test 0 -eq $? || _lt_function_replace_fail=:
16814
16815
16816  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16817func_append_quoted ()\
16818{\
16819\    func_quote_for_eval "${2}"\
16820\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16821} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16822  && mv -f "$cfgfile.tmp" "$cfgfile" \
16823    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16824test 0 -eq $? || _lt_function_replace_fail=:
16825
16826
16827  # Save a `func_append' function call where possible by direct use of '+='
16828  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16829    && mv -f "$cfgfile.tmp" "$cfgfile" \
16830      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16831  test 0 -eq $? || _lt_function_replace_fail=:
16832else
16833  # Save a `func_append' function call even when '+=' is not available
16834  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16835    && mv -f "$cfgfile.tmp" "$cfgfile" \
16836      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16837  test 0 -eq $? || _lt_function_replace_fail=:
16838fi
16839
16840if test x"$_lt_function_replace_fail" = x":"; then
16841  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16842$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16843fi
16844
16845
16846   mv -f "$cfgfile" "$ofile" ||
16847    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16848  chmod +x "$ofile"
16849
16850 ;;
16851
16852  esac
16853done # for ac_tag
16854
16855
16856as_fn_exit 0
16857_ACEOF
16858ac_clean_files=$ac_clean_files_save
16859
16860test $ac_write_fail = 0 ||
16861  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16862
16863
16864# configure is writing to config.log, and then calls config.status.
16865# config.status does its own redirection, appending to config.log.
16866# Unfortunately, on DOS this fails, as config.log is still kept open
16867# by configure, so config.status won't be able to write to it; its
16868# output is simply discarded.  So we exec the FD to /dev/null,
16869# effectively closing config.log, so it can be properly (re)opened and
16870# appended to by config.status.  When coming back to configure, we
16871# need to make the FD available again.
16872if test "$no_create" != yes; then
16873  ac_cs_success=:
16874  ac_config_status_args=
16875  test "$silent" = yes &&
16876    ac_config_status_args="$ac_config_status_args --quiet"
16877  exec 5>/dev/null
16878  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16879  exec 5>>config.log
16880  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16881  # would make configure fail if this is the last instruction.
16882  $ac_cs_success || as_fn_exit 1
16883fi
16884if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16885  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16886$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16887fi
16888
16889