133965Sjdp#! /bin/sh
233965Sjdp# Guess values for system-dependent variables and create Makefiles.
3218822Sdim# Generated by GNU Autoconf 2.59.
433965Sjdp#
5218822Sdim# Copyright (C) 2003 Free Software Foundation, Inc.
633965Sjdp# This configure script is free software; the Free Software Foundation
733965Sjdp# gives unlimited permission to copy, distribute and modify it.
8218822Sdim## --------------------- ##
9218822Sdim## M4sh Initialization.  ##
10218822Sdim## --------------------- ##
1133965Sjdp
12218822Sdim# Be Bourne compatible
13218822Sdimif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14218822Sdim  emulate sh
15218822Sdim  NULLCMD=:
16218822Sdim  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17218822Sdim  # is contrary to our usage.  Disable this feature.
18218822Sdim  alias -g '${1+"$@"}'='"$@"'
19218822Sdimelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20218822Sdim  set -o posix
21218822Sdimfi
22218822SdimDUALCASE=1; export DUALCASE # for MKS sh
23218822Sdim
24218822Sdim# Support unset when possible.
25218822Sdimif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26218822Sdim  as_unset=unset
27218822Sdimelse
28218822Sdim  as_unset=false
29218822Sdimfi
30218822Sdim
31218822Sdim
32218822Sdim# Work around bugs in pre-3.0 UWIN ksh.
33218822Sdim$as_unset ENV MAIL MAILPATH
34218822SdimPS1='$ '
35218822SdimPS2='> '
36218822SdimPS4='+ '
37218822Sdim
38218822Sdim# NLS nuisances.
39218822Sdimfor as_var in \
40218822Sdim  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41218822Sdim  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42218822Sdim  LC_TELEPHONE LC_TIME
43218822Sdimdo
44218822Sdim  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45218822Sdim    eval $as_var=C; export $as_var
46218822Sdim  else
47218822Sdim    $as_unset $as_var
48218822Sdim  fi
49218822Sdimdone
50218822Sdim
51218822Sdim# Required to use basename.
52218822Sdimif expr a : '\(a\)' >/dev/null 2>&1; then
53218822Sdim  as_expr=expr
54218822Sdimelse
55218822Sdim  as_expr=false
56218822Sdimfi
57218822Sdim
58218822Sdimif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59218822Sdim  as_basename=basename
60218822Sdimelse
61218822Sdim  as_basename=false
62218822Sdimfi
63218822Sdim
64218822Sdim
65218822Sdim# Name of the executable.
66218822Sdimas_me=`$as_basename "$0" ||
67218822Sdim$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68218822Sdim	 X"$0" : 'X\(//\)$' \| \
69218822Sdim	 X"$0" : 'X\(/\)$' \| \
70218822Sdim	 .     : '\(.\)' 2>/dev/null ||
71218822Sdimecho X/"$0" |
72218822Sdim    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73218822Sdim  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74218822Sdim  	  /^X\/\(\/\).*/{ s//\1/; q; }
75218822Sdim  	  s/.*/./; q'`
76218822Sdim
77218822Sdim
78218822Sdim# PATH needs CR, and LINENO needs CR and PATH.
79218822Sdim# Avoid depending upon Character Ranges.
80218822Sdimas_cr_letters='abcdefghijklmnopqrstuvwxyz'
81218822Sdimas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82218822Sdimas_cr_Letters=$as_cr_letters$as_cr_LETTERS
83218822Sdimas_cr_digits='0123456789'
84218822Sdimas_cr_alnum=$as_cr_Letters$as_cr_digits
85218822Sdim
86218822Sdim# The user is always right.
87218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
88218822Sdim  echo "#! /bin/sh" >conf$$.sh
89218822Sdim  echo  "exit 0"   >>conf$$.sh
90218822Sdim  chmod +x conf$$.sh
91218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92218822Sdim    PATH_SEPARATOR=';'
93218822Sdim  else
94218822Sdim    PATH_SEPARATOR=:
95218822Sdim  fi
96218822Sdim  rm -f conf$$.sh
97218822Sdimfi
98218822Sdim
99218822Sdim
100218822Sdim  as_lineno_1=$LINENO
101218822Sdim  as_lineno_2=$LINENO
102218822Sdim  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103218822Sdim  test "x$as_lineno_1" != "x$as_lineno_2" &&
104218822Sdim  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105218822Sdim  # Find who we are.  Look in the path if we contain no path at all
106218822Sdim  # relative or not.
107218822Sdim  case $0 in
108218822Sdim    *[\\/]* ) as_myself=$0 ;;
109218822Sdim    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110218822Sdimfor as_dir in $PATH
111218822Sdimdo
112218822Sdim  IFS=$as_save_IFS
113218822Sdim  test -z "$as_dir" && as_dir=.
114218822Sdim  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115218822Sdimdone
116218822Sdim
117218822Sdim       ;;
118218822Sdim  esac
119218822Sdim  # We did not find ourselves, most probably we were run as `sh COMMAND'
120218822Sdim  # in which case we are not to be found in the path.
121218822Sdim  if test "x$as_myself" = x; then
122218822Sdim    as_myself=$0
123218822Sdim  fi
124218822Sdim  if test ! -f "$as_myself"; then
125218822Sdim    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126218822Sdim   { (exit 1); exit 1; }; }
127218822Sdim  fi
128218822Sdim  case $CONFIG_SHELL in
129218822Sdim  '')
130218822Sdim    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131218822Sdimfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132218822Sdimdo
133218822Sdim  IFS=$as_save_IFS
134218822Sdim  test -z "$as_dir" && as_dir=.
135218822Sdim  for as_base in sh bash ksh sh5; do
136218822Sdim	 case $as_dir in
137218822Sdim	 /*)
138218822Sdim	   if ("$as_dir/$as_base" -c '
139218822Sdim  as_lineno_1=$LINENO
140218822Sdim  as_lineno_2=$LINENO
141218822Sdim  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142218822Sdim  test "x$as_lineno_1" != "x$as_lineno_2" &&
143218822Sdim  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144218822Sdim	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145218822Sdim	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146218822Sdim	     CONFIG_SHELL=$as_dir/$as_base
147218822Sdim	     export CONFIG_SHELL
148218822Sdim	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149218822Sdim	   fi;;
150218822Sdim	 esac
151218822Sdim       done
152218822Sdimdone
153218822Sdim;;
154218822Sdim  esac
155218822Sdim
156218822Sdim  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157218822Sdim  # uniformly replaced by the line number.  The first 'sed' inserts a
158218822Sdim  # line-number line before each line; the second 'sed' does the real
159218822Sdim  # work.  The second script uses 'N' to pair each line-number line
160218822Sdim  # with the numbered line, and appends trailing '-' during
161218822Sdim  # substitution so that $LINENO is not a special case at line end.
162218822Sdim  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163218822Sdim  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164218822Sdim  sed '=' <$as_myself |
165218822Sdim    sed '
166218822Sdim      N
167218822Sdim      s,$,-,
168218822Sdim      : loop
169218822Sdim      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170218822Sdim      t loop
171218822Sdim      s,-$,,
172218822Sdim      s,^['$as_cr_digits']*\n,,
173218822Sdim    ' >$as_me.lineno &&
174218822Sdim  chmod +x $as_me.lineno ||
175218822Sdim    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176218822Sdim   { (exit 1); exit 1; }; }
177218822Sdim
178218822Sdim  # Don't try to exec as it changes $[0], causing all sort of problems
179218822Sdim  # (the dirname of $[0] is not the place where we might find the
180218822Sdim  # original and so on.  Autoconf is especially sensible to this).
181218822Sdim  . ./$as_me.lineno
182218822Sdim  # Exit status is that of the last command.
183218822Sdim  exit
184218822Sdim}
185218822Sdim
186218822Sdim
187218822Sdimcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188218822Sdim  *c*,-n*) ECHO_N= ECHO_C='
189218822Sdim' ECHO_T='	' ;;
190218822Sdim  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191218822Sdim  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192218822Sdimesac
193218822Sdim
194218822Sdimif expr a : '\(a\)' >/dev/null 2>&1; then
195218822Sdim  as_expr=expr
196218822Sdimelse
197218822Sdim  as_expr=false
198218822Sdimfi
199218822Sdim
200218822Sdimrm -f conf$$ conf$$.exe conf$$.file
201218822Sdimecho >conf$$.file
202218822Sdimif ln -s conf$$.file conf$$ 2>/dev/null; then
203218822Sdim  # We could just check for DJGPP; but this test a) works b) is more generic
204218822Sdim  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205218822Sdim  if test -f conf$$.exe; then
206218822Sdim    # Don't use ln at all; we don't have any links
207218822Sdim    as_ln_s='cp -p'
208218822Sdim  else
209218822Sdim    as_ln_s='ln -s'
210218822Sdim  fi
211218822Sdimelif ln conf$$.file conf$$ 2>/dev/null; then
212218822Sdim  as_ln_s=ln
213218822Sdimelse
214218822Sdim  as_ln_s='cp -p'
215218822Sdimfi
216218822Sdimrm -f conf$$ conf$$.exe conf$$.file
217218822Sdim
218218822Sdimif mkdir -p . 2>/dev/null; then
219218822Sdim  as_mkdir_p=:
220218822Sdimelse
221218822Sdim  test -d ./-p && rmdir ./-p
222218822Sdim  as_mkdir_p=false
223218822Sdimfi
224218822Sdim
225218822Sdimas_executable_p="test -f"
226218822Sdim
227218822Sdim# Sed expression to map a string onto a valid CPP name.
228218822Sdimas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229218822Sdim
230218822Sdim# Sed expression to map a string onto a valid variable name.
231218822Sdimas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232218822Sdim
233218822Sdim
234218822Sdim# IFS
235218822Sdim# We need space, tab and new line, in precisely that order.
236218822Sdimas_nl='
237218822Sdim'
238218822SdimIFS=" 	$as_nl"
239218822Sdim
240218822Sdim# CDPATH.
241218822Sdim$as_unset CDPATH
242218822Sdim
243218822Sdim
244218822Sdim
245218822Sdim# Check that we are running under the correct shell.
246218822SdimSHELL=${CONFIG_SHELL-/bin/sh}
247218822Sdim
248218822Sdimcase X$lt_ECHO in
249218822SdimX*--fallback-echo)
250218822Sdim  # Remove one level of quotation (which was required for Make).
251218822Sdim  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252218822Sdim  ;;
253218822Sdimesac
254218822Sdim
255218822SdimECHO=${lt_ECHO-echo}
256218822Sdimif test "X$1" = X--no-reexec; then
257218822Sdim  # Discard the --no-reexec flag, and continue.
258218822Sdim  shift
259218822Sdimelif test "X$1" = X--fallback-echo; then
260218822Sdim  # Avoid inline document here, it may be left over
261218822Sdim  :
262218822Sdimelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263218822Sdim  # Yippee, $ECHO works!
264218822Sdim  :
265218822Sdimelse
266218822Sdim  # Restart under the correct shell.
267218822Sdim  exec $SHELL "$0" --no-reexec ${1+"$@"}
268218822Sdimfi
269218822Sdim
270218822Sdimif test "X$1" = X--fallback-echo; then
271218822Sdim  # used as fallback echo
272218822Sdim  shift
273218822Sdim  cat <<_LT_EOF
274218822Sdim$*
275218822Sdim_LT_EOF
276218822Sdim  exit 0
277218822Sdimfi
278218822Sdim
279218822Sdim# The HP-UX ksh and POSIX shell print the target directory to stdout
280218822Sdim# if CDPATH is set.
281218822Sdim(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282218822Sdim
283218822Sdimif test -z "$lt_ECHO"; then
284218822Sdim  if test "X${echo_test_string+set}" != Xset; then
285218822Sdim    # find a string as large as possible, as long as the shell can cope with it
286218822Sdim    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287218822Sdim      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288218822Sdim      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289218822Sdim	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290218822Sdim      then
291218822Sdim        break
292218822Sdim      fi
293218822Sdim    done
294218822Sdim  fi
295218822Sdim
296218822Sdim  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297218822Sdim     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298218822Sdim     test "X$echo_testing_string" = "X$echo_test_string"; then
299218822Sdim    :
300218822Sdim  else
301218822Sdim    # The Solaris, AIX, and Digital Unix default echo programs unquote
302218822Sdim    # backslashes.  This makes it impossible to quote backslashes using
303218822Sdim    #   echo "$something" | sed 's/\\/\\\\/g'
304218822Sdim    #
305218822Sdim    # So, first we look for a working echo in the user's PATH.
306218822Sdim
307218822Sdim    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308218822Sdim    for dir in $PATH /usr/ucb; do
309218822Sdim      IFS="$lt_save_ifs"
310218822Sdim      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311218822Sdim         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312218822Sdim         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313218822Sdim         test "X$echo_testing_string" = "X$echo_test_string"; then
314218822Sdim        ECHO="$dir/echo"
315218822Sdim        break
316218822Sdim      fi
317218822Sdim    done
318218822Sdim    IFS="$lt_save_ifs"
319218822Sdim
320218822Sdim    if test "X$ECHO" = Xecho; then
321218822Sdim      # We didn't find a better echo, so look for alternatives.
322218822Sdim      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323218822Sdim         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324218822Sdim         test "X$echo_testing_string" = "X$echo_test_string"; then
325218822Sdim        # This shell has a builtin print -r that does the trick.
326218822Sdim        ECHO='print -r'
327218822Sdim      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328218822Sdim	   test "X$CONFIG_SHELL" != X/bin/ksh; then
329218822Sdim        # If we have ksh, try running configure again with it.
330218822Sdim        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331218822Sdim        export ORIGINAL_CONFIG_SHELL
332218822Sdim        CONFIG_SHELL=/bin/ksh
333218822Sdim        export CONFIG_SHELL
334218822Sdim        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335218822Sdim      else
336218822Sdim        # Try using printf.
337218822Sdim        ECHO='printf %s\n'
338218822Sdim        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339218822Sdim	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340218822Sdim	   test "X$echo_testing_string" = "X$echo_test_string"; then
341218822Sdim	  # Cool, printf works
342218822Sdim	  :
343218822Sdim        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344218822Sdim	     test "X$echo_testing_string" = 'X\t' &&
345218822Sdim	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346218822Sdim	     test "X$echo_testing_string" = "X$echo_test_string"; then
347218822Sdim	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348218822Sdim	  export CONFIG_SHELL
349218822Sdim	  SHELL="$CONFIG_SHELL"
350218822Sdim	  export SHELL
351218822Sdim	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
352218822Sdim        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353218822Sdim	     test "X$echo_testing_string" = 'X\t' &&
354218822Sdim	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355218822Sdim	     test "X$echo_testing_string" = "X$echo_test_string"; then
356218822Sdim	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
357218822Sdim        else
358218822Sdim	  # maybe with a smaller string...
359218822Sdim	  prev=:
360218822Sdim
361218822Sdim	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362218822Sdim	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363218822Sdim	    then
364218822Sdim	      break
365218822Sdim	    fi
366218822Sdim	    prev="$cmd"
367218822Sdim	  done
368218822Sdim
369218822Sdim	  if test "$prev" != 'sed 50q "$0"'; then
370218822Sdim	    echo_test_string=`eval $prev`
371218822Sdim	    export echo_test_string
372218822Sdim	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373218822Sdim	  else
374218822Sdim	    # Oops.  We lost completely, so just stick with echo.
375218822Sdim	    ECHO=echo
376218822Sdim	  fi
377218822Sdim        fi
378218822Sdim      fi
379218822Sdim    fi
380218822Sdim  fi
381218822Sdimfi
382218822Sdim
383218822Sdim# Copy echo and quote the copy suitably for passing to libtool from
384218822Sdim# the Makefile, instead of quoting the original, which is used later.
385218822Sdimlt_ECHO=$ECHO
386218822Sdimif test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387218822Sdim   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388218822Sdimfi
389218822Sdim
390218822Sdim
391218822Sdim
392218822Sdim
393218822Sdim# Name of the host.
394218822Sdim# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395218822Sdim# so uname gets run too.
396218822Sdimac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397218822Sdim
398218822Sdimexec 6>&1
399218822Sdim
400218822Sdim#
401218822Sdim# Initializations.
402218822Sdim#
40333965Sjdpac_default_prefix=/usr/local
404218822Sdimac_config_libobj_dir=.
405218822Sdimcross_compiling=no
406218822Sdimsubdirs=
407218822SdimMFLAGS=
408218822SdimMAKEFLAGS=
409218822SdimSHELL=${CONFIG_SHELL-/bin/sh}
41033965Sjdp
411218822Sdim# Maximum number of lines to put in a shell here document.
412218822Sdim# This variable seems obsolete.  It should probably be removed, and
413218822Sdim# only ac_max_sed_lines should be used.
414218822Sdim: ${ac_max_here_lines=38}
415218822Sdim
416218822Sdim# Identity of this package.
417218822SdimPACKAGE_NAME=
418218822SdimPACKAGE_TARNAME=
419218822SdimPACKAGE_VERSION=
420218822SdimPACKAGE_STRING=
421218822SdimPACKAGE_BUGREPORT=
422218822Sdim
423218822Sdimac_unique_file="libbfd.c"
424218822Sdim# Factoring default headers for most tests.
425218822Sdimac_includes_default="\
426218822Sdim#include <stdio.h>
427218822Sdim#if HAVE_SYS_TYPES_H
428218822Sdim# include <sys/types.h>
429218822Sdim#endif
430218822Sdim#if HAVE_SYS_STAT_H
431218822Sdim# include <sys/stat.h>
432218822Sdim#endif
433218822Sdim#if STDC_HEADERS
434218822Sdim# include <stdlib.h>
435218822Sdim# include <stddef.h>
436218822Sdim#else
437218822Sdim# if HAVE_STDLIB_H
438218822Sdim#  include <stdlib.h>
439218822Sdim# endif
440218822Sdim#endif
441218822Sdim#if HAVE_STRING_H
442218822Sdim# if !STDC_HEADERS && HAVE_MEMORY_H
443218822Sdim#  include <memory.h>
444218822Sdim# endif
445218822Sdim# include <string.h>
446218822Sdim#endif
447218822Sdim#if HAVE_STRINGS_H
448218822Sdim# include <strings.h>
449218822Sdim#endif
450218822Sdim#if HAVE_INTTYPES_H
451218822Sdim# include <inttypes.h>
452218822Sdim#else
453218822Sdim# if HAVE_STDINT_H
454218822Sdim#  include <stdint.h>
455218822Sdim# endif
456218822Sdim#endif
457218822Sdim#if HAVE_UNISTD_H
458218822Sdim# include <unistd.h>
459218822Sdim#endif"
460218822Sdim
461218822Sdimac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462218822Sdimac_subst_files=''
463218822Sdim
46433965Sjdp# Initialize some variables set by options.
465218822Sdimac_init_help=
466218822Sdimac_init_version=false
46733965Sjdp# The variables have the same names as the options, with
46833965Sjdp# dashes changed to underlines.
469218822Sdimcache_file=/dev/null
47033965Sjdpexec_prefix=NONE
47133965Sjdpno_create=
47233965Sjdpno_recursion=
47333965Sjdpprefix=NONE
47433965Sjdpprogram_prefix=NONE
47533965Sjdpprogram_suffix=NONE
47633965Sjdpprogram_transform_name=s,x,x,
47733965Sjdpsilent=
47833965Sjdpsite=
47933965Sjdpsrcdir=
48033965Sjdpverbose=
48133965Sjdpx_includes=NONE
48233965Sjdpx_libraries=NONE
483218822Sdim
484218822Sdim# Installation directory options.
485218822Sdim# These are left unexpanded so users can "make install exec_prefix=/foo"
486218822Sdim# and all the variables that are supposed to be based on exec_prefix
487218822Sdim# by default will actually change.
488218822Sdim# Use braces instead of parens because sh, perl, etc. also accept them.
48933965Sjdpbindir='${exec_prefix}/bin'
49033965Sjdpsbindir='${exec_prefix}/sbin'
49133965Sjdplibexecdir='${exec_prefix}/libexec'
49233965Sjdpdatadir='${prefix}/share'
49333965Sjdpsysconfdir='${prefix}/etc'
49433965Sjdpsharedstatedir='${prefix}/com'
49533965Sjdplocalstatedir='${prefix}/var'
49633965Sjdplibdir='${exec_prefix}/lib'
49733965Sjdpincludedir='${prefix}/include'
49833965Sjdpoldincludedir='/usr/include'
49933965Sjdpinfodir='${prefix}/info'
50033965Sjdpmandir='${prefix}/man'
50133965Sjdp
50233965Sjdpac_prev=
50333965Sjdpfor ac_option
50433965Sjdpdo
50533965Sjdp  # If the previous option needs an argument, assign it.
50633965Sjdp  if test -n "$ac_prev"; then
50733965Sjdp    eval "$ac_prev=\$ac_option"
50833965Sjdp    ac_prev=
50933965Sjdp    continue
51033965Sjdp  fi
51133965Sjdp
512218822Sdim  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
51333965Sjdp
51433965Sjdp  # Accept the important Cygnus configure options, so we can diagnose typos.
51533965Sjdp
516218822Sdim  case $ac_option in
51733965Sjdp
51833965Sjdp  -bindir | --bindir | --bindi | --bind | --bin | --bi)
51933965Sjdp    ac_prev=bindir ;;
52033965Sjdp  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521218822Sdim    bindir=$ac_optarg ;;
52233965Sjdp
52333965Sjdp  -build | --build | --buil | --bui | --bu)
524218822Sdim    ac_prev=build_alias ;;
52533965Sjdp  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526218822Sdim    build_alias=$ac_optarg ;;
52733965Sjdp
52833965Sjdp  -cache-file | --cache-file | --cache-fil | --cache-fi \
52933965Sjdp  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
53033965Sjdp    ac_prev=cache_file ;;
53133965Sjdp  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
53233965Sjdp  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533218822Sdim    cache_file=$ac_optarg ;;
53433965Sjdp
535218822Sdim  --config-cache | -C)
536218822Sdim    cache_file=config.cache ;;
537218822Sdim
53833965Sjdp  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
53933965Sjdp    ac_prev=datadir ;;
54033965Sjdp  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
54133965Sjdp  | --da=*)
542218822Sdim    datadir=$ac_optarg ;;
54333965Sjdp
54433965Sjdp  -disable-* | --disable-*)
545218822Sdim    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
54633965Sjdp    # Reject names that are not valid shell variable names.
547218822Sdim    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548218822Sdim      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549218822Sdim   { (exit 1); exit 1; }; }
550218822Sdim    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551218822Sdim    eval "enable_$ac_feature=no" ;;
55233965Sjdp
55333965Sjdp  -enable-* | --enable-*)
554218822Sdim    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
55533965Sjdp    # Reject names that are not valid shell variable names.
556218822Sdim    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557218822Sdim      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558218822Sdim   { (exit 1); exit 1; }; }
559218822Sdim    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560218822Sdim    case $ac_option in
561218822Sdim      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
56233965Sjdp      *) ac_optarg=yes ;;
56333965Sjdp    esac
564218822Sdim    eval "enable_$ac_feature='$ac_optarg'" ;;
56533965Sjdp
56633965Sjdp  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
56733965Sjdp  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
56833965Sjdp  | --exec | --exe | --ex)
56933965Sjdp    ac_prev=exec_prefix ;;
57033965Sjdp  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
57133965Sjdp  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
57233965Sjdp  | --exec=* | --exe=* | --ex=*)
573218822Sdim    exec_prefix=$ac_optarg ;;
57433965Sjdp
57533965Sjdp  -gas | --gas | --ga | --g)
57633965Sjdp    # Obsolete; use --with-gas.
57733965Sjdp    with_gas=yes ;;
57833965Sjdp
579218822Sdim  -help | --help | --hel | --he | -h)
580218822Sdim    ac_init_help=long ;;
581218822Sdim  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582218822Sdim    ac_init_help=recursive ;;
583218822Sdim  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584218822Sdim    ac_init_help=short ;;
58533965Sjdp
58633965Sjdp  -host | --host | --hos | --ho)
587218822Sdim    ac_prev=host_alias ;;
58833965Sjdp  -host=* | --host=* | --hos=* | --ho=*)
589218822Sdim    host_alias=$ac_optarg ;;
59033965Sjdp
59133965Sjdp  -includedir | --includedir | --includedi | --included | --include \
59233965Sjdp  | --includ | --inclu | --incl | --inc)
59333965Sjdp    ac_prev=includedir ;;
59433965Sjdp  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
59533965Sjdp  | --includ=* | --inclu=* | --incl=* | --inc=*)
596218822Sdim    includedir=$ac_optarg ;;
59733965Sjdp
59833965Sjdp  -infodir | --infodir | --infodi | --infod | --info | --inf)
59933965Sjdp    ac_prev=infodir ;;
60033965Sjdp  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601218822Sdim    infodir=$ac_optarg ;;
60233965Sjdp
60333965Sjdp  -libdir | --libdir | --libdi | --libd)
60433965Sjdp    ac_prev=libdir ;;
60533965Sjdp  -libdir=* | --libdir=* | --libdi=* | --libd=*)
606218822Sdim    libdir=$ac_optarg ;;
60733965Sjdp
60833965Sjdp  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
60933965Sjdp  | --libexe | --libex | --libe)
61033965Sjdp    ac_prev=libexecdir ;;
61133965Sjdp  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
61233965Sjdp  | --libexe=* | --libex=* | --libe=*)
613218822Sdim    libexecdir=$ac_optarg ;;
61433965Sjdp
61533965Sjdp  -localstatedir | --localstatedir | --localstatedi | --localstated \
61633965Sjdp  | --localstate | --localstat | --localsta | --localst \
61733965Sjdp  | --locals | --local | --loca | --loc | --lo)
61833965Sjdp    ac_prev=localstatedir ;;
61933965Sjdp  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
62033965Sjdp  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
62133965Sjdp  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622218822Sdim    localstatedir=$ac_optarg ;;
62333965Sjdp
62433965Sjdp  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
62533965Sjdp    ac_prev=mandir ;;
62633965Sjdp  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627218822Sdim    mandir=$ac_optarg ;;
62833965Sjdp
62933965Sjdp  -nfp | --nfp | --nf)
63033965Sjdp    # Obsolete; use --without-fp.
63133965Sjdp    with_fp=no ;;
63233965Sjdp
63333965Sjdp  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634218822Sdim  | --no-cr | --no-c | -n)
63533965Sjdp    no_create=yes ;;
63633965Sjdp
63733965Sjdp  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
63833965Sjdp  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
63933965Sjdp    no_recursion=yes ;;
64033965Sjdp
64133965Sjdp  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
64233965Sjdp  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
64333965Sjdp  | --oldin | --oldi | --old | --ol | --o)
64433965Sjdp    ac_prev=oldincludedir ;;
64533965Sjdp  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
64633965Sjdp  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
64733965Sjdp  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648218822Sdim    oldincludedir=$ac_optarg ;;
64933965Sjdp
65033965Sjdp  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
65133965Sjdp    ac_prev=prefix ;;
65233965Sjdp  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653218822Sdim    prefix=$ac_optarg ;;
65433965Sjdp
65533965Sjdp  -program-prefix | --program-prefix | --program-prefi | --program-pref \
65633965Sjdp  | --program-pre | --program-pr | --program-p)
65733965Sjdp    ac_prev=program_prefix ;;
65833965Sjdp  -program-prefix=* | --program-prefix=* | --program-prefi=* \
65933965Sjdp  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660218822Sdim    program_prefix=$ac_optarg ;;
66133965Sjdp
66233965Sjdp  -program-suffix | --program-suffix | --program-suffi | --program-suff \
66333965Sjdp  | --program-suf | --program-su | --program-s)
66433965Sjdp    ac_prev=program_suffix ;;
66533965Sjdp  -program-suffix=* | --program-suffix=* | --program-suffi=* \
66633965Sjdp  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667218822Sdim    program_suffix=$ac_optarg ;;
66833965Sjdp
66933965Sjdp  -program-transform-name | --program-transform-name \
67033965Sjdp  | --program-transform-nam | --program-transform-na \
67133965Sjdp  | --program-transform-n | --program-transform- \
67233965Sjdp  | --program-transform | --program-transfor \
67333965Sjdp  | --program-transfo | --program-transf \
67433965Sjdp  | --program-trans | --program-tran \
67533965Sjdp  | --progr-tra | --program-tr | --program-t)
67633965Sjdp    ac_prev=program_transform_name ;;
67733965Sjdp  -program-transform-name=* | --program-transform-name=* \
67833965Sjdp  | --program-transform-nam=* | --program-transform-na=* \
67933965Sjdp  | --program-transform-n=* | --program-transform-=* \
68033965Sjdp  | --program-transform=* | --program-transfor=* \
68133965Sjdp  | --program-transfo=* | --program-transf=* \
68233965Sjdp  | --program-trans=* | --program-tran=* \
68333965Sjdp  | --progr-tra=* | --program-tr=* | --program-t=*)
684218822Sdim    program_transform_name=$ac_optarg ;;
68533965Sjdp
68633965Sjdp  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
68733965Sjdp  | -silent | --silent | --silen | --sile | --sil)
68833965Sjdp    silent=yes ;;
68933965Sjdp
69033965Sjdp  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
69133965Sjdp    ac_prev=sbindir ;;
69233965Sjdp  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
69333965Sjdp  | --sbi=* | --sb=*)
694218822Sdim    sbindir=$ac_optarg ;;
69533965Sjdp
69633965Sjdp  -sharedstatedir | --sharedstatedir | --sharedstatedi \
69733965Sjdp  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
69833965Sjdp  | --sharedst | --shareds | --shared | --share | --shar \
69933965Sjdp  | --sha | --sh)
70033965Sjdp    ac_prev=sharedstatedir ;;
70133965Sjdp  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
70233965Sjdp  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
70333965Sjdp  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
70433965Sjdp  | --sha=* | --sh=*)
705218822Sdim    sharedstatedir=$ac_optarg ;;
70633965Sjdp
70733965Sjdp  -site | --site | --sit)
70833965Sjdp    ac_prev=site ;;
70933965Sjdp  -site=* | --site=* | --sit=*)
710218822Sdim    site=$ac_optarg ;;
71133965Sjdp
71233965Sjdp  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
71333965Sjdp    ac_prev=srcdir ;;
71433965Sjdp  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715218822Sdim    srcdir=$ac_optarg ;;
71633965Sjdp
71733965Sjdp  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
71833965Sjdp  | --syscon | --sysco | --sysc | --sys | --sy)
71933965Sjdp    ac_prev=sysconfdir ;;
72033965Sjdp  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
72133965Sjdp  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722218822Sdim    sysconfdir=$ac_optarg ;;
72333965Sjdp
72433965Sjdp  -target | --target | --targe | --targ | --tar | --ta | --t)
725218822Sdim    ac_prev=target_alias ;;
72633965Sjdp  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727218822Sdim    target_alias=$ac_optarg ;;
72833965Sjdp
72933965Sjdp  -v | -verbose | --verbose | --verbos | --verbo | --verb)
73033965Sjdp    verbose=yes ;;
73133965Sjdp
732218822Sdim  -version | --version | --versio | --versi | --vers | -V)
733218822Sdim    ac_init_version=: ;;
73433965Sjdp
73533965Sjdp  -with-* | --with-*)
736218822Sdim    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
73733965Sjdp    # Reject names that are not valid shell variable names.
738218822Sdim    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739218822Sdim      { echo "$as_me: error: invalid package name: $ac_package" >&2
740218822Sdim   { (exit 1); exit 1; }; }
74133965Sjdp    ac_package=`echo $ac_package| sed 's/-/_/g'`
742218822Sdim    case $ac_option in
743218822Sdim      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
74433965Sjdp      *) ac_optarg=yes ;;
74533965Sjdp    esac
746218822Sdim    eval "with_$ac_package='$ac_optarg'" ;;
74733965Sjdp
74833965Sjdp  -without-* | --without-*)
749218822Sdim    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
75033965Sjdp    # Reject names that are not valid shell variable names.
751218822Sdim    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752218822Sdim      { echo "$as_me: error: invalid package name: $ac_package" >&2
753218822Sdim   { (exit 1); exit 1; }; }
754218822Sdim    ac_package=`echo $ac_package | sed 's/-/_/g'`
755218822Sdim    eval "with_$ac_package=no" ;;
75633965Sjdp
75733965Sjdp  --x)
75833965Sjdp    # Obsolete; use --with-x.
75933965Sjdp    with_x=yes ;;
76033965Sjdp
76133965Sjdp  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
76233965Sjdp  | --x-incl | --x-inc | --x-in | --x-i)
76333965Sjdp    ac_prev=x_includes ;;
76433965Sjdp  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
76533965Sjdp  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766218822Sdim    x_includes=$ac_optarg ;;
76733965Sjdp
76833965Sjdp  -x-libraries | --x-libraries | --x-librarie | --x-librari \
76933965Sjdp  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
77033965Sjdp    ac_prev=x_libraries ;;
77133965Sjdp  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
77233965Sjdp  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773218822Sdim    x_libraries=$ac_optarg ;;
77433965Sjdp
775218822Sdim  -*) { echo "$as_me: error: unrecognized option: $ac_option
776218822SdimTry \`$0 --help' for more information." >&2
777218822Sdim   { (exit 1); exit 1; }; }
77833965Sjdp    ;;
77933965Sjdp
780218822Sdim  *=*)
781218822Sdim    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782218822Sdim    # Reject names that are not valid shell variable names.
783218822Sdim    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784218822Sdim      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785218822Sdim   { (exit 1); exit 1; }; }
786218822Sdim    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787218822Sdim    eval "$ac_envvar='$ac_optarg'"
788218822Sdim    export $ac_envvar ;;
789218822Sdim
79033965Sjdp  *)
791218822Sdim    # FIXME: should be removed in autoconf 3.0.
792218822Sdim    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793218822Sdim    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794218822Sdim      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795218822Sdim    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
79633965Sjdp    ;;
79733965Sjdp
79833965Sjdp  esac
79933965Sjdpdone
80033965Sjdp
80133965Sjdpif test -n "$ac_prev"; then
802218822Sdim  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803218822Sdim  { echo "$as_me: error: missing argument to $ac_option" >&2
804218822Sdim   { (exit 1); exit 1; }; }
80533965Sjdpfi
80633965Sjdp
807218822Sdim# Be sure to have absolute paths.
808218822Sdimfor ac_var in exec_prefix prefix
809218822Sdimdo
810218822Sdim  eval ac_val=$`echo $ac_var`
811218822Sdim  case $ac_val in
812218822Sdim    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813218822Sdim    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814218822Sdim   { (exit 1); exit 1; }; };;
815218822Sdim  esac
816218822Sdimdone
81733965Sjdp
818218822Sdim# Be sure to have absolute paths.
819218822Sdimfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820218822Sdim	      localstatedir libdir includedir oldincludedir infodir mandir
82133965Sjdpdo
822218822Sdim  eval ac_val=$`echo $ac_var`
823218822Sdim  case $ac_val in
824218822Sdim    [\\/$]* | ?:[\\/]* ) ;;
825218822Sdim    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826218822Sdim   { (exit 1); exit 1; }; };;
82733965Sjdp  esac
82833965Sjdpdone
82933965Sjdp
830218822Sdim# There might be people who depend on the old broken behavior: `$host'
831218822Sdim# used to hold the argument of --host etc.
832218822Sdim# FIXME: To remove some day.
833218822Sdimbuild=$build_alias
834218822Sdimhost=$host_alias
835218822Sdimtarget=$target_alias
83633965Sjdp
837218822Sdim# FIXME: To remove some day.
838218822Sdimif test "x$host_alias" != x; then
839218822Sdim  if test "x$build_alias" = x; then
840218822Sdim    cross_compiling=maybe
841218822Sdim    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842218822Sdim    If a cross compiler is detected then cross compile mode will be used." >&2
843218822Sdim  elif test "x$build_alias" != "x$host_alias"; then
844218822Sdim    cross_compiling=yes
845218822Sdim  fi
846218822Sdimfi
84733965Sjdp
848218822Sdimac_tool_prefix=
849218822Sdimtest -n "$host_alias" && ac_tool_prefix=$host_alias-
85033965Sjdp
851218822Sdimtest "$silent" = yes && exec 6>/dev/null
852218822Sdim
853218822Sdim
85433965Sjdp# Find the source files, if location was not specified.
85533965Sjdpif test -z "$srcdir"; then
85633965Sjdp  ac_srcdir_defaulted=yes
85733965Sjdp  # Try the directory containing this script, then its parent.
858218822Sdim  ac_confdir=`(dirname "$0") 2>/dev/null ||
859218822Sdim$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860218822Sdim	 X"$0" : 'X\(//\)[^/]' \| \
861218822Sdim	 X"$0" : 'X\(//\)$' \| \
862218822Sdim	 X"$0" : 'X\(/\)' \| \
863218822Sdim	 .     : '\(.\)' 2>/dev/null ||
864218822Sdimecho X"$0" |
865218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
868218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
869218822Sdim  	  s/.*/./; q'`
87033965Sjdp  srcdir=$ac_confdir
87133965Sjdp  if test ! -r $srcdir/$ac_unique_file; then
87233965Sjdp    srcdir=..
87333965Sjdp  fi
87433965Sjdpelse
87533965Sjdp  ac_srcdir_defaulted=no
87633965Sjdpfi
87733965Sjdpif test ! -r $srcdir/$ac_unique_file; then
87833965Sjdp  if test "$ac_srcdir_defaulted" = yes; then
879218822Sdim    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880218822Sdim   { (exit 1); exit 1; }; }
88133965Sjdp  else
882218822Sdim    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883218822Sdim   { (exit 1); exit 1; }; }
88433965Sjdp  fi
88533965Sjdpfi
886218822Sdim(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887218822Sdim  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888218822Sdim   { (exit 1); exit 1; }; }
889218822Sdimsrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890218822Sdimac_env_build_alias_set=${build_alias+set}
891218822Sdimac_env_build_alias_value=$build_alias
892218822Sdimac_cv_env_build_alias_set=${build_alias+set}
893218822Sdimac_cv_env_build_alias_value=$build_alias
894218822Sdimac_env_host_alias_set=${host_alias+set}
895218822Sdimac_env_host_alias_value=$host_alias
896218822Sdimac_cv_env_host_alias_set=${host_alias+set}
897218822Sdimac_cv_env_host_alias_value=$host_alias
898218822Sdimac_env_target_alias_set=${target_alias+set}
899218822Sdimac_env_target_alias_value=$target_alias
900218822Sdimac_cv_env_target_alias_set=${target_alias+set}
901218822Sdimac_cv_env_target_alias_value=$target_alias
902218822Sdimac_env_CC_set=${CC+set}
903218822Sdimac_env_CC_value=$CC
904218822Sdimac_cv_env_CC_set=${CC+set}
905218822Sdimac_cv_env_CC_value=$CC
906218822Sdimac_env_CFLAGS_set=${CFLAGS+set}
907218822Sdimac_env_CFLAGS_value=$CFLAGS
908218822Sdimac_cv_env_CFLAGS_set=${CFLAGS+set}
909218822Sdimac_cv_env_CFLAGS_value=$CFLAGS
910218822Sdimac_env_LDFLAGS_set=${LDFLAGS+set}
911218822Sdimac_env_LDFLAGS_value=$LDFLAGS
912218822Sdimac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913218822Sdimac_cv_env_LDFLAGS_value=$LDFLAGS
914218822Sdimac_env_CPPFLAGS_set=${CPPFLAGS+set}
915218822Sdimac_env_CPPFLAGS_value=$CPPFLAGS
916218822Sdimac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917218822Sdimac_cv_env_CPPFLAGS_value=$CPPFLAGS
918218822Sdimac_env_CPP_set=${CPP+set}
919218822Sdimac_env_CPP_value=$CPP
920218822Sdimac_cv_env_CPP_set=${CPP+set}
921218822Sdimac_cv_env_CPP_value=$CPP
92233965Sjdp
923218822Sdim#
924218822Sdim# Report the --help message.
925218822Sdim#
926218822Sdimif test "$ac_init_help" = "long"; then
927218822Sdim  # Omit some internal or obsolete options to make the list less imposing.
928218822Sdim  # This message is too long to be a string in the A/UX 3.1 sh.
929218822Sdim  cat <<_ACEOF
930218822Sdim\`configure' configures this package to adapt to many kinds of systems.
931218822Sdim
932218822SdimUsage: $0 [OPTION]... [VAR=VALUE]...
933218822Sdim
934218822SdimTo assign environment variables (e.g., CC, CFLAGS...), specify them as
935218822SdimVAR=VALUE.  See below for descriptions of some of the useful variables.
936218822Sdim
937218822SdimDefaults for the options are specified in brackets.
938218822Sdim
939218822SdimConfiguration:
940218822Sdim  -h, --help              display this help and exit
941218822Sdim      --help=short        display options specific to this package
942218822Sdim      --help=recursive    display the short help of all the included packages
943218822Sdim  -V, --version           display version information and exit
944218822Sdim  -q, --quiet, --silent   do not print \`checking...' messages
945218822Sdim      --cache-file=FILE   cache test results in FILE [disabled]
946218822Sdim  -C, --config-cache      alias for \`--cache-file=config.cache'
947218822Sdim  -n, --no-create         do not create output files
948218822Sdim      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949218822Sdim
950218822Sdim_ACEOF
951218822Sdim
952218822Sdim  cat <<_ACEOF
953218822SdimInstallation directories:
954218822Sdim  --prefix=PREFIX         install architecture-independent files in PREFIX
955218822Sdim			  [$ac_default_prefix]
956218822Sdim  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957218822Sdim			  [PREFIX]
958218822Sdim
959218822SdimBy default, \`make install' will install all the files in
960218822Sdim\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961218822Sdiman installation prefix other than \`$ac_default_prefix' using \`--prefix',
962218822Sdimfor instance \`--prefix=\$HOME'.
963218822Sdim
964218822SdimFor better control, use the options below.
965218822Sdim
966218822SdimFine tuning of the installation directories:
967218822Sdim  --bindir=DIR           user executables [EPREFIX/bin]
968218822Sdim  --sbindir=DIR          system admin executables [EPREFIX/sbin]
969218822Sdim  --libexecdir=DIR       program executables [EPREFIX/libexec]
970218822Sdim  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971218822Sdim  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972218822Sdim  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973218822Sdim  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974218822Sdim  --libdir=DIR           object code libraries [EPREFIX/lib]
975218822Sdim  --includedir=DIR       C header files [PREFIX/include]
976218822Sdim  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977218822Sdim  --infodir=DIR          info documentation [PREFIX/info]
978218822Sdim  --mandir=DIR           man documentation [PREFIX/man]
979218822Sdim_ACEOF
980218822Sdim
981218822Sdim  cat <<\_ACEOF
982218822Sdim
983218822SdimProgram names:
984218822Sdim  --program-prefix=PREFIX            prepend PREFIX to installed program names
985218822Sdim  --program-suffix=SUFFIX            append SUFFIX to installed program names
986218822Sdim  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987218822Sdim
988218822SdimSystem types:
989218822Sdim  --build=BUILD     configure for building on BUILD [guessed]
990218822Sdim  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991218822Sdim  --target=TARGET   configure for building compilers for TARGET [HOST]
992218822Sdim_ACEOF
993218822Sdimfi
994218822Sdim
995218822Sdimif test -n "$ac_init_help"; then
996218822Sdim
997218822Sdim  cat <<\_ACEOF
998218822Sdim
999218822SdimOptional Features:
1000218822Sdim  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001218822Sdim  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002218822Sdim  --disable-dependency-tracking  speeds up one-time build
1003218822Sdim  --enable-dependency-tracking   do not reject slow dependency extractors
1004218822Sdim  --enable-shared[=PKGS]
1005218822Sdim                          build shared libraries [default=no]
1006218822Sdim  --enable-static[=PKGS]
1007218822Sdim                          build static libraries [default=yes]
1008218822Sdim  --enable-fast-install[=PKGS]
1009218822Sdim                          optimize for fast installation [default=yes]
1010218822Sdim  --disable-libtool-lock  avoid locking (might break parallel builds)
1011218822Sdim  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1012218822Sdim  --enable-targets        alternative target configurations
1013218822Sdim  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1014218822Sdim  --enable-secureplt      Default to creating read-only plt entries
1015218822Sdim  --enable-werror         treat compile warnings as errors
1016218822Sdim  --enable-build-warnings enable build-time compiler warnings
1017218822Sdim  --enable-maintainer-mode  enable make rules and dependencies not useful
1018218822Sdim			  (and sometimes confusing) to the casual installer
1019218822Sdim  --enable-install-libbfd controls installation of libbfd and related headers
1020218822Sdim  --disable-nls           do not use Native Language Support
1021218822Sdim
1022218822SdimOptional Packages:
1023218822Sdim  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1024218822Sdim  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1025218822Sdim  --with-pic              try to use only PIC/non-PIC objects [default=use
1026218822Sdim                          both]
1027218822Sdim  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1028218822Sdim  --with-mmap             try using mmap for BFD input files if available
1029218822Sdim  --with-separate-debug-dir=DIR
1030218822Sdim                          Look for global separate debug info in DIR
1031218822Sdim                          [default=LIBDIR/debug]
1032218822Sdim  --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1033218822Sdim                          Binutils"
1034218822Sdim  --with-bugurl=URL       Direct users to URL to report a bug
1035218822Sdim
1036218822SdimSome influential environment variables:
1037218822Sdim  CC          C compiler command
1038218822Sdim  CFLAGS      C compiler flags
1039218822Sdim  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1040218822Sdim              nonstandard directory <lib dir>
1041218822Sdim  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042218822Sdim              headers in a nonstandard directory <include dir>
1043218822Sdim  CPP         C preprocessor
1044218822Sdim
1045218822SdimUse these variables to override the choices made by `configure' or to help
1046218822Sdimit to find libraries and programs with nonstandard names/locations.
1047218822Sdim
1048218822Sdim_ACEOF
1049218822Sdimfi
1050218822Sdim
1051218822Sdimif test "$ac_init_help" = "recursive"; then
1052218822Sdim  # If there are subdirs, report their specific --help.
1053218822Sdim  ac_popdir=`pwd`
1054218822Sdim  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055218822Sdim    test -d $ac_dir || continue
1056218822Sdim    ac_builddir=.
1057218822Sdim
1058218822Sdimif test "$ac_dir" != .; then
1059218822Sdim  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060218822Sdim  # A "../" for each directory in $ac_dir_suffix.
1061218822Sdim  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062218822Sdimelse
1063218822Sdim  ac_dir_suffix= ac_top_builddir=
1064218822Sdimfi
1065218822Sdim
1066218822Sdimcase $srcdir in
1067218822Sdim  .)  # No --srcdir option.  We are building in place.
1068218822Sdim    ac_srcdir=.
1069218822Sdim    if test -z "$ac_top_builddir"; then
1070218822Sdim       ac_top_srcdir=.
1071218822Sdim    else
1072218822Sdim       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073218822Sdim    fi ;;
1074218822Sdim  [\\/]* | ?:[\\/]* )  # Absolute path.
1075218822Sdim    ac_srcdir=$srcdir$ac_dir_suffix;
1076218822Sdim    ac_top_srcdir=$srcdir ;;
1077218822Sdim  *) # Relative path.
1078218822Sdim    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079218822Sdim    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080218822Sdimesac
1081218822Sdim
1082218822Sdim# Do not use `cd foo && pwd` to compute absolute paths, because
1083218822Sdim# the directories may not exist.
1084218822Sdimcase `pwd` in
1085218822Sdim.) ac_abs_builddir="$ac_dir";;
1086218822Sdim*)
1087218822Sdim  case "$ac_dir" in
1088218822Sdim  .) ac_abs_builddir=`pwd`;;
1089218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090218822Sdim  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1091218822Sdim  esac;;
1092218822Sdimesac
1093218822Sdimcase $ac_abs_builddir in
1094218822Sdim.) ac_abs_top_builddir=${ac_top_builddir}.;;
1095218822Sdim*)
1096218822Sdim  case ${ac_top_builddir}. in
1097218822Sdim  .) ac_abs_top_builddir=$ac_abs_builddir;;
1098218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099218822Sdim  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1100218822Sdim  esac;;
1101218822Sdimesac
1102218822Sdimcase $ac_abs_builddir in
1103218822Sdim.) ac_abs_srcdir=$ac_srcdir;;
1104218822Sdim*)
1105218822Sdim  case $ac_srcdir in
1106218822Sdim  .) ac_abs_srcdir=$ac_abs_builddir;;
1107218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108218822Sdim  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1109218822Sdim  esac;;
1110218822Sdimesac
1111218822Sdimcase $ac_abs_builddir in
1112218822Sdim.) ac_abs_top_srcdir=$ac_top_srcdir;;
1113218822Sdim*)
1114218822Sdim  case $ac_top_srcdir in
1115218822Sdim  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1116218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117218822Sdim  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1118218822Sdim  esac;;
1119218822Sdimesac
1120218822Sdim
1121218822Sdim    cd $ac_dir
1122218822Sdim    # Check for guested configure; otherwise get Cygnus style configure.
1123218822Sdim    if test -f $ac_srcdir/configure.gnu; then
1124218822Sdim      echo
1125218822Sdim      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1126218822Sdim    elif test -f $ac_srcdir/configure; then
1127218822Sdim      echo
1128218822Sdim      $SHELL $ac_srcdir/configure  --help=recursive
1129218822Sdim    elif test -f $ac_srcdir/configure.ac ||
1130218822Sdim	   test -f $ac_srcdir/configure.in; then
1131218822Sdim      echo
1132218822Sdim      $ac_configure --help
1133218822Sdim    else
1134218822Sdim      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135218822Sdim    fi
1136218822Sdim    cd $ac_popdir
1137218822Sdim  done
1138218822Sdimfi
1139218822Sdim
1140218822Sdimtest -n "$ac_init_help" && exit 0
1141218822Sdimif $ac_init_version; then
1142218822Sdim  cat <<\_ACEOF
1143218822Sdim
1144218822SdimCopyright (C) 2003 Free Software Foundation, Inc.
1145218822SdimThis configure script is free software; the Free Software Foundation
1146218822Sdimgives unlimited permission to copy, distribute and modify it.
1147218822Sdim_ACEOF
1148218822Sdim  exit 0
1149218822Sdimfi
1150218822Sdimexec 5>config.log
1151218822Sdimcat >&5 <<_ACEOF
1152218822SdimThis file contains any messages produced by compilers while
1153218822Sdimrunning configure, to aid debugging if configure makes a mistake.
1154218822Sdim
1155218822SdimIt was created by $as_me, which was
1156218822Sdimgenerated by GNU Autoconf 2.59.  Invocation command line was
1157218822Sdim
1158218822Sdim  $ $0 $@
1159218822Sdim
1160218822Sdim_ACEOF
1161218822Sdim{
1162218822Sdimcat <<_ASUNAME
1163218822Sdim## --------- ##
1164218822Sdim## Platform. ##
1165218822Sdim## --------- ##
1166218822Sdim
1167218822Sdimhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168218822Sdimuname -m = `(uname -m) 2>/dev/null || echo unknown`
1169218822Sdimuname -r = `(uname -r) 2>/dev/null || echo unknown`
1170218822Sdimuname -s = `(uname -s) 2>/dev/null || echo unknown`
1171218822Sdimuname -v = `(uname -v) 2>/dev/null || echo unknown`
1172218822Sdim
1173218822Sdim/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174218822Sdim/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1175218822Sdim
1176218822Sdim/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1177218822Sdim/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1178218822Sdim/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179218822Sdimhostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1180218822Sdim/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1181218822Sdim/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1182218822Sdim/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1183218822Sdim
1184218822Sdim_ASUNAME
1185218822Sdim
1186218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187218822Sdimfor as_dir in $PATH
1188218822Sdimdo
1189218822Sdim  IFS=$as_save_IFS
1190218822Sdim  test -z "$as_dir" && as_dir=.
1191218822Sdim  echo "PATH: $as_dir"
1192218822Sdimdone
1193218822Sdim
1194218822Sdim} >&5
1195218822Sdim
1196218822Sdimcat >&5 <<_ACEOF
1197218822Sdim
1198218822Sdim
1199218822Sdim## ----------- ##
1200218822Sdim## Core tests. ##
1201218822Sdim## ----------- ##
1202218822Sdim
1203218822Sdim_ACEOF
1204218822Sdim
1205218822Sdim
1206218822Sdim# Keep a trace of the command line.
1207218822Sdim# Strip out --no-create and --no-recursion so they do not pile up.
1208218822Sdim# Strip out --silent because we don't want to record it for future runs.
1209218822Sdim# Also quote any args containing shell meta-characters.
1210218822Sdim# Make two passes to allow for proper duplicate-argument suppression.
1211218822Sdimac_configure_args=
1212218822Sdimac_configure_args0=
1213218822Sdimac_configure_args1=
1214218822Sdimac_sep=
1215218822Sdimac_must_keep_next=false
1216218822Sdimfor ac_pass in 1 2
1217218822Sdimdo
1218218822Sdim  for ac_arg
1219218822Sdim  do
1220218822Sdim    case $ac_arg in
1221218822Sdim    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222218822Sdim    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223218822Sdim    | -silent | --silent | --silen | --sile | --sil)
1224218822Sdim      continue ;;
1225218822Sdim    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226218822Sdim      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227218822Sdim    esac
1228218822Sdim    case $ac_pass in
1229218822Sdim    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230218822Sdim    2)
1231218822Sdim      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232218822Sdim      if test $ac_must_keep_next = true; then
1233218822Sdim	ac_must_keep_next=false # Got value, back to normal.
1234218822Sdim      else
1235218822Sdim	case $ac_arg in
1236218822Sdim	  *=* | --config-cache | -C | -disable-* | --disable-* \
1237218822Sdim	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238218822Sdim	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239218822Sdim	  | -with-* | --with-* | -without-* | --without-* | --x)
1240218822Sdim	    case "$ac_configure_args0 " in
1241218822Sdim	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242218822Sdim	    esac
1243218822Sdim	    ;;
1244218822Sdim	  -* ) ac_must_keep_next=true ;;
1245218822Sdim	esac
1246218822Sdim      fi
1247218822Sdim      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248218822Sdim      # Get rid of the leading space.
1249218822Sdim      ac_sep=" "
1250218822Sdim      ;;
1251218822Sdim    esac
1252218822Sdim  done
1253218822Sdimdone
1254218822Sdim$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255218822Sdim$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256218822Sdim
1257218822Sdim# When interrupted or exit'd, cleanup temporary files, and complete
1258218822Sdim# config.log.  We remove comments because anyway the quotes in there
1259218822Sdim# would cause problems or look ugly.
1260218822Sdim# WARNING: Be sure not to use single quotes in there, as some shells,
1261218822Sdim# such as our DU 5.0 friend, will then `close' the trap.
1262218822Sdimtrap 'exit_status=$?
1263218822Sdim  # Save into config.log some information that might help in debugging.
1264218822Sdim  {
1265218822Sdim    echo
1266218822Sdim
1267218822Sdim    cat <<\_ASBOX
1268218822Sdim## ---------------- ##
1269218822Sdim## Cache variables. ##
1270218822Sdim## ---------------- ##
1271218822Sdim_ASBOX
1272218822Sdim    echo
1273218822Sdim    # The following way of writing the cache mishandles newlines in values,
1274218822Sdim{
1275218822Sdim  (set) 2>&1 |
1276218822Sdim    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277218822Sdim    *ac_space=\ *)
1278218822Sdim      sed -n \
1279218822Sdim	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280218822Sdim	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1281218822Sdim      ;;
1282218822Sdim    *)
1283218822Sdim      sed -n \
1284218822Sdim	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285218822Sdim      ;;
1286218822Sdim    esac;
1287218822Sdim}
1288218822Sdim    echo
1289218822Sdim
1290218822Sdim    cat <<\_ASBOX
1291218822Sdim## ----------------- ##
1292218822Sdim## Output variables. ##
1293218822Sdim## ----------------- ##
1294218822Sdim_ASBOX
1295218822Sdim    echo
1296218822Sdim    for ac_var in $ac_subst_vars
1297218822Sdim    do
1298218822Sdim      eval ac_val=$`echo $ac_var`
1299218822Sdim      echo "$ac_var='"'"'$ac_val'"'"'"
1300218822Sdim    done | sort
1301218822Sdim    echo
1302218822Sdim
1303218822Sdim    if test -n "$ac_subst_files"; then
1304218822Sdim      cat <<\_ASBOX
1305218822Sdim## ------------- ##
1306218822Sdim## Output files. ##
1307218822Sdim## ------------- ##
1308218822Sdim_ASBOX
1309218822Sdim      echo
1310218822Sdim      for ac_var in $ac_subst_files
1311218822Sdim      do
1312218822Sdim	eval ac_val=$`echo $ac_var`
1313218822Sdim	echo "$ac_var='"'"'$ac_val'"'"'"
1314218822Sdim      done | sort
1315218822Sdim      echo
1316218822Sdim    fi
1317218822Sdim
1318218822Sdim    if test -s confdefs.h; then
1319218822Sdim      cat <<\_ASBOX
1320218822Sdim## ----------- ##
1321218822Sdim## confdefs.h. ##
1322218822Sdim## ----------- ##
1323218822Sdim_ASBOX
1324218822Sdim      echo
1325218822Sdim      sed "/^$/d" confdefs.h | sort
1326218822Sdim      echo
1327218822Sdim    fi
1328218822Sdim    test "$ac_signal" != 0 &&
1329218822Sdim      echo "$as_me: caught signal $ac_signal"
1330218822Sdim    echo "$as_me: exit $exit_status"
1331218822Sdim  } >&5
1332218822Sdim  rm -f core *.core &&
1333218822Sdim  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334218822Sdim    exit $exit_status
1335218822Sdim     ' 0
1336218822Sdimfor ac_signal in 1 2 13 15; do
1337218822Sdim  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338218822Sdimdone
1339218822Sdimac_signal=0
1340218822Sdim
1341218822Sdim# confdefs.h avoids OS command line length limits that DEFS can exceed.
1342218822Sdimrm -rf conftest* confdefs.h
1343218822Sdim# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344218822Sdimecho >confdefs.h
1345218822Sdim
1346218822Sdim# Predefined preprocessor variables.
1347218822Sdim
1348218822Sdimcat >>confdefs.h <<_ACEOF
1349218822Sdim#define PACKAGE_NAME "$PACKAGE_NAME"
1350218822Sdim_ACEOF
1351218822Sdim
1352218822Sdim
1353218822Sdimcat >>confdefs.h <<_ACEOF
1354218822Sdim#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355218822Sdim_ACEOF
1356218822Sdim
1357218822Sdim
1358218822Sdimcat >>confdefs.h <<_ACEOF
1359218822Sdim#define PACKAGE_VERSION "$PACKAGE_VERSION"
1360218822Sdim_ACEOF
1361218822Sdim
1362218822Sdim
1363218822Sdimcat >>confdefs.h <<_ACEOF
1364218822Sdim#define PACKAGE_STRING "$PACKAGE_STRING"
1365218822Sdim_ACEOF
1366218822Sdim
1367218822Sdim
1368218822Sdimcat >>confdefs.h <<_ACEOF
1369218822Sdim#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370218822Sdim_ACEOF
1371218822Sdim
1372218822Sdim
1373218822Sdim# Let the site file select an alternate cache file if it wants to.
137433965Sjdp# Prefer explicitly selected file to automatically selected ones.
137592828Sobrienif test -z "$CONFIG_SITE"; then
137692828Sobrien  if test "x$prefix" != xNONE; then
137792828Sobrien    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
137892828Sobrien  else
137992828Sobrien    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
138033965Sjdp  fi
138133965Sjdpfi
138233965Sjdpfor ac_site_file in $CONFIG_SITE; do
138333965Sjdp  if test -r "$ac_site_file"; then
1384218822Sdim    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385218822Sdimecho "$as_me: loading site script $ac_site_file" >&6;}
1386218822Sdim    sed 's/^/| /' "$ac_site_file" >&5
138733965Sjdp    . "$ac_site_file"
138833965Sjdp  fi
138933965Sjdpdone
139033965Sjdp
139133965Sjdpif test -r "$cache_file"; then
1392218822Sdim  # Some versions of bash will fail to source /dev/null (special
1393218822Sdim  # files actually), so we avoid doing that.
1394218822Sdim  if test -f "$cache_file"; then
1395218822Sdim    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396218822Sdimecho "$as_me: loading cache $cache_file" >&6;}
1397218822Sdim    case $cache_file in
1398218822Sdim      [\\/]* | ?:[\\/]* ) . $cache_file;;
1399218822Sdim      *)                      . ./$cache_file;;
1400218822Sdim    esac
1401218822Sdim  fi
140233965Sjdpelse
1403218822Sdim  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404218822Sdimecho "$as_me: creating cache $cache_file" >&6;}
1405218822Sdim  >$cache_file
140633965Sjdpfi
140733965Sjdp
1408218822Sdim# Check that the precious variables saved in the cache have kept the same
1409218822Sdim# value.
1410218822Sdimac_cache_corrupted=false
1411218822Sdimfor ac_var in `(set) 2>&1 |
1412218822Sdim	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413218822Sdim  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414218822Sdim  eval ac_new_set=\$ac_env_${ac_var}_set
1415218822Sdim  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416218822Sdim  eval ac_new_val="\$ac_env_${ac_var}_value"
1417218822Sdim  case $ac_old_set,$ac_new_set in
1418218822Sdim    set,)
1419218822Sdim      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420218822Sdimecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421218822Sdim      ac_cache_corrupted=: ;;
1422218822Sdim    ,set)
1423218822Sdim      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424218822Sdimecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425218822Sdim      ac_cache_corrupted=: ;;
1426218822Sdim    ,);;
1427218822Sdim    *)
1428218822Sdim      if test "x$ac_old_val" != "x$ac_new_val"; then
1429218822Sdim	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430218822Sdimecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431218822Sdim	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1432218822Sdimecho "$as_me:   former value:  $ac_old_val" >&2;}
1433218822Sdim	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1434218822Sdimecho "$as_me:   current value: $ac_new_val" >&2;}
1435218822Sdim	ac_cache_corrupted=:
1436218822Sdim      fi;;
1437218822Sdim  esac
1438218822Sdim  # Pass precious variables to config.status.
1439218822Sdim  if test "$ac_new_set" = set; then
1440218822Sdim    case $ac_new_val in
1441218822Sdim    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442218822Sdim      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443218822Sdim    *) ac_arg=$ac_var=$ac_new_val ;;
1444218822Sdim    esac
1445218822Sdim    case " $ac_configure_args " in
1446218822Sdim      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1447218822Sdim      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1448218822Sdim    esac
1449218822Sdim  fi
1450218822Sdimdone
1451218822Sdimif $ac_cache_corrupted; then
1452218822Sdim  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453218822Sdimecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1454218822Sdim  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455218822Sdimecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456218822Sdim   { (exit 1); exit 1; }; }
1457218822Sdimfi
1458218822Sdim
145933965Sjdpac_ext=c
146033965Sjdpac_cpp='$CPP $CPPFLAGS'
1461218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
146433965Sjdp
146533965Sjdp
146633965Sjdp
146733965Sjdp
146877298Sobrien
146977298Sobrien
147077298Sobrien
147177298Sobrien
147277298Sobrien
1473218822Sdim
1474218822Sdim
1475218822Sdim
1476218822Sdim
1477218822Sdim
1478218822Sdim
1479218822Sdim
1480218822Sdim
1481218822Sdim
1482218822Sdim
1483218822Sdim
1484218822Sdim
148533965Sjdpac_aux_dir=
148638889Sjdpfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
148733965Sjdp  if test -f $ac_dir/install-sh; then
148833965Sjdp    ac_aux_dir=$ac_dir
148933965Sjdp    ac_install_sh="$ac_aux_dir/install-sh -c"
149033965Sjdp    break
149133965Sjdp  elif test -f $ac_dir/install.sh; then
149233965Sjdp    ac_aux_dir=$ac_dir
149333965Sjdp    ac_install_sh="$ac_aux_dir/install.sh -c"
149433965Sjdp    break
1495218822Sdim  elif test -f $ac_dir/shtool; then
1496218822Sdim    ac_aux_dir=$ac_dir
1497218822Sdim    ac_install_sh="$ac_aux_dir/shtool install -c"
1498218822Sdim    break
149933965Sjdp  fi
150033965Sjdpdone
150133965Sjdpif test -z "$ac_aux_dir"; then
1502218822Sdim  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1503218822Sdimecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1504218822Sdim   { (exit 1); exit 1; }; }
150533965Sjdpfi
1506218822Sdimac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507218822Sdimac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508218822Sdimac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
150933965Sjdp
1510218822Sdim# Make sure we can run config.sub.
1511218822Sdim$ac_config_sub sun4 >/dev/null 2>&1 ||
1512218822Sdim  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1513218822Sdimecho "$as_me: error: cannot run $ac_config_sub" >&2;}
1514218822Sdim   { (exit 1); exit 1; }; }
151533965Sjdp
1516218822Sdimecho "$as_me:$LINENO: checking build system type" >&5
1517218822Sdimecho $ECHO_N "checking build system type... $ECHO_C" >&6
1518218822Sdimif test "${ac_cv_build+set}" = set; then
1519218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1520218822Sdimelse
1521218822Sdim  ac_cv_build_alias=$build_alias
1522218822Sdimtest -z "$ac_cv_build_alias" &&
1523218822Sdim  ac_cv_build_alias=`$ac_config_guess`
1524218822Sdimtest -z "$ac_cv_build_alias" &&
1525218822Sdim  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1526218822Sdimecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
1527218822Sdim   { (exit 1); exit 1; }; }
1528218822Sdimac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1529218822Sdim  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1530218822Sdimecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1531218822Sdim   { (exit 1); exit 1; }; }
153233965Sjdp
1533218822Sdimfi
1534218822Sdimecho "$as_me:$LINENO: result: $ac_cv_build" >&5
1535218822Sdimecho "${ECHO_T}$ac_cv_build" >&6
1536218822Sdimbuild=$ac_cv_build
1537218822Sdimbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1538218822Sdimbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1539218822Sdimbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1540218822Sdim
1541218822Sdim
1542218822Sdimecho "$as_me:$LINENO: checking host system type" >&5
1543218822Sdimecho $ECHO_N "checking host system type... $ECHO_C" >&6
1544218822Sdimif test "${ac_cv_host+set}" = set; then
1545218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1546218822Sdimelse
1547218822Sdim  ac_cv_host_alias=$host_alias
1548218822Sdimtest -z "$ac_cv_host_alias" &&
1549218822Sdim  ac_cv_host_alias=$ac_cv_build_alias
1550218822Sdimac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1551218822Sdim  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1552218822Sdimecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1553218822Sdim   { (exit 1); exit 1; }; }
1554218822Sdim
1555218822Sdimfi
1556218822Sdimecho "$as_me:$LINENO: result: $ac_cv_host" >&5
1557218822Sdimecho "${ECHO_T}$ac_cv_host" >&6
1558218822Sdimhost=$ac_cv_host
1559218822Sdimhost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560218822Sdimhost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561218822Sdimhost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1562218822Sdim
1563218822Sdim
1564218822Sdimecho "$as_me:$LINENO: checking target system type" >&5
1565218822Sdimecho $ECHO_N "checking target system type... $ECHO_C" >&6
1566218822Sdimif test "${ac_cv_target+set}" = set; then
1567218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1568218822Sdimelse
1569218822Sdim  ac_cv_target_alias=$target_alias
1570218822Sdimtest "x$ac_cv_target_alias" = "x" &&
1571218822Sdim  ac_cv_target_alias=$ac_cv_host_alias
1572218822Sdimac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1573218822Sdim  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1574218822Sdimecho "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1575218822Sdim   { (exit 1); exit 1; }; }
1576218822Sdim
1577218822Sdimfi
1578218822Sdimecho "$as_me:$LINENO: result: $ac_cv_target" >&5
1579218822Sdimecho "${ECHO_T}$ac_cv_target" >&6
1580218822Sdimtarget=$ac_cv_target
1581218822Sdimtarget_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582218822Sdimtarget_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583218822Sdimtarget_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584218822Sdim
1585218822Sdim
158633965Sjdp# The aliases save the names the user supplied, while $host etc.
158733965Sjdp# will get canonicalized.
1588218822Sdimtest -n "$target_alias" &&
1589218822Sdim  test "$program_prefix$program_suffix$program_transform_name" = \
1590218822Sdim    NONENONEs,x,x, &&
1591218822Sdim  program_prefix=${target_alias}-
1592218822Sdimac_ext=c
1593218822Sdimac_cpp='$CPP $CPPFLAGS'
1594218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1595218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1596218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
1597218822Sdimif test -n "$ac_tool_prefix"; then
1598218822Sdim  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1599218822Sdimset dummy ${ac_tool_prefix}gcc; ac_word=$2
1600218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1601218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
1603218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1604218822Sdimelse
1605218822Sdim  if test -n "$CC"; then
1606218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
1607218822Sdimelse
1608218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609218822Sdimfor as_dir in $PATH
1610218822Sdimdo
1611218822Sdim  IFS=$as_save_IFS
1612218822Sdim  test -z "$as_dir" && as_dir=.
1613218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1614218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615218822Sdim    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1616218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617218822Sdim    break 2
1618218822Sdim  fi
1619218822Sdimdone
1620218822Sdimdone
162133965Sjdp
1622218822Sdimfi
1623218822Sdimfi
1624218822SdimCC=$ac_cv_prog_CC
1625218822Sdimif test -n "$CC"; then
1626218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
1627218822Sdimecho "${ECHO_T}$CC" >&6
1628218822Sdimelse
1629218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1630218822Sdimecho "${ECHO_T}no" >&6
1631218822Sdimfi
163233965Sjdp
163333965Sjdpfi
1634218822Sdimif test -z "$ac_cv_prog_CC"; then
1635218822Sdim  ac_ct_CC=$CC
1636218822Sdim  # Extract the first word of "gcc", so it can be a program name with args.
1637218822Sdimset dummy gcc; ac_word=$2
1638218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1639218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1642218822Sdimelse
1643218822Sdim  if test -n "$ac_ct_CC"; then
1644218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645218822Sdimelse
1646218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647218822Sdimfor as_dir in $PATH
1648218822Sdimdo
1649218822Sdim  IFS=$as_save_IFS
1650218822Sdim  test -z "$as_dir" && as_dir=.
1651218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1652218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653218822Sdim    ac_cv_prog_ac_ct_CC="gcc"
1654218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655218822Sdim    break 2
1656218822Sdim  fi
1657218822Sdimdone
1658218822Sdimdone
165933965Sjdp
1660218822Sdimfi
1661218822Sdimfi
1662218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
1663218822Sdimif test -n "$ac_ct_CC"; then
1664218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
1666218822Sdimelse
1667218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1668218822Sdimecho "${ECHO_T}no" >&6
1669218822Sdimfi
167033965Sjdp
1671218822Sdim  CC=$ac_ct_CC
1672218822Sdimelse
1673218822Sdim  CC="$ac_cv_prog_CC"
1674218822Sdimfi
167533965Sjdp
1676218822Sdimif test -z "$CC"; then
1677218822Sdim  if test -n "$ac_tool_prefix"; then
1678218822Sdim  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1679218822Sdimset dummy ${ac_tool_prefix}cc; ac_word=$2
1680218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1681218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
1683218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1684218822Sdimelse
1685218822Sdim  if test -n "$CC"; then
1686218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
1687218822Sdimelse
1688218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689218822Sdimfor as_dir in $PATH
1690218822Sdimdo
1691218822Sdim  IFS=$as_save_IFS
1692218822Sdim  test -z "$as_dir" && as_dir=.
1693218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1694218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695218822Sdim    ac_cv_prog_CC="${ac_tool_prefix}cc"
1696218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697218822Sdim    break 2
1698218822Sdim  fi
1699218822Sdimdone
1700218822Sdimdone
170133965Sjdp
1702218822Sdimfi
1703218822Sdimfi
1704218822SdimCC=$ac_cv_prog_CC
1705218822Sdimif test -n "$CC"; then
1706218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
1707218822Sdimecho "${ECHO_T}$CC" >&6
1708218822Sdimelse
1709218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1710218822Sdimecho "${ECHO_T}no" >&6
1711218822Sdimfi
171233965Sjdp
1713218822Sdimfi
1714218822Sdimif test -z "$ac_cv_prog_CC"; then
1715218822Sdim  ac_ct_CC=$CC
1716218822Sdim  # Extract the first word of "cc", so it can be a program name with args.
1717218822Sdimset dummy cc; ac_word=$2
1718218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1719218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1722218822Sdimelse
1723218822Sdim  if test -n "$ac_ct_CC"; then
1724218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725218822Sdimelse
1726218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727218822Sdimfor as_dir in $PATH
1728218822Sdimdo
1729218822Sdim  IFS=$as_save_IFS
1730218822Sdim  test -z "$as_dir" && as_dir=.
1731218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1732218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733218822Sdim    ac_cv_prog_ac_ct_CC="cc"
1734218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735218822Sdim    break 2
1736218822Sdim  fi
1737218822Sdimdone
1738218822Sdimdone
173933965Sjdp
1740218822Sdimfi
1741218822Sdimfi
1742218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
1743218822Sdimif test -n "$ac_ct_CC"; then
1744218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
1746218822Sdimelse
1747218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1748218822Sdimecho "${ECHO_T}no" >&6
1749218822Sdimfi
175033965Sjdp
1751218822Sdim  CC=$ac_ct_CC
1752218822Sdimelse
1753218822Sdim  CC="$ac_cv_prog_CC"
1754218822Sdimfi
175533965Sjdp
1756218822Sdimfi
1757218822Sdimif test -z "$CC"; then
1758218822Sdim  # Extract the first word of "cc", so it can be a program name with args.
1759218822Sdimset dummy cc; ac_word=$2
1760218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1761218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
1763218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1764218822Sdimelse
1765218822Sdim  if test -n "$CC"; then
1766218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
1767218822Sdimelse
1768218822Sdim  ac_prog_rejected=no
1769218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770218822Sdimfor as_dir in $PATH
1771218822Sdimdo
1772218822Sdim  IFS=$as_save_IFS
1773218822Sdim  test -z "$as_dir" && as_dir=.
1774218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1775218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776218822Sdim    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1777218822Sdim       ac_prog_rejected=yes
1778218822Sdim       continue
1779218822Sdim     fi
1780218822Sdim    ac_cv_prog_CC="cc"
1781218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782218822Sdim    break 2
1783218822Sdim  fi
1784218822Sdimdone
1785218822Sdimdone
178633965Sjdp
1787218822Sdimif test $ac_prog_rejected = yes; then
1788218822Sdim  # We found a bogon in the path, so make sure we never use it.
1789218822Sdim  set dummy $ac_cv_prog_CC
1790218822Sdim  shift
1791218822Sdim  if test $# != 0; then
1792218822Sdim    # We chose a different compiler from the bogus one.
1793218822Sdim    # However, it has the same basename, so the bogon will be chosen
1794218822Sdim    # first if we set CC to just the basename; use the full file name.
1795218822Sdim    shift
1796218822Sdim    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1797218822Sdim  fi
1798218822Sdimfi
1799218822Sdimfi
1800218822Sdimfi
1801218822SdimCC=$ac_cv_prog_CC
1802218822Sdimif test -n "$CC"; then
1803218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
1804218822Sdimecho "${ECHO_T}$CC" >&6
1805218822Sdimelse
1806218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1807218822Sdimecho "${ECHO_T}no" >&6
1808218822Sdimfi
180933965Sjdp
1810218822Sdimfi
1811218822Sdimif test -z "$CC"; then
1812218822Sdim  if test -n "$ac_tool_prefix"; then
1813218822Sdim  for ac_prog in cl
1814218822Sdim  do
1815218822Sdim    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1816218822Sdimset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1817218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1818218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
1820218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1821218822Sdimelse
1822218822Sdim  if test -n "$CC"; then
1823218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
1824218822Sdimelse
1825218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826218822Sdimfor as_dir in $PATH
1827218822Sdimdo
1828218822Sdim  IFS=$as_save_IFS
1829218822Sdim  test -z "$as_dir" && as_dir=.
1830218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1831218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832218822Sdim    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1833218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834218822Sdim    break 2
1835218822Sdim  fi
1836218822Sdimdone
1837218822Sdimdone
183833965Sjdp
1839218822Sdimfi
1840218822Sdimfi
1841218822SdimCC=$ac_cv_prog_CC
1842218822Sdimif test -n "$CC"; then
1843218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
1844218822Sdimecho "${ECHO_T}$CC" >&6
1845218822Sdimelse
1846218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1847218822Sdimecho "${ECHO_T}no" >&6
1848218822Sdimfi
184933965Sjdp
1850218822Sdim    test -n "$CC" && break
1851218822Sdim  done
1852218822Sdimfi
1853218822Sdimif test -z "$CC"; then
1854218822Sdim  ac_ct_CC=$CC
1855218822Sdim  for ac_prog in cl
1856218822Sdimdo
1857218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
1858218822Sdimset dummy $ac_prog; ac_word=$2
1859218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1860218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1862218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
186333965Sjdpelse
1864218822Sdim  if test -n "$ac_ct_CC"; then
1865218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866218822Sdimelse
1867218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868218822Sdimfor as_dir in $PATH
1869218822Sdimdo
1870218822Sdim  IFS=$as_save_IFS
1871218822Sdim  test -z "$as_dir" && as_dir=.
1872218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1873218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874218822Sdim    ac_cv_prog_ac_ct_CC="$ac_prog"
1875218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876218822Sdim    break 2
1877218822Sdim  fi
1878218822Sdimdone
1879218822Sdimdone
188060484Sobrien
1881218822Sdimfi
1882218822Sdimfi
1883218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
1884218822Sdimif test -n "$ac_ct_CC"; then
1885218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1886218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
188733965Sjdpelse
1888218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1889218822Sdimecho "${ECHO_T}no" >&6
189033965Sjdpfi
1891218822Sdim
1892218822Sdim  test -n "$ac_ct_CC" && break
1893218822Sdimdone
1894218822Sdim
1895218822Sdim  CC=$ac_ct_CC
1896218822Sdimfi
1897218822Sdim
1898218822Sdimfi
1899218822Sdim
1900218822Sdim
1901218822Sdimtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1902218822SdimSee \`config.log' for more details." >&5
1903218822Sdimecho "$as_me: error: no acceptable C compiler found in \$PATH
1904218822SdimSee \`config.log' for more details." >&2;}
1905218822Sdim   { (exit 1); exit 1; }; }
1906218822Sdim
1907218822Sdim# Provide some information about the compiler.
1908218822Sdimecho "$as_me:$LINENO:" \
1909218822Sdim     "checking for C compiler version" >&5
1910218822Sdimac_compiler=`set X $ac_compile; echo $2`
1911218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1912218822Sdim  (eval $ac_compiler --version </dev/null >&5) 2>&5
1913218822Sdim  ac_status=$?
1914218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915218822Sdim  (exit $ac_status); }
1916218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1917218822Sdim  (eval $ac_compiler -v </dev/null >&5) 2>&5
1918218822Sdim  ac_status=$?
1919218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920218822Sdim  (exit $ac_status); }
1921218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1922218822Sdim  (eval $ac_compiler -V </dev/null >&5) 2>&5
1923218822Sdim  ac_status=$?
1924218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925218822Sdim  (exit $ac_status); }
1926218822Sdim
1927218822Sdimcat >conftest.$ac_ext <<_ACEOF
1928218822Sdim/* confdefs.h.  */
1929218822Sdim_ACEOF
1930218822Sdimcat confdefs.h >>conftest.$ac_ext
1931218822Sdimcat >>conftest.$ac_ext <<_ACEOF
1932218822Sdim/* end confdefs.h.  */
1933218822Sdim
1934218822Sdimint
1935218822Sdimmain ()
1936218822Sdim{
1937218822Sdim
1938218822Sdim  ;
1939218822Sdim  return 0;
1940218822Sdim}
1941218822Sdim_ACEOF
1942218822Sdimac_clean_files_save=$ac_clean_files
1943218822Sdimac_clean_files="$ac_clean_files a.out a.exe b.out"
1944218822Sdim# Try to create an executable without -o first, disregard a.out.
1945218822Sdim# It will help us diagnose broken compilers, and finding out an intuition
1946218822Sdim# of exeext.
1947218822Sdimecho "$as_me:$LINENO: checking for C compiler default output file name" >&5
1948218822Sdimecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1949218822Sdimac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1950218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1951218822Sdim  (eval $ac_link_default) 2>&5
1952218822Sdim  ac_status=$?
1953218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954218822Sdim  (exit $ac_status); }; then
1955218822Sdim  # Find the output, starting from the most likely.  This scheme is
1956218822Sdim# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1957218822Sdim# resort.
1958218822Sdim
1959218822Sdim# Be careful to initialize this variable, since it used to be cached.
1960218822Sdim# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1961218822Sdimac_cv_exeext=
1962218822Sdim# b.out is created by i960 compilers.
1963218822Sdimfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1964218822Sdimdo
1965218822Sdim  test -f "$ac_file" || continue
1966218822Sdim  case $ac_file in
1967218822Sdim    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1968218822Sdim	;;
1969218822Sdim    conftest.$ac_ext )
1970218822Sdim	# This is the source file.
1971218822Sdim	;;
1972218822Sdim    [ab].out )
1973218822Sdim	# We found the default executable, but exeext='' is most
1974218822Sdim	# certainly right.
1975218822Sdim	break;;
1976218822Sdim    *.* )
1977218822Sdim	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1978218822Sdim	# FIXME: I believe we export ac_cv_exeext for Libtool,
1979218822Sdim	# but it would be cool to find out if it's true.  Does anybody
1980218822Sdim	# maintain Libtool? --akim.
1981218822Sdim	export ac_cv_exeext
1982218822Sdim	break;;
1983218822Sdim    * )
1984218822Sdim	break;;
1985218822Sdim  esac
1986218822Sdimdone
1987218822Sdimelse
1988218822Sdim  echo "$as_me: failed program was:" >&5
1989218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1990218822Sdim
1991218822Sdim{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1992218822SdimSee \`config.log' for more details." >&5
1993218822Sdimecho "$as_me: error: C compiler cannot create executables
1994218822SdimSee \`config.log' for more details." >&2;}
1995218822Sdim   { (exit 77); exit 77; }; }
1996218822Sdimfi
1997218822Sdim
1998218822Sdimac_exeext=$ac_cv_exeext
1999218822Sdimecho "$as_me:$LINENO: result: $ac_file" >&5
2000218822Sdimecho "${ECHO_T}$ac_file" >&6
2001218822Sdim
2002218822Sdim# Check the compiler produces executables we can run.  If not, either
2003218822Sdim# the compiler is broken, or we cross compile.
2004218822Sdimecho "$as_me:$LINENO: checking whether the C compiler works" >&5
2005218822Sdimecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2006218822Sdim# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2007218822Sdim# If not cross compiling, check that we can run a simple program.
2008218822Sdimif test "$cross_compiling" != yes; then
2009218822Sdim  if { ac_try='./$ac_file'
2010218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011218822Sdim  (eval $ac_try) 2>&5
2012218822Sdim  ac_status=$?
2013218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014218822Sdim  (exit $ac_status); }; }; then
2015218822Sdim    cross_compiling=no
2016218822Sdim  else
2017218822Sdim    if test "$cross_compiling" = maybe; then
2018218822Sdim	cross_compiling=yes
2019218822Sdim    else
2020218822Sdim	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2021218822SdimIf you meant to cross compile, use \`--host'.
2022218822SdimSee \`config.log' for more details." >&5
2023218822Sdimecho "$as_me: error: cannot run C compiled programs.
2024218822SdimIf you meant to cross compile, use \`--host'.
2025218822SdimSee \`config.log' for more details." >&2;}
2026218822Sdim   { (exit 1); exit 1; }; }
2027218822Sdim    fi
2028218822Sdim  fi
2029218822Sdimfi
2030218822Sdimecho "$as_me:$LINENO: result: yes" >&5
2031218822Sdimecho "${ECHO_T}yes" >&6
2032218822Sdim
2033218822Sdimrm -f a.out a.exe conftest$ac_cv_exeext b.out
2034218822Sdimac_clean_files=$ac_clean_files_save
2035218822Sdim# Check the compiler produces executables we can run.  If not, either
2036218822Sdim# the compiler is broken, or we cross compile.
2037218822Sdimecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
2038218822Sdimecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2039218822Sdimecho "$as_me:$LINENO: result: $cross_compiling" >&5
2040218822Sdimecho "${ECHO_T}$cross_compiling" >&6
2041218822Sdim
2042218822Sdimecho "$as_me:$LINENO: checking for suffix of executables" >&5
2043218822Sdimecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2044218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2045218822Sdim  (eval $ac_link) 2>&5
2046218822Sdim  ac_status=$?
2047218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048218822Sdim  (exit $ac_status); }; then
2049218822Sdim  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2050218822Sdim# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2051218822Sdim# work properly (i.e., refer to `conftest.exe'), while it won't with
2052218822Sdim# `rm'.
2053218822Sdimfor ac_file in conftest.exe conftest conftest.*; do
2054218822Sdim  test -f "$ac_file" || continue
2055218822Sdim  case $ac_file in
2056218822Sdim    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2057218822Sdim    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058218822Sdim	  export ac_cv_exeext
2059218822Sdim	  break;;
2060218822Sdim    * ) break;;
2061218822Sdim  esac
2062218822Sdimdone
2063218822Sdimelse
2064218822Sdim  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2065218822SdimSee \`config.log' for more details." >&5
2066218822Sdimecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
2067218822SdimSee \`config.log' for more details." >&2;}
2068218822Sdim   { (exit 1); exit 1; }; }
2069218822Sdimfi
2070218822Sdim
2071218822Sdimrm -f conftest$ac_cv_exeext
2072218822Sdimecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2073218822Sdimecho "${ECHO_T}$ac_cv_exeext" >&6
2074218822Sdim
2075218822Sdimrm -f conftest.$ac_ext
2076218822SdimEXEEXT=$ac_cv_exeext
2077218822Sdimac_exeext=$EXEEXT
2078218822Sdimecho "$as_me:$LINENO: checking for suffix of object files" >&5
2079218822Sdimecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2080218822Sdimif test "${ac_cv_objext+set}" = set; then
2081218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2082218822Sdimelse
2083218822Sdim  cat >conftest.$ac_ext <<_ACEOF
2084218822Sdim/* confdefs.h.  */
2085218822Sdim_ACEOF
2086218822Sdimcat confdefs.h >>conftest.$ac_ext
2087218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2088218822Sdim/* end confdefs.h.  */
2089218822Sdim
2090218822Sdimint
2091218822Sdimmain ()
2092218822Sdim{
2093218822Sdim
2094218822Sdim  ;
2095218822Sdim  return 0;
2096218822Sdim}
2097218822Sdim_ACEOF
2098218822Sdimrm -f conftest.o conftest.obj
2099218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100218822Sdim  (eval $ac_compile) 2>&5
2101218822Sdim  ac_status=$?
2102218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103218822Sdim  (exit $ac_status); }; then
2104218822Sdim  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2105218822Sdim  case $ac_file in
2106218822Sdim    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2107218822Sdim    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2108218822Sdim       break;;
2109218822Sdim  esac
2110218822Sdimdone
2111218822Sdimelse
2112218822Sdim  echo "$as_me: failed program was:" >&5
2113218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2114218822Sdim
2115218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2116218822SdimSee \`config.log' for more details." >&5
2117218822Sdimecho "$as_me: error: cannot compute suffix of object files: cannot compile
2118218822SdimSee \`config.log' for more details." >&2;}
2119218822Sdim   { (exit 1); exit 1; }; }
2120218822Sdimfi
2121218822Sdim
2122218822Sdimrm -f conftest.$ac_cv_objext conftest.$ac_ext
2123218822Sdimfi
2124218822Sdimecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
2125218822Sdimecho "${ECHO_T}$ac_cv_objext" >&6
2126218822SdimOBJEXT=$ac_cv_objext
2127218822Sdimac_objext=$OBJEXT
2128218822Sdimecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2129218822Sdimecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2130218822Sdimif test "${ac_cv_c_compiler_gnu+set}" = set; then
2131218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2132218822Sdimelse
2133218822Sdim  cat >conftest.$ac_ext <<_ACEOF
2134218822Sdim/* confdefs.h.  */
2135218822Sdim_ACEOF
2136218822Sdimcat confdefs.h >>conftest.$ac_ext
2137218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2138218822Sdim/* end confdefs.h.  */
2139218822Sdim
2140218822Sdimint
2141218822Sdimmain ()
2142218822Sdim{
2143218822Sdim#ifndef __GNUC__
2144218822Sdim       choke me
2145218822Sdim#endif
2146218822Sdim
2147218822Sdim  ;
2148218822Sdim  return 0;
2149218822Sdim}
2150218822Sdim_ACEOF
2151218822Sdimrm -f conftest.$ac_objext
2152218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153218822Sdim  (eval $ac_compile) 2>conftest.er1
2154218822Sdim  ac_status=$?
2155218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2156218822Sdim  rm -f conftest.er1
2157218822Sdim  cat conftest.err >&5
2158218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159218822Sdim  (exit $ac_status); } &&
2160218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2161218822Sdim			 || test ! -s conftest.err'
2162218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163218822Sdim  (eval $ac_try) 2>&5
2164218822Sdim  ac_status=$?
2165218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166218822Sdim  (exit $ac_status); }; } &&
2167218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2168218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169218822Sdim  (eval $ac_try) 2>&5
2170218822Sdim  ac_status=$?
2171218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172218822Sdim  (exit $ac_status); }; }; then
2173218822Sdim  ac_compiler_gnu=yes
2174218822Sdimelse
2175218822Sdim  echo "$as_me: failed program was:" >&5
2176218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2177218822Sdim
2178218822Sdimac_compiler_gnu=no
2179218822Sdimfi
2180218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181218822Sdimac_cv_c_compiler_gnu=$ac_compiler_gnu
2182218822Sdim
2183218822Sdimfi
2184218822Sdimecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2185218822Sdimecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2186218822SdimGCC=`test $ac_compiler_gnu = yes && echo yes`
2187218822Sdimac_test_CFLAGS=${CFLAGS+set}
2188218822Sdimac_save_CFLAGS=$CFLAGS
2189218822SdimCFLAGS="-g"
2190218822Sdimecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2191218822Sdimecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2192218822Sdimif test "${ac_cv_prog_cc_g+set}" = set; then
2193218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2194218822Sdimelse
2195218822Sdim  cat >conftest.$ac_ext <<_ACEOF
2196218822Sdim/* confdefs.h.  */
2197218822Sdim_ACEOF
2198218822Sdimcat confdefs.h >>conftest.$ac_ext
2199218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2200218822Sdim/* end confdefs.h.  */
2201218822Sdim
2202218822Sdimint
2203218822Sdimmain ()
2204218822Sdim{
2205218822Sdim
2206218822Sdim  ;
2207218822Sdim  return 0;
2208218822Sdim}
2209218822Sdim_ACEOF
2210218822Sdimrm -f conftest.$ac_objext
2211218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212218822Sdim  (eval $ac_compile) 2>conftest.er1
2213218822Sdim  ac_status=$?
2214218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2215218822Sdim  rm -f conftest.er1
2216218822Sdim  cat conftest.err >&5
2217218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218218822Sdim  (exit $ac_status); } &&
2219218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2220218822Sdim			 || test ! -s conftest.err'
2221218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222218822Sdim  (eval $ac_try) 2>&5
2223218822Sdim  ac_status=$?
2224218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225218822Sdim  (exit $ac_status); }; } &&
2226218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2227218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228218822Sdim  (eval $ac_try) 2>&5
2229218822Sdim  ac_status=$?
2230218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231218822Sdim  (exit $ac_status); }; }; then
2232218822Sdim  ac_cv_prog_cc_g=yes
2233218822Sdimelse
2234218822Sdim  echo "$as_me: failed program was:" >&5
2235218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2236218822Sdim
2237218822Sdimac_cv_prog_cc_g=no
2238218822Sdimfi
2239218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2240218822Sdimfi
2241218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2242218822Sdimecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
2243218822Sdimif test "$ac_test_CFLAGS" = set; then
2244218822Sdim  CFLAGS=$ac_save_CFLAGS
2245218822Sdimelif test $ac_cv_prog_cc_g = yes; then
2246218822Sdim  if test "$GCC" = yes; then
2247218822Sdim    CFLAGS="-g -O2"
2248218822Sdim  else
2249218822Sdim    CFLAGS="-g"
2250218822Sdim  fi
2251218822Sdimelse
2252218822Sdim  if test "$GCC" = yes; then
2253218822Sdim    CFLAGS="-O2"
2254218822Sdim  else
2255218822Sdim    CFLAGS=
2256218822Sdim  fi
2257218822Sdimfi
2258218822Sdimecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2259218822Sdimecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2260218822Sdimif test "${ac_cv_prog_cc_stdc+set}" = set; then
2261218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2262218822Sdimelse
2263218822Sdim  ac_cv_prog_cc_stdc=no
2264218822Sdimac_save_CC=$CC
2265218822Sdimcat >conftest.$ac_ext <<_ACEOF
2266218822Sdim/* confdefs.h.  */
2267218822Sdim_ACEOF
2268218822Sdimcat confdefs.h >>conftest.$ac_ext
2269218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2270218822Sdim/* end confdefs.h.  */
2271218822Sdim#include <stdarg.h>
2272218822Sdim#include <stdio.h>
2273218822Sdim#include <sys/types.h>
2274218822Sdim#include <sys/stat.h>
2275218822Sdim/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2276218822Sdimstruct buf { int x; };
2277218822SdimFILE * (*rcsopen) (struct buf *, struct stat *, int);
2278218822Sdimstatic char *e (p, i)
2279218822Sdim     char **p;
2280218822Sdim     int i;
2281218822Sdim{
2282218822Sdim  return p[i];
2283218822Sdim}
2284218822Sdimstatic char *f (char * (*g) (char **, int), char **p, ...)
2285218822Sdim{
2286218822Sdim  char *s;
2287218822Sdim  va_list v;
2288218822Sdim  va_start (v,p);
2289218822Sdim  s = g (p, va_arg (v,int));
2290218822Sdim  va_end (v);
2291218822Sdim  return s;
2292218822Sdim}
2293218822Sdim
2294218822Sdim/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2295218822Sdim   function prototypes and stuff, but not '\xHH' hex character constants.
2296218822Sdim   These don't provoke an error unfortunately, instead are silently treated
2297218822Sdim   as 'x'.  The following induces an error, until -std1 is added to get
2298218822Sdim   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2299218822Sdim   array size at least.  It's necessary to write '\x00'==0 to get something
2300218822Sdim   that's true only with -std1.  */
2301218822Sdimint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2302218822Sdim
2303218822Sdimint test (int i, double x);
2304218822Sdimstruct s1 {int (*f) (int a);};
2305218822Sdimstruct s2 {int (*f) (double a);};
2306218822Sdimint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2307218822Sdimint argc;
2308218822Sdimchar **argv;
2309218822Sdimint
2310218822Sdimmain ()
2311218822Sdim{
2312218822Sdimreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2313218822Sdim  ;
2314218822Sdim  return 0;
2315218822Sdim}
2316218822Sdim_ACEOF
2317218822Sdim# Don't try gcc -ansi; that turns off useful extensions and
2318218822Sdim# breaks some systems' header files.
2319218822Sdim# AIX			-qlanglvl=ansi
2320218822Sdim# Ultrix and OSF/1	-std1
2321218822Sdim# HP-UX 10.20 and later	-Ae
2322218822Sdim# HP-UX older versions	-Aa -D_HPUX_SOURCE
2323218822Sdim# SVR4			-Xc -D__EXTENSIONS__
2324218822Sdimfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2325218822Sdimdo
2326218822Sdim  CC="$ac_save_CC $ac_arg"
2327218822Sdim  rm -f conftest.$ac_objext
2328218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329218822Sdim  (eval $ac_compile) 2>conftest.er1
2330218822Sdim  ac_status=$?
2331218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2332218822Sdim  rm -f conftest.er1
2333218822Sdim  cat conftest.err >&5
2334218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335218822Sdim  (exit $ac_status); } &&
2336218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2337218822Sdim			 || test ! -s conftest.err'
2338218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339218822Sdim  (eval $ac_try) 2>&5
2340218822Sdim  ac_status=$?
2341218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342218822Sdim  (exit $ac_status); }; } &&
2343218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2344218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345218822Sdim  (eval $ac_try) 2>&5
2346218822Sdim  ac_status=$?
2347218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348218822Sdim  (exit $ac_status); }; }; then
2349218822Sdim  ac_cv_prog_cc_stdc=$ac_arg
2350218822Sdimbreak
2351218822Sdimelse
2352218822Sdim  echo "$as_me: failed program was:" >&5
2353218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2354218822Sdim
2355218822Sdimfi
2356218822Sdimrm -f conftest.err conftest.$ac_objext
2357218822Sdimdone
2358218822Sdimrm -f conftest.$ac_ext conftest.$ac_objext
2359218822SdimCC=$ac_save_CC
2360218822Sdim
2361218822Sdimfi
2362218822Sdim
2363218822Sdimcase "x$ac_cv_prog_cc_stdc" in
2364218822Sdim  x|xno)
2365218822Sdim    echo "$as_me:$LINENO: result: none needed" >&5
2366218822Sdimecho "${ECHO_T}none needed" >&6 ;;
2367218822Sdim  *)
2368218822Sdim    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2369218822Sdimecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2370218822Sdim    CC="$CC $ac_cv_prog_cc_stdc" ;;
2371218822Sdimesac
2372218822Sdim
2373218822Sdim# Some people use a C++ compiler to compile C.  Since we use `exit',
2374218822Sdim# in C++ we need to declare it.  In case someone uses the same compiler
2375218822Sdim# for both compiling C and C++ we need to have the C++ compiler decide
2376218822Sdim# the declaration of exit, since it's the most demanding environment.
2377218822Sdimcat >conftest.$ac_ext <<_ACEOF
2378218822Sdim#ifndef __cplusplus
2379218822Sdim  choke me
2380218822Sdim#endif
2381218822Sdim_ACEOF
2382218822Sdimrm -f conftest.$ac_objext
2383218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384218822Sdim  (eval $ac_compile) 2>conftest.er1
2385218822Sdim  ac_status=$?
2386218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2387218822Sdim  rm -f conftest.er1
2388218822Sdim  cat conftest.err >&5
2389218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390218822Sdim  (exit $ac_status); } &&
2391218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2392218822Sdim			 || test ! -s conftest.err'
2393218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394218822Sdim  (eval $ac_try) 2>&5
2395218822Sdim  ac_status=$?
2396218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397218822Sdim  (exit $ac_status); }; } &&
2398218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2399218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400218822Sdim  (eval $ac_try) 2>&5
2401218822Sdim  ac_status=$?
2402218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403218822Sdim  (exit $ac_status); }; }; then
2404218822Sdim  for ac_declaration in \
2405218822Sdim   '' \
2406218822Sdim   'extern "C" void std::exit (int) throw (); using std::exit;' \
2407218822Sdim   'extern "C" void std::exit (int); using std::exit;' \
2408218822Sdim   'extern "C" void exit (int) throw ();' \
2409218822Sdim   'extern "C" void exit (int);' \
2410218822Sdim   'void exit (int);'
2411218822Sdimdo
2412218822Sdim  cat >conftest.$ac_ext <<_ACEOF
2413218822Sdim/* confdefs.h.  */
2414218822Sdim_ACEOF
2415218822Sdimcat confdefs.h >>conftest.$ac_ext
2416218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2417218822Sdim/* end confdefs.h.  */
2418218822Sdim$ac_declaration
2419218822Sdim#include <stdlib.h>
2420218822Sdimint
2421218822Sdimmain ()
2422218822Sdim{
2423218822Sdimexit (42);
2424218822Sdim  ;
2425218822Sdim  return 0;
2426218822Sdim}
2427218822Sdim_ACEOF
2428218822Sdimrm -f conftest.$ac_objext
2429218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430218822Sdim  (eval $ac_compile) 2>conftest.er1
2431218822Sdim  ac_status=$?
2432218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2433218822Sdim  rm -f conftest.er1
2434218822Sdim  cat conftest.err >&5
2435218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436218822Sdim  (exit $ac_status); } &&
2437218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2438218822Sdim			 || test ! -s conftest.err'
2439218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440218822Sdim  (eval $ac_try) 2>&5
2441218822Sdim  ac_status=$?
2442218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443218822Sdim  (exit $ac_status); }; } &&
2444218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2445218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446218822Sdim  (eval $ac_try) 2>&5
2447218822Sdim  ac_status=$?
2448218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449218822Sdim  (exit $ac_status); }; }; then
2450218822Sdim  :
2451218822Sdimelse
2452218822Sdim  echo "$as_me: failed program was:" >&5
2453218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2454218822Sdim
2455218822Sdimcontinue
2456218822Sdimfi
2457218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458218822Sdim  cat >conftest.$ac_ext <<_ACEOF
2459218822Sdim/* confdefs.h.  */
2460218822Sdim_ACEOF
2461218822Sdimcat confdefs.h >>conftest.$ac_ext
2462218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2463218822Sdim/* end confdefs.h.  */
2464218822Sdim$ac_declaration
2465218822Sdimint
2466218822Sdimmain ()
2467218822Sdim{
2468218822Sdimexit (42);
2469218822Sdim  ;
2470218822Sdim  return 0;
2471218822Sdim}
2472218822Sdim_ACEOF
2473218822Sdimrm -f conftest.$ac_objext
2474218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475218822Sdim  (eval $ac_compile) 2>conftest.er1
2476218822Sdim  ac_status=$?
2477218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2478218822Sdim  rm -f conftest.er1
2479218822Sdim  cat conftest.err >&5
2480218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481218822Sdim  (exit $ac_status); } &&
2482218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2483218822Sdim			 || test ! -s conftest.err'
2484218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485218822Sdim  (eval $ac_try) 2>&5
2486218822Sdim  ac_status=$?
2487218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488218822Sdim  (exit $ac_status); }; } &&
2489218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2490218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491218822Sdim  (eval $ac_try) 2>&5
2492218822Sdim  ac_status=$?
2493218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494218822Sdim  (exit $ac_status); }; }; then
2495218822Sdim  break
2496218822Sdimelse
2497218822Sdim  echo "$as_me: failed program was:" >&5
2498218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2499218822Sdim
2500218822Sdimfi
2501218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502218822Sdimdone
250333965Sjdprm -f conftest*
2504218822Sdimif test -n "$ac_declaration"; then
2505218822Sdim  echo '#ifdef __cplusplus' >>confdefs.h
2506218822Sdim  echo $ac_declaration      >>confdefs.h
2507218822Sdim  echo '#endif'             >>confdefs.h
2508218822Sdimfi
250933965Sjdp
2510218822Sdimelse
2511218822Sdim  echo "$as_me: failed program was:" >&5
2512218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2513218822Sdim
251433965Sjdpfi
2515218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516218822Sdimac_ext=c
2517218822Sdimac_cpp='$CPP $CPPFLAGS'
2518218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
2521218822Sdim
2522218822Sdim
2523218822Sdimecho "$as_me:$LINENO: checking for library containing strerror" >&5
2524218822Sdimecho $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2525218822Sdimif test "${ac_cv_search_strerror+set}" = set; then
2526218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
252733965Sjdpelse
2528218822Sdim  ac_func_search_save_LIBS=$LIBS
2529218822Sdimac_cv_search_strerror=no
2530218822Sdimcat >conftest.$ac_ext <<_ACEOF
2531218822Sdim/* confdefs.h.  */
2532218822Sdim_ACEOF
2533218822Sdimcat confdefs.h >>conftest.$ac_ext
2534218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2535218822Sdim/* end confdefs.h.  */
2536218822Sdim
2537218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
2538218822Sdim#ifdef __cplusplus
2539218822Sdimextern "C"
2540218822Sdim#endif
2541218822Sdim/* We use char because int might match the return type of a gcc2
2542218822Sdim   builtin and then its argument prototype would still apply.  */
2543218822Sdimchar strerror ();
2544218822Sdimint
2545218822Sdimmain ()
2546218822Sdim{
2547218822Sdimstrerror ();
2548218822Sdim  ;
2549218822Sdim  return 0;
2550218822Sdim}
2551218822Sdim_ACEOF
2552218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
2553218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2554218822Sdim  (eval $ac_link) 2>conftest.er1
2555218822Sdim  ac_status=$?
2556218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2557218822Sdim  rm -f conftest.er1
2558218822Sdim  cat conftest.err >&5
2559218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560218822Sdim  (exit $ac_status); } &&
2561218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2562218822Sdim			 || test ! -s conftest.err'
2563218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564218822Sdim  (eval $ac_try) 2>&5
2565218822Sdim  ac_status=$?
2566218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567218822Sdim  (exit $ac_status); }; } &&
2568218822Sdim	 { ac_try='test -s conftest$ac_exeext'
2569218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570218822Sdim  (eval $ac_try) 2>&5
2571218822Sdim  ac_status=$?
2572218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573218822Sdim  (exit $ac_status); }; }; then
2574218822Sdim  ac_cv_search_strerror="none required"
2575218822Sdimelse
2576218822Sdim  echo "$as_me: failed program was:" >&5
2577218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2578218822Sdim
257933965Sjdpfi
2580218822Sdimrm -f conftest.err conftest.$ac_objext \
2581218822Sdim      conftest$ac_exeext conftest.$ac_ext
2582218822Sdimif test "$ac_cv_search_strerror" = no; then
2583218822Sdim  for ac_lib in cposix; do
2584218822Sdim    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2585218822Sdim    cat >conftest.$ac_ext <<_ACEOF
2586218822Sdim/* confdefs.h.  */
2587218822Sdim_ACEOF
2588218822Sdimcat confdefs.h >>conftest.$ac_ext
2589218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2590218822Sdim/* end confdefs.h.  */
259133965Sjdp
2592218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
2593218822Sdim#ifdef __cplusplus
2594218822Sdimextern "C"
2595218822Sdim#endif
2596218822Sdim/* We use char because int might match the return type of a gcc2
2597218822Sdim   builtin and then its argument prototype would still apply.  */
2598218822Sdimchar strerror ();
2599218822Sdimint
2600218822Sdimmain ()
2601218822Sdim{
2602218822Sdimstrerror ();
2603218822Sdim  ;
2604218822Sdim  return 0;
2605218822Sdim}
2606218822Sdim_ACEOF
2607218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
2608218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609218822Sdim  (eval $ac_link) 2>conftest.er1
2610218822Sdim  ac_status=$?
2611218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2612218822Sdim  rm -f conftest.er1
2613218822Sdim  cat conftest.err >&5
2614218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615218822Sdim  (exit $ac_status); } &&
2616218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2617218822Sdim			 || test ! -s conftest.err'
2618218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619218822Sdim  (eval $ac_try) 2>&5
2620218822Sdim  ac_status=$?
2621218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622218822Sdim  (exit $ac_status); }; } &&
2623218822Sdim	 { ac_try='test -s conftest$ac_exeext'
2624218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625218822Sdim  (eval $ac_try) 2>&5
2626218822Sdim  ac_status=$?
2627218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628218822Sdim  (exit $ac_status); }; }; then
2629218822Sdim  ac_cv_search_strerror="-l$ac_lib"
2630218822Sdimbreak
2631218822Sdimelse
2632218822Sdim  echo "$as_me: failed program was:" >&5
2633218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
263433965Sjdp
2635218822Sdimfi
2636218822Sdimrm -f conftest.err conftest.$ac_objext \
2637218822Sdim      conftest$ac_exeext conftest.$ac_ext
2638218822Sdim  done
2639218822Sdimfi
2640218822SdimLIBS=$ac_func_search_save_LIBS
2641218822Sdimfi
2642218822Sdimecho "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2643218822Sdimecho "${ECHO_T}$ac_cv_search_strerror" >&6
2644218822Sdimif test "$ac_cv_search_strerror" != no; then
2645218822Sdim  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2646130561Sobrien
2647218822Sdimfi
2648218822Sdim
2649218822Sdim
2650218822Sdimam__api_version="1.9"
265138889Sjdp# Find a good install program.  We prefer a C program (faster),
265238889Sjdp# so one script is as good as another.  But avoid the broken or
265338889Sjdp# incompatible versions:
265438889Sjdp# SysV /etc/install, /usr/sbin/install
265538889Sjdp# SunOS /usr/etc/install
265638889Sjdp# IRIX /sbin/install
265738889Sjdp# AIX /bin/install
2658218822Sdim# AmigaOS /C/install, which installs bootblocks on floppy discs
265938889Sjdp# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
266038889Sjdp# AFS /usr/afsws/bin/install, which mishandles nonexistent args
266138889Sjdp# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2662218822Sdim# OS/2's system install, which has a completely different semantic
266338889Sjdp# ./install, which can be erroneously created by make from ./install.sh.
2664218822Sdimecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2665218822Sdimecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
266638889Sjdpif test -z "$INSTALL"; then
2667218822Sdimif test "${ac_cv_path_install+set}" = set; then
2668218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
266938889Sjdpelse
2670218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671218822Sdimfor as_dir in $PATH
2672218822Sdimdo
2673218822Sdim  IFS=$as_save_IFS
2674218822Sdim  test -z "$as_dir" && as_dir=.
2675218822Sdim  # Account for people who put trailing slashes in PATH elements.
2676218822Sdimcase $as_dir/ in
2677218822Sdim  ./ | .// | /cC/* | \
2678218822Sdim  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2679218822Sdim  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2680218822Sdim  /usr/ucb/* ) ;;
2681218822Sdim  *)
2682218822Sdim    # OSF1 and SCO ODT 3.0 have their own names for install.
2683218822Sdim    # Don't use installbsd from OSF since it installs stuff as root
2684218822Sdim    # by default.
2685218822Sdim    for ac_prog in ginstall scoinst install; do
2686218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
2687218822Sdim	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
268838889Sjdp	  if test $ac_prog = install &&
2689218822Sdim	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
269038889Sjdp	    # AIX install.  It has an incompatible calling convention.
269138889Sjdp	    :
2692218822Sdim	  elif test $ac_prog = install &&
2693218822Sdim	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2694218822Sdim	    # program-specific install script used by HP pwplus--don't use.
2695218822Sdim	    :
269638889Sjdp	  else
2697218822Sdim	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2698218822Sdim	    break 3
269938889Sjdp	  fi
270038889Sjdp	fi
270138889Sjdp      done
2702218822Sdim    done
2703218822Sdim    ;;
2704218822Sdimesac
2705218822Sdimdone
270633965Sjdp
2707218822Sdim
270838889Sjdpfi
270938889Sjdp  if test "${ac_cv_path_install+set}" = set; then
2710218822Sdim    INSTALL=$ac_cv_path_install
271138889Sjdp  else
271238889Sjdp    # As a last resort, use the slow shell script.  We don't cache a
271338889Sjdp    # path for INSTALL within a source directory, because that will
271438889Sjdp    # break other packages using the cache if that directory is
271538889Sjdp    # removed, or if the path is relative.
2716218822Sdim    INSTALL=$ac_install_sh
271738889Sjdp  fi
271838889Sjdpfi
2719218822Sdimecho "$as_me:$LINENO: result: $INSTALL" >&5
2720218822Sdimecho "${ECHO_T}$INSTALL" >&6
272133965Sjdp
272238889Sjdp# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
272338889Sjdp# It thinks the first close brace ends the variable substitution.
272438889Sjdptest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
272538889Sjdp
2726218822Sdimtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
272760484Sobrien
272838889Sjdptest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
272938889Sjdp
2730218822Sdimecho "$as_me:$LINENO: checking whether build environment is sane" >&5
2731218822Sdimecho $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
273238889Sjdp# Just in case
273338889Sjdpsleep 1
2734218822Sdimecho timestamp > conftest.file
273538889Sjdp# Do `set' in a subshell so we don't clobber the current shell's
273638889Sjdp# arguments.  Must try -L first in case configure is actually a
273738889Sjdp# symlink; some systems play weird games with the mod time of symlinks
273838889Sjdp# (eg FreeBSD returns the mod time of the symlink's containing
273938889Sjdp# directory).
274038889Sjdpif (
2741218822Sdim   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
274238889Sjdp   if test "$*" = "X"; then
274338889Sjdp      # -L didn't work.
2744218822Sdim      set X `ls -t $srcdir/configure conftest.file`
274538889Sjdp   fi
2746218822Sdim   rm -f conftest.file
2747218822Sdim   if test "$*" != "X $srcdir/configure conftest.file" \
2748218822Sdim      && test "$*" != "X conftest.file $srcdir/configure"; then
274938889Sjdp
275038889Sjdp      # If neither matched, then we have a broken ls.  This can happen
275138889Sjdp      # if, for instance, CONFIG_SHELL is bash and it inherits a
275238889Sjdp      # broken ls alias from the environment.  This has actually
275338889Sjdp      # happened.  Such a system could not be considered "sane".
2754218822Sdim      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2755218822Sdimalias in your environment" >&5
2756218822Sdimecho "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2757218822Sdimalias in your environment" >&2;}
2758218822Sdim   { (exit 1); exit 1; }; }
275938889Sjdp   fi
276038889Sjdp
2761218822Sdim   test "$2" = conftest.file
276238889Sjdp   )
276338889Sjdpthen
276438889Sjdp   # Ok.
276538889Sjdp   :
276638889Sjdpelse
2767218822Sdim   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2768218822SdimCheck your system clock" >&5
2769218822Sdimecho "$as_me: error: newly created file is older than distributed files!
2770218822SdimCheck your system clock" >&2;}
2771218822Sdim   { (exit 1); exit 1; }; }
277238889Sjdpfi
2773218822Sdimecho "$as_me:$LINENO: result: yes" >&5
2774218822Sdimecho "${ECHO_T}yes" >&6
277538889Sjdptest "$program_prefix" != NONE &&
2776218822Sdim  program_transform_name="s,^,$program_prefix,;$program_transform_name"
277738889Sjdp# Use a double $ so make ignores it.
277838889Sjdptest "$program_suffix" != NONE &&
2779218822Sdim  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2780218822Sdim# Double any \ or $.  echo might interpret backslashes.
2781218822Sdim# By default was `s,x,x', remove it if useless.
2782218822Sdimcat <<\_ACEOF >conftest.sed
2783218822Sdims/[\\$]/&&/g;s/;s,x,x,$//
2784218822Sdim_ACEOF
2785218822Sdimprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2786218822Sdimrm conftest.sed
278738889Sjdp
2788218822Sdim# expand $ac_aux_dir to an absolute path
2789218822Sdimam_aux_dir=`cd $ac_aux_dir && pwd`
279038889Sjdp
2791218822Sdimtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2792218822Sdim# Use eval to expand $SHELL
2793218822Sdimif eval "$MISSING --run true"; then
2794218822Sdim  am_missing_run="$MISSING --run "
279538889Sjdpelse
2796218822Sdim  am_missing_run=
2797218822Sdim  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2798218822Sdimecho "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2799218822Sdimfi
2800218822Sdim
2801218822Sdimif mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2802218822Sdim  # We used to keeping the `.' as first argument, in order to
2803218822Sdim  # allow $(mkdir_p) to be used without argument.  As in
2804218822Sdim  #   $(mkdir_p) $(somedir)
2805218822Sdim  # where $(somedir) is conditionally defined.  However this is wrong
2806218822Sdim  # for two reasons:
2807218822Sdim  #  1. if the package is installed by a user who cannot write `.'
2808218822Sdim  #     make install will fail,
2809218822Sdim  #  2. the above comment should most certainly read
2810218822Sdim  #     $(mkdir_p) $(DESTDIR)$(somedir)
2811218822Sdim  #     so it does not work when $(somedir) is undefined and
2812218822Sdim  #     $(DESTDIR) is not.
2813218822Sdim  #  To support the latter case, we have to write
2814218822Sdim  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2815218822Sdim  #  so the `.' trick is pointless.
2816218822Sdim  mkdir_p='mkdir -p --'
2817218822Sdimelse
2818218822Sdim  # On NextStep and OpenStep, the `mkdir' command does not
2819218822Sdim  # recognize any option.  It will interpret all options as
2820218822Sdim  # directories to create, and then abort because `.' already
2821218822Sdim  # exists.
2822218822Sdim  for d in ./-p ./--version;
2823218822Sdim  do
2824218822Sdim    test -d $d && rmdir $d
2825218822Sdim  done
2826218822Sdim  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2827218822Sdim  if test -f "$ac_aux_dir/mkinstalldirs"; then
2828218822Sdim    mkdir_p='$(mkinstalldirs)'
2829218822Sdim  else
2830218822Sdim    mkdir_p='$(install_sh) -d'
2831218822Sdim  fi
2832218822Sdimfi
2833218822Sdim
2834218822Sdimfor ac_prog in gawk mawk nawk awk
2835218822Sdimdo
2836218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
2837218822Sdimset dummy $ac_prog; ac_word=$2
2838218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
2839218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840218822Sdimif test "${ac_cv_prog_AWK+set}" = set; then
2841218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2842218822Sdimelse
2843218822Sdim  if test -n "$AWK"; then
2844218822Sdim  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2845218822Sdimelse
2846218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847218822Sdimfor as_dir in $PATH
2848218822Sdimdo
2849218822Sdim  IFS=$as_save_IFS
2850218822Sdim  test -z "$as_dir" && as_dir=.
2851218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
2852218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853218822Sdim    ac_cv_prog_AWK="$ac_prog"
2854218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855218822Sdim    break 2
2856218822Sdim  fi
2857218822Sdimdone
2858218822Sdimdone
2859218822Sdim
2860218822Sdimfi
2861218822Sdimfi
2862218822SdimAWK=$ac_cv_prog_AWK
2863218822Sdimif test -n "$AWK"; then
2864218822Sdim  echo "$as_me:$LINENO: result: $AWK" >&5
2865218822Sdimecho "${ECHO_T}$AWK" >&6
2866218822Sdimelse
2867218822Sdim  echo "$as_me:$LINENO: result: no" >&5
2868218822Sdimecho "${ECHO_T}no" >&6
2869218822Sdimfi
2870218822Sdim
2871218822Sdim  test -n "$AWK" && break
2872218822Sdimdone
2873218822Sdim
2874218822Sdimecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2875218822Sdimecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2876218822Sdimset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2877218822Sdimif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2878218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2879218822Sdimelse
2880218822Sdim  cat >conftest.make <<\_ACEOF
288138889Sjdpall:
2882218822Sdim	@echo 'ac_maketemp="$(MAKE)"'
2883218822Sdim_ACEOF
288438889Sjdp# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2885218822Sdimeval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
288638889Sjdpif test -n "$ac_maketemp"; then
288738889Sjdp  eval ac_cv_prog_make_${ac_make}_set=yes
288838889Sjdpelse
288938889Sjdp  eval ac_cv_prog_make_${ac_make}_set=no
289038889Sjdpfi
2891218822Sdimrm -f conftest.make
289238889Sjdpfi
289338889Sjdpif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2894218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
2895218822Sdimecho "${ECHO_T}yes" >&6
289638889Sjdp  SET_MAKE=
289738889Sjdpelse
2898218822Sdim  echo "$as_me:$LINENO: result: no" >&5
2899218822Sdimecho "${ECHO_T}no" >&6
290038889Sjdp  SET_MAKE="MAKE=${MAKE-make}"
290138889Sjdpfi
290238889Sjdp
2903218822Sdimrm -rf .tst 2>/dev/null
2904218822Sdimmkdir .tst 2>/dev/null
2905218822Sdimif test -d .tst; then
2906218822Sdim  am__leading_dot=.
2907218822Sdimelse
2908218822Sdim  am__leading_dot=_
2909218822Sdimfi
2910218822Sdimrmdir .tst 2>/dev/null
291138889Sjdp
2912218822SdimDEPDIR="${am__leading_dot}deps"
291338889Sjdp
2914218822Sdim          ac_config_commands="$ac_config_commands depfiles"
291538889Sjdp
2916218822Sdim
2917218822Sdimam_make=${MAKE-make}
2918218822Sdimcat > confinc << 'END'
2919218822Sdimam__doit:
2920218822Sdim	@echo done
2921218822Sdim.PHONY: am__doit
2922218822SdimEND
2923218822Sdim# If we don't find an include directive, just comment out the code.
2924218822Sdimecho "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2925218822Sdimecho $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2926218822Sdimam__include="#"
2927218822Sdimam__quote=
2928218822Sdim_am_result=none
2929218822Sdim# First try GNU make style include.
2930218822Sdimecho "include confinc" > confmf
2931218822Sdim# We grep out `Entering directory' and `Leaving directory'
2932218822Sdim# messages which can occur if `w' ends up in MAKEFLAGS.
2933218822Sdim# In particular we don't look at `^make:' because GNU make might
2934218822Sdim# be invoked under some other name (usually "gmake"), in which
2935218822Sdim# case it prints its new name instead of `make'.
2936218822Sdimif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2937218822Sdim   am__include=include
2938218822Sdim   am__quote=
2939218822Sdim   _am_result=GNU
294038889Sjdpfi
2941218822Sdim# Now try BSD make style include.
2942218822Sdimif test "$am__include" = "#"; then
2943218822Sdim   echo '.include "confinc"' > confmf
2944218822Sdim   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2945218822Sdim      am__include=.include
2946218822Sdim      am__quote="\""
2947218822Sdim      _am_result=BSD
2948218822Sdim   fi
2949218822Sdimfi
2950218822Sdim
2951218822Sdim
2952218822Sdimecho "$as_me:$LINENO: result: $_am_result" >&5
2953218822Sdimecho "${ECHO_T}$_am_result" >&6
2954218822Sdimrm -f confinc confmf
2955218822Sdim
2956218822Sdim# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2957218822Sdimif test "${enable_dependency_tracking+set}" = set; then
2958218822Sdim  enableval="$enable_dependency_tracking"
2959218822Sdim
2960218822Sdimfi;
2961218822Sdimif test "x$enable_dependency_tracking" != xno; then
2962218822Sdim  am_depcomp="$ac_aux_dir/depcomp"
2963218822Sdim  AMDEPBACKSLASH='\'
2964218822Sdimfi
2965218822Sdim
2966218822Sdim
2967218822Sdimif test "x$enable_dependency_tracking" != xno; then
2968218822Sdim  AMDEP_TRUE=
2969218822Sdim  AMDEP_FALSE='#'
2970218822Sdimelse
2971218822Sdim  AMDEP_TRUE='#'
2972218822Sdim  AMDEP_FALSE=
2973218822Sdimfi
2974218822Sdim
2975218822Sdim
2976218822Sdim
2977218822Sdim# test to see if srcdir already configured
2978218822Sdimif test "`cd $srcdir && pwd`" != "`pwd`" &&
2979218822Sdim   test -f $srcdir/config.status; then
2980218822Sdim  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2981218822Sdimecho "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2982218822Sdim   { (exit 1); exit 1; }; }
2983218822Sdimfi
2984218822Sdim
2985218822Sdim# test whether we have cygpath
2986218822Sdimif test -z "$CYGPATH_W"; then
2987218822Sdim  if (cygpath --version) >/dev/null 2>/dev/null; then
2988218822Sdim    CYGPATH_W='cygpath -w'
2989218822Sdim  else
2990218822Sdim    CYGPATH_W=echo
2991218822Sdim  fi
2992218822Sdimfi
2993218822Sdim
2994218822Sdim
2995218822Sdim# Define the identity of the package.
2996218822Sdim PACKAGE=bfd
2997218822Sdim VERSION=2.17.50
2998218822Sdim
2999218822Sdim
3000218822Sdimcat >>confdefs.h <<_ACEOF
300138889Sjdp#define PACKAGE "$PACKAGE"
3002218822Sdim_ACEOF
300338889Sjdp
3004218822Sdim
3005218822Sdimcat >>confdefs.h <<_ACEOF
300638889Sjdp#define VERSION "$VERSION"
3007218822Sdim_ACEOF
300838889Sjdp
3009218822Sdim# Some tools Automake needs.
301038889Sjdp
3011218822SdimACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
301238889Sjdp
3013218822Sdim
3014218822SdimAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3015218822Sdim
3016218822Sdim
3017218822SdimAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3018218822Sdim
3019218822Sdim
3020218822SdimAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3021218822Sdim
3022218822Sdim
3023218822SdimMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3024218822Sdim
3025218822Sdiminstall_sh=${install_sh-"$am_aux_dir/install-sh"}
3026218822Sdim
3027218822Sdim# Installed binaries are usually stripped using `strip' when the user
3028218822Sdim# run `make install-strip'.  However `strip' might not be the right
3029218822Sdim# tool to use in cross-compilation environments, therefore Automake
3030218822Sdim# will honor the `STRIP' environment variable to overrule this program.
3031218822Sdimif test "$cross_compiling" != no; then
3032218822Sdim  if test -n "$ac_tool_prefix"; then
3033218822Sdim  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3034218822Sdimset dummy ${ac_tool_prefix}strip; ac_word=$2
3035218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3036218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037218822Sdimif test "${ac_cv_prog_STRIP+set}" = set; then
3038218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
303938889Sjdpelse
3040218822Sdim  if test -n "$STRIP"; then
3041218822Sdim  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3042218822Sdimelse
3043218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044218822Sdimfor as_dir in $PATH
3045218822Sdimdo
3046218822Sdim  IFS=$as_save_IFS
3047218822Sdim  test -z "$as_dir" && as_dir=.
3048218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3049218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050218822Sdim    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3051218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052218822Sdim    break 2
3053218822Sdim  fi
3054218822Sdimdone
3055218822Sdimdone
3056218822Sdim
305738889Sjdpfi
3058218822Sdimfi
3059218822SdimSTRIP=$ac_cv_prog_STRIP
3060218822Sdimif test -n "$STRIP"; then
3061218822Sdim  echo "$as_me:$LINENO: result: $STRIP" >&5
3062218822Sdimecho "${ECHO_T}$STRIP" >&6
306338889Sjdpelse
3064218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3065218822Sdimecho "${ECHO_T}no" >&6
306638889Sjdpfi
306738889Sjdp
3068218822Sdimfi
3069218822Sdimif test -z "$ac_cv_prog_STRIP"; then
3070218822Sdim  ac_ct_STRIP=$STRIP
3071218822Sdim  # Extract the first word of "strip", so it can be a program name with args.
3072218822Sdimset dummy strip; ac_word=$2
3073218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3074218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075218822Sdimif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3076218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
307738889Sjdpelse
3078218822Sdim  if test -n "$ac_ct_STRIP"; then
3079218822Sdim  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3080218822Sdimelse
3081218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082218822Sdimfor as_dir in $PATH
3083218822Sdimdo
3084218822Sdim  IFS=$as_save_IFS
3085218822Sdim  test -z "$as_dir" && as_dir=.
3086218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3087218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088218822Sdim    ac_cv_prog_ac_ct_STRIP="strip"
3089218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090218822Sdim    break 2
3091218822Sdim  fi
3092218822Sdimdone
3093218822Sdimdone
3094218822Sdim
3095218822Sdim  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
309638889Sjdpfi
3097218822Sdimfi
3098218822Sdimac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3099218822Sdimif test -n "$ac_ct_STRIP"; then
3100218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3101218822Sdimecho "${ECHO_T}$ac_ct_STRIP" >&6
310238889Sjdpelse
3103218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3104218822Sdimecho "${ECHO_T}no" >&6
310538889Sjdpfi
310638889Sjdp
3107218822Sdim  STRIP=$ac_ct_STRIP
310838889Sjdpelse
3109218822Sdim  STRIP="$ac_cv_prog_STRIP"
311038889Sjdpfi
311138889Sjdp
3112218822Sdimfi
3113218822SdimINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
311438889Sjdp
3115218822Sdim# We need awk for the "check" target.  The system "awk" is bad on
3116218822Sdim# some platforms.
3117218822Sdim# Always define AMTAR for backward compatibility.
311838889Sjdp
3119218822SdimAMTAR=${AMTAR-"${am_missing_run}tar"}
312089857Sobrien
3121218822Sdimam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3122218822Sdim
3123218822Sdim
3124218822Sdim
3125218822Sdim
3126218822Sdimdepcc="$CC"   am_compiler_list=
3127218822Sdim
3128218822Sdimecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
3129218822Sdimecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3130218822Sdimif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3131218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3132218822Sdimelse
3133218822Sdim  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3134218822Sdim  # We make a subdir and do the tests there.  Otherwise we can end up
3135218822Sdim  # making bogus files that we don't know about and never remove.  For
3136218822Sdim  # instance it was reported that on HP-UX the gcc test will end up
3137218822Sdim  # making a dummy file named `D' -- because `-MD' means `put the output
3138218822Sdim  # in D'.
3139218822Sdim  mkdir conftest.dir
3140218822Sdim  # Copy depcomp to subdir because otherwise we won't find it if we're
3141218822Sdim  # using a relative directory.
3142218822Sdim  cp "$am_depcomp" conftest.dir
3143218822Sdim  cd conftest.dir
3144218822Sdim  # We will build objects and dependencies in a subdirectory because
3145218822Sdim  # it helps to detect inapplicable dependency modes.  For instance
3146218822Sdim  # both Tru64's cc and ICC support -MD to output dependencies as a
3147218822Sdim  # side effect of compilation, but ICC will put the dependencies in
3148218822Sdim  # the current directory while Tru64 will put them in the object
3149218822Sdim  # directory.
3150218822Sdim  mkdir sub
3151218822Sdim
3152218822Sdim  am_cv_CC_dependencies_compiler_type=none
3153218822Sdim  if test "$am_compiler_list" = ""; then
3154218822Sdim     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3155218822Sdim  fi
3156218822Sdim  for depmode in $am_compiler_list; do
3157218822Sdim    # Setup a source with many dependencies, because some compilers
3158218822Sdim    # like to wrap large dependency lists on column 80 (with \), and
3159218822Sdim    # we should not choose a depcomp mode which is confused by this.
3160218822Sdim    #
3161218822Sdim    # We need to recreate these files for each test, as the compiler may
3162218822Sdim    # overwrite some of them when testing with obscure command lines.
3163218822Sdim    # This happens at least with the AIX C compiler.
3164218822Sdim    : > sub/conftest.c
3165218822Sdim    for i in 1 2 3 4 5 6; do
3166218822Sdim      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3167218822Sdim      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3168218822Sdim      # Solaris 8's {/usr,}/bin/sh.
3169218822Sdim      touch sub/conftst$i.h
3170218822Sdim    done
3171218822Sdim    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3172218822Sdim
3173218822Sdim    case $depmode in
3174218822Sdim    nosideeffect)
3175218822Sdim      # after this tag, mechanisms are not by side-effect, so they'll
3176218822Sdim      # only be used when explicitly requested
3177218822Sdim      if test "x$enable_dependency_tracking" = xyes; then
3178218822Sdim	continue
3179218822Sdim      else
3180218822Sdim	break
3181218822Sdim      fi
3182218822Sdim      ;;
3183218822Sdim    none) break ;;
3184218822Sdim    esac
3185218822Sdim    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3186218822Sdim    # mode.  It turns out that the SunPro C++ compiler does not properly
3187218822Sdim    # handle `-M -o', and we need to detect this.
3188218822Sdim    if depmode=$depmode \
3189218822Sdim       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3190218822Sdim       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3191218822Sdim       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3192218822Sdim         >/dev/null 2>conftest.err &&
3193218822Sdim       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3194218822Sdim       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3195218822Sdim       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3196218822Sdim      # icc doesn't choke on unknown options, it will just issue warnings
3197218822Sdim      # or remarks (even with -Werror).  So we grep stderr for any message
3198218822Sdim      # that says an option was ignored or not supported.
3199218822Sdim      # When given -MP, icc 7.0 and 7.1 complain thusly:
3200218822Sdim      #   icc: Command line warning: ignoring option '-M'; no argument required
3201218822Sdim      # The diagnosis changed in icc 8.0:
3202218822Sdim      #   icc: Command line remark: option '-MP' not supported
3203218822Sdim      if (grep 'ignoring option' conftest.err ||
3204218822Sdim          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3205218822Sdim        am_cv_CC_dependencies_compiler_type=$depmode
3206218822Sdim        break
3207218822Sdim      fi
3208218822Sdim    fi
3209218822Sdim  done
3210218822Sdim
3211218822Sdim  cd ..
3212218822Sdim  rm -rf conftest.dir
3213218822Sdimelse
3214218822Sdim  am_cv_CC_dependencies_compiler_type=none
321589857Sobrienfi
321689857Sobrien
3217218822Sdimfi
3218218822Sdimecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3219218822Sdimecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3220218822SdimCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
322189857Sobrien
322289857Sobrien
3223218822Sdim
3224218822Sdimif
3225218822Sdim  test "x$enable_dependency_tracking" != xno \
3226218822Sdim  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3227218822Sdim  am__fastdepCC_TRUE=
3228218822Sdim  am__fastdepCC_FALSE='#'
322933965Sjdpelse
3230218822Sdim  am__fastdepCC_TRUE='#'
3231218822Sdim  am__fastdepCC_FALSE=
323233965Sjdpfi
323333965Sjdp
3234218822Sdim
3235218822Sdim
3236218822Sdim
3237218822Sdimif test -n "$ac_tool_prefix"; then
3238218822Sdim  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
323933965Sjdpset dummy ${ac_tool_prefix}ar; ac_word=$2
3240218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3241218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242218822Sdimif test "${ac_cv_prog_AR+set}" = set; then
3243218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
324433965Sjdpelse
324533965Sjdp  if test -n "$AR"; then
324633965Sjdp  ac_cv_prog_AR="$AR" # Let the user override the test.
324733965Sjdpelse
3248218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249218822Sdimfor as_dir in $PATH
3250218822Sdimdo
3251218822Sdim  IFS=$as_save_IFS
3252218822Sdim  test -z "$as_dir" && as_dir=.
3253218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3254218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255218822Sdim    ac_cv_prog_AR="${ac_tool_prefix}ar"
3256218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257218822Sdim    break 2
3258218822Sdim  fi
3259218822Sdimdone
3260218822Sdimdone
3261218822Sdim
326233965Sjdpfi
326333965Sjdpfi
3264218822SdimAR=$ac_cv_prog_AR
326533965Sjdpif test -n "$AR"; then
3266218822Sdim  echo "$as_me:$LINENO: result: $AR" >&5
3267218822Sdimecho "${ECHO_T}$AR" >&6
326833965Sjdpelse
3269218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3270218822Sdimecho "${ECHO_T}no" >&6
327133965Sjdpfi
327233965Sjdp
3273218822Sdimfi
3274218822Sdimif test -z "$ac_cv_prog_AR"; then
3275218822Sdim  ac_ct_AR=$AR
3276218822Sdim  # Extract the first word of "ar", so it can be a program name with args.
3277218822Sdimset dummy ar; ac_word=$2
3278218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3279218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280218822Sdimif test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3281218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3282218822Sdimelse
3283218822Sdim  if test -n "$ac_ct_AR"; then
3284218822Sdim  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3285218822Sdimelse
3286218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287218822Sdimfor as_dir in $PATH
3288218822Sdimdo
3289218822Sdim  IFS=$as_save_IFS
3290218822Sdim  test -z "$as_dir" && as_dir=.
3291218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3292218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293218822Sdim    ac_cv_prog_ac_ct_AR="ar"
3294218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295218822Sdim    break 2
3296218822Sdim  fi
3297218822Sdimdone
3298218822Sdimdone
329933965Sjdp
3300218822Sdimfi
3301218822Sdimfi
3302218822Sdimac_ct_AR=$ac_cv_prog_ac_ct_AR
3303218822Sdimif test -n "$ac_ct_AR"; then
3304218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3305218822Sdimecho "${ECHO_T}$ac_ct_AR" >&6
3306218822Sdimelse
3307218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3308218822Sdimecho "${ECHO_T}no" >&6
3309218822Sdimfi
331033965Sjdp
3311218822Sdim  AR=$ac_ct_AR
3312218822Sdimelse
3313218822Sdim  AR="$ac_cv_prog_AR"
3314218822Sdimfi
3315218822Sdim
3316218822Sdimif test -n "$ac_tool_prefix"; then
3317218822Sdim  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
331833965Sjdpset dummy ${ac_tool_prefix}ranlib; ac_word=$2
3319218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3320218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321218822Sdimif test "${ac_cv_prog_RANLIB+set}" = set; then
3322218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
332333965Sjdpelse
332433965Sjdp  if test -n "$RANLIB"; then
332533965Sjdp  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
332633965Sjdpelse
3327218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328218822Sdimfor as_dir in $PATH
3329218822Sdimdo
3330218822Sdim  IFS=$as_save_IFS
3331218822Sdim  test -z "$as_dir" && as_dir=.
3332218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3333218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334218822Sdim    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3335218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336218822Sdim    break 2
3337218822Sdim  fi
3338218822Sdimdone
3339218822Sdimdone
3340218822Sdim
334133965Sjdpfi
334233965Sjdpfi
3343218822SdimRANLIB=$ac_cv_prog_RANLIB
334433965Sjdpif test -n "$RANLIB"; then
3345218822Sdim  echo "$as_me:$LINENO: result: $RANLIB" >&5
3346218822Sdimecho "${ECHO_T}$RANLIB" >&6
334733965Sjdpelse
3348218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3349218822Sdimecho "${ECHO_T}no" >&6
335033965Sjdpfi
335133965Sjdp
3352218822Sdimfi
335333965Sjdpif test -z "$ac_cv_prog_RANLIB"; then
3354218822Sdim  ac_ct_RANLIB=$RANLIB
335533965Sjdp  # Extract the first word of "ranlib", so it can be a program name with args.
335633965Sjdpset dummy ranlib; ac_word=$2
3357218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3358218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359218822Sdimif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3360218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
336133965Sjdpelse
3362218822Sdim  if test -n "$ac_ct_RANLIB"; then
3363218822Sdim  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
336433965Sjdpelse
3365218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366218822Sdimfor as_dir in $PATH
3367218822Sdimdo
3368218822Sdim  IFS=$as_save_IFS
3369218822Sdim  test -z "$as_dir" && as_dir=.
3370218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3371218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372218822Sdim    ac_cv_prog_ac_ct_RANLIB="ranlib"
3373218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374218822Sdim    break 2
3375218822Sdim  fi
3376218822Sdimdone
3377218822Sdimdone
3378218822Sdim
3379218822Sdim  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
338033965Sjdpfi
338133965Sjdpfi
3382218822Sdimac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3383218822Sdimif test -n "$ac_ct_RANLIB"; then
3384218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3385218822Sdimecho "${ECHO_T}$ac_ct_RANLIB" >&6
338633965Sjdpelse
3387218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3388218822Sdimecho "${ECHO_T}no" >&6
338933965Sjdpfi
339033965Sjdp
3391218822Sdim  RANLIB=$ac_ct_RANLIB
339233965Sjdpelse
3393218822Sdim  RANLIB="$ac_cv_prog_RANLIB"
339433965Sjdpfi
339533965Sjdp
339638889Sjdp
339738889Sjdp# Check whether --enable-shared or --disable-shared was given.
339838889Sjdpif test "${enable_shared+set}" = set; then
339938889Sjdp  enableval="$enable_shared"
340038889Sjdp  p=${PACKAGE-default}
3401218822Sdim    case $enableval in
3402218822Sdim    yes) enable_shared=yes ;;
3403218822Sdim    no) enable_shared=no ;;
3404218822Sdim    *)
3405218822Sdim      enable_shared=no
3406218822Sdim      # Look at the argument we got.  We use all the common list separators.
3407218822Sdim      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3408218822Sdim      for pkg in $enableval; do
3409218822Sdim	IFS="$lt_save_ifs"
3410218822Sdim	if test "X$pkg" = "X$p"; then
3411218822Sdim	  enable_shared=yes
3412218822Sdim	fi
3413218822Sdim      done
3414218822Sdim      IFS="$lt_save_ifs"
3415218822Sdim      ;;
3416218822Sdim    esac
3417218822Sdimelse
341838889Sjdp  enable_shared=no
3419218822Sdimfi;
3420218822Sdim
3421218822Sdim
3422218822Sdim
3423218822Sdim
3424218822Sdim
3425218822Sdim
3426218822Sdim
3427218822Sdim
3428218822Sdim
3429218822Sdimac_ext=c
3430218822Sdimac_cpp='$CPP $CPPFLAGS'
3431218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
3434218822Sdimif test -n "$ac_tool_prefix"; then
3435218822Sdim  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3436218822Sdimset dummy ${ac_tool_prefix}gcc; ac_word=$2
3437218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3438218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
3440218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
344138889Sjdpelse
3442218822Sdim  if test -n "$CC"; then
3443218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
3444218822Sdimelse
3445218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446218822Sdimfor as_dir in $PATH
3447218822Sdimdo
3448218822Sdim  IFS=$as_save_IFS
3449218822Sdim  test -z "$as_dir" && as_dir=.
3450218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3451218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452218822Sdim    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454218822Sdim    break 2
3455218822Sdim  fi
3456218822Sdimdone
3457218822Sdimdone
3458218822Sdim
345938889Sjdpfi
3460218822Sdimfi
3461218822SdimCC=$ac_cv_prog_CC
3462218822Sdimif test -n "$CC"; then
3463218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
3464218822Sdimecho "${ECHO_T}$CC" >&6
3465218822Sdimelse
3466218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3467218822Sdimecho "${ECHO_T}no" >&6
3468218822Sdimfi
346938889Sjdp
3470218822Sdimfi
3471218822Sdimif test -z "$ac_cv_prog_CC"; then
3472218822Sdim  ac_ct_CC=$CC
3473218822Sdim  # Extract the first word of "gcc", so it can be a program name with args.
3474218822Sdimset dummy gcc; ac_word=$2
3475218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3476218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3478218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3479218822Sdimelse
3480218822Sdim  if test -n "$ac_ct_CC"; then
3481218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482218822Sdimelse
3483218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484218822Sdimfor as_dir in $PATH
3485218822Sdimdo
3486218822Sdim  IFS=$as_save_IFS
3487218822Sdim  test -z "$as_dir" && as_dir=.
3488218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3489218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490218822Sdim    ac_cv_prog_ac_ct_CC="gcc"
3491218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492218822Sdim    break 2
3493218822Sdim  fi
3494218822Sdimdone
3495218822Sdimdone
349638889Sjdp
3497218822Sdimfi
3498218822Sdimfi
3499218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
3500218822Sdimif test -n "$ac_ct_CC"; then
3501218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3502218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
350338889Sjdpelse
3504218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3505218822Sdimecho "${ECHO_T}no" >&6
350638889Sjdpfi
350738889Sjdp
3508218822Sdim  CC=$ac_ct_CC
350960484Sobrienelse
3510218822Sdim  CC="$ac_cv_prog_CC"
351160484Sobrienfi
351260484Sobrien
3513218822Sdimif test -z "$CC"; then
3514218822Sdim  if test -n "$ac_tool_prefix"; then
3515218822Sdim  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3516218822Sdimset dummy ${ac_tool_prefix}cc; ac_word=$2
3517218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3518218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
3520218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3521130561Sobrienelse
3522130561Sobrien  if test -n "$CC"; then
3523130561Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
3524130561Sobrienelse
3525218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526218822Sdimfor as_dir in $PATH
3527218822Sdimdo
3528218822Sdim  IFS=$as_save_IFS
3529218822Sdim  test -z "$as_dir" && as_dir=.
3530218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3531218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532218822Sdim    ac_cv_prog_CC="${ac_tool_prefix}cc"
3533218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534218822Sdim    break 2
3535218822Sdim  fi
3536218822Sdimdone
3537218822Sdimdone
3538218822Sdim
3539130561Sobrienfi
3540130561Sobrienfi
3541218822SdimCC=$ac_cv_prog_CC
3542130561Sobrienif test -n "$CC"; then
3543218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
3544218822Sdimecho "${ECHO_T}$CC" >&6
3545130561Sobrienelse
3546218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3547218822Sdimecho "${ECHO_T}no" >&6
3548130561Sobrienfi
3549130561Sobrien
3550218822Sdimfi
3551218822Sdimif test -z "$ac_cv_prog_CC"; then
3552218822Sdim  ac_ct_CC=$CC
3553218822Sdim  # Extract the first word of "cc", so it can be a program name with args.
3554218822Sdimset dummy cc; ac_word=$2
3555218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3556218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3558218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3559218822Sdimelse
3560218822Sdim  if test -n "$ac_ct_CC"; then
3561218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3562218822Sdimelse
3563218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564218822Sdimfor as_dir in $PATH
3565218822Sdimdo
3566218822Sdim  IFS=$as_save_IFS
3567218822Sdim  test -z "$as_dir" && as_dir=.
3568218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3569218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570218822Sdim    ac_cv_prog_ac_ct_CC="cc"
3571218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572218822Sdim    break 2
3573218822Sdim  fi
3574218822Sdimdone
3575218822Sdimdone
3576218822Sdim
3577218822Sdimfi
3578218822Sdimfi
3579218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
3580218822Sdimif test -n "$ac_ct_CC"; then
3581218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3582218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
3583218822Sdimelse
3584218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3585218822Sdimecho "${ECHO_T}no" >&6
3586218822Sdimfi
3587218822Sdim
3588218822Sdim  CC=$ac_ct_CC
3589218822Sdimelse
3590218822Sdim  CC="$ac_cv_prog_CC"
3591218822Sdimfi
3592218822Sdim
3593218822Sdimfi
3594130561Sobrienif test -z "$CC"; then
3595130561Sobrien  # Extract the first word of "cc", so it can be a program name with args.
3596130561Sobrienset dummy cc; ac_word=$2
3597218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3598218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
3600218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3601130561Sobrienelse
3602130561Sobrien  if test -n "$CC"; then
3603130561Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
3604130561Sobrienelse
3605130561Sobrien  ac_prog_rejected=no
3606218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607218822Sdimfor as_dir in $PATH
3608218822Sdimdo
3609218822Sdim  IFS=$as_save_IFS
3610218822Sdim  test -z "$as_dir" && as_dir=.
3611218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3612218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613218822Sdim    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3614218822Sdim       ac_prog_rejected=yes
3615218822Sdim       continue
3616218822Sdim     fi
3617218822Sdim    ac_cv_prog_CC="cc"
3618218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619218822Sdim    break 2
3620218822Sdim  fi
3621218822Sdimdone
3622218822Sdimdone
3623218822Sdim
3624130561Sobrienif test $ac_prog_rejected = yes; then
3625130561Sobrien  # We found a bogon in the path, so make sure we never use it.
3626130561Sobrien  set dummy $ac_cv_prog_CC
3627130561Sobrien  shift
3628218822Sdim  if test $# != 0; then
3629130561Sobrien    # We chose a different compiler from the bogus one.
3630130561Sobrien    # However, it has the same basename, so the bogon will be chosen
3631130561Sobrien    # first if we set CC to just the basename; use the full file name.
3632130561Sobrien    shift
3633218822Sdim    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3634130561Sobrien  fi
3635130561Sobrienfi
3636130561Sobrienfi
3637130561Sobrienfi
3638218822SdimCC=$ac_cv_prog_CC
3639130561Sobrienif test -n "$CC"; then
3640218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
3641218822Sdimecho "${ECHO_T}$CC" >&6
3642130561Sobrienelse
3643218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3644218822Sdimecho "${ECHO_T}no" >&6
3645130561Sobrienfi
3646130561Sobrien
3647218822Sdimfi
3648218822Sdimif test -z "$CC"; then
3649218822Sdim  if test -n "$ac_tool_prefix"; then
3650218822Sdim  for ac_prog in cl
3651218822Sdim  do
3652218822Sdim    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653218822Sdimset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3654218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3655218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
3657218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3658130561Sobrienelse
3659130561Sobrien  if test -n "$CC"; then
3660130561Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
3661130561Sobrienelse
3662218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663218822Sdimfor as_dir in $PATH
3664218822Sdimdo
3665218822Sdim  IFS=$as_save_IFS
3666218822Sdim  test -z "$as_dir" && as_dir=.
3667218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3668218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669218822Sdim    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3670218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671218822Sdim    break 2
3672218822Sdim  fi
3673218822Sdimdone
3674218822Sdimdone
3675218822Sdim
3676130561Sobrienfi
3677130561Sobrienfi
3678218822SdimCC=$ac_cv_prog_CC
3679130561Sobrienif test -n "$CC"; then
3680218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
3681218822Sdimecho "${ECHO_T}$CC" >&6
3682130561Sobrienelse
3683218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3684218822Sdimecho "${ECHO_T}no" >&6
3685130561Sobrienfi
3686218822Sdim
3687218822Sdim    test -n "$CC" && break
3688218822Sdim  done
3689218822Sdimfi
3690218822Sdimif test -z "$CC"; then
3691218822Sdim  ac_ct_CC=$CC
3692218822Sdim  for ac_prog in cl
3693218822Sdimdo
3694218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
3695218822Sdimset dummy $ac_prog; ac_word=$2
3696218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3697218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3699218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3700218822Sdimelse
3701218822Sdim  if test -n "$ac_ct_CC"; then
3702218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703218822Sdimelse
3704218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705218822Sdimfor as_dir in $PATH
3706218822Sdimdo
3707218822Sdim  IFS=$as_save_IFS
3708218822Sdim  test -z "$as_dir" && as_dir=.
3709218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3710218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711218822Sdim    ac_cv_prog_ac_ct_CC="$ac_prog"
3712218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713218822Sdim    break 2
3714130561Sobrien  fi
3715218822Sdimdone
3716218822Sdimdone
3717218822Sdim
3718130561Sobrienfi
3719218822Sdimfi
3720218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
3721218822Sdimif test -n "$ac_ct_CC"; then
3722218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3723218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
3724218822Sdimelse
3725218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3726218822Sdimecho "${ECHO_T}no" >&6
3727218822Sdimfi
3728130561Sobrien
3729218822Sdim  test -n "$ac_ct_CC" && break
3730218822Sdimdone
3731130561Sobrien
3732218822Sdim  CC=$ac_ct_CC
3733218822Sdimfi
3734130561Sobrien
3735218822Sdimfi
3736130561Sobrien
3737130561Sobrien
3738218822Sdimtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3739218822SdimSee \`config.log' for more details." >&5
3740218822Sdimecho "$as_me: error: no acceptable C compiler found in \$PATH
3741218822SdimSee \`config.log' for more details." >&2;}
3742218822Sdim   { (exit 1); exit 1; }; }
3743130561Sobrien
3744218822Sdim# Provide some information about the compiler.
3745218822Sdimecho "$as_me:$LINENO:" \
3746218822Sdim     "checking for C compiler version" >&5
3747218822Sdimac_compiler=`set X $ac_compile; echo $2`
3748218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3749218822Sdim  (eval $ac_compiler --version </dev/null >&5) 2>&5
3750218822Sdim  ac_status=$?
3751218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752218822Sdim  (exit $ac_status); }
3753218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3754218822Sdim  (eval $ac_compiler -v </dev/null >&5) 2>&5
3755218822Sdim  ac_status=$?
3756218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757218822Sdim  (exit $ac_status); }
3758218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3759218822Sdim  (eval $ac_compiler -V </dev/null >&5) 2>&5
3760218822Sdim  ac_status=$?
3761218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762218822Sdim  (exit $ac_status); }
3763130561Sobrien
3764218822Sdimecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3765218822Sdimecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3766218822Sdimif test "${ac_cv_c_compiler_gnu+set}" = set; then
3767218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3768130561Sobrienelse
3769218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3770218822Sdim/* confdefs.h.  */
3771218822Sdim_ACEOF
3772218822Sdimcat confdefs.h >>conftest.$ac_ext
3773218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3774218822Sdim/* end confdefs.h.  */
3775218822Sdim
3776218822Sdimint
3777218822Sdimmain ()
3778218822Sdim{
3779218822Sdim#ifndef __GNUC__
3780218822Sdim       choke me
3781130561Sobrien#endif
3782218822Sdim
3783218822Sdim  ;
3784218822Sdim  return 0;
3785218822Sdim}
3786218822Sdim_ACEOF
3787218822Sdimrm -f conftest.$ac_objext
3788218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789218822Sdim  (eval $ac_compile) 2>conftest.er1
3790218822Sdim  ac_status=$?
3791218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3792218822Sdim  rm -f conftest.er1
3793218822Sdim  cat conftest.err >&5
3794218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795218822Sdim  (exit $ac_status); } &&
3796218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3797218822Sdim			 || test ! -s conftest.err'
3798218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799218822Sdim  (eval $ac_try) 2>&5
3800218822Sdim  ac_status=$?
3801218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802218822Sdim  (exit $ac_status); }; } &&
3803218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3804218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805218822Sdim  (eval $ac_try) 2>&5
3806218822Sdim  ac_status=$?
3807218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808218822Sdim  (exit $ac_status); }; }; then
3809218822Sdim  ac_compiler_gnu=yes
3810130561Sobrienelse
3811218822Sdim  echo "$as_me: failed program was:" >&5
3812218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3813218822Sdim
3814218822Sdimac_compiler_gnu=no
3815130561Sobrienfi
3816218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817218822Sdimac_cv_c_compiler_gnu=$ac_compiler_gnu
3818218822Sdim
3819130561Sobrienfi
3820218822Sdimecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3821218822Sdimecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3822218822SdimGCC=`test $ac_compiler_gnu = yes && echo yes`
3823218822Sdimac_test_CFLAGS=${CFLAGS+set}
3824218822Sdimac_save_CFLAGS=$CFLAGS
3825218822SdimCFLAGS="-g"
3826218822Sdimecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3827218822Sdimecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3828218822Sdimif test "${ac_cv_prog_cc_g+set}" = set; then
3829218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3830218822Sdimelse
3831218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3832218822Sdim/* confdefs.h.  */
3833218822Sdim_ACEOF
3834218822Sdimcat confdefs.h >>conftest.$ac_ext
3835218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3836218822Sdim/* end confdefs.h.  */
3837130561Sobrien
3838218822Sdimint
3839218822Sdimmain ()
3840218822Sdim{
3841130561Sobrien
3842218822Sdim  ;
3843218822Sdim  return 0;
3844218822Sdim}
3845218822Sdim_ACEOF
3846218822Sdimrm -f conftest.$ac_objext
3847218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848218822Sdim  (eval $ac_compile) 2>conftest.er1
3849218822Sdim  ac_status=$?
3850218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3851218822Sdim  rm -f conftest.er1
3852218822Sdim  cat conftest.err >&5
3853218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854218822Sdim  (exit $ac_status); } &&
3855218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3856218822Sdim			 || test ! -s conftest.err'
3857218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858218822Sdim  (eval $ac_try) 2>&5
3859218822Sdim  ac_status=$?
3860218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861218822Sdim  (exit $ac_status); }; } &&
3862218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3863218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864218822Sdim  (eval $ac_try) 2>&5
3865218822Sdim  ac_status=$?
3866218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867218822Sdim  (exit $ac_status); }; }; then
3868130561Sobrien  ac_cv_prog_cc_g=yes
3869130561Sobrienelse
3870218822Sdim  echo "$as_me: failed program was:" >&5
3871218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3872130561Sobrien
3873218822Sdimac_cv_prog_cc_g=no
3874130561Sobrienfi
3875218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3876218822Sdimfi
3877218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3878218822Sdimecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
3879130561Sobrienif test "$ac_test_CFLAGS" = set; then
3880218822Sdim  CFLAGS=$ac_save_CFLAGS
3881130561Sobrienelif test $ac_cv_prog_cc_g = yes; then
3882130561Sobrien  if test "$GCC" = yes; then
3883130561Sobrien    CFLAGS="-g -O2"
3884130561Sobrien  else
3885130561Sobrien    CFLAGS="-g"
3886130561Sobrien  fi
3887130561Sobrienelse
3888130561Sobrien  if test "$GCC" = yes; then
3889130561Sobrien    CFLAGS="-O2"
3890130561Sobrien  else
3891130561Sobrien    CFLAGS=
3892130561Sobrien  fi
3893130561Sobrienfi
3894218822Sdimecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3895218822Sdimecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3896218822Sdimif test "${ac_cv_prog_cc_stdc+set}" = set; then
3897218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3898218822Sdimelse
3899218822Sdim  ac_cv_prog_cc_stdc=no
3900218822Sdimac_save_CC=$CC
3901218822Sdimcat >conftest.$ac_ext <<_ACEOF
3902218822Sdim/* confdefs.h.  */
3903218822Sdim_ACEOF
3904218822Sdimcat confdefs.h >>conftest.$ac_ext
3905218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3906218822Sdim/* end confdefs.h.  */
3907218822Sdim#include <stdarg.h>
3908218822Sdim#include <stdio.h>
3909218822Sdim#include <sys/types.h>
3910218822Sdim#include <sys/stat.h>
3911218822Sdim/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3912218822Sdimstruct buf { int x; };
3913218822SdimFILE * (*rcsopen) (struct buf *, struct stat *, int);
3914218822Sdimstatic char *e (p, i)
3915218822Sdim     char **p;
3916218822Sdim     int i;
3917218822Sdim{
3918218822Sdim  return p[i];
3919218822Sdim}
3920218822Sdimstatic char *f (char * (*g) (char **, int), char **p, ...)
3921218822Sdim{
3922218822Sdim  char *s;
3923218822Sdim  va_list v;
3924218822Sdim  va_start (v,p);
3925218822Sdim  s = g (p, va_arg (v,int));
3926218822Sdim  va_end (v);
3927218822Sdim  return s;
3928218822Sdim}
3929130561Sobrien
3930218822Sdim/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3931218822Sdim   function prototypes and stuff, but not '\xHH' hex character constants.
3932218822Sdim   These don't provoke an error unfortunately, instead are silently treated
3933218822Sdim   as 'x'.  The following induces an error, until -std1 is added to get
3934218822Sdim   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3935218822Sdim   array size at least.  It's necessary to write '\x00'==0 to get something
3936218822Sdim   that's true only with -std1.  */
3937218822Sdimint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3938218822Sdim
3939218822Sdimint test (int i, double x);
3940218822Sdimstruct s1 {int (*f) (int a);};
3941218822Sdimstruct s2 {int (*f) (double a);};
3942218822Sdimint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3943218822Sdimint argc;
3944218822Sdimchar **argv;
3945218822Sdimint
3946218822Sdimmain ()
3947218822Sdim{
3948218822Sdimreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3949218822Sdim  ;
3950218822Sdim  return 0;
3951218822Sdim}
3952218822Sdim_ACEOF
3953218822Sdim# Don't try gcc -ansi; that turns off useful extensions and
3954218822Sdim# breaks some systems' header files.
3955218822Sdim# AIX			-qlanglvl=ansi
3956218822Sdim# Ultrix and OSF/1	-std1
3957218822Sdim# HP-UX 10.20 and later	-Ae
3958218822Sdim# HP-UX older versions	-Aa -D_HPUX_SOURCE
3959218822Sdim# SVR4			-Xc -D__EXTENSIONS__
3960218822Sdimfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3961218822Sdimdo
3962218822Sdim  CC="$ac_save_CC $ac_arg"
3963218822Sdim  rm -f conftest.$ac_objext
3964218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965218822Sdim  (eval $ac_compile) 2>conftest.er1
3966218822Sdim  ac_status=$?
3967218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3968218822Sdim  rm -f conftest.er1
3969218822Sdim  cat conftest.err >&5
3970218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971218822Sdim  (exit $ac_status); } &&
3972218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3973218822Sdim			 || test ! -s conftest.err'
3974218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975218822Sdim  (eval $ac_try) 2>&5
3976218822Sdim  ac_status=$?
3977218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978218822Sdim  (exit $ac_status); }; } &&
3979218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3980218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981218822Sdim  (eval $ac_try) 2>&5
3982218822Sdim  ac_status=$?
3983218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984218822Sdim  (exit $ac_status); }; }; then
3985218822Sdim  ac_cv_prog_cc_stdc=$ac_arg
3986218822Sdimbreak
3987218822Sdimelse
3988218822Sdim  echo "$as_me: failed program was:" >&5
3989218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3990218822Sdim
3991218822Sdimfi
3992218822Sdimrm -f conftest.err conftest.$ac_objext
3993218822Sdimdone
3994218822Sdimrm -f conftest.$ac_ext conftest.$ac_objext
3995218822SdimCC=$ac_save_CC
3996218822Sdim
3997218822Sdimfi
3998218822Sdim
3999218822Sdimcase "x$ac_cv_prog_cc_stdc" in
4000218822Sdim  x|xno)
4001218822Sdim    echo "$as_me:$LINENO: result: none needed" >&5
4002218822Sdimecho "${ECHO_T}none needed" >&6 ;;
4003218822Sdim  *)
4004218822Sdim    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4005218822Sdimecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4006218822Sdim    CC="$CC $ac_cv_prog_cc_stdc" ;;
4007218822Sdimesac
4008218822Sdim
4009218822Sdim# Some people use a C++ compiler to compile C.  Since we use `exit',
4010218822Sdim# in C++ we need to declare it.  In case someone uses the same compiler
4011218822Sdim# for both compiling C and C++ we need to have the C++ compiler decide
4012218822Sdim# the declaration of exit, since it's the most demanding environment.
4013218822Sdimcat >conftest.$ac_ext <<_ACEOF
4014218822Sdim#ifndef __cplusplus
4015218822Sdim  choke me
4016218822Sdim#endif
4017218822Sdim_ACEOF
4018218822Sdimrm -f conftest.$ac_objext
4019218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020218822Sdim  (eval $ac_compile) 2>conftest.er1
4021218822Sdim  ac_status=$?
4022218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
4023218822Sdim  rm -f conftest.er1
4024218822Sdim  cat conftest.err >&5
4025218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026218822Sdim  (exit $ac_status); } &&
4027218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
4028218822Sdim			 || test ! -s conftest.err'
4029218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030218822Sdim  (eval $ac_try) 2>&5
4031218822Sdim  ac_status=$?
4032218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033218822Sdim  (exit $ac_status); }; } &&
4034218822Sdim	 { ac_try='test -s conftest.$ac_objext'
4035218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036218822Sdim  (eval $ac_try) 2>&5
4037218822Sdim  ac_status=$?
4038218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039218822Sdim  (exit $ac_status); }; }; then
4040218822Sdim  for ac_declaration in \
4041218822Sdim   '' \
4042218822Sdim   'extern "C" void std::exit (int) throw (); using std::exit;' \
4043218822Sdim   'extern "C" void std::exit (int); using std::exit;' \
4044218822Sdim   'extern "C" void exit (int) throw ();' \
4045218822Sdim   'extern "C" void exit (int);' \
4046218822Sdim   'void exit (int);'
4047218822Sdimdo
4048218822Sdim  cat >conftest.$ac_ext <<_ACEOF
4049218822Sdim/* confdefs.h.  */
4050218822Sdim_ACEOF
4051218822Sdimcat confdefs.h >>conftest.$ac_ext
4052218822Sdimcat >>conftest.$ac_ext <<_ACEOF
4053218822Sdim/* end confdefs.h.  */
4054218822Sdim$ac_declaration
4055218822Sdim#include <stdlib.h>
4056218822Sdimint
4057218822Sdimmain ()
4058218822Sdim{
4059218822Sdimexit (42);
4060218822Sdim  ;
4061218822Sdim  return 0;
4062218822Sdim}
4063218822Sdim_ACEOF
4064218822Sdimrm -f conftest.$ac_objext
4065218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066218822Sdim  (eval $ac_compile) 2>conftest.er1
4067218822Sdim  ac_status=$?
4068218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
4069218822Sdim  rm -f conftest.er1
4070218822Sdim  cat conftest.err >&5
4071218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072218822Sdim  (exit $ac_status); } &&
4073218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
4074218822Sdim			 || test ! -s conftest.err'
4075218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076218822Sdim  (eval $ac_try) 2>&5
4077218822Sdim  ac_status=$?
4078218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079218822Sdim  (exit $ac_status); }; } &&
4080218822Sdim	 { ac_try='test -s conftest.$ac_objext'
4081218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082218822Sdim  (eval $ac_try) 2>&5
4083218822Sdim  ac_status=$?
4084218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085218822Sdim  (exit $ac_status); }; }; then
4086218822Sdim  :
4087218822Sdimelse
4088218822Sdim  echo "$as_me: failed program was:" >&5
4089218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
4090218822Sdim
4091218822Sdimcontinue
4092218822Sdimfi
4093218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094218822Sdim  cat >conftest.$ac_ext <<_ACEOF
4095218822Sdim/* confdefs.h.  */
4096218822Sdim_ACEOF
4097218822Sdimcat confdefs.h >>conftest.$ac_ext
4098218822Sdimcat >>conftest.$ac_ext <<_ACEOF
4099218822Sdim/* end confdefs.h.  */
4100218822Sdim$ac_declaration
4101218822Sdimint
4102218822Sdimmain ()
4103218822Sdim{
4104218822Sdimexit (42);
4105218822Sdim  ;
4106218822Sdim  return 0;
4107218822Sdim}
4108218822Sdim_ACEOF
4109218822Sdimrm -f conftest.$ac_objext
4110218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111218822Sdim  (eval $ac_compile) 2>conftest.er1
4112218822Sdim  ac_status=$?
4113218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
4114218822Sdim  rm -f conftest.er1
4115218822Sdim  cat conftest.err >&5
4116218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117218822Sdim  (exit $ac_status); } &&
4118218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
4119218822Sdim			 || test ! -s conftest.err'
4120218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121218822Sdim  (eval $ac_try) 2>&5
4122218822Sdim  ac_status=$?
4123218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124218822Sdim  (exit $ac_status); }; } &&
4125218822Sdim	 { ac_try='test -s conftest.$ac_objext'
4126218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127218822Sdim  (eval $ac_try) 2>&5
4128218822Sdim  ac_status=$?
4129218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130218822Sdim  (exit $ac_status); }; }; then
4131218822Sdim  break
4132218822Sdimelse
4133218822Sdim  echo "$as_me: failed program was:" >&5
4134218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
4135218822Sdim
4136218822Sdimfi
4137218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138218822Sdimdone
4139218822Sdimrm -f conftest*
4140218822Sdimif test -n "$ac_declaration"; then
4141218822Sdim  echo '#ifdef __cplusplus' >>confdefs.h
4142218822Sdim  echo $ac_declaration      >>confdefs.h
4143218822Sdim  echo '#endif'             >>confdefs.h
4144218822Sdimfi
4145218822Sdim
4146218822Sdimelse
4147218822Sdim  echo "$as_me: failed program was:" >&5
4148218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
4149218822Sdim
4150218822Sdimfi
4151218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152218822Sdimac_ext=c
4153218822Sdimac_cpp='$CPP $CPPFLAGS'
4154218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
4157218822Sdim
4158218822Sdim
4159218822Sdimcat >>confdefs.h <<\_ACEOF
4160218822Sdim#define _GNU_SOURCE 1
4161218822Sdim_ACEOF
4162218822Sdim
4163218822Sdim
4164218822Sdim
4165218822Sdim
4166218822Sdim
4167218822Sdimmacro_version='2.1a'
4168218822Sdimmacro_revision='1.2435'
4169218822Sdim
4170218822Sdim
4171218822Sdim
4172218822Sdim
4173218822Sdim
4174218822Sdim
4175218822Sdim
4176218822Sdim
4177218822Sdim
4178218822Sdim
4179218822Sdim
4180218822Sdim
4181218822Sdimltmain="$ac_aux_dir/ltmain.sh"
4182218822Sdim
4183218822Sdim# Set options
4184218822Sdim
4185218822Sdimenable_dlopen=no
4186218822Sdim
4187218822Sdim
4188218822Sdimenable_win32_dll=no
4189218822Sdim
4190218822Sdim
4191218822Sdim
4192218822Sdim# Check whether --enable-static or --disable-static was given.
4193218822Sdimif test "${enable_static+set}" = set; then
4194218822Sdim  enableval="$enable_static"
4195218822Sdim  p=${PACKAGE-default}
4196218822Sdim    case $enableval in
4197218822Sdim    yes) enable_static=yes ;;
4198218822Sdim    no) enable_static=no ;;
4199218822Sdim    *)
4200218822Sdim     enable_static=no
4201218822Sdim      # Look at the argument we got.  We use all the common list separators.
4202218822Sdim      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4203218822Sdim      for pkg in $enableval; do
4204218822Sdim	IFS="$lt_save_ifs"
4205218822Sdim	if test "X$pkg" = "X$p"; then
4206218822Sdim	  enable_static=yes
4207218822Sdim	fi
4208218822Sdim      done
4209218822Sdim      IFS="$lt_save_ifs"
4210218822Sdim      ;;
4211218822Sdim    esac
4212218822Sdimelse
4213218822Sdim  enable_static=yes
4214218822Sdimfi;
4215218822Sdim
4216218822Sdim
4217218822Sdim
4218218822Sdim
4219218822Sdim
4220218822Sdim
4221218822Sdim
4222218822Sdim
4223218822Sdim
4224218822Sdim# Check whether --with-pic or --without-pic was given.
4225218822Sdimif test "${with_pic+set}" = set; then
4226218822Sdim  withval="$with_pic"
4227218822Sdim  pic_mode="$withval"
4228218822Sdimelse
4229218822Sdim  pic_mode=default
4230218822Sdimfi;
4231218822Sdim
4232218822Sdimtest -z "$pic_mode" && pic_mode=default
4233218822Sdim
4234218822Sdim
4235218822Sdim
4236218822Sdim
4237218822Sdim
4238218822Sdim
4239218822Sdim
4240218822Sdim# Check whether --enable-fast-install or --disable-fast-install was given.
4241218822Sdimif test "${enable_fast_install+set}" = set; then
4242218822Sdim  enableval="$enable_fast_install"
4243218822Sdim  p=${PACKAGE-default}
4244218822Sdim    case $enableval in
4245218822Sdim    yes) enable_fast_install=yes ;;
4246218822Sdim    no) enable_fast_install=no ;;
4247218822Sdim    *)
4248218822Sdim      enable_fast_install=no
4249218822Sdim      # Look at the argument we got.  We use all the common list separators.
4250218822Sdim      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4251218822Sdim      for pkg in $enableval; do
4252218822Sdim	IFS="$lt_save_ifs"
4253218822Sdim	if test "X$pkg" = "X$p"; then
4254218822Sdim	  enable_fast_install=yes
4255218822Sdim	fi
4256218822Sdim      done
4257218822Sdim      IFS="$lt_save_ifs"
4258218822Sdim      ;;
4259218822Sdim    esac
4260218822Sdimelse
4261218822Sdim  enable_fast_install=yes
4262218822Sdimfi;
4263218822Sdim
4264218822Sdim
4265218822Sdim
4266218822Sdim
4267218822Sdim
4268218822Sdim
4269218822Sdim
4270218822Sdim
4271218822Sdimecho "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4272218822Sdimecho $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4273218822Sdimif test "${lt_cv_path_SED+set}" = set; then
4274218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4275218822Sdimelse
4276218822Sdim  # Loop through the user's path and test for sed and gsed.
4277218822Sdim# Then use that list of sed's as ones to test for truncation.
4278218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279218822Sdimfor as_dir in $PATH
4280218822Sdimdo
4281218822Sdim  IFS=$as_save_IFS
4282218822Sdim  test -z "$as_dir" && as_dir=.
4283218822Sdim  for lt_ac_prog in sed gsed; do
4284218822Sdim    for ac_exec_ext in '' $ac_executable_extensions; do
4285218822Sdim      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4286218822Sdim        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4287218822Sdim      fi
4288218822Sdim    done
4289218822Sdim  done
4290218822Sdimdone
4291218822SdimIFS=$as_save_IFS
4292218822Sdimlt_ac_max=0
4293218822Sdimlt_ac_count=0
4294218822Sdim# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4295218822Sdim# along with /bin/sed that truncates output.
4296218822Sdimfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4297218822Sdim  test ! -f $lt_ac_sed && continue
4298218822Sdim  cat /dev/null > conftest.in
4299218822Sdim  lt_ac_count=0
4300218822Sdim  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4301218822Sdim  # Check for GNU sed and select it if it is found.
4302218822Sdim  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4303218822Sdim    lt_cv_path_SED=$lt_ac_sed
4304218822Sdim    break
4305218822Sdim  fi
4306218822Sdim  while true; do
4307218822Sdim    cat conftest.in conftest.in >conftest.tmp
4308218822Sdim    mv conftest.tmp conftest.in
4309218822Sdim    cp conftest.in conftest.nl
4310218822Sdim    echo >>conftest.nl
4311218822Sdim    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4312218822Sdim    cmp -s conftest.out conftest.nl || break
4313218822Sdim    # 10000 chars as input seems more than enough
4314218822Sdim    test $lt_ac_count -gt 10 && break
4315218822Sdim    lt_ac_count=`expr $lt_ac_count + 1`
4316218822Sdim    if test $lt_ac_count -gt $lt_ac_max; then
4317218822Sdim      lt_ac_max=$lt_ac_count
4318218822Sdim      lt_cv_path_SED=$lt_ac_sed
4319218822Sdim    fi
4320218822Sdim  done
4321218822Sdimdone
4322218822Sdim
4323218822Sdimfi
4324218822Sdim
4325218822SdimSED=$lt_cv_path_SED
4326218822Sdim
4327218822Sdimecho "$as_me:$LINENO: result: $SED" >&5
4328218822Sdimecho "${ECHO_T}$SED" >&6
4329218822Sdim
4330218822Sdimtest -z "$SED" && SED=sed
4331218822SdimXsed="$SED -e 1s/^X//"
4332218822Sdim
4333218822Sdim
4334218822Sdim
4335218822Sdim
4336218822Sdim
4337218822Sdim
4338218822Sdim
4339218822Sdim
4340218822Sdim
4341218822Sdim
4342218822Sdim
4343218822Sdimecho "$as_me:$LINENO: checking for egrep" >&5
4344218822Sdimecho $ECHO_N "checking for egrep... $ECHO_C" >&6
4345218822Sdimif test "${ac_cv_prog_egrep+set}" = set; then
4346218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4347218822Sdimelse
4348218822Sdim  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4349218822Sdim    then ac_cv_prog_egrep='grep -E'
4350218822Sdim    else ac_cv_prog_egrep='egrep'
4351218822Sdim    fi
4352218822Sdimfi
4353218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4354218822Sdimecho "${ECHO_T}$ac_cv_prog_egrep" >&6
4355218822Sdim EGREP=$ac_cv_prog_egrep
4356218822Sdim
4357218822Sdim
4358218822Sdimecho "$as_me:$LINENO: checking for fgrep" >&5
4359218822Sdimecho $ECHO_N "checking for fgrep... $ECHO_C" >&6
4360218822Sdimif test "${ac_cv_prog_fgrep+set}" = set; then
4361218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4362218822Sdimelse
4363218822Sdim  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4364218822Sdim    then ac_cv_prog_fgrep='grep -F'
4365218822Sdim    else ac_cv_prog_fgrep='fgrep'
4366218822Sdim    fi
4367218822Sdimfi
4368218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4369218822Sdimecho "${ECHO_T}$ac_cv_prog_fgrep" >&6
4370218822Sdim FGREP=$ac_cv_prog_fgrep
4371218822Sdim
4372218822Sdim
4373218822Sdimtest -z "$GREP" && GREP=grep
4374218822Sdim
4375218822Sdim
4376218822Sdim
4377218822Sdim
4378218822Sdim
4379218822Sdim
4380218822Sdim
4381218822Sdim
4382218822Sdim
4383218822Sdim
4384218822Sdim
4385218822Sdim
4386218822Sdim
4387218822Sdim
4388218822Sdim
4389218822Sdim
4390218822Sdim
4391218822Sdim
4392218822Sdim
439338889Sjdp# Check whether --with-gnu-ld or --without-gnu-ld was given.
439438889Sjdpif test "${with_gnu_ld+set}" = set; then
439538889Sjdp  withval="$with_gnu_ld"
439638889Sjdp  test "$withval" = no || with_gnu_ld=yes
439738889Sjdpelse
439838889Sjdp  with_gnu_ld=no
4399218822Sdimfi;
440038889Sjdpac_prog=ld
440189857Sobrienif test "$GCC" = yes; then
440238889Sjdp  # Check if gcc -print-prog-name=ld gives a path.
4403218822Sdim  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4404218822Sdimecho $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
440577298Sobrien  case $host in
440677298Sobrien  *-*-mingw*)
440777298Sobrien    # gcc leaves a trailing carriage return which upsets mingw
440877298Sobrien    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
440977298Sobrien  *)
441077298Sobrien    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
441177298Sobrien  esac
441289857Sobrien  case $ac_prog in
441360484Sobrien    # Accept absolute paths.
4414218822Sdim    [\\/]* | ?:[\\/]*)
441560484Sobrien      re_direlt='/[^/][^/]*/\.\./'
4416218822Sdim      # Canonicalize the pathname of ld
4417218822Sdim      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4418218822Sdim      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4419218822Sdim	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
442060484Sobrien      done
442160484Sobrien      test -z "$LD" && LD="$ac_prog"
442260484Sobrien      ;;
442338889Sjdp  "")
442438889Sjdp    # If it fails, then pretend we aren't using GCC.
442538889Sjdp    ac_prog=ld
442638889Sjdp    ;;
442738889Sjdp  *)
442838889Sjdp    # If it is relative, then search for the first ld in PATH.
442938889Sjdp    with_gnu_ld=unknown
443038889Sjdp    ;;
443138889Sjdp  esac
443238889Sjdpelif test "$with_gnu_ld" = yes; then
4433218822Sdim  echo "$as_me:$LINENO: checking for GNU ld" >&5
4434218822Sdimecho $ECHO_N "checking for GNU ld... $ECHO_C" >&6
443538889Sjdpelse
4436218822Sdim  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4437218822Sdimecho $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
443838889Sjdpfi
4439218822Sdimif test "${lt_cv_path_LD+set}" = set; then
4440218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
444138889Sjdpelse
444238889Sjdp  if test -z "$LD"; then
4443218822Sdim  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
444438889Sjdp  for ac_dir in $PATH; do
4445218822Sdim    IFS="$lt_save_ifs"
444638889Sjdp    test -z "$ac_dir" && ac_dir=.
444760484Sobrien    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
444889857Sobrien      lt_cv_path_LD="$ac_dir/$ac_prog"
444938889Sjdp      # Check to see if the program is GNU ld.  I'd rather use --version,
4450218822Sdim      # but apparently some variants of GNU ld only accept -v.
445138889Sjdp      # Break only if it was the GNU/non-GNU ld that we prefer.
4452218822Sdim      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4453218822Sdim      *GNU* | *'with BFD'*)
445438889Sjdp	test "$with_gnu_ld" != no && break
4455218822Sdim	;;
4456218822Sdim      *)
445760484Sobrien	test "$with_gnu_ld" != yes && break
4458218822Sdim	;;
4459218822Sdim      esac
446038889Sjdp    fi
446138889Sjdp  done
4462218822Sdim  IFS="$lt_save_ifs"
446338889Sjdpelse
446489857Sobrien  lt_cv_path_LD="$LD" # Let the user override the test with a path.
446538889Sjdpfi
446638889Sjdpfi
446738889Sjdp
446889857SobrienLD="$lt_cv_path_LD"
446938889Sjdpif test -n "$LD"; then
4470218822Sdim  echo "$as_me:$LINENO: result: $LD" >&5
4471218822Sdimecho "${ECHO_T}$LD" >&6
447238889Sjdpelse
4473218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4474218822Sdimecho "${ECHO_T}no" >&6
447538889Sjdpfi
4476218822Sdimtest -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4477218822Sdimecho "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4478218822Sdim   { (exit 1); exit 1; }; }
4479218822Sdimecho "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4480218822Sdimecho $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4481218822Sdimif test "${lt_cv_prog_gnu_ld+set}" = set; then
4482218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
448338889Sjdpelse
4484218822Sdim  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4485218822Sdimcase `$LD -v 2>&1 </dev/null` in
4486218822Sdim*GNU* | *'with BFD'*)
448789857Sobrien  lt_cv_prog_gnu_ld=yes
4488218822Sdim  ;;
4489218822Sdim*)
449089857Sobrien  lt_cv_prog_gnu_ld=no
4491218822Sdim  ;;
4492218822Sdimesac
449338889Sjdpfi
4494218822Sdimecho "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4495218822Sdimecho "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
449689857Sobrienwith_gnu_ld=$lt_cv_prog_gnu_ld
449738889Sjdp
449838889Sjdp
449977298Sobrien
450077298Sobrien
4501218822Sdim
4502218822Sdim
4503218822Sdim
4504218822Sdim
4505218822Sdim
4506218822Sdim
4507218822Sdimecho "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4508218822Sdimecho $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4509218822Sdimif test "${lt_cv_path_NM+set}" = set; then
4510218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
451138889Sjdpelse
451260484Sobrien  if test -n "$NM"; then
451360484Sobrien  # Let the user override the test.
451489857Sobrien  lt_cv_path_NM="$NM"
451560484Sobrienelse
4516218822Sdim  lt_nm_to_check="${ac_tool_prefix}nm"
4517218822Sdim  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4518218822Sdim    lt_nm_to_check="$lt_nm_to_check nm"
4519218822Sdim  fi
4520218822Sdim  for lt_tmp_nm in $lt_nm_to_check; do
4521218822Sdim    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4522218822Sdim    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4523218822Sdim      IFS="$lt_save_ifs"
4524218822Sdim      test -z "$ac_dir" && ac_dir=.
4525218822Sdim      tmp_nm="$ac_dir/$lt_tmp_nm"
4526218822Sdim      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4527218822Sdim	# Check to see if the nm accepts a BSD-compat flag.
4528218822Sdim	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4529218822Sdim	#   nm: unknown option "B" ignored
4530218822Sdim	# Tru64's nm complains that /dev/null is an invalid object file
4531218822Sdim	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4532218822Sdim	*/dev/null* | *'Invalid file or object type'*)
4533218822Sdim	  lt_cv_path_NM="$tmp_nm -B"
4534218822Sdim	  break
4535218822Sdim	  ;;
4536218822Sdim	*)
4537218822Sdim	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4538218822Sdim	  */dev/null*)
4539218822Sdim	    lt_cv_path_NM="$tmp_nm -p"
4540218822Sdim	    break
4541218822Sdim	    ;;
4542218822Sdim	  *)
4543218822Sdim	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4544218822Sdim	    continue # so that we can try to find one that supports BSD flags
4545218822Sdim	    ;;
4546218822Sdim	  esac
4547218822Sdim	  ;;
4548218822Sdim	esac
454938889Sjdp      fi
4550218822Sdim    done
4551218822Sdim    IFS="$lt_save_ifs"
455238889Sjdp  done
4553218822Sdim  : ${lt_cv_path_NM=no}
455438889Sjdpfi
455560484Sobrienfi
4556218822Sdimecho "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4557218822Sdimecho "${ECHO_T}$lt_cv_path_NM" >&6
4558218822Sdimif test "$lt_cv_path_NM" != "no"; then
4559218822Sdim  NM="$lt_cv_path_NM"
4560218822Sdimelse
4561218822Sdim  # Didn't find any BSD compatible name lister, look for dumpbin.
4562218822Sdim  if test -n "$ac_tool_prefix"; then
4563218822Sdim  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4564218822Sdim  do
4565218822Sdim    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4566218822Sdimset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4567218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
4568218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569218822Sdimif test "${ac_cv_prog_DUMPBIN+set}" = set; then
4570218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4571218822Sdimelse
4572218822Sdim  if test -n "$DUMPBIN"; then
4573218822Sdim  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4574218822Sdimelse
4575218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576218822Sdimfor as_dir in $PATH
4577218822Sdimdo
4578218822Sdim  IFS=$as_save_IFS
4579218822Sdim  test -z "$as_dir" && as_dir=.
4580218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
4581218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582218822Sdim    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4583218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584218822Sdim    break 2
4585218822Sdim  fi
4586218822Sdimdone
4587218822Sdimdone
458838889Sjdp
4589218822Sdimfi
4590218822Sdimfi
4591218822SdimDUMPBIN=$ac_cv_prog_DUMPBIN
4592218822Sdimif test -n "$DUMPBIN"; then
4593218822Sdim  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4594218822Sdimecho "${ECHO_T}$DUMPBIN" >&6
4595218822Sdimelse
4596218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4597218822Sdimecho "${ECHO_T}no" >&6
4598218822Sdimfi
459938889Sjdp
4600218822Sdim    test -n "$DUMPBIN" && break
4601218822Sdim  done
4602218822Sdimfi
4603218822Sdimif test -z "$DUMPBIN"; then
4604218822Sdim  ac_ct_DUMPBIN=$DUMPBIN
4605218822Sdim  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4606218822Sdimdo
4607218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
4608218822Sdimset dummy $ac_prog; ac_word=$2
4609218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
4610218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611218822Sdimif test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4612218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
461338889Sjdpelse
4614218822Sdim  if test -n "$ac_ct_DUMPBIN"; then
4615218822Sdim  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
461638889Sjdpelse
4617218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618218822Sdimfor as_dir in $PATH
4619218822Sdimdo
4620218822Sdim  IFS=$as_save_IFS
4621218822Sdim  test -z "$as_dir" && as_dir=.
4622218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
4623218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624218822Sdim    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4625218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626218822Sdim    break 2
4627218822Sdim  fi
4628218822Sdimdone
4629218822Sdimdone
4630218822Sdim
463138889Sjdpfi
463238889Sjdpfi
4633218822Sdimac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4634218822Sdimif test -n "$ac_ct_DUMPBIN"; then
4635218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4636218822Sdimecho "${ECHO_T}$ac_ct_DUMPBIN" >&6
463738889Sjdpelse
4638218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4639218822Sdimecho "${ECHO_T}no" >&6
464038889Sjdpfi
464138889Sjdp
4642218822Sdim  test -n "$ac_ct_DUMPBIN" && break
4643218822Sdimdone
4644218822Sdimtest -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4645218822Sdim
4646218822Sdim  DUMPBIN=$ac_ct_DUMPBIN
4647218822Sdimfi
4648218822Sdim
4649218822Sdim
4650218822Sdim  if test "$DUMPBIN" != ":"; then
4651218822Sdim    NM="$DUMPBIN"
4652218822Sdim  fi
4653218822Sdimfi
4654218822Sdimtest -z "$NM" && NM=nm
4655218822Sdim
4656218822Sdim
4657218822Sdim
4658218822Sdim
4659218822Sdim
4660218822Sdim
4661218822Sdimecho "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4662218822Sdimecho $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4663218822Sdimif test "${lt_cv_nm_interface+set}" = set; then
4664218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
466577298Sobrienelse
4666218822Sdim  lt_cv_nm_interface="BSD nm"
4667218822Sdim  echo "int some_variable = 0;" > conftest.$ac_ext
4668218822Sdim  (eval echo "\"\$as_me:4668: $ac_compile\"" >&5)
4669218822Sdim  (eval "$ac_compile" 2>conftest.err)
4670218822Sdim  cat conftest.err >&5
4671218822Sdim  (eval echo "\"\$as_me:4671: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4672218822Sdim  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4673218822Sdim  cat conftest.err >&5
4674218822Sdim  (eval echo "\"\$as_me:4674: output\"" >&5)
4675218822Sdim  cat conftest.out >&5
4676218822Sdim  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4677218822Sdim    lt_cv_nm_interface="MS dumpbin"
4678218822Sdim  fi
4679218822Sdim  rm -f conftest*
4680218822Sdimfi
4681218822Sdimecho "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4682218822Sdimecho "${ECHO_T}$lt_cv_nm_interface" >&6
4683218822Sdim
4684218822Sdimecho "$as_me:$LINENO: checking whether ln -s works" >&5
4685218822Sdimecho $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4686218822SdimLN_S=$as_ln_s
4687218822Sdimif test "$LN_S" = "ln -s"; then
4688218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
4689218822Sdimecho "${ECHO_T}yes" >&6
4690218822Sdimelse
4691218822Sdim  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4692218822Sdimecho "${ECHO_T}no, using $LN_S" >&6
4693218822Sdimfi
4694218822Sdim
4695218822Sdim# find the maximum length of command line arguments
4696218822Sdimecho "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4697218822Sdimecho $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4698218822Sdimif test "${lt_cv_sys_max_cmd_len+set}" = set; then
4699218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4700218822Sdimelse
4701218822Sdim    i=0
4702218822Sdim  teststring="ABCD"
4703218822Sdim
4704218822Sdim  case $build_os in
4705218822Sdim  msdosdjgpp*)
4706218822Sdim    # On DJGPP, this test can blow up pretty badly due to problems in libc
4707218822Sdim    # (any single argument exceeding 2000 bytes causes a buffer overrun
4708218822Sdim    # during glob expansion).  Even if it were fixed, the result of this
4709218822Sdim    # check would be larger than it should be.
4710218822Sdim    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4711218822Sdim    ;;
4712218822Sdim
4713218822Sdim  gnu*)
4714218822Sdim    # Under GNU Hurd, this test is not required because there is
4715218822Sdim    # no limit to the length of command line arguments.
4716218822Sdim    # Libtool will interpret -1 as no limit whatsoever
4717218822Sdim    lt_cv_sys_max_cmd_len=-1;
4718218822Sdim    ;;
4719218822Sdim
4720218822Sdim  cygwin* | mingw*)
4721218822Sdim    # On Win9x/ME, this test blows up -- it succeeds, but takes
4722218822Sdim    # about 5 minutes as the teststring grows exponentially.
4723218822Sdim    # Worse, since 9x/ME are not pre-emptively multitasking,
4724218822Sdim    # you end up with a "frozen" computer, even though with patience
4725218822Sdim    # the test eventually succeeds (with a max line length of 256k).
4726218822Sdim    # Instead, let's just punt: use the minimum linelength reported by
4727218822Sdim    # all of the supported platforms: 8192 (on NT/2K/XP).
4728218822Sdim    lt_cv_sys_max_cmd_len=8192;
4729218822Sdim    ;;
4730218822Sdim
4731218822Sdim  amigaos*)
4732218822Sdim    # On AmigaOS with pdksh, this test takes hours, literally.
4733218822Sdim    # So we just punt and use a minimum line length of 8192.
4734218822Sdim    lt_cv_sys_max_cmd_len=8192;
4735218822Sdim    ;;
4736218822Sdim
4737218822Sdim  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4738218822Sdim    # This has been around since 386BSD, at least.  Likely further.
4739218822Sdim    if test -x /sbin/sysctl; then
4740218822Sdim      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4741218822Sdim    elif test -x /usr/sbin/sysctl; then
4742218822Sdim      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4743218822Sdim    else
4744218822Sdim      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4745218822Sdim    fi
4746218822Sdim    # And add a safety zone
4747218822Sdim    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4748218822Sdim    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4749218822Sdim    ;;
4750218822Sdim
4751218822Sdim  interix*)
4752218822Sdim    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4753218822Sdim    lt_cv_sys_max_cmd_len=196608
4754218822Sdim    ;;
4755218822Sdim
4756218822Sdim  osf*)
4757218822Sdim    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4758218822Sdim    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4759218822Sdim    # nice to cause kernel panics so lets avoid the loop below.
4760218822Sdim    # First set a reasonable default.
4761218822Sdim    lt_cv_sys_max_cmd_len=16384
4762218822Sdim    #
4763218822Sdim    if test -x /sbin/sysconfig; then
4764218822Sdim      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4765218822Sdim        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4766218822Sdim      esac
4767218822Sdim    fi
4768218822Sdim    ;;
4769218822Sdim  sco3.2v5*)
4770218822Sdim    lt_cv_sys_max_cmd_len=102400
4771218822Sdim    ;;
4772218822Sdim  sysv5* | sco5v6* | sysv4.2uw2*)
4773218822Sdim    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4774218822Sdim    if test -n "$kargmax"; then
4775218822Sdim      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4776218822Sdim    else
4777218822Sdim      lt_cv_sys_max_cmd_len=32768
4778218822Sdim    fi
4779218822Sdim    ;;
4780218822Sdim  *)
4781218822Sdim    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4782218822Sdim    if test -n $lt_cv_sys_max_cmd_len; then
4783218822Sdim      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4784218822Sdim      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4785218822Sdim    else
4786218822Sdim      # Make teststring a little bigger before we do anything with it.
4787218822Sdim      # a 1K string should be a reasonable start.
4788218822Sdim      for i in 1 2 3 4 5 6 7 8 ; do
4789218822Sdim        teststring=$teststring$teststring
4790218822Sdim      done
4791218822Sdim      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4792218822Sdim      # If test is not a shell built-in, we'll probably end up computing a
4793218822Sdim      # maximum length that is only half of the actual maximum length, but
4794218822Sdim      # we can't tell.
4795218822Sdim      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4796218822Sdim	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4797218822Sdim	      test $i != 17 # 1/2 MB should be enough
4798218822Sdim      do
4799218822Sdim        i=`expr $i + 1`
4800218822Sdim        teststring=$teststring$teststring
4801218822Sdim      done
4802218822Sdim      # Only check the string length outside the loop.
4803218822Sdim      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4804218822Sdim      teststring=
4805218822Sdim      # Add a significant safety factor because C++ compilers can tack on
4806218822Sdim      # massive amounts of additional arguments before passing them to the
4807218822Sdim      # linker.  It appears as though 1/2 is a usable value.
4808218822Sdim      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4809218822Sdim    fi
4810218822Sdim    ;;
4811218822Sdim  esac
4812218822Sdim
4813218822Sdimfi
4814218822Sdim
4815218822Sdimif test -n $lt_cv_sys_max_cmd_len ; then
4816218822Sdim  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4817218822Sdimecho "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4818218822Sdimelse
4819218822Sdim  echo "$as_me:$LINENO: result: none" >&5
4820218822Sdimecho "${ECHO_T}none" >&6
4821218822Sdimfi
4822218822Sdimmax_cmd_len=$lt_cv_sys_max_cmd_len
4823218822Sdim
4824218822Sdim
4825218822Sdim
4826218822Sdim
4827218822Sdim
4828218822Sdim
4829218822Sdim
4830218822Sdim: ${CP="cp -f"}
4831218822Sdim: ${MV="mv -f"}
4832218822Sdim: ${RM="rm -f"}
4833218822Sdim
4834218822Sdimecho "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4835218822Sdimecho $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4836218822Sdim# Try some XSI features
4837218822Sdimxsi_shell=no
4838218822Sdim( _lt_dummy="a/b/c"
4839218822Sdim  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4840218822Sdim      = c,a/b,, ) >/dev/null 2>&1 \
4841218822Sdim  && xsi_shell=yes
4842218822Sdimecho "$as_me:$LINENO: result: $xsi_shell" >&5
4843218822Sdimecho "${ECHO_T}$xsi_shell" >&6
4844218822Sdim
4845218822Sdim
4846218822Sdimecho "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4847218822Sdimecho $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4848218822Sdimlt_shell_append=no
4849218822Sdim( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4850218822Sdim    >/dev/null 2>&1 \
4851218822Sdim  && lt_shell_append=yes
4852218822Sdimecho "$as_me:$LINENO: result: $lt_shell_append" >&5
4853218822Sdimecho "${ECHO_T}$lt_shell_append" >&6
4854218822Sdim
4855218822Sdim
4856218822Sdimif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4857218822Sdim  lt_unset=unset
4858218822Sdimelse
4859218822Sdim  lt_unset=false
4860218822Sdimfi
4861218822Sdim
4862218822Sdim
4863218822Sdim
4864218822Sdim
4865218822Sdim
4866218822Sdim# test EBCDIC or ASCII
4867218822Sdimcase `echo X|tr X '\101'` in
4868218822Sdim A) # ASCII based system
4869218822Sdim    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4870218822Sdim  lt_SP2NL='tr \040 \012'
4871218822Sdim  lt_NL2SP='tr \015\012 \040\040'
4872218822Sdim  ;;
4873218822Sdim *) # EBCDIC based system
4874218822Sdim  lt_SP2NL='tr \100 \n'
4875218822Sdim  lt_NL2SP='tr \r\n \100\100'
4876218822Sdim  ;;
4877218822Sdimesac
4878218822Sdim
4879218822Sdim
4880218822Sdim
4881218822Sdim
4882218822Sdim
4883218822Sdim
4884218822Sdim
4885218822Sdim
4886218822Sdim
4887218822Sdimecho "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4888218822Sdimecho $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4889218822Sdimif test "${lt_cv_ld_reload_flag+set}" = set; then
4890218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4891218822Sdimelse
4892218822Sdim  lt_cv_ld_reload_flag='-r'
4893218822Sdimfi
4894218822Sdimecho "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4895218822Sdimecho "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4896218822Sdimreload_flag=$lt_cv_ld_reload_flag
4897218822Sdimcase $reload_flag in
4898218822Sdim"" | " "*) ;;
4899218822Sdim*) reload_flag=" $reload_flag" ;;
4900218822Sdimesac
4901218822Sdimreload_cmds='$LD$reload_flag -o $output$reload_objs'
4902218822Sdimcase $host_os in
4903218822Sdim  darwin*)
4904218822Sdim    if test "$GCC" = yes; then
4905218822Sdim      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4906218822Sdim    else
4907218822Sdim      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4908218822Sdim    fi
4909218822Sdim    ;;
4910218822Sdimesac
4911218822Sdim
4912218822Sdim
4913218822Sdim
4914218822Sdim
4915218822Sdim
4916218822Sdim
4917218822Sdim
4918218822Sdim
4919218822Sdim
4920218822Sdim
4921218822Sdimecho "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4922218822Sdimecho $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4923218822Sdimif test "${lt_cv_deplibs_check_method+set}" = set; then
4924218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4925218822Sdimelse
492677298Sobrien  lt_cv_file_magic_cmd='$MAGIC_CMD'
492777298Sobrienlt_cv_file_magic_test_file=
492877298Sobrienlt_cv_deplibs_check_method='unknown'
492977298Sobrien# Need to set the preceding variable on all platforms that support
493077298Sobrien# interlibrary dependencies.
493177298Sobrien# 'none' -- dependencies not supported.
493277298Sobrien# `unknown' -- same as none, but documents that we really don't know.
493377298Sobrien# 'pass_all' -- all dependencies passed with no checks.
493477298Sobrien# 'test_compile' -- check by making test program.
4935218822Sdim# 'file_magic [[regex]]' -- check by looking for files in library path
4936218822Sdim# which responds to the $file_magic_cmd with a given extended regex.
493777298Sobrien# If you have `file' or equivalent on your system and you're not sure
493877298Sobrien# whether `pass_all' will *always* work, you probably want this one.
493938889Sjdp
494089857Sobriencase $host_os in
4941218822Sdimaix4* | aix5*)
494277298Sobrien  lt_cv_deplibs_check_method=pass_all
494377298Sobrien  ;;
494477298Sobrien
494577298Sobrienbeos*)
494677298Sobrien  lt_cv_deplibs_check_method=pass_all
494777298Sobrien  ;;
494877298Sobrien
4949218822Sdimbsdi[45]*)
495089857Sobrien  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
495189857Sobrien  lt_cv_file_magic_cmd='/usr/bin/file -L'
495277298Sobrien  lt_cv_file_magic_test_file=/shlib/libc.so
495377298Sobrien  ;;
495477298Sobrien
4955218822Sdimcygwin*)
4956218822Sdim  # func_win32_libid is a shell function defined in ltmain.sh
4957218822Sdim  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4958218822Sdim  lt_cv_file_magic_cmd='func_win32_libid'
495977298Sobrien  ;;
496077298Sobrien
4961218822Sdimmingw* | pw32*)
4962218822Sdim  # Base MSYS/MinGW do not provide the 'file' command needed by
4963218822Sdim  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4964218822Sdim  # unless we find 'file', for example because we are cross-compiling.
4965218822Sdim  if ( file / ) >/dev/null 2>&1; then
4966218822Sdim    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4967218822Sdim    lt_cv_file_magic_cmd='func_win32_libid'
4968218822Sdim  else
4969218822Sdim    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4970218822Sdim    lt_cv_file_magic_cmd='$OBJDUMP -f'
4971218822Sdim  fi
4972218822Sdim  ;;
4973218822Sdim
497489857Sobriendarwin* | rhapsody*)
4975218822Sdim  lt_cv_deplibs_check_method=pass_all
497689857Sobrien  ;;
497789857Sobrien
4978218822Sdimfreebsd* | dragonfly*)
4979218822Sdim  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
498089857Sobrien    case $host_cpu in
498177298Sobrien    i*86 )
498277298Sobrien      # Not sure whether the presence of OpenBSD here was a mistake.
498377298Sobrien      # Let's accept both of them until this is cleared up.
4984218822Sdim      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
498589857Sobrien      lt_cv_file_magic_cmd=/usr/bin/file
498677298Sobrien      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
498777298Sobrien      ;;
498877298Sobrien    esac
498977298Sobrien  else
499077298Sobrien    lt_cv_deplibs_check_method=pass_all
499177298Sobrien  fi
499277298Sobrien  ;;
499377298Sobrien
499477298Sobriengnu*)
499577298Sobrien  lt_cv_deplibs_check_method=pass_all
499677298Sobrien  ;;
499777298Sobrien
4998218822Sdimhpux10.20* | hpux11*)
4999218822Sdim  lt_cv_file_magic_cmd=/usr/bin/file
500091041Sobrien  case $host_cpu in
500191041Sobrien  ia64*)
500291041Sobrien    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
500391041Sobrien    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
500491041Sobrien    ;;
5005218822Sdim  hppa*64*)
5006218822Sdim    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5007218822Sdim    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
500877298Sobrien    ;;
500977298Sobrien  *)
5010218822Sdim    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5011218822Sdim    lt_cv_file_magic_test_file=/usr/lib/libc.sl
501289857Sobrien    ;;
501377298Sobrien  esac
5014218822Sdim  ;;
5015218822Sdim
5016218822Sdiminterix[3-9]*)
5017218822Sdim  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5018218822Sdim  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5019218822Sdim  ;;
5020218822Sdim
5021218822Sdimirix5* | irix6* | nonstopux*)
5022218822Sdim  case $LD in
5023218822Sdim  *-32|*"-32 ") libmagic=32-bit;;
5024218822Sdim  *-n32|*"-n32 ") libmagic=N32;;
5025218822Sdim  *-64|*"-64 ") libmagic=64-bit;;
5026218822Sdim  *) libmagic=never-match;;
5027218822Sdim  esac
502877298Sobrien  lt_cv_deplibs_check_method=pass_all
502977298Sobrien  ;;
503077298Sobrien
503177298Sobrien# This must be Linux ELF.
5032218822Sdimlinux* | k*bsd*-gnu)
5033218822Sdim  lt_cv_deplibs_check_method=pass_all
503477298Sobrien  ;;
503577298Sobrien
503677298Sobriennetbsd*)
5037218822Sdim  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5038218822Sdim    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
503977298Sobrien  else
5040218822Sdim    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
504177298Sobrien  fi
504277298Sobrien  ;;
504377298Sobrien
5044218822Sdimnewos6*)
504589857Sobrien  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
504689857Sobrien  lt_cv_file_magic_cmd=/usr/bin/file
504789857Sobrien  lt_cv_file_magic_test_file=/usr/lib/libnls.so
504889857Sobrien  ;;
504989857Sobrien
5050218822Sdim*nto* | *qnx*)
5051218822Sdim  lt_cv_deplibs_check_method=pass_all
5052218822Sdim  ;;
5053218822Sdim
5054218822Sdimopenbsd*)
5055218822Sdim  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5056218822Sdim    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5057218822Sdim  else
5058218822Sdim    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5059218822Sdim  fi
5060218822Sdim  ;;
5061218822Sdim
506277298Sobrienosf3* | osf4* | osf5*)
506377298Sobrien  lt_cv_deplibs_check_method=pass_all
506477298Sobrien  ;;
506577298Sobrien
5066218822Sdimrdos*)
506777298Sobrien  lt_cv_deplibs_check_method=pass_all
506877298Sobrien  ;;
506977298Sobrien
507077298Sobriensolaris*)
507177298Sobrien  lt_cv_deplibs_check_method=pass_all
507277298Sobrien  ;;
507377298Sobrien
5074218822Sdimsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
507589857Sobrien  lt_cv_deplibs_check_method=pass_all
507689857Sobrien  ;;
507789857Sobrien
5078218822Sdimsysv4 | sysv4.3*)
507989857Sobrien  case $host_vendor in
508077298Sobrien  motorola)
508189857Sobrien    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]'
508289857Sobrien    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
508377298Sobrien    ;;
5084218822Sdim  ncr)
5085218822Sdim    lt_cv_deplibs_check_method=pass_all
5086218822Sdim    ;;
5087218822Sdim  sequent)
5088218822Sdim    lt_cv_file_magic_cmd='/bin/file'
5089218822Sdim    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5090218822Sdim    ;;
5091218822Sdim  sni)
5092218822Sdim    lt_cv_file_magic_cmd='/bin/file'
5093218822Sdim    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5094218822Sdim    lt_cv_file_magic_test_file=/lib/libc.so
5095218822Sdim    ;;
5096218822Sdim  siemens)
5097218822Sdim    lt_cv_deplibs_check_method=pass_all
5098218822Sdim    ;;
5099218822Sdim  pc)
5100218822Sdim    lt_cv_deplibs_check_method=pass_all
5101218822Sdim    ;;
510277298Sobrien  esac
510377298Sobrien  ;;
5104218822Sdim
5105218822Sdimtpf*)
5106218822Sdim  lt_cv_deplibs_check_method=pass_all
5107218822Sdim  ;;
510860484Sobrienesac
510960484Sobrien
511077298Sobrienfi
5111218822Sdimecho "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5112218822Sdimecho "${ECHO_T}$lt_cv_deplibs_check_method" >&6
511377298Sobrienfile_magic_cmd=$lt_cv_file_magic_cmd
511477298Sobriendeplibs_check_method=$lt_cv_deplibs_check_method
5115218822Sdimtest -z "$deplibs_check_method" && deplibs_check_method=unknown
511677298Sobrien
5117218822Sdim
5118218822Sdim
5119218822Sdim
5120218822Sdim
5121218822Sdim
5122218822Sdim
5123218822Sdim
5124218822Sdim
5125218822Sdim
5126218822Sdim
5127218822Sdim
5128218822Sdimif test -n "$ac_tool_prefix"; then
5129218822Sdim  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5130218822Sdimset dummy ${ac_tool_prefix}ar; ac_word=$2
5131218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5132218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133218822Sdimif test "${ac_cv_prog_AR+set}" = set; then
5134218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
513577298Sobrienelse
5136218822Sdim  if test -n "$AR"; then
5137218822Sdim  ac_cv_prog_AR="$AR" # Let the user override the test.
5138218822Sdimelse
5139218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140218822Sdimfor as_dir in $PATH
5141218822Sdimdo
5142218822Sdim  IFS=$as_save_IFS
5143218822Sdim  test -z "$as_dir" && as_dir=.
5144218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5145218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146218822Sdim    ac_cv_prog_AR="${ac_tool_prefix}ar"
5147218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148218822Sdim    break 2
5149218822Sdim  fi
5150218822Sdimdone
5151218822Sdimdone
5152218822Sdim
5153218822Sdimfi
5154218822Sdimfi
5155218822SdimAR=$ac_cv_prog_AR
5156218822Sdimif test -n "$AR"; then
5157218822Sdim  echo "$as_me:$LINENO: result: $AR" >&5
5158218822Sdimecho "${ECHO_T}$AR" >&6
5159218822Sdimelse
5160218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5161218822Sdimecho "${ECHO_T}no" >&6
5162218822Sdimfi
5163218822Sdim
5164218822Sdimfi
5165218822Sdimif test -z "$ac_cv_prog_AR"; then
5166218822Sdim  ac_ct_AR=$AR
5167218822Sdim  # Extract the first word of "ar", so it can be a program name with args.
5168218822Sdimset dummy ar; ac_word=$2
5169218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5170218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171218822Sdimif test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5172218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5173218822Sdimelse
5174218822Sdim  if test -n "$ac_ct_AR"; then
5175218822Sdim  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5176218822Sdimelse
5177218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178218822Sdimfor as_dir in $PATH
5179218822Sdimdo
5180218822Sdim  IFS=$as_save_IFS
5181218822Sdim  test -z "$as_dir" && as_dir=.
5182218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5183218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184218822Sdim    ac_cv_prog_ac_ct_AR="ar"
5185218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186218822Sdim    break 2
5187218822Sdim  fi
5188218822Sdimdone
5189218822Sdimdone
5190218822Sdim
5191218822Sdim  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5192218822Sdimfi
5193218822Sdimfi
5194218822Sdimac_ct_AR=$ac_cv_prog_ac_ct_AR
5195218822Sdimif test -n "$ac_ct_AR"; then
5196218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5197218822Sdimecho "${ECHO_T}$ac_ct_AR" >&6
5198218822Sdimelse
5199218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5200218822Sdimecho "${ECHO_T}no" >&6
5201218822Sdimfi
5202218822Sdim
5203218822Sdim  AR=$ac_ct_AR
5204218822Sdimelse
5205218822Sdim  AR="$ac_cv_prog_AR"
5206218822Sdimfi
5207218822Sdim
5208218822Sdimtest -z "$AR" && AR=ar
5209218822Sdimtest -z "$AR_FLAGS" && AR_FLAGS=cru
5210218822Sdim
5211218822Sdim
5212218822Sdim
5213218822Sdim
5214218822Sdim
5215218822Sdim
5216218822Sdim
5217218822Sdim
5218218822Sdim
5219218822Sdim
5220218822Sdim
5221218822Sdimif test -n "$ac_tool_prefix"; then
5222218822Sdim  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5223218822Sdimset dummy ${ac_tool_prefix}strip; ac_word=$2
5224218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5225218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5226218822Sdimif test "${ac_cv_prog_STRIP+set}" = set; then
5227218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5228218822Sdimelse
5229218822Sdim  if test -n "$STRIP"; then
5230218822Sdim  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5231218822Sdimelse
5232218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233218822Sdimfor as_dir in $PATH
5234218822Sdimdo
5235218822Sdim  IFS=$as_save_IFS
5236218822Sdim  test -z "$as_dir" && as_dir=.
5237218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5238218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239218822Sdim    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5240218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241218822Sdim    break 2
5242218822Sdim  fi
5243218822Sdimdone
5244218822Sdimdone
5245218822Sdim
5246218822Sdimfi
5247218822Sdimfi
5248218822SdimSTRIP=$ac_cv_prog_STRIP
5249218822Sdimif test -n "$STRIP"; then
5250218822Sdim  echo "$as_me:$LINENO: result: $STRIP" >&5
5251218822Sdimecho "${ECHO_T}$STRIP" >&6
5252218822Sdimelse
5253218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5254218822Sdimecho "${ECHO_T}no" >&6
5255218822Sdimfi
5256218822Sdim
5257218822Sdimfi
5258218822Sdimif test -z "$ac_cv_prog_STRIP"; then
5259218822Sdim  ac_ct_STRIP=$STRIP
5260218822Sdim  # Extract the first word of "strip", so it can be a program name with args.
5261218822Sdimset dummy strip; ac_word=$2
5262218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5263218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5264218822Sdimif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5265218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5266218822Sdimelse
5267218822Sdim  if test -n "$ac_ct_STRIP"; then
5268218822Sdim  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5269218822Sdimelse
5270218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271218822Sdimfor as_dir in $PATH
5272218822Sdimdo
5273218822Sdim  IFS=$as_save_IFS
5274218822Sdim  test -z "$as_dir" && as_dir=.
5275218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5276218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277218822Sdim    ac_cv_prog_ac_ct_STRIP="strip"
5278218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279218822Sdim    break 2
5280218822Sdim  fi
5281218822Sdimdone
5282218822Sdimdone
5283218822Sdim
5284218822Sdim  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5285218822Sdimfi
5286218822Sdimfi
5287218822Sdimac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5288218822Sdimif test -n "$ac_ct_STRIP"; then
5289218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5290218822Sdimecho "${ECHO_T}$ac_ct_STRIP" >&6
5291218822Sdimelse
5292218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5293218822Sdimecho "${ECHO_T}no" >&6
5294218822Sdimfi
5295218822Sdim
5296218822Sdim  STRIP=$ac_ct_STRIP
5297218822Sdimelse
5298218822Sdim  STRIP="$ac_cv_prog_STRIP"
5299218822Sdimfi
5300218822Sdim
5301218822Sdimtest -z "$STRIP" && STRIP=:
5302218822Sdim
5303218822Sdim
5304218822Sdim
5305218822Sdim
5306218822Sdim
5307218822Sdim
5308218822Sdimif test -n "$ac_tool_prefix"; then
5309218822Sdim  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5310218822Sdimset dummy ${ac_tool_prefix}ranlib; ac_word=$2
5311218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5312218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5313218822Sdimif test "${ac_cv_prog_RANLIB+set}" = set; then
5314218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5315218822Sdimelse
5316218822Sdim  if test -n "$RANLIB"; then
5317218822Sdim  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5318218822Sdimelse
5319218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320218822Sdimfor as_dir in $PATH
5321218822Sdimdo
5322218822Sdim  IFS=$as_save_IFS
5323218822Sdim  test -z "$as_dir" && as_dir=.
5324218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5325218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326218822Sdim    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5327218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328218822Sdim    break 2
5329218822Sdim  fi
5330218822Sdimdone
5331218822Sdimdone
5332218822Sdim
5333218822Sdimfi
5334218822Sdimfi
5335218822SdimRANLIB=$ac_cv_prog_RANLIB
5336218822Sdimif test -n "$RANLIB"; then
5337218822Sdim  echo "$as_me:$LINENO: result: $RANLIB" >&5
5338218822Sdimecho "${ECHO_T}$RANLIB" >&6
5339218822Sdimelse
5340218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5341218822Sdimecho "${ECHO_T}no" >&6
5342218822Sdimfi
5343218822Sdim
5344218822Sdimfi
5345218822Sdimif test -z "$ac_cv_prog_RANLIB"; then
5346218822Sdim  ac_ct_RANLIB=$RANLIB
5347218822Sdim  # Extract the first word of "ranlib", so it can be a program name with args.
5348218822Sdimset dummy ranlib; ac_word=$2
5349218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5350218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5351218822Sdimif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5352218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5353218822Sdimelse
5354218822Sdim  if test -n "$ac_ct_RANLIB"; then
5355218822Sdim  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5356218822Sdimelse
5357218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358218822Sdimfor as_dir in $PATH
5359218822Sdimdo
5360218822Sdim  IFS=$as_save_IFS
5361218822Sdim  test -z "$as_dir" && as_dir=.
5362218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5363218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364218822Sdim    ac_cv_prog_ac_ct_RANLIB="ranlib"
5365218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366218822Sdim    break 2
5367218822Sdim  fi
5368218822Sdimdone
5369218822Sdimdone
5370218822Sdim
5371218822Sdim  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5372218822Sdimfi
5373218822Sdimfi
5374218822Sdimac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5375218822Sdimif test -n "$ac_ct_RANLIB"; then
5376218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5377218822Sdimecho "${ECHO_T}$ac_ct_RANLIB" >&6
5378218822Sdimelse
5379218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5380218822Sdimecho "${ECHO_T}no" >&6
5381218822Sdimfi
5382218822Sdim
5383218822Sdim  RANLIB=$ac_ct_RANLIB
5384218822Sdimelse
5385218822Sdim  RANLIB="$ac_cv_prog_RANLIB"
5386218822Sdimfi
5387218822Sdim
5388218822Sdimtest -z "$RANLIB" && RANLIB=:
5389218822Sdim
5390218822Sdim
5391218822Sdim
5392218822Sdim
5393218822Sdim
5394218822Sdim
5395218822Sdim# Determine commands to create old-style static archives.
5396218822Sdimold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5397218822Sdimold_postinstall_cmds='chmod 644 $oldlib'
5398218822Sdimold_postuninstall_cmds=
5399218822Sdim
5400218822Sdimif test -n "$RANLIB"; then
5401218822Sdim  case $host_os in
5402218822Sdim  openbsd*)
5403218822Sdim    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5404218822Sdim    ;;
5405218822Sdim  *)
5406218822Sdim    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5407218822Sdim    ;;
5408218822Sdim  esac
5409218822Sdim  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5410218822Sdimfi
5411218822Sdim
5412218822Sdim
5413218822Sdim
5414218822Sdim
5415218822Sdim
5416218822Sdim
5417218822Sdim
5418218822Sdim
5419218822Sdim
5420218822Sdim
5421218822Sdim
5422218822Sdim
5423218822Sdim
5424218822Sdim
5425218822Sdim
5426218822Sdim
5427218822Sdim
5428218822Sdim
5429218822Sdim
5430218822Sdim
5431218822Sdim
5432218822Sdim
5433218822Sdim
5434218822Sdim
5435218822Sdim
5436218822Sdim
5437218822Sdim
5438218822Sdim
5439218822Sdim
5440218822Sdim
5441218822Sdim
5442218822Sdim
5443218822Sdim
5444218822Sdim
5445218822Sdim# If no C compiler was specified, use CC.
5446218822SdimLTCC=${LTCC-"$CC"}
5447218822Sdim
5448218822Sdim# If no C compiler flags were specified, use CFLAGS.
5449218822SdimLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5450218822Sdim
5451218822Sdim# Allow CC to be a program name with arguments.
5452218822Sdimcompiler=$CC
5453218822Sdim
5454218822Sdim
5455218822Sdim# Check for command to grab the raw symbol name followed by C symbol from nm.
5456218822Sdimecho "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5457218822Sdimecho $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5458218822Sdimif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5459218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5460218822Sdimelse
5461218822Sdim
5462218822Sdim# These are sane defaults that work on at least a few old systems.
5463218822Sdim# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5464218822Sdim
5465218822Sdim# Character class describing NM global symbol codes.
5466218822Sdimsymcode='[BCDEGRST]'
5467218822Sdim
5468218822Sdim# Regexp to match symbols that can be accessed directly from C.
5469218822Sdimsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5470218822Sdim
5471218822Sdim# Define system-specific variables.
5472218822Sdimcase $host_os in
5473218822Sdimaix*)
5474218822Sdim  symcode='[BCDT]'
5475218822Sdim  ;;
5476218822Sdimcygwin* | mingw* | pw32*)
5477218822Sdim  symcode='[ABCDGISTW]'
5478218822Sdim  ;;
5479218822Sdimhpux*)
5480218822Sdim  if test "$host_cpu" = ia64; then
5481218822Sdim    symcode='[ABCDEGRST]'
5482218822Sdim  fi
5483218822Sdim  ;;
5484218822Sdimirix* | nonstopux*)
5485218822Sdim  symcode='[BCDEGRST]'
5486218822Sdim  ;;
5487218822Sdimosf*)
5488218822Sdim  symcode='[BCDEGQRST]'
5489218822Sdim  ;;
5490218822Sdimsolaris*)
5491218822Sdim  symcode='[BDRT]'
5492218822Sdim  ;;
5493218822Sdimsco3.2v5*)
5494218822Sdim  symcode='[DT]'
5495218822Sdim  ;;
5496218822Sdimsysv4.2uw2*)
5497218822Sdim  symcode='[DT]'
5498218822Sdim  ;;
5499218822Sdimsysv5* | sco5v6* | unixware* | OpenUNIX*)
5500218822Sdim  symcode='[ABDT]'
5501218822Sdim  ;;
5502218822Sdimsysv4)
5503218822Sdim  symcode='[DFNSTU]'
5504218822Sdim  ;;
5505218822Sdimesac
5506218822Sdim
5507218822Sdim# If we're using GNU nm, then use its standard symbol codes.
5508218822Sdimcase `$NM -V 2>&1` in
5509218822Sdim*GNU* | *'with BFD'*)
5510218822Sdim  symcode='[ABCDGIRSTW]' ;;
5511218822Sdimesac
5512218822Sdim
5513218822Sdim# Transform an extracted symbol line into a proper C declaration.
5514218822Sdim# Some systems (esp. on ia64) link data and code symbols differently,
5515218822Sdim# so use this general approach.
5516218822Sdimlt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5517218822Sdim
5518218822Sdim# Transform an extracted symbol line into symbol name and symbol address
5519218822Sdimlt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5520218822Sdim
5521218822Sdim# Handle CRLF in mingw tool chain
5522218822Sdimopt_cr=
5523218822Sdimcase $build_os in
5524218822Sdimmingw*)
5525218822Sdim  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5526218822Sdim  ;;
5527218822Sdimesac
5528218822Sdim
5529218822Sdim# Try without a prefix underscore, then with it.
5530218822Sdimfor ac_symprfx in "" "_"; do
5531218822Sdim
5532218822Sdim  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5533218822Sdim  symxfrm="\\1 $ac_symprfx\\2 \\2"
5534218822Sdim
5535218822Sdim  # Write the raw and C identifiers.
5536218822Sdim  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5537218822Sdim    # Fake it for dumpbin and say T for any non-static function
5538218822Sdim    # and D for any global variable.
5539218822Sdim    # Also find C++ and __fastcall symbols from MSVC++,
5540218822Sdim    # which start with @ or ?.
5541218822Sdim    lt_cv_sys_global_symbol_pipe="$AWK '"\
5542218822Sdim"     {last_section=section; section=\$ 3};"\
5543218822Sdim"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5544218822Sdim"     \$ 0!~/External *\|/{next};"\
5545218822Sdim"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5546218822Sdim"     {if(hide[section]) next};"\
5547218822Sdim"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5548218822Sdim"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5549218822Sdim"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5550218822Sdim"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5551218822Sdim"     ' prfx=^$ac_symprfx"
5552218822Sdim  else
5553218822Sdim    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5554218822Sdim  fi
5555218822Sdim
5556218822Sdim  # Check to see that the pipe works correctly.
5557218822Sdim  pipe_works=no
5558218822Sdim
555977298Sobrien  rm -f conftest*
5560218822Sdim  cat > conftest.$ac_ext <<_LT_EOF
5561218822Sdim#ifdef __cplusplus
5562218822Sdimextern "C" {
5563218822Sdim#endif
5564218822Sdimchar nm_test_var;
5565218822Sdimvoid nm_test_func(void);
5566218822Sdimvoid nm_test_func(void){}
5567218822Sdim#ifdef __cplusplus
5568218822Sdim}
5569218822Sdim#endif
5570218822Sdimint main(){nm_test_var='a';nm_test_func();return(0);}
5571218822Sdim_LT_EOF
5572218822Sdim
5573218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574218822Sdim  (eval $ac_compile) 2>&5
5575218822Sdim  ac_status=$?
5576218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577218822Sdim  (exit $ac_status); }; then
5578218822Sdim    # Now try to grab the symbols.
5579218822Sdim    nlist=conftest.nm
5580218822Sdim    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5581218822Sdim  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5582218822Sdim  ac_status=$?
5583218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584218822Sdim  (exit $ac_status); } && test -s "$nlist"; then
5585218822Sdim      # Try sorting and uniquifying the output.
5586218822Sdim      if sort "$nlist" | uniq > "$nlist"T; then
5587218822Sdim	mv -f "$nlist"T "$nlist"
5588218822Sdim      else
5589218822Sdim	rm -f "$nlist"T
5590218822Sdim      fi
5591218822Sdim
5592218822Sdim      # Make sure that we snagged all the symbols we need.
5593218822Sdim      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5594218822Sdim	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5595218822Sdim	  cat <<_LT_EOF > conftest.$ac_ext
5596218822Sdim#ifdef __cplusplus
5597218822Sdimextern "C" {
5598218822Sdim#endif
5599218822Sdim
5600218822Sdim_LT_EOF
5601218822Sdim	  # Now generate the symbol file.
5602218822Sdim	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5603218822Sdim
5604218822Sdim	  cat <<_LT_EOF >> conftest.$ac_ext
5605218822Sdim
5606218822Sdim/* The mapping between symbol names and symbols.  */
5607218822Sdimconst struct {
5608218822Sdim  const char *name;
5609218822Sdim  void       *address;
5610218822Sdim}
5611218822Sdimlt__PROGRAM__LTX_preloaded_symbols[] =
5612218822Sdim{
5613218822Sdim  { "@PROGRAM@", (void *) 0 },
5614218822Sdim_LT_EOF
5615218822Sdim	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5616218822Sdim	  cat <<\_LT_EOF >> conftest.$ac_ext
5617218822Sdim  {0, (void *) 0}
5618218822Sdim};
5619218822Sdim
5620218822Sdim/* This works around a problem in FreeBSD linker */
5621218822Sdim#ifdef FREEBSD_WORKAROUND
5622218822Sdimstatic const void *lt_preloaded_setup() {
5623218822Sdim  return lt__PROGRAM__LTX_preloaded_symbols;
5624218822Sdim}
5625218822Sdim#endif
5626218822Sdim
5627218822Sdim#ifdef __cplusplus
5628218822Sdim}
5629218822Sdim#endif
5630218822Sdim_LT_EOF
5631218822Sdim	  # Now try linking the two files.
5632218822Sdim	  mv conftest.$ac_objext conftstm.$ac_objext
5633218822Sdim	  lt_save_LIBS="$LIBS"
5634218822Sdim	  lt_save_CFLAGS="$CFLAGS"
5635218822Sdim	  LIBS="conftstm.$ac_objext"
5636218822Sdim	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5637218822Sdim	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638218822Sdim  (eval $ac_link) 2>&5
5639218822Sdim  ac_status=$?
5640218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641218822Sdim  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5642218822Sdim	    pipe_works=yes
5643218822Sdim	  fi
5644218822Sdim	  LIBS="$lt_save_LIBS"
5645218822Sdim	  CFLAGS="$lt_save_CFLAGS"
5646218822Sdim	else
5647218822Sdim	  echo "cannot find nm_test_func in $nlist" >&5
5648218822Sdim	fi
5649218822Sdim      else
5650218822Sdim	echo "cannot find nm_test_var in $nlist" >&5
5651218822Sdim      fi
5652218822Sdim    else
5653218822Sdim      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5654218822Sdim    fi
5655218822Sdim  else
5656218822Sdim    echo "$progname: failed program was:" >&5
5657218822Sdim    cat conftest.$ac_ext >&5
5658218822Sdim  fi
5659218822Sdim  rm -f conftest* conftst*
5660218822Sdim
5661218822Sdim  # Do not use the global_symbol_pipe unless it works.
5662218822Sdim  if test "$pipe_works" = yes; then
5663218822Sdim    break
5664218822Sdim  else
5665218822Sdim    lt_cv_sys_global_symbol_pipe=
5666218822Sdim  fi
5667218822Sdimdone
5668218822Sdim
5669218822Sdimfi
5670218822Sdim
5671218822Sdimif test -z "$lt_cv_sys_global_symbol_pipe"; then
5672218822Sdim  lt_cv_sys_global_symbol_to_cdecl=
5673218822Sdimfi
5674218822Sdimif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5675218822Sdim  echo "$as_me:$LINENO: result: failed" >&5
5676218822Sdimecho "${ECHO_T}failed" >&6
5677218822Sdimelse
5678218822Sdim  echo "$as_me:$LINENO: result: ok" >&5
5679218822Sdimecho "${ECHO_T}ok" >&6
5680218822Sdimfi
5681218822Sdim
5682218822Sdim
5683218822Sdim
5684218822Sdim
5685218822Sdim
5686218822Sdim
5687218822Sdim
5688218822Sdim
5689218822Sdim
5690218822Sdim
5691218822Sdim
5692218822Sdim
5693218822Sdim
5694218822Sdim
5695218822Sdim
5696218822Sdim
5697218822Sdim
5698218822Sdim# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5699218822Sdimif test "${enable_libtool_lock+set}" = set; then
5700218822Sdim  enableval="$enable_libtool_lock"
5701218822Sdim
5702218822Sdimfi;
5703218822Sdimtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5704218822Sdim
5705218822Sdim# Some flags need to be propagated to the compiler or linker for good
5706218822Sdim# libtool support.
5707218822Sdimcase $host in
5708218822Sdimia64-*-hpux*)
5709218822Sdim  # Find out which ABI we are using.
5710218822Sdim  echo 'int i;' > conftest.$ac_ext
5711218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712218822Sdim  (eval $ac_compile) 2>&5
5713218822Sdim  ac_status=$?
5714218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715218822Sdim  (exit $ac_status); }; then
5716218822Sdim    case `/usr/bin/file conftest.$ac_objext` in
5717218822Sdim      *ELF-32*)
5718218822Sdim	HPUX_IA64_MODE="32"
5719218822Sdim	;;
5720218822Sdim      *ELF-64*)
5721218822Sdim	HPUX_IA64_MODE="64"
5722218822Sdim	;;
572377298Sobrien    esac
5724218822Sdim  fi
5725218822Sdim  rm -rf conftest*
5726218822Sdim  ;;
5727218822Sdim*-*-irix6*)
5728218822Sdim  # Find out which ABI we are using.
5729218822Sdim  echo '#line 5729 "configure"' > conftest.$ac_ext
5730218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731218822Sdim  (eval $ac_compile) 2>&5
5732218822Sdim  ac_status=$?
5733218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734218822Sdim  (exit $ac_status); }; then
5735218822Sdim    if test "$lt_cv_prog_gnu_ld" = yes; then
5736218822Sdim      case `/usr/bin/file conftest.$ac_objext` in
5737218822Sdim	*32-bit*)
5738218822Sdim	  LD="${LD-ld} -melf32bsmip"
5739218822Sdim	  ;;
5740218822Sdim	*N32*)
5741218822Sdim	  LD="${LD-ld} -melf32bmipn32"
5742218822Sdim	  ;;
5743218822Sdim	*64-bit*)
5744218822Sdim	  LD="${LD-ld} -melf64bmip"
5745218822Sdim	;;
5746218822Sdim      esac
5747218822Sdim    else
5748218822Sdim      case `/usr/bin/file conftest.$ac_objext` in
5749218822Sdim	*32-bit*)
5750218822Sdim	  LD="${LD-ld} -32"
5751218822Sdim	  ;;
5752218822Sdim	*N32*)
5753218822Sdim	  LD="${LD-ld} -n32"
5754218822Sdim	  ;;
5755218822Sdim	*64-bit*)
5756218822Sdim	  LD="${LD-ld} -64"
5757218822Sdim	  ;;
5758218822Sdim      esac
5759218822Sdim    fi
5760218822Sdim  fi
5761218822Sdim  rm -rf conftest*
5762218822Sdim  ;;
5763218822Sdim
5764218822Sdimx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5765218822Sdims390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5766218822Sdim  # Find out which ABI we are using.
5767218822Sdim  echo 'int i;' > conftest.$ac_ext
5768218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769218822Sdim  (eval $ac_compile) 2>&5
5770218822Sdim  ac_status=$?
5771218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772218822Sdim  (exit $ac_status); }; then
5773218822Sdim    case `/usr/bin/file conftest.o` in
5774218822Sdim      *32-bit*)
5775218822Sdim	case $host in
5776218822Sdim	  x86_64-*kfreebsd*-gnu)
5777218822Sdim	    LD="${LD-ld} -m elf_i386_fbsd"
5778218822Sdim	    ;;
5779218822Sdim	  x86_64-*linux*)
5780218822Sdim	    LD="${LD-ld} -m elf_i386"
5781218822Sdim	    ;;
5782218822Sdim	  ppc64-*linux*|powerpc64-*linux*)
5783218822Sdim	    LD="${LD-ld} -m elf32ppclinux"
5784218822Sdim	    ;;
5785218822Sdim	  s390x-*linux*)
5786218822Sdim	    LD="${LD-ld} -m elf_s390"
5787218822Sdim	    ;;
5788218822Sdim	  sparc64-*linux*)
5789218822Sdim	    LD="${LD-ld} -m elf32_sparc"
5790218822Sdim	    ;;
5791218822Sdim	esac
5792218822Sdim	;;
5793218822Sdim      *64-bit*)
5794218822Sdim	case $host in
5795218822Sdim	  x86_64-*kfreebsd*-gnu)
5796218822Sdim	    LD="${LD-ld} -m elf_x86_64_fbsd"
5797218822Sdim	    ;;
5798218822Sdim	  x86_64-*linux*)
5799218822Sdim	    LD="${LD-ld} -m elf_x86_64"
5800218822Sdim	    ;;
5801218822Sdim	  ppc*-*linux*|powerpc*-*linux*)
5802218822Sdim	    LD="${LD-ld} -m elf64ppc"
5803218822Sdim	    ;;
5804218822Sdim	  s390*-*linux*|s390*-*tpf*)
5805218822Sdim	    LD="${LD-ld} -m elf64_s390"
5806218822Sdim	    ;;
5807218822Sdim	  sparc*-*linux*)
5808218822Sdim	    LD="${LD-ld} -m elf64_sparc"
5809218822Sdim	    ;;
5810218822Sdim	esac
5811218822Sdim	;;
5812218822Sdim    esac
5813218822Sdim  fi
5814218822Sdim  rm -rf conftest*
5815218822Sdim  ;;
5816218822Sdim
5817218822Sdim*-*-sco3.2v5*)
5818218822Sdim  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5819218822Sdim  SAVE_CFLAGS="$CFLAGS"
5820218822Sdim  CFLAGS="$CFLAGS -belf"
5821218822Sdim  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5822218822Sdimecho $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5823218822Sdimif test "${lt_cv_cc_needs_belf+set}" = set; then
5824218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
582577298Sobrienelse
5826218822Sdim  ac_ext=c
5827218822Sdimac_cpp='$CPP $CPPFLAGS'
5828218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
5831218822Sdim
5832218822Sdim     cat >conftest.$ac_ext <<_ACEOF
5833218822Sdim/* confdefs.h.  */
5834218822Sdim_ACEOF
5835218822Sdimcat confdefs.h >>conftest.$ac_ext
5836218822Sdimcat >>conftest.$ac_ext <<_ACEOF
5837218822Sdim/* end confdefs.h.  */
5838218822Sdim
5839218822Sdimint
5840218822Sdimmain ()
5841218822Sdim{
5842218822Sdim
5843218822Sdim  ;
5844218822Sdim  return 0;
5845218822Sdim}
5846218822Sdim_ACEOF
5847218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
5848218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849218822Sdim  (eval $ac_link) 2>conftest.er1
5850218822Sdim  ac_status=$?
5851218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
5852218822Sdim  rm -f conftest.er1
5853218822Sdim  cat conftest.err >&5
5854218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855218822Sdim  (exit $ac_status); } &&
5856218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
5857218822Sdim			 || test ! -s conftest.err'
5858218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859218822Sdim  (eval $ac_try) 2>&5
5860218822Sdim  ac_status=$?
5861218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862218822Sdim  (exit $ac_status); }; } &&
5863218822Sdim	 { ac_try='test -s conftest$ac_exeext'
5864218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865218822Sdim  (eval $ac_try) 2>&5
5866218822Sdim  ac_status=$?
5867218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868218822Sdim  (exit $ac_status); }; }; then
5869218822Sdim  lt_cv_cc_needs_belf=yes
5870218822Sdimelse
5871218822Sdim  echo "$as_me: failed program was:" >&5
5872218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
5873218822Sdim
5874218822Sdimlt_cv_cc_needs_belf=no
587577298Sobrienfi
5876218822Sdimrm -f conftest.err conftest.$ac_objext \
5877218822Sdim      conftest$ac_exeext conftest.$ac_ext
5878218822Sdim     ac_ext=c
5879218822Sdimac_cpp='$CPP $CPPFLAGS'
5880218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
5883218822Sdim
588477298Sobrienfi
5885218822Sdimecho "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5886218822Sdimecho "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5887218822Sdim  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5888218822Sdim    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5889218822Sdim    CFLAGS="$SAVE_CFLAGS"
5890218822Sdim  fi
5891218822Sdim  ;;
5892218822Sdimsparc*-*solaris*)
5893218822Sdim  # Find out which ABI we are using.
5894218822Sdim  echo 'int i;' > conftest.$ac_ext
5895218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896218822Sdim  (eval $ac_compile) 2>&5
5897218822Sdim  ac_status=$?
5898218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899218822Sdim  (exit $ac_status); }; then
5900218822Sdim    case `/usr/bin/file conftest.o` in
5901218822Sdim    *64-bit*)
5902218822Sdim      case $lt_cv_prog_gnu_ld in
5903218822Sdim      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5904218822Sdim      *)    LD="${LD-ld} -64" ;;
5905218822Sdim      esac
5906218822Sdim      ;;
5907218822Sdim    esac
5908218822Sdim  fi
5909218822Sdim  rm -rf conftest*
5910218822Sdim  ;;
5911218822Sdimesac
591277298Sobrien
5913218822Sdimneed_locks="$enable_libtool_lock"
591477298Sobrien
5915218822Sdimac_ext=c
5916218822Sdimac_cpp='$CPP $CPPFLAGS'
5917218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
5920218822Sdimecho "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5921218822Sdimecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5922218822Sdim# On Suns, sometimes $CPP names a directory.
5923218822Sdimif test -n "$CPP" && test -d "$CPP"; then
5924218822Sdim  CPP=
5925218822Sdimfi
5926218822Sdimif test -z "$CPP"; then
5927218822Sdim  if test "${ac_cv_prog_CPP+set}" = set; then
5928218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5929218822Sdimelse
5930218822Sdim      # Double quotes because CPP needs to be expanded
5931218822Sdim    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5932218822Sdim    do
5933218822Sdim      ac_preproc_ok=false
5934218822Sdimfor ac_c_preproc_warn_flag in '' yes
5935218822Sdimdo
5936218822Sdim  # Use a header file that comes with gcc, so configuring glibc
5937218822Sdim  # with a fresh cross-compiler works.
5938218822Sdim  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5939218822Sdim  # <limits.h> exists even on freestanding compilers.
5940218822Sdim  # On the NeXT, cc -E runs the code through the compiler's parser,
5941218822Sdim  # not just through cpp. "Syntax error" is here to catch this case.
5942218822Sdim  cat >conftest.$ac_ext <<_ACEOF
5943218822Sdim/* confdefs.h.  */
5944218822Sdim_ACEOF
5945218822Sdimcat confdefs.h >>conftest.$ac_ext
5946218822Sdimcat >>conftest.$ac_ext <<_ACEOF
5947218822Sdim/* end confdefs.h.  */
5948218822Sdim#ifdef __STDC__
5949218822Sdim# include <limits.h>
5950218822Sdim#else
5951218822Sdim# include <assert.h>
5952218822Sdim#endif
5953218822Sdim		     Syntax error
5954218822Sdim_ACEOF
5955218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5956218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5957218822Sdim  ac_status=$?
5958218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
5959218822Sdim  rm -f conftest.er1
5960218822Sdim  cat conftest.err >&5
5961218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962218822Sdim  (exit $ac_status); } >/dev/null; then
5963218822Sdim  if test -s conftest.err; then
5964218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
5965218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5966218822Sdim  else
5967218822Sdim    ac_cpp_err=
5968218822Sdim  fi
5969218822Sdimelse
5970218822Sdim  ac_cpp_err=yes
5971218822Sdimfi
5972218822Sdimif test -z "$ac_cpp_err"; then
5973218822Sdim  :
5974218822Sdimelse
5975218822Sdim  echo "$as_me: failed program was:" >&5
5976218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
597777298Sobrien
5978218822Sdim  # Broken: fails on valid input.
5979218822Sdimcontinue
5980218822Sdimfi
5981218822Sdimrm -f conftest.err conftest.$ac_ext
598277298Sobrien
5983218822Sdim  # OK, works on sane cases.  Now check whether non-existent headers
5984218822Sdim  # can be detected and how.
5985218822Sdim  cat >conftest.$ac_ext <<_ACEOF
5986218822Sdim/* confdefs.h.  */
5987218822Sdim_ACEOF
5988218822Sdimcat confdefs.h >>conftest.$ac_ext
5989218822Sdimcat >>conftest.$ac_ext <<_ACEOF
5990218822Sdim/* end confdefs.h.  */
5991218822Sdim#include <ac_nonexistent.h>
5992218822Sdim_ACEOF
5993218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5994218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5995218822Sdim  ac_status=$?
5996218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
5997218822Sdim  rm -f conftest.er1
5998218822Sdim  cat conftest.err >&5
5999218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000218822Sdim  (exit $ac_status); } >/dev/null; then
6001218822Sdim  if test -s conftest.err; then
6002218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
6003218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6004218822Sdim  else
6005218822Sdim    ac_cpp_err=
6006218822Sdim  fi
600777298Sobrienelse
6008218822Sdim  ac_cpp_err=yes
6009218822Sdimfi
6010218822Sdimif test -z "$ac_cpp_err"; then
6011218822Sdim  # Broken: success on invalid input.
6012218822Sdimcontinue
601377298Sobrienelse
6014218822Sdim  echo "$as_me: failed program was:" >&5
6015218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
6016218822Sdim
6017218822Sdim  # Passes both tests.
6018218822Sdimac_preproc_ok=:
6019218822Sdimbreak
6020218822Sdimfi
6021218822Sdimrm -f conftest.err conftest.$ac_ext
6022218822Sdim
6023218822Sdimdone
6024218822Sdim# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6025218822Sdimrm -f conftest.err conftest.$ac_ext
6026218822Sdimif $ac_preproc_ok; then
6027218822Sdim  break
6028218822Sdimfi
6029218822Sdim
603077298Sobrien    done
6031218822Sdim    ac_cv_prog_CPP=$CPP
6032218822Sdim
6033218822Sdimfi
6034218822Sdim  CPP=$ac_cv_prog_CPP
6035218822Sdimelse
6036218822Sdim  ac_cv_prog_CPP=$CPP
6037218822Sdimfi
6038218822Sdimecho "$as_me:$LINENO: result: $CPP" >&5
6039218822Sdimecho "${ECHO_T}$CPP" >&6
6040218822Sdimac_preproc_ok=false
6041218822Sdimfor ac_c_preproc_warn_flag in '' yes
6042218822Sdimdo
6043218822Sdim  # Use a header file that comes with gcc, so configuring glibc
6044218822Sdim  # with a fresh cross-compiler works.
6045218822Sdim  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6046218822Sdim  # <limits.h> exists even on freestanding compilers.
6047218822Sdim  # On the NeXT, cc -E runs the code through the compiler's parser,
6048218822Sdim  # not just through cpp. "Syntax error" is here to catch this case.
6049218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6050218822Sdim/* confdefs.h.  */
6051218822Sdim_ACEOF
6052218822Sdimcat confdefs.h >>conftest.$ac_ext
6053218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6054218822Sdim/* end confdefs.h.  */
6055218822Sdim#ifdef __STDC__
6056218822Sdim# include <limits.h>
6057218822Sdim#else
6058218822Sdim# include <assert.h>
6059218822Sdim#endif
6060218822Sdim		     Syntax error
6061218822Sdim_ACEOF
6062218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6063218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6064218822Sdim  ac_status=$?
6065218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
6066218822Sdim  rm -f conftest.er1
6067218822Sdim  cat conftest.err >&5
6068218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069218822Sdim  (exit $ac_status); } >/dev/null; then
6070218822Sdim  if test -s conftest.err; then
6071218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
6072218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
607377298Sobrien  else
6074218822Sdim    ac_cpp_err=
607577298Sobrien  fi
6076218822Sdimelse
6077218822Sdim  ac_cpp_err=yes
607877298Sobrienfi
6079218822Sdimif test -z "$ac_cpp_err"; then
6080218822Sdim  :
6081218822Sdimelse
6082218822Sdim  echo "$as_me: failed program was:" >&5
6083218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
6084218822Sdim
6085218822Sdim  # Broken: fails on valid input.
6086218822Sdimcontinue
608777298Sobrienfi
6088218822Sdimrm -f conftest.err conftest.$ac_ext
608977298Sobrien
6090218822Sdim  # OK, works on sane cases.  Now check whether non-existent headers
6091218822Sdim  # can be detected and how.
6092218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6093218822Sdim/* confdefs.h.  */
6094218822Sdim_ACEOF
6095218822Sdimcat confdefs.h >>conftest.$ac_ext
6096218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6097218822Sdim/* end confdefs.h.  */
6098218822Sdim#include <ac_nonexistent.h>
6099218822Sdim_ACEOF
6100218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6101218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6102218822Sdim  ac_status=$?
6103218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
6104218822Sdim  rm -f conftest.er1
6105218822Sdim  cat conftest.err >&5
6106218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107218822Sdim  (exit $ac_status); } >/dev/null; then
6108218822Sdim  if test -s conftest.err; then
6109218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
6110218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6111218822Sdim  else
6112218822Sdim    ac_cpp_err=
6113218822Sdim  fi
6114218822Sdimelse
6115218822Sdim  ac_cpp_err=yes
6116218822Sdimfi
6117218822Sdimif test -z "$ac_cpp_err"; then
6118218822Sdim  # Broken: success on invalid input.
6119218822Sdimcontinue
6120218822Sdimelse
6121218822Sdim  echo "$as_me: failed program was:" >&5
6122218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
612377298Sobrien
6124218822Sdim  # Passes both tests.
6125218822Sdimac_preproc_ok=:
6126218822Sdimbreak
6127218822Sdimfi
6128218822Sdimrm -f conftest.err conftest.$ac_ext
612977298Sobrien
6130218822Sdimdone
6131218822Sdim# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6132218822Sdimrm -f conftest.err conftest.$ac_ext
6133218822Sdimif $ac_preproc_ok; then
6134218822Sdim  :
6135218822Sdimelse
6136218822Sdim  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6137218822SdimSee \`config.log' for more details." >&5
6138218822Sdimecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6139218822SdimSee \`config.log' for more details." >&2;}
6140218822Sdim   { (exit 1); exit 1; }; }
6141218822Sdimfi
6142218822Sdim
6143218822Sdimac_ext=c
6144218822Sdimac_cpp='$CPP $CPPFLAGS'
6145218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
6148218822Sdim
6149218822Sdim
6150218822Sdimecho "$as_me:$LINENO: checking for ANSI C header files" >&5
6151218822Sdimecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6152218822Sdimif test "${ac_cv_header_stdc+set}" = set; then
6153218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6154218822Sdimelse
6155218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6156218822Sdim/* confdefs.h.  */
6157218822Sdim_ACEOF
6158218822Sdimcat confdefs.h >>conftest.$ac_ext
6159218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6160218822Sdim/* end confdefs.h.  */
6161218822Sdim#include <stdlib.h>
6162218822Sdim#include <stdarg.h>
6163218822Sdim#include <string.h>
6164218822Sdim#include <float.h>
6165218822Sdim
6166218822Sdimint
6167218822Sdimmain ()
6168218822Sdim{
6169218822Sdim
6170218822Sdim  ;
6171218822Sdim  return 0;
6172218822Sdim}
6173218822Sdim_ACEOF
6174218822Sdimrm -f conftest.$ac_objext
6175218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176218822Sdim  (eval $ac_compile) 2>conftest.er1
6177218822Sdim  ac_status=$?
6178218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
6179218822Sdim  rm -f conftest.er1
6180218822Sdim  cat conftest.err >&5
6181218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182218822Sdim  (exit $ac_status); } &&
6183218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
6184218822Sdim			 || test ! -s conftest.err'
6185218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186218822Sdim  (eval $ac_try) 2>&5
6187218822Sdim  ac_status=$?
6188218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189218822Sdim  (exit $ac_status); }; } &&
6190218822Sdim	 { ac_try='test -s conftest.$ac_objext'
6191218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192218822Sdim  (eval $ac_try) 2>&5
6193218822Sdim  ac_status=$?
6194218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195218822Sdim  (exit $ac_status); }; }; then
6196218822Sdim  ac_cv_header_stdc=yes
6197218822Sdimelse
6198218822Sdim  echo "$as_me: failed program was:" >&5
6199218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
6200218822Sdim
6201218822Sdimac_cv_header_stdc=no
6202218822Sdimfi
6203218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204218822Sdim
6205218822Sdimif test $ac_cv_header_stdc = yes; then
6206218822Sdim  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6207218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6208218822Sdim/* confdefs.h.  */
6209218822Sdim_ACEOF
6210218822Sdimcat confdefs.h >>conftest.$ac_ext
6211218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6212218822Sdim/* end confdefs.h.  */
6213218822Sdim#include <string.h>
6214218822Sdim
6215218822Sdim_ACEOF
6216218822Sdimif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6217218822Sdim  $EGREP "memchr" >/dev/null 2>&1; then
6218218822Sdim  :
6219218822Sdimelse
6220218822Sdim  ac_cv_header_stdc=no
6221218822Sdimfi
6222218822Sdimrm -f conftest*
6223218822Sdim
6224218822Sdimfi
6225218822Sdim
6226218822Sdimif test $ac_cv_header_stdc = yes; then
6227218822Sdim  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6228218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6229218822Sdim/* confdefs.h.  */
6230218822Sdim_ACEOF
6231218822Sdimcat confdefs.h >>conftest.$ac_ext
6232218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6233218822Sdim/* end confdefs.h.  */
6234218822Sdim#include <stdlib.h>
6235218822Sdim
6236218822Sdim_ACEOF
6237218822Sdimif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6238218822Sdim  $EGREP "free" >/dev/null 2>&1; then
6239218822Sdim  :
6240218822Sdimelse
6241218822Sdim  ac_cv_header_stdc=no
6242218822Sdimfi
6243218822Sdimrm -f conftest*
6244218822Sdim
6245218822Sdimfi
6246218822Sdim
6247218822Sdimif test $ac_cv_header_stdc = yes; then
6248218822Sdim  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6249218822Sdim  if test "$cross_compiling" = yes; then
6250218822Sdim  :
6251218822Sdimelse
6252218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6253218822Sdim/* confdefs.h.  */
6254218822Sdim_ACEOF
6255218822Sdimcat confdefs.h >>conftest.$ac_ext
6256218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6257218822Sdim/* end confdefs.h.  */
6258218822Sdim#include <ctype.h>
6259218822Sdim#if ((' ' & 0x0FF) == 0x020)
6260218822Sdim# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6261218822Sdim# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6262218822Sdim#else
6263218822Sdim# define ISLOWER(c) \
6264218822Sdim		   (('a' <= (c) && (c) <= 'i') \
6265218822Sdim		     || ('j' <= (c) && (c) <= 'r') \
6266218822Sdim		     || ('s' <= (c) && (c) <= 'z'))
6267218822Sdim# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6268218822Sdim#endif
6269218822Sdim
6270218822Sdim#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6271218822Sdimint
6272218822Sdimmain ()
6273218822Sdim{
6274218822Sdim  int i;
6275218822Sdim  for (i = 0; i < 256; i++)
6276218822Sdim    if (XOR (islower (i), ISLOWER (i))
6277218822Sdim	|| toupper (i) != TOUPPER (i))
6278218822Sdim      exit(2);
6279218822Sdim  exit (0);
6280218822Sdim}
6281218822Sdim_ACEOF
6282218822Sdimrm -f conftest$ac_exeext
6283218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6284218822Sdim  (eval $ac_link) 2>&5
6285218822Sdim  ac_status=$?
6286218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6288218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289218822Sdim  (eval $ac_try) 2>&5
6290218822Sdim  ac_status=$?
6291218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292218822Sdim  (exit $ac_status); }; }; then
6293218822Sdim  :
6294218822Sdimelse
6295218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
6296218822Sdimecho "$as_me: failed program was:" >&5
6297218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
6298218822Sdim
6299218822Sdim( exit $ac_status )
6300218822Sdimac_cv_header_stdc=no
6301218822Sdimfi
6302218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6303218822Sdimfi
6304218822Sdimfi
6305218822Sdimfi
6306218822Sdimecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6307218822Sdimecho "${ECHO_T}$ac_cv_header_stdc" >&6
6308218822Sdimif test $ac_cv_header_stdc = yes; then
6309218822Sdim
6310218822Sdimcat >>confdefs.h <<\_ACEOF
6311218822Sdim#define STDC_HEADERS 1
6312218822Sdim_ACEOF
6313218822Sdim
6314218822Sdimfi
6315218822Sdim
6316218822Sdim# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6317218822Sdim
6318218822Sdim
6319218822Sdim
6320218822Sdim
6321218822Sdim
6322218822Sdim
6323218822Sdim
6324218822Sdim
6325218822Sdim
6326218822Sdimfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6327218822Sdim		  inttypes.h stdint.h unistd.h
6328218822Sdimdo
6329218822Sdimas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330218822Sdimecho "$as_me:$LINENO: checking for $ac_header" >&5
6331218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6332218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
6333218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6334218822Sdimelse
6335218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6336218822Sdim/* confdefs.h.  */
6337218822Sdim_ACEOF
6338218822Sdimcat confdefs.h >>conftest.$ac_ext
6339218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6340218822Sdim/* end confdefs.h.  */
6341218822Sdim$ac_includes_default
6342218822Sdim
6343218822Sdim#include <$ac_header>
6344218822Sdim_ACEOF
6345218822Sdimrm -f conftest.$ac_objext
6346218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347218822Sdim  (eval $ac_compile) 2>conftest.er1
6348218822Sdim  ac_status=$?
6349218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
6350218822Sdim  rm -f conftest.er1
6351218822Sdim  cat conftest.err >&5
6352218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353218822Sdim  (exit $ac_status); } &&
6354218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
6355218822Sdim			 || test ! -s conftest.err'
6356218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357218822Sdim  (eval $ac_try) 2>&5
6358218822Sdim  ac_status=$?
6359218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360218822Sdim  (exit $ac_status); }; } &&
6361218822Sdim	 { ac_try='test -s conftest.$ac_objext'
6362218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363218822Sdim  (eval $ac_try) 2>&5
6364218822Sdim  ac_status=$?
6365218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366218822Sdim  (exit $ac_status); }; }; then
6367218822Sdim  eval "$as_ac_Header=yes"
6368218822Sdimelse
6369218822Sdim  echo "$as_me: failed program was:" >&5
6370218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
6371218822Sdim
6372218822Sdimeval "$as_ac_Header=no"
6373218822Sdimfi
6374218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375218822Sdimfi
6376218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6377218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6378218822Sdimif test `eval echo '${'$as_ac_Header'}'` = yes; then
6379218822Sdim  cat >>confdefs.h <<_ACEOF
6380218822Sdim#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6381218822Sdim_ACEOF
6382218822Sdim
6383218822Sdimfi
6384218822Sdim
6385218822Sdimdone
6386218822Sdim
6387218822Sdim
6388218822Sdim
6389218822Sdimfor ac_header in dlfcn.h
6390218822Sdimdo
6391218822Sdimas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6392218822Sdimecho "$as_me:$LINENO: checking for $ac_header" >&5
6393218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6394218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
6395218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6396218822Sdimelse
6397218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6398218822Sdim/* confdefs.h.  */
6399218822Sdim_ACEOF
6400218822Sdimcat confdefs.h >>conftest.$ac_ext
6401218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6402218822Sdim/* end confdefs.h.  */
6403218822Sdim$ac_includes_default
6404218822Sdim
6405218822Sdim#include <$ac_header>
6406218822Sdim_ACEOF
6407218822Sdimrm -f conftest.$ac_objext
6408218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409218822Sdim  (eval $ac_compile) 2>conftest.er1
6410218822Sdim  ac_status=$?
6411218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
6412218822Sdim  rm -f conftest.er1
6413218822Sdim  cat conftest.err >&5
6414218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415218822Sdim  (exit $ac_status); } &&
6416218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
6417218822Sdim			 || test ! -s conftest.err'
6418218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419218822Sdim  (eval $ac_try) 2>&5
6420218822Sdim  ac_status=$?
6421218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422218822Sdim  (exit $ac_status); }; } &&
6423218822Sdim	 { ac_try='test -s conftest.$ac_objext'
6424218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425218822Sdim  (eval $ac_try) 2>&5
6426218822Sdim  ac_status=$?
6427218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428218822Sdim  (exit $ac_status); }; }; then
6429218822Sdim  eval "$as_ac_Header=yes"
6430218822Sdimelse
6431218822Sdim  echo "$as_me: failed program was:" >&5
6432218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
6433218822Sdim
6434218822Sdimeval "$as_ac_Header=no"
6435218822Sdimfi
6436218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437218822Sdimfi
6438218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6439218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6440218822Sdimif test `eval echo '${'$as_ac_Header'}'` = yes; then
6441218822Sdim  cat >>confdefs.h <<_ACEOF
6442218822Sdim#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6443218822Sdim_ACEOF
6444218822Sdim
6445218822Sdimfi
6446218822Sdim
6447218822Sdimdone
6448218822Sdim
6449218822Sdim
6450218822Sdim
6451218822Sdim# This can be used to rebuild libtool when needed
6452218822SdimLIBTOOL_DEPS="$ltmain"
6453218822Sdim
6454218822Sdim# Always use our own libtool.
6455218822SdimLIBTOOL='$(SHELL) $(top_builddir)/libtool'
6456218822Sdim
6457218822Sdim
6458218822Sdim
6459218822Sdim
6460218822Sdim
6461218822Sdim
6462218822Sdim
6463218822Sdim
6464218822Sdim
6465218822Sdim
6466218822Sdim
6467218822Sdim
6468218822Sdim
6469218822Sdim
6470218822Sdim
6471218822Sdim
6472218822Sdim
6473218822Sdim
6474218822Sdim
6475218822Sdim
6476218822Sdim
6477218822Sdim
6478218822Sdim
6479218822Sdim
6480218822Sdim
6481218822Sdimtest -z "$LN_S" && LN_S="ln -s"
6482218822Sdim
6483218822Sdim
6484218822Sdim
6485218822Sdim
6486218822Sdim
6487218822Sdim
6488218822Sdim
6489218822Sdim
6490218822Sdim
6491218822Sdim
6492218822Sdim
6493218822Sdim
6494218822Sdim
6495218822Sdim
6496218822Sdimif test -n "${ZSH_VERSION+set}" ; then
6497218822Sdim   setopt NO_GLOB_SUBST
6498218822Sdimfi
6499218822Sdim
6500218822Sdimecho "$as_me:$LINENO: checking for objdir" >&5
6501218822Sdimecho $ECHO_N "checking for objdir... $ECHO_C" >&6
6502218822Sdimif test "${lt_cv_objdir+set}" = set; then
6503218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6504218822Sdimelse
6505218822Sdim  rm -f .libs 2>/dev/null
6506218822Sdimmkdir .libs 2>/dev/null
6507218822Sdimif test -d .libs; then
6508218822Sdim  lt_cv_objdir=.libs
6509218822Sdimelse
6510218822Sdim  # MS-DOS does not allow filenames that begin with a dot.
6511218822Sdim  lt_cv_objdir=_libs
6512218822Sdimfi
6513218822Sdimrmdir .libs 2>/dev/null
6514218822Sdimfi
6515218822Sdimecho "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6516218822Sdimecho "${ECHO_T}$lt_cv_objdir" >&6
6517218822Sdimobjdir=$lt_cv_objdir
6518218822Sdim
6519218822Sdim
6520218822Sdim
6521218822Sdim
6522218822Sdim
6523218822Sdimcat >>confdefs.h <<_ACEOF
6524218822Sdim#define LT_OBJDIR "$lt_cv_objdir/"
6525218822Sdim_ACEOF
6526218822Sdim
6527218822Sdim
6528218822Sdim
6529218822Sdim
6530218822Sdim
6531218822Sdim
6532218822Sdim
6533218822Sdim
6534218822Sdim
6535218822Sdim
6536218822Sdim
6537218822Sdim
6538218822Sdim
6539218822Sdim
6540218822Sdim
6541218822Sdim
6542218822Sdim
6543218822Sdimcase $host_os in
6544218822Sdimaix3*)
6545218822Sdim  # AIX sometimes has problems with the GCC collect2 program.  For some
6546218822Sdim  # reason, if we set the COLLECT_NAMES environment variable, the problems
6547218822Sdim  # vanish in a puff of smoke.
6548218822Sdim  if test "X${COLLECT_NAMES+set}" != Xset; then
6549218822Sdim    COLLECT_NAMES=
6550218822Sdim    export COLLECT_NAMES
6551218822Sdim  fi
6552218822Sdim  ;;
6553218822Sdimesac
6554218822Sdim
6555218822Sdim# Sed substitution that helps us do robust quoting.  It backslashifies
6556218822Sdim# metacharacters that are still active within double-quoted strings.
6557218822Sdimsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6558218822Sdim
6559218822Sdim# Same as above, but do not quote variable references.
6560218822Sdimdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
6561218822Sdim
6562218822Sdim# Sed substitution to delay expansion of an escaped shell variable in a
6563218822Sdim# double_quote_subst'ed string.
6564218822Sdimdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6565218822Sdim
6566218822Sdim# Sed substitution to delay expansion of an escaped single quote.
6567218822Sdimdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6568218822Sdim
6569218822Sdim# Sed substitution to avoid accidental globbing in evaled expressions
6570218822Sdimno_glob_subst='s/\*/\\\*/g'
6571218822Sdim
6572218822Sdim# Global variables:
6573218822Sdimofile=libtool
6574218822Sdimcan_build_shared=yes
6575218822Sdim
6576218822Sdim# All known linkers require a `.a' archive for static linking (except MSVC,
6577218822Sdim# which needs '.lib').
6578218822Sdimlibext=a
6579218822Sdim
6580218822Sdimwith_gnu_ld="$lt_cv_prog_gnu_ld"
6581218822Sdim
6582218822Sdimold_CC="$CC"
6583218822Sdimold_CFLAGS="$CFLAGS"
6584218822Sdim
6585218822Sdim# Set sane defaults for various variables
6586218822Sdimtest -z "$CC" && CC=cc
6587218822Sdimtest -z "$LTCC" && LTCC=$CC
6588218822Sdimtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6589218822Sdimtest -z "$LD" && LD=ld
6590218822Sdimtest -z "$ac_objext" && ac_objext=o
6591218822Sdim
6592218822Sdimfor cc_temp in $compiler""; do
6593218822Sdim  case $cc_temp in
6594218822Sdim    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6595218822Sdim    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6596218822Sdim    \-*) ;;
6597218822Sdim    *) break;;
6598218822Sdim  esac
6599218822Sdimdone
6600218822Sdimcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6601218822Sdim
6602218822Sdim
660377298Sobrien# Only perform the check for file, if the check method requires it
6604218822Sdimtest -z "$MAGIC_CMD" && MAGIC_CMD=file
660589857Sobriencase $deplibs_check_method in
660677298Sobrienfile_magic*)
660777298Sobrien  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6608218822Sdim    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6609218822Sdimecho $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6610218822Sdimif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6611218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
661277298Sobrienelse
661389857Sobrien  case $MAGIC_CMD in
6614218822Sdim[\\/*] |  ?:[\\/]*)
661577298Sobrien  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
661677298Sobrien  ;;
6617218822Sdim*)
6618218822Sdim  lt_save_MAGIC_CMD="$MAGIC_CMD"
6619218822Sdim  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6620218822Sdim  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
662177298Sobrien  for ac_dir in $ac_dummy; do
6622218822Sdim    IFS="$lt_save_ifs"
662377298Sobrien    test -z "$ac_dir" && ac_dir=.
662477298Sobrien    if test -f $ac_dir/${ac_tool_prefix}file; then
662577298Sobrien      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
662677298Sobrien      if test -n "$file_magic_test_file"; then
662789857Sobrien	case $deplibs_check_method in
662877298Sobrien	"file_magic "*)
6629218822Sdim	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
663077298Sobrien	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
663177298Sobrien	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6632218822Sdim	    $EGREP "$file_magic_regex" > /dev/null; then
663377298Sobrien	    :
663477298Sobrien	  else
6635218822Sdim	    cat <<_LT_EOF 1>&2
663677298Sobrien
663777298Sobrien*** Warning: the command libtool uses to detect shared libraries,
663877298Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize.
663977298Sobrien*** The result is that libtool may fail to recognize shared libraries
664077298Sobrien*** as such.  This will affect the creation of libtool libraries that
664177298Sobrien*** depend on shared libraries, but programs linked with such libtool
664277298Sobrien*** libraries will work regardless of this problem.  Nevertheless, you
664377298Sobrien*** may want to report the problem to your system manager and/or to
664477298Sobrien*** bug-libtool@gnu.org
664577298Sobrien
6646218822Sdim_LT_EOF
664777298Sobrien	  fi ;;
664877298Sobrien	esac
664977298Sobrien      fi
665077298Sobrien      break
665177298Sobrien    fi
665277298Sobrien  done
6653218822Sdim  IFS="$lt_save_ifs"
6654218822Sdim  MAGIC_CMD="$lt_save_MAGIC_CMD"
665577298Sobrien  ;;
665677298Sobrienesac
665777298Sobrienfi
665877298Sobrien
665977298SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
666077298Sobrienif test -n "$MAGIC_CMD"; then
6661218822Sdim  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6662218822Sdimecho "${ECHO_T}$MAGIC_CMD" >&6
666377298Sobrienelse
6664218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6665218822Sdimecho "${ECHO_T}no" >&6
666677298Sobrienfi
666777298Sobrien
6668218822Sdim
6669218822Sdim
6670218822Sdim
6671218822Sdim
667277298Sobrienif test -z "$lt_cv_path_MAGIC_CMD"; then
667377298Sobrien  if test -n "$ac_tool_prefix"; then
6674218822Sdim    echo "$as_me:$LINENO: checking for file" >&5
6675218822Sdimecho $ECHO_N "checking for file... $ECHO_C" >&6
6676218822Sdimif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6677218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
667877298Sobrienelse
667989857Sobrien  case $MAGIC_CMD in
6680218822Sdim[\\/*] |  ?:[\\/]*)
668177298Sobrien  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
668277298Sobrien  ;;
6683218822Sdim*)
6684218822Sdim  lt_save_MAGIC_CMD="$MAGIC_CMD"
6685218822Sdim  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6686218822Sdim  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
668777298Sobrien  for ac_dir in $ac_dummy; do
6688218822Sdim    IFS="$lt_save_ifs"
668977298Sobrien    test -z "$ac_dir" && ac_dir=.
669077298Sobrien    if test -f $ac_dir/file; then
669177298Sobrien      lt_cv_path_MAGIC_CMD="$ac_dir/file"
669277298Sobrien      if test -n "$file_magic_test_file"; then
669389857Sobrien	case $deplibs_check_method in
669477298Sobrien	"file_magic "*)
6695218822Sdim	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
669677298Sobrien	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
669777298Sobrien	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6698218822Sdim	    $EGREP "$file_magic_regex" > /dev/null; then
669977298Sobrien	    :
670077298Sobrien	  else
6701218822Sdim	    cat <<_LT_EOF 1>&2
670277298Sobrien
670377298Sobrien*** Warning: the command libtool uses to detect shared libraries,
670477298Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize.
670577298Sobrien*** The result is that libtool may fail to recognize shared libraries
670677298Sobrien*** as such.  This will affect the creation of libtool libraries that
670777298Sobrien*** depend on shared libraries, but programs linked with such libtool
670877298Sobrien*** libraries will work regardless of this problem.  Nevertheless, you
670977298Sobrien*** may want to report the problem to your system manager and/or to
671077298Sobrien*** bug-libtool@gnu.org
671177298Sobrien
6712218822Sdim_LT_EOF
671377298Sobrien	  fi ;;
671477298Sobrien	esac
671577298Sobrien      fi
671677298Sobrien      break
671777298Sobrien    fi
671877298Sobrien  done
6719218822Sdim  IFS="$lt_save_ifs"
6720218822Sdim  MAGIC_CMD="$lt_save_MAGIC_CMD"
672177298Sobrien  ;;
672277298Sobrienesac
672377298Sobrienfi
672477298Sobrien
672577298SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
672677298Sobrienif test -n "$MAGIC_CMD"; then
6727218822Sdim  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6728218822Sdimecho "${ECHO_T}$MAGIC_CMD" >&6
672977298Sobrienelse
6730218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6731218822Sdimecho "${ECHO_T}no" >&6
673277298Sobrienfi
673377298Sobrien
6734218822Sdim
673577298Sobrien  else
673677298Sobrien    MAGIC_CMD=:
673777298Sobrien  fi
673877298Sobrienfi
673977298Sobrien
674077298Sobrien  fi
674177298Sobrien  ;;
674277298Sobrienesac
674377298Sobrien
6744218822Sdim# Use C for the default configuration in the libtool script
6745218822Sdim
6746218822Sdimlt_save_CC="$CC"
6747218822Sdimac_ext=c
6748218822Sdimac_cpp='$CPP $CPPFLAGS'
6749218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
6752218822Sdim
6753218822Sdim
6754218822Sdim# Source file extension for C test sources.
6755218822Sdimac_ext=c
6756218822Sdim
6757218822Sdim# Object file extension for compiled C test sources.
6758218822Sdimobjext=o
6759218822Sdimobjext=$objext
6760218822Sdim
6761218822Sdim# Code to be used in simple compile tests
6762218822Sdimlt_simple_compile_test_code="int some_variable = 0;"
6763218822Sdim
6764218822Sdim# Code to be used in simple link tests
6765218822Sdimlt_simple_link_test_code='int main(){return(0);}'
6766218822Sdim
6767218822Sdim
6768218822Sdim
6769218822Sdim
6770218822Sdim
6771218822Sdim
6772218822Sdim
6773218822Sdim# If no C compiler was specified, use CC.
6774218822SdimLTCC=${LTCC-"$CC"}
6775218822Sdim
6776218822Sdim# If no C compiler flags were specified, use CFLAGS.
6777218822SdimLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6778218822Sdim
6779218822Sdim# Allow CC to be a program name with arguments.
6780218822Sdimcompiler=$CC
6781218822Sdim
6782218822Sdim# Save the default compiler, since it gets overwritten when the other
6783218822Sdim# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6784218822Sdimcompiler_DEFAULT=$CC
6785218822Sdim
6786218822Sdim# save warnings/boilerplate of simple test code
6787218822Sdimac_outfile=conftest.$ac_objext
6788218822Sdimecho "$lt_simple_compile_test_code" >conftest.$ac_ext
6789218822Sdimeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6790218822Sdim_lt_compiler_boilerplate=`cat conftest.err`
6791218822Sdim$RM conftest*
6792218822Sdim
6793218822Sdimac_outfile=conftest.$ac_objext
6794218822Sdimecho "$lt_simple_link_test_code" >conftest.$ac_ext
6795218822Sdimeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6796218822Sdim_lt_linker_boilerplate=`cat conftest.err`
6797218822Sdim$RM conftest*
6798218822Sdim
6799218822Sdim
6800218822Sdim## CAVEAT EMPTOR:
6801218822Sdim## There is no encapsulation within the following macros, do not change
6802218822Sdim## the running order or otherwise move them around unless you know exactly
6803218822Sdim## what you are doing...
6804218822Sdimif test -n "$compiler"; then
6805218822Sdim
6806218822Sdimlt_prog_compiler_no_builtin_flag=
6807218822Sdim
6808218822Sdimif test "$GCC" = yes; then
6809218822Sdim  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6810218822Sdim
6811218822Sdim  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6812218822Sdimecho $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6813218822Sdimif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6814218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
681577298Sobrienelse
6816218822Sdim  lt_cv_prog_compiler_rtti_exceptions=no
6817218822Sdim   ac_outfile=conftest.$ac_objext
6818218822Sdim   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6819218822Sdim   lt_compiler_flag="-fno-rtti -fno-exceptions"
6820218822Sdim   # Insert the option either (1) after the last *FLAGS variable, or
6821218822Sdim   # (2) before a word containing "conftest.", or (3) at the end.
6822218822Sdim   # Note that $ac_compile itself does not contain backslashes and begins
6823218822Sdim   # with a dollar sign (not a hyphen), so the echo should work correctly.
6824218822Sdim   # The option is referenced via a variable to avoid confusing sed.
6825218822Sdim   lt_compile=`echo "$ac_compile" | $SED \
6826218822Sdim   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6827218822Sdim   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6828218822Sdim   -e 's:$: $lt_compiler_flag:'`
6829218822Sdim   (eval echo "\"\$as_me:6829: $lt_compile\"" >&5)
6830218822Sdim   (eval "$lt_compile" 2>conftest.err)
6831218822Sdim   ac_status=$?
6832218822Sdim   cat conftest.err >&5
6833218822Sdim   echo "$as_me:6833: \$? = $ac_status" >&5
6834218822Sdim   if (exit $ac_status) && test -s "$ac_outfile"; then
6835218822Sdim     # The compiler can only warn and ignore the option if not recognized
6836218822Sdim     # So say no if there are warnings other than the usual output.
6837218822Sdim     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6838218822Sdim     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6839218822Sdim     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6840218822Sdim       lt_cv_prog_compiler_rtti_exceptions=yes
6841218822Sdim     fi
6842218822Sdim   fi
6843218822Sdim   $RM conftest*
6844218822Sdim
6845218822Sdimfi
6846218822Sdimecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6847218822Sdimecho "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6848218822Sdim
6849218822Sdimif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6850218822Sdim    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
685177298Sobrienelse
6852218822Sdim    :
685377298Sobrienfi
6854218822Sdim
685577298Sobrienfi
6856218822Sdim
6857218822Sdim
6858218822Sdim
6859218822Sdim
6860218822Sdim
6861218822Sdim
6862218822Sdim  lt_prog_compiler_wl=
6863218822Sdimlt_prog_compiler_pic=
6864218822Sdimlt_prog_compiler_static=
6865218822Sdim
6866218822Sdimecho "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6867218822Sdimecho $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6868218822Sdim
6869218822Sdim  if test "$GCC" = yes; then
6870218822Sdim    lt_prog_compiler_wl='-Wl,'
6871218822Sdim    lt_prog_compiler_static='-static'
6872218822Sdim
6873218822Sdim    case $host_os in
6874218822Sdim      aix*)
6875218822Sdim      # All AIX code is PIC.
6876218822Sdim      if test "$host_cpu" = ia64; then
6877218822Sdim	# AIX 5 now supports IA64 processor
6878218822Sdim	lt_prog_compiler_static='-Bstatic'
6879218822Sdim      fi
6880218822Sdim      ;;
6881218822Sdim
6882218822Sdim    amigaos*)
6883218822Sdim      if test "$host_cpu" = m68k; then
6884218822Sdim        # FIXME: we need at least 68020 code to build shared libraries, but
6885218822Sdim        # adding the `-m68020' flag to GCC prevents building anything better,
6886218822Sdim        # like `-m68040'.
6887218822Sdim        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6888218822Sdim      fi
6889218822Sdim      ;;
6890218822Sdim
6891218822Sdim    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6892218822Sdim      # PIC is the default for these OSes.
6893218822Sdim      ;;
6894218822Sdim
6895218822Sdim    mingw* | cygwin* | pw32* | os2*)
6896218822Sdim      # This hack is so that the source file can tell whether it is being
6897218822Sdim      # built for inclusion in a dll (and should export symbols for example).
6898218822Sdim      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6899218822Sdim      # (--disable-auto-import) libraries
6900218822Sdim      lt_prog_compiler_pic='-DDLL_EXPORT'
6901218822Sdim      ;;
6902218822Sdim
6903218822Sdim    darwin* | rhapsody*)
6904218822Sdim      # PIC is the default on this platform
6905218822Sdim      # Common symbols not allowed in MH_DYLIB files
6906218822Sdim      lt_prog_compiler_pic='-fno-common'
6907218822Sdim      ;;
6908218822Sdim
6909218822Sdim    hpux*)
6910218822Sdim      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6911218822Sdim      # not for PA HP-UX.
6912218822Sdim      case $host_cpu in
6913218822Sdim      hppa*64*|ia64*)
6914218822Sdim	# +Z the default
6915218822Sdim	;;
6916218822Sdim      *)
6917218822Sdim	lt_prog_compiler_pic='-fPIC'
6918218822Sdim	;;
6919218822Sdim      esac
6920218822Sdim      ;;
6921218822Sdim
6922218822Sdim    interix[3-9]*)
6923218822Sdim      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6924218822Sdim      # Instead, we relocate shared libraries at runtime.
6925218822Sdim      ;;
6926218822Sdim
6927218822Sdim    msdosdjgpp*)
6928218822Sdim      # Just because we use GCC doesn't mean we suddenly get shared libraries
6929218822Sdim      # on systems that don't support them.
6930218822Sdim      lt_prog_compiler_can_build_shared=no
6931218822Sdim      enable_shared=no
6932218822Sdim      ;;
6933218822Sdim
6934218822Sdim    *nto* | *qnx*)
6935218822Sdim      # QNX uses GNU C++, but need to define -shared option too, otherwise
6936218822Sdim      # it will coredump.
6937218822Sdim      lt_prog_compiler_pic='-fPIC -shared'
6938218822Sdim      ;;
6939218822Sdim
6940218822Sdim    sysv4*MP*)
6941218822Sdim      if test -d /usr/nec; then
6942218822Sdim	lt_prog_compiler_pic=-Kconform_pic
6943218822Sdim      fi
6944218822Sdim      ;;
6945218822Sdim
6946218822Sdim    *)
6947218822Sdim      lt_prog_compiler_pic='-fPIC'
6948218822Sdim      ;;
6949218822Sdim    esac
6950218822Sdim  else
6951218822Sdim    # PORTME Check for flag to pass linker flags through the system compiler.
6952218822Sdim    case $host_os in
6953218822Sdim    aix*)
6954218822Sdim      lt_prog_compiler_wl='-Wl,'
6955218822Sdim      if test "$host_cpu" = ia64; then
6956218822Sdim	# AIX 5 now supports IA64 processor
6957218822Sdim	lt_prog_compiler_static='-Bstatic'
6958218822Sdim      else
6959218822Sdim	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6960218822Sdim      fi
6961218822Sdim      ;;
6962218822Sdim    darwin*)
6963218822Sdim      # PIC is the default on this platform
6964218822Sdim      # Common symbols not allowed in MH_DYLIB files
6965218822Sdim      case $cc_basename in
6966218822Sdim      xlc*)
6967218822Sdim        lt_prog_compiler_pic='-qnocommon'
6968218822Sdim        lt_prog_compiler_wl='-Wl,'
6969218822Sdim        ;;
6970218822Sdim      esac
6971218822Sdim      ;;
6972218822Sdim
6973218822Sdim    mingw* | cygwin* | pw32* | os2*)
6974218822Sdim      # This hack is so that the source file can tell whether it is being
6975218822Sdim      # built for inclusion in a dll (and should export symbols for example).
6976218822Sdim      lt_prog_compiler_pic='-DDLL_EXPORT'
6977218822Sdim      ;;
6978218822Sdim
6979218822Sdim    hpux9* | hpux10* | hpux11*)
6980218822Sdim      lt_prog_compiler_wl='-Wl,'
6981218822Sdim      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6982218822Sdim      # not for PA HP-UX.
6983218822Sdim      case $host_cpu in
6984218822Sdim      hppa*64*|ia64*)
6985218822Sdim	# +Z the default
6986218822Sdim	;;
6987218822Sdim      *)
6988218822Sdim	lt_prog_compiler_pic='+Z'
6989218822Sdim	;;
6990218822Sdim      esac
6991218822Sdim      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6992218822Sdim      lt_prog_compiler_static='${wl}-a ${wl}archive'
6993218822Sdim      ;;
6994218822Sdim
6995218822Sdim    irix5* | irix6* | nonstopux*)
6996218822Sdim      lt_prog_compiler_wl='-Wl,'
6997218822Sdim      # PIC (with -KPIC) is the default.
6998218822Sdim      lt_prog_compiler_static='-non_shared'
6999218822Sdim      ;;
7000218822Sdim
7001218822Sdim    linux* | k*bsd*-gnu)
7002218822Sdim      case $cc_basename in
7003218822Sdim      icc* | ecc*)
7004218822Sdim	lt_prog_compiler_wl='-Wl,'
7005218822Sdim	lt_prog_compiler_pic='-KPIC'
7006218822Sdim	lt_prog_compiler_static='-static'
7007218822Sdim        ;;
7008218822Sdim      pgcc* | pgf77* | pgf90* | pgf95*)
7009218822Sdim        # Portland Group compilers (*not* the Pentium gcc compiler,
7010218822Sdim	# which looks to be a dead project)
7011218822Sdim	lt_prog_compiler_wl='-Wl,'
7012218822Sdim	lt_prog_compiler_pic='-fpic'
7013218822Sdim	lt_prog_compiler_static='-Bstatic'
7014218822Sdim        ;;
7015218822Sdim      ccc*)
7016218822Sdim        lt_prog_compiler_wl='-Wl,'
7017218822Sdim        # All Alpha code is PIC.
7018218822Sdim        lt_prog_compiler_static='-non_shared'
7019218822Sdim        ;;
7020218822Sdim      *)
7021218822Sdim	case `$CC -V 2>&1 | sed 5q` in
7022218822Sdim	*Sun\ C*)
7023218822Sdim	  # Sun C 5.9
7024218822Sdim	  lt_prog_compiler_pic='-KPIC'
7025218822Sdim	  lt_prog_compiler_static='-Bstatic'
7026218822Sdim	  lt_prog_compiler_wl='-Wl,'
7027218822Sdim	  ;;
7028218822Sdim	*Sun\ F*)
7029218822Sdim	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7030218822Sdim	  lt_prog_compiler_pic='-KPIC'
7031218822Sdim	  lt_prog_compiler_static='-Bstatic'
7032218822Sdim	  lt_prog_compiler_wl=''
7033218822Sdim	  ;;
7034218822Sdim	esac
7035218822Sdim	;;
7036218822Sdim      esac
7037218822Sdim      ;;
7038218822Sdim
7039218822Sdim    newsos6)
7040218822Sdim      lt_prog_compiler_pic='-KPIC'
7041218822Sdim      lt_prog_compiler_static='-Bstatic'
7042218822Sdim      ;;
7043218822Sdim
7044218822Sdim    *nto* | *qnx*)
7045218822Sdim      # QNX uses GNU C++, but need to define -shared option too, otherwise
7046218822Sdim      # it will coredump.
7047218822Sdim      lt_prog_compiler_pic='-fPIC -shared'
7048218822Sdim      ;;
7049218822Sdim
7050218822Sdim    osf3* | osf4* | osf5*)
7051218822Sdim      lt_prog_compiler_wl='-Wl,'
7052218822Sdim      # All OSF/1 code is PIC.
7053218822Sdim      lt_prog_compiler_static='-non_shared'
7054218822Sdim      ;;
7055218822Sdim
7056218822Sdim    rdos*)
7057218822Sdim      lt_prog_compiler_static='-non_shared'
7058218822Sdim      ;;
7059218822Sdim
7060218822Sdim    solaris*)
7061218822Sdim      lt_prog_compiler_pic='-KPIC'
7062218822Sdim      lt_prog_compiler_static='-Bstatic'
7063218822Sdim      case $cc_basename in
7064218822Sdim      f77* | f90* | f95*)
7065218822Sdim	lt_prog_compiler_wl='-Qoption ld ';;
7066218822Sdim      *)
7067218822Sdim	lt_prog_compiler_wl='-Wl,';;
7068218822Sdim      esac
7069218822Sdim      ;;
7070218822Sdim
7071218822Sdim    sunos4*)
7072218822Sdim      lt_prog_compiler_wl='-Qoption ld '
7073218822Sdim      lt_prog_compiler_pic='-PIC'
7074218822Sdim      lt_prog_compiler_static='-Bstatic'
7075218822Sdim      ;;
7076218822Sdim
7077218822Sdim    sysv4 | sysv4.2uw2* | sysv4.3*)
7078218822Sdim      lt_prog_compiler_wl='-Wl,'
7079218822Sdim      lt_prog_compiler_pic='-KPIC'
7080218822Sdim      lt_prog_compiler_static='-Bstatic'
7081218822Sdim      ;;
7082218822Sdim
7083218822Sdim    sysv4*MP*)
7084218822Sdim      if test -d /usr/nec ;then
7085218822Sdim	lt_prog_compiler_pic='-Kconform_pic'
7086218822Sdim	lt_prog_compiler_static='-Bstatic'
7087218822Sdim      fi
7088218822Sdim      ;;
7089218822Sdim
7090218822Sdim    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7091218822Sdim      lt_prog_compiler_wl='-Wl,'
7092218822Sdim      lt_prog_compiler_pic='-KPIC'
7093218822Sdim      lt_prog_compiler_static='-Bstatic'
7094218822Sdim      ;;
7095218822Sdim
7096218822Sdim    unicos*)
7097218822Sdim      lt_prog_compiler_wl='-Wl,'
7098218822Sdim      lt_prog_compiler_can_build_shared=no
7099218822Sdim      ;;
7100218822Sdim
7101218822Sdim    uts4*)
7102218822Sdim      lt_prog_compiler_pic='-pic'
7103218822Sdim      lt_prog_compiler_static='-Bstatic'
7104218822Sdim      ;;
7105218822Sdim
7106218822Sdim    *)
7107218822Sdim      lt_prog_compiler_can_build_shared=no
7108218822Sdim      ;;
7109218822Sdim    esac
7110218822Sdim  fi
7111218822Sdim
7112218822Sdimcase $host_os in
7113218822Sdim  # For platforms which do not support PIC, -DPIC is meaningless:
7114218822Sdim  *djgpp*)
7115218822Sdim    lt_prog_compiler_pic=
7116218822Sdim    ;;
7117218822Sdim  *)
7118218822Sdim    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7119218822Sdim    ;;
7120218822Sdimesac
7121218822Sdimecho "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7122218822Sdimecho "${ECHO_T}$lt_prog_compiler_pic" >&6
7123218822Sdim
7124218822Sdim
7125218822Sdim
7126218822Sdim
7127218822Sdim
7128218822Sdim
7129218822Sdim#
7130218822Sdim# Check to make sure the PIC flag actually works.
7131218822Sdim#
7132218822Sdimif test -n "$lt_prog_compiler_pic"; then
7133218822Sdim  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7134218822Sdimecho $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7135218822Sdimif test "${lt_prog_compiler_pic_works+set}" = set; then
7136218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
713777298Sobrienelse
7138218822Sdim  lt_prog_compiler_pic_works=no
7139218822Sdim   ac_outfile=conftest.$ac_objext
7140218822Sdim   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7141218822Sdim   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7142218822Sdim   # Insert the option either (1) after the last *FLAGS variable, or
7143218822Sdim   # (2) before a word containing "conftest.", or (3) at the end.
7144218822Sdim   # Note that $ac_compile itself does not contain backslashes and begins
7145218822Sdim   # with a dollar sign (not a hyphen), so the echo should work correctly.
7146218822Sdim   # The option is referenced via a variable to avoid confusing sed.
7147218822Sdim   lt_compile=`echo "$ac_compile" | $SED \
7148218822Sdim   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7149218822Sdim   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7150218822Sdim   -e 's:$: $lt_compiler_flag:'`
7151218822Sdim   (eval echo "\"\$as_me:7151: $lt_compile\"" >&5)
7152218822Sdim   (eval "$lt_compile" 2>conftest.err)
7153218822Sdim   ac_status=$?
7154218822Sdim   cat conftest.err >&5
7155218822Sdim   echo "$as_me:7155: \$? = $ac_status" >&5
7156218822Sdim   if (exit $ac_status) && test -s "$ac_outfile"; then
7157218822Sdim     # The compiler can only warn and ignore the option if not recognized
7158218822Sdim     # So say no if there are warnings other than the usual output.
7159218822Sdim     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7160218822Sdim     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7161218822Sdim     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7162218822Sdim       lt_prog_compiler_pic_works=yes
7163218822Sdim     fi
7164218822Sdim   fi
7165218822Sdim   $RM conftest*
7166218822Sdim
716777298Sobrienfi
7168218822Sdimecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7169218822Sdimecho "${ECHO_T}$lt_prog_compiler_pic_works" >&6
717077298Sobrien
7171218822Sdimif test x"$lt_prog_compiler_pic_works" = xyes; then
7172218822Sdim    case $lt_prog_compiler_pic in
7173218822Sdim     "" | " "*) ;;
7174218822Sdim     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7175218822Sdim     esac
717677298Sobrienelse
7177218822Sdim    lt_prog_compiler_pic=
7178218822Sdim     lt_prog_compiler_can_build_shared=no
717977298Sobrienfi
7180218822Sdim
718177298Sobrienfi
7182218822Sdim
7183218822Sdim
7184218822Sdim
7185218822Sdim
7186218822Sdim
7187218822Sdim
7188218822Sdim#
7189218822Sdim# Check to make sure the static flag actually works.
7190218822Sdim#
7191218822Sdimwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7192218822Sdimecho "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7193218822Sdimecho $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7194218822Sdimif test "${lt_prog_compiler_static_works+set}" = set; then
7195218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
719677298Sobrienelse
7197218822Sdim  lt_prog_compiler_static_works=no
7198218822Sdim   save_LDFLAGS="$LDFLAGS"
7199218822Sdim   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7200218822Sdim   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7201218822Sdim   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7202218822Sdim     # The linker can only warn and ignore the option if not recognized
7203218822Sdim     # So say no if there are warnings
7204218822Sdim     if test -s conftest.err; then
7205218822Sdim       # Append any errors to the config.log.
7206218822Sdim       cat conftest.err 1>&5
7207218822Sdim       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7208218822Sdim       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7209218822Sdim       if diff conftest.exp conftest.er2 >/dev/null; then
7210218822Sdim         lt_prog_compiler_static_works=yes
7211218822Sdim       fi
7212218822Sdim     else
7213218822Sdim       lt_prog_compiler_static_works=yes
7214218822Sdim     fi
7215218822Sdim   fi
7216218822Sdim   $RM conftest*
7217218822Sdim   LDFLAGS="$save_LDFLAGS"
7218218822Sdim
721977298Sobrienfi
7220218822Sdimecho "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7221218822Sdimecho "${ECHO_T}$lt_prog_compiler_static_works" >&6
722277298Sobrien
7223218822Sdimif test x"$lt_prog_compiler_static_works" = xyes; then
7224218822Sdim    :
722577298Sobrienelse
7226218822Sdim    lt_prog_compiler_static=
722777298Sobrienfi
7228218822Sdim
7229218822Sdim
7230218822Sdim
7231218822Sdim
7232218822Sdim
7233218822Sdim
7234218822Sdim
7235218822Sdim  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7236218822Sdimecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7237218822Sdimif test "${lt_cv_prog_compiler_c_o+set}" = set; then
7238218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7239218822Sdimelse
7240218822Sdim  lt_cv_prog_compiler_c_o=no
7241218822Sdim   $RM -r conftest 2>/dev/null
7242218822Sdim   mkdir conftest
7243218822Sdim   cd conftest
7244218822Sdim   mkdir out
7245218822Sdim   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7246218822Sdim
7247218822Sdim   lt_compiler_flag="-o out/conftest2.$ac_objext"
7248218822Sdim   # Insert the option either (1) after the last *FLAGS variable, or
7249218822Sdim   # (2) before a word containing "conftest.", or (3) at the end.
7250218822Sdim   # Note that $ac_compile itself does not contain backslashes and begins
7251218822Sdim   # with a dollar sign (not a hyphen), so the echo should work correctly.
7252218822Sdim   lt_compile=`echo "$ac_compile" | $SED \
7253218822Sdim   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7254218822Sdim   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7255218822Sdim   -e 's:$: $lt_compiler_flag:'`
7256218822Sdim   (eval echo "\"\$as_me:7256: $lt_compile\"" >&5)
7257218822Sdim   (eval "$lt_compile" 2>out/conftest.err)
7258218822Sdim   ac_status=$?
7259218822Sdim   cat out/conftest.err >&5
7260218822Sdim   echo "$as_me:7260: \$? = $ac_status" >&5
7261218822Sdim   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7262218822Sdim   then
7263218822Sdim     # The compiler can only warn and ignore the option if not recognized
7264218822Sdim     # So say no if there are warnings
7265218822Sdim     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7266218822Sdim     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7267218822Sdim     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7268218822Sdim       lt_cv_prog_compiler_c_o=yes
7269218822Sdim     fi
7270218822Sdim   fi
7271218822Sdim   chmod u+w . 2>&5
7272218822Sdim   $RM conftest*
7273218822Sdim   # SGI C++ compiler will create directory out/ii_files/ for
7274218822Sdim   # template instantiation
7275218822Sdim   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7276218822Sdim   $RM out/* && rmdir out
7277218822Sdim   cd ..
7278218822Sdim   $RM -r conftest
7279218822Sdim   $RM conftest*
7280218822Sdim
728177298Sobrienfi
7282218822Sdimecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7283218822Sdimecho "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
728477298Sobrien
7285218822Sdim
7286218822Sdim
7287218822Sdim
7288218822Sdim
7289218822Sdim
7290218822Sdim  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7291218822Sdimecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7292218822Sdimif test "${lt_cv_prog_compiler_c_o+set}" = set; then
7293218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
729477298Sobrienelse
7295218822Sdim  lt_cv_prog_compiler_c_o=no
7296218822Sdim   $RM -r conftest 2>/dev/null
7297218822Sdim   mkdir conftest
7298218822Sdim   cd conftest
7299218822Sdim   mkdir out
7300218822Sdim   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7301218822Sdim
7302218822Sdim   lt_compiler_flag="-o out/conftest2.$ac_objext"
7303218822Sdim   # Insert the option either (1) after the last *FLAGS variable, or
7304218822Sdim   # (2) before a word containing "conftest.", or (3) at the end.
7305218822Sdim   # Note that $ac_compile itself does not contain backslashes and begins
7306218822Sdim   # with a dollar sign (not a hyphen), so the echo should work correctly.
7307218822Sdim   lt_compile=`echo "$ac_compile" | $SED \
7308218822Sdim   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7309218822Sdim   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7310218822Sdim   -e 's:$: $lt_compiler_flag:'`
7311218822Sdim   (eval echo "\"\$as_me:7311: $lt_compile\"" >&5)
7312218822Sdim   (eval "$lt_compile" 2>out/conftest.err)
7313218822Sdim   ac_status=$?
7314218822Sdim   cat out/conftest.err >&5
7315218822Sdim   echo "$as_me:7315: \$? = $ac_status" >&5
7316218822Sdim   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7317218822Sdim   then
7318218822Sdim     # The compiler can only warn and ignore the option if not recognized
7319218822Sdim     # So say no if there are warnings
7320218822Sdim     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7321218822Sdim     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7322218822Sdim     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7323218822Sdim       lt_cv_prog_compiler_c_o=yes
7324218822Sdim     fi
7325218822Sdim   fi
7326218822Sdim   chmod u+w . 2>&5
7327218822Sdim   $RM conftest*
7328218822Sdim   # SGI C++ compiler will create directory out/ii_files/ for
7329218822Sdim   # template instantiation
7330218822Sdim   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7331218822Sdim   $RM out/* && rmdir out
7332218822Sdim   cd ..
7333218822Sdim   $RM -r conftest
7334218822Sdim   $RM conftest*
7335218822Sdim
733677298Sobrienfi
7337218822Sdimecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7338218822Sdimecho "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7339218822Sdim
7340218822Sdim
7341218822Sdim
7342218822Sdim
7343218822Sdimhard_links="nottested"
7344218822Sdimif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7345218822Sdim  # do not overwrite the value of need_locks provided by the user
7346218822Sdim  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7347218822Sdimecho $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7348218822Sdim  hard_links=yes
7349218822Sdim  $RM conftest*
7350218822Sdim  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7351218822Sdim  touch conftest.a
7352218822Sdim  ln conftest.a conftest.b 2>&5 || hard_links=no
7353218822Sdim  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7354218822Sdim  echo "$as_me:$LINENO: result: $hard_links" >&5
7355218822Sdimecho "${ECHO_T}$hard_links" >&6
7356218822Sdim  if test "$hard_links" = no; then
7357218822Sdim    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7358218822Sdimecho "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7359218822Sdim    need_locks=warn
7360218822Sdim  fi
736177298Sobrienelse
7362218822Sdim  need_locks=no
736377298Sobrienfi
736477298Sobrien
736577298Sobrien
7366218822Sdim
7367218822Sdim
7368218822Sdim
7369218822Sdim
7370218822Sdim  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7371218822Sdimecho $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7372218822Sdim
7373218822Sdim  runpath_var=
7374218822Sdim  allow_undefined_flag=
7375218822Sdim  always_export_symbols=no
7376218822Sdim  archive_cmds=
7377218822Sdim  archive_expsym_cmds=
7378218822Sdim  compiler_needs_object=no
7379218822Sdim  enable_shared_with_static_runtimes=no
7380218822Sdim  export_dynamic_flag_spec=
7381218822Sdim  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7382218822Sdim  hardcode_automatic=no
7383218822Sdim  hardcode_direct=no
7384218822Sdim  hardcode_direct_absolute=no
7385218822Sdim  hardcode_libdir_flag_spec=
7386218822Sdim  hardcode_libdir_flag_spec_ld=
7387218822Sdim  hardcode_libdir_separator=
7388218822Sdim  hardcode_minus_L=no
7389218822Sdim  hardcode_shlibpath_var=unsupported
7390218822Sdim  inherit_rpath=no
7391218822Sdim  link_all_deplibs=unknown
7392218822Sdim  module_cmds=
7393218822Sdim  module_expsym_cmds=
7394218822Sdim  old_archive_from_new_cmds=
7395218822Sdim  old_archive_from_expsyms_cmds=
7396218822Sdim  thread_safe_flag_spec=
7397218822Sdim  whole_archive_flag_spec=
7398218822Sdim  # include_expsyms should be a list of space-separated symbols to be *always*
7399218822Sdim  # included in the symbol list
7400218822Sdim  include_expsyms=
7401218822Sdim  # exclude_expsyms can be an extended regexp of symbols to exclude
7402218822Sdim  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7403218822Sdim  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7404218822Sdim  # as well as any symbol that contains `d'.
7405218822Sdim  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7406218822Sdim  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7407218822Sdim  # platforms (ab)use it in PIC code, but their linkers get confused if
7408218822Sdim  # the symbol is explicitly referenced.  Since portable code cannot
7409218822Sdim  # rely on this symbol name, it's probably fine to never include it in
7410218822Sdim  # preloaded symbol tables.
7411218822Sdim  extract_expsyms_cmds=
7412218822Sdim
7413218822Sdim  case $host_os in
7414218822Sdim  cygwin* | mingw* | pw32*)
7415218822Sdim    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7416218822Sdim    # When not using gcc, we currently assume that we are using
7417218822Sdim    # Microsoft Visual C++.
7418218822Sdim    if test "$GCC" != yes; then
7419218822Sdim      with_gnu_ld=no
742077298Sobrien    fi
7421218822Sdim    ;;
7422218822Sdim  interix*)
7423218822Sdim    # we just hope/assume this is gcc and not c89 (= MSVC++)
7424218822Sdim    with_gnu_ld=yes
7425218822Sdim    ;;
7426218822Sdim  openbsd*)
7427218822Sdim    with_gnu_ld=no
7428218822Sdim    ;;
7429218822Sdim  esac
7430218822Sdim
7431218822Sdim  ld_shlibs=yes
7432218822Sdim  if test "$with_gnu_ld" = yes; then
7433218822Sdim    # If archive_cmds runs LD, not CC, wlarc should be empty
7434218822Sdim    wlarc='${wl}'
7435218822Sdim
7436218822Sdim    # Set some defaults for GNU ld with shared library support. These
7437218822Sdim    # are reset later if shared libraries are not supported. Putting them
7438218822Sdim    # here allows them to be overridden if necessary.
7439218822Sdim    runpath_var=LD_RUN_PATH
7440218822Sdim    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7441218822Sdim    export_dynamic_flag_spec='${wl}--export-dynamic'
7442218822Sdim    # ancient GNU ld didn't support --whole-archive et. al.
7443218822Sdim    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7444218822Sdim      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7445218822Sdim    else
7446218822Sdim      whole_archive_flag_spec=
7447218822Sdim    fi
7448218822Sdim    supports_anon_versioning=no
7449218822Sdim    case `$LD -v 2>&1` in
7450218822Sdim      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7451218822Sdim      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7452218822Sdim      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7453218822Sdim      *\ 2.11.*) ;; # other 2.11 versions
7454218822Sdim      *) supports_anon_versioning=yes ;;
7455218822Sdim    esac
7456218822Sdim
7457218822Sdim    # See if GNU ld supports shared libraries.
7458218822Sdim    case $host_os in
7459218822Sdim    aix3* | aix4* | aix5*)
7460218822Sdim      # On AIX/PPC, the GNU linker is very broken
7461218822Sdim      if test "$host_cpu" != ia64; then
7462218822Sdim	ld_shlibs=no
7463218822Sdim	cat <<_LT_EOF 1>&2
7464218822Sdim
7465218822Sdim*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7466218822Sdim*** to be unable to reliably create shared libraries on AIX.
7467218822Sdim*** Therefore, libtool is disabling shared libraries support.  If you
7468218822Sdim*** really care for shared libraries, you may want to modify your PATH
7469218822Sdim*** so that a non-GNU linker is found, and then restart.
7470218822Sdim
7471218822Sdim_LT_EOF
7472218822Sdim      fi
7473218822Sdim      ;;
7474218822Sdim
7475218822Sdim    amigaos*)
7476218822Sdim      if test "$host_cpu" = m68k; then
7477218822Sdim        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)'
7478218822Sdim        hardcode_libdir_flag_spec='-L$libdir'
7479218822Sdim        hardcode_minus_L=yes
7480218822Sdim      fi
7481218822Sdim
7482218822Sdim      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7483218822Sdim      # that the semantics of dynamic libraries on AmigaOS, at least up
7484218822Sdim      # to version 4, is to share data among multiple programs linked
7485218822Sdim      # with the same dynamic library.  Since this doesn't match the
7486218822Sdim      # behavior of shared libraries on other platforms, we can't use
7487218822Sdim      # them.
7488218822Sdim      ld_shlibs=no
7489218822Sdim      ;;
7490218822Sdim
7491218822Sdim    beos*)
7492218822Sdim      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7493218822Sdim	allow_undefined_flag=unsupported
7494218822Sdim	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7495218822Sdim	# support --undefined.  This deserves some investigation.  FIXME
7496218822Sdim	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7497218822Sdim      else
7498218822Sdim	ld_shlibs=no
7499218822Sdim      fi
7500218822Sdim      ;;
7501218822Sdim
7502218822Sdim    cygwin* | mingw* | pw32*)
7503218822Sdim      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7504218822Sdim      # as there is no search path for DLLs.
7505218822Sdim      hardcode_libdir_flag_spec='-L$libdir'
7506218822Sdim      allow_undefined_flag=unsupported
7507218822Sdim      always_export_symbols=no
7508218822Sdim      enable_shared_with_static_runtimes=yes
7509218822Sdim      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7510218822Sdim
7511218822Sdim      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7512218822Sdim        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7513218822Sdim	# If the export-symbols file already is a .def file (1st line
7514218822Sdim	# is EXPORTS), use it as is; otherwise, prepend...
7515218822Sdim	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7516218822Sdim	  cp $export_symbols $output_objdir/$soname.def;
7517218822Sdim	else
7518218822Sdim	  echo EXPORTS > $output_objdir/$soname.def;
7519218822Sdim	  cat $export_symbols >> $output_objdir/$soname.def;
7520218822Sdim	fi~
7521218822Sdim	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7522218822Sdim      else
7523218822Sdim	ld_shlibs=no
7524218822Sdim      fi
7525218822Sdim      ;;
7526218822Sdim
7527218822Sdim    interix[3-9]*)
7528218822Sdim      hardcode_direct=no
7529218822Sdim      hardcode_shlibpath_var=no
7530218822Sdim      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7531218822Sdim      export_dynamic_flag_spec='${wl}-E'
7532218822Sdim      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7533218822Sdim      # Instead, shared libraries are loaded at an image base (0x10000000 by
7534218822Sdim      # default) and relocated if they conflict, which is a slow very memory
7535218822Sdim      # consuming and fragmenting process.  To avoid this, we pick a random,
7536218822Sdim      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7537218822Sdim      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7538218822Sdim      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7539218822Sdim      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'
7540218822Sdim      ;;
7541218822Sdim
7542218822Sdim    gnu* | linux* | tpf* | k*bsd*-gnu)
7543218822Sdim      tmp_diet=no
7544218822Sdim      if test "$host_os" = linux-dietlibc; then
7545218822Sdim	case $cc_basename in
7546218822Sdim	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7547218822Sdim	esac
7548218822Sdim      fi
7549218822Sdim      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7550218822Sdim	 && test "$tmp_diet" = no
7551218822Sdim      then
7552218822Sdim	tmp_addflag=
7553218822Sdim	case $cc_basename,$host_cpu in
7554218822Sdim        pgcc*)				# Portland Group C compiler
7555218822Sdim	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7556218822Sdim	  tmp_addflag=' $pic_flag'
7557218822Sdim	  ;;
7558218822Sdim	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7559218822Sdim	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7560218822Sdim	  tmp_addflag=' $pic_flag -Mnomain' ;;
7561218822Sdim	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7562218822Sdim	  tmp_addflag=' -i_dynamic' ;;
7563218822Sdim	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7564218822Sdim	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7565218822Sdim	ifc* | ifort*)			# Intel Fortran compiler
7566218822Sdim	  tmp_addflag=' -nofor_main' ;;
7567218822Sdim	esac
7568218822Sdim	case `$CC -V 2>&1 | sed 5q` in
7569218822Sdim	*Sun\ C*)			# Sun C 5.9
7570218822Sdim	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7571218822Sdim	  compiler_needs_object=yes
7572218822Sdim	  tmp_sharedflag='-G' ;;
7573218822Sdim	*Sun\ F*)			# Sun Fortran 8.3
7574218822Sdim	  tmp_sharedflag='-G' ;;
7575218822Sdim	*)
7576218822Sdim	  tmp_sharedflag='-shared' ;;
7577218822Sdim	esac
7578218822Sdim	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7579218822Sdim
7580218822Sdim        if test "x$supports_anon_versioning" = xyes; then
7581218822Sdim          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7582218822Sdim	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7583218822Sdim	    echo "local: *; };" >> $output_objdir/$libname.ver~
7584218822Sdim	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7585218822Sdim        fi
7586218822Sdim      else
7587218822Sdim        ld_shlibs=no
7588218822Sdim      fi
7589218822Sdim      ;;
7590218822Sdim
7591218822Sdim    netbsd*)
7592218822Sdim      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7593218822Sdim	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7594218822Sdim	wlarc=
7595218822Sdim      else
7596218822Sdim	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7597218822Sdim	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7598218822Sdim      fi
7599218822Sdim      ;;
7600218822Sdim
7601218822Sdim    solaris*)
7602218822Sdim      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7603218822Sdim	ld_shlibs=no
7604218822Sdim	cat <<_LT_EOF 1>&2
7605218822Sdim
7606218822Sdim*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7607218822Sdim*** create shared libraries on Solaris systems.  Therefore, libtool
7608218822Sdim*** is disabling shared libraries support.  We urge you to upgrade GNU
7609218822Sdim*** binutils to release 2.9.1 or newer.  Another option is to modify
7610218822Sdim*** your PATH or compiler configuration so that the native linker is
7611218822Sdim*** used, and then restart.
7612218822Sdim
7613218822Sdim_LT_EOF
7614218822Sdim      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7615218822Sdim	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7616218822Sdim	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7617218822Sdim      else
7618218822Sdim	ld_shlibs=no
7619218822Sdim      fi
7620218822Sdim      ;;
7621218822Sdim
7622218822Sdim    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7623218822Sdim      case `$LD -v 2>&1` in
7624218822Sdim        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7625218822Sdim	ld_shlibs=no
7626218822Sdim	cat <<_LT_EOF 1>&2
7627218822Sdim
7628218822Sdim*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7629218822Sdim*** reliably create shared libraries on SCO systems.  Therefore, libtool
7630218822Sdim*** is disabling shared libraries support.  We urge you to upgrade GNU
7631218822Sdim*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7632218822Sdim*** your PATH or compiler configuration so that the native linker is
7633218822Sdim*** used, and then restart.
7634218822Sdim
7635218822Sdim_LT_EOF
7636218822Sdim	;;
7637218822Sdim	*)
7638218822Sdim	  # For security reasons, it is highly recommended that you always
7639218822Sdim	  # use absolute paths for naming shared libraries, and exclude the
7640218822Sdim	  # DT_RUNPATH tag from executables and libraries.  But doing so
7641218822Sdim	  # requires that you compile everything twice, which is a pain.
7642218822Sdim	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7643218822Sdim	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7644218822Sdim	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7645218822Sdim	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7646218822Sdim	  else
7647218822Sdim	    ld_shlibs=no
7648218822Sdim	  fi
7649218822Sdim	;;
7650218822Sdim      esac
7651218822Sdim      ;;
7652218822Sdim
7653218822Sdim    sunos4*)
7654218822Sdim      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7655218822Sdim      wlarc=
7656218822Sdim      hardcode_direct=yes
7657218822Sdim      hardcode_shlibpath_var=no
7658218822Sdim      ;;
7659218822Sdim
7660218822Sdim    *)
7661218822Sdim      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7662218822Sdim	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663218822Sdim	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664218822Sdim      else
7665218822Sdim	ld_shlibs=no
7666218822Sdim      fi
7667218822Sdim      ;;
7668218822Sdim    esac
7669218822Sdim
7670218822Sdim    if test "$ld_shlibs" = no; then
7671218822Sdim      runpath_var=
7672218822Sdim      hardcode_libdir_flag_spec=
7673218822Sdim      export_dynamic_flag_spec=
7674218822Sdim      whole_archive_flag_spec=
7675218822Sdim    fi
7676218822Sdim  else
7677218822Sdim    # PORTME fill in a description of your system's linker (not GNU ld)
7678218822Sdim    case $host_os in
7679218822Sdim    aix3*)
7680218822Sdim      allow_undefined_flag=unsupported
7681218822Sdim      always_export_symbols=yes
7682218822Sdim      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'
7683218822Sdim      # Note: this linker hardcodes the directories in LIBPATH if there
7684218822Sdim      # are no directories specified by -L.
7685218822Sdim      hardcode_minus_L=yes
7686218822Sdim      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7687218822Sdim	# Neither direct hardcoding nor static linking is supported with a
7688218822Sdim	# broken collect2.
7689218822Sdim	hardcode_direct=unsupported
7690218822Sdim      fi
7691218822Sdim      ;;
7692218822Sdim
7693218822Sdim    aix4* | aix5*)
7694218822Sdim      if test "$host_cpu" = ia64; then
7695218822Sdim	# On IA64, the linker does run time linking by default, so we don't
7696218822Sdim	# have to do anything special.
7697218822Sdim	aix_use_runtimelinking=no
7698218822Sdim	exp_sym_flag='-Bexport'
7699218822Sdim	no_entry_flag=""
7700218822Sdim      else
7701218822Sdim	# If we're using GNU nm, then we don't want the "-C" option.
7702218822Sdim	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7703218822Sdim	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7704218822Sdim	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7705218822Sdim	else
7706218822Sdim	  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'
7707218822Sdim	fi
7708218822Sdim	aix_use_runtimelinking=no
7709218822Sdim
7710218822Sdim	# Test if we are trying to use run time linking or normal
7711218822Sdim	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7712218822Sdim	# need to do runtime linking.
7713218822Sdim	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7714218822Sdim	  for ld_flag in $LDFLAGS; do
7715218822Sdim	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7716218822Sdim	    aix_use_runtimelinking=yes
7717218822Sdim	    break
7718218822Sdim	  fi
7719218822Sdim	  done
7720218822Sdim	  ;;
7721218822Sdim	esac
7722218822Sdim
7723218822Sdim	exp_sym_flag='-bexport'
7724218822Sdim	no_entry_flag='-bnoentry'
7725218822Sdim      fi
7726218822Sdim
7727218822Sdim      # When large executables or shared objects are built, AIX ld can
7728218822Sdim      # have problems creating the table of contents.  If linking a library
7729218822Sdim      # or program results in "error TOC overflow" add -mminimal-toc to
7730218822Sdim      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7731218822Sdim      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7732218822Sdim
7733218822Sdim      archive_cmds=''
7734218822Sdim      hardcode_direct=yes
7735218822Sdim      hardcode_direct_absolute=yes
7736218822Sdim      hardcode_libdir_separator=':'
7737218822Sdim      link_all_deplibs=yes
7738218822Sdim      file_list_spec='${wl}-f,'
7739218822Sdim
7740218822Sdim      if test "$GCC" = yes; then
7741218822Sdim	case $host_os in aix4.[012]|aix4.[012].*)
7742218822Sdim	# We only want to do this on AIX 4.2 and lower, the check
7743218822Sdim	# below for broken collect2 doesn't work under 4.3+
7744218822Sdim	  collect2name=`${CC} -print-prog-name=collect2`
7745218822Sdim	  if test -f "$collect2name" &&
7746218822Sdim	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7747218822Sdim	  then
7748218822Sdim	  # We have reworked collect2
7749218822Sdim	  :
7750218822Sdim	  else
7751218822Sdim	  # We have old collect2
7752218822Sdim	  hardcode_direct=unsupported
7753218822Sdim	  # It fails to find uninstalled libraries when the uninstalled
7754218822Sdim	  # path is not listed in the libpath.  Setting hardcode_minus_L
7755218822Sdim	  # to unsupported forces relinking
7756218822Sdim	  hardcode_minus_L=yes
7757218822Sdim	  hardcode_libdir_flag_spec='-L$libdir'
7758218822Sdim	  hardcode_libdir_separator=
7759218822Sdim	  fi
7760218822Sdim	  ;;
7761218822Sdim	esac
7762218822Sdim	shared_flag='-shared'
7763218822Sdim	if test "$aix_use_runtimelinking" = yes; then
7764218822Sdim	  shared_flag="$shared_flag "'${wl}-G'
7765218822Sdim	fi
7766218822Sdim      else
7767218822Sdim	# not using gcc
7768218822Sdim	if test "$host_cpu" = ia64; then
7769218822Sdim	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7770218822Sdim	# chokes on -Wl,-G. The following line is correct:
7771218822Sdim	  shared_flag='-G'
7772218822Sdim	else
7773218822Sdim	  if test "$aix_use_runtimelinking" = yes; then
7774218822Sdim	    shared_flag='${wl}-G'
7775218822Sdim	  else
7776218822Sdim	    shared_flag='${wl}-bM:SRE'
7777218822Sdim	  fi
7778218822Sdim	fi
7779218822Sdim      fi
7780218822Sdim
7781218822Sdim      # It seems that -bexpall does not export symbols beginning with
7782218822Sdim      # underscore (_), so it is better to generate a list of symbols to export.
7783218822Sdim      always_export_symbols=yes
7784218822Sdim      if test "$aix_use_runtimelinking" = yes; then
7785218822Sdim	# Warning - without using the other runtime loading flags (-brtl),
7786218822Sdim	# -berok will link without error, but may produce a broken library.
7787218822Sdim	allow_undefined_flag='-berok'
7788218822Sdim        # Determine the default libpath from the value encoded in an
7789218822Sdim        # empty executable.
7790218822Sdim        cat >conftest.$ac_ext <<_ACEOF
7791218822Sdim/* confdefs.h.  */
7792218822Sdim_ACEOF
7793218822Sdimcat confdefs.h >>conftest.$ac_ext
7794218822Sdimcat >>conftest.$ac_ext <<_ACEOF
7795218822Sdim/* end confdefs.h.  */
7796218822Sdim
7797218822Sdimint
7798218822Sdimmain ()
7799218822Sdim{
7800218822Sdim
7801218822Sdim  ;
7802218822Sdim  return 0;
7803218822Sdim}
7804218822Sdim_ACEOF
7805218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
7806218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7807218822Sdim  (eval $ac_link) 2>conftest.er1
7808218822Sdim  ac_status=$?
7809218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
7810218822Sdim  rm -f conftest.er1
7811218822Sdim  cat conftest.err >&5
7812218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813218822Sdim  (exit $ac_status); } &&
7814218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
7815218822Sdim			 || test ! -s conftest.err'
7816218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817218822Sdim  (eval $ac_try) 2>&5
7818218822Sdim  ac_status=$?
7819218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820218822Sdim  (exit $ac_status); }; } &&
7821218822Sdim	 { ac_try='test -s conftest$ac_exeext'
7822218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823218822Sdim  (eval $ac_try) 2>&5
7824218822Sdim  ac_status=$?
7825218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826218822Sdim  (exit $ac_status); }; }; then
7827218822Sdim
7828218822Sdimlt_aix_libpath_sed='
7829218822Sdim    /Import File Strings/,/^$/ {
7830218822Sdim	/^0/ {
7831218822Sdim	    s/^0  *\(.*\)$/\1/
7832218822Sdim	    p
7833218822Sdim	}
7834218822Sdim    }'
7835218822Sdimaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7836218822Sdim# Check for a 64-bit object if we didn't find anything.
7837218822Sdimif test -z "$aix_libpath"; then
7838218822Sdim  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
783977298Sobrienfi
784077298Sobrienelse
7841218822Sdim  echo "$as_me: failed program was:" >&5
7842218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
7843218822Sdim
784477298Sobrienfi
7845218822Sdimrm -f conftest.err conftest.$ac_objext \
7846218822Sdim      conftest$ac_exeext conftest.$ac_ext
7847218822Sdimif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
784877298Sobrien
7849218822Sdim        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7850218822Sdim        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7851218822Sdim      else
7852218822Sdim	if test "$host_cpu" = ia64; then
7853218822Sdim	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7854218822Sdim	  allow_undefined_flag="-z nodefs"
7855218822Sdim	  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"
7856218822Sdim	else
7857218822Sdim	 # Determine the default libpath from the value encoded in an
7858218822Sdim	 # empty executable.
7859218822Sdim	 cat >conftest.$ac_ext <<_ACEOF
7860218822Sdim/* confdefs.h.  */
7861218822Sdim_ACEOF
7862218822Sdimcat confdefs.h >>conftest.$ac_ext
7863218822Sdimcat >>conftest.$ac_ext <<_ACEOF
7864218822Sdim/* end confdefs.h.  */
7865218822Sdim
7866218822Sdimint
7867218822Sdimmain ()
7868218822Sdim{
7869218822Sdim
7870218822Sdim  ;
7871218822Sdim  return 0;
7872218822Sdim}
7873218822Sdim_ACEOF
7874218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
7875218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876218822Sdim  (eval $ac_link) 2>conftest.er1
7877218822Sdim  ac_status=$?
7878218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
7879218822Sdim  rm -f conftest.er1
7880218822Sdim  cat conftest.err >&5
7881218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882218822Sdim  (exit $ac_status); } &&
7883218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
7884218822Sdim			 || test ! -s conftest.err'
7885218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886218822Sdim  (eval $ac_try) 2>&5
7887218822Sdim  ac_status=$?
7888218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889218822Sdim  (exit $ac_status); }; } &&
7890218822Sdim	 { ac_try='test -s conftest$ac_exeext'
7891218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892218822Sdim  (eval $ac_try) 2>&5
7893218822Sdim  ac_status=$?
7894218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895218822Sdim  (exit $ac_status); }; }; then
7896218822Sdim
7897218822Sdimlt_aix_libpath_sed='
7898218822Sdim    /Import File Strings/,/^$/ {
7899218822Sdim	/^0/ {
7900218822Sdim	    s/^0  *\(.*\)$/\1/
7901218822Sdim	    p
7902218822Sdim	}
7903218822Sdim    }'
7904218822Sdimaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7905218822Sdim# Check for a 64-bit object if we didn't find anything.
7906218822Sdimif test -z "$aix_libpath"; then
7907218822Sdim  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7908218822Sdimfi
790977298Sobrienelse
7910218822Sdim  echo "$as_me: failed program was:" >&5
7911218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
7912218822Sdim
791377298Sobrienfi
7914218822Sdimrm -f conftest.err conftest.$ac_objext \
7915218822Sdim      conftest$ac_exeext conftest.$ac_ext
7916218822Sdimif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
791777298Sobrien
7918218822Sdim	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7919218822Sdim	  # Warning - without using the other run time loading flags,
7920218822Sdim	  # -berok will link without error, but may produce a broken library.
7921218822Sdim	  no_undefined_flag=' ${wl}-bernotok'
7922218822Sdim	  allow_undefined_flag=' ${wl}-berok'
7923218822Sdim	  # Exported symbols can be pulled into shared objects from archives
7924218822Sdim	  whole_archive_flag_spec='$convenience'
7925218822Sdim	  archive_cmds_need_lc=yes
7926218822Sdim	  # This is similar to how AIX traditionally builds its shared libraries.
7927218822Sdim	  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'
7928218822Sdim	fi
7929218822Sdim      fi
7930218822Sdim      ;;
793177298Sobrien
7932218822Sdim    amigaos*)
7933218822Sdim      if test "$host_cpu" = m68k; then
7934218822Sdim        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)'
7935218822Sdim        hardcode_libdir_flag_spec='-L$libdir'
7936218822Sdim        hardcode_minus_L=yes
7937218822Sdim      fi
7938218822Sdim      # see comment about different semantics on the GNU ld section
7939218822Sdim      ld_shlibs=no
7940218822Sdim      ;;
794138889Sjdp
7942218822Sdim    bsdi[45]*)
7943218822Sdim      export_dynamic_flag_spec=-rdynamic
7944218822Sdim      ;;
794560484Sobrien
7946218822Sdim    cygwin* | mingw* | pw32*)
7947218822Sdim      # When not using gcc, we currently assume that we are using
7948218822Sdim      # Microsoft Visual C++.
7949218822Sdim      # hardcode_libdir_flag_spec is actually meaningless, as there is
7950218822Sdim      # no search path for DLLs.
7951218822Sdim      hardcode_libdir_flag_spec=' '
7952218822Sdim      allow_undefined_flag=unsupported
7953218822Sdim      # Tell ltmain to make .lib files, not .a files.
7954218822Sdim      libext=lib
7955218822Sdim      # Tell ltmain to make .dll files, not .so files.
7956218822Sdim      shrext_cmds=".dll"
7957218822Sdim      # FIXME: Setting linknames here is a bad hack.
7958218822Sdim      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7959218822Sdim      # The linker will automatically build a .lib file if we build a DLL.
7960218822Sdim      old_archive_from_new_cmds='true'
7961218822Sdim      # FIXME: Should let the user specify the lib program.
7962218822Sdim      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7963218822Sdim      fix_srcfile_path='`cygpath -w "$srcfile"`'
7964218822Sdim      enable_shared_with_static_runtimes=yes
7965218822Sdim      ;;
7966218822Sdim
7967218822Sdim    darwin* | rhapsody*)
7968218822Sdim      case $host_os in
7969218822Sdim      rhapsody* | darwin1.[012])
7970218822Sdim	allow_undefined_flag='${wl}-undefined ${wl}suppress'
7971218822Sdim	;;
7972218822Sdim      *) # Darwin 1.3 on
7973218822Sdim	case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7974218822Sdim	10.[012])
7975218822Sdim	  allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7976218822Sdim	  ;;
7977218822Sdim	10.*)
7978218822Sdim	  allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7979218822Sdim	  ;;
7980218822Sdim	esac
7981218822Sdim	;;
7982218822Sdim      esac
7983218822Sdim      archive_cmds_need_lc=no
7984218822Sdim      hardcode_direct=no
7985218822Sdim      hardcode_automatic=yes
7986218822Sdim      hardcode_shlibpath_var=unsupported
7987218822Sdim      whole_archive_flag_spec=''
7988218822Sdim      link_all_deplibs=yes
7989218822Sdim      if test "$GCC" = yes ; then
7990218822Sdim	if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7991218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7992218822Sdimelse
7993218822Sdim  lt_cv_apple_cc_single_mod=no
7994218822Sdim	if test -z "${LT_MULTI_MODULE}"; then
7995218822Sdim	  # By default we will add the -single_module flag. You can override
7996218822Sdim	  # by either setting the environment variable LT_MULTI_MODULE
7997218822Sdim	  # non-empty at configure time, or by adding -multi-module to the
7998218822Sdim	  # link flags.
7999218822Sdim	  echo "int foo(void){return 1;}" > conftest.c
8000218822Sdim	  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8001218822Sdim	      -dynamiclib ${wl}-single_module conftest.c
8002218822Sdim	  if test -f libconftest.dylib; then
8003218822Sdim	      lt_cv_apple_cc_single_mod=yes
8004218822Sdim	      rm libconftest.dylib
8005218822Sdim	  fi
8006218822Sdim	  rm conftest.$ac_ext
8007218822Sdim	fi
800860484Sobrienfi
800960484Sobrien
8010218822Sdim	output_verbose_link_cmd=echo
8011218822Sdim	if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8012218822Sdim	  archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8013218822Sdim	  archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8014218822Sdim	else
8015218822Sdim	  archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8016218822Sdim	  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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8017218822Sdim	fi
8018218822Sdim	module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8019218822Sdim	module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8020218822Sdim      else
8021218822Sdim	case $cc_basename in
8022218822Sdim	xlc*)
8023218822Sdim	  output_verbose_link_cmd=echo
8024218822Sdim	  archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8025218822Sdim	  module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8026218822Sdim	  # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8027218822Sdim	  archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8028218822Sdim	  module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8029218822Sdim	  ;;
8030218822Sdim	*)
8031218822Sdim	  ld_shlibs=no
8032218822Sdim	  ;;
8033218822Sdim	esac
8034218822Sdim      fi
8035218822Sdim      ;;
803660484Sobrien
8037218822Sdim    dgux*)
8038218822Sdim      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8039218822Sdim      hardcode_libdir_flag_spec='-L$libdir'
8040218822Sdim      hardcode_shlibpath_var=no
8041218822Sdim      ;;
8042218822Sdim
8043218822Sdim    freebsd1*)
8044218822Sdim      ld_shlibs=no
8045218822Sdim      ;;
8046218822Sdim
8047218822Sdim    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8048218822Sdim    # support.  Future versions do this automatically, but an explicit c++rt0.o
8049218822Sdim    # does not break anything, and helps significantly (at the cost of a little
8050218822Sdim    # extra space).
8051218822Sdim    freebsd2.2*)
8052218822Sdim      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8053218822Sdim      hardcode_libdir_flag_spec='-R$libdir'
8054218822Sdim      hardcode_direct=yes
8055218822Sdim      hardcode_shlibpath_var=no
8056218822Sdim      ;;
8057218822Sdim
8058218822Sdim    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8059218822Sdim    freebsd2*)
8060218822Sdim      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8061218822Sdim      hardcode_direct=yes
8062218822Sdim      hardcode_minus_L=yes
8063218822Sdim      hardcode_shlibpath_var=no
8064218822Sdim      ;;
8065218822Sdim
8066218822Sdim    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8067218822Sdim    freebsd* | dragonfly*)
8068218822Sdim      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8069218822Sdim      hardcode_libdir_flag_spec='-R$libdir'
8070218822Sdim      hardcode_direct=yes
8071218822Sdim      hardcode_shlibpath_var=no
8072218822Sdim      ;;
8073218822Sdim
8074218822Sdim    hpux9*)
8075218822Sdim      if test "$GCC" = yes; then
8076218822Sdim	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8077218822Sdim      else
8078218822Sdim	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'
8079218822Sdim      fi
8080218822Sdim      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8081218822Sdim      hardcode_libdir_separator=:
8082218822Sdim      hardcode_direct=yes
8083218822Sdim
8084218822Sdim      # hardcode_minus_L: Not really in the search PATH,
8085218822Sdim      # but as the default location of the library.
8086218822Sdim      hardcode_minus_L=yes
8087218822Sdim      export_dynamic_flag_spec='${wl}-E'
8088218822Sdim      ;;
8089218822Sdim
8090218822Sdim    hpux10*)
8091218822Sdim      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8092218822Sdim	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8093218822Sdim      else
8094218822Sdim	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8095218822Sdim      fi
8096218822Sdim      if test "$with_gnu_ld" = no; then
8097218822Sdim	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8098218822Sdim	hardcode_libdir_flag_spec_ld='+b $libdir'
8099218822Sdim	hardcode_libdir_separator=:
8100218822Sdim	hardcode_direct=yes
8101218822Sdim	hardcode_direct_absolute=yes
8102218822Sdim	export_dynamic_flag_spec='${wl}-E'
8103218822Sdim	# hardcode_minus_L: Not really in the search PATH,
8104218822Sdim	# but as the default location of the library.
8105218822Sdim	hardcode_minus_L=yes
8106218822Sdim      fi
8107218822Sdim      ;;
8108218822Sdim
8109218822Sdim    hpux11*)
8110218822Sdim      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8111218822Sdim	case $host_cpu in
8112218822Sdim	hppa*64*)
8113218822Sdim	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8114218822Sdim	  ;;
8115218822Sdim	ia64*)
8116218822Sdim	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8117218822Sdim	  ;;
8118218822Sdim	*)
8119218822Sdim	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8120218822Sdim	  ;;
8121218822Sdim	esac
8122218822Sdim      else
8123218822Sdim	case $host_cpu in
8124218822Sdim	hppa*64*)
8125218822Sdim	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8126218822Sdim	  ;;
8127218822Sdim	ia64*)
8128218822Sdim	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8129218822Sdim	  ;;
8130218822Sdim	*)
8131218822Sdim	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8132218822Sdim	  ;;
8133218822Sdim	esac
8134218822Sdim      fi
8135218822Sdim      if test "$with_gnu_ld" = no; then
8136218822Sdim	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8137218822Sdim	hardcode_libdir_separator=:
8138218822Sdim
8139218822Sdim	case $host_cpu in
8140218822Sdim	hppa*64*|ia64*)
8141218822Sdim	  hardcode_direct=no
8142218822Sdim	  hardcode_shlibpath_var=no
8143218822Sdim	  ;;
8144218822Sdim	*)
8145218822Sdim	  hardcode_direct=yes
8146218822Sdim	  hardcode_direct_absolute=yes
8147218822Sdim	  export_dynamic_flag_spec='${wl}-E'
8148218822Sdim
8149218822Sdim	  # hardcode_minus_L: Not really in the search PATH,
8150218822Sdim	  # but as the default location of the library.
8151218822Sdim	  hardcode_minus_L=yes
8152218822Sdim	  ;;
8153218822Sdim	esac
8154218822Sdim      fi
8155218822Sdim      ;;
8156218822Sdim
8157218822Sdim    irix5* | irix6* | nonstopux*)
8158218822Sdim      if test "$GCC" = yes; then
8159218822Sdim	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8160218822Sdim	# Try to use the -exported_symbol ld option, if it does not
8161218822Sdim	# work, assume that -exports_file does not work either and
8162218822Sdim	# implicitly export all symbols.
8163218822Sdim        save_LDFLAGS="$LDFLAGS"
8164218822Sdim        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8165218822Sdim        cat >conftest.$ac_ext <<_ACEOF
8166218822Sdimint foo(void) {}
8167218822Sdim_ACEOF
8168218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
8169218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170218822Sdim  (eval $ac_link) 2>conftest.er1
8171218822Sdim  ac_status=$?
8172218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
8173218822Sdim  rm -f conftest.er1
8174218822Sdim  cat conftest.err >&5
8175218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176218822Sdim  (exit $ac_status); } &&
8177218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
8178218822Sdim			 || test ! -s conftest.err'
8179218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180218822Sdim  (eval $ac_try) 2>&5
8181218822Sdim  ac_status=$?
8182218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183218822Sdim  (exit $ac_status); }; } &&
8184218822Sdim	 { ac_try='test -s conftest$ac_exeext'
8185218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186218822Sdim  (eval $ac_try) 2>&5
8187218822Sdim  ac_status=$?
8188218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189218822Sdim  (exit $ac_status); }; }; then
8190218822Sdim  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8191218822Sdim
819277298Sobrienelse
8193218822Sdim  echo "$as_me: failed program was:" >&5
8194218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
8195218822Sdim
819677298Sobrienfi
8197218822Sdimrm -f conftest.err conftest.$ac_objext \
8198218822Sdim      conftest$ac_exeext conftest.$ac_ext
8199218822Sdim        LDFLAGS="$save_LDFLAGS"
8200218822Sdim      else
8201218822Sdim	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8202218822Sdim	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8203218822Sdim      fi
8204218822Sdim      archive_cmds_need_lc='no'
8205218822Sdim      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8206218822Sdim      hardcode_libdir_separator=:
8207218822Sdim      inherit_rpath=yes
8208218822Sdim      link_all_deplibs=yes
8209218822Sdim      ;;
821077298Sobrien
8211218822Sdim    netbsd*)
8212218822Sdim      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8213218822Sdim	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8214218822Sdim      else
8215218822Sdim	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8216218822Sdim      fi
8217218822Sdim      hardcode_libdir_flag_spec='-R$libdir'
8218218822Sdim      hardcode_direct=yes
8219218822Sdim      hardcode_shlibpath_var=no
8220218822Sdim      ;;
822177298Sobrien
8222218822Sdim    newsos6)
8223218822Sdim      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8224218822Sdim      hardcode_direct=yes
8225218822Sdim      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8226218822Sdim      hardcode_libdir_separator=:
8227218822Sdim      hardcode_shlibpath_var=no
8228130561Sobrien      ;;
8229218822Sdim
8230218822Sdim    *nto* | *qnx*)
8231130561Sobrien      ;;
8232218822Sdim
8233218822Sdim    openbsd*)
8234218822Sdim      hardcode_direct=yes
8235218822Sdim      hardcode_shlibpath_var=no
8236218822Sdim      hardcode_direct_absolute=yes
8237218822Sdim      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8238218822Sdim	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8239218822Sdim	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8240218822Sdim	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8241218822Sdim	export_dynamic_flag_spec='${wl}-E'
8242218822Sdim      else
8243218822Sdim        case $host_os in
8244218822Sdim	openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8245218822Sdim	  archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8246218822Sdim	  hardcode_libdir_flag_spec='-R$libdir'
8247218822Sdim	  ;;
8248218822Sdim	*)
8249218822Sdim	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8250218822Sdim	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8251218822Sdim	  ;;
8252218822Sdim        esac
8253218822Sdim      fi
8254130561Sobrien      ;;
8255218822Sdim
8256218822Sdim    os2*)
8257218822Sdim      hardcode_libdir_flag_spec='-L$libdir'
8258218822Sdim      hardcode_minus_L=yes
8259218822Sdim      allow_undefined_flag=unsupported
8260218822Sdim      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'
8261218822Sdim      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8262218822Sdim      ;;
8263218822Sdim
8264218822Sdim    osf3*)
8265218822Sdim      if test "$GCC" = yes; then
8266218822Sdim	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8267218822Sdim	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8268218822Sdim      else
8269218822Sdim	allow_undefined_flag=' -expect_unresolved \*'
8270218822Sdim	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8271218822Sdim      fi
8272218822Sdim      archive_cmds_need_lc='no'
8273218822Sdim      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8274218822Sdim      hardcode_libdir_separator=:
8275218822Sdim      ;;
8276218822Sdim
8277218822Sdim    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8278218822Sdim      if test "$GCC" = yes; then
8279218822Sdim	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8280218822Sdim	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8281218822Sdim	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8282218822Sdim      else
8283218822Sdim	allow_undefined_flag=' -expect_unresolved \*'
8284218822Sdim	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8285218822Sdim	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~
8286218822Sdim	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8287218822Sdim
8288218822Sdim	# Both c and cxx compiler support -rpath directly
8289218822Sdim	hardcode_libdir_flag_spec='-rpath $libdir'
8290218822Sdim      fi
8291218822Sdim      archive_cmds_need_lc='no'
8292218822Sdim      hardcode_libdir_separator=:
8293218822Sdim      ;;
8294218822Sdim
8295218822Sdim    solaris*)
8296218822Sdim      no_undefined_flag=' -z defs'
8297218822Sdim      if test "$GCC" = yes; then
8298218822Sdim	wlarc='${wl}'
8299218822Sdim	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8300218822Sdim	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8301218822Sdim	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8302218822Sdim      else
8303218822Sdim	case `$CC -V 2>&1` in
8304218822Sdim	*"Compilers 5.0"*)
8305218822Sdim	  wlarc=''
8306218822Sdim	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8307218822Sdim	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8308218822Sdim	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8309218822Sdim	  ;;
8310218822Sdim	*)
8311218822Sdim	  wlarc='${wl}'
8312218822Sdim	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8313218822Sdim	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8314218822Sdim	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8315218822Sdim	  ;;
8316218822Sdim	esac
8317218822Sdim      fi
8318218822Sdim      hardcode_libdir_flag_spec='-R$libdir'
8319218822Sdim      hardcode_shlibpath_var=no
8320218822Sdim      case $host_os in
8321218822Sdim      solaris2.[0-5] | solaris2.[0-5].*) ;;
8322218822Sdim      *)
8323218822Sdim	# The compiler driver will combine and reorder linker options,
8324218822Sdim	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8325218822Sdim	# but is careful enough not to reorder.
8326218822Sdim	# Supported since Solaris 2.6 (maybe 2.5.1?)
8327218822Sdim	if test "$GCC" = yes; then
8328218822Sdim	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8329218822Sdim	else
8330218822Sdim	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8331218822Sdim	fi
8332218822Sdim	;;
8333218822Sdim      esac
8334218822Sdim      link_all_deplibs=yes
8335218822Sdim      ;;
8336218822Sdim
8337218822Sdim    sunos4*)
8338218822Sdim      if test "x$host_vendor" = xsequent; then
8339218822Sdim	# Use $CC to link under sequent, because it throws in some extra .o
8340218822Sdim	# files that make .init and .fini sections work.
8341218822Sdim	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8342218822Sdim      else
8343218822Sdim	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8344218822Sdim      fi
8345218822Sdim      hardcode_libdir_flag_spec='-L$libdir'
8346218822Sdim      hardcode_direct=yes
8347218822Sdim      hardcode_minus_L=yes
8348218822Sdim      hardcode_shlibpath_var=no
8349218822Sdim      ;;
8350218822Sdim
8351218822Sdim    sysv4)
8352218822Sdim      case $host_vendor in
8353218822Sdim	sni)
8354218822Sdim	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8355218822Sdim	  hardcode_direct=yes # is this really true???
8356218822Sdim	;;
8357218822Sdim	siemens)
8358218822Sdim	  ## LD is ld it makes a PLAMLIB
8359218822Sdim	  ## CC just makes a GrossModule.
8360218822Sdim	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8361218822Sdim	  reload_cmds='$CC -r -o $output$reload_objs'
8362218822Sdim	  hardcode_direct=no
8363218822Sdim        ;;
8364218822Sdim	motorola)
8365218822Sdim	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8366218822Sdim	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8367218822Sdim	;;
8368218822Sdim      esac
8369218822Sdim      runpath_var='LD_RUN_PATH'
8370218822Sdim      hardcode_shlibpath_var=no
8371218822Sdim      ;;
8372218822Sdim
8373218822Sdim    sysv4.3*)
8374218822Sdim      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375218822Sdim      hardcode_shlibpath_var=no
8376218822Sdim      export_dynamic_flag_spec='-Bexport'
8377218822Sdim      ;;
8378218822Sdim
8379218822Sdim    sysv4*MP*)
8380218822Sdim      if test -d /usr/nec; then
8381218822Sdim	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382218822Sdim	hardcode_shlibpath_var=no
8383218822Sdim	runpath_var=LD_RUN_PATH
8384218822Sdim	hardcode_runpath_var=yes
8385218822Sdim	ld_shlibs=yes
8386218822Sdim      fi
8387218822Sdim      ;;
8388218822Sdim
8389218822Sdim    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8390218822Sdim      no_undefined_flag='${wl}-z,text'
8391218822Sdim      archive_cmds_need_lc=no
8392218822Sdim      hardcode_shlibpath_var=no
8393218822Sdim      runpath_var='LD_RUN_PATH'
8394218822Sdim
8395218822Sdim      if test "$GCC" = yes; then
8396218822Sdim	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8397218822Sdim	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398218822Sdim      else
8399218822Sdim	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8400218822Sdim	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401218822Sdim      fi
8402218822Sdim      ;;
8403218822Sdim
8404218822Sdim    sysv5* | sco3.2v5* | sco5v6*)
8405218822Sdim      # Note: We can NOT use -z defs as we might desire, because we do not
8406218822Sdim      # link with -lc, and that would cause any symbols used from libc to
8407218822Sdim      # always be unresolved, which means just about no library would
8408218822Sdim      # ever link correctly.  If we're not using GNU ld we use -z text
8409218822Sdim      # though, which does catch some bad symbols but isn't as heavy-handed
8410218822Sdim      # as -z defs.
8411218822Sdim      no_undefined_flag='${wl}-z,text'
8412218822Sdim      allow_undefined_flag='${wl}-z,nodefs'
8413218822Sdim      archive_cmds_need_lc=no
8414218822Sdim      hardcode_shlibpath_var=no
8415218822Sdim      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8416218822Sdim      hardcode_libdir_separator=':'
8417218822Sdim      link_all_deplibs=yes
8418218822Sdim      export_dynamic_flag_spec='${wl}-Bexport'
8419218822Sdim      runpath_var='LD_RUN_PATH'
8420218822Sdim
8421218822Sdim      if test "$GCC" = yes; then
8422218822Sdim	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423218822Sdim	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424218822Sdim      else
8425218822Sdim	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426218822Sdim	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427218822Sdim      fi
8428218822Sdim      ;;
8429218822Sdim
8430218822Sdim    uts4*)
8431218822Sdim      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8432218822Sdim      hardcode_libdir_flag_spec='-L$libdir'
8433218822Sdim      hardcode_shlibpath_var=no
8434218822Sdim      ;;
8435218822Sdim
8436218822Sdim    *)
8437218822Sdim      ld_shlibs=no
8438218822Sdim      ;;
8439130561Sobrien    esac
8440218822Sdim
8441218822Sdim    if test x$host_vendor = xsni; then
8442218822Sdim      case $host in
8443218822Sdim      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8444218822Sdim	export_dynamic_flag_spec='${wl}-Blargedynsym'
8445218822Sdim	;;
8446218822Sdim      esac
8447218822Sdim    fi
8448218822Sdim  fi
8449218822Sdim
8450218822Sdimecho "$as_me:$LINENO: result: $ld_shlibs" >&5
8451218822Sdimecho "${ECHO_T}$ld_shlibs" >&6
8452218822Sdimtest "$ld_shlibs" = no && can_build_shared=no
8453218822Sdim
8454218822Sdimwith_gnu_ld=$with_gnu_ld
8455218822Sdim
8456218822Sdim
8457218822Sdim
8458218822Sdim
8459218822Sdim
8460218822Sdim
8461218822Sdim
8462218822Sdim
8463218822Sdim
8464218822Sdim
8465218822Sdim
8466218822Sdim
8467218822Sdim
8468218822Sdim
8469218822Sdim
8470218822Sdim#
8471218822Sdim# Do we need to explicitly link libc?
8472218822Sdim#
8473218822Sdimcase "x$archive_cmds_need_lc" in
8474218822Sdimx|xyes)
8475218822Sdim  # Assume -lc should be added
8476218822Sdim  archive_cmds_need_lc=yes
8477218822Sdim
8478218822Sdim  if test "$enable_shared" = yes && test "$GCC" = yes; then
8479218822Sdim    case $archive_cmds in
8480218822Sdim    *'~'*)
8481218822Sdim      # FIXME: we may have to deal with multi-command sequences.
848233965Sjdp      ;;
8483218822Sdim    '$CC '*)
8484218822Sdim      # Test whether the compiler implicitly links with -lc since on some
8485218822Sdim      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8486218822Sdim      # to ld, don't add -lc before -lgcc.
8487218822Sdim      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8488218822Sdimecho $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8489218822Sdim      $RM conftest*
8490218822Sdim      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491218822Sdim
8492218822Sdim      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493218822Sdim  (eval $ac_compile) 2>&5
8494218822Sdim  ac_status=$?
8495218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496218822Sdim  (exit $ac_status); } 2>conftest.err; then
8497218822Sdim        soname=conftest
8498218822Sdim        lib=conftest
8499218822Sdim        libobjs=conftest.$ac_objext
8500218822Sdim        deplibs=
8501218822Sdim        wl=$lt_prog_compiler_wl
8502218822Sdim	pic_flag=$lt_prog_compiler_pic
8503218822Sdim        compiler_flags=-v
8504218822Sdim        linker_flags=-v
8505218822Sdim        verstring=
8506218822Sdim        output_objdir=.
8507218822Sdim        libname=conftest
8508218822Sdim        lt_save_allow_undefined_flag=$allow_undefined_flag
8509218822Sdim        allow_undefined_flag=
8510218822Sdim        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8511218822Sdim  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8512218822Sdim  ac_status=$?
8513218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514218822Sdim  (exit $ac_status); }
8515218822Sdim        then
8516218822Sdim	  archive_cmds_need_lc=no
8517218822Sdim        else
8518218822Sdim	  archive_cmds_need_lc=yes
8519218822Sdim        fi
8520218822Sdim        allow_undefined_flag=$lt_save_allow_undefined_flag
8521218822Sdim      else
8522218822Sdim        cat conftest.err 1>&5
8523218822Sdim      fi
8524218822Sdim      $RM conftest*
8525218822Sdim      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8526218822Sdimecho "${ECHO_T}$archive_cmds_need_lc" >&6
852738889Sjdp      ;;
8528218822Sdim    esac
8529218822Sdim  fi
8530218822Sdim  ;;
8531218822Sdimesac
8532218822Sdim
8533218822Sdim
8534218822Sdim
8535218822Sdim
8536218822Sdim
8537218822Sdim
8538218822Sdim
8539218822Sdim
8540218822Sdim
8541218822Sdim
8542218822Sdim
8543218822Sdim
8544218822Sdim
8545218822Sdim
8546218822Sdim
8547218822Sdim
8548218822Sdim
8549218822Sdim
8550218822Sdim
8551218822Sdim
8552218822Sdim
8553218822Sdim
8554218822Sdim
8555218822Sdim
8556218822Sdim
8557218822Sdim
8558218822Sdim
8559218822Sdim
8560218822Sdim
8561218822Sdim
8562218822Sdim
8563218822Sdim
8564218822Sdim
8565218822Sdim
8566218822Sdim
8567218822Sdim
8568218822Sdim
8569218822Sdim
8570218822Sdim
8571218822Sdim
8572218822Sdim
8573218822Sdim
8574218822Sdim
8575218822Sdim
8576218822Sdim
8577218822Sdim
8578218822Sdim
8579218822Sdim
8580218822Sdim
8581218822Sdim
8582218822Sdim
8583218822Sdim
8584218822Sdim
8585218822Sdim
8586218822Sdim
8587218822Sdim
8588218822Sdim
8589218822Sdim
8590218822Sdim
8591218822Sdim
8592218822Sdim
8593218822Sdim
8594218822Sdim
8595218822Sdim
8596218822Sdim
8597218822Sdim
8598218822Sdim
8599218822Sdim
8600218822Sdim
8601218822Sdim
8602218822Sdim
8603218822Sdim
8604218822Sdim
8605218822Sdim
8606218822Sdim
8607218822Sdim
8608218822Sdim
8609218822Sdim
8610218822Sdim
8611218822Sdim
8612218822Sdim
8613218822Sdim
8614218822Sdim
8615218822Sdim
8616218822Sdim
8617218822Sdim
8618218822Sdim
8619218822Sdim
8620218822Sdim
8621218822Sdim
8622218822Sdim
8623218822Sdim
8624218822Sdim
8625218822Sdim
8626218822Sdim
8627218822Sdim
8628218822Sdim
8629218822Sdim
8630218822Sdim
8631218822Sdim
8632218822Sdim
8633218822Sdim
8634218822Sdim
8635218822Sdim
8636218822Sdim
8637218822Sdim
8638218822Sdim
8639218822Sdim
8640218822Sdim
8641218822Sdim
8642218822Sdim
8643218822Sdim
8644218822Sdim
8645218822Sdim
8646218822Sdim
8647218822Sdim
8648218822Sdim
8649218822Sdim
8650218822Sdim
8651218822Sdim
8652218822Sdim
8653218822Sdim
8654218822Sdim
8655218822Sdim
8656218822Sdim
8657218822Sdim
8658218822Sdim
8659218822Sdim
8660218822Sdim
8661218822Sdim
8662218822Sdim
8663218822Sdim
8664218822Sdim
8665218822Sdim
8666218822Sdim
8667218822Sdim
8668218822Sdim
8669218822Sdim
8670218822Sdim
8671218822Sdim
8672218822Sdim
8673218822Sdim
8674218822Sdim
8675218822Sdim
8676218822Sdim
8677218822Sdim
8678218822Sdim
8679218822Sdim
8680218822Sdim
8681218822Sdim
8682218822Sdim
8683218822Sdim
8684218822Sdim
8685218822Sdim
8686218822Sdim
8687218822Sdim
8688218822Sdim
8689218822Sdim  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8690218822Sdimecho $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8691218822SdimwithGCC=$GCC
8692218822Sdimif test "$withGCC" = yes; then
8693218822Sdim  case $host_os in
8694218822Sdim    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8695218822Sdim    *) lt_awk_arg="/^libraries:/" ;;
8696218822Sdim  esac
8697218822Sdim  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8698218822Sdim  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8699218822Sdim    # if the path contains ";" then we assume it to be the separator
8700218822Sdim    # otherwise default to the standard path separator (i.e. ":") - it is
8701218822Sdim    # assumed that no part of a normal pathname contains ";" but that should
8702218822Sdim    # okay in the real world where ";" in dirpaths is itself problematic.
8703218822Sdim    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8704218822Sdim  else
8705218822Sdim    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8706218822Sdim  fi
8707218822Sdim  # Ok, now we have the path, separated by spaces, we can step through it
8708218822Sdim  # and add multilib dir if necessary.
8709218822Sdim  lt_tmp_lt_search_path_spec=
8710218822Sdim  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8711218822Sdim  for lt_sys_path in $lt_search_path_spec; do
8712218822Sdim    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8713218822Sdim      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8714218822Sdim    else
8715218822Sdim      test -d "$lt_sys_path" && \
8716218822Sdim	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8717218822Sdim    fi
8718218822Sdim  done
8719218822Sdim  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8720218822SdimBEGIN {RS=" "; FS="/|\n";} {
8721218822Sdim  lt_foo="";
8722218822Sdim  lt_count=0;
8723218822Sdim  for (lt_i = NF; lt_i > 0; lt_i--) {
8724218822Sdim    if ($lt_i != "" && $lt_i != ".") {
8725218822Sdim      if ($lt_i == "..") {
8726218822Sdim        lt_count++;
8727218822Sdim      } else {
8728218822Sdim        if (lt_count == 0) {
8729218822Sdim          lt_foo="/" $lt_i lt_foo;
8730218822Sdim        } else {
8731218822Sdim          lt_count--;
8732218822Sdim        }
8733218822Sdim      }
8734218822Sdim    }
8735218822Sdim  }
8736218822Sdim  if (lt_foo != "") { lt_freq[lt_foo]++; }
8737218822Sdim  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8738218822Sdim}'`
8739218822Sdim  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8740218822Sdimelse
8741218822Sdim  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8742218822Sdimfi
8743218822Sdimlibrary_names_spec=
8744218822Sdimlibname_spec='lib$name'
8745218822Sdimsoname_spec=
8746218822Sdimshrext_cmds=".so"
8747218822Sdimpostinstall_cmds=
8748218822Sdimpostuninstall_cmds=
8749218822Sdimfinish_cmds=
8750218822Sdimfinish_eval=
8751218822Sdimshlibpath_var=
8752218822Sdimshlibpath_overrides_runpath=unknown
8753218822Sdimversion_type=none
8754218822Sdimdynamic_linker="$host_os ld.so"
8755218822Sdimsys_lib_dlsearch_path_spec="/lib /usr/lib"
8756218822Sdimneed_lib_prefix=unknown
8757218822Sdimhardcode_into_libs=no
8758218822Sdim
8759218822Sdim# when you set need_version to no, make sure it does not cause -set_version
8760218822Sdim# flags to be left without arguments
8761218822Sdimneed_version=unknown
8762218822Sdim
8763218822Sdimcase $host_os in
8764218822Sdimaix3*)
8765218822Sdim  version_type=linux
8766218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8767218822Sdim  shlibpath_var=LIBPATH
8768218822Sdim
8769218822Sdim  # AIX 3 has no versioning support, so we append a major version to the name.
8770218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8771218822Sdim  ;;
8772218822Sdim
8773218822Sdimaix4* | aix5*)
8774218822Sdim  version_type=linux
8775218822Sdim  need_lib_prefix=no
8776218822Sdim  need_version=no
8777218822Sdim  hardcode_into_libs=yes
8778218822Sdim  if test "$host_cpu" = ia64; then
8779218822Sdim    # AIX 5 supports IA64
8780218822Sdim    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8781218822Sdim    shlibpath_var=LD_LIBRARY_PATH
8782218822Sdim  else
8783218822Sdim    # With GCC up to 2.95.x, collect2 would create an import file
8784218822Sdim    # for dependence libraries.  The import file would start with
8785218822Sdim    # the line `#! .'.  This would cause the generated library to
8786218822Sdim    # depend on `.', always an invalid library.  This was fixed in
8787218822Sdim    # development snapshots of GCC prior to 3.0.
8788218822Sdim    case $host_os in
8789218822Sdim      aix4 | aix4.[01] | aix4.[01].*)
8790218822Sdim      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8791218822Sdim	   echo ' yes '
8792218822Sdim	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8793218822Sdim	:
8794218822Sdim      else
8795218822Sdim	can_build_shared=no
8796218822Sdim      fi
879738889Sjdp      ;;
879833965Sjdp    esac
8799218822Sdim    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8800218822Sdim    # soname into executable. Probably we can add versioning support to
8801218822Sdim    # collect2, so additional links can be useful in future.
8802218822Sdim    if test "$aix_use_runtimelinking" = yes; then
8803218822Sdim      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8804218822Sdim      # instead of lib<name>.a to let people know that these are not
8805218822Sdim      # typical AIX shared libraries.
8806218822Sdim      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807218822Sdim    else
8808218822Sdim      # We preserve .a as extension for shared libraries through AIX4.2
8809218822Sdim      # and later when we are not doing run time linking.
8810218822Sdim      library_names_spec='${libname}${release}.a $libname.a'
8811218822Sdim      soname_spec='${libname}${release}${shared_ext}$major'
8812218822Sdim    fi
8813218822Sdim    shlibpath_var=LIBPATH
881438889Sjdp  fi
881538889Sjdp  ;;
881633965Sjdp
8817218822Sdimamigaos*)
8818218822Sdim  if test "$host_cpu" = m68k; then
8819218822Sdim    library_names_spec='$libname.ixlibrary $libname.a'
8820218822Sdim    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8821218822Sdim    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8822218822Sdim  else
8823218822Sdim    dynamic_linker=no
8824218822Sdim  fi
8825218822Sdim  ;;
8826218822Sdim
8827218822Sdimbeos*)
8828218822Sdim  library_names_spec='${libname}${shared_ext}'
8829218822Sdim  dynamic_linker="$host_os ld.so"
8830218822Sdim  shlibpath_var=LIBRARY_PATH
8831218822Sdim  ;;
8832218822Sdim
8833218822Sdimbsdi[45]*)
8834218822Sdim  version_type=linux
8835218822Sdim  need_version=no
8836218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8838218822Sdim  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8839218822Sdim  shlibpath_var=LD_LIBRARY_PATH
8840218822Sdim  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8841218822Sdim  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8842218822Sdim  # the default ld.so.conf also contains /usr/contrib/lib and
8843218822Sdim  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8844218822Sdim  # libtool to hard-code these into programs
8845218822Sdim  ;;
8846218822Sdim
8847218822Sdimcygwin* | mingw* | pw32*)
8848218822Sdim  version_type=windows
8849218822Sdim  shrext_cmds=".dll"
8850218822Sdim  need_version=no
8851218822Sdim  need_lib_prefix=no
8852218822Sdim
8853218822Sdim  case $withGCC,$host_os in
8854218822Sdim  yes,cygwin* | yes,mingw* | yes,pw32*)
8855218822Sdim    library_names_spec='$libname.dll.a'
8856218822Sdim    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8857218822Sdim    postinstall_cmds='base_file=`basename \${file}`~
8858218822Sdim      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8859218822Sdim      dldir=$destdir/`dirname \$dlpath`~
8860218822Sdim      test -d \$dldir || mkdir -p \$dldir~
8861218822Sdim      $install_prog $dir/$dlname \$dldir/$dlname~
8862218822Sdim      chmod a+x \$dldir/$dlname~
8863218822Sdim      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8864218822Sdim        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8865218822Sdim      fi'
8866218822Sdim    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8867218822Sdim      dlpath=$dir/\$dldll~
8868218822Sdim       $RM \$dlpath'
8869218822Sdim    shlibpath_overrides_runpath=yes
8870218822Sdim
8871218822Sdim    case $host_os in
8872218822Sdim    cygwin*)
8873218822Sdim      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8874218822Sdim      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875218822Sdim      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
887691041Sobrien      ;;
8877218822Sdim    mingw*)
8878218822Sdim      # MinGW DLLs use traditional 'lib' prefix
8879218822Sdim      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880218822Sdim      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881218822Sdim      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8882218822Sdim        # It is most probably a Windows format PATH printed by
8883218822Sdim        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8884218822Sdim        # path with ; separators, and with drive letters. We can handle the
8885218822Sdim        # drive letters (cygwin fileutils understands them), so leave them,
8886218822Sdim        # especially as we might pass files found there to a mingw objdump,
8887218822Sdim        # which wouldn't understand a cygwinified path. Ahh.
8888218822Sdim        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8889218822Sdim      else
8890218822Sdim        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8891218822Sdim      fi
889291041Sobrien      ;;
8893218822Sdim    pw32*)
8894218822Sdim      # pw32 DLLs use 'pw' prefix rather than 'lib'
8895218822Sdim      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8896218822Sdim      ;;
889791041Sobrien    esac
8898218822Sdim    ;;
8899218822Sdim
8900218822Sdim  *)
8901218822Sdim    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8902218822Sdim    ;;
8903218822Sdim  esac
8904218822Sdim  dynamic_linker='Win32 ld.exe'
8905218822Sdim  # FIXME: first we should search . and the directory the executable is in
8906218822Sdim  shlibpath_var=PATH
8907218822Sdim  ;;
8908218822Sdim
8909218822Sdimdarwin* | rhapsody*)
8910218822Sdim  dynamic_linker="$host_os dyld"
8911218822Sdim  version_type=darwin
8912218822Sdim  need_lib_prefix=no
8913218822Sdim  need_version=no
8914218822Sdim  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8915218822Sdim  soname_spec='${libname}${release}${major}$shared_ext'
8916218822Sdim  shlibpath_overrides_runpath=yes
8917218822Sdim  shlibpath_var=DYLD_LIBRARY_PATH
8918218822Sdim  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8919218822Sdim
8920218822Sdim  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8921218822Sdim  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8922218822Sdim  ;;
8923218822Sdim
8924218822Sdimdgux*)
8925218822Sdim  version_type=linux
8926218822Sdim  need_lib_prefix=no
8927218822Sdim  need_version=no
8928218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8929218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8930218822Sdim  shlibpath_var=LD_LIBRARY_PATH
8931218822Sdim  ;;
8932218822Sdim
8933218822Sdimfreebsd1*)
8934218822Sdim  dynamic_linker=no
8935218822Sdim  ;;
8936218822Sdim
8937218822Sdimfreebsd* | dragonfly*)
8938218822Sdim  # DragonFly does not have aout.  When/if they implement a new
8939218822Sdim  # versioning mechanism, adjust this.
8940218822Sdim  if test -x /usr/bin/objformat; then
8941218822Sdim    objformat=`/usr/bin/objformat`
8942218822Sdim  else
8943218822Sdim    case $host_os in
8944218822Sdim    freebsd[123]*) objformat=aout ;;
8945218822Sdim    *) objformat=elf ;;
8946218822Sdim    esac
894791041Sobrien  fi
8948218822Sdim  version_type=freebsd-$objformat
8949218822Sdim  case $version_type in
8950218822Sdim    freebsd-elf*)
8951218822Sdim      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8952218822Sdim      need_version=no
8953218822Sdim      need_lib_prefix=no
8954218822Sdim      ;;
8955218822Sdim    freebsd-*)
8956218822Sdim      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8957218822Sdim      need_version=yes
8958218822Sdim      ;;
8959218822Sdim  esac
8960218822Sdim  shlibpath_var=LD_LIBRARY_PATH
8961218822Sdim  case $host_os in
8962218822Sdim  freebsd2*)
8963218822Sdim    shlibpath_overrides_runpath=yes
8964218822Sdim    ;;
8965218822Sdim  freebsd3.[01]* | freebsdelf3.[01]*)
8966218822Sdim    shlibpath_overrides_runpath=yes
8967218822Sdim    hardcode_into_libs=yes
8968218822Sdim    ;;
8969218822Sdim  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8970218822Sdim  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8971218822Sdim    shlibpath_overrides_runpath=no
8972218822Sdim    hardcode_into_libs=yes
8973218822Sdim    ;;
8974218822Sdim  *) # from 4.6 on, and DragonFly
8975218822Sdim    shlibpath_overrides_runpath=yes
8976218822Sdim    hardcode_into_libs=yes
8977218822Sdim    ;;
8978218822Sdim  esac
897991041Sobrien  ;;
898091041Sobrien
8981218822Sdimgnu*)
8982218822Sdim  version_type=linux
8983218822Sdim  need_lib_prefix=no
8984218822Sdim  need_version=no
8985218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8986218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8987218822Sdim  shlibpath_var=LD_LIBRARY_PATH
8988218822Sdim  hardcode_into_libs=yes
8989218822Sdim  ;;
899077298Sobrien
8991218822Sdimhpux9* | hpux10* | hpux11*)
8992218822Sdim  # Give a soname corresponding to the major version so that dld.sl refuses to
8993218822Sdim  # link against other versions.
8994218822Sdim  version_type=sunos
8995218822Sdim  need_lib_prefix=no
8996218822Sdim  need_version=no
8997218822Sdim  case $host_cpu in
8998218822Sdim  ia64*)
8999218822Sdim    shrext_cmds='.so'
9000218822Sdim    hardcode_into_libs=yes
9001218822Sdim    dynamic_linker="$host_os dld.so"
9002218822Sdim    shlibpath_var=LD_LIBRARY_PATH
9003218822Sdim    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9004218822Sdim    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005218822Sdim    soname_spec='${libname}${release}${shared_ext}$major'
9006218822Sdim    if test "X$HPUX_IA64_MODE" = X32; then
9007218822Sdim      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9008218822Sdim    else
9009218822Sdim      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9010218822Sdim    fi
9011218822Sdim    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9012218822Sdim    ;;
9013218822Sdim  hppa*64*)
9014218822Sdim    shrext_cmds='.sl'
9015218822Sdim    hardcode_into_libs=yes
9016218822Sdim    dynamic_linker="$host_os dld.sl"
9017218822Sdim    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9018218822Sdim    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9019218822Sdim    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020218822Sdim    soname_spec='${libname}${release}${shared_ext}$major'
9021218822Sdim    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9022218822Sdim    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9023218822Sdim    ;;
9024218822Sdim  *)
9025218822Sdim    shrext_cmds='.sl'
9026218822Sdim    dynamic_linker="$host_os dld.sl"
9027218822Sdim    shlibpath_var=SHLIB_PATH
9028218822Sdim    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9029218822Sdim    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030218822Sdim    soname_spec='${libname}${release}${shared_ext}$major'
9031218822Sdim    ;;
9032218822Sdim  esac
9033218822Sdim  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9034218822Sdim  postinstall_cmds='chmod 555 $lib'
9035218822Sdim  ;;
903660484Sobrien
9037218822Sdiminterix[3-9]*)
9038218822Sdim  version_type=linux
9039218822Sdim  need_lib_prefix=no
9040218822Sdim  need_version=no
9041218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9042218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9043218822Sdim  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9044218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9045218822Sdim  shlibpath_overrides_runpath=no
9046218822Sdim  hardcode_into_libs=yes
9047218822Sdim  ;;
904860484Sobrien
9049218822Sdimirix5* | irix6* | nonstopux*)
9050218822Sdim  case $host_os in
9051218822Sdim    nonstopux*) version_type=nonstopux ;;
9052218822Sdim    *)
9053218822Sdim	if test "$lt_cv_prog_gnu_ld" = yes; then
9054218822Sdim		version_type=linux
9055218822Sdim	else
9056218822Sdim		version_type=irix
9057218822Sdim	fi ;;
9058218822Sdim  esac
9059218822Sdim  need_lib_prefix=no
9060218822Sdim  need_version=no
9061218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9062218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9063218822Sdim  case $host_os in
9064218822Sdim  irix5* | nonstopux*)
9065218822Sdim    libsuff= shlibsuff=
9066218822Sdim    ;;
9067218822Sdim  *)
9068218822Sdim    case $LD in # libtool.m4 will add one of these switches to LD
9069218822Sdim    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9070218822Sdim      libsuff= shlibsuff= libmagic=32-bit;;
9071218822Sdim    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9072218822Sdim      libsuff=32 shlibsuff=N32 libmagic=N32;;
9073218822Sdim    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9074218822Sdim      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9075218822Sdim    *) libsuff= shlibsuff= libmagic=never-match;;
9076218822Sdim    esac
9077218822Sdim    ;;
9078218822Sdim  esac
9079218822Sdim  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9080218822Sdim  shlibpath_overrides_runpath=no
9081218822Sdim  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9082218822Sdim  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9083218822Sdim  hardcode_into_libs=yes
9084218822Sdim  ;;
9085218822Sdim
9086218822Sdim# No shared lib support for Linux oldld, aout, or coff.
9087218822Sdimlinux*oldld* | linux*aout* | linux*coff*)
9088218822Sdim  dynamic_linker=no
9089218822Sdim  ;;
9090218822Sdim
9091218822Sdim# This must be Linux ELF.
9092218822Sdimlinux* | k*bsd*-gnu)
9093218822Sdim  version_type=linux
9094218822Sdim  need_lib_prefix=no
9095218822Sdim  need_version=no
9096218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9098218822Sdim  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9099218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9100218822Sdim  shlibpath_overrides_runpath=no
9101218822Sdim  # Some binutils ld are patched to set DT_RUNPATH
9102218822Sdim  save_LDFLAGS=$LDFLAGS
9103218822Sdim  save_libdir=$libdir
9104218822Sdim  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9105218822Sdim       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9106218822Sdim  cat >conftest.$ac_ext <<_ACEOF
9107218822Sdim/* confdefs.h.  */
9108218822Sdim_ACEOF
9109218822Sdimcat confdefs.h >>conftest.$ac_ext
9110218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9111218822Sdim/* end confdefs.h.  */
9112218822Sdim
9113218822Sdimint
9114218822Sdimmain ()
9115218822Sdim{
9116218822Sdim
9117218822Sdim  ;
9118218822Sdim  return 0;
9119218822Sdim}
9120218822Sdim_ACEOF
9121218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9122218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123218822Sdim  (eval $ac_link) 2>conftest.er1
9124218822Sdim  ac_status=$?
9125218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9126218822Sdim  rm -f conftest.er1
9127218822Sdim  cat conftest.err >&5
9128218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129218822Sdim  (exit $ac_status); } &&
9130218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9131218822Sdim			 || test ! -s conftest.err'
9132218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133218822Sdim  (eval $ac_try) 2>&5
9134218822Sdim  ac_status=$?
9135218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136218822Sdim  (exit $ac_status); }; } &&
9137218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9138218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139218822Sdim  (eval $ac_try) 2>&5
9140218822Sdim  ac_status=$?
9141218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142218822Sdim  (exit $ac_status); }; }; then
9143218822Sdim  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9144218822Sdim  shlibpath_overrides_runpath=yes
914560484Sobrienfi
914677298Sobrien
9147218822Sdimelse
9148218822Sdim  echo "$as_me: failed program was:" >&5
9149218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9150218822Sdim
915160484Sobrienfi
9152218822Sdimrm -f conftest.err conftest.$ac_objext \
9153218822Sdim      conftest$ac_exeext conftest.$ac_ext
9154218822Sdim  LDFLAGS=$save_LDFLAGS
9155218822Sdim  libdir=$save_libdir
915660484Sobrien
9157218822Sdim  # This implies no fast_install, which is unacceptable.
9158218822Sdim  # Some rework will be needed to allow for fast_install
9159218822Sdim  # before this can be enabled.
9160218822Sdim  hardcode_into_libs=yes
9161218822Sdim
9162218822Sdim  # Append ld.so.conf contents to the search path
9163218822Sdim  if test -f /etc/ld.so.conf; then
9164218822Sdim    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9165218822Sdim    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
916660484Sobrien  fi
9167218822Sdim
9168218822Sdim  # We used to test for /lib/ld.so.1 and disable shared libraries on
9169218822Sdim  # powerpc, because MkLinux only supported shared libraries with the
9170218822Sdim  # GNU dynamic linker.  Since this was broken with cross compilers,
9171218822Sdim  # most powerpc-linux boxes support dynamic linking these days and
9172218822Sdim  # people can always --disable-shared, the test was removed, and we
9173218822Sdim  # assume the GNU/Linux dynamic linker is in use.
9174218822Sdim  dynamic_linker='GNU/Linux ld.so'
917538889Sjdp  ;;
917660484Sobrien
9177218822Sdimnetbsd*)
9178218822Sdim  version_type=sunos
9179218822Sdim  need_lib_prefix=no
9180218822Sdim  need_version=no
9181218822Sdim  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9182218822Sdim    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9183218822Sdim    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9184218822Sdim    dynamic_linker='NetBSD (a.out) ld.so'
9185218822Sdim  else
9186218822Sdim    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9187218822Sdim    soname_spec='${libname}${release}${shared_ext}$major'
9188218822Sdim    dynamic_linker='NetBSD ld.elf_so'
9189218822Sdim  fi
9190218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9191218822Sdim  shlibpath_overrides_runpath=yes
9192218822Sdim  hardcode_into_libs=yes
9193218822Sdim  ;;
919460484Sobrien
9195218822Sdimnewsos6)
9196218822Sdim  version_type=linux
9197218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9199218822Sdim  shlibpath_overrides_runpath=yes
9200218822Sdim  ;;
9201218822Sdim
9202218822Sdim*nto* | *qnx*)
9203218822Sdim  version_type=qnx
9204218822Sdim  need_lib_prefix=no
9205218822Sdim  need_version=no
9206218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9208218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9209218822Sdim  shlibpath_overrides_runpath=no
9210218822Sdim  hardcode_into_libs=yes
9211218822Sdim  dynamic_linker='ldqnx.so'
9212218822Sdim  ;;
9213218822Sdim
9214218822Sdimopenbsd*)
9215218822Sdim  version_type=sunos
9216218822Sdim  sys_lib_dlsearch_path_spec="/usr/lib"
9217218822Sdim  need_lib_prefix=no
9218218822Sdim  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9219218822Sdim  case $host_os in
9220218822Sdim    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9221218822Sdim    *)				need_version=no  ;;
9222218822Sdim  esac
9223218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9224218822Sdim  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9225218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9226218822Sdim  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9227218822Sdim    case $host_os in
9228218822Sdim      openbsd2.[89] | openbsd2.[89].*)
9229218822Sdim	shlibpath_overrides_runpath=no
9230218822Sdim	;;
9231218822Sdim      *)
9232218822Sdim	shlibpath_overrides_runpath=yes
9233218822Sdim	;;
9234218822Sdim      esac
9235218822Sdim  else
9236218822Sdim    shlibpath_overrides_runpath=yes
9237218822Sdim  fi
9238218822Sdim  ;;
9239218822Sdim
9240218822Sdimos2*)
9241218822Sdim  libname_spec='$name'
9242218822Sdim  shrext_cmds=".dll"
9243218822Sdim  need_lib_prefix=no
9244218822Sdim  library_names_spec='$libname${shared_ext} $libname.a'
9245218822Sdim  dynamic_linker='OS/2 ld.exe'
9246218822Sdim  shlibpath_var=LIBPATH
9247218822Sdim  ;;
9248218822Sdim
9249218822Sdimosf3* | osf4* | osf5*)
9250218822Sdim  version_type=osf
9251218822Sdim  need_lib_prefix=no
9252218822Sdim  need_version=no
9253218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9254218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9256218822Sdim  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9257218822Sdim  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9258218822Sdim  ;;
9259218822Sdim
9260218822Sdimrdos*)
9261218822Sdim  dynamic_linker=no
9262218822Sdim  ;;
9263218822Sdim
9264218822Sdimsolaris*)
9265218822Sdim  version_type=linux
9266218822Sdim  need_lib_prefix=no
9267218822Sdim  need_version=no
9268218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9270218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9271218822Sdim  shlibpath_overrides_runpath=yes
9272218822Sdim  hardcode_into_libs=yes
9273218822Sdim  # ldd complains unless libraries are executable
9274218822Sdim  postinstall_cmds='chmod +x $lib'
9275218822Sdim  ;;
9276218822Sdim
9277218822Sdimsunos4*)
9278218822Sdim  version_type=sunos
9279218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9280218822Sdim  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9281218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9282218822Sdim  shlibpath_overrides_runpath=yes
9283218822Sdim  if test "$with_gnu_ld" = yes; then
9284218822Sdim    need_lib_prefix=no
9285218822Sdim  fi
9286218822Sdim  need_version=yes
9287218822Sdim  ;;
9288218822Sdim
9289218822Sdimsysv4 | sysv4.3*)
9290218822Sdim  version_type=linux
9291218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9293218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9294218822Sdim  case $host_vendor in
9295218822Sdim    sni)
9296218822Sdim      shlibpath_overrides_runpath=no
9297218822Sdim      need_lib_prefix=no
9298218822Sdim      runpath_var=LD_RUN_PATH
9299218822Sdim      ;;
9300218822Sdim    siemens)
9301218822Sdim      need_lib_prefix=no
9302218822Sdim      ;;
9303218822Sdim    motorola)
9304218822Sdim      need_lib_prefix=no
9305218822Sdim      need_version=no
9306218822Sdim      shlibpath_overrides_runpath=no
9307218822Sdim      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9308218822Sdim      ;;
9309218822Sdim  esac
9310218822Sdim  ;;
9311218822Sdim
9312218822Sdimsysv4*MP*)
9313218822Sdim  if test -d /usr/nec ;then
9314218822Sdim    version_type=linux
9315218822Sdim    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9316218822Sdim    soname_spec='$libname${shared_ext}.$major'
9317218822Sdim    shlibpath_var=LD_LIBRARY_PATH
9318218822Sdim  fi
9319218822Sdim  ;;
9320218822Sdim
9321218822Sdimsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9322218822Sdim  version_type=freebsd-elf
9323218822Sdim  need_lib_prefix=no
9324218822Sdim  need_version=no
9325218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9326218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9327218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9328218822Sdim  shlibpath_overrides_runpath=yes
9329218822Sdim  hardcode_into_libs=yes
9330218822Sdim  if test "$with_gnu_ld" = yes; then
9331218822Sdim    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9332218822Sdim  else
9333218822Sdim    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9334218822Sdim    case $host_os in
9335218822Sdim      sco3.2v5*)
9336218822Sdim        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9337218822Sdim	;;
9338218822Sdim    esac
9339218822Sdim  fi
9340218822Sdim  sys_lib_dlsearch_path_spec='/usr/lib'
9341218822Sdim  ;;
9342218822Sdim
9343218822Sdimtpf*)
9344218822Sdim  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9345218822Sdim  version_type=linux
9346218822Sdim  need_lib_prefix=no
9347218822Sdim  need_version=no
9348218822Sdim  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9350218822Sdim  shlibpath_overrides_runpath=no
9351218822Sdim  hardcode_into_libs=yes
9352218822Sdim  ;;
9353218822Sdim
9354218822Sdimuts4*)
9355218822Sdim  version_type=linux
9356218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9358218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9359218822Sdim  ;;
9360218822Sdim
9361218822Sdim*)
9362218822Sdim  dynamic_linker=no
9363218822Sdim  ;;
936438889Sjdpesac
9365218822Sdimecho "$as_me:$LINENO: result: $dynamic_linker" >&5
9366218822Sdimecho "${ECHO_T}$dynamic_linker" >&6
9367218822Sdimtest "$dynamic_linker" = no && can_build_shared=no
936838889Sjdp
9369218822Sdimvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9370218822Sdimif test "$GCC" = yes; then
9371218822Sdim  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9372218822Sdimfi
937360484Sobrien
9374218822Sdim
9375218822Sdim
9376218822Sdim
9377218822Sdim
9378218822Sdim
9379218822Sdim
9380218822Sdim
9381218822Sdim
9382218822Sdim
9383218822Sdim
9384218822Sdim
9385218822Sdim
9386218822Sdim
9387218822Sdim
9388218822Sdim
9389218822Sdim
9390218822Sdim
9391218822Sdim
9392218822Sdim
9393218822Sdim
9394218822Sdim
9395218822Sdim
9396218822Sdim
9397218822Sdim
9398218822Sdim
9399218822Sdim
9400218822Sdim
9401218822Sdim
9402218822Sdim
9403218822Sdim
9404218822Sdim
9405218822Sdim
9406218822Sdim
9407218822Sdim
9408218822Sdim
9409218822Sdim
9410218822Sdim
9411218822Sdim
9412218822Sdim
9413218822Sdim
9414218822Sdim
9415218822Sdim
9416218822Sdim
9417218822Sdim
9418218822Sdim
9419218822Sdim
9420218822Sdim
9421218822Sdim
9422218822Sdim
9423218822Sdim
9424218822Sdim
9425218822Sdim
9426218822Sdim
9427218822Sdim
9428218822Sdim
9429218822Sdim
9430218822Sdim
9431218822Sdim
9432218822Sdim
9433218822Sdim
9434218822Sdim
9435218822Sdim
9436218822Sdim
9437218822Sdim
9438218822Sdim
9439218822Sdim
9440218822Sdim
9441218822Sdim
9442218822Sdim
9443218822Sdim
9444218822Sdim
9445218822Sdim
9446218822Sdim
9447218822Sdim
9448218822Sdim
9449218822Sdim
9450218822Sdim
9451218822Sdim
9452218822Sdim
9453218822Sdim
9454218822Sdim
9455218822Sdim
9456218822Sdim
9457218822Sdim
9458218822Sdim
9459218822Sdim
9460218822Sdim  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9461218822Sdimecho $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9462218822Sdimhardcode_action=
9463218822Sdimif test -n "$hardcode_libdir_flag_spec" ||
9464218822Sdim   test -n "$runpath_var" ||
9465218822Sdim   test "X$hardcode_automatic" = "Xyes" ; then
9466218822Sdim
9467218822Sdim  # We can hardcode non-existent directories.
9468218822Sdim  if test "$hardcode_direct" != no &&
9469218822Sdim     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9470218822Sdim     # have to relink, otherwise we might link with an installed library
9471218822Sdim     # when we should be linking with a yet-to-be-installed one
9472218822Sdim     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9473218822Sdim     test "$hardcode_minus_L" != no; then
9474218822Sdim    # Linking always hardcodes the temporary library directory.
9475218822Sdim    hardcode_action=relink
9476218822Sdim  else
9477218822Sdim    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9478218822Sdim    hardcode_action=immediate
9479218822Sdim  fi
9480218822Sdimelse
9481218822Sdim  # We cannot hardcode anything, or else we can only hardcode existing
9482218822Sdim  # directories.
9483218822Sdim  hardcode_action=unsupported
9484218822Sdimfi
9485218822Sdimecho "$as_me:$LINENO: result: $hardcode_action" >&5
9486218822Sdimecho "${ECHO_T}$hardcode_action" >&6
9487218822Sdim
9488218822Sdimif test "$hardcode_action" = relink ||
9489218822Sdim   test "$inherit_rpath" = yes; then
9490218822Sdim  # Fast installation is not supported
9491218822Sdim  enable_fast_install=no
9492218822Sdimelif test "$shlibpath_overrides_runpath" = yes ||
9493218822Sdim     test "$enable_shared" = no; then
9494218822Sdim  # Fast installation is not necessary
9495218822Sdim  enable_fast_install=needless
9496218822Sdimfi
9497218822Sdim
9498218822Sdim
9499218822Sdim
9500218822Sdim
9501218822Sdim
9502218822Sdim
9503218822Sdim  if test "x$enable_dlopen" != xyes; then
9504218822Sdim  enable_dlopen=unknown
9505218822Sdim  enable_dlopen_self=unknown
9506218822Sdim  enable_dlopen_self_static=unknown
9507218822Sdimelse
9508218822Sdim  lt_cv_dlopen=no
9509218822Sdim  lt_cv_dlopen_libs=
9510218822Sdim
9511218822Sdim  case $host_os in
9512218822Sdim  beos*)
9513218822Sdim    lt_cv_dlopen="load_add_on"
9514218822Sdim    lt_cv_dlopen_libs=
9515218822Sdim    lt_cv_dlopen_self=yes
951660484Sobrien    ;;
9517218822Sdim
9518218822Sdim  mingw* | pw32*)
9519218822Sdim    lt_cv_dlopen="LoadLibrary"
9520218822Sdim    lt_cv_dlopen_libs=
9521218822Sdim    ;;
9522218822Sdim
9523218822Sdim  cygwin*)
9524218822Sdim    lt_cv_dlopen="dlopen"
9525218822Sdim    lt_cv_dlopen_libs=
9526218822Sdim    ;;
9527218822Sdim
9528218822Sdim  darwin*)
9529218822Sdim  # if libdl is installed we need to link against it
9530218822Sdim    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9531218822Sdimecho $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9532218822Sdimif test "${ac_cv_lib_dl_dlopen+set}" = set; then
9533218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9534218822Sdimelse
9535218822Sdim  ac_check_lib_save_LIBS=$LIBS
9536218822SdimLIBS="-ldl  $LIBS"
9537218822Sdimcat >conftest.$ac_ext <<_ACEOF
9538218822Sdim/* confdefs.h.  */
9539218822Sdim_ACEOF
9540218822Sdimcat confdefs.h >>conftest.$ac_ext
9541218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9542218822Sdim/* end confdefs.h.  */
9543218822Sdim
9544218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9545218822Sdim#ifdef __cplusplus
9546218822Sdimextern "C"
9547218822Sdim#endif
9548218822Sdim/* We use char because int might match the return type of a gcc2
9549218822Sdim   builtin and then its argument prototype would still apply.  */
9550218822Sdimchar dlopen ();
9551218822Sdimint
9552218822Sdimmain ()
9553218822Sdim{
9554218822Sdimdlopen ();
9555218822Sdim  ;
9556218822Sdim  return 0;
9557218822Sdim}
9558218822Sdim_ACEOF
9559218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9560218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561218822Sdim  (eval $ac_link) 2>conftest.er1
9562218822Sdim  ac_status=$?
9563218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9564218822Sdim  rm -f conftest.er1
9565218822Sdim  cat conftest.err >&5
9566218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567218822Sdim  (exit $ac_status); } &&
9568218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9569218822Sdim			 || test ! -s conftest.err'
9570218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571218822Sdim  (eval $ac_try) 2>&5
9572218822Sdim  ac_status=$?
9573218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574218822Sdim  (exit $ac_status); }; } &&
9575218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9576218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577218822Sdim  (eval $ac_try) 2>&5
9578218822Sdim  ac_status=$?
9579218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580218822Sdim  (exit $ac_status); }; }; then
9581218822Sdim  ac_cv_lib_dl_dlopen=yes
9582218822Sdimelse
9583218822Sdim  echo "$as_me: failed program was:" >&5
9584218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9585218822Sdim
9586218822Sdimac_cv_lib_dl_dlopen=no
9587218822Sdimfi
9588218822Sdimrm -f conftest.err conftest.$ac_objext \
9589218822Sdim      conftest$ac_exeext conftest.$ac_ext
9590218822SdimLIBS=$ac_check_lib_save_LIBS
9591218822Sdimfi
9592218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9593218822Sdimecho "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9594218822Sdimif test $ac_cv_lib_dl_dlopen = yes; then
9595218822Sdim  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9596218822Sdimelse
9597218822Sdim
9598218822Sdim    lt_cv_dlopen="dyld"
9599218822Sdim    lt_cv_dlopen_libs=
9600218822Sdim    lt_cv_dlopen_self=yes
9601218822Sdim
9602218822Sdimfi
9603218822Sdim
9604218822Sdim    ;;
9605218822Sdim
960660484Sobrien  *)
9607218822Sdim    echo "$as_me:$LINENO: checking for shl_load" >&5
9608218822Sdimecho $ECHO_N "checking for shl_load... $ECHO_C" >&6
9609218822Sdimif test "${ac_cv_func_shl_load+set}" = set; then
9610218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9611218822Sdimelse
9612218822Sdim  cat >conftest.$ac_ext <<_ACEOF
9613218822Sdim/* confdefs.h.  */
9614218822Sdim_ACEOF
9615218822Sdimcat confdefs.h >>conftest.$ac_ext
9616218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9617218822Sdim/* end confdefs.h.  */
9618218822Sdim/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9619218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9620218822Sdim#define shl_load innocuous_shl_load
9621218822Sdim
9622218822Sdim/* System header to define __stub macros and hopefully few prototypes,
9623218822Sdim    which can conflict with char shl_load (); below.
9624218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9625218822Sdim    <limits.h> exists even on freestanding compilers.  */
9626218822Sdim
9627218822Sdim#ifdef __STDC__
9628218822Sdim# include <limits.h>
9629218822Sdim#else
9630218822Sdim# include <assert.h>
9631218822Sdim#endif
9632218822Sdim
9633218822Sdim#undef shl_load
9634218822Sdim
9635218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9636218822Sdim#ifdef __cplusplus
9637218822Sdimextern "C"
9638218822Sdim{
9639218822Sdim#endif
9640218822Sdim/* We use char because int might match the return type of a gcc2
9641218822Sdim   builtin and then its argument prototype would still apply.  */
9642218822Sdimchar shl_load ();
9643218822Sdim/* The GNU C library defines this for functions which it implements
9644218822Sdim    to always fail with ENOSYS.  Some functions are actually named
9645218822Sdim    something starting with __ and the normal name is an alias.  */
9646218822Sdim#if defined (__stub_shl_load) || defined (__stub___shl_load)
9647218822Sdimchoke me
9648218822Sdim#else
9649218822Sdimchar (*f) () = shl_load;
9650218822Sdim#endif
9651218822Sdim#ifdef __cplusplus
9652218822Sdim}
9653218822Sdim#endif
9654218822Sdim
9655218822Sdimint
9656218822Sdimmain ()
9657218822Sdim{
9658218822Sdimreturn f != shl_load;
9659218822Sdim  ;
9660218822Sdim  return 0;
9661218822Sdim}
9662218822Sdim_ACEOF
9663218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9664218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665218822Sdim  (eval $ac_link) 2>conftest.er1
9666218822Sdim  ac_status=$?
9667218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9668218822Sdim  rm -f conftest.er1
9669218822Sdim  cat conftest.err >&5
9670218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671218822Sdim  (exit $ac_status); } &&
9672218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9673218822Sdim			 || test ! -s conftest.err'
9674218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675218822Sdim  (eval $ac_try) 2>&5
9676218822Sdim  ac_status=$?
9677218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678218822Sdim  (exit $ac_status); }; } &&
9679218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9680218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681218822Sdim  (eval $ac_try) 2>&5
9682218822Sdim  ac_status=$?
9683218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684218822Sdim  (exit $ac_status); }; }; then
9685218822Sdim  ac_cv_func_shl_load=yes
9686218822Sdimelse
9687218822Sdim  echo "$as_me: failed program was:" >&5
9688218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9689218822Sdim
9690218822Sdimac_cv_func_shl_load=no
9691218822Sdimfi
9692218822Sdimrm -f conftest.err conftest.$ac_objext \
9693218822Sdim      conftest$ac_exeext conftest.$ac_ext
9694218822Sdimfi
9695218822Sdimecho "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9696218822Sdimecho "${ECHO_T}$ac_cv_func_shl_load" >&6
9697218822Sdimif test $ac_cv_func_shl_load = yes; then
9698218822Sdim  lt_cv_dlopen="shl_load"
9699218822Sdimelse
9700218822Sdim  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9701218822Sdimecho $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9702218822Sdimif test "${ac_cv_lib_dld_shl_load+set}" = set; then
9703218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9704218822Sdimelse
9705218822Sdim  ac_check_lib_save_LIBS=$LIBS
9706218822SdimLIBS="-ldld  $LIBS"
9707218822Sdimcat >conftest.$ac_ext <<_ACEOF
9708218822Sdim/* confdefs.h.  */
9709218822Sdim_ACEOF
9710218822Sdimcat confdefs.h >>conftest.$ac_ext
9711218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9712218822Sdim/* end confdefs.h.  */
9713218822Sdim
9714218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9715218822Sdim#ifdef __cplusplus
9716218822Sdimextern "C"
9717218822Sdim#endif
9718218822Sdim/* We use char because int might match the return type of a gcc2
9719218822Sdim   builtin and then its argument prototype would still apply.  */
9720218822Sdimchar shl_load ();
9721218822Sdimint
9722218822Sdimmain ()
9723218822Sdim{
9724218822Sdimshl_load ();
9725218822Sdim  ;
9726218822Sdim  return 0;
9727218822Sdim}
9728218822Sdim_ACEOF
9729218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9730218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731218822Sdim  (eval $ac_link) 2>conftest.er1
9732218822Sdim  ac_status=$?
9733218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9734218822Sdim  rm -f conftest.er1
9735218822Sdim  cat conftest.err >&5
9736218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737218822Sdim  (exit $ac_status); } &&
9738218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9739218822Sdim			 || test ! -s conftest.err'
9740218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741218822Sdim  (eval $ac_try) 2>&5
9742218822Sdim  ac_status=$?
9743218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744218822Sdim  (exit $ac_status); }; } &&
9745218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9746218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747218822Sdim  (eval $ac_try) 2>&5
9748218822Sdim  ac_status=$?
9749218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750218822Sdim  (exit $ac_status); }; }; then
9751218822Sdim  ac_cv_lib_dld_shl_load=yes
9752218822Sdimelse
9753218822Sdim  echo "$as_me: failed program was:" >&5
9754218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9755218822Sdim
9756218822Sdimac_cv_lib_dld_shl_load=no
9757218822Sdimfi
9758218822Sdimrm -f conftest.err conftest.$ac_objext \
9759218822Sdim      conftest$ac_exeext conftest.$ac_ext
9760218822SdimLIBS=$ac_check_lib_save_LIBS
9761218822Sdimfi
9762218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9763218822Sdimecho "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9764218822Sdimif test $ac_cv_lib_dld_shl_load = yes; then
9765218822Sdim  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9766218822Sdimelse
9767218822Sdim  echo "$as_me:$LINENO: checking for dlopen" >&5
9768218822Sdimecho $ECHO_N "checking for dlopen... $ECHO_C" >&6
9769218822Sdimif test "${ac_cv_func_dlopen+set}" = set; then
9770218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9771218822Sdimelse
9772218822Sdim  cat >conftest.$ac_ext <<_ACEOF
9773218822Sdim/* confdefs.h.  */
9774218822Sdim_ACEOF
9775218822Sdimcat confdefs.h >>conftest.$ac_ext
9776218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9777218822Sdim/* end confdefs.h.  */
9778218822Sdim/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9779218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9780218822Sdim#define dlopen innocuous_dlopen
9781218822Sdim
9782218822Sdim/* System header to define __stub macros and hopefully few prototypes,
9783218822Sdim    which can conflict with char dlopen (); below.
9784218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9785218822Sdim    <limits.h> exists even on freestanding compilers.  */
9786218822Sdim
9787218822Sdim#ifdef __STDC__
9788218822Sdim# include <limits.h>
9789218822Sdim#else
9790218822Sdim# include <assert.h>
9791218822Sdim#endif
9792218822Sdim
9793218822Sdim#undef dlopen
9794218822Sdim
9795218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9796218822Sdim#ifdef __cplusplus
9797218822Sdimextern "C"
9798218822Sdim{
9799218822Sdim#endif
9800218822Sdim/* We use char because int might match the return type of a gcc2
9801218822Sdim   builtin and then its argument prototype would still apply.  */
9802218822Sdimchar dlopen ();
9803218822Sdim/* The GNU C library defines this for functions which it implements
9804218822Sdim    to always fail with ENOSYS.  Some functions are actually named
9805218822Sdim    something starting with __ and the normal name is an alias.  */
9806218822Sdim#if defined (__stub_dlopen) || defined (__stub___dlopen)
9807218822Sdimchoke me
9808218822Sdim#else
9809218822Sdimchar (*f) () = dlopen;
9810218822Sdim#endif
9811218822Sdim#ifdef __cplusplus
9812218822Sdim}
9813218822Sdim#endif
9814218822Sdim
9815218822Sdimint
9816218822Sdimmain ()
9817218822Sdim{
9818218822Sdimreturn f != dlopen;
9819218822Sdim  ;
9820218822Sdim  return 0;
9821218822Sdim}
9822218822Sdim_ACEOF
9823218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9824218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825218822Sdim  (eval $ac_link) 2>conftest.er1
9826218822Sdim  ac_status=$?
9827218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9828218822Sdim  rm -f conftest.er1
9829218822Sdim  cat conftest.err >&5
9830218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831218822Sdim  (exit $ac_status); } &&
9832218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9833218822Sdim			 || test ! -s conftest.err'
9834218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835218822Sdim  (eval $ac_try) 2>&5
9836218822Sdim  ac_status=$?
9837218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838218822Sdim  (exit $ac_status); }; } &&
9839218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9840218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841218822Sdim  (eval $ac_try) 2>&5
9842218822Sdim  ac_status=$?
9843218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844218822Sdim  (exit $ac_status); }; }; then
9845218822Sdim  ac_cv_func_dlopen=yes
9846218822Sdimelse
9847218822Sdim  echo "$as_me: failed program was:" >&5
9848218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9849218822Sdim
9850218822Sdimac_cv_func_dlopen=no
9851218822Sdimfi
9852218822Sdimrm -f conftest.err conftest.$ac_objext \
9853218822Sdim      conftest$ac_exeext conftest.$ac_ext
9854218822Sdimfi
9855218822Sdimecho "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9856218822Sdimecho "${ECHO_T}$ac_cv_func_dlopen" >&6
9857218822Sdimif test $ac_cv_func_dlopen = yes; then
9858218822Sdim  lt_cv_dlopen="dlopen"
9859218822Sdimelse
9860218822Sdim  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9861218822Sdimecho $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9862218822Sdimif test "${ac_cv_lib_dl_dlopen+set}" = set; then
9863218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9864218822Sdimelse
9865218822Sdim  ac_check_lib_save_LIBS=$LIBS
9866218822SdimLIBS="-ldl  $LIBS"
9867218822Sdimcat >conftest.$ac_ext <<_ACEOF
9868218822Sdim/* confdefs.h.  */
9869218822Sdim_ACEOF
9870218822Sdimcat confdefs.h >>conftest.$ac_ext
9871218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9872218822Sdim/* end confdefs.h.  */
9873218822Sdim
9874218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9875218822Sdim#ifdef __cplusplus
9876218822Sdimextern "C"
9877218822Sdim#endif
9878218822Sdim/* We use char because int might match the return type of a gcc2
9879218822Sdim   builtin and then its argument prototype would still apply.  */
9880218822Sdimchar dlopen ();
9881218822Sdimint
9882218822Sdimmain ()
9883218822Sdim{
9884218822Sdimdlopen ();
9885218822Sdim  ;
9886218822Sdim  return 0;
9887218822Sdim}
9888218822Sdim_ACEOF
9889218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9890218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891218822Sdim  (eval $ac_link) 2>conftest.er1
9892218822Sdim  ac_status=$?
9893218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9894218822Sdim  rm -f conftest.er1
9895218822Sdim  cat conftest.err >&5
9896218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897218822Sdim  (exit $ac_status); } &&
9898218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9899218822Sdim			 || test ! -s conftest.err'
9900218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901218822Sdim  (eval $ac_try) 2>&5
9902218822Sdim  ac_status=$?
9903218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904218822Sdim  (exit $ac_status); }; } &&
9905218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9906218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907218822Sdim  (eval $ac_try) 2>&5
9908218822Sdim  ac_status=$?
9909218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910218822Sdim  (exit $ac_status); }; }; then
9911218822Sdim  ac_cv_lib_dl_dlopen=yes
9912218822Sdimelse
9913218822Sdim  echo "$as_me: failed program was:" >&5
9914218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9915218822Sdim
9916218822Sdimac_cv_lib_dl_dlopen=no
9917218822Sdimfi
9918218822Sdimrm -f conftest.err conftest.$ac_objext \
9919218822Sdim      conftest$ac_exeext conftest.$ac_ext
9920218822SdimLIBS=$ac_check_lib_save_LIBS
9921218822Sdimfi
9922218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9923218822Sdimecho "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9924218822Sdimif test $ac_cv_lib_dl_dlopen = yes; then
9925218822Sdim  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9926218822Sdimelse
9927218822Sdim  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9928218822Sdimecho $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9929218822Sdimif test "${ac_cv_lib_svld_dlopen+set}" = set; then
9930218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9931218822Sdimelse
9932218822Sdim  ac_check_lib_save_LIBS=$LIBS
9933218822SdimLIBS="-lsvld  $LIBS"
9934218822Sdimcat >conftest.$ac_ext <<_ACEOF
9935218822Sdim/* confdefs.h.  */
9936218822Sdim_ACEOF
9937218822Sdimcat confdefs.h >>conftest.$ac_ext
9938218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9939218822Sdim/* end confdefs.h.  */
9940218822Sdim
9941218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9942218822Sdim#ifdef __cplusplus
9943218822Sdimextern "C"
9944218822Sdim#endif
9945218822Sdim/* We use char because int might match the return type of a gcc2
9946218822Sdim   builtin and then its argument prototype would still apply.  */
9947218822Sdimchar dlopen ();
9948218822Sdimint
9949218822Sdimmain ()
9950218822Sdim{
9951218822Sdimdlopen ();
9952218822Sdim  ;
9953218822Sdim  return 0;
9954218822Sdim}
9955218822Sdim_ACEOF
9956218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9957218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958218822Sdim  (eval $ac_link) 2>conftest.er1
9959218822Sdim  ac_status=$?
9960218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9961218822Sdim  rm -f conftest.er1
9962218822Sdim  cat conftest.err >&5
9963218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964218822Sdim  (exit $ac_status); } &&
9965218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9966218822Sdim			 || test ! -s conftest.err'
9967218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968218822Sdim  (eval $ac_try) 2>&5
9969218822Sdim  ac_status=$?
9970218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971218822Sdim  (exit $ac_status); }; } &&
9972218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9973218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974218822Sdim  (eval $ac_try) 2>&5
9975218822Sdim  ac_status=$?
9976218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977218822Sdim  (exit $ac_status); }; }; then
9978218822Sdim  ac_cv_lib_svld_dlopen=yes
9979218822Sdimelse
9980218822Sdim  echo "$as_me: failed program was:" >&5
9981218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9982218822Sdim
9983218822Sdimac_cv_lib_svld_dlopen=no
9984218822Sdimfi
9985218822Sdimrm -f conftest.err conftest.$ac_objext \
9986218822Sdim      conftest$ac_exeext conftest.$ac_ext
9987218822SdimLIBS=$ac_check_lib_save_LIBS
9988218822Sdimfi
9989218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9990218822Sdimecho "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9991218822Sdimif test $ac_cv_lib_svld_dlopen = yes; then
9992218822Sdim  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9993218822Sdimelse
9994218822Sdim  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9995218822Sdimecho $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9996218822Sdimif test "${ac_cv_lib_dld_dld_link+set}" = set; then
9997218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9998218822Sdimelse
9999218822Sdim  ac_check_lib_save_LIBS=$LIBS
10000218822SdimLIBS="-ldld  $LIBS"
10001218822Sdimcat >conftest.$ac_ext <<_ACEOF
10002218822Sdim/* confdefs.h.  */
10003218822Sdim_ACEOF
10004218822Sdimcat confdefs.h >>conftest.$ac_ext
10005218822Sdimcat >>conftest.$ac_ext <<_ACEOF
10006218822Sdim/* end confdefs.h.  */
10007218822Sdim
10008218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
10009218822Sdim#ifdef __cplusplus
10010218822Sdimextern "C"
10011218822Sdim#endif
10012218822Sdim/* We use char because int might match the return type of a gcc2
10013218822Sdim   builtin and then its argument prototype would still apply.  */
10014218822Sdimchar dld_link ();
10015218822Sdimint
10016218822Sdimmain ()
10017218822Sdim{
10018218822Sdimdld_link ();
10019218822Sdim  ;
10020218822Sdim  return 0;
10021218822Sdim}
10022218822Sdim_ACEOF
10023218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
10024218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025218822Sdim  (eval $ac_link) 2>conftest.er1
10026218822Sdim  ac_status=$?
10027218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
10028218822Sdim  rm -f conftest.er1
10029218822Sdim  cat conftest.err >&5
10030218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031218822Sdim  (exit $ac_status); } &&
10032218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
10033218822Sdim			 || test ! -s conftest.err'
10034218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035218822Sdim  (eval $ac_try) 2>&5
10036218822Sdim  ac_status=$?
10037218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038218822Sdim  (exit $ac_status); }; } &&
10039218822Sdim	 { ac_try='test -s conftest$ac_exeext'
10040218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041218822Sdim  (eval $ac_try) 2>&5
10042218822Sdim  ac_status=$?
10043218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044218822Sdim  (exit $ac_status); }; }; then
10045218822Sdim  ac_cv_lib_dld_dld_link=yes
10046218822Sdimelse
10047218822Sdim  echo "$as_me: failed program was:" >&5
10048218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
10049218822Sdim
10050218822Sdimac_cv_lib_dld_dld_link=no
10051218822Sdimfi
10052218822Sdimrm -f conftest.err conftest.$ac_objext \
10053218822Sdim      conftest$ac_exeext conftest.$ac_ext
10054218822SdimLIBS=$ac_check_lib_save_LIBS
10055218822Sdimfi
10056218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10057218822Sdimecho "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10058218822Sdimif test $ac_cv_lib_dld_dld_link = yes; then
10059218822Sdim  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10060218822Sdimfi
10061218822Sdim
10062218822Sdim
10063218822Sdimfi
10064218822Sdim
10065218822Sdim
10066218822Sdimfi
10067218822Sdim
10068218822Sdim
10069218822Sdimfi
10070218822Sdim
10071218822Sdim
10072218822Sdimfi
10073218822Sdim
10074218822Sdim
10075218822Sdimfi
10076218822Sdim
1007760484Sobrien    ;;
10078218822Sdim  esac
10079218822Sdim
10080218822Sdim  if test "x$lt_cv_dlopen" != xno; then
10081218822Sdim    enable_dlopen=yes
10082218822Sdim  else
10083218822Sdim    enable_dlopen=no
10084218822Sdim  fi
10085218822Sdim
10086218822Sdim  case $lt_cv_dlopen in
10087218822Sdim  dlopen)
10088218822Sdim    save_CPPFLAGS="$CPPFLAGS"
10089218822Sdim    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10090218822Sdim
10091218822Sdim    save_LDFLAGS="$LDFLAGS"
10092218822Sdim    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10093218822Sdim
10094218822Sdim    save_LIBS="$LIBS"
10095218822Sdim    LIBS="$lt_cv_dlopen_libs $LIBS"
10096218822Sdim
10097218822Sdim    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10098218822Sdimecho $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10099218822Sdimif test "${lt_cv_dlopen_self+set}" = set; then
10100218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1010160484Sobrienelse
10102218822Sdim  	  if test "$cross_compiling" = yes; then :
10103218822Sdim  lt_cv_dlopen_self=cross
10104218822Sdimelse
10105218822Sdim  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10106218822Sdim  lt_status=$lt_dlunknown
10107218822Sdim  cat > conftest.$ac_ext <<_LT_EOF
10108218822Sdim#line 10108 "configure"
10109218822Sdim#include "confdefs.h"
10110218822Sdim
10111218822Sdim#if HAVE_DLFCN_H
10112218822Sdim#include <dlfcn.h>
10113218822Sdim#endif
10114218822Sdim
10115218822Sdim#include <stdio.h>
10116218822Sdim
10117218822Sdim#ifdef RTLD_GLOBAL
10118218822Sdim#  define LT_DLGLOBAL		RTLD_GLOBAL
10119218822Sdim#else
10120218822Sdim#  ifdef DL_GLOBAL
10121218822Sdim#    define LT_DLGLOBAL		DL_GLOBAL
10122218822Sdim#  else
10123218822Sdim#    define LT_DLGLOBAL		0
10124218822Sdim#  endif
10125218822Sdim#endif
10126218822Sdim
10127218822Sdim/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10128218822Sdim   find out it does not work in some platform. */
10129218822Sdim#ifndef LT_DLLAZY_OR_NOW
10130218822Sdim#  ifdef RTLD_LAZY
10131218822Sdim#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10132218822Sdim#  else
10133218822Sdim#    ifdef DL_LAZY
10134218822Sdim#      define LT_DLLAZY_OR_NOW		DL_LAZY
10135218822Sdim#    else
10136218822Sdim#      ifdef RTLD_NOW
10137218822Sdim#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10138218822Sdim#      else
10139218822Sdim#        ifdef DL_NOW
10140218822Sdim#          define LT_DLLAZY_OR_NOW	DL_NOW
10141218822Sdim#        else
10142218822Sdim#          define LT_DLLAZY_OR_NOW	0
10143218822Sdim#        endif
10144218822Sdim#      endif
10145218822Sdim#    endif
10146218822Sdim#  endif
10147218822Sdim#endif
10148218822Sdim
10149218822Sdim#ifdef __cplusplus
10150218822Sdimextern "C" void exit (int);
10151218822Sdim#endif
10152218822Sdim
10153218822Sdimvoid fnord() { int i=42;}
10154218822Sdimint main ()
10155218822Sdim{
10156218822Sdim  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10157218822Sdim  int status = $lt_dlunknown;
10158218822Sdim
10159218822Sdim  if (self)
10160218822Sdim    {
10161218822Sdim      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10162218822Sdim      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10163218822Sdim      /* dlclose (self); */
10164218822Sdim    }
1016560484Sobrien  else
10166218822Sdim    puts (dlerror ());
10167218822Sdim
10168218822Sdim    exit (status);
10169218822Sdim}
10170218822Sdim_LT_EOF
10171218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172218822Sdim  (eval $ac_link) 2>&5
10173218822Sdim  ac_status=$?
10174218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175218822Sdim  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10176218822Sdim    (./conftest; exit; ) >&5 2>/dev/null
10177218822Sdim    lt_status=$?
10178218822Sdim    case x$lt_status in
10179218822Sdim      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10180218822Sdim      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10181218822Sdim      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10182218822Sdim    esac
10183218822Sdim  else :
10184218822Sdim    # compilation failed
10185218822Sdim    lt_cv_dlopen_self=no
1018660484Sobrien  fi
1018760484Sobrienfi
10188218822Sdimrm -fr conftest*
1018960484Sobrien
1019060484Sobrien
10191218822Sdimfi
10192218822Sdimecho "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10193218822Sdimecho "${ECHO_T}$lt_cv_dlopen_self" >&6
1019438889Sjdp
10195218822Sdim    if test "x$lt_cv_dlopen_self" = xyes; then
10196218822Sdim      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10197218822Sdim      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10198218822Sdimecho $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10199218822Sdimif test "${lt_cv_dlopen_self_static+set}" = set; then
10200218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1020160484Sobrienelse
10202218822Sdim  	  if test "$cross_compiling" = yes; then :
10203218822Sdim  lt_cv_dlopen_self_static=cross
10204218822Sdimelse
10205218822Sdim  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10206218822Sdim  lt_status=$lt_dlunknown
10207218822Sdim  cat > conftest.$ac_ext <<_LT_EOF
10208218822Sdim#line 10208 "configure"
10209218822Sdim#include "confdefs.h"
10210218822Sdim
10211218822Sdim#if HAVE_DLFCN_H
10212218822Sdim#include <dlfcn.h>
10213218822Sdim#endif
10214218822Sdim
10215218822Sdim#include <stdio.h>
10216218822Sdim
10217218822Sdim#ifdef RTLD_GLOBAL
10218218822Sdim#  define LT_DLGLOBAL		RTLD_GLOBAL
10219218822Sdim#else
10220218822Sdim#  ifdef DL_GLOBAL
10221218822Sdim#    define LT_DLGLOBAL		DL_GLOBAL
10222218822Sdim#  else
10223218822Sdim#    define LT_DLGLOBAL		0
10224218822Sdim#  endif
10225218822Sdim#endif
10226218822Sdim
10227218822Sdim/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10228218822Sdim   find out it does not work in some platform. */
10229218822Sdim#ifndef LT_DLLAZY_OR_NOW
10230218822Sdim#  ifdef RTLD_LAZY
10231218822Sdim#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10232218822Sdim#  else
10233218822Sdim#    ifdef DL_LAZY
10234218822Sdim#      define LT_DLLAZY_OR_NOW		DL_LAZY
10235218822Sdim#    else
10236218822Sdim#      ifdef RTLD_NOW
10237218822Sdim#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10238218822Sdim#      else
10239218822Sdim#        ifdef DL_NOW
10240218822Sdim#          define LT_DLLAZY_OR_NOW	DL_NOW
10241218822Sdim#        else
10242218822Sdim#          define LT_DLLAZY_OR_NOW	0
10243218822Sdim#        endif
10244218822Sdim#      endif
10245218822Sdim#    endif
10246218822Sdim#  endif
10247218822Sdim#endif
10248218822Sdim
10249218822Sdim#ifdef __cplusplus
10250218822Sdimextern "C" void exit (int);
10251218822Sdim#endif
10252218822Sdim
10253218822Sdimvoid fnord() { int i=42;}
10254218822Sdimint main ()
10255218822Sdim{
10256218822Sdim  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10257218822Sdim  int status = $lt_dlunknown;
10258218822Sdim
10259218822Sdim  if (self)
10260218822Sdim    {
10261218822Sdim      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10262218822Sdim      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10263218822Sdim      /* dlclose (self); */
10264218822Sdim    }
10265218822Sdim  else
10266218822Sdim    puts (dlerror ());
10267218822Sdim
10268218822Sdim    exit (status);
10269218822Sdim}
10270218822Sdim_LT_EOF
10271218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272218822Sdim  (eval $ac_link) 2>&5
10273218822Sdim  ac_status=$?
10274218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275218822Sdim  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10276218822Sdim    (./conftest; exit; ) >&5 2>/dev/null
10277218822Sdim    lt_status=$?
10278218822Sdim    case x$lt_status in
10279218822Sdim      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10280218822Sdim      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10281218822Sdim      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10282218822Sdim    esac
10283218822Sdim  else :
10284218822Sdim    # compilation failed
10285218822Sdim    lt_cv_dlopen_self_static=no
10286218822Sdim  fi
1028760484Sobrienfi
10288218822Sdimrm -fr conftest*
1028938889Sjdp
1029060484Sobrien
10291218822Sdimfi
10292218822Sdimecho "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10293218822Sdimecho "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10294218822Sdim    fi
1029560484Sobrien
10296218822Sdim    CPPFLAGS="$save_CPPFLAGS"
10297218822Sdim    LDFLAGS="$save_LDFLAGS"
10298218822Sdim    LIBS="$save_LIBS"
10299218822Sdim    ;;
10300218822Sdim  esac
1030160484Sobrien
10302218822Sdim  case $lt_cv_dlopen_self in
10303218822Sdim  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10304218822Sdim  *) enable_dlopen_self=unknown ;;
10305218822Sdim  esac
1030660484Sobrien
10307218822Sdim  case $lt_cv_dlopen_self_static in
10308218822Sdim  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10309218822Sdim  *) enable_dlopen_self_static=unknown ;;
10310218822Sdim  esac
10311218822Sdimfi
1031277298Sobrien
1031377298Sobrien
10314218822Sdim
10315218822Sdim
10316218822Sdim
10317218822Sdim
10318218822Sdim
10319218822Sdim
10320218822Sdim
10321218822Sdim
10322218822Sdim
10323218822Sdim
10324218822Sdim
10325218822Sdim
10326218822Sdim
10327218822Sdim
10328218822Sdim
10329218822Sdimstriplib=
10330218822Sdimold_striplib=
10331218822Sdimecho "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10332218822Sdimecho $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10333218822Sdimif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10334218822Sdim  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10335218822Sdim  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10336218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
10337218822Sdimecho "${ECHO_T}yes" >&6
10338218822Sdimelse
10339218822Sdim# FIXME - insert some real tests, host_os isn't really good enough
10340218822Sdim  case $host_os in
10341218822Sdim  darwin*)
10342218822Sdim    if test -n "$STRIP" ; then
10343218822Sdim      striplib="$STRIP -x"
10344218822Sdim      old_striplib="$STRIP -S"
10345218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
10346218822Sdimecho "${ECHO_T}yes" >&6
10347218822Sdim    else
10348218822Sdim      echo "$as_me:$LINENO: result: no" >&5
10349218822Sdimecho "${ECHO_T}no" >&6
10350218822Sdim    fi
10351218822Sdim    ;;
10352218822Sdim  *)
10353218822Sdim    echo "$as_me:$LINENO: result: no" >&5
10354218822Sdimecho "${ECHO_T}no" >&6
10355218822Sdim    ;;
10356218822Sdim  esac
10357218822Sdimfi
10358218822Sdim
10359218822Sdim
10360218822Sdim
10361218822Sdim
10362218822Sdim
10363218822Sdim
10364218822Sdim
10365218822Sdim
10366218822Sdim
10367218822Sdim
10368218822Sdim
10369218822Sdim
10370218822Sdim  # Report which library types will actually be built
10371218822Sdim  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10372218822Sdimecho $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10373218822Sdim  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10374218822Sdimecho "${ECHO_T}$can_build_shared" >&6
10375218822Sdim
10376218822Sdim  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10377218822Sdimecho $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10378218822Sdim  test "$can_build_shared" = "no" && enable_shared=no
10379218822Sdim
10380218822Sdim  # On AIX, shared libraries and static libraries use the same namespace, and
10381218822Sdim  # are all built from PIC.
10382218822Sdim  case $host_os in
10383218822Sdim  aix3*)
10384218822Sdim    test "$enable_shared" = yes && enable_static=no
10385218822Sdim    if test -n "$RANLIB"; then
10386218822Sdim      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10387218822Sdim      postinstall_cmds='$RANLIB $lib'
10388218822Sdim    fi
10389218822Sdim    ;;
10390218822Sdim
10391218822Sdim  aix4* | aix5*)
10392218822Sdim    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10393218822Sdim      test "$enable_shared" = yes && enable_static=no
10394218822Sdim    fi
10395218822Sdim    ;;
10396218822Sdim  esac
10397218822Sdim  echo "$as_me:$LINENO: result: $enable_shared" >&5
10398218822Sdimecho "${ECHO_T}$enable_shared" >&6
10399218822Sdim
10400218822Sdim  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10401218822Sdimecho $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10402218822Sdim  # Make sure either enable_shared or enable_static is yes.
10403218822Sdim  test "$enable_shared" = yes || enable_static=yes
10404218822Sdim  echo "$as_me:$LINENO: result: $enable_static" >&5
10405218822Sdimecho "${ECHO_T}$enable_static" >&6
10406218822Sdim
10407218822Sdim
10408218822Sdim
10409218822Sdim
10410218822Sdimfi
10411218822Sdimac_ext=c
10412218822Sdimac_cpp='$CPP $CPPFLAGS'
10413218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10414218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10415218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
10416218822Sdim
10417218822SdimCC="$lt_save_CC"
10418218822Sdim
10419218822Sdim
10420218822Sdim
10421218822Sdim
10422218822Sdim
10423218822Sdim
10424218822Sdim
10425218822Sdim
10426218822Sdim
10427218822Sdim
10428218822Sdim
10429218822Sdim
10430218822Sdim
10431218822Sdim                  ac_config_commands="$ac_config_commands libtool"
10432218822Sdim
10433218822Sdim
10434218822Sdim
10435218822Sdim
10436218822Sdim# Only expand once:
10437218822Sdim
10438218822Sdim
10439218822Sdim
1044038889Sjdp# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1044138889Sjdpif test "${enable_64_bit_bfd+set}" = set; then
1044238889Sjdp  enableval="$enable_64_bit_bfd"
1044338889Sjdp  case "${enableval}" in
1044438889Sjdp  yes)  want64=true  ;;
1044538889Sjdp  no)   want64=false ;;
10446218822Sdim  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10447218822Sdimecho "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10448218822Sdim   { (exit 1); exit 1; }; } ;;
1044938889Sjdpesac
1045038889Sjdpelse
1045138889Sjdp  want64=false
10452218822Sdimfi; # Check whether --enable-targets or --disable-targets was given.
1045338889Sjdpif test "${enable_targets+set}" = set; then
1045438889Sjdp  enableval="$enable_targets"
1045538889Sjdp  case "${enableval}" in
10456218822Sdim  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10457218822Sdimecho "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10458218822Sdim   { (exit 1); exit 1; }; }
1045938889Sjdp            ;;
1046038889Sjdp  no)       enable_targets= ;;
1046138889Sjdp  *)        enable_targets=$enableval ;;
1046238889Sjdpesac
10463218822Sdimfi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1046438889Sjdpif test "${enable_commonbfdlib+set}" = set; then
1046538889Sjdp  enableval="$enable_commonbfdlib"
1046638889Sjdp  case "${enableval}" in
1046738889Sjdp  yes) commonbfdlib=true ;;
1046838889Sjdp  no)  commonbfdlib=false ;;
10469218822Sdim  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10470218822Sdimecho "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10471218822Sdim   { (exit 1); exit 1; }; } ;;
1047238889Sjdpesac
10473218822Sdimfi;
1047438889Sjdp# Check whether --with-mmap or --without-mmap was given.
1047538889Sjdpif test "${with_mmap+set}" = set; then
1047638889Sjdp  withval="$with_mmap"
1047738889Sjdp  case "${withval}" in
1047838889Sjdp  yes)  want_mmap=true ;;
1047938889Sjdp  no)   want_mmap=false ;;
10480218822Sdim  *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10481218822Sdimecho "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10482218822Sdim   { (exit 1); exit 1; }; } ;;
1048338889Sjdpesac
1048438889Sjdpelse
1048538889Sjdp  want_mmap=false
10486218822Sdimfi;
10487218822Sdim# Check whether --enable-secureplt or --disable-secureplt was given.
10488218822Sdimif test "${enable_secureplt+set}" = set; then
10489218822Sdim  enableval="$enable_secureplt"
10490218822Sdim  case "${enableval}" in
10491218822Sdim  yes)  use_secureplt=true  ;;
10492218822Sdim  no)   use_secureplt=false ;;
10493218822Sdim  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10494218822Sdimecho "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10495218822Sdim   { (exit 1); exit 1; }; } ;;
10496218822Sdimesac
10497218822Sdimelse
10498218822Sdim  use_secureplt=false
10499218822Sdimfi; if test $use_secureplt = true; then
10500218822Sdim
10501218822Sdimcat >>confdefs.h <<\_ACEOF
10502218822Sdim#define USE_SECUREPLT 1
10503218822Sdim_ACEOF
10504218822Sdim
1050538889Sjdpfi
1050638889Sjdp
10507218822SdimDEBUGDIR=${libdir}/debug
10508218822Sdim
10509218822Sdim
10510218822Sdim# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10511218822Sdimif test "${with_separate_debug_dir+set}" = set; then
10512218822Sdim  withval="$with_separate_debug_dir"
10513218822Sdim  DEBUGDIR="${withval}"
10514218822Sdimfi;
10515218822Sdim
10516218822Sdim
10517218822Sdim
10518218822Sdim
10519218822Sdim# Check whether --with-pkgversion or --without-pkgversion was given.
10520218822Sdimif test "${with_pkgversion+set}" = set; then
10521218822Sdim  withval="$with_pkgversion"
10522218822Sdim  case "$withval" in
10523218822Sdim      yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10524218822Sdimecho "$as_me: error: package version not specified" >&2;}
10525218822Sdim   { (exit 1); exit 1; }; } ;;
10526218822Sdim      no)  PKGVERSION= ;;
10527218822Sdim      *)   PKGVERSION="($withval) " ;;
10528218822Sdim     esac
10529218822Sdimelse
10530218822Sdim  PKGVERSION="(GNU Binutils) "
10531218822Sdim
10532218822Sdimfi;
10533218822Sdim
10534218822Sdim
10535218822Sdim
10536218822Sdim
10537218822Sdim# Check whether --with-bugurl or --without-bugurl was given.
10538218822Sdimif test "${with_bugurl+set}" = set; then
10539218822Sdim  withval="$with_bugurl"
10540218822Sdim  case "$withval" in
10541218822Sdim      yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10542218822Sdimecho "$as_me: error: bug URL not specified" >&2;}
10543218822Sdim   { (exit 1); exit 1; }; } ;;
10544218822Sdim      no)  BUGURL=
10545218822Sdim	   ;;
10546218822Sdim      *)   BUGURL="$withval"
10547218822Sdim	   ;;
10548218822Sdim     esac
10549218822Sdimelse
10550218822Sdim  BUGURL="http://www.sourceware.org/bugzilla/"
10551218822Sdim
10552218822Sdimfi;
10553218822Sdim  case ${BUGURL} in
10554218822Sdim  "")
10555218822Sdim    REPORT_BUGS_TO=
10556218822Sdim    REPORT_BUGS_TEXI=
10557218822Sdim    ;;
10558218822Sdim  *)
10559218822Sdim    REPORT_BUGS_TO="<$BUGURL>"
10560218822Sdim    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10561218822Sdim    ;;
10562218822Sdim  esac;
10563218822Sdim
10564218822Sdim
10565218822Sdim
10566218822Sdim
10567218822Sdim
10568218822SdimGCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10569218822Sdim
10570218822Sdim# Check whether --enable-werror or --disable-werror was given.
10571218822Sdimif test "${enable_werror+set}" = set; then
10572218822Sdim  enableval="$enable_werror"
10573218822Sdim  case "${enableval}" in
10574218822Sdim     yes | y) ERROR_ON_WARNING="yes" ;;
10575218822Sdim     no | n)  ERROR_ON_WARNING="no" ;;
10576218822Sdim     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10577218822Sdimecho "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10578218822Sdim   { (exit 1); exit 1; }; } ;;
10579218822Sdim   esac
10580218822Sdimfi;
10581218822Sdim
10582218822Sdim# Enable -Werror by default when using gcc
10583218822Sdimif test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10584218822Sdim    ERROR_ON_WARNING=yes
10585218822Sdimfi
10586218822Sdim
10587218822SdimNO_WERROR=
10588218822Sdimif test "${ERROR_ON_WARNING}" = yes ; then
10589218822Sdim    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10590218822Sdim    NO_WERROR="-Wno-error"
10591218822Sdimfi
10592218822Sdim
10593218822Sdimif test "${GCC}" = yes ; then
10594218822Sdim  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10595218822Sdimfi
10596218822Sdim
1059777298Sobrien# Check whether --enable-build-warnings or --disable-build-warnings was given.
1059877298Sobrienif test "${enable_build_warnings+set}" = set; then
1059977298Sobrien  enableval="$enable_build_warnings"
1060077298Sobrien  case "${enableval}" in
10601218822Sdim  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10602218822Sdim  no)	if test "${GCC}" = yes ; then
10603218822Sdim	  WARN_CFLAGS="-w"
10604218822Sdim	fi;;
1060577298Sobrien  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10606218822Sdim        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
1060777298Sobrien  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10608218822Sdim        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10609218822Sdim  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1061077298Sobrienesac
10611218822Sdimfi;
10612218822Sdim
10613218822Sdimif test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10614218822Sdim  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
1061577298Sobrienfi
1061638889Sjdp
1061738889Sjdp
1061838889Sjdp
1061938889Sjdp
1062077298Sobrien
10621218822Sdim          ac_config_headers="$ac_config_headers config.h:config.in"
1062277298Sobrien
10623218822Sdim
1062438889Sjdpif test -z "$target" ; then
10625218822Sdim    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10626218822Sdimecho "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10627218822Sdim   { (exit 1); exit 1; }; }
1062838889Sjdpfi
1062938889Sjdp
10630218822Sdimecho "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10631218822Sdimecho $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1063238889Sjdp    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1063338889Sjdpif test "${enable_maintainer_mode+set}" = set; then
1063438889Sjdp  enableval="$enable_maintainer_mode"
1063538889Sjdp  USE_MAINTAINER_MODE=$enableval
1063638889Sjdpelse
1063738889Sjdp  USE_MAINTAINER_MODE=no
10638218822Sdimfi;
10639218822Sdim  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10640218822Sdimecho "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1064138889Sjdp
1064238889Sjdp
1064360484Sobrienif test $USE_MAINTAINER_MODE = yes; then
1064460484Sobrien  MAINTAINER_MODE_TRUE=
1064560484Sobrien  MAINTAINER_MODE_FALSE='#'
1064660484Sobrienelse
1064760484Sobrien  MAINTAINER_MODE_TRUE='#'
1064860484Sobrien  MAINTAINER_MODE_FALSE=
1064960484Sobrienfi
10650218822Sdim
1065160484Sobrien  MAINT=$MAINTAINER_MODE_TRUE
1065260484Sobrien
10653218822Sdim
10654218822Sdim
10655218822Sdim
10656218822Sdimif false; then
10657218822Sdim  GENINSRC_NEVER_TRUE=
10658218822Sdim  GENINSRC_NEVER_FALSE='#'
10659218822Sdimelse
10660218822Sdim  GENINSRC_NEVER_TRUE='#'
10661218822Sdim  GENINSRC_NEVER_FALSE=
10662218822Sdimfi
10663218822Sdim
10664218822Sdim case ${build_alias} in
10665218822Sdim  "") build_noncanonical=${build} ;;
10666218822Sdim  *) build_noncanonical=${build_alias} ;;
10667218822Sdimesac
10668218822Sdim
10669218822Sdim case ${host_alias} in
10670218822Sdim  "") host_noncanonical=${build_noncanonical} ;;
10671218822Sdim  *) host_noncanonical=${host_alias} ;;
10672218822Sdimesac
10673218822Sdim
10674218822Sdim case ${target_alias} in
10675218822Sdim  "") target_noncanonical=${host_noncanonical} ;;
10676218822Sdim  *) target_noncanonical=${target_alias} ;;
10677218822Sdimesac
10678218822Sdim
10679218822Sdimecho "$as_me:$LINENO: checking whether to install libbfd" >&5
10680218822Sdimecho $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10681104834Sobrien  # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10682104834Sobrienif test "${enable_install_libbfd+set}" = set; then
10683104834Sobrien  enableval="$enable_install_libbfd"
10684104834Sobrien  install_libbfd_p=$enableval
10685104834Sobrienelse
10686130561Sobrien  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10687104834Sobrien        install_libbfd_p=yes
10688104834Sobrien      else
10689104834Sobrien        install_libbfd_p=no
10690104834Sobrien      fi
10691218822Sdimfi;
10692218822Sdim  echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10693218822Sdimecho "${ECHO_T}$install_libbfd_p" >&6
1069438889Sjdp
1069560484Sobrien
10696104834Sobrienif test $install_libbfd_p = yes; then
10697104834Sobrien  INSTALL_LIBBFD_TRUE=
10698104834Sobrien  INSTALL_LIBBFD_FALSE='#'
10699104834Sobrienelse
10700104834Sobrien  INSTALL_LIBBFD_TRUE='#'
10701104834Sobrien  INSTALL_LIBBFD_FALSE=
10702104834Sobrienfi
10703218822Sdim
10704218822Sdim  # Need _noncanonical variables for this.
10705218822Sdim
10706218822Sdim
10707218822Sdim
10708218822Sdim
10709104834Sobrien  # libbfd.a is a host library containing target dependent code
10710104834Sobrien  bfdlibdir='$(libdir)'
10711104834Sobrien  bfdincludedir='$(includedir)'
10712104834Sobrien  if test "${host}" != "${target}"; then
10713218822Sdim    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10714218822Sdim    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10715104834Sobrien  fi
10716104834Sobrien
10717104834Sobrien
10718104834Sobrien
10719104834Sobrien
1072038889Sjdp
1072138889Sjdp
1072238889Sjdphost64=false
1072338889Sjdptarget64=false
1072489857Sobrienbfd_default_target_size=32
1072538889Sjdp
1072638889Sjdp# host stuff:
1072738889Sjdp
10728218822SdimALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
10729218822Sdim# If we haven't got the data from the intl directory,
10730218822Sdim# assume NLS is disabled.
10731218822SdimUSE_NLS=no
10732218822SdimLIBINTL=
10733218822SdimLIBINTL_DEP=
10734218822SdimINCINTL=
10735218822SdimXGETTEXT=
10736218822SdimGMSGFMT=
10737218822SdimPOSUB=
10738218822Sdim
10739218822Sdimif test -f  ../intl/config.intl; then
10740218822Sdim  .  ../intl/config.intl
10741218822Sdimfi
10742218822Sdimecho "$as_me:$LINENO: checking whether NLS is requested" >&5
10743218822Sdimecho $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10744218822Sdimif test x"$USE_NLS" != xyes; then
10745218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10746218822Sdimecho "${ECHO_T}no" >&6
1074738889Sjdpelse
10748218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
10749218822Sdimecho "${ECHO_T}yes" >&6
10750218822Sdim
10751218822Sdimcat >>confdefs.h <<\_ACEOF
10752218822Sdim#define ENABLE_NLS 1
10753218822Sdim_ACEOF
10754218822Sdim
10755218822Sdim
10756218822Sdim  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10757218822Sdimecho $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10758218822Sdim  # Look for .po and .gmo files in the source directory.
10759218822Sdim  CATALOGS=
10760218822Sdim  XLINGUAS=
10761218822Sdim  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10762218822Sdim    # If there aren't any .gmo files the shell will give us the
10763218822Sdim    # literal string "../path/to/srcdir/po/*.gmo" which has to be
10764218822Sdim    # weeded out.
10765218822Sdim    case "$cat" in *\**)
10766218822Sdim      continue;;
10767218822Sdim    esac
10768218822Sdim    # The quadruple backslash is collapsed to a double backslash
10769218822Sdim    # by the backticks, then collapsed again by the double quotes,
10770218822Sdim    # leaving us with one backslash in the sed expression (right
10771218822Sdim    # before the dot that mustn't act as a wildcard).
10772218822Sdim    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10773218822Sdim    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10774218822Sdim    # The user is allowed to set LINGUAS to a list of languages to
10775218822Sdim    # install catalogs for.  If it's empty that means "all of them."
10776218822Sdim    if test "x$LINGUAS" = x; then
10777218822Sdim      CATALOGS="$CATALOGS $cat"
10778218822Sdim      XLINGUAS="$XLINGUAS $lang"
10779218822Sdim    else
10780218822Sdim      case "$LINGUAS" in *$lang*)
10781218822Sdim        CATALOGS="$CATALOGS $cat"
10782218822Sdim        XLINGUAS="$XLINGUAS $lang"
10783218822Sdim        ;;
10784218822Sdim      esac
1078538889Sjdp    fi
1078638889Sjdp  done
10787218822Sdim  LINGUAS="$XLINGUAS"
10788218822Sdim  echo "$as_me:$LINENO: result: $LINGUAS" >&5
10789218822Sdimecho "${ECHO_T}$LINGUAS" >&6
10790218822Sdim
10791218822Sdim
10792218822Sdim    DATADIRNAME=share
10793218822Sdim
10794218822Sdim  INSTOBJEXT=.mo
10795218822Sdim
10796218822Sdim  GENCAT=gencat
10797218822Sdim
10798218822Sdim  CATOBJEXT=.gmo
10799218822Sdim
1080038889Sjdpfi
10801218822Sdim
10802218822Sdim        MKINSTALLDIRS=
10803218822Sdim  if test -n "$ac_aux_dir"; then
10804218822Sdim    case "$ac_aux_dir" in
10805218822Sdim      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10806218822Sdim      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10807218822Sdim    esac
10808218822Sdim  fi
10809218822Sdim  if test -z "$MKINSTALLDIRS"; then
10810218822Sdim    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10811218822Sdim  fi
10812218822Sdim
10813218822Sdim
10814218822Sdim
10815218822Sdim  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10816218822Sdimecho $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10817218822Sdim    # Check whether --enable-nls or --disable-nls was given.
10818218822Sdimif test "${enable_nls+set}" = set; then
10819218822Sdim  enableval="$enable_nls"
10820218822Sdim  USE_NLS=$enableval
1082138889Sjdpelse
10822218822Sdim  USE_NLS=yes
10823218822Sdimfi;
10824218822Sdim  echo "$as_me:$LINENO: result: $USE_NLS" >&5
10825218822Sdimecho "${ECHO_T}$USE_NLS" >&6
1082638889Sjdp
10827218822Sdim
10828218822Sdim
10829218822Sdim
10830218822Sdim
10831218822Sdim
10832218822Sdim# Prepare PATH_SEPARATOR.
10833218822Sdim# The user is always right.
10834218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
10835218822Sdim  echo "#! /bin/sh" >conf$$.sh
10836218822Sdim  echo  "exit 0"   >>conf$$.sh
10837218822Sdim  chmod +x conf$$.sh
10838218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10839218822Sdim    PATH_SEPARATOR=';'
10840218822Sdim  else
10841218822Sdim    PATH_SEPARATOR=:
1084233965Sjdp  fi
10843218822Sdim  rm -f conf$$.sh
1084433965Sjdpfi
10845218822Sdim
10846218822Sdim# Find out how to test for executable files. Don't use a zero-byte file,
10847218822Sdim# as systems may use methods other than mode bits to determine executability.
10848218822Sdimcat >conf$$.file <<_ASEOF
10849218822Sdim#! /bin/sh
10850218822Sdimexit 0
10851218822Sdim_ASEOF
10852218822Sdimchmod +x conf$$.file
10853218822Sdimif test -x conf$$.file >/dev/null 2>&1; then
10854218822Sdim  ac_executable_p="test -x"
1085538889Sjdpelse
10856218822Sdim  ac_executable_p="test -f"
1085738889Sjdpfi
10858218822Sdimrm -f conf$$.file
1085933965Sjdp
10860218822Sdim# Extract the first word of "msgfmt", so it can be a program name with args.
10861218822Sdimset dummy msgfmt; ac_word=$2
10862218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10863218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10864218822Sdimif test "${ac_cv_path_MSGFMT+set}" = set; then
10865218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1086660484Sobrienelse
10867218822Sdim  case "$MSGFMT" in
10868218822Sdim  [\\/]* | ?:[\\/]*)
10869218822Sdim    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10870218822Sdim    ;;
10871218822Sdim  *)
10872218822Sdim    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10873218822Sdim    for ac_dir in $PATH; do
10874218822Sdim      IFS="$ac_save_IFS"
10875218822Sdim      test -z "$ac_dir" && ac_dir=.
10876218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
10877218822Sdim        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10878218822Sdim          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10879218822Sdim     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10880218822Sdim            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10881218822Sdim            break 2
10882218822Sdim          fi
10883218822Sdim        fi
10884218822Sdim      done
10885218822Sdim    done
10886218822Sdim    IFS="$ac_save_IFS"
10887218822Sdim  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10888218822Sdim    ;;
10889218822Sdimesac
10890218822Sdimfi
10891218822SdimMSGFMT="$ac_cv_path_MSGFMT"
10892218822Sdimif test "$MSGFMT" != ":"; then
10893218822Sdim  echo "$as_me:$LINENO: result: $MSGFMT" >&5
10894218822Sdimecho "${ECHO_T}$MSGFMT" >&6
1089560484Sobrienelse
10896218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10897218822Sdimecho "${ECHO_T}no" >&6
1089860484Sobrienfi
10899218822Sdim
10900218822Sdim  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10901218822Sdimset dummy gmsgfmt; ac_word=$2
10902218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10903218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10904218822Sdimif test "${ac_cv_path_GMSGFMT+set}" = set; then
10905218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1090660484Sobrienelse
10907218822Sdim  case $GMSGFMT in
10908218822Sdim  [\\/]* | ?:[\\/]*)
10909218822Sdim  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10910218822Sdim  ;;
10911218822Sdim  *)
10912218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913218822Sdimfor as_dir in $PATH
10914218822Sdimdo
10915218822Sdim  IFS=$as_save_IFS
10916218822Sdim  test -z "$as_dir" && as_dir=.
10917218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10918218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10919218822Sdim    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10920218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10921218822Sdim    break 2
1092260484Sobrien  fi
10923218822Sdimdone
10924218822Sdimdone
10925218822Sdim
10926218822Sdim  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10927218822Sdim  ;;
10928218822Sdimesac
1092938889Sjdpfi
10930218822SdimGMSGFMT=$ac_cv_path_GMSGFMT
1093133965Sjdp
10932218822Sdimif test -n "$GMSGFMT"; then
10933218822Sdim  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10934218822Sdimecho "${ECHO_T}$GMSGFMT" >&6
10935218822Sdimelse
10936218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10937218822Sdimecho "${ECHO_T}no" >&6
10938218822Sdimfi
1093933965Sjdp
1094033965Sjdp
1094160484Sobrien
10942218822Sdim# Prepare PATH_SEPARATOR.
10943218822Sdim# The user is always right.
10944218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
10945218822Sdim  echo "#! /bin/sh" >conf$$.sh
10946218822Sdim  echo  "exit 0"   >>conf$$.sh
10947218822Sdim  chmod +x conf$$.sh
10948218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10949218822Sdim    PATH_SEPARATOR=';'
1095038889Sjdp  else
10951218822Sdim    PATH_SEPARATOR=:
1095238889Sjdp  fi
10953218822Sdim  rm -f conf$$.sh
1095438889Sjdpfi
1095533965Sjdp
10956218822Sdim# Find out how to test for executable files. Don't use a zero-byte file,
10957218822Sdim# as systems may use methods other than mode bits to determine executability.
10958218822Sdimcat >conf$$.file <<_ASEOF
10959218822Sdim#! /bin/sh
10960218822Sdimexit 0
10961218822Sdim_ASEOF
10962218822Sdimchmod +x conf$$.file
10963218822Sdimif test -x conf$$.file >/dev/null 2>&1; then
10964218822Sdim  ac_executable_p="test -x"
10965218822Sdimelse
10966218822Sdim  ac_executable_p="test -f"
1096738889Sjdpfi
10968218822Sdimrm -f conf$$.file
1096933965Sjdp
10970218822Sdim# Extract the first word of "xgettext", so it can be a program name with args.
10971218822Sdimset dummy xgettext; ac_word=$2
10972218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10973218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10974218822Sdimif test "${ac_cv_path_XGETTEXT+set}" = set; then
10975218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1097638889Sjdpelse
10977218822Sdim  case "$XGETTEXT" in
10978218822Sdim  [\\/]* | ?:[\\/]*)
10979218822Sdim    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10980218822Sdim    ;;
10981218822Sdim  *)
10982218822Sdim    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10983218822Sdim    for ac_dir in $PATH; do
10984218822Sdim      IFS="$ac_save_IFS"
10985218822Sdim      test -z "$ac_dir" && ac_dir=.
10986218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
10987218822Sdim        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10988218822Sdim          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10989218822Sdim     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10990218822Sdim            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10991218822Sdim            break 2
10992218822Sdim          fi
10993218822Sdim        fi
10994218822Sdim      done
10995218822Sdim    done
10996218822Sdim    IFS="$ac_save_IFS"
10997218822Sdim  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10998218822Sdim    ;;
10999218822Sdimesac
11000218822Sdimfi
11001218822SdimXGETTEXT="$ac_cv_path_XGETTEXT"
11002218822Sdimif test "$XGETTEXT" != ":"; then
11003218822Sdim  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11004218822Sdimecho "${ECHO_T}$XGETTEXT" >&6
1100538889Sjdpelse
11006218822Sdim  echo "$as_me:$LINENO: result: no" >&5
11007218822Sdimecho "${ECHO_T}no" >&6
1100838889Sjdpfi
11009218822Sdim
11010218822Sdim    rm -f messages.po
11011218822Sdim
11012218822Sdim
11013218822Sdim# Prepare PATH_SEPARATOR.
11014218822Sdim# The user is always right.
11015218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
11016218822Sdim  echo "#! /bin/sh" >conf$$.sh
11017218822Sdim  echo  "exit 0"   >>conf$$.sh
11018218822Sdim  chmod +x conf$$.sh
11019218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11020218822Sdim    PATH_SEPARATOR=';'
11021218822Sdim  else
11022218822Sdim    PATH_SEPARATOR=:
11023218822Sdim  fi
11024218822Sdim  rm -f conf$$.sh
1102538889Sjdpfi
1102633965Sjdp
11027218822Sdim# Find out how to test for executable files. Don't use a zero-byte file,
11028218822Sdim# as systems may use methods other than mode bits to determine executability.
11029218822Sdimcat >conf$$.file <<_ASEOF
11030218822Sdim#! /bin/sh
11031218822Sdimexit 0
11032218822Sdim_ASEOF
11033218822Sdimchmod +x conf$$.file
11034218822Sdimif test -x conf$$.file >/dev/null 2>&1; then
11035218822Sdim  ac_executable_p="test -x"
1103660484Sobrienelse
11037218822Sdim  ac_executable_p="test -f"
1103860484Sobrienfi
11039218822Sdimrm -f conf$$.file
1104060484Sobrien
11041218822Sdim# Extract the first word of "msgmerge", so it can be a program name with args.
11042218822Sdimset dummy msgmerge; ac_word=$2
11043218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
11044218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11045218822Sdimif test "${ac_cv_path_MSGMERGE+set}" = set; then
11046218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1104733965Sjdpelse
11048218822Sdim  case "$MSGMERGE" in
11049218822Sdim  [\\/]* | ?:[\\/]*)
11050218822Sdim    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11051218822Sdim    ;;
11052218822Sdim  *)
11053218822Sdim    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11054218822Sdim    for ac_dir in $PATH; do
11055218822Sdim      IFS="$ac_save_IFS"
11056218822Sdim      test -z "$ac_dir" && ac_dir=.
11057218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
11058218822Sdim        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11059218822Sdim          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11060218822Sdim            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11061218822Sdim            break 2
11062218822Sdim          fi
11063218822Sdim        fi
11064218822Sdim      done
11065218822Sdim    done
11066218822Sdim    IFS="$ac_save_IFS"
11067218822Sdim  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11068218822Sdim    ;;
11069218822Sdimesac
11070218822Sdimfi
11071218822SdimMSGMERGE="$ac_cv_path_MSGMERGE"
11072218822Sdimif test "$MSGMERGE" != ":"; then
11073218822Sdim  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11074218822Sdimecho "${ECHO_T}$MSGMERGE" >&6
1107538889Sjdpelse
11076218822Sdim  echo "$as_me:$LINENO: result: no" >&5
11077218822Sdimecho "${ECHO_T}no" >&6
1107833965Sjdpfi
1107933965Sjdp
1108033965Sjdp
11081218822Sdim      if test "$GMSGFMT" != ":"; then
11082218822Sdim            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11083218822Sdim       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11084218822Sdim      : ;
11085218822Sdim    else
11086218822Sdim      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11087218822Sdim      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11088218822Sdimecho "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11089218822Sdim      GMSGFMT=":"
11090218822Sdim    fi
1109160484Sobrien  fi
11092218822Sdim
11093218822Sdim      if test "$XGETTEXT" != ":"; then
11094218822Sdim            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11095218822Sdim       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11096218822Sdim      : ;
11097218822Sdim    else
11098218822Sdim      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11099218822Sdimecho "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11100218822Sdim      XGETTEXT=":"
11101218822Sdim    fi
11102218822Sdim        rm -f messages.po
11103218822Sdim  fi
11104218822Sdim
11105218822Sdim            ac_config_commands="$ac_config_commands default-1"
11106218822Sdim
11107218822Sdim
11108218822Sdim
11109218822Sdim# Permit host specific settings.
11110218822Sdim. ${srcdir}/configure.host
11111218822Sdim
11112218822Sdim
11113218822Sdim# Find a good install program.  We prefer a C program (faster),
11114218822Sdim# so one script is as good as another.  But avoid the broken or
11115218822Sdim# incompatible versions:
11116218822Sdim# SysV /etc/install, /usr/sbin/install
11117218822Sdim# SunOS /usr/etc/install
11118218822Sdim# IRIX /sbin/install
11119218822Sdim# AIX /bin/install
11120218822Sdim# AmigaOS /C/install, which installs bootblocks on floppy discs
11121218822Sdim# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11122218822Sdim# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11123218822Sdim# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11124218822Sdim# OS/2's system install, which has a completely different semantic
11125218822Sdim# ./install, which can be erroneously created by make from ./install.sh.
11126218822Sdimecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11127218822Sdimecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11128218822Sdimif test -z "$INSTALL"; then
11129218822Sdimif test "${ac_cv_path_install+set}" = set; then
11130218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1113160484Sobrienelse
11132218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133218822Sdimfor as_dir in $PATH
11134218822Sdimdo
11135218822Sdim  IFS=$as_save_IFS
11136218822Sdim  test -z "$as_dir" && as_dir=.
11137218822Sdim  # Account for people who put trailing slashes in PATH elements.
11138218822Sdimcase $as_dir/ in
11139218822Sdim  ./ | .// | /cC/* | \
11140218822Sdim  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11141218822Sdim  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11142218822Sdim  /usr/ucb/* ) ;;
11143218822Sdim  *)
11144218822Sdim    # OSF1 and SCO ODT 3.0 have their own names for install.
11145218822Sdim    # Don't use installbsd from OSF since it installs stuff as root
11146218822Sdim    # by default.
11147218822Sdim    for ac_prog in ginstall scoinst install; do
11148218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
11149218822Sdim	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11150218822Sdim	  if test $ac_prog = install &&
11151218822Sdim	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11152218822Sdim	    # AIX install.  It has an incompatible calling convention.
11153218822Sdim	    :
11154218822Sdim	  elif test $ac_prog = install &&
11155218822Sdim	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11156218822Sdim	    # program-specific install script used by HP pwplus--don't use.
11157218822Sdim	    :
11158218822Sdim	  else
11159218822Sdim	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11160218822Sdim	    break 3
11161218822Sdim	  fi
11162218822Sdim	fi
11163218822Sdim      done
11164218822Sdim    done
11165218822Sdim    ;;
11166218822Sdimesac
11167218822Sdimdone
11168218822Sdim
11169218822Sdim
11170218822Sdimfi
11171218822Sdim  if test "${ac_cv_path_install+set}" = set; then
11172218822Sdim    INSTALL=$ac_cv_path_install
1117360484Sobrien  else
11174218822Sdim    # As a last resort, use the slow shell script.  We don't cache a
11175218822Sdim    # path for INSTALL within a source directory, because that will
11176218822Sdim    # break other packages using the cache if that directory is
11177218822Sdim    # removed, or if the path is relative.
11178218822Sdim    INSTALL=$ac_install_sh
1117938889Sjdp  fi
1118060484Sobrienfi
11181218822Sdimecho "$as_me:$LINENO: result: $INSTALL" >&5
11182218822Sdimecho "${ECHO_T}$INSTALL" >&6
1118360484Sobrien
11184218822Sdim# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11185218822Sdim# It thinks the first close brace ends the variable substitution.
11186218822Sdimtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1118760484Sobrien
11188218822Sdimtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11189218822Sdim
11190218822Sdimtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11191218822Sdim
11192218822Sdim
11193218822SdimBFD_HOST_64BIT_LONG=0
11194218822SdimBFD_HOST_LONG_LONG=0
11195218822SdimBFD_HOST_64_BIT_DEFINED=0
11196218822SdimBFD_HOST_64_BIT=
11197218822SdimBFD_HOST_U_64_BIT=
11198218822Sdim
11199218822Sdimecho "$as_me:$LINENO: checking for long long" >&5
11200218822Sdimecho $ECHO_N "checking for long long... $ECHO_C" >&6
11201218822Sdimif test "${bfd_cv_has_long_long+set}" = set; then
11202218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1120338889Sjdpelse
11204218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11205218822Sdim/* confdefs.h.  */
11206218822Sdim_ACEOF
11207218822Sdimcat confdefs.h >>conftest.$ac_ext
11208218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11209218822Sdim/* end confdefs.h.  */
11210218822Sdim
11211218822Sdimint
11212218822Sdimmain ()
11213218822Sdim{
11214218822Sdimunsigned long long ll = 18446744073709551615ULL;
11215218822Sdim  ;
11216218822Sdim  return 0;
11217218822Sdim}
11218218822Sdim_ACEOF
11219218822Sdimrm -f conftest.$ac_objext
11220218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221218822Sdim  (eval $ac_compile) 2>conftest.er1
11222218822Sdim  ac_status=$?
11223218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11224218822Sdim  rm -f conftest.er1
11225218822Sdim  cat conftest.err >&5
11226218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227218822Sdim  (exit $ac_status); } &&
11228218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11229218822Sdim			 || test ! -s conftest.err'
11230218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231218822Sdim  (eval $ac_try) 2>&5
11232218822Sdim  ac_status=$?
11233218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234218822Sdim  (exit $ac_status); }; } &&
11235218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11236218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237218822Sdim  (eval $ac_try) 2>&5
11238218822Sdim  ac_status=$?
11239218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240218822Sdim  (exit $ac_status); }; }; then
11241218822Sdim  bfd_cv_has_long_long=yes
1124260484Sobrienelse
11243218822Sdim  echo "$as_me: failed program was:" >&5
11244218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11245218822Sdim
11246218822Sdimbfd_cv_has_long_long=no
1124738889Sjdpfi
11248218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1124960484Sobrienfi
1125033965Sjdp
11251218822Sdimecho "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
11252218822Sdimecho "${ECHO_T}$bfd_cv_has_long_long" >&6
11253218822Sdimif test $bfd_cv_has_long_long = yes; then
11254218822Sdim  BFD_HOST_LONG_LONG=1
11255218822Sdim  echo "$as_me:$LINENO: checking for long long" >&5
11256218822Sdimecho $ECHO_N "checking for long long... $ECHO_C" >&6
11257218822Sdimif test "${ac_cv_type_long_long+set}" = set; then
11258218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1125977298Sobrienelse
11260218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11261218822Sdim/* confdefs.h.  */
11262218822Sdim_ACEOF
11263218822Sdimcat confdefs.h >>conftest.$ac_ext
11264218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11265218822Sdim/* end confdefs.h.  */
11266218822Sdim$ac_includes_default
11267218822Sdimint
11268218822Sdimmain ()
11269218822Sdim{
11270218822Sdimif ((long long *) 0)
11271218822Sdim  return 0;
11272218822Sdimif (sizeof (long long))
11273218822Sdim  return 0;
11274218822Sdim  ;
11275218822Sdim  return 0;
11276218822Sdim}
11277218822Sdim_ACEOF
11278218822Sdimrm -f conftest.$ac_objext
11279218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11280218822Sdim  (eval $ac_compile) 2>conftest.er1
11281218822Sdim  ac_status=$?
11282218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11283218822Sdim  rm -f conftest.er1
11284218822Sdim  cat conftest.err >&5
11285218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286218822Sdim  (exit $ac_status); } &&
11287218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11288218822Sdim			 || test ! -s conftest.err'
11289218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290218822Sdim  (eval $ac_try) 2>&5
11291218822Sdim  ac_status=$?
11292218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293218822Sdim  (exit $ac_status); }; } &&
11294218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11295218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296218822Sdim  (eval $ac_try) 2>&5
11297218822Sdim  ac_status=$?
11298218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299218822Sdim  (exit $ac_status); }; }; then
11300218822Sdim  ac_cv_type_long_long=yes
1130177298Sobrienelse
11302218822Sdim  echo "$as_me: failed program was:" >&5
11303218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11304218822Sdim
11305218822Sdimac_cv_type_long_long=no
1130677298Sobrienfi
11307218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1130877298Sobrienfi
11309218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11310218822Sdimecho "${ECHO_T}$ac_cv_type_long_long" >&6
11311218822Sdim
11312218822Sdimecho "$as_me:$LINENO: checking size of long long" >&5
11313218822Sdimecho $ECHO_N "checking size of long long... $ECHO_C" >&6
11314218822Sdimif test "${ac_cv_sizeof_long_long+set}" = set; then
11315218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1131677298Sobrienelse
11317218822Sdim  if test "$ac_cv_type_long_long" = yes; then
11318218822Sdim  # The cast to unsigned long works around a bug in the HP C Compiler
11319218822Sdim  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11320218822Sdim  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11321218822Sdim  # This bug is HP SR number 8606223364.
11322218822Sdim  if test "$cross_compiling" = yes; then
11323218822Sdim  # Depending upon the size, compute the lo and hi bounds.
11324218822Sdimcat >conftest.$ac_ext <<_ACEOF
11325218822Sdim/* confdefs.h.  */
11326218822Sdim_ACEOF
11327218822Sdimcat confdefs.h >>conftest.$ac_ext
11328218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11329218822Sdim/* end confdefs.h.  */
11330218822Sdim$ac_includes_default
11331218822Sdimint
11332218822Sdimmain ()
11333218822Sdim{
11334218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11335218822Sdimtest_array [0] = 0
1133677298Sobrien
11337218822Sdim  ;
11338218822Sdim  return 0;
11339218822Sdim}
11340218822Sdim_ACEOF
11341218822Sdimrm -f conftest.$ac_objext
11342218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11343218822Sdim  (eval $ac_compile) 2>conftest.er1
11344218822Sdim  ac_status=$?
11345218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11346218822Sdim  rm -f conftest.er1
11347218822Sdim  cat conftest.err >&5
11348218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349218822Sdim  (exit $ac_status); } &&
11350218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11351218822Sdim			 || test ! -s conftest.err'
11352218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353218822Sdim  (eval $ac_try) 2>&5
11354218822Sdim  ac_status=$?
11355218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356218822Sdim  (exit $ac_status); }; } &&
11357218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11358218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359218822Sdim  (eval $ac_try) 2>&5
11360218822Sdim  ac_status=$?
11361218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362218822Sdim  (exit $ac_status); }; }; then
11363218822Sdim  ac_lo=0 ac_mid=0
11364218822Sdim  while :; do
11365218822Sdim    cat >conftest.$ac_ext <<_ACEOF
11366218822Sdim/* confdefs.h.  */
11367218822Sdim_ACEOF
11368218822Sdimcat confdefs.h >>conftest.$ac_ext
11369218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11370218822Sdim/* end confdefs.h.  */
11371218822Sdim$ac_includes_default
11372218822Sdimint
11373218822Sdimmain ()
11374218822Sdim{
11375218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11376218822Sdimtest_array [0] = 0
11377218822Sdim
11378218822Sdim  ;
11379218822Sdim  return 0;
11380218822Sdim}
11381218822Sdim_ACEOF
11382218822Sdimrm -f conftest.$ac_objext
11383218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384218822Sdim  (eval $ac_compile) 2>conftest.er1
11385218822Sdim  ac_status=$?
11386218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11387218822Sdim  rm -f conftest.er1
11388218822Sdim  cat conftest.err >&5
11389218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390218822Sdim  (exit $ac_status); } &&
11391218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11392218822Sdim			 || test ! -s conftest.err'
11393218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394218822Sdim  (eval $ac_try) 2>&5
11395218822Sdim  ac_status=$?
11396218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397218822Sdim  (exit $ac_status); }; } &&
11398218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11399218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400218822Sdim  (eval $ac_try) 2>&5
11401218822Sdim  ac_status=$?
11402218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403218822Sdim  (exit $ac_status); }; }; then
11404218822Sdim  ac_hi=$ac_mid; break
1140560484Sobrienelse
11406218822Sdim  echo "$as_me: failed program was:" >&5
11407218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11408218822Sdim
11409218822Sdimac_lo=`expr $ac_mid + 1`
11410218822Sdim		    if test $ac_lo -le $ac_mid; then
11411218822Sdim		      ac_lo= ac_hi=
11412218822Sdim		      break
11413218822Sdim		    fi
11414218822Sdim		    ac_mid=`expr 2 '*' $ac_mid + 1`
11415218822Sdimfi
11416218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11417218822Sdim  done
1141860484Sobrienelse
11419218822Sdim  echo "$as_me: failed program was:" >&5
11420218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1142133965Sjdp
11422218822Sdimcat >conftest.$ac_ext <<_ACEOF
11423218822Sdim/* confdefs.h.  */
11424218822Sdim_ACEOF
11425218822Sdimcat confdefs.h >>conftest.$ac_ext
11426218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11427218822Sdim/* end confdefs.h.  */
11428218822Sdim$ac_includes_default
11429218822Sdimint
11430218822Sdimmain ()
11431218822Sdim{
11432218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11433218822Sdimtest_array [0] = 0
11434218822Sdim
11435218822Sdim  ;
11436218822Sdim  return 0;
11437218822Sdim}
11438218822Sdim_ACEOF
11439218822Sdimrm -f conftest.$ac_objext
11440218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441218822Sdim  (eval $ac_compile) 2>conftest.er1
11442218822Sdim  ac_status=$?
11443218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11444218822Sdim  rm -f conftest.er1
11445218822Sdim  cat conftest.err >&5
11446218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447218822Sdim  (exit $ac_status); } &&
11448218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11449218822Sdim			 || test ! -s conftest.err'
11450218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451218822Sdim  (eval $ac_try) 2>&5
11452218822Sdim  ac_status=$?
11453218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454218822Sdim  (exit $ac_status); }; } &&
11455218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11456218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457218822Sdim  (eval $ac_try) 2>&5
11458218822Sdim  ac_status=$?
11459218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460218822Sdim  (exit $ac_status); }; }; then
11461218822Sdim  ac_hi=-1 ac_mid=-1
11462218822Sdim  while :; do
11463218822Sdim    cat >conftest.$ac_ext <<_ACEOF
11464218822Sdim/* confdefs.h.  */
11465218822Sdim_ACEOF
11466218822Sdimcat confdefs.h >>conftest.$ac_ext
11467218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11468218822Sdim/* end confdefs.h.  */
11469218822Sdim$ac_includes_default
11470218822Sdimint
11471218822Sdimmain ()
11472218822Sdim{
11473218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11474218822Sdimtest_array [0] = 0
11475218822Sdim
11476218822Sdim  ;
11477218822Sdim  return 0;
11478218822Sdim}
11479218822Sdim_ACEOF
11480218822Sdimrm -f conftest.$ac_objext
11481218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482218822Sdim  (eval $ac_compile) 2>conftest.er1
11483218822Sdim  ac_status=$?
11484218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11485218822Sdim  rm -f conftest.er1
11486218822Sdim  cat conftest.err >&5
11487218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488218822Sdim  (exit $ac_status); } &&
11489218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11490218822Sdim			 || test ! -s conftest.err'
11491218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492218822Sdim  (eval $ac_try) 2>&5
11493218822Sdim  ac_status=$?
11494218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495218822Sdim  (exit $ac_status); }; } &&
11496218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11497218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498218822Sdim  (eval $ac_try) 2>&5
11499218822Sdim  ac_status=$?
11500218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501218822Sdim  (exit $ac_status); }; }; then
11502218822Sdim  ac_lo=$ac_mid; break
1150360484Sobrienelse
11504218822Sdim  echo "$as_me: failed program was:" >&5
11505218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11506218822Sdim
11507218822Sdimac_hi=`expr '(' $ac_mid ')' - 1`
11508218822Sdim		       if test $ac_mid -le $ac_hi; then
11509218822Sdim			 ac_lo= ac_hi=
11510218822Sdim			 break
11511218822Sdim		       fi
11512218822Sdim		       ac_mid=`expr 2 '*' $ac_mid`
1151360484Sobrienfi
11514218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11515218822Sdim  done
11516218822Sdimelse
11517218822Sdim  echo "$as_me: failed program was:" >&5
11518218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1151933965Sjdp
11520218822Sdimac_lo= ac_hi=
1152160484Sobrienfi
11522218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11523218822Sdimfi
11524218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11525218822Sdim# Binary search between lo and hi bounds.
11526218822Sdimwhile test "x$ac_lo" != "x$ac_hi"; do
11527218822Sdim  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11528218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11529218822Sdim/* confdefs.h.  */
11530218822Sdim_ACEOF
11531218822Sdimcat confdefs.h >>conftest.$ac_ext
11532218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11533218822Sdim/* end confdefs.h.  */
11534218822Sdim$ac_includes_default
11535218822Sdimint
11536218822Sdimmain ()
11537218822Sdim{
11538218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11539218822Sdimtest_array [0] = 0
1154033965Sjdp
11541218822Sdim  ;
11542218822Sdim  return 0;
11543218822Sdim}
11544218822Sdim_ACEOF
11545218822Sdimrm -f conftest.$ac_objext
11546218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547218822Sdim  (eval $ac_compile) 2>conftest.er1
11548218822Sdim  ac_status=$?
11549218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11550218822Sdim  rm -f conftest.er1
11551218822Sdim  cat conftest.err >&5
11552218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553218822Sdim  (exit $ac_status); } &&
11554218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11555218822Sdim			 || test ! -s conftest.err'
11556218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557218822Sdim  (eval $ac_try) 2>&5
11558218822Sdim  ac_status=$?
11559218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560218822Sdim  (exit $ac_status); }; } &&
11561218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11562218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563218822Sdim  (eval $ac_try) 2>&5
11564218822Sdim  ac_status=$?
11565218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566218822Sdim  (exit $ac_status); }; }; then
11567218822Sdim  ac_hi=$ac_mid
1156860484Sobrienelse
11569218822Sdim  echo "$as_me: failed program was:" >&5
11570218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1157133965Sjdp
11572218822Sdimac_lo=`expr '(' $ac_mid ')' + 1`
1157360484Sobrienfi
11574218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11575218822Sdimdone
11576218822Sdimcase $ac_lo in
11577218822Sdim?*) ac_cv_sizeof_long_long=$ac_lo;;
11578218822Sdim'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11579218822SdimSee \`config.log' for more details." >&5
11580218822Sdimecho "$as_me: error: cannot compute sizeof (long long), 77
11581218822SdimSee \`config.log' for more details." >&2;}
11582218822Sdim   { (exit 1); exit 1; }; } ;;
11583218822Sdimesac
11584218822Sdimelse
11585218822Sdim  if test "$cross_compiling" = yes; then
11586218822Sdim  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11587218822SdimSee \`config.log' for more details." >&5
11588218822Sdimecho "$as_me: error: cannot run test program while cross compiling
11589218822SdimSee \`config.log' for more details." >&2;}
11590218822Sdim   { (exit 1); exit 1; }; }
11591218822Sdimelse
11592218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11593218822Sdim/* confdefs.h.  */
11594218822Sdim_ACEOF
11595218822Sdimcat confdefs.h >>conftest.$ac_ext
11596218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11597218822Sdim/* end confdefs.h.  */
11598218822Sdim$ac_includes_default
11599218822Sdimlong longval () { return (long) (sizeof (long long)); }
11600218822Sdimunsigned long ulongval () { return (long) (sizeof (long long)); }
11601218822Sdim#include <stdio.h>
11602218822Sdim#include <stdlib.h>
11603218822Sdimint
11604218822Sdimmain ()
11605218822Sdim{
1160638889Sjdp
11607218822Sdim  FILE *f = fopen ("conftest.val", "w");
11608218822Sdim  if (! f)
11609218822Sdim    exit (1);
11610218822Sdim  if (((long) (sizeof (long long))) < 0)
11611218822Sdim    {
11612218822Sdim      long i = longval ();
11613218822Sdim      if (i != ((long) (sizeof (long long))))
11614218822Sdim	exit (1);
11615218822Sdim      fprintf (f, "%ld\n", i);
11616218822Sdim    }
11617218822Sdim  else
11618218822Sdim    {
11619218822Sdim      unsigned long i = ulongval ();
11620218822Sdim      if (i != ((long) (sizeof (long long))))
11621218822Sdim	exit (1);
11622218822Sdim      fprintf (f, "%lu\n", i);
11623218822Sdim    }
11624218822Sdim  exit (ferror (f) || fclose (f) != 0);
11625218822Sdim
11626218822Sdim  ;
11627218822Sdim  return 0;
11628218822Sdim}
11629218822Sdim_ACEOF
11630218822Sdimrm -f conftest$ac_exeext
11631218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11632218822Sdim  (eval $ac_link) 2>&5
11633218822Sdim  ac_status=$?
11634218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11636218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637218822Sdim  (eval $ac_try) 2>&5
11638218822Sdim  ac_status=$?
11639218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640218822Sdim  (exit $ac_status); }; }; then
11641218822Sdim  ac_cv_sizeof_long_long=`cat conftest.val`
1164260484Sobrienelse
11643218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
11644218822Sdimecho "$as_me: failed program was:" >&5
11645218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1164638889Sjdp
11647218822Sdim( exit $ac_status )
11648218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11649218822SdimSee \`config.log' for more details." >&5
11650218822Sdimecho "$as_me: error: cannot compute sizeof (long long), 77
11651218822SdimSee \`config.log' for more details." >&2;}
11652218822Sdim   { (exit 1); exit 1; }; }
1165333965Sjdpfi
11654218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1165560484Sobrienfi
1165660484Sobrienfi
11657218822Sdimrm -f conftest.val
11658218822Sdimelse
11659218822Sdim  ac_cv_sizeof_long_long=0
1166060484Sobrienfi
11661218822Sdimfi
11662218822Sdimecho "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11663218822Sdimecho "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11664218822Sdimcat >>confdefs.h <<_ACEOF
11665218822Sdim#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11666218822Sdim_ACEOF
1166733965Sjdp
1166833965Sjdp
1166960484Sobrienfi
1167033965Sjdp
11671218822Sdimecho "$as_me:$LINENO: checking for long" >&5
11672218822Sdimecho $ECHO_N "checking for long... $ECHO_C" >&6
11673218822Sdimif test "${ac_cv_type_long+set}" = set; then
11674218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1167560484Sobrienelse
11676218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11677218822Sdim/* confdefs.h.  */
11678218822Sdim_ACEOF
11679218822Sdimcat confdefs.h >>conftest.$ac_ext
11680218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11681218822Sdim/* end confdefs.h.  */
11682218822Sdim$ac_includes_default
11683218822Sdimint
11684218822Sdimmain ()
11685218822Sdim{
11686218822Sdimif ((long *) 0)
11687218822Sdim  return 0;
11688218822Sdimif (sizeof (long))
11689218822Sdim  return 0;
11690218822Sdim  ;
11691218822Sdim  return 0;
11692218822Sdim}
11693218822Sdim_ACEOF
11694218822Sdimrm -f conftest.$ac_objext
11695218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11696218822Sdim  (eval $ac_compile) 2>conftest.er1
11697218822Sdim  ac_status=$?
11698218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11699218822Sdim  rm -f conftest.er1
11700218822Sdim  cat conftest.err >&5
11701218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702218822Sdim  (exit $ac_status); } &&
11703218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11704218822Sdim			 || test ! -s conftest.err'
11705218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706218822Sdim  (eval $ac_try) 2>&5
11707218822Sdim  ac_status=$?
11708218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709218822Sdim  (exit $ac_status); }; } &&
11710218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11711218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712218822Sdim  (eval $ac_try) 2>&5
11713218822Sdim  ac_status=$?
11714218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715218822Sdim  (exit $ac_status); }; }; then
11716218822Sdim  ac_cv_type_long=yes
11717218822Sdimelse
11718218822Sdim  echo "$as_me: failed program was:" >&5
11719218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1172033965Sjdp
11721218822Sdimac_cv_type_long=no
11722218822Sdimfi
11723218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11724218822Sdimfi
11725218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11726218822Sdimecho "${ECHO_T}$ac_cv_type_long" >&6
1172760484Sobrien
11728218822Sdimecho "$as_me:$LINENO: checking size of long" >&5
11729218822Sdimecho $ECHO_N "checking size of long... $ECHO_C" >&6
11730218822Sdimif test "${ac_cv_sizeof_long+set}" = set; then
11731218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
11732218822Sdimelse
11733218822Sdim  if test "$ac_cv_type_long" = yes; then
11734218822Sdim  # The cast to unsigned long works around a bug in the HP C Compiler
11735218822Sdim  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11736218822Sdim  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11737218822Sdim  # This bug is HP SR number 8606223364.
11738218822Sdim  if test "$cross_compiling" = yes; then
11739218822Sdim  # Depending upon the size, compute the lo and hi bounds.
11740218822Sdimcat >conftest.$ac_ext <<_ACEOF
11741218822Sdim/* confdefs.h.  */
11742218822Sdim_ACEOF
11743218822Sdimcat confdefs.h >>conftest.$ac_ext
11744218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11745218822Sdim/* end confdefs.h.  */
11746218822Sdim$ac_includes_default
11747218822Sdimint
11748218822Sdimmain ()
11749218822Sdim{
11750218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11751218822Sdimtest_array [0] = 0
1175260484Sobrien
11753218822Sdim  ;
11754218822Sdim  return 0;
1175560484Sobrien}
11756218822Sdim_ACEOF
11757218822Sdimrm -f conftest.$ac_objext
11758218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11759218822Sdim  (eval $ac_compile) 2>conftest.er1
11760218822Sdim  ac_status=$?
11761218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11762218822Sdim  rm -f conftest.er1
11763218822Sdim  cat conftest.err >&5
11764218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765218822Sdim  (exit $ac_status); } &&
11766218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11767218822Sdim			 || test ! -s conftest.err'
11768218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769218822Sdim  (eval $ac_try) 2>&5
11770218822Sdim  ac_status=$?
11771218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772218822Sdim  (exit $ac_status); }; } &&
11773218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11774218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775218822Sdim  (eval $ac_try) 2>&5
11776218822Sdim  ac_status=$?
11777218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778218822Sdim  (exit $ac_status); }; }; then
11779218822Sdim  ac_lo=0 ac_mid=0
11780218822Sdim  while :; do
11781218822Sdim    cat >conftest.$ac_ext <<_ACEOF
11782218822Sdim/* confdefs.h.  */
11783218822Sdim_ACEOF
11784218822Sdimcat confdefs.h >>conftest.$ac_ext
11785218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11786218822Sdim/* end confdefs.h.  */
11787218822Sdim$ac_includes_default
11788218822Sdimint
11789218822Sdimmain ()
11790218822Sdim{
11791218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11792218822Sdimtest_array [0] = 0
11793218822Sdim
11794218822Sdim  ;
11795218822Sdim  return 0;
1179660484Sobrien}
11797218822Sdim_ACEOF
11798218822Sdimrm -f conftest.$ac_objext
11799218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11800218822Sdim  (eval $ac_compile) 2>conftest.er1
11801218822Sdim  ac_status=$?
11802218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11803218822Sdim  rm -f conftest.er1
11804218822Sdim  cat conftest.err >&5
11805218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806218822Sdim  (exit $ac_status); } &&
11807218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11808218822Sdim			 || test ! -s conftest.err'
11809218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810218822Sdim  (eval $ac_try) 2>&5
11811218822Sdim  ac_status=$?
11812218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813218822Sdim  (exit $ac_status); }; } &&
11814218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11815218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816218822Sdim  (eval $ac_try) 2>&5
11817218822Sdim  ac_status=$?
11818218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819218822Sdim  (exit $ac_status); }; }; then
11820218822Sdim  ac_hi=$ac_mid; break
11821218822Sdimelse
11822218822Sdim  echo "$as_me: failed program was:" >&5
11823218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11824218822Sdim
11825218822Sdimac_lo=`expr $ac_mid + 1`
11826218822Sdim		    if test $ac_lo -le $ac_mid; then
11827218822Sdim		      ac_lo= ac_hi=
11828218822Sdim		      break
11829218822Sdim		    fi
11830218822Sdim		    ac_mid=`expr 2 '*' $ac_mid + 1`
11831218822Sdimfi
11832218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11833218822Sdim  done
11834218822Sdimelse
11835218822Sdim  echo "$as_me: failed program was:" >&5
11836218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11837218822Sdim
11838218822Sdimcat >conftest.$ac_ext <<_ACEOF
11839218822Sdim/* confdefs.h.  */
11840218822Sdim_ACEOF
11841218822Sdimcat confdefs.h >>conftest.$ac_ext
11842218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11843218822Sdim/* end confdefs.h.  */
11844218822Sdim$ac_includes_default
11845218822Sdimint
11846218822Sdimmain ()
11847218822Sdim{
11848218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11849218822Sdimtest_array [0] = 0
11850218822Sdim
11851218822Sdim  ;
11852218822Sdim  return 0;
1185360484Sobrien}
11854218822Sdim_ACEOF
11855218822Sdimrm -f conftest.$ac_objext
11856218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11857218822Sdim  (eval $ac_compile) 2>conftest.er1
11858218822Sdim  ac_status=$?
11859218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11860218822Sdim  rm -f conftest.er1
11861218822Sdim  cat conftest.err >&5
11862218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863218822Sdim  (exit $ac_status); } &&
11864218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11865218822Sdim			 || test ! -s conftest.err'
11866218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867218822Sdim  (eval $ac_try) 2>&5
11868218822Sdim  ac_status=$?
11869218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870218822Sdim  (exit $ac_status); }; } &&
11871218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11872218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873218822Sdim  (eval $ac_try) 2>&5
11874218822Sdim  ac_status=$?
11875218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876218822Sdim  (exit $ac_status); }; }; then
11877218822Sdim  ac_hi=-1 ac_mid=-1
11878218822Sdim  while :; do
11879218822Sdim    cat >conftest.$ac_ext <<_ACEOF
11880218822Sdim/* confdefs.h.  */
11881218822Sdim_ACEOF
11882218822Sdimcat confdefs.h >>conftest.$ac_ext
11883218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11884218822Sdim/* end confdefs.h.  */
11885218822Sdim$ac_includes_default
11886218822Sdimint
11887218822Sdimmain ()
11888218822Sdim{
11889218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11890218822Sdimtest_array [0] = 0
11891218822Sdim
11892218822Sdim  ;
11893218822Sdim  return 0;
1189460484Sobrien}
11895218822Sdim_ACEOF
11896218822Sdimrm -f conftest.$ac_objext
11897218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11898218822Sdim  (eval $ac_compile) 2>conftest.er1
11899218822Sdim  ac_status=$?
11900218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11901218822Sdim  rm -f conftest.er1
11902218822Sdim  cat conftest.err >&5
11903218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904218822Sdim  (exit $ac_status); } &&
11905218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11906218822Sdim			 || test ! -s conftest.err'
11907218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908218822Sdim  (eval $ac_try) 2>&5
11909218822Sdim  ac_status=$?
11910218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911218822Sdim  (exit $ac_status); }; } &&
11912218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11913218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914218822Sdim  (eval $ac_try) 2>&5
11915218822Sdim  ac_status=$?
11916218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917218822Sdim  (exit $ac_status); }; }; then
11918218822Sdim  ac_lo=$ac_mid; break
11919218822Sdimelse
11920218822Sdim  echo "$as_me: failed program was:" >&5
11921218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1192260484Sobrien
11923218822Sdimac_hi=`expr '(' $ac_mid ')' - 1`
11924218822Sdim		       if test $ac_mid -le $ac_hi; then
11925218822Sdim			 ac_lo= ac_hi=
11926218822Sdim			 break
11927218822Sdim		       fi
11928218822Sdim		       ac_mid=`expr 2 '*' $ac_mid`
11929218822Sdimfi
11930218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11931218822Sdim  done
1193260484Sobrienelse
11933218822Sdim  echo "$as_me: failed program was:" >&5
11934218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11935218822Sdim
11936218822Sdimac_lo= ac_hi=
1193733965Sjdpfi
11938218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1193960484Sobrienfi
11940218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11941218822Sdim# Binary search between lo and hi bounds.
11942218822Sdimwhile test "x$ac_lo" != "x$ac_hi"; do
11943218822Sdim  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11944218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11945218822Sdim/* confdefs.h.  */
11946218822Sdim_ACEOF
11947218822Sdimcat confdefs.h >>conftest.$ac_ext
11948218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11949218822Sdim/* end confdefs.h.  */
11950218822Sdim$ac_includes_default
11951218822Sdimint
11952218822Sdimmain ()
11953218822Sdim{
11954218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11955218822Sdimtest_array [0] = 0
1195633965Sjdp
11957218822Sdim  ;
11958218822Sdim  return 0;
11959218822Sdim}
11960218822Sdim_ACEOF
11961218822Sdimrm -f conftest.$ac_objext
11962218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11963218822Sdim  (eval $ac_compile) 2>conftest.er1
11964218822Sdim  ac_status=$?
11965218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11966218822Sdim  rm -f conftest.er1
11967218822Sdim  cat conftest.err >&5
11968218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969218822Sdim  (exit $ac_status); } &&
11970218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11971218822Sdim			 || test ! -s conftest.err'
11972218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973218822Sdim  (eval $ac_try) 2>&5
11974218822Sdim  ac_status=$?
11975218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976218822Sdim  (exit $ac_status); }; } &&
11977218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11978218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979218822Sdim  (eval $ac_try) 2>&5
11980218822Sdim  ac_status=$?
11981218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982218822Sdim  (exit $ac_status); }; }; then
11983218822Sdim  ac_hi=$ac_mid
11984218822Sdimelse
11985218822Sdim  echo "$as_me: failed program was:" >&5
11986218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1198760484Sobrien
11988218822Sdimac_lo=`expr '(' $ac_mid ')' + 1`
1198960484Sobrienfi
11990218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11991218822Sdimdone
11992218822Sdimcase $ac_lo in
11993218822Sdim?*) ac_cv_sizeof_long=$ac_lo;;
11994218822Sdim'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11995218822SdimSee \`config.log' for more details." >&5
11996218822Sdimecho "$as_me: error: cannot compute sizeof (long), 77
11997218822SdimSee \`config.log' for more details." >&2;}
11998218822Sdim   { (exit 1); exit 1; }; } ;;
11999218822Sdimesac
12000218822Sdimelse
12001218822Sdim  if test "$cross_compiling" = yes; then
12002218822Sdim  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12003218822SdimSee \`config.log' for more details." >&5
12004218822Sdimecho "$as_me: error: cannot run test program while cross compiling
12005218822SdimSee \`config.log' for more details." >&2;}
12006218822Sdim   { (exit 1); exit 1; }; }
12007218822Sdimelse
12008218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12009218822Sdim/* confdefs.h.  */
12010218822Sdim_ACEOF
12011218822Sdimcat confdefs.h >>conftest.$ac_ext
12012218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12013218822Sdim/* end confdefs.h.  */
12014218822Sdim$ac_includes_default
12015218822Sdimlong longval () { return (long) (sizeof (long)); }
12016218822Sdimunsigned long ulongval () { return (long) (sizeof (long)); }
12017218822Sdim#include <stdio.h>
12018218822Sdim#include <stdlib.h>
12019218822Sdimint
12020218822Sdimmain ()
12021218822Sdim{
1202260484Sobrien
12023218822Sdim  FILE *f = fopen ("conftest.val", "w");
12024218822Sdim  if (! f)
12025218822Sdim    exit (1);
12026218822Sdim  if (((long) (sizeof (long))) < 0)
12027218822Sdim    {
12028218822Sdim      long i = longval ();
12029218822Sdim      if (i != ((long) (sizeof (long))))
12030218822Sdim	exit (1);
12031218822Sdim      fprintf (f, "%ld\n", i);
12032218822Sdim    }
12033218822Sdim  else
12034218822Sdim    {
12035218822Sdim      unsigned long i = ulongval ();
12036218822Sdim      if (i != ((long) (sizeof (long))))
12037218822Sdim	exit (1);
12038218822Sdim      fprintf (f, "%lu\n", i);
12039218822Sdim    }
12040218822Sdim  exit (ferror (f) || fclose (f) != 0);
12041218822Sdim
12042218822Sdim  ;
12043218822Sdim  return 0;
12044218822Sdim}
12045218822Sdim_ACEOF
12046218822Sdimrm -f conftest$ac_exeext
12047218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12048218822Sdim  (eval $ac_link) 2>&5
12049218822Sdim  ac_status=$?
12050218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12052218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053218822Sdim  (eval $ac_try) 2>&5
12054218822Sdim  ac_status=$?
12055218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056218822Sdim  (exit $ac_status); }; }; then
12057218822Sdim  ac_cv_sizeof_long=`cat conftest.val`
1205838889Sjdpelse
12059218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
12060218822Sdimecho "$as_me: failed program was:" >&5
12061218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1206260484Sobrien
12063218822Sdim( exit $ac_status )
12064218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12065218822SdimSee \`config.log' for more details." >&5
12066218822Sdimecho "$as_me: error: cannot compute sizeof (long), 77
12067218822SdimSee \`config.log' for more details." >&2;}
12068218822Sdim   { (exit 1); exit 1; }; }
12069218822Sdimfi
12070218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12071218822Sdimfi
12072218822Sdimfi
12073218822Sdimrm -f conftest.val
1207460484Sobrienelse
12075218822Sdim  ac_cv_sizeof_long=0
1207660484Sobrienfi
1207760484Sobrienfi
12078218822Sdimecho "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12079218822Sdimecho "${ECHO_T}$ac_cv_sizeof_long" >&6
12080218822Sdimcat >>confdefs.h <<_ACEOF
12081218822Sdim#define SIZEOF_LONG $ac_cv_sizeof_long
12082218822Sdim_ACEOF
1208360484Sobrien
1208460484Sobrien
12085218822Sdimif test "x${ac_cv_sizeof_long}" = "x8"; then
12086218822Sdim  host64=true
12087218822Sdim  BFD_HOST_64BIT_LONG=1
12088218822Sdim  test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12089218822Sdim  test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12090218822Sdimelif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12091218822Sdim  test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12092218822Sdim  test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
1209360484Sobrienfi
1209460484Sobrien
12095218822Sdimif test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12096218822Sdim  BFD_HOST_64_BIT_DEFINED=1
12097218822Sdim  BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12098218822Sdim  BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
1209960484Sobrienfi
1210060484Sobrien
12101218822Sdim
12102218822Sdim
12103218822Sdim
12104218822Sdim
12105218822Sdim
12106218822Sdim
12107218822Sdim# Put a plausible default for CC_FOR_BUILD in Makefile.
12108218822Sdimif test -z "$CC_FOR_BUILD"; then
12109218822Sdim  if test "x$cross_compiling" = "xno"; then
12110218822Sdim    CC_FOR_BUILD='$(CC)'
12111218822Sdim  else
12112218822Sdim    CC_FOR_BUILD=gcc
12113218822Sdim  fi
1211460484Sobrienfi
1211560484Sobrien
12116218822Sdim# Also set EXEEXT_FOR_BUILD.
12117218822Sdimif test "x$cross_compiling" = "xno"; then
12118218822Sdim  EXEEXT_FOR_BUILD='$(EXEEXT)'
1211960484Sobrienelse
12120218822Sdim  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12121218822Sdimecho $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12122218822Sdimif test "${bfd_cv_build_exeext+set}" = set; then
12123218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1212460484Sobrienelse
12125218822Sdim  rm -f conftest*
12126218822Sdim     echo 'int main () { return 0; }' > conftest.c
12127218822Sdim     bfd_cv_build_exeext=
12128218822Sdim     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12129218822Sdim     for file in conftest.*; do
12130218822Sdim       case $file in
12131218822Sdim       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12132218822Sdim       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12133218822Sdim       esac
12134218822Sdim     done
12135218822Sdim     rm -f conftest*
12136218822Sdim     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
1213760484Sobrienfi
12138218822Sdimecho "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12139218822Sdimecho "${ECHO_T}$bfd_cv_build_exeext" >&6
12140218822Sdim  EXEEXT_FOR_BUILD=""
12141218822Sdim  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12142218822Sdimfi
1214360484Sobrien
12144218822Sdim
12145218822Sdim
12146218822Sdim
12147218822Sdim
12148218822Sdim
12149218822Sdim
12150218822Sdim
12151218822Sdimfor ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
12152218822Sdimdo
12153218822Sdimas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12154218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
12155218822Sdim  echo "$as_me:$LINENO: checking for $ac_header" >&5
12156218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12157218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
12158218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1215960484Sobrienfi
12160218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12161218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12162218822Sdimelse
12163218822Sdim  # Is the header compilable?
12164218822Sdimecho "$as_me:$LINENO: checking $ac_header usability" >&5
12165218822Sdimecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12166218822Sdimcat >conftest.$ac_ext <<_ACEOF
12167218822Sdim/* confdefs.h.  */
12168218822Sdim_ACEOF
12169218822Sdimcat confdefs.h >>conftest.$ac_ext
12170218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12171218822Sdim/* end confdefs.h.  */
12172218822Sdim$ac_includes_default
12173218822Sdim#include <$ac_header>
12174218822Sdim_ACEOF
12175218822Sdimrm -f conftest.$ac_objext
12176218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12177218822Sdim  (eval $ac_compile) 2>conftest.er1
12178218822Sdim  ac_status=$?
12179218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12180218822Sdim  rm -f conftest.er1
12181218822Sdim  cat conftest.err >&5
12182218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183218822Sdim  (exit $ac_status); } &&
12184218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12185218822Sdim			 || test ! -s conftest.err'
12186218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187218822Sdim  (eval $ac_try) 2>&5
12188218822Sdim  ac_status=$?
12189218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190218822Sdim  (exit $ac_status); }; } &&
12191218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12192218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193218822Sdim  (eval $ac_try) 2>&5
12194218822Sdim  ac_status=$?
12195218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196218822Sdim  (exit $ac_status); }; }; then
12197218822Sdim  ac_header_compiler=yes
12198218822Sdimelse
12199218822Sdim  echo "$as_me: failed program was:" >&5
12200218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1220160484Sobrien
12202218822Sdimac_header_compiler=no
1220360484Sobrienfi
12204218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12205218822Sdimecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
12206218822Sdimecho "${ECHO_T}$ac_header_compiler" >&6
1220760484Sobrien
12208218822Sdim# Is the header present?
12209218822Sdimecho "$as_me:$LINENO: checking $ac_header presence" >&5
12210218822Sdimecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12211218822Sdimcat >conftest.$ac_ext <<_ACEOF
12212218822Sdim/* confdefs.h.  */
12213218822Sdim_ACEOF
12214218822Sdimcat confdefs.h >>conftest.$ac_ext
12215218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12216218822Sdim/* end confdefs.h.  */
12217218822Sdim#include <$ac_header>
12218218822Sdim_ACEOF
12219218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12220218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12221218822Sdim  ac_status=$?
12222218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12223218822Sdim  rm -f conftest.er1
12224218822Sdim  cat conftest.err >&5
12225218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226218822Sdim  (exit $ac_status); } >/dev/null; then
12227218822Sdim  if test -s conftest.err; then
12228218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
12229218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12230218822Sdim  else
12231218822Sdim    ac_cpp_err=
12232218822Sdim  fi
1223360484Sobrienelse
12234218822Sdim  ac_cpp_err=yes
12235218822Sdimfi
12236218822Sdimif test -z "$ac_cpp_err"; then
12237218822Sdim  ac_header_preproc=yes
1223860484Sobrienelse
12239218822Sdim  echo "$as_me: failed program was:" >&5
12240218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12241218822Sdim
12242218822Sdim  ac_header_preproc=no
1224360484Sobrienfi
12244218822Sdimrm -f conftest.err conftest.$ac_ext
12245218822Sdimecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
12246218822Sdimecho "${ECHO_T}$ac_header_preproc" >&6
12247218822Sdim
12248218822Sdim# So?  What about this header?
12249218822Sdimcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12250218822Sdim  yes:no: )
12251218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12252218822Sdimecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12253218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12254218822Sdimecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12255218822Sdim    ac_header_preproc=yes
12256218822Sdim    ;;
12257218822Sdim  no:yes:* )
12258218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12259218822Sdimecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12260218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12261218822Sdimecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12262218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12263218822Sdimecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12264218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12265218822Sdimecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12266218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12267218822Sdimecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12268218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12269218822Sdimecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12270218822Sdim    (
12271218822Sdim      cat <<\_ASBOX
12272218822Sdim## ------------------------------------------ ##
12273218822Sdim## Report this to the AC_PACKAGE_NAME lists.  ##
12274218822Sdim## ------------------------------------------ ##
12275218822Sdim_ASBOX
12276218822Sdim    ) |
12277218822Sdim      sed "s/^/$as_me: WARNING:     /" >&2
12278218822Sdim    ;;
12279218822Sdimesac
12280218822Sdimecho "$as_me:$LINENO: checking for $ac_header" >&5
12281218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12282218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
12283218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12284218822Sdimelse
12285218822Sdim  eval "$as_ac_Header=\$ac_header_preproc"
1228660484Sobrienfi
12287218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12288218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1228960484Sobrien
12290218822Sdimfi
12291218822Sdimif test `eval echo '${'$as_ac_Header'}'` = yes; then
12292218822Sdim  cat >>confdefs.h <<_ACEOF
12293218822Sdim#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12294218822Sdim_ACEOF
1229560484Sobrien
1229660484Sobrienfi
1229760484Sobrien
12298218822Sdimdone
12299218822Sdim
12300218822Sdim
12301218822Sdim
12302218822Sdim
12303218822Sdimfor ac_header in fcntl.h sys/file.h sys/time.h
12304218822Sdimdo
12305218822Sdimas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12306218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
12307218822Sdim  echo "$as_me:$LINENO: checking for $ac_header" >&5
12308218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12309218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
12310218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12311218822Sdimfi
12312218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12313218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1231460484Sobrienelse
12315218822Sdim  # Is the header compilable?
12316218822Sdimecho "$as_me:$LINENO: checking $ac_header usability" >&5
12317218822Sdimecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12318218822Sdimcat >conftest.$ac_ext <<_ACEOF
12319218822Sdim/* confdefs.h.  */
12320218822Sdim_ACEOF
12321218822Sdimcat confdefs.h >>conftest.$ac_ext
12322218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12323218822Sdim/* end confdefs.h.  */
12324218822Sdim$ac_includes_default
12325218822Sdim#include <$ac_header>
12326218822Sdim_ACEOF
12327218822Sdimrm -f conftest.$ac_objext
12328218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329218822Sdim  (eval $ac_compile) 2>conftest.er1
12330218822Sdim  ac_status=$?
12331218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12332218822Sdim  rm -f conftest.er1
12333218822Sdim  cat conftest.err >&5
12334218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335218822Sdim  (exit $ac_status); } &&
12336218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12337218822Sdim			 || test ! -s conftest.err'
12338218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339218822Sdim  (eval $ac_try) 2>&5
12340218822Sdim  ac_status=$?
12341218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342218822Sdim  (exit $ac_status); }; } &&
12343218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12344218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345218822Sdim  (eval $ac_try) 2>&5
12346218822Sdim  ac_status=$?
12347218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348218822Sdim  (exit $ac_status); }; }; then
12349218822Sdim  ac_header_compiler=yes
12350218822Sdimelse
12351218822Sdim  echo "$as_me: failed program was:" >&5
12352218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1235360484Sobrien
12354218822Sdimac_header_compiler=no
12355218822Sdimfi
12356218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12357218822Sdimecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
12358218822Sdimecho "${ECHO_T}$ac_header_compiler" >&6
1235960484Sobrien
12360218822Sdim# Is the header present?
12361218822Sdimecho "$as_me:$LINENO: checking $ac_header presence" >&5
12362218822Sdimecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12363218822Sdimcat >conftest.$ac_ext <<_ACEOF
12364218822Sdim/* confdefs.h.  */
12365218822Sdim_ACEOF
12366218822Sdimcat confdefs.h >>conftest.$ac_ext
12367218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12368218822Sdim/* end confdefs.h.  */
12369218822Sdim#include <$ac_header>
12370218822Sdim_ACEOF
12371218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12372218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12373218822Sdim  ac_status=$?
12374218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12375218822Sdim  rm -f conftest.er1
12376218822Sdim  cat conftest.err >&5
12377218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378218822Sdim  (exit $ac_status); } >/dev/null; then
12379218822Sdim  if test -s conftest.err; then
12380218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
12381218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12382218822Sdim  else
12383218822Sdim    ac_cpp_err=
12384218822Sdim  fi
1238560484Sobrienelse
12386218822Sdim  ac_cpp_err=yes
1238760484Sobrienfi
12388218822Sdimif test -z "$ac_cpp_err"; then
12389218822Sdim  ac_header_preproc=yes
12390218822Sdimelse
12391218822Sdim  echo "$as_me: failed program was:" >&5
12392218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12393218822Sdim
12394218822Sdim  ac_header_preproc=no
1239560484Sobrienfi
12396218822Sdimrm -f conftest.err conftest.$ac_ext
12397218822Sdimecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
12398218822Sdimecho "${ECHO_T}$ac_header_preproc" >&6
1239960484Sobrien
12400218822Sdim# So?  What about this header?
12401218822Sdimcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12402218822Sdim  yes:no: )
12403218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12404218822Sdimecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12405218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12406218822Sdimecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12407218822Sdim    ac_header_preproc=yes
12408218822Sdim    ;;
12409218822Sdim  no:yes:* )
12410218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12411218822Sdimecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12412218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12413218822Sdimecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12414218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12415218822Sdimecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12416218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12417218822Sdimecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12418218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12419218822Sdimecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12420218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12421218822Sdimecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12422218822Sdim    (
12423218822Sdim      cat <<\_ASBOX
12424218822Sdim## ------------------------------------------ ##
12425218822Sdim## Report this to the AC_PACKAGE_NAME lists.  ##
12426218822Sdim## ------------------------------------------ ##
12427218822Sdim_ASBOX
12428218822Sdim    ) |
12429218822Sdim      sed "s/^/$as_me: WARNING:     /" >&2
12430218822Sdim    ;;
12431218822Sdimesac
12432218822Sdimecho "$as_me:$LINENO: checking for $ac_header" >&5
12433218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12434218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
12435218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12436218822Sdimelse
12437218822Sdim  eval "$as_ac_Header=\$ac_header_preproc"
12438218822Sdimfi
12439218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12440218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1244160484Sobrien
1244260484Sobrienfi
12443218822Sdimif test `eval echo '${'$as_ac_Header'}'` = yes; then
12444218822Sdim  cat >>confdefs.h <<_ACEOF
12445218822Sdim#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12446218822Sdim_ACEOF
1244760484Sobrien
12448218822Sdimfi
1244960484Sobrien
12450218822Sdimdone
1245160484Sobrien
12452218822Sdim
12453218822Sdim
12454218822Sdiminttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
12455218822Sdim
12456218822Sdimacx_cv_header_stdint=stddef.h
12457218822Sdimacx_cv_header_stdint_kind="(already complete)"
12458218822Sdimfor i in stdint.h $inttype_headers; do
12459218822Sdim  unset ac_cv_type_uintptr_t
12460218822Sdim  unset ac_cv_type_uintmax_t
12461218822Sdim  unset ac_cv_type_int_least32_t
12462218822Sdim  unset ac_cv_type_int_fast32_t
12463218822Sdim  unset ac_cv_type_uint64_t
12464218822Sdim  echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12465218822Sdim  echo "$as_me:$LINENO: checking for uintmax_t" >&5
12466218822Sdimecho $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12467218822Sdimif test "${ac_cv_type_uintmax_t+set}" = set; then
12468218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1246960484Sobrienelse
12470218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12471218822Sdim/* confdefs.h.  */
12472218822Sdim_ACEOF
12473218822Sdimcat confdefs.h >>conftest.$ac_ext
12474218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12475218822Sdim/* end confdefs.h.  */
12476218822Sdim#include <sys/types.h>
12477218822Sdim#include <$i>
1247860484Sobrien
12479218822Sdimint
12480218822Sdimmain ()
12481218822Sdim{
12482218822Sdimif ((uintmax_t *) 0)
12483218822Sdim  return 0;
12484218822Sdimif (sizeof (uintmax_t))
12485218822Sdim  return 0;
12486218822Sdim  ;
12487218822Sdim  return 0;
12488218822Sdim}
12489218822Sdim_ACEOF
12490218822Sdimrm -f conftest.$ac_objext
12491218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492218822Sdim  (eval $ac_compile) 2>conftest.er1
12493218822Sdim  ac_status=$?
12494218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12495218822Sdim  rm -f conftest.er1
12496218822Sdim  cat conftest.err >&5
12497218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498218822Sdim  (exit $ac_status); } &&
12499218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12500218822Sdim			 || test ! -s conftest.err'
12501218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502218822Sdim  (eval $ac_try) 2>&5
12503218822Sdim  ac_status=$?
12504218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505218822Sdim  (exit $ac_status); }; } &&
12506218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12507218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508218822Sdim  (eval $ac_try) 2>&5
12509218822Sdim  ac_status=$?
12510218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511218822Sdim  (exit $ac_status); }; }; then
12512218822Sdim  ac_cv_type_uintmax_t=yes
1251360484Sobrienelse
12514218822Sdim  echo "$as_me: failed program was:" >&5
12515218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1251660484Sobrien
12517218822Sdimac_cv_type_uintmax_t=no
1251860484Sobrienfi
12519218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12520218822Sdimfi
12521218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12522218822Sdimecho "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12523218822Sdimif test $ac_cv_type_uintmax_t = yes; then
12524218822Sdim  acx_cv_header_stdint=$i
12525218822Sdimelse
12526218822Sdim  continue
12527218822Sdimfi
1252860484Sobrien
12529218822Sdim  echo "$as_me:$LINENO: checking for uintptr_t" >&5
12530218822Sdimecho $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12531218822Sdimif test "${ac_cv_type_uintptr_t+set}" = set; then
12532218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1253360484Sobrienelse
12534218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12535218822Sdim/* confdefs.h.  */
12536218822Sdim_ACEOF
12537218822Sdimcat confdefs.h >>conftest.$ac_ext
12538218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12539218822Sdim/* end confdefs.h.  */
12540218822Sdim#include <sys/types.h>
12541218822Sdim#include <$i>
1254260484Sobrien
12543218822Sdimint
12544218822Sdimmain ()
12545218822Sdim{
12546218822Sdimif ((uintptr_t *) 0)
12547218822Sdim  return 0;
12548218822Sdimif (sizeof (uintptr_t))
12549218822Sdim  return 0;
12550218822Sdim  ;
12551218822Sdim  return 0;
12552218822Sdim}
12553218822Sdim_ACEOF
12554218822Sdimrm -f conftest.$ac_objext
12555218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12556218822Sdim  (eval $ac_compile) 2>conftest.er1
12557218822Sdim  ac_status=$?
12558218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12559218822Sdim  rm -f conftest.er1
12560218822Sdim  cat conftest.err >&5
12561218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562218822Sdim  (exit $ac_status); } &&
12563218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12564218822Sdim			 || test ! -s conftest.err'
12565218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566218822Sdim  (eval $ac_try) 2>&5
12567218822Sdim  ac_status=$?
12568218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569218822Sdim  (exit $ac_status); }; } &&
12570218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12571218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572218822Sdim  (eval $ac_try) 2>&5
12573218822Sdim  ac_status=$?
12574218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575218822Sdim  (exit $ac_status); }; }; then
12576218822Sdim  ac_cv_type_uintptr_t=yes
12577218822Sdimelse
12578218822Sdim  echo "$as_me: failed program was:" >&5
12579218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1258060484Sobrien
12581218822Sdimac_cv_type_uintptr_t=no
12582218822Sdimfi
12583218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12584218822Sdimfi
12585218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12586218822Sdimecho "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12587218822Sdimif test $ac_cv_type_uintptr_t = yes; then
12588218822Sdim  :
1258960484Sobrienelse
12590218822Sdim  acx_cv_header_stdint_kind="(mostly complete)"
1259160484Sobrienfi
1259260484Sobrien
12593218822Sdim  echo "$as_me:$LINENO: checking for int_least32_t" >&5
12594218822Sdimecho $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12595218822Sdimif test "${ac_cv_type_int_least32_t+set}" = set; then
12596218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12597218822Sdimelse
12598218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12599218822Sdim/* confdefs.h.  */
12600218822Sdim_ACEOF
12601218822Sdimcat confdefs.h >>conftest.$ac_ext
12602218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12603218822Sdim/* end confdefs.h.  */
12604218822Sdim#include <sys/types.h>
12605218822Sdim#include <$i>
1260660484Sobrien
12607218822Sdimint
12608218822Sdimmain ()
12609218822Sdim{
12610218822Sdimif ((int_least32_t *) 0)
12611218822Sdim  return 0;
12612218822Sdimif (sizeof (int_least32_t))
12613218822Sdim  return 0;
12614218822Sdim  ;
12615218822Sdim  return 0;
12616218822Sdim}
12617218822Sdim_ACEOF
12618218822Sdimrm -f conftest.$ac_objext
12619218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620218822Sdim  (eval $ac_compile) 2>conftest.er1
12621218822Sdim  ac_status=$?
12622218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12623218822Sdim  rm -f conftest.er1
12624218822Sdim  cat conftest.err >&5
12625218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626218822Sdim  (exit $ac_status); } &&
12627218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12628218822Sdim			 || test ! -s conftest.err'
12629218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630218822Sdim  (eval $ac_try) 2>&5
12631218822Sdim  ac_status=$?
12632218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633218822Sdim  (exit $ac_status); }; } &&
12634218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12635218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636218822Sdim  (eval $ac_try) 2>&5
12637218822Sdim  ac_status=$?
12638218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639218822Sdim  (exit $ac_status); }; }; then
12640218822Sdim  ac_cv_type_int_least32_t=yes
1264160484Sobrienelse
12642218822Sdim  echo "$as_me: failed program was:" >&5
12643218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1264460484Sobrien
12645218822Sdimac_cv_type_int_least32_t=no
1264660484Sobrienfi
12647218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12648218822Sdimfi
12649218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
12650218822Sdimecho "${ECHO_T}$ac_cv_type_int_least32_t" >&6
12651218822Sdimif test $ac_cv_type_int_least32_t = yes; then
12652218822Sdim  :
12653218822Sdimelse
12654218822Sdim  acx_cv_header_stdint_kind="(mostly complete)"
12655218822Sdimfi
1265660484Sobrien
12657218822Sdim  echo "$as_me:$LINENO: checking for int_fast32_t" >&5
12658218822Sdimecho $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
12659218822Sdimif test "${ac_cv_type_int_fast32_t+set}" = set; then
12660218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1266160484Sobrienelse
12662218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12663218822Sdim/* confdefs.h.  */
12664218822Sdim_ACEOF
12665218822Sdimcat confdefs.h >>conftest.$ac_ext
12666218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12667218822Sdim/* end confdefs.h.  */
12668218822Sdim#include <sys/types.h>
12669218822Sdim#include <$i>
12670218822Sdim
12671218822Sdimint
1267260484Sobrienmain ()
1267360484Sobrien{
12674218822Sdimif ((int_fast32_t *) 0)
12675218822Sdim  return 0;
12676218822Sdimif (sizeof (int_fast32_t))
12677218822Sdim  return 0;
12678218822Sdim  ;
12679218822Sdim  return 0;
1268060484Sobrien}
12681218822Sdim_ACEOF
12682218822Sdimrm -f conftest.$ac_objext
12683218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684218822Sdim  (eval $ac_compile) 2>conftest.er1
12685218822Sdim  ac_status=$?
12686218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12687218822Sdim  rm -f conftest.er1
12688218822Sdim  cat conftest.err >&5
12689218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690218822Sdim  (exit $ac_status); } &&
12691218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12692218822Sdim			 || test ! -s conftest.err'
12693218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694218822Sdim  (eval $ac_try) 2>&5
12695218822Sdim  ac_status=$?
12696218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697218822Sdim  (exit $ac_status); }; } &&
12698218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12699218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700218822Sdim  (eval $ac_try) 2>&5
12701218822Sdim  ac_status=$?
12702218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703218822Sdim  (exit $ac_status); }; }; then
12704218822Sdim  ac_cv_type_int_fast32_t=yes
1270560484Sobrienelse
12706218822Sdim  echo "$as_me: failed program was:" >&5
12707218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12708218822Sdim
12709218822Sdimac_cv_type_int_fast32_t=no
1271038889Sjdpfi
12711218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1271260484Sobrienfi
12713218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12714218822Sdimecho "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
12715218822Sdimif test $ac_cv_type_int_fast32_t = yes; then
12716218822Sdim  :
12717218822Sdimelse
12718218822Sdim  acx_cv_header_stdint_kind="(mostly complete)"
1271938889Sjdpfi
1272038889Sjdp
12721218822Sdim  echo "$as_me:$LINENO: checking for uint64_t" >&5
12722218822Sdimecho $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12723218822Sdimif test "${ac_cv_type_uint64_t+set}" = set; then
12724218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12725218822Sdimelse
12726218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12727218822Sdim/* confdefs.h.  */
12728218822Sdim_ACEOF
12729218822Sdimcat confdefs.h >>conftest.$ac_ext
12730218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12731218822Sdim/* end confdefs.h.  */
12732218822Sdim#include <sys/types.h>
12733218822Sdim#include <$i>
1273438889Sjdp
12735218822Sdimint
12736218822Sdimmain ()
12737218822Sdim{
12738218822Sdimif ((uint64_t *) 0)
12739218822Sdim  return 0;
12740218822Sdimif (sizeof (uint64_t))
12741218822Sdim  return 0;
12742218822Sdim  ;
12743218822Sdim  return 0;
12744218822Sdim}
12745218822Sdim_ACEOF
12746218822Sdimrm -f conftest.$ac_objext
12747218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12748218822Sdim  (eval $ac_compile) 2>conftest.er1
12749218822Sdim  ac_status=$?
12750218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12751218822Sdim  rm -f conftest.er1
12752218822Sdim  cat conftest.err >&5
12753218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754218822Sdim  (exit $ac_status); } &&
12755218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12756218822Sdim			 || test ! -s conftest.err'
12757218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758218822Sdim  (eval $ac_try) 2>&5
12759218822Sdim  ac_status=$?
12760218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761218822Sdim  (exit $ac_status); }; } &&
12762218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12763218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764218822Sdim  (eval $ac_try) 2>&5
12765218822Sdim  ac_status=$?
12766218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767218822Sdim  (exit $ac_status); }; }; then
12768218822Sdim  ac_cv_type_uint64_t=yes
12769218822Sdimelse
12770218822Sdim  echo "$as_me: failed program was:" >&5
12771218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12772218822Sdim
12773218822Sdimac_cv_type_uint64_t=no
1277433965Sjdpfi
12775218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12776218822Sdimfi
12777218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12778218822Sdimecho "${ECHO_T}$ac_cv_type_uint64_t" >&6
12779218822Sdimif test $ac_cv_type_uint64_t = yes; then
12780218822Sdim  :
12781218822Sdimelse
12782218822Sdim  acx_cv_header_stdint_kind="(lacks uint64_t)"
12783218822Sdimfi
1278460484Sobrien
12785218822Sdim  break
12786218822Sdimdone
12787218822Sdimif test "$acx_cv_header_stdint" = stddef.h; then
12788218822Sdim  acx_cv_header_stdint_kind="(lacks uintmax_t)"
12789218822Sdim  for i in stdint.h $inttype_headers; do
12790218822Sdim    unset ac_cv_type_uintptr_t
12791218822Sdim    unset ac_cv_type_uint32_t
12792218822Sdim    unset ac_cv_type_uint64_t
12793218822Sdim    echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
12794218822Sdim    echo "$as_me:$LINENO: checking for uint32_t" >&5
12795218822Sdimecho $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12796218822Sdimif test "${ac_cv_type_uint32_t+set}" = set; then
12797218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1279833965Sjdpelse
12799218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12800218822Sdim/* confdefs.h.  */
12801218822Sdim_ACEOF
12802218822Sdimcat confdefs.h >>conftest.$ac_ext
12803218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12804218822Sdim/* end confdefs.h.  */
12805218822Sdim#include <sys/types.h>
12806218822Sdim#include <$i>
12807218822Sdim
12808218822Sdimint
12809218822Sdimmain ()
12810218822Sdim{
12811218822Sdimif ((uint32_t *) 0)
12812218822Sdim  return 0;
12813218822Sdimif (sizeof (uint32_t))
12814218822Sdim  return 0;
12815218822Sdim  ;
12816218822Sdim  return 0;
12817218822Sdim}
12818218822Sdim_ACEOF
12819218822Sdimrm -f conftest.$ac_objext
12820218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821218822Sdim  (eval $ac_compile) 2>conftest.er1
12822218822Sdim  ac_status=$?
12823218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12824218822Sdim  rm -f conftest.er1
12825218822Sdim  cat conftest.err >&5
12826218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827218822Sdim  (exit $ac_status); } &&
12828218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12829218822Sdim			 || test ! -s conftest.err'
12830218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831218822Sdim  (eval $ac_try) 2>&5
12832218822Sdim  ac_status=$?
12833218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834218822Sdim  (exit $ac_status); }; } &&
12835218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12836218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837218822Sdim  (eval $ac_try) 2>&5
12838218822Sdim  ac_status=$?
12839218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840218822Sdim  (exit $ac_status); }; }; then
12841218822Sdim  ac_cv_type_uint32_t=yes
1284260484Sobrienelse
12843218822Sdim  echo "$as_me: failed program was:" >&5
12844218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12845218822Sdim
12846218822Sdimac_cv_type_uint32_t=no
1284760484Sobrienfi
12848218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1284960484Sobrienfi
12850218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12851218822Sdimecho "${ECHO_T}$ac_cv_type_uint32_t" >&6
12852218822Sdimif test $ac_cv_type_uint32_t = yes; then
12853218822Sdim  acx_cv_header_stdint=$i
1285460484Sobrienelse
12855218822Sdim  continue
1285660484Sobrienfi
1285760484Sobrien
12858218822Sdim    echo "$as_me:$LINENO: checking for uint64_t" >&5
12859218822Sdimecho $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12860218822Sdimif test "${ac_cv_type_uint64_t+set}" = set; then
12861218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1286260484Sobrienelse
12863218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12864218822Sdim/* confdefs.h.  */
12865218822Sdim_ACEOF
12866218822Sdimcat confdefs.h >>conftest.$ac_ext
12867218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12868218822Sdim/* end confdefs.h.  */
12869218822Sdim#include <sys/types.h>
12870218822Sdim#include <$i>
1287160484Sobrien
12872218822Sdimint
12873218822Sdimmain ()
12874218822Sdim{
12875218822Sdimif ((uint64_t *) 0)
12876218822Sdim  return 0;
12877218822Sdimif (sizeof (uint64_t))
12878218822Sdim  return 0;
12879218822Sdim  ;
12880218822Sdim  return 0;
12881218822Sdim}
12882218822Sdim_ACEOF
12883218822Sdimrm -f conftest.$ac_objext
12884218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12885218822Sdim  (eval $ac_compile) 2>conftest.er1
12886218822Sdim  ac_status=$?
12887218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12888218822Sdim  rm -f conftest.er1
12889218822Sdim  cat conftest.err >&5
12890218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891218822Sdim  (exit $ac_status); } &&
12892218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12893218822Sdim			 || test ! -s conftest.err'
12894218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895218822Sdim  (eval $ac_try) 2>&5
12896218822Sdim  ac_status=$?
12897218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898218822Sdim  (exit $ac_status); }; } &&
12899218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12900218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901218822Sdim  (eval $ac_try) 2>&5
12902218822Sdim  ac_status=$?
12903218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904218822Sdim  (exit $ac_status); }; }; then
12905218822Sdim  ac_cv_type_uint64_t=yes
12906218822Sdimelse
12907218822Sdim  echo "$as_me: failed program was:" >&5
12908218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1290960484Sobrien
12910218822Sdimac_cv_type_uint64_t=no
12911218822Sdimfi
12912218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12913218822Sdimfi
12914218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12915218822Sdimecho "${ECHO_T}$ac_cv_type_uint64_t" >&6
1291660484Sobrien
12917218822Sdim    echo "$as_me:$LINENO: checking for uintptr_t" >&5
12918218822Sdimecho $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12919218822Sdimif test "${ac_cv_type_uintptr_t+set}" = set; then
12920218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1292160484Sobrienelse
12922218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12923218822Sdim/* confdefs.h.  */
12924218822Sdim_ACEOF
12925218822Sdimcat confdefs.h >>conftest.$ac_ext
12926218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12927218822Sdim/* end confdefs.h.  */
12928218822Sdim#include <sys/types.h>
12929218822Sdim#include <$i>
12930218822Sdim
12931218822Sdimint
12932218822Sdimmain ()
12933218822Sdim{
12934218822Sdimif ((uintptr_t *) 0)
12935218822Sdim  return 0;
12936218822Sdimif (sizeof (uintptr_t))
12937218822Sdim  return 0;
12938218822Sdim  ;
12939218822Sdim  return 0;
12940218822Sdim}
12941218822Sdim_ACEOF
12942218822Sdimrm -f conftest.$ac_objext
12943218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12944218822Sdim  (eval $ac_compile) 2>conftest.er1
12945218822Sdim  ac_status=$?
12946218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12947218822Sdim  rm -f conftest.er1
12948218822Sdim  cat conftest.err >&5
12949218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950218822Sdim  (exit $ac_status); } &&
12951218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12952218822Sdim			 || test ! -s conftest.err'
12953218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954218822Sdim  (eval $ac_try) 2>&5
12955218822Sdim  ac_status=$?
12956218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957218822Sdim  (exit $ac_status); }; } &&
12958218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12959218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960218822Sdim  (eval $ac_try) 2>&5
12961218822Sdim  ac_status=$?
12962218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963218822Sdim  (exit $ac_status); }; }; then
12964218822Sdim  ac_cv_type_uintptr_t=yes
12965218822Sdimelse
12966218822Sdim  echo "$as_me: failed program was:" >&5
12967218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12968218822Sdim
12969218822Sdimac_cv_type_uintptr_t=no
1297060484Sobrienfi
12971218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1297260484Sobrienfi
12973218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12974218822Sdimecho "${ECHO_T}$ac_cv_type_uintptr_t" >&6
1297560484Sobrien
12976218822Sdim    break
12977218822Sdim  done
12978218822Sdimfi
12979218822Sdimif test "$acx_cv_header_stdint" = stddef.h; then
12980218822Sdim  acx_cv_header_stdint_kind="(u_intXX_t style)"
12981218822Sdim  for i in sys/types.h $inttype_headers; do
12982218822Sdim    unset ac_cv_type_u_int32_t
12983218822Sdim    unset ac_cv_type_u_int64_t
12984218822Sdim    echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
12985218822Sdim    echo "$as_me:$LINENO: checking for u_int32_t" >&5
12986218822Sdimecho $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12987218822Sdimif test "${ac_cv_type_u_int32_t+set}" = set; then
12988218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1298960484Sobrienelse
12990218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12991218822Sdim/* confdefs.h.  */
12992218822Sdim_ACEOF
12993218822Sdimcat confdefs.h >>conftest.$ac_ext
12994218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12995218822Sdim/* end confdefs.h.  */
12996218822Sdim#include <sys/types.h>
12997218822Sdim#include <$i>
1299860484Sobrien
12999218822Sdimint
13000218822Sdimmain ()
13001218822Sdim{
13002218822Sdimif ((u_int32_t *) 0)
13003218822Sdim  return 0;
13004218822Sdimif (sizeof (u_int32_t))
13005218822Sdim  return 0;
13006218822Sdim  ;
13007218822Sdim  return 0;
13008218822Sdim}
13009218822Sdim_ACEOF
13010218822Sdimrm -f conftest.$ac_objext
13011218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012218822Sdim  (eval $ac_compile) 2>conftest.er1
13013218822Sdim  ac_status=$?
13014218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13015218822Sdim  rm -f conftest.er1
13016218822Sdim  cat conftest.err >&5
13017218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018218822Sdim  (exit $ac_status); } &&
13019218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13020218822Sdim			 || test ! -s conftest.err'
13021218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022218822Sdim  (eval $ac_try) 2>&5
13023218822Sdim  ac_status=$?
13024218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025218822Sdim  (exit $ac_status); }; } &&
13026218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13027218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028218822Sdim  (eval $ac_try) 2>&5
13029218822Sdim  ac_status=$?
13030218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031218822Sdim  (exit $ac_status); }; }; then
13032218822Sdim  ac_cv_type_u_int32_t=yes
1303360484Sobrienelse
13034218822Sdim  echo "$as_me: failed program was:" >&5
13035218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13036218822Sdim
13037218822Sdimac_cv_type_u_int32_t=no
13038218822Sdimfi
13039218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13040218822Sdimfi
13041218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13042218822Sdimecho "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13043218822Sdimif test $ac_cv_type_u_int32_t = yes; then
13044218822Sdim  acx_cv_header_stdint=$i
1304560484Sobrienelse
13046218822Sdim  continue
13047218822Sdimfi
1304860484Sobrien
13049218822Sdim    echo "$as_me:$LINENO: checking for u_int64_t" >&5
13050218822Sdimecho $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13051218822Sdimif test "${ac_cv_type_u_int64_t+set}" = set; then
13052218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13053218822Sdimelse
13054218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13055218822Sdim/* confdefs.h.  */
13056218822Sdim_ACEOF
13057218822Sdimcat confdefs.h >>conftest.$ac_ext
13058218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13059218822Sdim/* end confdefs.h.  */
1306060484Sobrien#include <sys/types.h>
13061218822Sdim#include <$i>
1306260484Sobrien
13063218822Sdimint
13064218822Sdimmain ()
13065218822Sdim{
13066218822Sdimif ((u_int64_t *) 0)
13067218822Sdim  return 0;
13068218822Sdimif (sizeof (u_int64_t))
13069218822Sdim  return 0;
13070218822Sdim  ;
13071218822Sdim  return 0;
13072218822Sdim}
13073218822Sdim_ACEOF
13074218822Sdimrm -f conftest.$ac_objext
13075218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076218822Sdim  (eval $ac_compile) 2>conftest.er1
13077218822Sdim  ac_status=$?
13078218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13079218822Sdim  rm -f conftest.er1
13080218822Sdim  cat conftest.err >&5
13081218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082218822Sdim  (exit $ac_status); } &&
13083218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13084218822Sdim			 || test ! -s conftest.err'
13085218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086218822Sdim  (eval $ac_try) 2>&5
13087218822Sdim  ac_status=$?
13088218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089218822Sdim  (exit $ac_status); }; } &&
13090218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13091218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092218822Sdim  (eval $ac_try) 2>&5
13093218822Sdim  ac_status=$?
13094218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095218822Sdim  (exit $ac_status); }; }; then
13096218822Sdim  ac_cv_type_u_int64_t=yes
13097218822Sdimelse
13098218822Sdim  echo "$as_me: failed program was:" >&5
13099218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13100130561Sobrien
13101218822Sdimac_cv_type_u_int64_t=no
13102218822Sdimfi
13103218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13104218822Sdimfi
13105218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13106218822Sdimecho "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13107130561Sobrien
13108218822Sdim    break
13109218822Sdim  done
13110218822Sdimfi
13111218822Sdimif test "$acx_cv_header_stdint" = stddef.h; then
13112218822Sdim  acx_cv_header_stdint_kind="(using manual detection)"
13113218822Sdimfi
13114130561Sobrien
13115218822Sdimtest -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13116218822Sdimtest -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13117218822Sdimtest -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13118218822Sdimtest -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13119218822Sdimtest -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13120130561Sobrien
13121218822Sdim# ----------------- Summarize what we found so far
1312260484Sobrien
13123218822Sdimecho "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13124218822Sdimecho $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
1312560484Sobrien
13126218822Sdimcase `$as_basename bfd_stdint.h ||
13127218822Sdim$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13128218822Sdim	 Xbfd_stdint.h : 'X\(//\)$' \| \
13129218822Sdim	 Xbfd_stdint.h : 'X\(/\)$' \| \
13130218822Sdim	 .     : '\(.\)' 2>/dev/null ||
13131218822Sdimecho X/bfd_stdint.h |
13132218822Sdim    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13133218822Sdim  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
13134218822Sdim  	  /^X\/\(\/\).*/{ s//\1/; q; }
13135218822Sdim  	  s/.*/./; q'` in
13136218822Sdim  stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13137218822Sdimecho "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13138218822Sdim  inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13139218822Sdimecho "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13140218822Sdim  *) ;;
13141218822Sdimesac
1314260484Sobrien
13143218822Sdimecho "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13144218822Sdimecho "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
1314560484Sobrien
13146218822Sdim# ----------------- done included file, check C basic types --------
1314760484Sobrien
13148218822Sdim# Lacking an uintptr_t?  Test size of void *
13149218822Sdimcase "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13150218822Sdim  stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13151218822Sdimecho $ECHO_N "checking for void *... $ECHO_C" >&6
13152218822Sdimif test "${ac_cv_type_void_p+set}" = set; then
13153218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13154218822Sdimelse
13155218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13156218822Sdim/* confdefs.h.  */
13157218822Sdim_ACEOF
13158218822Sdimcat confdefs.h >>conftest.$ac_ext
13159218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13160218822Sdim/* end confdefs.h.  */
13161218822Sdim$ac_includes_default
1316260484Sobrienint
13163218822Sdimmain ()
1316460484Sobrien{
13165218822Sdimif ((void * *) 0)
13166218822Sdim  return 0;
13167218822Sdimif (sizeof (void *))
13168218822Sdim  return 0;
13169218822Sdim  ;
13170218822Sdim  return 0;
13171218822Sdim}
13172218822Sdim_ACEOF
13173218822Sdimrm -f conftest.$ac_objext
13174218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13175218822Sdim  (eval $ac_compile) 2>conftest.er1
13176218822Sdim  ac_status=$?
13177218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13178218822Sdim  rm -f conftest.er1
13179218822Sdim  cat conftest.err >&5
13180218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181218822Sdim  (exit $ac_status); } &&
13182218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13183218822Sdim			 || test ! -s conftest.err'
13184218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185218822Sdim  (eval $ac_try) 2>&5
13186218822Sdim  ac_status=$?
13187218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188218822Sdim  (exit $ac_status); }; } &&
13189218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13190218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191218822Sdim  (eval $ac_try) 2>&5
13192218822Sdim  ac_status=$?
13193218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194218822Sdim  (exit $ac_status); }; }; then
13195218822Sdim  ac_cv_type_void_p=yes
13196218822Sdimelse
13197218822Sdim  echo "$as_me: failed program was:" >&5
13198218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1319960484Sobrien
13200218822Sdimac_cv_type_void_p=no
13201218822Sdimfi
13202218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13203218822Sdimfi
13204218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13205218822Sdimecho "${ECHO_T}$ac_cv_type_void_p" >&6
1320660484Sobrien
13207218822Sdimecho "$as_me:$LINENO: checking size of void *" >&5
13208218822Sdimecho $ECHO_N "checking size of void *... $ECHO_C" >&6
13209218822Sdimif test "${ac_cv_sizeof_void_p+set}" = set; then
13210218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13211218822Sdimelse
13212218822Sdim  if test "$ac_cv_type_void_p" = yes; then
13213218822Sdim  # The cast to unsigned long works around a bug in the HP C Compiler
13214218822Sdim  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13215218822Sdim  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13216218822Sdim  # This bug is HP SR number 8606223364.
13217218822Sdim  if test "$cross_compiling" = yes; then
13218218822Sdim  # Depending upon the size, compute the lo and hi bounds.
13219218822Sdimcat >conftest.$ac_ext <<_ACEOF
13220218822Sdim/* confdefs.h.  */
13221218822Sdim_ACEOF
13222218822Sdimcat confdefs.h >>conftest.$ac_ext
13223218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13224218822Sdim/* end confdefs.h.  */
13225218822Sdim$ac_includes_default
13226218822Sdimint
13227218822Sdimmain ()
13228218822Sdim{
13229218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13230218822Sdimtest_array [0] = 0
1323160484Sobrien
13232218822Sdim  ;
13233218822Sdim  return 0;
13234218822Sdim}
13235218822Sdim_ACEOF
13236218822Sdimrm -f conftest.$ac_objext
13237218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238218822Sdim  (eval $ac_compile) 2>conftest.er1
13239218822Sdim  ac_status=$?
13240218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13241218822Sdim  rm -f conftest.er1
13242218822Sdim  cat conftest.err >&5
13243218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244218822Sdim  (exit $ac_status); } &&
13245218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13246218822Sdim			 || test ! -s conftest.err'
13247218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248218822Sdim  (eval $ac_try) 2>&5
13249218822Sdim  ac_status=$?
13250218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251218822Sdim  (exit $ac_status); }; } &&
13252218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13253218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254218822Sdim  (eval $ac_try) 2>&5
13255218822Sdim  ac_status=$?
13256218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257218822Sdim  (exit $ac_status); }; }; then
13258218822Sdim  ac_lo=0 ac_mid=0
13259218822Sdim  while :; do
13260218822Sdim    cat >conftest.$ac_ext <<_ACEOF
13261218822Sdim/* confdefs.h.  */
13262218822Sdim_ACEOF
13263218822Sdimcat confdefs.h >>conftest.$ac_ext
13264218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13265218822Sdim/* end confdefs.h.  */
13266218822Sdim$ac_includes_default
13267218822Sdimint
13268218822Sdimmain ()
13269218822Sdim{
13270218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13271218822Sdimtest_array [0] = 0
1327260484Sobrien
13273218822Sdim  ;
13274218822Sdim  return 0;
1327560484Sobrien}
13276218822Sdim_ACEOF
13277218822Sdimrm -f conftest.$ac_objext
13278218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13279218822Sdim  (eval $ac_compile) 2>conftest.er1
13280218822Sdim  ac_status=$?
13281218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13282218822Sdim  rm -f conftest.er1
13283218822Sdim  cat conftest.err >&5
13284218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285218822Sdim  (exit $ac_status); } &&
13286218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13287218822Sdim			 || test ! -s conftest.err'
13288218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289218822Sdim  (eval $ac_try) 2>&5
13290218822Sdim  ac_status=$?
13291218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292218822Sdim  (exit $ac_status); }; } &&
13293218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13294218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295218822Sdim  (eval $ac_try) 2>&5
13296218822Sdim  ac_status=$?
13297218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298218822Sdim  (exit $ac_status); }; }; then
13299218822Sdim  ac_hi=$ac_mid; break
1330060484Sobrienelse
13301218822Sdim  echo "$as_me: failed program was:" >&5
13302218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1330360484Sobrien
13304218822Sdimac_lo=`expr $ac_mid + 1`
13305218822Sdim		    if test $ac_lo -le $ac_mid; then
13306218822Sdim		      ac_lo= ac_hi=
13307218822Sdim		      break
13308218822Sdim		    fi
13309218822Sdim		    ac_mid=`expr 2 '*' $ac_mid + 1`
1331060484Sobrienfi
13311218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13312218822Sdim  done
13313218822Sdimelse
13314218822Sdim  echo "$as_me: failed program was:" >&5
13315218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1331660484Sobrien
13317218822Sdimcat >conftest.$ac_ext <<_ACEOF
13318218822Sdim/* confdefs.h.  */
13319218822Sdim_ACEOF
13320218822Sdimcat confdefs.h >>conftest.$ac_ext
13321218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13322218822Sdim/* end confdefs.h.  */
13323218822Sdim$ac_includes_default
13324218822Sdimint
13325218822Sdimmain ()
13326218822Sdim{
13327218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13328218822Sdimtest_array [0] = 0
1332960484Sobrien
13330218822Sdim  ;
13331218822Sdim  return 0;
13332218822Sdim}
13333218822Sdim_ACEOF
13334218822Sdimrm -f conftest.$ac_objext
13335218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336218822Sdim  (eval $ac_compile) 2>conftest.er1
13337218822Sdim  ac_status=$?
13338218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13339218822Sdim  rm -f conftest.er1
13340218822Sdim  cat conftest.err >&5
13341218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342218822Sdim  (exit $ac_status); } &&
13343218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13344218822Sdim			 || test ! -s conftest.err'
13345218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346218822Sdim  (eval $ac_try) 2>&5
13347218822Sdim  ac_status=$?
13348218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349218822Sdim  (exit $ac_status); }; } &&
13350218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13351218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352218822Sdim  (eval $ac_try) 2>&5
13353218822Sdim  ac_status=$?
13354218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355218822Sdim  (exit $ac_status); }; }; then
13356218822Sdim  ac_hi=-1 ac_mid=-1
13357218822Sdim  while :; do
13358218822Sdim    cat >conftest.$ac_ext <<_ACEOF
13359218822Sdim/* confdefs.h.  */
13360218822Sdim_ACEOF
13361218822Sdimcat confdefs.h >>conftest.$ac_ext
13362218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13363218822Sdim/* end confdefs.h.  */
13364218822Sdim$ac_includes_default
13365218822Sdimint
13366218822Sdimmain ()
13367218822Sdim{
13368218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13369218822Sdimtest_array [0] = 0
1337060484Sobrien
13371218822Sdim  ;
13372218822Sdim  return 0;
13373218822Sdim}
13374218822Sdim_ACEOF
13375218822Sdimrm -f conftest.$ac_objext
13376218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13377218822Sdim  (eval $ac_compile) 2>conftest.er1
13378218822Sdim  ac_status=$?
13379218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13380218822Sdim  rm -f conftest.er1
13381218822Sdim  cat conftest.err >&5
13382218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383218822Sdim  (exit $ac_status); } &&
13384218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13385218822Sdim			 || test ! -s conftest.err'
13386218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387218822Sdim  (eval $ac_try) 2>&5
13388218822Sdim  ac_status=$?
13389218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390218822Sdim  (exit $ac_status); }; } &&
13391218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13392218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393218822Sdim  (eval $ac_try) 2>&5
13394218822Sdim  ac_status=$?
13395218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396218822Sdim  (exit $ac_status); }; }; then
13397218822Sdim  ac_lo=$ac_mid; break
1339860484Sobrienelse
13399218822Sdim  echo "$as_me: failed program was:" >&5
13400218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13401218822Sdim
13402218822Sdimac_hi=`expr '(' $ac_mid ')' - 1`
13403218822Sdim		       if test $ac_mid -le $ac_hi; then
13404218822Sdim			 ac_lo= ac_hi=
13405218822Sdim			 break
13406218822Sdim		       fi
13407218822Sdim		       ac_mid=`expr 2 '*' $ac_mid`
13408218822Sdimfi
13409218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13410218822Sdim  done
1341133965Sjdpelse
13412218822Sdim  echo "$as_me: failed program was:" >&5
13413218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13414218822Sdim
13415218822Sdimac_lo= ac_hi=
1341660484Sobrienfi
13417218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1341860484Sobrienfi
13419218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13420218822Sdim# Binary search between lo and hi bounds.
13421218822Sdimwhile test "x$ac_lo" != "x$ac_hi"; do
13422218822Sdim  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13423218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13424218822Sdim/* confdefs.h.  */
13425218822Sdim_ACEOF
13426218822Sdimcat confdefs.h >>conftest.$ac_ext
13427218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13428218822Sdim/* end confdefs.h.  */
13429218822Sdim$ac_includes_default
13430218822Sdimint
13431218822Sdimmain ()
13432218822Sdim{
13433218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13434218822Sdimtest_array [0] = 0
13435218822Sdim
13436218822Sdim  ;
13437218822Sdim  return 0;
13438218822Sdim}
13439218822Sdim_ACEOF
13440218822Sdimrm -f conftest.$ac_objext
13441218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442218822Sdim  (eval $ac_compile) 2>conftest.er1
13443218822Sdim  ac_status=$?
13444218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13445218822Sdim  rm -f conftest.er1
13446218822Sdim  cat conftest.err >&5
13447218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448218822Sdim  (exit $ac_status); } &&
13449218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13450218822Sdim			 || test ! -s conftest.err'
13451218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452218822Sdim  (eval $ac_try) 2>&5
13453218822Sdim  ac_status=$?
13454218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455218822Sdim  (exit $ac_status); }; } &&
13456218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13457218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458218822Sdim  (eval $ac_try) 2>&5
13459218822Sdim  ac_status=$?
13460218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461218822Sdim  (exit $ac_status); }; }; then
13462218822Sdim  ac_hi=$ac_mid
1346360484Sobrienelse
13464218822Sdim  echo "$as_me: failed program was:" >&5
13465218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13466218822Sdim
13467218822Sdimac_lo=`expr '(' $ac_mid ')' + 1`
1346860484Sobrienfi
13469218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1347060484Sobriendone
13471218822Sdimcase $ac_lo in
13472218822Sdim?*) ac_cv_sizeof_void_p=$ac_lo;;
13473218822Sdim'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13474218822SdimSee \`config.log' for more details." >&5
13475218822Sdimecho "$as_me: error: cannot compute sizeof (void *), 77
13476218822SdimSee \`config.log' for more details." >&2;}
13477218822Sdim   { (exit 1); exit 1; }; } ;;
13478218822Sdimesac
1347960484Sobrienelse
13480218822Sdim  if test "$cross_compiling" = yes; then
13481218822Sdim  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13482218822SdimSee \`config.log' for more details." >&5
13483218822Sdimecho "$as_me: error: cannot run test program while cross compiling
13484218822SdimSee \`config.log' for more details." >&2;}
13485218822Sdim   { (exit 1); exit 1; }; }
13486218822Sdimelse
13487218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13488218822Sdim/* confdefs.h.  */
13489218822Sdim_ACEOF
13490218822Sdimcat confdefs.h >>conftest.$ac_ext
13491218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13492218822Sdim/* end confdefs.h.  */
13493218822Sdim$ac_includes_default
13494218822Sdimlong longval () { return (long) (sizeof (void *)); }
13495218822Sdimunsigned long ulongval () { return (long) (sizeof (void *)); }
13496218822Sdim#include <stdio.h>
13497218822Sdim#include <stdlib.h>
13498218822Sdimint
13499218822Sdimmain ()
13500218822Sdim{
1350160484Sobrien
13502218822Sdim  FILE *f = fopen ("conftest.val", "w");
13503218822Sdim  if (! f)
13504218822Sdim    exit (1);
13505218822Sdim  if (((long) (sizeof (void *))) < 0)
13506218822Sdim    {
13507218822Sdim      long i = longval ();
13508218822Sdim      if (i != ((long) (sizeof (void *))))
13509218822Sdim	exit (1);
13510218822Sdim      fprintf (f, "%ld\n", i);
13511218822Sdim    }
13512218822Sdim  else
13513218822Sdim    {
13514218822Sdim      unsigned long i = ulongval ();
13515218822Sdim      if (i != ((long) (sizeof (void *))))
13516218822Sdim	exit (1);
13517218822Sdim      fprintf (f, "%lu\n", i);
13518218822Sdim    }
13519218822Sdim  exit (ferror (f) || fclose (f) != 0);
1352060484Sobrien
13521218822Sdim  ;
13522218822Sdim  return 0;
13523218822Sdim}
13524218822Sdim_ACEOF
13525218822Sdimrm -f conftest$ac_exeext
13526218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13527218822Sdim  (eval $ac_link) 2>&5
13528218822Sdim  ac_status=$?
13529218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13531218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532218822Sdim  (eval $ac_try) 2>&5
13533218822Sdim  ac_status=$?
13534218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535218822Sdim  (exit $ac_status); }; }; then
13536218822Sdim  ac_cv_sizeof_void_p=`cat conftest.val`
13537218822Sdimelse
13538218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
13539218822Sdimecho "$as_me: failed program was:" >&5
13540218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1354160484Sobrien
13542218822Sdim( exit $ac_status )
13543218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13544218822SdimSee \`config.log' for more details." >&5
13545218822Sdimecho "$as_me: error: cannot compute sizeof (void *), 77
13546218822SdimSee \`config.log' for more details." >&2;}
13547218822Sdim   { (exit 1); exit 1; }; }
13548218822Sdimfi
13549218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13550218822Sdimfi
13551218822Sdimfi
13552218822Sdimrm -f conftest.val
1355360484Sobrienelse
13554218822Sdim  ac_cv_sizeof_void_p=0
1355560484Sobrienfi
1355660484Sobrienfi
13557218822Sdimecho "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13558218822Sdimecho "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13559218822Sdimcat >>confdefs.h <<_ACEOF
13560218822Sdim#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13561218822Sdim_ACEOF
1356260484Sobrien
13563218822Sdim ;;
13564218822Sdimesac
13565218822Sdim
13566218822Sdim# Lacking an uint64_t?  Test size of long
13567218822Sdimcase "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13568218822Sdim  stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13569218822Sdimecho $ECHO_N "checking for long... $ECHO_C" >&6
13570218822Sdimif test "${ac_cv_type_long+set}" = set; then
13571218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1357260484Sobrienelse
13573218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13574218822Sdim/* confdefs.h.  */
13575218822Sdim_ACEOF
13576218822Sdimcat confdefs.h >>conftest.$ac_ext
13577218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13578218822Sdim/* end confdefs.h.  */
13579218822Sdim$ac_includes_default
13580218822Sdimint
13581218822Sdimmain ()
13582218822Sdim{
13583218822Sdimif ((long *) 0)
13584218822Sdim  return 0;
13585218822Sdimif (sizeof (long))
13586218822Sdim  return 0;
13587218822Sdim  ;
13588218822Sdim  return 0;
13589218822Sdim}
13590218822Sdim_ACEOF
13591218822Sdimrm -f conftest.$ac_objext
13592218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13593218822Sdim  (eval $ac_compile) 2>conftest.er1
13594218822Sdim  ac_status=$?
13595218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13596218822Sdim  rm -f conftest.er1
13597218822Sdim  cat conftest.err >&5
13598218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599218822Sdim  (exit $ac_status); } &&
13600218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13601218822Sdim			 || test ! -s conftest.err'
13602218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603218822Sdim  (eval $ac_try) 2>&5
13604218822Sdim  ac_status=$?
13605218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606218822Sdim  (exit $ac_status); }; } &&
13607218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13608218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609218822Sdim  (eval $ac_try) 2>&5
13610218822Sdim  ac_status=$?
13611218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612218822Sdim  (exit $ac_status); }; }; then
13613218822Sdim  ac_cv_type_long=yes
13614218822Sdimelse
13615218822Sdim  echo "$as_me: failed program was:" >&5
13616218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13617218822Sdim
13618218822Sdimac_cv_type_long=no
1361960484Sobrienfi
13620218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13621218822Sdimfi
13622218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13623218822Sdimecho "${ECHO_T}$ac_cv_type_long" >&6
1362460484Sobrien
13625218822Sdimecho "$as_me:$LINENO: checking size of long" >&5
13626218822Sdimecho $ECHO_N "checking size of long... $ECHO_C" >&6
13627218822Sdimif test "${ac_cv_sizeof_long+set}" = set; then
13628218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13629218822Sdimelse
13630218822Sdim  if test "$ac_cv_type_long" = yes; then
13631218822Sdim  # The cast to unsigned long works around a bug in the HP C Compiler
13632218822Sdim  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13633218822Sdim  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13634218822Sdim  # This bug is HP SR number 8606223364.
13635218822Sdim  if test "$cross_compiling" = yes; then
13636218822Sdim  # Depending upon the size, compute the lo and hi bounds.
13637218822Sdimcat >conftest.$ac_ext <<_ACEOF
13638218822Sdim/* confdefs.h.  */
13639218822Sdim_ACEOF
13640218822Sdimcat confdefs.h >>conftest.$ac_ext
13641218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13642218822Sdim/* end confdefs.h.  */
13643218822Sdim$ac_includes_default
13644218822Sdimint
13645218822Sdimmain ()
13646218822Sdim{
13647218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13648218822Sdimtest_array [0] = 0
1364960484Sobrien
13650218822Sdim  ;
13651218822Sdim  return 0;
13652218822Sdim}
13653218822Sdim_ACEOF
13654218822Sdimrm -f conftest.$ac_objext
13655218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656218822Sdim  (eval $ac_compile) 2>conftest.er1
13657218822Sdim  ac_status=$?
13658218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13659218822Sdim  rm -f conftest.er1
13660218822Sdim  cat conftest.err >&5
13661218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662218822Sdim  (exit $ac_status); } &&
13663218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13664218822Sdim			 || test ! -s conftest.err'
13665218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666218822Sdim  (eval $ac_try) 2>&5
13667218822Sdim  ac_status=$?
13668218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669218822Sdim  (exit $ac_status); }; } &&
13670218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13671218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672218822Sdim  (eval $ac_try) 2>&5
13673218822Sdim  ac_status=$?
13674218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675218822Sdim  (exit $ac_status); }; }; then
13676218822Sdim  ac_lo=0 ac_mid=0
13677218822Sdim  while :; do
13678218822Sdim    cat >conftest.$ac_ext <<_ACEOF
13679218822Sdim/* confdefs.h.  */
13680218822Sdim_ACEOF
13681218822Sdimcat confdefs.h >>conftest.$ac_ext
13682218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13683218822Sdim/* end confdefs.h.  */
13684218822Sdim$ac_includes_default
13685218822Sdimint
13686218822Sdimmain ()
13687218822Sdim{
13688218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13689218822Sdimtest_array [0] = 0
13690218822Sdim
13691218822Sdim  ;
13692218822Sdim  return 0;
13693218822Sdim}
13694218822Sdim_ACEOF
13695218822Sdimrm -f conftest.$ac_objext
13696218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13697218822Sdim  (eval $ac_compile) 2>conftest.er1
13698218822Sdim  ac_status=$?
13699218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13700218822Sdim  rm -f conftest.er1
13701218822Sdim  cat conftest.err >&5
13702218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703218822Sdim  (exit $ac_status); } &&
13704218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13705218822Sdim			 || test ! -s conftest.err'
13706218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707218822Sdim  (eval $ac_try) 2>&5
13708218822Sdim  ac_status=$?
13709218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710218822Sdim  (exit $ac_status); }; } &&
13711218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13712218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713218822Sdim  (eval $ac_try) 2>&5
13714218822Sdim  ac_status=$?
13715218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716218822Sdim  (exit $ac_status); }; }; then
13717218822Sdim  ac_hi=$ac_mid; break
1371860484Sobrienelse
13719218822Sdim  echo "$as_me: failed program was:" >&5
13720218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1372160484Sobrien
13722218822Sdimac_lo=`expr $ac_mid + 1`
13723218822Sdim		    if test $ac_lo -le $ac_mid; then
13724218822Sdim		      ac_lo= ac_hi=
13725218822Sdim		      break
13726218822Sdim		    fi
13727218822Sdim		    ac_mid=`expr 2 '*' $ac_mid + 1`
13728218822Sdimfi
13729218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13730218822Sdim  done
13731218822Sdimelse
13732218822Sdim  echo "$as_me: failed program was:" >&5
13733218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1373460484Sobrien
13735218822Sdimcat >conftest.$ac_ext <<_ACEOF
13736218822Sdim/* confdefs.h.  */
13737218822Sdim_ACEOF
13738218822Sdimcat confdefs.h >>conftest.$ac_ext
13739218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13740218822Sdim/* end confdefs.h.  */
13741218822Sdim$ac_includes_default
13742218822Sdimint
13743218822Sdimmain ()
13744218822Sdim{
13745218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13746218822Sdimtest_array [0] = 0
1374760484Sobrien
13748218822Sdim  ;
13749218822Sdim  return 0;
13750218822Sdim}
13751218822Sdim_ACEOF
13752218822Sdimrm -f conftest.$ac_objext
13753218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754218822Sdim  (eval $ac_compile) 2>conftest.er1
13755218822Sdim  ac_status=$?
13756218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13757218822Sdim  rm -f conftest.er1
13758218822Sdim  cat conftest.err >&5
13759218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760218822Sdim  (exit $ac_status); } &&
13761218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13762218822Sdim			 || test ! -s conftest.err'
13763218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764218822Sdim  (eval $ac_try) 2>&5
13765218822Sdim  ac_status=$?
13766218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767218822Sdim  (exit $ac_status); }; } &&
13768218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13769218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770218822Sdim  (eval $ac_try) 2>&5
13771218822Sdim  ac_status=$?
13772218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773218822Sdim  (exit $ac_status); }; }; then
13774218822Sdim  ac_hi=-1 ac_mid=-1
13775218822Sdim  while :; do
13776218822Sdim    cat >conftest.$ac_ext <<_ACEOF
13777218822Sdim/* confdefs.h.  */
13778218822Sdim_ACEOF
13779218822Sdimcat confdefs.h >>conftest.$ac_ext
13780218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13781218822Sdim/* end confdefs.h.  */
13782218822Sdim$ac_includes_default
13783218822Sdimint
13784218822Sdimmain ()
13785218822Sdim{
13786218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13787218822Sdimtest_array [0] = 0
13788218822Sdim
13789218822Sdim  ;
13790218822Sdim  return 0;
13791218822Sdim}
13792218822Sdim_ACEOF
13793218822Sdimrm -f conftest.$ac_objext
13794218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13795218822Sdim  (eval $ac_compile) 2>conftest.er1
13796218822Sdim  ac_status=$?
13797218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13798218822Sdim  rm -f conftest.er1
13799218822Sdim  cat conftest.err >&5
13800218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801218822Sdim  (exit $ac_status); } &&
13802218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13803218822Sdim			 || test ! -s conftest.err'
13804218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805218822Sdim  (eval $ac_try) 2>&5
13806218822Sdim  ac_status=$?
13807218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808218822Sdim  (exit $ac_status); }; } &&
13809218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13810218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811218822Sdim  (eval $ac_try) 2>&5
13812218822Sdim  ac_status=$?
13813218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814218822Sdim  (exit $ac_status); }; }; then
13815218822Sdim  ac_lo=$ac_mid; break
1381660484Sobrienelse
13817218822Sdim  echo "$as_me: failed program was:" >&5
13818218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13819218822Sdim
13820218822Sdimac_hi=`expr '(' $ac_mid ')' - 1`
13821218822Sdim		       if test $ac_mid -le $ac_hi; then
13822218822Sdim			 ac_lo= ac_hi=
13823218822Sdim			 break
13824218822Sdim		       fi
13825218822Sdim		       ac_mid=`expr 2 '*' $ac_mid`
1382660484Sobrienfi
13827218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13828218822Sdim  done
13829218822Sdimelse
13830218822Sdim  echo "$as_me: failed program was:" >&5
13831218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13832218822Sdim
13833218822Sdimac_lo= ac_hi=
1383460484Sobrienfi
13835218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13836218822Sdimfi
13837218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13838218822Sdim# Binary search between lo and hi bounds.
13839218822Sdimwhile test "x$ac_lo" != "x$ac_hi"; do
13840218822Sdim  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13841218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13842218822Sdim/* confdefs.h.  */
13843218822Sdim_ACEOF
13844218822Sdimcat confdefs.h >>conftest.$ac_ext
13845218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13846218822Sdim/* end confdefs.h.  */
13847218822Sdim$ac_includes_default
13848218822Sdimint
13849218822Sdimmain ()
13850218822Sdim{
13851218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13852218822Sdimtest_array [0] = 0
1385360484Sobrien
13854218822Sdim  ;
13855218822Sdim  return 0;
13856218822Sdim}
13857218822Sdim_ACEOF
13858218822Sdimrm -f conftest.$ac_objext
13859218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860218822Sdim  (eval $ac_compile) 2>conftest.er1
13861218822Sdim  ac_status=$?
13862218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13863218822Sdim  rm -f conftest.er1
13864218822Sdim  cat conftest.err >&5
13865218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866218822Sdim  (exit $ac_status); } &&
13867218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13868218822Sdim			 || test ! -s conftest.err'
13869218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870218822Sdim  (eval $ac_try) 2>&5
13871218822Sdim  ac_status=$?
13872218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873218822Sdim  (exit $ac_status); }; } &&
13874218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13875218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876218822Sdim  (eval $ac_try) 2>&5
13877218822Sdim  ac_status=$?
13878218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879218822Sdim  (exit $ac_status); }; }; then
13880218822Sdim  ac_hi=$ac_mid
1388160484Sobrienelse
13882218822Sdim  echo "$as_me: failed program was:" >&5
13883218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13884218822Sdim
13885218822Sdimac_lo=`expr '(' $ac_mid ')' + 1`
1388660484Sobrienfi
13887218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1388860484Sobriendone
13889218822Sdimcase $ac_lo in
13890218822Sdim?*) ac_cv_sizeof_long=$ac_lo;;
13891218822Sdim'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13892218822SdimSee \`config.log' for more details." >&5
13893218822Sdimecho "$as_me: error: cannot compute sizeof (long), 77
13894218822SdimSee \`config.log' for more details." >&2;}
13895218822Sdim   { (exit 1); exit 1; }; } ;;
13896218822Sdimesac
13897218822Sdimelse
13898218822Sdim  if test "$cross_compiling" = yes; then
13899218822Sdim  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13900218822SdimSee \`config.log' for more details." >&5
13901218822Sdimecho "$as_me: error: cannot run test program while cross compiling
13902218822SdimSee \`config.log' for more details." >&2;}
13903218822Sdim   { (exit 1); exit 1; }; }
13904218822Sdimelse
13905218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13906218822Sdim/* confdefs.h.  */
13907218822Sdim_ACEOF
13908218822Sdimcat confdefs.h >>conftest.$ac_ext
13909218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13910218822Sdim/* end confdefs.h.  */
13911218822Sdim$ac_includes_default
13912218822Sdimlong longval () { return (long) (sizeof (long)); }
13913218822Sdimunsigned long ulongval () { return (long) (sizeof (long)); }
13914218822Sdim#include <stdio.h>
13915218822Sdim#include <stdlib.h>
13916218822Sdimint
13917218822Sdimmain ()
13918218822Sdim{
1391960484Sobrien
13920218822Sdim  FILE *f = fopen ("conftest.val", "w");
13921218822Sdim  if (! f)
13922218822Sdim    exit (1);
13923218822Sdim  if (((long) (sizeof (long))) < 0)
13924218822Sdim    {
13925218822Sdim      long i = longval ();
13926218822Sdim      if (i != ((long) (sizeof (long))))
13927218822Sdim	exit (1);
13928218822Sdim      fprintf (f, "%ld\n", i);
13929218822Sdim    }
13930218822Sdim  else
13931218822Sdim    {
13932218822Sdim      unsigned long i = ulongval ();
13933218822Sdim      if (i != ((long) (sizeof (long))))
13934218822Sdim	exit (1);
13935218822Sdim      fprintf (f, "%lu\n", i);
13936218822Sdim    }
13937218822Sdim  exit (ferror (f) || fclose (f) != 0);
1393860484Sobrien
13939218822Sdim  ;
13940218822Sdim  return 0;
13941218822Sdim}
13942218822Sdim_ACEOF
13943218822Sdimrm -f conftest$ac_exeext
13944218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13945218822Sdim  (eval $ac_link) 2>&5
13946218822Sdim  ac_status=$?
13947218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13949218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950218822Sdim  (eval $ac_try) 2>&5
13951218822Sdim  ac_status=$?
13952218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953218822Sdim  (exit $ac_status); }; }; then
13954218822Sdim  ac_cv_sizeof_long=`cat conftest.val`
13955218822Sdimelse
13956218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
13957218822Sdimecho "$as_me: failed program was:" >&5
13958218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1395960484Sobrien
13960218822Sdim( exit $ac_status )
13961218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13962218822SdimSee \`config.log' for more details." >&5
13963218822Sdimecho "$as_me: error: cannot compute sizeof (long), 77
13964218822SdimSee \`config.log' for more details." >&2;}
13965218822Sdim   { (exit 1); exit 1; }; }
13966218822Sdimfi
13967218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13968218822Sdimfi
13969218822Sdimfi
13970218822Sdimrm -f conftest.val
1397160484Sobrienelse
13972218822Sdim  ac_cv_sizeof_long=0
1397360484Sobrienfi
1397460484Sobrienfi
13975218822Sdimecho "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13976218822Sdimecho "${ECHO_T}$ac_cv_sizeof_long" >&6
13977218822Sdimcat >>confdefs.h <<_ACEOF
13978218822Sdim#define SIZEOF_LONG $ac_cv_sizeof_long
13979218822Sdim_ACEOF
1398060484Sobrien
13981218822Sdim ;;
13982218822Sdimesac
1398360484Sobrien
13984218822Sdimif test $acx_cv_header_stdint = stddef.h; then
13985218822Sdim  # Lacking a good header?  Test size of everything and deduce all types.
13986218822Sdim  echo "$as_me:$LINENO: checking for int" >&5
13987218822Sdimecho $ECHO_N "checking for int... $ECHO_C" >&6
13988218822Sdimif test "${ac_cv_type_int+set}" = set; then
13989218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1399060484Sobrienelse
13991218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13992218822Sdim/* confdefs.h.  */
13993218822Sdim_ACEOF
13994218822Sdimcat confdefs.h >>conftest.$ac_ext
13995218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13996218822Sdim/* end confdefs.h.  */
13997218822Sdim$ac_includes_default
13998218822Sdimint
13999218822Sdimmain ()
14000218822Sdim{
14001218822Sdimif ((int *) 0)
14002218822Sdim  return 0;
14003218822Sdimif (sizeof (int))
14004218822Sdim  return 0;
14005218822Sdim  ;
14006218822Sdim  return 0;
14007218822Sdim}
14008218822Sdim_ACEOF
14009218822Sdimrm -f conftest.$ac_objext
14010218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011218822Sdim  (eval $ac_compile) 2>conftest.er1
14012218822Sdim  ac_status=$?
14013218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14014218822Sdim  rm -f conftest.er1
14015218822Sdim  cat conftest.err >&5
14016218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017218822Sdim  (exit $ac_status); } &&
14018218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14019218822Sdim			 || test ! -s conftest.err'
14020218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021218822Sdim  (eval $ac_try) 2>&5
14022218822Sdim  ac_status=$?
14023218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024218822Sdim  (exit $ac_status); }; } &&
14025218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14026218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027218822Sdim  (eval $ac_try) 2>&5
14028218822Sdim  ac_status=$?
14029218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030218822Sdim  (exit $ac_status); }; }; then
14031218822Sdim  ac_cv_type_int=yes
14032218822Sdimelse
14033218822Sdim  echo "$as_me: failed program was:" >&5
14034218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14035218822Sdim
14036218822Sdimac_cv_type_int=no
1403760484Sobrienfi
14038218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14039218822Sdimfi
14040218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14041218822Sdimecho "${ECHO_T}$ac_cv_type_int" >&6
1404260484Sobrien
14043218822Sdimecho "$as_me:$LINENO: checking size of int" >&5
14044218822Sdimecho $ECHO_N "checking size of int... $ECHO_C" >&6
14045218822Sdimif test "${ac_cv_sizeof_int+set}" = set; then
14046218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
14047218822Sdimelse
14048218822Sdim  if test "$ac_cv_type_int" = yes; then
14049218822Sdim  # The cast to unsigned long works around a bug in the HP C Compiler
14050218822Sdim  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14051218822Sdim  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14052218822Sdim  # This bug is HP SR number 8606223364.
14053218822Sdim  if test "$cross_compiling" = yes; then
14054218822Sdim  # Depending upon the size, compute the lo and hi bounds.
14055218822Sdimcat >conftest.$ac_ext <<_ACEOF
14056218822Sdim/* confdefs.h.  */
14057218822Sdim_ACEOF
14058218822Sdimcat confdefs.h >>conftest.$ac_ext
14059218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14060218822Sdim/* end confdefs.h.  */
14061218822Sdim$ac_includes_default
14062218822Sdimint
14063218822Sdimmain ()
14064218822Sdim{
14065218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14066218822Sdimtest_array [0] = 0
1406760484Sobrien
14068218822Sdim  ;
14069218822Sdim  return 0;
14070218822Sdim}
14071218822Sdim_ACEOF
14072218822Sdimrm -f conftest.$ac_objext
14073218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14074218822Sdim  (eval $ac_compile) 2>conftest.er1
14075218822Sdim  ac_status=$?
14076218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14077218822Sdim  rm -f conftest.er1
14078218822Sdim  cat conftest.err >&5
14079218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080218822Sdim  (exit $ac_status); } &&
14081218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14082218822Sdim			 || test ! -s conftest.err'
14083218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084218822Sdim  (eval $ac_try) 2>&5
14085218822Sdim  ac_status=$?
14086218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087218822Sdim  (exit $ac_status); }; } &&
14088218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14089218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090218822Sdim  (eval $ac_try) 2>&5
14091218822Sdim  ac_status=$?
14092218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093218822Sdim  (exit $ac_status); }; }; then
14094218822Sdim  ac_lo=0 ac_mid=0
14095218822Sdim  while :; do
14096218822Sdim    cat >conftest.$ac_ext <<_ACEOF
14097218822Sdim/* confdefs.h.  */
14098218822Sdim_ACEOF
14099218822Sdimcat confdefs.h >>conftest.$ac_ext
14100218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14101218822Sdim/* end confdefs.h.  */
14102218822Sdim$ac_includes_default
14103218822Sdimint
14104218822Sdimmain ()
14105218822Sdim{
14106218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14107218822Sdimtest_array [0] = 0
1410860484Sobrien
14109218822Sdim  ;
14110218822Sdim  return 0;
14111218822Sdim}
14112218822Sdim_ACEOF
14113218822Sdimrm -f conftest.$ac_objext
14114218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14115218822Sdim  (eval $ac_compile) 2>conftest.er1
14116218822Sdim  ac_status=$?
14117218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14118218822Sdim  rm -f conftest.er1
14119218822Sdim  cat conftest.err >&5
14120218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121218822Sdim  (exit $ac_status); } &&
14122218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14123218822Sdim			 || test ! -s conftest.err'
14124218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125218822Sdim  (eval $ac_try) 2>&5
14126218822Sdim  ac_status=$?
14127218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128218822Sdim  (exit $ac_status); }; } &&
14129218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14130218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131218822Sdim  (eval $ac_try) 2>&5
14132218822Sdim  ac_status=$?
14133218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134218822Sdim  (exit $ac_status); }; }; then
14135218822Sdim  ac_hi=$ac_mid; break
14136218822Sdimelse
14137218822Sdim  echo "$as_me: failed program was:" >&5
14138218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1413960484Sobrien
14140218822Sdimac_lo=`expr $ac_mid + 1`
14141218822Sdim		    if test $ac_lo -le $ac_mid; then
14142218822Sdim		      ac_lo= ac_hi=
14143218822Sdim		      break
14144218822Sdim		    fi
14145218822Sdim		    ac_mid=`expr 2 '*' $ac_mid + 1`
14146218822Sdimfi
14147218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14148218822Sdim  done
1414960484Sobrienelse
14150218822Sdim  echo "$as_me: failed program was:" >&5
14151218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1415260484Sobrien
14153218822Sdimcat >conftest.$ac_ext <<_ACEOF
14154218822Sdim/* confdefs.h.  */
14155218822Sdim_ACEOF
14156218822Sdimcat confdefs.h >>conftest.$ac_ext
14157218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14158218822Sdim/* end confdefs.h.  */
14159218822Sdim$ac_includes_default
14160218822Sdimint
14161218822Sdimmain ()
14162218822Sdim{
14163218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14164218822Sdimtest_array [0] = 0
1416560484Sobrien
14166218822Sdim  ;
14167218822Sdim  return 0;
14168218822Sdim}
14169218822Sdim_ACEOF
14170218822Sdimrm -f conftest.$ac_objext
14171218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14172218822Sdim  (eval $ac_compile) 2>conftest.er1
14173218822Sdim  ac_status=$?
14174218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14175218822Sdim  rm -f conftest.er1
14176218822Sdim  cat conftest.err >&5
14177218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178218822Sdim  (exit $ac_status); } &&
14179218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14180218822Sdim			 || test ! -s conftest.err'
14181218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182218822Sdim  (eval $ac_try) 2>&5
14183218822Sdim  ac_status=$?
14184218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185218822Sdim  (exit $ac_status); }; } &&
14186218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14187218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188218822Sdim  (eval $ac_try) 2>&5
14189218822Sdim  ac_status=$?
14190218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191218822Sdim  (exit $ac_status); }; }; then
14192218822Sdim  ac_hi=-1 ac_mid=-1
14193218822Sdim  while :; do
14194218822Sdim    cat >conftest.$ac_ext <<_ACEOF
14195218822Sdim/* confdefs.h.  */
14196218822Sdim_ACEOF
14197218822Sdimcat confdefs.h >>conftest.$ac_ext
14198218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14199218822Sdim/* end confdefs.h.  */
14200218822Sdim$ac_includes_default
14201218822Sdimint
14202218822Sdimmain ()
14203218822Sdim{
14204218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14205218822Sdimtest_array [0] = 0
1420660484Sobrien
14207218822Sdim  ;
14208218822Sdim  return 0;
14209218822Sdim}
14210218822Sdim_ACEOF
14211218822Sdimrm -f conftest.$ac_objext
14212218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213218822Sdim  (eval $ac_compile) 2>conftest.er1
14214218822Sdim  ac_status=$?
14215218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14216218822Sdim  rm -f conftest.er1
14217218822Sdim  cat conftest.err >&5
14218218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219218822Sdim  (exit $ac_status); } &&
14220218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14221218822Sdim			 || test ! -s conftest.err'
14222218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223218822Sdim  (eval $ac_try) 2>&5
14224218822Sdim  ac_status=$?
14225218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226218822Sdim  (exit $ac_status); }; } &&
14227218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14228218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229218822Sdim  (eval $ac_try) 2>&5
14230218822Sdim  ac_status=$?
14231218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232218822Sdim  (exit $ac_status); }; }; then
14233218822Sdim  ac_lo=$ac_mid; break
1423460484Sobrienelse
14235218822Sdim  echo "$as_me: failed program was:" >&5
14236218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14237218822Sdim
14238218822Sdimac_hi=`expr '(' $ac_mid ')' - 1`
14239218822Sdim		       if test $ac_mid -le $ac_hi; then
14240218822Sdim			 ac_lo= ac_hi=
14241218822Sdim			 break
14242218822Sdim		       fi
14243218822Sdim		       ac_mid=`expr 2 '*' $ac_mid`
14244218822Sdimfi
14245218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14246218822Sdim  done
1424733965Sjdpelse
14248218822Sdim  echo "$as_me: failed program was:" >&5
14249218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14250218822Sdim
14251218822Sdimac_lo= ac_hi=
1425233965Sjdpfi
14253218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1425433965Sjdpfi
14255218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14256218822Sdim# Binary search between lo and hi bounds.
14257218822Sdimwhile test "x$ac_lo" != "x$ac_hi"; do
14258218822Sdim  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14259218822Sdim  cat >conftest.$ac_ext <<_ACEOF
14260218822Sdim/* confdefs.h.  */
14261218822Sdim_ACEOF
14262218822Sdimcat confdefs.h >>conftest.$ac_ext
14263218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14264218822Sdim/* end confdefs.h.  */
14265218822Sdim$ac_includes_default
14266218822Sdimint
14267218822Sdimmain ()
14268218822Sdim{
14269218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14270218822Sdimtest_array [0] = 0
14271218822Sdim
14272218822Sdim  ;
14273218822Sdim  return 0;
14274218822Sdim}
14275218822Sdim_ACEOF
14276218822Sdimrm -f conftest.$ac_objext
14277218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14278218822Sdim  (eval $ac_compile) 2>conftest.er1
14279218822Sdim  ac_status=$?
14280218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14281218822Sdim  rm -f conftest.er1
14282218822Sdim  cat conftest.err >&5
14283218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284218822Sdim  (exit $ac_status); } &&
14285218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14286218822Sdim			 || test ! -s conftest.err'
14287218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288218822Sdim  (eval $ac_try) 2>&5
14289218822Sdim  ac_status=$?
14290218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291218822Sdim  (exit $ac_status); }; } &&
14292218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14293218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294218822Sdim  (eval $ac_try) 2>&5
14295218822Sdim  ac_status=$?
14296218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297218822Sdim  (exit $ac_status); }; }; then
14298218822Sdim  ac_hi=$ac_mid
1429960484Sobrienelse
14300218822Sdim  echo "$as_me: failed program was:" >&5
14301218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14302218822Sdim
14303218822Sdimac_lo=`expr '(' $ac_mid ')' + 1`
14304218822Sdimfi
14305218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14306218822Sdimdone
14307218822Sdimcase $ac_lo in
14308218822Sdim?*) ac_cv_sizeof_int=$ac_lo;;
14309218822Sdim'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14310218822SdimSee \`config.log' for more details." >&5
14311218822Sdimecho "$as_me: error: cannot compute sizeof (int), 77
14312218822SdimSee \`config.log' for more details." >&2;}
14313218822Sdim   { (exit 1); exit 1; }; } ;;
14314218822Sdimesac
1431560484Sobrienelse
14316218822Sdim  if test "$cross_compiling" = yes; then
14317218822Sdim  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14318218822SdimSee \`config.log' for more details." >&5
14319218822Sdimecho "$as_me: error: cannot run test program while cross compiling
14320218822SdimSee \`config.log' for more details." >&2;}
14321218822Sdim   { (exit 1); exit 1; }; }
14322218822Sdimelse
14323218822Sdim  cat >conftest.$ac_ext <<_ACEOF
14324218822Sdim/* confdefs.h.  */
14325218822Sdim_ACEOF
14326218822Sdimcat confdefs.h >>conftest.$ac_ext
14327218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14328218822Sdim/* end confdefs.h.  */
14329218822Sdim$ac_includes_default
14330218822Sdimlong longval () { return (long) (sizeof (int)); }
14331218822Sdimunsigned long ulongval () { return (long) (sizeof (int)); }
14332218822Sdim#include <stdio.h>
14333218822Sdim#include <stdlib.h>
14334218822Sdimint
14335218822Sdimmain ()
14336218822Sdim{
1433760484Sobrien
14338218822Sdim  FILE *f = fopen ("conftest.val", "w");
14339218822Sdim  if (! f)
14340218822Sdim    exit (1);
14341218822Sdim  if (((long) (sizeof (int))) < 0)
14342218822Sdim    {
14343218822Sdim      long i = longval ();
14344218822Sdim      if (i != ((long) (sizeof (int))))
14345218822Sdim	exit (1);
14346218822Sdim      fprintf (f, "%ld\n", i);
14347218822Sdim    }
14348218822Sdim  else
14349218822Sdim    {
14350218822Sdim      unsigned long i = ulongval ();
14351218822Sdim      if (i != ((long) (sizeof (int))))
14352218822Sdim	exit (1);
14353218822Sdim      fprintf (f, "%lu\n", i);
14354218822Sdim    }
14355218822Sdim  exit (ferror (f) || fclose (f) != 0);
1435660484Sobrien
14357218822Sdim  ;
14358218822Sdim  return 0;
14359218822Sdim}
14360218822Sdim_ACEOF
14361218822Sdimrm -f conftest$ac_exeext
14362218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14363218822Sdim  (eval $ac_link) 2>&5
14364218822Sdim  ac_status=$?
14365218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14367218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368218822Sdim  (eval $ac_try) 2>&5
14369218822Sdim  ac_status=$?
14370218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371218822Sdim  (exit $ac_status); }; }; then
14372218822Sdim  ac_cv_sizeof_int=`cat conftest.val`
1437333965Sjdpelse
14374218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
14375218822Sdimecho "$as_me: failed program was:" >&5
14376218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1437760484Sobrien
14378218822Sdim( exit $ac_status )
14379218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14380218822SdimSee \`config.log' for more details." >&5
14381218822Sdimecho "$as_me: error: cannot compute sizeof (int), 77
14382218822SdimSee \`config.log' for more details." >&2;}
14383218822Sdim   { (exit 1); exit 1; }; }
14384218822Sdimfi
14385218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14386218822Sdimfi
14387218822Sdimfi
14388218822Sdimrm -f conftest.val
1438960484Sobrienelse
14390218822Sdim  ac_cv_sizeof_int=0
1439133965Sjdpfi
14392218822Sdimfi
14393218822Sdimecho "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14394218822Sdimecho "${ECHO_T}$ac_cv_sizeof_int" >&6
14395218822Sdimcat >>confdefs.h <<_ACEOF
14396218822Sdim#define SIZEOF_INT $ac_cv_sizeof_int
14397218822Sdim_ACEOF
1439833965Sjdp
14399218822Sdim
14400218822Sdim  echo "$as_me:$LINENO: checking for short" >&5
14401218822Sdimecho $ECHO_N "checking for short... $ECHO_C" >&6
14402218822Sdimif test "${ac_cv_type_short+set}" = set; then
14403218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1440460484Sobrienelse
14405218822Sdim  cat >conftest.$ac_ext <<_ACEOF
14406218822Sdim/* confdefs.h.  */
14407218822Sdim_ACEOF
14408218822Sdimcat confdefs.h >>conftest.$ac_ext
14409218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14410218822Sdim/* end confdefs.h.  */
14411218822Sdim$ac_includes_default
14412218822Sdimint
14413218822Sdimmain ()
14414218822Sdim{
14415218822Sdimif ((short *) 0)
14416218822Sdim  return 0;
14417218822Sdimif (sizeof (short))
14418218822Sdim  return 0;
14419218822Sdim  ;
14420218822Sdim  return 0;
14421218822Sdim}
14422218822Sdim_ACEOF
14423218822Sdimrm -f conftest.$ac_objext
14424218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425218822Sdim  (eval $ac_compile) 2>conftest.er1
14426218822Sdim  ac_status=$?
14427218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14428218822Sdim  rm -f conftest.er1
14429218822Sdim  cat conftest.err >&5
14430218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431218822Sdim  (exit $ac_status); } &&
14432218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14433218822Sdim			 || test ! -s conftest.err'
14434218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435218822Sdim  (eval $ac_try) 2>&5
14436218822Sdim  ac_status=$?
14437218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438218822Sdim  (exit $ac_status); }; } &&
14439218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14440218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441218822Sdim  (eval $ac_try) 2>&5
14442218822Sdim  ac_status=$?
14443218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444218822Sdim  (exit $ac_status); }; }; then
14445218822Sdim  ac_cv_type_short=yes
14446218822Sdimelse
14447218822Sdim  echo "$as_me: failed program was:" >&5
14448218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1444960484Sobrien
14450218822Sdimac_cv_type_short=no
1445160484Sobrienfi
14452218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1445360484Sobrienfi
14454218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14455218822Sdimecho "${ECHO_T}$ac_cv_type_short" >&6
1445660484Sobrien
14457218822Sdimecho "$as_me:$LINENO: checking size of short" >&5
14458218822Sdimecho $ECHO_N "checking size of short... $ECHO_C" >&6
14459218822Sdimif test "${ac_cv_sizeof_short+set}" = set; then
14460218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1446160484Sobrienelse
14462218822Sdim  if test "$ac_cv_type_short" = yes; then
14463218822Sdim  # The cast to unsigned long works around a bug in the HP C Compiler
14464218822Sdim  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14465218822Sdim  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14466218822Sdim  # This bug is HP SR number 8606223364.
14467218822Sdim  if test "$cross_compiling" = yes; then
14468218822Sdim  # Depending upon the size, compute the lo and hi bounds.
14469218822Sdimcat >conftest.$ac_ext <<_ACEOF
14470218822Sdim/* confdefs.h.  */
14471218822Sdim_ACEOF
14472218822Sdimcat confdefs.h >>conftest.$ac_ext
14473218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14474218822Sdim/* end confdefs.h.  */
14475218822Sdim$ac_includes_default
14476218822Sdimint
14477218822Sdimmain ()
14478218822Sdim{
14479218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14480218822Sdimtest_array [0] = 0
1448160484Sobrien
14482218822Sdim  ;
14483218822Sdim  return 0;
14484218822Sdim}
14485218822Sdim_ACEOF
14486218822Sdimrm -f conftest.$ac_objext
14487218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14488218822Sdim  (eval $ac_compile) 2>conftest.er1
14489218822Sdim  ac_status=$?
14490218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14491218822Sdim  rm -f conftest.er1
14492218822Sdim  cat conftest.err >&5
14493218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494218822Sdim  (exit $ac_status); } &&
14495218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14496218822Sdim			 || test ! -s conftest.err'
14497218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498218822Sdim  (eval $ac_try) 2>&5
14499218822Sdim  ac_status=$?
14500218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501218822Sdim  (exit $ac_status); }; } &&
14502218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14503218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504218822Sdim  (eval $ac_try) 2>&5
14505218822Sdim  ac_status=$?
14506218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507218822Sdim  (exit $ac_status); }; }; then
14508218822Sdim  ac_lo=0 ac_mid=0
14509218822Sdim  while :; do
14510218822Sdim    cat >conftest.$ac_ext <<_ACEOF
14511218822Sdim/* confdefs.h.  */
14512218822Sdim_ACEOF
14513218822Sdimcat confdefs.h >>conftest.$ac_ext
14514218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14515218822Sdim/* end confdefs.h.  */
14516218822Sdim$ac_includes_default
14517218822Sdimint
14518218822Sdimmain ()
14519218822Sdim{
14520218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14521218822Sdimtest_array [0] = 0
1452260484Sobrien
14523218822Sdim  ;
14524218822Sdim  return 0;
14525218822Sdim}
14526218822Sdim_ACEOF
14527218822Sdimrm -f conftest.$ac_objext
14528218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14529218822Sdim  (eval $ac_compile) 2>conftest.er1
14530218822Sdim  ac_status=$?
14531218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14532218822Sdim  rm -f conftest.er1
14533218822Sdim  cat conftest.err >&5
14534218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535218822Sdim  (exit $ac_status); } &&
14536218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14537218822Sdim			 || test ! -s conftest.err'
14538218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539218822Sdim  (eval $ac_try) 2>&5
14540218822Sdim  ac_status=$?
14541218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542218822Sdim  (exit $ac_status); }; } &&
14543218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14544218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545218822Sdim  (eval $ac_try) 2>&5
14546218822Sdim  ac_status=$?
14547218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548218822Sdim  (exit $ac_status); }; }; then
14549218822Sdim  ac_hi=$ac_mid; break
14550218822Sdimelse
14551218822Sdim  echo "$as_me: failed program was:" >&5
14552218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1455360484Sobrien
14554218822Sdimac_lo=`expr $ac_mid + 1`
14555218822Sdim		    if test $ac_lo -le $ac_mid; then
14556218822Sdim		      ac_lo= ac_hi=
14557218822Sdim		      break
14558218822Sdim		    fi
14559218822Sdim		    ac_mid=`expr 2 '*' $ac_mid + 1`
14560218822Sdimfi
14561218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1456260484Sobrien  done
1456360484Sobrienelse
14564218822Sdim  echo "$as_me: failed program was:" >&5
14565218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1456660484Sobrien
14567218822Sdimcat >conftest.$ac_ext <<_ACEOF
14568218822Sdim/* confdefs.h.  */
14569218822Sdim_ACEOF
14570218822Sdimcat confdefs.h >>conftest.$ac_ext
14571218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14572218822Sdim/* end confdefs.h.  */
14573218822Sdim$ac_includes_default
14574218822Sdimint
14575218822Sdimmain ()
14576218822Sdim{
14577218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14578218822Sdimtest_array [0] = 0
1457960484Sobrien
14580218822Sdim  ;
14581218822Sdim  return 0;
14582218822Sdim}
14583218822Sdim_ACEOF
14584218822Sdimrm -f conftest.$ac_objext
14585218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586218822Sdim  (eval $ac_compile) 2>conftest.er1
14587218822Sdim  ac_status=$?
14588218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14589218822Sdim  rm -f conftest.er1
14590218822Sdim  cat conftest.err >&5
14591218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592218822Sdim  (exit $ac_status); } &&
14593218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14594218822Sdim			 || test ! -s conftest.err'
14595218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596218822Sdim  (eval $ac_try) 2>&5
14597218822Sdim  ac_status=$?
14598218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599218822Sdim  (exit $ac_status); }; } &&
14600218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14601218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602218822Sdim  (eval $ac_try) 2>&5
14603218822Sdim  ac_status=$?
14604218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605218822Sdim  (exit $ac_status); }; }; then
14606218822Sdim  ac_hi=-1 ac_mid=-1
14607218822Sdim  while :; do
14608218822Sdim    cat >conftest.$ac_ext <<_ACEOF
14609218822Sdim/* confdefs.h.  */
14610218822Sdim_ACEOF
14611218822Sdimcat confdefs.h >>conftest.$ac_ext
14612218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14613218822Sdim/* end confdefs.h.  */
14614218822Sdim$ac_includes_default
14615218822Sdimint
14616218822Sdimmain ()
14617218822Sdim{
14618218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14619218822Sdimtest_array [0] = 0
1462060484Sobrien
14621218822Sdim  ;
14622218822Sdim  return 0;
14623218822Sdim}
14624218822Sdim_ACEOF
14625218822Sdimrm -f conftest.$ac_objext
14626218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14627218822Sdim  (eval $ac_compile) 2>conftest.er1
14628218822Sdim  ac_status=$?
14629218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14630218822Sdim  rm -f conftest.er1
14631218822Sdim  cat conftest.err >&5
14632218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633218822Sdim  (exit $ac_status); } &&
14634218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14635218822Sdim			 || test ! -s conftest.err'
14636218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637218822Sdim  (eval $ac_try) 2>&5
14638218822Sdim  ac_status=$?
14639218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640218822Sdim  (exit $ac_status); }; } &&
14641218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14642218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643218822Sdim  (eval $ac_try) 2>&5
14644218822Sdim  ac_status=$?
14645218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646218822Sdim  (exit $ac_status); }; }; then
14647218822Sdim  ac_lo=$ac_mid; break
1464860484Sobrienelse
14649218822Sdim  echo "$as_me: failed program was:" >&5
14650218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14651218822Sdim
14652218822Sdimac_hi=`expr '(' $ac_mid ')' - 1`
14653218822Sdim		       if test $ac_mid -le $ac_hi; then
14654218822Sdim			 ac_lo= ac_hi=
14655218822Sdim			 break
14656218822Sdim		       fi
14657218822Sdim		       ac_mid=`expr 2 '*' $ac_mid`
1465860484Sobrienfi
14659218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14660218822Sdim  done
14661218822Sdimelse
14662218822Sdim  echo "$as_me: failed program was:" >&5
14663218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14664218822Sdim
14665218822Sdimac_lo= ac_hi=
1466660484Sobrienfi
14667218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14668218822Sdimfi
14669218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14670218822Sdim# Binary search between lo and hi bounds.
14671218822Sdimwhile test "x$ac_lo" != "x$ac_hi"; do
14672218822Sdim  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14673218822Sdim  cat >conftest.$ac_ext <<_ACEOF
14674218822Sdim/* confdefs.h.  */
14675218822Sdim_ACEOF
14676218822Sdimcat confdefs.h >>conftest.$ac_ext
14677218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14678218822Sdim/* end confdefs.h.  */
14679218822Sdim$ac_includes_default
14680218822Sdimint
14681218822Sdimmain ()
14682218822Sdim{
14683218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14684218822Sdimtest_array [0] = 0
1468560484Sobrien
14686218822Sdim  ;
14687218822Sdim  return 0;
14688218822Sdim}
14689218822Sdim_ACEOF
14690218822Sdimrm -f conftest.$ac_objext
14691218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692218822Sdim  (eval $ac_compile) 2>conftest.er1
14693218822Sdim  ac_status=$?
14694218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14695218822Sdim  rm -f conftest.er1
14696218822Sdim  cat conftest.err >&5
14697218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698218822Sdim  (exit $ac_status); } &&
14699218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14700218822Sdim			 || test ! -s conftest.err'
14701218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702218822Sdim  (eval $ac_try) 2>&5
14703218822Sdim  ac_status=$?
14704218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705218822Sdim  (exit $ac_status); }; } &&
14706218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14707218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708218822Sdim  (eval $ac_try) 2>&5
14709218822Sdim  ac_status=$?
14710218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711218822Sdim  (exit $ac_status); }; }; then
14712218822Sdim  ac_hi=$ac_mid
1471360484Sobrienelse
14714218822Sdim  echo "$as_me: failed program was:" >&5
14715218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14716218822Sdim
14717218822Sdimac_lo=`expr '(' $ac_mid ')' + 1`
1471860484Sobrienfi
14719218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1472060484Sobriendone
14721218822Sdimcase $ac_lo in
14722218822Sdim?*) ac_cv_sizeof_short=$ac_lo;;
14723218822Sdim'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14724218822SdimSee \`config.log' for more details." >&5
14725218822Sdimecho "$as_me: error: cannot compute sizeof (short), 77
14726218822SdimSee \`config.log' for more details." >&2;}
14727218822Sdim   { (exit 1); exit 1; }; } ;;
14728218822Sdimesac
14729218822Sdimelse
14730218822Sdim  if test "$cross_compiling" = yes; then
14731218822Sdim  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14732218822SdimSee \`config.log' for more details." >&5
14733218822Sdimecho "$as_me: error: cannot run test program while cross compiling
14734218822SdimSee \`config.log' for more details." >&2;}
14735218822Sdim   { (exit 1); exit 1; }; }
14736218822Sdimelse
14737218822Sdim  cat >conftest.$ac_ext <<_ACEOF
14738218822Sdim/* confdefs.h.  */
14739218822Sdim_ACEOF
14740218822Sdimcat confdefs.h >>conftest.$ac_ext
14741218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14742218822Sdim/* end confdefs.h.  */
14743218822Sdim$ac_includes_default
14744218822Sdimlong longval () { return (long) (sizeof (short)); }
14745218822Sdimunsigned long ulongval () { return (long) (sizeof (short)); }
14746218822Sdim#include <stdio.h>
14747218822Sdim#include <stdlib.h>
14748218822Sdimint
14749218822Sdimmain ()
14750218822Sdim{
1475160484Sobrien
14752218822Sdim  FILE *f = fopen ("conftest.val", "w");
14753218822Sdim  if (! f)
14754218822Sdim    exit (1);
14755218822Sdim  if (((long) (sizeof (short))) < 0)
14756218822Sdim    {
14757218822Sdim      long i = longval ();
14758218822Sdim      if (i != ((long) (sizeof (short))))
14759218822Sdim	exit (1);
14760218822Sdim      fprintf (f, "%ld\n", i);
14761218822Sdim    }
14762218822Sdim  else
14763218822Sdim    {
14764218822Sdim      unsigned long i = ulongval ();
14765218822Sdim      if (i != ((long) (sizeof (short))))
14766218822Sdim	exit (1);
14767218822Sdim      fprintf (f, "%lu\n", i);
14768218822Sdim    }
14769218822Sdim  exit (ferror (f) || fclose (f) != 0);
14770218822Sdim
14771218822Sdim  ;
14772218822Sdim  return 0;
14773218822Sdim}
14774218822Sdim_ACEOF
14775218822Sdimrm -f conftest$ac_exeext
14776218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14777218822Sdim  (eval $ac_link) 2>&5
14778218822Sdim  ac_status=$?
14779218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14781218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782218822Sdim  (eval $ac_try) 2>&5
14783218822Sdim  ac_status=$?
14784218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785218822Sdim  (exit $ac_status); }; }; then
14786218822Sdim  ac_cv_sizeof_short=`cat conftest.val`
1478760484Sobrienelse
14788218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
14789218822Sdimecho "$as_me: failed program was:" >&5
14790218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14791218822Sdim
14792218822Sdim( exit $ac_status )
14793218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14794218822SdimSee \`config.log' for more details." >&5
14795218822Sdimecho "$as_me: error: cannot compute sizeof (short), 77
14796218822SdimSee \`config.log' for more details." >&2;}
14797218822Sdim   { (exit 1); exit 1; }; }
1479860484Sobrienfi
14799218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14800218822Sdimfi
14801218822Sdimfi
14802218822Sdimrm -f conftest.val
1480360484Sobrienelse
14804218822Sdim  ac_cv_sizeof_short=0
1480560484Sobrienfi
14806218822Sdimfi
14807218822Sdimecho "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14808218822Sdimecho "${ECHO_T}$ac_cv_sizeof_short" >&6
14809218822Sdimcat >>confdefs.h <<_ACEOF
14810218822Sdim#define SIZEOF_SHORT $ac_cv_sizeof_short
14811218822Sdim_ACEOF
1481260484Sobrien
14813218822Sdim
14814218822Sdim  echo "$as_me:$LINENO: checking for char" >&5
14815218822Sdimecho $ECHO_N "checking for char... $ECHO_C" >&6
14816218822Sdimif test "${ac_cv_type_char+set}" = set; then
14817218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1481860484Sobrienelse
14819218822Sdim  cat >conftest.$ac_ext <<_ACEOF
14820218822Sdim/* confdefs.h.  */
14821218822Sdim_ACEOF
14822218822Sdimcat confdefs.h >>conftest.$ac_ext
14823218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14824218822Sdim/* end confdefs.h.  */
14825218822Sdim$ac_includes_default
14826218822Sdimint
14827218822Sdimmain ()
14828218822Sdim{
14829218822Sdimif ((char *) 0)
14830218822Sdim  return 0;
14831218822Sdimif (sizeof (char))
14832218822Sdim  return 0;
14833218822Sdim  ;
14834218822Sdim  return 0;
14835218822Sdim}
14836218822Sdim_ACEOF
14837218822Sdimrm -f conftest.$ac_objext
14838218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839218822Sdim  (eval $ac_compile) 2>conftest.er1
14840218822Sdim  ac_status=$?
14841218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14842218822Sdim  rm -f conftest.er1
14843218822Sdim  cat conftest.err >&5
14844218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845218822Sdim  (exit $ac_status); } &&
14846218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14847218822Sdim			 || test ! -s conftest.err'
14848218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849218822Sdim  (eval $ac_try) 2>&5
14850218822Sdim  ac_status=$?
14851218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852218822Sdim  (exit $ac_status); }; } &&
14853218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14854218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855218822Sdim  (eval $ac_try) 2>&5
14856218822Sdim  ac_status=$?
14857218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858218822Sdim  (exit $ac_status); }; }; then
14859218822Sdim  ac_cv_type_char=yes
1486060484Sobrienelse
14861218822Sdim  echo "$as_me: failed program was:" >&5
14862218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14863218822Sdim
14864218822Sdimac_cv_type_char=no
1486560484Sobrienfi
14866218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14867218822Sdimfi
14868218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14869218822Sdimecho "${ECHO_T}$ac_cv_type_char" >&6
1487060484Sobrien
14871218822Sdimecho "$as_me:$LINENO: checking size of char" >&5
14872218822Sdimecho $ECHO_N "checking size of char... $ECHO_C" >&6
14873218822Sdimif test "${ac_cv_sizeof_char+set}" = set; then
14874218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
14875218822Sdimelse
14876218822Sdim  if test "$ac_cv_type_char" = yes; then
14877218822Sdim  # The cast to unsigned long works around a bug in the HP C Compiler
14878218822Sdim  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14879218822Sdim  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14880218822Sdim  # This bug is HP SR number 8606223364.
14881218822Sdim  if test "$cross_compiling" = yes; then
14882218822Sdim  # Depending upon the size, compute the lo and hi bounds.
14883218822Sdimcat >conftest.$ac_ext <<_ACEOF
14884218822Sdim/* confdefs.h.  */
14885218822Sdim_ACEOF
14886218822Sdimcat confdefs.h >>conftest.$ac_ext
14887218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14888218822Sdim/* end confdefs.h.  */
14889218822Sdim$ac_includes_default
14890218822Sdimint
14891218822Sdimmain ()
14892218822Sdim{
14893218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14894218822Sdimtest_array [0] = 0
1489560484Sobrien
14896218822Sdim  ;
14897218822Sdim  return 0;
14898218822Sdim}
14899218822Sdim_ACEOF
14900218822Sdimrm -f conftest.$ac_objext
14901218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14902218822Sdim  (eval $ac_compile) 2>conftest.er1
14903218822Sdim  ac_status=$?
14904218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14905218822Sdim  rm -f conftest.er1
14906218822Sdim  cat conftest.err >&5
14907218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908218822Sdim  (exit $ac_status); } &&
14909218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14910218822Sdim			 || test ! -s conftest.err'
14911218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912218822Sdim  (eval $ac_try) 2>&5
14913218822Sdim  ac_status=$?
14914218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915218822Sdim  (exit $ac_status); }; } &&
14916218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14917218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918218822Sdim  (eval $ac_try) 2>&5
14919218822Sdim  ac_status=$?
14920218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921218822Sdim  (exit $ac_status); }; }; then
14922218822Sdim  ac_lo=0 ac_mid=0
14923218822Sdim  while :; do
14924218822Sdim    cat >conftest.$ac_ext <<_ACEOF
14925218822Sdim/* confdefs.h.  */
14926218822Sdim_ACEOF
14927218822Sdimcat confdefs.h >>conftest.$ac_ext
14928218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14929218822Sdim/* end confdefs.h.  */
14930218822Sdim$ac_includes_default
14931218822Sdimint
14932218822Sdimmain ()
14933218822Sdim{
14934218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14935218822Sdimtest_array [0] = 0
14936218822Sdim
14937218822Sdim  ;
14938218822Sdim  return 0;
14939218822Sdim}
14940218822Sdim_ACEOF
14941218822Sdimrm -f conftest.$ac_objext
14942218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14943218822Sdim  (eval $ac_compile) 2>conftest.er1
14944218822Sdim  ac_status=$?
14945218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14946218822Sdim  rm -f conftest.er1
14947218822Sdim  cat conftest.err >&5
14948218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949218822Sdim  (exit $ac_status); } &&
14950218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14951218822Sdim			 || test ! -s conftest.err'
14952218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953218822Sdim  (eval $ac_try) 2>&5
14954218822Sdim  ac_status=$?
14955218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956218822Sdim  (exit $ac_status); }; } &&
14957218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14958218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959218822Sdim  (eval $ac_try) 2>&5
14960218822Sdim  ac_status=$?
14961218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962218822Sdim  (exit $ac_status); }; }; then
14963218822Sdim  ac_hi=$ac_mid; break
1496460484Sobrienelse
14965218822Sdim  echo "$as_me: failed program was:" >&5
14966218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14967218822Sdim
14968218822Sdimac_lo=`expr $ac_mid + 1`
14969218822Sdim		    if test $ac_lo -le $ac_mid; then
14970218822Sdim		      ac_lo= ac_hi=
14971218822Sdim		      break
14972218822Sdim		    fi
14973218822Sdim		    ac_mid=`expr 2 '*' $ac_mid + 1`
1497460484Sobrienfi
14975218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14976218822Sdim  done
1497760484Sobrienelse
14978218822Sdim  echo "$as_me: failed program was:" >&5
14979218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1498060484Sobrien
14981218822Sdimcat >conftest.$ac_ext <<_ACEOF
14982218822Sdim/* confdefs.h.  */
14983218822Sdim_ACEOF
14984218822Sdimcat confdefs.h >>conftest.$ac_ext
14985218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14986218822Sdim/* end confdefs.h.  */
14987218822Sdim$ac_includes_default
14988218822Sdimint
14989218822Sdimmain ()
14990218822Sdim{
14991218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14992218822Sdimtest_array [0] = 0
1499360484Sobrien
14994218822Sdim  ;
14995218822Sdim  return 0;
14996218822Sdim}
14997218822Sdim_ACEOF
14998218822Sdimrm -f conftest.$ac_objext
14999218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15000218822Sdim  (eval $ac_compile) 2>conftest.er1
15001218822Sdim  ac_status=$?
15002218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15003218822Sdim  rm -f conftest.er1
15004218822Sdim  cat conftest.err >&5
15005218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006218822Sdim  (exit $ac_status); } &&
15007218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15008218822Sdim			 || test ! -s conftest.err'
15009218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010218822Sdim  (eval $ac_try) 2>&5
15011218822Sdim  ac_status=$?
15012218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013218822Sdim  (exit $ac_status); }; } &&
15014218822Sdim	 { ac_try='test -s conftest.$ac_objext'
15015218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016218822Sdim  (eval $ac_try) 2>&5
15017218822Sdim  ac_status=$?
15018218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019218822Sdim  (exit $ac_status); }; }; then
15020218822Sdim  ac_hi=-1 ac_mid=-1
15021218822Sdim  while :; do
15022218822Sdim    cat >conftest.$ac_ext <<_ACEOF
15023218822Sdim/* confdefs.h.  */
15024218822Sdim_ACEOF
15025218822Sdimcat confdefs.h >>conftest.$ac_ext
15026218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15027218822Sdim/* end confdefs.h.  */
15028218822Sdim$ac_includes_default
15029218822Sdimint
15030218822Sdimmain ()
15031218822Sdim{
15032218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15033218822Sdimtest_array [0] = 0
1503460484Sobrien
15035218822Sdim  ;
15036218822Sdim  return 0;
15037218822Sdim}
15038218822Sdim_ACEOF
15039218822Sdimrm -f conftest.$ac_objext
15040218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041218822Sdim  (eval $ac_compile) 2>conftest.er1
15042218822Sdim  ac_status=$?
15043218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15044218822Sdim  rm -f conftest.er1
15045218822Sdim  cat conftest.err >&5
15046218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047218822Sdim  (exit $ac_status); } &&
15048218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15049218822Sdim			 || test ! -s conftest.err'
15050218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051218822Sdim  (eval $ac_try) 2>&5
15052218822Sdim  ac_status=$?
15053218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054218822Sdim  (exit $ac_status); }; } &&
15055218822Sdim	 { ac_try='test -s conftest.$ac_objext'
15056218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057218822Sdim  (eval $ac_try) 2>&5
15058218822Sdim  ac_status=$?
15059218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060218822Sdim  (exit $ac_status); }; }; then
15061218822Sdim  ac_lo=$ac_mid; break
1506260484Sobrienelse
15063218822Sdim  echo "$as_me: failed program was:" >&5
15064218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15065218822Sdim
15066218822Sdimac_hi=`expr '(' $ac_mid ')' - 1`
15067218822Sdim		       if test $ac_mid -le $ac_hi; then
15068218822Sdim			 ac_lo= ac_hi=
15069218822Sdim			 break
15070218822Sdim		       fi
15071218822Sdim		       ac_mid=`expr 2 '*' $ac_mid`
15072218822Sdimfi
15073218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1507460484Sobrien  done
1507560484Sobrienelse
15076218822Sdim  echo "$as_me: failed program was:" >&5
15077218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15078218822Sdim
15079218822Sdimac_lo= ac_hi=
1508060484Sobrienfi
15081218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15082218822Sdimfi
15083218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15084218822Sdim# Binary search between lo and hi bounds.
15085218822Sdimwhile test "x$ac_lo" != "x$ac_hi"; do
15086218822Sdim  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15087218822Sdim  cat >conftest.$ac_ext <<_ACEOF
15088218822Sdim/* confdefs.h.  */
15089218822Sdim_ACEOF
15090218822Sdimcat confdefs.h >>conftest.$ac_ext
15091218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15092218822Sdim/* end confdefs.h.  */
15093218822Sdim$ac_includes_default
15094218822Sdimint
15095218822Sdimmain ()
15096218822Sdim{
15097218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15098218822Sdimtest_array [0] = 0
1509960484Sobrien
15100218822Sdim  ;
15101218822Sdim  return 0;
15102218822Sdim}
15103218822Sdim_ACEOF
15104218822Sdimrm -f conftest.$ac_objext
15105218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15106218822Sdim  (eval $ac_compile) 2>conftest.er1
15107218822Sdim  ac_status=$?
15108218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15109218822Sdim  rm -f conftest.er1
15110218822Sdim  cat conftest.err >&5
15111218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112218822Sdim  (exit $ac_status); } &&
15113218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15114218822Sdim			 || test ! -s conftest.err'
15115218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116218822Sdim  (eval $ac_try) 2>&5
15117218822Sdim  ac_status=$?
15118218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119218822Sdim  (exit $ac_status); }; } &&
15120218822Sdim	 { ac_try='test -s conftest.$ac_objext'
15121218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122218822Sdim  (eval $ac_try) 2>&5
15123218822Sdim  ac_status=$?
15124218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125218822Sdim  (exit $ac_status); }; }; then
15126218822Sdim  ac_hi=$ac_mid
1512760484Sobrienelse
15128218822Sdim  echo "$as_me: failed program was:" >&5
15129218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15130218822Sdim
15131218822Sdimac_lo=`expr '(' $ac_mid ')' + 1`
15132218822Sdimfi
15133218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15134218822Sdimdone
15135218822Sdimcase $ac_lo in
15136218822Sdim?*) ac_cv_sizeof_char=$ac_lo;;
15137218822Sdim'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15138218822SdimSee \`config.log' for more details." >&5
15139218822Sdimecho "$as_me: error: cannot compute sizeof (char), 77
15140218822SdimSee \`config.log' for more details." >&2;}
15141218822Sdim   { (exit 1); exit 1; }; } ;;
1514260484Sobrienesac
1514360484Sobrienelse
15144218822Sdim  if test "$cross_compiling" = yes; then
15145218822Sdim  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15146218822SdimSee \`config.log' for more details." >&5
15147218822Sdimecho "$as_me: error: cannot run test program while cross compiling
15148218822SdimSee \`config.log' for more details." >&2;}
15149218822Sdim   { (exit 1); exit 1; }; }
15150218822Sdimelse
15151218822Sdim  cat >conftest.$ac_ext <<_ACEOF
15152218822Sdim/* confdefs.h.  */
15153218822Sdim_ACEOF
15154218822Sdimcat confdefs.h >>conftest.$ac_ext
15155218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15156218822Sdim/* end confdefs.h.  */
15157218822Sdim$ac_includes_default
15158218822Sdimlong longval () { return (long) (sizeof (char)); }
15159218822Sdimunsigned long ulongval () { return (long) (sizeof (char)); }
15160218822Sdim#include <stdio.h>
15161218822Sdim#include <stdlib.h>
15162218822Sdimint
15163218822Sdimmain ()
15164218822Sdim{
1516560484Sobrien
15166218822Sdim  FILE *f = fopen ("conftest.val", "w");
15167218822Sdim  if (! f)
15168218822Sdim    exit (1);
15169218822Sdim  if (((long) (sizeof (char))) < 0)
15170218822Sdim    {
15171218822Sdim      long i = longval ();
15172218822Sdim      if (i != ((long) (sizeof (char))))
15173218822Sdim	exit (1);
15174218822Sdim      fprintf (f, "%ld\n", i);
15175218822Sdim    }
15176218822Sdim  else
15177218822Sdim    {
15178218822Sdim      unsigned long i = ulongval ();
15179218822Sdim      if (i != ((long) (sizeof (char))))
15180218822Sdim	exit (1);
15181218822Sdim      fprintf (f, "%lu\n", i);
15182218822Sdim    }
15183218822Sdim  exit (ferror (f) || fclose (f) != 0);
15184218822Sdim
15185218822Sdim  ;
15186218822Sdim  return 0;
15187218822Sdim}
15188218822Sdim_ACEOF
15189218822Sdimrm -f conftest$ac_exeext
15190218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15191218822Sdim  (eval $ac_link) 2>&5
15192218822Sdim  ac_status=$?
15193218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15195218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196218822Sdim  (eval $ac_try) 2>&5
15197218822Sdim  ac_status=$?
15198218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199218822Sdim  (exit $ac_status); }; }; then
15200218822Sdim  ac_cv_sizeof_char=`cat conftest.val`
1520160484Sobrienelse
15202218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
15203218822Sdimecho "$as_me: failed program was:" >&5
15204218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15205218822Sdim
15206218822Sdim( exit $ac_status )
15207218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15208218822SdimSee \`config.log' for more details." >&5
15209218822Sdimecho "$as_me: error: cannot compute sizeof (char), 77
15210218822SdimSee \`config.log' for more details." >&2;}
15211218822Sdim   { (exit 1); exit 1; }; }
1521260484Sobrienfi
15213218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15214218822Sdimfi
15215218822Sdimfi
15216218822Sdimrm -f conftest.val
1521760484Sobrienelse
15218218822Sdim  ac_cv_sizeof_char=0
1521960484Sobrienfi
15220218822Sdimfi
15221218822Sdimecho "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15222218822Sdimecho "${ECHO_T}$ac_cv_sizeof_char" >&6
15223218822Sdimcat >>confdefs.h <<_ACEOF
15224218822Sdim#define SIZEOF_CHAR $ac_cv_sizeof_char
15225218822Sdim_ACEOF
1522660484Sobrien
1522760484Sobrien
1522860484Sobrien
15229218822Sdim  echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15230218822Sdimecho $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15231218822Sdim  case "$ac_cv_sizeof_char" in
15232218822Sdim    1) acx_cv_type_int8_t=char ;;
15233218822Sdim    *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15234218822Sdimecho "$as_me: error: no 8-bit type" >&2;}
15235218822Sdim   { (exit please report a bug); exit please report a bug; }; }
15236218822Sdim  esac
15237218822Sdim  echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15238218822Sdimecho "${ECHO_T}$acx_cv_type_int8_t" >&6
1523960484Sobrien
15240218822Sdim  echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15241218822Sdimecho $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15242218822Sdim  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15243218822Sdim    2:*) acx_cv_type_int16_t=int ;;
15244218822Sdim    *:2) acx_cv_type_int16_t=short ;;
15245218822Sdim    *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15246218822Sdimecho "$as_me: error: no 16-bit type" >&2;}
15247218822Sdim   { (exit please report a bug); exit please report a bug; }; }
15248218822Sdim  esac
15249218822Sdim  echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15250218822Sdimecho "${ECHO_T}$acx_cv_type_int16_t" >&6
1525160484Sobrien
15252218822Sdim  echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15253218822Sdimecho $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15254218822Sdim  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15255218822Sdim    4:*) acx_cv_type_int32_t=int ;;
15256218822Sdim    *:4) acx_cv_type_int32_t=long ;;
15257218822Sdim    *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15258218822Sdimecho "$as_me: error: no 32-bit type" >&2;}
15259218822Sdim   { (exit please report a bug); exit please report a bug; }; }
15260218822Sdim  esac
15261218822Sdim  echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15262218822Sdimecho "${ECHO_T}$acx_cv_type_int32_t" >&6
15263218822Sdimfi
1526460484Sobrien
15265218822Sdim# These tests are here to make the output prettier
1526660484Sobrien
15267218822Sdimif test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15268218822Sdim  case "$ac_cv_sizeof_long" in
15269218822Sdim    8) acx_cv_type_int64_t=long ;;
15270218822Sdim  esac
15271218822Sdim  echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15272218822Sdimecho $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15273218822Sdim  echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15274218822Sdimecho "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15275218822Sdimfi
1527660484Sobrien
15277218822Sdim# Now we can use the above types
1527860484Sobrien
15279218822Sdimif test "$ac_cv_type_uintptr_t" != yes; then
15280218822Sdim  echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15281218822Sdimecho $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15282218822Sdim  case $ac_cv_sizeof_void_p in
15283218822Sdim    2) acx_cv_type_intptr_t=int16_t ;;
15284218822Sdim    4) acx_cv_type_intptr_t=int32_t ;;
15285218822Sdim    8) acx_cv_type_intptr_t=int64_t ;;
15286218822Sdim    *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15287218822Sdimecho "$as_me: error: no equivalent for intptr_t" >&2;}
15288218822Sdim   { (exit please report a bug); exit please report a bug; }; }
15289218822Sdim  esac
15290218822Sdim  echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15291218822Sdimecho "${ECHO_T}$acx_cv_type_intptr_t" >&6
15292218822Sdimfi
1529360484Sobrien
15294218822Sdim# ----------------- done all checks, emit header -------------
15295218822Sdim          ac_config_commands="$ac_config_commands bfd_stdint.h"
15296218822Sdim
15297218822Sdim
15298218822Sdim
15299218822Sdimecho "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15300218822Sdimecho $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15301218822Sdimif test "${ac_cv_header_time+set}" = set; then
15302218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1530360484Sobrienelse
15304218822Sdim  cat >conftest.$ac_ext <<_ACEOF
15305218822Sdim/* confdefs.h.  */
15306218822Sdim_ACEOF
15307218822Sdimcat confdefs.h >>conftest.$ac_ext
15308218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15309218822Sdim/* end confdefs.h.  */
15310218822Sdim#include <sys/types.h>
15311218822Sdim#include <sys/time.h>
15312218822Sdim#include <time.h>
15313218822Sdim
15314218822Sdimint
15315218822Sdimmain ()
15316218822Sdim{
15317218822Sdimif ((struct tm *) 0)
15318218822Sdimreturn 0;
15319218822Sdim  ;
15320218822Sdim  return 0;
15321218822Sdim}
15322218822Sdim_ACEOF
15323218822Sdimrm -f conftest.$ac_objext
15324218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325218822Sdim  (eval $ac_compile) 2>conftest.er1
15326218822Sdim  ac_status=$?
15327218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15328218822Sdim  rm -f conftest.er1
15329218822Sdim  cat conftest.err >&5
15330218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331218822Sdim  (exit $ac_status); } &&
15332218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15333218822Sdim			 || test ! -s conftest.err'
15334218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335218822Sdim  (eval $ac_try) 2>&5
15336218822Sdim  ac_status=$?
15337218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338218822Sdim  (exit $ac_status); }; } &&
15339218822Sdim	 { ac_try='test -s conftest.$ac_objext'
15340218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341218822Sdim  (eval $ac_try) 2>&5
15342218822Sdim  ac_status=$?
15343218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344218822Sdim  (exit $ac_status); }; }; then
15345218822Sdim  ac_cv_header_time=yes
1534660484Sobrienelse
15347218822Sdim  echo "$as_me: failed program was:" >&5
15348218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15349218822Sdim
15350218822Sdimac_cv_header_time=no
1535160484Sobrienfi
15352218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1535360484Sobrienfi
15354218822Sdimecho "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15355218822Sdimecho "${ECHO_T}$ac_cv_header_time" >&6
15356218822Sdimif test $ac_cv_header_time = yes; then
1535760484Sobrien
15358218822Sdimcat >>confdefs.h <<\_ACEOF
15359218822Sdim#define TIME_WITH_SYS_TIME 1
15360218822Sdim_ACEOF
1536160484Sobrien
15362218822Sdimfi
1536360484Sobrien
1536460484Sobrien
1536560484Sobrien
1536660484Sobrien
1536760484Sobrien
1536860484Sobrien
15369218822Sdimac_header_dirent=no
15370218822Sdimfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15371218822Sdim  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15372218822Sdimecho "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15373218822Sdimecho $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15374218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
15375218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
15376218822Sdimelse
15377218822Sdim  cat >conftest.$ac_ext <<_ACEOF
15378218822Sdim/* confdefs.h.  */
15379218822Sdim_ACEOF
15380218822Sdimcat confdefs.h >>conftest.$ac_ext
15381218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15382218822Sdim/* end confdefs.h.  */
15383218822Sdim#include <sys/types.h>
15384218822Sdim#include <$ac_hdr>
1538560484Sobrien
15386218822Sdimint
15387218822Sdimmain ()
15388218822Sdim{
15389218822Sdimif ((DIR *) 0)
15390218822Sdimreturn 0;
15391218822Sdim  ;
15392218822Sdim  return 0;
15393218822Sdim}
15394218822Sdim_ACEOF
15395218822Sdimrm -f conftest.$ac_objext
15396218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15397218822Sdim  (eval $ac_compile) 2>conftest.er1
15398218822Sdim  ac_status=$?
15399218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15400218822Sdim  rm -f conftest.er1
15401218822Sdim  cat conftest.err >&5
15402218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403218822Sdim  (exit $ac_status); } &&
15404218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15405218822Sdim			 || test ! -s conftest.err'
15406218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407218822Sdim  (eval $ac_try) 2>&5
15408218822Sdim  ac_status=$?
15409218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410218822Sdim  (exit $ac_status); }; } &&
15411218822Sdim	 { ac_try='test -s conftest.$ac_objext'
15412218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413218822Sdim  (eval $ac_try) 2>&5
15414218822Sdim  ac_status=$?
15415218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416218822Sdim  (exit $ac_status); }; }; then
15417218822Sdim  eval "$as_ac_Header=yes"
1541860484Sobrienelse
15419218822Sdim  echo "$as_me: failed program was:" >&5
15420218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1542160484Sobrien
15422218822Sdimeval "$as_ac_Header=no"
1542360484Sobrienfi
15424218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1542560484Sobrienfi
15426218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15427218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15428218822Sdimif test `eval echo '${'$as_ac_Header'}'` = yes; then
15429218822Sdim  cat >>confdefs.h <<_ACEOF
15430218822Sdim#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15431218822Sdim_ACEOF
1543260484Sobrien
15433218822Sdimac_header_dirent=$ac_hdr; break
15434218822Sdimfi
1543560484Sobrien
15436218822Sdimdone
15437218822Sdim# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15438218822Sdimif test $ac_header_dirent = dirent.h; then
15439218822Sdim  echo "$as_me:$LINENO: checking for library containing opendir" >&5
15440218822Sdimecho $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15441218822Sdimif test "${ac_cv_search_opendir+set}" = set; then
15442218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
15443218822Sdimelse
15444218822Sdim  ac_func_search_save_LIBS=$LIBS
15445218822Sdimac_cv_search_opendir=no
15446218822Sdimcat >conftest.$ac_ext <<_ACEOF
15447218822Sdim/* confdefs.h.  */
15448218822Sdim_ACEOF
15449218822Sdimcat confdefs.h >>conftest.$ac_ext
15450218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15451218822Sdim/* end confdefs.h.  */
1545260484Sobrien
15453218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
15454218822Sdim#ifdef __cplusplus
15455218822Sdimextern "C"
15456218822Sdim#endif
15457218822Sdim/* We use char because int might match the return type of a gcc2
15458218822Sdim   builtin and then its argument prototype would still apply.  */
15459218822Sdimchar opendir ();
15460218822Sdimint
15461218822Sdimmain ()
15462218822Sdim{
15463218822Sdimopendir ();
15464218822Sdim  ;
15465218822Sdim  return 0;
15466218822Sdim}
15467218822Sdim_ACEOF
15468218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
15469218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15470218822Sdim  (eval $ac_link) 2>conftest.er1
15471218822Sdim  ac_status=$?
15472218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15473218822Sdim  rm -f conftest.er1
15474218822Sdim  cat conftest.err >&5
15475218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476218822Sdim  (exit $ac_status); } &&
15477218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15478218822Sdim			 || test ! -s conftest.err'
15479218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480218822Sdim  (eval $ac_try) 2>&5
15481218822Sdim  ac_status=$?
15482218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483218822Sdim  (exit $ac_status); }; } &&
15484218822Sdim	 { ac_try='test -s conftest$ac_exeext'
15485218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486218822Sdim  (eval $ac_try) 2>&5
15487218822Sdim  ac_status=$?
15488218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489218822Sdim  (exit $ac_status); }; }; then
15490218822Sdim  ac_cv_search_opendir="none required"
15491218822Sdimelse
15492218822Sdim  echo "$as_me: failed program was:" >&5
15493218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1549460484Sobrien
15495218822Sdimfi
15496218822Sdimrm -f conftest.err conftest.$ac_objext \
15497218822Sdim      conftest$ac_exeext conftest.$ac_ext
15498218822Sdimif test "$ac_cv_search_opendir" = no; then
15499218822Sdim  for ac_lib in dir; do
15500218822Sdim    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15501218822Sdim    cat >conftest.$ac_ext <<_ACEOF
15502218822Sdim/* confdefs.h.  */
15503218822Sdim_ACEOF
15504218822Sdimcat confdefs.h >>conftest.$ac_ext
15505218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15506218822Sdim/* end confdefs.h.  */
1550760484Sobrien
15508218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
15509218822Sdim#ifdef __cplusplus
15510218822Sdimextern "C"
15511218822Sdim#endif
15512218822Sdim/* We use char because int might match the return type of a gcc2
15513218822Sdim   builtin and then its argument prototype would still apply.  */
15514218822Sdimchar opendir ();
15515218822Sdimint
15516218822Sdimmain ()
15517218822Sdim{
15518218822Sdimopendir ();
15519218822Sdim  ;
15520218822Sdim  return 0;
15521218822Sdim}
15522218822Sdim_ACEOF
15523218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
15524218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15525218822Sdim  (eval $ac_link) 2>conftest.er1
15526218822Sdim  ac_status=$?
15527218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15528218822Sdim  rm -f conftest.er1
15529218822Sdim  cat conftest.err >&5
15530218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531218822Sdim  (exit $ac_status); } &&
15532218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15533218822Sdim			 || test ! -s conftest.err'
15534218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535218822Sdim  (eval $ac_try) 2>&5
15536218822Sdim  ac_status=$?
15537218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538218822Sdim  (exit $ac_status); }; } &&
15539218822Sdim	 { ac_try='test -s conftest$ac_exeext'
15540218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541218822Sdim  (eval $ac_try) 2>&5
15542218822Sdim  ac_status=$?
15543218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544218822Sdim  (exit $ac_status); }; }; then
15545218822Sdim  ac_cv_search_opendir="-l$ac_lib"
15546218822Sdimbreak
15547130561Sobrienelse
15548218822Sdim  echo "$as_me: failed program was:" >&5
15549218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15550130561Sobrien
15551130561Sobrienfi
15552218822Sdimrm -f conftest.err conftest.$ac_objext \
15553218822Sdim      conftest$ac_exeext conftest.$ac_ext
15554218822Sdim  done
15555130561Sobrienfi
15556218822SdimLIBS=$ac_func_search_save_LIBS
15557218822Sdimfi
15558218822Sdimecho "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15559218822Sdimecho "${ECHO_T}$ac_cv_search_opendir" >&6
15560218822Sdimif test "$ac_cv_search_opendir" != no; then
15561218822Sdim  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15562130561Sobrien
15563218822Sdimfi
15564218822Sdim
15565130561Sobrienelse
15566218822Sdim  echo "$as_me:$LINENO: checking for library containing opendir" >&5
15567218822Sdimecho $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15568218822Sdimif test "${ac_cv_search_opendir+set}" = set; then
15569218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
15570218822Sdimelse
15571218822Sdim  ac_func_search_save_LIBS=$LIBS
15572218822Sdimac_cv_search_opendir=no
15573218822Sdimcat >conftest.$ac_ext <<_ACEOF
15574218822Sdim/* confdefs.h.  */
15575218822Sdim_ACEOF
15576218822Sdimcat confdefs.h >>conftest.$ac_ext
15577218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15578218822Sdim/* end confdefs.h.  */
15579130561Sobrien
15580218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
15581218822Sdim#ifdef __cplusplus
15582218822Sdimextern "C"
15583218822Sdim#endif
15584218822Sdim/* We use char because int might match the return type of a gcc2
15585218822Sdim   builtin and then its argument prototype would still apply.  */
15586218822Sdimchar opendir ();
15587218822Sdimint
15588218822Sdimmain ()
15589218822Sdim{
15590218822Sdimopendir ();
15591218822Sdim  ;
15592218822Sdim  return 0;
15593218822Sdim}
15594218822Sdim_ACEOF
15595218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
15596218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15597218822Sdim  (eval $ac_link) 2>conftest.er1
15598218822Sdim  ac_status=$?
15599218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15600218822Sdim  rm -f conftest.er1
15601218822Sdim  cat conftest.err >&5
15602218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603218822Sdim  (exit $ac_status); } &&
15604218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15605218822Sdim			 || test ! -s conftest.err'
15606218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607218822Sdim  (eval $ac_try) 2>&5
15608218822Sdim  ac_status=$?
15609218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610218822Sdim  (exit $ac_status); }; } &&
15611218822Sdim	 { ac_try='test -s conftest$ac_exeext'
15612218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15613218822Sdim  (eval $ac_try) 2>&5
15614218822Sdim  ac_status=$?
15615218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616218822Sdim  (exit $ac_status); }; }; then
15617218822Sdim  ac_cv_search_opendir="none required"
15618218822Sdimelse
15619218822Sdim  echo "$as_me: failed program was:" >&5
15620218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15621130561Sobrien
15622130561Sobrienfi
15623218822Sdimrm -f conftest.err conftest.$ac_objext \
15624218822Sdim      conftest$ac_exeext conftest.$ac_ext
15625218822Sdimif test "$ac_cv_search_opendir" = no; then
15626218822Sdim  for ac_lib in x; do
15627218822Sdim    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15628218822Sdim    cat >conftest.$ac_ext <<_ACEOF
15629218822Sdim/* confdefs.h.  */
15630218822Sdim_ACEOF
15631218822Sdimcat confdefs.h >>conftest.$ac_ext
15632218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15633218822Sdim/* end confdefs.h.  */
15634130561Sobrien
15635218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
15636218822Sdim#ifdef __cplusplus
15637218822Sdimextern "C"
15638218822Sdim#endif
15639218822Sdim/* We use char because int might match the return type of a gcc2
15640218822Sdim   builtin and then its argument prototype would still apply.  */
15641218822Sdimchar opendir ();
15642218822Sdimint
15643218822Sdimmain ()
15644218822Sdim{
15645218822Sdimopendir ();
15646218822Sdim  ;
15647218822Sdim  return 0;
15648218822Sdim}
15649218822Sdim_ACEOF
15650218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
15651218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15652218822Sdim  (eval $ac_link) 2>conftest.er1
15653218822Sdim  ac_status=$?
15654218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15655218822Sdim  rm -f conftest.er1
15656218822Sdim  cat conftest.err >&5
15657218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658218822Sdim  (exit $ac_status); } &&
15659218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15660218822Sdim			 || test ! -s conftest.err'
15661218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662218822Sdim  (eval $ac_try) 2>&5
15663218822Sdim  ac_status=$?
15664218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665218822Sdim  (exit $ac_status); }; } &&
15666218822Sdim	 { ac_try='test -s conftest$ac_exeext'
15667218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668218822Sdim  (eval $ac_try) 2>&5
15669218822Sdim  ac_status=$?
15670218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671218822Sdim  (exit $ac_status); }; }; then
15672218822Sdim  ac_cv_search_opendir="-l$ac_lib"
15673218822Sdimbreak
15674218822Sdimelse
15675218822Sdim  echo "$as_me: failed program was:" >&5
15676218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15677218822Sdim
15678130561Sobrienfi
15679218822Sdimrm -f conftest.err conftest.$ac_objext \
15680218822Sdim      conftest$ac_exeext conftest.$ac_ext
15681218822Sdim  done
15682218822Sdimfi
15683218822SdimLIBS=$ac_func_search_save_LIBS
15684218822Sdimfi
15685218822Sdimecho "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15686218822Sdimecho "${ECHO_T}$ac_cv_search_opendir" >&6
15687218822Sdimif test "$ac_cv_search_opendir" != no; then
15688218822Sdim  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15689130561Sobrien
15690130561Sobrienfi
15691130561Sobrien
15692130561Sobrienfi
15693130561Sobrien
15694218822Sdimecho "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
15695218822Sdimecho $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
15696218822Sdimif test "${gcc_cv_header_string+set}" = set; then
15697218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
15698130561Sobrienelse
15699218822Sdim  cat >conftest.$ac_ext <<_ACEOF
15700218822Sdim/* confdefs.h.  */
15701218822Sdim_ACEOF
15702218822Sdimcat confdefs.h >>conftest.$ac_ext
15703218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15704218822Sdim/* end confdefs.h.  */
15705218822Sdim#include <string.h>
15706218822Sdim#include <strings.h>
15707218822Sdimint
15708218822Sdimmain ()
15709218822Sdim{
15710130561Sobrien
15711218822Sdim  ;
15712218822Sdim  return 0;
15713218822Sdim}
15714218822Sdim_ACEOF
15715218822Sdimrm -f conftest.$ac_objext
15716218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717218822Sdim  (eval $ac_compile) 2>conftest.er1
15718218822Sdim  ac_status=$?
15719218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15720218822Sdim  rm -f conftest.er1
15721218822Sdim  cat conftest.err >&5
15722218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723218822Sdim  (exit $ac_status); } &&
15724218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15725218822Sdim			 || test ! -s conftest.err'
15726218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727218822Sdim  (eval $ac_try) 2>&5
15728218822Sdim  ac_status=$?
15729218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730218822Sdim  (exit $ac_status); }; } &&
15731218822Sdim	 { ac_try='test -s conftest.$ac_objext'
15732218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733218822Sdim  (eval $ac_try) 2>&5
15734218822Sdim  ac_status=$?
15735218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736218822Sdim  (exit $ac_status); }; }; then
15737218822Sdim  gcc_cv_header_string=yes
15738130561Sobrienelse
15739218822Sdim  echo "$as_me: failed program was:" >&5
15740218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15741130561Sobrien
15742218822Sdimgcc_cv_header_string=no
15743130561Sobrienfi
15744218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15745130561Sobrienfi
15746218822Sdimecho "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
15747218822Sdimecho "${ECHO_T}$gcc_cv_header_string" >&6
15748218822Sdimif test $gcc_cv_header_string = yes; then
15749130561Sobrien
15750218822Sdimcat >>confdefs.h <<\_ACEOF
15751218822Sdim#define STRING_WITH_STRINGS 1
15752218822Sdim_ACEOF
15753130561Sobrien
15754130561Sobrienfi
15755130561Sobrien
1575660484Sobrien
1575760484Sobrien
1575860484Sobrien
1575960484Sobrien
1576060484Sobrien
15761130561Sobrien
15762130561Sobrien
15763218822Sdimfor ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
15764218822Sdimdo
15765218822Sdimas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15766218822Sdimecho "$as_me:$LINENO: checking for $ac_func" >&5
15767218822Sdimecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15768218822Sdimif eval "test \"\${$as_ac_var+set}\" = set"; then
15769218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
15770218822Sdimelse
15771218822Sdim  cat >conftest.$ac_ext <<_ACEOF
15772218822Sdim/* confdefs.h.  */
15773218822Sdim_ACEOF
15774218822Sdimcat confdefs.h >>conftest.$ac_ext
15775218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15776218822Sdim/* end confdefs.h.  */
15777218822Sdim/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15778218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15779218822Sdim#define $ac_func innocuous_$ac_func
1578060484Sobrien
15781218822Sdim/* System header to define __stub macros and hopefully few prototypes,
15782218822Sdim    which can conflict with char $ac_func (); below.
15783218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15784218822Sdim    <limits.h> exists even on freestanding compilers.  */
15785218822Sdim
15786218822Sdim#ifdef __STDC__
15787218822Sdim# include <limits.h>
15788218822Sdim#else
15789218822Sdim# include <assert.h>
15790218822Sdim#endif
15791218822Sdim
15792218822Sdim#undef $ac_func
15793218822Sdim
15794218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
15795218822Sdim#ifdef __cplusplus
15796218822Sdimextern "C"
15797218822Sdim{
15798218822Sdim#endif
15799218822Sdim/* We use char because int might match the return type of a gcc2
15800218822Sdim   builtin and then its argument prototype would still apply.  */
15801218822Sdimchar $ac_func ();
15802218822Sdim/* The GNU C library defines this for functions which it implements
15803218822Sdim    to always fail with ENOSYS.  Some functions are actually named
15804218822Sdim    something starting with __ and the normal name is an alias.  */
15805218822Sdim#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15806218822Sdimchoke me
15807218822Sdim#else
15808218822Sdimchar (*f) () = $ac_func;
15809218822Sdim#endif
15810218822Sdim#ifdef __cplusplus
15811218822Sdim}
15812218822Sdim#endif
15813218822Sdim
15814218822Sdimint
15815218822Sdimmain ()
15816218822Sdim{
15817218822Sdimreturn f != $ac_func;
15818218822Sdim  ;
15819218822Sdim  return 0;
15820218822Sdim}
15821218822Sdim_ACEOF
15822218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
15823218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15824218822Sdim  (eval $ac_link) 2>conftest.er1
15825218822Sdim  ac_status=$?
15826218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15827218822Sdim  rm -f conftest.er1
15828218822Sdim  cat conftest.err >&5
15829218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830218822Sdim  (exit $ac_status); } &&
15831218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15832218822Sdim			 || test ! -s conftest.err'
15833218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834218822Sdim  (eval $ac_try) 2>&5
15835218822Sdim  ac_status=$?
15836218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837218822Sdim  (exit $ac_status); }; } &&
15838218822Sdim	 { ac_try='test -s conftest$ac_exeext'
15839218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840218822Sdim  (eval $ac_try) 2>&5
15841218822Sdim  ac_status=$?
15842218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843218822Sdim  (exit $ac_status); }; }; then
15844218822Sdim  eval "$as_ac_var=yes"
1584560484Sobrienelse
15846218822Sdim  echo "$as_me: failed program was:" >&5
15847218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15848218822Sdim
15849218822Sdimeval "$as_ac_var=no"
1585060484Sobrienfi
15851218822Sdimrm -f conftest.err conftest.$ac_objext \
15852218822Sdim      conftest$ac_exeext conftest.$ac_ext
15853218822Sdimfi
15854218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15855218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15856218822Sdimif test `eval echo '${'$as_ac_var'}'` = yes; then
15857218822Sdim  cat >>confdefs.h <<_ACEOF
15858218822Sdim#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15859218822Sdim_ACEOF
1586060484Sobrien
1586160484Sobrienfi
15862218822Sdimdone
1586360484Sobrien
1586460484Sobrien
15865218822Sdimfor ac_func in strtoull
1586633965Sjdpdo
15867218822Sdimas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15868218822Sdimecho "$as_me:$LINENO: checking for $ac_func" >&5
15869218822Sdimecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15870218822Sdimif eval "test \"\${$as_ac_var+set}\" = set"; then
15871218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1587233965Sjdpelse
15873218822Sdim  cat >conftest.$ac_ext <<_ACEOF
15874218822Sdim/* confdefs.h.  */
15875218822Sdim_ACEOF
15876218822Sdimcat confdefs.h >>conftest.$ac_ext
15877218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15878218822Sdim/* end confdefs.h.  */
15879218822Sdim/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15880218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15881218822Sdim#define $ac_func innocuous_$ac_func
15882218822Sdim
15883218822Sdim/* System header to define __stub macros and hopefully few prototypes,
15884218822Sdim    which can conflict with char $ac_func (); below.
15885218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15886218822Sdim    <limits.h> exists even on freestanding compilers.  */
15887218822Sdim
15888218822Sdim#ifdef __STDC__
15889218822Sdim# include <limits.h>
15890218822Sdim#else
15891218822Sdim# include <assert.h>
15892218822Sdim#endif
15893218822Sdim
15894218822Sdim#undef $ac_func
15895218822Sdim
15896218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
15897218822Sdim#ifdef __cplusplus
15898218822Sdimextern "C"
15899218822Sdim{
15900218822Sdim#endif
15901218822Sdim/* We use char because int might match the return type of a gcc2
15902218822Sdim   builtin and then its argument prototype would still apply.  */
15903218822Sdimchar $ac_func ();
15904218822Sdim/* The GNU C library defines this for functions which it implements
15905218822Sdim    to always fail with ENOSYS.  Some functions are actually named
15906218822Sdim    something starting with __ and the normal name is an alias.  */
15907218822Sdim#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15908218822Sdimchoke me
15909218822Sdim#else
15910218822Sdimchar (*f) () = $ac_func;
15911218822Sdim#endif
15912218822Sdim#ifdef __cplusplus
15913218822Sdim}
15914218822Sdim#endif
15915218822Sdim
15916218822Sdimint
15917218822Sdimmain ()
15918218822Sdim{
15919218822Sdimreturn f != $ac_func;
15920218822Sdim  ;
15921218822Sdim  return 0;
15922218822Sdim}
15923218822Sdim_ACEOF
15924218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
15925218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15926218822Sdim  (eval $ac_link) 2>conftest.er1
15927218822Sdim  ac_status=$?
15928218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15929218822Sdim  rm -f conftest.er1
15930218822Sdim  cat conftest.err >&5
15931218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932218822Sdim  (exit $ac_status); } &&
15933218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
15934218822Sdim			 || test ! -s conftest.err'
15935218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936218822Sdim  (eval $ac_try) 2>&5
15937218822Sdim  ac_status=$?
15938218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939218822Sdim  (exit $ac_status); }; } &&
15940218822Sdim	 { ac_try='test -s conftest$ac_exeext'
15941218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942218822Sdim  (eval $ac_try) 2>&5
15943218822Sdim  ac_status=$?
15944218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945218822Sdim  (exit $ac_status); }; }; then
15946218822Sdim  eval "$as_ac_var=yes"
1594733965Sjdpelse
15948218822Sdim  echo "$as_me: failed program was:" >&5
15949218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
15950218822Sdim
15951218822Sdimeval "$as_ac_var=no"
1595233965Sjdpfi
15953218822Sdimrm -f conftest.err conftest.$ac_objext \
15954218822Sdim      conftest$ac_exeext conftest.$ac_ext
1595533965Sjdpfi
15956218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15957218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15958218822Sdimif test `eval echo '${'$as_ac_var'}'` = yes; then
15959218822Sdim  cat >>confdefs.h <<_ACEOF
15960218822Sdim#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15961218822Sdim_ACEOF
15962218822Sdim
1596333965Sjdpfi
1596433965Sjdpdone
1596533965Sjdp
15966218822Sdim
15967218822Sdimecho "$as_me:$LINENO: checking whether basename is declared" >&5
15968218822Sdimecho $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
15969218822Sdimif test "${ac_cv_have_decl_basename+set}" = set; then
15970218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1597133965Sjdpelse
15972218822Sdim  cat >conftest.$ac_ext <<_ACEOF
15973218822Sdim/* confdefs.h.  */
15974218822Sdim_ACEOF
15975218822Sdimcat confdefs.h >>conftest.$ac_ext
15976218822Sdimcat >>conftest.$ac_ext <<_ACEOF
15977218822Sdim/* end confdefs.h.  */
15978218822Sdim$ac_includes_default
15979218822Sdimint
15980218822Sdimmain ()
15981218822Sdim{
15982218822Sdim#ifndef basename
15983218822Sdim  char *p = (char *) basename;
15984218822Sdim#endif
15985218822Sdim
15986218822Sdim  ;
15987218822Sdim  return 0;
15988218822Sdim}
15989218822Sdim_ACEOF
15990218822Sdimrm -f conftest.$ac_objext
15991218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15992218822Sdim  (eval $ac_compile) 2>conftest.er1
15993218822Sdim  ac_status=$?
15994218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
15995218822Sdim  rm -f conftest.er1
15996218822Sdim  cat conftest.err >&5
15997218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998218822Sdim  (exit $ac_status); } &&
15999218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16000218822Sdim			 || test ! -s conftest.err'
16001218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002218822Sdim  (eval $ac_try) 2>&5
16003218822Sdim  ac_status=$?
16004218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005218822Sdim  (exit $ac_status); }; } &&
16006218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16007218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008218822Sdim  (eval $ac_try) 2>&5
16009218822Sdim  ac_status=$?
16010218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011218822Sdim  (exit $ac_status); }; }; then
16012218822Sdim  ac_cv_have_decl_basename=yes
1601333965Sjdpelse
16014218822Sdim  echo "$as_me: failed program was:" >&5
16015218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16016218822Sdim
16017218822Sdimac_cv_have_decl_basename=no
1601833965Sjdpfi
16019218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1602033965Sjdpfi
16021218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16022218822Sdimecho "${ECHO_T}$ac_cv_have_decl_basename" >&6
16023218822Sdimif test $ac_cv_have_decl_basename = yes; then
16024218822Sdim
16025218822Sdimcat >>confdefs.h <<_ACEOF
16026218822Sdim#define HAVE_DECL_BASENAME 1
16027218822Sdim_ACEOF
16028218822Sdim
16029218822Sdim
1603033965Sjdpelse
16031218822Sdim  cat >>confdefs.h <<_ACEOF
16032218822Sdim#define HAVE_DECL_BASENAME 0
16033218822Sdim_ACEOF
16034218822Sdim
16035218822Sdim
1603633965Sjdpfi
1603733965Sjdp
16038218822Sdim
16039218822Sdimecho "$as_me:$LINENO: checking whether ftello is declared" >&5
16040218822Sdimecho $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16041218822Sdimif test "${ac_cv_have_decl_ftello+set}" = set; then
16042218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1604333965Sjdpelse
16044218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16045218822Sdim/* confdefs.h.  */
16046218822Sdim_ACEOF
16047218822Sdimcat confdefs.h >>conftest.$ac_ext
16048218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16049218822Sdim/* end confdefs.h.  */
16050218822Sdim$ac_includes_default
16051218822Sdimint
16052218822Sdimmain ()
16053218822Sdim{
16054218822Sdim#ifndef ftello
16055218822Sdim  char *p = (char *) ftello;
16056218822Sdim#endif
16057218822Sdim
16058218822Sdim  ;
16059218822Sdim  return 0;
16060218822Sdim}
16061218822Sdim_ACEOF
16062218822Sdimrm -f conftest.$ac_objext
16063218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16064218822Sdim  (eval $ac_compile) 2>conftest.er1
16065218822Sdim  ac_status=$?
16066218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16067218822Sdim  rm -f conftest.er1
16068218822Sdim  cat conftest.err >&5
16069218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070218822Sdim  (exit $ac_status); } &&
16071218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16072218822Sdim			 || test ! -s conftest.err'
16073218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074218822Sdim  (eval $ac_try) 2>&5
16075218822Sdim  ac_status=$?
16076218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077218822Sdim  (exit $ac_status); }; } &&
16078218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16079218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080218822Sdim  (eval $ac_try) 2>&5
16081218822Sdim  ac_status=$?
16082218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083218822Sdim  (exit $ac_status); }; }; then
16084218822Sdim  ac_cv_have_decl_ftello=yes
1608533965Sjdpelse
16086218822Sdim  echo "$as_me: failed program was:" >&5
16087218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16088218822Sdim
16089218822Sdimac_cv_have_decl_ftello=no
1609033965Sjdpfi
16091218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1609233965Sjdpfi
16093218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16094218822Sdimecho "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16095218822Sdimif test $ac_cv_have_decl_ftello = yes; then
1609633965Sjdp
16097218822Sdimcat >>confdefs.h <<_ACEOF
16098218822Sdim#define HAVE_DECL_FTELLO 1
16099218822Sdim_ACEOF
1610033965Sjdp
16101218822Sdim
16102218822Sdimelse
16103218822Sdim  cat >>confdefs.h <<_ACEOF
16104218822Sdim#define HAVE_DECL_FTELLO 0
16105218822Sdim_ACEOF
16106218822Sdim
16107218822Sdim
1610833965Sjdpfi
1610933965Sjdp
16110218822Sdim
16111218822Sdimecho "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16112218822Sdimecho $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16113218822Sdimif test "${ac_cv_have_decl_ftello64+set}" = set; then
16114218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1611560484Sobrienelse
16116218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16117218822Sdim/* confdefs.h.  */
16118218822Sdim_ACEOF
16119218822Sdimcat confdefs.h >>conftest.$ac_ext
16120218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16121218822Sdim/* end confdefs.h.  */
16122218822Sdim$ac_includes_default
16123218822Sdimint
16124218822Sdimmain ()
16125218822Sdim{
16126218822Sdim#ifndef ftello64
16127218822Sdim  char *p = (char *) ftello64;
16128218822Sdim#endif
16129218822Sdim
16130218822Sdim  ;
16131218822Sdim  return 0;
16132218822Sdim}
16133218822Sdim_ACEOF
16134218822Sdimrm -f conftest.$ac_objext
16135218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136218822Sdim  (eval $ac_compile) 2>conftest.er1
16137218822Sdim  ac_status=$?
16138218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16139218822Sdim  rm -f conftest.er1
16140218822Sdim  cat conftest.err >&5
16141218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142218822Sdim  (exit $ac_status); } &&
16143218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16144218822Sdim			 || test ! -s conftest.err'
16145218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146218822Sdim  (eval $ac_try) 2>&5
16147218822Sdim  ac_status=$?
16148218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149218822Sdim  (exit $ac_status); }; } &&
16150218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16151218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152218822Sdim  (eval $ac_try) 2>&5
16153218822Sdim  ac_status=$?
16154218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155218822Sdim  (exit $ac_status); }; }; then
16156218822Sdim  ac_cv_have_decl_ftello64=yes
1615760484Sobrienelse
16158218822Sdim  echo "$as_me: failed program was:" >&5
16159218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16160218822Sdim
16161218822Sdimac_cv_have_decl_ftello64=no
1616260484Sobrienfi
16163218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1616460484Sobrienfi
16165218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16166218822Sdimecho "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16167218822Sdimif test $ac_cv_have_decl_ftello64 = yes; then
16168218822Sdim
16169218822Sdimcat >>confdefs.h <<_ACEOF
16170218822Sdim#define HAVE_DECL_FTELLO64 1
16171218822Sdim_ACEOF
16172218822Sdim
16173218822Sdim
1617460484Sobrienelse
16175218822Sdim  cat >>confdefs.h <<_ACEOF
16176218822Sdim#define HAVE_DECL_FTELLO64 0
16177218822Sdim_ACEOF
16178218822Sdim
16179218822Sdim
1618060484Sobrienfi
16181218822Sdim
16182218822Sdim
16183218822Sdimecho "$as_me:$LINENO: checking whether fseeko is declared" >&5
16184218822Sdimecho $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16185218822Sdimif test "${ac_cv_have_decl_fseeko+set}" = set; then
16186218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1618760484Sobrienelse
16188218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16189218822Sdim/* confdefs.h.  */
16190218822Sdim_ACEOF
16191218822Sdimcat confdefs.h >>conftest.$ac_ext
16192218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16193218822Sdim/* end confdefs.h.  */
16194218822Sdim$ac_includes_default
16195218822Sdimint
16196218822Sdimmain ()
16197218822Sdim{
16198218822Sdim#ifndef fseeko
16199218822Sdim  char *p = (char *) fseeko;
16200218822Sdim#endif
1620160484Sobrien
16202218822Sdim  ;
16203218822Sdim  return 0;
16204218822Sdim}
16205218822Sdim_ACEOF
16206218822Sdimrm -f conftest.$ac_objext
16207218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208218822Sdim  (eval $ac_compile) 2>conftest.er1
16209218822Sdim  ac_status=$?
16210218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16211218822Sdim  rm -f conftest.er1
16212218822Sdim  cat conftest.err >&5
16213218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214218822Sdim  (exit $ac_status); } &&
16215218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16216218822Sdim			 || test ! -s conftest.err'
16217218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218218822Sdim  (eval $ac_try) 2>&5
16219218822Sdim  ac_status=$?
16220218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221218822Sdim  (exit $ac_status); }; } &&
16222218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16223218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224218822Sdim  (eval $ac_try) 2>&5
16225218822Sdim  ac_status=$?
16226218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227218822Sdim  (exit $ac_status); }; }; then
16228218822Sdim  ac_cv_have_decl_fseeko=yes
1622960484Sobrienelse
16230218822Sdim  echo "$as_me: failed program was:" >&5
16231218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16232218822Sdim
16233218822Sdimac_cv_have_decl_fseeko=no
1623460484Sobrienfi
16235218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16236218822Sdimfi
16237218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16238218822Sdimecho "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16239218822Sdimif test $ac_cv_have_decl_fseeko = yes; then
1624060484Sobrien
16241218822Sdimcat >>confdefs.h <<_ACEOF
16242218822Sdim#define HAVE_DECL_FSEEKO 1
16243218822Sdim_ACEOF
16244218822Sdim
16245218822Sdim
16246218822Sdimelse
16247218822Sdim  cat >>confdefs.h <<_ACEOF
16248218822Sdim#define HAVE_DECL_FSEEKO 0
16249218822Sdim_ACEOF
16250218822Sdim
16251218822Sdim
1625260484Sobrienfi
16253218822Sdim
16254218822Sdim
16255218822Sdimecho "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16256218822Sdimecho $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16257218822Sdimif test "${ac_cv_have_decl_fseeko64+set}" = set; then
16258218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1625960484Sobrienelse
16260218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16261218822Sdim/* confdefs.h.  */
16262218822Sdim_ACEOF
16263218822Sdimcat confdefs.h >>conftest.$ac_ext
16264218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16265218822Sdim/* end confdefs.h.  */
16266218822Sdim$ac_includes_default
16267218822Sdimint
16268218822Sdimmain ()
16269218822Sdim{
16270218822Sdim#ifndef fseeko64
16271218822Sdim  char *p = (char *) fseeko64;
16272218822Sdim#endif
16273218822Sdim
16274218822Sdim  ;
16275218822Sdim  return 0;
16276218822Sdim}
16277218822Sdim_ACEOF
16278218822Sdimrm -f conftest.$ac_objext
16279218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16280218822Sdim  (eval $ac_compile) 2>conftest.er1
16281218822Sdim  ac_status=$?
16282218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16283218822Sdim  rm -f conftest.er1
16284218822Sdim  cat conftest.err >&5
16285218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286218822Sdim  (exit $ac_status); } &&
16287218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16288218822Sdim			 || test ! -s conftest.err'
16289218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290218822Sdim  (eval $ac_try) 2>&5
16291218822Sdim  ac_status=$?
16292218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293218822Sdim  (exit $ac_status); }; } &&
16294218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16295218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296218822Sdim  (eval $ac_try) 2>&5
16297218822Sdim  ac_status=$?
16298218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299218822Sdim  (exit $ac_status); }; }; then
16300218822Sdim  ac_cv_have_decl_fseeko64=yes
16301218822Sdimelse
16302218822Sdim  echo "$as_me: failed program was:" >&5
16303218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16304218822Sdim
16305218822Sdimac_cv_have_decl_fseeko64=no
1630660484Sobrienfi
16307218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16308218822Sdimfi
16309218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16310218822Sdimecho "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16311218822Sdimif test $ac_cv_have_decl_fseeko64 = yes; then
1631260484Sobrien
16313218822Sdimcat >>confdefs.h <<_ACEOF
16314218822Sdim#define HAVE_DECL_FSEEKO64 1
16315218822Sdim_ACEOF
16316218822Sdim
16317218822Sdim
1631860484Sobrienelse
16319218822Sdim  cat >>confdefs.h <<_ACEOF
16320218822Sdim#define HAVE_DECL_FSEEKO64 0
16321218822Sdim_ACEOF
16322218822Sdim
16323218822Sdim
16324218822Sdimfi
16325218822Sdim
16326218822Sdim
16327218822Sdim
16328218822Sdim
16329218822Sdimcase "${host}" in
16330218822Sdim*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16331218822Sdim
16332218822Sdimcat >>confdefs.h <<\_ACEOF
16333218822Sdim#define USE_BINARY_FOPEN 1
16334218822Sdim_ACEOF
16335218822Sdim ;;
16336218822Sdimesac
16337218822Sdim
16338218822Sdimecho "$as_me:$LINENO: checking whether ffs is declared" >&5
16339218822Sdimecho $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16340218822Sdimif test "${ac_cv_have_decl_ffs+set}" = set; then
16341218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1634260484Sobrienelse
16343218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16344218822Sdim/* confdefs.h.  */
16345218822Sdim_ACEOF
16346218822Sdimcat confdefs.h >>conftest.$ac_ext
16347218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16348218822Sdim/* end confdefs.h.  */
16349218822Sdim$ac_includes_default
16350218822Sdimint
16351218822Sdimmain ()
16352218822Sdim{
16353218822Sdim#ifndef ffs
16354218822Sdim  char *p = (char *) ffs;
16355218822Sdim#endif
1635660484Sobrien
16357218822Sdim  ;
16358218822Sdim  return 0;
16359218822Sdim}
16360218822Sdim_ACEOF
16361218822Sdimrm -f conftest.$ac_objext
16362218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16363218822Sdim  (eval $ac_compile) 2>conftest.er1
16364218822Sdim  ac_status=$?
16365218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16366218822Sdim  rm -f conftest.er1
16367218822Sdim  cat conftest.err >&5
16368218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369218822Sdim  (exit $ac_status); } &&
16370218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16371218822Sdim			 || test ! -s conftest.err'
16372218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373218822Sdim  (eval $ac_try) 2>&5
16374218822Sdim  ac_status=$?
16375218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376218822Sdim  (exit $ac_status); }; } &&
16377218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16378218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379218822Sdim  (eval $ac_try) 2>&5
16380218822Sdim  ac_status=$?
16381218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382218822Sdim  (exit $ac_status); }; }; then
16383218822Sdim  ac_cv_have_decl_ffs=yes
1638460484Sobrienelse
16385218822Sdim  echo "$as_me: failed program was:" >&5
16386218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16387218822Sdim
16388218822Sdimac_cv_have_decl_ffs=no
1638960484Sobrienfi
16390218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16391218822Sdimfi
16392218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16393218822Sdimecho "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16394218822Sdimif test $ac_cv_have_decl_ffs = yes; then
1639560484Sobrien
16396218822Sdimcat >>confdefs.h <<_ACEOF
16397218822Sdim#define HAVE_DECL_FFS 1
16398218822Sdim_ACEOF
16399218822Sdim
16400218822Sdim
1640160484Sobrienelse
16402218822Sdim  cat >>confdefs.h <<_ACEOF
16403218822Sdim#define HAVE_DECL_FFS 0
16404218822Sdim_ACEOF
16405218822Sdim
16406218822Sdim
1640760484Sobrienfi
1640860484Sobrien
16409218822Sdim
16410218822Sdimecho "$as_me:$LINENO: checking whether free is declared" >&5
16411218822Sdimecho $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16412218822Sdimif test "${ac_cv_have_decl_free+set}" = set; then
16413218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
16414218822Sdimelse
16415218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16416218822Sdim/* confdefs.h.  */
16417218822Sdim_ACEOF
16418218822Sdimcat confdefs.h >>conftest.$ac_ext
16419218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16420218822Sdim/* end confdefs.h.  */
16421218822Sdim$ac_includes_default
16422218822Sdimint
16423218822Sdimmain ()
16424218822Sdim{
16425218822Sdim#ifndef free
16426218822Sdim  char *p = (char *) free;
16427218822Sdim#endif
16428218822Sdim
16429218822Sdim  ;
16430218822Sdim  return 0;
16431218822Sdim}
16432218822Sdim_ACEOF
16433218822Sdimrm -f conftest.$ac_objext
16434218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16435218822Sdim  (eval $ac_compile) 2>conftest.er1
16436218822Sdim  ac_status=$?
16437218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16438218822Sdim  rm -f conftest.er1
16439218822Sdim  cat conftest.err >&5
16440218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441218822Sdim  (exit $ac_status); } &&
16442218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16443218822Sdim			 || test ! -s conftest.err'
16444218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445218822Sdim  (eval $ac_try) 2>&5
16446218822Sdim  ac_status=$?
16447218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448218822Sdim  (exit $ac_status); }; } &&
16449218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16450218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451218822Sdim  (eval $ac_try) 2>&5
16452218822Sdim  ac_status=$?
16453218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454218822Sdim  (exit $ac_status); }; }; then
16455218822Sdim  ac_cv_have_decl_free=yes
16456218822Sdimelse
16457218822Sdim  echo "$as_me: failed program was:" >&5
16458218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16459218822Sdim
16460218822Sdimac_cv_have_decl_free=no
1646160484Sobrienfi
16462218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16463218822Sdimfi
16464218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16465218822Sdimecho "${ECHO_T}$ac_cv_have_decl_free" >&6
16466218822Sdimif test $ac_cv_have_decl_free = yes; then
1646760484Sobrien
16468218822Sdimcat >>confdefs.h <<_ACEOF
16469218822Sdim#define HAVE_DECL_FREE 1
16470218822Sdim_ACEOF
16471218822Sdim
16472218822Sdim
1647333965Sjdpelse
16474218822Sdim  cat >>confdefs.h <<_ACEOF
16475218822Sdim#define HAVE_DECL_FREE 0
16476218822Sdim_ACEOF
1647733965Sjdp
1647833965Sjdp
16479218822Sdimfi
16480218822Sdim
16481218822Sdim
16482218822Sdimecho "$as_me:$LINENO: checking whether getenv is declared" >&5
16483218822Sdimecho $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16484218822Sdimif test "${ac_cv_have_decl_getenv+set}" = set; then
16485218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
16486218822Sdimelse
16487218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16488218822Sdim/* confdefs.h.  */
16489218822Sdim_ACEOF
16490218822Sdimcat confdefs.h >>conftest.$ac_ext
16491218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16492218822Sdim/* end confdefs.h.  */
16493218822Sdim$ac_includes_default
16494218822Sdimint
16495218822Sdimmain ()
16496218822Sdim{
16497218822Sdim#ifndef getenv
16498218822Sdim  char *p = (char *) getenv;
1649933965Sjdp#endif
1650033965Sjdp
16501218822Sdim  ;
16502218822Sdim  return 0;
16503218822Sdim}
16504218822Sdim_ACEOF
16505218822Sdimrm -f conftest.$ac_objext
16506218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16507218822Sdim  (eval $ac_compile) 2>conftest.er1
16508218822Sdim  ac_status=$?
16509218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16510218822Sdim  rm -f conftest.er1
16511218822Sdim  cat conftest.err >&5
16512218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513218822Sdim  (exit $ac_status); } &&
16514218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16515218822Sdim			 || test ! -s conftest.err'
16516218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517218822Sdim  (eval $ac_try) 2>&5
16518218822Sdim  ac_status=$?
16519218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520218822Sdim  (exit $ac_status); }; } &&
16521218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16522218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16523218822Sdim  (eval $ac_try) 2>&5
16524218822Sdim  ac_status=$?
16525218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526218822Sdim  (exit $ac_status); }; }; then
16527218822Sdim  ac_cv_have_decl_getenv=yes
1652833965Sjdpelse
16529218822Sdim  echo "$as_me: failed program was:" >&5
16530218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16531218822Sdim
16532218822Sdimac_cv_have_decl_getenv=no
1653333965Sjdpfi
16534218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1653533965Sjdpfi
16536218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16537218822Sdimecho "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16538218822Sdimif test $ac_cv_have_decl_getenv = yes; then
1653933965Sjdp
16540218822Sdimcat >>confdefs.h <<_ACEOF
16541218822Sdim#define HAVE_DECL_GETENV 1
16542218822Sdim_ACEOF
16543218822Sdim
16544218822Sdim
1654533965Sjdpelse
16546218822Sdim  cat >>confdefs.h <<_ACEOF
16547218822Sdim#define HAVE_DECL_GETENV 0
16548218822Sdim_ACEOF
16549218822Sdim
16550218822Sdim
1655133965Sjdpfi
1655233965Sjdp
16553218822Sdim
16554218822Sdimecho "$as_me:$LINENO: checking whether malloc is declared" >&5
16555218822Sdimecho $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16556218822Sdimif test "${ac_cv_have_decl_malloc+set}" = set; then
16557218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
16558130561Sobrienelse
16559218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16560218822Sdim/* confdefs.h.  */
16561218822Sdim_ACEOF
16562218822Sdimcat confdefs.h >>conftest.$ac_ext
16563218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16564218822Sdim/* end confdefs.h.  */
16565218822Sdim$ac_includes_default
16566218822Sdimint
16567218822Sdimmain ()
16568218822Sdim{
16569218822Sdim#ifndef malloc
16570218822Sdim  char *p = (char *) malloc;
16571130561Sobrien#endif
16572130561Sobrien
16573218822Sdim  ;
16574218822Sdim  return 0;
16575218822Sdim}
16576218822Sdim_ACEOF
16577218822Sdimrm -f conftest.$ac_objext
16578218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16579218822Sdim  (eval $ac_compile) 2>conftest.er1
16580218822Sdim  ac_status=$?
16581218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16582218822Sdim  rm -f conftest.er1
16583218822Sdim  cat conftest.err >&5
16584218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585218822Sdim  (exit $ac_status); } &&
16586218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16587218822Sdim			 || test ! -s conftest.err'
16588218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589218822Sdim  (eval $ac_try) 2>&5
16590218822Sdim  ac_status=$?
16591218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592218822Sdim  (exit $ac_status); }; } &&
16593218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16594218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595218822Sdim  (eval $ac_try) 2>&5
16596218822Sdim  ac_status=$?
16597218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598218822Sdim  (exit $ac_status); }; }; then
16599218822Sdim  ac_cv_have_decl_malloc=yes
16600130561Sobrienelse
16601218822Sdim  echo "$as_me: failed program was:" >&5
16602218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16603218822Sdim
16604218822Sdimac_cv_have_decl_malloc=no
16605130561Sobrienfi
16606218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16607130561Sobrienfi
16608218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16609218822Sdimecho "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16610218822Sdimif test $ac_cv_have_decl_malloc = yes; then
16611130561Sobrien
16612218822Sdimcat >>confdefs.h <<_ACEOF
16613218822Sdim#define HAVE_DECL_MALLOC 1
16614218822Sdim_ACEOF
16615218822Sdim
16616218822Sdim
16617130561Sobrienelse
16618218822Sdim  cat >>confdefs.h <<_ACEOF
16619218822Sdim#define HAVE_DECL_MALLOC 0
16620218822Sdim_ACEOF
16621130561Sobrien
16622130561Sobrien
16623218822Sdimfi
16624130561Sobrien
1662533965Sjdp
16626218822Sdimecho "$as_me:$LINENO: checking whether realloc is declared" >&5
16627218822Sdimecho $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16628218822Sdimif test "${ac_cv_have_decl_realloc+set}" = set; then
16629218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1663033965Sjdpelse
16631218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16632218822Sdim/* confdefs.h.  */
16633218822Sdim_ACEOF
16634218822Sdimcat confdefs.h >>conftest.$ac_ext
16635218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16636218822Sdim/* end confdefs.h.  */
16637218822Sdim$ac_includes_default
16638218822Sdimint
16639218822Sdimmain ()
16640218822Sdim{
16641218822Sdim#ifndef realloc
16642218822Sdim  char *p = (char *) realloc;
16643218822Sdim#endif
1664433965Sjdp
16645218822Sdim  ;
16646218822Sdim  return 0;
16647218822Sdim}
16648218822Sdim_ACEOF
16649218822Sdimrm -f conftest.$ac_objext
16650218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651218822Sdim  (eval $ac_compile) 2>conftest.er1
16652218822Sdim  ac_status=$?
16653218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16654218822Sdim  rm -f conftest.er1
16655218822Sdim  cat conftest.err >&5
16656218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657218822Sdim  (exit $ac_status); } &&
16658218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16659218822Sdim			 || test ! -s conftest.err'
16660218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661218822Sdim  (eval $ac_try) 2>&5
16662218822Sdim  ac_status=$?
16663218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664218822Sdim  (exit $ac_status); }; } &&
16665218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16666218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667218822Sdim  (eval $ac_try) 2>&5
16668218822Sdim  ac_status=$?
16669218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670218822Sdim  (exit $ac_status); }; }; then
16671218822Sdim  ac_cv_have_decl_realloc=yes
1667233965Sjdpelse
16673218822Sdim  echo "$as_me: failed program was:" >&5
16674218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16675218822Sdim
16676218822Sdimac_cv_have_decl_realloc=no
1667733965Sjdpfi
16678218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1667933965Sjdpfi
16680218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16681218822Sdimecho "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16682218822Sdimif test $ac_cv_have_decl_realloc = yes; then
1668333965Sjdp
16684218822Sdimcat >>confdefs.h <<_ACEOF
16685218822Sdim#define HAVE_DECL_REALLOC 1
16686218822Sdim_ACEOF
1668733965Sjdp
16688218822Sdim
16689218822Sdimelse
16690218822Sdim  cat >>confdefs.h <<_ACEOF
16691218822Sdim#define HAVE_DECL_REALLOC 0
16692218822Sdim_ACEOF
16693218822Sdim
16694218822Sdim
1669533965Sjdpfi
1669633965Sjdp
16697218822Sdim
16698218822Sdimecho "$as_me:$LINENO: checking whether stpcpy is declared" >&5
16699218822Sdimecho $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
16700218822Sdimif test "${ac_cv_have_decl_stpcpy+set}" = set; then
16701218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1670233965Sjdpelse
16703218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16704218822Sdim/* confdefs.h.  */
16705218822Sdim_ACEOF
16706218822Sdimcat confdefs.h >>conftest.$ac_ext
16707218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16708218822Sdim/* end confdefs.h.  */
16709218822Sdim$ac_includes_default
16710218822Sdimint
16711218822Sdimmain ()
16712218822Sdim{
16713218822Sdim#ifndef stpcpy
16714218822Sdim  char *p = (char *) stpcpy;
16715218822Sdim#endif
1671633965Sjdp
16717218822Sdim  ;
16718218822Sdim  return 0;
16719218822Sdim}
16720218822Sdim_ACEOF
16721218822Sdimrm -f conftest.$ac_objext
16722218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723218822Sdim  (eval $ac_compile) 2>conftest.er1
16724218822Sdim  ac_status=$?
16725218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16726218822Sdim  rm -f conftest.er1
16727218822Sdim  cat conftest.err >&5
16728218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729218822Sdim  (exit $ac_status); } &&
16730218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16731218822Sdim			 || test ! -s conftest.err'
16732218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733218822Sdim  (eval $ac_try) 2>&5
16734218822Sdim  ac_status=$?
16735218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736218822Sdim  (exit $ac_status); }; } &&
16737218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16738218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739218822Sdim  (eval $ac_try) 2>&5
16740218822Sdim  ac_status=$?
16741218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742218822Sdim  (exit $ac_status); }; }; then
16743218822Sdim  ac_cv_have_decl_stpcpy=yes
1674433965Sjdpelse
16745218822Sdim  echo "$as_me: failed program was:" >&5
16746218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16747218822Sdim
16748218822Sdimac_cv_have_decl_stpcpy=no
1674933965Sjdpfi
16750218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1675133965Sjdpfi
16752218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
16753218822Sdimecho "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
16754218822Sdimif test $ac_cv_have_decl_stpcpy = yes; then
1675533965Sjdp
16756218822Sdimcat >>confdefs.h <<_ACEOF
16757218822Sdim#define HAVE_DECL_STPCPY 1
16758218822Sdim_ACEOF
1675933965Sjdp
16760218822Sdim
16761218822Sdimelse
16762218822Sdim  cat >>confdefs.h <<_ACEOF
16763218822Sdim#define HAVE_DECL_STPCPY 0
16764218822Sdim_ACEOF
16765218822Sdim
16766218822Sdim
1676733965Sjdpfi
1676833965Sjdp
16769218822Sdim
16770218822Sdimecho "$as_me:$LINENO: checking whether strstr is declared" >&5
16771218822Sdimecho $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16772218822Sdimif test "${ac_cv_have_decl_strstr+set}" = set; then
16773218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1677433965Sjdpelse
16775218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16776218822Sdim/* confdefs.h.  */
16777218822Sdim_ACEOF
16778218822Sdimcat confdefs.h >>conftest.$ac_ext
16779218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16780218822Sdim/* end confdefs.h.  */
16781218822Sdim$ac_includes_default
16782218822Sdimint
16783218822Sdimmain ()
16784218822Sdim{
16785218822Sdim#ifndef strstr
16786218822Sdim  char *p = (char *) strstr;
16787218822Sdim#endif
1678833965Sjdp
16789218822Sdim  ;
16790218822Sdim  return 0;
16791218822Sdim}
16792218822Sdim_ACEOF
16793218822Sdimrm -f conftest.$ac_objext
16794218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16795218822Sdim  (eval $ac_compile) 2>conftest.er1
16796218822Sdim  ac_status=$?
16797218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16798218822Sdim  rm -f conftest.er1
16799218822Sdim  cat conftest.err >&5
16800218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801218822Sdim  (exit $ac_status); } &&
16802218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16803218822Sdim			 || test ! -s conftest.err'
16804218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805218822Sdim  (eval $ac_try) 2>&5
16806218822Sdim  ac_status=$?
16807218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808218822Sdim  (exit $ac_status); }; } &&
16809218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16810218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811218822Sdim  (eval $ac_try) 2>&5
16812218822Sdim  ac_status=$?
16813218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814218822Sdim  (exit $ac_status); }; }; then
16815218822Sdim  ac_cv_have_decl_strstr=yes
1681633965Sjdpelse
16817218822Sdim  echo "$as_me: failed program was:" >&5
16818218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16819218822Sdim
16820218822Sdimac_cv_have_decl_strstr=no
1682133965Sjdpfi
16822218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1682333965Sjdpfi
16824218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16825218822Sdimecho "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16826218822Sdimif test $ac_cv_have_decl_strstr = yes; then
1682733965Sjdp
16828218822Sdimcat >>confdefs.h <<_ACEOF
16829218822Sdim#define HAVE_DECL_STRSTR 1
16830218822Sdim_ACEOF
1683133965Sjdp
16832218822Sdim
16833218822Sdimelse
16834218822Sdim  cat >>confdefs.h <<_ACEOF
16835218822Sdim#define HAVE_DECL_STRSTR 0
16836218822Sdim_ACEOF
16837218822Sdim
16838218822Sdim
1683933965Sjdpfi
1684033965Sjdp
16841218822Sdim
16842218822Sdimecho "$as_me:$LINENO: checking whether snprintf is declared" >&5
16843218822Sdimecho $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16844218822Sdimif test "${ac_cv_have_decl_snprintf+set}" = set; then
16845218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1684633965Sjdpelse
16847218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16848218822Sdim/* confdefs.h.  */
16849218822Sdim_ACEOF
16850218822Sdimcat confdefs.h >>conftest.$ac_ext
16851218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16852218822Sdim/* end confdefs.h.  */
16853218822Sdim$ac_includes_default
16854218822Sdimint
16855218822Sdimmain ()
16856218822Sdim{
16857218822Sdim#ifndef snprintf
16858218822Sdim  char *p = (char *) snprintf;
16859218822Sdim#endif
1686033965Sjdp
16861218822Sdim  ;
16862218822Sdim  return 0;
16863218822Sdim}
16864218822Sdim_ACEOF
16865218822Sdimrm -f conftest.$ac_objext
16866218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867218822Sdim  (eval $ac_compile) 2>conftest.er1
16868218822Sdim  ac_status=$?
16869218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16870218822Sdim  rm -f conftest.er1
16871218822Sdim  cat conftest.err >&5
16872218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873218822Sdim  (exit $ac_status); } &&
16874218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16875218822Sdim			 || test ! -s conftest.err'
16876218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877218822Sdim  (eval $ac_try) 2>&5
16878218822Sdim  ac_status=$?
16879218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880218822Sdim  (exit $ac_status); }; } &&
16881218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16882218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883218822Sdim  (eval $ac_try) 2>&5
16884218822Sdim  ac_status=$?
16885218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886218822Sdim  (exit $ac_status); }; }; then
16887218822Sdim  ac_cv_have_decl_snprintf=yes
1688833965Sjdpelse
16889218822Sdim  echo "$as_me: failed program was:" >&5
16890218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16891218822Sdim
16892218822Sdimac_cv_have_decl_snprintf=no
1689333965Sjdpfi
16894218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1689533965Sjdpfi
16896218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16897218822Sdimecho "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16898218822Sdimif test $ac_cv_have_decl_snprintf = yes; then
1689933965Sjdp
16900218822Sdimcat >>confdefs.h <<_ACEOF
16901218822Sdim#define HAVE_DECL_SNPRINTF 1
16902218822Sdim_ACEOF
1690333965Sjdp
16904218822Sdim
16905218822Sdimelse
16906218822Sdim  cat >>confdefs.h <<_ACEOF
16907218822Sdim#define HAVE_DECL_SNPRINTF 0
16908218822Sdim_ACEOF
16909218822Sdim
16910218822Sdim
1691133965Sjdpfi
1691233965Sjdp
16913218822Sdim
16914218822Sdimecho "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16915218822Sdimecho $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16916218822Sdimif test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16917218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1691833965Sjdpelse
16919218822Sdim  cat >conftest.$ac_ext <<_ACEOF
16920218822Sdim/* confdefs.h.  */
16921218822Sdim_ACEOF
16922218822Sdimcat confdefs.h >>conftest.$ac_ext
16923218822Sdimcat >>conftest.$ac_ext <<_ACEOF
16924218822Sdim/* end confdefs.h.  */
16925218822Sdim$ac_includes_default
16926218822Sdimint
16927218822Sdimmain ()
16928218822Sdim{
16929218822Sdim#ifndef vsnprintf
16930218822Sdim  char *p = (char *) vsnprintf;
16931218822Sdim#endif
1693233965Sjdp
16933218822Sdim  ;
16934218822Sdim  return 0;
16935218822Sdim}
16936218822Sdim_ACEOF
16937218822Sdimrm -f conftest.$ac_objext
16938218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16939218822Sdim  (eval $ac_compile) 2>conftest.er1
16940218822Sdim  ac_status=$?
16941218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
16942218822Sdim  rm -f conftest.er1
16943218822Sdim  cat conftest.err >&5
16944218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945218822Sdim  (exit $ac_status); } &&
16946218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
16947218822Sdim			 || test ! -s conftest.err'
16948218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949218822Sdim  (eval $ac_try) 2>&5
16950218822Sdim  ac_status=$?
16951218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952218822Sdim  (exit $ac_status); }; } &&
16953218822Sdim	 { ac_try='test -s conftest.$ac_objext'
16954218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955218822Sdim  (eval $ac_try) 2>&5
16956218822Sdim  ac_status=$?
16957218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958218822Sdim  (exit $ac_status); }; }; then
16959218822Sdim  ac_cv_have_decl_vsnprintf=yes
1696033965Sjdpelse
16961218822Sdim  echo "$as_me: failed program was:" >&5
16962218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
16963218822Sdim
16964218822Sdimac_cv_have_decl_vsnprintf=no
1696533965Sjdpfi
16966218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1696733965Sjdpfi
16968218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16969218822Sdimecho "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16970218822Sdimif test $ac_cv_have_decl_vsnprintf = yes; then
1697133965Sjdp
16972218822Sdimcat >>confdefs.h <<_ACEOF
16973218822Sdim#define HAVE_DECL_VSNPRINTF 1
16974218822Sdim_ACEOF
1697533965Sjdp
16976218822Sdim
16977218822Sdimelse
16978218822Sdim  cat >>confdefs.h <<_ACEOF
16979218822Sdim#define HAVE_DECL_VSNPRINTF 0
16980218822Sdim_ACEOF
16981218822Sdim
16982218822Sdim
1698333965Sjdpfi
1698433965Sjdp
1698533965Sjdp
16986218822Sdim
1698733965Sjdp# If we are configured native, pick a core file support file.
1698833965SjdpCOREFILE=
1698933965SjdpCOREFLAG=
1699060484SobrienTRAD_HEADER=
1699133965Sjdpif test "${target}" = "${host}"; then
1699233965Sjdp  case "${host}" in
16993130561Sobrien  alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1699477298Sobrien	COREFILE=''
1699577298Sobrien	;;
16996218822Sdim  alpha*-*-linux-*)
1699738889Sjdp	COREFILE=trad-core.lo
1699860484Sobrien	TRAD_HEADER='"hosts/alphalinux.h"'
1699933965Sjdp	;;
17000104834Sobrien  alpha*-*-netbsd* | alpha*-*-openbsd*)
17001104834Sobrien	COREFILE=netbsd-core.lo
17002104834Sobrien	;;
1700338889Sjdp  alpha*-*-*)		COREFILE=osf-core.lo ;;
17004130561Sobrien  arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17005130561Sobrien			COREFILE='' ;;
17006218822Sdim  arm-*-netbsd* | arm-*-openbsd*)
17007218822Sdim	COREFILE=netbsd-core.lo
17008218822Sdim	;;
1700938889Sjdp  arm-*-riscix)		COREFILE=trad-core.lo ;;
1701038889Sjdp  hppa*-*-hpux*)	COREFILE=hpux-core.lo ;;
1701138889Sjdp  hppa*-*-hiux*)	COREFILE=hpux-core.lo ;;
1701260484Sobrien  hppa*-*-mpeix*)	COREFILE=hpux-core.lo ;;
1701338889Sjdp  hppa*-*-bsd*)		COREFILE="hpux-core.lo hppabsd-core.lo"
1701433965Sjdp			COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
17015218822Sdim  hppa*-*-netbsd* | hppa*-*-openbsd*)
17016218822Sdim	COREFILE=netbsd-core.lo
17017218822Sdim	;;
17018218822Sdim
1701989857Sobrien  i370-*-*)
1702060484Sobrien	COREFILE=trad-core.lo
1702160484Sobrien	TRAD_HEADER='"hosts/i370linux.h"'
1702260484Sobrien	;;
1702360484Sobrien
17024130561Sobrien  i[3-7]86-sequent-bsd*)
1702560484Sobrien	COREFILE=trad-core.lo
1702660484Sobrien	TRAD_HEADER='"hosts/symmetry.h"'
1702733965Sjdp	;;
17028130561Sobrien  i[3-7]86-sequent-sysv4*) ;;
17029130561Sobrien  i[3-7]86-sequent-sysv*)
1703038889Sjdp	COREFILE=trad-core.lo
1703160484Sobrien	TRAD_HEADER='"hosts/symmetry.h"'
1703233965Sjdp	;;
17033130561Sobrien  i[3-7]86-*-bsdi)
1703489857Sobrien	COREFILE=
1703589857Sobrien	;;
17036218822Sdim  i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
1703738889Sjdp	COREFILE=trad-core.lo
1703860484Sobrien	TRAD_HEADER='"hosts/i386bsd.h"'
1703933965Sjdp	;;
17040130561Sobrien  i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
1704177298Sobrien	COREFILE=''
1704277298Sobrien	TRAD_HEADER='"hosts/i386bsd.h"'
1704377298Sobrien	;;
17044130561Sobrien  i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
1704538889Sjdp	COREFILE=netbsd-core.lo
1704633965Sjdp	;;
17047130561Sobrien  i[3-7]86-esix-sysv3*)
1704838889Sjdp	COREFILE=trad-core.lo
1704960484Sobrien	TRAD_HEADER='"hosts/esix.h"'
1705033965Sjdp	;;
17051130561Sobrien  i[3-7]86-*-sco3.2v5*)
1705260484Sobrien	COREFILE=sco5-core.lo
1705360484Sobrien	;;
17054130561Sobrien  i[3-7]86-*-sco* | i[3-7]86-*-isc*)
1705538889Sjdp	COREFILE=trad-core.lo
1705660484Sobrien	TRAD_HEADER='"hosts/i386sco.h"'
1705733965Sjdp	;;
17058130561Sobrien  i[3-7]86-*-mach3*)
1705938889Sjdp	COREFILE=trad-core.lo
1706060484Sobrien	TRAD_HEADER='"hosts/i386mach3.h"'
1706133965Sjdp	;;
17062218822Sdim  i[3-7]86-*-linux-*)
1706338889Sjdp	COREFILE=trad-core.lo
1706460484Sobrien	TRAD_HEADER='"hosts/i386linux.h"'
1706533965Sjdp	;;
17066130561Sobrien  i[3-7]86-*-isc*)	COREFILE=trad-core.lo ;;
17067130561Sobrien  i[3-7]86-*-aix*)	COREFILE=aix386-core.lo ;;
1706833965Sjdp  i860-*-mach3* | i860-*-osf1*)
1706938889Sjdp	COREFILE=trad-core.lo
1707060484Sobrien	TRAD_HEADER='"hosts/i860mach3.h"'
1707133965Sjdp	;;
1707233965Sjdp  mips-*-netbsd* | mips*-*-openbsd*)
1707338889Sjdp	COREFILE=netbsd-core.lo
1707433965Sjdp	;;
1707533965Sjdp  mips-dec-*)
1707638889Sjdp	COREFILE=trad-core.lo
1707760484Sobrien	TRAD_HEADER='"hosts/decstation.h"'
1707833965Sjdp	;;
1707938889Sjdp  mips-sgi-irix4*)	COREFILE=irix-core.lo ;;
1708038889Sjdp  mips-sgi-irix5*)	COREFILE=irix-core.lo ;;
1708138889Sjdp  mips-sgi-irix6*)	COREFILE=irix-core.lo ;;
1708233965Sjdp  mips-*-sysv4*)	;;
1708333965Sjdp  mips-*-sysv* | mips-*-riscos*)
1708438889Sjdp	COREFILE=trad-core.lo
1708560484Sobrien	TRAD_HEADER='"hosts/riscos.h"'
1708633965Sjdp	;;
1708733965Sjdp  mips-sony-bsd*)
1708838889Sjdp	COREFILE=trad-core.lo
1708960484Sobrien	TRAD_HEADER='"hosts/news-mips.h"'
1709033965Sjdp	;;
1709133965Sjdp  m68*-bull*-sysv*)
1709238889Sjdp	COREFILE=trad-core.lo
1709360484Sobrien	TRAD_HEADER='"hosts/dpx2.h"'
1709433965Sjdp	;;
1709538889Sjdp  m68*-hp-hpux*)	COREFILE=hpux-core.lo ;;
1709633965Sjdp  m68*-hp-bsd*)
1709738889Sjdp	COREFILE=trad-core.lo
1709860484Sobrien	TRAD_HEADER='"hosts/hp300bsd.h"'
1709933965Sjdp	;;
17100218822Sdim  m68*-*-linux-*)
1710138889Sjdp	COREFILE=trad-core.lo
1710260484Sobrien	TRAD_HEADER='"hosts/m68klinux.h"'
1710333965Sjdp	;;
1710433965Sjdp  m68*-motorola-sysv*)
1710538889Sjdp	COREFILE=trad-core.lo
1710660484Sobrien	TRAD_HEADER='"hosts/delta68.h"'
1710733965Sjdp	;;
1710833965Sjdp  m68*-sony-*)
1710938889Sjdp	COREFILE=trad-core.lo
1711060484Sobrien	TRAD_HEADER='"hosts/news.h"'
1711133965Sjdp	;;
1711233965Sjdp  m68*-*-netbsd* | m68*-*-openbsd*)
1711338889Sjdp	COREFILE=netbsd-core.lo
1711433965Sjdp	;;
1711533965Sjdp  m68*-apple-aux*)
1711638889Sjdp	COREFILE=trad-core.lo
1711760484Sobrien	TRAD_HEADER='"hosts/m68kaux.h"'
1711833965Sjdp	;;
17119104834Sobrien  m88*-*-sysv4*)
17120104834Sobrien	;;
17121104834Sobrien  m88*-motorola-sysv*)
17122104834Sobrien	COREFILE=ptrace-core.lo
17123104834Sobrien	;;
1712433965Sjdp  m88*-*-mach3*)
1712538889Sjdp	COREFILE=trad-core.lo
1712660484Sobrien	TRAD_HEADER='"hosts/m88kmach3.h"'
1712733965Sjdp	;;
17128218822Sdim  m88*-*-openbsd*)
17129218822Sdim	COREFILE=netbsd-core.lo
17130218822Sdim	;;
1713133965Sjdp  ns32k-pc532-mach)
1713238889Sjdp	COREFILE=trad-core.lo
1713360484Sobrien	TRAD_HEADER='"hosts/pc532mach.h"'
1713433965Sjdp	;;
1713533965Sjdp  ns32k-*-netbsd* | ns32k-*-openbsd*)
1713638889Sjdp	COREFILE=netbsd-core.lo
1713733965Sjdp	;;
17138104834Sobrien  rs6000-*-lynx*)
17139104834Sobrien  	COREFILE=lynx-core.lo
17140104834Sobrien	;;
17141104834Sobrien  rs6000-*-aix5.* | powerpc-*-aix5.*)
17142104834Sobrien        COREFILE=rs6000-core.lo
17143104834Sobrien	COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17144104834Sobrien	;;
1714577298Sobrien  rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
1714677298Sobrien        COREFILE=rs6000-core.lo
1714777298Sobrien	COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
1714899461Sobrien	# Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
1714999461Sobrien	# have c_impl as a member of struct core_dumpx
17150218822Sdim	echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17151218822Sdimecho $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17152218822Sdim	cat >conftest.$ac_ext <<_ACEOF
17153218822Sdim/* confdefs.h.  */
17154218822Sdim_ACEOF
17155218822Sdimcat confdefs.h >>conftest.$ac_ext
17156218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17157218822Sdim/* end confdefs.h.  */
1715899461Sobrien#include <core.h>
17159218822Sdimint
17160218822Sdimmain ()
17161218822Sdim{
1716299461Sobrienstruct core_dumpx c; c.c_impl = 0;
17163218822Sdim  ;
17164218822Sdim  return 0;
17165218822Sdim}
17166218822Sdim_ACEOF
17167218822Sdimrm -f conftest.$ac_objext
17168218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17169218822Sdim  (eval $ac_compile) 2>conftest.er1
17170218822Sdim  ac_status=$?
17171218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17172218822Sdim  rm -f conftest.er1
17173218822Sdim  cat conftest.err >&5
17174218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175218822Sdim  (exit $ac_status); } &&
17176218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17177218822Sdim			 || test ! -s conftest.err'
17178218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179218822Sdim  (eval $ac_try) 2>&5
17180218822Sdim  ac_status=$?
17181218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182218822Sdim  (exit $ac_status); }; } &&
17183218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17184218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185218822Sdim  (eval $ac_try) 2>&5
17186218822Sdim  ac_status=$?
17187218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188218822Sdim  (exit $ac_status); }; }; then
17189218822Sdim
17190218822Sdimcat >>confdefs.h <<\_ACEOF
1719199461Sobrien#define HAVE_ST_C_IMPL 1
17192218822Sdim_ACEOF
1719399461Sobrien
17194218822Sdim	  echo "$as_me:$LINENO: result: yes" >&5
17195218822Sdimecho "${ECHO_T}yes" >&6
1719699461Sobrienelse
17197218822Sdim  echo "$as_me: failed program was:" >&5
17198218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17199218822Sdim
17200218822Sdimecho "$as_me:$LINENO: result: no" >&5
17201218822Sdimecho "${ECHO_T}no" >&6
1720299461Sobrienfi
17203218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1720477298Sobrien	;;
1720538889Sjdp  rs6000-*-aix4*)	COREFILE=rs6000-core.lo ;;
1720638889Sjdp  rs6000-*-*)		COREFILE=rs6000-core.lo ;;
1720738889Sjdp  powerpc-*-aix4*)	COREFILE=rs6000-core.lo ;;
1720838889Sjdp  powerpc-*-aix*)	COREFILE=rs6000-core.lo ;;
1720933965Sjdp  powerpc-*-beos*)	;;
17210130561Sobrien  powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17211130561Sobrien		        COREFILE='' ;;
1721238889Sjdp  powerpc-*-netbsd*)	COREFILE=netbsd-core.lo ;;
1721378828Sobrien  powerpc-*-*bsd*)	COREFILE=netbsd-core.lo ;;
1721489857Sobrien  s390*-*-*)            COREFILE=trad-core.lo ;;
17215218822Sdim  sh*-*-netbsd* | sh*-*-openbsd*)
17216218822Sdim	COREFILE=netbsd-core.lo
17217218822Sdim	;;
17218104834Sobrien  sparc-*-netbsd* | sparc*-*-openbsd*)
1721938889Sjdp	COREFILE=netbsd-core.lo
1722033965Sjdp	;;
1722133965Sjdp  tahoe-*-*)
1722238889Sjdp	COREFILE=trad-core.lo
1722360484Sobrien	TRAD_HEADER='"hosts/tahoe.h"'
1722433965Sjdp	;;
17225130561Sobrien  vax-*-netbsd* | vax-*-openbsd*)
17226130561Sobrien  	COREFILE=netbsd-core.lo
17227130561Sobrien	;;
1722833965Sjdp  vax-*-ultrix2*)
1722938889Sjdp	COREFILE=trad-core.lo
1723060484Sobrien	TRAD_HEADER='"hosts/vaxult2.h"'
1723133965Sjdp	;;
1723233965Sjdp  vax-*-ultrix*)
1723338889Sjdp	COREFILE=trad-core.lo
1723460484Sobrien	TRAD_HEADER='"hosts/vaxult2.h"'
1723533965Sjdp	;;
17236218822Sdim  vax-*-linux-*)
17237130561Sobrien	COREFILE=trad-core.lo
17238130561Sobrien	TRAD_HEADER='"hosts/vaxlinux.h"'
17239130561Sobrien	;;
1724033965Sjdp  vax-*-*)
1724138889Sjdp	COREFILE=trad-core.lo
1724260484Sobrien	TRAD_HEADER='"hosts/vaxbsd.h"'
1724333965Sjdp	;;
17244130561Sobrien  x86_64-*-netbsd* | x86_64-*-openbsd*)
17245130561Sobrien	COREFILE=netbsd-core.lo
17246130561Sobrien	;;
1724733965Sjdp  esac
1724833965Sjdp
1724933965Sjdp  case "$COREFILE" in
1725038889Sjdp  aix386-core.lo)	COREFLAG=-DAIX386_CORE ;;
1725138889Sjdp  hppabsd-core.lo)	COREFLAG=-DHPPABSD_CORE ;;
1725238889Sjdp  hpux-core.lo)		COREFLAG=-DHPUX_CORE ;;
1725338889Sjdp  irix-core.lo)		COREFLAG=-DIRIX_CORE ;;
1725438889Sjdp  lynx-core.lo)		COREFLAG=-DLYNX_CORE ;;
1725538889Sjdp  netbsd-core.lo)	COREFLAG=-DNETBSD_CORE ;;
1725638889Sjdp  osf-core.lo)		COREFLAG=-DOSF_CORE ;;
1725738889Sjdp  ptrace-core.lo)	COREFLAG=-DPTRACE_CORE ;;
1725838889Sjdp  rs6000-core.lo)	COREFLAG="$COREFLAG -DAIX_CORE" ;;
1725960484Sobrien  sco5-core.lo)		COREFLAG="$COREFLAG -DSCO5_CORE" ;;
1726038889Sjdp  trad-core.lo)		COREFLAG="$COREFLAG -DTRAD_CORE" ;;
1726133965Sjdp  esac
1726233965Sjdp
1726360484Sobrien  # ELF corefile support has several flavors, but all of
1726460484Sobrien  # them use something called <sys/procfs.h>
17265218822Sdim
17266218822Sdimfor ac_header in sys/procfs.h
1726760484Sobriendo
17268218822Sdimas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17269218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
17270218822Sdim  echo "$as_me:$LINENO: checking for $ac_header" >&5
17271218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17272218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
17273218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
17274218822Sdimfi
17275218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17276218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1727733965Sjdpelse
17278218822Sdim  # Is the header compilable?
17279218822Sdimecho "$as_me:$LINENO: checking $ac_header usability" >&5
17280218822Sdimecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17281218822Sdimcat >conftest.$ac_ext <<_ACEOF
17282218822Sdim/* confdefs.h.  */
17283218822Sdim_ACEOF
17284218822Sdimcat confdefs.h >>conftest.$ac_ext
17285218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17286218822Sdim/* end confdefs.h.  */
17287218822Sdim$ac_includes_default
17288218822Sdim#include <$ac_header>
17289218822Sdim_ACEOF
17290218822Sdimrm -f conftest.$ac_objext
17291218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17292218822Sdim  (eval $ac_compile) 2>conftest.er1
17293218822Sdim  ac_status=$?
17294218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17295218822Sdim  rm -f conftest.er1
17296218822Sdim  cat conftest.err >&5
17297218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298218822Sdim  (exit $ac_status); } &&
17299218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17300218822Sdim			 || test ! -s conftest.err'
17301218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302218822Sdim  (eval $ac_try) 2>&5
17303218822Sdim  ac_status=$?
17304218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305218822Sdim  (exit $ac_status); }; } &&
17306218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17307218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308218822Sdim  (eval $ac_try) 2>&5
17309218822Sdim  ac_status=$?
17310218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311218822Sdim  (exit $ac_status); }; }; then
17312218822Sdim  ac_header_compiler=yes
1731360484Sobrienelse
17314218822Sdim  echo "$as_me: failed program was:" >&5
17315218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17316218822Sdim
17317218822Sdimac_header_compiler=no
1731860484Sobrienfi
17319218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17320218822Sdimecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
17321218822Sdimecho "${ECHO_T}$ac_header_compiler" >&6
17322218822Sdim
17323218822Sdim# Is the header present?
17324218822Sdimecho "$as_me:$LINENO: checking $ac_header presence" >&5
17325218822Sdimecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17326218822Sdimcat >conftest.$ac_ext <<_ACEOF
17327218822Sdim/* confdefs.h.  */
17328218822Sdim_ACEOF
17329218822Sdimcat confdefs.h >>conftest.$ac_ext
17330218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17331218822Sdim/* end confdefs.h.  */
17332218822Sdim#include <$ac_header>
17333218822Sdim_ACEOF
17334218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17335218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17336218822Sdim  ac_status=$?
17337218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17338218822Sdim  rm -f conftest.er1
17339218822Sdim  cat conftest.err >&5
17340218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341218822Sdim  (exit $ac_status); } >/dev/null; then
17342218822Sdim  if test -s conftest.err; then
17343218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
17344218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17345218822Sdim  else
17346218822Sdim    ac_cpp_err=
17347218822Sdim  fi
17348218822Sdimelse
17349218822Sdim  ac_cpp_err=yes
1735060484Sobrienfi
17351218822Sdimif test -z "$ac_cpp_err"; then
17352218822Sdim  ac_header_preproc=yes
1735360484Sobrienelse
17354218822Sdim  echo "$as_me: failed program was:" >&5
17355218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17356218822Sdim
17357218822Sdim  ac_header_preproc=no
1735860484Sobrienfi
17359218822Sdimrm -f conftest.err conftest.$ac_ext
17360218822Sdimecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
17361218822Sdimecho "${ECHO_T}$ac_header_preproc" >&6
17362218822Sdim
17363218822Sdim# So?  What about this header?
17364218822Sdimcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17365218822Sdim  yes:no: )
17366218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17367218822Sdimecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17368218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17369218822Sdimecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17370218822Sdim    ac_header_preproc=yes
17371218822Sdim    ;;
17372218822Sdim  no:yes:* )
17373218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17374218822Sdimecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17375218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17376218822Sdimecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17377218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17378218822Sdimecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17379218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17380218822Sdimecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17381218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17382218822Sdimecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17383218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17384218822Sdimecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17385218822Sdim    (
17386218822Sdim      cat <<\_ASBOX
17387218822Sdim## ------------------------------------------ ##
17388218822Sdim## Report this to the AC_PACKAGE_NAME lists.  ##
17389218822Sdim## ------------------------------------------ ##
17390218822Sdim_ASBOX
17391218822Sdim    ) |
17392218822Sdim      sed "s/^/$as_me: WARNING:     /" >&2
17393218822Sdim    ;;
17394218822Sdimesac
17395218822Sdimecho "$as_me:$LINENO: checking for $ac_header" >&5
17396218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17397218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
17398218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
17399218822Sdimelse
17400218822Sdim  eval "$as_ac_Header=\$ac_header_preproc"
17401218822Sdimfi
17402218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17403218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17404218822Sdim
17405218822Sdimfi
17406218822Sdimif test `eval echo '${'$as_ac_Header'}'` = yes; then
17407218822Sdim  cat >>confdefs.h <<_ACEOF
17408218822Sdim#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17409218822Sdim_ACEOF
17410218822Sdim
17411218822Sdimfi
17412218822Sdim
1741360484Sobriendone
1741460484Sobrien
1741560484Sobrien  if test "$ac_cv_header_sys_procfs_h" = yes; then
17416218822Sdim    echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17417218822Sdimecho $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17418218822Sdim if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17419218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1742060484Sobrienelse
17421218822Sdim  cat >conftest.$ac_ext <<_ACEOF
17422218822Sdim/* confdefs.h.  */
17423218822Sdim_ACEOF
17424218822Sdimcat confdefs.h >>conftest.$ac_ext
17425218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17426218822Sdim/* end confdefs.h.  */
1742777298Sobrien
1742877298Sobrien#define _SYSCALL32
1742933965Sjdp#include <sys/procfs.h>
17430218822Sdimint
17431218822Sdimmain ()
17432218822Sdim{
1743360484Sobrienprstatus_t avar
17434218822Sdim  ;
17435218822Sdim  return 0;
17436218822Sdim}
17437218822Sdim_ACEOF
17438218822Sdimrm -f conftest.$ac_objext
17439218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17440218822Sdim  (eval $ac_compile) 2>conftest.er1
17441218822Sdim  ac_status=$?
17442218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17443218822Sdim  rm -f conftest.er1
17444218822Sdim  cat conftest.err >&5
17445218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446218822Sdim  (exit $ac_status); } &&
17447218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17448218822Sdim			 || test ! -s conftest.err'
17449218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450218822Sdim  (eval $ac_try) 2>&5
17451218822Sdim  ac_status=$?
17452218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453218822Sdim  (exit $ac_status); }; } &&
17454218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17455218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456218822Sdim  (eval $ac_try) 2>&5
17457218822Sdim  ac_status=$?
17458218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459218822Sdim  (exit $ac_status); }; }; then
1746060484Sobrien  bfd_cv_have_sys_procfs_type_prstatus_t=yes
1746133965Sjdpelse
17462218822Sdim  echo "$as_me: failed program was:" >&5
17463218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17464218822Sdim
17465218822Sdimbfd_cv_have_sys_procfs_type_prstatus_t=no
17466218822Sdim
1746733965Sjdpfi
17468218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1746933965Sjdpfi
1747033965Sjdp
1747160484Sobrien if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
17472218822Sdim
17473218822Sdimcat >>confdefs.h <<\_ACEOF
1747460484Sobrien#define HAVE_PRSTATUS_T 1
17475218822Sdim_ACEOF
1747633965Sjdp
1747760484Sobrien fi
17478218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17479218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
1748033965Sjdp
17481218822Sdim    echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17482218822Sdimecho $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17483218822Sdim if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17484218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1748577298Sobrienelse
17486218822Sdim  cat >conftest.$ac_ext <<_ACEOF
17487218822Sdim/* confdefs.h.  */
17488218822Sdim_ACEOF
17489218822Sdimcat confdefs.h >>conftest.$ac_ext
17490218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17491218822Sdim/* end confdefs.h.  */
1749277298Sobrien
1749377298Sobrien#define _SYSCALL32
1749477298Sobrien#include <sys/procfs.h>
17495218822Sdimint
17496218822Sdimmain ()
17497218822Sdim{
1749877298Sobrienprstatus32_t avar
17499218822Sdim  ;
17500218822Sdim  return 0;
17501218822Sdim}
17502218822Sdim_ACEOF
17503218822Sdimrm -f conftest.$ac_objext
17504218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17505218822Sdim  (eval $ac_compile) 2>conftest.er1
17506218822Sdim  ac_status=$?
17507218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17508218822Sdim  rm -f conftest.er1
17509218822Sdim  cat conftest.err >&5
17510218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511218822Sdim  (exit $ac_status); } &&
17512218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17513218822Sdim			 || test ! -s conftest.err'
17514218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515218822Sdim  (eval $ac_try) 2>&5
17516218822Sdim  ac_status=$?
17517218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518218822Sdim  (exit $ac_status); }; } &&
17519218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17520218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521218822Sdim  (eval $ac_try) 2>&5
17522218822Sdim  ac_status=$?
17523218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524218822Sdim  (exit $ac_status); }; }; then
1752577298Sobrien  bfd_cv_have_sys_procfs_type_prstatus32_t=yes
1752677298Sobrienelse
17527218822Sdim  echo "$as_me: failed program was:" >&5
17528218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17529218822Sdim
17530218822Sdimbfd_cv_have_sys_procfs_type_prstatus32_t=no
17531218822Sdim
1753277298Sobrienfi
17533218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1753477298Sobrienfi
1753577298Sobrien
1753677298Sobrien if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
17537218822Sdim
17538218822Sdimcat >>confdefs.h <<\_ACEOF
1753977298Sobrien#define HAVE_PRSTATUS32_T 1
17540218822Sdim_ACEOF
1754177298Sobrien
1754277298Sobrien fi
17543218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17544218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
1754577298Sobrien
17546218822Sdim    echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17547218822Sdimecho $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17548218822Sdim if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17549218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1755060484Sobrienelse
17551218822Sdim  cat >conftest.$ac_ext <<_ACEOF
17552218822Sdim/* confdefs.h.  */
17553218822Sdim_ACEOF
17554218822Sdimcat confdefs.h >>conftest.$ac_ext
17555218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17556218822Sdim/* end confdefs.h.  */
1755777298Sobrien
1755877298Sobrien#define _SYSCALL32
1755960484Sobrien#include <sys/procfs.h>
17560218822Sdimint
17561218822Sdimmain ()
17562218822Sdim{
1756360484Sobrienprstatus_t avar; void* aref = (void*) &avar.pr_who
17564218822Sdim  ;
17565218822Sdim  return 0;
17566218822Sdim}
17567218822Sdim_ACEOF
17568218822Sdimrm -f conftest.$ac_objext
17569218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17570218822Sdim  (eval $ac_compile) 2>conftest.er1
17571218822Sdim  ac_status=$?
17572218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17573218822Sdim  rm -f conftest.er1
17574218822Sdim  cat conftest.err >&5
17575218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576218822Sdim  (exit $ac_status); } &&
17577218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17578218822Sdim			 || test ! -s conftest.err'
17579218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580218822Sdim  (eval $ac_try) 2>&5
17581218822Sdim  ac_status=$?
17582218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583218822Sdim  (exit $ac_status); }; } &&
17584218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17585218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586218822Sdim  (eval $ac_try) 2>&5
17587218822Sdim  ac_status=$?
17588218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589218822Sdim  (exit $ac_status); }; }; then
1759060484Sobrien  bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
1759160484Sobrienelse
17592218822Sdim  echo "$as_me: failed program was:" >&5
17593218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17594218822Sdim
17595218822Sdimbfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
17596218822Sdim
1759733965Sjdpfi
17598218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1759960484Sobrienfi
1760033965Sjdp
1760160484Sobrien if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
17602218822Sdim
17603218822Sdimcat >>confdefs.h <<\_ACEOF
1760460484Sobrien#define HAVE_PRSTATUS_T_PR_WHO 1
17605218822Sdim_ACEOF
1760633965Sjdp
1760760484Sobrien fi
17608218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
17609218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
1761033965Sjdp
17611218822Sdim    echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
17612218822Sdimecho $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17613218822Sdim if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
17614218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1761577298Sobrienelse
17616218822Sdim  cat >conftest.$ac_ext <<_ACEOF
17617218822Sdim/* confdefs.h.  */
17618218822Sdim_ACEOF
17619218822Sdimcat confdefs.h >>conftest.$ac_ext
17620218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17621218822Sdim/* end confdefs.h.  */
1762277298Sobrien
1762377298Sobrien#define _SYSCALL32
1762477298Sobrien#include <sys/procfs.h>
17625218822Sdimint
17626218822Sdimmain ()
17627218822Sdim{
1762877298Sobrienprstatus32_t avar; void* aref = (void*) &avar.pr_who
17629218822Sdim  ;
17630218822Sdim  return 0;
17631218822Sdim}
17632218822Sdim_ACEOF
17633218822Sdimrm -f conftest.$ac_objext
17634218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17635218822Sdim  (eval $ac_compile) 2>conftest.er1
17636218822Sdim  ac_status=$?
17637218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17638218822Sdim  rm -f conftest.er1
17639218822Sdim  cat conftest.err >&5
17640218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641218822Sdim  (exit $ac_status); } &&
17642218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17643218822Sdim			 || test ! -s conftest.err'
17644218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645218822Sdim  (eval $ac_try) 2>&5
17646218822Sdim  ac_status=$?
17647218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648218822Sdim  (exit $ac_status); }; } &&
17649218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17650218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651218822Sdim  (eval $ac_try) 2>&5
17652218822Sdim  ac_status=$?
17653218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654218822Sdim  (exit $ac_status); }; }; then
1765577298Sobrien  bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
1765677298Sobrienelse
17657218822Sdim  echo "$as_me: failed program was:" >&5
17658218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17659218822Sdim
17660218822Sdimbfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
17661218822Sdim
1766277298Sobrienfi
17663218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1766477298Sobrienfi
1766577298Sobrien
1766677298Sobrien if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
17667218822Sdim
17668218822Sdimcat >>confdefs.h <<\_ACEOF
1766977298Sobrien#define HAVE_PRSTATUS32_T_PR_WHO 1
17670218822Sdim_ACEOF
1767177298Sobrien
1767277298Sobrien fi
17673218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
17674218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
1767577298Sobrien
17676218822Sdim    echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17677218822Sdimecho $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17678218822Sdim if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17679218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1768060484Sobrienelse
17681218822Sdim  cat >conftest.$ac_ext <<_ACEOF
17682218822Sdim/* confdefs.h.  */
17683218822Sdim_ACEOF
17684218822Sdimcat confdefs.h >>conftest.$ac_ext
17685218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17686218822Sdim/* end confdefs.h.  */
1768777298Sobrien
1768877298Sobrien#define _SYSCALL32
1768960484Sobrien#include <sys/procfs.h>
17690218822Sdimint
17691218822Sdimmain ()
17692218822Sdim{
1769360484Sobrienpstatus_t avar
17694218822Sdim  ;
17695218822Sdim  return 0;
17696218822Sdim}
17697218822Sdim_ACEOF
17698218822Sdimrm -f conftest.$ac_objext
17699218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700218822Sdim  (eval $ac_compile) 2>conftest.er1
17701218822Sdim  ac_status=$?
17702218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17703218822Sdim  rm -f conftest.er1
17704218822Sdim  cat conftest.err >&5
17705218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706218822Sdim  (exit $ac_status); } &&
17707218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17708218822Sdim			 || test ! -s conftest.err'
17709218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710218822Sdim  (eval $ac_try) 2>&5
17711218822Sdim  ac_status=$?
17712218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713218822Sdim  (exit $ac_status); }; } &&
17714218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17715218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716218822Sdim  (eval $ac_try) 2>&5
17717218822Sdim  ac_status=$?
17718218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719218822Sdim  (exit $ac_status); }; }; then
1772060484Sobrien  bfd_cv_have_sys_procfs_type_pstatus_t=yes
1772160484Sobrienelse
17722218822Sdim  echo "$as_me: failed program was:" >&5
17723218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17724218822Sdim
17725218822Sdimbfd_cv_have_sys_procfs_type_pstatus_t=no
17726218822Sdim
1772760484Sobrienfi
17728218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1772960484Sobrienfi
1773060484Sobrien
1773160484Sobrien if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17732218822Sdim
17733218822Sdimcat >>confdefs.h <<\_ACEOF
1773460484Sobrien#define HAVE_PSTATUS_T 1
17735218822Sdim_ACEOF
1773660484Sobrien
1773760484Sobrien fi
17738218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17739218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
1774060484Sobrien
17741218822Sdim    echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
17742218822Sdimecho $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
17743218822Sdim if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
17744218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1774577298Sobrienelse
17746218822Sdim  cat >conftest.$ac_ext <<_ACEOF
17747218822Sdim/* confdefs.h.  */
17748218822Sdim_ACEOF
17749218822Sdimcat confdefs.h >>conftest.$ac_ext
17750218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17751218822Sdim/* end confdefs.h.  */
1775277298Sobrien
1775377298Sobrien#define _SYSCALL32
1775477298Sobrien#include <sys/procfs.h>
17755218822Sdimint
17756218822Sdimmain ()
17757218822Sdim{
1775877298Sobrienpxstatus_t avar
17759218822Sdim  ;
17760218822Sdim  return 0;
17761218822Sdim}
17762218822Sdim_ACEOF
17763218822Sdimrm -f conftest.$ac_objext
17764218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17765218822Sdim  (eval $ac_compile) 2>conftest.er1
17766218822Sdim  ac_status=$?
17767218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17768218822Sdim  rm -f conftest.er1
17769218822Sdim  cat conftest.err >&5
17770218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771218822Sdim  (exit $ac_status); } &&
17772218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17773218822Sdim			 || test ! -s conftest.err'
17774218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775218822Sdim  (eval $ac_try) 2>&5
17776218822Sdim  ac_status=$?
17777218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778218822Sdim  (exit $ac_status); }; } &&
17779218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17780218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781218822Sdim  (eval $ac_try) 2>&5
17782218822Sdim  ac_status=$?
17783218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784218822Sdim  (exit $ac_status); }; }; then
1778577298Sobrien  bfd_cv_have_sys_procfs_type_pxstatus_t=yes
1778677298Sobrienelse
17787218822Sdim  echo "$as_me: failed program was:" >&5
17788218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17789218822Sdim
17790218822Sdimbfd_cv_have_sys_procfs_type_pxstatus_t=no
17791218822Sdim
1779277298Sobrienfi
17793218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1779477298Sobrienfi
1779577298Sobrien
1779677298Sobrien if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
17797218822Sdim
17798218822Sdimcat >>confdefs.h <<\_ACEOF
1779977298Sobrien#define HAVE_PXSTATUS_T 1
17800218822Sdim_ACEOF
1780177298Sobrien
1780277298Sobrien fi
17803218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
17804218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
1780577298Sobrien
17806218822Sdim    echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
17807218822Sdimecho $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
17808218822Sdim if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
17809218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1781077298Sobrienelse
17811218822Sdim  cat >conftest.$ac_ext <<_ACEOF
17812218822Sdim/* confdefs.h.  */
17813218822Sdim_ACEOF
17814218822Sdimcat confdefs.h >>conftest.$ac_ext
17815218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17816218822Sdim/* end confdefs.h.  */
1781777298Sobrien
1781877298Sobrien#define _SYSCALL32
1781977298Sobrien#include <sys/procfs.h>
17820218822Sdimint
17821218822Sdimmain ()
17822218822Sdim{
1782377298Sobrienpstatus32_t avar
17824218822Sdim  ;
17825218822Sdim  return 0;
17826218822Sdim}
17827218822Sdim_ACEOF
17828218822Sdimrm -f conftest.$ac_objext
17829218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17830218822Sdim  (eval $ac_compile) 2>conftest.er1
17831218822Sdim  ac_status=$?
17832218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17833218822Sdim  rm -f conftest.er1
17834218822Sdim  cat conftest.err >&5
17835218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836218822Sdim  (exit $ac_status); } &&
17837218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17838218822Sdim			 || test ! -s conftest.err'
17839218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840218822Sdim  (eval $ac_try) 2>&5
17841218822Sdim  ac_status=$?
17842218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843218822Sdim  (exit $ac_status); }; } &&
17844218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17845218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846218822Sdim  (eval $ac_try) 2>&5
17847218822Sdim  ac_status=$?
17848218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849218822Sdim  (exit $ac_status); }; }; then
1785077298Sobrien  bfd_cv_have_sys_procfs_type_pstatus32_t=yes
1785177298Sobrienelse
17852218822Sdim  echo "$as_me: failed program was:" >&5
17853218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17854218822Sdim
17855218822Sdimbfd_cv_have_sys_procfs_type_pstatus32_t=no
17856218822Sdim
1785777298Sobrienfi
17858218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1785977298Sobrienfi
1786077298Sobrien
1786177298Sobrien if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
17862218822Sdim
17863218822Sdimcat >>confdefs.h <<\_ACEOF
1786477298Sobrien#define HAVE_PSTATUS32_T 1
17865218822Sdim_ACEOF
1786677298Sobrien
1786777298Sobrien fi
17868218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
17869218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
1787077298Sobrien
17871218822Sdim    echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
17872218822Sdimecho $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
17873218822Sdim if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
17874218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1787560484Sobrienelse
17876218822Sdim  cat >conftest.$ac_ext <<_ACEOF
17877218822Sdim/* confdefs.h.  */
17878218822Sdim_ACEOF
17879218822Sdimcat confdefs.h >>conftest.$ac_ext
17880218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17881218822Sdim/* end confdefs.h.  */
1788277298Sobrien
1788377298Sobrien#define _SYSCALL32
1788460484Sobrien#include <sys/procfs.h>
17885218822Sdimint
17886218822Sdimmain ()
17887218822Sdim{
1788860484Sobrienprpsinfo_t avar
17889218822Sdim  ;
17890218822Sdim  return 0;
17891218822Sdim}
17892218822Sdim_ACEOF
17893218822Sdimrm -f conftest.$ac_objext
17894218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17895218822Sdim  (eval $ac_compile) 2>conftest.er1
17896218822Sdim  ac_status=$?
17897218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17898218822Sdim  rm -f conftest.er1
17899218822Sdim  cat conftest.err >&5
17900218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901218822Sdim  (exit $ac_status); } &&
17902218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17903218822Sdim			 || test ! -s conftest.err'
17904218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905218822Sdim  (eval $ac_try) 2>&5
17906218822Sdim  ac_status=$?
17907218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908218822Sdim  (exit $ac_status); }; } &&
17909218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17910218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911218822Sdim  (eval $ac_try) 2>&5
17912218822Sdim  ac_status=$?
17913218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914218822Sdim  (exit $ac_status); }; }; then
1791560484Sobrien  bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
1791660484Sobrienelse
17917218822Sdim  echo "$as_me: failed program was:" >&5
17918218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17919218822Sdim
17920218822Sdimbfd_cv_have_sys_procfs_type_prpsinfo_t=no
17921218822Sdim
1792260484Sobrienfi
17923218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1792460484Sobrienfi
1792560484Sobrien
1792660484Sobrien if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
17927218822Sdim
17928218822Sdimcat >>confdefs.h <<\_ACEOF
1792960484Sobrien#define HAVE_PRPSINFO_T 1
17930218822Sdim_ACEOF
1793160484Sobrien
1793260484Sobrien fi
17933218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
17934218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
1793560484Sobrien
17936218822Sdim    echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
17937218822Sdimecho $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
17938218822Sdim if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
17939218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1794077298Sobrienelse
17941218822Sdim  cat >conftest.$ac_ext <<_ACEOF
17942218822Sdim/* confdefs.h.  */
17943218822Sdim_ACEOF
17944218822Sdimcat confdefs.h >>conftest.$ac_ext
17945218822Sdimcat >>conftest.$ac_ext <<_ACEOF
17946218822Sdim/* end confdefs.h.  */
1794777298Sobrien
1794877298Sobrien#define _SYSCALL32
1794977298Sobrien#include <sys/procfs.h>
17950218822Sdimint
17951218822Sdimmain ()
17952218822Sdim{
1795377298Sobrienprpsinfo32_t avar
17954218822Sdim  ;
17955218822Sdim  return 0;
17956218822Sdim}
17957218822Sdim_ACEOF
17958218822Sdimrm -f conftest.$ac_objext
17959218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17960218822Sdim  (eval $ac_compile) 2>conftest.er1
17961218822Sdim  ac_status=$?
17962218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
17963218822Sdim  rm -f conftest.er1
17964218822Sdim  cat conftest.err >&5
17965218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966218822Sdim  (exit $ac_status); } &&
17967218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
17968218822Sdim			 || test ! -s conftest.err'
17969218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970218822Sdim  (eval $ac_try) 2>&5
17971218822Sdim  ac_status=$?
17972218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973218822Sdim  (exit $ac_status); }; } &&
17974218822Sdim	 { ac_try='test -s conftest.$ac_objext'
17975218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976218822Sdim  (eval $ac_try) 2>&5
17977218822Sdim  ac_status=$?
17978218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979218822Sdim  (exit $ac_status); }; }; then
1798077298Sobrien  bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
1798177298Sobrienelse
17982218822Sdim  echo "$as_me: failed program was:" >&5
17983218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
17984218822Sdim
17985218822Sdimbfd_cv_have_sys_procfs_type_prpsinfo32_t=no
17986218822Sdim
1798777298Sobrienfi
17988218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1798977298Sobrienfi
1799077298Sobrien
1799177298Sobrien if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
17992218822Sdim
17993218822Sdimcat >>confdefs.h <<\_ACEOF
1799477298Sobrien#define HAVE_PRPSINFO32_T 1
17995218822Sdim_ACEOF
1799677298Sobrien
1799777298Sobrien fi
17998218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
17999218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
1800077298Sobrien
18001218822Sdim    echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18002218822Sdimecho $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18003218822Sdim if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18004218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1800560484Sobrienelse
18006218822Sdim  cat >conftest.$ac_ext <<_ACEOF
18007218822Sdim/* confdefs.h.  */
18008218822Sdim_ACEOF
18009218822Sdimcat confdefs.h >>conftest.$ac_ext
18010218822Sdimcat >>conftest.$ac_ext <<_ACEOF
18011218822Sdim/* end confdefs.h.  */
1801277298Sobrien
1801377298Sobrien#define _SYSCALL32
1801460484Sobrien#include <sys/procfs.h>
18015218822Sdimint
18016218822Sdimmain ()
18017218822Sdim{
1801860484Sobrienpsinfo_t avar
18019218822Sdim  ;
18020218822Sdim  return 0;
18021218822Sdim}
18022218822Sdim_ACEOF
18023218822Sdimrm -f conftest.$ac_objext
18024218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18025218822Sdim  (eval $ac_compile) 2>conftest.er1
18026218822Sdim  ac_status=$?
18027218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
18028218822Sdim  rm -f conftest.er1
18029218822Sdim  cat conftest.err >&5
18030218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031218822Sdim  (exit $ac_status); } &&
18032218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
18033218822Sdim			 || test ! -s conftest.err'
18034218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035218822Sdim  (eval $ac_try) 2>&5
18036218822Sdim  ac_status=$?
18037218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038218822Sdim  (exit $ac_status); }; } &&
18039218822Sdim	 { ac_try='test -s conftest.$ac_objext'
18040218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041218822Sdim  (eval $ac_try) 2>&5
18042218822Sdim  ac_status=$?
18043218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044218822Sdim  (exit $ac_status); }; }; then
1804560484Sobrien  bfd_cv_have_sys_procfs_type_psinfo_t=yes
1804660484Sobrienelse
18047218822Sdim  echo "$as_me: failed program was:" >&5
18048218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
18049218822Sdim
18050218822Sdimbfd_cv_have_sys_procfs_type_psinfo_t=no
18051218822Sdim
1805260484Sobrienfi
18053218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1805460484Sobrienfi
1805560484Sobrien
1805660484Sobrien if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
18057218822Sdim
18058218822Sdimcat >>confdefs.h <<\_ACEOF
1805960484Sobrien#define HAVE_PSINFO_T 1
18060218822Sdim_ACEOF
1806160484Sobrien
1806260484Sobrien fi
18063218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18064218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
1806560484Sobrien
18066218822Sdim    echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18067218822Sdimecho $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18068218822Sdim if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18069218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1807077298Sobrienelse
18071218822Sdim  cat >conftest.$ac_ext <<_ACEOF
18072218822Sdim/* confdefs.h.  */
18073218822Sdim_ACEOF
18074218822Sdimcat confdefs.h >>conftest.$ac_ext
18075218822Sdimcat >>conftest.$ac_ext <<_ACEOF
18076218822Sdim/* end confdefs.h.  */
1807777298Sobrien
1807877298Sobrien#define _SYSCALL32
1807977298Sobrien#include <sys/procfs.h>
18080218822Sdimint
18081218822Sdimmain ()
18082218822Sdim{
1808377298Sobrienpsinfo32_t avar
18084218822Sdim  ;
18085218822Sdim  return 0;
18086218822Sdim}
18087218822Sdim_ACEOF
18088218822Sdimrm -f conftest.$ac_objext
18089218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18090218822Sdim  (eval $ac_compile) 2>conftest.er1
18091218822Sdim  ac_status=$?
18092218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
18093218822Sdim  rm -f conftest.er1
18094218822Sdim  cat conftest.err >&5
18095218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096218822Sdim  (exit $ac_status); } &&
18097218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
18098218822Sdim			 || test ! -s conftest.err'
18099218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100218822Sdim  (eval $ac_try) 2>&5
18101218822Sdim  ac_status=$?
18102218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103218822Sdim  (exit $ac_status); }; } &&
18104218822Sdim	 { ac_try='test -s conftest.$ac_objext'
18105218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106218822Sdim  (eval $ac_try) 2>&5
18107218822Sdim  ac_status=$?
18108218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109218822Sdim  (exit $ac_status); }; }; then
1811077298Sobrien  bfd_cv_have_sys_procfs_type_psinfo32_t=yes
1811177298Sobrienelse
18112218822Sdim  echo "$as_me: failed program was:" >&5
18113218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
18114218822Sdim
18115218822Sdimbfd_cv_have_sys_procfs_type_psinfo32_t=no
18116218822Sdim
1811777298Sobrienfi
18118218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1811977298Sobrienfi
1812077298Sobrien
1812177298Sobrien if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
18122218822Sdim
18123218822Sdimcat >>confdefs.h <<\_ACEOF
1812477298Sobrien#define HAVE_PSINFO32_T 1
18125218822Sdim_ACEOF
1812677298Sobrien
1812777298Sobrien fi
18128218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18129218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
1813077298Sobrien
18131218822Sdim    echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18132218822Sdimecho $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18133218822Sdim if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18134218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1813560484Sobrienelse
18136218822Sdim  cat >conftest.$ac_ext <<_ACEOF
18137218822Sdim/* confdefs.h.  */
18138218822Sdim_ACEOF
18139218822Sdimcat confdefs.h >>conftest.$ac_ext
18140218822Sdimcat >>conftest.$ac_ext <<_ACEOF
18141218822Sdim/* end confdefs.h.  */
1814277298Sobrien
1814377298Sobrien#define _SYSCALL32
1814460484Sobrien#include <sys/procfs.h>
18145218822Sdimint
18146218822Sdimmain ()
18147218822Sdim{
1814860484Sobrienlwpstatus_t avar
18149218822Sdim  ;
18150218822Sdim  return 0;
18151218822Sdim}
18152218822Sdim_ACEOF
18153218822Sdimrm -f conftest.$ac_objext
18154218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155218822Sdim  (eval $ac_compile) 2>conftest.er1
18156218822Sdim  ac_status=$?
18157218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
18158218822Sdim  rm -f conftest.er1
18159218822Sdim  cat conftest.err >&5
18160218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161218822Sdim  (exit $ac_status); } &&
18162218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
18163218822Sdim			 || test ! -s conftest.err'
18164218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165218822Sdim  (eval $ac_try) 2>&5
18166218822Sdim  ac_status=$?
18167218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168218822Sdim  (exit $ac_status); }; } &&
18169218822Sdim	 { ac_try='test -s conftest.$ac_objext'
18170218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171218822Sdim  (eval $ac_try) 2>&5
18172218822Sdim  ac_status=$?
18173218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174218822Sdim  (exit $ac_status); }; }; then
1817560484Sobrien  bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
1817660484Sobrienelse
18177218822Sdim  echo "$as_me: failed program was:" >&5
18178218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
18179218822Sdim
18180218822Sdimbfd_cv_have_sys_procfs_type_lwpstatus_t=no
18181218822Sdim
1818260484Sobrienfi
18183218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1818460484Sobrienfi
1818560484Sobrien
1818660484Sobrien if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
18187218822Sdim
18188218822Sdimcat >>confdefs.h <<\_ACEOF
1818960484Sobrien#define HAVE_LWPSTATUS_T 1
18190218822Sdim_ACEOF
1819160484Sobrien
1819260484Sobrien fi
18193218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18194218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
1819560484Sobrien
18196218822Sdim    echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18197218822Sdimecho $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18198218822Sdim if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18199218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1820077298Sobrienelse
18201218822Sdim  cat >conftest.$ac_ext <<_ACEOF
18202218822Sdim/* confdefs.h.  */
18203218822Sdim_ACEOF
18204218822Sdimcat confdefs.h >>conftest.$ac_ext
18205218822Sdimcat >>conftest.$ac_ext <<_ACEOF
18206218822Sdim/* end confdefs.h.  */
1820777298Sobrien
1820877298Sobrien#define _SYSCALL32
1820977298Sobrien#include <sys/procfs.h>
18210218822Sdimint
18211218822Sdimmain ()
18212218822Sdim{
1821377298Sobrienlwpxstatus_t avar
18214218822Sdim  ;
18215218822Sdim  return 0;
18216218822Sdim}
18217218822Sdim_ACEOF
18218218822Sdimrm -f conftest.$ac_objext
18219218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18220218822Sdim  (eval $ac_compile) 2>conftest.er1
18221218822Sdim  ac_status=$?
18222218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
18223218822Sdim  rm -f conftest.er1
18224218822Sdim  cat conftest.err >&5
18225218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226218822Sdim  (exit $ac_status); } &&
18227218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
18228218822Sdim			 || test ! -s conftest.err'
18229218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230218822Sdim  (eval $ac_try) 2>&5
18231218822Sdim  ac_status=$?
18232218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233218822Sdim  (exit $ac_status); }; } &&
18234218822Sdim	 { ac_try='test -s conftest.$ac_objext'
18235218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236218822Sdim  (eval $ac_try) 2>&5
18237218822Sdim  ac_status=$?
18238218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239218822Sdim  (exit $ac_status); }; }; then
1824077298Sobrien  bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
1824177298Sobrienelse
18242218822Sdim  echo "$as_me: failed program was:" >&5
18243218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
18244218822Sdim
18245218822Sdimbfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18246218822Sdim
1824777298Sobrienfi
18248218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1824977298Sobrienfi
1825077298Sobrien
1825177298Sobrien if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
18252218822Sdim
18253218822Sdimcat >>confdefs.h <<\_ACEOF
1825477298Sobrien#define HAVE_LWPXSTATUS_T 1
18255218822Sdim_ACEOF
1825677298Sobrien
1825777298Sobrien fi
18258218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18259218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
1826077298Sobrien
18261218822Sdim    echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18262218822Sdimecho $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18263218822Sdim if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18264218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1826560484Sobrienelse
18266218822Sdim  cat >conftest.$ac_ext <<_ACEOF
18267218822Sdim/* confdefs.h.  */
18268218822Sdim_ACEOF
18269218822Sdimcat confdefs.h >>conftest.$ac_ext
18270218822Sdimcat >>conftest.$ac_ext <<_ACEOF
18271218822Sdim/* end confdefs.h.  */
1827277298Sobrien
1827377298Sobrien#define _SYSCALL32
1827460484Sobrien#include <sys/procfs.h>
18275218822Sdimint
18276218822Sdimmain ()
18277218822Sdim{
1827860484Sobrienlwpstatus_t avar; void* aref = (void*) &avar.pr_context
18279218822Sdim  ;
18280218822Sdim  return 0;
18281218822Sdim}
18282218822Sdim_ACEOF
18283218822Sdimrm -f conftest.$ac_objext
18284218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18285218822Sdim  (eval $ac_compile) 2>conftest.er1
18286218822Sdim  ac_status=$?
18287218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
18288218822Sdim  rm -f conftest.er1
18289218822Sdim  cat conftest.err >&5
18290218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291218822Sdim  (exit $ac_status); } &&
18292218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
18293218822Sdim			 || test ! -s conftest.err'
18294218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295218822Sdim  (eval $ac_try) 2>&5
18296218822Sdim  ac_status=$?
18297218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298218822Sdim  (exit $ac_status); }; } &&
18299218822Sdim	 { ac_try='test -s conftest.$ac_objext'
18300218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301218822Sdim  (eval $ac_try) 2>&5
18302218822Sdim  ac_status=$?
18303218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304218822Sdim  (exit $ac_status); }; }; then
1830560484Sobrien  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
1830660484Sobrienelse
18307218822Sdim  echo "$as_me: failed program was:" >&5
18308218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
18309218822Sdim
18310218822Sdimbfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18311218822Sdim
1831260484Sobrienfi
18313218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1831460484Sobrienfi
1831560484Sobrien
1831660484Sobrien if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
18317218822Sdim
18318218822Sdimcat >>confdefs.h <<\_ACEOF
1831960484Sobrien#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
18320218822Sdim_ACEOF
1832160484Sobrien
1832260484Sobrien fi
18323218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18324218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
1832560484Sobrien
18326218822Sdim    echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18327218822Sdimecho $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18328218822Sdim if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18329218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1833060484Sobrienelse
18331218822Sdim  cat >conftest.$ac_ext <<_ACEOF
18332218822Sdim/* confdefs.h.  */
18333218822Sdim_ACEOF
18334218822Sdimcat confdefs.h >>conftest.$ac_ext
18335218822Sdimcat >>conftest.$ac_ext <<_ACEOF
18336218822Sdim/* end confdefs.h.  */
1833777298Sobrien
1833877298Sobrien#define _SYSCALL32
1833960484Sobrien#include <sys/procfs.h>
18340218822Sdimint
18341218822Sdimmain ()
18342218822Sdim{
1834360484Sobrienlwpstatus_t avar; void* aref = (void*) &avar.pr_reg
18344218822Sdim  ;
18345218822Sdim  return 0;
18346218822Sdim}
18347218822Sdim_ACEOF
18348218822Sdimrm -f conftest.$ac_objext
18349218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18350218822Sdim  (eval $ac_compile) 2>conftest.er1
18351218822Sdim  ac_status=$?
18352218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
18353218822Sdim  rm -f conftest.er1
18354218822Sdim  cat conftest.err >&5
18355218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356218822Sdim  (exit $ac_status); } &&
18357218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
18358218822Sdim			 || test ! -s conftest.err'
18359218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360218822Sdim  (eval $ac_try) 2>&5
18361218822Sdim  ac_status=$?
18362218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363218822Sdim  (exit $ac_status); }; } &&
18364218822Sdim	 { ac_try='test -s conftest.$ac_objext'
18365218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366218822Sdim  (eval $ac_try) 2>&5
18367218822Sdim  ac_status=$?
18368218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369218822Sdim  (exit $ac_status); }; }; then
1837060484Sobrien  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
1837160484Sobrienelse
18372218822Sdim  echo "$as_me: failed program was:" >&5
18373218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
18374218822Sdim
18375218822Sdimbfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18376218822Sdim
1837760484Sobrienfi
18378218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1837960484Sobrienfi
1838060484Sobrien
1838160484Sobrien if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
18382218822Sdim
18383218822Sdimcat >>confdefs.h <<\_ACEOF
1838460484Sobrien#define HAVE_LWPSTATUS_T_PR_REG 1
18385218822Sdim_ACEOF
1838660484Sobrien
1838760484Sobrien fi
18388218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18389218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
1839060484Sobrien
18391218822Sdim    echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18392218822Sdimecho $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18393218822Sdim if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18394218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1839560484Sobrienelse
18396218822Sdim  cat >conftest.$ac_ext <<_ACEOF
18397218822Sdim/* confdefs.h.  */
18398218822Sdim_ACEOF
18399218822Sdimcat confdefs.h >>conftest.$ac_ext
18400218822Sdimcat >>conftest.$ac_ext <<_ACEOF
18401218822Sdim/* end confdefs.h.  */
1840277298Sobrien
1840377298Sobrien#define _SYSCALL32
1840460484Sobrien#include <sys/procfs.h>
18405218822Sdimint
18406218822Sdimmain ()
18407218822Sdim{
1840860484Sobrienwin32_pstatus_t avar
18409218822Sdim  ;
18410218822Sdim  return 0;
18411218822Sdim}
18412218822Sdim_ACEOF
18413218822Sdimrm -f conftest.$ac_objext
18414218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18415218822Sdim  (eval $ac_compile) 2>conftest.er1
18416218822Sdim  ac_status=$?
18417218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
18418218822Sdim  rm -f conftest.er1
18419218822Sdim  cat conftest.err >&5
18420218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421218822Sdim  (exit $ac_status); } &&
18422218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
18423218822Sdim			 || test ! -s conftest.err'
18424218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425218822Sdim  (eval $ac_try) 2>&5
18426218822Sdim  ac_status=$?
18427218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428218822Sdim  (exit $ac_status); }; } &&
18429218822Sdim	 { ac_try='test -s conftest.$ac_objext'
18430218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431218822Sdim  (eval $ac_try) 2>&5
18432218822Sdim  ac_status=$?
18433218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434218822Sdim  (exit $ac_status); }; }; then
1843560484Sobrien  bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
1843660484Sobrienelse
18437218822Sdim  echo "$as_me: failed program was:" >&5
18438218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
18439218822Sdim
18440218822Sdimbfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18441218822Sdim
1844260484Sobrienfi
18443218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1844460484Sobrienfi
1844560484Sobrien
1844660484Sobrien if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
18447218822Sdim
18448218822Sdimcat >>confdefs.h <<\_ACEOF
1844960484Sobrien#define HAVE_WIN32_PSTATUS_T 1
18450218822Sdim_ACEOF
1845160484Sobrien
1845260484Sobrien fi
18453218822Sdim echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18454218822Sdimecho "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
1845560484Sobrien
1845660484Sobrien  fi
1845760484Sobrienfi
1845860484Sobrien
1845960484Sobrien
1846077298Sobrienif test -n "$TRAD_HEADER"; then
18461218822Sdim
18462218822Sdimcat >>confdefs.h <<_ACEOF
1846360484Sobrien#define TRAD_HEADER $TRAD_HEADER
18464218822Sdim_ACEOF
1846560484Sobrien
1846677298Sobrienfi
1846760484Sobrien
1846860484Sobrien# Horrible hacks to build DLLs on Windows.
1846960484SobrienWIN32LDFLAGS=
1847060484SobrienWIN32LIBADD=
1847160484Sobriencase "${host}" in
1847260484Sobrien*-*-cygwin*)
1847360484Sobrien  if test "$enable_shared" = "yes"; then
1847460484Sobrien    WIN32LDFLAGS="-no-undefined"
1847560484Sobrien    WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
1847660484Sobrien  fi
1847760484Sobrien  ;;
1847889857Sobrien*-*-linux*)
1847989857Sobrien  # We borrow WIN32LIBADD so that the shared libbfd won't depend on
1848089857Sobrien  # libiberty.a.
1848189857Sobrien  case "${host}" in
1848289857Sobrien  mips*-*-linux*)
1848389857Sobrien    # Linux/MIPS uses PIC by default.
1848489857Sobrien    if test "$enable_shared" = "yes"; then
1848589857Sobrien      WIN32LIBADD="-L../libiberty -liberty"
1848689857Sobrien    fi
1848789857Sobrien    ;;
1848889857Sobrien  *)
18489130561Sobrien    x=`sed -n -e 's/^[ 	]*PICFLAG[ 	]*=[ 	]*//p' < ../libiberty/Makefile | sed -n '$p'`
1849092828Sobrien    if test -n "$x"; then
1849189857Sobrien      WIN32LIBADD="-L../libiberty/pic -liberty"
1849289857Sobrien    fi
1849389857Sobrien  ;;
1849489857Sobrien  esac
1849589857Sobrien  ;;
1849660484Sobrienesac
1849760484Sobrien
1849860484Sobrien
1849960484Sobrien
1850033965Sjdp# target stuff:
1850133965Sjdp
1850233965Sjdp# Canonicalize the secondary target names.
1850333965Sjdpif test -n "$enable_targets" ; then
1850433965Sjdp    for targ in `echo $enable_targets | sed 's/,/ /g'`
1850533965Sjdp    do
1850660484Sobrien	result=`$ac_config_sub $targ 2>/dev/null`
1850733965Sjdp	if test -n "$result" ; then
1850833965Sjdp	    canon_targets="$canon_targets $result"
1850933965Sjdp	else
1851033965Sjdp	    # Allow targets that config.sub doesn't recognize, like "all".
1851133965Sjdp	    canon_targets="$canon_targets $targ"
1851233965Sjdp	fi
1851333965Sjdp    done
1851433965Sjdpfi
1851533965Sjdp
1851633965Sjdpall_targets=false
1851733965Sjdpdefvec=
1851833965Sjdpselvecs=
18519130561Sobrienassocvecs=
1852033965Sjdpselarchs=
1852133965SjdpTDEFINES=
1852233965Sjdpfor targ in $target $canon_targets
1852333965Sjdpdo
1852433965Sjdp    if test "x$targ" = "xall"; then
1852533965Sjdp        all_targets=true
18526130561Sobrien	assocvecs="$assocvecs $targ_defvec $targ_selvecs"
1852733965Sjdp    else
1852833965Sjdp	. $srcdir/config.bfd
1852933965Sjdp	if test "x$targ" = "x$target"; then
1853033965Sjdp	    defvec=$targ_defvec
1853133965Sjdp	fi
1853233965Sjdp	selvecs="$selvecs $targ_defvec $targ_selvecs"
1853333965Sjdp	selarchs="$selarchs $targ_archs"
1853433965Sjdp	TDEFINES="$TDEFINES $targ_cflags"
1853533965Sjdp    fi
1853633965Sjdpdone
1853733965Sjdp
1853833965Sjdp
1853933965Sjdp# This processing still needs to be done if we're to decide properly whether
1854033965Sjdp# 64-bit support needs to be compiled in.  Currently, it will be included if
1854133965Sjdp# the default or any other explicitly requested target requires it; it
1854233965Sjdp# will not be included on a 32-bit host if no 64-bit target is requested, and
1854360484Sobrien# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
1854433965Sjdp# used.
1854533965Sjdp
1854633965Sjdp# uniq the default and selected vectors in all the configured targets.
1854733965Sjdpf=""
1854833965Sjdpfor i in $selvecs ; do
1854933965Sjdp    case " $f " in
1855033965Sjdp    *" $i "*) ;;
1855133965Sjdp    *) f="$f $i" ;;
1855233965Sjdp    esac
1855333965Sjdpdone
1855433965Sjdpselvecs="$f"
1855533965Sjdp
1855638889Sjdp
18557130561Sobrien# uniq the associated vectors in all the configured targets.
18558130561Sobrienf=""
18559130561Sobrienfor i in $assocvecs ; do
18560130561Sobrien    case " $f " in
18561130561Sobrien    *" $i "*) ;;
18562130561Sobrien    *) f="$f $i" ;;
18563130561Sobrien    esac
18564130561Sobriendone
18565130561Sobrienassocvecs="$f"
18566130561Sobrien
18567130561Sobrien
1856833965Sjdp# uniq the architectures in all the configured targets.
1856933965Sjdpf=""
1857033965Sjdpfor i in $selarchs ; do
1857133965Sjdp    case " $f " in
1857233965Sjdp    *" $i "*) ;;
1857333965Sjdp    *) f="$f $i" ;;
1857433965Sjdp    esac
1857533965Sjdpdone
1857633965Sjdpselarchs="$f"
1857733965Sjdp
1857833965Sjdp# Target backend .o files.
1857933965Sjdptb=
1858033965Sjdp
18581218822Sdimelf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
1858233965Sjdp
1858333965Sjdpfor vec in $selvecs
1858433965Sjdpdo
1858589857Sobrien    target_size=32
1858633965Sjdp    case "$vec" in
1858733965Sjdp    # This list is alphabetized to make it easy to compare
1858889857Sobrien    # with the two vector lists in targets.c.  For the same reason,
1858989857Sobrien    # use one entry per line, even though this leads to long lines.
1859038889Sjdp    a_out_adobe_vec)		tb="$tb aout-adobe.lo aout32.lo" ;;
18591104834Sobrien    aix5coff64_vec)		tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
1859238889Sjdp    aout0_big_vec)		tb="$tb aout0.lo aout32.lo" ;;
1859338889Sjdp    aout_arm_big_vec)		tb="$tb aout-arm.lo aout32.lo" ;;
1859438889Sjdp    aout_arm_little_vec)	tb="$tb aout-arm.lo aout32.lo" ;;
1859538889Sjdp    apollocoff_vec)		tb="$tb coff-apollo.lo" ;;
1859689857Sobrien    arm_epoc_pe_big_vec)	tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
1859789857Sobrien    arm_epoc_pe_little_vec)	tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
1859889857Sobrien    arm_epoc_pei_big_vec)	tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
1859989857Sobrien    arm_epoc_pei_little_vec)	tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
18600218822Sdim    arm_wince_pe_big_vec)	tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18601218822Sdim    arm_wince_pe_little_vec)	tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18602218822Sdim    arm_wince_pei_big_vec)	tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
18603218822Sdim    arm_wince_pei_little_vec)	tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
1860489857Sobrien    armcoff_big_vec)		tb="$tb coff-arm.lo cofflink.lo " ;;
1860589857Sobrien    armcoff_little_vec)		tb="$tb coff-arm.lo cofflink.lo " ;;
1860689857Sobrien    armnetbsd_vec)		tb="$tb armnetbsd.lo aout32.lo" ;;
1860789857Sobrien    armpe_big_vec)		tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
1860889857Sobrien    armpe_little_vec)		tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
1860989857Sobrien    armpei_big_vec)		tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
1861089857Sobrien    armpei_little_vec)		tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
1861138889Sjdp    b_out_vec_big_host)		tb="$tb bout.lo aout32.lo" ;;
1861238889Sjdp    b_out_vec_little_host)	tb="$tb bout.lo aout32.lo" ;;
1861377298Sobrien    bfd_efi_app_ia32_vec)	tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
18614218822Sdim    bfd_efi_app_x86_64_vec)	tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
1861589857Sobrien    bfd_efi_app_ia64_vec)	tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
18616130561Sobrien    bfd_elf32_am33lin_vec)	tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
1861760484Sobrien    bfd_elf32_avr_vec)		tb="$tb elf32-avr.lo elf32.lo $elf" ;;
18618218822Sdim    bfd_elf32_bfin_vec)		tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
18619218822Sdim    bfd_elf32_bfinfdpic_vec)	tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
1862089857Sobrien    bfd_elf32_big_generic_vec) 	tb="$tb elf32-gen.lo elf32.lo $elf" ;;
1862138889Sjdp    bfd_elf32_bigarc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
18622218822Sdim    bfd_elf32_bigarm_vec)	tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18623218822Sdim    bfd_elf32_bigarm_symbian_vec)
18624218822Sdim                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18625218822Sdim    bfd_elf32_bigarm_vxworks_vec)
18626218822Sdim                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18627218822Sdim    bfd_elf32_bigmips_vec) 	tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18628218822Sdim    bfd_elf32_bigmips_vxworks_vec)
18629218822Sdim			 	tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18630218822Sdim    bfd_elf32_cr16_vec)		tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
18631218822Sdim    bfd_elf32_cr16c_vec)	tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
1863277298Sobrien    bfd_elf32_cris_vec)		tb="$tb elf32-cris.lo elf32.lo $elf" ;;
18633218822Sdim    bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
1863438889Sjdp    bfd_elf32_d10v_vec)		tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
1863560484Sobrien    bfd_elf32_d30v_vec)		tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
18636104834Sobrien    bfd_elf32_dlx_big_vec)	tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
1863760484Sobrien    bfd_elf32_fr30_vec)		tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
18638104834Sobrien    bfd_elf32_frv_vec)		tb="$tb elf32-frv.lo elf32.lo $elf" ;;
18639130561Sobrien    bfd_elf32_frvfdpic_vec)	tb="$tb elf32-frv.lo elf32.lo $elf" ;;
1864089857Sobrien    bfd_elf32_h8300_vec)	tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
1864189857Sobrien    bfd_elf32_hppa_linux_vec)	tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
18642218822Sdim    bfd_elf32_hppa_nbsd_vec)	tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
1864389857Sobrien    bfd_elf32_hppa_vec)		tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
1864460484Sobrien    bfd_elf32_i370_vec)		tb="$tb elf32-i370.lo elf32.lo $elf" ;;
18645218822Sdim    bfd_elf32_i386_freebsd_vec)	tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18646218822Sdim    bfd_elf32_i386_vxworks_vec)	tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18647218822Sdim    bfd_elf32_i386_vec)		tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
1864889857Sobrien    bfd_elf32_i860_little_vec)	tb="$tb elf32-i860.lo elf32.lo $elf" ;;
1864938889Sjdp    bfd_elf32_i860_vec)		tb="$tb elf32-i860.lo elf32.lo $elf" ;;
1865060484Sobrien    bfd_elf32_i960_vec)		tb="$tb elf32-i960.lo elf32.lo $elf" ;;
1865189857Sobrien    bfd_elf32_ia64_big_vec)	tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
1865289857Sobrien    bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
18653130561Sobrien    bfd_elf32_ip2k_vec)		tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
18654130561Sobrien    bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
1865538889Sjdp    bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
1865689857Sobrien    bfd_elf32_littlearc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
18657218822Sdim    bfd_elf32_littlearm_symbian_vec)
18658218822Sdim                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18659218822Sdim    bfd_elf32_littlearm_vxworks_vec)
18660218822Sdim                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18661218822Sdim    bfd_elf32_littlearm_vec)	tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18662218822Sdim    bfd_elf32_littlemips_vec) 	tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18663218822Sdim    bfd_elf32_littlemips_vxworks_vec)
18664218822Sdim			 	tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18665218822Sdim    bfd_elf32_m32c_vec)         tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
1866638889Sjdp    bfd_elf32_m32r_vec)		tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18667130561Sobrien    bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18668130561Sobrien    bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18669130561Sobrien    bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18670130561Sobrien    bfd_elf32_m68hc11_vec)	tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
18671130561Sobrien    bfd_elf32_m68hc12_vec)	tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
1867238889Sjdp    bfd_elf32_m68k_vec)		tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
1867338889Sjdp    bfd_elf32_m88k_vec)		tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
1867460484Sobrien    bfd_elf32_mcore_big_vec)	tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
1867560484Sobrien    bfd_elf32_mcore_little_vec)	tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
18676218822Sdim    bfd_elf32_mep_vec)		tb="$tb elf32-mep.lo elf32.lo $elf" ;;
18677218822Sdim    bfd_elf32_mep_little_vec)	tb="$tb elf32-mep.lo elf32.lo $elf" ;;
1867838889Sjdp    bfd_elf32_mn10200_vec)	tb="$tb elf-m10200.lo elf32.lo $elf" ;;
1867938889Sjdp    bfd_elf32_mn10300_vec)	tb="$tb elf-m10300.lo elf32.lo $elf" ;;
18680218822Sdim    bfd_elf32_mt_vec)           tb="$tb elf32-mt.lo elf32.lo $elf" ;;
18681130561Sobrien    bfd_elf32_msp430_vec)	tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
18682218822Sdim    bfd_elf32_nbigmips_vec)	tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18683218822Sdim    bfd_elf32_nlittlemips_vec)	tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18684218822Sdim    bfd_elf32_ntradbigmips_vec)	tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18685218822Sdim    bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
1868689857Sobrien    bfd_elf32_openrisc_vec)	tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
1868791041Sobrien    bfd_elf32_or32_big_vec)	tb="$tb elf32-or32.lo elf32.lo $elf" ;;
1868860484Sobrien    bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
1868960484Sobrien    bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
18690218822Sdim    bfd_elf32_powerpc_vec)	tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18691218822Sdim    bfd_elf32_powerpcle_vec)	tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18692218822Sdim    bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
1869389857Sobrien    bfd_elf32_s390_vec)		tb="$tb elf32-s390.lo elf32.lo $elf" ;;
18694218822Sdim    bfd_elf32_bigscore_vec)     tb="$tb elf32-score.lo elf32.lo $elf" ;;
18695218822Sdim    bfd_elf32_littlescore_vec)  tb="$tb elf32-score.lo elf32.lo $elf" ;;
18696104834Sobrien    # FIXME: We include cofflink.lo not because it's needed for
18697104834Sobrien    # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
18698104834Sobrien    # which needs it but does not list it.  Should be fixed in right place.
18699218822Sdim    bfd_elf32_sh64_vec)		tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18700218822Sdim    bfd_elf32_sh64l_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18701218822Sdim    bfd_elf32_sh64lin_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18702218822Sdim    bfd_elf32_sh64blin_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18703218822Sdim    bfd_elf32_sh64lnbsd_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
18704218822Sdim    bfd_elf32_sh64nbsd_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
18705218822Sdim    bfd_elf32_sh_vec)		tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18706218822Sdim    bfd_elf32_shblin_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18707218822Sdim    bfd_elf32_shl_vec)		tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18708218822Sdim    bfd_elf32_shl_symbian_vec)	tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18709218822Sdim    bfd_elf32_shlin_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18710218822Sdim    bfd_elf32_shlnbsd_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18711218822Sdim    bfd_elf32_shlvxworks_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18712218822Sdim    bfd_elf32_shnbsd_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18713218822Sdim    bfd_elf32_shvxworks_vec)	tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18714218822Sdim    bfd_elf32_sparc_vec)	tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
18715218822Sdim    bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
18716218822Sdim    bfd_elf32_spu_vec)		tb="$tb elf32-spu.lo elf32.lo $elf" ;;
18717218822Sdim    bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18718218822Sdim    bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
1871989857Sobrien    bfd_elf32_us_cris_vec)	tb="$tb elf32-cris.lo elf32.lo $elf" ;;
1872038889Sjdp    bfd_elf32_v850_vec)		tb="$tb elf32-v850.lo elf32.lo $elf" ;;
18721104834Sobrien    bfd_elf32_vax_vec)		tb="$tb elf32-vax.lo elf32.lo $elf" ;;
1872289857Sobrien    bfd_elf32_xstormy16_vec)	tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
18723218822Sdim    bfd_elf32_xc16x_vec)		tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
18724130561Sobrien    bfd_elf32_xtensa_le_vec)	tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
18725130561Sobrien    bfd_elf32_xtensa_be_vec)	tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
18726130561Sobrien    bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
1872789857Sobrien    bfd_elf64_alpha_vec)	tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
1872889857Sobrien    bfd_elf64_big_generic_vec) 	tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
18729218822Sdim    bfd_elf64_bigmips_vec) 	tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
1873089857Sobrien    bfd_elf64_hppa_linux_vec)	tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
1873189857Sobrien    bfd_elf64_hppa_vec)		tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
1873289857Sobrien    bfd_elf64_ia64_big_vec)	tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
1873389857Sobrien    bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
1873489857Sobrien    bfd_elf64_ia64_little_vec)	tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
1873589857Sobrien    bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
18736218822Sdim    bfd_elf64_littlemips_vec) 	tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
1873789857Sobrien    bfd_elf64_mmix_vec) 	tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
1873889857Sobrien    bfd_elf64_powerpc_vec)	tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
1873989857Sobrien    bfd_elf64_powerpcle_vec)	tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
1874089857Sobrien    bfd_elf64_s390_vec)		tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
18741104834Sobrien    bfd_elf64_sh64_vec)		tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18742104834Sobrien    bfd_elf64_sh64l_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18743130561Sobrien    bfd_elf64_sh64lin_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18744130561Sobrien    bfd_elf64_sh64blin_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18745130561Sobrien    bfd_elf64_sh64lnbsd_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18746130561Sobrien    bfd_elf64_sh64nbsd_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18747218822Sdim    bfd_elf64_sparc_vec)	tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
18748218822Sdim    bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
18749218822Sdim    bfd_elf64_tradbigmips_vec)	tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18750218822Sdim    bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18751218822Sdim    bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
1875289857Sobrien    bfd_elf64_x86_64_vec)	tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
1875389857Sobrien    bfd_mmo_vec)		tb="$tb mmo.lo" target_size=64 ;;
1875489857Sobrien    bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
1875589857Sobrien    bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
1875689857Sobrien    bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
1875789857Sobrien    bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
1875877298Sobrien    cris_aout_vec)		tb="$tb aout-cris.lo" ;;
1875989857Sobrien    demo_64_vec)		tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
1876038889Sjdp    ecoff_big_vec)		tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
1876189857Sobrien    ecoff_biglittle_vec)	tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
1876238889Sjdp    ecoff_little_vec)		tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
1876389857Sobrien    ecoffalpha_little_vec)	tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
1876438889Sjdp    go32coff_vec)		tb="$tb coff-go32.lo cofflink.lo" ;;
1876538889Sjdp    go32stubbedcoff_vec)	tb="$tb coff-stgo32.lo cofflink.lo" ;;
1876638889Sjdp    h8300coff_vec)		tb="$tb coff-h8300.lo reloc16.lo" ;;
1876738889Sjdp    h8500coff_vec)		tb="$tb coff-h8500.lo reloc16.lo" ;;
1876838889Sjdp    host_aout_vec)		tb="$tb host-aout.lo aout32.lo" ;;
1876938889Sjdp    hp300bsd_vec)		tb="$tb hp300bsd.lo aout32.lo" ;;
1877038889Sjdp    hp300hpux_vec)		tb="$tb hp300hpux.lo aout32.lo" ;;
1877138889Sjdp    i386aout_vec)		tb="$tb i386aout.lo aout32.lo" ;;
1877238889Sjdp    i386bsd_vec)		tb="$tb i386bsd.lo aout32.lo" ;;
1877338889Sjdp    i386coff_vec)		tb="$tb coff-i386.lo cofflink.lo" ;;
18774218822Sdim    x86_64coff_vec)		tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
1877538889Sjdp    i386dynix_vec)		tb="$tb i386dynix.lo aout32.lo" ;;
1877638889Sjdp    i386freebsd_vec)		tb="$tb i386freebsd.lo aout32.lo" ;;
1877738889Sjdp    i386linux_vec)		tb="$tb i386linux.lo aout32.lo" ;;
1877838889Sjdp    i386lynx_aout_vec)		tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
1877938889Sjdp    i386lynx_coff_vec)		tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
1878038889Sjdp    i386mach3_vec)		tb="$tb i386mach3.lo aout32.lo" ;;
1878189857Sobrien    i386msdos_vec)		tb="$tb i386msdos.lo" ;;
1878238889Sjdp    i386netbsd_vec)		tb="$tb i386netbsd.lo aout32.lo" ;;
1878338889Sjdp    i386os9k_vec)		tb="$tb i386os9k.lo aout32.lo" ;;
1878489857Sobrien    i386pe_vec)			tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
1878589857Sobrien    i386pei_vec)		tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
18786218822Sdim    x86_64pe_vec)		tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
18787218822Sdim    x86_64pei_vec)		tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
1878838889Sjdp    i860coff_vec)		tb="$tb coff-i860.lo cofflink.lo" ;;
1878938889Sjdp    icoff_big_vec)		tb="$tb coff-i960.lo cofflink.lo" ;;
1879038889Sjdp    icoff_little_vec)		tb="$tb coff-i960.lo cofflink.lo" ;;
1879138889Sjdp    ieee_vec)			tb="$tb ieee.lo" ;;
1879289857Sobrien    m68k4knetbsd_vec)		tb="$tb m68k4knetbsd.lo aout32.lo" ;;
1879389857Sobrien    m68kaux_coff_vec)		tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
1879438889Sjdp    m68kcoff_vec)		tb="$tb coff-m68k.lo cofflink.lo" ;;
1879538889Sjdp    m68kcoffun_vec)		tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
1879638889Sjdp    m68klinux_vec)		tb="$tb m68klinux.lo aout32.lo" ;;
1879738889Sjdp    m68knetbsd_vec)		tb="$tb m68knetbsd.lo aout32.lo" ;;
1879838889Sjdp    m68ksysvcoff_vec)		tb="$tb coff-svm68k.lo cofflink.lo" ;;
1879938889Sjdp    m88kbcs_vec)		tb="$tb coff-m88k.lo" ;;
18800104834Sobrien    m88kmach3_vec)		tb="$tb m88kmach3.lo aout32.lo" ;;
18801218822Sdim    m88kopenbsd_vec)		tb="$tb m88kopenbsd.lo aout32.lo" ;;
18802218822Sdim    maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
18803130561Sobrien    mach_o_be_vec)              tb="$tb mach-o.lo" ;;
18804130561Sobrien    mach_o_le_vec)              tb="$tb mach-o.lo" ;;
18805130561Sobrien    mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
1880660484Sobrien    mcore_pe_big_vec)		tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
1880760484Sobrien    mcore_pe_little_vec)	tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
1880860484Sobrien    mcore_pei_big_vec)		tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
1880960484Sobrien    mcore_pei_little_vec)	tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
1881089857Sobrien    mipslpe_vec)		tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
1881189857Sobrien    mipslpei_vec)		tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
1881238889Sjdp    newsos3_vec)		tb="$tb newsos3.lo aout32.lo" ;;
1881389857Sobrien    nlm32_alpha_vec)		tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
1881438889Sjdp    nlm32_i386_vec)		tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
1881589857Sobrien    nlm32_powerpc_vec)		tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
1881638889Sjdp    nlm32_sparc_vec)		tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
1881791041Sobrien    or32coff_big_vec)		tb="$tb coff-or32.lo cofflink.lo" ;;
1881889857Sobrien    pc532machaout_vec)		tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
1881989857Sobrien    pc532netbsd_vec)		tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
18820130561Sobrien    pef_vec)                    tb="$tb pef.lo" ;;
18821130561Sobrien    pef_xlib_vec)               tb="$tb pef.lo" ;;
1882289857Sobrien    pdp11_aout_vec)		tb="$tb pdp11.lo" ;;
1882389857Sobrien    pmac_xcoff_vec)		tb="$tb coff-rs6000.lo xcofflink.lo" ;;
1882489857Sobrien    ppcboot_vec)		tb="$tb ppcboot.lo" ;;
1882538889Sjdp    riscix_vec)			tb="$tb aout32.lo riscix.lo" ;;
18826104834Sobrien    rs6000coff64_vec)		tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
1882738889Sjdp    rs6000coff_vec)		tb="$tb coff-rs6000.lo xcofflink.lo" ;;
1882889857Sobrien    shcoff_small_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
1882938889Sjdp    shcoff_vec)			tb="$tb coff-sh.lo cofflink.lo" ;;
1883089857Sobrien    shlcoff_small_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
1883138889Sjdp    shlcoff_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
1883277298Sobrien    shlpe_vec)			tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
1883377298Sobrien    shlpei_vec)			tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
1883438889Sjdp    som_vec)			tb="$tb som.lo" ;;
1883589857Sobrien    sparccoff_vec)		tb="$tb coff-sparc.lo" ;;
1883638889Sjdp    sparcle_aout_vec)		tb="$tb aout-sparcle.lo aout32.lo" ;;
1883738889Sjdp    sparclinux_vec)		tb="$tb sparclinux.lo aout32.lo" ;;
1883838889Sjdp    sparclynx_aout_vec)		tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
1883938889Sjdp    sparclynx_coff_vec)		tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
1884038889Sjdp    sparcnetbsd_vec)		tb="$tb sparcnetbsd.lo aout32.lo" ;;
1884138889Sjdp    sunos_big_vec)		tb="$tb sunos.lo aout32.lo" ;;
18842130561Sobrien    sym_vec)                    tb="$tb xsym.lo" ;;
1884338889Sjdp    tic30_aout_vec)		tb="$tb aout-tic30.lo" ;;
1884438889Sjdp    tic30_coff_vec)		tb="$tb coff-tic30.lo" ;;
18845130561Sobrien    tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
18846130561Sobrien    tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
18847130561Sobrien    tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
18848130561Sobrien    tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
18849130561Sobrien    tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
18850130561Sobrien    tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
1885189857Sobrien    tic54x_coff0_beh_vec)	tb="$tb coff-tic54x.lo" ;;
1885277298Sobrien    tic54x_coff0_vec)		tb="$tb coff-tic54x.lo" ;;
1885389857Sobrien    tic54x_coff1_beh_vec)	tb="$tb coff-tic54x.lo" ;;
1885477298Sobrien    tic54x_coff1_vec)		tb="$tb coff-tic54x.lo" ;;
1885589857Sobrien    tic54x_coff2_beh_vec)	tb="$tb coff-tic54x.lo" ;;
1885677298Sobrien    tic54x_coff2_vec)		tb="$tb coff-tic54x.lo" ;;
1885760484Sobrien    tic80coff_vec)		tb="$tb coff-tic80.lo cofflink.lo" ;;
18858104834Sobrien    vaxnetbsd_vec)		tb="$tb vaxnetbsd.lo aout32.lo" ;;
18859104834Sobrien    vax1knetbsd_vec)		tb="$tb vax1knetbsd.lo aout32.lo" ;;
18860104834Sobrien    vaxbsd_vec)			tb="$tb vaxbsd.lo aout32.lo" ;;
1886160484Sobrien    versados_vec)		tb="$tb versados.lo" ;;
1886289857Sobrien    vms_alpha_vec)		tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
1886360484Sobrien    vms_vax_vec)		tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
1886460484Sobrien    w65_vec)			tb="$tb coff-w65.lo reloc16.lo" ;;
1886538889Sjdp    we32kcoff_vec)		tb="$tb coff-we32k.lo" ;;
18866218822Sdim    z80coff_vec)		tb="$tb coff-z80.lo reloc16.lo" ;;
18867218822Sdim    z8kcoff_vec)		tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
1886833965Sjdp
18869104834Sobrien    # These appear out of order in targets.c
18870104834Sobrien    srec_vec)			tb="$tb srec.lo" ;;
18871104834Sobrien    symbolsrec_vec)		tb="$tb srec.lo" ;;
18872104834Sobrien    tekhex_vec)			tb="$tb tekhex.lo" ;;
18873104834Sobrien    cisco_core_big_vec)		tb="$tb cisco-core.lo" ;;
18874104834Sobrien    cisco_core_little_vec)	tb="$tb cisco-core.lo" ;;
18875104834Sobrien
1887633965Sjdp    "")			;;
18877218822Sdim    *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
18878218822Sdimecho "$as_me: error: *** unknown target vector $vec" >&2;}
18879218822Sdim   { (exit 1); exit 1; }; } ;;
1888033965Sjdp    esac
1888189857Sobrien
1888289857Sobrien    if test ${target_size} = 64; then
1888389857Sobrien	target64=true
1888489857Sobrien    fi
1888589857Sobrien    if test x"${vec}" = x"${defvec}"; then
1888689857Sobrien	bfd_default_target_size=${target_size}
1888789857Sobrien    fi
1888833965Sjdpdone
1888933965Sjdp
1889033965Sjdp# Target architecture .o files.
1889133965Sjdp# A couple of CPUs use shorter file names to avoid problems on DOS
1889233965Sjdp# filesystems.
1889338889Sjdpta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
1889433965Sjdp
1889533965Sjdp# Weed out duplicate .o files.
1889633965Sjdpf=""
1889733965Sjdpfor i in $tb ; do
1889833965Sjdp    case " $f " in
1889933965Sjdp    *" $i "*) ;;
1890033965Sjdp    *) f="$f $i" ;;
1890133965Sjdp    esac
1890233965Sjdpdone
1890333965Sjdptb="$f"
1890433965Sjdp
1890533965Sjdpf=""
1890633965Sjdpfor i in $ta ; do
1890733965Sjdp    case " $f " in
1890833965Sjdp    *" $i "*) ;;
1890933965Sjdp    *) f="$f $i" ;;
1891033965Sjdp    esac
1891133965Sjdpdone
1891233965Sjdpta="$f"
1891333965Sjdp
1891433965Sjdpbfd_backends="$tb"
1891533965Sjdpbfd_machines="$ta"
1891633965Sjdp
1891733965Sjdpif test x${all_targets} = xtrue ; then
1891833965Sjdp  bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
1891933965Sjdp  bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
1892033965Sjdp  selvecs=
1892133965Sjdp  havevecs=
1892233965Sjdp  selarchs=
18923130561Sobrien  test -n "$assocvecs" &&
18924130561Sobrien    assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1892533965Sjdpelse	# all_targets is true
1892633965Sjdp  # Only set these if they will be nonempty, for the clever echo.
1892733965Sjdp  havevecs=
18928130561Sobrien  assocvecs=
1892933965Sjdp  test -n "$selvecs" &&
1893033965Sjdp    havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
1893133965Sjdp  test -n "$selvecs" &&
1893233965Sjdp    selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1893333965Sjdp  test -n "$selarchs" &&
1893433965Sjdp    selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1893533965Sjdpfi	# all_targets is true
1893633965Sjdp
1893733965Sjdpcase ${host64}-${target64}-${want64} in
1893833965Sjdp  *true*)
1893933965Sjdp    wordsize=64
18940218822Sdim    bfd64_libs='$(BFD64_LIBS)'
1894133965Sjdp    all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
18942130561Sobrien    if test $BFD_HOST_64_BIT_DEFINED = 0; then
18943218822Sdim      { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
18944218822Sdimecho "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
18945218822Sdim      { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
18946218822Sdimecho "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
1894733965Sjdp    fi
1894889857Sobrien    if test -n "$GCC" ; then
1894989857Sobrien       bad_64bit_gcc=no;
18950218822Sdim       echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
18951218822Sdimecho $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
1895289857Sobrien       # Add more tests for gcc versions with non-working 64-bit support here.
18953218822Sdim       cat >conftest.$ac_ext <<_ACEOF
18954218822Sdim/* confdefs.h.  */
18955218822Sdim_ACEOF
18956218822Sdimcat confdefs.h >>conftest.$ac_ext
18957218822Sdimcat >>conftest.$ac_ext <<_ACEOF
18958218822Sdim/* end confdefs.h.  */
1895989857Sobrien:__GNUC__:__GNUC_MINOR__:__i386__:
18960218822Sdim_ACEOF
1896189857Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18962218822Sdim  $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
1896389857Sobrien  bad_64bit_gcc=yes;
18964218822Sdim		    echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
18965218822Sdimecho "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
1896689857Sobrienelse
18967218822Sdim  echo "$as_me:$LINENO: result: no" >&5
18968218822Sdimecho "${ECHO_T}no" >&6
1896989857Sobrienfi
1897089857Sobrienrm -f conftest*
1897189857Sobrien
1897289857Sobrien       if test $bad_64bit_gcc = yes ; then
18973218822Sdim	 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
18974218822Sdimecho "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
18975218822Sdim   { (exit 1); exit 1; }; }
1897689857Sobrien       fi
1897789857Sobrien    fi
1897833965Sjdp    ;;
1897933965Sjdp  false-false-false)
1898033965Sjdp    wordsize=32
1898133965Sjdp    all_backends='$(BFD32_BACKENDS)'
1898233965Sjdp    ;;
1898333965Sjdpesac
1898433965Sjdp
1898533965Sjdp
1898633965Sjdp
1898733965Sjdp
1898833965Sjdp
1898933965Sjdp
1899089857Sobrien
1899189857Sobrien
18992130561Sobrien# Determine the host dependant file_ptr a.k.a. off_t type.  In order
18993130561Sobrien# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
18994130561Sobrien# fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
18995130561Sobrien# Hopefully a reasonable assumption since fseeko et.al. should be
18996130561Sobrien# upward compatible.
18997218822Sdim
18998218822Sdim
18999218822Sdim
19000218822Sdim
19001218822Sdim
19002218822Sdimfor ac_func in ftello ftello64 fseeko fseeko64 fopen64
19003130561Sobriendo
19004218822Sdimas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19005218822Sdimecho "$as_me:$LINENO: checking for $ac_func" >&5
19006218822Sdimecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19007218822Sdimif eval "test \"\${$as_ac_var+set}\" = set"; then
19008218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
19009130561Sobrienelse
19010218822Sdim  cat >conftest.$ac_ext <<_ACEOF
19011218822Sdim/* confdefs.h.  */
19012218822Sdim_ACEOF
19013218822Sdimcat confdefs.h >>conftest.$ac_ext
19014218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19015218822Sdim/* end confdefs.h.  */
19016218822Sdim/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19017218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19018218822Sdim#define $ac_func innocuous_$ac_func
19019218822Sdim
19020130561Sobrien/* System header to define __stub macros and hopefully few prototypes,
19021218822Sdim    which can conflict with char $ac_func (); below.
19022218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19023218822Sdim    <limits.h> exists even on freestanding compilers.  */
19024218822Sdim
19025218822Sdim#ifdef __STDC__
19026218822Sdim# include <limits.h>
19027218822Sdim#else
19028218822Sdim# include <assert.h>
19029218822Sdim#endif
19030218822Sdim
19031218822Sdim#undef $ac_func
19032218822Sdim
19033130561Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
19034218822Sdim#ifdef __cplusplus
19035218822Sdimextern "C"
19036218822Sdim{
19037218822Sdim#endif
19038130561Sobrien/* We use char because int might match the return type of a gcc2
19039218822Sdim   builtin and then its argument prototype would still apply.  */
19040218822Sdimchar $ac_func ();
19041130561Sobrien/* The GNU C library defines this for functions which it implements
19042130561Sobrien    to always fail with ENOSYS.  Some functions are actually named
19043130561Sobrien    something starting with __ and the normal name is an alias.  */
19044130561Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19045130561Sobrienchoke me
19046130561Sobrien#else
19047218822Sdimchar (*f) () = $ac_func;
19048130561Sobrien#endif
19049218822Sdim#ifdef __cplusplus
19050218822Sdim}
19051218822Sdim#endif
19052130561Sobrien
19053218822Sdimint
19054218822Sdimmain ()
19055218822Sdim{
19056218822Sdimreturn f != $ac_func;
19057218822Sdim  ;
19058218822Sdim  return 0;
19059218822Sdim}
19060218822Sdim_ACEOF
19061218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
19062218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19063218822Sdim  (eval $ac_link) 2>conftest.er1
19064218822Sdim  ac_status=$?
19065218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
19066218822Sdim  rm -f conftest.er1
19067218822Sdim  cat conftest.err >&5
19068218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069218822Sdim  (exit $ac_status); } &&
19070218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
19071218822Sdim			 || test ! -s conftest.err'
19072218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073218822Sdim  (eval $ac_try) 2>&5
19074218822Sdim  ac_status=$?
19075218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076218822Sdim  (exit $ac_status); }; } &&
19077218822Sdim	 { ac_try='test -s conftest$ac_exeext'
19078218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079218822Sdim  (eval $ac_try) 2>&5
19080218822Sdim  ac_status=$?
19081218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082218822Sdim  (exit $ac_status); }; }; then
19083218822Sdim  eval "$as_ac_var=yes"
19084130561Sobrienelse
19085218822Sdim  echo "$as_me: failed program was:" >&5
19086218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19087218822Sdim
19088218822Sdimeval "$as_ac_var=no"
19089130561Sobrienfi
19090218822Sdimrm -f conftest.err conftest.$ac_objext \
19091218822Sdim      conftest$ac_exeext conftest.$ac_ext
19092130561Sobrienfi
19093218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19094218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19095218822Sdimif test `eval echo '${'$as_ac_var'}'` = yes; then
19096218822Sdim  cat >>confdefs.h <<_ACEOF
19097218822Sdim#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19098218822Sdim_ACEOF
19099130561Sobrien
19100130561Sobrienfi
19101130561Sobriendone
19102130561Sobrien
19103130561Sobrienif test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19104218822Sdim    echo "$as_me:$LINENO: checking for off_t" >&5
19105218822Sdimecho $ECHO_N "checking for off_t... $ECHO_C" >&6
19106218822Sdimif test "${ac_cv_type_off_t+set}" = set; then
19107218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
19108130561Sobrienelse
19109218822Sdim  cat >conftest.$ac_ext <<_ACEOF
19110218822Sdim/* confdefs.h.  */
19111218822Sdim_ACEOF
19112218822Sdimcat confdefs.h >>conftest.$ac_ext
19113218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19114218822Sdim/* end confdefs.h.  */
19115218822Sdim$ac_includes_default
19116218822Sdimint
19117218822Sdimmain ()
19118218822Sdim{
19119218822Sdimif ((off_t *) 0)
19120218822Sdim  return 0;
19121218822Sdimif (sizeof (off_t))
19122218822Sdim  return 0;
19123218822Sdim  ;
19124218822Sdim  return 0;
19125218822Sdim}
19126218822Sdim_ACEOF
19127218822Sdimrm -f conftest.$ac_objext
19128218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129218822Sdim  (eval $ac_compile) 2>conftest.er1
19130218822Sdim  ac_status=$?
19131218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
19132218822Sdim  rm -f conftest.er1
19133218822Sdim  cat conftest.err >&5
19134218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135218822Sdim  (exit $ac_status); } &&
19136218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
19137218822Sdim			 || test ! -s conftest.err'
19138218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139218822Sdim  (eval $ac_try) 2>&5
19140218822Sdim  ac_status=$?
19141218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142218822Sdim  (exit $ac_status); }; } &&
19143218822Sdim	 { ac_try='test -s conftest.$ac_objext'
19144218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145218822Sdim  (eval $ac_try) 2>&5
19146218822Sdim  ac_status=$?
19147218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148218822Sdim  (exit $ac_status); }; }; then
19149218822Sdim  ac_cv_type_off_t=yes
19150218822Sdimelse
19151218822Sdim  echo "$as_me: failed program was:" >&5
19152218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19153130561Sobrien
19154218822Sdimac_cv_type_off_t=no
19155218822Sdimfi
19156218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19157218822Sdimfi
19158218822Sdimecho "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19159218822Sdimecho "${ECHO_T}$ac_cv_type_off_t" >&6
19160130561Sobrien
19161218822Sdimecho "$as_me:$LINENO: checking size of off_t" >&5
19162218822Sdimecho $ECHO_N "checking size of off_t... $ECHO_C" >&6
19163218822Sdimif test "${ac_cv_sizeof_off_t+set}" = set; then
19164218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
19165130561Sobrienelse
19166218822Sdim  if test "$ac_cv_type_off_t" = yes; then
19167218822Sdim  # The cast to unsigned long works around a bug in the HP C Compiler
19168218822Sdim  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19169218822Sdim  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19170218822Sdim  # This bug is HP SR number 8606223364.
19171218822Sdim  if test "$cross_compiling" = yes; then
19172218822Sdim  # Depending upon the size, compute the lo and hi bounds.
19173218822Sdimcat >conftest.$ac_ext <<_ACEOF
19174218822Sdim/* confdefs.h.  */
19175218822Sdim_ACEOF
19176218822Sdimcat confdefs.h >>conftest.$ac_ext
19177218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19178218822Sdim/* end confdefs.h.  */
19179218822Sdim$ac_includes_default
19180218822Sdimint
19181218822Sdimmain ()
19182218822Sdim{
19183218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19184218822Sdimtest_array [0] = 0
19185218822Sdim
19186218822Sdim  ;
19187218822Sdim  return 0;
19188218822Sdim}
19189218822Sdim_ACEOF
19190218822Sdimrm -f conftest.$ac_objext
19191218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19192218822Sdim  (eval $ac_compile) 2>conftest.er1
19193218822Sdim  ac_status=$?
19194218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
19195218822Sdim  rm -f conftest.er1
19196218822Sdim  cat conftest.err >&5
19197218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198218822Sdim  (exit $ac_status); } &&
19199218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
19200218822Sdim			 || test ! -s conftest.err'
19201218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202218822Sdim  (eval $ac_try) 2>&5
19203218822Sdim  ac_status=$?
19204218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205218822Sdim  (exit $ac_status); }; } &&
19206218822Sdim	 { ac_try='test -s conftest.$ac_objext'
19207218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208218822Sdim  (eval $ac_try) 2>&5
19209218822Sdim  ac_status=$?
19210218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211218822Sdim  (exit $ac_status); }; }; then
19212218822Sdim  ac_lo=0 ac_mid=0
19213218822Sdim  while :; do
19214218822Sdim    cat >conftest.$ac_ext <<_ACEOF
19215218822Sdim/* confdefs.h.  */
19216218822Sdim_ACEOF
19217218822Sdimcat confdefs.h >>conftest.$ac_ext
19218218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19219218822Sdim/* end confdefs.h.  */
19220218822Sdim$ac_includes_default
19221218822Sdimint
19222218822Sdimmain ()
19223218822Sdim{
19224218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19225218822Sdimtest_array [0] = 0
19226218822Sdim
19227218822Sdim  ;
19228218822Sdim  return 0;
19229218822Sdim}
19230218822Sdim_ACEOF
19231218822Sdimrm -f conftest.$ac_objext
19232218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19233218822Sdim  (eval $ac_compile) 2>conftest.er1
19234218822Sdim  ac_status=$?
19235218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
19236218822Sdim  rm -f conftest.er1
19237218822Sdim  cat conftest.err >&5
19238218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239218822Sdim  (exit $ac_status); } &&
19240218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
19241218822Sdim			 || test ! -s conftest.err'
19242218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243218822Sdim  (eval $ac_try) 2>&5
19244218822Sdim  ac_status=$?
19245218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246218822Sdim  (exit $ac_status); }; } &&
19247218822Sdim	 { ac_try='test -s conftest.$ac_objext'
19248218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249218822Sdim  (eval $ac_try) 2>&5
19250218822Sdim  ac_status=$?
19251218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252218822Sdim  (exit $ac_status); }; }; then
19253218822Sdim  ac_hi=$ac_mid; break
19254218822Sdimelse
19255218822Sdim  echo "$as_me: failed program was:" >&5
19256218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19257218822Sdim
19258218822Sdimac_lo=`expr $ac_mid + 1`
19259218822Sdim		    if test $ac_lo -le $ac_mid; then
19260218822Sdim		      ac_lo= ac_hi=
19261218822Sdim		      break
19262218822Sdim		    fi
19263218822Sdim		    ac_mid=`expr 2 '*' $ac_mid + 1`
19264130561Sobrienfi
19265218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19266218822Sdim  done
19267218822Sdimelse
19268218822Sdim  echo "$as_me: failed program was:" >&5
19269218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19270130561Sobrien
19271218822Sdimcat >conftest.$ac_ext <<_ACEOF
19272218822Sdim/* confdefs.h.  */
19273218822Sdim_ACEOF
19274218822Sdimcat confdefs.h >>conftest.$ac_ext
19275218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19276218822Sdim/* end confdefs.h.  */
19277218822Sdim$ac_includes_default
19278218822Sdimint
19279218822Sdimmain ()
19280218822Sdim{
19281218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19282218822Sdimtest_array [0] = 0
19283218822Sdim
19284218822Sdim  ;
19285218822Sdim  return 0;
19286218822Sdim}
19287218822Sdim_ACEOF
19288218822Sdimrm -f conftest.$ac_objext
19289218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19290218822Sdim  (eval $ac_compile) 2>conftest.er1
19291218822Sdim  ac_status=$?
19292218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
19293218822Sdim  rm -f conftest.er1
19294218822Sdim  cat conftest.err >&5
19295218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296218822Sdim  (exit $ac_status); } &&
19297218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
19298218822Sdim			 || test ! -s conftest.err'
19299218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300218822Sdim  (eval $ac_try) 2>&5
19301218822Sdim  ac_status=$?
19302218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303218822Sdim  (exit $ac_status); }; } &&
19304218822Sdim	 { ac_try='test -s conftest.$ac_objext'
19305218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306218822Sdim  (eval $ac_try) 2>&5
19307218822Sdim  ac_status=$?
19308218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309218822Sdim  (exit $ac_status); }; }; then
19310218822Sdim  ac_hi=-1 ac_mid=-1
19311218822Sdim  while :; do
19312218822Sdim    cat >conftest.$ac_ext <<_ACEOF
19313218822Sdim/* confdefs.h.  */
19314218822Sdim_ACEOF
19315218822Sdimcat confdefs.h >>conftest.$ac_ext
19316218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19317218822Sdim/* end confdefs.h.  */
19318218822Sdim$ac_includes_default
19319218822Sdimint
19320218822Sdimmain ()
19321218822Sdim{
19322218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19323218822Sdimtest_array [0] = 0
19324218822Sdim
19325218822Sdim  ;
19326218822Sdim  return 0;
19327218822Sdim}
19328218822Sdim_ACEOF
19329218822Sdimrm -f conftest.$ac_objext
19330218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19331218822Sdim  (eval $ac_compile) 2>conftest.er1
19332218822Sdim  ac_status=$?
19333218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
19334218822Sdim  rm -f conftest.er1
19335218822Sdim  cat conftest.err >&5
19336218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337218822Sdim  (exit $ac_status); } &&
19338218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
19339218822Sdim			 || test ! -s conftest.err'
19340218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341218822Sdim  (eval $ac_try) 2>&5
19342218822Sdim  ac_status=$?
19343218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344218822Sdim  (exit $ac_status); }; } &&
19345218822Sdim	 { ac_try='test -s conftest.$ac_objext'
19346218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347218822Sdim  (eval $ac_try) 2>&5
19348218822Sdim  ac_status=$?
19349218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350218822Sdim  (exit $ac_status); }; }; then
19351218822Sdim  ac_lo=$ac_mid; break
19352218822Sdimelse
19353218822Sdim  echo "$as_me: failed program was:" >&5
19354218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19355218822Sdim
19356218822Sdimac_hi=`expr '(' $ac_mid ')' - 1`
19357218822Sdim		       if test $ac_mid -le $ac_hi; then
19358218822Sdim			 ac_lo= ac_hi=
19359218822Sdim			 break
19360218822Sdim		       fi
19361218822Sdim		       ac_mid=`expr 2 '*' $ac_mid`
19362130561Sobrienfi
19363218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19364218822Sdim  done
19365218822Sdimelse
19366218822Sdim  echo "$as_me: failed program was:" >&5
19367218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19368130561Sobrien
19369218822Sdimac_lo= ac_hi=
19370130561Sobrienfi
19371218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19372218822Sdimfi
19373218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19374218822Sdim# Binary search between lo and hi bounds.
19375218822Sdimwhile test "x$ac_lo" != "x$ac_hi"; do
19376218822Sdim  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19377218822Sdim  cat >conftest.$ac_ext <<_ACEOF
19378218822Sdim/* confdefs.h.  */
19379218822Sdim_ACEOF
19380218822Sdimcat confdefs.h >>conftest.$ac_ext
19381218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19382218822Sdim/* end confdefs.h.  */
19383218822Sdim$ac_includes_default
19384218822Sdimint
19385218822Sdimmain ()
19386218822Sdim{
19387218822Sdimstatic int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19388218822Sdimtest_array [0] = 0
19389218822Sdim
19390218822Sdim  ;
19391218822Sdim  return 0;
19392218822Sdim}
19393218822Sdim_ACEOF
19394218822Sdimrm -f conftest.$ac_objext
19395218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19396218822Sdim  (eval $ac_compile) 2>conftest.er1
19397218822Sdim  ac_status=$?
19398218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
19399218822Sdim  rm -f conftest.er1
19400218822Sdim  cat conftest.err >&5
19401218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402218822Sdim  (exit $ac_status); } &&
19403218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
19404218822Sdim			 || test ! -s conftest.err'
19405218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406218822Sdim  (eval $ac_try) 2>&5
19407218822Sdim  ac_status=$?
19408218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409218822Sdim  (exit $ac_status); }; } &&
19410218822Sdim	 { ac_try='test -s conftest.$ac_objext'
19411218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412218822Sdim  (eval $ac_try) 2>&5
19413218822Sdim  ac_status=$?
19414218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415218822Sdim  (exit $ac_status); }; }; then
19416218822Sdim  ac_hi=$ac_mid
19417218822Sdimelse
19418218822Sdim  echo "$as_me: failed program was:" >&5
19419218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19420218822Sdim
19421218822Sdimac_lo=`expr '(' $ac_mid ')' + 1`
19422218822Sdimfi
19423218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19424218822Sdimdone
19425218822Sdimcase $ac_lo in
19426218822Sdim?*) ac_cv_sizeof_off_t=$ac_lo;;
19427218822Sdim'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19428218822SdimSee \`config.log' for more details." >&5
19429218822Sdimecho "$as_me: error: cannot compute sizeof (off_t), 77
19430218822SdimSee \`config.log' for more details." >&2;}
19431218822Sdim   { (exit 1); exit 1; }; } ;;
19432218822Sdimesac
19433218822Sdimelse
19434218822Sdim  if test "$cross_compiling" = yes; then
19435218822Sdim  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19436218822SdimSee \`config.log' for more details." >&5
19437218822Sdimecho "$as_me: error: cannot run test program while cross compiling
19438218822SdimSee \`config.log' for more details." >&2;}
19439218822Sdim   { (exit 1); exit 1; }; }
19440218822Sdimelse
19441218822Sdim  cat >conftest.$ac_ext <<_ACEOF
19442218822Sdim/* confdefs.h.  */
19443218822Sdim_ACEOF
19444218822Sdimcat confdefs.h >>conftest.$ac_ext
19445218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19446218822Sdim/* end confdefs.h.  */
19447218822Sdim$ac_includes_default
19448218822Sdimlong longval () { return (long) (sizeof (off_t)); }
19449218822Sdimunsigned long ulongval () { return (long) (sizeof (off_t)); }
19450218822Sdim#include <stdio.h>
19451218822Sdim#include <stdlib.h>
19452218822Sdimint
19453218822Sdimmain ()
19454218822Sdim{
19455218822Sdim
19456218822Sdim  FILE *f = fopen ("conftest.val", "w");
19457218822Sdim  if (! f)
19458218822Sdim    exit (1);
19459218822Sdim  if (((long) (sizeof (off_t))) < 0)
19460218822Sdim    {
19461218822Sdim      long i = longval ();
19462218822Sdim      if (i != ((long) (sizeof (off_t))))
19463218822Sdim	exit (1);
19464218822Sdim      fprintf (f, "%ld\n", i);
19465218822Sdim    }
19466218822Sdim  else
19467218822Sdim    {
19468218822Sdim      unsigned long i = ulongval ();
19469218822Sdim      if (i != ((long) (sizeof (off_t))))
19470218822Sdim	exit (1);
19471218822Sdim      fprintf (f, "%lu\n", i);
19472218822Sdim    }
19473218822Sdim  exit (ferror (f) || fclose (f) != 0);
19474218822Sdim
19475218822Sdim  ;
19476218822Sdim  return 0;
19477218822Sdim}
19478218822Sdim_ACEOF
19479218822Sdimrm -f conftest$ac_exeext
19480218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19481218822Sdim  (eval $ac_link) 2>&5
19482218822Sdim  ac_status=$?
19483218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19485218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486218822Sdim  (eval $ac_try) 2>&5
19487218822Sdim  ac_status=$?
19488218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489218822Sdim  (exit $ac_status); }; }; then
19490218822Sdim  ac_cv_sizeof_off_t=`cat conftest.val`
19491218822Sdimelse
19492218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
19493218822Sdimecho "$as_me: failed program was:" >&5
19494218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19495218822Sdim
19496218822Sdim( exit $ac_status )
19497218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19498218822SdimSee \`config.log' for more details." >&5
19499218822Sdimecho "$as_me: error: cannot compute sizeof (off_t), 77
19500218822SdimSee \`config.log' for more details." >&2;}
19501218822Sdim   { (exit 1); exit 1; }; }
19502218822Sdimfi
19503218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19504218822Sdimfi
19505218822Sdimfi
19506218822Sdimrm -f conftest.val
19507218822Sdimelse
19508218822Sdim  ac_cv_sizeof_off_t=0
19509218822Sdimfi
19510218822Sdimfi
19511218822Sdimecho "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19512218822Sdimecho "${ECHO_T}$ac_cv_sizeof_off_t" >&6
19513218822Sdimcat >>confdefs.h <<_ACEOF
19514130561Sobrien#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19515218822Sdim_ACEOF
19516130561Sobrien
19517130561Sobrien
19518130561Sobrienfi
19519218822Sdimecho "$as_me:$LINENO: checking file_ptr type" >&5
19520218822Sdimecho $ECHO_N "checking file_ptr type... $ECHO_C" >&6
19521130561Sobrienbfd_file_ptr="long"
19522130561Sobrienbfd_ufile_ptr="unsigned long"
19523130561Sobrienif test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19524130561Sobrien	-o x"${ac_cv_sizeof_off_t}" = x8; then
19525130561Sobrien    bfd_file_ptr=BFD_HOST_64_BIT
19526130561Sobrien    bfd_ufile_ptr=BFD_HOST_U_64_BIT
19527130561Sobrienfi
19528218822Sdimecho "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19529218822Sdimecho "${ECHO_T}$bfd_file_ptr" >&6
19530130561Sobrien
19531130561Sobrien
19532130561Sobrien
19533130561Sobrien
1953433965Sjdptdefaults=""
1953533965Sjdptest -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
1953633965Sjdptest -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
19537130561Sobrientest -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
1953833965Sjdptest -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
1953933965Sjdptest -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
1954033965Sjdp
1954133965Sjdp
19542218822Sdim
19543218822Sdim
19544218822Sdimfor ac_header in stdlib.h unistd.h
1954533965Sjdpdo
19546218822Sdimas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19547218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
19548218822Sdim  echo "$as_me:$LINENO: checking for $ac_header" >&5
19549218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19550218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
19551218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
19552218822Sdimfi
19553218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19554218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1955533965Sjdpelse
19556218822Sdim  # Is the header compilable?
19557218822Sdimecho "$as_me:$LINENO: checking $ac_header usability" >&5
19558218822Sdimecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19559218822Sdimcat >conftest.$ac_ext <<_ACEOF
19560218822Sdim/* confdefs.h.  */
19561218822Sdim_ACEOF
19562218822Sdimcat confdefs.h >>conftest.$ac_ext
19563218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19564218822Sdim/* end confdefs.h.  */
19565218822Sdim$ac_includes_default
19566218822Sdim#include <$ac_header>
19567218822Sdim_ACEOF
19568218822Sdimrm -f conftest.$ac_objext
19569218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19570218822Sdim  (eval $ac_compile) 2>conftest.er1
19571218822Sdim  ac_status=$?
19572218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
19573218822Sdim  rm -f conftest.er1
19574218822Sdim  cat conftest.err >&5
19575218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576218822Sdim  (exit $ac_status); } &&
19577218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
19578218822Sdim			 || test ! -s conftest.err'
19579218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580218822Sdim  (eval $ac_try) 2>&5
19581218822Sdim  ac_status=$?
19582218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583218822Sdim  (exit $ac_status); }; } &&
19584218822Sdim	 { ac_try='test -s conftest.$ac_objext'
19585218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586218822Sdim  (eval $ac_try) 2>&5
19587218822Sdim  ac_status=$?
19588218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589218822Sdim  (exit $ac_status); }; }; then
19590218822Sdim  ac_header_compiler=yes
1959133965Sjdpelse
19592218822Sdim  echo "$as_me: failed program was:" >&5
19593218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19594218822Sdim
19595218822Sdimac_header_compiler=no
1959633965Sjdpfi
19597218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19598218822Sdimecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
19599218822Sdimecho "${ECHO_T}$ac_header_compiler" >&6
19600218822Sdim
19601218822Sdim# Is the header present?
19602218822Sdimecho "$as_me:$LINENO: checking $ac_header presence" >&5
19603218822Sdimecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19604218822Sdimcat >conftest.$ac_ext <<_ACEOF
19605218822Sdim/* confdefs.h.  */
19606218822Sdim_ACEOF
19607218822Sdimcat confdefs.h >>conftest.$ac_ext
19608218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19609218822Sdim/* end confdefs.h.  */
19610218822Sdim#include <$ac_header>
19611218822Sdim_ACEOF
19612218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19613218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19614218822Sdim  ac_status=$?
19615218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
19616218822Sdim  rm -f conftest.er1
19617218822Sdim  cat conftest.err >&5
19618218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619218822Sdim  (exit $ac_status); } >/dev/null; then
19620218822Sdim  if test -s conftest.err; then
19621218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
19622218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19623218822Sdim  else
19624218822Sdim    ac_cpp_err=
19625218822Sdim  fi
19626218822Sdimelse
19627218822Sdim  ac_cpp_err=yes
1962833965Sjdpfi
19629218822Sdimif test -z "$ac_cpp_err"; then
19630218822Sdim  ac_header_preproc=yes
1963133965Sjdpelse
19632218822Sdim  echo "$as_me: failed program was:" >&5
19633218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19634218822Sdim
19635218822Sdim  ac_header_preproc=no
1963633965Sjdpfi
19637218822Sdimrm -f conftest.err conftest.$ac_ext
19638218822Sdimecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
19639218822Sdimecho "${ECHO_T}$ac_header_preproc" >&6
19640218822Sdim
19641218822Sdim# So?  What about this header?
19642218822Sdimcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19643218822Sdim  yes:no: )
19644218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19645218822Sdimecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19646218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19647218822Sdimecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19648218822Sdim    ac_header_preproc=yes
19649218822Sdim    ;;
19650218822Sdim  no:yes:* )
19651218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19652218822Sdimecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19653218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19654218822Sdimecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19655218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19656218822Sdimecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19657218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19658218822Sdimecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19659218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19660218822Sdimecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19661218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19662218822Sdimecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19663218822Sdim    (
19664218822Sdim      cat <<\_ASBOX
19665218822Sdim## ------------------------------------------ ##
19666218822Sdim## Report this to the AC_PACKAGE_NAME lists.  ##
19667218822Sdim## ------------------------------------------ ##
19668218822Sdim_ASBOX
19669218822Sdim    ) |
19670218822Sdim      sed "s/^/$as_me: WARNING:     /" >&2
19671218822Sdim    ;;
19672218822Sdimesac
19673218822Sdimecho "$as_me:$LINENO: checking for $ac_header" >&5
19674218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19675218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
19676218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
19677218822Sdimelse
19678218822Sdim  eval "$as_ac_Header=\$ac_header_preproc"
19679218822Sdimfi
19680218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19681218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19682218822Sdim
19683218822Sdimfi
19684218822Sdimif test `eval echo '${'$as_ac_Header'}'` = yes; then
19685218822Sdim  cat >>confdefs.h <<_ACEOF
19686218822Sdim#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19687218822Sdim_ACEOF
19688218822Sdim
19689218822Sdimfi
19690218822Sdim
1969133965Sjdpdone
1969233965Sjdp
19693218822Sdim
1969433965Sjdpfor ac_func in getpagesize
1969533965Sjdpdo
19696218822Sdimas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19697218822Sdimecho "$as_me:$LINENO: checking for $ac_func" >&5
19698218822Sdimecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19699218822Sdimif eval "test \"\${$as_ac_var+set}\" = set"; then
19700218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1970133965Sjdpelse
19702218822Sdim  cat >conftest.$ac_ext <<_ACEOF
19703218822Sdim/* confdefs.h.  */
19704218822Sdim_ACEOF
19705218822Sdimcat confdefs.h >>conftest.$ac_ext
19706218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19707218822Sdim/* end confdefs.h.  */
19708218822Sdim/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19709218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19710218822Sdim#define $ac_func innocuous_$ac_func
19711218822Sdim
1971233965Sjdp/* System header to define __stub macros and hopefully few prototypes,
19713218822Sdim    which can conflict with char $ac_func (); below.
19714218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19715218822Sdim    <limits.h> exists even on freestanding compilers.  */
19716218822Sdim
19717218822Sdim#ifdef __STDC__
19718218822Sdim# include <limits.h>
19719218822Sdim#else
19720218822Sdim# include <assert.h>
19721218822Sdim#endif
19722218822Sdim
19723218822Sdim#undef $ac_func
19724218822Sdim
1972533965Sjdp/* Override any gcc2 internal prototype to avoid an error.  */
19726218822Sdim#ifdef __cplusplus
19727218822Sdimextern "C"
19728218822Sdim{
19729218822Sdim#endif
1973033965Sjdp/* We use char because int might match the return type of a gcc2
19731218822Sdim   builtin and then its argument prototype would still apply.  */
19732218822Sdimchar $ac_func ();
1973333965Sjdp/* The GNU C library defines this for functions which it implements
1973433965Sjdp    to always fail with ENOSYS.  Some functions are actually named
1973533965Sjdp    something starting with __ and the normal name is an alias.  */
1973633965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1973733965Sjdpchoke me
1973833965Sjdp#else
19739218822Sdimchar (*f) () = $ac_func;
1974033965Sjdp#endif
19741218822Sdim#ifdef __cplusplus
19742218822Sdim}
19743218822Sdim#endif
1974433965Sjdp
19745218822Sdimint
19746218822Sdimmain ()
19747218822Sdim{
19748218822Sdimreturn f != $ac_func;
19749218822Sdim  ;
19750218822Sdim  return 0;
19751218822Sdim}
19752218822Sdim_ACEOF
19753218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
19754218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19755218822Sdim  (eval $ac_link) 2>conftest.er1
19756218822Sdim  ac_status=$?
19757218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
19758218822Sdim  rm -f conftest.er1
19759218822Sdim  cat conftest.err >&5
19760218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761218822Sdim  (exit $ac_status); } &&
19762218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
19763218822Sdim			 || test ! -s conftest.err'
19764218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765218822Sdim  (eval $ac_try) 2>&5
19766218822Sdim  ac_status=$?
19767218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768218822Sdim  (exit $ac_status); }; } &&
19769218822Sdim	 { ac_try='test -s conftest$ac_exeext'
19770218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771218822Sdim  (eval $ac_try) 2>&5
19772218822Sdim  ac_status=$?
19773218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774218822Sdim  (exit $ac_status); }; }; then
19775218822Sdim  eval "$as_ac_var=yes"
1977633965Sjdpelse
19777218822Sdim  echo "$as_me: failed program was:" >&5
19778218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19779218822Sdim
19780218822Sdimeval "$as_ac_var=no"
1978133965Sjdpfi
19782218822Sdimrm -f conftest.err conftest.$ac_objext \
19783218822Sdim      conftest$ac_exeext conftest.$ac_ext
1978433965Sjdpfi
19785218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19786218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19787218822Sdimif test `eval echo '${'$as_ac_var'}'` = yes; then
19788218822Sdim  cat >>confdefs.h <<_ACEOF
19789218822Sdim#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19790218822Sdim_ACEOF
1979133965Sjdp
1979233965Sjdpfi
1979333965Sjdpdone
1979433965Sjdp
19795218822Sdimecho "$as_me:$LINENO: checking for working mmap" >&5
19796218822Sdimecho $ECHO_N "checking for working mmap... $ECHO_C" >&6
19797218822Sdimif test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19798218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1979933965Sjdpelse
1980033965Sjdp  if test "$cross_compiling" = yes; then
1980133965Sjdp  ac_cv_func_mmap_fixed_mapped=no
1980233965Sjdpelse
19803218822Sdim  cat >conftest.$ac_ext <<_ACEOF
19804218822Sdim/* confdefs.h.  */
19805218822Sdim_ACEOF
19806218822Sdimcat confdefs.h >>conftest.$ac_ext
19807218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19808218822Sdim/* end confdefs.h.  */
19809218822Sdim$ac_includes_default
19810218822Sdim/* malloc might have been renamed as rpl_malloc. */
19811218822Sdim#undef malloc
1981233965Sjdp
1981333965Sjdp/* Thanks to Mike Haertel and Jim Avera for this test.
1981433965Sjdp   Here is a matrix of mmap possibilities:
1981533965Sjdp	mmap private not fixed
1981633965Sjdp	mmap private fixed at somewhere currently unmapped
1981733965Sjdp	mmap private fixed at somewhere already mapped
1981833965Sjdp	mmap shared not fixed
1981933965Sjdp	mmap shared fixed at somewhere currently unmapped
1982033965Sjdp	mmap shared fixed at somewhere already mapped
1982133965Sjdp   For private mappings, we should verify that changes cannot be read()
1982233965Sjdp   back from the file, nor mmap's back from the file at a different
1982333965Sjdp   address.  (There have been systems where private was not correctly
1982433965Sjdp   implemented like the infamous i386 svr4.0, and systems where the
19825218822Sdim   VM page cache was not coherent with the file system buffer cache
1982633965Sjdp   like early versions of FreeBSD and possibly contemporary NetBSD.)
1982733965Sjdp   For shared mappings, we should conversely verify that changes get
19828218822Sdim   propagated back to all the places they're supposed to be.
1982933965Sjdp
1983033965Sjdp   Grep wants private fixed already mapped.
1983133965Sjdp   The main things grep needs to know about mmap are:
1983233965Sjdp   * does it exist and is it safe to write into the mmap'd area
1983333965Sjdp   * how to use it (BSD variants)  */
19834218822Sdim
1983533965Sjdp#include <fcntl.h>
1983633965Sjdp#include <sys/mman.h>
1983733965Sjdp
19838218822Sdim#if !STDC_HEADERS && !HAVE_STDLIB_H
19839218822Sdimchar *malloc ();
19840130561Sobrien#endif
19841130561Sobrien
1984233965Sjdp/* This mess was copied from the GNU getpagesize.h.  */
19843218822Sdim#if !HAVE_GETPAGESIZE
1984433965Sjdp/* Assume that all systems that can run configure have sys/param.h.  */
19845218822Sdim# if !HAVE_SYS_PARAM_H
1984633965Sjdp#  define HAVE_SYS_PARAM_H 1
1984733965Sjdp# endif
1984833965Sjdp
1984933965Sjdp# ifdef _SC_PAGESIZE
1985033965Sjdp#  define getpagesize() sysconf(_SC_PAGESIZE)
1985133965Sjdp# else /* no _SC_PAGESIZE */
19852218822Sdim#  if HAVE_SYS_PARAM_H
1985333965Sjdp#   include <sys/param.h>
1985433965Sjdp#   ifdef EXEC_PAGESIZE
1985533965Sjdp#    define getpagesize() EXEC_PAGESIZE
1985633965Sjdp#   else /* no EXEC_PAGESIZE */
1985733965Sjdp#    ifdef NBPG
1985833965Sjdp#     define getpagesize() NBPG * CLSIZE
1985933965Sjdp#     ifndef CLSIZE
1986033965Sjdp#      define CLSIZE 1
1986133965Sjdp#     endif /* no CLSIZE */
1986233965Sjdp#    else /* no NBPG */
1986333965Sjdp#     ifdef NBPC
1986433965Sjdp#      define getpagesize() NBPC
1986533965Sjdp#     else /* no NBPC */
1986633965Sjdp#      ifdef PAGESIZE
1986733965Sjdp#       define getpagesize() PAGESIZE
1986833965Sjdp#      endif /* PAGESIZE */
1986933965Sjdp#     endif /* no NBPC */
1987033965Sjdp#    endif /* no NBPG */
1987133965Sjdp#   endif /* no EXEC_PAGESIZE */
1987233965Sjdp#  else /* no HAVE_SYS_PARAM_H */
1987333965Sjdp#   define getpagesize() 8192	/* punt totally */
1987433965Sjdp#  endif /* no HAVE_SYS_PARAM_H */
1987533965Sjdp# endif /* no _SC_PAGESIZE */
1987633965Sjdp
1987733965Sjdp#endif /* no HAVE_GETPAGESIZE */
1987833965Sjdp
1987933965Sjdpint
19880218822Sdimmain ()
1988133965Sjdp{
19882218822Sdim  char *data, *data2, *data3;
19883218822Sdim  int i, pagesize;
19884218822Sdim  int fd;
1988533965Sjdp
19886218822Sdim  pagesize = getpagesize ();
1988733965Sjdp
19888218822Sdim  /* First, make a file with some known garbage in it. */
19889218822Sdim  data = (char *) malloc (pagesize);
19890218822Sdim  if (!data)
19891218822Sdim    exit (1);
19892218822Sdim  for (i = 0; i < pagesize; ++i)
19893218822Sdim    *(data + i) = rand ();
19894218822Sdim  umask (0);
19895218822Sdim  fd = creat ("conftest.mmap", 0600);
19896218822Sdim  if (fd < 0)
19897218822Sdim    exit (1);
19898218822Sdim  if (write (fd, data, pagesize) != pagesize)
19899218822Sdim    exit (1);
19900218822Sdim  close (fd);
1990133965Sjdp
19902218822Sdim  /* Next, try to mmap the file at a fixed address which already has
19903218822Sdim     something else allocated at it.  If we can, also make sure that
19904218822Sdim     we see the same garbage.  */
19905218822Sdim  fd = open ("conftest.mmap", O_RDWR);
19906218822Sdim  if (fd < 0)
19907218822Sdim    exit (1);
19908218822Sdim  data2 = (char *) malloc (2 * pagesize);
19909218822Sdim  if (!data2)
19910218822Sdim    exit (1);
19911218822Sdim  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
19912218822Sdim  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19913218822Sdim		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
19914218822Sdim    exit (1);
19915218822Sdim  for (i = 0; i < pagesize; ++i)
19916218822Sdim    if (*(data + i) != *(data2 + i))
19917218822Sdim      exit (1);
1991833965Sjdp
19919218822Sdim  /* Finally, make sure that changes to the mapped area do not
19920218822Sdim     percolate back to the file as seen by read().  (This is a bug on
19921218822Sdim     some variants of i386 svr4.0.)  */
19922218822Sdim  for (i = 0; i < pagesize; ++i)
19923218822Sdim    *(data2 + i) = *(data2 + i) + 1;
19924218822Sdim  data3 = (char *) malloc (pagesize);
19925218822Sdim  if (!data3)
19926218822Sdim    exit (1);
19927218822Sdim  if (read (fd, data3, pagesize) != pagesize)
19928218822Sdim    exit (1);
19929218822Sdim  for (i = 0; i < pagesize; ++i)
19930218822Sdim    if (*(data + i) != *(data3 + i))
19931218822Sdim      exit (1);
19932218822Sdim  close (fd);
19933218822Sdim  exit (0);
1993433965Sjdp}
19935218822Sdim_ACEOF
19936218822Sdimrm -f conftest$ac_exeext
19937218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19938218822Sdim  (eval $ac_link) 2>&5
19939218822Sdim  ac_status=$?
19940218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19942218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943218822Sdim  (eval $ac_try) 2>&5
19944218822Sdim  ac_status=$?
19945218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946218822Sdim  (exit $ac_status); }; }; then
1994733965Sjdp  ac_cv_func_mmap_fixed_mapped=yes
1994833965Sjdpelse
19949218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
19950218822Sdimecho "$as_me: failed program was:" >&5
19951218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
19952218822Sdim
19953218822Sdim( exit $ac_status )
19954218822Sdimac_cv_func_mmap_fixed_mapped=no
1995533965Sjdpfi
19956218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1995733965Sjdpfi
1995833965Sjdpfi
19959218822Sdimecho "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19960218822Sdimecho "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
19961218822Sdimif test $ac_cv_func_mmap_fixed_mapped = yes; then
1996233965Sjdp
19963218822Sdimcat >>confdefs.h <<\_ACEOF
1996433965Sjdp#define HAVE_MMAP 1
19965218822Sdim_ACEOF
1996633965Sjdp
1996733965Sjdpfi
19968218822Sdimrm -f conftest.mmap
1996933965Sjdp
19970218822Sdim
19971218822Sdim
1997233965Sjdpfor ac_func in madvise mprotect
1997333965Sjdpdo
19974218822Sdimas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19975218822Sdimecho "$as_me:$LINENO: checking for $ac_func" >&5
19976218822Sdimecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19977218822Sdimif eval "test \"\${$as_ac_var+set}\" = set"; then
19978218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1997933965Sjdpelse
19980218822Sdim  cat >conftest.$ac_ext <<_ACEOF
19981218822Sdim/* confdefs.h.  */
19982218822Sdim_ACEOF
19983218822Sdimcat confdefs.h >>conftest.$ac_ext
19984218822Sdimcat >>conftest.$ac_ext <<_ACEOF
19985218822Sdim/* end confdefs.h.  */
19986218822Sdim/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19987218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19988218822Sdim#define $ac_func innocuous_$ac_func
19989218822Sdim
1999033965Sjdp/* System header to define __stub macros and hopefully few prototypes,
19991218822Sdim    which can conflict with char $ac_func (); below.
19992218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19993218822Sdim    <limits.h> exists even on freestanding compilers.  */
19994218822Sdim
19995218822Sdim#ifdef __STDC__
19996218822Sdim# include <limits.h>
19997218822Sdim#else
19998218822Sdim# include <assert.h>
19999218822Sdim#endif
20000218822Sdim
20001218822Sdim#undef $ac_func
20002218822Sdim
2000333965Sjdp/* Override any gcc2 internal prototype to avoid an error.  */
20004218822Sdim#ifdef __cplusplus
20005218822Sdimextern "C"
20006218822Sdim{
20007218822Sdim#endif
2000833965Sjdp/* We use char because int might match the return type of a gcc2
20009218822Sdim   builtin and then its argument prototype would still apply.  */
20010218822Sdimchar $ac_func ();
2001133965Sjdp/* The GNU C library defines this for functions which it implements
2001233965Sjdp    to always fail with ENOSYS.  Some functions are actually named
2001333965Sjdp    something starting with __ and the normal name is an alias.  */
2001433965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2001533965Sjdpchoke me
2001633965Sjdp#else
20017218822Sdimchar (*f) () = $ac_func;
2001833965Sjdp#endif
20019218822Sdim#ifdef __cplusplus
20020218822Sdim}
20021218822Sdim#endif
2002233965Sjdp
20023218822Sdimint
20024218822Sdimmain ()
20025218822Sdim{
20026218822Sdimreturn f != $ac_func;
20027218822Sdim  ;
20028218822Sdim  return 0;
20029218822Sdim}
20030218822Sdim_ACEOF
20031218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
20032218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20033218822Sdim  (eval $ac_link) 2>conftest.er1
20034218822Sdim  ac_status=$?
20035218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
20036218822Sdim  rm -f conftest.er1
20037218822Sdim  cat conftest.err >&5
20038218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039218822Sdim  (exit $ac_status); } &&
20040218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
20041218822Sdim			 || test ! -s conftest.err'
20042218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043218822Sdim  (eval $ac_try) 2>&5
20044218822Sdim  ac_status=$?
20045218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046218822Sdim  (exit $ac_status); }; } &&
20047218822Sdim	 { ac_try='test -s conftest$ac_exeext'
20048218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049218822Sdim  (eval $ac_try) 2>&5
20050218822Sdim  ac_status=$?
20051218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052218822Sdim  (exit $ac_status); }; }; then
20053218822Sdim  eval "$as_ac_var=yes"
2005433965Sjdpelse
20055218822Sdim  echo "$as_me: failed program was:" >&5
20056218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
20057218822Sdim
20058218822Sdimeval "$as_ac_var=no"
2005933965Sjdpfi
20060218822Sdimrm -f conftest.err conftest.$ac_objext \
20061218822Sdim      conftest$ac_exeext conftest.$ac_ext
2006233965Sjdpfi
20063218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20064218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20065218822Sdimif test `eval echo '${'$as_ac_var'}'` = yes; then
20066218822Sdim  cat >>confdefs.h <<_ACEOF
20067218822Sdim#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20068218822Sdim_ACEOF
2006933965Sjdp
2007033965Sjdpfi
2007133965Sjdpdone
2007233965Sjdp
2007333965Sjdpcase ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20074218822Sdim  true+yes )
20075218822Sdimcat >>confdefs.h <<\_ACEOF
2007633965Sjdp#define USE_MMAP 1
20077218822Sdim_ACEOF
2007833965Sjdp ;;
2007933965Sjdpesac
2008033965Sjdp
2008133965Sjdprm -f doc/config.status
20082218822Sdim                                        ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20083218822Sdim
20084218822Sdim
20085218822Sdim          ac_config_commands="$ac_config_commands default"
20086218822Sdim
20087218822Sdim
20088218822Sdim
20089218822Sdim
20090218822Sdim
20091218822Sdim
20092218822Sdimcat >confcache <<\_ACEOF
2009333965Sjdp# This file is a shell script that caches the results of configure
2009433965Sjdp# tests run on this system so they can be shared between configure
20095218822Sdim# scripts and configure runs, see configure's option --config-cache.
20096218822Sdim# It is not useful on other systems.  If it contains results you don't
20097218822Sdim# want to keep, you may remove or edit it.
2009833965Sjdp#
20099218822Sdim# config.status only pays attention to the cache file if you give it
20100218822Sdim# the --recheck option to rerun configure.
2010133965Sjdp#
20102218822Sdim# `ac_cv_env_foo' variables (set or unset) will be overridden when
20103218822Sdim# loading this file, other *unset* `ac_cv_foo' will be assigned the
20104218822Sdim# following values.
20105218822Sdim
20106218822Sdim_ACEOF
20107218822Sdim
2010833965Sjdp# The following way of writing the cache mishandles newlines in values,
2010933965Sjdp# but we know of no workaround that is simple, portable, and efficient.
2011033965Sjdp# So, don't put newlines in cache variables' values.
2011133965Sjdp# Ultrix sh set writes to stderr and can't be redirected directly,
2011233965Sjdp# and sets the high bit in the cache file unless we assign to the vars.
20113218822Sdim{
20114218822Sdim  (set) 2>&1 |
20115218822Sdim    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20116218822Sdim    *ac_space=\ *)
20117218822Sdim      # `set' does not quote correctly, so add quotes (double-quote
20118218822Sdim      # substitution turns \\\\ into \\, and sed turns \\ into \).
20119218822Sdim      sed -n \
20120218822Sdim	"s/'/'\\\\''/g;
20121218822Sdim	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20122218822Sdim      ;;
20123218822Sdim    *)
20124218822Sdim      # `set' quotes correctly as required by POSIX, so do not add quotes.
20125218822Sdim      sed -n \
20126218822Sdim	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20127218822Sdim      ;;
20128218822Sdim    esac;
20129218822Sdim} |
20130218822Sdim  sed '
20131218822Sdim     t clear
20132218822Sdim     : clear
20133218822Sdim     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20134218822Sdim     t end
20135218822Sdim     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20136218822Sdim     : end' >>confcache
20137218822Sdimif diff $cache_file confcache >/dev/null 2>&1; then :; else
2013833965Sjdp  if test -w $cache_file; then
20139218822Sdim    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20140218822Sdim    cat confcache >$cache_file
2014133965Sjdp  else
2014233965Sjdp    echo "not updating unwritable cache $cache_file"
2014333965Sjdp  fi
2014433965Sjdpfi
2014533965Sjdprm -f confcache
2014633965Sjdp
2014733965Sjdptest "x$prefix" = xNONE && prefix=$ac_default_prefix
2014833965Sjdp# Let make expand exec_prefix.
2014933965Sjdptest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2015033965Sjdp
20151218822Sdim# VPATH may cause trouble with some makes, so we remove $(srcdir),
20152218822Sdim# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20153218822Sdim# trailing colons and then remove the whole line if VPATH becomes empty
20154218822Sdim# (actually we leave an empty line to preserve line numbers).
2015533965Sjdpif test "x$srcdir" = x.; then
20156218822Sdim  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20157218822Sdims/:*\$(srcdir):*/:/;
20158218822Sdims/:*\${srcdir}:*/:/;
20159218822Sdims/:*@srcdir@:*/:/;
20160218822Sdims/^\([^=]*=[	 ]*\):*/\1/;
20161218822Sdims/:*$//;
20162218822Sdims/^[^=]*=[	 ]*$//;
20163218822Sdim}'
2016433965Sjdpfi
2016533965Sjdp
2016633965SjdpDEFS=-DHAVE_CONFIG_H
2016733965Sjdp
20168218822Sdimac_libobjs=
20169218822Sdimac_ltlibobjs=
20170218822Sdimfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20171218822Sdim  # 1. Remove the extension, and $U if already installed.
20172218822Sdim  ac_i=`echo "$ac_i" |
20173218822Sdim	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20174218822Sdim  # 2. Add them.
20175218822Sdim  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20176218822Sdim  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20177218822Sdimdone
20178218822SdimLIBOBJS=$ac_libobjs
20179218822Sdim
20180218822SdimLTLIBOBJS=$ac_ltlibobjs
20181218822Sdim
20182218822Sdim
20183218822Sdimif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20184218822Sdim  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20185218822SdimUsually this means the macro was only invoked conditionally." >&5
20186218822Sdimecho "$as_me: error: conditional \"AMDEP\" was never defined.
20187218822SdimUsually this means the macro was only invoked conditionally." >&2;}
20188218822Sdim   { (exit 1); exit 1; }; }
20189218822Sdimfi
20190218822Sdimif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20191218822Sdim  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20192218822SdimUsually this means the macro was only invoked conditionally." >&5
20193218822Sdimecho "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20194218822SdimUsually this means the macro was only invoked conditionally." >&2;}
20195218822Sdim   { (exit 1); exit 1; }; }
20196218822Sdimfi
20197218822Sdimif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20198218822Sdim  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20199218822SdimUsually this means the macro was only invoked conditionally." >&5
20200218822Sdimecho "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20201218822SdimUsually this means the macro was only invoked conditionally." >&2;}
20202218822Sdim   { (exit 1); exit 1; }; }
20203218822Sdimfi
20204218822Sdimif test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20205218822Sdim  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20206218822SdimUsually this means the macro was only invoked conditionally." >&5
20207218822Sdimecho "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20208218822SdimUsually this means the macro was only invoked conditionally." >&2;}
20209218822Sdim   { (exit 1); exit 1; }; }
20210218822Sdimfi
20211218822Sdimif test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20212218822Sdim  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20213218822SdimUsually this means the macro was only invoked conditionally." >&5
20214218822Sdimecho "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20215218822SdimUsually this means the macro was only invoked conditionally." >&2;}
20216218822Sdim   { (exit 1); exit 1; }; }
20217218822Sdimfi
20218218822Sdim
2021933965Sjdp: ${CONFIG_STATUS=./config.status}
20220218822Sdimac_clean_files_save=$ac_clean_files
20221218822Sdimac_clean_files="$ac_clean_files $CONFIG_STATUS"
20222218822Sdim{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20223218822Sdimecho "$as_me: creating $CONFIG_STATUS" >&6;}
20224218822Sdimcat >$CONFIG_STATUS <<_ACEOF
20225218822Sdim#! $SHELL
20226218822Sdim# Generated by $as_me.
2022733965Sjdp# Run this file to recreate the current configuration.
2022833965Sjdp# Compiler output produced by configure, useful for debugging
20229218822Sdim# configure, is in config.log if it exists.
2023033965Sjdp
20231218822Sdimdebug=false
20232218822Sdimac_cs_recheck=false
20233218822Sdimac_cs_silent=false
20234218822SdimSHELL=\${CONFIG_SHELL-$SHELL}
20235218822Sdim_ACEOF
20236218822Sdim
20237218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
20238218822Sdim## --------------------- ##
20239218822Sdim## M4sh Initialization.  ##
20240218822Sdim## --------------------- ##
20241218822Sdim
20242218822Sdim# Be Bourne compatible
20243218822Sdimif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20244218822Sdim  emulate sh
20245218822Sdim  NULLCMD=:
20246218822Sdim  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20247218822Sdim  # is contrary to our usage.  Disable this feature.
20248218822Sdim  alias -g '${1+"$@"}'='"$@"'
20249218822Sdimelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20250218822Sdim  set -o posix
20251218822Sdimfi
20252218822SdimDUALCASE=1; export DUALCASE # for MKS sh
20253218822Sdim
20254218822Sdim# Support unset when possible.
20255218822Sdimif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20256218822Sdim  as_unset=unset
20257218822Sdimelse
20258218822Sdim  as_unset=false
20259218822Sdimfi
20260218822Sdim
20261218822Sdim
20262218822Sdim# Work around bugs in pre-3.0 UWIN ksh.
20263218822Sdim$as_unset ENV MAIL MAILPATH
20264218822SdimPS1='$ '
20265218822SdimPS2='> '
20266218822SdimPS4='+ '
20267218822Sdim
20268218822Sdim# NLS nuisances.
20269218822Sdimfor as_var in \
20270218822Sdim  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20271218822Sdim  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20272218822Sdim  LC_TELEPHONE LC_TIME
2027333965Sjdpdo
20274218822Sdim  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20275218822Sdim    eval $as_var=C; export $as_var
20276218822Sdim  else
20277218822Sdim    $as_unset $as_var
20278218822Sdim  fi
2027933965Sjdpdone
2028033965Sjdp
20281218822Sdim# Required to use basename.
20282218822Sdimif expr a : '\(a\)' >/dev/null 2>&1; then
20283218822Sdim  as_expr=expr
20284218822Sdimelse
20285218822Sdim  as_expr=false
20286218822Sdimfi
2028733965Sjdp
20288218822Sdimif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20289218822Sdim  as_basename=basename
20290218822Sdimelse
20291218822Sdim  as_basename=false
20292218822Sdimfi
2029333965Sjdp
2029433965Sjdp
20295218822Sdim# Name of the executable.
20296218822Sdimas_me=`$as_basename "$0" ||
20297218822Sdim$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20298218822Sdim	 X"$0" : 'X\(//\)$' \| \
20299218822Sdim	 X"$0" : 'X\(/\)$' \| \
20300218822Sdim	 .     : '\(.\)' 2>/dev/null ||
20301218822Sdimecho X/"$0" |
20302218822Sdim    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20303218822Sdim  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20304218822Sdim  	  /^X\/\(\/\).*/{ s//\1/; q; }
20305218822Sdim  	  s/.*/./; q'`
2030633965Sjdp
2030733965Sjdp
20308218822Sdim# PATH needs CR, and LINENO needs CR and PATH.
20309218822Sdim# Avoid depending upon Character Ranges.
20310218822Sdimas_cr_letters='abcdefghijklmnopqrstuvwxyz'
20311218822Sdimas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20312218822Sdimas_cr_Letters=$as_cr_letters$as_cr_LETTERS
20313218822Sdimas_cr_digits='0123456789'
20314218822Sdimas_cr_alnum=$as_cr_Letters$as_cr_digits
20315218822Sdim
20316218822Sdim# The user is always right.
20317218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
20318218822Sdim  echo "#! /bin/sh" >conf$$.sh
20319218822Sdim  echo  "exit 0"   >>conf$$.sh
20320218822Sdim  chmod +x conf$$.sh
20321218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20322218822Sdim    PATH_SEPARATOR=';'
2032333965Sjdp  else
20324218822Sdim    PATH_SEPARATOR=:
2032533965Sjdp  fi
20326218822Sdim  rm -f conf$$.sh
20327218822Sdimfi
20328218822Sdim
20329218822Sdim
20330218822Sdim  as_lineno_1=$LINENO
20331218822Sdim  as_lineno_2=$LINENO
20332218822Sdim  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20333218822Sdim  test "x$as_lineno_1" != "x$as_lineno_2" &&
20334218822Sdim  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20335218822Sdim  # Find who we are.  Look in the path if we contain no path at all
20336218822Sdim  # relative or not.
20337218822Sdim  case $0 in
20338218822Sdim    *[\\/]* ) as_myself=$0 ;;
20339218822Sdim    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20340218822Sdimfor as_dir in $PATH
20341218822Sdimdo
20342218822Sdim  IFS=$as_save_IFS
20343218822Sdim  test -z "$as_dir" && as_dir=.
20344218822Sdim  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20345218822Sdimdone
20346218822Sdim
20347218822Sdim       ;;
20348218822Sdim  esac
20349218822Sdim  # We did not find ourselves, most probably we were run as `sh COMMAND'
20350218822Sdim  # in which case we are not to be found in the path.
20351218822Sdim  if test "x$as_myself" = x; then
20352218822Sdim    as_myself=$0
20353218822Sdim  fi
20354218822Sdim  if test ! -f "$as_myself"; then
20355218822Sdim    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20356218822Sdimecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20357218822Sdim   { (exit 1); exit 1; }; }
20358218822Sdim  fi
20359218822Sdim  case $CONFIG_SHELL in
20360218822Sdim  '')
20361218822Sdim    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20362218822Sdimfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20363218822Sdimdo
20364218822Sdim  IFS=$as_save_IFS
20365218822Sdim  test -z "$as_dir" && as_dir=.
20366218822Sdim  for as_base in sh bash ksh sh5; do
20367218822Sdim	 case $as_dir in
20368218822Sdim	 /*)
20369218822Sdim	   if ("$as_dir/$as_base" -c '
20370218822Sdim  as_lineno_1=$LINENO
20371218822Sdim  as_lineno_2=$LINENO
20372218822Sdim  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20373218822Sdim  test "x$as_lineno_1" != "x$as_lineno_2" &&
20374218822Sdim  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20375218822Sdim	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20376218822Sdim	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20377218822Sdim	     CONFIG_SHELL=$as_dir/$as_base
20378218822Sdim	     export CONFIG_SHELL
20379218822Sdim	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20380218822Sdim	   fi;;
20381218822Sdim	 esac
20382218822Sdim       done
20383218822Sdimdone
20384218822Sdim;;
20385218822Sdim  esac
20386218822Sdim
20387218822Sdim  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20388218822Sdim  # uniformly replaced by the line number.  The first 'sed' inserts a
20389218822Sdim  # line-number line before each line; the second 'sed' does the real
20390218822Sdim  # work.  The second script uses 'N' to pair each line-number line
20391218822Sdim  # with the numbered line, and appends trailing '-' during
20392218822Sdim  # substitution so that $LINENO is not a special case at line end.
20393218822Sdim  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20394218822Sdim  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20395218822Sdim  sed '=' <$as_myself |
20396218822Sdim    sed '
20397218822Sdim      N
20398218822Sdim      s,$,-,
20399218822Sdim      : loop
20400218822Sdim      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20401218822Sdim      t loop
20402218822Sdim      s,-$,,
20403218822Sdim      s,^['$as_cr_digits']*\n,,
20404218822Sdim    ' >$as_me.lineno &&
20405218822Sdim  chmod +x $as_me.lineno ||
20406218822Sdim    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20407218822Sdimecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20408218822Sdim   { (exit 1); exit 1; }; }
20409218822Sdim
20410218822Sdim  # Don't try to exec as it changes $[0], causing all sort of problems
20411218822Sdim  # (the dirname of $[0] is not the place where we might find the
20412218822Sdim  # original and so on.  Autoconf is especially sensible to this).
20413218822Sdim  . ./$as_me.lineno
20414218822Sdim  # Exit status is that of the last command.
20415218822Sdim  exit
20416218822Sdim}
20417218822Sdim
20418218822Sdim
20419218822Sdimcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20420218822Sdim  *c*,-n*) ECHO_N= ECHO_C='
20421218822Sdim' ECHO_T='	' ;;
20422218822Sdim  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20423218822Sdim  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20424218822Sdimesac
20425218822Sdim
20426218822Sdimif expr a : '\(a\)' >/dev/null 2>&1; then
20427218822Sdim  as_expr=expr
20428218822Sdimelse
20429218822Sdim  as_expr=false
20430218822Sdimfi
20431218822Sdim
20432218822Sdimrm -f conf$$ conf$$.exe conf$$.file
20433218822Sdimecho >conf$$.file
20434218822Sdimif ln -s conf$$.file conf$$ 2>/dev/null; then
20435218822Sdim  # We could just check for DJGPP; but this test a) works b) is more generic
20436218822Sdim  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20437218822Sdim  if test -f conf$$.exe; then
20438218822Sdim    # Don't use ln at all; we don't have any links
20439218822Sdim    as_ln_s='cp -p'
2044033965Sjdp  else
20441218822Sdim    as_ln_s='ln -s'
2044233965Sjdp  fi
20443218822Sdimelif ln conf$$.file conf$$ 2>/dev/null; then
20444218822Sdim  as_ln_s=ln
20445218822Sdimelse
20446218822Sdim  as_ln_s='cp -p'
20447218822Sdimfi
20448218822Sdimrm -f conf$$ conf$$.exe conf$$.file
20449218822Sdim
20450218822Sdimif mkdir -p . 2>/dev/null; then
20451218822Sdim  as_mkdir_p=:
20452218822Sdimelse
20453218822Sdim  test -d ./-p && rmdir ./-p
20454218822Sdim  as_mkdir_p=false
20455218822Sdimfi
20456218822Sdim
20457218822Sdimas_executable_p="test -f"
20458218822Sdim
20459218822Sdim# Sed expression to map a string onto a valid CPP name.
20460218822Sdimas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20461218822Sdim
20462218822Sdim# Sed expression to map a string onto a valid variable name.
20463218822Sdimas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20464218822Sdim
20465218822Sdim
20466218822Sdim# IFS
20467218822Sdim# We need space, tab and new line, in precisely that order.
20468218822Sdimas_nl='
20469218822Sdim'
20470218822SdimIFS=" 	$as_nl"
20471218822Sdim
20472218822Sdim# CDPATH.
20473218822Sdim$as_unset CDPATH
20474218822Sdim
20475218822Sdimexec 6>&1
20476218822Sdim
20477218822Sdim# Open the log real soon, to keep \$[0] and so on meaningful, and to
20478218822Sdim# report actual input values of CONFIG_FILES etc. instead of their
20479218822Sdim# values after options handling.  Logging --version etc. is OK.
20480218822Sdimexec 5>>config.log
20481218822Sdim{
20482218822Sdim  echo
20483218822Sdim  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20484218822Sdim## Running $as_me. ##
20485218822Sdim_ASBOX
20486218822Sdim} >&5
20487218822Sdimcat >&5 <<_CSEOF
20488218822Sdim
20489218822SdimThis file was extended by $as_me, which was
20490218822Sdimgenerated by GNU Autoconf 2.59.  Invocation command line was
20491218822Sdim
20492218822Sdim  CONFIG_FILES    = $CONFIG_FILES
20493218822Sdim  CONFIG_HEADERS  = $CONFIG_HEADERS
20494218822Sdim  CONFIG_LINKS    = $CONFIG_LINKS
20495218822Sdim  CONFIG_COMMANDS = $CONFIG_COMMANDS
20496218822Sdim  $ $0 $@
20497218822Sdim
20498218822Sdim_CSEOF
20499218822Sdimecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20500218822Sdimecho >&5
20501218822Sdim_ACEOF
20502218822Sdim
20503218822Sdim# Files that config.status was made for.
20504218822Sdimif test -n "$ac_config_files"; then
20505218822Sdim  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20506218822Sdimfi
20507218822Sdim
20508218822Sdimif test -n "$ac_config_headers"; then
20509218822Sdim  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20510218822Sdimfi
20511218822Sdim
20512218822Sdimif test -n "$ac_config_links"; then
20513218822Sdim  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20514218822Sdimfi
20515218822Sdim
20516218822Sdimif test -n "$ac_config_commands"; then
20517218822Sdim  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20518218822Sdimfi
20519218822Sdim
20520218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
20521218822Sdim
20522218822Sdimac_cs_usage="\
20523218822Sdim\`$as_me' instantiates files from templates according to the
20524218822Sdimcurrent configuration.
20525218822Sdim
20526218822SdimUsage: $0 [OPTIONS] [FILE]...
20527218822Sdim
20528218822Sdim  -h, --help       print this help, then exit
20529218822Sdim  -V, --version    print version number, then exit
20530218822Sdim  -q, --quiet      do not print progress messages
20531218822Sdim  -d, --debug      don't remove temporary files
20532218822Sdim      --recheck    update $as_me by reconfiguring in the same conditions
20533218822Sdim  --file=FILE[:TEMPLATE]
20534218822Sdim		   instantiate the configuration file FILE
20535218822Sdim  --header=FILE[:TEMPLATE]
20536218822Sdim		   instantiate the configuration header FILE
20537218822Sdim
20538218822SdimConfiguration files:
20539218822Sdim$config_files
20540218822Sdim
20541218822SdimConfiguration headers:
20542218822Sdim$config_headers
20543218822Sdim
20544218822SdimConfiguration commands:
20545218822Sdim$config_commands
20546218822Sdim
20547218822SdimReport bugs to <bug-autoconf@gnu.org>."
20548218822Sdim_ACEOF
20549218822Sdim
20550218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
20551218822Sdimac_cs_version="\\
20552218822Sdimconfig.status
20553218822Sdimconfigured by $0, generated by GNU Autoconf 2.59,
20554218822Sdim  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20555218822Sdim
20556218822SdimCopyright (C) 2003 Free Software Foundation, Inc.
20557218822SdimThis config.status script is free software; the Free Software Foundation
20558218822Sdimgives unlimited permission to copy, distribute and modify it."
20559218822Sdimsrcdir=$srcdir
20560218822SdimINSTALL="$INSTALL"
20561218822Sdim_ACEOF
20562218822Sdim
20563218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
20564218822Sdim# If no file are specified by the user, then we need to provide default
20565218822Sdim# value.  By we need to know if files were specified by the user.
20566218822Sdimac_need_defaults=:
20567218822Sdimwhile test $# != 0
20568218822Sdimdo
20569218822Sdim  case $1 in
20570218822Sdim  --*=*)
20571218822Sdim    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20572218822Sdim    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20573218822Sdim    ac_shift=:
20574218822Sdim    ;;
20575218822Sdim  -*)
20576218822Sdim    ac_option=$1
20577218822Sdim    ac_optarg=$2
20578218822Sdim    ac_shift=shift
20579218822Sdim    ;;
20580218822Sdim  *) # This is not an option, so the user has probably given explicit
20581218822Sdim     # arguments.
20582218822Sdim     ac_option=$1
20583218822Sdim     ac_need_defaults=false;;
20584218822Sdim  esac
20585218822Sdim
20586218822Sdim  case $ac_option in
20587218822Sdim  # Handling of the options.
20588218822Sdim_ACEOF
20589218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
20590218822Sdim  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20591218822Sdim    ac_cs_recheck=: ;;
20592218822Sdim  --version | --vers* | -V )
20593218822Sdim    echo "$ac_cs_version"; exit 0 ;;
20594218822Sdim  --he | --h)
20595218822Sdim    # Conflict between --help and --header
20596218822Sdim    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20597218822SdimTry \`$0 --help' for more information." >&5
20598218822Sdimecho "$as_me: error: ambiguous option: $1
20599218822SdimTry \`$0 --help' for more information." >&2;}
20600218822Sdim   { (exit 1); exit 1; }; };;
20601218822Sdim  --help | --hel | -h )
20602218822Sdim    echo "$ac_cs_usage"; exit 0 ;;
20603218822Sdim  --debug | --d* | -d )
20604218822Sdim    debug=: ;;
20605218822Sdim  --file | --fil | --fi | --f )
20606218822Sdim    $ac_shift
20607218822Sdim    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20608218822Sdim    ac_need_defaults=false;;
20609218822Sdim  --header | --heade | --head | --hea )
20610218822Sdim    $ac_shift
20611218822Sdim    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20612218822Sdim    ac_need_defaults=false;;
20613218822Sdim  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20614218822Sdim  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20615218822Sdim    ac_cs_silent=: ;;
20616218822Sdim
20617218822Sdim  # This is an error.
20618218822Sdim  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20619218822SdimTry \`$0 --help' for more information." >&5
20620218822Sdimecho "$as_me: error: unrecognized option: $1
20621218822SdimTry \`$0 --help' for more information." >&2;}
20622218822Sdim   { (exit 1); exit 1; }; } ;;
20623218822Sdim
20624218822Sdim  *) ac_config_targets="$ac_config_targets $1" ;;
20625218822Sdim
20626218822Sdim  esac
20627218822Sdim  shift
2062833965Sjdpdone
20629218822Sdim
20630218822Sdimac_configure_extra_args=
20631218822Sdim
20632218822Sdimif $ac_cs_silent; then
20633218822Sdim  exec 6>/dev/null
20634218822Sdim  ac_configure_extra_args="$ac_configure_extra_args --silent"
2063533965Sjdpfi
2063633965Sjdp
20637218822Sdim_ACEOF
20638218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
20639218822Sdimif \$ac_cs_recheck; then
20640218822Sdim  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20641218822Sdim  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20642218822Sdimfi
2064333965Sjdp
20644218822Sdim_ACEOF
20645218822Sdim
20646218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
20647218822Sdim#
20648218822Sdim# INIT-COMMANDS section.
20649218822Sdim#
20650218822Sdim
20651218822SdimAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20652218822Sdim
20653218822Sdim
20654218822Sdim# The HP-UX ksh and POSIX shell print the target directory to stdout
20655218822Sdim# if CDPATH is set.
20656218822Sdim(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20657218822Sdim
20658218822Sdimsed_quote_subst='$sed_quote_subst'
20659218822Sdimdouble_quote_subst='$double_quote_subst'
20660218822Sdimdelay_variable_subst='$delay_variable_subst'
20661218822Sdimenable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20662218822Sdimmacro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20663218822Sdimmacro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20664218822Sdimenable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20665218822Sdimpic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20666218822Sdimenable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20667218822Sdimhost_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20668218822Sdimhost='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20669218822Sdimhost_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20670218822Sdimbuild_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20671218822Sdimbuild='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20672218822Sdimbuild_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20673218822SdimSED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20674218822SdimXsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20675218822SdimGREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20676218822SdimEGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20677218822SdimFGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20678218822SdimLD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20679218822SdimNM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20680218822SdimLN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20681218822Sdimmax_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20682218822Sdimac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20683218822Sdimexeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20684218822Sdimlt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20685218822Sdimlt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20686218822Sdimlt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20687218822Sdimreload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20688218822Sdimreload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20689218822Sdimdeplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20690218822Sdimfile_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20691218822SdimAR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20692218822SdimAR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20693218822SdimSTRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20694218822SdimRANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20695218822Sdimold_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20696218822Sdimold_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20697218822Sdimold_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20698218822SdimCC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20699218822SdimCFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20700218822Sdimcompiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20701218822SdimGCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20702218822Sdimlt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20703218822Sdimlt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20704218822Sdimlt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20705218822Sdimobjdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20706218822SdimSHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20707218822SdimECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20708218822SdimMAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20709218822Sdimlt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20710218822Sdimlt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20711218822Sdimlt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20712218822Sdimlt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20713218822Sdimlt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20714218822Sdimneed_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20715218822Sdimlibext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20716218822Sdimshrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20717218822Sdimextract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20718218822Sdimarchive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20719218822Sdimenable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20720218822Sdimexport_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20721218822Sdimwhole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20722218822Sdimcompiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20723218822Sdimold_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20724218822Sdimold_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20725218822Sdimarchive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20726218822Sdimarchive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20727218822Sdimmodule_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20728218822Sdimmodule_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20729218822Sdimwith_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20730218822Sdimallow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20731218822Sdimno_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20732218822Sdimhardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20733218822Sdimhardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20734218822Sdimhardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20735218822Sdimhardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20736218822Sdimhardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20737218822Sdimhardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20738218822Sdimhardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20739218822Sdimhardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20740218822Sdiminherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20741218822Sdimlink_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20742218822Sdimfix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20743218822Sdimalways_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20744218822Sdimexport_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20745218822Sdimexclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20746218822Sdiminclude_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20747218822Sdimprelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20748218822Sdimfile_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20749218822Sdimvariables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20750218822Sdimneed_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20751218822Sdimneed_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20752218822Sdimversion_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20753218822Sdimrunpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20754218822Sdimshlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20755218822Sdimshlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20756218822Sdimlibname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20757218822Sdimlibrary_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20758218822Sdimsoname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20759218822Sdimpostinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20760218822Sdimpostuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20761218822Sdimfinish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20762218822Sdimfinish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20763218822Sdimhardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20764218822Sdimsys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20765218822Sdimsys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20766218822Sdimhardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20767218822Sdimenable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20768218822Sdimenable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20769218822Sdimenable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20770218822Sdimold_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20771218822Sdimstriplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20772218822Sdim
20773218822SdimLTCC='$LTCC'
20774218822SdimLTCFLAGS='$LTCFLAGS'
20775218822Sdimcompiler='$compiler_DEFAULT'
20776218822Sdim
20777218822Sdim# Quote evaled strings.
20778218822Sdimfor var in SED \
20779218822SdimGREP \
20780218822SdimEGREP \
20781218822SdimFGREP \
20782218822SdimLD \
20783218822SdimNM \
20784218822SdimLN_S \
20785218822Sdimlt_SP2NL \
20786218822Sdimlt_NL2SP \
20787218822Sdimreload_flag \
20788218822Sdimdeplibs_check_method \
20789218822Sdimfile_magic_cmd \
20790218822SdimAR \
20791218822SdimAR_FLAGS \
20792218822SdimSTRIP \
20793218822SdimRANLIB \
20794218822SdimCC \
20795218822SdimCFLAGS \
20796218822Sdimcompiler \
20797218822Sdimlt_cv_sys_global_symbol_pipe \
20798218822Sdimlt_cv_sys_global_symbol_to_cdecl \
20799218822Sdimlt_cv_sys_global_symbol_to_c_name_address \
20800218822SdimSHELL \
20801218822SdimECHO \
20802218822Sdimlt_prog_compiler_no_builtin_flag \
20803218822Sdimlt_prog_compiler_wl \
20804218822Sdimlt_prog_compiler_pic \
20805218822Sdimlt_prog_compiler_static \
20806218822Sdimlt_cv_prog_compiler_c_o \
20807218822Sdimneed_locks \
20808218822Sdimshrext_cmds \
20809218822Sdimexport_dynamic_flag_spec \
20810218822Sdimwhole_archive_flag_spec \
20811218822Sdimcompiler_needs_object \
20812218822Sdimwith_gnu_ld \
20813218822Sdimallow_undefined_flag \
20814218822Sdimno_undefined_flag \
20815218822Sdimhardcode_libdir_flag_spec \
20816218822Sdimhardcode_libdir_flag_spec_ld \
20817218822Sdimhardcode_libdir_separator \
20818218822Sdimfix_srcfile_path \
20819218822Sdimexclude_expsyms \
20820218822Sdiminclude_expsyms \
20821218822Sdimfile_list_spec \
20822218822Sdimvariables_saved_for_relink \
20823218822Sdimlibname_spec \
20824218822Sdimlibrary_names_spec \
20825218822Sdimsoname_spec \
20826218822Sdimfinish_eval \
20827218822Sdimold_striplib \
20828218822Sdimstriplib; do
20829218822Sdim    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20830218822Sdim    *[\\\\\\\`\\"\\\$]*)
20831218822Sdim      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20832218822Sdim      ;;
20833218822Sdim    *)
20834218822Sdim      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20835218822Sdim      ;;
20836218822Sdim    esac
20837218822Sdimdone
20838218822Sdim
20839218822Sdim# Double-quote double-evaled strings.
20840218822Sdimfor var in reload_cmds \
20841218822Sdimold_postinstall_cmds \
20842218822Sdimold_postuninstall_cmds \
20843218822Sdimold_archive_cmds \
20844218822Sdimextract_expsyms_cmds \
20845218822Sdimold_archive_from_new_cmds \
20846218822Sdimold_archive_from_expsyms_cmds \
20847218822Sdimarchive_cmds \
20848218822Sdimarchive_expsym_cmds \
20849218822Sdimmodule_cmds \
20850218822Sdimmodule_expsym_cmds \
20851218822Sdimexport_symbols_cmds \
20852218822Sdimprelink_cmds \
20853218822Sdimpostinstall_cmds \
20854218822Sdimpostuninstall_cmds \
20855218822Sdimfinish_cmds \
20856218822Sdimsys_lib_search_path_spec \
20857218822Sdimsys_lib_dlsearch_path_spec; do
20858218822Sdim    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20859218822Sdim    *[\\\\\\\`\\"\\\$]*)
20860218822Sdim      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20861218822Sdim      ;;
20862218822Sdim    *)
20863218822Sdim      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20864218822Sdim      ;;
20865218822Sdim    esac
20866218822Sdimdone
20867218822Sdim
20868218822Sdim# Fix-up fallback echo if it was mangled by the above quoting rules.
20869218822Sdimcase \$lt_ECHO in
20870218822Sdim*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20871218822Sdim  ;;
20872218822Sdimesac
20873218822Sdim
20874218822Sdimac_aux_dir='$ac_aux_dir'
20875218822Sdimxsi_shell='$xsi_shell'
20876218822Sdimlt_shell_append='$lt_shell_append'
20877218822Sdim
20878218822Sdim# See if we are running on zsh, and set the options which allow our
20879218822Sdim# commands through without removal of \ escapes INIT.
20880218822Sdimif test -n "\${ZSH_VERSION+set}" ; then
20881218822Sdim   setopt NO_GLOB_SUBST
20882218822Sdimfi
20883218822Sdim
20884218822Sdim
20885218822Sdim    PACKAGE='$PACKAGE'
20886218822Sdim    VERSION='$VERSION'
20887218822Sdim    TIMESTAMP='$TIMESTAMP'
20888218822Sdim    RM='$RM'
20889218822Sdim    ofile='$ofile'
20890218822Sdim
20891218822Sdim
20892218822Sdim
20893218822Sdim# Capture the value of obsolete ALL_LINGUAS because we need it to compute
20894218822Sdim    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20895218822Sdim    # from automake.
20896218822Sdim    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20897218822Sdim    # Capture the value of LINGUAS because we need it to compute CATALOGS.
20898218822Sdim    LINGUAS="${LINGUAS-%UNSET%}"
20899218822Sdim
20900218822Sdim
20901218822SdimGCC="$GCC"
20902218822SdimCC="$CC"
20903218822Sdimacx_cv_header_stdint="$acx_cv_header_stdint"
20904218822Sdimacx_cv_type_int8_t="$acx_cv_type_int8_t"
20905218822Sdimacx_cv_type_int16_t="$acx_cv_type_int16_t"
20906218822Sdimacx_cv_type_int32_t="$acx_cv_type_int32_t"
20907218822Sdimacx_cv_type_int64_t="$acx_cv_type_int64_t"
20908218822Sdimacx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20909218822Sdimac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20910218822Sdimac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20911218822Sdimac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20912218822Sdimac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20913218822Sdimac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20914218822Sdimac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20915218822Sdimac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20916218822Sdimac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20917218822Sdim
20918218822Sdim
20919218822Sdim
20920218822Sdim_ACEOF
20921218822Sdim
20922218822Sdim
20923218822Sdim
20924218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
20925218822Sdimfor ac_config_target in $ac_config_targets
20926218822Sdimdo
20927218822Sdim  case "$ac_config_target" in
20928218822Sdim  # Handling of arguments.
20929218822Sdim  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20930218822Sdim  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20931218822Sdim  "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
20932218822Sdim  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20933218822Sdim  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20934218822Sdim  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20935218822Sdim  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20936218822Sdim  "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
20937218822Sdim  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20938218822Sdim  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20939218822Sdim  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20940218822Sdimecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
20941218822Sdim   { (exit 1); exit 1; }; };;
2094233965Sjdp  esac
20943218822Sdimdone
2094433965Sjdp
20945218822Sdim# If the user did not use the arguments to specify the items to instantiate,
20946218822Sdim# then the envvar interface is used.  Set only those that are not.
20947218822Sdim# We use the long form for the default assignment because of an extremely
20948218822Sdim# bizarre bug on SunOS 4.1.3.
20949218822Sdimif $ac_need_defaults; then
20950218822Sdim  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20951218822Sdim  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20952218822Sdim  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20953218822Sdimfi
2095433965Sjdp
20955218822Sdim# Have a temporary directory for convenience.  Make it in the build tree
20956218822Sdim# simply because there is no reason to put it here, and in addition,
20957218822Sdim# creating and moving files from /tmp can sometimes cause problems.
20958218822Sdim# Create a temporary directory, and hook for its removal unless debugging.
20959218822Sdim$debug ||
20960218822Sdim{
20961218822Sdim  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20962218822Sdim  trap '{ (exit 1); exit 1; }' 1 2 13 15
20963218822Sdim}
20964218822Sdim
20965218822Sdim# Create a (secure) tmp directory for tmp files.
20966218822Sdim
20967218822Sdim{
20968218822Sdim  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20969218822Sdim  test -n "$tmp" && test -d "$tmp"
20970218822Sdim}  ||
20971218822Sdim{
20972218822Sdim  tmp=./confstat$$-$RANDOM
20973218822Sdim  (umask 077 && mkdir $tmp)
20974218822Sdim} ||
20975218822Sdim{
20976218822Sdim   echo "$me: cannot create a temporary directory in ." >&2
20977218822Sdim   { (exit 1); exit 1; }
20978218822Sdim}
20979218822Sdim
20980218822Sdim_ACEOF
20981218822Sdim
20982218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
20983218822Sdim
20984218822Sdim#
20985218822Sdim# CONFIG_FILES section.
20986218822Sdim#
20987218822Sdim
20988218822Sdim# No need to generate the scripts if there are no CONFIG_FILES.
20989218822Sdim# This happens for instance when ./config.status config.h
20990218822Sdimif test -n "\$CONFIG_FILES"; then
20991218822Sdim  # Protect against being on the right side of a sed subst in config.status.
20992218822Sdim  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20993218822Sdim   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20994218822Sdims,@SHELL@,$SHELL,;t t
20995218822Sdims,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20996218822Sdims,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20997218822Sdims,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20998218822Sdims,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20999218822Sdims,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21000218822Sdims,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21001218822Sdims,@exec_prefix@,$exec_prefix,;t t
21002218822Sdims,@prefix@,$prefix,;t t
21003218822Sdims,@program_transform_name@,$program_transform_name,;t t
21004218822Sdims,@bindir@,$bindir,;t t
21005218822Sdims,@sbindir@,$sbindir,;t t
21006218822Sdims,@libexecdir@,$libexecdir,;t t
21007218822Sdims,@datadir@,$datadir,;t t
21008218822Sdims,@sysconfdir@,$sysconfdir,;t t
21009218822Sdims,@sharedstatedir@,$sharedstatedir,;t t
21010218822Sdims,@localstatedir@,$localstatedir,;t t
21011218822Sdims,@libdir@,$libdir,;t t
21012218822Sdims,@includedir@,$includedir,;t t
21013218822Sdims,@oldincludedir@,$oldincludedir,;t t
21014218822Sdims,@infodir@,$infodir,;t t
21015218822Sdims,@mandir@,$mandir,;t t
21016218822Sdims,@build_alias@,$build_alias,;t t
21017218822Sdims,@host_alias@,$host_alias,;t t
21018218822Sdims,@target_alias@,$target_alias,;t t
21019218822Sdims,@DEFS@,$DEFS,;t t
21020218822Sdims,@ECHO_C@,$ECHO_C,;t t
21021218822Sdims,@ECHO_N@,$ECHO_N,;t t
21022218822Sdims,@ECHO_T@,$ECHO_T,;t t
21023218822Sdims,@LIBS@,$LIBS,;t t
21024218822Sdims,@build@,$build,;t t
21025218822Sdims,@build_cpu@,$build_cpu,;t t
21026218822Sdims,@build_vendor@,$build_vendor,;t t
21027218822Sdims,@build_os@,$build_os,;t t
21028218822Sdims,@host@,$host,;t t
21029218822Sdims,@host_cpu@,$host_cpu,;t t
21030218822Sdims,@host_vendor@,$host_vendor,;t t
21031218822Sdims,@host_os@,$host_os,;t t
21032218822Sdims,@target@,$target,;t t
21033218822Sdims,@target_cpu@,$target_cpu,;t t
21034218822Sdims,@target_vendor@,$target_vendor,;t t
21035218822Sdims,@target_os@,$target_os,;t t
21036218822Sdims,@CC@,$CC,;t t
21037218822Sdims,@CFLAGS@,$CFLAGS,;t t
21038218822Sdims,@LDFLAGS@,$LDFLAGS,;t t
21039218822Sdims,@CPPFLAGS@,$CPPFLAGS,;t t
21040218822Sdims,@ac_ct_CC@,$ac_ct_CC,;t t
21041218822Sdims,@EXEEXT@,$EXEEXT,;t t
21042218822Sdims,@OBJEXT@,$OBJEXT,;t t
21043218822Sdims,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21044218822Sdims,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21045218822Sdims,@INSTALL_DATA@,$INSTALL_DATA,;t t
21046218822Sdims,@CYGPATH_W@,$CYGPATH_W,;t t
21047218822Sdims,@PACKAGE@,$PACKAGE,;t t
21048218822Sdims,@VERSION@,$VERSION,;t t
21049218822Sdims,@ACLOCAL@,$ACLOCAL,;t t
21050218822Sdims,@AUTOCONF@,$AUTOCONF,;t t
21051218822Sdims,@AUTOMAKE@,$AUTOMAKE,;t t
21052218822Sdims,@AUTOHEADER@,$AUTOHEADER,;t t
21053218822Sdims,@MAKEINFO@,$MAKEINFO,;t t
21054218822Sdims,@install_sh@,$install_sh,;t t
21055218822Sdims,@STRIP@,$STRIP,;t t
21056218822Sdims,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21057218822Sdims,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21058218822Sdims,@mkdir_p@,$mkdir_p,;t t
21059218822Sdims,@AWK@,$AWK,;t t
21060218822Sdims,@SET_MAKE@,$SET_MAKE,;t t
21061218822Sdims,@am__leading_dot@,$am__leading_dot,;t t
21062218822Sdims,@AMTAR@,$AMTAR,;t t
21063218822Sdims,@am__tar@,$am__tar,;t t
21064218822Sdims,@am__untar@,$am__untar,;t t
21065218822Sdims,@DEPDIR@,$DEPDIR,;t t
21066218822Sdims,@am__include@,$am__include,;t t
21067218822Sdims,@am__quote@,$am__quote,;t t
21068218822Sdims,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21069218822Sdims,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21070218822Sdims,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21071218822Sdims,@CCDEPMODE@,$CCDEPMODE,;t t
21072218822Sdims,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21073218822Sdims,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21074218822Sdims,@AR@,$AR,;t t
21075218822Sdims,@ac_ct_AR@,$ac_ct_AR,;t t
21076218822Sdims,@RANLIB@,$RANLIB,;t t
21077218822Sdims,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21078218822Sdims,@LIBTOOL@,$LIBTOOL,;t t
21079218822Sdims,@SED@,$SED,;t t
21080218822Sdims,@EGREP@,$EGREP,;t t
21081218822Sdims,@FGREP@,$FGREP,;t t
21082218822Sdims,@GREP@,$GREP,;t t
21083218822Sdims,@LD@,$LD,;t t
21084218822Sdims,@DUMPBIN@,$DUMPBIN,;t t
21085218822Sdims,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21086218822Sdims,@NM@,$NM,;t t
21087218822Sdims,@LN_S@,$LN_S,;t t
21088218822Sdims,@lt_ECHO@,$lt_ECHO,;t t
21089218822Sdims,@CPP@,$CPP,;t t
21090218822Sdims,@DEBUGDIR@,$DEBUGDIR,;t t
21091218822Sdims,@PKGVERSION@,$PKGVERSION,;t t
21092218822Sdims,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21093218822Sdims,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21094218822Sdims,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21095218822Sdims,@NO_WERROR@,$NO_WERROR,;t t
21096218822Sdims,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21097218822Sdims,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21098218822Sdims,@MAINT@,$MAINT,;t t
21099218822Sdims,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21100218822Sdims,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
21101218822Sdims,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21102218822Sdims,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
21103218822Sdims,@host_noncanonical@,$host_noncanonical,;t t
21104218822Sdims,@target_noncanonical@,$target_noncanonical,;t t
21105218822Sdims,@bfdlibdir@,$bfdlibdir,;t t
21106218822Sdims,@bfdincludedir@,$bfdincludedir,;t t
21107218822Sdims,@USE_NLS@,$USE_NLS,;t t
21108218822Sdims,@LIBINTL@,$LIBINTL,;t t
21109218822Sdims,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21110218822Sdims,@INCINTL@,$INCINTL,;t t
21111218822Sdims,@XGETTEXT@,$XGETTEXT,;t t
21112218822Sdims,@GMSGFMT@,$GMSGFMT,;t t
21113218822Sdims,@POSUB@,$POSUB,;t t
21114218822Sdims,@CATALOGS@,$CATALOGS,;t t
21115218822Sdims,@DATADIRNAME@,$DATADIRNAME,;t t
21116218822Sdims,@INSTOBJEXT@,$INSTOBJEXT,;t t
21117218822Sdims,@GENCAT@,$GENCAT,;t t
21118218822Sdims,@CATOBJEXT@,$CATOBJEXT,;t t
21119218822Sdims,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21120218822Sdims,@MSGFMT@,$MSGFMT,;t t
21121218822Sdims,@MSGMERGE@,$MSGMERGE,;t t
21122218822Sdims,@HDEFINES@,$HDEFINES,;t t
21123218822Sdims,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21124218822Sdims,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
21125218822Sdims,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21126218822Sdims,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21127218822Sdims,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21128218822Sdims,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21129218822Sdims,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21130218822Sdims,@COREFILE@,$COREFILE,;t t
21131218822Sdims,@COREFLAG@,$COREFLAG,;t t
21132218822Sdims,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21133218822Sdims,@WIN32LIBADD@,$WIN32LIBADD,;t t
21134218822Sdims,@TDEFINES@,$TDEFINES,;t t
21135218822Sdims,@wordsize@,$wordsize,;t t
21136218822Sdims,@bfd64_libs@,$bfd64_libs,;t t
21137218822Sdims,@all_backends@,$all_backends,;t t
21138218822Sdims,@bfd_backends@,$bfd_backends,;t t
21139218822Sdims,@bfd_machines@,$bfd_machines,;t t
21140218822Sdims,@bfd_default_target_size@,$bfd_default_target_size,;t t
21141218822Sdims,@bfd_file_ptr@,$bfd_file_ptr,;t t
21142218822Sdims,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21143218822Sdims,@tdefaults@,$tdefaults,;t t
21144218822Sdims,@datarootdir@,$datarootdir,;t t
21145218822Sdims,@docdir@,$docdir,;t t
21146218822Sdims,@htmldir@,$htmldir,;t t
21147218822Sdims,@LIBOBJS@,$LIBOBJS,;t t
21148218822Sdims,@LTLIBOBJS@,$LTLIBOBJS,;t t
21149218822SdimCEOF
21150218822Sdim
21151218822Sdim_ACEOF
21152218822Sdim
21153218822Sdim  cat >>$CONFIG_STATUS <<\_ACEOF
21154218822Sdim  # Split the substitutions into bite-sized pieces for seds with
21155218822Sdim  # small command number limits, like on Digital OSF/1 and HP-UX.
21156218822Sdim  ac_max_sed_lines=48
21157218822Sdim  ac_sed_frag=1 # Number of current file.
21158218822Sdim  ac_beg=1 # First line for current file.
21159218822Sdim  ac_end=$ac_max_sed_lines # Line after last line for current file.
21160218822Sdim  ac_more_lines=:
21161218822Sdim  ac_sed_cmds=
21162218822Sdim  while $ac_more_lines; do
21163218822Sdim    if test $ac_beg -gt 1; then
21164218822Sdim      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21165218822Sdim    else
21166218822Sdim      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21167218822Sdim    fi
21168218822Sdim    if test ! -s $tmp/subs.frag; then
21169218822Sdim      ac_more_lines=false
21170218822Sdim    else
21171218822Sdim      # The purpose of the label and of the branching condition is to
21172218822Sdim      # speed up the sed processing (if there are no `@' at all, there
21173218822Sdim      # is no need to browse any of the substitutions).
21174218822Sdim      # These are the two extra sed commands mentioned above.
21175218822Sdim      (echo ':t
21176218822Sdim  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21177218822Sdim      if test -z "$ac_sed_cmds"; then
21178218822Sdim	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21179218822Sdim      else
21180218822Sdim	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21181218822Sdim      fi
21182218822Sdim      ac_sed_frag=`expr $ac_sed_frag + 1`
21183218822Sdim      ac_beg=$ac_end
21184218822Sdim      ac_end=`expr $ac_end + $ac_max_sed_lines`
21185218822Sdim    fi
21186218822Sdim  done
21187218822Sdim  if test -z "$ac_sed_cmds"; then
21188218822Sdim    ac_sed_cmds=cat
2118933965Sjdp  fi
21190218822Sdimfi # test -n "$CONFIG_FILES"
2119133965Sjdp
21192218822Sdim_ACEOF
21193218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
21194218822Sdimfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21195218822Sdim  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21196218822Sdim  case $ac_file in
21197218822Sdim  - | *:- | *:-:* ) # input from stdin
21198218822Sdim	cat >$tmp/stdin
21199218822Sdim	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21200218822Sdim	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21201218822Sdim  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21202218822Sdim	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21203218822Sdim  * )   ac_file_in=$ac_file.in ;;
2120433965Sjdp  esac
2120533965Sjdp
21206218822Sdim  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21207218822Sdim  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21208218822Sdim$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21209218822Sdim	 X"$ac_file" : 'X\(//\)[^/]' \| \
21210218822Sdim	 X"$ac_file" : 'X\(//\)$' \| \
21211218822Sdim	 X"$ac_file" : 'X\(/\)' \| \
21212218822Sdim	 .     : '\(.\)' 2>/dev/null ||
21213218822Sdimecho X"$ac_file" |
21214218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21215218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21216218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
21217218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
21218218822Sdim  	  s/.*/./; q'`
21219218822Sdim  { if $as_mkdir_p; then
21220218822Sdim    mkdir -p "$ac_dir"
21221218822Sdim  else
21222218822Sdim    as_dir="$ac_dir"
21223218822Sdim    as_dirs=
21224218822Sdim    while test ! -d "$as_dir"; do
21225218822Sdim      as_dirs="$as_dir $as_dirs"
21226218822Sdim      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21227218822Sdim$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21228218822Sdim	 X"$as_dir" : 'X\(//\)[^/]' \| \
21229218822Sdim	 X"$as_dir" : 'X\(//\)$' \| \
21230218822Sdim	 X"$as_dir" : 'X\(/\)' \| \
21231218822Sdim	 .     : '\(.\)' 2>/dev/null ||
21232218822Sdimecho X"$as_dir" |
21233218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21234218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21235218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
21236218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
21237218822Sdim  	  s/.*/./; q'`
21238218822Sdim    done
21239218822Sdim    test ! -n "$as_dirs" || mkdir $as_dirs
21240218822Sdim  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21241218822Sdimecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21242218822Sdim   { (exit 1); exit 1; }; }; }
2124333965Sjdp
21244218822Sdim  ac_builddir=.
21245218822Sdim
21246218822Sdimif test "$ac_dir" != .; then
21247218822Sdim  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21248218822Sdim  # A "../" for each directory in $ac_dir_suffix.
21249218822Sdim  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21250218822Sdimelse
21251218822Sdim  ac_dir_suffix= ac_top_builddir=
21252218822Sdimfi
21253218822Sdim
21254218822Sdimcase $srcdir in
21255218822Sdim  .)  # No --srcdir option.  We are building in place.
21256218822Sdim    ac_srcdir=.
21257218822Sdim    if test -z "$ac_top_builddir"; then
21258218822Sdim       ac_top_srcdir=.
21259218822Sdim    else
21260218822Sdim       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21261218822Sdim    fi ;;
21262218822Sdim  [\\/]* | ?:[\\/]* )  # Absolute path.
21263218822Sdim    ac_srcdir=$srcdir$ac_dir_suffix;
21264218822Sdim    ac_top_srcdir=$srcdir ;;
21265218822Sdim  *) # Relative path.
21266218822Sdim    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21267218822Sdim    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21268218822Sdimesac
21269218822Sdim
21270218822Sdim# Do not use `cd foo && pwd` to compute absolute paths, because
21271218822Sdim# the directories may not exist.
21272218822Sdimcase `pwd` in
21273218822Sdim.) ac_abs_builddir="$ac_dir";;
21274218822Sdim*)
21275218822Sdim  case "$ac_dir" in
21276218822Sdim  .) ac_abs_builddir=`pwd`;;
21277218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21278218822Sdim  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21279218822Sdim  esac;;
21280218822Sdimesac
21281218822Sdimcase $ac_abs_builddir in
21282218822Sdim.) ac_abs_top_builddir=${ac_top_builddir}.;;
21283218822Sdim*)
21284218822Sdim  case ${ac_top_builddir}. in
21285218822Sdim  .) ac_abs_top_builddir=$ac_abs_builddir;;
21286218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21287218822Sdim  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21288218822Sdim  esac;;
21289218822Sdimesac
21290218822Sdimcase $ac_abs_builddir in
21291218822Sdim.) ac_abs_srcdir=$ac_srcdir;;
21292218822Sdim*)
21293218822Sdim  case $ac_srcdir in
21294218822Sdim  .) ac_abs_srcdir=$ac_abs_builddir;;
21295218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21296218822Sdim  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21297218822Sdim  esac;;
21298218822Sdimesac
21299218822Sdimcase $ac_abs_builddir in
21300218822Sdim.) ac_abs_top_srcdir=$ac_top_srcdir;;
21301218822Sdim*)
21302218822Sdim  case $ac_top_srcdir in
21303218822Sdim  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21304218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21305218822Sdim  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21306218822Sdim  esac;;
21307218822Sdimesac
21308218822Sdim
21309218822Sdim
21310218822Sdim  case $INSTALL in
21311218822Sdim  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21312218822Sdim  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
2131333965Sjdp  esac
2131433965Sjdp
21315218822Sdim  if test x"$ac_file" != x-; then
21316218822Sdim    { echo "$as_me:$LINENO: creating $ac_file" >&5
21317218822Sdimecho "$as_me: creating $ac_file" >&6;}
21318218822Sdim    rm -f "$ac_file"
21319218822Sdim  fi
21320218822Sdim  # Let's still pretend it is `configure' which instantiates (i.e., don't
21321218822Sdim  # use $as_me), people would be surprised to read:
21322218822Sdim  #    /* config.h.  Generated by config.status.  */
21323218822Sdim  if test x"$ac_file" = x-; then
21324218822Sdim    configure_input=
21325218822Sdim  else
21326218822Sdim    configure_input="$ac_file.  "
21327218822Sdim  fi
21328218822Sdim  configure_input=$configure_input"Generated from `echo $ac_file_in |
21329218822Sdim				     sed 's,.*/,,'` by configure."
2133033965Sjdp
21331218822Sdim  # First look for the input files in the build tree, otherwise in the
21332218822Sdim  # src tree.
21333218822Sdim  ac_file_inputs=`IFS=:
21334218822Sdim    for f in $ac_file_in; do
21335218822Sdim      case $f in
21336218822Sdim      -) echo $tmp/stdin ;;
21337218822Sdim      [\\/$]*)
21338218822Sdim	 # Absolute (can't be DOS-style, as IFS=:)
21339218822Sdim	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21340218822Sdimecho "$as_me: error: cannot find input file: $f" >&2;}
21341218822Sdim   { (exit 1); exit 1; }; }
21342218822Sdim	 echo "$f";;
21343218822Sdim      *) # Relative
21344218822Sdim	 if test -f "$f"; then
21345218822Sdim	   # Build tree
21346218822Sdim	   echo "$f"
21347218822Sdim	 elif test -f "$srcdir/$f"; then
21348218822Sdim	   # Source tree
21349218822Sdim	   echo "$srcdir/$f"
21350218822Sdim	 else
21351218822Sdim	   # /dev/null tree
21352218822Sdim	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21353218822Sdimecho "$as_me: error: cannot find input file: $f" >&2;}
21354218822Sdim   { (exit 1); exit 1; }; }
21355218822Sdim	 fi;;
21356218822Sdim      esac
21357218822Sdim    done` || { (exit 1); exit 1; }
21358218822Sdim_ACEOF
21359218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
21360218822Sdim  sed "$ac_vpsub
21361218822Sdim$extrasub
21362218822Sdim_ACEOF
21363218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
21364218822Sdim:t
21365218822Sdim/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21366218822Sdims,@configure_input@,$configure_input,;t t
21367218822Sdims,@srcdir@,$ac_srcdir,;t t
21368218822Sdims,@abs_srcdir@,$ac_abs_srcdir,;t t
21369218822Sdims,@top_srcdir@,$ac_top_srcdir,;t t
21370218822Sdims,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21371218822Sdims,@builddir@,$ac_builddir,;t t
21372218822Sdims,@abs_builddir@,$ac_abs_builddir,;t t
21373218822Sdims,@top_builddir@,$ac_top_builddir,;t t
21374218822Sdims,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21375218822Sdims,@INSTALL@,$ac_INSTALL,;t t
21376218822Sdim" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21377218822Sdim  rm -f $tmp/stdin
21378218822Sdim  if test x"$ac_file" != x-; then
21379218822Sdim    mv $tmp/out $ac_file
21380218822Sdim  else
21381218822Sdim    cat $tmp/out
21382218822Sdim    rm -f $tmp/out
21383218822Sdim  fi
21384218822Sdim
21385218822Sdimdone
21386218822Sdim_ACEOF
21387218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
21388218822Sdim
21389218822Sdim#
21390218822Sdim# CONFIG_HEADER section.
21391218822Sdim#
21392218822Sdim
2139333965Sjdp# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2139433965Sjdp# NAME is the cpp macro being defined and VALUE is the value it is being given.
2139533965Sjdp#
2139633965Sjdp# ac_d sets the value in "#define NAME VALUE" lines.
21397218822Sdimac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21398218822Sdimac_dB='[	 ].*$,\1#\2'
21399218822Sdimac_dC=' '
21400218822Sdimac_dD=',;t'
21401218822Sdim# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21402218822Sdimac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21403218822Sdimac_uB='$,\1#\2define\3'
2140433965Sjdpac_uC=' '
21405218822Sdimac_uD=',;t'
2140633965Sjdp
21407218822Sdimfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
2140833965Sjdp  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21409218822Sdim  case $ac_file in
21410218822Sdim  - | *:- | *:-:* ) # input from stdin
21411218822Sdim	cat >$tmp/stdin
21412218822Sdim	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21413218822Sdim	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21414218822Sdim  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21415218822Sdim	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21416218822Sdim  * )   ac_file_in=$ac_file.in ;;
2141733965Sjdp  esac
2141833965Sjdp
21419218822Sdim  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21420218822Sdimecho "$as_me: creating $ac_file" >&6;}
2142133965Sjdp
21422218822Sdim  # First look for the input files in the build tree, otherwise in the
21423218822Sdim  # src tree.
21424218822Sdim  ac_file_inputs=`IFS=:
21425218822Sdim    for f in $ac_file_in; do
21426218822Sdim      case $f in
21427218822Sdim      -) echo $tmp/stdin ;;
21428218822Sdim      [\\/$]*)
21429218822Sdim	 # Absolute (can't be DOS-style, as IFS=:)
21430218822Sdim	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21431218822Sdimecho "$as_me: error: cannot find input file: $f" >&2;}
21432218822Sdim   { (exit 1); exit 1; }; }
21433218822Sdim	 # Do quote $f, to prevent DOS paths from being IFS'd.
21434218822Sdim	 echo "$f";;
21435218822Sdim      *) # Relative
21436218822Sdim	 if test -f "$f"; then
21437218822Sdim	   # Build tree
21438218822Sdim	   echo "$f"
21439218822Sdim	 elif test -f "$srcdir/$f"; then
21440218822Sdim	   # Source tree
21441218822Sdim	   echo "$srcdir/$f"
21442218822Sdim	 else
21443218822Sdim	   # /dev/null tree
21444218822Sdim	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21445218822Sdimecho "$as_me: error: cannot find input file: $f" >&2;}
21446218822Sdim   { (exit 1); exit 1; }; }
21447218822Sdim	 fi;;
21448218822Sdim      esac
21449218822Sdim    done` || { (exit 1); exit 1; }
21450218822Sdim  # Remove the trailing spaces.
21451218822Sdim  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
2145233965Sjdp
21453218822Sdim_ACEOF
2145433965Sjdp
21455218822Sdim# Transform confdefs.h into two sed scripts, `conftest.defines' and
21456218822Sdim# `conftest.undefs', that substitutes the proper values into
21457218822Sdim# config.h.in to produce config.h.  The first handles `#define'
21458218822Sdim# templates, and the second `#undef' templates.
21459218822Sdim# And first: Protect against being on the right side of a sed subst in
21460218822Sdim# config.status.  Protect against being in an unquoted here document
21461218822Sdim# in config.status.
21462218822Sdimrm -f conftest.defines conftest.undefs
21463218822Sdim# Using a here document instead of a string reduces the quoting nightmare.
21464218822Sdim# Putting comments in sed scripts is not portable.
21465218822Sdim#
21466218822Sdim# `end' is used to avoid that the second main sed command (meant for
21467218822Sdim# 0-ary CPP macros) applies to n-ary macro definitions.
21468218822Sdim# See the Autoconf documentation for `clear'.
21469218822Sdimcat >confdef2sed.sed <<\_ACEOF
21470218822Sdims/[\\&,]/\\&/g
21471218822Sdims,[\\$`],\\&,g
21472218822Sdimt clear
21473218822Sdim: clear
21474218822Sdims,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21475218822Sdimt end
21476218822Sdims,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21477218822Sdim: end
21478218822Sdim_ACEOF
21479218822Sdim# If some macros were called several times there might be several times
21480218822Sdim# the same #defines, which is useless.  Nevertheless, we may not want to
21481218822Sdim# sort them, since we want the *last* AC-DEFINE to be honored.
21482218822Sdimuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21483218822Sdimsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21484218822Sdimrm -f confdef2sed.sed
2148533965Sjdp
2148633965Sjdp# This sed command replaces #undef with comments.  This is necessary, for
2148733965Sjdp# example, in the case of _POSIX_SOURCE, which is predefined and required
2148833965Sjdp# on some systems where configure will not decide to define it.
21489218822Sdimcat >>conftest.undefs <<\_ACEOF
21490218822Sdims,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21491218822Sdim_ACEOF
2149233965Sjdp
21493218822Sdim# Break up conftest.defines because some shells have a limit on the size
21494218822Sdim# of here documents, and old seds have small limits too (100 cmds).
21495218822Sdimecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21496218822Sdimecho '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21497218822Sdimecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21498218822Sdimecho '  :' >>$CONFIG_STATUS
21499218822Sdimrm -f conftest.tail
21500218822Sdimwhile grep . conftest.defines >/dev/null
21501218822Sdimdo
21502218822Sdim  # Write a limited-size here document to $tmp/defines.sed.
21503218822Sdim  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21504218822Sdim  # Speed up: don't consider the non `#define' lines.
21505218822Sdim  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21506218822Sdim  # Work around the forget-to-reset-the-flag bug.
21507218822Sdim  echo 't clr' >>$CONFIG_STATUS
21508218822Sdim  echo ': clr' >>$CONFIG_STATUS
21509218822Sdim  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21510218822Sdim  echo 'CEOF
21511218822Sdim  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21512218822Sdim  rm -f $tmp/in
21513218822Sdim  mv $tmp/out $tmp/in
21514218822Sdim' >>$CONFIG_STATUS
21515218822Sdim  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21516218822Sdim  rm -f conftest.defines
21517218822Sdim  mv conftest.tail conftest.defines
21518218822Sdimdone
21519218822Sdimrm -f conftest.defines
21520218822Sdimecho '  fi # grep' >>$CONFIG_STATUS
21521218822Sdimecho >>$CONFIG_STATUS
2152233965Sjdp
21523218822Sdim# Break up conftest.undefs because some shells have a limit on the size
21524218822Sdim# of here documents, and old seds have small limits too (100 cmds).
21525218822Sdimecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
2152633965Sjdprm -f conftest.tail
21527218822Sdimwhile grep . conftest.undefs >/dev/null
2152833965Sjdpdo
21529218822Sdim  # Write a limited-size here document to $tmp/undefs.sed.
21530218822Sdim  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21531218822Sdim  # Speed up: don't consider the non `#undef'
21532218822Sdim  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21533218822Sdim  # Work around the forget-to-reset-the-flag bug.
21534218822Sdim  echo 't clr' >>$CONFIG_STATUS
21535218822Sdim  echo ': clr' >>$CONFIG_STATUS
21536218822Sdim  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
2153733965Sjdp  echo 'CEOF
21538218822Sdim  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21539218822Sdim  rm -f $tmp/in
21540218822Sdim  mv $tmp/out $tmp/in
21541218822Sdim' >>$CONFIG_STATUS
21542218822Sdim  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21543218822Sdim  rm -f conftest.undefs
21544218822Sdim  mv conftest.tail conftest.undefs
2154533965Sjdpdone
21546218822Sdimrm -f conftest.undefs
2154733965Sjdp
21548218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
21549218822Sdim  # Let's still pretend it is `configure' which instantiates (i.e., don't
21550218822Sdim  # use $as_me), people would be surprised to read:
21551218822Sdim  #    /* config.h.  Generated by config.status.  */
21552218822Sdim  if test x"$ac_file" = x-; then
21553218822Sdim    echo "/* Generated by configure.  */" >$tmp/config.h
2155433965Sjdp  else
21555218822Sdim    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21556218822Sdim  fi
21557218822Sdim  cat $tmp/in >>$tmp/config.h
21558218822Sdim  rm -f $tmp/in
21559218822Sdim  if test x"$ac_file" != x-; then
21560218822Sdim    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21561218822Sdim      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21562218822Sdimecho "$as_me: $ac_file is unchanged" >&6;}
21563218822Sdim    else
21564218822Sdim      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21565218822Sdim$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21566218822Sdim	 X"$ac_file" : 'X\(//\)[^/]' \| \
21567218822Sdim	 X"$ac_file" : 'X\(//\)$' \| \
21568218822Sdim	 X"$ac_file" : 'X\(/\)' \| \
21569218822Sdim	 .     : '\(.\)' 2>/dev/null ||
21570218822Sdimecho X"$ac_file" |
21571218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21572218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21573218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
21574218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
21575218822Sdim  	  s/.*/./; q'`
21576218822Sdim      { if $as_mkdir_p; then
21577218822Sdim    mkdir -p "$ac_dir"
21578218822Sdim  else
21579218822Sdim    as_dir="$ac_dir"
21580218822Sdim    as_dirs=
21581218822Sdim    while test ! -d "$as_dir"; do
21582218822Sdim      as_dirs="$as_dir $as_dirs"
21583218822Sdim      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21584218822Sdim$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21585218822Sdim	 X"$as_dir" : 'X\(//\)[^/]' \| \
21586218822Sdim	 X"$as_dir" : 'X\(//\)$' \| \
21587218822Sdim	 X"$as_dir" : 'X\(/\)' \| \
21588218822Sdim	 .     : '\(.\)' 2>/dev/null ||
21589218822Sdimecho X"$as_dir" |
21590218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21591218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21592218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
21593218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
21594218822Sdim  	  s/.*/./; q'`
21595218822Sdim    done
21596218822Sdim    test ! -n "$as_dirs" || mkdir $as_dirs
21597218822Sdim  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21598218822Sdimecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21599218822Sdim   { (exit 1); exit 1; }; }; }
21600218822Sdim
21601218822Sdim      rm -f $ac_file
21602218822Sdim      mv $tmp/config.h $ac_file
2160333965Sjdp    fi
21604218822Sdim  else
21605218822Sdim    cat $tmp/config.h
21606218822Sdim    rm -f $tmp/config.h
2160733965Sjdp  fi
21608218822Sdim# Compute $ac_file's index in $config_headers.
21609218822Sdim_am_stamp_count=1
21610218822Sdimfor _am_header in $config_headers :; do
21611218822Sdim  case $_am_header in
21612218822Sdim    $ac_file | $ac_file:* )
21613218822Sdim      break ;;
21614218822Sdim    * )
21615218822Sdim      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21616218822Sdim  esac
21617218822Sdimdone
21618218822Sdimecho "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21619218822Sdim$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21620218822Sdim	 X$ac_file : 'X\(//\)[^/]' \| \
21621218822Sdim	 X$ac_file : 'X\(//\)$' \| \
21622218822Sdim	 X$ac_file : 'X\(/\)' \| \
21623218822Sdim	 .     : '\(.\)' 2>/dev/null ||
21624218822Sdimecho X$ac_file |
21625218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21626218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21627218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
21628218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
21629218822Sdim  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21630218822Sdimdone
21631218822Sdim_ACEOF
21632218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
2163333965Sjdp
21634218822Sdim#
21635218822Sdim# CONFIG_COMMANDS section.
21636218822Sdim#
21637218822Sdimfor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21638218822Sdim  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21639218822Sdim  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21640218822Sdim  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21641218822Sdim$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21642218822Sdim	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21643218822Sdim	 X"$ac_dest" : 'X\(//\)$' \| \
21644218822Sdim	 X"$ac_dest" : 'X\(/\)' \| \
21645218822Sdim	 .     : '\(.\)' 2>/dev/null ||
21646218822Sdimecho X"$ac_dest" |
21647218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21648218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21649218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
21650218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
21651218822Sdim  	  s/.*/./; q'`
21652218822Sdim  { if $as_mkdir_p; then
21653218822Sdim    mkdir -p "$ac_dir"
21654218822Sdim  else
21655218822Sdim    as_dir="$ac_dir"
21656218822Sdim    as_dirs=
21657218822Sdim    while test ! -d "$as_dir"; do
21658218822Sdim      as_dirs="$as_dir $as_dirs"
21659218822Sdim      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21660218822Sdim$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21661218822Sdim	 X"$as_dir" : 'X\(//\)[^/]' \| \
21662218822Sdim	 X"$as_dir" : 'X\(//\)$' \| \
21663218822Sdim	 X"$as_dir" : 'X\(/\)' \| \
21664218822Sdim	 .     : '\(.\)' 2>/dev/null ||
21665218822Sdimecho X"$as_dir" |
21666218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21667218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21668218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
21669218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
21670218822Sdim  	  s/.*/./; q'`
21671218822Sdim    done
21672218822Sdim    test ! -n "$as_dirs" || mkdir $as_dirs
21673218822Sdim  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21674218822Sdimecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21675218822Sdim   { (exit 1); exit 1; }; }; }
21676218822Sdim
21677218822Sdim  ac_builddir=.
21678218822Sdim
21679218822Sdimif test "$ac_dir" != .; then
21680218822Sdim  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21681218822Sdim  # A "../" for each directory in $ac_dir_suffix.
21682218822Sdim  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21683218822Sdimelse
21684218822Sdim  ac_dir_suffix= ac_top_builddir=
21685218822Sdimfi
21686218822Sdim
21687218822Sdimcase $srcdir in
21688218822Sdim  .)  # No --srcdir option.  We are building in place.
21689218822Sdim    ac_srcdir=.
21690218822Sdim    if test -z "$ac_top_builddir"; then
21691218822Sdim       ac_top_srcdir=.
21692218822Sdim    else
21693218822Sdim       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21694218822Sdim    fi ;;
21695218822Sdim  [\\/]* | ?:[\\/]* )  # Absolute path.
21696218822Sdim    ac_srcdir=$srcdir$ac_dir_suffix;
21697218822Sdim    ac_top_srcdir=$srcdir ;;
21698218822Sdim  *) # Relative path.
21699218822Sdim    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21700218822Sdim    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21701218822Sdimesac
21702218822Sdim
21703218822Sdim# Do not use `cd foo && pwd` to compute absolute paths, because
21704218822Sdim# the directories may not exist.
21705218822Sdimcase `pwd` in
21706218822Sdim.) ac_abs_builddir="$ac_dir";;
21707218822Sdim*)
21708218822Sdim  case "$ac_dir" in
21709218822Sdim  .) ac_abs_builddir=`pwd`;;
21710218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21711218822Sdim  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21712218822Sdim  esac;;
21713218822Sdimesac
21714218822Sdimcase $ac_abs_builddir in
21715218822Sdim.) ac_abs_top_builddir=${ac_top_builddir}.;;
21716218822Sdim*)
21717218822Sdim  case ${ac_top_builddir}. in
21718218822Sdim  .) ac_abs_top_builddir=$ac_abs_builddir;;
21719218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21720218822Sdim  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21721218822Sdim  esac;;
21722218822Sdimesac
21723218822Sdimcase $ac_abs_builddir in
21724218822Sdim.) ac_abs_srcdir=$ac_srcdir;;
21725218822Sdim*)
21726218822Sdim  case $ac_srcdir in
21727218822Sdim  .) ac_abs_srcdir=$ac_abs_builddir;;
21728218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21729218822Sdim  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21730218822Sdim  esac;;
21731218822Sdimesac
21732218822Sdimcase $ac_abs_builddir in
21733218822Sdim.) ac_abs_top_srcdir=$ac_top_srcdir;;
21734218822Sdim*)
21735218822Sdim  case $ac_top_srcdir in
21736218822Sdim  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21737218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21738218822Sdim  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21739218822Sdim  esac;;
21740218822Sdimesac
21741218822Sdim
21742218822Sdim
21743218822Sdim  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21744218822Sdimecho "$as_me: executing $ac_dest commands" >&6;}
21745218822Sdim  case $ac_dest in
21746218822Sdim    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21747218822Sdim  # Strip MF so we end up with the name of the file.
21748218822Sdim  mf=`echo "$mf" | sed -e 's/:.*$//'`
21749218822Sdim  # Check whether this is an Automake generated Makefile or not.
21750218822Sdim  # We used to match only the files named `Makefile.in', but
21751218822Sdim  # some people rename them; so instead we look at the file content.
21752218822Sdim  # Grep'ing the first line is not enough: some people post-process
21753218822Sdim  # each Makefile.in and add a new line on top of each file to say so.
21754218822Sdim  # So let's grep whole file.
21755218822Sdim  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21756218822Sdim    dirpart=`(dirname "$mf") 2>/dev/null ||
21757218822Sdim$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21758218822Sdim	 X"$mf" : 'X\(//\)[^/]' \| \
21759218822Sdim	 X"$mf" : 'X\(//\)$' \| \
21760218822Sdim	 X"$mf" : 'X\(/\)' \| \
21761218822Sdim	 .     : '\(.\)' 2>/dev/null ||
21762218822Sdimecho X"$mf" |
21763218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21764218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21765218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
21766218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
21767218822Sdim  	  s/.*/./; q'`
21768218822Sdim  else
21769218822Sdim    continue
21770218822Sdim  fi
21771218822Sdim  # Extract the definition of DEPDIR, am__include, and am__quote
21772218822Sdim  # from the Makefile without running `make'.
21773218822Sdim  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21774218822Sdim  test -z "$DEPDIR" && continue
21775218822Sdim  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21776218822Sdim  test -z "am__include" && continue
21777218822Sdim  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21778218822Sdim  # When using ansi2knr, U may be empty or an underscore; expand it
21779218822Sdim  U=`sed -n 's/^U = //p' < "$mf"`
21780218822Sdim  # Find all dependency output files, they are included files with
21781218822Sdim  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21782218822Sdim  # simplest approach to changing $(DEPDIR) to its actual value in the
21783218822Sdim  # expansion.
21784218822Sdim  for file in `sed -n "
21785218822Sdim    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21786218822Sdim       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21787218822Sdim    # Make sure the directory exists.
21788218822Sdim    test -f "$dirpart/$file" && continue
21789218822Sdim    fdir=`(dirname "$file") 2>/dev/null ||
21790218822Sdim$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21791218822Sdim	 X"$file" : 'X\(//\)[^/]' \| \
21792218822Sdim	 X"$file" : 'X\(//\)$' \| \
21793218822Sdim	 X"$file" : 'X\(/\)' \| \
21794218822Sdim	 .     : '\(.\)' 2>/dev/null ||
21795218822Sdimecho X"$file" |
21796218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21797218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21798218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
21799218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
21800218822Sdim  	  s/.*/./; q'`
21801218822Sdim    { if $as_mkdir_p; then
21802218822Sdim    mkdir -p $dirpart/$fdir
21803218822Sdim  else
21804218822Sdim    as_dir=$dirpart/$fdir
21805218822Sdim    as_dirs=
21806218822Sdim    while test ! -d "$as_dir"; do
21807218822Sdim      as_dirs="$as_dir $as_dirs"
21808218822Sdim      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21809218822Sdim$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21810218822Sdim	 X"$as_dir" : 'X\(//\)[^/]' \| \
21811218822Sdim	 X"$as_dir" : 'X\(//\)$' \| \
21812218822Sdim	 X"$as_dir" : 'X\(/\)' \| \
21813218822Sdim	 .     : '\(.\)' 2>/dev/null ||
21814218822Sdimecho X"$as_dir" |
21815218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21816218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21817218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
21818218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
21819218822Sdim  	  s/.*/./; q'`
21820218822Sdim    done
21821218822Sdim    test ! -n "$as_dirs" || mkdir $as_dirs
21822218822Sdim  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21823218822Sdimecho "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21824218822Sdim   { (exit 1); exit 1; }; }; }
21825218822Sdim
21826218822Sdim    # echo "creating $dirpart/$file"
21827218822Sdim    echo '# dummy' > "$dirpart/$file"
21828218822Sdim  done
21829218822Sdimdone
21830218822Sdim ;;
21831218822Sdim    libtool )
21832218822Sdim
21833218822Sdim    # See if we are running on zsh, and set the options which allow our
21834218822Sdim    # commands through without removal of \ escapes.
21835218822Sdim    if test -n "${ZSH_VERSION+set}" ; then
21836218822Sdim      setopt NO_GLOB_SUBST
21837218822Sdim    fi
21838218822Sdim
21839218822Sdim    cfgfile="${ofile}T"
21840218822Sdim    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21841218822Sdim    $RM "$cfgfile"
21842218822Sdim
21843218822Sdim    cat <<_LT_EOF >> "$cfgfile"
21844218822Sdim#! $SHELL
21845218822Sdim
21846218822Sdim# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21847218822Sdim# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21848218822Sdim# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21849218822Sdim# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21850218822Sdim#
21851218822Sdim# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21852218822Sdim# 2006, 2007 Free Software Foundation, Inc.
21853218822Sdim#
21854218822Sdim# This file is part of GNU Libtool:
21855218822Sdim# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21856218822Sdim#
21857218822Sdim# This program is free software; you can redistribute it and/or modify
21858218822Sdim# it under the terms of the GNU General Public License as published by
21859218822Sdim# the Free Software Foundation; either version 2 of the License, or
21860218822Sdim# (at your option) any later version.
21861218822Sdim#
21862218822Sdim# This program is distributed in the hope that it will be useful, but
21863218822Sdim# WITHOUT ANY WARRANTY; without even the implied warranty of
21864218822Sdim# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21865218822Sdim# General Public License for more details.
21866218822Sdim#
21867218822Sdim# You should have received a copy of the GNU General Public License
21868218822Sdim# along with this program; if not, a copy can be downloaded from
21869218822Sdim# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21870218822Sdim# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21871218822Sdim# MA 02110-1301, USA.
21872218822Sdim#
21873218822Sdim# As a special exception to the GNU General Public License, if you
21874218822Sdim# distribute this file as part of a program that contains a
21875218822Sdim# configuration script generated by Autoconf, you may include it under
21876218822Sdim# the same distribution terms that you use for the rest of that program.
21877218822Sdim
21878218822Sdim
21879218822Sdim# The names of the tagged configurations supported by this script.
21880218822Sdimavailable_tags=""
21881218822Sdim
21882218822Sdim# ### BEGIN LIBTOOL CONFIG
21883218822Sdim
21884218822Sdim# Whether or not to build shared libraries.
21885218822Sdimbuild_libtool_libs=$enable_shared
21886218822Sdim
21887218822Sdim# Which release of libtool.m4 was used?
21888218822Sdimmacro_version=$macro_version
21889218822Sdimmacro_revision=$macro_revision
21890218822Sdim
21891218822Sdim# Whether or not to build static libraries.
21892218822Sdimbuild_old_libs=$enable_static
21893218822Sdim
21894218822Sdim# What type of objects to build.
21895218822Sdimpic_mode=$pic_mode
21896218822Sdim
21897218822Sdim# Whether or not to optimize for fast installation.
21898218822Sdimfast_install=$enable_fast_install
21899218822Sdim
21900218822Sdim# The host system.
21901218822Sdimhost_alias=$host_alias
21902218822Sdimhost=$host
21903218822Sdimhost_os=$host_os
21904218822Sdim
21905218822Sdim# The build system.
21906218822Sdimbuild_alias=$build_alias
21907218822Sdimbuild=$build
21908218822Sdimbuild_os=$build_os
21909218822Sdim
21910218822Sdim# A sed program that does not truncate output.
21911218822SdimSED=$lt_SED
21912218822Sdim
21913218822Sdim# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21914218822SdimXsed="\$SED -e 1s/^X//"
21915218822Sdim
21916218822Sdim# A grep program that handles long lines.
21917218822SdimGREP=$lt_GREP
21918218822Sdim
21919218822Sdim# An ERE matcher.
21920218822SdimEGREP=$lt_EGREP
21921218822Sdim
21922218822Sdim# A literal string matcher.
21923218822SdimFGREP=$lt_FGREP
21924218822Sdim
21925218822Sdim# A BSD- or MS-compatible name lister.
21926218822SdimNM=$lt_NM
21927218822Sdim
21928218822Sdim# Whether we need soft or hard links.
21929218822SdimLN_S=$lt_LN_S
21930218822Sdim
21931218822Sdim# What is the maximum length of a command?
21932218822Sdimmax_cmd_len=$max_cmd_len
21933218822Sdim
21934218822Sdim# Object file suffix (normally "o").
21935218822Sdimobjext=$ac_objext
21936218822Sdim
21937218822Sdim# Executable file suffix (normally "").
21938218822Sdimexeext=$exeext
21939218822Sdim
21940218822Sdim# whether the shell understands "unset".
21941218822Sdimlt_unset=$lt_unset
21942218822Sdim
21943218822Sdim# turn spaces into newlines.
21944218822SdimSP2NL=$lt_lt_SP2NL
21945218822Sdim
21946218822Sdim# turn newlines into spaces.
21947218822SdimNL2SP=$lt_lt_NL2SP
21948218822Sdim
21949218822Sdim# How to create reloadable object files.
21950218822Sdimreload_flag=$lt_reload_flag
21951218822Sdimreload_cmds=$lt_reload_cmds
21952218822Sdim
21953218822Sdim# Method to check whether dependent libraries are shared objects.
21954218822Sdimdeplibs_check_method=$lt_deplibs_check_method
21955218822Sdim
21956218822Sdim# Command to use when deplibs_check_method == "file_magic".
21957218822Sdimfile_magic_cmd=$lt_file_magic_cmd
21958218822Sdim
21959218822Sdim# The archiver.
21960218822SdimAR=$lt_AR
21961218822SdimAR_FLAGS=$lt_AR_FLAGS
21962218822Sdim
21963218822Sdim# A symbol stripping program.
21964218822SdimSTRIP=$lt_STRIP
21965218822Sdim
21966218822Sdim# Commands used to install an old-style archive.
21967218822SdimRANLIB=$lt_RANLIB
21968218822Sdimold_postinstall_cmds=$lt_old_postinstall_cmds
21969218822Sdimold_postuninstall_cmds=$lt_old_postuninstall_cmds
21970218822Sdim
21971218822Sdim# A C compiler.
21972218822SdimLTCC=$lt_CC
21973218822Sdim
21974218822Sdim# LTCC compiler flags.
21975218822SdimLTCFLAGS=$lt_CFLAGS
21976218822Sdim
21977218822Sdim# Take the output of nm and produce a listing of raw symbols and C names.
21978218822Sdimglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21979218822Sdim
21980218822Sdim# Transform the output of nm in a proper C declaration.
21981218822Sdimglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21982218822Sdim
21983218822Sdim# Transform the output of nm in a C name address pair.
21984218822Sdimglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21985218822Sdim
21986218822Sdim# The name of the directory that contains temporary libtool files.
21987218822Sdimobjdir=$objdir
21988218822Sdim
21989218822Sdim# Shell to use when invoking shell scripts.
21990218822SdimSHELL=$lt_SHELL
21991218822Sdim
21992218822Sdim# An echo program that does not interpret backslashes.
21993218822SdimECHO=$lt_ECHO
21994218822Sdim
21995218822Sdim# Used to examine libraries when file_magic_cmd begins with "file".
21996218822SdimMAGIC_CMD=$MAGIC_CMD
21997218822Sdim
21998218822Sdim# Must we lock files when doing compilation?
21999218822Sdimneed_locks=$lt_need_locks
22000218822Sdim
22001218822Sdim# Old archive suffix (normally "a").
22002218822Sdimlibext=$libext
22003218822Sdim
22004218822Sdim# Shared library suffix (normally ".so").
22005218822Sdimshrext_cmds=$lt_shrext_cmds
22006218822Sdim
22007218822Sdim# The commands to extract the exported symbol list from a shared archive.
22008218822Sdimextract_expsyms_cmds=$lt_extract_expsyms_cmds
22009218822Sdim
22010218822Sdim# Variables whose values should be saved in libtool wrapper scripts and
22011218822Sdim# restored at link time.
22012218822Sdimvariables_saved_for_relink=$lt_variables_saved_for_relink
22013218822Sdim
22014218822Sdim# Do we need the "lib" prefix for modules?
22015218822Sdimneed_lib_prefix=$need_lib_prefix
22016218822Sdim
22017218822Sdim# Do we need a version for libraries?
22018218822Sdimneed_version=$need_version
22019218822Sdim
22020218822Sdim# Library versioning type.
22021218822Sdimversion_type=$version_type
22022218822Sdim
22023218822Sdim# Shared library runtime path variable.
22024218822Sdimrunpath_var=$runpath_var
22025218822Sdim
22026218822Sdim# Shared library path variable.
22027218822Sdimshlibpath_var=$shlibpath_var
22028218822Sdim
22029218822Sdim# Is shlibpath searched before the hard-coded library search path?
22030218822Sdimshlibpath_overrides_runpath=$shlibpath_overrides_runpath
22031218822Sdim
22032218822Sdim# Format of library name prefix.
22033218822Sdimlibname_spec=$lt_libname_spec
22034218822Sdim
22035218822Sdim# List of archive names.  First name is the real one, the rest are links.
22036218822Sdim# The last name is the one that the linker finds with -lNAME
22037218822Sdimlibrary_names_spec=$lt_library_names_spec
22038218822Sdim
22039218822Sdim# The coded name of the library, if different from the real name.
22040218822Sdimsoname_spec=$lt_soname_spec
22041218822Sdim
22042218822Sdim# Command to use after installation of a shared archive.
22043218822Sdimpostinstall_cmds=$lt_postinstall_cmds
22044218822Sdim
22045218822Sdim# Command to use after uninstallation of a shared archive.
22046218822Sdimpostuninstall_cmds=$lt_postuninstall_cmds
22047218822Sdim
22048218822Sdim# Commands used to finish a libtool library installation in a directory.
22049218822Sdimfinish_cmds=$lt_finish_cmds
22050218822Sdim
22051218822Sdim# As "finish_cmds", except a single script fragment to be evaled but
22052218822Sdim# not shown.
22053218822Sdimfinish_eval=$lt_finish_eval
22054218822Sdim
22055218822Sdim# Whether we should hardcode library paths into libraries.
22056218822Sdimhardcode_into_libs=$hardcode_into_libs
22057218822Sdim
22058218822Sdim# Compile-time system search path for libraries.
22059218822Sdimsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22060218822Sdim
22061218822Sdim# Run-time system search path for libraries.
22062218822Sdimsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22063218822Sdim
22064218822Sdim# Whether dlopen is supported.
22065218822Sdimdlopen_support=$enable_dlopen
22066218822Sdim
22067218822Sdim# Whether dlopen of programs is supported.
22068218822Sdimdlopen_self=$enable_dlopen_self
22069218822Sdim
22070218822Sdim# Whether dlopen of statically linked programs is supported.
22071218822Sdimdlopen_self_static=$enable_dlopen_self_static
22072218822Sdim
22073218822Sdim# Commands to strip libraries.
22074218822Sdimold_striplib=$lt_old_striplib
22075218822Sdimstriplib=$lt_striplib
22076218822Sdim
22077218822Sdim
22078218822Sdim# The linker used to build libraries.
22079218822SdimLD=$lt_LD
22080218822Sdim
22081218822Sdim# Commands used to build an old-style archive.
22082218822Sdimold_archive_cmds=$lt_old_archive_cmds
22083218822Sdim
22084218822Sdim# A language specific compiler.
22085218822SdimCC=$lt_compiler
22086218822Sdim
22087218822Sdim# Is the compiler the GNU compiler?
22088218822Sdimwith_gcc=$GCC
22089218822Sdim
22090218822Sdim# Compiler flag to turn off builtin functions.
22091218822Sdimno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22092218822Sdim
22093218822Sdim# How to pass a linker flag through the compiler.
22094218822Sdimwl=$lt_lt_prog_compiler_wl
22095218822Sdim
22096218822Sdim# Additional compiler flags for building library objects.
22097218822Sdimpic_flag=$lt_lt_prog_compiler_pic
22098218822Sdim
22099218822Sdim# Compiler flag to prevent dynamic linking.
22100218822Sdimlink_static_flag=$lt_lt_prog_compiler_static
22101218822Sdim
22102218822Sdim# Does compiler simultaneously support -c and -o options?
22103218822Sdimcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
22104218822Sdim
22105218822Sdim# Whether or not to add -lc for building shared libraries.
22106218822Sdimbuild_libtool_need_lc=$archive_cmds_need_lc
22107218822Sdim
22108218822Sdim# Whether or not to disallow shared libs when runtime libs are static.
22109218822Sdimallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22110218822Sdim
22111218822Sdim# Compiler flag to allow reflexive dlopens.
22112218822Sdimexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22113218822Sdim
22114218822Sdim# Compiler flag to generate shared objects directly from archives.
22115218822Sdimwhole_archive_flag_spec=$lt_whole_archive_flag_spec
22116218822Sdim
22117218822Sdim# Whether the compiler copes with passing no objects directly.
22118218822Sdimcompiler_needs_object=$lt_compiler_needs_object
22119218822Sdim
22120218822Sdim# Create an old-style archive from a shared archive.
22121218822Sdimold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22122218822Sdim
22123218822Sdim# Create a temporary old-style archive to link instead of a shared archive.
22124218822Sdimold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22125218822Sdim
22126218822Sdim# Commands used to build a shared archive.
22127218822Sdimarchive_cmds=$lt_archive_cmds
22128218822Sdimarchive_expsym_cmds=$lt_archive_expsym_cmds
22129218822Sdim
22130218822Sdim# Commands used to build a loadable module if different from building
22131218822Sdim# a shared archive.
22132218822Sdimmodule_cmds=$lt_module_cmds
22133218822Sdimmodule_expsym_cmds=$lt_module_expsym_cmds
22134218822Sdim
22135218822Sdim# Whether we are building with GNU ld or not.
22136218822Sdimwith_gnu_ld=$lt_with_gnu_ld
22137218822Sdim
22138218822Sdim# Flag that allows shared libraries with undefined symbols to be built.
22139218822Sdimallow_undefined_flag=$lt_allow_undefined_flag
22140218822Sdim
22141218822Sdim# Flag that enforces no undefined symbols.
22142218822Sdimno_undefined_flag=$lt_no_undefined_flag
22143218822Sdim
22144218822Sdim# Flag to hardcode \$libdir into a binary during linking.
22145218822Sdim# This must work even if \$libdir does not exist
22146218822Sdimhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22147218822Sdim
22148218822Sdim# If ld is used when linking, flag to hardcode \$libdir into a binary
22149218822Sdim# during linking.  This must work even if \$libdir does not exist.
22150218822Sdimhardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22151218822Sdim
22152218822Sdim# Whether we need a single "-rpath" flag with a separated argument.
22153218822Sdimhardcode_libdir_separator=$lt_hardcode_libdir_separator
22154218822Sdim
22155218822Sdim# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22156218822Sdim# DIR into the resulting binary.
22157218822Sdimhardcode_direct=$hardcode_direct
22158218822Sdim
22159218822Sdim# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22160218822Sdim# DIR into the resulting binary and the resulting library dependency is
22161218822Sdim# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22162218822Sdim# library is relocated.
22163218822Sdimhardcode_direct_absolute=$hardcode_direct_absolute
22164218822Sdim
22165218822Sdim# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22166218822Sdim# into the resulting binary.
22167218822Sdimhardcode_minus_L=$hardcode_minus_L
22168218822Sdim
22169218822Sdim# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22170218822Sdim# into the resulting binary.
22171218822Sdimhardcode_shlibpath_var=$hardcode_shlibpath_var
22172218822Sdim
22173218822Sdim# Set to "yes" if building a shared library automatically hardcodes DIR
22174218822Sdim# into the library and all subsequent libraries and executables linked
22175218822Sdim# against it.
22176218822Sdimhardcode_automatic=$hardcode_automatic
22177218822Sdim
22178218822Sdim# Set to yes if linker adds runtime paths of dependent libraries
22179218822Sdim# to runtime path list.
22180218822Sdiminherit_rpath=$inherit_rpath
22181218822Sdim
22182218822Sdim# Whether libtool must link a program against all its dependency libraries.
22183218822Sdimlink_all_deplibs=$link_all_deplibs
22184218822Sdim
22185218822Sdim# Fix the shell variable \$srcfile for the compiler.
22186218822Sdimfix_srcfile_path=$lt_fix_srcfile_path
22187218822Sdim
22188218822Sdim# Set to "yes" if exported symbols are required.
22189218822Sdimalways_export_symbols=$always_export_symbols
22190218822Sdim
22191218822Sdim# The commands to list exported symbols.
22192218822Sdimexport_symbols_cmds=$lt_export_symbols_cmds
22193218822Sdim
22194218822Sdim# Symbols that should not be listed in the preloaded symbols.
22195218822Sdimexclude_expsyms=$lt_exclude_expsyms
22196218822Sdim
22197218822Sdim# Symbols that must always be exported.
22198218822Sdiminclude_expsyms=$lt_include_expsyms
22199218822Sdim
22200218822Sdim# Commands necessary for linking programs (against libraries) with templates.
22201218822Sdimprelink_cmds=$lt_prelink_cmds
22202218822Sdim
22203218822Sdim# Specify filename containing input files.
22204218822Sdimfile_list_spec=$lt_file_list_spec
22205218822Sdim
22206218822Sdim# How to hardcode a shared library path into an executable.
22207218822Sdimhardcode_action=$hardcode_action
22208218822Sdim
22209218822Sdim# ### END LIBTOOL CONFIG
22210218822Sdim
22211218822Sdim_LT_EOF
22212218822Sdim
22213218822Sdim  case $host_os in
22214218822Sdim  aix3*)
22215218822Sdim    cat <<\_LT_EOF >> "$cfgfile"
22216218822Sdim# AIX sometimes has problems with the GCC collect2 program.  For some
22217218822Sdim# reason, if we set the COLLECT_NAMES environment variable, the problems
22218218822Sdim# vanish in a puff of smoke.
22219218822Sdimif test "X${COLLECT_NAMES+set}" != Xset; then
22220218822Sdim  COLLECT_NAMES=
22221218822Sdim  export COLLECT_NAMES
22222218822Sdimfi
22223218822Sdim_LT_EOF
22224218822Sdim    ;;
22225218822Sdim  esac
22226218822Sdim
22227218822Sdim
22228218822Sdimltmain="$ac_aux_dir/ltmain.sh"
22229218822Sdim
22230218822Sdim
22231218822Sdim  # We use sed instead of cat because bash on DJGPP gets confused if
22232218822Sdim  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22233218822Sdim  # text mode, it properly converts lines to CR/LF.  This bash problem
22234218822Sdim  # is reportedly fixed, but why not run on old versions too?
22235218822Sdim  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22236218822Sdim    || (rm -f "$cfgfile"; exit 1)
22237218822Sdim
22238218822Sdim  case $xsi_shell in
22239218822Sdim  yes)
22240218822Sdim    cat << \_LT_EOF >> "$cfgfile"
22241218822Sdim# func_dirname file append nondir_replacement
22242218822Sdim# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22243218822Sdim# otherwise set result to NONDIR_REPLACEMENT.
22244218822Sdimfunc_dirname ()
22245218822Sdim{
22246218822Sdim  case ${1} in
22247218822Sdim    */*) func_dirname_result="${1%/*}${2}" ;;
22248218822Sdim    *  ) func_dirname_result="${3}" ;;
22249218822Sdim  esac
22250218822Sdim}
22251218822Sdim
22252218822Sdim# func_basename file
22253218822Sdimfunc_basename ()
22254218822Sdim{
22255218822Sdim  func_basename_result="${1##*/}"
22256218822Sdim}
22257218822Sdim
22258218822Sdim# func_stripname prefix suffix name
22259218822Sdim# strip PREFIX and SUFFIX off of NAME.
22260218822Sdim# PREFIX and SUFFIX must not contain globbing or regex special
22261218822Sdim# characters, hashes, percent signs, but SUFFIX may contain a leading
22262218822Sdim# dot (in which case that matches only a dot).
22263218822Sdimfunc_stripname ()
22264218822Sdim{
22265218822Sdim  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22266218822Sdim  # positional parameters, so assign one to ordinary parameter first.
22267218822Sdim  func_stripname_result=${3}
22268218822Sdim  func_stripname_result=${func_stripname_result#"${1}"}
22269218822Sdim  func_stripname_result=${func_stripname_result%"${2}"}
22270218822Sdim}
22271218822Sdim
22272218822Sdim# func_opt_split
22273218822Sdimfunc_opt_split ()
22274218822Sdim{
22275218822Sdim  func_opt_split_opt=${1%%=*}
22276218822Sdim  func_opt_split_arg=${1#*=}
22277218822Sdim}
22278218822Sdim
22279218822Sdim# func_lo2o object
22280218822Sdimfunc_lo2o ()
22281218822Sdim{
22282218822Sdim  case ${1} in
22283218822Sdim    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22284218822Sdim    *)    func_lo2o_result=${1} ;;
22285218822Sdim  esac
22286218822Sdim}
22287218822Sdim_LT_EOF
22288218822Sdim    ;;
22289218822Sdim  *) # Bourne compatible functions.
22290218822Sdim    cat << \_LT_EOF >> "$cfgfile"
22291218822Sdim# func_dirname file append nondir_replacement
22292218822Sdim# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22293218822Sdim# otherwise set result to NONDIR_REPLACEMENT.
22294218822Sdimfunc_dirname ()
22295218822Sdim{
22296218822Sdim  # Extract subdirectory from the argument.
22297218822Sdim  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22298218822Sdim  if test "X$func_dirname_result" = "X${1}"; then
22299218822Sdim    func_dirname_result="${3}"
22300218822Sdim  else
22301218822Sdim    func_dirname_result="$func_dirname_result${2}"
22302218822Sdim  fi
22303218822Sdim}
22304218822Sdim
22305218822Sdim# func_basename file
22306218822Sdimfunc_basename ()
22307218822Sdim{
22308218822Sdim  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22309218822Sdim}
22310218822Sdim
22311218822Sdim# func_stripname prefix suffix name
22312218822Sdim# strip PREFIX and SUFFIX off of NAME.
22313218822Sdim# PREFIX and SUFFIX must not contain globbing or regex special
22314218822Sdim# characters, hashes, percent signs, but SUFFIX may contain a leading
22315218822Sdim# dot (in which case that matches only a dot).
22316218822Sdim# func_strip_suffix prefix name
22317218822Sdimfunc_stripname ()
22318218822Sdim{
22319218822Sdim  case ${2} in
22320218822Sdim    .*) func_stripname_result=`$ECHO "X${3}" \
22321218822Sdim           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22322218822Sdim    *)  func_stripname_result=`$ECHO "X${3}" \
22323218822Sdim           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22324218822Sdim  esac
22325218822Sdim}
22326218822Sdim
22327218822Sdim# sed scripts:
22328218822Sdimmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22329218822Sdimmy_sed_long_arg='1s/^-[^=]*=//'
22330218822Sdim
22331218822Sdim# func_opt_split
22332218822Sdimfunc_opt_split ()
22333218822Sdim{
22334218822Sdim  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22335218822Sdim  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22336218822Sdim}
22337218822Sdim
22338218822Sdim# func_lo2o object
22339218822Sdimfunc_lo2o ()
22340218822Sdim{
22341218822Sdim  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22342218822Sdim}
22343218822Sdim_LT_EOF
22344218822Sdimesac
22345218822Sdim
22346218822Sdimcase $lt_shell_append in
22347218822Sdim  yes)
22348218822Sdim    cat << \_LT_EOF >> "$cfgfile"
22349218822Sdim
22350218822Sdim# func_append var value
22351218822Sdim# Append VALUE to the end of shell variable VAR.
22352218822Sdimfunc_append ()
22353218822Sdim{
22354218822Sdim  eval "$1+=\$2"
22355218822Sdim}
22356218822Sdim_LT_EOF
22357218822Sdim    ;;
22358218822Sdim  *)
22359218822Sdim    cat << \_LT_EOF >> "$cfgfile"
22360218822Sdim
22361218822Sdim# func_append var value
22362218822Sdim# Append VALUE to the end of shell variable VAR.
22363218822Sdimfunc_append ()
22364218822Sdim{
22365218822Sdim  eval "$1=\$$1\$2"
22366218822Sdim}
22367218822Sdim_LT_EOF
22368218822Sdim    ;;
22369218822Sdim  esac
22370218822Sdim
22371218822Sdim
22372218822Sdim  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22373218822Sdim    || (rm -f "$cfgfile"; exit 1)
22374218822Sdim
22375218822Sdim  mv -f "$cfgfile" "$ofile" ||
22376218822Sdim    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22377218822Sdim  chmod +x "$ofile"
22378218822Sdim
22379218822Sdim ;;
22380218822Sdim    default-1 )
22381218822Sdim    for ac_file in $CONFIG_FILES; do
22382218822Sdim      # Support "outfile[:infile[:infile...]]"
22383218822Sdim      case "$ac_file" in
22384218822Sdim        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22385218822Sdim      esac
22386218822Sdim      # PO directories have a Makefile.in generated from Makefile.in.in.
22387218822Sdim      case "$ac_file" in */Makefile.in)
22388218822Sdim        # Adjust a relative srcdir.
22389218822Sdim        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22390218822Sdim        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22391218822Sdim        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22392218822Sdim        # In autoconf-2.13 it is called $ac_given_srcdir.
22393218822Sdim        # In autoconf-2.50 it is called $srcdir.
22394218822Sdim        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22395218822Sdim        case "$ac_given_srcdir" in
22396218822Sdim          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22397218822Sdim          /*) top_srcdir="$ac_given_srcdir" ;;
22398218822Sdim          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22399218822Sdim        esac
22400218822Sdim        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22401218822Sdim          rm -f "$ac_dir/POTFILES"
22402218822Sdim          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22403218822Sdim          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22404218822Sdim          POMAKEFILEDEPS="POTFILES.in"
22405218822Sdim          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22406218822Sdim          # on $ac_dir but don't depend on user-specified configuration
22407218822Sdim          # parameters.
22408218822Sdim          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22409218822Sdim            # The LINGUAS file contains the set of available languages.
22410218822Sdim            if test -n "$OBSOLETE_ALL_LINGUAS"; then
22411218822Sdim              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22412218822Sdim            fi
22413218822Sdim            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22414218822Sdim            # Hide the ALL_LINGUAS assigment from automake.
22415218822Sdim            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22416218822Sdim            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22417218822Sdim          else
22418218822Sdim            # The set of available languages was given in configure.in.
22419218822Sdim            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22420218822Sdim          fi
22421218822Sdim          case "$ac_given_srcdir" in
22422218822Sdim            .) srcdirpre= ;;
22423218822Sdim            *) srcdirpre='$(srcdir)/' ;;
22424218822Sdim          esac
22425218822Sdim          POFILES=
22426218822Sdim          GMOFILES=
22427218822Sdim          UPDATEPOFILES=
22428218822Sdim          DUMMYPOFILES=
22429218822Sdim          for lang in $ALL_LINGUAS; do
22430218822Sdim            POFILES="$POFILES $srcdirpre$lang.po"
22431218822Sdim            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22432218822Sdim            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22433218822Sdim            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22434218822Sdim          done
22435218822Sdim          # CATALOGS depends on both $ac_dir and the user's LINGUAS
22436218822Sdim          # environment variable.
22437218822Sdim          INST_LINGUAS=
22438218822Sdim          if test -n "$ALL_LINGUAS"; then
22439218822Sdim            for presentlang in $ALL_LINGUAS; do
22440218822Sdim              useit=no
22441218822Sdim              if test "%UNSET%" != "$LINGUAS"; then
22442218822Sdim                desiredlanguages="$LINGUAS"
22443218822Sdim              else
22444218822Sdim                desiredlanguages="$ALL_LINGUAS"
22445218822Sdim              fi
22446218822Sdim              for desiredlang in $desiredlanguages; do
22447218822Sdim                # Use the presentlang catalog if desiredlang is
22448218822Sdim                #   a. equal to presentlang, or
22449218822Sdim                #   b. a variant of presentlang (because in this case,
22450218822Sdim                #      presentlang can be used as a fallback for messages
22451218822Sdim                #      which are not translated in the desiredlang catalog).
22452218822Sdim                case "$desiredlang" in
22453218822Sdim                  "$presentlang"*) useit=yes;;
22454218822Sdim                esac
22455218822Sdim              done
22456218822Sdim              if test $useit = yes; then
22457218822Sdim                INST_LINGUAS="$INST_LINGUAS $presentlang"
22458218822Sdim              fi
22459218822Sdim            done
22460218822Sdim          fi
22461218822Sdim          CATALOGS=
22462218822Sdim          if test -n "$INST_LINGUAS"; then
22463218822Sdim            for lang in $INST_LINGUAS; do
22464218822Sdim              CATALOGS="$CATALOGS $lang.gmo"
22465218822Sdim            done
22466218822Sdim          fi
22467218822Sdim          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22468218822Sdim          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22469218822Sdim          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22470218822Sdim            if test -f "$f"; then
22471218822Sdim              case "$f" in
22472218822Sdim                *.orig | *.bak | *~) ;;
22473218822Sdim                *) cat "$f" >> "$ac_dir/Makefile" ;;
22474218822Sdim              esac
22475218822Sdim            fi
22476218822Sdim          done
22477218822Sdim        fi
22478218822Sdim        ;;
22479218822Sdim      esac
22480218822Sdim    done ;;
22481218822Sdim    bfd_stdint.h )
22482218822Sdimif test "$GCC" = yes; then
22483218822Sdim  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22484218822Sdimelse
22485218822Sdim  echo "/* generated for $CC */" > tmp-stdint.h
22486218822Sdimfi
22487218822Sdim
22488218822Sdimsed 's/^ *//' >> tmp-stdint.h <<EOF
22489218822Sdim
22490218822Sdim  #ifndef GCC_GENERATED_STDINT_H
22491218822Sdim  #define GCC_GENERATED_STDINT_H 1
22492218822Sdim
22493218822Sdim  #include <sys/types.h>
2249433965SjdpEOF
2249533965Sjdp
22496218822Sdimif test "$acx_cv_header_stdint" != stdint.h; then
22497218822Sdim  echo "#include <stddef.h>" >> tmp-stdint.h
22498218822Sdimfi
22499218822Sdimif test "$acx_cv_header_stdint" != stddef.h; then
22500218822Sdim  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22501218822Sdimfi
2250238889Sjdp
22503218822Sdimsed 's/^ *//' >> tmp-stdint.h <<EOF
22504218822Sdim  /* glibc uses these symbols as guards to prevent redefinitions.  */
22505218822Sdim  #ifdef __int8_t_defined
22506218822Sdim  #define _INT8_T
22507218822Sdim  #define _INT16_T
22508218822Sdim  #define _INT32_T
22509218822Sdim  #endif
22510218822Sdim  #ifdef __uint32_t_defined
22511218822Sdim  #define _UINT32_T
22512218822Sdim  #endif
22513218822Sdim
2251433965SjdpEOF
22515218822Sdim
22516218822Sdim# ----------------- done header, emit basic int types -------------
22517218822Sdimif test "$acx_cv_header_stdint" = stddef.h; then
22518218822Sdim  sed 's/^ *//' >> tmp-stdint.h <<EOF
22519218822Sdim
22520218822Sdim    #ifndef _UINT8_T
22521218822Sdim    #define _UINT8_T
22522218822Sdim    #ifndef __uint8_t_defined
22523218822Sdim    #define __uint8_t_defined
22524218822Sdim    typedef unsigned $acx_cv_type_int8_t uint8_t;
22525218822Sdim    #endif
22526218822Sdim    #endif
22527218822Sdim
22528218822Sdim    #ifndef _UINT16_T
22529218822Sdim    #define _UINT16_T
22530218822Sdim    #ifndef __uint16_t_defined
22531218822Sdim    #define __uint16_t_defined
22532218822Sdim    typedef unsigned $acx_cv_type_int16_t uint16_t;
22533218822Sdim    #endif
22534218822Sdim    #endif
22535218822Sdim
22536218822Sdim    #ifndef _UINT32_T
22537218822Sdim    #define _UINT32_T
22538218822Sdim    #ifndef __uint32_t_defined
22539218822Sdim    #define __uint32_t_defined
22540218822Sdim    typedef unsigned $acx_cv_type_int32_t uint32_t;
22541218822Sdim    #endif
22542218822Sdim    #endif
22543218822Sdim
22544218822Sdim    #ifndef _INT8_T
22545218822Sdim    #define _INT8_T
22546218822Sdim    #ifndef __int8_t_defined
22547218822Sdim    #define __int8_t_defined
22548218822Sdim    typedef $acx_cv_type_int8_t int8_t;
22549218822Sdim    #endif
22550218822Sdim    #endif
22551218822Sdim
22552218822Sdim    #ifndef _INT16_T
22553218822Sdim    #define _INT16_T
22554218822Sdim    #ifndef __int16_t_defined
22555218822Sdim    #define __int16_t_defined
22556218822Sdim    typedef $acx_cv_type_int16_t int16_t;
22557218822Sdim    #endif
22558218822Sdim    #endif
22559218822Sdim
22560218822Sdim    #ifndef _INT32_T
22561218822Sdim    #define _INT32_T
22562218822Sdim    #ifndef __int32_t_defined
22563218822Sdim    #define __int32_t_defined
22564218822Sdim    typedef $acx_cv_type_int32_t int32_t;
22565218822Sdim    #endif
22566218822Sdim    #endif
2256733965SjdpEOF
22568218822Sdimelif test "$ac_cv_type_u_int32_t" = yes; then
22569218822Sdim  sed 's/^ *//' >> tmp-stdint.h <<EOF
22570218822Sdim
22571218822Sdim    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22572218822Sdim    #ifndef _INT8_T
22573218822Sdim    #define _INT8_T
22574218822Sdim    #endif
22575218822Sdim    #ifndef _INT16_T
22576218822Sdim    #define _INT16_T
22577218822Sdim    #endif
22578218822Sdim    #ifndef _INT32_T
22579218822Sdim    #define _INT32_T
22580218822Sdim    #endif
22581218822Sdim
22582218822Sdim    #ifndef _UINT8_T
22583218822Sdim    #define _UINT8_T
22584218822Sdim    #ifndef __uint8_t_defined
22585218822Sdim    #define __uint8_t_defined
22586218822Sdim    typedef u_int8_t uint8_t;
22587218822Sdim    #endif
22588218822Sdim    #endif
22589218822Sdim
22590218822Sdim    #ifndef _UINT16_T
22591218822Sdim    #define _UINT16_T
22592218822Sdim    #ifndef __uint16_t_defined
22593218822Sdim    #define __uint16_t_defined
22594218822Sdim    typedef u_int16_t uint16_t;
22595218822Sdim    #endif
22596218822Sdim    #endif
22597218822Sdim
22598218822Sdim    #ifndef _UINT32_T
22599218822Sdim    #define _UINT32_T
22600218822Sdim    #ifndef __uint32_t_defined
22601218822Sdim    #define __uint32_t_defined
22602218822Sdim    typedef u_int32_t uint32_t;
22603218822Sdim    #endif
22604218822Sdim    #endif
22605218822SdimEOF
22606218822Sdimelse
22607218822Sdim  sed 's/^ *//' >> tmp-stdint.h <<EOF
22608218822Sdim
22609218822Sdim    /* Some systems have guard macros to prevent redefinitions, define them.  */
22610218822Sdim    #ifndef _INT8_T
22611218822Sdim    #define _INT8_T
22612218822Sdim    #endif
22613218822Sdim    #ifndef _INT16_T
22614218822Sdim    #define _INT16_T
22615218822Sdim    #endif
22616218822Sdim    #ifndef _INT32_T
22617218822Sdim    #define _INT32_T
22618218822Sdim    #endif
22619218822Sdim    #ifndef _UINT8_T
22620218822Sdim    #define _UINT8_T
22621218822Sdim    #endif
22622218822Sdim    #ifndef _UINT16_T
22623218822Sdim    #define _UINT16_T
22624218822Sdim    #endif
22625218822Sdim    #ifndef _UINT32_T
22626218822Sdim    #define _UINT32_T
22627218822Sdim    #endif
22628218822SdimEOF
22629218822Sdimfi
22630218822Sdim
22631218822Sdim# ------------- done basic int types, emit int64_t types ------------
22632218822Sdimif test "$ac_cv_type_uint64_t" = yes; then
22633218822Sdim  sed 's/^ *//' >> tmp-stdint.h <<EOF
22634218822Sdim
22635218822Sdim    /* system headers have good uint64_t and int64_t */
22636218822Sdim    #ifndef _INT64_T
22637218822Sdim    #define _INT64_T
22638218822Sdim    #endif
22639218822Sdim    #ifndef _UINT64_T
22640218822Sdim    #define _UINT64_T
22641218822Sdim    #endif
22642218822SdimEOF
22643218822Sdimelif test "$ac_cv_type_u_int64_t" = yes; then
22644218822Sdim  sed 's/^ *//' >> tmp-stdint.h <<EOF
22645218822Sdim
22646218822Sdim    /* system headers have an u_int64_t (and int64_t) */
22647218822Sdim    #ifndef _INT64_T
22648218822Sdim    #define _INT64_T
22649218822Sdim    #endif
22650218822Sdim    #ifndef _UINT64_T
22651218822Sdim    #define _UINT64_T
22652218822Sdim    #ifndef __uint64_t_defined
22653218822Sdim    #define __uint64_t_defined
22654218822Sdim    typedef u_int64_t uint64_t;
22655218822Sdim    #endif
22656218822Sdim    #endif
22657218822SdimEOF
22658218822Sdimelif test -n "$acx_cv_type_int64_t"; then
22659218822Sdim  sed 's/^ *//' >> tmp-stdint.h <<EOF
22660218822Sdim
22661218822Sdim    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22662218822Sdim    #ifndef _INT64_T
22663218822Sdim    #define _INT64_T
22664218822Sdim    typedef $acx_cv_type_int64_t int64_t;
22665218822Sdim    #endif
22666218822Sdim    #ifndef _UINT64_T
22667218822Sdim    #define _UINT64_T
22668218822Sdim    #ifndef __uint64_t_defined
22669218822Sdim    #define __uint64_t_defined
22670218822Sdim    typedef unsigned $acx_cv_type_int64_t uint64_t;
22671218822Sdim    #endif
22672218822Sdim    #endif
22673218822SdimEOF
22674218822Sdimelse
22675218822Sdim  sed 's/^ *//' >> tmp-stdint.h <<EOF
22676218822Sdim
22677218822Sdim    /* some common heuristics for int64_t, using compiler-specific tests */
22678218822Sdim    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22679218822Sdim    #ifndef _INT64_T
22680218822Sdim    #define _INT64_T
22681218822Sdim    #ifndef __int64_t_defined
22682218822Sdim    typedef long long int64_t;
22683218822Sdim    #endif
22684218822Sdim    #endif
22685218822Sdim    #ifndef _UINT64_T
22686218822Sdim    #define _UINT64_T
22687218822Sdim    typedef unsigned long long uint64_t;
22688218822Sdim    #endif
22689218822Sdim
22690218822Sdim    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22691218822Sdim    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22692218822Sdim       does not implement __extension__.  But that compiler doesn't define
22693218822Sdim       __GNUC_MINOR__.  */
22694218822Sdim    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22695218822Sdim    # define __extension__
22696218822Sdim    # endif
22697218822Sdim
22698218822Sdim    # ifndef _INT64_T
22699218822Sdim    # define _INT64_T
22700218822Sdim    __extension__ typedef long long int64_t;
22701218822Sdim    # endif
22702218822Sdim    # ifndef _UINT64_T
22703218822Sdim    # define _UINT64_T
22704218822Sdim    __extension__ typedef unsigned long long uint64_t;
22705218822Sdim    # endif
22706218822Sdim
22707218822Sdim    #elif !defined __STRICT_ANSI__
22708218822Sdim    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22709218822Sdim
22710218822Sdim    #  ifndef _INT64_T
22711218822Sdim    #  define _INT64_T
22712218822Sdim    typedef __int64 int64_t;
22713218822Sdim    #  endif
22714218822Sdim    #  ifndef _UINT64_T
22715218822Sdim    #  define _UINT64_T
22716218822Sdim    typedef unsigned __int64 uint64_t;
22717218822Sdim    #  endif
22718218822Sdim    # endif /* compiler */
22719218822Sdim
22720218822Sdim    #endif /* ANSI version */
22721218822SdimEOF
22722218822Sdimfi
22723218822Sdim
22724218822Sdim# ------------- done int64_t types, emit intptr types ------------
22725218822Sdimif test "$ac_cv_type_uintptr_t" != yes; then
22726218822Sdim  sed 's/^ *//' >> tmp-stdint.h <<EOF
22727218822Sdim
22728218822Sdim    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22729218822Sdim    #ifndef __uintptr_t_defined
22730218822Sdim    typedef u$acx_cv_type_intptr_t uintptr_t;
22731218822Sdim    #endif
22732218822Sdim    #ifndef __intptr_t_defined
22733218822Sdim    typedef $acx_cv_type_intptr_t  intptr_t;
22734218822Sdim    #endif
22735218822SdimEOF
22736218822Sdimfi
22737218822Sdim
22738218822Sdim# ------------- done intptr types, emit int_least types ------------
22739218822Sdimif test "$ac_cv_type_int_least32_t" != yes; then
22740218822Sdim  sed 's/^ *//' >> tmp-stdint.h <<EOF
22741218822Sdim
22742218822Sdim    /* Define int_least types */
22743218822Sdim    typedef int8_t     int_least8_t;
22744218822Sdim    typedef int16_t    int_least16_t;
22745218822Sdim    typedef int32_t    int_least32_t;
22746218822Sdim    #ifdef _INT64_T
22747218822Sdim    typedef int64_t    int_least64_t;
22748218822Sdim    #endif
22749218822Sdim
22750218822Sdim    typedef uint8_t    uint_least8_t;
22751218822Sdim    typedef uint16_t   uint_least16_t;
22752218822Sdim    typedef uint32_t   uint_least32_t;
22753218822Sdim    #ifdef _UINT64_T
22754218822Sdim    typedef uint64_t   uint_least64_t;
22755218822Sdim    #endif
22756218822SdimEOF
22757218822Sdimfi
22758218822Sdim
22759218822Sdim# ------------- done intptr types, emit int_fast types ------------
22760218822Sdimif test "$ac_cv_type_int_fast32_t" != yes; then
22761218822Sdim      sed 's/^ *//' >> tmp-stdint.h <<EOF
22762218822Sdim
22763218822Sdim    /* Define int_fast types.  short is often slow */
22764218822Sdim    typedef int8_t       int_fast8_t;
22765218822Sdim    typedef int          int_fast16_t;
22766218822Sdim    typedef int32_t      int_fast32_t;
22767218822Sdim    #ifdef _INT64_T
22768218822Sdim    typedef int64_t      int_fast64_t;
22769218822Sdim    #endif
22770218822Sdim
22771218822Sdim    typedef uint8_t      uint_fast8_t;
22772218822Sdim    typedef unsigned int uint_fast16_t;
22773218822Sdim    typedef uint32_t     uint_fast32_t;
22774218822Sdim    #ifdef _UINT64_T
22775218822Sdim    typedef uint64_t     uint_fast64_t;
22776218822Sdim    #endif
22777218822SdimEOF
22778218822Sdimfi
22779218822Sdim
22780218822Sdimif test "$ac_cv_type_uintmax_t" != yes; then
22781218822Sdim  sed 's/^ *//' >> tmp-stdint.h <<EOF
22782218822Sdim
22783218822Sdim    /* Define intmax based on what we found */
22784218822Sdim    #ifdef _INT64_T
22785218822Sdim    typedef int64_t       intmax_t;
22786218822Sdim    #else
22787218822Sdim    typedef long          intmax_t;
22788218822Sdim    #endif
22789218822Sdim    #ifdef _UINT64_T
22790218822Sdim    typedef uint64_t      uintmax_t;
22791218822Sdim    #else
22792218822Sdim    typedef unsigned long uintmax_t;
22793218822Sdim    #endif
22794218822SdimEOF
22795218822Sdimfi
22796218822Sdim
22797218822Sdimsed 's/^ *//' >> tmp-stdint.h <<EOF
22798218822Sdim
22799218822Sdim  #endif /* GCC_GENERATED_STDINT_H */
22800218822SdimEOF
22801218822Sdim
22802218822Sdimif test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
22803218822Sdim  rm -f tmp-stdint.h
22804218822Sdimelse
22805218822Sdim  mv -f tmp-stdint.h bfd_stdint.h
22806218822Sdimfi
22807218822Sdim
22808218822Sdim ;;
22809218822Sdim    default )
22810218822Sdimcase "$srcdir" in
22811218822Sdim  .) srcdirpre= ;;
22812218822Sdim  *) srcdirpre='$(srcdir)/' ;;
22813218822Sdimesac
22814218822SdimPOFILES=
22815218822SdimGMOFILES=
22816218822Sdimfor lang in dummy $OBSOLETE_ALL_LINGUAS; do
22817218822Sdim  if test $lang != dummy; then
22818218822Sdim    POFILES="$POFILES $srcdirpre$lang.po"
22819218822Sdim    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22820218822Sdim  fi
22821218822Sdimdone
22822218822Sdimsed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
22823218822Sdim    -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
22824218822Sdim    -e "s,@POFILES@,$POFILES," \
22825218822Sdim    -e "s,@GMOFILES@,$GMOFILES," \
22826218822Sdim    po/Makefile.in > po/Makefile ;;
22827218822Sdim  esac
22828218822Sdimdone
22829218822Sdim_ACEOF
22830218822Sdim
22831218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
22832218822Sdim
22833218822Sdim{ (exit 0); exit 0; }
22834218822Sdim_ACEOF
2283533965Sjdpchmod +x $CONFIG_STATUS
22836218822Sdimac_clean_files=$ac_clean_files_save
2283733965Sjdp
2283878828Sobrien
22839218822Sdim# configure is writing to config.log, and then calls config.status.
22840218822Sdim# config.status does its own redirection, appending to config.log.
22841218822Sdim# Unfortunately, on DOS this fails, as config.log is still kept open
22842218822Sdim# by configure, so config.status won't be able to write to it; its
22843218822Sdim# output is simply discarded.  So we exec the FD to /dev/null,
22844218822Sdim# effectively closing config.log, so it can be properly (re)opened and
22845218822Sdim# appended to by config.status.  When coming back to configure, we
22846218822Sdim# need to make the FD available again.
22847218822Sdimif test "$no_create" != yes; then
22848218822Sdim  ac_cs_success=:
22849218822Sdim  ac_config_status_args=
22850218822Sdim  test "$silent" = yes &&
22851218822Sdim    ac_config_status_args="$ac_config_status_args --quiet"
22852218822Sdim  exec 5>/dev/null
22853218822Sdim  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22854218822Sdim  exec 5>>config.log
22855218822Sdim  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22856218822Sdim  # would make configure fail if this is the last instruction.
22857218822Sdim  $ac_cs_success || { (exit 1); exit 1; }
22858218822Sdimfi
22859218822Sdim
22860218822Sdim
22861