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="ar.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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR 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=yes]
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-targets        alternative target configurations
1012218822Sdim  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1013218822Sdim  --enable-werror         treat compile warnings as errors
1014218822Sdim  --enable-build-warnings enable build-time compiler warnings
1015218822Sdim  --disable-nls           do not use Native Language Support
1016218822Sdim  --enable-maintainer-mode  enable make rules and dependencies not useful
1017218822Sdim			  (and sometimes confusing) to the casual installer
1018218822Sdim  --disable-rpath         do not hardcode runtime library paths
1019218822Sdim
1020218822SdimOptional Packages:
1021218822Sdim  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1022218822Sdim  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1023218822Sdim  --with-pic              try to use only PIC/non-PIC objects [default=use
1024218822Sdim                          both]
1025218822Sdim  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1026218822Sdim  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1027218822Sdim  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1028218822Sdim  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1029218822Sdim
1030218822SdimSome influential environment variables:
1031218822Sdim  CC          C compiler command
1032218822Sdim  CFLAGS      C compiler flags
1033218822Sdim  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1034218822Sdim              nonstandard directory <lib dir>
1035218822Sdim  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1036218822Sdim              headers in a nonstandard directory <include dir>
1037218822Sdim  CPP         C preprocessor
1038218822Sdim
1039218822SdimUse these variables to override the choices made by `configure' or to help
1040218822Sdimit to find libraries and programs with nonstandard names/locations.
1041218822Sdim
1042218822Sdim_ACEOF
1043218822Sdimfi
1044218822Sdim
1045218822Sdimif test "$ac_init_help" = "recursive"; then
1046218822Sdim  # If there are subdirs, report their specific --help.
1047218822Sdim  ac_popdir=`pwd`
1048218822Sdim  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1049218822Sdim    test -d $ac_dir || continue
1050218822Sdim    ac_builddir=.
1051218822Sdim
1052218822Sdimif test "$ac_dir" != .; then
1053218822Sdim  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1054218822Sdim  # A "../" for each directory in $ac_dir_suffix.
1055218822Sdim  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1056218822Sdimelse
1057218822Sdim  ac_dir_suffix= ac_top_builddir=
1058218822Sdimfi
1059218822Sdim
1060218822Sdimcase $srcdir in
1061218822Sdim  .)  # No --srcdir option.  We are building in place.
1062218822Sdim    ac_srcdir=.
1063218822Sdim    if test -z "$ac_top_builddir"; then
1064218822Sdim       ac_top_srcdir=.
1065130561Sobrien    else
1066218822Sdim       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1067218822Sdim    fi ;;
1068218822Sdim  [\\/]* | ?:[\\/]* )  # Absolute path.
1069218822Sdim    ac_srcdir=$srcdir$ac_dir_suffix;
1070218822Sdim    ac_top_srcdir=$srcdir ;;
1071218822Sdim  *) # Relative path.
1072218822Sdim    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073218822Sdim    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074218822Sdimesac
1075218822Sdim
1076218822Sdim# Do not use `cd foo && pwd` to compute absolute paths, because
1077218822Sdim# the directories may not exist.
1078218822Sdimcase `pwd` in
1079218822Sdim.) ac_abs_builddir="$ac_dir";;
1080218822Sdim*)
1081218822Sdim  case "$ac_dir" in
1082218822Sdim  .) ac_abs_builddir=`pwd`;;
1083218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1084218822Sdim  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085218822Sdim  esac;;
1086218822Sdimesac
1087218822Sdimcase $ac_abs_builddir in
1088218822Sdim.) ac_abs_top_builddir=${ac_top_builddir}.;;
1089218822Sdim*)
1090218822Sdim  case ${ac_top_builddir}. in
1091218822Sdim  .) ac_abs_top_builddir=$ac_abs_builddir;;
1092218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1093218822Sdim  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094218822Sdim  esac;;
1095218822Sdimesac
1096218822Sdimcase $ac_abs_builddir in
1097218822Sdim.) ac_abs_srcdir=$ac_srcdir;;
1098218822Sdim*)
1099218822Sdim  case $ac_srcdir in
1100218822Sdim  .) ac_abs_srcdir=$ac_abs_builddir;;
1101218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1102218822Sdim  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103218822Sdim  esac;;
1104218822Sdimesac
1105218822Sdimcase $ac_abs_builddir in
1106218822Sdim.) ac_abs_top_srcdir=$ac_top_srcdir;;
1107218822Sdim*)
1108218822Sdim  case $ac_top_srcdir in
1109218822Sdim  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1110218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1111218822Sdim  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1112218822Sdim  esac;;
1113218822Sdimesac
1114218822Sdim
1115218822Sdim    cd $ac_dir
1116218822Sdim    # Check for guested configure; otherwise get Cygnus style configure.
1117218822Sdim    if test -f $ac_srcdir/configure.gnu; then
1118218822Sdim      echo
1119218822Sdim      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1120218822Sdim    elif test -f $ac_srcdir/configure; then
1121218822Sdim      echo
1122218822Sdim      $SHELL $ac_srcdir/configure  --help=recursive
1123218822Sdim    elif test -f $ac_srcdir/configure.ac ||
1124218822Sdim	   test -f $ac_srcdir/configure.in; then
1125218822Sdim      echo
1126218822Sdim      $ac_configure --help
1127218822Sdim    else
1128218822Sdim      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129130561Sobrien    fi
1130218822Sdim    cd $ac_popdir
1131218822Sdim  done
1132218822Sdimfi
1133218822Sdim
1134218822Sdimtest -n "$ac_init_help" && exit 0
1135218822Sdimif $ac_init_version; then
1136218822Sdim  cat <<\_ACEOF
1137218822Sdim
1138218822SdimCopyright (C) 2003 Free Software Foundation, Inc.
1139218822SdimThis configure script is free software; the Free Software Foundation
1140218822Sdimgives unlimited permission to copy, distribute and modify it.
1141218822Sdim_ACEOF
1142218822Sdim  exit 0
1143218822Sdimfi
1144218822Sdimexec 5>config.log
1145218822Sdimcat >&5 <<_ACEOF
1146218822SdimThis file contains any messages produced by compilers while
1147218822Sdimrunning configure, to aid debugging if configure makes a mistake.
1148218822Sdim
1149218822SdimIt was created by $as_me, which was
1150218822Sdimgenerated by GNU Autoconf 2.59.  Invocation command line was
1151218822Sdim
1152218822Sdim  $ $0 $@
1153218822Sdim
1154218822Sdim_ACEOF
1155218822Sdim{
1156218822Sdimcat <<_ASUNAME
1157218822Sdim## --------- ##
1158218822Sdim## Platform. ##
1159218822Sdim## --------- ##
1160218822Sdim
1161218822Sdimhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162218822Sdimuname -m = `(uname -m) 2>/dev/null || echo unknown`
1163218822Sdimuname -r = `(uname -r) 2>/dev/null || echo unknown`
1164218822Sdimuname -s = `(uname -s) 2>/dev/null || echo unknown`
1165218822Sdimuname -v = `(uname -v) 2>/dev/null || echo unknown`
1166218822Sdim
1167218822Sdim/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168218822Sdim/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169218822Sdim
1170218822Sdim/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171218822Sdim/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172218822Sdim/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173218822Sdimhostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174218822Sdim/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175218822Sdim/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176218822Sdim/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177218822Sdim
1178218822Sdim_ASUNAME
1179218822Sdim
1180218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181218822Sdimfor as_dir in $PATH
1182218822Sdimdo
1183218822Sdim  IFS=$as_save_IFS
1184218822Sdim  test -z "$as_dir" && as_dir=.
1185218822Sdim  echo "PATH: $as_dir"
1186218822Sdimdone
1187218822Sdim
1188218822Sdim} >&5
1189218822Sdim
1190218822Sdimcat >&5 <<_ACEOF
1191218822Sdim
1192218822Sdim
1193218822Sdim## ----------- ##
1194218822Sdim## Core tests. ##
1195218822Sdim## ----------- ##
1196218822Sdim
1197218822Sdim_ACEOF
1198218822Sdim
1199218822Sdim
1200218822Sdim# Keep a trace of the command line.
1201218822Sdim# Strip out --no-create and --no-recursion so they do not pile up.
1202218822Sdim# Strip out --silent because we don't want to record it for future runs.
1203218822Sdim# Also quote any args containing shell meta-characters.
1204218822Sdim# Make two passes to allow for proper duplicate-argument suppression.
1205218822Sdimac_configure_args=
1206218822Sdimac_configure_args0=
1207218822Sdimac_configure_args1=
1208218822Sdimac_sep=
1209218822Sdimac_must_keep_next=false
1210218822Sdimfor ac_pass in 1 2
1211218822Sdimdo
1212218822Sdim  for ac_arg
1213218822Sdim  do
1214218822Sdim    case $ac_arg in
1215218822Sdim    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216218822Sdim    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217218822Sdim    | -silent | --silent | --silen | --sile | --sil)
1218218822Sdim      continue ;;
1219218822Sdim    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220218822Sdim      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221218822Sdim    esac
1222218822Sdim    case $ac_pass in
1223218822Sdim    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224218822Sdim    2)
1225218822Sdim      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226218822Sdim      if test $ac_must_keep_next = true; then
1227218822Sdim	ac_must_keep_next=false # Got value, back to normal.
1228218822Sdim      else
1229218822Sdim	case $ac_arg in
1230218822Sdim	  *=* | --config-cache | -C | -disable-* | --disable-* \
1231218822Sdim	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232218822Sdim	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233218822Sdim	  | -with-* | --with-* | -without-* | --without-* | --x)
1234218822Sdim	    case "$ac_configure_args0 " in
1235218822Sdim	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236218822Sdim	    esac
1237218822Sdim	    ;;
1238218822Sdim	  -* ) ac_must_keep_next=true ;;
1239218822Sdim	esac
1240218822Sdim      fi
1241218822Sdim      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242218822Sdim      # Get rid of the leading space.
1243218822Sdim      ac_sep=" "
1244218822Sdim      ;;
1245218822Sdim    esac
1246218822Sdim  done
1247218822Sdimdone
1248218822Sdim$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249218822Sdim$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250218822Sdim
1251218822Sdim# When interrupted or exit'd, cleanup temporary files, and complete
1252218822Sdim# config.log.  We remove comments because anyway the quotes in there
1253218822Sdim# would cause problems or look ugly.
1254218822Sdim# WARNING: Be sure not to use single quotes in there, as some shells,
1255218822Sdim# such as our DU 5.0 friend, will then `close' the trap.
1256218822Sdimtrap 'exit_status=$?
1257218822Sdim  # Save into config.log some information that might help in debugging.
1258218822Sdim  {
1259218822Sdim    echo
1260218822Sdim
1261218822Sdim    cat <<\_ASBOX
1262218822Sdim## ---------------- ##
1263218822Sdim## Cache variables. ##
1264218822Sdim## ---------------- ##
1265218822Sdim_ASBOX
1266218822Sdim    echo
1267218822Sdim    # The following way of writing the cache mishandles newlines in values,
1268218822Sdim{
1269218822Sdim  (set) 2>&1 |
1270218822Sdim    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271218822Sdim    *ac_space=\ *)
1272218822Sdim      sed -n \
1273218822Sdim	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274218822Sdim	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275218822Sdim      ;;
1276218822Sdim    *)
1277218822Sdim      sed -n \
1278218822Sdim	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279218822Sdim      ;;
1280218822Sdim    esac;
1281218822Sdim}
1282218822Sdim    echo
1283218822Sdim
1284218822Sdim    cat <<\_ASBOX
1285218822Sdim## ----------------- ##
1286218822Sdim## Output variables. ##
1287218822Sdim## ----------------- ##
1288218822Sdim_ASBOX
1289218822Sdim    echo
1290218822Sdim    for ac_var in $ac_subst_vars
1291218822Sdim    do
1292218822Sdim      eval ac_val=$`echo $ac_var`
1293218822Sdim      echo "$ac_var='"'"'$ac_val'"'"'"
1294218822Sdim    done | sort
1295218822Sdim    echo
1296218822Sdim
1297218822Sdim    if test -n "$ac_subst_files"; then
1298218822Sdim      cat <<\_ASBOX
1299218822Sdim## ------------- ##
1300218822Sdim## Output files. ##
1301218822Sdim## ------------- ##
1302218822Sdim_ASBOX
1303218822Sdim      echo
1304218822Sdim      for ac_var in $ac_subst_files
1305218822Sdim      do
1306218822Sdim	eval ac_val=$`echo $ac_var`
1307218822Sdim	echo "$ac_var='"'"'$ac_val'"'"'"
1308218822Sdim      done | sort
1309218822Sdim      echo
1310218822Sdim    fi
1311218822Sdim
1312218822Sdim    if test -s confdefs.h; then
1313218822Sdim      cat <<\_ASBOX
1314218822Sdim## ----------- ##
1315218822Sdim## confdefs.h. ##
1316218822Sdim## ----------- ##
1317218822Sdim_ASBOX
1318218822Sdim      echo
1319218822Sdim      sed "/^$/d" confdefs.h | sort
1320218822Sdim      echo
1321218822Sdim    fi
1322218822Sdim    test "$ac_signal" != 0 &&
1323218822Sdim      echo "$as_me: caught signal $ac_signal"
1324218822Sdim    echo "$as_me: exit $exit_status"
1325218822Sdim  } >&5
1326218822Sdim  rm -f core *.core &&
1327218822Sdim  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328218822Sdim    exit $exit_status
1329218822Sdim     ' 0
1330218822Sdimfor ac_signal in 1 2 13 15; do
1331218822Sdim  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332218822Sdimdone
1333218822Sdimac_signal=0
1334218822Sdim
1335218822Sdim# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336218822Sdimrm -rf conftest* confdefs.h
1337218822Sdim# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338218822Sdimecho >confdefs.h
1339218822Sdim
1340218822Sdim# Predefined preprocessor variables.
1341218822Sdim
1342218822Sdimcat >>confdefs.h <<_ACEOF
1343218822Sdim#define PACKAGE_NAME "$PACKAGE_NAME"
1344218822Sdim_ACEOF
1345218822Sdim
1346218822Sdim
1347218822Sdimcat >>confdefs.h <<_ACEOF
1348218822Sdim#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349218822Sdim_ACEOF
1350218822Sdim
1351218822Sdim
1352218822Sdimcat >>confdefs.h <<_ACEOF
1353218822Sdim#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354218822Sdim_ACEOF
1355218822Sdim
1356218822Sdim
1357218822Sdimcat >>confdefs.h <<_ACEOF
1358218822Sdim#define PACKAGE_STRING "$PACKAGE_STRING"
1359218822Sdim_ACEOF
1360218822Sdim
1361218822Sdim
1362218822Sdimcat >>confdefs.h <<_ACEOF
1363218822Sdim#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364218822Sdim_ACEOF
1365218822Sdim
1366218822Sdim
1367218822Sdim# Let the site file select an alternate cache file if it wants to.
1368218822Sdim# Prefer explicitly selected file to automatically selected ones.
1369218822Sdimif test -z "$CONFIG_SITE"; then
1370218822Sdim  if test "x$prefix" != xNONE; then
1371218822Sdim    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372218822Sdim  else
1373218822Sdim    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
137433965Sjdp  fi
137533965Sjdpfi
137633965Sjdpfor ac_site_file in $CONFIG_SITE; do
137733965Sjdp  if test -r "$ac_site_file"; then
1378218822Sdim    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379218822Sdimecho "$as_me: loading site script $ac_site_file" >&6;}
1380218822Sdim    sed 's/^/| /' "$ac_site_file" >&5
138133965Sjdp    . "$ac_site_file"
138233965Sjdp  fi
138333965Sjdpdone
138433965Sjdp
138533965Sjdpif test -r "$cache_file"; then
1386218822Sdim  # Some versions of bash will fail to source /dev/null (special
1387218822Sdim  # files actually), so we avoid doing that.
1388218822Sdim  if test -f "$cache_file"; then
1389218822Sdim    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390218822Sdimecho "$as_me: loading cache $cache_file" >&6;}
1391218822Sdim    case $cache_file in
1392218822Sdim      [\\/]* | ?:[\\/]* ) . $cache_file;;
1393218822Sdim      *)                      . ./$cache_file;;
1394218822Sdim    esac
1395218822Sdim  fi
139633965Sjdpelse
1397218822Sdim  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398218822Sdimecho "$as_me: creating cache $cache_file" >&6;}
1399218822Sdim  >$cache_file
140033965Sjdpfi
140133965Sjdp
1402218822Sdim# Check that the precious variables saved in the cache have kept the same
1403218822Sdim# value.
1404218822Sdimac_cache_corrupted=false
1405218822Sdimfor ac_var in `(set) 2>&1 |
1406218822Sdim	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407218822Sdim  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408218822Sdim  eval ac_new_set=\$ac_env_${ac_var}_set
1409218822Sdim  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410218822Sdim  eval ac_new_val="\$ac_env_${ac_var}_value"
1411218822Sdim  case $ac_old_set,$ac_new_set in
1412218822Sdim    set,)
1413218822Sdim      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414218822Sdimecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415218822Sdim      ac_cache_corrupted=: ;;
1416218822Sdim    ,set)
1417218822Sdim      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418218822Sdimecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419218822Sdim      ac_cache_corrupted=: ;;
1420218822Sdim    ,);;
1421218822Sdim    *)
1422218822Sdim      if test "x$ac_old_val" != "x$ac_new_val"; then
1423218822Sdim	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424218822Sdimecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425218822Sdim	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426218822Sdimecho "$as_me:   former value:  $ac_old_val" >&2;}
1427218822Sdim	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428218822Sdimecho "$as_me:   current value: $ac_new_val" >&2;}
1429218822Sdim	ac_cache_corrupted=:
1430218822Sdim      fi;;
1431218822Sdim  esac
1432218822Sdim  # Pass precious variables to config.status.
1433218822Sdim  if test "$ac_new_set" = set; then
1434218822Sdim    case $ac_new_val in
1435218822Sdim    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436218822Sdim      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437218822Sdim    *) ac_arg=$ac_var=$ac_new_val ;;
1438218822Sdim    esac
1439218822Sdim    case " $ac_configure_args " in
1440218822Sdim      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441218822Sdim      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442218822Sdim    esac
1443218822Sdim  fi
1444218822Sdimdone
1445218822Sdimif $ac_cache_corrupted; then
1446218822Sdim  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447218822Sdimecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1448218822Sdim  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449218822Sdimecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450218822Sdim   { (exit 1); exit 1; }; }
1451218822Sdimfi
1452218822Sdim
145333965Sjdpac_ext=c
145433965Sjdpac_cpp='$CPP $CPPFLAGS'
1455218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
145833965Sjdp
145933965Sjdp
146033965Sjdp
146133965Sjdp
146277298Sobrien
146377298Sobrien
146477298Sobrien
146577298Sobrien
146677298Sobrien
1467218822Sdim
1468218822Sdim
1469218822Sdim
1470218822Sdim
1471218822Sdim
1472218822Sdim
1473218822Sdim
1474218822Sdim
1475218822Sdim
1476218822Sdim
1477218822Sdim
147833965Sjdpac_aux_dir=
147938889Sjdpfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
148033965Sjdp  if test -f $ac_dir/install-sh; then
148133965Sjdp    ac_aux_dir=$ac_dir
148233965Sjdp    ac_install_sh="$ac_aux_dir/install-sh -c"
148333965Sjdp    break
148433965Sjdp  elif test -f $ac_dir/install.sh; then
148533965Sjdp    ac_aux_dir=$ac_dir
148633965Sjdp    ac_install_sh="$ac_aux_dir/install.sh -c"
148733965Sjdp    break
1488218822Sdim  elif test -f $ac_dir/shtool; then
1489218822Sdim    ac_aux_dir=$ac_dir
1490218822Sdim    ac_install_sh="$ac_aux_dir/shtool install -c"
1491218822Sdim    break
149233965Sjdp  fi
149333965Sjdpdone
149433965Sjdpif test -z "$ac_aux_dir"; then
1495218822Sdim  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1496218822Sdimecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1497218822Sdim   { (exit 1); exit 1; }; }
149833965Sjdpfi
1499218822Sdimac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500218822Sdimac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501218822Sdimac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
150233965Sjdp
1503218822Sdim# Make sure we can run config.sub.
1504218822Sdim$ac_config_sub sun4 >/dev/null 2>&1 ||
1505218822Sdim  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1506218822Sdimecho "$as_me: error: cannot run $ac_config_sub" >&2;}
1507218822Sdim   { (exit 1); exit 1; }; }
150833965Sjdp
1509218822Sdimecho "$as_me:$LINENO: checking build system type" >&5
1510218822Sdimecho $ECHO_N "checking build system type... $ECHO_C" >&6
1511218822Sdimif test "${ac_cv_build+set}" = set; then
1512218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1513218822Sdimelse
1514218822Sdim  ac_cv_build_alias=$build_alias
1515218822Sdimtest -z "$ac_cv_build_alias" &&
1516218822Sdim  ac_cv_build_alias=`$ac_config_guess`
1517218822Sdimtest -z "$ac_cv_build_alias" &&
1518218822Sdim  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1519218822Sdimecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
1520218822Sdim   { (exit 1); exit 1; }; }
1521218822Sdimac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1522218822Sdim  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1523218822Sdimecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1524218822Sdim   { (exit 1); exit 1; }; }
152533965Sjdp
1526218822Sdimfi
1527218822Sdimecho "$as_me:$LINENO: result: $ac_cv_build" >&5
1528218822Sdimecho "${ECHO_T}$ac_cv_build" >&6
1529218822Sdimbuild=$ac_cv_build
1530218822Sdimbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531218822Sdimbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532218822Sdimbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533218822Sdim
1534218822Sdim
1535218822Sdimecho "$as_me:$LINENO: checking host system type" >&5
1536218822Sdimecho $ECHO_N "checking host system type... $ECHO_C" >&6
1537218822Sdimif test "${ac_cv_host+set}" = set; then
1538218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1539218822Sdimelse
1540218822Sdim  ac_cv_host_alias=$host_alias
1541218822Sdimtest -z "$ac_cv_host_alias" &&
1542218822Sdim  ac_cv_host_alias=$ac_cv_build_alias
1543218822Sdimac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1544218822Sdim  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1545218822Sdimecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1546218822Sdim   { (exit 1); exit 1; }; }
1547218822Sdim
1548218822Sdimfi
1549218822Sdimecho "$as_me:$LINENO: result: $ac_cv_host" >&5
1550218822Sdimecho "${ECHO_T}$ac_cv_host" >&6
1551218822Sdimhost=$ac_cv_host
1552218822Sdimhost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1553218822Sdimhost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1554218822Sdimhost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555218822Sdim
1556218822Sdim
1557218822Sdimecho "$as_me:$LINENO: checking target system type" >&5
1558218822Sdimecho $ECHO_N "checking target system type... $ECHO_C" >&6
1559218822Sdimif test "${ac_cv_target+set}" = set; then
1560218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1561218822Sdimelse
1562218822Sdim  ac_cv_target_alias=$target_alias
1563218822Sdimtest "x$ac_cv_target_alias" = "x" &&
1564218822Sdim  ac_cv_target_alias=$ac_cv_host_alias
1565218822Sdimac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1566218822Sdim  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1567218822Sdimecho "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1568218822Sdim   { (exit 1); exit 1; }; }
1569218822Sdim
1570218822Sdimfi
1571218822Sdimecho "$as_me:$LINENO: result: $ac_cv_target" >&5
1572218822Sdimecho "${ECHO_T}$ac_cv_target" >&6
1573218822Sdimtarget=$ac_cv_target
1574218822Sdimtarget_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575218822Sdimtarget_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576218822Sdimtarget_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577218822Sdim
1578218822Sdim
157933965Sjdp# The aliases save the names the user supplied, while $host etc.
158033965Sjdp# will get canonicalized.
1581218822Sdimtest -n "$target_alias" &&
1582218822Sdim  test "$program_prefix$program_suffix$program_transform_name" = \
1583218822Sdim    NONENONEs,x,x, &&
1584218822Sdim  program_prefix=${target_alias}-
1585218822Sdimac_ext=c
1586218822Sdimac_cpp='$CPP $CPPFLAGS'
1587218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1588218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1589218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
1590218822Sdimif test -n "$ac_tool_prefix"; then
1591218822Sdim  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1592218822Sdimset dummy ${ac_tool_prefix}gcc; ac_word=$2
1593218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1594218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
1596218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1597218822Sdimelse
1598218822Sdim  if test -n "$CC"; then
1599218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
1600218822Sdimelse
1601218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602218822Sdimfor as_dir in $PATH
1603218822Sdimdo
1604218822Sdim  IFS=$as_save_IFS
1605218822Sdim  test -z "$as_dir" && as_dir=.
1606218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1607218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608218822Sdim    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1609218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610218822Sdim    break 2
1611218822Sdim  fi
1612218822Sdimdone
1613218822Sdimdone
161433965Sjdp
1615218822Sdimfi
1616218822Sdimfi
1617218822SdimCC=$ac_cv_prog_CC
1618218822Sdimif test -n "$CC"; then
1619218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
1620218822Sdimecho "${ECHO_T}$CC" >&6
1621218822Sdimelse
1622218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1623218822Sdimecho "${ECHO_T}no" >&6
1624218822Sdimfi
162533965Sjdp
162633965Sjdpfi
1627218822Sdimif test -z "$ac_cv_prog_CC"; then
1628218822Sdim  ac_ct_CC=$CC
1629218822Sdim  # Extract the first word of "gcc", so it can be a program name with args.
1630218822Sdimset dummy gcc; ac_word=$2
1631218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1632218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1634218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1635218822Sdimelse
1636218822Sdim  if test -n "$ac_ct_CC"; then
1637218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1638218822Sdimelse
1639218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640218822Sdimfor as_dir in $PATH
1641218822Sdimdo
1642218822Sdim  IFS=$as_save_IFS
1643218822Sdim  test -z "$as_dir" && as_dir=.
1644218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1645218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646218822Sdim    ac_cv_prog_ac_ct_CC="gcc"
1647218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648218822Sdim    break 2
1649218822Sdim  fi
1650218822Sdimdone
1651218822Sdimdone
165233965Sjdp
1653218822Sdimfi
1654218822Sdimfi
1655218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
1656218822Sdimif test -n "$ac_ct_CC"; then
1657218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1658218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
1659218822Sdimelse
1660218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1661218822Sdimecho "${ECHO_T}no" >&6
1662218822Sdimfi
166333965Sjdp
1664218822Sdim  CC=$ac_ct_CC
1665218822Sdimelse
1666218822Sdim  CC="$ac_cv_prog_CC"
1667218822Sdimfi
166833965Sjdp
1669218822Sdimif test -z "$CC"; then
1670218822Sdim  if test -n "$ac_tool_prefix"; then
1671218822Sdim  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1672218822Sdimset dummy ${ac_tool_prefix}cc; ac_word=$2
1673218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1674218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
1676218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1677218822Sdimelse
1678218822Sdim  if test -n "$CC"; then
1679218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
1680218822Sdimelse
1681218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682218822Sdimfor as_dir in $PATH
1683218822Sdimdo
1684218822Sdim  IFS=$as_save_IFS
1685218822Sdim  test -z "$as_dir" && as_dir=.
1686218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1687218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688218822Sdim    ac_cv_prog_CC="${ac_tool_prefix}cc"
1689218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690218822Sdim    break 2
1691218822Sdim  fi
1692218822Sdimdone
1693218822Sdimdone
169433965Sjdp
1695218822Sdimfi
1696218822Sdimfi
1697218822SdimCC=$ac_cv_prog_CC
1698218822Sdimif test -n "$CC"; then
1699218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
1700218822Sdimecho "${ECHO_T}$CC" >&6
1701218822Sdimelse
1702218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1703218822Sdimecho "${ECHO_T}no" >&6
1704218822Sdimfi
170533965Sjdp
1706218822Sdimfi
1707218822Sdimif test -z "$ac_cv_prog_CC"; then
1708218822Sdim  ac_ct_CC=$CC
1709218822Sdim  # Extract the first word of "cc", so it can be a program name with args.
1710218822Sdimset dummy cc; ac_word=$2
1711218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1712218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1715218822Sdimelse
1716218822Sdim  if test -n "$ac_ct_CC"; then
1717218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1718218822Sdimelse
1719218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720218822Sdimfor as_dir in $PATH
1721218822Sdimdo
1722218822Sdim  IFS=$as_save_IFS
1723218822Sdim  test -z "$as_dir" && as_dir=.
1724218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1725218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726218822Sdim    ac_cv_prog_ac_ct_CC="cc"
1727218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728218822Sdim    break 2
1729218822Sdim  fi
1730218822Sdimdone
1731218822Sdimdone
173233965Sjdp
1733218822Sdimfi
1734218822Sdimfi
1735218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
1736218822Sdimif test -n "$ac_ct_CC"; then
1737218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1738218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
1739218822Sdimelse
1740218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1741218822Sdimecho "${ECHO_T}no" >&6
1742218822Sdimfi
174333965Sjdp
1744218822Sdim  CC=$ac_ct_CC
1745218822Sdimelse
1746218822Sdim  CC="$ac_cv_prog_CC"
1747218822Sdimfi
174833965Sjdp
1749218822Sdimfi
1750218822Sdimif test -z "$CC"; then
1751218822Sdim  # Extract the first word of "cc", so it can be a program name with args.
1752218822Sdimset dummy cc; ac_word=$2
1753218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1754218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
1756218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1757218822Sdimelse
1758218822Sdim  if test -n "$CC"; then
1759218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
1760218822Sdimelse
1761218822Sdim  ac_prog_rejected=no
1762218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763218822Sdimfor as_dir in $PATH
1764218822Sdimdo
1765218822Sdim  IFS=$as_save_IFS
1766218822Sdim  test -z "$as_dir" && as_dir=.
1767218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1768218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769218822Sdim    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1770218822Sdim       ac_prog_rejected=yes
1771218822Sdim       continue
1772218822Sdim     fi
1773218822Sdim    ac_cv_prog_CC="cc"
1774218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775218822Sdim    break 2
1776218822Sdim  fi
1777218822Sdimdone
1778218822Sdimdone
177933965Sjdp
1780218822Sdimif test $ac_prog_rejected = yes; then
1781218822Sdim  # We found a bogon in the path, so make sure we never use it.
1782218822Sdim  set dummy $ac_cv_prog_CC
1783218822Sdim  shift
1784218822Sdim  if test $# != 0; then
1785218822Sdim    # We chose a different compiler from the bogus one.
1786218822Sdim    # However, it has the same basename, so the bogon will be chosen
1787218822Sdim    # first if we set CC to just the basename; use the full file name.
1788218822Sdim    shift
1789218822Sdim    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1790218822Sdim  fi
1791218822Sdimfi
1792218822Sdimfi
1793218822Sdimfi
1794218822SdimCC=$ac_cv_prog_CC
1795218822Sdimif test -n "$CC"; then
1796218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
1797218822Sdimecho "${ECHO_T}$CC" >&6
1798218822Sdimelse
1799218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1800218822Sdimecho "${ECHO_T}no" >&6
1801218822Sdimfi
180233965Sjdp
1803218822Sdimfi
1804218822Sdimif test -z "$CC"; then
1805218822Sdim  if test -n "$ac_tool_prefix"; then
1806218822Sdim  for ac_prog in cl
1807218822Sdim  do
1808218822Sdim    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1809218822Sdimset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1810218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1811218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
1813218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1814218822Sdimelse
1815218822Sdim  if test -n "$CC"; then
1816218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
1817218822Sdimelse
1818218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819218822Sdimfor as_dir in $PATH
1820218822Sdimdo
1821218822Sdim  IFS=$as_save_IFS
1822218822Sdim  test -z "$as_dir" && as_dir=.
1823218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1824218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825218822Sdim    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1826218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827218822Sdim    break 2
1828218822Sdim  fi
1829218822Sdimdone
1830218822Sdimdone
183133965Sjdp
1832218822Sdimfi
1833218822Sdimfi
1834218822SdimCC=$ac_cv_prog_CC
1835218822Sdimif test -n "$CC"; then
1836218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
1837218822Sdimecho "${ECHO_T}$CC" >&6
1838218822Sdimelse
1839218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1840218822Sdimecho "${ECHO_T}no" >&6
1841218822Sdimfi
184238889Sjdp
1843218822Sdim    test -n "$CC" && break
1844218822Sdim  done
1845218822Sdimfi
1846218822Sdimif test -z "$CC"; then
1847218822Sdim  ac_ct_CC=$CC
1848218822Sdim  for ac_prog in cl
1849218822Sdimdo
1850218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
1851218822Sdimset dummy $ac_prog; ac_word=$2
1852218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
1853218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
185668765Sobrienelse
1857218822Sdim  if test -n "$ac_ct_CC"; then
1858218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859218822Sdimelse
1860218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861218822Sdimfor as_dir in $PATH
1862218822Sdimdo
1863218822Sdim  IFS=$as_save_IFS
1864218822Sdim  test -z "$as_dir" && as_dir=.
1865218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
1866218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867218822Sdim    ac_cv_prog_ac_ct_CC="$ac_prog"
1868218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869218822Sdim    break 2
1870218822Sdim  fi
1871218822Sdimdone
1872218822Sdimdone
187368765Sobrien
1874218822Sdimfi
1875218822Sdimfi
1876218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
1877218822Sdimif test -n "$ac_ct_CC"; then
1878218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
188068765Sobrienelse
1881218822Sdim  echo "$as_me:$LINENO: result: no" >&5
1882218822Sdimecho "${ECHO_T}no" >&6
188368765Sobrienfi
1884218822Sdim
1885218822Sdim  test -n "$ac_ct_CC" && break
1886218822Sdimdone
1887218822Sdim
1888218822Sdim  CC=$ac_ct_CC
1889218822Sdimfi
1890218822Sdim
1891218822Sdimfi
1892218822Sdim
1893218822Sdim
1894218822Sdimtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1895218822SdimSee \`config.log' for more details." >&5
1896218822Sdimecho "$as_me: error: no acceptable C compiler found in \$PATH
1897218822SdimSee \`config.log' for more details." >&2;}
1898218822Sdim   { (exit 1); exit 1; }; }
1899218822Sdim
1900218822Sdim# Provide some information about the compiler.
1901218822Sdimecho "$as_me:$LINENO:" \
1902218822Sdim     "checking for C compiler version" >&5
1903218822Sdimac_compiler=`set X $ac_compile; echo $2`
1904218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1905218822Sdim  (eval $ac_compiler --version </dev/null >&5) 2>&5
1906218822Sdim  ac_status=$?
1907218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908218822Sdim  (exit $ac_status); }
1909218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1910218822Sdim  (eval $ac_compiler -v </dev/null >&5) 2>&5
1911218822Sdim  ac_status=$?
1912218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913218822Sdim  (exit $ac_status); }
1914218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1915218822Sdim  (eval $ac_compiler -V </dev/null >&5) 2>&5
1916218822Sdim  ac_status=$?
1917218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918218822Sdim  (exit $ac_status); }
1919218822Sdim
1920218822Sdimcat >conftest.$ac_ext <<_ACEOF
1921218822Sdim/* confdefs.h.  */
1922218822Sdim_ACEOF
1923218822Sdimcat confdefs.h >>conftest.$ac_ext
1924218822Sdimcat >>conftest.$ac_ext <<_ACEOF
1925218822Sdim/* end confdefs.h.  */
1926218822Sdim
1927218822Sdimint
1928218822Sdimmain ()
1929218822Sdim{
1930218822Sdim
1931218822Sdim  ;
1932218822Sdim  return 0;
1933218822Sdim}
1934218822Sdim_ACEOF
1935218822Sdimac_clean_files_save=$ac_clean_files
1936218822Sdimac_clean_files="$ac_clean_files a.out a.exe b.out"
1937218822Sdim# Try to create an executable without -o first, disregard a.out.
1938218822Sdim# It will help us diagnose broken compilers, and finding out an intuition
1939218822Sdim# of exeext.
1940218822Sdimecho "$as_me:$LINENO: checking for C compiler default output file name" >&5
1941218822Sdimecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1942218822Sdimac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1943218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1944218822Sdim  (eval $ac_link_default) 2>&5
1945218822Sdim  ac_status=$?
1946218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947218822Sdim  (exit $ac_status); }; then
1948218822Sdim  # Find the output, starting from the most likely.  This scheme is
1949218822Sdim# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1950218822Sdim# resort.
1951218822Sdim
1952218822Sdim# Be careful to initialize this variable, since it used to be cached.
1953218822Sdim# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1954218822Sdimac_cv_exeext=
1955218822Sdim# b.out is created by i960 compilers.
1956218822Sdimfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1957218822Sdimdo
1958218822Sdim  test -f "$ac_file" || continue
1959218822Sdim  case $ac_file in
1960218822Sdim    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1961218822Sdim	;;
1962218822Sdim    conftest.$ac_ext )
1963218822Sdim	# This is the source file.
1964218822Sdim	;;
1965218822Sdim    [ab].out )
1966218822Sdim	# We found the default executable, but exeext='' is most
1967218822Sdim	# certainly right.
1968218822Sdim	break;;
1969218822Sdim    *.* )
1970218822Sdim	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1971218822Sdim	# FIXME: I believe we export ac_cv_exeext for Libtool,
1972218822Sdim	# but it would be cool to find out if it's true.  Does anybody
1973218822Sdim	# maintain Libtool? --akim.
1974218822Sdim	export ac_cv_exeext
1975218822Sdim	break;;
1976218822Sdim    * )
1977218822Sdim	break;;
1978218822Sdim  esac
1979218822Sdimdone
1980218822Sdimelse
1981218822Sdim  echo "$as_me: failed program was:" >&5
1982218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1983218822Sdim
1984218822Sdim{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1985218822SdimSee \`config.log' for more details." >&5
1986218822Sdimecho "$as_me: error: C compiler cannot create executables
1987218822SdimSee \`config.log' for more details." >&2;}
1988218822Sdim   { (exit 77); exit 77; }; }
1989218822Sdimfi
1990218822Sdim
1991218822Sdimac_exeext=$ac_cv_exeext
1992218822Sdimecho "$as_me:$LINENO: result: $ac_file" >&5
1993218822Sdimecho "${ECHO_T}$ac_file" >&6
1994218822Sdim
1995218822Sdim# Check the compiler produces executables we can run.  If not, either
1996218822Sdim# the compiler is broken, or we cross compile.
1997218822Sdimecho "$as_me:$LINENO: checking whether the C compiler works" >&5
1998218822Sdimecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1999218822Sdim# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2000218822Sdim# If not cross compiling, check that we can run a simple program.
2001218822Sdimif test "$cross_compiling" != yes; then
2002218822Sdim  if { ac_try='./$ac_file'
2003218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004218822Sdim  (eval $ac_try) 2>&5
2005218822Sdim  ac_status=$?
2006218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007218822Sdim  (exit $ac_status); }; }; then
2008218822Sdim    cross_compiling=no
2009218822Sdim  else
2010218822Sdim    if test "$cross_compiling" = maybe; then
2011218822Sdim	cross_compiling=yes
2012218822Sdim    else
2013218822Sdim	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2014218822SdimIf you meant to cross compile, use \`--host'.
2015218822SdimSee \`config.log' for more details." >&5
2016218822Sdimecho "$as_me: error: cannot run C compiled programs.
2017218822SdimIf you meant to cross compile, use \`--host'.
2018218822SdimSee \`config.log' for more details." >&2;}
2019218822Sdim   { (exit 1); exit 1; }; }
2020218822Sdim    fi
2021218822Sdim  fi
2022218822Sdimfi
2023218822Sdimecho "$as_me:$LINENO: result: yes" >&5
2024218822Sdimecho "${ECHO_T}yes" >&6
2025218822Sdim
2026218822Sdimrm -f a.out a.exe conftest$ac_cv_exeext b.out
2027218822Sdimac_clean_files=$ac_clean_files_save
2028218822Sdim# Check the compiler produces executables we can run.  If not, either
2029218822Sdim# the compiler is broken, or we cross compile.
2030218822Sdimecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
2031218822Sdimecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2032218822Sdimecho "$as_me:$LINENO: result: $cross_compiling" >&5
2033218822Sdimecho "${ECHO_T}$cross_compiling" >&6
2034218822Sdim
2035218822Sdimecho "$as_me:$LINENO: checking for suffix of executables" >&5
2036218822Sdimecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2037218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2038218822Sdim  (eval $ac_link) 2>&5
2039218822Sdim  ac_status=$?
2040218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041218822Sdim  (exit $ac_status); }; then
2042218822Sdim  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2043218822Sdim# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2044218822Sdim# work properly (i.e., refer to `conftest.exe'), while it won't with
2045218822Sdim# `rm'.
2046218822Sdimfor ac_file in conftest.exe conftest conftest.*; do
2047218822Sdim  test -f "$ac_file" || continue
2048218822Sdim  case $ac_file in
2049218822Sdim    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2050218822Sdim    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2051218822Sdim	  export ac_cv_exeext
2052218822Sdim	  break;;
2053218822Sdim    * ) break;;
2054218822Sdim  esac
2055218822Sdimdone
2056218822Sdimelse
2057218822Sdim  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2058218822SdimSee \`config.log' for more details." >&5
2059218822Sdimecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
2060218822SdimSee \`config.log' for more details." >&2;}
2061218822Sdim   { (exit 1); exit 1; }; }
2062218822Sdimfi
2063218822Sdim
2064218822Sdimrm -f conftest$ac_cv_exeext
2065218822Sdimecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2066218822Sdimecho "${ECHO_T}$ac_cv_exeext" >&6
2067218822Sdim
2068218822Sdimrm -f conftest.$ac_ext
2069218822SdimEXEEXT=$ac_cv_exeext
2070218822Sdimac_exeext=$EXEEXT
2071218822Sdimecho "$as_me:$LINENO: checking for suffix of object files" >&5
2072218822Sdimecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2073218822Sdimif test "${ac_cv_objext+set}" = set; then
2074218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2075218822Sdimelse
2076218822Sdim  cat >conftest.$ac_ext <<_ACEOF
2077218822Sdim/* confdefs.h.  */
2078218822Sdim_ACEOF
2079218822Sdimcat confdefs.h >>conftest.$ac_ext
2080218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2081218822Sdim/* end confdefs.h.  */
2082218822Sdim
2083218822Sdimint
2084218822Sdimmain ()
2085218822Sdim{
2086218822Sdim
2087218822Sdim  ;
2088218822Sdim  return 0;
2089218822Sdim}
2090218822Sdim_ACEOF
2091218822Sdimrm -f conftest.o conftest.obj
2092218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093218822Sdim  (eval $ac_compile) 2>&5
2094218822Sdim  ac_status=$?
2095218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096218822Sdim  (exit $ac_status); }; then
2097218822Sdim  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2098218822Sdim  case $ac_file in
2099218822Sdim    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2100218822Sdim    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2101218822Sdim       break;;
2102218822Sdim  esac
2103218822Sdimdone
2104218822Sdimelse
2105218822Sdim  echo "$as_me: failed program was:" >&5
2106218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2107218822Sdim
2108218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2109218822SdimSee \`config.log' for more details." >&5
2110218822Sdimecho "$as_me: error: cannot compute suffix of object files: cannot compile
2111218822SdimSee \`config.log' for more details." >&2;}
2112218822Sdim   { (exit 1); exit 1; }; }
2113218822Sdimfi
2114218822Sdim
2115218822Sdimrm -f conftest.$ac_cv_objext conftest.$ac_ext
2116218822Sdimfi
2117218822Sdimecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
2118218822Sdimecho "${ECHO_T}$ac_cv_objext" >&6
2119218822SdimOBJEXT=$ac_cv_objext
2120218822Sdimac_objext=$OBJEXT
2121218822Sdimecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2122218822Sdimecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2123218822Sdimif test "${ac_cv_c_compiler_gnu+set}" = set; then
2124218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2125218822Sdimelse
2126218822Sdim  cat >conftest.$ac_ext <<_ACEOF
2127218822Sdim/* confdefs.h.  */
2128218822Sdim_ACEOF
2129218822Sdimcat confdefs.h >>conftest.$ac_ext
2130218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2131218822Sdim/* end confdefs.h.  */
2132218822Sdim
2133218822Sdimint
2134218822Sdimmain ()
2135218822Sdim{
2136218822Sdim#ifndef __GNUC__
2137218822Sdim       choke me
2138218822Sdim#endif
2139218822Sdim
2140218822Sdim  ;
2141218822Sdim  return 0;
2142218822Sdim}
2143218822Sdim_ACEOF
2144218822Sdimrm -f conftest.$ac_objext
2145218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146218822Sdim  (eval $ac_compile) 2>conftest.er1
2147218822Sdim  ac_status=$?
2148218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2149218822Sdim  rm -f conftest.er1
2150218822Sdim  cat conftest.err >&5
2151218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152218822Sdim  (exit $ac_status); } &&
2153218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2154218822Sdim			 || test ! -s conftest.err'
2155218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156218822Sdim  (eval $ac_try) 2>&5
2157218822Sdim  ac_status=$?
2158218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159218822Sdim  (exit $ac_status); }; } &&
2160218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2161218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162218822Sdim  (eval $ac_try) 2>&5
2163218822Sdim  ac_status=$?
2164218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165218822Sdim  (exit $ac_status); }; }; then
2166218822Sdim  ac_compiler_gnu=yes
2167218822Sdimelse
2168218822Sdim  echo "$as_me: failed program was:" >&5
2169218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2170218822Sdim
2171218822Sdimac_compiler_gnu=no
2172218822Sdimfi
2173218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174218822Sdimac_cv_c_compiler_gnu=$ac_compiler_gnu
2175218822Sdim
2176218822Sdimfi
2177218822Sdimecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2178218822Sdimecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2179218822SdimGCC=`test $ac_compiler_gnu = yes && echo yes`
2180218822Sdimac_test_CFLAGS=${CFLAGS+set}
2181218822Sdimac_save_CFLAGS=$CFLAGS
2182218822SdimCFLAGS="-g"
2183218822Sdimecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2184218822Sdimecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2185218822Sdimif test "${ac_cv_prog_cc_g+set}" = set; then
2186218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2187218822Sdimelse
2188218822Sdim  cat >conftest.$ac_ext <<_ACEOF
2189218822Sdim/* confdefs.h.  */
2190218822Sdim_ACEOF
2191218822Sdimcat confdefs.h >>conftest.$ac_ext
2192218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2193218822Sdim/* end confdefs.h.  */
2194218822Sdim
2195218822Sdimint
2196218822Sdimmain ()
2197218822Sdim{
2198218822Sdim
2199218822Sdim  ;
2200218822Sdim  return 0;
2201218822Sdim}
2202218822Sdim_ACEOF
2203218822Sdimrm -f conftest.$ac_objext
2204218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205218822Sdim  (eval $ac_compile) 2>conftest.er1
2206218822Sdim  ac_status=$?
2207218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2208218822Sdim  rm -f conftest.er1
2209218822Sdim  cat conftest.err >&5
2210218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211218822Sdim  (exit $ac_status); } &&
2212218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2213218822Sdim			 || test ! -s conftest.err'
2214218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215218822Sdim  (eval $ac_try) 2>&5
2216218822Sdim  ac_status=$?
2217218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218218822Sdim  (exit $ac_status); }; } &&
2219218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2220218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221218822Sdim  (eval $ac_try) 2>&5
2222218822Sdim  ac_status=$?
2223218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224218822Sdim  (exit $ac_status); }; }; then
2225218822Sdim  ac_cv_prog_cc_g=yes
2226218822Sdimelse
2227218822Sdim  echo "$as_me: failed program was:" >&5
2228218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2229218822Sdim
2230218822Sdimac_cv_prog_cc_g=no
2231218822Sdimfi
2232218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233218822Sdimfi
2234218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2235218822Sdimecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
2236218822Sdimif test "$ac_test_CFLAGS" = set; then
2237218822Sdim  CFLAGS=$ac_save_CFLAGS
2238218822Sdimelif test $ac_cv_prog_cc_g = yes; then
2239218822Sdim  if test "$GCC" = yes; then
2240218822Sdim    CFLAGS="-g -O2"
2241218822Sdim  else
2242218822Sdim    CFLAGS="-g"
2243218822Sdim  fi
2244218822Sdimelse
2245218822Sdim  if test "$GCC" = yes; then
2246218822Sdim    CFLAGS="-O2"
2247218822Sdim  else
2248218822Sdim    CFLAGS=
2249218822Sdim  fi
2250218822Sdimfi
2251218822Sdimecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2252218822Sdimecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2253218822Sdimif test "${ac_cv_prog_cc_stdc+set}" = set; then
2254218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2255218822Sdimelse
2256218822Sdim  ac_cv_prog_cc_stdc=no
2257218822Sdimac_save_CC=$CC
2258218822Sdimcat >conftest.$ac_ext <<_ACEOF
2259218822Sdim/* confdefs.h.  */
2260218822Sdim_ACEOF
2261218822Sdimcat confdefs.h >>conftest.$ac_ext
2262218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2263218822Sdim/* end confdefs.h.  */
2264218822Sdim#include <stdarg.h>
2265218822Sdim#include <stdio.h>
2266218822Sdim#include <sys/types.h>
2267218822Sdim#include <sys/stat.h>
2268218822Sdim/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2269218822Sdimstruct buf { int x; };
2270218822SdimFILE * (*rcsopen) (struct buf *, struct stat *, int);
2271218822Sdimstatic char *e (p, i)
2272218822Sdim     char **p;
2273218822Sdim     int i;
2274218822Sdim{
2275218822Sdim  return p[i];
2276218822Sdim}
2277218822Sdimstatic char *f (char * (*g) (char **, int), char **p, ...)
2278218822Sdim{
2279218822Sdim  char *s;
2280218822Sdim  va_list v;
2281218822Sdim  va_start (v,p);
2282218822Sdim  s = g (p, va_arg (v,int));
2283218822Sdim  va_end (v);
2284218822Sdim  return s;
2285218822Sdim}
2286218822Sdim
2287218822Sdim/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2288218822Sdim   function prototypes and stuff, but not '\xHH' hex character constants.
2289218822Sdim   These don't provoke an error unfortunately, instead are silently treated
2290218822Sdim   as 'x'.  The following induces an error, until -std1 is added to get
2291218822Sdim   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2292218822Sdim   array size at least.  It's necessary to write '\x00'==0 to get something
2293218822Sdim   that's true only with -std1.  */
2294218822Sdimint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2295218822Sdim
2296218822Sdimint test (int i, double x);
2297218822Sdimstruct s1 {int (*f) (int a);};
2298218822Sdimstruct s2 {int (*f) (double a);};
2299218822Sdimint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2300218822Sdimint argc;
2301218822Sdimchar **argv;
2302218822Sdimint
2303218822Sdimmain ()
2304218822Sdim{
2305218822Sdimreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2306218822Sdim  ;
2307218822Sdim  return 0;
2308218822Sdim}
2309218822Sdim_ACEOF
2310218822Sdim# Don't try gcc -ansi; that turns off useful extensions and
2311218822Sdim# breaks some systems' header files.
2312218822Sdim# AIX			-qlanglvl=ansi
2313218822Sdim# Ultrix and OSF/1	-std1
2314218822Sdim# HP-UX 10.20 and later	-Ae
2315218822Sdim# HP-UX older versions	-Aa -D_HPUX_SOURCE
2316218822Sdim# SVR4			-Xc -D__EXTENSIONS__
2317218822Sdimfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2318218822Sdimdo
2319218822Sdim  CC="$ac_save_CC $ac_arg"
2320218822Sdim  rm -f conftest.$ac_objext
2321218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322218822Sdim  (eval $ac_compile) 2>conftest.er1
2323218822Sdim  ac_status=$?
2324218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2325218822Sdim  rm -f conftest.er1
2326218822Sdim  cat conftest.err >&5
2327218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328218822Sdim  (exit $ac_status); } &&
2329218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2330218822Sdim			 || test ! -s conftest.err'
2331218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332218822Sdim  (eval $ac_try) 2>&5
2333218822Sdim  ac_status=$?
2334218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335218822Sdim  (exit $ac_status); }; } &&
2336218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2337218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338218822Sdim  (eval $ac_try) 2>&5
2339218822Sdim  ac_status=$?
2340218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341218822Sdim  (exit $ac_status); }; }; then
2342218822Sdim  ac_cv_prog_cc_stdc=$ac_arg
2343218822Sdimbreak
2344218822Sdimelse
2345218822Sdim  echo "$as_me: failed program was:" >&5
2346218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2347218822Sdim
2348218822Sdimfi
2349218822Sdimrm -f conftest.err conftest.$ac_objext
2350218822Sdimdone
2351218822Sdimrm -f conftest.$ac_ext conftest.$ac_objext
2352218822SdimCC=$ac_save_CC
2353218822Sdim
2354218822Sdimfi
2355218822Sdim
2356218822Sdimcase "x$ac_cv_prog_cc_stdc" in
2357218822Sdim  x|xno)
2358218822Sdim    echo "$as_me:$LINENO: result: none needed" >&5
2359218822Sdimecho "${ECHO_T}none needed" >&6 ;;
2360218822Sdim  *)
2361218822Sdim    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2362218822Sdimecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2363218822Sdim    CC="$CC $ac_cv_prog_cc_stdc" ;;
2364218822Sdimesac
2365218822Sdim
2366218822Sdim# Some people use a C++ compiler to compile C.  Since we use `exit',
2367218822Sdim# in C++ we need to declare it.  In case someone uses the same compiler
2368218822Sdim# for both compiling C and C++ we need to have the C++ compiler decide
2369218822Sdim# the declaration of exit, since it's the most demanding environment.
2370218822Sdimcat >conftest.$ac_ext <<_ACEOF
2371218822Sdim#ifndef __cplusplus
2372218822Sdim  choke me
2373218822Sdim#endif
2374218822Sdim_ACEOF
2375218822Sdimrm -f conftest.$ac_objext
2376218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377218822Sdim  (eval $ac_compile) 2>conftest.er1
2378218822Sdim  ac_status=$?
2379218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2380218822Sdim  rm -f conftest.er1
2381218822Sdim  cat conftest.err >&5
2382218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383218822Sdim  (exit $ac_status); } &&
2384218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2385218822Sdim			 || test ! -s conftest.err'
2386218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387218822Sdim  (eval $ac_try) 2>&5
2388218822Sdim  ac_status=$?
2389218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390218822Sdim  (exit $ac_status); }; } &&
2391218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2392218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393218822Sdim  (eval $ac_try) 2>&5
2394218822Sdim  ac_status=$?
2395218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396218822Sdim  (exit $ac_status); }; }; then
2397218822Sdim  for ac_declaration in \
2398218822Sdim   '' \
2399218822Sdim   'extern "C" void std::exit (int) throw (); using std::exit;' \
2400218822Sdim   'extern "C" void std::exit (int); using std::exit;' \
2401218822Sdim   'extern "C" void exit (int) throw ();' \
2402218822Sdim   'extern "C" void exit (int);' \
2403218822Sdim   'void exit (int);'
2404218822Sdimdo
2405218822Sdim  cat >conftest.$ac_ext <<_ACEOF
2406218822Sdim/* confdefs.h.  */
2407218822Sdim_ACEOF
2408218822Sdimcat confdefs.h >>conftest.$ac_ext
2409218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2410218822Sdim/* end confdefs.h.  */
2411218822Sdim$ac_declaration
2412218822Sdim#include <stdlib.h>
2413218822Sdimint
2414218822Sdimmain ()
2415218822Sdim{
2416218822Sdimexit (42);
2417218822Sdim  ;
2418218822Sdim  return 0;
2419218822Sdim}
2420218822Sdim_ACEOF
2421218822Sdimrm -f conftest.$ac_objext
2422218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423218822Sdim  (eval $ac_compile) 2>conftest.er1
2424218822Sdim  ac_status=$?
2425218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2426218822Sdim  rm -f conftest.er1
2427218822Sdim  cat conftest.err >&5
2428218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429218822Sdim  (exit $ac_status); } &&
2430218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2431218822Sdim			 || test ! -s conftest.err'
2432218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433218822Sdim  (eval $ac_try) 2>&5
2434218822Sdim  ac_status=$?
2435218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436218822Sdim  (exit $ac_status); }; } &&
2437218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2438218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439218822Sdim  (eval $ac_try) 2>&5
2440218822Sdim  ac_status=$?
2441218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442218822Sdim  (exit $ac_status); }; }; then
2443218822Sdim  :
2444218822Sdimelse
2445218822Sdim  echo "$as_me: failed program was:" >&5
2446218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2447218822Sdim
2448218822Sdimcontinue
2449218822Sdimfi
2450218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451218822Sdim  cat >conftest.$ac_ext <<_ACEOF
2452218822Sdim/* confdefs.h.  */
2453218822Sdim_ACEOF
2454218822Sdimcat confdefs.h >>conftest.$ac_ext
2455218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2456218822Sdim/* end confdefs.h.  */
2457218822Sdim$ac_declaration
2458218822Sdimint
2459218822Sdimmain ()
2460218822Sdim{
2461218822Sdimexit (42);
2462218822Sdim  ;
2463218822Sdim  return 0;
2464218822Sdim}
2465218822Sdim_ACEOF
2466218822Sdimrm -f conftest.$ac_objext
2467218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468218822Sdim  (eval $ac_compile) 2>conftest.er1
2469218822Sdim  ac_status=$?
2470218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2471218822Sdim  rm -f conftest.er1
2472218822Sdim  cat conftest.err >&5
2473218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474218822Sdim  (exit $ac_status); } &&
2475218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2476218822Sdim			 || test ! -s conftest.err'
2477218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478218822Sdim  (eval $ac_try) 2>&5
2479218822Sdim  ac_status=$?
2480218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481218822Sdim  (exit $ac_status); }; } &&
2482218822Sdim	 { ac_try='test -s conftest.$ac_objext'
2483218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484218822Sdim  (eval $ac_try) 2>&5
2485218822Sdim  ac_status=$?
2486218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487218822Sdim  (exit $ac_status); }; }; then
2488218822Sdim  break
2489218822Sdimelse
2490218822Sdim  echo "$as_me: failed program was:" >&5
2491218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2492218822Sdim
2493218822Sdimfi
2494218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495218822Sdimdone
249668765Sobrienrm -f conftest*
2497218822Sdimif test -n "$ac_declaration"; then
2498218822Sdim  echo '#ifdef __cplusplus' >>confdefs.h
2499218822Sdim  echo $ac_declaration      >>confdefs.h
2500218822Sdim  echo '#endif'             >>confdefs.h
2501218822Sdimfi
250268765Sobrien
2503218822Sdimelse
2504218822Sdim  echo "$as_me: failed program was:" >&5
2505218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2506218822Sdim
250768765Sobrienfi
2508218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2509218822Sdimac_ext=c
2510218822Sdimac_cpp='$CPP $CPPFLAGS'
2511218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
2514218822Sdim
2515218822Sdim
2516218822Sdimecho "$as_me:$LINENO: checking for library containing strerror" >&5
2517218822Sdimecho $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2518218822Sdimif test "${ac_cv_search_strerror+set}" = set; then
2519218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
252068765Sobrienelse
2521218822Sdim  ac_func_search_save_LIBS=$LIBS
2522218822Sdimac_cv_search_strerror=no
2523218822Sdimcat >conftest.$ac_ext <<_ACEOF
2524218822Sdim/* confdefs.h.  */
2525218822Sdim_ACEOF
2526218822Sdimcat confdefs.h >>conftest.$ac_ext
2527218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2528218822Sdim/* end confdefs.h.  */
2529218822Sdim
2530218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
2531218822Sdim#ifdef __cplusplus
2532218822Sdimextern "C"
2533218822Sdim#endif
2534218822Sdim/* We use char because int might match the return type of a gcc2
2535218822Sdim   builtin and then its argument prototype would still apply.  */
2536218822Sdimchar strerror ();
2537218822Sdimint
2538218822Sdimmain ()
2539218822Sdim{
2540218822Sdimstrerror ();
2541218822Sdim  ;
2542218822Sdim  return 0;
2543218822Sdim}
2544218822Sdim_ACEOF
2545218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
2546218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2547218822Sdim  (eval $ac_link) 2>conftest.er1
2548218822Sdim  ac_status=$?
2549218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2550218822Sdim  rm -f conftest.er1
2551218822Sdim  cat conftest.err >&5
2552218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553218822Sdim  (exit $ac_status); } &&
2554218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2555218822Sdim			 || test ! -s conftest.err'
2556218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557218822Sdim  (eval $ac_try) 2>&5
2558218822Sdim  ac_status=$?
2559218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560218822Sdim  (exit $ac_status); }; } &&
2561218822Sdim	 { ac_try='test -s conftest$ac_exeext'
2562218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563218822Sdim  (eval $ac_try) 2>&5
2564218822Sdim  ac_status=$?
2565218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566218822Sdim  (exit $ac_status); }; }; then
2567218822Sdim  ac_cv_search_strerror="none required"
2568218822Sdimelse
2569218822Sdim  echo "$as_me: failed program was:" >&5
2570218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
2571218822Sdim
257268765Sobrienfi
2573218822Sdimrm -f conftest.err conftest.$ac_objext \
2574218822Sdim      conftest$ac_exeext conftest.$ac_ext
2575218822Sdimif test "$ac_cv_search_strerror" = no; then
2576218822Sdim  for ac_lib in cposix; do
2577218822Sdim    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2578218822Sdim    cat >conftest.$ac_ext <<_ACEOF
2579218822Sdim/* confdefs.h.  */
2580218822Sdim_ACEOF
2581218822Sdimcat confdefs.h >>conftest.$ac_ext
2582218822Sdimcat >>conftest.$ac_ext <<_ACEOF
2583218822Sdim/* end confdefs.h.  */
258468765Sobrien
2585218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
2586218822Sdim#ifdef __cplusplus
2587218822Sdimextern "C"
2588218822Sdim#endif
2589218822Sdim/* We use char because int might match the return type of a gcc2
2590218822Sdim   builtin and then its argument prototype would still apply.  */
2591218822Sdimchar strerror ();
2592218822Sdimint
2593218822Sdimmain ()
2594218822Sdim{
2595218822Sdimstrerror ();
2596218822Sdim  ;
2597218822Sdim  return 0;
2598218822Sdim}
2599218822Sdim_ACEOF
2600218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
2601218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2602218822Sdim  (eval $ac_link) 2>conftest.er1
2603218822Sdim  ac_status=$?
2604218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
2605218822Sdim  rm -f conftest.er1
2606218822Sdim  cat conftest.err >&5
2607218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608218822Sdim  (exit $ac_status); } &&
2609218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
2610218822Sdim			 || test ! -s conftest.err'
2611218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612218822Sdim  (eval $ac_try) 2>&5
2613218822Sdim  ac_status=$?
2614218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615218822Sdim  (exit $ac_status); }; } &&
2616218822Sdim	 { ac_try='test -s conftest$ac_exeext'
2617218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618218822Sdim  (eval $ac_try) 2>&5
2619218822Sdim  ac_status=$?
2620218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621218822Sdim  (exit $ac_status); }; }; then
2622218822Sdim  ac_cv_search_strerror="-l$ac_lib"
2623218822Sdimbreak
2624218822Sdimelse
2625218822Sdim  echo "$as_me: failed program was:" >&5
2626218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
262768765Sobrien
2628218822Sdimfi
2629218822Sdimrm -f conftest.err conftest.$ac_objext \
2630218822Sdim      conftest$ac_exeext conftest.$ac_ext
2631218822Sdim  done
2632218822Sdimfi
2633218822SdimLIBS=$ac_func_search_save_LIBS
2634218822Sdimfi
2635218822Sdimecho "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2636218822Sdimecho "${ECHO_T}$ac_cv_search_strerror" >&6
2637218822Sdimif test "$ac_cv_search_strerror" != no; then
2638218822Sdim  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2639130561Sobrien
2640218822Sdimfi
2641218822Sdim
2642218822Sdim
264378828SobrienBFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ 	]*\([^ 	]*\)[ 	]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2644218822Sdimam__api_version="1.9"
264538889Sjdp# Find a good install program.  We prefer a C program (faster),
264638889Sjdp# so one script is as good as another.  But avoid the broken or
264738889Sjdp# incompatible versions:
264838889Sjdp# SysV /etc/install, /usr/sbin/install
264938889Sjdp# SunOS /usr/etc/install
265038889Sjdp# IRIX /sbin/install
265138889Sjdp# AIX /bin/install
2652218822Sdim# AmigaOS /C/install, which installs bootblocks on floppy discs
265338889Sjdp# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
265438889Sjdp# AFS /usr/afsws/bin/install, which mishandles nonexistent args
265538889Sjdp# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2656218822Sdim# OS/2's system install, which has a completely different semantic
265738889Sjdp# ./install, which can be erroneously created by make from ./install.sh.
2658218822Sdimecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2659218822Sdimecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
266038889Sjdpif test -z "$INSTALL"; then
2661218822Sdimif test "${ac_cv_path_install+set}" = set; then
2662218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
266338889Sjdpelse
2664218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665218822Sdimfor as_dir in $PATH
2666218822Sdimdo
2667218822Sdim  IFS=$as_save_IFS
2668218822Sdim  test -z "$as_dir" && as_dir=.
2669218822Sdim  # Account for people who put trailing slashes in PATH elements.
2670218822Sdimcase $as_dir/ in
2671218822Sdim  ./ | .// | /cC/* | \
2672218822Sdim  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2673218822Sdim  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2674218822Sdim  /usr/ucb/* ) ;;
2675218822Sdim  *)
2676218822Sdim    # OSF1 and SCO ODT 3.0 have their own names for install.
2677218822Sdim    # Don't use installbsd from OSF since it installs stuff as root
2678218822Sdim    # by default.
2679218822Sdim    for ac_prog in ginstall scoinst install; do
2680218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
2681218822Sdim	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
268238889Sjdp	  if test $ac_prog = install &&
2683218822Sdim	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
268438889Sjdp	    # AIX install.  It has an incompatible calling convention.
268538889Sjdp	    :
2686218822Sdim	  elif test $ac_prog = install &&
2687218822Sdim	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688218822Sdim	    # program-specific install script used by HP pwplus--don't use.
2689218822Sdim	    :
269038889Sjdp	  else
2691218822Sdim	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2692218822Sdim	    break 3
269338889Sjdp	  fi
269438889Sjdp	fi
269538889Sjdp      done
2696218822Sdim    done
2697218822Sdim    ;;
2698218822Sdimesac
2699218822Sdimdone
270038889Sjdp
2701218822Sdim
270233965Sjdpfi
270338889Sjdp  if test "${ac_cv_path_install+set}" = set; then
2704218822Sdim    INSTALL=$ac_cv_path_install
270538889Sjdp  else
270638889Sjdp    # As a last resort, use the slow shell script.  We don't cache a
270738889Sjdp    # path for INSTALL within a source directory, because that will
270838889Sjdp    # break other packages using the cache if that directory is
270938889Sjdp    # removed, or if the path is relative.
2710218822Sdim    INSTALL=$ac_install_sh
271138889Sjdp  fi
271233965Sjdpfi
2713218822Sdimecho "$as_me:$LINENO: result: $INSTALL" >&5
2714218822Sdimecho "${ECHO_T}$INSTALL" >&6
271538889Sjdp
271638889Sjdp# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
271738889Sjdp# It thinks the first close brace ends the variable substitution.
271838889Sjdptest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
271938889Sjdp
2720218822Sdimtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
272160484Sobrien
272238889Sjdptest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
272338889Sjdp
2724218822Sdimecho "$as_me:$LINENO: checking whether build environment is sane" >&5
2725218822Sdimecho $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
272638889Sjdp# Just in case
272738889Sjdpsleep 1
2728218822Sdimecho timestamp > conftest.file
272938889Sjdp# Do `set' in a subshell so we don't clobber the current shell's
273038889Sjdp# arguments.  Must try -L first in case configure is actually a
273138889Sjdp# symlink; some systems play weird games with the mod time of symlinks
273238889Sjdp# (eg FreeBSD returns the mod time of the symlink's containing
273338889Sjdp# directory).
273438889Sjdpif (
2735218822Sdim   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
273638889Sjdp   if test "$*" = "X"; then
273738889Sjdp      # -L didn't work.
2738218822Sdim      set X `ls -t $srcdir/configure conftest.file`
273938889Sjdp   fi
2740218822Sdim   rm -f conftest.file
2741218822Sdim   if test "$*" != "X $srcdir/configure conftest.file" \
2742218822Sdim      && test "$*" != "X conftest.file $srcdir/configure"; then
274338889Sjdp
274438889Sjdp      # If neither matched, then we have a broken ls.  This can happen
274538889Sjdp      # if, for instance, CONFIG_SHELL is bash and it inherits a
274638889Sjdp      # broken ls alias from the environment.  This has actually
274738889Sjdp      # happened.  Such a system could not be considered "sane".
2748218822Sdim      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2749218822Sdimalias in your environment" >&5
2750218822Sdimecho "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2751218822Sdimalias in your environment" >&2;}
2752218822Sdim   { (exit 1); exit 1; }; }
275338889Sjdp   fi
275438889Sjdp
2755218822Sdim   test "$2" = conftest.file
275638889Sjdp   )
275738889Sjdpthen
275838889Sjdp   # Ok.
275938889Sjdp   :
276038889Sjdpelse
2761218822Sdim   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2762218822SdimCheck your system clock" >&5
2763218822Sdimecho "$as_me: error: newly created file is older than distributed files!
2764218822SdimCheck your system clock" >&2;}
2765218822Sdim   { (exit 1); exit 1; }; }
276638889Sjdpfi
2767218822Sdimecho "$as_me:$LINENO: result: yes" >&5
2768218822Sdimecho "${ECHO_T}yes" >&6
276933965Sjdptest "$program_prefix" != NONE &&
2770218822Sdim  program_transform_name="s,^,$program_prefix,;$program_transform_name"
277133965Sjdp# Use a double $ so make ignores it.
277233965Sjdptest "$program_suffix" != NONE &&
2773218822Sdim  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2774218822Sdim# Double any \ or $.  echo might interpret backslashes.
2775218822Sdim# By default was `s,x,x', remove it if useless.
2776218822Sdimcat <<\_ACEOF >conftest.sed
2777218822Sdims/[\\$]/&&/g;s/;s,x,x,$//
2778218822Sdim_ACEOF
2779218822Sdimprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2780218822Sdimrm conftest.sed
278133965Sjdp
2782218822Sdim# expand $ac_aux_dir to an absolute path
2783218822Sdimam_aux_dir=`cd $ac_aux_dir && pwd`
278433965Sjdp
2785218822Sdimtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2786218822Sdim# Use eval to expand $SHELL
2787218822Sdimif eval "$MISSING --run true"; then
2788218822Sdim  am_missing_run="$MISSING --run "
278938889Sjdpelse
2790218822Sdim  am_missing_run=
2791218822Sdim  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2792218822Sdimecho "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2793218822Sdimfi
2794218822Sdim
2795218822Sdimif mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2796218822Sdim  # We used to keeping the `.' as first argument, in order to
2797218822Sdim  # allow $(mkdir_p) to be used without argument.  As in
2798218822Sdim  #   $(mkdir_p) $(somedir)
2799218822Sdim  # where $(somedir) is conditionally defined.  However this is wrong
2800218822Sdim  # for two reasons:
2801218822Sdim  #  1. if the package is installed by a user who cannot write `.'
2802218822Sdim  #     make install will fail,
2803218822Sdim  #  2. the above comment should most certainly read
2804218822Sdim  #     $(mkdir_p) $(DESTDIR)$(somedir)
2805218822Sdim  #     so it does not work when $(somedir) is undefined and
2806218822Sdim  #     $(DESTDIR) is not.
2807218822Sdim  #  To support the latter case, we have to write
2808218822Sdim  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2809218822Sdim  #  so the `.' trick is pointless.
2810218822Sdim  mkdir_p='mkdir -p --'
2811218822Sdimelse
2812218822Sdim  # On NextStep and OpenStep, the `mkdir' command does not
2813218822Sdim  # recognize any option.  It will interpret all options as
2814218822Sdim  # directories to create, and then abort because `.' already
2815218822Sdim  # exists.
2816218822Sdim  for d in ./-p ./--version;
2817218822Sdim  do
2818218822Sdim    test -d $d && rmdir $d
2819218822Sdim  done
2820218822Sdim  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2821218822Sdim  if test -f "$ac_aux_dir/mkinstalldirs"; then
2822218822Sdim    mkdir_p='$(mkinstalldirs)'
2823218822Sdim  else
2824218822Sdim    mkdir_p='$(install_sh) -d'
2825218822Sdim  fi
2826218822Sdimfi
2827218822Sdim
2828218822Sdimfor ac_prog in gawk mawk nawk awk
2829218822Sdimdo
2830218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
2831218822Sdimset dummy $ac_prog; ac_word=$2
2832218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
2833218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834218822Sdimif test "${ac_cv_prog_AWK+set}" = set; then
2835218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2836218822Sdimelse
2837218822Sdim  if test -n "$AWK"; then
2838218822Sdim  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2839218822Sdimelse
2840218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841218822Sdimfor as_dir in $PATH
2842218822Sdimdo
2843218822Sdim  IFS=$as_save_IFS
2844218822Sdim  test -z "$as_dir" && as_dir=.
2845218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
2846218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847218822Sdim    ac_cv_prog_AWK="$ac_prog"
2848218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849218822Sdim    break 2
2850218822Sdim  fi
2851218822Sdimdone
2852218822Sdimdone
2853218822Sdim
2854218822Sdimfi
2855218822Sdimfi
2856218822SdimAWK=$ac_cv_prog_AWK
2857218822Sdimif test -n "$AWK"; then
2858218822Sdim  echo "$as_me:$LINENO: result: $AWK" >&5
2859218822Sdimecho "${ECHO_T}$AWK" >&6
2860218822Sdimelse
2861218822Sdim  echo "$as_me:$LINENO: result: no" >&5
2862218822Sdimecho "${ECHO_T}no" >&6
2863218822Sdimfi
2864218822Sdim
2865218822Sdim  test -n "$AWK" && break
2866218822Sdimdone
2867218822Sdim
2868218822Sdimecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2869218822Sdimecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2870218822Sdimset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2871218822Sdimif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2872218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2873218822Sdimelse
2874218822Sdim  cat >conftest.make <<\_ACEOF
287538889Sjdpall:
2876218822Sdim	@echo 'ac_maketemp="$(MAKE)"'
2877218822Sdim_ACEOF
287838889Sjdp# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2879218822Sdimeval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
288038889Sjdpif test -n "$ac_maketemp"; then
288138889Sjdp  eval ac_cv_prog_make_${ac_make}_set=yes
288238889Sjdpelse
288338889Sjdp  eval ac_cv_prog_make_${ac_make}_set=no
288438889Sjdpfi
2885218822Sdimrm -f conftest.make
288638889Sjdpfi
288738889Sjdpif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2888218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
2889218822Sdimecho "${ECHO_T}yes" >&6
289038889Sjdp  SET_MAKE=
289138889Sjdpelse
2892218822Sdim  echo "$as_me:$LINENO: result: no" >&5
2893218822Sdimecho "${ECHO_T}no" >&6
289438889Sjdp  SET_MAKE="MAKE=${MAKE-make}"
289538889Sjdpfi
289633965Sjdp
2897218822Sdimrm -rf .tst 2>/dev/null
2898218822Sdimmkdir .tst 2>/dev/null
2899218822Sdimif test -d .tst; then
2900218822Sdim  am__leading_dot=.
2901218822Sdimelse
2902218822Sdim  am__leading_dot=_
2903218822Sdimfi
2904218822Sdimrmdir .tst 2>/dev/null
290533965Sjdp
2906218822SdimDEPDIR="${am__leading_dot}deps"
290733965Sjdp
2908218822Sdim          ac_config_commands="$ac_config_commands depfiles"
290938889Sjdp
2910218822Sdim
2911218822Sdimam_make=${MAKE-make}
2912218822Sdimcat > confinc << 'END'
2913218822Sdimam__doit:
2914218822Sdim	@echo done
2915218822Sdim.PHONY: am__doit
2916218822SdimEND
2917218822Sdim# If we don't find an include directive, just comment out the code.
2918218822Sdimecho "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2919218822Sdimecho $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2920218822Sdimam__include="#"
2921218822Sdimam__quote=
2922218822Sdim_am_result=none
2923218822Sdim# First try GNU make style include.
2924218822Sdimecho "include confinc" > confmf
2925218822Sdim# We grep out `Entering directory' and `Leaving directory'
2926218822Sdim# messages which can occur if `w' ends up in MAKEFLAGS.
2927218822Sdim# In particular we don't look at `^make:' because GNU make might
2928218822Sdim# be invoked under some other name (usually "gmake"), in which
2929218822Sdim# case it prints its new name instead of `make'.
2930218822Sdimif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2931218822Sdim   am__include=include
2932218822Sdim   am__quote=
2933218822Sdim   _am_result=GNU
293438889Sjdpfi
2935218822Sdim# Now try BSD make style include.
2936218822Sdimif test "$am__include" = "#"; then
2937218822Sdim   echo '.include "confinc"' > confmf
2938218822Sdim   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2939218822Sdim      am__include=.include
2940218822Sdim      am__quote="\""
2941218822Sdim      _am_result=BSD
2942218822Sdim   fi
2943218822Sdimfi
2944218822Sdim
2945218822Sdim
2946218822Sdimecho "$as_me:$LINENO: result: $_am_result" >&5
2947218822Sdimecho "${ECHO_T}$_am_result" >&6
2948218822Sdimrm -f confinc confmf
2949218822Sdim
2950218822Sdim# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2951218822Sdimif test "${enable_dependency_tracking+set}" = set; then
2952218822Sdim  enableval="$enable_dependency_tracking"
2953218822Sdim
2954218822Sdimfi;
2955218822Sdimif test "x$enable_dependency_tracking" != xno; then
2956218822Sdim  am_depcomp="$ac_aux_dir/depcomp"
2957218822Sdim  AMDEPBACKSLASH='\'
2958218822Sdimfi
2959218822Sdim
2960218822Sdim
2961218822Sdimif test "x$enable_dependency_tracking" != xno; then
2962218822Sdim  AMDEP_TRUE=
2963218822Sdim  AMDEP_FALSE='#'
2964218822Sdimelse
2965218822Sdim  AMDEP_TRUE='#'
2966218822Sdim  AMDEP_FALSE=
2967218822Sdimfi
2968218822Sdim
2969218822Sdim
2970218822Sdim
2971218822Sdim# test to see if srcdir already configured
2972218822Sdimif test "`cd $srcdir && pwd`" != "`pwd`" &&
2973218822Sdim   test -f $srcdir/config.status; then
2974218822Sdim  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2975218822Sdimecho "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2976218822Sdim   { (exit 1); exit 1; }; }
2977218822Sdimfi
2978218822Sdim
2979218822Sdim# test whether we have cygpath
2980218822Sdimif test -z "$CYGPATH_W"; then
2981218822Sdim  if (cygpath --version) >/dev/null 2>/dev/null; then
2982218822Sdim    CYGPATH_W='cygpath -w'
2983218822Sdim  else
2984218822Sdim    CYGPATH_W=echo
2985218822Sdim  fi
2986218822Sdimfi
2987218822Sdim
2988218822Sdim
2989218822Sdim# Define the identity of the package.
2990218822Sdim PACKAGE=binutils
2991218822Sdim VERSION=${BFD_VERSION}
2992218822Sdim
2993218822Sdim
2994218822Sdimcat >>confdefs.h <<_ACEOF
299538889Sjdp#define PACKAGE "$PACKAGE"
2996218822Sdim_ACEOF
299738889Sjdp
2998218822Sdim
2999218822Sdimcat >>confdefs.h <<_ACEOF
300038889Sjdp#define VERSION "$VERSION"
3001218822Sdim_ACEOF
300238889Sjdp
3003218822Sdim# Some tools Automake needs.
300438889Sjdp
3005218822SdimACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
300638889Sjdp
3007218822Sdim
3008218822SdimAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3009218822Sdim
3010218822Sdim
3011218822SdimAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3012218822Sdim
3013218822Sdim
3014218822SdimAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3015218822Sdim
3016218822Sdim
3017218822SdimMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3018218822Sdim
3019218822Sdiminstall_sh=${install_sh-"$am_aux_dir/install-sh"}
3020218822Sdim
3021218822Sdim# Installed binaries are usually stripped using `strip' when the user
3022218822Sdim# run `make install-strip'.  However `strip' might not be the right
3023218822Sdim# tool to use in cross-compilation environments, therefore Automake
3024218822Sdim# will honor the `STRIP' environment variable to overrule this program.
3025218822Sdimif test "$cross_compiling" != no; then
3026218822Sdim  if test -n "$ac_tool_prefix"; then
3027218822Sdim  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3028218822Sdimset dummy ${ac_tool_prefix}strip; ac_word=$2
3029218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3030218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3031218822Sdimif test "${ac_cv_prog_STRIP+set}" = set; then
3032218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
303338889Sjdpelse
3034218822Sdim  if test -n "$STRIP"; then
3035218822Sdim  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3036218822Sdimelse
3037218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038218822Sdimfor as_dir in $PATH
3039218822Sdimdo
3040218822Sdim  IFS=$as_save_IFS
3041218822Sdim  test -z "$as_dir" && as_dir=.
3042218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3043218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044218822Sdim    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3045218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046218822Sdim    break 2
3047218822Sdim  fi
3048218822Sdimdone
3049218822Sdimdone
3050218822Sdim
305138889Sjdpfi
3052218822Sdimfi
3053218822SdimSTRIP=$ac_cv_prog_STRIP
3054218822Sdimif test -n "$STRIP"; then
3055218822Sdim  echo "$as_me:$LINENO: result: $STRIP" >&5
3056218822Sdimecho "${ECHO_T}$STRIP" >&6
305738889Sjdpelse
3058218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3059218822Sdimecho "${ECHO_T}no" >&6
306038889Sjdpfi
306138889Sjdp
3062218822Sdimfi
3063218822Sdimif test -z "$ac_cv_prog_STRIP"; then
3064218822Sdim  ac_ct_STRIP=$STRIP
3065218822Sdim  # Extract the first word of "strip", so it can be a program name with args.
3066218822Sdimset dummy strip; ac_word=$2
3067218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3068218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069218822Sdimif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3070218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
307138889Sjdpelse
3072218822Sdim  if test -n "$ac_ct_STRIP"; then
3073218822Sdim  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3074218822Sdimelse
3075218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076218822Sdimfor as_dir in $PATH
3077218822Sdimdo
3078218822Sdim  IFS=$as_save_IFS
3079218822Sdim  test -z "$as_dir" && as_dir=.
3080218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3081218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082218822Sdim    ac_cv_prog_ac_ct_STRIP="strip"
3083218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084218822Sdim    break 2
3085218822Sdim  fi
3086218822Sdimdone
3087218822Sdimdone
3088218822Sdim
3089218822Sdim  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
309038889Sjdpfi
3091218822Sdimfi
3092218822Sdimac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3093218822Sdimif test -n "$ac_ct_STRIP"; then
3094218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3095218822Sdimecho "${ECHO_T}$ac_ct_STRIP" >&6
309638889Sjdpelse
3097218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3098218822Sdimecho "${ECHO_T}no" >&6
309938889Sjdpfi
310038889Sjdp
3101218822Sdim  STRIP=$ac_ct_STRIP
310238889Sjdpelse
3103218822Sdim  STRIP="$ac_cv_prog_STRIP"
310438889Sjdpfi
310538889Sjdp
3106218822Sdimfi
3107218822SdimINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
310838889Sjdp
3109218822Sdim# We need awk for the "check" target.  The system "awk" is bad on
3110218822Sdim# some platforms.
3111218822Sdim# Always define AMTAR for backward compatibility.
311238889Sjdp
3113218822SdimAMTAR=${AMTAR-"${am_missing_run}tar"}
3114218822Sdim
3115218822Sdimam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3116218822Sdim
3117218822Sdim
3118218822Sdim
3119218822Sdim
3120218822Sdimdepcc="$CC"   am_compiler_list=
3121218822Sdim
3122218822Sdimecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
3123218822Sdimecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3124218822Sdimif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3125218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3126218822Sdimelse
3127218822Sdim  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3128218822Sdim  # We make a subdir and do the tests there.  Otherwise we can end up
3129218822Sdim  # making bogus files that we don't know about and never remove.  For
3130218822Sdim  # instance it was reported that on HP-UX the gcc test will end up
3131218822Sdim  # making a dummy file named `D' -- because `-MD' means `put the output
3132218822Sdim  # in D'.
3133218822Sdim  mkdir conftest.dir
3134218822Sdim  # Copy depcomp to subdir because otherwise we won't find it if we're
3135218822Sdim  # using a relative directory.
3136218822Sdim  cp "$am_depcomp" conftest.dir
3137218822Sdim  cd conftest.dir
3138218822Sdim  # We will build objects and dependencies in a subdirectory because
3139218822Sdim  # it helps to detect inapplicable dependency modes.  For instance
3140218822Sdim  # both Tru64's cc and ICC support -MD to output dependencies as a
3141218822Sdim  # side effect of compilation, but ICC will put the dependencies in
3142218822Sdim  # the current directory while Tru64 will put them in the object
3143218822Sdim  # directory.
3144218822Sdim  mkdir sub
3145218822Sdim
3146218822Sdim  am_cv_CC_dependencies_compiler_type=none
3147218822Sdim  if test "$am_compiler_list" = ""; then
3148218822Sdim     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3149218822Sdim  fi
3150218822Sdim  for depmode in $am_compiler_list; do
3151218822Sdim    # Setup a source with many dependencies, because some compilers
3152218822Sdim    # like to wrap large dependency lists on column 80 (with \), and
3153218822Sdim    # we should not choose a depcomp mode which is confused by this.
3154218822Sdim    #
3155218822Sdim    # We need to recreate these files for each test, as the compiler may
3156218822Sdim    # overwrite some of them when testing with obscure command lines.
3157218822Sdim    # This happens at least with the AIX C compiler.
3158218822Sdim    : > sub/conftest.c
3159218822Sdim    for i in 1 2 3 4 5 6; do
3160218822Sdim      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3161218822Sdim      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3162218822Sdim      # Solaris 8's {/usr,}/bin/sh.
3163218822Sdim      touch sub/conftst$i.h
3164218822Sdim    done
3165218822Sdim    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3166218822Sdim
3167218822Sdim    case $depmode in
3168218822Sdim    nosideeffect)
3169218822Sdim      # after this tag, mechanisms are not by side-effect, so they'll
3170218822Sdim      # only be used when explicitly requested
3171218822Sdim      if test "x$enable_dependency_tracking" = xyes; then
3172218822Sdim	continue
3173218822Sdim      else
3174218822Sdim	break
3175218822Sdim      fi
3176218822Sdim      ;;
3177218822Sdim    none) break ;;
3178218822Sdim    esac
3179218822Sdim    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3180218822Sdim    # mode.  It turns out that the SunPro C++ compiler does not properly
3181218822Sdim    # handle `-M -o', and we need to detect this.
3182218822Sdim    if depmode=$depmode \
3183218822Sdim       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3184218822Sdim       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3185218822Sdim       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3186218822Sdim         >/dev/null 2>conftest.err &&
3187218822Sdim       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3188218822Sdim       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3189218822Sdim       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3190218822Sdim      # icc doesn't choke on unknown options, it will just issue warnings
3191218822Sdim      # or remarks (even with -Werror).  So we grep stderr for any message
3192218822Sdim      # that says an option was ignored or not supported.
3193218822Sdim      # When given -MP, icc 7.0 and 7.1 complain thusly:
3194218822Sdim      #   icc: Command line warning: ignoring option '-M'; no argument required
3195218822Sdim      # The diagnosis changed in icc 8.0:
3196218822Sdim      #   icc: Command line remark: option '-MP' not supported
3197218822Sdim      if (grep 'ignoring option' conftest.err ||
3198218822Sdim          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3199218822Sdim        am_cv_CC_dependencies_compiler_type=$depmode
3200218822Sdim        break
3201218822Sdim      fi
320238889Sjdp    fi
320338889Sjdp  done
3204218822Sdim
3205218822Sdim  cd ..
3206218822Sdim  rm -rf conftest.dir
320738889Sjdpelse
3208218822Sdim  am_cv_CC_dependencies_compiler_type=none
320938889Sjdpfi
321038889Sjdp
3211218822Sdimfi
3212218822Sdimecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3213218822Sdimecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3214218822SdimCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3215218822Sdim
3216218822Sdim
3217218822Sdim
3218218822Sdimif
3219218822Sdim  test "x$enable_dependency_tracking" != xno \
3220218822Sdim  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3221218822Sdim  am__fastdepCC_TRUE=
3222218822Sdim  am__fastdepCC_FALSE='#'
322338889Sjdpelse
3224218822Sdim  am__fastdepCC_TRUE='#'
3225218822Sdim  am__fastdepCC_FALSE=
322638889Sjdpfi
322738889Sjdp
3228218822Sdim
3229218822Sdim
3230218822Sdim
3231218822Sdimac_ext=c
3232218822Sdimac_cpp='$CPP $CPPFLAGS'
3233218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
3236218822Sdimif test -n "$ac_tool_prefix"; then
3237218822Sdim  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3238218822Sdimset dummy ${ac_tool_prefix}gcc; ac_word=$2
3239218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3240218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3241218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
3242218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
324360484Sobrienelse
3244218822Sdim  if test -n "$CC"; then
3245218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
3246218822Sdimelse
3247218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248218822Sdimfor as_dir in $PATH
3249218822Sdimdo
3250218822Sdim  IFS=$as_save_IFS
3251218822Sdim  test -z "$as_dir" && as_dir=.
3252218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3253218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254218822Sdim    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3255218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256218822Sdim    break 2
3257218822Sdim  fi
3258218822Sdimdone
3259218822Sdimdone
3260218822Sdim
326160484Sobrienfi
3262218822Sdimfi
3263218822SdimCC=$ac_cv_prog_CC
3264218822Sdimif test -n "$CC"; then
3265218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
3266218822Sdimecho "${ECHO_T}$CC" >&6
3267218822Sdimelse
3268218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3269218822Sdimecho "${ECHO_T}no" >&6
3270218822Sdimfi
327160484Sobrien
3272218822Sdimfi
3273218822Sdimif test -z "$ac_cv_prog_CC"; then
3274218822Sdim  ac_ct_CC=$CC
3275218822Sdim  # Extract the first word of "gcc", so it can be a program name with args.
3276130561Sobrienset dummy gcc; ac_word=$2
3277218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3278218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3280218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3281130561Sobrienelse
3282218822Sdim  if test -n "$ac_ct_CC"; then
3283218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3284218822Sdimelse
3285218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286218822Sdimfor as_dir in $PATH
3287218822Sdimdo
3288218822Sdim  IFS=$as_save_IFS
3289218822Sdim  test -z "$as_dir" && as_dir=.
3290218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3291218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292218822Sdim    ac_cv_prog_ac_ct_CC="gcc"
3293218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294218822Sdim    break 2
3295218822Sdim  fi
3296218822Sdimdone
3297218822Sdimdone
3298218822Sdim
3299218822Sdimfi
3300218822Sdimfi
3301218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
3302218822Sdimif test -n "$ac_ct_CC"; then
3303218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3304218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
3305218822Sdimelse
3306218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3307218822Sdimecho "${ECHO_T}no" >&6
3308218822Sdimfi
3309218822Sdim
3310218822Sdim  CC=$ac_ct_CC
3311218822Sdimelse
3312218822Sdim  CC="$ac_cv_prog_CC"
3313218822Sdimfi
3314218822Sdim
3315218822Sdimif test -z "$CC"; then
3316218822Sdim  if test -n "$ac_tool_prefix"; then
3317218822Sdim  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3318218822Sdimset dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
3322218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3323218822Sdimelse
3324130561Sobrien  if test -n "$CC"; then
3325130561Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
3326130561Sobrienelse
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_CC="${ac_tool_prefix}cc"
3335218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336218822Sdim    break 2
3337218822Sdim  fi
3338218822Sdimdone
3339218822Sdimdone
3340218822Sdim
3341130561Sobrienfi
3342130561Sobrienfi
3343218822SdimCC=$ac_cv_prog_CC
3344130561Sobrienif test -n "$CC"; then
3345218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
3346218822Sdimecho "${ECHO_T}$CC" >&6
3347130561Sobrienelse
3348218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3349218822Sdimecho "${ECHO_T}no" >&6
3350130561Sobrienfi
3351130561Sobrien
3352218822Sdimfi
3353218822Sdimif test -z "$ac_cv_prog_CC"; then
3354218822Sdim  ac_ct_CC=$CC
3355218822Sdim  # Extract the first word of "cc", so it can be a program name with args.
3356218822Sdimset dummy cc; 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_CC+set}" = set; then
3360218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3361218822Sdimelse
3362218822Sdim  if test -n "$ac_ct_CC"; then
3363218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364218822Sdimelse
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_CC="cc"
3373218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374218822Sdim    break 2
3375218822Sdim  fi
3376218822Sdimdone
3377218822Sdimdone
3378218822Sdim
3379218822Sdimfi
3380218822Sdimfi
3381218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
3382218822Sdimif test -n "$ac_ct_CC"; then
3383218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3384218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
3385218822Sdimelse
3386218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3387218822Sdimecho "${ECHO_T}no" >&6
3388218822Sdimfi
3389218822Sdim
3390218822Sdim  CC=$ac_ct_CC
3391218822Sdimelse
3392218822Sdim  CC="$ac_cv_prog_CC"
3393218822Sdimfi
3394218822Sdim
3395218822Sdimfi
3396130561Sobrienif test -z "$CC"; then
3397130561Sobrien  # Extract the first word of "cc", so it can be a program name with args.
3398130561Sobrienset dummy cc; ac_word=$2
3399218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3400218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3401218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
3402218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3403130561Sobrienelse
3404130561Sobrien  if test -n "$CC"; then
3405130561Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
3406130561Sobrienelse
3407130561Sobrien  ac_prog_rejected=no
3408218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409218822Sdimfor as_dir in $PATH
3410218822Sdimdo
3411218822Sdim  IFS=$as_save_IFS
3412218822Sdim  test -z "$as_dir" && as_dir=.
3413218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3414218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415218822Sdim    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416218822Sdim       ac_prog_rejected=yes
3417218822Sdim       continue
3418218822Sdim     fi
3419218822Sdim    ac_cv_prog_CC="cc"
3420218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3421218822Sdim    break 2
3422218822Sdim  fi
3423218822Sdimdone
3424218822Sdimdone
3425218822Sdim
3426130561Sobrienif test $ac_prog_rejected = yes; then
3427130561Sobrien  # We found a bogon in the path, so make sure we never use it.
3428130561Sobrien  set dummy $ac_cv_prog_CC
3429130561Sobrien  shift
3430218822Sdim  if test $# != 0; then
3431130561Sobrien    # We chose a different compiler from the bogus one.
3432130561Sobrien    # However, it has the same basename, so the bogon will be chosen
3433130561Sobrien    # first if we set CC to just the basename; use the full file name.
3434130561Sobrien    shift
3435218822Sdim    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3436130561Sobrien  fi
3437130561Sobrienfi
3438130561Sobrienfi
3439130561Sobrienfi
3440218822SdimCC=$ac_cv_prog_CC
3441130561Sobrienif test -n "$CC"; then
3442218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
3443218822Sdimecho "${ECHO_T}$CC" >&6
3444130561Sobrienelse
3445218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3446218822Sdimecho "${ECHO_T}no" >&6
3447130561Sobrienfi
3448130561Sobrien
3449218822Sdimfi
3450218822Sdimif test -z "$CC"; then
3451218822Sdim  if test -n "$ac_tool_prefix"; then
3452218822Sdim  for ac_prog in cl
3453218822Sdim  do
3454218822Sdim    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3455218822Sdimset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3456218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3457218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
3459218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3460130561Sobrienelse
3461130561Sobrien  if test -n "$CC"; then
3462130561Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
3463130561Sobrienelse
3464218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465218822Sdimfor as_dir in $PATH
3466218822Sdimdo
3467218822Sdim  IFS=$as_save_IFS
3468218822Sdim  test -z "$as_dir" && as_dir=.
3469218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3470218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471218822Sdim    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3472218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473218822Sdim    break 2
3474218822Sdim  fi
3475218822Sdimdone
3476218822Sdimdone
3477218822Sdim
3478130561Sobrienfi
3479130561Sobrienfi
3480218822SdimCC=$ac_cv_prog_CC
3481130561Sobrienif test -n "$CC"; then
3482218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
3483218822Sdimecho "${ECHO_T}$CC" >&6
3484130561Sobrienelse
3485218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3486218822Sdimecho "${ECHO_T}no" >&6
3487130561Sobrienfi
3488218822Sdim
3489218822Sdim    test -n "$CC" && break
3490218822Sdim  done
3491218822Sdimfi
3492218822Sdimif test -z "$CC"; then
3493218822Sdim  ac_ct_CC=$CC
3494218822Sdim  for ac_prog in cl
3495218822Sdimdo
3496218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
3497218822Sdimset dummy $ac_prog; ac_word=$2
3498218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3499218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3501218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3502218822Sdimelse
3503218822Sdim  if test -n "$ac_ct_CC"; then
3504218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3505218822Sdimelse
3506218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507218822Sdimfor as_dir in $PATH
3508218822Sdimdo
3509218822Sdim  IFS=$as_save_IFS
3510218822Sdim  test -z "$as_dir" && as_dir=.
3511218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3512218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513218822Sdim    ac_cv_prog_ac_ct_CC="$ac_prog"
3514218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515218822Sdim    break 2
3516130561Sobrien  fi
3517218822Sdimdone
3518218822Sdimdone
3519218822Sdim
3520130561Sobrienfi
3521218822Sdimfi
3522218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
3523218822Sdimif test -n "$ac_ct_CC"; then
3524218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3525218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
3526218822Sdimelse
3527218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3528218822Sdimecho "${ECHO_T}no" >&6
3529218822Sdimfi
3530130561Sobrien
3531218822Sdim  test -n "$ac_ct_CC" && break
3532218822Sdimdone
3533130561Sobrien
3534218822Sdim  CC=$ac_ct_CC
3535218822Sdimfi
3536130561Sobrien
3537218822Sdimfi
3538130561Sobrien
3539130561Sobrien
3540218822Sdimtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3541218822SdimSee \`config.log' for more details." >&5
3542218822Sdimecho "$as_me: error: no acceptable C compiler found in \$PATH
3543218822SdimSee \`config.log' for more details." >&2;}
3544218822Sdim   { (exit 1); exit 1; }; }
3545130561Sobrien
3546218822Sdim# Provide some information about the compiler.
3547218822Sdimecho "$as_me:$LINENO:" \
3548218822Sdim     "checking for C compiler version" >&5
3549218822Sdimac_compiler=`set X $ac_compile; echo $2`
3550218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3551218822Sdim  (eval $ac_compiler --version </dev/null >&5) 2>&5
3552218822Sdim  ac_status=$?
3553218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554218822Sdim  (exit $ac_status); }
3555218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3556218822Sdim  (eval $ac_compiler -v </dev/null >&5) 2>&5
3557218822Sdim  ac_status=$?
3558218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559218822Sdim  (exit $ac_status); }
3560218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3561218822Sdim  (eval $ac_compiler -V </dev/null >&5) 2>&5
3562218822Sdim  ac_status=$?
3563218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564218822Sdim  (exit $ac_status); }
3565130561Sobrien
3566218822Sdimecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3567218822Sdimecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3568218822Sdimif test "${ac_cv_c_compiler_gnu+set}" = set; then
3569218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3570130561Sobrienelse
3571218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3572218822Sdim/* confdefs.h.  */
3573218822Sdim_ACEOF
3574218822Sdimcat confdefs.h >>conftest.$ac_ext
3575218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3576218822Sdim/* end confdefs.h.  */
3577218822Sdim
3578218822Sdimint
3579218822Sdimmain ()
3580218822Sdim{
3581218822Sdim#ifndef __GNUC__
3582218822Sdim       choke me
3583130561Sobrien#endif
3584218822Sdim
3585218822Sdim  ;
3586218822Sdim  return 0;
3587218822Sdim}
3588218822Sdim_ACEOF
3589218822Sdimrm -f conftest.$ac_objext
3590218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591218822Sdim  (eval $ac_compile) 2>conftest.er1
3592218822Sdim  ac_status=$?
3593218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3594218822Sdim  rm -f conftest.er1
3595218822Sdim  cat conftest.err >&5
3596218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597218822Sdim  (exit $ac_status); } &&
3598218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3599218822Sdim			 || test ! -s conftest.err'
3600218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601218822Sdim  (eval $ac_try) 2>&5
3602218822Sdim  ac_status=$?
3603218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604218822Sdim  (exit $ac_status); }; } &&
3605218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3606218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607218822Sdim  (eval $ac_try) 2>&5
3608218822Sdim  ac_status=$?
3609218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610218822Sdim  (exit $ac_status); }; }; then
3611218822Sdim  ac_compiler_gnu=yes
3612130561Sobrienelse
3613218822Sdim  echo "$as_me: failed program was:" >&5
3614218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3615218822Sdim
3616218822Sdimac_compiler_gnu=no
3617130561Sobrienfi
3618218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3619218822Sdimac_cv_c_compiler_gnu=$ac_compiler_gnu
3620218822Sdim
3621130561Sobrienfi
3622218822Sdimecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3623218822Sdimecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3624218822SdimGCC=`test $ac_compiler_gnu = yes && echo yes`
3625218822Sdimac_test_CFLAGS=${CFLAGS+set}
3626218822Sdimac_save_CFLAGS=$CFLAGS
3627218822SdimCFLAGS="-g"
3628218822Sdimecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3629218822Sdimecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3630218822Sdimif test "${ac_cv_prog_cc_g+set}" = set; then
3631218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3632218822Sdimelse
3633218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3634218822Sdim/* confdefs.h.  */
3635218822Sdim_ACEOF
3636218822Sdimcat confdefs.h >>conftest.$ac_ext
3637218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3638218822Sdim/* end confdefs.h.  */
3639130561Sobrien
3640218822Sdimint
3641218822Sdimmain ()
3642218822Sdim{
3643130561Sobrien
3644218822Sdim  ;
3645218822Sdim  return 0;
3646218822Sdim}
3647218822Sdim_ACEOF
3648218822Sdimrm -f conftest.$ac_objext
3649218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650218822Sdim  (eval $ac_compile) 2>conftest.er1
3651218822Sdim  ac_status=$?
3652218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3653218822Sdim  rm -f conftest.er1
3654218822Sdim  cat conftest.err >&5
3655218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656218822Sdim  (exit $ac_status); } &&
3657218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3658218822Sdim			 || test ! -s conftest.err'
3659218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660218822Sdim  (eval $ac_try) 2>&5
3661218822Sdim  ac_status=$?
3662218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663218822Sdim  (exit $ac_status); }; } &&
3664218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3665218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666218822Sdim  (eval $ac_try) 2>&5
3667218822Sdim  ac_status=$?
3668218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669218822Sdim  (exit $ac_status); }; }; then
3670130561Sobrien  ac_cv_prog_cc_g=yes
3671130561Sobrienelse
3672218822Sdim  echo "$as_me: failed program was:" >&5
3673218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3674130561Sobrien
3675218822Sdimac_cv_prog_cc_g=no
3676130561Sobrienfi
3677218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3678218822Sdimfi
3679218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3680218822Sdimecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
3681130561Sobrienif test "$ac_test_CFLAGS" = set; then
3682218822Sdim  CFLAGS=$ac_save_CFLAGS
3683130561Sobrienelif test $ac_cv_prog_cc_g = yes; then
3684130561Sobrien  if test "$GCC" = yes; then
3685130561Sobrien    CFLAGS="-g -O2"
3686130561Sobrien  else
3687130561Sobrien    CFLAGS="-g"
3688130561Sobrien  fi
3689130561Sobrienelse
3690130561Sobrien  if test "$GCC" = yes; then
3691130561Sobrien    CFLAGS="-O2"
3692130561Sobrien  else
3693130561Sobrien    CFLAGS=
3694130561Sobrien  fi
3695130561Sobrienfi
3696218822Sdimecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3697218822Sdimecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3698218822Sdimif test "${ac_cv_prog_cc_stdc+set}" = set; then
3699218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3700218822Sdimelse
3701218822Sdim  ac_cv_prog_cc_stdc=no
3702218822Sdimac_save_CC=$CC
3703218822Sdimcat >conftest.$ac_ext <<_ACEOF
3704218822Sdim/* confdefs.h.  */
3705218822Sdim_ACEOF
3706218822Sdimcat confdefs.h >>conftest.$ac_ext
3707218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3708218822Sdim/* end confdefs.h.  */
3709218822Sdim#include <stdarg.h>
3710218822Sdim#include <stdio.h>
3711218822Sdim#include <sys/types.h>
3712218822Sdim#include <sys/stat.h>
3713218822Sdim/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3714218822Sdimstruct buf { int x; };
3715218822SdimFILE * (*rcsopen) (struct buf *, struct stat *, int);
3716218822Sdimstatic char *e (p, i)
3717218822Sdim     char **p;
3718218822Sdim     int i;
3719218822Sdim{
3720218822Sdim  return p[i];
3721218822Sdim}
3722218822Sdimstatic char *f (char * (*g) (char **, int), char **p, ...)
3723218822Sdim{
3724218822Sdim  char *s;
3725218822Sdim  va_list v;
3726218822Sdim  va_start (v,p);
3727218822Sdim  s = g (p, va_arg (v,int));
3728218822Sdim  va_end (v);
3729218822Sdim  return s;
3730218822Sdim}
3731130561Sobrien
3732218822Sdim/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3733218822Sdim   function prototypes and stuff, but not '\xHH' hex character constants.
3734218822Sdim   These don't provoke an error unfortunately, instead are silently treated
3735218822Sdim   as 'x'.  The following induces an error, until -std1 is added to get
3736218822Sdim   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3737218822Sdim   array size at least.  It's necessary to write '\x00'==0 to get something
3738218822Sdim   that's true only with -std1.  */
3739218822Sdimint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3740218822Sdim
3741218822Sdimint test (int i, double x);
3742218822Sdimstruct s1 {int (*f) (int a);};
3743218822Sdimstruct s2 {int (*f) (double a);};
3744218822Sdimint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745218822Sdimint argc;
3746218822Sdimchar **argv;
3747218822Sdimint
3748218822Sdimmain ()
3749218822Sdim{
3750218822Sdimreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3751218822Sdim  ;
3752218822Sdim  return 0;
3753218822Sdim}
3754218822Sdim_ACEOF
3755218822Sdim# Don't try gcc -ansi; that turns off useful extensions and
3756218822Sdim# breaks some systems' header files.
3757218822Sdim# AIX			-qlanglvl=ansi
3758218822Sdim# Ultrix and OSF/1	-std1
3759218822Sdim# HP-UX 10.20 and later	-Ae
3760218822Sdim# HP-UX older versions	-Aa -D_HPUX_SOURCE
3761218822Sdim# SVR4			-Xc -D__EXTENSIONS__
3762218822Sdimfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3763218822Sdimdo
3764218822Sdim  CC="$ac_save_CC $ac_arg"
3765218822Sdim  rm -f conftest.$ac_objext
3766218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767218822Sdim  (eval $ac_compile) 2>conftest.er1
3768218822Sdim  ac_status=$?
3769218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3770218822Sdim  rm -f conftest.er1
3771218822Sdim  cat conftest.err >&5
3772218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773218822Sdim  (exit $ac_status); } &&
3774218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3775218822Sdim			 || test ! -s conftest.err'
3776218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777218822Sdim  (eval $ac_try) 2>&5
3778218822Sdim  ac_status=$?
3779218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780218822Sdim  (exit $ac_status); }; } &&
3781218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3782218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783218822Sdim  (eval $ac_try) 2>&5
3784218822Sdim  ac_status=$?
3785218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786218822Sdim  (exit $ac_status); }; }; then
3787218822Sdim  ac_cv_prog_cc_stdc=$ac_arg
3788218822Sdimbreak
3789218822Sdimelse
3790218822Sdim  echo "$as_me: failed program was:" >&5
3791218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3792218822Sdim
3793218822Sdimfi
3794218822Sdimrm -f conftest.err conftest.$ac_objext
3795218822Sdimdone
3796218822Sdimrm -f conftest.$ac_ext conftest.$ac_objext
3797218822SdimCC=$ac_save_CC
3798218822Sdim
3799218822Sdimfi
3800218822Sdim
3801218822Sdimcase "x$ac_cv_prog_cc_stdc" in
3802218822Sdim  x|xno)
3803218822Sdim    echo "$as_me:$LINENO: result: none needed" >&5
3804218822Sdimecho "${ECHO_T}none needed" >&6 ;;
3805218822Sdim  *)
3806218822Sdim    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3807218822Sdimecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3808218822Sdim    CC="$CC $ac_cv_prog_cc_stdc" ;;
3809218822Sdimesac
3810218822Sdim
3811218822Sdim# Some people use a C++ compiler to compile C.  Since we use `exit',
3812218822Sdim# in C++ we need to declare it.  In case someone uses the same compiler
3813218822Sdim# for both compiling C and C++ we need to have the C++ compiler decide
3814218822Sdim# the declaration of exit, since it's the most demanding environment.
3815218822Sdimcat >conftest.$ac_ext <<_ACEOF
3816218822Sdim#ifndef __cplusplus
3817218822Sdim  choke me
3818218822Sdim#endif
3819218822Sdim_ACEOF
3820218822Sdimrm -f conftest.$ac_objext
3821218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822218822Sdim  (eval $ac_compile) 2>conftest.er1
3823218822Sdim  ac_status=$?
3824218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3825218822Sdim  rm -f conftest.er1
3826218822Sdim  cat conftest.err >&5
3827218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828218822Sdim  (exit $ac_status); } &&
3829218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3830218822Sdim			 || test ! -s conftest.err'
3831218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832218822Sdim  (eval $ac_try) 2>&5
3833218822Sdim  ac_status=$?
3834218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835218822Sdim  (exit $ac_status); }; } &&
3836218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3837218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838218822Sdim  (eval $ac_try) 2>&5
3839218822Sdim  ac_status=$?
3840218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841218822Sdim  (exit $ac_status); }; }; then
3842218822Sdim  for ac_declaration in \
3843218822Sdim   '' \
3844218822Sdim   'extern "C" void std::exit (int) throw (); using std::exit;' \
3845218822Sdim   'extern "C" void std::exit (int); using std::exit;' \
3846218822Sdim   'extern "C" void exit (int) throw ();' \
3847218822Sdim   'extern "C" void exit (int);' \
3848218822Sdim   'void exit (int);'
3849218822Sdimdo
3850218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3851218822Sdim/* confdefs.h.  */
3852218822Sdim_ACEOF
3853218822Sdimcat confdefs.h >>conftest.$ac_ext
3854218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3855218822Sdim/* end confdefs.h.  */
3856218822Sdim$ac_declaration
3857218822Sdim#include <stdlib.h>
3858218822Sdimint
3859218822Sdimmain ()
3860218822Sdim{
3861218822Sdimexit (42);
3862218822Sdim  ;
3863218822Sdim  return 0;
3864218822Sdim}
3865218822Sdim_ACEOF
3866218822Sdimrm -f conftest.$ac_objext
3867218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868218822Sdim  (eval $ac_compile) 2>conftest.er1
3869218822Sdim  ac_status=$?
3870218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3871218822Sdim  rm -f conftest.er1
3872218822Sdim  cat conftest.err >&5
3873218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874218822Sdim  (exit $ac_status); } &&
3875218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3876218822Sdim			 || test ! -s conftest.err'
3877218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878218822Sdim  (eval $ac_try) 2>&5
3879218822Sdim  ac_status=$?
3880218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881218822Sdim  (exit $ac_status); }; } &&
3882218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3883218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884218822Sdim  (eval $ac_try) 2>&5
3885218822Sdim  ac_status=$?
3886218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887218822Sdim  (exit $ac_status); }; }; then
3888218822Sdim  :
3889218822Sdimelse
3890218822Sdim  echo "$as_me: failed program was:" >&5
3891218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3892218822Sdim
3893218822Sdimcontinue
3894218822Sdimfi
3895218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3896218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3897218822Sdim/* confdefs.h.  */
3898218822Sdim_ACEOF
3899218822Sdimcat confdefs.h >>conftest.$ac_ext
3900218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3901218822Sdim/* end confdefs.h.  */
3902218822Sdim$ac_declaration
3903218822Sdimint
3904218822Sdimmain ()
3905218822Sdim{
3906218822Sdimexit (42);
3907218822Sdim  ;
3908218822Sdim  return 0;
3909218822Sdim}
3910218822Sdim_ACEOF
3911218822Sdimrm -f conftest.$ac_objext
3912218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913218822Sdim  (eval $ac_compile) 2>conftest.er1
3914218822Sdim  ac_status=$?
3915218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3916218822Sdim  rm -f conftest.er1
3917218822Sdim  cat conftest.err >&5
3918218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919218822Sdim  (exit $ac_status); } &&
3920218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3921218822Sdim			 || test ! -s conftest.err'
3922218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923218822Sdim  (eval $ac_try) 2>&5
3924218822Sdim  ac_status=$?
3925218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926218822Sdim  (exit $ac_status); }; } &&
3927218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3928218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929218822Sdim  (eval $ac_try) 2>&5
3930218822Sdim  ac_status=$?
3931218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932218822Sdim  (exit $ac_status); }; }; then
3933218822Sdim  break
3934218822Sdimelse
3935218822Sdim  echo "$as_me: failed program was:" >&5
3936218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3937218822Sdim
3938218822Sdimfi
3939218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3940218822Sdimdone
3941218822Sdimrm -f conftest*
3942218822Sdimif test -n "$ac_declaration"; then
3943218822Sdim  echo '#ifdef __cplusplus' >>confdefs.h
3944218822Sdim  echo $ac_declaration      >>confdefs.h
3945218822Sdim  echo '#endif'             >>confdefs.h
3946218822Sdimfi
3947218822Sdim
3948218822Sdimelse
3949218822Sdim  echo "$as_me: failed program was:" >&5
3950218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3951218822Sdim
3952218822Sdimfi
3953218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3954218822Sdimac_ext=c
3955218822Sdimac_cpp='$CPP $CPPFLAGS'
3956218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
3959218822Sdim
3960218822Sdim
3961218822Sdimcat >>confdefs.h <<\_ACEOF
3962218822Sdim#define _GNU_SOURCE 1
3963218822Sdim_ACEOF
3964218822Sdim
3965218822Sdim
3966218822Sdim
3967218822Sdim
3968218822Sdimmacro_version='2.1a'
3969218822Sdimmacro_revision='1.2435'
3970218822Sdim
3971218822Sdim
3972218822Sdim
3973218822Sdim
3974218822Sdim
3975218822Sdim
3976218822Sdim
3977218822Sdim
3978218822Sdim
3979218822Sdim
3980218822Sdim
3981218822Sdim
3982218822Sdimltmain="$ac_aux_dir/ltmain.sh"
3983218822Sdim
3984218822Sdim# Set options
3985218822Sdim
3986218822Sdimenable_dlopen=no
3987218822Sdim
3988218822Sdim
3989218822Sdimenable_win32_dll=no
3990218822Sdim
3991218822Sdim
3992218822Sdim# Check whether --enable-shared or --disable-shared was given.
3993218822Sdimif test "${enable_shared+set}" = set; then
3994218822Sdim  enableval="$enable_shared"
3995218822Sdim  p=${PACKAGE-default}
3996218822Sdim    case $enableval in
3997218822Sdim    yes) enable_shared=yes ;;
3998218822Sdim    no) enable_shared=no ;;
3999218822Sdim    *)
4000218822Sdim      enable_shared=no
4001218822Sdim      # Look at the argument we got.  We use all the common list separators.
4002218822Sdim      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4003218822Sdim      for pkg in $enableval; do
4004218822Sdim	IFS="$lt_save_ifs"
4005218822Sdim	if test "X$pkg" = "X$p"; then
4006218822Sdim	  enable_shared=yes
4007218822Sdim	fi
4008218822Sdim      done
4009218822Sdim      IFS="$lt_save_ifs"
4010218822Sdim      ;;
4011218822Sdim    esac
4012218822Sdimelse
4013218822Sdim  enable_shared=yes
4014218822Sdimfi;
4015218822Sdim
4016218822Sdim
4017218822Sdim
4018218822Sdim
4019218822Sdim
4020218822Sdim
4021218822Sdim
4022218822Sdim
4023218822Sdim# Check whether --enable-static or --disable-static was given.
4024218822Sdimif test "${enable_static+set}" = set; then
4025218822Sdim  enableval="$enable_static"
4026218822Sdim  p=${PACKAGE-default}
4027218822Sdim    case $enableval in
4028218822Sdim    yes) enable_static=yes ;;
4029218822Sdim    no) enable_static=no ;;
4030218822Sdim    *)
4031218822Sdim     enable_static=no
4032218822Sdim      # Look at the argument we got.  We use all the common list separators.
4033218822Sdim      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4034218822Sdim      for pkg in $enableval; do
4035218822Sdim	IFS="$lt_save_ifs"
4036218822Sdim	if test "X$pkg" = "X$p"; then
4037218822Sdim	  enable_static=yes
4038218822Sdim	fi
4039218822Sdim      done
4040218822Sdim      IFS="$lt_save_ifs"
4041218822Sdim      ;;
4042218822Sdim    esac
4043218822Sdimelse
4044218822Sdim  enable_static=yes
4045218822Sdimfi;
4046218822Sdim
4047218822Sdim
4048218822Sdim
4049218822Sdim
4050218822Sdim
4051218822Sdim
4052218822Sdim
4053218822Sdim
4054218822Sdim
4055218822Sdim# Check whether --with-pic or --without-pic was given.
4056218822Sdimif test "${with_pic+set}" = set; then
4057218822Sdim  withval="$with_pic"
4058218822Sdim  pic_mode="$withval"
4059218822Sdimelse
4060218822Sdim  pic_mode=default
4061218822Sdimfi;
4062218822Sdim
4063218822Sdimtest -z "$pic_mode" && pic_mode=default
4064218822Sdim
4065218822Sdim
4066218822Sdim
4067218822Sdim
4068218822Sdim
4069218822Sdim
4070218822Sdim
4071218822Sdim# Check whether --enable-fast-install or --disable-fast-install was given.
4072218822Sdimif test "${enable_fast_install+set}" = set; then
4073218822Sdim  enableval="$enable_fast_install"
4074218822Sdim  p=${PACKAGE-default}
4075218822Sdim    case $enableval in
4076218822Sdim    yes) enable_fast_install=yes ;;
4077218822Sdim    no) enable_fast_install=no ;;
4078218822Sdim    *)
4079218822Sdim      enable_fast_install=no
4080218822Sdim      # Look at the argument we got.  We use all the common list separators.
4081218822Sdim      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4082218822Sdim      for pkg in $enableval; do
4083218822Sdim	IFS="$lt_save_ifs"
4084218822Sdim	if test "X$pkg" = "X$p"; then
4085218822Sdim	  enable_fast_install=yes
4086218822Sdim	fi
4087218822Sdim      done
4088218822Sdim      IFS="$lt_save_ifs"
4089218822Sdim      ;;
4090218822Sdim    esac
4091218822Sdimelse
4092218822Sdim  enable_fast_install=yes
4093218822Sdimfi;
4094218822Sdim
4095218822Sdim
4096218822Sdim
4097218822Sdim
4098218822Sdim
4099218822Sdim
4100218822Sdim
4101218822Sdim
4102218822Sdimecho "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4103218822Sdimecho $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4104218822Sdimif test "${lt_cv_path_SED+set}" = set; then
4105218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4106218822Sdimelse
4107218822Sdim  # Loop through the user's path and test for sed and gsed.
4108218822Sdim# Then use that list of sed's as ones to test for truncation.
4109218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110218822Sdimfor as_dir in $PATH
4111218822Sdimdo
4112218822Sdim  IFS=$as_save_IFS
4113218822Sdim  test -z "$as_dir" && as_dir=.
4114218822Sdim  for lt_ac_prog in sed gsed; do
4115218822Sdim    for ac_exec_ext in '' $ac_executable_extensions; do
4116218822Sdim      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4117218822Sdim        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4118218822Sdim      fi
4119218822Sdim    done
4120218822Sdim  done
4121218822Sdimdone
4122218822SdimIFS=$as_save_IFS
4123218822Sdimlt_ac_max=0
4124218822Sdimlt_ac_count=0
4125218822Sdim# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4126218822Sdim# along with /bin/sed that truncates output.
4127218822Sdimfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4128218822Sdim  test ! -f $lt_ac_sed && continue
4129218822Sdim  cat /dev/null > conftest.in
4130218822Sdim  lt_ac_count=0
4131218822Sdim  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4132218822Sdim  # Check for GNU sed and select it if it is found.
4133218822Sdim  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4134218822Sdim    lt_cv_path_SED=$lt_ac_sed
4135218822Sdim    break
4136218822Sdim  fi
4137218822Sdim  while true; do
4138218822Sdim    cat conftest.in conftest.in >conftest.tmp
4139218822Sdim    mv conftest.tmp conftest.in
4140218822Sdim    cp conftest.in conftest.nl
4141218822Sdim    echo >>conftest.nl
4142218822Sdim    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4143218822Sdim    cmp -s conftest.out conftest.nl || break
4144218822Sdim    # 10000 chars as input seems more than enough
4145218822Sdim    test $lt_ac_count -gt 10 && break
4146218822Sdim    lt_ac_count=`expr $lt_ac_count + 1`
4147218822Sdim    if test $lt_ac_count -gt $lt_ac_max; then
4148218822Sdim      lt_ac_max=$lt_ac_count
4149218822Sdim      lt_cv_path_SED=$lt_ac_sed
4150218822Sdim    fi
4151218822Sdim  done
4152218822Sdimdone
4153218822Sdim
4154218822Sdimfi
4155218822Sdim
4156218822SdimSED=$lt_cv_path_SED
4157218822Sdim
4158218822Sdimecho "$as_me:$LINENO: result: $SED" >&5
4159218822Sdimecho "${ECHO_T}$SED" >&6
4160218822Sdim
4161218822Sdimtest -z "$SED" && SED=sed
4162218822SdimXsed="$SED -e 1s/^X//"
4163218822Sdim
4164218822Sdim
4165218822Sdim
4166218822Sdim
4167218822Sdim
4168218822Sdim
4169218822Sdim
4170218822Sdim
4171218822Sdim
4172218822Sdim
4173218822Sdim
4174218822Sdimecho "$as_me:$LINENO: checking for egrep" >&5
4175218822Sdimecho $ECHO_N "checking for egrep... $ECHO_C" >&6
4176218822Sdimif test "${ac_cv_prog_egrep+set}" = set; then
4177218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4178218822Sdimelse
4179218822Sdim  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4180218822Sdim    then ac_cv_prog_egrep='grep -E'
4181218822Sdim    else ac_cv_prog_egrep='egrep'
4182218822Sdim    fi
4183218822Sdimfi
4184218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4185218822Sdimecho "${ECHO_T}$ac_cv_prog_egrep" >&6
4186218822Sdim EGREP=$ac_cv_prog_egrep
4187218822Sdim
4188218822Sdim
4189218822Sdimecho "$as_me:$LINENO: checking for fgrep" >&5
4190218822Sdimecho $ECHO_N "checking for fgrep... $ECHO_C" >&6
4191218822Sdimif test "${ac_cv_prog_fgrep+set}" = set; then
4192218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4193218822Sdimelse
4194218822Sdim  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4195218822Sdim    then ac_cv_prog_fgrep='grep -F'
4196218822Sdim    else ac_cv_prog_fgrep='fgrep'
4197218822Sdim    fi
4198218822Sdimfi
4199218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4200218822Sdimecho "${ECHO_T}$ac_cv_prog_fgrep" >&6
4201218822Sdim FGREP=$ac_cv_prog_fgrep
4202218822Sdim
4203218822Sdim
4204218822Sdimtest -z "$GREP" && GREP=grep
4205218822Sdim
4206218822Sdim
4207218822Sdim
4208218822Sdim
4209218822Sdim
4210218822Sdim
4211218822Sdim
4212218822Sdim
4213218822Sdim
4214218822Sdim
4215218822Sdim
4216218822Sdim
4217218822Sdim
4218218822Sdim
4219218822Sdim
4220218822Sdim
4221218822Sdim
4222218822Sdim
4223218822Sdim
422438889Sjdp# Check whether --with-gnu-ld or --without-gnu-ld was given.
422538889Sjdpif test "${with_gnu_ld+set}" = set; then
422638889Sjdp  withval="$with_gnu_ld"
422738889Sjdp  test "$withval" = no || with_gnu_ld=yes
422838889Sjdpelse
422938889Sjdp  with_gnu_ld=no
4230218822Sdimfi;
423138889Sjdpac_prog=ld
423289857Sobrienif test "$GCC" = yes; then
423338889Sjdp  # Check if gcc -print-prog-name=ld gives a path.
4234218822Sdim  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4235218822Sdimecho $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
423677298Sobrien  case $host in
423777298Sobrien  *-*-mingw*)
423877298Sobrien    # gcc leaves a trailing carriage return which upsets mingw
423977298Sobrien    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
424077298Sobrien  *)
424177298Sobrien    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
424277298Sobrien  esac
424389857Sobrien  case $ac_prog in
424460484Sobrien    # Accept absolute paths.
4245218822Sdim    [\\/]* | ?:[\\/]*)
424660484Sobrien      re_direlt='/[^/][^/]*/\.\./'
4247218822Sdim      # Canonicalize the pathname of ld
4248218822Sdim      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4249218822Sdim      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4250218822Sdim	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
425160484Sobrien      done
425260484Sobrien      test -z "$LD" && LD="$ac_prog"
425360484Sobrien      ;;
425438889Sjdp  "")
425538889Sjdp    # If it fails, then pretend we aren't using GCC.
425638889Sjdp    ac_prog=ld
425738889Sjdp    ;;
425838889Sjdp  *)
425938889Sjdp    # If it is relative, then search for the first ld in PATH.
426038889Sjdp    with_gnu_ld=unknown
426138889Sjdp    ;;
426238889Sjdp  esac
426338889Sjdpelif test "$with_gnu_ld" = yes; then
4264218822Sdim  echo "$as_me:$LINENO: checking for GNU ld" >&5
4265218822Sdimecho $ECHO_N "checking for GNU ld... $ECHO_C" >&6
426638889Sjdpelse
4267218822Sdim  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4268218822Sdimecho $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
426938889Sjdpfi
4270218822Sdimif test "${lt_cv_path_LD+set}" = set; then
4271218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
427238889Sjdpelse
427338889Sjdp  if test -z "$LD"; then
4274218822Sdim  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
427538889Sjdp  for ac_dir in $PATH; do
4276218822Sdim    IFS="$lt_save_ifs"
427738889Sjdp    test -z "$ac_dir" && ac_dir=.
427860484Sobrien    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
427989857Sobrien      lt_cv_path_LD="$ac_dir/$ac_prog"
428038889Sjdp      # Check to see if the program is GNU ld.  I'd rather use --version,
4281218822Sdim      # but apparently some variants of GNU ld only accept -v.
428238889Sjdp      # Break only if it was the GNU/non-GNU ld that we prefer.
4283218822Sdim      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4284218822Sdim      *GNU* | *'with BFD'*)
428538889Sjdp	test "$with_gnu_ld" != no && break
4286218822Sdim	;;
4287218822Sdim      *)
428860484Sobrien	test "$with_gnu_ld" != yes && break
4289218822Sdim	;;
4290218822Sdim      esac
429138889Sjdp    fi
429238889Sjdp  done
4293218822Sdim  IFS="$lt_save_ifs"
429438889Sjdpelse
429589857Sobrien  lt_cv_path_LD="$LD" # Let the user override the test with a path.
429638889Sjdpfi
429738889Sjdpfi
429833965Sjdp
429989857SobrienLD="$lt_cv_path_LD"
430038889Sjdpif test -n "$LD"; then
4301218822Sdim  echo "$as_me:$LINENO: result: $LD" >&5
4302218822Sdimecho "${ECHO_T}$LD" >&6
430338889Sjdpelse
4304218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4305218822Sdimecho "${ECHO_T}no" >&6
430638889Sjdpfi
4307218822Sdimtest -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4308218822Sdimecho "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4309218822Sdim   { (exit 1); exit 1; }; }
4310218822Sdimecho "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4311218822Sdimecho $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4312218822Sdimif test "${lt_cv_prog_gnu_ld+set}" = set; then
4313218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
431438889Sjdpelse
4315218822Sdim  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4316218822Sdimcase `$LD -v 2>&1 </dev/null` in
4317218822Sdim*GNU* | *'with BFD'*)
431889857Sobrien  lt_cv_prog_gnu_ld=yes
4319218822Sdim  ;;
4320218822Sdim*)
432189857Sobrien  lt_cv_prog_gnu_ld=no
4322218822Sdim  ;;
4323218822Sdimesac
432438889Sjdpfi
4325218822Sdimecho "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4326218822Sdimecho "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
432789857Sobrienwith_gnu_ld=$lt_cv_prog_gnu_ld
432833965Sjdp
432933965Sjdp
433077298Sobrien
433177298Sobrien
4332218822Sdim
4333218822Sdim
4334218822Sdim
4335218822Sdim
4336218822Sdim
4337218822Sdim
4338218822Sdimecho "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4339218822Sdimecho $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4340218822Sdimif test "${lt_cv_path_NM+set}" = set; then
4341218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
434238889Sjdpelse
434360484Sobrien  if test -n "$NM"; then
434460484Sobrien  # Let the user override the test.
434589857Sobrien  lt_cv_path_NM="$NM"
434660484Sobrienelse
4347218822Sdim  lt_nm_to_check="${ac_tool_prefix}nm"
4348218822Sdim  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4349218822Sdim    lt_nm_to_check="$lt_nm_to_check nm"
4350218822Sdim  fi
4351218822Sdim  for lt_tmp_nm in $lt_nm_to_check; do
4352218822Sdim    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4353218822Sdim    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4354218822Sdim      IFS="$lt_save_ifs"
4355218822Sdim      test -z "$ac_dir" && ac_dir=.
4356218822Sdim      tmp_nm="$ac_dir/$lt_tmp_nm"
4357218822Sdim      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4358218822Sdim	# Check to see if the nm accepts a BSD-compat flag.
4359218822Sdim	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4360218822Sdim	#   nm: unknown option "B" ignored
4361218822Sdim	# Tru64's nm complains that /dev/null is an invalid object file
4362218822Sdim	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4363218822Sdim	*/dev/null* | *'Invalid file or object type'*)
4364218822Sdim	  lt_cv_path_NM="$tmp_nm -B"
4365218822Sdim	  break
4366218822Sdim	  ;;
4367218822Sdim	*)
4368218822Sdim	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4369218822Sdim	  */dev/null*)
4370218822Sdim	    lt_cv_path_NM="$tmp_nm -p"
4371218822Sdim	    break
4372218822Sdim	    ;;
4373218822Sdim	  *)
4374218822Sdim	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4375218822Sdim	    continue # so that we can try to find one that supports BSD flags
4376218822Sdim	    ;;
4377218822Sdim	  esac
4378218822Sdim	  ;;
4379218822Sdim	esac
438038889Sjdp      fi
4381218822Sdim    done
4382218822Sdim    IFS="$lt_save_ifs"
438338889Sjdp  done
4384218822Sdim  : ${lt_cv_path_NM=no}
438538889Sjdpfi
438660484Sobrienfi
4387218822Sdimecho "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4388218822Sdimecho "${ECHO_T}$lt_cv_path_NM" >&6
4389218822Sdimif test "$lt_cv_path_NM" != "no"; then
4390218822Sdim  NM="$lt_cv_path_NM"
4391218822Sdimelse
4392218822Sdim  # Didn't find any BSD compatible name lister, look for dumpbin.
4393218822Sdim  if test -n "$ac_tool_prefix"; then
4394218822Sdim  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4395218822Sdim  do
4396218822Sdim    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4397218822Sdimset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4398218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
4399218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400218822Sdimif test "${ac_cv_prog_DUMPBIN+set}" = set; then
4401218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4402218822Sdimelse
4403218822Sdim  if test -n "$DUMPBIN"; then
4404218822Sdim  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4405218822Sdimelse
4406218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407218822Sdimfor as_dir in $PATH
4408218822Sdimdo
4409218822Sdim  IFS=$as_save_IFS
4410218822Sdim  test -z "$as_dir" && as_dir=.
4411218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
4412218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413218822Sdim    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4414218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415218822Sdim    break 2
4416218822Sdim  fi
4417218822Sdimdone
4418218822Sdimdone
441938889Sjdp
4420218822Sdimfi
4421218822Sdimfi
4422218822SdimDUMPBIN=$ac_cv_prog_DUMPBIN
4423218822Sdimif test -n "$DUMPBIN"; then
4424218822Sdim  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4425218822Sdimecho "${ECHO_T}$DUMPBIN" >&6
4426218822Sdimelse
4427218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4428218822Sdimecho "${ECHO_T}no" >&6
4429218822Sdimfi
443038889Sjdp
4431218822Sdim    test -n "$DUMPBIN" && break
4432218822Sdim  done
4433218822Sdimfi
4434218822Sdimif test -z "$DUMPBIN"; then
4435218822Sdim  ac_ct_DUMPBIN=$DUMPBIN
4436218822Sdim  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4437218822Sdimdo
4438218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
4439218822Sdimset dummy $ac_prog; ac_word=$2
4440218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
4441218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442218822Sdimif test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4443218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
444438889Sjdpelse
4445218822Sdim  if test -n "$ac_ct_DUMPBIN"; then
4446218822Sdim  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
444738889Sjdpelse
4448218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449218822Sdimfor as_dir in $PATH
4450218822Sdimdo
4451218822Sdim  IFS=$as_save_IFS
4452218822Sdim  test -z "$as_dir" && as_dir=.
4453218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
4454218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455218822Sdim    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4456218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457218822Sdim    break 2
4458218822Sdim  fi
4459218822Sdimdone
4460218822Sdimdone
4461218822Sdim
446238889Sjdpfi
446338889Sjdpfi
4464218822Sdimac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4465218822Sdimif test -n "$ac_ct_DUMPBIN"; then
4466218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4467218822Sdimecho "${ECHO_T}$ac_ct_DUMPBIN" >&6
446838889Sjdpelse
4469218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4470218822Sdimecho "${ECHO_T}no" >&6
447138889Sjdpfi
447238889Sjdp
4473218822Sdim  test -n "$ac_ct_DUMPBIN" && break
4474218822Sdimdone
4475218822Sdimtest -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4476218822Sdim
4477218822Sdim  DUMPBIN=$ac_ct_DUMPBIN
4478218822Sdimfi
4479218822Sdim
4480218822Sdim
4481218822Sdim  if test "$DUMPBIN" != ":"; then
4482218822Sdim    NM="$DUMPBIN"
4483218822Sdim  fi
4484218822Sdimfi
4485218822Sdimtest -z "$NM" && NM=nm
4486218822Sdim
4487218822Sdim
4488218822Sdim
4489218822Sdim
4490218822Sdim
4491218822Sdim
4492218822Sdimecho "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4493218822Sdimecho $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4494218822Sdimif test "${lt_cv_nm_interface+set}" = set; then
4495218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
449677298Sobrienelse
4497218822Sdim  lt_cv_nm_interface="BSD nm"
4498218822Sdim  echo "int some_variable = 0;" > conftest.$ac_ext
4499218822Sdim  (eval echo "\"\$as_me:4499: $ac_compile\"" >&5)
4500218822Sdim  (eval "$ac_compile" 2>conftest.err)
4501218822Sdim  cat conftest.err >&5
4502218822Sdim  (eval echo "\"\$as_me:4502: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4503218822Sdim  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4504218822Sdim  cat conftest.err >&5
4505218822Sdim  (eval echo "\"\$as_me:4505: output\"" >&5)
4506218822Sdim  cat conftest.out >&5
4507218822Sdim  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4508218822Sdim    lt_cv_nm_interface="MS dumpbin"
4509218822Sdim  fi
4510218822Sdim  rm -f conftest*
4511218822Sdimfi
4512218822Sdimecho "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4513218822Sdimecho "${ECHO_T}$lt_cv_nm_interface" >&6
4514218822Sdim
4515218822Sdimecho "$as_me:$LINENO: checking whether ln -s works" >&5
4516218822Sdimecho $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4517218822SdimLN_S=$as_ln_s
4518218822Sdimif test "$LN_S" = "ln -s"; then
4519218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
4520218822Sdimecho "${ECHO_T}yes" >&6
4521218822Sdimelse
4522218822Sdim  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4523218822Sdimecho "${ECHO_T}no, using $LN_S" >&6
4524218822Sdimfi
4525218822Sdim
4526218822Sdim# find the maximum length of command line arguments
4527218822Sdimecho "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4528218822Sdimecho $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4529218822Sdimif test "${lt_cv_sys_max_cmd_len+set}" = set; then
4530218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4531218822Sdimelse
4532218822Sdim    i=0
4533218822Sdim  teststring="ABCD"
4534218822Sdim
4535218822Sdim  case $build_os in
4536218822Sdim  msdosdjgpp*)
4537218822Sdim    # On DJGPP, this test can blow up pretty badly due to problems in libc
4538218822Sdim    # (any single argument exceeding 2000 bytes causes a buffer overrun
4539218822Sdim    # during glob expansion).  Even if it were fixed, the result of this
4540218822Sdim    # check would be larger than it should be.
4541218822Sdim    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4542218822Sdim    ;;
4543218822Sdim
4544218822Sdim  gnu*)
4545218822Sdim    # Under GNU Hurd, this test is not required because there is
4546218822Sdim    # no limit to the length of command line arguments.
4547218822Sdim    # Libtool will interpret -1 as no limit whatsoever
4548218822Sdim    lt_cv_sys_max_cmd_len=-1;
4549218822Sdim    ;;
4550218822Sdim
4551218822Sdim  cygwin* | mingw*)
4552218822Sdim    # On Win9x/ME, this test blows up -- it succeeds, but takes
4553218822Sdim    # about 5 minutes as the teststring grows exponentially.
4554218822Sdim    # Worse, since 9x/ME are not pre-emptively multitasking,
4555218822Sdim    # you end up with a "frozen" computer, even though with patience
4556218822Sdim    # the test eventually succeeds (with a max line length of 256k).
4557218822Sdim    # Instead, let's just punt: use the minimum linelength reported by
4558218822Sdim    # all of the supported platforms: 8192 (on NT/2K/XP).
4559218822Sdim    lt_cv_sys_max_cmd_len=8192;
4560218822Sdim    ;;
4561218822Sdim
4562218822Sdim  amigaos*)
4563218822Sdim    # On AmigaOS with pdksh, this test takes hours, literally.
4564218822Sdim    # So we just punt and use a minimum line length of 8192.
4565218822Sdim    lt_cv_sys_max_cmd_len=8192;
4566218822Sdim    ;;
4567218822Sdim
4568218822Sdim  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4569218822Sdim    # This has been around since 386BSD, at least.  Likely further.
4570218822Sdim    if test -x /sbin/sysctl; then
4571218822Sdim      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4572218822Sdim    elif test -x /usr/sbin/sysctl; then
4573218822Sdim      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4574218822Sdim    else
4575218822Sdim      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4576218822Sdim    fi
4577218822Sdim    # And add a safety zone
4578218822Sdim    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4579218822Sdim    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4580218822Sdim    ;;
4581218822Sdim
4582218822Sdim  interix*)
4583218822Sdim    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4584218822Sdim    lt_cv_sys_max_cmd_len=196608
4585218822Sdim    ;;
4586218822Sdim
4587218822Sdim  osf*)
4588218822Sdim    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4589218822Sdim    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4590218822Sdim    # nice to cause kernel panics so lets avoid the loop below.
4591218822Sdim    # First set a reasonable default.
4592218822Sdim    lt_cv_sys_max_cmd_len=16384
4593218822Sdim    #
4594218822Sdim    if test -x /sbin/sysconfig; then
4595218822Sdim      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4596218822Sdim        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4597218822Sdim      esac
4598218822Sdim    fi
4599218822Sdim    ;;
4600218822Sdim  sco3.2v5*)
4601218822Sdim    lt_cv_sys_max_cmd_len=102400
4602218822Sdim    ;;
4603218822Sdim  sysv5* | sco5v6* | sysv4.2uw2*)
4604218822Sdim    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4605218822Sdim    if test -n "$kargmax"; then
4606218822Sdim      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4607218822Sdim    else
4608218822Sdim      lt_cv_sys_max_cmd_len=32768
4609218822Sdim    fi
4610218822Sdim    ;;
4611218822Sdim  *)
4612218822Sdim    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4613218822Sdim    if test -n $lt_cv_sys_max_cmd_len; then
4614218822Sdim      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4615218822Sdim      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4616218822Sdim    else
4617218822Sdim      # Make teststring a little bigger before we do anything with it.
4618218822Sdim      # a 1K string should be a reasonable start.
4619218822Sdim      for i in 1 2 3 4 5 6 7 8 ; do
4620218822Sdim        teststring=$teststring$teststring
4621218822Sdim      done
4622218822Sdim      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4623218822Sdim      # If test is not a shell built-in, we'll probably end up computing a
4624218822Sdim      # maximum length that is only half of the actual maximum length, but
4625218822Sdim      # we can't tell.
4626218822Sdim      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4627218822Sdim	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4628218822Sdim	      test $i != 17 # 1/2 MB should be enough
4629218822Sdim      do
4630218822Sdim        i=`expr $i + 1`
4631218822Sdim        teststring=$teststring$teststring
4632218822Sdim      done
4633218822Sdim      # Only check the string length outside the loop.
4634218822Sdim      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4635218822Sdim      teststring=
4636218822Sdim      # Add a significant safety factor because C++ compilers can tack on
4637218822Sdim      # massive amounts of additional arguments before passing them to the
4638218822Sdim      # linker.  It appears as though 1/2 is a usable value.
4639218822Sdim      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4640218822Sdim    fi
4641218822Sdim    ;;
4642218822Sdim  esac
4643218822Sdim
4644218822Sdimfi
4645218822Sdim
4646218822Sdimif test -n $lt_cv_sys_max_cmd_len ; then
4647218822Sdim  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4648218822Sdimecho "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4649218822Sdimelse
4650218822Sdim  echo "$as_me:$LINENO: result: none" >&5
4651218822Sdimecho "${ECHO_T}none" >&6
4652218822Sdimfi
4653218822Sdimmax_cmd_len=$lt_cv_sys_max_cmd_len
4654218822Sdim
4655218822Sdim
4656218822Sdim
4657218822Sdim
4658218822Sdim
4659218822Sdim
4660218822Sdim
4661218822Sdim: ${CP="cp -f"}
4662218822Sdim: ${MV="mv -f"}
4663218822Sdim: ${RM="rm -f"}
4664218822Sdim
4665218822Sdimecho "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4666218822Sdimecho $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4667218822Sdim# Try some XSI features
4668218822Sdimxsi_shell=no
4669218822Sdim( _lt_dummy="a/b/c"
4670218822Sdim  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4671218822Sdim      = c,a/b,, ) >/dev/null 2>&1 \
4672218822Sdim  && xsi_shell=yes
4673218822Sdimecho "$as_me:$LINENO: result: $xsi_shell" >&5
4674218822Sdimecho "${ECHO_T}$xsi_shell" >&6
4675218822Sdim
4676218822Sdim
4677218822Sdimecho "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4678218822Sdimecho $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4679218822Sdimlt_shell_append=no
4680218822Sdim( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4681218822Sdim    >/dev/null 2>&1 \
4682218822Sdim  && lt_shell_append=yes
4683218822Sdimecho "$as_me:$LINENO: result: $lt_shell_append" >&5
4684218822Sdimecho "${ECHO_T}$lt_shell_append" >&6
4685218822Sdim
4686218822Sdim
4687218822Sdimif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4688218822Sdim  lt_unset=unset
4689218822Sdimelse
4690218822Sdim  lt_unset=false
4691218822Sdimfi
4692218822Sdim
4693218822Sdim
4694218822Sdim
4695218822Sdim
4696218822Sdim
4697218822Sdim# test EBCDIC or ASCII
4698218822Sdimcase `echo X|tr X '\101'` in
4699218822Sdim A) # ASCII based system
4700218822Sdim    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4701218822Sdim  lt_SP2NL='tr \040 \012'
4702218822Sdim  lt_NL2SP='tr \015\012 \040\040'
4703218822Sdim  ;;
4704218822Sdim *) # EBCDIC based system
4705218822Sdim  lt_SP2NL='tr \100 \n'
4706218822Sdim  lt_NL2SP='tr \r\n \100\100'
4707218822Sdim  ;;
4708218822Sdimesac
4709218822Sdim
4710218822Sdim
4711218822Sdim
4712218822Sdim
4713218822Sdim
4714218822Sdim
4715218822Sdim
4716218822Sdim
4717218822Sdim
4718218822Sdimecho "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4719218822Sdimecho $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4720218822Sdimif test "${lt_cv_ld_reload_flag+set}" = set; then
4721218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4722218822Sdimelse
4723218822Sdim  lt_cv_ld_reload_flag='-r'
4724218822Sdimfi
4725218822Sdimecho "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4726218822Sdimecho "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4727218822Sdimreload_flag=$lt_cv_ld_reload_flag
4728218822Sdimcase $reload_flag in
4729218822Sdim"" | " "*) ;;
4730218822Sdim*) reload_flag=" $reload_flag" ;;
4731218822Sdimesac
4732218822Sdimreload_cmds='$LD$reload_flag -o $output$reload_objs'
4733218822Sdimcase $host_os in
4734218822Sdim  darwin*)
4735218822Sdim    if test "$GCC" = yes; then
4736218822Sdim      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4737218822Sdim    else
4738218822Sdim      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4739218822Sdim    fi
4740218822Sdim    ;;
4741218822Sdimesac
4742218822Sdim
4743218822Sdim
4744218822Sdim
4745218822Sdim
4746218822Sdim
4747218822Sdim
4748218822Sdim
4749218822Sdim
4750218822Sdim
4751218822Sdim
4752218822Sdimecho "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4753218822Sdimecho $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4754218822Sdimif test "${lt_cv_deplibs_check_method+set}" = set; then
4755218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4756218822Sdimelse
475777298Sobrien  lt_cv_file_magic_cmd='$MAGIC_CMD'
475877298Sobrienlt_cv_file_magic_test_file=
475977298Sobrienlt_cv_deplibs_check_method='unknown'
476077298Sobrien# Need to set the preceding variable on all platforms that support
476177298Sobrien# interlibrary dependencies.
476277298Sobrien# 'none' -- dependencies not supported.
476377298Sobrien# `unknown' -- same as none, but documents that we really don't know.
476477298Sobrien# 'pass_all' -- all dependencies passed with no checks.
476577298Sobrien# 'test_compile' -- check by making test program.
4766218822Sdim# 'file_magic [[regex]]' -- check by looking for files in library path
4767218822Sdim# which responds to the $file_magic_cmd with a given extended regex.
476877298Sobrien# If you have `file' or equivalent on your system and you're not sure
476977298Sobrien# whether `pass_all' will *always* work, you probably want this one.
477038889Sjdp
477189857Sobriencase $host_os in
4772218822Sdimaix4* | aix5*)
477377298Sobrien  lt_cv_deplibs_check_method=pass_all
477477298Sobrien  ;;
477577298Sobrien
477677298Sobrienbeos*)
477777298Sobrien  lt_cv_deplibs_check_method=pass_all
477877298Sobrien  ;;
477977298Sobrien
4780218822Sdimbsdi[45]*)
478189857Sobrien  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
478289857Sobrien  lt_cv_file_magic_cmd='/usr/bin/file -L'
478377298Sobrien  lt_cv_file_magic_test_file=/shlib/libc.so
478477298Sobrien  ;;
478577298Sobrien
4786218822Sdimcygwin*)
4787218822Sdim  # func_win32_libid is a shell function defined in ltmain.sh
4788218822Sdim  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4789218822Sdim  lt_cv_file_magic_cmd='func_win32_libid'
479077298Sobrien  ;;
479177298Sobrien
4792218822Sdimmingw* | pw32*)
4793218822Sdim  # Base MSYS/MinGW do not provide the 'file' command needed by
4794218822Sdim  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4795218822Sdim  # unless we find 'file', for example because we are cross-compiling.
4796218822Sdim  if ( file / ) >/dev/null 2>&1; then
4797218822Sdim    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4798218822Sdim    lt_cv_file_magic_cmd='func_win32_libid'
4799218822Sdim  else
4800218822Sdim    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4801218822Sdim    lt_cv_file_magic_cmd='$OBJDUMP -f'
4802218822Sdim  fi
4803218822Sdim  ;;
4804218822Sdim
480589857Sobriendarwin* | rhapsody*)
4806218822Sdim  lt_cv_deplibs_check_method=pass_all
480789857Sobrien  ;;
480889857Sobrien
4809218822Sdimfreebsd* | dragonfly*)
4810218822Sdim  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
481189857Sobrien    case $host_cpu in
481277298Sobrien    i*86 )
481377298Sobrien      # Not sure whether the presence of OpenBSD here was a mistake.
481477298Sobrien      # Let's accept both of them until this is cleared up.
4815218822Sdim      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
481689857Sobrien      lt_cv_file_magic_cmd=/usr/bin/file
481777298Sobrien      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
481877298Sobrien      ;;
481977298Sobrien    esac
482077298Sobrien  else
482177298Sobrien    lt_cv_deplibs_check_method=pass_all
482277298Sobrien  fi
482377298Sobrien  ;;
482477298Sobrien
482577298Sobriengnu*)
482677298Sobrien  lt_cv_deplibs_check_method=pass_all
482777298Sobrien  ;;
482877298Sobrien
4829218822Sdimhpux10.20* | hpux11*)
4830218822Sdim  lt_cv_file_magic_cmd=/usr/bin/file
483191041Sobrien  case $host_cpu in
483291041Sobrien  ia64*)
483391041Sobrien    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
483491041Sobrien    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
483591041Sobrien    ;;
4836218822Sdim  hppa*64*)
4837218822Sdim    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]'
4838218822Sdim    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
483977298Sobrien    ;;
484077298Sobrien  *)
4841218822Sdim    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4842218822Sdim    lt_cv_file_magic_test_file=/usr/lib/libc.sl
484389857Sobrien    ;;
484477298Sobrien  esac
4845218822Sdim  ;;
4846218822Sdim
4847218822Sdiminterix[3-9]*)
4848218822Sdim  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4849218822Sdim  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4850218822Sdim  ;;
4851218822Sdim
4852218822Sdimirix5* | irix6* | nonstopux*)
4853218822Sdim  case $LD in
4854218822Sdim  *-32|*"-32 ") libmagic=32-bit;;
4855218822Sdim  *-n32|*"-n32 ") libmagic=N32;;
4856218822Sdim  *-64|*"-64 ") libmagic=64-bit;;
4857218822Sdim  *) libmagic=never-match;;
4858218822Sdim  esac
485977298Sobrien  lt_cv_deplibs_check_method=pass_all
486077298Sobrien  ;;
486177298Sobrien
486277298Sobrien# This must be Linux ELF.
4863218822Sdimlinux* | k*bsd*-gnu)
4864218822Sdim  lt_cv_deplibs_check_method=pass_all
486577298Sobrien  ;;
486677298Sobrien
486777298Sobriennetbsd*)
4868218822Sdim  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4869218822Sdim    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
487077298Sobrien  else
4871218822Sdim    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
487277298Sobrien  fi
487377298Sobrien  ;;
487477298Sobrien
4875218822Sdimnewos6*)
487689857Sobrien  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
487789857Sobrien  lt_cv_file_magic_cmd=/usr/bin/file
487889857Sobrien  lt_cv_file_magic_test_file=/usr/lib/libnls.so
487989857Sobrien  ;;
488089857Sobrien
4881218822Sdim*nto* | *qnx*)
4882218822Sdim  lt_cv_deplibs_check_method=pass_all
4883218822Sdim  ;;
4884218822Sdim
4885218822Sdimopenbsd*)
4886218822Sdim  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4887218822Sdim    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4888218822Sdim  else
4889218822Sdim    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4890218822Sdim  fi
4891218822Sdim  ;;
4892218822Sdim
489377298Sobrienosf3* | osf4* | osf5*)
489477298Sobrien  lt_cv_deplibs_check_method=pass_all
489577298Sobrien  ;;
489677298Sobrien
4897218822Sdimrdos*)
489877298Sobrien  lt_cv_deplibs_check_method=pass_all
489977298Sobrien  ;;
490077298Sobrien
490177298Sobriensolaris*)
490277298Sobrien  lt_cv_deplibs_check_method=pass_all
490377298Sobrien  ;;
490477298Sobrien
4905218822Sdimsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
490689857Sobrien  lt_cv_deplibs_check_method=pass_all
490789857Sobrien  ;;
490889857Sobrien
4909218822Sdimsysv4 | sysv4.3*)
491089857Sobrien  case $host_vendor in
491177298Sobrien  motorola)
491289857Sobrien    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]'
491389857Sobrien    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
491477298Sobrien    ;;
4915218822Sdim  ncr)
4916218822Sdim    lt_cv_deplibs_check_method=pass_all
4917218822Sdim    ;;
4918218822Sdim  sequent)
4919218822Sdim    lt_cv_file_magic_cmd='/bin/file'
4920218822Sdim    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4921218822Sdim    ;;
4922218822Sdim  sni)
4923218822Sdim    lt_cv_file_magic_cmd='/bin/file'
4924218822Sdim    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4925218822Sdim    lt_cv_file_magic_test_file=/lib/libc.so
4926218822Sdim    ;;
4927218822Sdim  siemens)
4928218822Sdim    lt_cv_deplibs_check_method=pass_all
4929218822Sdim    ;;
4930218822Sdim  pc)
4931218822Sdim    lt_cv_deplibs_check_method=pass_all
4932218822Sdim    ;;
493377298Sobrien  esac
493477298Sobrien  ;;
4935218822Sdim
4936218822Sdimtpf*)
4937218822Sdim  lt_cv_deplibs_check_method=pass_all
4938218822Sdim  ;;
493960484Sobrienesac
494060484Sobrien
494177298Sobrienfi
4942218822Sdimecho "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4943218822Sdimecho "${ECHO_T}$lt_cv_deplibs_check_method" >&6
494477298Sobrienfile_magic_cmd=$lt_cv_file_magic_cmd
494577298Sobriendeplibs_check_method=$lt_cv_deplibs_check_method
4946218822Sdimtest -z "$deplibs_check_method" && deplibs_check_method=unknown
494777298Sobrien
4948218822Sdim
4949218822Sdim
4950218822Sdim
4951218822Sdim
4952218822Sdim
4953218822Sdim
4954218822Sdim
4955218822Sdim
4956218822Sdim
4957218822Sdim
4958218822Sdim
4959218822Sdimif test -n "$ac_tool_prefix"; then
4960218822Sdim  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4961218822Sdimset dummy ${ac_tool_prefix}ar; ac_word=$2
4962218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
4963218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964218822Sdimif test "${ac_cv_prog_AR+set}" = set; then
4965218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
496677298Sobrienelse
4967218822Sdim  if test -n "$AR"; then
4968218822Sdim  ac_cv_prog_AR="$AR" # Let the user override the test.
4969218822Sdimelse
4970218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971218822Sdimfor as_dir in $PATH
4972218822Sdimdo
4973218822Sdim  IFS=$as_save_IFS
4974218822Sdim  test -z "$as_dir" && as_dir=.
4975218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
4976218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4977218822Sdim    ac_cv_prog_AR="${ac_tool_prefix}ar"
4978218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979218822Sdim    break 2
4980218822Sdim  fi
4981218822Sdimdone
4982218822Sdimdone
4983218822Sdim
4984218822Sdimfi
4985218822Sdimfi
4986218822SdimAR=$ac_cv_prog_AR
4987218822Sdimif test -n "$AR"; then
4988218822Sdim  echo "$as_me:$LINENO: result: $AR" >&5
4989218822Sdimecho "${ECHO_T}$AR" >&6
4990218822Sdimelse
4991218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4992218822Sdimecho "${ECHO_T}no" >&6
4993218822Sdimfi
4994218822Sdim
4995218822Sdimfi
4996218822Sdimif test -z "$ac_cv_prog_AR"; then
4997218822Sdim  ac_ct_AR=$AR
4998218822Sdim  # Extract the first word of "ar", so it can be a program name with args.
4999218822Sdimset dummy ar; ac_word=$2
5000218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5001218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002218822Sdimif test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5003218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5004218822Sdimelse
5005218822Sdim  if test -n "$ac_ct_AR"; then
5006218822Sdim  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5007218822Sdimelse
5008218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009218822Sdimfor as_dir in $PATH
5010218822Sdimdo
5011218822Sdim  IFS=$as_save_IFS
5012218822Sdim  test -z "$as_dir" && as_dir=.
5013218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5014218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015218822Sdim    ac_cv_prog_ac_ct_AR="ar"
5016218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017218822Sdim    break 2
5018218822Sdim  fi
5019218822Sdimdone
5020218822Sdimdone
5021218822Sdim
5022218822Sdim  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5023218822Sdimfi
5024218822Sdimfi
5025218822Sdimac_ct_AR=$ac_cv_prog_ac_ct_AR
5026218822Sdimif test -n "$ac_ct_AR"; then
5027218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5028218822Sdimecho "${ECHO_T}$ac_ct_AR" >&6
5029218822Sdimelse
5030218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5031218822Sdimecho "${ECHO_T}no" >&6
5032218822Sdimfi
5033218822Sdim
5034218822Sdim  AR=$ac_ct_AR
5035218822Sdimelse
5036218822Sdim  AR="$ac_cv_prog_AR"
5037218822Sdimfi
5038218822Sdim
5039218822Sdimtest -z "$AR" && AR=ar
5040218822Sdimtest -z "$AR_FLAGS" && AR_FLAGS=cru
5041218822Sdim
5042218822Sdim
5043218822Sdim
5044218822Sdim
5045218822Sdim
5046218822Sdim
5047218822Sdim
5048218822Sdim
5049218822Sdim
5050218822Sdim
5051218822Sdim
5052218822Sdimif test -n "$ac_tool_prefix"; then
5053218822Sdim  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5054218822Sdimset dummy ${ac_tool_prefix}strip; ac_word=$2
5055218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5056218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5057218822Sdimif test "${ac_cv_prog_STRIP+set}" = set; then
5058218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5059218822Sdimelse
5060218822Sdim  if test -n "$STRIP"; then
5061218822Sdim  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5062218822Sdimelse
5063218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064218822Sdimfor as_dir in $PATH
5065218822Sdimdo
5066218822Sdim  IFS=$as_save_IFS
5067218822Sdim  test -z "$as_dir" && as_dir=.
5068218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5069218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070218822Sdim    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5071218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072218822Sdim    break 2
5073218822Sdim  fi
5074218822Sdimdone
5075218822Sdimdone
5076218822Sdim
5077218822Sdimfi
5078218822Sdimfi
5079218822SdimSTRIP=$ac_cv_prog_STRIP
5080218822Sdimif test -n "$STRIP"; then
5081218822Sdim  echo "$as_me:$LINENO: result: $STRIP" >&5
5082218822Sdimecho "${ECHO_T}$STRIP" >&6
5083218822Sdimelse
5084218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5085218822Sdimecho "${ECHO_T}no" >&6
5086218822Sdimfi
5087218822Sdim
5088218822Sdimfi
5089218822Sdimif test -z "$ac_cv_prog_STRIP"; then
5090218822Sdim  ac_ct_STRIP=$STRIP
5091218822Sdim  # Extract the first word of "strip", so it can be a program name with args.
5092218822Sdimset dummy strip; ac_word=$2
5093218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5094218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095218822Sdimif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5096218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5097218822Sdimelse
5098218822Sdim  if test -n "$ac_ct_STRIP"; then
5099218822Sdim  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5100218822Sdimelse
5101218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102218822Sdimfor as_dir in $PATH
5103218822Sdimdo
5104218822Sdim  IFS=$as_save_IFS
5105218822Sdim  test -z "$as_dir" && as_dir=.
5106218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5107218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108218822Sdim    ac_cv_prog_ac_ct_STRIP="strip"
5109218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110218822Sdim    break 2
5111218822Sdim  fi
5112218822Sdimdone
5113218822Sdimdone
5114218822Sdim
5115218822Sdim  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5116218822Sdimfi
5117218822Sdimfi
5118218822Sdimac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5119218822Sdimif test -n "$ac_ct_STRIP"; then
5120218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5121218822Sdimecho "${ECHO_T}$ac_ct_STRIP" >&6
5122218822Sdimelse
5123218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5124218822Sdimecho "${ECHO_T}no" >&6
5125218822Sdimfi
5126218822Sdim
5127218822Sdim  STRIP=$ac_ct_STRIP
5128218822Sdimelse
5129218822Sdim  STRIP="$ac_cv_prog_STRIP"
5130218822Sdimfi
5131218822Sdim
5132218822Sdimtest -z "$STRIP" && STRIP=:
5133218822Sdim
5134218822Sdim
5135218822Sdim
5136218822Sdim
5137218822Sdim
5138218822Sdim
5139218822Sdimif test -n "$ac_tool_prefix"; then
5140218822Sdim  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5141218822Sdimset dummy ${ac_tool_prefix}ranlib; ac_word=$2
5142218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5143218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144218822Sdimif test "${ac_cv_prog_RANLIB+set}" = set; then
5145218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5146218822Sdimelse
5147218822Sdim  if test -n "$RANLIB"; then
5148218822Sdim  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5149218822Sdimelse
5150218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151218822Sdimfor as_dir in $PATH
5152218822Sdimdo
5153218822Sdim  IFS=$as_save_IFS
5154218822Sdim  test -z "$as_dir" && as_dir=.
5155218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5156218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157218822Sdim    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5158218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159218822Sdim    break 2
5160218822Sdim  fi
5161218822Sdimdone
5162218822Sdimdone
5163218822Sdim
5164218822Sdimfi
5165218822Sdimfi
5166218822SdimRANLIB=$ac_cv_prog_RANLIB
5167218822Sdimif test -n "$RANLIB"; then
5168218822Sdim  echo "$as_me:$LINENO: result: $RANLIB" >&5
5169218822Sdimecho "${ECHO_T}$RANLIB" >&6
5170218822Sdimelse
5171218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5172218822Sdimecho "${ECHO_T}no" >&6
5173218822Sdimfi
5174218822Sdim
5175218822Sdimfi
5176218822Sdimif test -z "$ac_cv_prog_RANLIB"; then
5177218822Sdim  ac_ct_RANLIB=$RANLIB
5178218822Sdim  # Extract the first word of "ranlib", so it can be a program name with args.
5179218822Sdimset dummy ranlib; ac_word=$2
5180218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5181218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182218822Sdimif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5183218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5184218822Sdimelse
5185218822Sdim  if test -n "$ac_ct_RANLIB"; then
5186218822Sdim  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5187218822Sdimelse
5188218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189218822Sdimfor as_dir in $PATH
5190218822Sdimdo
5191218822Sdim  IFS=$as_save_IFS
5192218822Sdim  test -z "$as_dir" && as_dir=.
5193218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5194218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195218822Sdim    ac_cv_prog_ac_ct_RANLIB="ranlib"
5196218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197218822Sdim    break 2
5198218822Sdim  fi
5199218822Sdimdone
5200218822Sdimdone
5201218822Sdim
5202218822Sdim  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5203218822Sdimfi
5204218822Sdimfi
5205218822Sdimac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5206218822Sdimif test -n "$ac_ct_RANLIB"; then
5207218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5208218822Sdimecho "${ECHO_T}$ac_ct_RANLIB" >&6
5209218822Sdimelse
5210218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5211218822Sdimecho "${ECHO_T}no" >&6
5212218822Sdimfi
5213218822Sdim
5214218822Sdim  RANLIB=$ac_ct_RANLIB
5215218822Sdimelse
5216218822Sdim  RANLIB="$ac_cv_prog_RANLIB"
5217218822Sdimfi
5218218822Sdim
5219218822Sdimtest -z "$RANLIB" && RANLIB=:
5220218822Sdim
5221218822Sdim
5222218822Sdim
5223218822Sdim
5224218822Sdim
5225218822Sdim
5226218822Sdim# Determine commands to create old-style static archives.
5227218822Sdimold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5228218822Sdimold_postinstall_cmds='chmod 644 $oldlib'
5229218822Sdimold_postuninstall_cmds=
5230218822Sdim
5231218822Sdimif test -n "$RANLIB"; then
5232218822Sdim  case $host_os in
5233218822Sdim  openbsd*)
5234218822Sdim    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5235218822Sdim    ;;
5236218822Sdim  *)
5237218822Sdim    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5238218822Sdim    ;;
5239218822Sdim  esac
5240218822Sdim  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5241218822Sdimfi
5242218822Sdim
5243218822Sdim
5244218822Sdim
5245218822Sdim
5246218822Sdim
5247218822Sdim
5248218822Sdim
5249218822Sdim
5250218822Sdim
5251218822Sdim
5252218822Sdim
5253218822Sdim
5254218822Sdim
5255218822Sdim
5256218822Sdim
5257218822Sdim
5258218822Sdim
5259218822Sdim
5260218822Sdim
5261218822Sdim
5262218822Sdim
5263218822Sdim
5264218822Sdim
5265218822Sdim
5266218822Sdim
5267218822Sdim
5268218822Sdim
5269218822Sdim
5270218822Sdim
5271218822Sdim
5272218822Sdim
5273218822Sdim
5274218822Sdim
5275218822Sdim
5276218822Sdim# If no C compiler was specified, use CC.
5277218822SdimLTCC=${LTCC-"$CC"}
5278218822Sdim
5279218822Sdim# If no C compiler flags were specified, use CFLAGS.
5280218822SdimLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5281218822Sdim
5282218822Sdim# Allow CC to be a program name with arguments.
5283218822Sdimcompiler=$CC
5284218822Sdim
5285218822Sdim
5286218822Sdim# Check for command to grab the raw symbol name followed by C symbol from nm.
5287218822Sdimecho "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5288218822Sdimecho $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5289218822Sdimif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5290218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5291218822Sdimelse
5292218822Sdim
5293218822Sdim# These are sane defaults that work on at least a few old systems.
5294218822Sdim# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5295218822Sdim
5296218822Sdim# Character class describing NM global symbol codes.
5297218822Sdimsymcode='[BCDEGRST]'
5298218822Sdim
5299218822Sdim# Regexp to match symbols that can be accessed directly from C.
5300218822Sdimsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5301218822Sdim
5302218822Sdim# Define system-specific variables.
5303218822Sdimcase $host_os in
5304218822Sdimaix*)
5305218822Sdim  symcode='[BCDT]'
5306218822Sdim  ;;
5307218822Sdimcygwin* | mingw* | pw32*)
5308218822Sdim  symcode='[ABCDGISTW]'
5309218822Sdim  ;;
5310218822Sdimhpux*)
5311218822Sdim  if test "$host_cpu" = ia64; then
5312218822Sdim    symcode='[ABCDEGRST]'
5313218822Sdim  fi
5314218822Sdim  ;;
5315218822Sdimirix* | nonstopux*)
5316218822Sdim  symcode='[BCDEGRST]'
5317218822Sdim  ;;
5318218822Sdimosf*)
5319218822Sdim  symcode='[BCDEGQRST]'
5320218822Sdim  ;;
5321218822Sdimsolaris*)
5322218822Sdim  symcode='[BDRT]'
5323218822Sdim  ;;
5324218822Sdimsco3.2v5*)
5325218822Sdim  symcode='[DT]'
5326218822Sdim  ;;
5327218822Sdimsysv4.2uw2*)
5328218822Sdim  symcode='[DT]'
5329218822Sdim  ;;
5330218822Sdimsysv5* | sco5v6* | unixware* | OpenUNIX*)
5331218822Sdim  symcode='[ABDT]'
5332218822Sdim  ;;
5333218822Sdimsysv4)
5334218822Sdim  symcode='[DFNSTU]'
5335218822Sdim  ;;
5336218822Sdimesac
5337218822Sdim
5338218822Sdim# If we're using GNU nm, then use its standard symbol codes.
5339218822Sdimcase `$NM -V 2>&1` in
5340218822Sdim*GNU* | *'with BFD'*)
5341218822Sdim  symcode='[ABCDGIRSTW]' ;;
5342218822Sdimesac
5343218822Sdim
5344218822Sdim# Transform an extracted symbol line into a proper C declaration.
5345218822Sdim# Some systems (esp. on ia64) link data and code symbols differently,
5346218822Sdim# so use this general approach.
5347218822Sdimlt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5348218822Sdim
5349218822Sdim# Transform an extracted symbol line into symbol name and symbol address
5350218822Sdimlt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5351218822Sdim
5352218822Sdim# Handle CRLF in mingw tool chain
5353218822Sdimopt_cr=
5354218822Sdimcase $build_os in
5355218822Sdimmingw*)
5356218822Sdim  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5357218822Sdim  ;;
5358218822Sdimesac
5359218822Sdim
5360218822Sdim# Try without a prefix underscore, then with it.
5361218822Sdimfor ac_symprfx in "" "_"; do
5362218822Sdim
5363218822Sdim  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5364218822Sdim  symxfrm="\\1 $ac_symprfx\\2 \\2"
5365218822Sdim
5366218822Sdim  # Write the raw and C identifiers.
5367218822Sdim  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5368218822Sdim    # Fake it for dumpbin and say T for any non-static function
5369218822Sdim    # and D for any global variable.
5370218822Sdim    # Also find C++ and __fastcall symbols from MSVC++,
5371218822Sdim    # which start with @ or ?.
5372218822Sdim    lt_cv_sys_global_symbol_pipe="$AWK '"\
5373218822Sdim"     {last_section=section; section=\$ 3};"\
5374218822Sdim"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5375218822Sdim"     \$ 0!~/External *\|/{next};"\
5376218822Sdim"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5377218822Sdim"     {if(hide[section]) next};"\
5378218822Sdim"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5379218822Sdim"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5380218822Sdim"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5381218822Sdim"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5382218822Sdim"     ' prfx=^$ac_symprfx"
5383218822Sdim  else
5384218822Sdim    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5385218822Sdim  fi
5386218822Sdim
5387218822Sdim  # Check to see that the pipe works correctly.
5388218822Sdim  pipe_works=no
5389218822Sdim
539077298Sobrien  rm -f conftest*
5391218822Sdim  cat > conftest.$ac_ext <<_LT_EOF
5392218822Sdim#ifdef __cplusplus
5393218822Sdimextern "C" {
5394218822Sdim#endif
5395218822Sdimchar nm_test_var;
5396218822Sdimvoid nm_test_func(void);
5397218822Sdimvoid nm_test_func(void){}
5398218822Sdim#ifdef __cplusplus
5399218822Sdim}
5400218822Sdim#endif
5401218822Sdimint main(){nm_test_var='a';nm_test_func();return(0);}
5402218822Sdim_LT_EOF
5403218822Sdim
5404218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405218822Sdim  (eval $ac_compile) 2>&5
5406218822Sdim  ac_status=$?
5407218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408218822Sdim  (exit $ac_status); }; then
5409218822Sdim    # Now try to grab the symbols.
5410218822Sdim    nlist=conftest.nm
5411218822Sdim    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5412218822Sdim  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5413218822Sdim  ac_status=$?
5414218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415218822Sdim  (exit $ac_status); } && test -s "$nlist"; then
5416218822Sdim      # Try sorting and uniquifying the output.
5417218822Sdim      if sort "$nlist" | uniq > "$nlist"T; then
5418218822Sdim	mv -f "$nlist"T "$nlist"
5419218822Sdim      else
5420218822Sdim	rm -f "$nlist"T
5421218822Sdim      fi
5422218822Sdim
5423218822Sdim      # Make sure that we snagged all the symbols we need.
5424218822Sdim      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5425218822Sdim	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5426218822Sdim	  cat <<_LT_EOF > conftest.$ac_ext
5427218822Sdim#ifdef __cplusplus
5428218822Sdimextern "C" {
5429218822Sdim#endif
5430218822Sdim
5431218822Sdim_LT_EOF
5432218822Sdim	  # Now generate the symbol file.
5433218822Sdim	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5434218822Sdim
5435218822Sdim	  cat <<_LT_EOF >> conftest.$ac_ext
5436218822Sdim
5437218822Sdim/* The mapping between symbol names and symbols.  */
5438218822Sdimconst struct {
5439218822Sdim  const char *name;
5440218822Sdim  void       *address;
5441218822Sdim}
5442218822Sdimlt__PROGRAM__LTX_preloaded_symbols[] =
5443218822Sdim{
5444218822Sdim  { "@PROGRAM@", (void *) 0 },
5445218822Sdim_LT_EOF
5446218822Sdim	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5447218822Sdim	  cat <<\_LT_EOF >> conftest.$ac_ext
5448218822Sdim  {0, (void *) 0}
5449218822Sdim};
5450218822Sdim
5451218822Sdim/* This works around a problem in FreeBSD linker */
5452218822Sdim#ifdef FREEBSD_WORKAROUND
5453218822Sdimstatic const void *lt_preloaded_setup() {
5454218822Sdim  return lt__PROGRAM__LTX_preloaded_symbols;
5455218822Sdim}
5456218822Sdim#endif
5457218822Sdim
5458218822Sdim#ifdef __cplusplus
5459218822Sdim}
5460218822Sdim#endif
5461218822Sdim_LT_EOF
5462218822Sdim	  # Now try linking the two files.
5463218822Sdim	  mv conftest.$ac_objext conftstm.$ac_objext
5464218822Sdim	  lt_save_LIBS="$LIBS"
5465218822Sdim	  lt_save_CFLAGS="$CFLAGS"
5466218822Sdim	  LIBS="conftstm.$ac_objext"
5467218822Sdim	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5468218822Sdim	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5469218822Sdim  (eval $ac_link) 2>&5
5470218822Sdim  ac_status=$?
5471218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472218822Sdim  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5473218822Sdim	    pipe_works=yes
5474218822Sdim	  fi
5475218822Sdim	  LIBS="$lt_save_LIBS"
5476218822Sdim	  CFLAGS="$lt_save_CFLAGS"
5477218822Sdim	else
5478218822Sdim	  echo "cannot find nm_test_func in $nlist" >&5
5479218822Sdim	fi
5480218822Sdim      else
5481218822Sdim	echo "cannot find nm_test_var in $nlist" >&5
5482218822Sdim      fi
5483218822Sdim    else
5484218822Sdim      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5485218822Sdim    fi
5486218822Sdim  else
5487218822Sdim    echo "$progname: failed program was:" >&5
5488218822Sdim    cat conftest.$ac_ext >&5
5489218822Sdim  fi
5490218822Sdim  rm -f conftest* conftst*
5491218822Sdim
5492218822Sdim  # Do not use the global_symbol_pipe unless it works.
5493218822Sdim  if test "$pipe_works" = yes; then
5494218822Sdim    break
5495218822Sdim  else
5496218822Sdim    lt_cv_sys_global_symbol_pipe=
5497218822Sdim  fi
5498218822Sdimdone
5499218822Sdim
5500218822Sdimfi
5501218822Sdim
5502218822Sdimif test -z "$lt_cv_sys_global_symbol_pipe"; then
5503218822Sdim  lt_cv_sys_global_symbol_to_cdecl=
5504218822Sdimfi
5505218822Sdimif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5506218822Sdim  echo "$as_me:$LINENO: result: failed" >&5
5507218822Sdimecho "${ECHO_T}failed" >&6
5508218822Sdimelse
5509218822Sdim  echo "$as_me:$LINENO: result: ok" >&5
5510218822Sdimecho "${ECHO_T}ok" >&6
5511218822Sdimfi
5512218822Sdim
5513218822Sdim
5514218822Sdim
5515218822Sdim
5516218822Sdim
5517218822Sdim
5518218822Sdim
5519218822Sdim
5520218822Sdim
5521218822Sdim
5522218822Sdim
5523218822Sdim
5524218822Sdim
5525218822Sdim
5526218822Sdim
5527218822Sdim
5528218822Sdim
5529218822Sdim# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5530218822Sdimif test "${enable_libtool_lock+set}" = set; then
5531218822Sdim  enableval="$enable_libtool_lock"
5532218822Sdim
5533218822Sdimfi;
5534218822Sdimtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5535218822Sdim
5536218822Sdim# Some flags need to be propagated to the compiler or linker for good
5537218822Sdim# libtool support.
5538218822Sdimcase $host in
5539218822Sdimia64-*-hpux*)
5540218822Sdim  # Find out which ABI we are using.
5541218822Sdim  echo 'int i;' > conftest.$ac_ext
5542218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543218822Sdim  (eval $ac_compile) 2>&5
5544218822Sdim  ac_status=$?
5545218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546218822Sdim  (exit $ac_status); }; then
5547218822Sdim    case `/usr/bin/file conftest.$ac_objext` in
5548218822Sdim      *ELF-32*)
5549218822Sdim	HPUX_IA64_MODE="32"
5550218822Sdim	;;
5551218822Sdim      *ELF-64*)
5552218822Sdim	HPUX_IA64_MODE="64"
5553218822Sdim	;;
555477298Sobrien    esac
5555218822Sdim  fi
5556218822Sdim  rm -rf conftest*
5557218822Sdim  ;;
5558218822Sdim*-*-irix6*)
5559218822Sdim  # Find out which ABI we are using.
5560218822Sdim  echo '#line 5560 "configure"' > conftest.$ac_ext
5561218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562218822Sdim  (eval $ac_compile) 2>&5
5563218822Sdim  ac_status=$?
5564218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565218822Sdim  (exit $ac_status); }; then
5566218822Sdim    if test "$lt_cv_prog_gnu_ld" = yes; then
5567218822Sdim      case `/usr/bin/file conftest.$ac_objext` in
5568218822Sdim	*32-bit*)
5569218822Sdim	  LD="${LD-ld} -melf32bsmip"
5570218822Sdim	  ;;
5571218822Sdim	*N32*)
5572218822Sdim	  LD="${LD-ld} -melf32bmipn32"
5573218822Sdim	  ;;
5574218822Sdim	*64-bit*)
5575218822Sdim	  LD="${LD-ld} -melf64bmip"
5576218822Sdim	;;
5577218822Sdim      esac
5578218822Sdim    else
5579218822Sdim      case `/usr/bin/file conftest.$ac_objext` in
5580218822Sdim	*32-bit*)
5581218822Sdim	  LD="${LD-ld} -32"
5582218822Sdim	  ;;
5583218822Sdim	*N32*)
5584218822Sdim	  LD="${LD-ld} -n32"
5585218822Sdim	  ;;
5586218822Sdim	*64-bit*)
5587218822Sdim	  LD="${LD-ld} -64"
5588218822Sdim	  ;;
5589218822Sdim      esac
5590218822Sdim    fi
5591218822Sdim  fi
5592218822Sdim  rm -rf conftest*
5593218822Sdim  ;;
5594218822Sdim
5595218822Sdimx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5596218822Sdims390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5597218822Sdim  # Find out which ABI we are using.
5598218822Sdim  echo 'int i;' > conftest.$ac_ext
5599218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600218822Sdim  (eval $ac_compile) 2>&5
5601218822Sdim  ac_status=$?
5602218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603218822Sdim  (exit $ac_status); }; then
5604218822Sdim    case `/usr/bin/file conftest.o` in
5605218822Sdim      *32-bit*)
5606218822Sdim	case $host in
5607218822Sdim	  x86_64-*kfreebsd*-gnu)
5608218822Sdim	    LD="${LD-ld} -m elf_i386_fbsd"
5609218822Sdim	    ;;
5610218822Sdim	  x86_64-*linux*)
5611218822Sdim	    LD="${LD-ld} -m elf_i386"
5612218822Sdim	    ;;
5613218822Sdim	  ppc64-*linux*|powerpc64-*linux*)
5614218822Sdim	    LD="${LD-ld} -m elf32ppclinux"
5615218822Sdim	    ;;
5616218822Sdim	  s390x-*linux*)
5617218822Sdim	    LD="${LD-ld} -m elf_s390"
5618218822Sdim	    ;;
5619218822Sdim	  sparc64-*linux*)
5620218822Sdim	    LD="${LD-ld} -m elf32_sparc"
5621218822Sdim	    ;;
5622218822Sdim	esac
5623218822Sdim	;;
5624218822Sdim      *64-bit*)
5625218822Sdim	case $host in
5626218822Sdim	  x86_64-*kfreebsd*-gnu)
5627218822Sdim	    LD="${LD-ld} -m elf_x86_64_fbsd"
5628218822Sdim	    ;;
5629218822Sdim	  x86_64-*linux*)
5630218822Sdim	    LD="${LD-ld} -m elf_x86_64"
5631218822Sdim	    ;;
5632218822Sdim	  ppc*-*linux*|powerpc*-*linux*)
5633218822Sdim	    LD="${LD-ld} -m elf64ppc"
5634218822Sdim	    ;;
5635218822Sdim	  s390*-*linux*|s390*-*tpf*)
5636218822Sdim	    LD="${LD-ld} -m elf64_s390"
5637218822Sdim	    ;;
5638218822Sdim	  sparc*-*linux*)
5639218822Sdim	    LD="${LD-ld} -m elf64_sparc"
5640218822Sdim	    ;;
5641218822Sdim	esac
5642218822Sdim	;;
5643218822Sdim    esac
5644218822Sdim  fi
5645218822Sdim  rm -rf conftest*
5646218822Sdim  ;;
5647218822Sdim
5648218822Sdim*-*-sco3.2v5*)
5649218822Sdim  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5650218822Sdim  SAVE_CFLAGS="$CFLAGS"
5651218822Sdim  CFLAGS="$CFLAGS -belf"
5652218822Sdim  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5653218822Sdimecho $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5654218822Sdimif test "${lt_cv_cc_needs_belf+set}" = set; then
5655218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
565677298Sobrienelse
5657218822Sdim  ac_ext=c
5658218822Sdimac_cpp='$CPP $CPPFLAGS'
5659218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
5662218822Sdim
5663218822Sdim     cat >conftest.$ac_ext <<_ACEOF
5664218822Sdim/* confdefs.h.  */
5665218822Sdim_ACEOF
5666218822Sdimcat confdefs.h >>conftest.$ac_ext
5667218822Sdimcat >>conftest.$ac_ext <<_ACEOF
5668218822Sdim/* end confdefs.h.  */
5669218822Sdim
5670218822Sdimint
5671218822Sdimmain ()
5672218822Sdim{
5673218822Sdim
5674218822Sdim  ;
5675218822Sdim  return 0;
5676218822Sdim}
5677218822Sdim_ACEOF
5678218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
5679218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5680218822Sdim  (eval $ac_link) 2>conftest.er1
5681218822Sdim  ac_status=$?
5682218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
5683218822Sdim  rm -f conftest.er1
5684218822Sdim  cat conftest.err >&5
5685218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686218822Sdim  (exit $ac_status); } &&
5687218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
5688218822Sdim			 || test ! -s conftest.err'
5689218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690218822Sdim  (eval $ac_try) 2>&5
5691218822Sdim  ac_status=$?
5692218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693218822Sdim  (exit $ac_status); }; } &&
5694218822Sdim	 { ac_try='test -s conftest$ac_exeext'
5695218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696218822Sdim  (eval $ac_try) 2>&5
5697218822Sdim  ac_status=$?
5698218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699218822Sdim  (exit $ac_status); }; }; then
5700218822Sdim  lt_cv_cc_needs_belf=yes
5701218822Sdimelse
5702218822Sdim  echo "$as_me: failed program was:" >&5
5703218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
5704218822Sdim
5705218822Sdimlt_cv_cc_needs_belf=no
570677298Sobrienfi
5707218822Sdimrm -f conftest.err conftest.$ac_objext \
5708218822Sdim      conftest$ac_exeext conftest.$ac_ext
5709218822Sdim     ac_ext=c
5710218822Sdimac_cpp='$CPP $CPPFLAGS'
5711218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5712218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5713218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
5714218822Sdim
571577298Sobrienfi
5716218822Sdimecho "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5717218822Sdimecho "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5718218822Sdim  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5719218822Sdim    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5720218822Sdim    CFLAGS="$SAVE_CFLAGS"
5721218822Sdim  fi
5722218822Sdim  ;;
5723218822Sdimsparc*-*solaris*)
5724218822Sdim  # Find out which ABI we are using.
5725218822Sdim  echo 'int i;' > conftest.$ac_ext
5726218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727218822Sdim  (eval $ac_compile) 2>&5
5728218822Sdim  ac_status=$?
5729218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730218822Sdim  (exit $ac_status); }; then
5731218822Sdim    case `/usr/bin/file conftest.o` in
5732218822Sdim    *64-bit*)
5733218822Sdim      case $lt_cv_prog_gnu_ld in
5734218822Sdim      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5735218822Sdim      *)    LD="${LD-ld} -64" ;;
5736218822Sdim      esac
5737218822Sdim      ;;
5738218822Sdim    esac
5739218822Sdim  fi
5740218822Sdim  rm -rf conftest*
5741218822Sdim  ;;
5742218822Sdimesac
574377298Sobrien
5744218822Sdimneed_locks="$enable_libtool_lock"
574577298Sobrien
5746218822Sdimac_ext=c
5747218822Sdimac_cpp='$CPP $CPPFLAGS'
5748218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
5751218822Sdimecho "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5752218822Sdimecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5753218822Sdim# On Suns, sometimes $CPP names a directory.
5754218822Sdimif test -n "$CPP" && test -d "$CPP"; then
5755218822Sdim  CPP=
5756218822Sdimfi
5757218822Sdimif test -z "$CPP"; then
5758218822Sdim  if test "${ac_cv_prog_CPP+set}" = set; then
5759218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5760218822Sdimelse
5761218822Sdim      # Double quotes because CPP needs to be expanded
5762218822Sdim    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5763218822Sdim    do
5764218822Sdim      ac_preproc_ok=false
5765218822Sdimfor ac_c_preproc_warn_flag in '' yes
5766218822Sdimdo
5767218822Sdim  # Use a header file that comes with gcc, so configuring glibc
5768218822Sdim  # with a fresh cross-compiler works.
5769218822Sdim  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5770218822Sdim  # <limits.h> exists even on freestanding compilers.
5771218822Sdim  # On the NeXT, cc -E runs the code through the compiler's parser,
5772218822Sdim  # not just through cpp. "Syntax error" is here to catch this case.
5773218822Sdim  cat >conftest.$ac_ext <<_ACEOF
5774218822Sdim/* confdefs.h.  */
5775218822Sdim_ACEOF
5776218822Sdimcat confdefs.h >>conftest.$ac_ext
5777218822Sdimcat >>conftest.$ac_ext <<_ACEOF
5778218822Sdim/* end confdefs.h.  */
5779218822Sdim#ifdef __STDC__
5780218822Sdim# include <limits.h>
5781218822Sdim#else
5782218822Sdim# include <assert.h>
5783218822Sdim#endif
5784218822Sdim		     Syntax error
5785218822Sdim_ACEOF
5786218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5787218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5788218822Sdim  ac_status=$?
5789218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
5790218822Sdim  rm -f conftest.er1
5791218822Sdim  cat conftest.err >&5
5792218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793218822Sdim  (exit $ac_status); } >/dev/null; then
5794218822Sdim  if test -s conftest.err; then
5795218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
5796218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5797218822Sdim  else
5798218822Sdim    ac_cpp_err=
5799218822Sdim  fi
5800218822Sdimelse
5801218822Sdim  ac_cpp_err=yes
5802218822Sdimfi
5803218822Sdimif test -z "$ac_cpp_err"; then
5804218822Sdim  :
5805218822Sdimelse
5806218822Sdim  echo "$as_me: failed program was:" >&5
5807218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
580877298Sobrien
5809218822Sdim  # Broken: fails on valid input.
5810218822Sdimcontinue
5811218822Sdimfi
5812218822Sdimrm -f conftest.err conftest.$ac_ext
581377298Sobrien
5814218822Sdim  # OK, works on sane cases.  Now check whether non-existent headers
5815218822Sdim  # can be detected and how.
5816218822Sdim  cat >conftest.$ac_ext <<_ACEOF
5817218822Sdim/* confdefs.h.  */
5818218822Sdim_ACEOF
5819218822Sdimcat confdefs.h >>conftest.$ac_ext
5820218822Sdimcat >>conftest.$ac_ext <<_ACEOF
5821218822Sdim/* end confdefs.h.  */
5822218822Sdim#include <ac_nonexistent.h>
5823218822Sdim_ACEOF
5824218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5825218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5826218822Sdim  ac_status=$?
5827218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
5828218822Sdim  rm -f conftest.er1
5829218822Sdim  cat conftest.err >&5
5830218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831218822Sdim  (exit $ac_status); } >/dev/null; then
5832218822Sdim  if test -s conftest.err; then
5833218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
5834218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5835218822Sdim  else
5836218822Sdim    ac_cpp_err=
5837218822Sdim  fi
583877298Sobrienelse
5839218822Sdim  ac_cpp_err=yes
5840218822Sdimfi
5841218822Sdimif test -z "$ac_cpp_err"; then
5842218822Sdim  # Broken: success on invalid input.
5843218822Sdimcontinue
584477298Sobrienelse
5845218822Sdim  echo "$as_me: failed program was:" >&5
5846218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
5847218822Sdim
5848218822Sdim  # Passes both tests.
5849218822Sdimac_preproc_ok=:
5850218822Sdimbreak
5851218822Sdimfi
5852218822Sdimrm -f conftest.err conftest.$ac_ext
5853218822Sdim
5854218822Sdimdone
5855218822Sdim# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5856218822Sdimrm -f conftest.err conftest.$ac_ext
5857218822Sdimif $ac_preproc_ok; then
5858218822Sdim  break
5859218822Sdimfi
5860218822Sdim
586177298Sobrien    done
5862218822Sdim    ac_cv_prog_CPP=$CPP
5863218822Sdim
5864218822Sdimfi
5865218822Sdim  CPP=$ac_cv_prog_CPP
5866218822Sdimelse
5867218822Sdim  ac_cv_prog_CPP=$CPP
5868218822Sdimfi
5869218822Sdimecho "$as_me:$LINENO: result: $CPP" >&5
5870218822Sdimecho "${ECHO_T}$CPP" >&6
5871218822Sdimac_preproc_ok=false
5872218822Sdimfor ac_c_preproc_warn_flag in '' yes
5873218822Sdimdo
5874218822Sdim  # Use a header file that comes with gcc, so configuring glibc
5875218822Sdim  # with a fresh cross-compiler works.
5876218822Sdim  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5877218822Sdim  # <limits.h> exists even on freestanding compilers.
5878218822Sdim  # On the NeXT, cc -E runs the code through the compiler's parser,
5879218822Sdim  # not just through cpp. "Syntax error" is here to catch this case.
5880218822Sdim  cat >conftest.$ac_ext <<_ACEOF
5881218822Sdim/* confdefs.h.  */
5882218822Sdim_ACEOF
5883218822Sdimcat confdefs.h >>conftest.$ac_ext
5884218822Sdimcat >>conftest.$ac_ext <<_ACEOF
5885218822Sdim/* end confdefs.h.  */
5886218822Sdim#ifdef __STDC__
5887218822Sdim# include <limits.h>
5888218822Sdim#else
5889218822Sdim# include <assert.h>
5890218822Sdim#endif
5891218822Sdim		     Syntax error
5892218822Sdim_ACEOF
5893218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5894218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5895218822Sdim  ac_status=$?
5896218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
5897218822Sdim  rm -f conftest.er1
5898218822Sdim  cat conftest.err >&5
5899218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900218822Sdim  (exit $ac_status); } >/dev/null; then
5901218822Sdim  if test -s conftest.err; then
5902218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
5903218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
590477298Sobrien  else
5905218822Sdim    ac_cpp_err=
590677298Sobrien  fi
5907218822Sdimelse
5908218822Sdim  ac_cpp_err=yes
590977298Sobrienfi
5910218822Sdimif test -z "$ac_cpp_err"; then
5911218822Sdim  :
5912218822Sdimelse
5913218822Sdim  echo "$as_me: failed program was:" >&5
5914218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
5915218822Sdim
5916218822Sdim  # Broken: fails on valid input.
5917218822Sdimcontinue
591877298Sobrienfi
5919218822Sdimrm -f conftest.err conftest.$ac_ext
592077298Sobrien
5921218822Sdim  # OK, works on sane cases.  Now check whether non-existent headers
5922218822Sdim  # can be detected and how.
5923218822Sdim  cat >conftest.$ac_ext <<_ACEOF
5924218822Sdim/* confdefs.h.  */
5925218822Sdim_ACEOF
5926218822Sdimcat confdefs.h >>conftest.$ac_ext
5927218822Sdimcat >>conftest.$ac_ext <<_ACEOF
5928218822Sdim/* end confdefs.h.  */
5929218822Sdim#include <ac_nonexistent.h>
5930218822Sdim_ACEOF
5931218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5932218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5933218822Sdim  ac_status=$?
5934218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
5935218822Sdim  rm -f conftest.er1
5936218822Sdim  cat conftest.err >&5
5937218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938218822Sdim  (exit $ac_status); } >/dev/null; then
5939218822Sdim  if test -s conftest.err; then
5940218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
5941218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5942218822Sdim  else
5943218822Sdim    ac_cpp_err=
5944218822Sdim  fi
5945218822Sdimelse
5946218822Sdim  ac_cpp_err=yes
5947218822Sdimfi
5948218822Sdimif test -z "$ac_cpp_err"; then
5949218822Sdim  # Broken: success on invalid input.
5950218822Sdimcontinue
5951218822Sdimelse
5952218822Sdim  echo "$as_me: failed program was:" >&5
5953218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
595477298Sobrien
5955218822Sdim  # Passes both tests.
5956218822Sdimac_preproc_ok=:
5957218822Sdimbreak
5958218822Sdimfi
5959218822Sdimrm -f conftest.err conftest.$ac_ext
5960218822Sdim
5961218822Sdimdone
5962218822Sdim# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5963218822Sdimrm -f conftest.err conftest.$ac_ext
5964218822Sdimif $ac_preproc_ok; then
5965218822Sdim  :
596677298Sobrienelse
5967218822Sdim  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5968218822SdimSee \`config.log' for more details." >&5
5969218822Sdimecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5970218822SdimSee \`config.log' for more details." >&2;}
5971218822Sdim   { (exit 1); exit 1; }; }
597277298Sobrienfi
597377298Sobrien
5974218822Sdimac_ext=c
5975218822Sdimac_cpp='$CPP $CPPFLAGS'
5976218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
597977298Sobrien
5980218822Sdim
5981218822Sdimecho "$as_me:$LINENO: checking for ANSI C header files" >&5
5982218822Sdimecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5983218822Sdimif test "${ac_cv_header_stdc+set}" = set; then
5984218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5985218822Sdimelse
5986218822Sdim  cat >conftest.$ac_ext <<_ACEOF
5987218822Sdim/* confdefs.h.  */
5988218822Sdim_ACEOF
5989218822Sdimcat confdefs.h >>conftest.$ac_ext
5990218822Sdimcat >>conftest.$ac_ext <<_ACEOF
5991218822Sdim/* end confdefs.h.  */
5992218822Sdim#include <stdlib.h>
5993218822Sdim#include <stdarg.h>
5994218822Sdim#include <string.h>
5995218822Sdim#include <float.h>
5996218822Sdim
5997218822Sdimint
5998218822Sdimmain ()
5999218822Sdim{
6000218822Sdim
6001218822Sdim  ;
6002218822Sdim  return 0;
6003218822Sdim}
6004218822Sdim_ACEOF
6005218822Sdimrm -f conftest.$ac_objext
6006218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6007218822Sdim  (eval $ac_compile) 2>conftest.er1
6008218822Sdim  ac_status=$?
6009218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
6010218822Sdim  rm -f conftest.er1
6011218822Sdim  cat conftest.err >&5
6012218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013218822Sdim  (exit $ac_status); } &&
6014218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
6015218822Sdim			 || test ! -s conftest.err'
6016218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017218822Sdim  (eval $ac_try) 2>&5
6018218822Sdim  ac_status=$?
6019218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020218822Sdim  (exit $ac_status); }; } &&
6021218822Sdim	 { ac_try='test -s conftest.$ac_objext'
6022218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023218822Sdim  (eval $ac_try) 2>&5
6024218822Sdim  ac_status=$?
6025218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026218822Sdim  (exit $ac_status); }; }; then
6027218822Sdim  ac_cv_header_stdc=yes
6028218822Sdimelse
6029218822Sdim  echo "$as_me: failed program was:" >&5
6030218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
6031218822Sdim
6032218822Sdimac_cv_header_stdc=no
6033218822Sdimfi
6034218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6035218822Sdim
6036218822Sdimif test $ac_cv_header_stdc = yes; then
6037218822Sdim  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6038218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6039218822Sdim/* confdefs.h.  */
6040218822Sdim_ACEOF
6041218822Sdimcat confdefs.h >>conftest.$ac_ext
6042218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6043218822Sdim/* end confdefs.h.  */
6044218822Sdim#include <string.h>
6045218822Sdim
6046218822Sdim_ACEOF
6047218822Sdimif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6048218822Sdim  $EGREP "memchr" >/dev/null 2>&1; then
6049218822Sdim  :
6050218822Sdimelse
6051218822Sdim  ac_cv_header_stdc=no
6052218822Sdimfi
6053218822Sdimrm -f conftest*
6054218822Sdim
6055218822Sdimfi
6056218822Sdim
6057218822Sdimif test $ac_cv_header_stdc = yes; then
6058218822Sdim  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6059218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6060218822Sdim/* confdefs.h.  */
6061218822Sdim_ACEOF
6062218822Sdimcat confdefs.h >>conftest.$ac_ext
6063218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6064218822Sdim/* end confdefs.h.  */
6065218822Sdim#include <stdlib.h>
6066218822Sdim
6067218822Sdim_ACEOF
6068218822Sdimif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6069218822Sdim  $EGREP "free" >/dev/null 2>&1; then
6070218822Sdim  :
6071218822Sdimelse
6072218822Sdim  ac_cv_header_stdc=no
6073218822Sdimfi
6074218822Sdimrm -f conftest*
6075218822Sdim
6076218822Sdimfi
6077218822Sdim
6078218822Sdimif test $ac_cv_header_stdc = yes; then
6079218822Sdim  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6080218822Sdim  if test "$cross_compiling" = yes; then
6081218822Sdim  :
6082218822Sdimelse
6083218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6084218822Sdim/* confdefs.h.  */
6085218822Sdim_ACEOF
6086218822Sdimcat confdefs.h >>conftest.$ac_ext
6087218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6088218822Sdim/* end confdefs.h.  */
6089218822Sdim#include <ctype.h>
6090218822Sdim#if ((' ' & 0x0FF) == 0x020)
6091218822Sdim# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6092218822Sdim# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6093218822Sdim#else
6094218822Sdim# define ISLOWER(c) \
6095218822Sdim		   (('a' <= (c) && (c) <= 'i') \
6096218822Sdim		     || ('j' <= (c) && (c) <= 'r') \
6097218822Sdim		     || ('s' <= (c) && (c) <= 'z'))
6098218822Sdim# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6099218822Sdim#endif
6100218822Sdim
6101218822Sdim#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6102218822Sdimint
6103218822Sdimmain ()
6104218822Sdim{
6105218822Sdim  int i;
6106218822Sdim  for (i = 0; i < 256; i++)
6107218822Sdim    if (XOR (islower (i), ISLOWER (i))
6108218822Sdim	|| toupper (i) != TOUPPER (i))
6109218822Sdim      exit(2);
6110218822Sdim  exit (0);
6111218822Sdim}
6112218822Sdim_ACEOF
6113218822Sdimrm -f conftest$ac_exeext
6114218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6115218822Sdim  (eval $ac_link) 2>&5
6116218822Sdim  ac_status=$?
6117218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6119218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120218822Sdim  (eval $ac_try) 2>&5
6121218822Sdim  ac_status=$?
6122218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123218822Sdim  (exit $ac_status); }; }; then
6124218822Sdim  :
6125218822Sdimelse
6126218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
6127218822Sdimecho "$as_me: failed program was:" >&5
6128218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
6129218822Sdim
6130218822Sdim( exit $ac_status )
6131218822Sdimac_cv_header_stdc=no
6132218822Sdimfi
6133218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6134218822Sdimfi
6135218822Sdimfi
6136218822Sdimfi
6137218822Sdimecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6138218822Sdimecho "${ECHO_T}$ac_cv_header_stdc" >&6
6139218822Sdimif test $ac_cv_header_stdc = yes; then
6140218822Sdim
6141218822Sdimcat >>confdefs.h <<\_ACEOF
6142218822Sdim#define STDC_HEADERS 1
6143218822Sdim_ACEOF
6144218822Sdim
6145218822Sdimfi
6146218822Sdim
6147218822Sdim# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6148218822Sdim
6149218822Sdim
6150218822Sdim
6151218822Sdim
6152218822Sdim
6153218822Sdim
6154218822Sdim
6155218822Sdim
6156218822Sdim
6157218822Sdimfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6158218822Sdim		  inttypes.h stdint.h unistd.h
6159218822Sdimdo
6160218822Sdimas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6161218822Sdimecho "$as_me:$LINENO: checking for $ac_header" >&5
6162218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6163218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
6164218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6165218822Sdimelse
6166218822Sdim  cat >conftest.$ac_ext <<_ACEOF
6167218822Sdim/* confdefs.h.  */
6168218822Sdim_ACEOF
6169218822Sdimcat confdefs.h >>conftest.$ac_ext
6170218822Sdimcat >>conftest.$ac_ext <<_ACEOF
6171218822Sdim/* end confdefs.h.  */
6172218822Sdim$ac_includes_default
6173218822Sdim
6174218822Sdim#include <$ac_header>
6175218822Sdim_ACEOF
6176218822Sdimrm -f conftest.$ac_objext
6177218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178218822Sdim  (eval $ac_compile) 2>conftest.er1
6179218822Sdim  ac_status=$?
6180218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
6181218822Sdim  rm -f conftest.er1
6182218822Sdim  cat conftest.err >&5
6183218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184218822Sdim  (exit $ac_status); } &&
6185218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
6186218822Sdim			 || test ! -s conftest.err'
6187218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188218822Sdim  (eval $ac_try) 2>&5
6189218822Sdim  ac_status=$?
6190218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191218822Sdim  (exit $ac_status); }; } &&
6192218822Sdim	 { ac_try='test -s conftest.$ac_objext'
6193218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194218822Sdim  (eval $ac_try) 2>&5
6195218822Sdim  ac_status=$?
6196218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197218822Sdim  (exit $ac_status); }; }; then
6198218822Sdim  eval "$as_ac_Header=yes"
6199218822Sdimelse
6200218822Sdim  echo "$as_me: failed program was:" >&5
6201218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
6202218822Sdim
6203218822Sdimeval "$as_ac_Header=no"
6204218822Sdimfi
6205218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206218822Sdimfi
6207218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6208218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6209218822Sdimif test `eval echo '${'$as_ac_Header'}'` = yes; then
6210218822Sdim  cat >>confdefs.h <<_ACEOF
6211218822Sdim#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6212218822Sdim_ACEOF
6213218822Sdim
6214218822Sdimfi
6215218822Sdim
6216218822Sdimdone
6217218822Sdim
6218218822Sdim
6219218822Sdim
6220218822Sdimfor ac_header in dlfcn.h
6221218822Sdimdo
6222218822Sdimas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6223218822Sdimecho "$as_me:$LINENO: checking for $ac_header" >&5
6224218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
6226218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6227218822Sdimelse
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$ac_includes_default
6235218822Sdim
6236218822Sdim#include <$ac_header>
6237218822Sdim_ACEOF
6238218822Sdimrm -f conftest.$ac_objext
6239218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6240218822Sdim  (eval $ac_compile) 2>conftest.er1
6241218822Sdim  ac_status=$?
6242218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
6243218822Sdim  rm -f conftest.er1
6244218822Sdim  cat conftest.err >&5
6245218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246218822Sdim  (exit $ac_status); } &&
6247218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
6248218822Sdim			 || test ! -s conftest.err'
6249218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250218822Sdim  (eval $ac_try) 2>&5
6251218822Sdim  ac_status=$?
6252218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253218822Sdim  (exit $ac_status); }; } &&
6254218822Sdim	 { ac_try='test -s conftest.$ac_objext'
6255218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256218822Sdim  (eval $ac_try) 2>&5
6257218822Sdim  ac_status=$?
6258218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259218822Sdim  (exit $ac_status); }; }; then
6260218822Sdim  eval "$as_ac_Header=yes"
6261218822Sdimelse
6262218822Sdim  echo "$as_me: failed program was:" >&5
6263218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
6264218822Sdim
6265218822Sdimeval "$as_ac_Header=no"
6266218822Sdimfi
6267218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268218822Sdimfi
6269218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6270218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6271218822Sdimif test `eval echo '${'$as_ac_Header'}'` = yes; then
6272218822Sdim  cat >>confdefs.h <<_ACEOF
6273218822Sdim#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6274218822Sdim_ACEOF
6275218822Sdim
6276218822Sdimfi
6277218822Sdim
6278218822Sdimdone
6279218822Sdim
6280218822Sdim
6281218822Sdim
6282218822Sdim# This can be used to rebuild libtool when needed
6283218822SdimLIBTOOL_DEPS="$ltmain"
6284218822Sdim
6285218822Sdim# Always use our own libtool.
6286218822SdimLIBTOOL='$(SHELL) $(top_builddir)/libtool'
6287218822Sdim
6288218822Sdim
6289218822Sdim
6290218822Sdim
6291218822Sdim
6292218822Sdim
6293218822Sdim
6294218822Sdim
6295218822Sdim
6296218822Sdim
6297218822Sdim
6298218822Sdim
6299218822Sdim
6300218822Sdim
6301218822Sdim
6302218822Sdim
6303218822Sdim
6304218822Sdim
6305218822Sdim
6306218822Sdim
6307218822Sdim
6308218822Sdim
6309218822Sdim
6310218822Sdim
6311218822Sdim
6312218822Sdimtest -z "$LN_S" && LN_S="ln -s"
6313218822Sdim
6314218822Sdim
6315218822Sdim
6316218822Sdim
6317218822Sdim
6318218822Sdim
6319218822Sdim
6320218822Sdim
6321218822Sdim
6322218822Sdim
6323218822Sdim
6324218822Sdim
6325218822Sdim
6326218822Sdim
6327218822Sdimif test -n "${ZSH_VERSION+set}" ; then
6328218822Sdim   setopt NO_GLOB_SUBST
6329218822Sdimfi
6330218822Sdim
6331218822Sdimecho "$as_me:$LINENO: checking for objdir" >&5
6332218822Sdimecho $ECHO_N "checking for objdir... $ECHO_C" >&6
6333218822Sdimif test "${lt_cv_objdir+set}" = set; then
6334218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6335218822Sdimelse
6336218822Sdim  rm -f .libs 2>/dev/null
6337218822Sdimmkdir .libs 2>/dev/null
6338218822Sdimif test -d .libs; then
6339218822Sdim  lt_cv_objdir=.libs
6340218822Sdimelse
6341218822Sdim  # MS-DOS does not allow filenames that begin with a dot.
6342218822Sdim  lt_cv_objdir=_libs
6343218822Sdimfi
6344218822Sdimrmdir .libs 2>/dev/null
6345218822Sdimfi
6346218822Sdimecho "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6347218822Sdimecho "${ECHO_T}$lt_cv_objdir" >&6
6348218822Sdimobjdir=$lt_cv_objdir
6349218822Sdim
6350218822Sdim
6351218822Sdim
6352218822Sdim
6353218822Sdim
6354218822Sdimcat >>confdefs.h <<_ACEOF
6355218822Sdim#define LT_OBJDIR "$lt_cv_objdir/"
6356218822Sdim_ACEOF
6357218822Sdim
6358218822Sdim
6359218822Sdim
6360218822Sdim
6361218822Sdim
6362218822Sdim
6363218822Sdim
6364218822Sdim
6365218822Sdim
6366218822Sdim
6367218822Sdim
6368218822Sdim
6369218822Sdim
6370218822Sdim
6371218822Sdim
6372218822Sdim
6373218822Sdim
6374218822Sdimcase $host_os in
6375218822Sdimaix3*)
6376218822Sdim  # AIX sometimes has problems with the GCC collect2 program.  For some
6377218822Sdim  # reason, if we set the COLLECT_NAMES environment variable, the problems
6378218822Sdim  # vanish in a puff of smoke.
6379218822Sdim  if test "X${COLLECT_NAMES+set}" != Xset; then
6380218822Sdim    COLLECT_NAMES=
6381218822Sdim    export COLLECT_NAMES
6382218822Sdim  fi
6383218822Sdim  ;;
6384218822Sdimesac
6385218822Sdim
6386218822Sdim# Sed substitution that helps us do robust quoting.  It backslashifies
6387218822Sdim# metacharacters that are still active within double-quoted strings.
6388218822Sdimsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6389218822Sdim
6390218822Sdim# Same as above, but do not quote variable references.
6391218822Sdimdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
6392218822Sdim
6393218822Sdim# Sed substitution to delay expansion of an escaped shell variable in a
6394218822Sdim# double_quote_subst'ed string.
6395218822Sdimdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6396218822Sdim
6397218822Sdim# Sed substitution to delay expansion of an escaped single quote.
6398218822Sdimdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6399218822Sdim
6400218822Sdim# Sed substitution to avoid accidental globbing in evaled expressions
6401218822Sdimno_glob_subst='s/\*/\\\*/g'
6402218822Sdim
6403218822Sdim# Global variables:
6404218822Sdimofile=libtool
6405218822Sdimcan_build_shared=yes
6406218822Sdim
6407218822Sdim# All known linkers require a `.a' archive for static linking (except MSVC,
6408218822Sdim# which needs '.lib').
6409218822Sdimlibext=a
6410218822Sdim
6411218822Sdimwith_gnu_ld="$lt_cv_prog_gnu_ld"
6412218822Sdim
6413218822Sdimold_CC="$CC"
6414218822Sdimold_CFLAGS="$CFLAGS"
6415218822Sdim
6416218822Sdim# Set sane defaults for various variables
6417218822Sdimtest -z "$CC" && CC=cc
6418218822Sdimtest -z "$LTCC" && LTCC=$CC
6419218822Sdimtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6420218822Sdimtest -z "$LD" && LD=ld
6421218822Sdimtest -z "$ac_objext" && ac_objext=o
6422218822Sdim
6423218822Sdimfor cc_temp in $compiler""; do
6424218822Sdim  case $cc_temp in
6425218822Sdim    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6426218822Sdim    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6427218822Sdim    \-*) ;;
6428218822Sdim    *) break;;
6429218822Sdim  esac
6430218822Sdimdone
6431218822Sdimcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6432218822Sdim
6433218822Sdim
643477298Sobrien# Only perform the check for file, if the check method requires it
6435218822Sdimtest -z "$MAGIC_CMD" && MAGIC_CMD=file
643689857Sobriencase $deplibs_check_method in
643777298Sobrienfile_magic*)
643877298Sobrien  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6439218822Sdim    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6440218822Sdimecho $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6441218822Sdimif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6442218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
644377298Sobrienelse
644489857Sobrien  case $MAGIC_CMD in
6445218822Sdim[\\/*] |  ?:[\\/]*)
644677298Sobrien  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
644777298Sobrien  ;;
6448218822Sdim*)
6449218822Sdim  lt_save_MAGIC_CMD="$MAGIC_CMD"
6450218822Sdim  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6451218822Sdim  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
645277298Sobrien  for ac_dir in $ac_dummy; do
6453218822Sdim    IFS="$lt_save_ifs"
645477298Sobrien    test -z "$ac_dir" && ac_dir=.
645577298Sobrien    if test -f $ac_dir/${ac_tool_prefix}file; then
645677298Sobrien      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
645777298Sobrien      if test -n "$file_magic_test_file"; then
645889857Sobrien	case $deplibs_check_method in
645977298Sobrien	"file_magic "*)
6460218822Sdim	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
646177298Sobrien	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
646277298Sobrien	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6463218822Sdim	    $EGREP "$file_magic_regex" > /dev/null; then
646477298Sobrien	    :
646577298Sobrien	  else
6466218822Sdim	    cat <<_LT_EOF 1>&2
646777298Sobrien
646877298Sobrien*** Warning: the command libtool uses to detect shared libraries,
646977298Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize.
647077298Sobrien*** The result is that libtool may fail to recognize shared libraries
647177298Sobrien*** as such.  This will affect the creation of libtool libraries that
647277298Sobrien*** depend on shared libraries, but programs linked with such libtool
647377298Sobrien*** libraries will work regardless of this problem.  Nevertheless, you
647477298Sobrien*** may want to report the problem to your system manager and/or to
647577298Sobrien*** bug-libtool@gnu.org
647677298Sobrien
6477218822Sdim_LT_EOF
647877298Sobrien	  fi ;;
647977298Sobrien	esac
648077298Sobrien      fi
648177298Sobrien      break
648277298Sobrien    fi
648377298Sobrien  done
6484218822Sdim  IFS="$lt_save_ifs"
6485218822Sdim  MAGIC_CMD="$lt_save_MAGIC_CMD"
648677298Sobrien  ;;
648777298Sobrienesac
648877298Sobrienfi
648977298Sobrien
649077298SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
649177298Sobrienif test -n "$MAGIC_CMD"; then
6492218822Sdim  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6493218822Sdimecho "${ECHO_T}$MAGIC_CMD" >&6
649477298Sobrienelse
6495218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6496218822Sdimecho "${ECHO_T}no" >&6
649777298Sobrienfi
649877298Sobrien
6499218822Sdim
6500218822Sdim
6501218822Sdim
6502218822Sdim
650377298Sobrienif test -z "$lt_cv_path_MAGIC_CMD"; then
650477298Sobrien  if test -n "$ac_tool_prefix"; then
6505218822Sdim    echo "$as_me:$LINENO: checking for file" >&5
6506218822Sdimecho $ECHO_N "checking for file... $ECHO_C" >&6
6507218822Sdimif test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6508218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
650977298Sobrienelse
651089857Sobrien  case $MAGIC_CMD in
6511218822Sdim[\\/*] |  ?:[\\/]*)
651277298Sobrien  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
651377298Sobrien  ;;
6514218822Sdim*)
6515218822Sdim  lt_save_MAGIC_CMD="$MAGIC_CMD"
6516218822Sdim  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6517218822Sdim  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
651877298Sobrien  for ac_dir in $ac_dummy; do
6519218822Sdim    IFS="$lt_save_ifs"
652077298Sobrien    test -z "$ac_dir" && ac_dir=.
652177298Sobrien    if test -f $ac_dir/file; then
652277298Sobrien      lt_cv_path_MAGIC_CMD="$ac_dir/file"
652377298Sobrien      if test -n "$file_magic_test_file"; then
652489857Sobrien	case $deplibs_check_method in
652577298Sobrien	"file_magic "*)
6526218822Sdim	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
652777298Sobrien	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
652877298Sobrien	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6529218822Sdim	    $EGREP "$file_magic_regex" > /dev/null; then
653077298Sobrien	    :
653177298Sobrien	  else
6532218822Sdim	    cat <<_LT_EOF 1>&2
653377298Sobrien
653477298Sobrien*** Warning: the command libtool uses to detect shared libraries,
653577298Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize.
653677298Sobrien*** The result is that libtool may fail to recognize shared libraries
653777298Sobrien*** as such.  This will affect the creation of libtool libraries that
653877298Sobrien*** depend on shared libraries, but programs linked with such libtool
653977298Sobrien*** libraries will work regardless of this problem.  Nevertheless, you
654077298Sobrien*** may want to report the problem to your system manager and/or to
654177298Sobrien*** bug-libtool@gnu.org
654277298Sobrien
6543218822Sdim_LT_EOF
654477298Sobrien	  fi ;;
654577298Sobrien	esac
654677298Sobrien      fi
654777298Sobrien      break
654877298Sobrien    fi
654977298Sobrien  done
6550218822Sdim  IFS="$lt_save_ifs"
6551218822Sdim  MAGIC_CMD="$lt_save_MAGIC_CMD"
655277298Sobrien  ;;
655377298Sobrienesac
655477298Sobrienfi
655577298Sobrien
655677298SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
655777298Sobrienif test -n "$MAGIC_CMD"; then
6558218822Sdim  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6559218822Sdimecho "${ECHO_T}$MAGIC_CMD" >&6
656077298Sobrienelse
6561218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6562218822Sdimecho "${ECHO_T}no" >&6
656377298Sobrienfi
656477298Sobrien
6565218822Sdim
656677298Sobrien  else
656777298Sobrien    MAGIC_CMD=:
656877298Sobrien  fi
656977298Sobrienfi
657077298Sobrien
657177298Sobrien  fi
657277298Sobrien  ;;
657377298Sobrienesac
657477298Sobrien
6575218822Sdim# Use C for the default configuration in the libtool script
6576218822Sdim
6577218822Sdimlt_save_CC="$CC"
6578218822Sdimac_ext=c
6579218822Sdimac_cpp='$CPP $CPPFLAGS'
6580218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6581218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6582218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
6583218822Sdim
6584218822Sdim
6585218822Sdim# Source file extension for C test sources.
6586218822Sdimac_ext=c
6587218822Sdim
6588218822Sdim# Object file extension for compiled C test sources.
6589218822Sdimobjext=o
6590218822Sdimobjext=$objext
6591218822Sdim
6592218822Sdim# Code to be used in simple compile tests
6593218822Sdimlt_simple_compile_test_code="int some_variable = 0;"
6594218822Sdim
6595218822Sdim# Code to be used in simple link tests
6596218822Sdimlt_simple_link_test_code='int main(){return(0);}'
6597218822Sdim
6598218822Sdim
6599218822Sdim
6600218822Sdim
6601218822Sdim
6602218822Sdim
6603218822Sdim
6604218822Sdim# If no C compiler was specified, use CC.
6605218822SdimLTCC=${LTCC-"$CC"}
6606218822Sdim
6607218822Sdim# If no C compiler flags were specified, use CFLAGS.
6608218822SdimLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6609218822Sdim
6610218822Sdim# Allow CC to be a program name with arguments.
6611218822Sdimcompiler=$CC
6612218822Sdim
6613218822Sdim# Save the default compiler, since it gets overwritten when the other
6614218822Sdim# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6615218822Sdimcompiler_DEFAULT=$CC
6616218822Sdim
6617218822Sdim# save warnings/boilerplate of simple test code
6618218822Sdimac_outfile=conftest.$ac_objext
6619218822Sdimecho "$lt_simple_compile_test_code" >conftest.$ac_ext
6620218822Sdimeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6621218822Sdim_lt_compiler_boilerplate=`cat conftest.err`
6622218822Sdim$RM conftest*
6623218822Sdim
6624218822Sdimac_outfile=conftest.$ac_objext
6625218822Sdimecho "$lt_simple_link_test_code" >conftest.$ac_ext
6626218822Sdimeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6627218822Sdim_lt_linker_boilerplate=`cat conftest.err`
6628218822Sdim$RM conftest*
6629218822Sdim
6630218822Sdim
6631218822Sdim## CAVEAT EMPTOR:
6632218822Sdim## There is no encapsulation within the following macros, do not change
6633218822Sdim## the running order or otherwise move them around unless you know exactly
6634218822Sdim## what you are doing...
6635218822Sdimif test -n "$compiler"; then
6636218822Sdim
6637218822Sdimlt_prog_compiler_no_builtin_flag=
6638218822Sdim
6639218822Sdimif test "$GCC" = yes; then
6640218822Sdim  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6641218822Sdim
6642218822Sdim  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6643218822Sdimecho $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6644218822Sdimif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6645218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
664677298Sobrienelse
6647218822Sdim  lt_cv_prog_compiler_rtti_exceptions=no
6648218822Sdim   ac_outfile=conftest.$ac_objext
6649218822Sdim   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6650218822Sdim   lt_compiler_flag="-fno-rtti -fno-exceptions"
6651218822Sdim   # Insert the option either (1) after the last *FLAGS variable, or
6652218822Sdim   # (2) before a word containing "conftest.", or (3) at the end.
6653218822Sdim   # Note that $ac_compile itself does not contain backslashes and begins
6654218822Sdim   # with a dollar sign (not a hyphen), so the echo should work correctly.
6655218822Sdim   # The option is referenced via a variable to avoid confusing sed.
6656218822Sdim   lt_compile=`echo "$ac_compile" | $SED \
6657218822Sdim   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6658218822Sdim   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6659218822Sdim   -e 's:$: $lt_compiler_flag:'`
6660218822Sdim   (eval echo "\"\$as_me:6660: $lt_compile\"" >&5)
6661218822Sdim   (eval "$lt_compile" 2>conftest.err)
6662218822Sdim   ac_status=$?
6663218822Sdim   cat conftest.err >&5
6664218822Sdim   echo "$as_me:6664: \$? = $ac_status" >&5
6665218822Sdim   if (exit $ac_status) && test -s "$ac_outfile"; then
6666218822Sdim     # The compiler can only warn and ignore the option if not recognized
6667218822Sdim     # So say no if there are warnings other than the usual output.
6668218822Sdim     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6669218822Sdim     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6670218822Sdim     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6671218822Sdim       lt_cv_prog_compiler_rtti_exceptions=yes
6672218822Sdim     fi
6673218822Sdim   fi
6674218822Sdim   $RM conftest*
6675218822Sdim
6676218822Sdimfi
6677218822Sdimecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6678218822Sdimecho "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6679218822Sdim
6680218822Sdimif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6681218822Sdim    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
668277298Sobrienelse
6683218822Sdim    :
668477298Sobrienfi
6685218822Sdim
668677298Sobrienfi
6687218822Sdim
6688218822Sdim
6689218822Sdim
6690218822Sdim
6691218822Sdim
6692218822Sdim
6693218822Sdim  lt_prog_compiler_wl=
6694218822Sdimlt_prog_compiler_pic=
6695218822Sdimlt_prog_compiler_static=
6696218822Sdim
6697218822Sdimecho "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6698218822Sdimecho $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6699218822Sdim
6700218822Sdim  if test "$GCC" = yes; then
6701218822Sdim    lt_prog_compiler_wl='-Wl,'
6702218822Sdim    lt_prog_compiler_static='-static'
6703218822Sdim
6704218822Sdim    case $host_os in
6705218822Sdim      aix*)
6706218822Sdim      # All AIX code is PIC.
6707218822Sdim      if test "$host_cpu" = ia64; then
6708218822Sdim	# AIX 5 now supports IA64 processor
6709218822Sdim	lt_prog_compiler_static='-Bstatic'
6710218822Sdim      fi
6711218822Sdim      ;;
6712218822Sdim
6713218822Sdim    amigaos*)
6714218822Sdim      if test "$host_cpu" = m68k; then
6715218822Sdim        # FIXME: we need at least 68020 code to build shared libraries, but
6716218822Sdim        # adding the `-m68020' flag to GCC prevents building anything better,
6717218822Sdim        # like `-m68040'.
6718218822Sdim        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6719218822Sdim      fi
6720218822Sdim      ;;
6721218822Sdim
6722218822Sdim    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6723218822Sdim      # PIC is the default for these OSes.
6724218822Sdim      ;;
6725218822Sdim
6726218822Sdim    mingw* | cygwin* | pw32* | os2*)
6727218822Sdim      # This hack is so that the source file can tell whether it is being
6728218822Sdim      # built for inclusion in a dll (and should export symbols for example).
6729218822Sdim      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6730218822Sdim      # (--disable-auto-import) libraries
6731218822Sdim      lt_prog_compiler_pic='-DDLL_EXPORT'
6732218822Sdim      ;;
6733218822Sdim
6734218822Sdim    darwin* | rhapsody*)
6735218822Sdim      # PIC is the default on this platform
6736218822Sdim      # Common symbols not allowed in MH_DYLIB files
6737218822Sdim      lt_prog_compiler_pic='-fno-common'
6738218822Sdim      ;;
6739218822Sdim
6740218822Sdim    hpux*)
6741218822Sdim      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6742218822Sdim      # not for PA HP-UX.
6743218822Sdim      case $host_cpu in
6744218822Sdim      hppa*64*|ia64*)
6745218822Sdim	# +Z the default
6746218822Sdim	;;
6747218822Sdim      *)
6748218822Sdim	lt_prog_compiler_pic='-fPIC'
6749218822Sdim	;;
6750218822Sdim      esac
6751218822Sdim      ;;
6752218822Sdim
6753218822Sdim    interix[3-9]*)
6754218822Sdim      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6755218822Sdim      # Instead, we relocate shared libraries at runtime.
6756218822Sdim      ;;
6757218822Sdim
6758218822Sdim    msdosdjgpp*)
6759218822Sdim      # Just because we use GCC doesn't mean we suddenly get shared libraries
6760218822Sdim      # on systems that don't support them.
6761218822Sdim      lt_prog_compiler_can_build_shared=no
6762218822Sdim      enable_shared=no
6763218822Sdim      ;;
6764218822Sdim
6765218822Sdim    *nto* | *qnx*)
6766218822Sdim      # QNX uses GNU C++, but need to define -shared option too, otherwise
6767218822Sdim      # it will coredump.
6768218822Sdim      lt_prog_compiler_pic='-fPIC -shared'
6769218822Sdim      ;;
6770218822Sdim
6771218822Sdim    sysv4*MP*)
6772218822Sdim      if test -d /usr/nec; then
6773218822Sdim	lt_prog_compiler_pic=-Kconform_pic
6774218822Sdim      fi
6775218822Sdim      ;;
6776218822Sdim
6777218822Sdim    *)
6778218822Sdim      lt_prog_compiler_pic='-fPIC'
6779218822Sdim      ;;
6780218822Sdim    esac
6781218822Sdim  else
6782218822Sdim    # PORTME Check for flag to pass linker flags through the system compiler.
6783218822Sdim    case $host_os in
6784218822Sdim    aix*)
6785218822Sdim      lt_prog_compiler_wl='-Wl,'
6786218822Sdim      if test "$host_cpu" = ia64; then
6787218822Sdim	# AIX 5 now supports IA64 processor
6788218822Sdim	lt_prog_compiler_static='-Bstatic'
6789218822Sdim      else
6790218822Sdim	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6791218822Sdim      fi
6792218822Sdim      ;;
6793218822Sdim    darwin*)
6794218822Sdim      # PIC is the default on this platform
6795218822Sdim      # Common symbols not allowed in MH_DYLIB files
6796218822Sdim      case $cc_basename in
6797218822Sdim      xlc*)
6798218822Sdim        lt_prog_compiler_pic='-qnocommon'
6799218822Sdim        lt_prog_compiler_wl='-Wl,'
6800218822Sdim        ;;
6801218822Sdim      esac
6802218822Sdim      ;;
6803218822Sdim
6804218822Sdim    mingw* | cygwin* | pw32* | os2*)
6805218822Sdim      # This hack is so that the source file can tell whether it is being
6806218822Sdim      # built for inclusion in a dll (and should export symbols for example).
6807218822Sdim      lt_prog_compiler_pic='-DDLL_EXPORT'
6808218822Sdim      ;;
6809218822Sdim
6810218822Sdim    hpux9* | hpux10* | hpux11*)
6811218822Sdim      lt_prog_compiler_wl='-Wl,'
6812218822Sdim      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6813218822Sdim      # not for PA HP-UX.
6814218822Sdim      case $host_cpu in
6815218822Sdim      hppa*64*|ia64*)
6816218822Sdim	# +Z the default
6817218822Sdim	;;
6818218822Sdim      *)
6819218822Sdim	lt_prog_compiler_pic='+Z'
6820218822Sdim	;;
6821218822Sdim      esac
6822218822Sdim      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6823218822Sdim      lt_prog_compiler_static='${wl}-a ${wl}archive'
6824218822Sdim      ;;
6825218822Sdim
6826218822Sdim    irix5* | irix6* | nonstopux*)
6827218822Sdim      lt_prog_compiler_wl='-Wl,'
6828218822Sdim      # PIC (with -KPIC) is the default.
6829218822Sdim      lt_prog_compiler_static='-non_shared'
6830218822Sdim      ;;
6831218822Sdim
6832218822Sdim    linux* | k*bsd*-gnu)
6833218822Sdim      case $cc_basename in
6834218822Sdim      icc* | ecc*)
6835218822Sdim	lt_prog_compiler_wl='-Wl,'
6836218822Sdim	lt_prog_compiler_pic='-KPIC'
6837218822Sdim	lt_prog_compiler_static='-static'
6838218822Sdim        ;;
6839218822Sdim      pgcc* | pgf77* | pgf90* | pgf95*)
6840218822Sdim        # Portland Group compilers (*not* the Pentium gcc compiler,
6841218822Sdim	# which looks to be a dead project)
6842218822Sdim	lt_prog_compiler_wl='-Wl,'
6843218822Sdim	lt_prog_compiler_pic='-fpic'
6844218822Sdim	lt_prog_compiler_static='-Bstatic'
6845218822Sdim        ;;
6846218822Sdim      ccc*)
6847218822Sdim        lt_prog_compiler_wl='-Wl,'
6848218822Sdim        # All Alpha code is PIC.
6849218822Sdim        lt_prog_compiler_static='-non_shared'
6850218822Sdim        ;;
6851218822Sdim      *)
6852218822Sdim	case `$CC -V 2>&1 | sed 5q` in
6853218822Sdim	*Sun\ C*)
6854218822Sdim	  # Sun C 5.9
6855218822Sdim	  lt_prog_compiler_pic='-KPIC'
6856218822Sdim	  lt_prog_compiler_static='-Bstatic'
6857218822Sdim	  lt_prog_compiler_wl='-Wl,'
6858218822Sdim	  ;;
6859218822Sdim	*Sun\ F*)
6860218822Sdim	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6861218822Sdim	  lt_prog_compiler_pic='-KPIC'
6862218822Sdim	  lt_prog_compiler_static='-Bstatic'
6863218822Sdim	  lt_prog_compiler_wl=''
6864218822Sdim	  ;;
6865218822Sdim	esac
6866218822Sdim	;;
6867218822Sdim      esac
6868218822Sdim      ;;
6869218822Sdim
6870218822Sdim    newsos6)
6871218822Sdim      lt_prog_compiler_pic='-KPIC'
6872218822Sdim      lt_prog_compiler_static='-Bstatic'
6873218822Sdim      ;;
6874218822Sdim
6875218822Sdim    *nto* | *qnx*)
6876218822Sdim      # QNX uses GNU C++, but need to define -shared option too, otherwise
6877218822Sdim      # it will coredump.
6878218822Sdim      lt_prog_compiler_pic='-fPIC -shared'
6879218822Sdim      ;;
6880218822Sdim
6881218822Sdim    osf3* | osf4* | osf5*)
6882218822Sdim      lt_prog_compiler_wl='-Wl,'
6883218822Sdim      # All OSF/1 code is PIC.
6884218822Sdim      lt_prog_compiler_static='-non_shared'
6885218822Sdim      ;;
6886218822Sdim
6887218822Sdim    rdos*)
6888218822Sdim      lt_prog_compiler_static='-non_shared'
6889218822Sdim      ;;
6890218822Sdim
6891218822Sdim    solaris*)
6892218822Sdim      lt_prog_compiler_pic='-KPIC'
6893218822Sdim      lt_prog_compiler_static='-Bstatic'
6894218822Sdim      case $cc_basename in
6895218822Sdim      f77* | f90* | f95*)
6896218822Sdim	lt_prog_compiler_wl='-Qoption ld ';;
6897218822Sdim      *)
6898218822Sdim	lt_prog_compiler_wl='-Wl,';;
6899218822Sdim      esac
6900218822Sdim      ;;
6901218822Sdim
6902218822Sdim    sunos4*)
6903218822Sdim      lt_prog_compiler_wl='-Qoption ld '
6904218822Sdim      lt_prog_compiler_pic='-PIC'
6905218822Sdim      lt_prog_compiler_static='-Bstatic'
6906218822Sdim      ;;
6907218822Sdim
6908218822Sdim    sysv4 | sysv4.2uw2* | sysv4.3*)
6909218822Sdim      lt_prog_compiler_wl='-Wl,'
6910218822Sdim      lt_prog_compiler_pic='-KPIC'
6911218822Sdim      lt_prog_compiler_static='-Bstatic'
6912218822Sdim      ;;
6913218822Sdim
6914218822Sdim    sysv4*MP*)
6915218822Sdim      if test -d /usr/nec ;then
6916218822Sdim	lt_prog_compiler_pic='-Kconform_pic'
6917218822Sdim	lt_prog_compiler_static='-Bstatic'
6918218822Sdim      fi
6919218822Sdim      ;;
6920218822Sdim
6921218822Sdim    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6922218822Sdim      lt_prog_compiler_wl='-Wl,'
6923218822Sdim      lt_prog_compiler_pic='-KPIC'
6924218822Sdim      lt_prog_compiler_static='-Bstatic'
6925218822Sdim      ;;
6926218822Sdim
6927218822Sdim    unicos*)
6928218822Sdim      lt_prog_compiler_wl='-Wl,'
6929218822Sdim      lt_prog_compiler_can_build_shared=no
6930218822Sdim      ;;
6931218822Sdim
6932218822Sdim    uts4*)
6933218822Sdim      lt_prog_compiler_pic='-pic'
6934218822Sdim      lt_prog_compiler_static='-Bstatic'
6935218822Sdim      ;;
6936218822Sdim
6937218822Sdim    *)
6938218822Sdim      lt_prog_compiler_can_build_shared=no
6939218822Sdim      ;;
6940218822Sdim    esac
6941218822Sdim  fi
6942218822Sdim
6943218822Sdimcase $host_os in
6944218822Sdim  # For platforms which do not support PIC, -DPIC is meaningless:
6945218822Sdim  *djgpp*)
6946218822Sdim    lt_prog_compiler_pic=
6947218822Sdim    ;;
6948218822Sdim  *)
6949218822Sdim    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6950218822Sdim    ;;
6951218822Sdimesac
6952218822Sdimecho "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6953218822Sdimecho "${ECHO_T}$lt_prog_compiler_pic" >&6
6954218822Sdim
6955218822Sdim
6956218822Sdim
6957218822Sdim
6958218822Sdim
6959218822Sdim
6960218822Sdim#
6961218822Sdim# Check to make sure the PIC flag actually works.
6962218822Sdim#
6963218822Sdimif test -n "$lt_prog_compiler_pic"; then
6964218822Sdim  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6965218822Sdimecho $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6966218822Sdimif test "${lt_prog_compiler_pic_works+set}" = set; then
6967218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
696877298Sobrienelse
6969218822Sdim  lt_prog_compiler_pic_works=no
6970218822Sdim   ac_outfile=conftest.$ac_objext
6971218822Sdim   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6972218822Sdim   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6973218822Sdim   # Insert the option either (1) after the last *FLAGS variable, or
6974218822Sdim   # (2) before a word containing "conftest.", or (3) at the end.
6975218822Sdim   # Note that $ac_compile itself does not contain backslashes and begins
6976218822Sdim   # with a dollar sign (not a hyphen), so the echo should work correctly.
6977218822Sdim   # The option is referenced via a variable to avoid confusing sed.
6978218822Sdim   lt_compile=`echo "$ac_compile" | $SED \
6979218822Sdim   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6980218822Sdim   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6981218822Sdim   -e 's:$: $lt_compiler_flag:'`
6982218822Sdim   (eval echo "\"\$as_me:6982: $lt_compile\"" >&5)
6983218822Sdim   (eval "$lt_compile" 2>conftest.err)
6984218822Sdim   ac_status=$?
6985218822Sdim   cat conftest.err >&5
6986218822Sdim   echo "$as_me:6986: \$? = $ac_status" >&5
6987218822Sdim   if (exit $ac_status) && test -s "$ac_outfile"; then
6988218822Sdim     # The compiler can only warn and ignore the option if not recognized
6989218822Sdim     # So say no if there are warnings other than the usual output.
6990218822Sdim     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6991218822Sdim     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6992218822Sdim     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6993218822Sdim       lt_prog_compiler_pic_works=yes
6994218822Sdim     fi
6995218822Sdim   fi
6996218822Sdim   $RM conftest*
6997218822Sdim
699877298Sobrienfi
6999218822Sdimecho "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7000218822Sdimecho "${ECHO_T}$lt_prog_compiler_pic_works" >&6
700177298Sobrien
7002218822Sdimif test x"$lt_prog_compiler_pic_works" = xyes; then
7003218822Sdim    case $lt_prog_compiler_pic in
7004218822Sdim     "" | " "*) ;;
7005218822Sdim     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7006218822Sdim     esac
700777298Sobrienelse
7008218822Sdim    lt_prog_compiler_pic=
7009218822Sdim     lt_prog_compiler_can_build_shared=no
701077298Sobrienfi
7011218822Sdim
701277298Sobrienfi
7013218822Sdim
7014218822Sdim
7015218822Sdim
7016218822Sdim
7017218822Sdim
7018218822Sdim
7019218822Sdim#
7020218822Sdim# Check to make sure the static flag actually works.
7021218822Sdim#
7022218822Sdimwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7023218822Sdimecho "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7024218822Sdimecho $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7025218822Sdimif test "${lt_prog_compiler_static_works+set}" = set; then
7026218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
702777298Sobrienelse
7028218822Sdim  lt_prog_compiler_static_works=no
7029218822Sdim   save_LDFLAGS="$LDFLAGS"
7030218822Sdim   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7031218822Sdim   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7032218822Sdim   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7033218822Sdim     # The linker can only warn and ignore the option if not recognized
7034218822Sdim     # So say no if there are warnings
7035218822Sdim     if test -s conftest.err; then
7036218822Sdim       # Append any errors to the config.log.
7037218822Sdim       cat conftest.err 1>&5
7038218822Sdim       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7039218822Sdim       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7040218822Sdim       if diff conftest.exp conftest.er2 >/dev/null; then
7041218822Sdim         lt_prog_compiler_static_works=yes
7042218822Sdim       fi
7043218822Sdim     else
7044218822Sdim       lt_prog_compiler_static_works=yes
7045218822Sdim     fi
7046218822Sdim   fi
7047218822Sdim   $RM conftest*
7048218822Sdim   LDFLAGS="$save_LDFLAGS"
7049218822Sdim
705077298Sobrienfi
7051218822Sdimecho "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7052218822Sdimecho "${ECHO_T}$lt_prog_compiler_static_works" >&6
705377298Sobrien
7054218822Sdimif test x"$lt_prog_compiler_static_works" = xyes; then
7055218822Sdim    :
705677298Sobrienelse
7057218822Sdim    lt_prog_compiler_static=
705877298Sobrienfi
7059218822Sdim
7060218822Sdim
7061218822Sdim
7062218822Sdim
7063218822Sdim
7064218822Sdim
7065218822Sdim
7066218822Sdim  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7067218822Sdimecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7068218822Sdimif test "${lt_cv_prog_compiler_c_o+set}" = set; then
7069218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7070218822Sdimelse
7071218822Sdim  lt_cv_prog_compiler_c_o=no
7072218822Sdim   $RM -r conftest 2>/dev/null
7073218822Sdim   mkdir conftest
7074218822Sdim   cd conftest
7075218822Sdim   mkdir out
7076218822Sdim   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7077218822Sdim
7078218822Sdim   lt_compiler_flag="-o out/conftest2.$ac_objext"
7079218822Sdim   # Insert the option either (1) after the last *FLAGS variable, or
7080218822Sdim   # (2) before a word containing "conftest.", or (3) at the end.
7081218822Sdim   # Note that $ac_compile itself does not contain backslashes and begins
7082218822Sdim   # with a dollar sign (not a hyphen), so the echo should work correctly.
7083218822Sdim   lt_compile=`echo "$ac_compile" | $SED \
7084218822Sdim   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7085218822Sdim   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7086218822Sdim   -e 's:$: $lt_compiler_flag:'`
7087218822Sdim   (eval echo "\"\$as_me:7087: $lt_compile\"" >&5)
7088218822Sdim   (eval "$lt_compile" 2>out/conftest.err)
7089218822Sdim   ac_status=$?
7090218822Sdim   cat out/conftest.err >&5
7091218822Sdim   echo "$as_me:7091: \$? = $ac_status" >&5
7092218822Sdim   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7093218822Sdim   then
7094218822Sdim     # The compiler can only warn and ignore the option if not recognized
7095218822Sdim     # So say no if there are warnings
7096218822Sdim     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7097218822Sdim     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7098218822Sdim     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7099218822Sdim       lt_cv_prog_compiler_c_o=yes
7100218822Sdim     fi
7101218822Sdim   fi
7102218822Sdim   chmod u+w . 2>&5
7103218822Sdim   $RM conftest*
7104218822Sdim   # SGI C++ compiler will create directory out/ii_files/ for
7105218822Sdim   # template instantiation
7106218822Sdim   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7107218822Sdim   $RM out/* && rmdir out
7108218822Sdim   cd ..
7109218822Sdim   $RM -r conftest
7110218822Sdim   $RM conftest*
7111218822Sdim
711277298Sobrienfi
7113218822Sdimecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7114218822Sdimecho "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
711577298Sobrien
7116218822Sdim
7117218822Sdim
7118218822Sdim
7119218822Sdim
7120218822Sdim
7121218822Sdim  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7122218822Sdimecho $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7123218822Sdimif test "${lt_cv_prog_compiler_c_o+set}" = set; then
7124218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
712577298Sobrienelse
7126218822Sdim  lt_cv_prog_compiler_c_o=no
7127218822Sdim   $RM -r conftest 2>/dev/null
7128218822Sdim   mkdir conftest
7129218822Sdim   cd conftest
7130218822Sdim   mkdir out
7131218822Sdim   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7132218822Sdim
7133218822Sdim   lt_compiler_flag="-o out/conftest2.$ac_objext"
7134218822Sdim   # Insert the option either (1) after the last *FLAGS variable, or
7135218822Sdim   # (2) before a word containing "conftest.", or (3) at the end.
7136218822Sdim   # Note that $ac_compile itself does not contain backslashes and begins
7137218822Sdim   # with a dollar sign (not a hyphen), so the echo should work correctly.
7138218822Sdim   lt_compile=`echo "$ac_compile" | $SED \
7139218822Sdim   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7140218822Sdim   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7141218822Sdim   -e 's:$: $lt_compiler_flag:'`
7142218822Sdim   (eval echo "\"\$as_me:7142: $lt_compile\"" >&5)
7143218822Sdim   (eval "$lt_compile" 2>out/conftest.err)
7144218822Sdim   ac_status=$?
7145218822Sdim   cat out/conftest.err >&5
7146218822Sdim   echo "$as_me:7146: \$? = $ac_status" >&5
7147218822Sdim   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7148218822Sdim   then
7149218822Sdim     # The compiler can only warn and ignore the option if not recognized
7150218822Sdim     # So say no if there are warnings
7151218822Sdim     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7152218822Sdim     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7153218822Sdim     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7154218822Sdim       lt_cv_prog_compiler_c_o=yes
7155218822Sdim     fi
7156218822Sdim   fi
7157218822Sdim   chmod u+w . 2>&5
7158218822Sdim   $RM conftest*
7159218822Sdim   # SGI C++ compiler will create directory out/ii_files/ for
7160218822Sdim   # template instantiation
7161218822Sdim   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7162218822Sdim   $RM out/* && rmdir out
7163218822Sdim   cd ..
7164218822Sdim   $RM -r conftest
7165218822Sdim   $RM conftest*
7166218822Sdim
716777298Sobrienfi
7168218822Sdimecho "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7169218822Sdimecho "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7170218822Sdim
7171218822Sdim
7172218822Sdim
7173218822Sdim
7174218822Sdimhard_links="nottested"
7175218822Sdimif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7176218822Sdim  # do not overwrite the value of need_locks provided by the user
7177218822Sdim  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7178218822Sdimecho $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7179218822Sdim  hard_links=yes
7180218822Sdim  $RM conftest*
7181218822Sdim  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7182218822Sdim  touch conftest.a
7183218822Sdim  ln conftest.a conftest.b 2>&5 || hard_links=no
7184218822Sdim  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7185218822Sdim  echo "$as_me:$LINENO: result: $hard_links" >&5
7186218822Sdimecho "${ECHO_T}$hard_links" >&6
7187218822Sdim  if test "$hard_links" = no; then
7188218822Sdim    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7189218822Sdimecho "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7190218822Sdim    need_locks=warn
7191218822Sdim  fi
719277298Sobrienelse
7193218822Sdim  need_locks=no
719477298Sobrienfi
719577298Sobrien
719677298Sobrien
7197218822Sdim
7198218822Sdim
7199218822Sdim
7200218822Sdim
7201218822Sdim  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7202218822Sdimecho $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7203218822Sdim
7204218822Sdim  runpath_var=
7205218822Sdim  allow_undefined_flag=
7206218822Sdim  always_export_symbols=no
7207218822Sdim  archive_cmds=
7208218822Sdim  archive_expsym_cmds=
7209218822Sdim  compiler_needs_object=no
7210218822Sdim  enable_shared_with_static_runtimes=no
7211218822Sdim  export_dynamic_flag_spec=
7212218822Sdim  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7213218822Sdim  hardcode_automatic=no
7214218822Sdim  hardcode_direct=no
7215218822Sdim  hardcode_direct_absolute=no
7216218822Sdim  hardcode_libdir_flag_spec=
7217218822Sdim  hardcode_libdir_flag_spec_ld=
7218218822Sdim  hardcode_libdir_separator=
7219218822Sdim  hardcode_minus_L=no
7220218822Sdim  hardcode_shlibpath_var=unsupported
7221218822Sdim  inherit_rpath=no
7222218822Sdim  link_all_deplibs=unknown
7223218822Sdim  module_cmds=
7224218822Sdim  module_expsym_cmds=
7225218822Sdim  old_archive_from_new_cmds=
7226218822Sdim  old_archive_from_expsyms_cmds=
7227218822Sdim  thread_safe_flag_spec=
7228218822Sdim  whole_archive_flag_spec=
7229218822Sdim  # include_expsyms should be a list of space-separated symbols to be *always*
7230218822Sdim  # included in the symbol list
7231218822Sdim  include_expsyms=
7232218822Sdim  # exclude_expsyms can be an extended regexp of symbols to exclude
7233218822Sdim  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7234218822Sdim  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7235218822Sdim  # as well as any symbol that contains `d'.
7236218822Sdim  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7237218822Sdim  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7238218822Sdim  # platforms (ab)use it in PIC code, but their linkers get confused if
7239218822Sdim  # the symbol is explicitly referenced.  Since portable code cannot
7240218822Sdim  # rely on this symbol name, it's probably fine to never include it in
7241218822Sdim  # preloaded symbol tables.
7242218822Sdim  extract_expsyms_cmds=
7243218822Sdim
7244218822Sdim  case $host_os in
7245218822Sdim  cygwin* | mingw* | pw32*)
7246218822Sdim    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7247218822Sdim    # When not using gcc, we currently assume that we are using
7248218822Sdim    # Microsoft Visual C++.
7249218822Sdim    if test "$GCC" != yes; then
7250218822Sdim      with_gnu_ld=no
725177298Sobrien    fi
7252218822Sdim    ;;
7253218822Sdim  interix*)
7254218822Sdim    # we just hope/assume this is gcc and not c89 (= MSVC++)
7255218822Sdim    with_gnu_ld=yes
7256218822Sdim    ;;
7257218822Sdim  openbsd*)
7258218822Sdim    with_gnu_ld=no
7259218822Sdim    ;;
7260218822Sdim  esac
7261218822Sdim
7262218822Sdim  ld_shlibs=yes
7263218822Sdim  if test "$with_gnu_ld" = yes; then
7264218822Sdim    # If archive_cmds runs LD, not CC, wlarc should be empty
7265218822Sdim    wlarc='${wl}'
7266218822Sdim
7267218822Sdim    # Set some defaults for GNU ld with shared library support. These
7268218822Sdim    # are reset later if shared libraries are not supported. Putting them
7269218822Sdim    # here allows them to be overridden if necessary.
7270218822Sdim    runpath_var=LD_RUN_PATH
7271218822Sdim    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7272218822Sdim    export_dynamic_flag_spec='${wl}--export-dynamic'
7273218822Sdim    # ancient GNU ld didn't support --whole-archive et. al.
7274218822Sdim    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7275218822Sdim      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7276218822Sdim    else
7277218822Sdim      whole_archive_flag_spec=
7278218822Sdim    fi
7279218822Sdim    supports_anon_versioning=no
7280218822Sdim    case `$LD -v 2>&1` in
7281218822Sdim      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7282218822Sdim      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7283218822Sdim      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7284218822Sdim      *\ 2.11.*) ;; # other 2.11 versions
7285218822Sdim      *) supports_anon_versioning=yes ;;
7286218822Sdim    esac
7287218822Sdim
7288218822Sdim    # See if GNU ld supports shared libraries.
7289218822Sdim    case $host_os in
7290218822Sdim    aix3* | aix4* | aix5*)
7291218822Sdim      # On AIX/PPC, the GNU linker is very broken
7292218822Sdim      if test "$host_cpu" != ia64; then
7293218822Sdim	ld_shlibs=no
7294218822Sdim	cat <<_LT_EOF 1>&2
7295218822Sdim
7296218822Sdim*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7297218822Sdim*** to be unable to reliably create shared libraries on AIX.
7298218822Sdim*** Therefore, libtool is disabling shared libraries support.  If you
7299218822Sdim*** really care for shared libraries, you may want to modify your PATH
7300218822Sdim*** so that a non-GNU linker is found, and then restart.
7301218822Sdim
7302218822Sdim_LT_EOF
7303218822Sdim      fi
7304218822Sdim      ;;
7305218822Sdim
7306218822Sdim    amigaos*)
7307218822Sdim      if test "$host_cpu" = m68k; then
7308218822Sdim        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)'
7309218822Sdim        hardcode_libdir_flag_spec='-L$libdir'
7310218822Sdim        hardcode_minus_L=yes
7311218822Sdim      fi
7312218822Sdim
7313218822Sdim      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7314218822Sdim      # that the semantics of dynamic libraries on AmigaOS, at least up
7315218822Sdim      # to version 4, is to share data among multiple programs linked
7316218822Sdim      # with the same dynamic library.  Since this doesn't match the
7317218822Sdim      # behavior of shared libraries on other platforms, we can't use
7318218822Sdim      # them.
7319218822Sdim      ld_shlibs=no
7320218822Sdim      ;;
7321218822Sdim
7322218822Sdim    beos*)
7323218822Sdim      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7324218822Sdim	allow_undefined_flag=unsupported
7325218822Sdim	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7326218822Sdim	# support --undefined.  This deserves some investigation.  FIXME
7327218822Sdim	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7328218822Sdim      else
7329218822Sdim	ld_shlibs=no
7330218822Sdim      fi
7331218822Sdim      ;;
7332218822Sdim
7333218822Sdim    cygwin* | mingw* | pw32*)
7334218822Sdim      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7335218822Sdim      # as there is no search path for DLLs.
7336218822Sdim      hardcode_libdir_flag_spec='-L$libdir'
7337218822Sdim      allow_undefined_flag=unsupported
7338218822Sdim      always_export_symbols=no
7339218822Sdim      enable_shared_with_static_runtimes=yes
7340218822Sdim      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7341218822Sdim
7342218822Sdim      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7343218822Sdim        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7344218822Sdim	# If the export-symbols file already is a .def file (1st line
7345218822Sdim	# is EXPORTS), use it as is; otherwise, prepend...
7346218822Sdim	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7347218822Sdim	  cp $export_symbols $output_objdir/$soname.def;
7348218822Sdim	else
7349218822Sdim	  echo EXPORTS > $output_objdir/$soname.def;
7350218822Sdim	  cat $export_symbols >> $output_objdir/$soname.def;
7351218822Sdim	fi~
7352218822Sdim	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7353218822Sdim      else
7354218822Sdim	ld_shlibs=no
7355218822Sdim      fi
7356218822Sdim      ;;
7357218822Sdim
7358218822Sdim    interix[3-9]*)
7359218822Sdim      hardcode_direct=no
7360218822Sdim      hardcode_shlibpath_var=no
7361218822Sdim      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7362218822Sdim      export_dynamic_flag_spec='${wl}-E'
7363218822Sdim      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7364218822Sdim      # Instead, shared libraries are loaded at an image base (0x10000000 by
7365218822Sdim      # default) and relocated if they conflict, which is a slow very memory
7366218822Sdim      # consuming and fragmenting process.  To avoid this, we pick a random,
7367218822Sdim      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7368218822Sdim      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7369218822Sdim      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7370218822Sdim      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'
7371218822Sdim      ;;
7372218822Sdim
7373218822Sdim    gnu* | linux* | tpf* | k*bsd*-gnu)
7374218822Sdim      tmp_diet=no
7375218822Sdim      if test "$host_os" = linux-dietlibc; then
7376218822Sdim	case $cc_basename in
7377218822Sdim	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7378218822Sdim	esac
7379218822Sdim      fi
7380218822Sdim      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7381218822Sdim	 && test "$tmp_diet" = no
7382218822Sdim      then
7383218822Sdim	tmp_addflag=
7384218822Sdim	case $cc_basename,$host_cpu in
7385218822Sdim        pgcc*)				# Portland Group C compiler
7386218822Sdim	  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'
7387218822Sdim	  tmp_addflag=' $pic_flag'
7388218822Sdim	  ;;
7389218822Sdim	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7390218822Sdim	  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'
7391218822Sdim	  tmp_addflag=' $pic_flag -Mnomain' ;;
7392218822Sdim	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7393218822Sdim	  tmp_addflag=' -i_dynamic' ;;
7394218822Sdim	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7395218822Sdim	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7396218822Sdim	ifc* | ifort*)			# Intel Fortran compiler
7397218822Sdim	  tmp_addflag=' -nofor_main' ;;
7398218822Sdim	esac
7399218822Sdim	case `$CC -V 2>&1 | sed 5q` in
7400218822Sdim	*Sun\ C*)			# Sun C 5.9
7401218822Sdim	  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'
7402218822Sdim	  compiler_needs_object=yes
7403218822Sdim	  tmp_sharedflag='-G' ;;
7404218822Sdim	*Sun\ F*)			# Sun Fortran 8.3
7405218822Sdim	  tmp_sharedflag='-G' ;;
7406218822Sdim	*)
7407218822Sdim	  tmp_sharedflag='-shared' ;;
7408218822Sdim	esac
7409218822Sdim	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7410218822Sdim
7411218822Sdim        if test "x$supports_anon_versioning" = xyes; then
7412218822Sdim          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7413218822Sdim	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7414218822Sdim	    echo "local: *; };" >> $output_objdir/$libname.ver~
7415218822Sdim	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7416218822Sdim        fi
7417218822Sdim      else
7418218822Sdim        ld_shlibs=no
7419218822Sdim      fi
7420218822Sdim      ;;
7421218822Sdim
7422218822Sdim    netbsd*)
7423218822Sdim      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7424218822Sdim	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7425218822Sdim	wlarc=
7426218822Sdim      else
7427218822Sdim	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7428218822Sdim	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7429218822Sdim      fi
7430218822Sdim      ;;
7431218822Sdim
7432218822Sdim    solaris*)
7433218822Sdim      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7434218822Sdim	ld_shlibs=no
7435218822Sdim	cat <<_LT_EOF 1>&2
7436218822Sdim
7437218822Sdim*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7438218822Sdim*** create shared libraries on Solaris systems.  Therefore, libtool
7439218822Sdim*** is disabling shared libraries support.  We urge you to upgrade GNU
7440218822Sdim*** binutils to release 2.9.1 or newer.  Another option is to modify
7441218822Sdim*** your PATH or compiler configuration so that the native linker is
7442218822Sdim*** used, and then restart.
7443218822Sdim
7444218822Sdim_LT_EOF
7445218822Sdim      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7446218822Sdim	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7447218822Sdim	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7448218822Sdim      else
7449218822Sdim	ld_shlibs=no
7450218822Sdim      fi
7451218822Sdim      ;;
7452218822Sdim
7453218822Sdim    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7454218822Sdim      case `$LD -v 2>&1` in
7455218822Sdim        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7456218822Sdim	ld_shlibs=no
7457218822Sdim	cat <<_LT_EOF 1>&2
7458218822Sdim
7459218822Sdim*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7460218822Sdim*** reliably create shared libraries on SCO systems.  Therefore, libtool
7461218822Sdim*** is disabling shared libraries support.  We urge you to upgrade GNU
7462218822Sdim*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7463218822Sdim*** your PATH or compiler configuration so that the native linker is
7464218822Sdim*** used, and then restart.
7465218822Sdim
7466218822Sdim_LT_EOF
7467218822Sdim	;;
7468218822Sdim	*)
7469218822Sdim	  # For security reasons, it is highly recommended that you always
7470218822Sdim	  # use absolute paths for naming shared libraries, and exclude the
7471218822Sdim	  # DT_RUNPATH tag from executables and libraries.  But doing so
7472218822Sdim	  # requires that you compile everything twice, which is a pain.
7473218822Sdim	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7474218822Sdim	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7475218822Sdim	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7476218822Sdim	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7477218822Sdim	  else
7478218822Sdim	    ld_shlibs=no
7479218822Sdim	  fi
7480218822Sdim	;;
7481218822Sdim      esac
7482218822Sdim      ;;
7483218822Sdim
7484218822Sdim    sunos4*)
7485218822Sdim      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7486218822Sdim      wlarc=
7487218822Sdim      hardcode_direct=yes
7488218822Sdim      hardcode_shlibpath_var=no
7489218822Sdim      ;;
7490218822Sdim
7491218822Sdim    *)
7492218822Sdim      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7493218822Sdim	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7494218822Sdim	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7495218822Sdim      else
7496218822Sdim	ld_shlibs=no
7497218822Sdim      fi
7498218822Sdim      ;;
7499218822Sdim    esac
7500218822Sdim
7501218822Sdim    if test "$ld_shlibs" = no; then
7502218822Sdim      runpath_var=
7503218822Sdim      hardcode_libdir_flag_spec=
7504218822Sdim      export_dynamic_flag_spec=
7505218822Sdim      whole_archive_flag_spec=
7506218822Sdim    fi
7507218822Sdim  else
7508218822Sdim    # PORTME fill in a description of your system's linker (not GNU ld)
7509218822Sdim    case $host_os in
7510218822Sdim    aix3*)
7511218822Sdim      allow_undefined_flag=unsupported
7512218822Sdim      always_export_symbols=yes
7513218822Sdim      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'
7514218822Sdim      # Note: this linker hardcodes the directories in LIBPATH if there
7515218822Sdim      # are no directories specified by -L.
7516218822Sdim      hardcode_minus_L=yes
7517218822Sdim      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7518218822Sdim	# Neither direct hardcoding nor static linking is supported with a
7519218822Sdim	# broken collect2.
7520218822Sdim	hardcode_direct=unsupported
7521218822Sdim      fi
7522218822Sdim      ;;
7523218822Sdim
7524218822Sdim    aix4* | aix5*)
7525218822Sdim      if test "$host_cpu" = ia64; then
7526218822Sdim	# On IA64, the linker does run time linking by default, so we don't
7527218822Sdim	# have to do anything special.
7528218822Sdim	aix_use_runtimelinking=no
7529218822Sdim	exp_sym_flag='-Bexport'
7530218822Sdim	no_entry_flag=""
7531218822Sdim      else
7532218822Sdim	# If we're using GNU nm, then we don't want the "-C" option.
7533218822Sdim	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7534218822Sdim	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7535218822Sdim	  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'
7536218822Sdim	else
7537218822Sdim	  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'
7538218822Sdim	fi
7539218822Sdim	aix_use_runtimelinking=no
7540218822Sdim
7541218822Sdim	# Test if we are trying to use run time linking or normal
7542218822Sdim	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7543218822Sdim	# need to do runtime linking.
7544218822Sdim	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7545218822Sdim	  for ld_flag in $LDFLAGS; do
7546218822Sdim	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7547218822Sdim	    aix_use_runtimelinking=yes
7548218822Sdim	    break
7549218822Sdim	  fi
7550218822Sdim	  done
7551218822Sdim	  ;;
7552218822Sdim	esac
7553218822Sdim
7554218822Sdim	exp_sym_flag='-bexport'
7555218822Sdim	no_entry_flag='-bnoentry'
7556218822Sdim      fi
7557218822Sdim
7558218822Sdim      # When large executables or shared objects are built, AIX ld can
7559218822Sdim      # have problems creating the table of contents.  If linking a library
7560218822Sdim      # or program results in "error TOC overflow" add -mminimal-toc to
7561218822Sdim      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7562218822Sdim      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7563218822Sdim
7564218822Sdim      archive_cmds=''
7565218822Sdim      hardcode_direct=yes
7566218822Sdim      hardcode_direct_absolute=yes
7567218822Sdim      hardcode_libdir_separator=':'
7568218822Sdim      link_all_deplibs=yes
7569218822Sdim      file_list_spec='${wl}-f,'
7570218822Sdim
7571218822Sdim      if test "$GCC" = yes; then
7572218822Sdim	case $host_os in aix4.[012]|aix4.[012].*)
7573218822Sdim	# We only want to do this on AIX 4.2 and lower, the check
7574218822Sdim	# below for broken collect2 doesn't work under 4.3+
7575218822Sdim	  collect2name=`${CC} -print-prog-name=collect2`
7576218822Sdim	  if test -f "$collect2name" &&
7577218822Sdim	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7578218822Sdim	  then
7579218822Sdim	  # We have reworked collect2
7580218822Sdim	  :
7581218822Sdim	  else
7582218822Sdim	  # We have old collect2
7583218822Sdim	  hardcode_direct=unsupported
7584218822Sdim	  # It fails to find uninstalled libraries when the uninstalled
7585218822Sdim	  # path is not listed in the libpath.  Setting hardcode_minus_L
7586218822Sdim	  # to unsupported forces relinking
7587218822Sdim	  hardcode_minus_L=yes
7588218822Sdim	  hardcode_libdir_flag_spec='-L$libdir'
7589218822Sdim	  hardcode_libdir_separator=
7590218822Sdim	  fi
7591218822Sdim	  ;;
7592218822Sdim	esac
7593218822Sdim	shared_flag='-shared'
7594218822Sdim	if test "$aix_use_runtimelinking" = yes; then
7595218822Sdim	  shared_flag="$shared_flag "'${wl}-G'
7596218822Sdim	fi
7597218822Sdim      else
7598218822Sdim	# not using gcc
7599218822Sdim	if test "$host_cpu" = ia64; then
7600218822Sdim	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7601218822Sdim	# chokes on -Wl,-G. The following line is correct:
7602218822Sdim	  shared_flag='-G'
7603218822Sdim	else
7604218822Sdim	  if test "$aix_use_runtimelinking" = yes; then
7605218822Sdim	    shared_flag='${wl}-G'
7606218822Sdim	  else
7607218822Sdim	    shared_flag='${wl}-bM:SRE'
7608218822Sdim	  fi
7609218822Sdim	fi
7610218822Sdim      fi
7611218822Sdim
7612218822Sdim      # It seems that -bexpall does not export symbols beginning with
7613218822Sdim      # underscore (_), so it is better to generate a list of symbols to export.
7614218822Sdim      always_export_symbols=yes
7615218822Sdim      if test "$aix_use_runtimelinking" = yes; then
7616218822Sdim	# Warning - without using the other runtime loading flags (-brtl),
7617218822Sdim	# -berok will link without error, but may produce a broken library.
7618218822Sdim	allow_undefined_flag='-berok'
7619218822Sdim        # Determine the default libpath from the value encoded in an
7620218822Sdim        # empty executable.
7621218822Sdim        cat >conftest.$ac_ext <<_ACEOF
7622218822Sdim/* confdefs.h.  */
7623218822Sdim_ACEOF
7624218822Sdimcat confdefs.h >>conftest.$ac_ext
7625218822Sdimcat >>conftest.$ac_ext <<_ACEOF
7626218822Sdim/* end confdefs.h.  */
7627218822Sdim
7628218822Sdimint
7629218822Sdimmain ()
7630218822Sdim{
7631218822Sdim
7632218822Sdim  ;
7633218822Sdim  return 0;
7634218822Sdim}
7635218822Sdim_ACEOF
7636218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
7637218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7638218822Sdim  (eval $ac_link) 2>conftest.er1
7639218822Sdim  ac_status=$?
7640218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
7641218822Sdim  rm -f conftest.er1
7642218822Sdim  cat conftest.err >&5
7643218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644218822Sdim  (exit $ac_status); } &&
7645218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
7646218822Sdim			 || test ! -s conftest.err'
7647218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648218822Sdim  (eval $ac_try) 2>&5
7649218822Sdim  ac_status=$?
7650218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651218822Sdim  (exit $ac_status); }; } &&
7652218822Sdim	 { ac_try='test -s conftest$ac_exeext'
7653218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654218822Sdim  (eval $ac_try) 2>&5
7655218822Sdim  ac_status=$?
7656218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657218822Sdim  (exit $ac_status); }; }; then
7658218822Sdim
7659218822Sdimlt_aix_libpath_sed='
7660218822Sdim    /Import File Strings/,/^$/ {
7661218822Sdim	/^0/ {
7662218822Sdim	    s/^0  *\(.*\)$/\1/
7663218822Sdim	    p
7664218822Sdim	}
7665218822Sdim    }'
7666218822Sdimaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7667218822Sdim# Check for a 64-bit object if we didn't find anything.
7668218822Sdimif test -z "$aix_libpath"; then
7669218822Sdim  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
767077298Sobrienfi
767177298Sobrienelse
7672218822Sdim  echo "$as_me: failed program was:" >&5
7673218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
7674218822Sdim
767577298Sobrienfi
7676218822Sdimrm -f conftest.err conftest.$ac_objext \
7677218822Sdim      conftest$ac_exeext conftest.$ac_ext
7678218822Sdimif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
767977298Sobrien
7680218822Sdim        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7681218822Sdim        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"
7682218822Sdim      else
7683218822Sdim	if test "$host_cpu" = ia64; then
7684218822Sdim	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7685218822Sdim	  allow_undefined_flag="-z nodefs"
7686218822Sdim	  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"
7687218822Sdim	else
7688218822Sdim	 # Determine the default libpath from the value encoded in an
7689218822Sdim	 # empty executable.
7690218822Sdim	 cat >conftest.$ac_ext <<_ACEOF
7691218822Sdim/* confdefs.h.  */
7692218822Sdim_ACEOF
7693218822Sdimcat confdefs.h >>conftest.$ac_ext
7694218822Sdimcat >>conftest.$ac_ext <<_ACEOF
7695218822Sdim/* end confdefs.h.  */
7696218822Sdim
7697218822Sdimint
7698218822Sdimmain ()
7699218822Sdim{
7700218822Sdim
7701218822Sdim  ;
7702218822Sdim  return 0;
7703218822Sdim}
7704218822Sdim_ACEOF
7705218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
7706218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707218822Sdim  (eval $ac_link) 2>conftest.er1
7708218822Sdim  ac_status=$?
7709218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
7710218822Sdim  rm -f conftest.er1
7711218822Sdim  cat conftest.err >&5
7712218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713218822Sdim  (exit $ac_status); } &&
7714218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
7715218822Sdim			 || test ! -s conftest.err'
7716218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717218822Sdim  (eval $ac_try) 2>&5
7718218822Sdim  ac_status=$?
7719218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720218822Sdim  (exit $ac_status); }; } &&
7721218822Sdim	 { ac_try='test -s conftest$ac_exeext'
7722218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723218822Sdim  (eval $ac_try) 2>&5
7724218822Sdim  ac_status=$?
7725218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726218822Sdim  (exit $ac_status); }; }; then
7727218822Sdim
7728218822Sdimlt_aix_libpath_sed='
7729218822Sdim    /Import File Strings/,/^$/ {
7730218822Sdim	/^0/ {
7731218822Sdim	    s/^0  *\(.*\)$/\1/
7732218822Sdim	    p
7733218822Sdim	}
7734218822Sdim    }'
7735218822Sdimaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7736218822Sdim# Check for a 64-bit object if we didn't find anything.
7737218822Sdimif test -z "$aix_libpath"; then
7738218822Sdim  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7739218822Sdimfi
774077298Sobrienelse
7741218822Sdim  echo "$as_me: failed program was:" >&5
7742218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
7743218822Sdim
774477298Sobrienfi
7745218822Sdimrm -f conftest.err conftest.$ac_objext \
7746218822Sdim      conftest$ac_exeext conftest.$ac_ext
7747218822Sdimif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
774877298Sobrien
7749218822Sdim	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7750218822Sdim	  # Warning - without using the other run time loading flags,
7751218822Sdim	  # -berok will link without error, but may produce a broken library.
7752218822Sdim	  no_undefined_flag=' ${wl}-bernotok'
7753218822Sdim	  allow_undefined_flag=' ${wl}-berok'
7754218822Sdim	  # Exported symbols can be pulled into shared objects from archives
7755218822Sdim	  whole_archive_flag_spec='$convenience'
7756218822Sdim	  archive_cmds_need_lc=yes
7757218822Sdim	  # This is similar to how AIX traditionally builds its shared libraries.
7758218822Sdim	  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'
7759218822Sdim	fi
7760218822Sdim      fi
7761218822Sdim      ;;
776277298Sobrien
7763218822Sdim    amigaos*)
7764218822Sdim      if test "$host_cpu" = m68k; then
7765218822Sdim        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)'
7766218822Sdim        hardcode_libdir_flag_spec='-L$libdir'
7767218822Sdim        hardcode_minus_L=yes
7768218822Sdim      fi
7769218822Sdim      # see comment about different semantics on the GNU ld section
7770218822Sdim      ld_shlibs=no
7771218822Sdim      ;;
777238889Sjdp
7773218822Sdim    bsdi[45]*)
7774218822Sdim      export_dynamic_flag_spec=-rdynamic
7775218822Sdim      ;;
777660484Sobrien
7777218822Sdim    cygwin* | mingw* | pw32*)
7778218822Sdim      # When not using gcc, we currently assume that we are using
7779218822Sdim      # Microsoft Visual C++.
7780218822Sdim      # hardcode_libdir_flag_spec is actually meaningless, as there is
7781218822Sdim      # no search path for DLLs.
7782218822Sdim      hardcode_libdir_flag_spec=' '
7783218822Sdim      allow_undefined_flag=unsupported
7784218822Sdim      # Tell ltmain to make .lib files, not .a files.
7785218822Sdim      libext=lib
7786218822Sdim      # Tell ltmain to make .dll files, not .so files.
7787218822Sdim      shrext_cmds=".dll"
7788218822Sdim      # FIXME: Setting linknames here is a bad hack.
7789218822Sdim      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7790218822Sdim      # The linker will automatically build a .lib file if we build a DLL.
7791218822Sdim      old_archive_from_new_cmds='true'
7792218822Sdim      # FIXME: Should let the user specify the lib program.
7793218822Sdim      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7794218822Sdim      fix_srcfile_path='`cygpath -w "$srcfile"`'
7795218822Sdim      enable_shared_with_static_runtimes=yes
7796218822Sdim      ;;
7797218822Sdim
7798218822Sdim    darwin* | rhapsody*)
7799218822Sdim      case $host_os in
7800218822Sdim      rhapsody* | darwin1.[012])
7801218822Sdim	allow_undefined_flag='${wl}-undefined ${wl}suppress'
7802218822Sdim	;;
7803218822Sdim      *) # Darwin 1.3 on
7804218822Sdim	case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7805218822Sdim	10.[012])
7806218822Sdim	  allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7807218822Sdim	  ;;
7808218822Sdim	10.*)
7809218822Sdim	  allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7810218822Sdim	  ;;
7811218822Sdim	esac
7812218822Sdim	;;
7813218822Sdim      esac
7814218822Sdim      archive_cmds_need_lc=no
7815218822Sdim      hardcode_direct=no
7816218822Sdim      hardcode_automatic=yes
7817218822Sdim      hardcode_shlibpath_var=unsupported
7818218822Sdim      whole_archive_flag_spec=''
7819218822Sdim      link_all_deplibs=yes
7820218822Sdim      if test "$GCC" = yes ; then
7821218822Sdim	if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7822218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7823218822Sdimelse
7824218822Sdim  lt_cv_apple_cc_single_mod=no
7825218822Sdim	if test -z "${LT_MULTI_MODULE}"; then
7826218822Sdim	  # By default we will add the -single_module flag. You can override
7827218822Sdim	  # by either setting the environment variable LT_MULTI_MODULE
7828218822Sdim	  # non-empty at configure time, or by adding -multi-module to the
7829218822Sdim	  # link flags.
7830218822Sdim	  echo "int foo(void){return 1;}" > conftest.c
7831218822Sdim	  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7832218822Sdim	      -dynamiclib ${wl}-single_module conftest.c
7833218822Sdim	  if test -f libconftest.dylib; then
7834218822Sdim	      lt_cv_apple_cc_single_mod=yes
7835218822Sdim	      rm libconftest.dylib
7836218822Sdim	  fi
7837218822Sdim	  rm conftest.$ac_ext
7838218822Sdim	fi
783960484Sobrienfi
784060484Sobrien
7841218822Sdim	output_verbose_link_cmd=echo
7842218822Sdim	if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7843218822Sdim	  archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7844218822Sdim	  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}'
7845218822Sdim	else
7846218822Sdim	  archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7847218822Sdim	  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}'
7848218822Sdim	fi
7849218822Sdim	module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7850218822Sdim	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}'
7851218822Sdim      else
7852218822Sdim	case $cc_basename in
7853218822Sdim	xlc*)
7854218822Sdim	  output_verbose_link_cmd=echo
7855218822Sdim	  archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7856218822Sdim	  module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7857218822Sdim	  # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7858218822Sdim	  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}'
7859218822Sdim	  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}'
7860218822Sdim	  ;;
7861218822Sdim	*)
7862218822Sdim	  ld_shlibs=no
7863218822Sdim	  ;;
7864218822Sdim	esac
7865218822Sdim      fi
7866218822Sdim      ;;
786760484Sobrien
7868218822Sdim    dgux*)
7869218822Sdim      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7870218822Sdim      hardcode_libdir_flag_spec='-L$libdir'
7871218822Sdim      hardcode_shlibpath_var=no
7872218822Sdim      ;;
7873218822Sdim
7874218822Sdim    freebsd1*)
7875218822Sdim      ld_shlibs=no
7876218822Sdim      ;;
7877218822Sdim
7878218822Sdim    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7879218822Sdim    # support.  Future versions do this automatically, but an explicit c++rt0.o
7880218822Sdim    # does not break anything, and helps significantly (at the cost of a little
7881218822Sdim    # extra space).
7882218822Sdim    freebsd2.2*)
7883218822Sdim      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7884218822Sdim      hardcode_libdir_flag_spec='-R$libdir'
7885218822Sdim      hardcode_direct=yes
7886218822Sdim      hardcode_shlibpath_var=no
7887218822Sdim      ;;
7888218822Sdim
7889218822Sdim    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7890218822Sdim    freebsd2*)
7891218822Sdim      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7892218822Sdim      hardcode_direct=yes
7893218822Sdim      hardcode_minus_L=yes
7894218822Sdim      hardcode_shlibpath_var=no
7895218822Sdim      ;;
7896218822Sdim
7897218822Sdim    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7898218822Sdim    freebsd* | dragonfly*)
7899218822Sdim      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7900218822Sdim      hardcode_libdir_flag_spec='-R$libdir'
7901218822Sdim      hardcode_direct=yes
7902218822Sdim      hardcode_shlibpath_var=no
7903218822Sdim      ;;
7904218822Sdim
7905218822Sdim    hpux9*)
7906218822Sdim      if test "$GCC" = yes; then
7907218822Sdim	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'
7908218822Sdim      else
7909218822Sdim	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'
7910218822Sdim      fi
7911218822Sdim      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7912218822Sdim      hardcode_libdir_separator=:
7913218822Sdim      hardcode_direct=yes
7914218822Sdim
7915218822Sdim      # hardcode_minus_L: Not really in the search PATH,
7916218822Sdim      # but as the default location of the library.
7917218822Sdim      hardcode_minus_L=yes
7918218822Sdim      export_dynamic_flag_spec='${wl}-E'
7919218822Sdim      ;;
7920218822Sdim
7921218822Sdim    hpux10*)
7922218822Sdim      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7923218822Sdim	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7924218822Sdim      else
7925218822Sdim	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7926218822Sdim      fi
7927218822Sdim      if test "$with_gnu_ld" = no; then
7928218822Sdim	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7929218822Sdim	hardcode_libdir_flag_spec_ld='+b $libdir'
7930218822Sdim	hardcode_libdir_separator=:
7931218822Sdim	hardcode_direct=yes
7932218822Sdim	hardcode_direct_absolute=yes
7933218822Sdim	export_dynamic_flag_spec='${wl}-E'
7934218822Sdim	# hardcode_minus_L: Not really in the search PATH,
7935218822Sdim	# but as the default location of the library.
7936218822Sdim	hardcode_minus_L=yes
7937218822Sdim      fi
7938218822Sdim      ;;
7939218822Sdim
7940218822Sdim    hpux11*)
7941218822Sdim      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7942218822Sdim	case $host_cpu in
7943218822Sdim	hppa*64*)
7944218822Sdim	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7945218822Sdim	  ;;
7946218822Sdim	ia64*)
7947218822Sdim	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7948218822Sdim	  ;;
7949218822Sdim	*)
7950218822Sdim	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7951218822Sdim	  ;;
7952218822Sdim	esac
7953218822Sdim      else
7954218822Sdim	case $host_cpu in
7955218822Sdim	hppa*64*)
7956218822Sdim	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7957218822Sdim	  ;;
7958218822Sdim	ia64*)
7959218822Sdim	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7960218822Sdim	  ;;
7961218822Sdim	*)
7962218822Sdim	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7963218822Sdim	  ;;
7964218822Sdim	esac
7965218822Sdim      fi
7966218822Sdim      if test "$with_gnu_ld" = no; then
7967218822Sdim	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7968218822Sdim	hardcode_libdir_separator=:
7969218822Sdim
7970218822Sdim	case $host_cpu in
7971218822Sdim	hppa*64*|ia64*)
7972218822Sdim	  hardcode_direct=no
7973218822Sdim	  hardcode_shlibpath_var=no
7974218822Sdim	  ;;
7975218822Sdim	*)
7976218822Sdim	  hardcode_direct=yes
7977218822Sdim	  hardcode_direct_absolute=yes
7978218822Sdim	  export_dynamic_flag_spec='${wl}-E'
7979218822Sdim
7980218822Sdim	  # hardcode_minus_L: Not really in the search PATH,
7981218822Sdim	  # but as the default location of the library.
7982218822Sdim	  hardcode_minus_L=yes
7983218822Sdim	  ;;
7984218822Sdim	esac
7985218822Sdim      fi
7986218822Sdim      ;;
7987218822Sdim
7988218822Sdim    irix5* | irix6* | nonstopux*)
7989218822Sdim      if test "$GCC" = yes; then
7990218822Sdim	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'
7991218822Sdim	# Try to use the -exported_symbol ld option, if it does not
7992218822Sdim	# work, assume that -exports_file does not work either and
7993218822Sdim	# implicitly export all symbols.
7994218822Sdim        save_LDFLAGS="$LDFLAGS"
7995218822Sdim        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7996218822Sdim        cat >conftest.$ac_ext <<_ACEOF
7997218822Sdimint foo(void) {}
7998218822Sdim_ACEOF
7999218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
8000218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001218822Sdim  (eval $ac_link) 2>conftest.er1
8002218822Sdim  ac_status=$?
8003218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
8004218822Sdim  rm -f conftest.er1
8005218822Sdim  cat conftest.err >&5
8006218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007218822Sdim  (exit $ac_status); } &&
8008218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
8009218822Sdim			 || test ! -s conftest.err'
8010218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011218822Sdim  (eval $ac_try) 2>&5
8012218822Sdim  ac_status=$?
8013218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014218822Sdim  (exit $ac_status); }; } &&
8015218822Sdim	 { ac_try='test -s conftest$ac_exeext'
8016218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017218822Sdim  (eval $ac_try) 2>&5
8018218822Sdim  ac_status=$?
8019218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020218822Sdim  (exit $ac_status); }; }; then
8021218822Sdim  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'
8022218822Sdim
802377298Sobrienelse
8024218822Sdim  echo "$as_me: failed program was:" >&5
8025218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
8026218822Sdim
802777298Sobrienfi
8028218822Sdimrm -f conftest.err conftest.$ac_objext \
8029218822Sdim      conftest$ac_exeext conftest.$ac_ext
8030218822Sdim        LDFLAGS="$save_LDFLAGS"
8031218822Sdim      else
8032218822Sdim	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'
8033218822Sdim	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'
8034218822Sdim      fi
8035218822Sdim      archive_cmds_need_lc='no'
8036218822Sdim      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8037218822Sdim      hardcode_libdir_separator=:
8038218822Sdim      inherit_rpath=yes
8039218822Sdim      link_all_deplibs=yes
8040218822Sdim      ;;
804177298Sobrien
8042218822Sdim    netbsd*)
8043218822Sdim      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8044218822Sdim	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8045218822Sdim      else
8046218822Sdim	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8047218822Sdim      fi
8048218822Sdim      hardcode_libdir_flag_spec='-R$libdir'
8049218822Sdim      hardcode_direct=yes
8050218822Sdim      hardcode_shlibpath_var=no
8051218822Sdim      ;;
805277298Sobrien
8053218822Sdim    newsos6)
8054218822Sdim      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8055218822Sdim      hardcode_direct=yes
8056218822Sdim      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8057218822Sdim      hardcode_libdir_separator=:
8058218822Sdim      hardcode_shlibpath_var=no
8059130561Sobrien      ;;
8060218822Sdim
8061218822Sdim    *nto* | *qnx*)
8062130561Sobrien      ;;
8063218822Sdim
8064218822Sdim    openbsd*)
8065218822Sdim      hardcode_direct=yes
8066218822Sdim      hardcode_shlibpath_var=no
8067218822Sdim      hardcode_direct_absolute=yes
8068218822Sdim      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8069218822Sdim	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8070218822Sdim	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8071218822Sdim	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8072218822Sdim	export_dynamic_flag_spec='${wl}-E'
8073218822Sdim      else
8074218822Sdim        case $host_os in
8075218822Sdim	openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8076218822Sdim	  archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8077218822Sdim	  hardcode_libdir_flag_spec='-R$libdir'
8078218822Sdim	  ;;
8079218822Sdim	*)
8080218822Sdim	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8081218822Sdim	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8082218822Sdim	  ;;
8083218822Sdim        esac
8084218822Sdim      fi
8085130561Sobrien      ;;
8086218822Sdim
8087218822Sdim    os2*)
8088218822Sdim      hardcode_libdir_flag_spec='-L$libdir'
8089218822Sdim      hardcode_minus_L=yes
8090218822Sdim      allow_undefined_flag=unsupported
8091218822Sdim      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'
8092218822Sdim      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
809338889Sjdp      ;;
8094218822Sdim
8095218822Sdim    osf3*)
8096218822Sdim      if test "$GCC" = yes; then
8097218822Sdim	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8098218822Sdim	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'
8099218822Sdim      else
8100218822Sdim	allow_undefined_flag=' -expect_unresolved \*'
8101218822Sdim	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'
8102218822Sdim      fi
8103218822Sdim      archive_cmds_need_lc='no'
8104218822Sdim      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8105218822Sdim      hardcode_libdir_separator=:
810638889Sjdp      ;;
8107218822Sdim
8108218822Sdim    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8109218822Sdim      if test "$GCC" = yes; then
8110218822Sdim	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8111218822Sdim	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'
8112218822Sdim	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8113218822Sdim      else
8114218822Sdim	allow_undefined_flag=' -expect_unresolved \*'
8115218822Sdim	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'
8116218822Sdim	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~
8117218822Sdim	$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'
8118218822Sdim
8119218822Sdim	# Both c and cxx compiler support -rpath directly
8120218822Sdim	hardcode_libdir_flag_spec='-rpath $libdir'
8121218822Sdim      fi
8122218822Sdim      archive_cmds_need_lc='no'
8123218822Sdim      hardcode_libdir_separator=:
812438889Sjdp      ;;
812538889Sjdp
8126218822Sdim    solaris*)
8127218822Sdim      no_undefined_flag=' -z defs'
8128218822Sdim      if test "$GCC" = yes; then
8129218822Sdim	wlarc='${wl}'
8130218822Sdim	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8131218822Sdim	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8132218822Sdim	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8133218822Sdim      else
8134218822Sdim	case `$CC -V 2>&1` in
8135218822Sdim	*"Compilers 5.0"*)
8136218822Sdim	  wlarc=''
8137218822Sdim	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8138218822Sdim	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8139218822Sdim	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8140218822Sdim	  ;;
8141218822Sdim	*)
8142218822Sdim	  wlarc='${wl}'
8143218822Sdim	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8144218822Sdim	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8145218822Sdim	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8146218822Sdim	  ;;
8147218822Sdim	esac
8148218822Sdim      fi
8149218822Sdim      hardcode_libdir_flag_spec='-R$libdir'
8150218822Sdim      hardcode_shlibpath_var=no
8151218822Sdim      case $host_os in
8152218822Sdim      solaris2.[0-5] | solaris2.[0-5].*) ;;
8153218822Sdim      *)
8154218822Sdim	# The compiler driver will combine and reorder linker options,
8155218822Sdim	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8156218822Sdim	# but is careful enough not to reorder.
8157218822Sdim	# Supported since Solaris 2.6 (maybe 2.5.1?)
8158218822Sdim	if test "$GCC" = yes; then
8159218822Sdim	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8160218822Sdim	else
8161218822Sdim	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8162218822Sdim	fi
8163218822Sdim	;;
8164218822Sdim      esac
8165218822Sdim      link_all_deplibs=yes
816691041Sobrien      ;;
8167218822Sdim
8168218822Sdim    sunos4*)
8169218822Sdim      if test "x$host_vendor" = xsequent; then
8170218822Sdim	# Use $CC to link under sequent, because it throws in some extra .o
8171218822Sdim	# files that make .init and .fini sections work.
8172218822Sdim	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8173218822Sdim      else
8174218822Sdim	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8175218822Sdim      fi
8176218822Sdim      hardcode_libdir_flag_spec='-L$libdir'
8177218822Sdim      hardcode_direct=yes
8178218822Sdim      hardcode_minus_L=yes
8179218822Sdim      hardcode_shlibpath_var=no
818091041Sobrien      ;;
8181218822Sdim
8182218822Sdim    sysv4)
8183218822Sdim      case $host_vendor in
8184218822Sdim	sni)
8185218822Sdim	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8186218822Sdim	  hardcode_direct=yes # is this really true???
8187218822Sdim	;;
8188218822Sdim	siemens)
8189218822Sdim	  ## LD is ld it makes a PLAMLIB
8190218822Sdim	  ## CC just makes a GrossModule.
8191218822Sdim	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8192218822Sdim	  reload_cmds='$CC -r -o $output$reload_objs'
8193218822Sdim	  hardcode_direct=no
8194218822Sdim        ;;
8195218822Sdim	motorola)
8196218822Sdim	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8197218822Sdim	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8198218822Sdim	;;
8199218822Sdim      esac
8200218822Sdim      runpath_var='LD_RUN_PATH'
8201218822Sdim      hardcode_shlibpath_var=no
8202218822Sdim      ;;
8203218822Sdim
8204218822Sdim    sysv4.3*)
8205218822Sdim      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8206218822Sdim      hardcode_shlibpath_var=no
8207218822Sdim      export_dynamic_flag_spec='-Bexport'
8208218822Sdim      ;;
8209218822Sdim
8210218822Sdim    sysv4*MP*)
8211218822Sdim      if test -d /usr/nec; then
8212218822Sdim	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8213218822Sdim	hardcode_shlibpath_var=no
8214218822Sdim	runpath_var=LD_RUN_PATH
8215218822Sdim	hardcode_runpath_var=yes
8216218822Sdim	ld_shlibs=yes
8217218822Sdim      fi
8218218822Sdim      ;;
8219218822Sdim
8220218822Sdim    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8221218822Sdim      no_undefined_flag='${wl}-z,text'
8222218822Sdim      archive_cmds_need_lc=no
8223218822Sdim      hardcode_shlibpath_var=no
8224218822Sdim      runpath_var='LD_RUN_PATH'
8225218822Sdim
8226218822Sdim      if test "$GCC" = yes; then
8227218822Sdim	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8228218822Sdim	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8229218822Sdim      else
8230218822Sdim	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8231218822Sdim	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8232218822Sdim      fi
8233218822Sdim      ;;
8234218822Sdim
8235218822Sdim    sysv5* | sco3.2v5* | sco5v6*)
8236218822Sdim      # Note: We can NOT use -z defs as we might desire, because we do not
8237218822Sdim      # link with -lc, and that would cause any symbols used from libc to
8238218822Sdim      # always be unresolved, which means just about no library would
8239218822Sdim      # ever link correctly.  If we're not using GNU ld we use -z text
8240218822Sdim      # though, which does catch some bad symbols but isn't as heavy-handed
8241218822Sdim      # as -z defs.
8242218822Sdim      no_undefined_flag='${wl}-z,text'
8243218822Sdim      allow_undefined_flag='${wl}-z,nodefs'
8244218822Sdim      archive_cmds_need_lc=no
8245218822Sdim      hardcode_shlibpath_var=no
8246218822Sdim      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8247218822Sdim      hardcode_libdir_separator=':'
8248218822Sdim      link_all_deplibs=yes
8249218822Sdim      export_dynamic_flag_spec='${wl}-Bexport'
8250218822Sdim      runpath_var='LD_RUN_PATH'
8251218822Sdim
8252218822Sdim      if test "$GCC" = yes; then
8253218822Sdim	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8254218822Sdim	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8255218822Sdim      else
8256218822Sdim	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8257218822Sdim	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8258218822Sdim      fi
8259218822Sdim      ;;
8260218822Sdim
8261218822Sdim    uts4*)
8262218822Sdim      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8263218822Sdim      hardcode_libdir_flag_spec='-L$libdir'
8264218822Sdim      hardcode_shlibpath_var=no
8265218822Sdim      ;;
8266218822Sdim
8267218822Sdim    *)
8268218822Sdim      ld_shlibs=no
8269218822Sdim      ;;
827091041Sobrien    esac
8271218822Sdim
8272218822Sdim    if test x$host_vendor = xsni; then
8273218822Sdim      case $host in
8274218822Sdim      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8275218822Sdim	export_dynamic_flag_spec='${wl}-Blargedynsym'
8276218822Sdim	;;
8277218822Sdim      esac
8278218822Sdim    fi
827991041Sobrien  fi
828091041Sobrien
8281218822Sdimecho "$as_me:$LINENO: result: $ld_shlibs" >&5
8282218822Sdimecho "${ECHO_T}$ld_shlibs" >&6
8283218822Sdimtest "$ld_shlibs" = no && can_build_shared=no
828477298Sobrien
8285218822Sdimwith_gnu_ld=$with_gnu_ld
828660484Sobrien
828760484Sobrien
828877298Sobrien
828960484Sobrien
829060484Sobrien
829160484Sobrien
829238889Sjdp
829360484Sobrien
8294218822Sdim
8295218822Sdim
8296218822Sdim
8297218822Sdim
8298218822Sdim
8299218822Sdim
8300218822Sdim
830160484Sobrien#
8302218822Sdim# Do we need to explicitly link libc?
830360484Sobrien#
8304218822Sdimcase "x$archive_cmds_need_lc" in
8305218822Sdimx|xyes)
8306218822Sdim  # Assume -lc should be added
8307218822Sdim  archive_cmds_need_lc=yes
8308218822Sdim
8309218822Sdim  if test "$enable_shared" = yes && test "$GCC" = yes; then
8310218822Sdim    case $archive_cmds in
8311218822Sdim    *'~'*)
8312218822Sdim      # FIXME: we may have to deal with multi-command sequences.
8313218822Sdim      ;;
8314218822Sdim    '$CC '*)
8315218822Sdim      # Test whether the compiler implicitly links with -lc since on some
8316218822Sdim      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8317218822Sdim      # to ld, don't add -lc before -lgcc.
8318218822Sdim      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8319218822Sdimecho $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8320218822Sdim      $RM conftest*
8321218822Sdim      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8322218822Sdim
8323218822Sdim      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8324218822Sdim  (eval $ac_compile) 2>&5
8325218822Sdim  ac_status=$?
8326218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327218822Sdim  (exit $ac_status); } 2>conftest.err; then
8328218822Sdim        soname=conftest
8329218822Sdim        lib=conftest
8330218822Sdim        libobjs=conftest.$ac_objext
8331218822Sdim        deplibs=
8332218822Sdim        wl=$lt_prog_compiler_wl
8333218822Sdim	pic_flag=$lt_prog_compiler_pic
8334218822Sdim        compiler_flags=-v
8335218822Sdim        linker_flags=-v
8336218822Sdim        verstring=
8337218822Sdim        output_objdir=.
8338218822Sdim        libname=conftest
8339218822Sdim        lt_save_allow_undefined_flag=$allow_undefined_flag
8340218822Sdim        allow_undefined_flag=
8341218822Sdim        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8342218822Sdim  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8343218822Sdim  ac_status=$?
8344218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345218822Sdim  (exit $ac_status); }
8346218822Sdim        then
8347218822Sdim	  archive_cmds_need_lc=no
8348218822Sdim        else
8349218822Sdim	  archive_cmds_need_lc=yes
8350218822Sdim        fi
8351218822Sdim        allow_undefined_flag=$lt_save_allow_undefined_flag
8352218822Sdim      else
8353218822Sdim        cat conftest.err 1>&5
8354218822Sdim      fi
8355218822Sdim      $RM conftest*
8356218822Sdim      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8357218822Sdimecho "${ECHO_T}$archive_cmds_need_lc" >&6
8358218822Sdim      ;;
8359218822Sdim    esac
836060484Sobrien  fi
8361218822Sdim  ;;
8362218822Sdimesac
836360484Sobrien
836460484Sobrien
836538889Sjdp
836638889Sjdp
836760484Sobrien
836860484Sobrien
836960484Sobrien
837060484Sobrien
837177298Sobrien
837277298Sobrien
837338889Sjdp
837438889Sjdp
837538889Sjdp
837638889Sjdp
837738889Sjdp
837877298Sobrien
837977298Sobrien
838038889Sjdp
8381218822Sdim
8382218822Sdim
8383218822Sdim
8384218822Sdim
8385218822Sdim
8386218822Sdim
8387218822Sdim
8388218822Sdim
8389218822Sdim
8390218822Sdim
8391218822Sdim
8392218822Sdim
8393218822Sdim
8394218822Sdim
8395218822Sdim
8396218822Sdim
8397218822Sdim
8398218822Sdim
8399218822Sdim
8400218822Sdim
8401218822Sdim
8402218822Sdim
8403218822Sdim
8404218822Sdim
8405218822Sdim
8406218822Sdim
8407218822Sdim
8408218822Sdim
8409218822Sdim
8410218822Sdim
8411218822Sdim
8412218822Sdim
8413218822Sdim
8414218822Sdim
8415218822Sdim
8416218822Sdim
8417218822Sdim
8418218822Sdim
8419218822Sdim
8420218822Sdim
8421218822Sdim
8422218822Sdim
8423218822Sdim
8424218822Sdim
8425218822Sdim
8426218822Sdim
8427218822Sdim
8428218822Sdim
8429218822Sdim
8430218822Sdim
8431218822Sdim
8432218822Sdim
8433218822Sdim
8434218822Sdim
8435218822Sdim
8436218822Sdim
8437218822Sdim
8438218822Sdim
8439218822Sdim
8440218822Sdim
8441218822Sdim
8442218822Sdim
8443218822Sdim
8444218822Sdim
8445218822Sdim
8446218822Sdim
8447218822Sdim
8448218822Sdim
8449218822Sdim
8450218822Sdim
8451218822Sdim
8452218822Sdim
8453218822Sdim
8454218822Sdim
8455218822Sdim
8456218822Sdim
8457218822Sdim
8458218822Sdim
8459218822Sdim
8460218822Sdim
8461218822Sdim
8462218822Sdim
8463218822Sdim
8464218822Sdim
8465218822Sdim
8466218822Sdim
8467218822Sdim
8468218822Sdim
8469218822Sdim
8470218822Sdim
8471218822Sdim
8472218822Sdim
8473218822Sdim
8474218822Sdim
8475218822Sdim
8476218822Sdim
8477218822Sdim
8478218822Sdim
8479218822Sdim
8480218822Sdim
8481218822Sdim
8482218822Sdim
8483218822Sdim
8484218822Sdim
8485218822Sdim
8486218822Sdim
8487218822Sdim
8488218822Sdim
8489218822Sdim
8490218822Sdim
8491218822Sdim
8492218822Sdim
8493218822Sdim
8494218822Sdim
8495218822Sdim
8496218822Sdim
8497218822Sdim
8498218822Sdim
8499218822Sdim
8500218822Sdim
8501218822Sdim
8502218822Sdim
8503218822Sdim
8504218822Sdim
8505218822Sdim
8506218822Sdim
8507218822Sdim
8508218822Sdim
8509218822Sdim
8510218822Sdim
8511218822Sdim
8512218822Sdim
8513218822Sdim
8514218822Sdim
8515218822Sdim
8516218822Sdim
8517218822Sdim
8518218822Sdim
8519218822Sdim
8520218822Sdim  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8521218822Sdimecho $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8522218822SdimwithGCC=$GCC
8523218822Sdimif test "$withGCC" = yes; then
8524218822Sdim  case $host_os in
8525218822Sdim    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8526218822Sdim    *) lt_awk_arg="/^libraries:/" ;;
8527218822Sdim  esac
8528218822Sdim  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8529218822Sdim  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8530218822Sdim    # if the path contains ";" then we assume it to be the separator
8531218822Sdim    # otherwise default to the standard path separator (i.e. ":") - it is
8532218822Sdim    # assumed that no part of a normal pathname contains ";" but that should
8533218822Sdim    # okay in the real world where ";" in dirpaths is itself problematic.
8534218822Sdim    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8535218822Sdim  else
8536218822Sdim    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8537218822Sdim  fi
8538218822Sdim  # Ok, now we have the path, separated by spaces, we can step through it
8539218822Sdim  # and add multilib dir if necessary.
8540218822Sdim  lt_tmp_lt_search_path_spec=
8541218822Sdim  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8542218822Sdim  for lt_sys_path in $lt_search_path_spec; do
8543218822Sdim    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8544218822Sdim      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8545218822Sdim    else
8546218822Sdim      test -d "$lt_sys_path" && \
8547218822Sdim	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
854833965Sjdp    fi
854933965Sjdp  done
8550218822Sdim  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8551218822SdimBEGIN {RS=" "; FS="/|\n";} {
8552218822Sdim  lt_foo="";
8553218822Sdim  lt_count=0;
8554218822Sdim  for (lt_i = NF; lt_i > 0; lt_i--) {
8555218822Sdim    if ($lt_i != "" && $lt_i != ".") {
8556218822Sdim      if ($lt_i == "..") {
8557218822Sdim        lt_count++;
8558218822Sdim      } else {
8559218822Sdim        if (lt_count == 0) {
8560218822Sdim          lt_foo="/" $lt_i lt_foo;
8561218822Sdim        } else {
8562218822Sdim          lt_count--;
8563218822Sdim        }
8564218822Sdim      }
8565218822Sdim    }
8566218822Sdim  }
8567218822Sdim  if (lt_foo != "") { lt_freq[lt_foo]++; }
8568218822Sdim  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8569218822Sdim}'`
8570218822Sdim  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
857133965Sjdpelse
8572218822Sdim  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
857333965Sjdpfi
8574218822Sdimlibrary_names_spec=
8575218822Sdimlibname_spec='lib$name'
8576218822Sdimsoname_spec=
8577218822Sdimshrext_cmds=".so"
8578218822Sdimpostinstall_cmds=
8579218822Sdimpostuninstall_cmds=
8580218822Sdimfinish_cmds=
8581218822Sdimfinish_eval=
8582218822Sdimshlibpath_var=
8583218822Sdimshlibpath_overrides_runpath=unknown
8584218822Sdimversion_type=none
8585218822Sdimdynamic_linker="$host_os ld.so"
8586218822Sdimsys_lib_dlsearch_path_spec="/lib /usr/lib"
8587218822Sdimneed_lib_prefix=unknown
8588218822Sdimhardcode_into_libs=no
858933965Sjdp
8590218822Sdim# when you set need_version to no, make sure it does not cause -set_version
8591218822Sdim# flags to be left without arguments
8592218822Sdimneed_version=unknown
8593218822Sdim
8594218822Sdimcase $host_os in
8595218822Sdimaix3*)
8596218822Sdim  version_type=linux
8597218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8598218822Sdim  shlibpath_var=LIBPATH
8599218822Sdim
8600218822Sdim  # AIX 3 has no versioning support, so we append a major version to the name.
8601218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8602218822Sdim  ;;
8603218822Sdim
8604218822Sdimaix4* | aix5*)
8605218822Sdim  version_type=linux
8606218822Sdim  need_lib_prefix=no
8607218822Sdim  need_version=no
8608218822Sdim  hardcode_into_libs=yes
8609218822Sdim  if test "$host_cpu" = ia64; then
8610218822Sdim    # AIX 5 supports IA64
8611218822Sdim    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8612218822Sdim    shlibpath_var=LD_LIBRARY_PATH
8613218822Sdim  else
8614218822Sdim    # With GCC up to 2.95.x, collect2 would create an import file
8615218822Sdim    # for dependence libraries.  The import file would start with
8616218822Sdim    # the line `#! .'.  This would cause the generated library to
8617218822Sdim    # depend on `.', always an invalid library.  This was fixed in
8618218822Sdim    # development snapshots of GCC prior to 3.0.
8619218822Sdim    case $host_os in
8620218822Sdim      aix4 | aix4.[01] | aix4.[01].*)
8621218822Sdim      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8622218822Sdim	   echo ' yes '
8623218822Sdim	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8624218822Sdim	:
8625218822Sdim      else
8626218822Sdim	can_build_shared=no
862738889Sjdp      fi
8628218822Sdim      ;;
8629218822Sdim    esac
8630218822Sdim    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8631218822Sdim    # soname into executable. Probably we can add versioning support to
8632218822Sdim    # collect2, so additional links can be useful in future.
8633218822Sdim    if test "$aix_use_runtimelinking" = yes; then
8634218822Sdim      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8635218822Sdim      # instead of lib<name>.a to let people know that these are not
8636218822Sdim      # typical AIX shared libraries.
8637218822Sdim      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8638218822Sdim    else
8639218822Sdim      # We preserve .a as extension for shared libraries through AIX4.2
8640218822Sdim      # and later when we are not doing run time linking.
8641218822Sdim      library_names_spec='${libname}${release}.a $libname.a'
8642218822Sdim      soname_spec='${libname}${release}${shared_ext}$major'
864338889Sjdp    fi
8644218822Sdim    shlibpath_var=LIBPATH
864538889Sjdp  fi
8646218822Sdim  ;;
864733965Sjdp
8648218822Sdimamigaos*)
8649218822Sdim  if test "$host_cpu" = m68k; then
8650218822Sdim    library_names_spec='$libname.ixlibrary $libname.a'
8651218822Sdim    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8652218822Sdim    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'
8653218822Sdim  else
8654218822Sdim    dynamic_linker=no
865560484Sobrien  fi
8656218822Sdim  ;;
865738889Sjdp
8658218822Sdimbeos*)
8659218822Sdim  library_names_spec='${libname}${shared_ext}'
8660218822Sdim  dynamic_linker="$host_os ld.so"
8661218822Sdim  shlibpath_var=LIBRARY_PATH
8662218822Sdim  ;;
866338889Sjdp
8664218822Sdimbsdi[45]*)
8665218822Sdim  version_type=linux
8666218822Sdim  need_version=no
8667218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8668218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8669218822Sdim  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8670218822Sdim  shlibpath_var=LD_LIBRARY_PATH
8671218822Sdim  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8672218822Sdim  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8673218822Sdim  # the default ld.so.conf also contains /usr/contrib/lib and
8674218822Sdim  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8675218822Sdim  # libtool to hard-code these into programs
8676218822Sdim  ;;
867738889Sjdp
8678218822Sdimcygwin* | mingw* | pw32*)
8679218822Sdim  version_type=windows
8680218822Sdim  shrext_cmds=".dll"
8681218822Sdim  need_version=no
8682218822Sdim  need_lib_prefix=no
868360484Sobrien
8684218822Sdim  case $withGCC,$host_os in
8685218822Sdim  yes,cygwin* | yes,mingw* | yes,pw32*)
8686218822Sdim    library_names_spec='$libname.dll.a'
8687218822Sdim    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8688218822Sdim    postinstall_cmds='base_file=`basename \${file}`~
8689218822Sdim      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8690218822Sdim      dldir=$destdir/`dirname \$dlpath`~
8691218822Sdim      test -d \$dldir || mkdir -p \$dldir~
8692218822Sdim      $install_prog $dir/$dlname \$dldir/$dlname~
8693218822Sdim      chmod a+x \$dldir/$dlname~
8694218822Sdim      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8695218822Sdim        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8696218822Sdim      fi'
8697218822Sdim    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8698218822Sdim      dlpath=$dir/\$dldll~
8699218822Sdim       $RM \$dlpath'
8700218822Sdim    shlibpath_overrides_runpath=yes
870160484Sobrien
8702218822Sdim    case $host_os in
8703218822Sdim    cygwin*)
8704218822Sdim      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8705218822Sdim      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8706218822Sdim      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8707218822Sdim      ;;
8708218822Sdim    mingw*)
8709218822Sdim      # MinGW DLLs use traditional 'lib' prefix
8710218822Sdim      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8711218822Sdim      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8712218822Sdim      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8713218822Sdim        # It is most probably a Windows format PATH printed by
8714218822Sdim        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8715218822Sdim        # path with ; separators, and with drive letters. We can handle the
8716218822Sdim        # drive letters (cygwin fileutils understands them), so leave them,
8717218822Sdim        # especially as we might pass files found there to a mingw objdump,
8718218822Sdim        # which wouldn't understand a cygwinified path. Ahh.
8719218822Sdim        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8720218822Sdim      else
8721218822Sdim        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8722218822Sdim      fi
8723218822Sdim      ;;
8724218822Sdim    pw32*)
8725218822Sdim      # pw32 DLLs use 'pw' prefix rather than 'lib'
8726218822Sdim      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8727218822Sdim      ;;
8728218822Sdim    esac
8729218822Sdim    ;;
8730218822Sdim
8731218822Sdim  *)
8732218822Sdim    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8733218822Sdim    ;;
8734218822Sdim  esac
8735218822Sdim  dynamic_linker='Win32 ld.exe'
8736218822Sdim  # FIXME: first we should search . and the directory the executable is in
8737218822Sdim  shlibpath_var=PATH
8738218822Sdim  ;;
8739218822Sdim
8740218822Sdimdarwin* | rhapsody*)
8741218822Sdim  dynamic_linker="$host_os dyld"
8742218822Sdim  version_type=darwin
8743218822Sdim  need_lib_prefix=no
8744218822Sdim  need_version=no
8745218822Sdim  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8746218822Sdim  soname_spec='${libname}${release}${major}$shared_ext'
8747218822Sdim  shlibpath_overrides_runpath=yes
8748218822Sdim  shlibpath_var=DYLD_LIBRARY_PATH
8749218822Sdim  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8750218822Sdim
8751218822Sdim  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8752218822Sdim  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8753218822Sdim  ;;
8754218822Sdim
8755218822Sdimdgux*)
8756218822Sdim  version_type=linux
8757218822Sdim  need_lib_prefix=no
8758218822Sdim  need_version=no
8759218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8760218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8761218822Sdim  shlibpath_var=LD_LIBRARY_PATH
8762218822Sdim  ;;
8763218822Sdim
8764218822Sdimfreebsd1*)
8765218822Sdim  dynamic_linker=no
8766218822Sdim  ;;
8767218822Sdim
8768218822Sdimfreebsd* | dragonfly*)
8769218822Sdim  # DragonFly does not have aout.  When/if they implement a new
8770218822Sdim  # versioning mechanism, adjust this.
8771218822Sdim  if test -x /usr/bin/objformat; then
8772218822Sdim    objformat=`/usr/bin/objformat`
877333965Sjdp  else
8774218822Sdim    case $host_os in
8775218822Sdim    freebsd[123]*) objformat=aout ;;
8776218822Sdim    *) objformat=elf ;;
8777218822Sdim    esac
877833965Sjdp  fi
8779218822Sdim  version_type=freebsd-$objformat
8780218822Sdim  case $version_type in
8781218822Sdim    freebsd-elf*)
8782218822Sdim      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8783218822Sdim      need_version=no
8784218822Sdim      need_lib_prefix=no
8785218822Sdim      ;;
8786218822Sdim    freebsd-*)
8787218822Sdim      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8788218822Sdim      need_version=yes
8789218822Sdim      ;;
8790218822Sdim  esac
8791218822Sdim  shlibpath_var=LD_LIBRARY_PATH
8792218822Sdim  case $host_os in
8793218822Sdim  freebsd2*)
8794218822Sdim    shlibpath_overrides_runpath=yes
8795218822Sdim    ;;
8796218822Sdim  freebsd3.[01]* | freebsdelf3.[01]*)
8797218822Sdim    shlibpath_overrides_runpath=yes
8798218822Sdim    hardcode_into_libs=yes
8799218822Sdim    ;;
8800218822Sdim  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8801218822Sdim  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8802218822Sdim    shlibpath_overrides_runpath=no
8803218822Sdim    hardcode_into_libs=yes
8804218822Sdim    ;;
8805218822Sdim  *) # from 4.6 on, and DragonFly
8806218822Sdim    shlibpath_overrides_runpath=yes
8807218822Sdim    hardcode_into_libs=yes
8808218822Sdim    ;;
8809218822Sdim  esac
8810218822Sdim  ;;
881133965Sjdp
8812218822Sdimgnu*)
8813218822Sdim  version_type=linux
8814218822Sdim  need_lib_prefix=no
8815218822Sdim  need_version=no
8816218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8817218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8818218822Sdim  shlibpath_var=LD_LIBRARY_PATH
8819218822Sdim  hardcode_into_libs=yes
8820218822Sdim  ;;
882133965Sjdp
8822218822Sdimhpux9* | hpux10* | hpux11*)
8823218822Sdim  # Give a soname corresponding to the major version so that dld.sl refuses to
8824218822Sdim  # link against other versions.
8825218822Sdim  version_type=sunos
8826218822Sdim  need_lib_prefix=no
8827218822Sdim  need_version=no
8828218822Sdim  case $host_cpu in
8829218822Sdim  ia64*)
8830218822Sdim    shrext_cmds='.so'
8831218822Sdim    hardcode_into_libs=yes
8832218822Sdim    dynamic_linker="$host_os dld.so"
8833218822Sdim    shlibpath_var=LD_LIBRARY_PATH
8834218822Sdim    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8835218822Sdim    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836218822Sdim    soname_spec='${libname}${release}${shared_ext}$major'
8837218822Sdim    if test "X$HPUX_IA64_MODE" = X32; then
8838218822Sdim      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8839218822Sdim    else
8840218822Sdim      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8841218822Sdim    fi
8842218822Sdim    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8843218822Sdim    ;;
8844218822Sdim  hppa*64*)
8845218822Sdim    shrext_cmds='.sl'
8846218822Sdim    hardcode_into_libs=yes
8847218822Sdim    dynamic_linker="$host_os dld.sl"
8848218822Sdim    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8849218822Sdim    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8850218822Sdim    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851218822Sdim    soname_spec='${libname}${release}${shared_ext}$major'
8852218822Sdim    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8853218822Sdim    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8854218822Sdim    ;;
8855218822Sdim  *)
8856218822Sdim    shrext_cmds='.sl'
8857218822Sdim    dynamic_linker="$host_os dld.sl"
8858218822Sdim    shlibpath_var=SHLIB_PATH
8859218822Sdim    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8860218822Sdim    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861218822Sdim    soname_spec='${libname}${release}${shared_ext}$major'
8862218822Sdim    ;;
8863218822Sdim  esac
8864218822Sdim  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8865218822Sdim  postinstall_cmds='chmod 555 $lib'
8866218822Sdim  ;;
886733965Sjdp
8868218822Sdiminterix[3-9]*)
8869218822Sdim  version_type=linux
8870218822Sdim  need_lib_prefix=no
8871218822Sdim  need_version=no
8872218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8873218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8874218822Sdim  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8875218822Sdim  shlibpath_var=LD_LIBRARY_PATH
8876218822Sdim  shlibpath_overrides_runpath=no
8877218822Sdim  hardcode_into_libs=yes
8878218822Sdim  ;;
887933965Sjdp
8880218822Sdimirix5* | irix6* | nonstopux*)
8881218822Sdim  case $host_os in
8882218822Sdim    nonstopux*) version_type=nonstopux ;;
8883218822Sdim    *)
8884218822Sdim	if test "$lt_cv_prog_gnu_ld" = yes; then
8885218822Sdim		version_type=linux
8886218822Sdim	else
8887218822Sdim		version_type=irix
8888218822Sdim	fi ;;
8889218822Sdim  esac
8890218822Sdim  need_lib_prefix=no
8891218822Sdim  need_version=no
8892218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8893218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8894218822Sdim  case $host_os in
8895218822Sdim  irix5* | nonstopux*)
8896218822Sdim    libsuff= shlibsuff=
8897218822Sdim    ;;
8898218822Sdim  *)
8899218822Sdim    case $LD in # libtool.m4 will add one of these switches to LD
8900218822Sdim    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8901218822Sdim      libsuff= shlibsuff= libmagic=32-bit;;
8902218822Sdim    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8903218822Sdim      libsuff=32 shlibsuff=N32 libmagic=N32;;
8904218822Sdim    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8905218822Sdim      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8906218822Sdim    *) libsuff= shlibsuff= libmagic=never-match;;
8907218822Sdim    esac
8908218822Sdim    ;;
8909218822Sdim  esac
8910218822Sdim  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8911218822Sdim  shlibpath_overrides_runpath=no
8912218822Sdim  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8913218822Sdim  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8914218822Sdim  hardcode_into_libs=yes
8915218822Sdim  ;;
8916218822Sdim
8917218822Sdim# No shared lib support for Linux oldld, aout, or coff.
8918218822Sdimlinux*oldld* | linux*aout* | linux*coff*)
8919218822Sdim  dynamic_linker=no
8920218822Sdim  ;;
8921218822Sdim
8922218822Sdim# This must be Linux ELF.
8923218822Sdimlinux* | k*bsd*-gnu)
8924218822Sdim  version_type=linux
8925218822Sdim  need_lib_prefix=no
8926218822Sdim  need_version=no
8927218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
8929218822Sdim  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8930218822Sdim  shlibpath_var=LD_LIBRARY_PATH
8931218822Sdim  shlibpath_overrides_runpath=no
8932218822Sdim  # Some binutils ld are patched to set DT_RUNPATH
8933218822Sdim  save_LDFLAGS=$LDFLAGS
8934218822Sdim  save_libdir=$libdir
8935218822Sdim  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8936218822Sdim       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8937218822Sdim  cat >conftest.$ac_ext <<_ACEOF
8938218822Sdim/* confdefs.h.  */
8939218822Sdim_ACEOF
8940218822Sdimcat confdefs.h >>conftest.$ac_ext
8941218822Sdimcat >>conftest.$ac_ext <<_ACEOF
8942218822Sdim/* end confdefs.h.  */
8943218822Sdim
8944218822Sdimint
8945218822Sdimmain ()
8946218822Sdim{
8947218822Sdim
8948218822Sdim  ;
8949218822Sdim  return 0;
8950218822Sdim}
8951218822Sdim_ACEOF
8952218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
8953218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954218822Sdim  (eval $ac_link) 2>conftest.er1
8955218822Sdim  ac_status=$?
8956218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
8957218822Sdim  rm -f conftest.er1
8958218822Sdim  cat conftest.err >&5
8959218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960218822Sdim  (exit $ac_status); } &&
8961218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
8962218822Sdim			 || test ! -s conftest.err'
8963218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964218822Sdim  (eval $ac_try) 2>&5
8965218822Sdim  ac_status=$?
8966218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967218822Sdim  (exit $ac_status); }; } &&
8968218822Sdim	 { ac_try='test -s conftest$ac_exeext'
8969218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970218822Sdim  (eval $ac_try) 2>&5
8971218822Sdim  ac_status=$?
8972218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973218822Sdim  (exit $ac_status); }; }; then
8974218822Sdim  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8975218822Sdim  shlibpath_overrides_runpath=yes
897660484Sobrienfi
897760484Sobrien
897838889Sjdpelse
8979218822Sdim  echo "$as_me: failed program was:" >&5
8980218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
898133965Sjdp
898238889Sjdpfi
8983218822Sdimrm -f conftest.err conftest.$ac_objext \
8984218822Sdim      conftest$ac_exeext conftest.$ac_ext
8985218822Sdim  LDFLAGS=$save_LDFLAGS
8986218822Sdim  libdir=$save_libdir
898738889Sjdp
8988218822Sdim  # This implies no fast_install, which is unacceptable.
8989218822Sdim  # Some rework will be needed to allow for fast_install
8990218822Sdim  # before this can be enabled.
8991218822Sdim  hardcode_into_libs=yes
8992218822Sdim
8993218822Sdim  # Append ld.so.conf contents to the search path
8994218822Sdim  if test -f /etc/ld.so.conf; then
8995218822Sdim    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' ' '`
8996218822Sdim    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
899760484Sobrien  fi
8998218822Sdim
8999218822Sdim  # We used to test for /lib/ld.so.1 and disable shared libraries on
9000218822Sdim  # powerpc, because MkLinux only supported shared libraries with the
9001218822Sdim  # GNU dynamic linker.  Since this was broken with cross compilers,
9002218822Sdim  # most powerpc-linux boxes support dynamic linking these days and
9003218822Sdim  # people can always --disable-shared, the test was removed, and we
9004218822Sdim  # assume the GNU/Linux dynamic linker is in use.
9005218822Sdim  dynamic_linker='GNU/Linux ld.so'
9006218822Sdim  ;;
9007218822Sdim
9008218822Sdimnetbsd*)
9009218822Sdim  version_type=sunos
9010218822Sdim  need_lib_prefix=no
9011218822Sdim  need_version=no
9012218822Sdim  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9013218822Sdim    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9014218822Sdim    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9015218822Sdim    dynamic_linker='NetBSD (a.out) ld.so'
901660484Sobrien  else
9017218822Sdim    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9018218822Sdim    soname_spec='${libname}${release}${shared_ext}$major'
9019218822Sdim    dynamic_linker='NetBSD ld.elf_so'
902033965Sjdp  fi
9021218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9022218822Sdim  shlibpath_overrides_runpath=yes
9023218822Sdim  hardcode_into_libs=yes
9024218822Sdim  ;;
902533965Sjdp
9026218822Sdimnewsos6)
9027218822Sdim  version_type=linux
9028218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9030218822Sdim  shlibpath_overrides_runpath=yes
9031218822Sdim  ;;
903238889Sjdp
9033218822Sdim*nto* | *qnx*)
9034218822Sdim  version_type=qnx
9035218822Sdim  need_lib_prefix=no
9036218822Sdim  need_version=no
9037218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9039218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9040218822Sdim  shlibpath_overrides_runpath=no
9041218822Sdim  hardcode_into_libs=yes
9042218822Sdim  dynamic_linker='ldqnx.so'
9043218822Sdim  ;;
904433965Sjdp
9045218822Sdimopenbsd*)
9046218822Sdim  version_type=sunos
9047218822Sdim  sys_lib_dlsearch_path_spec="/usr/lib"
9048218822Sdim  need_lib_prefix=no
9049218822Sdim  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9050218822Sdim  case $host_os in
9051218822Sdim    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9052218822Sdim    *)				need_version=no  ;;
9053218822Sdim  esac
9054218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9055218822Sdim  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9056218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9057218822Sdim  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9058218822Sdim    case $host_os in
9059218822Sdim      openbsd2.[89] | openbsd2.[89].*)
9060218822Sdim	shlibpath_overrides_runpath=no
9061218822Sdim	;;
9062218822Sdim      *)
9063218822Sdim	shlibpath_overrides_runpath=yes
9064218822Sdim	;;
9065218822Sdim      esac
9066218822Sdim  else
9067218822Sdim    shlibpath_overrides_runpath=yes
9068218822Sdim  fi
9069218822Sdim  ;;
907033965Sjdp
9071218822Sdimos2*)
9072218822Sdim  libname_spec='$name'
9073218822Sdim  shrext_cmds=".dll"
9074218822Sdim  need_lib_prefix=no
9075218822Sdim  library_names_spec='$libname${shared_ext} $libname.a'
9076218822Sdim  dynamic_linker='OS/2 ld.exe'
9077218822Sdim  shlibpath_var=LIBPATH
9078218822Sdim  ;;
907960484Sobrien
9080218822Sdimosf3* | osf4* | osf5*)
9081218822Sdim  version_type=osf
9082218822Sdim  need_lib_prefix=no
9083218822Sdim  need_version=no
9084218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9085218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9087218822Sdim  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9088218822Sdim  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9089218822Sdim  ;;
909060484Sobrien
9091218822Sdimrdos*)
9092218822Sdim  dynamic_linker=no
9093218822Sdim  ;;
909460484Sobrien
9095218822Sdimsolaris*)
9096218822Sdim  version_type=linux
9097218822Sdim  need_lib_prefix=no
9098218822Sdim  need_version=no
9099218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9101218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9102218822Sdim  shlibpath_overrides_runpath=yes
9103218822Sdim  hardcode_into_libs=yes
9104218822Sdim  # ldd complains unless libraries are executable
9105218822Sdim  postinstall_cmds='chmod +x $lib'
9106218822Sdim  ;;
910733965Sjdp
9108218822Sdimsunos4*)
9109218822Sdim  version_type=sunos
9110218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9111218822Sdim  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9112218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9113218822Sdim  shlibpath_overrides_runpath=yes
9114218822Sdim  if test "$with_gnu_ld" = yes; then
9115218822Sdim    need_lib_prefix=no
9116218822Sdim  fi
9117218822Sdim  need_version=yes
9118218822Sdim  ;;
9119218822Sdim
9120218822Sdimsysv4 | sysv4.3*)
9121218822Sdim  version_type=linux
9122218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9124218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9125218822Sdim  case $host_vendor in
9126218822Sdim    sni)
9127218822Sdim      shlibpath_overrides_runpath=no
9128218822Sdim      need_lib_prefix=no
9129218822Sdim      runpath_var=LD_RUN_PATH
9130218822Sdim      ;;
9131218822Sdim    siemens)
9132218822Sdim      need_lib_prefix=no
9133218822Sdim      ;;
9134218822Sdim    motorola)
9135218822Sdim      need_lib_prefix=no
9136218822Sdim      need_version=no
9137218822Sdim      shlibpath_overrides_runpath=no
9138218822Sdim      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9139218822Sdim      ;;
914038889Sjdp  esac
9141218822Sdim  ;;
914233965Sjdp
9143218822Sdimsysv4*MP*)
9144218822Sdim  if test -d /usr/nec ;then
9145218822Sdim    version_type=linux
9146218822Sdim    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9147218822Sdim    soname_spec='$libname${shared_ext}.$major'
9148218822Sdim    shlibpath_var=LD_LIBRARY_PATH
9149218822Sdim  fi
9150218822Sdim  ;;
915133965Sjdp
9152218822Sdimsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9153218822Sdim  version_type=freebsd-elf
9154218822Sdim  need_lib_prefix=no
9155218822Sdim  need_version=no
9156218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9157218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9158218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9159218822Sdim  shlibpath_overrides_runpath=yes
9160218822Sdim  hardcode_into_libs=yes
9161218822Sdim  if test "$with_gnu_ld" = yes; then
9162218822Sdim    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9163218822Sdim  else
9164218822Sdim    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9165218822Sdim    case $host_os in
9166218822Sdim      sco3.2v5*)
9167218822Sdim        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9168218822Sdim	;;
9169218822Sdim    esac
9170218822Sdim  fi
9171218822Sdim  sys_lib_dlsearch_path_spec='/usr/lib'
9172218822Sdim  ;;
917333965Sjdp
9174218822Sdimtpf*)
9175218822Sdim  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9176218822Sdim  version_type=linux
9177218822Sdim  need_lib_prefix=no
9178218822Sdim  need_version=no
9179218822Sdim  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9181218822Sdim  shlibpath_overrides_runpath=no
9182218822Sdim  hardcode_into_libs=yes
9183218822Sdim  ;;
918438889Sjdp
9185218822Sdimuts4*)
9186218822Sdim  version_type=linux
9187218822Sdim  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188218822Sdim  soname_spec='${libname}${release}${shared_ext}$major'
9189218822Sdim  shlibpath_var=LD_LIBRARY_PATH
9190218822Sdim  ;;
9191218822Sdim
9192218822Sdim*)
9193218822Sdim  dynamic_linker=no
9194218822Sdim  ;;
9195218822Sdimesac
9196218822Sdimecho "$as_me:$LINENO: result: $dynamic_linker" >&5
9197218822Sdimecho "${ECHO_T}$dynamic_linker" >&6
9198218822Sdimtest "$dynamic_linker" = no && can_build_shared=no
9199218822Sdim
9200218822Sdimvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9201218822Sdimif test "$GCC" = yes; then
9202218822Sdim  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
920333965Sjdpfi
920460484Sobrien
920560484Sobrien
920660484Sobrien
920760484Sobrien
920860484Sobrien
920960484Sobrien
921060484Sobrien
921160484Sobrien
921277298Sobrien
921360484Sobrien
921460484Sobrien
921560484Sobrien
921660484Sobrien
921760484Sobrien
921860484Sobrien
921960484Sobrien
922060484Sobrien
922160484Sobrien
922260484Sobrien
922360484Sobrien
922460484Sobrien
922560484Sobrien
922660484Sobrien
922760484Sobrien
922860484Sobrien
922960484Sobrien
923060484Sobrien
9231218822Sdim
9232218822Sdim
9233218822Sdim
9234218822Sdim
9235218822Sdim
9236218822Sdim
9237218822Sdim
9238218822Sdim
9239218822Sdim
9240218822Sdim
9241218822Sdim
9242218822Sdim
9243218822Sdim
9244218822Sdim
9245218822Sdim
9246218822Sdim
9247218822Sdim
9248218822Sdim
9249218822Sdim
9250218822Sdim
9251218822Sdim
9252218822Sdim
9253218822Sdim
9254218822Sdim
9255218822Sdim
9256218822Sdim
9257218822Sdim
9258218822Sdim
9259218822Sdim
9260218822Sdim
9261218822Sdim
9262218822Sdim
9263218822Sdim
9264218822Sdim
9265218822Sdim
9266218822Sdim
9267218822Sdim
9268218822Sdim
9269218822Sdim
9270218822Sdim
9271218822Sdim
9272218822Sdim
9273218822Sdim
9274218822Sdim
9275218822Sdim
9276218822Sdim
9277218822Sdim
9278218822Sdim
9279218822Sdim
9280218822Sdim
9281218822Sdim
9282218822Sdim
9283218822Sdim
9284218822Sdim
9285218822Sdim
9286218822Sdim
9287218822Sdim
9288218822Sdim
9289218822Sdim
9290218822Sdim
9291218822Sdim  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9292218822Sdimecho $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9293218822Sdimhardcode_action=
9294218822Sdimif test -n "$hardcode_libdir_flag_spec" ||
9295218822Sdim   test -n "$runpath_var" ||
9296218822Sdim   test "X$hardcode_automatic" = "Xyes" ; then
9297218822Sdim
9298218822Sdim  # We can hardcode non-existent directories.
9299218822Sdim  if test "$hardcode_direct" != no &&
9300218822Sdim     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9301218822Sdim     # have to relink, otherwise we might link with an installed library
9302218822Sdim     # when we should be linking with a yet-to-be-installed one
9303218822Sdim     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9304218822Sdim     test "$hardcode_minus_L" != no; then
9305218822Sdim    # Linking always hardcodes the temporary library directory.
9306218822Sdim    hardcode_action=relink
9307218822Sdim  else
9308218822Sdim    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9309218822Sdim    hardcode_action=immediate
9310218822Sdim  fi
931160484Sobrienelse
9312218822Sdim  # We cannot hardcode anything, or else we can only hardcode existing
9313218822Sdim  # directories.
9314218822Sdim  hardcode_action=unsupported
931560484Sobrienfi
9316218822Sdimecho "$as_me:$LINENO: result: $hardcode_action" >&5
9317218822Sdimecho "${ECHO_T}$hardcode_action" >&6
931860484Sobrien
9319218822Sdimif test "$hardcode_action" = relink ||
9320218822Sdim   test "$inherit_rpath" = yes; then
9321218822Sdim  # Fast installation is not supported
9322218822Sdim  enable_fast_install=no
9323218822Sdimelif test "$shlibpath_overrides_runpath" = yes ||
9324218822Sdim     test "$enable_shared" = no; then
9325218822Sdim  # Fast installation is not necessary
9326218822Sdim  enable_fast_install=needless
932760484Sobrienfi
932860484Sobrien
932960484Sobrien
9330218822Sdim
9331218822Sdim
9332218822Sdim
9333218822Sdim
9334218822Sdim  if test "x$enable_dlopen" != xyes; then
9335218822Sdim  enable_dlopen=unknown
9336218822Sdim  enable_dlopen_self=unknown
9337218822Sdim  enable_dlopen_self_static=unknown
933860484Sobrienelse
9339218822Sdim  lt_cv_dlopen=no
9340218822Sdim  lt_cv_dlopen_libs=
934160484Sobrien
9342218822Sdim  case $host_os in
9343218822Sdim  beos*)
9344218822Sdim    lt_cv_dlopen="load_add_on"
9345218822Sdim    lt_cv_dlopen_libs=
9346218822Sdim    lt_cv_dlopen_self=yes
9347218822Sdim    ;;
934860484Sobrien
9349218822Sdim  mingw* | pw32*)
9350218822Sdim    lt_cv_dlopen="LoadLibrary"
9351218822Sdim    lt_cv_dlopen_libs=
9352218822Sdim    ;;
935360484Sobrien
9354218822Sdim  cygwin*)
9355218822Sdim    lt_cv_dlopen="dlopen"
9356218822Sdim    lt_cv_dlopen_libs=
9357218822Sdim    ;;
9358218822Sdim
9359218822Sdim  darwin*)
9360218822Sdim  # if libdl is installed we need to link against it
9361218822Sdim    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9362218822Sdimecho $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9363218822Sdimif test "${ac_cv_lib_dl_dlopen+set}" = set; then
9364218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
936560484Sobrienelse
9366218822Sdim  ac_check_lib_save_LIBS=$LIBS
9367218822SdimLIBS="-ldl  $LIBS"
9368218822Sdimcat >conftest.$ac_ext <<_ACEOF
9369218822Sdim/* confdefs.h.  */
9370218822Sdim_ACEOF
9371218822Sdimcat confdefs.h >>conftest.$ac_ext
9372218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9373218822Sdim/* end confdefs.h.  */
9374218822Sdim
9375218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9376218822Sdim#ifdef __cplusplus
9377218822Sdimextern "C"
937860484Sobrien#endif
9379218822Sdim/* We use char because int might match the return type of a gcc2
9380218822Sdim   builtin and then its argument prototype would still apply.  */
9381218822Sdimchar dlopen ();
9382218822Sdimint
9383218822Sdimmain ()
9384218822Sdim{
9385218822Sdimdlopen ();
9386218822Sdim  ;
9387218822Sdim  return 0;
9388218822Sdim}
9389218822Sdim_ACEOF
9390218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9391218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392218822Sdim  (eval $ac_link) 2>conftest.er1
9393218822Sdim  ac_status=$?
9394218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9395218822Sdim  rm -f conftest.er1
9396218822Sdim  cat conftest.err >&5
9397218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398218822Sdim  (exit $ac_status); } &&
9399218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9400218822Sdim			 || test ! -s conftest.err'
9401218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402218822Sdim  (eval $ac_try) 2>&5
9403218822Sdim  ac_status=$?
9404218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405218822Sdim  (exit $ac_status); }; } &&
9406218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9407218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408218822Sdim  (eval $ac_try) 2>&5
9409218822Sdim  ac_status=$?
9410218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411218822Sdim  (exit $ac_status); }; }; then
9412218822Sdim  ac_cv_lib_dl_dlopen=yes
941360484Sobrienelse
9414218822Sdim  echo "$as_me: failed program was:" >&5
9415218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
941660484Sobrien
9417218822Sdimac_cv_lib_dl_dlopen=no
941860484Sobrienfi
9419218822Sdimrm -f conftest.err conftest.$ac_objext \
9420218822Sdim      conftest$ac_exeext conftest.$ac_ext
9421218822SdimLIBS=$ac_check_lib_save_LIBS
942260484Sobrienfi
9423218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9424218822Sdimecho "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9425218822Sdimif test $ac_cv_lib_dl_dlopen = yes; then
9426218822Sdim  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
942760484Sobrienelse
942860484Sobrien
9429218822Sdim    lt_cv_dlopen="dyld"
9430218822Sdim    lt_cv_dlopen_libs=
9431218822Sdim    lt_cv_dlopen_self=yes
943260484Sobrien
943360484Sobrienfi
943460484Sobrien
9435218822Sdim    ;;
9436218822Sdim
9437218822Sdim  *)
9438218822Sdim    echo "$as_me:$LINENO: checking for shl_load" >&5
9439218822Sdimecho $ECHO_N "checking for shl_load... $ECHO_C" >&6
9440218822Sdimif test "${ac_cv_func_shl_load+set}" = set; then
9441218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
944260484Sobrienelse
9443218822Sdim  cat >conftest.$ac_ext <<_ACEOF
9444218822Sdim/* confdefs.h.  */
9445218822Sdim_ACEOF
9446218822Sdimcat confdefs.h >>conftest.$ac_ext
9447218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9448218822Sdim/* end confdefs.h.  */
9449218822Sdim/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9450218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9451218822Sdim#define shl_load innocuous_shl_load
945260484Sobrien
9453218822Sdim/* System header to define __stub macros and hopefully few prototypes,
9454218822Sdim    which can conflict with char shl_load (); below.
9455218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9456218822Sdim    <limits.h> exists even on freestanding compilers.  */
9457218822Sdim
9458218822Sdim#ifdef __STDC__
9459218822Sdim# include <limits.h>
946060484Sobrien#else
9461218822Sdim# include <assert.h>
946260484Sobrien#endif
946360484Sobrien
9464218822Sdim#undef shl_load
9465218822Sdim
9466218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9467218822Sdim#ifdef __cplusplus
9468218822Sdimextern "C"
9469218822Sdim{
9470218822Sdim#endif
9471218822Sdim/* We use char because int might match the return type of a gcc2
9472218822Sdim   builtin and then its argument prototype would still apply.  */
9473218822Sdimchar shl_load ();
9474218822Sdim/* The GNU C library defines this for functions which it implements
9475218822Sdim    to always fail with ENOSYS.  Some functions are actually named
9476218822Sdim    something starting with __ and the normal name is an alias.  */
9477218822Sdim#if defined (__stub_shl_load) || defined (__stub___shl_load)
9478218822Sdimchoke me
9479218822Sdim#else
9480218822Sdimchar (*f) () = shl_load;
9481218822Sdim#endif
9482218822Sdim#ifdef __cplusplus
9483218822Sdim}
9484218822Sdim#endif
9485218822Sdim
9486218822Sdimint
9487218822Sdimmain ()
9488218822Sdim{
9489218822Sdimreturn f != shl_load;
9490218822Sdim  ;
9491218822Sdim  return 0;
9492218822Sdim}
9493218822Sdim_ACEOF
9494218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9495218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9496218822Sdim  (eval $ac_link) 2>conftest.er1
9497218822Sdim  ac_status=$?
9498218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9499218822Sdim  rm -f conftest.er1
9500218822Sdim  cat conftest.err >&5
9501218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502218822Sdim  (exit $ac_status); } &&
9503218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9504218822Sdim			 || test ! -s conftest.err'
9505218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506218822Sdim  (eval $ac_try) 2>&5
9507218822Sdim  ac_status=$?
9508218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509218822Sdim  (exit $ac_status); }; } &&
9510218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9511218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512218822Sdim  (eval $ac_try) 2>&5
9513218822Sdim  ac_status=$?
9514218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515218822Sdim  (exit $ac_status); }; }; then
9516218822Sdim  ac_cv_func_shl_load=yes
951760484Sobrienelse
9518218822Sdim  echo "$as_me: failed program was:" >&5
9519218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9520218822Sdim
9521218822Sdimac_cv_func_shl_load=no
952260484Sobrienfi
9523218822Sdimrm -f conftest.err conftest.$ac_objext \
9524218822Sdim      conftest$ac_exeext conftest.$ac_ext
952560484Sobrienfi
9526218822Sdimecho "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9527218822Sdimecho "${ECHO_T}$ac_cv_func_shl_load" >&6
9528218822Sdimif test $ac_cv_func_shl_load = yes; then
9529218822Sdim  lt_cv_dlopen="shl_load"
9530218822Sdimelse
9531218822Sdim  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9532218822Sdimecho $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9533218822Sdimif test "${ac_cv_lib_dld_shl_load+set}" = set; then
9534218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9535218822Sdimelse
9536218822Sdim  ac_check_lib_save_LIBS=$LIBS
9537218822SdimLIBS="-ldld  $LIBS"
9538218822Sdimcat >conftest.$ac_ext <<_ACEOF
9539218822Sdim/* confdefs.h.  */
9540218822Sdim_ACEOF
9541218822Sdimcat confdefs.h >>conftest.$ac_ext
9542218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9543218822Sdim/* end confdefs.h.  */
954460484Sobrien
9545218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9546218822Sdim#ifdef __cplusplus
9547218822Sdimextern "C"
9548218822Sdim#endif
9549218822Sdim/* We use char because int might match the return type of a gcc2
9550218822Sdim   builtin and then its argument prototype would still apply.  */
9551218822Sdimchar shl_load ();
9552218822Sdimint
9553218822Sdimmain ()
9554218822Sdim{
9555218822Sdimshl_load ();
9556218822Sdim  ;
9557218822Sdim  return 0;
9558218822Sdim}
9559218822Sdim_ACEOF
9560218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9561218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562218822Sdim  (eval $ac_link) 2>conftest.er1
9563218822Sdim  ac_status=$?
9564218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9565218822Sdim  rm -f conftest.er1
9566218822Sdim  cat conftest.err >&5
9567218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568218822Sdim  (exit $ac_status); } &&
9569218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9570218822Sdim			 || test ! -s conftest.err'
9571218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572218822Sdim  (eval $ac_try) 2>&5
9573218822Sdim  ac_status=$?
9574218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575218822Sdim  (exit $ac_status); }; } &&
9576218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9577218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578218822Sdim  (eval $ac_try) 2>&5
9579218822Sdim  ac_status=$?
9580218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581218822Sdim  (exit $ac_status); }; }; then
9582218822Sdim  ac_cv_lib_dld_shl_load=yes
9583218822Sdimelse
9584218822Sdim  echo "$as_me: failed program was:" >&5
9585218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
958660484Sobrien
9587218822Sdimac_cv_lib_dld_shl_load=no
958860484Sobrienfi
9589218822Sdimrm -f conftest.err conftest.$ac_objext \
9590218822Sdim      conftest$ac_exeext conftest.$ac_ext
9591218822SdimLIBS=$ac_check_lib_save_LIBS
9592218822Sdimfi
9593218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9594218822Sdimecho "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9595218822Sdimif test $ac_cv_lib_dld_shl_load = yes; then
9596218822Sdim  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9597218822Sdimelse
9598218822Sdim  echo "$as_me:$LINENO: checking for dlopen" >&5
9599218822Sdimecho $ECHO_N "checking for dlopen... $ECHO_C" >&6
9600218822Sdimif test "${ac_cv_func_dlopen+set}" = set; then
9601218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9602218822Sdimelse
9603218822Sdim  cat >conftest.$ac_ext <<_ACEOF
9604218822Sdim/* confdefs.h.  */
9605218822Sdim_ACEOF
9606218822Sdimcat confdefs.h >>conftest.$ac_ext
9607218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9608218822Sdim/* end confdefs.h.  */
9609218822Sdim/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9610218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9611218822Sdim#define dlopen innocuous_dlopen
961260484Sobrien
9613218822Sdim/* System header to define __stub macros and hopefully few prototypes,
9614218822Sdim    which can conflict with char dlopen (); below.
9615218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9616218822Sdim    <limits.h> exists even on freestanding compilers.  */
961760484Sobrien
9618218822Sdim#ifdef __STDC__
9619218822Sdim# include <limits.h>
962060484Sobrien#else
9621218822Sdim# include <assert.h>
962260484Sobrien#endif
962360484Sobrien
9624218822Sdim#undef dlopen
962560484Sobrien
962660484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
9627218822Sdim#ifdef __cplusplus
9628218822Sdimextern "C"
9629218822Sdim{
9630218822Sdim#endif
963160484Sobrien/* We use char because int might match the return type of a gcc2
9632218822Sdim   builtin and then its argument prototype would still apply.  */
9633218822Sdimchar dlopen ();
963460484Sobrien/* The GNU C library defines this for functions which it implements
963560484Sobrien    to always fail with ENOSYS.  Some functions are actually named
963660484Sobrien    something starting with __ and the normal name is an alias.  */
9637218822Sdim#if defined (__stub_dlopen) || defined (__stub___dlopen)
963860484Sobrienchoke me
963960484Sobrien#else
9640218822Sdimchar (*f) () = dlopen;
964160484Sobrien#endif
9642218822Sdim#ifdef __cplusplus
9643218822Sdim}
9644218822Sdim#endif
964560484Sobrien
9646218822Sdimint
9647218822Sdimmain ()
9648218822Sdim{
9649218822Sdimreturn f != dlopen;
9650218822Sdim  ;
9651218822Sdim  return 0;
9652218822Sdim}
9653218822Sdim_ACEOF
9654218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9655218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9656218822Sdim  (eval $ac_link) 2>conftest.er1
9657218822Sdim  ac_status=$?
9658218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9659218822Sdim  rm -f conftest.er1
9660218822Sdim  cat conftest.err >&5
9661218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662218822Sdim  (exit $ac_status); } &&
9663218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9664218822Sdim			 || test ! -s conftest.err'
9665218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666218822Sdim  (eval $ac_try) 2>&5
9667218822Sdim  ac_status=$?
9668218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669218822Sdim  (exit $ac_status); }; } &&
9670218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9671218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672218822Sdim  (eval $ac_try) 2>&5
9673218822Sdim  ac_status=$?
9674218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675218822Sdim  (exit $ac_status); }; }; then
9676218822Sdim  ac_cv_func_dlopen=yes
967760484Sobrienelse
9678218822Sdim  echo "$as_me: failed program was:" >&5
9679218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9680218822Sdim
9681218822Sdimac_cv_func_dlopen=no
968260484Sobrienfi
9683218822Sdimrm -f conftest.err conftest.$ac_objext \
9684218822Sdim      conftest$ac_exeext conftest.$ac_ext
968560484Sobrienfi
9686218822Sdimecho "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9687218822Sdimecho "${ECHO_T}$ac_cv_func_dlopen" >&6
9688218822Sdimif test $ac_cv_func_dlopen = yes; then
9689218822Sdim  lt_cv_dlopen="dlopen"
9690218822Sdimelse
9691218822Sdim  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9692218822Sdimecho $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9693218822Sdimif test "${ac_cv_lib_dl_dlopen+set}" = set; then
9694218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9695218822Sdimelse
9696218822Sdim  ac_check_lib_save_LIBS=$LIBS
9697218822SdimLIBS="-ldl  $LIBS"
9698218822Sdimcat >conftest.$ac_ext <<_ACEOF
9699218822Sdim/* confdefs.h.  */
9700218822Sdim_ACEOF
9701218822Sdimcat confdefs.h >>conftest.$ac_ext
9702218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9703218822Sdim/* end confdefs.h.  */
970460484Sobrien
9705218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9706218822Sdim#ifdef __cplusplus
9707218822Sdimextern "C"
9708218822Sdim#endif
9709218822Sdim/* We use char because int might match the return type of a gcc2
9710218822Sdim   builtin and then its argument prototype would still apply.  */
9711218822Sdimchar dlopen ();
9712218822Sdimint
9713218822Sdimmain ()
9714218822Sdim{
9715218822Sdimdlopen ();
9716218822Sdim  ;
9717218822Sdim  return 0;
9718218822Sdim}
9719218822Sdim_ACEOF
9720218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9721218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9722218822Sdim  (eval $ac_link) 2>conftest.er1
9723218822Sdim  ac_status=$?
9724218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9725218822Sdim  rm -f conftest.er1
9726218822Sdim  cat conftest.err >&5
9727218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728218822Sdim  (exit $ac_status); } &&
9729218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9730218822Sdim			 || test ! -s conftest.err'
9731218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732218822Sdim  (eval $ac_try) 2>&5
9733218822Sdim  ac_status=$?
9734218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735218822Sdim  (exit $ac_status); }; } &&
9736218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9737218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738218822Sdim  (eval $ac_try) 2>&5
9739218822Sdim  ac_status=$?
9740218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741218822Sdim  (exit $ac_status); }; }; then
9742218822Sdim  ac_cv_lib_dl_dlopen=yes
974360484Sobrienelse
9744218822Sdim  echo "$as_me: failed program was:" >&5
9745218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
974660484Sobrien
9747218822Sdimac_cv_lib_dl_dlopen=no
974860484Sobrienfi
9749218822Sdimrm -f conftest.err conftest.$ac_objext \
9750218822Sdim      conftest$ac_exeext conftest.$ac_ext
9751218822SdimLIBS=$ac_check_lib_save_LIBS
9752218822Sdimfi
9753218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9754218822Sdimecho "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9755218822Sdimif test $ac_cv_lib_dl_dlopen = yes; then
9756218822Sdim  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
975760484Sobrienelse
9758218822Sdim  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9759218822Sdimecho $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9760218822Sdimif test "${ac_cv_lib_svld_dlopen+set}" = set; then
9761218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
976260484Sobrienelse
9763218822Sdim  ac_check_lib_save_LIBS=$LIBS
9764218822SdimLIBS="-lsvld  $LIBS"
9765218822Sdimcat >conftest.$ac_ext <<_ACEOF
9766218822Sdim/* confdefs.h.  */
9767218822Sdim_ACEOF
9768218822Sdimcat confdefs.h >>conftest.$ac_ext
9769218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9770218822Sdim/* end confdefs.h.  */
9771218822Sdim
9772218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9773218822Sdim#ifdef __cplusplus
9774218822Sdimextern "C"
9775218822Sdim#endif
9776218822Sdim/* We use char because int might match the return type of a gcc2
9777218822Sdim   builtin and then its argument prototype would still apply.  */
9778218822Sdimchar dlopen ();
9779218822Sdimint
9780218822Sdimmain ()
978160484Sobrien{
9782218822Sdimdlopen ();
9783218822Sdim  ;
9784218822Sdim  return 0;
978560484Sobrien}
9786218822Sdim_ACEOF
9787218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9788218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789218822Sdim  (eval $ac_link) 2>conftest.er1
9790218822Sdim  ac_status=$?
9791218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9792218822Sdim  rm -f conftest.er1
9793218822Sdim  cat conftest.err >&5
9794218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795218822Sdim  (exit $ac_status); } &&
9796218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9797218822Sdim			 || test ! -s conftest.err'
9798218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799218822Sdim  (eval $ac_try) 2>&5
9800218822Sdim  ac_status=$?
9801218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802218822Sdim  (exit $ac_status); }; } &&
9803218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9804218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805218822Sdim  (eval $ac_try) 2>&5
9806218822Sdim  ac_status=$?
9807218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808218822Sdim  (exit $ac_status); }; }; then
9809218822Sdim  ac_cv_lib_svld_dlopen=yes
9810218822Sdimelse
9811218822Sdim  echo "$as_me: failed program was:" >&5
9812218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9813218822Sdim
9814218822Sdimac_cv_lib_svld_dlopen=no
9815218822Sdimfi
9816218822Sdimrm -f conftest.err conftest.$ac_objext \
9817218822Sdim      conftest$ac_exeext conftest.$ac_ext
9818218822SdimLIBS=$ac_check_lib_save_LIBS
9819218822Sdimfi
9820218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9821218822Sdimecho "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9822218822Sdimif test $ac_cv_lib_svld_dlopen = yes; then
9823218822Sdim  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9824218822Sdimelse
9825218822Sdim  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9826218822Sdimecho $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9827218822Sdimif test "${ac_cv_lib_dld_dld_link+set}" = set; then
9828218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9829218822Sdimelse
9830218822Sdim  ac_check_lib_save_LIBS=$LIBS
9831218822SdimLIBS="-ldld  $LIBS"
9832218822Sdimcat >conftest.$ac_ext <<_ACEOF
9833218822Sdim/* confdefs.h.  */
9834218822Sdim_ACEOF
9835218822Sdimcat confdefs.h >>conftest.$ac_ext
9836218822Sdimcat >>conftest.$ac_ext <<_ACEOF
9837218822Sdim/* end confdefs.h.  */
9838218822Sdim
9839218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
9840218822Sdim#ifdef __cplusplus
9841218822Sdimextern "C"
9842218822Sdim#endif
9843218822Sdim/* We use char because int might match the return type of a gcc2
9844218822Sdim   builtin and then its argument prototype would still apply.  */
9845218822Sdimchar dld_link ();
9846218822Sdimint
984760484Sobrienmain ()
984860484Sobrien{
9849218822Sdimdld_link ();
9850218822Sdim  ;
9851218822Sdim  return 0;
985260484Sobrien}
9853218822Sdim_ACEOF
9854218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
9855218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856218822Sdim  (eval $ac_link) 2>conftest.er1
9857218822Sdim  ac_status=$?
9858218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
9859218822Sdim  rm -f conftest.er1
9860218822Sdim  cat conftest.err >&5
9861218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862218822Sdim  (exit $ac_status); } &&
9863218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
9864218822Sdim			 || test ! -s conftest.err'
9865218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866218822Sdim  (eval $ac_try) 2>&5
9867218822Sdim  ac_status=$?
9868218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869218822Sdim  (exit $ac_status); }; } &&
9870218822Sdim	 { ac_try='test -s conftest$ac_exeext'
9871218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872218822Sdim  (eval $ac_try) 2>&5
9873218822Sdim  ac_status=$?
9874218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875218822Sdim  (exit $ac_status); }; }; then
9876218822Sdim  ac_cv_lib_dld_dld_link=yes
987760484Sobrienelse
9878218822Sdim  echo "$as_me: failed program was:" >&5
9879218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
9880218822Sdim
9881218822Sdimac_cv_lib_dld_dld_link=no
988260484Sobrienfi
9883218822Sdimrm -f conftest.err conftest.$ac_objext \
9884218822Sdim      conftest$ac_exeext conftest.$ac_ext
9885218822SdimLIBS=$ac_check_lib_save_LIBS
988660484Sobrienfi
9887218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9888218822Sdimecho "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9889218822Sdimif test $ac_cv_lib_dld_dld_link = yes; then
9890218822Sdim  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9891218822Sdimfi
989260484Sobrien
9893218822Sdim
989460484Sobrienfi
989560484Sobrien
989660484Sobrien
989760484Sobrienfi
989860484Sobrien
9899218822Sdim
990060484Sobrienfi
9901218822Sdim
9902218822Sdim
990360484Sobrienfi
9904218822Sdim
9905218822Sdim
990660484Sobrienfi
990760484Sobrien
9908218822Sdim    ;;
9909218822Sdim  esac
9910218822Sdim
9911218822Sdim  if test "x$lt_cv_dlopen" != xno; then
9912218822Sdim    enable_dlopen=yes
9913218822Sdim  else
9914218822Sdim    enable_dlopen=no
9915218822Sdim  fi
9916218822Sdim
9917218822Sdim  case $lt_cv_dlopen in
9918218822Sdim  dlopen)
9919218822Sdim    save_CPPFLAGS="$CPPFLAGS"
9920218822Sdim    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9921218822Sdim
9922218822Sdim    save_LDFLAGS="$LDFLAGS"
9923218822Sdim    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9924218822Sdim
9925218822Sdim    save_LIBS="$LIBS"
9926218822Sdim    LIBS="$lt_cv_dlopen_libs $LIBS"
9927218822Sdim
9928218822Sdim    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9929218822Sdimecho $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9930218822Sdimif test "${lt_cv_dlopen_self+set}" = set; then
9931218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
993260484Sobrienelse
9933218822Sdim  	  if test "$cross_compiling" = yes; then :
9934218822Sdim  lt_cv_dlopen_self=cross
9935218822Sdimelse
9936218822Sdim  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9937218822Sdim  lt_status=$lt_dlunknown
9938218822Sdim  cat > conftest.$ac_ext <<_LT_EOF
9939218822Sdim#line 9939 "configure"
994033965Sjdp#include "confdefs.h"
994160484Sobrien
9942218822Sdim#if HAVE_DLFCN_H
9943218822Sdim#include <dlfcn.h>
9944218822Sdim#endif
994560484Sobrien
9946218822Sdim#include <stdio.h>
9947218822Sdim
9948218822Sdim#ifdef RTLD_GLOBAL
9949218822Sdim#  define LT_DLGLOBAL		RTLD_GLOBAL
995060484Sobrien#else
9951218822Sdim#  ifdef DL_GLOBAL
9952218822Sdim#    define LT_DLGLOBAL		DL_GLOBAL
9953218822Sdim#  else
9954218822Sdim#    define LT_DLGLOBAL		0
9955218822Sdim#  endif
995660484Sobrien#endif
995760484Sobrien
9958218822Sdim/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9959218822Sdim   find out it does not work in some platform. */
9960218822Sdim#ifndef LT_DLLAZY_OR_NOW
9961218822Sdim#  ifdef RTLD_LAZY
9962218822Sdim#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9963218822Sdim#  else
9964218822Sdim#    ifdef DL_LAZY
9965218822Sdim#      define LT_DLLAZY_OR_NOW		DL_LAZY
9966218822Sdim#    else
9967218822Sdim#      ifdef RTLD_NOW
9968218822Sdim#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9969218822Sdim#      else
9970218822Sdim#        ifdef DL_NOW
9971218822Sdim#          define LT_DLLAZY_OR_NOW	DL_NOW
9972218822Sdim#        else
9973218822Sdim#          define LT_DLLAZY_OR_NOW	0
9974218822Sdim#        endif
9975218822Sdim#      endif
9976218822Sdim#    endif
9977218822Sdim#  endif
9978218822Sdim#endif
9979218822Sdim
9980218822Sdim#ifdef __cplusplus
9981218822Sdimextern "C" void exit (int);
9982218822Sdim#endif
9983218822Sdim
9984218822Sdimvoid fnord() { int i=42;}
9985218822Sdimint main ()
9986218822Sdim{
9987218822Sdim  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9988218822Sdim  int status = $lt_dlunknown;
9989218822Sdim
9990218822Sdim  if (self)
9991218822Sdim    {
9992218822Sdim      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9993218822Sdim      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9994218822Sdim      /* dlclose (self); */
9995218822Sdim    }
9996218822Sdim  else
9997218822Sdim    puts (dlerror ());
9998218822Sdim
9999218822Sdim    exit (status);
10000218822Sdim}
10001218822Sdim_LT_EOF
10002218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003218822Sdim  (eval $ac_link) 2>&5
10004218822Sdim  ac_status=$?
10005218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006218822Sdim  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10007218822Sdim    (./conftest; exit; ) >&5 2>/dev/null
10008218822Sdim    lt_status=$?
10009218822Sdim    case x$lt_status in
10010218822Sdim      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10011218822Sdim      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10012218822Sdim      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10013218822Sdim    esac
10014218822Sdim  else :
10015218822Sdim    # compilation failed
10016218822Sdim    lt_cv_dlopen_self=no
10017218822Sdim  fi
1001860484Sobrienfi
10019218822Sdimrm -fr conftest*
1002060484Sobrien
10021218822Sdim
1002260484Sobrienfi
10023218822Sdimecho "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10024218822Sdimecho "${ECHO_T}$lt_cv_dlopen_self" >&6
1002560484Sobrien
10026218822Sdim    if test "x$lt_cv_dlopen_self" = xyes; then
10027218822Sdim      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10028218822Sdim      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10029218822Sdimecho $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10030218822Sdimif test "${lt_cv_dlopen_self_static+set}" = set; then
10031218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1003260484Sobrienelse
10033218822Sdim  	  if test "$cross_compiling" = yes; then :
10034218822Sdim  lt_cv_dlopen_self_static=cross
1003560484Sobrienelse
10036218822Sdim  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10037218822Sdim  lt_status=$lt_dlunknown
10038218822Sdim  cat > conftest.$ac_ext <<_LT_EOF
10039218822Sdim#line 10039 "configure"
1004060484Sobrien#include "confdefs.h"
1004160484Sobrien
10042218822Sdim#if HAVE_DLFCN_H
10043218822Sdim#include <dlfcn.h>
10044218822Sdim#endif
1004560484Sobrien
10046218822Sdim#include <stdio.h>
1004760484Sobrien
10048218822Sdim#ifdef RTLD_GLOBAL
10049218822Sdim#  define LT_DLGLOBAL		RTLD_GLOBAL
10050218822Sdim#else
10051218822Sdim#  ifdef DL_GLOBAL
10052218822Sdim#    define LT_DLGLOBAL		DL_GLOBAL
10053218822Sdim#  else
10054218822Sdim#    define LT_DLGLOBAL		0
10055218822Sdim#  endif
10056218822Sdim#endif
1005760484Sobrien
10058218822Sdim/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10059218822Sdim   find out it does not work in some platform. */
10060218822Sdim#ifndef LT_DLLAZY_OR_NOW
10061218822Sdim#  ifdef RTLD_LAZY
10062218822Sdim#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10063218822Sdim#  else
10064218822Sdim#    ifdef DL_LAZY
10065218822Sdim#      define LT_DLLAZY_OR_NOW		DL_LAZY
10066218822Sdim#    else
10067218822Sdim#      ifdef RTLD_NOW
10068218822Sdim#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10069218822Sdim#      else
10070218822Sdim#        ifdef DL_NOW
10071218822Sdim#          define LT_DLLAZY_OR_NOW	DL_NOW
10072218822Sdim#        else
10073218822Sdim#          define LT_DLLAZY_OR_NOW	0
10074218822Sdim#        endif
10075218822Sdim#      endif
10076218822Sdim#    endif
10077218822Sdim#  endif
10078218822Sdim#endif
1007960484Sobrien
1008060484Sobrien#ifdef __cplusplus
10081218822Sdimextern "C" void exit (int);
1008260484Sobrien#endif
1008360484Sobrien
10084218822Sdimvoid fnord() { int i=42;}
10085218822Sdimint main ()
1008660484Sobrien{
10087218822Sdim  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10088218822Sdim  int status = $lt_dlunknown;
1008960484Sobrien
10090218822Sdim  if (self)
10091218822Sdim    {
10092218822Sdim      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10093218822Sdim      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10094218822Sdim      /* dlclose (self); */
10095218822Sdim    }
10096218822Sdim  else
10097218822Sdim    puts (dlerror ());
1009860484Sobrien
10099218822Sdim    exit (status);
1010060484Sobrien}
10101218822Sdim_LT_EOF
10102218822Sdim  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103218822Sdim  (eval $ac_link) 2>&5
10104218822Sdim  ac_status=$?
10105218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106218822Sdim  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10107218822Sdim    (./conftest; exit; ) >&5 2>/dev/null
10108218822Sdim    lt_status=$?
10109218822Sdim    case x$lt_status in
10110218822Sdim      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10111218822Sdim      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10112218822Sdim      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10113218822Sdim    esac
10114218822Sdim  else :
10115218822Sdim    # compilation failed
10116218822Sdim    lt_cv_dlopen_self_static=no
10117218822Sdim  fi
1011860484Sobrienfi
1011960484Sobrienrm -fr conftest*
1012060484Sobrien
10121218822Sdim
1012260484Sobrienfi
10123218822Sdimecho "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10124218822Sdimecho "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10125218822Sdim    fi
1012660484Sobrien
10127218822Sdim    CPPFLAGS="$save_CPPFLAGS"
10128218822Sdim    LDFLAGS="$save_LDFLAGS"
10129218822Sdim    LIBS="$save_LIBS"
10130218822Sdim    ;;
10131218822Sdim  esac
1013260484Sobrien
10133218822Sdim  case $lt_cv_dlopen_self in
10134218822Sdim  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10135218822Sdim  *) enable_dlopen_self=unknown ;;
10136218822Sdim  esac
1013760484Sobrien
10138218822Sdim  case $lt_cv_dlopen_self_static in
10139218822Sdim  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10140218822Sdim  *) enable_dlopen_self_static=unknown ;;
10141218822Sdim  esac
1014233965Sjdpfi
1014360484Sobrien
1014460484Sobrien
1014560484Sobrien
1014660484Sobrien
1014760484Sobrien
1014833965Sjdp
1014960484Sobrien
1015060484Sobrien
1015160484Sobrien
1015260484Sobrien
10153218822Sdim
10154218822Sdim
10155218822Sdim
10156218822Sdim
10157218822Sdim
10158218822Sdim
10159218822Sdim
10160218822Sdimstriplib=
10161218822Sdimold_striplib=
10162218822Sdimecho "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10163218822Sdimecho $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10164218822Sdimif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10165218822Sdim  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10166218822Sdim  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10167218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
10168218822Sdimecho "${ECHO_T}yes" >&6
1016938889Sjdpelse
10170218822Sdim# FIXME - insert some real tests, host_os isn't really good enough
10171218822Sdim  case $host_os in
10172218822Sdim  darwin*)
10173218822Sdim    if test -n "$STRIP" ; then
10174218822Sdim      striplib="$STRIP -x"
10175218822Sdim      old_striplib="$STRIP -S"
10176218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
10177218822Sdimecho "${ECHO_T}yes" >&6
10178218822Sdim    else
10179218822Sdim      echo "$as_me:$LINENO: result: no" >&5
10180218822Sdimecho "${ECHO_T}no" >&6
10181218822Sdim    fi
10182218822Sdim    ;;
10183218822Sdim  *)
10184218822Sdim    echo "$as_me:$LINENO: result: no" >&5
10185218822Sdimecho "${ECHO_T}no" >&6
10186218822Sdim    ;;
10187218822Sdim  esac
1018838889Sjdpfi
1018938889Sjdp
10190218822Sdim
10191218822Sdim
10192218822Sdim
10193218822Sdim
10194218822Sdim
10195218822Sdim
10196218822Sdim
10197218822Sdim
10198218822Sdim
10199218822Sdim
10200218822Sdim
10201218822Sdim  # Report which library types will actually be built
10202218822Sdim  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10203218822Sdimecho $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10204218822Sdim  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10205218822Sdimecho "${ECHO_T}$can_build_shared" >&6
10206218822Sdim
10207218822Sdim  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10208218822Sdimecho $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10209218822Sdim  test "$can_build_shared" = "no" && enable_shared=no
10210218822Sdim
10211218822Sdim  # On AIX, shared libraries and static libraries use the same namespace, and
10212218822Sdim  # are all built from PIC.
10213218822Sdim  case $host_os in
10214218822Sdim  aix3*)
10215218822Sdim    test "$enable_shared" = yes && enable_static=no
10216218822Sdim    if test -n "$RANLIB"; then
10217218822Sdim      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10218218822Sdim      postinstall_cmds='$RANLIB $lib'
10219218822Sdim    fi
10220218822Sdim    ;;
10221218822Sdim
10222218822Sdim  aix4* | aix5*)
10223218822Sdim    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10224218822Sdim      test "$enable_shared" = yes && enable_static=no
10225218822Sdim    fi
10226218822Sdim    ;;
10227218822Sdim  esac
10228218822Sdim  echo "$as_me:$LINENO: result: $enable_shared" >&5
10229218822Sdimecho "${ECHO_T}$enable_shared" >&6
10230218822Sdim
10231218822Sdim  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10232218822Sdimecho $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10233218822Sdim  # Make sure either enable_shared or enable_static is yes.
10234218822Sdim  test "$enable_shared" = yes || enable_static=yes
10235218822Sdim  echo "$as_me:$LINENO: result: $enable_static" >&5
10236218822Sdimecho "${ECHO_T}$enable_static" >&6
10237218822Sdim
10238218822Sdim
10239218822Sdim
10240218822Sdim
1024160484Sobrienfi
10242218822Sdimac_ext=c
10243218822Sdimac_cpp='$CPP $CPPFLAGS'
10244218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
1024738889Sjdp
10248218822SdimCC="$lt_save_CC"
1024960484Sobrien
1025060484Sobrien
10251218822Sdim
10252218822Sdim
10253218822Sdim
10254218822Sdim
10255218822Sdim
10256218822Sdim
10257218822Sdim
10258218822Sdim
10259218822Sdim
10260218822Sdim
10261218822Sdim
10262218822Sdim                  ac_config_commands="$ac_config_commands libtool"
10263218822Sdim
10264218822Sdim
10265218822Sdim
10266218822Sdim
10267218822Sdim# Only expand once:
10268218822Sdim
10269218822Sdim
10270218822Sdim
10271218822Sdim# Check whether --enable-targets or --disable-targets was given.
10272218822Sdimif test "${enable_targets+set}" = set; then
10273218822Sdim  enableval="$enable_targets"
10274218822Sdim  case "${enableval}" in
10275218822Sdim  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10276218822Sdimecho "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10277218822Sdim   { (exit 1); exit 1; }; }
10278218822Sdim            ;;
10279218822Sdim  no)       enable_targets= ;;
10280218822Sdim  *)        enable_targets=$enableval ;;
10281218822Sdimesac
10282218822Sdimfi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10283218822Sdimif test "${enable_commonbfdlib+set}" = set; then
10284218822Sdim  enableval="$enable_commonbfdlib"
10285218822Sdim  case "${enableval}" in
10286218822Sdim  yes) commonbfdlib=true ;;
10287218822Sdim  no)  commonbfdlib=false ;;
10288218822Sdim  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10289218822Sdimecho "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10290218822Sdim   { (exit 1); exit 1; }; } ;;
10291218822Sdimesac
10292218822Sdimfi;
10293218822Sdim
10294218822SdimGCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10295218822Sdim
10296218822Sdim# Check whether --enable-werror or --disable-werror was given.
10297218822Sdimif test "${enable_werror+set}" = set; then
10298218822Sdim  enableval="$enable_werror"
10299218822Sdim  case "${enableval}" in
10300218822Sdim     yes | y) ERROR_ON_WARNING="yes" ;;
10301218822Sdim     no | n)  ERROR_ON_WARNING="no" ;;
10302218822Sdim     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10303218822Sdimecho "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10304218822Sdim   { (exit 1); exit 1; }; } ;;
10305218822Sdim   esac
10306218822Sdimfi;
10307218822Sdim
10308218822Sdim# Enable -Werror by default when using gcc
10309218822Sdimif test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10310218822Sdim    ERROR_ON_WARNING=yes
1031160484Sobrienfi
10312218822Sdim
10313218822SdimNO_WERROR=
10314218822Sdimif test "${ERROR_ON_WARNING}" = yes ; then
10315218822Sdim    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10316218822Sdim    NO_WERROR="-Wno-error"
1031760484Sobrienfi
1031838889Sjdp
10319218822Sdimif test "${GCC}" = yes ; then
10320218822Sdim  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10321218822Sdimfi
1032260484Sobrien
10323218822Sdim# Check whether --enable-build-warnings or --disable-build-warnings was given.
10324218822Sdimif test "${enable_build_warnings+set}" = set; then
10325218822Sdim  enableval="$enable_build_warnings"
10326218822Sdim  case "${enableval}" in
10327218822Sdim  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10328218822Sdim  no)	if test "${GCC}" = yes ; then
10329218822Sdim	  WARN_CFLAGS="-w"
10330218822Sdim	fi;;
10331218822Sdim  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10332218822Sdim        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10333218822Sdim  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10334218822Sdim        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10335218822Sdim  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10336218822Sdimesac
10337218822Sdimfi;
10338218822Sdim
10339218822Sdimif test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10340218822Sdim  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
1034160484Sobrienfi
1034260484Sobrien
1034360484Sobrien
1034460484Sobrien
1034560484Sobrien
1034660484Sobrien
10347218822Sdim          ac_config_headers="$ac_config_headers config.h:config.in"
1034860484Sobrien
1034960484Sobrien
10350218822Sdimif test -z "$target" ; then
10351218822Sdim    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10352218822Sdimecho "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10353218822Sdim   { (exit 1); exit 1; }; }
10354218822Sdimfi
10355218822Sdimif test -z "$host" ; then
10356218822Sdim    { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10357218822Sdimecho "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10358218822Sdim   { (exit 1); exit 1; }; }
10359218822Sdimfi
10360218822Sdim
10361218822Sdimfor ac_prog in 'bison -y' byacc
10362218822Sdimdo
10363218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
10364218822Sdimset dummy $ac_prog; ac_word=$2
10365218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10366218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10367218822Sdimif test "${ac_cv_prog_YACC+set}" = set; then
10368218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1036960484Sobrienelse
10370218822Sdim  if test -n "$YACC"; then
10371218822Sdim  ac_cv_prog_YACC="$YACC" # Let the user override the test.
1037260484Sobrienelse
10373218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374218822Sdimfor as_dir in $PATH
10375218822Sdimdo
10376218822Sdim  IFS=$as_save_IFS
10377218822Sdim  test -z "$as_dir" && as_dir=.
10378218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10379218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380218822Sdim    ac_cv_prog_YACC="$ac_prog"
10381218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10382218822Sdim    break 2
10383218822Sdim  fi
10384218822Sdimdone
10385218822Sdimdone
10386218822Sdim
1038760484Sobrienfi
1038860484Sobrienfi
10389218822SdimYACC=$ac_cv_prog_YACC
10390218822Sdimif test -n "$YACC"; then
10391218822Sdim  echo "$as_me:$LINENO: result: $YACC" >&5
10392218822Sdimecho "${ECHO_T}$YACC" >&6
1039360484Sobrienelse
10394218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10395218822Sdimecho "${ECHO_T}no" >&6
10396218822Sdimfi
10397218822Sdim
10398218822Sdim  test -n "$YACC" && break
10399218822Sdimdone
10400218822Sdimtest -n "$YACC" || YACC="yacc"
10401218822Sdim
10402218822Sdimfor ac_prog in flex lex
10403218822Sdimdo
10404218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
10405218822Sdimset dummy $ac_prog; ac_word=$2
10406218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10407218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10408218822Sdimif test "${ac_cv_prog_LEX+set}" = set; then
10409218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1041038889Sjdpelse
10411218822Sdim  if test -n "$LEX"; then
10412218822Sdim  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10413218822Sdimelse
10414218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415218822Sdimfor as_dir in $PATH
10416218822Sdimdo
10417218822Sdim  IFS=$as_save_IFS
10418218822Sdim  test -z "$as_dir" && as_dir=.
10419218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10420218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421218822Sdim    ac_cv_prog_LEX="$ac_prog"
10422218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10423218822Sdim    break 2
10424218822Sdim  fi
10425218822Sdimdone
10426218822Sdimdone
10427218822Sdim
1042838889Sjdpfi
1042960484Sobrienfi
10430218822SdimLEX=$ac_cv_prog_LEX
10431218822Sdimif test -n "$LEX"; then
10432218822Sdim  echo "$as_me:$LINENO: result: $LEX" >&5
10433218822Sdimecho "${ECHO_T}$LEX" >&6
10434218822Sdimelse
10435218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10436218822Sdimecho "${ECHO_T}no" >&6
10437218822Sdimfi
1043860484Sobrien
10439218822Sdim  test -n "$LEX" && break
10440218822Sdimdone
10441218822Sdimtest -n "$LEX" || LEX=":"
1044260484Sobrien
10443218822Sdimif test -z "$LEXLIB"
10444218822Sdimthen
10445218822Sdim  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10446218822Sdimecho $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10447218822Sdimif test "${ac_cv_lib_fl_yywrap+set}" = set; then
10448218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1044960484Sobrienelse
10450218822Sdim  ac_check_lib_save_LIBS=$LIBS
10451218822SdimLIBS="-lfl  $LIBS"
10452218822Sdimcat >conftest.$ac_ext <<_ACEOF
10453218822Sdim/* confdefs.h.  */
10454218822Sdim_ACEOF
10455218822Sdimcat confdefs.h >>conftest.$ac_ext
10456218822Sdimcat >>conftest.$ac_ext <<_ACEOF
10457218822Sdim/* end confdefs.h.  */
10458218822Sdim
1045960484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
10460218822Sdim#ifdef __cplusplus
10461218822Sdimextern "C"
10462218822Sdim#endif
1046360484Sobrien/* We use char because int might match the return type of a gcc2
10464218822Sdim   builtin and then its argument prototype would still apply.  */
10465218822Sdimchar yywrap ();
10466218822Sdimint
10467218822Sdimmain ()
10468218822Sdim{
10469218822Sdimyywrap ();
10470218822Sdim  ;
10471218822Sdim  return 0;
10472218822Sdim}
10473218822Sdim_ACEOF
10474218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
10475218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476218822Sdim  (eval $ac_link) 2>conftest.er1
10477218822Sdim  ac_status=$?
10478218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
10479218822Sdim  rm -f conftest.er1
10480218822Sdim  cat conftest.err >&5
10481218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482218822Sdim  (exit $ac_status); } &&
10483218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
10484218822Sdim			 || test ! -s conftest.err'
10485218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486218822Sdim  (eval $ac_try) 2>&5
10487218822Sdim  ac_status=$?
10488218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489218822Sdim  (exit $ac_status); }; } &&
10490218822Sdim	 { ac_try='test -s conftest$ac_exeext'
10491218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492218822Sdim  (eval $ac_try) 2>&5
10493218822Sdim  ac_status=$?
10494218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495218822Sdim  (exit $ac_status); }; }; then
10496218822Sdim  ac_cv_lib_fl_yywrap=yes
1049760484Sobrienelse
10498218822Sdim  echo "$as_me: failed program was:" >&5
10499218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1050038889Sjdp
10501218822Sdimac_cv_lib_fl_yywrap=no
1050238889Sjdpfi
10503218822Sdimrm -f conftest.err conftest.$ac_objext \
10504218822Sdim      conftest$ac_exeext conftest.$ac_ext
10505218822SdimLIBS=$ac_check_lib_save_LIBS
10506218822Sdimfi
10507218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10508218822Sdimecho "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10509218822Sdimif test $ac_cv_lib_fl_yywrap = yes; then
10510218822Sdim  LEXLIB="-lfl"
1051160484Sobrienelse
10512218822Sdim  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10513218822Sdimecho $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10514218822Sdimif test "${ac_cv_lib_l_yywrap+set}" = set; then
10515218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10516218822Sdimelse
10517218822Sdim  ac_check_lib_save_LIBS=$LIBS
10518218822SdimLIBS="-ll  $LIBS"
10519218822Sdimcat >conftest.$ac_ext <<_ACEOF
10520218822Sdim/* confdefs.h.  */
10521218822Sdim_ACEOF
10522218822Sdimcat confdefs.h >>conftest.$ac_ext
10523218822Sdimcat >>conftest.$ac_ext <<_ACEOF
10524218822Sdim/* end confdefs.h.  */
1052538889Sjdp
10526218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
10527218822Sdim#ifdef __cplusplus
10528218822Sdimextern "C"
10529218822Sdim#endif
10530218822Sdim/* We use char because int might match the return type of a gcc2
10531218822Sdim   builtin and then its argument prototype would still apply.  */
10532218822Sdimchar yywrap ();
10533218822Sdimint
10534218822Sdimmain ()
10535218822Sdim{
10536218822Sdimyywrap ();
10537218822Sdim  ;
10538218822Sdim  return 0;
10539218822Sdim}
10540218822Sdim_ACEOF
10541218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
10542218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543218822Sdim  (eval $ac_link) 2>conftest.er1
10544218822Sdim  ac_status=$?
10545218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
10546218822Sdim  rm -f conftest.er1
10547218822Sdim  cat conftest.err >&5
10548218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549218822Sdim  (exit $ac_status); } &&
10550218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
10551218822Sdim			 || test ! -s conftest.err'
10552218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553218822Sdim  (eval $ac_try) 2>&5
10554218822Sdim  ac_status=$?
10555218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556218822Sdim  (exit $ac_status); }; } &&
10557218822Sdim	 { ac_try='test -s conftest$ac_exeext'
10558218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559218822Sdim  (eval $ac_try) 2>&5
10560218822Sdim  ac_status=$?
10561218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562218822Sdim  (exit $ac_status); }; }; then
10563218822Sdim  ac_cv_lib_l_yywrap=yes
1056460484Sobrienelse
10565218822Sdim  echo "$as_me: failed program was:" >&5
10566218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
10567218822Sdim
10568218822Sdimac_cv_lib_l_yywrap=no
1056960484Sobrienfi
10570218822Sdimrm -f conftest.err conftest.$ac_objext \
10571218822Sdim      conftest$ac_exeext conftest.$ac_ext
10572218822SdimLIBS=$ac_check_lib_save_LIBS
1057360484Sobrienfi
10574218822Sdimecho "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10575218822Sdimecho "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10576218822Sdimif test $ac_cv_lib_l_yywrap = yes; then
10577218822Sdim  LEXLIB="-ll"
10578218822Sdimfi
1057938889Sjdp
1058038889Sjdpfi
1058138889Sjdp
10582218822Sdimfi
1058338889Sjdp
10584218822Sdimif test "x$LEX" != "x:"; then
10585218822Sdim  echo "$as_me:$LINENO: checking lex output file root" >&5
10586218822Sdimecho $ECHO_N "checking lex output file root... $ECHO_C" >&6
10587218822Sdimif test "${ac_cv_prog_lex_root+set}" = set; then
10588218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1058960484Sobrienelse
10590218822Sdim  # The minimal lex program is just a single line: %%.  But some broken lexes
10591218822Sdim# (Solaris, I think it was) want two %% lines, so accommodate them.
10592218822Sdimcat >conftest.l <<_ACEOF
10593218822Sdim%%
10594218822Sdim%%
10595218822Sdim_ACEOF
10596218822Sdim{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10597218822Sdim  (eval $LEX conftest.l) 2>&5
10598218822Sdim  ac_status=$?
10599218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600218822Sdim  (exit $ac_status); }
10601218822Sdimif test -f lex.yy.c; then
10602218822Sdim  ac_cv_prog_lex_root=lex.yy
10603218822Sdimelif test -f lexyy.c; then
10604218822Sdim  ac_cv_prog_lex_root=lexyy
1060560484Sobrienelse
10606218822Sdim  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10607218822Sdimecho "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10608218822Sdim   { (exit 1); exit 1; }; }
1060960484Sobrienfi
10610218822Sdimfi
10611218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10612218822Sdimecho "${ECHO_T}$ac_cv_prog_lex_root" >&6
10613218822Sdimrm -f conftest.l
10614218822SdimLEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10615218822Sdim
10616218822Sdimecho "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10617218822Sdimecho $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10618218822Sdimif test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10619218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1062060484Sobrienelse
10621218822Sdim  # POSIX says lex can declare yytext either as a pointer or an array; the
10622218822Sdim# default is implementation-dependent. Figure out which it is, since
10623218822Sdim# not all implementations provide the %pointer and %array declarations.
10624218822Sdimac_cv_prog_lex_yytext_pointer=no
10625218822Sdimecho 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10626218822Sdimac_save_LIBS=$LIBS
10627218822SdimLIBS="$LIBS $LEXLIB"
10628218822Sdimcat >conftest.$ac_ext <<_ACEOF
10629218822Sdim`cat $LEX_OUTPUT_ROOT.c`
10630218822Sdim_ACEOF
10631218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
10632218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633218822Sdim  (eval $ac_link) 2>conftest.er1
10634218822Sdim  ac_status=$?
10635218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
10636218822Sdim  rm -f conftest.er1
10637218822Sdim  cat conftest.err >&5
10638218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639218822Sdim  (exit $ac_status); } &&
10640218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
10641218822Sdim			 || test ! -s conftest.err'
10642218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643218822Sdim  (eval $ac_try) 2>&5
10644218822Sdim  ac_status=$?
10645218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646218822Sdim  (exit $ac_status); }; } &&
10647218822Sdim	 { ac_try='test -s conftest$ac_exeext'
10648218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649218822Sdim  (eval $ac_try) 2>&5
10650218822Sdim  ac_status=$?
10651218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652218822Sdim  (exit $ac_status); }; }; then
10653218822Sdim  ac_cv_prog_lex_yytext_pointer=yes
10654218822Sdimelse
10655218822Sdim  echo "$as_me: failed program was:" >&5
10656218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1065760484Sobrien
10658218822Sdimfi
10659218822Sdimrm -f conftest.err conftest.$ac_objext \
10660218822Sdim      conftest$ac_exeext conftest.$ac_ext
10661218822SdimLIBS=$ac_save_LIBS
10662218822Sdimrm -f "${LEX_OUTPUT_ROOT}.c"
1066360484Sobrien
10664218822Sdimfi
10665218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10666218822Sdimecho "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10667218822Sdimif test $ac_cv_prog_lex_yytext_pointer = yes; then
1066860484Sobrien
10669218822Sdimcat >>confdefs.h <<\_ACEOF
10670218822Sdim#define YYTEXT_POINTER 1
10671218822Sdim_ACEOF
10672218822Sdim
1067360484Sobrienfi
1067460484Sobrien
1067560484Sobrienfi
10676218822Sdimif test "$LEX" = :; then
10677218822Sdim  LEX=${am_missing_run}flex
10678218822Sdimfi
1067960484Sobrien
10680218822SdimALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
10681218822Sdim# If we haven't got the data from the intl directory,
10682218822Sdim# assume NLS is disabled.
10683218822SdimUSE_NLS=no
10684218822SdimLIBINTL=
10685218822SdimLIBINTL_DEP=
10686218822SdimINCINTL=
10687218822SdimXGETTEXT=
10688218822SdimGMSGFMT=
10689218822SdimPOSUB=
10690218822Sdim
10691218822Sdimif test -f  ../intl/config.intl; then
10692218822Sdim  .  ../intl/config.intl
1069360484Sobrienfi
10694218822Sdimecho "$as_me:$LINENO: checking whether NLS is requested" >&5
10695218822Sdimecho $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10696218822Sdimif test x"$USE_NLS" != xyes; then
10697218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10698218822Sdimecho "${ECHO_T}no" >&6
1069960484Sobrienelse
10700218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
10701218822Sdimecho "${ECHO_T}yes" >&6
1070260484Sobrien
10703218822Sdimcat >>confdefs.h <<\_ACEOF
10704218822Sdim#define ENABLE_NLS 1
10705218822Sdim_ACEOF
10706218822Sdim
10707218822Sdim
10708218822Sdim  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10709218822Sdimecho $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10710218822Sdim  # Look for .po and .gmo files in the source directory.
10711218822Sdim  CATALOGS=
10712218822Sdim  XLINGUAS=
10713218822Sdim  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10714218822Sdim    # If there aren't any .gmo files the shell will give us the
10715218822Sdim    # literal string "../path/to/srcdir/po/*.gmo" which has to be
10716218822Sdim    # weeded out.
10717218822Sdim    case "$cat" in *\**)
10718218822Sdim      continue;;
10719218822Sdim    esac
10720218822Sdim    # The quadruple backslash is collapsed to a double backslash
10721218822Sdim    # by the backticks, then collapsed again by the double quotes,
10722218822Sdim    # leaving us with one backslash in the sed expression (right
10723218822Sdim    # before the dot that mustn't act as a wildcard).
10724218822Sdim    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10725218822Sdim    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10726218822Sdim    # The user is allowed to set LINGUAS to a list of languages to
10727218822Sdim    # install catalogs for.  If it's empty that means "all of them."
10728218822Sdim    if test "x$LINGUAS" = x; then
10729218822Sdim      CATALOGS="$CATALOGS $cat"
10730218822Sdim      XLINGUAS="$XLINGUAS $lang"
10731218822Sdim    else
10732218822Sdim      case "$LINGUAS" in *$lang*)
10733218822Sdim        CATALOGS="$CATALOGS $cat"
10734218822Sdim        XLINGUAS="$XLINGUAS $lang"
10735218822Sdim        ;;
10736218822Sdim      esac
1073760484Sobrien    fi
1073860484Sobrien  done
10739218822Sdim  LINGUAS="$XLINGUAS"
10740218822Sdim  echo "$as_me:$LINENO: result: $LINGUAS" >&5
10741218822Sdimecho "${ECHO_T}$LINGUAS" >&6
10742218822Sdim
10743218822Sdim
10744218822Sdim    DATADIRNAME=share
10745218822Sdim
10746218822Sdim  INSTOBJEXT=.mo
10747218822Sdim
10748218822Sdim  GENCAT=gencat
10749218822Sdim
10750218822Sdim  CATOBJEXT=.gmo
10751218822Sdim
1075260484Sobrienfi
10753218822Sdim
10754218822Sdim        MKINSTALLDIRS=
10755218822Sdim  if test -n "$ac_aux_dir"; then
10756218822Sdim    case "$ac_aux_dir" in
10757218822Sdim      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10758218822Sdim      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10759218822Sdim    esac
10760218822Sdim  fi
10761218822Sdim  if test -z "$MKINSTALLDIRS"; then
10762218822Sdim    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10763218822Sdim  fi
10764218822Sdim
10765218822Sdim
10766218822Sdim
10767218822Sdim  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10768218822Sdimecho $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10769218822Sdim    # Check whether --enable-nls or --disable-nls was given.
10770218822Sdimif test "${enable_nls+set}" = set; then
10771218822Sdim  enableval="$enable_nls"
10772218822Sdim  USE_NLS=$enableval
1077360484Sobrienelse
10774218822Sdim  USE_NLS=yes
10775218822Sdimfi;
10776218822Sdim  echo "$as_me:$LINENO: result: $USE_NLS" >&5
10777218822Sdimecho "${ECHO_T}$USE_NLS" >&6
1077860484Sobrien
1077960484Sobrien
10780218822Sdim
10781218822Sdim
10782218822Sdim
10783218822Sdim
10784218822Sdim# Prepare PATH_SEPARATOR.
10785218822Sdim# The user is always right.
10786218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
10787218822Sdim  echo "#! /bin/sh" >conf$$.sh
10788218822Sdim  echo  "exit 0"   >>conf$$.sh
10789218822Sdim  chmod +x conf$$.sh
10790218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10791218822Sdim    PATH_SEPARATOR=';'
10792218822Sdim  else
10793218822Sdim    PATH_SEPARATOR=:
10794218822Sdim  fi
10795218822Sdim  rm -f conf$$.sh
1079660484Sobrienfi
10797218822Sdim
10798218822Sdim# Find out how to test for executable files. Don't use a zero-byte file,
10799218822Sdim# as systems may use methods other than mode bits to determine executability.
10800218822Sdimcat >conf$$.file <<_ASEOF
10801218822Sdim#! /bin/sh
10802218822Sdimexit 0
10803218822Sdim_ASEOF
10804218822Sdimchmod +x conf$$.file
10805218822Sdimif test -x conf$$.file >/dev/null 2>&1; then
10806218822Sdim  ac_executable_p="test -x"
1080760484Sobrienelse
10808218822Sdim  ac_executable_p="test -f"
1080960484Sobrienfi
10810218822Sdimrm -f conf$$.file
1081160484Sobrien
10812218822Sdim# Extract the first word of "msgfmt", so it can be a program name with args.
1081360484Sobrienset dummy msgfmt; ac_word=$2
10814218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10815218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10816218822Sdimif test "${ac_cv_path_MSGFMT+set}" = set; then
10817218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1081860484Sobrienelse
1081960484Sobrien  case "$MSGFMT" in
10820218822Sdim  [\\/]* | ?:[\\/]*)
10821218822Sdim    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10822218822Sdim    ;;
1082360484Sobrien  *)
10824218822Sdim    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10825218822Sdim    for ac_dir in $PATH; do
10826218822Sdim      IFS="$ac_save_IFS"
10827218822Sdim      test -z "$ac_dir" && ac_dir=.
10828218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
10829218822Sdim        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10830218822Sdim          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10831218822Sdim     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10832218822Sdim            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10833218822Sdim            break 2
10834218822Sdim          fi
10835218822Sdim        fi
10836218822Sdim      done
10837218822Sdim    done
10838218822Sdim    IFS="$ac_save_IFS"
10839218822Sdim  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10840218822Sdim    ;;
1084160484Sobrienesac
1084260484Sobrienfi
1084360484SobrienMSGFMT="$ac_cv_path_MSGFMT"
10844218822Sdimif test "$MSGFMT" != ":"; then
10845218822Sdim  echo "$as_me:$LINENO: result: $MSGFMT" >&5
10846218822Sdimecho "${ECHO_T}$MSGFMT" >&6
1084760484Sobrienelse
10848218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10849218822Sdimecho "${ECHO_T}no" >&6
1085060484Sobrienfi
1085160484Sobrien
10852218822Sdim  # Extract the first word of "gmsgfmt", so it can be a program name with args.
1085360484Sobrienset dummy gmsgfmt; ac_word=$2
10854218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10855218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10856218822Sdimif test "${ac_cv_path_GMSGFMT+set}" = set; then
10857218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1085860484Sobrienelse
10859218822Sdim  case $GMSGFMT in
10860218822Sdim  [\\/]* | ?:[\\/]*)
1086160484Sobrien  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
1086260484Sobrien  ;;
1086360484Sobrien  *)
10864218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10865218822Sdimfor as_dir in $PATH
10866218822Sdimdo
10867218822Sdim  IFS=$as_save_IFS
10868218822Sdim  test -z "$as_dir" && as_dir=.
10869218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10870218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10871218822Sdim    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10872218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10873218822Sdim    break 2
10874218822Sdim  fi
10875218822Sdimdone
10876218822Sdimdone
10877218822Sdim
1087860484Sobrien  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
1087960484Sobrien  ;;
1088060484Sobrienesac
1088160484Sobrienfi
10882218822SdimGMSGFMT=$ac_cv_path_GMSGFMT
10883218822Sdim
1088460484Sobrienif test -n "$GMSGFMT"; then
10885218822Sdim  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10886218822Sdimecho "${ECHO_T}$GMSGFMT" >&6
1088760484Sobrienelse
10888218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10889218822Sdimecho "${ECHO_T}no" >&6
1089060484Sobrienfi
1089160484Sobrien
10892218822Sdim
10893218822Sdim
10894218822Sdim# Prepare PATH_SEPARATOR.
10895218822Sdim# The user is always right.
10896218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
10897218822Sdim  echo "#! /bin/sh" >conf$$.sh
10898218822Sdim  echo  "exit 0"   >>conf$$.sh
10899218822Sdim  chmod +x conf$$.sh
10900218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10901218822Sdim    PATH_SEPARATOR=';'
10902218822Sdim  else
10903218822Sdim    PATH_SEPARATOR=:
10904218822Sdim  fi
10905218822Sdim  rm -f conf$$.sh
10906218822Sdimfi
10907218822Sdim
10908218822Sdim# Find out how to test for executable files. Don't use a zero-byte file,
10909218822Sdim# as systems may use methods other than mode bits to determine executability.
10910218822Sdimcat >conf$$.file <<_ASEOF
10911218822Sdim#! /bin/sh
10912218822Sdimexit 0
10913218822Sdim_ASEOF
10914218822Sdimchmod +x conf$$.file
10915218822Sdimif test -x conf$$.file >/dev/null 2>&1; then
10916218822Sdim  ac_executable_p="test -x"
10917218822Sdimelse
10918218822Sdim  ac_executable_p="test -f"
10919218822Sdimfi
10920218822Sdimrm -f conf$$.file
10921218822Sdim
10922218822Sdim# Extract the first word of "xgettext", so it can be a program name with args.
1092360484Sobrienset dummy xgettext; ac_word=$2
10924218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10925218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10926218822Sdimif test "${ac_cv_path_XGETTEXT+set}" = set; then
10927218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1092860484Sobrienelse
1092960484Sobrien  case "$XGETTEXT" in
10930218822Sdim  [\\/]* | ?:[\\/]*)
10931218822Sdim    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10932218822Sdim    ;;
1093360484Sobrien  *)
10934218822Sdim    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10935218822Sdim    for ac_dir in $PATH; do
10936218822Sdim      IFS="$ac_save_IFS"
10937218822Sdim      test -z "$ac_dir" && ac_dir=.
10938218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
10939218822Sdim        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10940218822Sdim          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10941218822Sdim     (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
10942218822Sdim            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10943218822Sdim            break 2
10944218822Sdim          fi
10945218822Sdim        fi
10946218822Sdim      done
10947218822Sdim    done
10948218822Sdim    IFS="$ac_save_IFS"
1094960484Sobrien  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10950218822Sdim    ;;
1095160484Sobrienesac
1095260484Sobrienfi
1095360484SobrienXGETTEXT="$ac_cv_path_XGETTEXT"
10954218822Sdimif test "$XGETTEXT" != ":"; then
10955218822Sdim  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10956218822Sdimecho "${ECHO_T}$XGETTEXT" >&6
1095760484Sobrienelse
10958218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10959218822Sdimecho "${ECHO_T}no" >&6
1096060484Sobrienfi
1096160484Sobrien
10962218822Sdim    rm -f messages.po
1096360484Sobrien
1096460484Sobrien
10965218822Sdim# Prepare PATH_SEPARATOR.
10966218822Sdim# The user is always right.
10967218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
10968218822Sdim  echo "#! /bin/sh" >conf$$.sh
10969218822Sdim  echo  "exit 0"   >>conf$$.sh
10970218822Sdim  chmod +x conf$$.sh
10971218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10972218822Sdim    PATH_SEPARATOR=';'
10973218822Sdim  else
10974218822Sdim    PATH_SEPARATOR=:
10975218822Sdim  fi
10976218822Sdim  rm -f conf$$.sh
10977218822Sdimfi
1097860484Sobrien
10979218822Sdim# Find out how to test for executable files. Don't use a zero-byte file,
10980218822Sdim# as systems may use methods other than mode bits to determine executability.
10981218822Sdimcat >conf$$.file <<_ASEOF
10982218822Sdim#! /bin/sh
10983218822Sdimexit 0
10984218822Sdim_ASEOF
10985218822Sdimchmod +x conf$$.file
10986218822Sdimif test -x conf$$.file >/dev/null 2>&1; then
10987218822Sdim  ac_executable_p="test -x"
10988218822Sdimelse
10989218822Sdim  ac_executable_p="test -f"
10990218822Sdimfi
10991218822Sdimrm -f conf$$.file
1099260484Sobrien
10993218822Sdim# Extract the first word of "msgmerge", so it can be a program name with args.
10994218822Sdimset dummy msgmerge; ac_word=$2
10995218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10996218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10997218822Sdimif test "${ac_cv_path_MSGMERGE+set}" = set; then
10998218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10999218822Sdimelse
11000218822Sdim  case "$MSGMERGE" in
11001218822Sdim  [\\/]* | ?:[\\/]*)
11002218822Sdim    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11003218822Sdim    ;;
11004218822Sdim  *)
11005218822Sdim    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11006218822Sdim    for ac_dir in $PATH; do
11007218822Sdim      IFS="$ac_save_IFS"
11008218822Sdim      test -z "$ac_dir" && ac_dir=.
11009218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
11010218822Sdim        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11011218822Sdim          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11012218822Sdim            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11013218822Sdim            break 2
11014218822Sdim          fi
11015218822Sdim        fi
11016218822Sdim      done
1101760484Sobrien    done
11018218822Sdim    IFS="$ac_save_IFS"
11019218822Sdim  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11020218822Sdim    ;;
11021218822Sdimesac
1102260484Sobrienfi
11023218822SdimMSGMERGE="$ac_cv_path_MSGMERGE"
11024218822Sdimif test "$MSGMERGE" != ":"; then
11025218822Sdim  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11026218822Sdimecho "${ECHO_T}$MSGMERGE" >&6
1102760484Sobrienelse
11028218822Sdim  echo "$as_me:$LINENO: result: no" >&5
11029218822Sdimecho "${ECHO_T}no" >&6
1103060484Sobrienfi
1103160484Sobrien
1103260484Sobrien
11033218822Sdim      if test "$GMSGFMT" != ":"; then
11034218822Sdim            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11035218822Sdim       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11036218822Sdim      : ;
11037218822Sdim    else
11038218822Sdim      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11039218822Sdim      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11040218822Sdimecho "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11041218822Sdim      GMSGFMT=":"
11042218822Sdim    fi
11043218822Sdim  fi
1104460484Sobrien
11045218822Sdim      if test "$XGETTEXT" != ":"; then
11046218822Sdim            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11047218822Sdim       (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
11048218822Sdim      : ;
11049218822Sdim    else
11050218822Sdim      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11051218822Sdimecho "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11052218822Sdim      XGETTEXT=":"
11053218822Sdim    fi
11054218822Sdim        rm -f messages.po
11055218822Sdim  fi
1105660484Sobrien
11057218822Sdim            ac_config_commands="$ac_config_commands default-1"
1105860484Sobrien
1105960484Sobrien
1106060484Sobrien
11061218822Sdimecho "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11062218822Sdimecho $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1106338889Sjdp    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1106438889Sjdpif test "${enable_maintainer_mode+set}" = set; then
1106538889Sjdp  enableval="$enable_maintainer_mode"
1106638889Sjdp  USE_MAINTAINER_MODE=$enableval
1106738889Sjdpelse
1106838889Sjdp  USE_MAINTAINER_MODE=no
11069218822Sdimfi;
11070218822Sdim  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11071218822Sdimecho "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1107238889Sjdp
1107338889Sjdp
1107460484Sobrienif test $USE_MAINTAINER_MODE = yes; then
1107560484Sobrien  MAINTAINER_MODE_TRUE=
1107660484Sobrien  MAINTAINER_MODE_FALSE='#'
1107760484Sobrienelse
1107860484Sobrien  MAINTAINER_MODE_TRUE='#'
1107960484Sobrien  MAINTAINER_MODE_FALSE=
1108060484Sobrienfi
11081218822Sdim
1108260484Sobrien  MAINT=$MAINTAINER_MODE_TRUE
1108360484Sobrien
1108438889Sjdp
1108560484Sobrien
11086218822Sdim
11087218822Sdimif false; then
11088218822Sdim  GENINSRC_NEVER_TRUE=
11089218822Sdim  GENINSRC_NEVER_FALSE='#'
1109038889Sjdpelse
11091218822Sdim  GENINSRC_NEVER_TRUE='#'
11092218822Sdim  GENINSRC_NEVER_FALSE=
1109338889Sjdpfi
1109438889Sjdp
1109538889Sjdp
1109660484Sobrienif test -n "$EXEEXT"; then
11097218822Sdim
11098218822Sdimcat >>confdefs.h <<\_ACEOF
1109960484Sobrien#define HAVE_EXECUTABLE_SUFFIX 1
11100218822Sdim_ACEOF
1110138889Sjdp
1110260484Sobrienfi
11103218822Sdim
11104218822Sdimcat >>confdefs.h <<_ACEOF
1110560484Sobrien#define EXECUTABLE_SUFFIX "${EXEEXT}"
11106218822Sdim_ACEOF
1110760484Sobrien
1110860484Sobrien
1110938889Sjdp# host-specific stuff:
1111038889Sjdp
1111138889SjdpHDEFINES=
1111238889Sjdp
1111338889Sjdp. ${srcdir}/../bfd/configure.host
1111438889Sjdp
1111538889Sjdp
1111638889SjdpAR=${AR-ar}
1111738889Sjdp
11118218822Sdimif test -n "$ac_tool_prefix"; then
11119218822Sdim  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11120218822Sdimset dummy ${ac_tool_prefix}ranlib; ac_word=$2
11121218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
11122218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11123218822Sdimif test "${ac_cv_prog_RANLIB+set}" = set; then
11124218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1112538889Sjdpelse
1112638889Sjdp  if test -n "$RANLIB"; then
1112738889Sjdp  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1112838889Sjdpelse
11129218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130218822Sdimfor as_dir in $PATH
11131218822Sdimdo
11132218822Sdim  IFS=$as_save_IFS
11133218822Sdim  test -z "$as_dir" && as_dir=.
11134218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
11135218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11136218822Sdim    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11137218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11138218822Sdim    break 2
11139218822Sdim  fi
11140218822Sdimdone
11141218822Sdimdone
11142218822Sdim
1114338889Sjdpfi
1114438889Sjdpfi
11145218822SdimRANLIB=$ac_cv_prog_RANLIB
1114638889Sjdpif test -n "$RANLIB"; then
11147218822Sdim  echo "$as_me:$LINENO: result: $RANLIB" >&5
11148218822Sdimecho "${ECHO_T}$RANLIB" >&6
1114938889Sjdpelse
11150218822Sdim  echo "$as_me:$LINENO: result: no" >&5
11151218822Sdimecho "${ECHO_T}no" >&6
1115238889Sjdpfi
1115338889Sjdp
11154218822Sdimfi
11155218822Sdimif test -z "$ac_cv_prog_RANLIB"; then
11156218822Sdim  ac_ct_RANLIB=$RANLIB
11157218822Sdim  # Extract the first word of "ranlib", so it can be a program name with args.
11158218822Sdimset dummy ranlib; ac_word=$2
11159218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
11160218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11161218822Sdimif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11162218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
11163218822Sdimelse
11164218822Sdim  if test -n "$ac_ct_RANLIB"; then
11165218822Sdim  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11166218822Sdimelse
11167218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168218822Sdimfor as_dir in $PATH
11169218822Sdimdo
11170218822Sdim  IFS=$as_save_IFS
11171218822Sdim  test -z "$as_dir" && as_dir=.
11172218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
11173218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11174218822Sdim    ac_cv_prog_ac_ct_RANLIB="ranlib"
11175218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11176218822Sdim    break 2
11177218822Sdim  fi
11178218822Sdimdone
11179218822Sdimdone
11180218822Sdim
11181218822Sdim  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11182218822Sdimfi
11183218822Sdimfi
11184218822Sdimac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11185218822Sdimif test -n "$ac_ct_RANLIB"; then
11186218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11187218822Sdimecho "${ECHO_T}$ac_ct_RANLIB" >&6
11188218822Sdimelse
11189218822Sdim  echo "$as_me:$LINENO: result: no" >&5
11190218822Sdimecho "${ECHO_T}no" >&6
11191218822Sdimfi
11192218822Sdim
11193218822Sdim  RANLIB=$ac_ct_RANLIB
11194218822Sdimelse
11195218822Sdim  RANLIB="$ac_cv_prog_RANLIB"
11196218822Sdimfi
11197218822Sdim
1119860484Sobrien# Find a good install program.  We prefer a C program (faster),
1119960484Sobrien# so one script is as good as another.  But avoid the broken or
1120060484Sobrien# incompatible versions:
1120160484Sobrien# SysV /etc/install, /usr/sbin/install
1120260484Sobrien# SunOS /usr/etc/install
1120360484Sobrien# IRIX /sbin/install
1120460484Sobrien# AIX /bin/install
11205218822Sdim# AmigaOS /C/install, which installs bootblocks on floppy discs
1120660484Sobrien# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1120760484Sobrien# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1120860484Sobrien# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11209218822Sdim# OS/2's system install, which has a completely different semantic
1121060484Sobrien# ./install, which can be erroneously created by make from ./install.sh.
11211218822Sdimecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11212218822Sdimecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1121360484Sobrienif test -z "$INSTALL"; then
11214218822Sdimif test "${ac_cv_path_install+set}" = set; then
11215218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1121660484Sobrienelse
11217218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218218822Sdimfor as_dir in $PATH
11219218822Sdimdo
11220218822Sdim  IFS=$as_save_IFS
11221218822Sdim  test -z "$as_dir" && as_dir=.
11222218822Sdim  # Account for people who put trailing slashes in PATH elements.
11223218822Sdimcase $as_dir/ in
11224218822Sdim  ./ | .// | /cC/* | \
11225218822Sdim  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11226218822Sdim  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11227218822Sdim  /usr/ucb/* ) ;;
11228218822Sdim  *)
11229218822Sdim    # OSF1 and SCO ODT 3.0 have their own names for install.
11230218822Sdim    # Don't use installbsd from OSF since it installs stuff as root
11231218822Sdim    # by default.
11232218822Sdim    for ac_prog in ginstall scoinst install; do
11233218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
11234218822Sdim	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1123560484Sobrien	  if test $ac_prog = install &&
11236218822Sdim	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1123760484Sobrien	    # AIX install.  It has an incompatible calling convention.
1123860484Sobrien	    :
11239218822Sdim	  elif test $ac_prog = install &&
11240218822Sdim	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11241218822Sdim	    # program-specific install script used by HP pwplus--don't use.
11242218822Sdim	    :
1124360484Sobrien	  else
11244218822Sdim	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11245218822Sdim	    break 3
1124660484Sobrien	  fi
1124760484Sobrien	fi
1124860484Sobrien      done
11249218822Sdim    done
11250218822Sdim    ;;
11251218822Sdimesac
11252218822Sdimdone
1125338889Sjdp
11254218822Sdim
1125560484Sobrienfi
1125660484Sobrien  if test "${ac_cv_path_install+set}" = set; then
11257218822Sdim    INSTALL=$ac_cv_path_install
1125860484Sobrien  else
1125960484Sobrien    # As a last resort, use the slow shell script.  We don't cache a
1126060484Sobrien    # path for INSTALL within a source directory, because that will
1126160484Sobrien    # break other packages using the cache if that directory is
1126260484Sobrien    # removed, or if the path is relative.
11263218822Sdim    INSTALL=$ac_install_sh
1126460484Sobrien  fi
1126560484Sobrienfi
11266218822Sdimecho "$as_me:$LINENO: result: $INSTALL" >&5
11267218822Sdimecho "${ECHO_T}$INSTALL" >&6
1126860484Sobrien
1126960484Sobrien# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1127060484Sobrien# It thinks the first close brace ends the variable substitution.
1127160484Sobrientest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1127260484Sobrien
11273218822Sdimtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1127438889Sjdp
1127560484Sobrientest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1127638889Sjdp
1127760484Sobrien
1127838889Sjdp# Put a plausible default for CC_FOR_BUILD in Makefile.
1127938889Sjdpif test -z "$CC_FOR_BUILD"; then
1128038889Sjdp  if test "x$cross_compiling" = "xno"; then
1128138889Sjdp    CC_FOR_BUILD='$(CC)'
1128238889Sjdp  else
1128338889Sjdp    CC_FOR_BUILD=gcc
1128438889Sjdp  fi
1128538889Sjdpfi
1128638889Sjdp
1128738889Sjdp# Also set EXEEXT_FOR_BUILD.
1128838889Sjdpif test "x$cross_compiling" = "xno"; then
1128938889Sjdp  EXEEXT_FOR_BUILD='$(EXEEXT)'
1129038889Sjdpelse
11291218822Sdim  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11292218822Sdimecho $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11293218822Sdimif test "${bfd_cv_build_exeext+set}" = set; then
11294218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1129538889Sjdpelse
1129660484Sobrien  rm -f conftest*
1129760484Sobrien     echo 'int main () { return 0; }' > conftest.c
1129860484Sobrien     bfd_cv_build_exeext=
1129960484Sobrien     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
1130060484Sobrien     for file in conftest.*; do
1130160484Sobrien       case $file in
1130260484Sobrien       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1130360484Sobrien       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
1130460484Sobrien       esac
1130560484Sobrien     done
1130660484Sobrien     rm -f conftest*
1130760484Sobrien     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
1130838889Sjdpfi
11309218822Sdimecho "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11310218822Sdimecho "${ECHO_T}$bfd_cv_build_exeext" >&6
1131138889Sjdp  EXEEXT_FOR_BUILD=""
1131238889Sjdp  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
1131338889Sjdpfi
1131438889Sjdp
1131538889Sjdp
1131660484SobrienDEMANGLER_NAME=c++filt
1131760484Sobriencase "${host}" in
1131860484Sobrien  *-*-go32* | *-*-msdos*)
1131960484Sobrien    DEMANGLER_NAME=cxxfilt
1132060484Sobrienesac
1132160484Sobrien
1132260484Sobrien
11323218822Sdim
11324218822Sdim
11325218822Sdim
11326218822Sdim
11327218822Sdim
11328218822Sdim
11329218822Sdim
11330218822Sdim
11331218822Sdimfor ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
1133233965Sjdpdo
11333218822Sdimas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11334218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
11335218822Sdim  echo "$as_me:$LINENO: checking for $ac_header" >&5
11336218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11337218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
11338218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
11339218822Sdimfi
11340218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11341218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1134233965Sjdpelse
11343218822Sdim  # Is the header compilable?
11344218822Sdimecho "$as_me:$LINENO: checking $ac_header usability" >&5
11345218822Sdimecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11346218822Sdimcat >conftest.$ac_ext <<_ACEOF
11347218822Sdim/* confdefs.h.  */
11348218822Sdim_ACEOF
11349218822Sdimcat confdefs.h >>conftest.$ac_ext
11350218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11351218822Sdim/* end confdefs.h.  */
11352218822Sdim$ac_includes_default
11353218822Sdim#include <$ac_header>
11354218822Sdim_ACEOF
11355218822Sdimrm -f conftest.$ac_objext
11356218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357218822Sdim  (eval $ac_compile) 2>conftest.er1
11358218822Sdim  ac_status=$?
11359218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11360218822Sdim  rm -f conftest.er1
11361218822Sdim  cat conftest.err >&5
11362218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363218822Sdim  (exit $ac_status); } &&
11364218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11365218822Sdim			 || test ! -s conftest.err'
11366218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367218822Sdim  (eval $ac_try) 2>&5
11368218822Sdim  ac_status=$?
11369218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370218822Sdim  (exit $ac_status); }; } &&
11371218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11372218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373218822Sdim  (eval $ac_try) 2>&5
11374218822Sdim  ac_status=$?
11375218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376218822Sdim  (exit $ac_status); }; }; then
11377218822Sdim  ac_header_compiler=yes
1137833965Sjdpelse
11379218822Sdim  echo "$as_me: failed program was:" >&5
11380218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11381218822Sdim
11382218822Sdimac_header_compiler=no
1138333965Sjdpfi
11384218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11385218822Sdimecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
11386218822Sdimecho "${ECHO_T}$ac_header_compiler" >&6
11387218822Sdim
11388218822Sdim# Is the header present?
11389218822Sdimecho "$as_me:$LINENO: checking $ac_header presence" >&5
11390218822Sdimecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11391218822Sdimcat >conftest.$ac_ext <<_ACEOF
11392218822Sdim/* confdefs.h.  */
11393218822Sdim_ACEOF
11394218822Sdimcat confdefs.h >>conftest.$ac_ext
11395218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11396218822Sdim/* end confdefs.h.  */
11397218822Sdim#include <$ac_header>
11398218822Sdim_ACEOF
11399218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11400218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11401218822Sdim  ac_status=$?
11402218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11403218822Sdim  rm -f conftest.er1
11404218822Sdim  cat conftest.err >&5
11405218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406218822Sdim  (exit $ac_status); } >/dev/null; then
11407218822Sdim  if test -s conftest.err; then
11408218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
11409218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11410218822Sdim  else
11411218822Sdim    ac_cpp_err=
11412218822Sdim  fi
11413218822Sdimelse
11414218822Sdim  ac_cpp_err=yes
1141533965Sjdpfi
11416218822Sdimif test -z "$ac_cpp_err"; then
11417218822Sdim  ac_header_preproc=yes
1141833965Sjdpelse
11419218822Sdim  echo "$as_me: failed program was:" >&5
11420218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11421218822Sdim
11422218822Sdim  ac_header_preproc=no
1142333965Sjdpfi
11424218822Sdimrm -f conftest.err conftest.$ac_ext
11425218822Sdimecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
11426218822Sdimecho "${ECHO_T}$ac_header_preproc" >&6
11427218822Sdim
11428218822Sdim# So?  What about this header?
11429218822Sdimcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11430218822Sdim  yes:no: )
11431218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11432218822Sdimecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11433218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11434218822Sdimecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11435218822Sdim    ac_header_preproc=yes
11436218822Sdim    ;;
11437218822Sdim  no:yes:* )
11438218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11439218822Sdimecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11440218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11441218822Sdimecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11442218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11443218822Sdimecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11444218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11445218822Sdimecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11446218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11447218822Sdimecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11448218822Sdim    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11449218822Sdimecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11450218822Sdim    (
11451218822Sdim      cat <<\_ASBOX
11452218822Sdim## ------------------------------------------ ##
11453218822Sdim## Report this to the AC_PACKAGE_NAME lists.  ##
11454218822Sdim## ------------------------------------------ ##
11455218822Sdim_ASBOX
11456218822Sdim    ) |
11457218822Sdim      sed "s/^/$as_me: WARNING:     /" >&2
11458218822Sdim    ;;
11459218822Sdimesac
11460218822Sdimecho "$as_me:$LINENO: checking for $ac_header" >&5
11461218822Sdimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11462218822Sdimif eval "test \"\${$as_ac_Header+set}\" = set"; then
11463218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
11464218822Sdimelse
11465218822Sdim  eval "$as_ac_Header=\$ac_header_preproc"
11466218822Sdimfi
11467218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11468218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11469218822Sdim
11470218822Sdimfi
11471218822Sdimif test `eval echo '${'$as_ac_Header'}'` = yes; then
11472218822Sdim  cat >>confdefs.h <<_ACEOF
11473218822Sdim#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474218822Sdim_ACEOF
11475218822Sdim
11476218822Sdimfi
11477218822Sdim
1147833965Sjdpdone
1147933965Sjdp
11480218822Sdimecho "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11481218822Sdimecho $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11482218822Sdimif test "${ac_cv_header_sys_wait_h+set}" = set; then
11483218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1148433965Sjdpelse
11485218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11486218822Sdim/* confdefs.h.  */
11487218822Sdim_ACEOF
11488218822Sdimcat confdefs.h >>conftest.$ac_ext
11489218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11490218822Sdim/* end confdefs.h.  */
1149133965Sjdp#include <sys/types.h>
1149233965Sjdp#include <sys/wait.h>
1149333965Sjdp#ifndef WEXITSTATUS
11494218822Sdim# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1149533965Sjdp#endif
1149633965Sjdp#ifndef WIFEXITED
11497218822Sdim# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1149833965Sjdp#endif
11499218822Sdim
11500218822Sdimint
11501218822Sdimmain ()
11502218822Sdim{
11503218822Sdim  int s;
11504218822Sdim  wait (&s);
11505218822Sdim  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11506218822Sdim  ;
11507218822Sdim  return 0;
11508218822Sdim}
11509218822Sdim_ACEOF
11510218822Sdimrm -f conftest.$ac_objext
11511218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512218822Sdim  (eval $ac_compile) 2>conftest.er1
11513218822Sdim  ac_status=$?
11514218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11515218822Sdim  rm -f conftest.er1
11516218822Sdim  cat conftest.err >&5
11517218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518218822Sdim  (exit $ac_status); } &&
11519218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11520218822Sdim			 || test ! -s conftest.err'
11521218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522218822Sdim  (eval $ac_try) 2>&5
11523218822Sdim  ac_status=$?
11524218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525218822Sdim  (exit $ac_status); }; } &&
11526218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11527218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528218822Sdim  (eval $ac_try) 2>&5
11529218822Sdim  ac_status=$?
11530218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531218822Sdim  (exit $ac_status); }; }; then
1153233965Sjdp  ac_cv_header_sys_wait_h=yes
1153333965Sjdpelse
11534218822Sdim  echo "$as_me: failed program was:" >&5
11535218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11536218822Sdim
11537218822Sdimac_cv_header_sys_wait_h=no
1153833965Sjdpfi
11539218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1154033965Sjdpfi
11541218822Sdimecho "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11542218822Sdimecho "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11543218822Sdimif test $ac_cv_header_sys_wait_h = yes; then
1154433965Sjdp
11545218822Sdimcat >>confdefs.h <<\_ACEOF
1154633965Sjdp#define HAVE_SYS_WAIT_H 1
11547218822Sdim_ACEOF
1154833965Sjdp
1154933965Sjdpfi
1155033965Sjdp
1155133965Sjdp# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1155233965Sjdp# for constant arguments.  Useless!
11553218822Sdimecho "$as_me:$LINENO: checking for working alloca.h" >&5
11554218822Sdimecho $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11555218822Sdimif test "${ac_cv_working_alloca_h+set}" = set; then
11556218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1155733965Sjdpelse
11558218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11559218822Sdim/* confdefs.h.  */
11560218822Sdim_ACEOF
11561218822Sdimcat confdefs.h >>conftest.$ac_ext
11562218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11563218822Sdim/* end confdefs.h.  */
1156433965Sjdp#include <alloca.h>
11565218822Sdimint
11566218822Sdimmain ()
11567218822Sdim{
11568218822Sdimchar *p = (char *) alloca (2 * sizeof (int));
11569218822Sdim  ;
11570218822Sdim  return 0;
11571218822Sdim}
11572218822Sdim_ACEOF
11573218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
11574218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11575218822Sdim  (eval $ac_link) 2>conftest.er1
11576218822Sdim  ac_status=$?
11577218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11578218822Sdim  rm -f conftest.er1
11579218822Sdim  cat conftest.err >&5
11580218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581218822Sdim  (exit $ac_status); } &&
11582218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11583218822Sdim			 || test ! -s conftest.err'
11584218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585218822Sdim  (eval $ac_try) 2>&5
11586218822Sdim  ac_status=$?
11587218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588218822Sdim  (exit $ac_status); }; } &&
11589218822Sdim	 { ac_try='test -s conftest$ac_exeext'
11590218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591218822Sdim  (eval $ac_try) 2>&5
11592218822Sdim  ac_status=$?
11593218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594218822Sdim  (exit $ac_status); }; }; then
11595218822Sdim  ac_cv_working_alloca_h=yes
1159633965Sjdpelse
11597218822Sdim  echo "$as_me: failed program was:" >&5
11598218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11599218822Sdim
11600218822Sdimac_cv_working_alloca_h=no
1160133965Sjdpfi
11602218822Sdimrm -f conftest.err conftest.$ac_objext \
11603218822Sdim      conftest$ac_exeext conftest.$ac_ext
1160433965Sjdpfi
11605218822Sdimecho "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11606218822Sdimecho "${ECHO_T}$ac_cv_working_alloca_h" >&6
11607218822Sdimif test $ac_cv_working_alloca_h = yes; then
1160833965Sjdp
11609218822Sdimcat >>confdefs.h <<\_ACEOF
1161033965Sjdp#define HAVE_ALLOCA_H 1
11611218822Sdim_ACEOF
1161233965Sjdp
1161333965Sjdpfi
1161433965Sjdp
11615218822Sdimecho "$as_me:$LINENO: checking for alloca" >&5
11616218822Sdimecho $ECHO_N "checking for alloca... $ECHO_C" >&6
11617218822Sdimif test "${ac_cv_func_alloca_works+set}" = set; then
11618218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1161933965Sjdpelse
11620218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11621218822Sdim/* confdefs.h.  */
11622218822Sdim_ACEOF
11623218822Sdimcat confdefs.h >>conftest.$ac_ext
11624218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11625218822Sdim/* end confdefs.h.  */
1162633965Sjdp#ifdef __GNUC__
1162733965Sjdp# define alloca __builtin_alloca
1162833965Sjdp#else
1162960484Sobrien# ifdef _MSC_VER
1163060484Sobrien#  include <malloc.h>
1163160484Sobrien#  define alloca _alloca
1163233965Sjdp# else
1163360484Sobrien#  if HAVE_ALLOCA_H
1163460484Sobrien#   include <alloca.h>
1163560484Sobrien#  else
1163660484Sobrien#   ifdef _AIX
1163733965Sjdp #pragma alloca
1163860484Sobrien#   else
1163960484Sobrien#    ifndef alloca /* predefined by HP cc +Olibcalls */
1164033965Sjdpchar *alloca ();
1164160484Sobrien#    endif
1164233965Sjdp#   endif
1164333965Sjdp#  endif
1164433965Sjdp# endif
1164533965Sjdp#endif
1164633965Sjdp
11647218822Sdimint
11648218822Sdimmain ()
11649218822Sdim{
11650218822Sdimchar *p = (char *) alloca (1);
11651218822Sdim  ;
11652218822Sdim  return 0;
11653218822Sdim}
11654218822Sdim_ACEOF
11655218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
11656218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657218822Sdim  (eval $ac_link) 2>conftest.er1
11658218822Sdim  ac_status=$?
11659218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11660218822Sdim  rm -f conftest.er1
11661218822Sdim  cat conftest.err >&5
11662218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663218822Sdim  (exit $ac_status); } &&
11664218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11665218822Sdim			 || test ! -s conftest.err'
11666218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667218822Sdim  (eval $ac_try) 2>&5
11668218822Sdim  ac_status=$?
11669218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670218822Sdim  (exit $ac_status); }; } &&
11671218822Sdim	 { ac_try='test -s conftest$ac_exeext'
11672218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673218822Sdim  (eval $ac_try) 2>&5
11674218822Sdim  ac_status=$?
11675218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676218822Sdim  (exit $ac_status); }; }; then
1167733965Sjdp  ac_cv_func_alloca_works=yes
1167833965Sjdpelse
11679218822Sdim  echo "$as_me: failed program was:" >&5
11680218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11681218822Sdim
11682218822Sdimac_cv_func_alloca_works=no
1168333965Sjdpfi
11684218822Sdimrm -f conftest.err conftest.$ac_objext \
11685218822Sdim      conftest$ac_exeext conftest.$ac_ext
1168633965Sjdpfi
11687218822Sdimecho "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11688218822Sdimecho "${ECHO_T}$ac_cv_func_alloca_works" >&6
1168933965Sjdp
1169033965Sjdpif test $ac_cv_func_alloca_works = yes; then
11691218822Sdim
11692218822Sdimcat >>confdefs.h <<\_ACEOF
1169333965Sjdp#define HAVE_ALLOCA 1
11694218822Sdim_ACEOF
1169533965Sjdp
11696218822Sdimelse
11697218822Sdim  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11698218822Sdim# that cause trouble.  Some versions do not even contain alloca or
11699218822Sdim# contain a buggy version.  If you still want to use their alloca,
11700218822Sdim# use ar to extract alloca.o from them instead of compiling alloca.c.
1170133965Sjdp
11702218822SdimALLOCA=alloca.$ac_objext
11703218822Sdim
11704218822Sdimcat >>confdefs.h <<\_ACEOF
1170533965Sjdp#define C_ALLOCA 1
11706218822Sdim_ACEOF
1170733965Sjdp
1170833965Sjdp
11709218822Sdimecho "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11710218822Sdimecho $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11711218822Sdimif test "${ac_cv_os_cray+set}" = set; then
11712218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1171333965Sjdpelse
11714218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11715218822Sdim/* confdefs.h.  */
11716218822Sdim_ACEOF
11717218822Sdimcat confdefs.h >>conftest.$ac_ext
11718218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11719218822Sdim/* end confdefs.h.  */
1172033965Sjdp#if defined(CRAY) && ! defined(CRAY2)
1172133965Sjdpwebecray
1172233965Sjdp#else
1172333965Sjdpwenotbecray
1172433965Sjdp#endif
1172533965Sjdp
11726218822Sdim_ACEOF
1172733965Sjdpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11728218822Sdim  $EGREP "webecray" >/dev/null 2>&1; then
1172933965Sjdp  ac_cv_os_cray=yes
1173033965Sjdpelse
1173133965Sjdp  ac_cv_os_cray=no
1173233965Sjdpfi
1173333965Sjdprm -f conftest*
1173433965Sjdp
1173533965Sjdpfi
11736218822Sdimecho "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11737218822Sdimecho "${ECHO_T}$ac_cv_os_cray" >&6
1173833965Sjdpif test $ac_cv_os_cray = yes; then
11739218822Sdim  for ac_func in _getb67 GETB67 getb67; do
11740218822Sdim    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741218822Sdimecho "$as_me:$LINENO: checking for $ac_func" >&5
11742218822Sdimecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11743218822Sdimif eval "test \"\${$as_ac_var+set}\" = set"; then
11744218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1174533965Sjdpelse
11746218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11747218822Sdim/* confdefs.h.  */
11748218822Sdim_ACEOF
11749218822Sdimcat confdefs.h >>conftest.$ac_ext
11750218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11751218822Sdim/* end confdefs.h.  */
11752218822Sdim/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11754218822Sdim#define $ac_func innocuous_$ac_func
11755218822Sdim
1175633965Sjdp/* System header to define __stub macros and hopefully few prototypes,
11757218822Sdim    which can conflict with char $ac_func (); below.
11758218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759218822Sdim    <limits.h> exists even on freestanding compilers.  */
11760218822Sdim
11761218822Sdim#ifdef __STDC__
11762218822Sdim# include <limits.h>
11763218822Sdim#else
11764218822Sdim# include <assert.h>
11765218822Sdim#endif
11766218822Sdim
11767218822Sdim#undef $ac_func
11768218822Sdim
1176933965Sjdp/* Override any gcc2 internal prototype to avoid an error.  */
11770218822Sdim#ifdef __cplusplus
11771218822Sdimextern "C"
11772218822Sdim{
11773218822Sdim#endif
1177433965Sjdp/* We use char because int might match the return type of a gcc2
11775218822Sdim   builtin and then its argument prototype would still apply.  */
11776218822Sdimchar $ac_func ();
1177733965Sjdp/* The GNU C library defines this for functions which it implements
1177833965Sjdp    to always fail with ENOSYS.  Some functions are actually named
1177933965Sjdp    something starting with __ and the normal name is an alias.  */
1178033965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1178133965Sjdpchoke me
1178233965Sjdp#else
11783218822Sdimchar (*f) () = $ac_func;
1178433965Sjdp#endif
11785218822Sdim#ifdef __cplusplus
11786218822Sdim}
11787218822Sdim#endif
1178833965Sjdp
11789218822Sdimint
11790218822Sdimmain ()
11791218822Sdim{
11792218822Sdimreturn f != $ac_func;
11793218822Sdim  ;
11794218822Sdim  return 0;
11795218822Sdim}
11796218822Sdim_ACEOF
11797218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
11798218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799218822Sdim  (eval $ac_link) 2>conftest.er1
11800218822Sdim  ac_status=$?
11801218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11802218822Sdim  rm -f conftest.er1
11803218822Sdim  cat conftest.err >&5
11804218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805218822Sdim  (exit $ac_status); } &&
11806218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11807218822Sdim			 || test ! -s conftest.err'
11808218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809218822Sdim  (eval $ac_try) 2>&5
11810218822Sdim  ac_status=$?
11811218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812218822Sdim  (exit $ac_status); }; } &&
11813218822Sdim	 { ac_try='test -s conftest$ac_exeext'
11814218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815218822Sdim  (eval $ac_try) 2>&5
11816218822Sdim  ac_status=$?
11817218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818218822Sdim  (exit $ac_status); }; }; then
11819218822Sdim  eval "$as_ac_var=yes"
1182033965Sjdpelse
11821218822Sdim  echo "$as_me: failed program was:" >&5
11822218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11823218822Sdim
11824218822Sdimeval "$as_ac_var=no"
1182533965Sjdpfi
11826218822Sdimrm -f conftest.err conftest.$ac_objext \
11827218822Sdim      conftest$ac_exeext conftest.$ac_ext
1182833965Sjdpfi
11829218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11830218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11831218822Sdimif test `eval echo '${'$as_ac_var'}'` = yes; then
1183233965Sjdp
11833218822Sdimcat >>confdefs.h <<_ACEOF
1183433965Sjdp#define CRAY_STACKSEG_END $ac_func
11835218822Sdim_ACEOF
1183633965Sjdp
11837218822Sdim    break
1183833965Sjdpfi
1183933965Sjdp
11840218822Sdim  done
1184133965Sjdpfi
1184233965Sjdp
11843218822Sdimecho "$as_me:$LINENO: checking stack direction for C alloca" >&5
11844218822Sdimecho $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11845218822Sdimif test "${ac_cv_c_stack_direction+set}" = set; then
11846218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1184733965Sjdpelse
1184833965Sjdp  if test "$cross_compiling" = yes; then
1184933965Sjdp  ac_cv_c_stack_direction=0
1185033965Sjdpelse
11851218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11852218822Sdim/* confdefs.h.  */
11853218822Sdim_ACEOF
11854218822Sdimcat confdefs.h >>conftest.$ac_ext
11855218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11856218822Sdim/* end confdefs.h.  */
11857218822Sdimint
1185833965Sjdpfind_stack_direction ()
1185933965Sjdp{
1186033965Sjdp  static char *addr = 0;
1186133965Sjdp  auto char dummy;
1186233965Sjdp  if (addr == 0)
1186333965Sjdp    {
1186433965Sjdp      addr = &dummy;
1186533965Sjdp      return find_stack_direction ();
1186633965Sjdp    }
1186733965Sjdp  else
1186833965Sjdp    return (&dummy > addr) ? 1 : -1;
1186933965Sjdp}
11870218822Sdim
11871218822Sdimint
1187233965Sjdpmain ()
1187333965Sjdp{
11874218822Sdim  exit (find_stack_direction () < 0);
1187533965Sjdp}
11876218822Sdim_ACEOF
11877218822Sdimrm -f conftest$ac_exeext
11878218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879218822Sdim  (eval $ac_link) 2>&5
11880218822Sdim  ac_status=$?
11881218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882218822Sdim  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11883218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884218822Sdim  (eval $ac_try) 2>&5
11885218822Sdim  ac_status=$?
11886218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887218822Sdim  (exit $ac_status); }; }; then
1188833965Sjdp  ac_cv_c_stack_direction=1
1188933965Sjdpelse
11890218822Sdim  echo "$as_me: program exited with status $ac_status" >&5
11891218822Sdimecho "$as_me: failed program was:" >&5
11892218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11893218822Sdim
11894218822Sdim( exit $ac_status )
11895218822Sdimac_cv_c_stack_direction=-1
1189633965Sjdpfi
11897218822Sdimrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1189833965Sjdpfi
1189933965Sjdpfi
11900218822Sdimecho "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11901218822Sdimecho "${ECHO_T}$ac_cv_c_stack_direction" >&6
1190233965Sjdp
11903218822Sdimcat >>confdefs.h <<_ACEOF
1190433965Sjdp#define STACK_DIRECTION $ac_cv_c_stack_direction
11905218822Sdim_ACEOF
1190633965Sjdp
11907218822Sdim
1190833965Sjdpfi
1190933965Sjdp
11910218822Sdim
11911218822Sdim
11912218822Sdim
11913218822Sdim
11914218822Sdim
11915104834Sobrienfor ac_func in sbrk utimes setmode getc_unlocked strcoll
1191633965Sjdpdo
11917218822Sdimas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11918218822Sdimecho "$as_me:$LINENO: checking for $ac_func" >&5
11919218822Sdimecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11920218822Sdimif eval "test \"\${$as_ac_var+set}\" = set"; then
11921218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1192233965Sjdpelse
11923218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11924218822Sdim/* confdefs.h.  */
11925218822Sdim_ACEOF
11926218822Sdimcat confdefs.h >>conftest.$ac_ext
11927218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11928218822Sdim/* end confdefs.h.  */
11929218822Sdim/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11930218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11931218822Sdim#define $ac_func innocuous_$ac_func
11932218822Sdim
1193333965Sjdp/* System header to define __stub macros and hopefully few prototypes,
11934218822Sdim    which can conflict with char $ac_func (); below.
11935218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11936218822Sdim    <limits.h> exists even on freestanding compilers.  */
11937218822Sdim
11938218822Sdim#ifdef __STDC__
11939218822Sdim# include <limits.h>
11940218822Sdim#else
11941218822Sdim# include <assert.h>
11942218822Sdim#endif
11943218822Sdim
11944218822Sdim#undef $ac_func
11945218822Sdim
1194633965Sjdp/* Override any gcc2 internal prototype to avoid an error.  */
11947218822Sdim#ifdef __cplusplus
11948218822Sdimextern "C"
11949218822Sdim{
11950218822Sdim#endif
1195133965Sjdp/* We use char because int might match the return type of a gcc2
11952218822Sdim   builtin and then its argument prototype would still apply.  */
11953218822Sdimchar $ac_func ();
11954218822Sdim/* The GNU C library defines this for functions which it implements
11955218822Sdim    to always fail with ENOSYS.  Some functions are actually named
11956218822Sdim    something starting with __ and the normal name is an alias.  */
11957218822Sdim#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11958218822Sdimchoke me
11959218822Sdim#else
11960218822Sdimchar (*f) () = $ac_func;
11961218822Sdim#endif
11962218822Sdim#ifdef __cplusplus
11963218822Sdim}
11964218822Sdim#endif
1196533965Sjdp
11966218822Sdimint
11967218822Sdimmain ()
11968218822Sdim{
11969218822Sdimreturn f != $ac_func;
11970218822Sdim  ;
11971218822Sdim  return 0;
11972218822Sdim}
11973218822Sdim_ACEOF
11974218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
11975218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976218822Sdim  (eval $ac_link) 2>conftest.er1
11977218822Sdim  ac_status=$?
11978218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11979218822Sdim  rm -f conftest.er1
11980218822Sdim  cat conftest.err >&5
11981218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982218822Sdim  (exit $ac_status); } &&
11983218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11984218822Sdim			 || test ! -s conftest.err'
11985218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986218822Sdim  (eval $ac_try) 2>&5
11987218822Sdim  ac_status=$?
11988218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989218822Sdim  (exit $ac_status); }; } &&
11990218822Sdim	 { ac_try='test -s conftest$ac_exeext'
11991218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992218822Sdim  (eval $ac_try) 2>&5
11993218822Sdim  ac_status=$?
11994218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995218822Sdim  (exit $ac_status); }; }; then
11996218822Sdim  eval "$as_ac_var=yes"
11997218822Sdimelse
11998218822Sdim  echo "$as_me: failed program was:" >&5
11999218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1200033965Sjdp
12001218822Sdimeval "$as_ac_var=no"
12002218822Sdimfi
12003218822Sdimrm -f conftest.err conftest.$ac_objext \
12004218822Sdim      conftest$ac_exeext conftest.$ac_ext
12005218822Sdimfi
12006218822Sdimecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12007218822Sdimecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12008218822Sdimif test `eval echo '${'$as_ac_var'}'` = yes; then
12009218822Sdim  cat >>confdefs.h <<_ACEOF
12010218822Sdim#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12011218822Sdim_ACEOF
12012218822Sdim
12013218822Sdimfi
12014218822Sdimdone
12015218822Sdim
12016218822Sdimecho "$as_me:$LINENO: checking for mkstemp" >&5
12017218822Sdimecho $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12018218822Sdimif test "${ac_cv_func_mkstemp+set}" = set; then
12019218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12020218822Sdimelse
12021218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12022218822Sdim/* confdefs.h.  */
12023218822Sdim_ACEOF
12024218822Sdimcat confdefs.h >>conftest.$ac_ext
12025218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12026218822Sdim/* end confdefs.h.  */
12027218822Sdim/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12028218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12029218822Sdim#define mkstemp innocuous_mkstemp
12030218822Sdim
12031218822Sdim/* System header to define __stub macros and hopefully few prototypes,
12032218822Sdim    which can conflict with char mkstemp (); below.
12033218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12034218822Sdim    <limits.h> exists even on freestanding compilers.  */
12035218822Sdim
12036218822Sdim#ifdef __STDC__
12037218822Sdim# include <limits.h>
12038218822Sdim#else
12039218822Sdim# include <assert.h>
12040218822Sdim#endif
12041218822Sdim
12042218822Sdim#undef mkstemp
12043218822Sdim
12044218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
12045218822Sdim#ifdef __cplusplus
12046218822Sdimextern "C"
12047218822Sdim{
12048218822Sdim#endif
12049218822Sdim/* We use char because int might match the return type of a gcc2
12050218822Sdim   builtin and then its argument prototype would still apply.  */
12051218822Sdimchar mkstemp ();
1205233965Sjdp/* The GNU C library defines this for functions which it implements
1205333965Sjdp    to always fail with ENOSYS.  Some functions are actually named
1205433965Sjdp    something starting with __ and the normal name is an alias.  */
12055218822Sdim#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
1205633965Sjdpchoke me
1205733965Sjdp#else
12058218822Sdimchar (*f) () = mkstemp;
1205933965Sjdp#endif
12060218822Sdim#ifdef __cplusplus
12061218822Sdim}
12062218822Sdim#endif
1206333965Sjdp
12064218822Sdimint
12065218822Sdimmain ()
12066218822Sdim{
12067218822Sdimreturn f != mkstemp;
12068218822Sdim  ;
12069218822Sdim  return 0;
12070218822Sdim}
12071218822Sdim_ACEOF
12072218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
12073218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074218822Sdim  (eval $ac_link) 2>conftest.er1
12075218822Sdim  ac_status=$?
12076218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12077218822Sdim  rm -f conftest.er1
12078218822Sdim  cat conftest.err >&5
12079218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080218822Sdim  (exit $ac_status); } &&
12081218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12082218822Sdim			 || test ! -s conftest.err'
12083218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084218822Sdim  (eval $ac_try) 2>&5
12085218822Sdim  ac_status=$?
12086218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087218822Sdim  (exit $ac_status); }; } &&
12088218822Sdim	 { ac_try='test -s conftest$ac_exeext'
12089218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090218822Sdim  (eval $ac_try) 2>&5
12091218822Sdim  ac_status=$?
12092218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093218822Sdim  (exit $ac_status); }; }; then
12094218822Sdim  ac_cv_func_mkstemp=yes
1209533965Sjdpelse
12096218822Sdim  echo "$as_me: failed program was:" >&5
12097218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12098218822Sdim
12099218822Sdimac_cv_func_mkstemp=no
1210033965Sjdpfi
12101218822Sdimrm -f conftest.err conftest.$ac_objext \
12102218822Sdim      conftest$ac_exeext conftest.$ac_ext
1210333965Sjdpfi
12104218822Sdimecho "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12105218822Sdimecho "${ECHO_T}$ac_cv_func_mkstemp" >&6
12106218822Sdimif test $ac_cv_func_mkstemp = yes; then
1210733965Sjdp
12108218822Sdimcat >>confdefs.h <<\_ACEOF
12109218822Sdim#define HAVE_MKSTEMP 1
12110218822Sdim_ACEOF
12111218822Sdim
12112218822Sdimfi
12113218822Sdim
12114218822Sdimecho "$as_me:$LINENO: checking for mkdtemp" >&5
12115218822Sdimecho $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12116218822Sdimif test "${ac_cv_func_mkdtemp+set}" = set; then
12117218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1211833965Sjdpelse
12119218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12120218822Sdim/* confdefs.h.  */
12121218822Sdim_ACEOF
12122218822Sdimcat confdefs.h >>conftest.$ac_ext
12123218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12124218822Sdim/* end confdefs.h.  */
12125218822Sdim/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12126218822Sdim   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12127218822Sdim#define mkdtemp innocuous_mkdtemp
12128218822Sdim
12129218822Sdim/* System header to define __stub macros and hopefully few prototypes,
12130218822Sdim    which can conflict with char mkdtemp (); below.
12131218822Sdim    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132218822Sdim    <limits.h> exists even on freestanding compilers.  */
12133218822Sdim
12134218822Sdim#ifdef __STDC__
12135218822Sdim# include <limits.h>
12136218822Sdim#else
12137218822Sdim# include <assert.h>
12138218822Sdim#endif
12139218822Sdim
12140218822Sdim#undef mkdtemp
12141218822Sdim
12142218822Sdim/* Override any gcc2 internal prototype to avoid an error.  */
12143218822Sdim#ifdef __cplusplus
12144218822Sdimextern "C"
12145218822Sdim{
12146218822Sdim#endif
12147218822Sdim/* We use char because int might match the return type of a gcc2
12148218822Sdim   builtin and then its argument prototype would still apply.  */
12149218822Sdimchar mkdtemp ();
12150218822Sdim/* The GNU C library defines this for functions which it implements
12151218822Sdim    to always fail with ENOSYS.  Some functions are actually named
12152218822Sdim    something starting with __ and the normal name is an alias.  */
12153218822Sdim#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12154218822Sdimchoke me
12155218822Sdim#else
12156218822Sdimchar (*f) () = mkdtemp;
12157218822Sdim#endif
12158218822Sdim#ifdef __cplusplus
12159218822Sdim}
12160218822Sdim#endif
12161218822Sdim
12162218822Sdimint
12163218822Sdimmain ()
12164218822Sdim{
12165218822Sdimreturn f != mkdtemp;
12166218822Sdim  ;
12167218822Sdim  return 0;
12168218822Sdim}
12169218822Sdim_ACEOF
12170218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
12171218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12172218822Sdim  (eval $ac_link) 2>conftest.er1
12173218822Sdim  ac_status=$?
12174218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12175218822Sdim  rm -f conftest.er1
12176218822Sdim  cat conftest.err >&5
12177218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178218822Sdim  (exit $ac_status); } &&
12179218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12180218822Sdim			 || test ! -s conftest.err'
12181218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182218822Sdim  (eval $ac_try) 2>&5
12183218822Sdim  ac_status=$?
12184218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185218822Sdim  (exit $ac_status); }; } &&
12186218822Sdim	 { ac_try='test -s conftest$ac_exeext'
12187218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188218822Sdim  (eval $ac_try) 2>&5
12189218822Sdim  ac_status=$?
12190218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191218822Sdim  (exit $ac_status); }; }; then
12192218822Sdim  ac_cv_func_mkdtemp=yes
12193218822Sdimelse
12194218822Sdim  echo "$as_me: failed program was:" >&5
12195218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12196218822Sdim
12197218822Sdimac_cv_func_mkdtemp=no
1219833965Sjdpfi
12199218822Sdimrm -f conftest.err conftest.$ac_objext \
12200218822Sdim      conftest$ac_exeext conftest.$ac_ext
12201218822Sdimfi
12202218822Sdimecho "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12203218822Sdimecho "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12204218822Sdimif test $ac_cv_func_mkdtemp = yes; then
1220533965Sjdp
12206218822Sdimcat >>confdefs.h <<\_ACEOF
12207218822Sdim#define HAVE_MKDTEMP 1
12208218822Sdim_ACEOF
1220933965Sjdp
12210218822Sdimfi
12211218822Sdim
12212218822Sdim
1221389857Sobrien# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
1221489857Sobrien# needs to be defined for it
12215218822Sdimecho "$as_me:$LINENO: checking for fopen64" >&5
12216218822Sdimecho $ECHO_N "checking for fopen64... $ECHO_C" >&6
12217218822Sdimif test "${bu_cv_have_fopen64+set}" = set; then
12218218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1221989857Sobrienelse
12220218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12221218822Sdim/* confdefs.h.  */
12222218822Sdim_ACEOF
12223218822Sdimcat confdefs.h >>conftest.$ac_ext
12224218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12225218822Sdim/* end confdefs.h.  */
1222689857Sobrien#include <stdio.h>
12227218822Sdimint
12228218822Sdimmain ()
12229218822Sdim{
1223089857SobrienFILE *f = fopen64 ("/tmp/foo","r");
12231218822Sdim  ;
12232218822Sdim  return 0;
12233218822Sdim}
12234218822Sdim_ACEOF
12235218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
12236218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237218822Sdim  (eval $ac_link) 2>conftest.er1
12238218822Sdim  ac_status=$?
12239218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12240218822Sdim  rm -f conftest.er1
12241218822Sdim  cat conftest.err >&5
12242218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243218822Sdim  (exit $ac_status); } &&
12244218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12245218822Sdim			 || test ! -s conftest.err'
12246218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247218822Sdim  (eval $ac_try) 2>&5
12248218822Sdim  ac_status=$?
12249218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250218822Sdim  (exit $ac_status); }; } &&
12251218822Sdim	 { ac_try='test -s conftest$ac_exeext'
12252218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253218822Sdim  (eval $ac_try) 2>&5
12254218822Sdim  ac_status=$?
12255218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256218822Sdim  (exit $ac_status); }; }; then
1225789857Sobrien  bu_cv_have_fopen64=yes
1225889857Sobrienelse
12259218822Sdim  echo "$as_me: failed program was:" >&5
12260218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12261218822Sdim
12262218822Sdimsaved_CPPFLAGS=$CPPFLAGS
1226389857Sobrien CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12264218822Sdim cat >conftest.$ac_ext <<_ACEOF
12265218822Sdim/* confdefs.h.  */
12266218822Sdim_ACEOF
12267218822Sdimcat confdefs.h >>conftest.$ac_ext
12268218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12269218822Sdim/* end confdefs.h.  */
1227089857Sobrien#include <stdio.h>
12271218822Sdimint
12272218822Sdimmain ()
12273218822Sdim{
1227489857SobrienFILE *f = fopen64 ("/tmp/foo","r");
12275218822Sdim  ;
12276218822Sdim  return 0;
12277218822Sdim}
12278218822Sdim_ACEOF
12279218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
12280218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281218822Sdim  (eval $ac_link) 2>conftest.er1
12282218822Sdim  ac_status=$?
12283218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12284218822Sdim  rm -f conftest.er1
12285218822Sdim  cat conftest.err >&5
12286218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287218822Sdim  (exit $ac_status); } &&
12288218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12289218822Sdim			 || test ! -s conftest.err'
12290218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291218822Sdim  (eval $ac_try) 2>&5
12292218822Sdim  ac_status=$?
12293218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294218822Sdim  (exit $ac_status); }; } &&
12295218822Sdim	 { ac_try='test -s conftest$ac_exeext'
12296218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297218822Sdim  (eval $ac_try) 2>&5
12298218822Sdim  ac_status=$?
12299218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300218822Sdim  (exit $ac_status); }; }; then
1230189857Sobrien  bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
1230289857Sobrienelse
12303218822Sdim  echo "$as_me: failed program was:" >&5
12304218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12305218822Sdim
12306218822Sdimbu_cv_have_fopen64=no
1230789857Sobrienfi
12308218822Sdimrm -f conftest.err conftest.$ac_objext \
12309218822Sdim      conftest$ac_exeext conftest.$ac_ext
1231089857Sobrien CPPFLAGS=$saved_CPPFLAGS
1231189857Sobrienfi
12312218822Sdimrm -f conftest.err conftest.$ac_objext \
12313218822Sdim      conftest$ac_exeext conftest.$ac_ext
1231489857Sobrienfi
1231589857Sobrien
12316218822Sdimecho "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12317218822Sdimecho "${ECHO_T}$bu_cv_have_fopen64" >&6
12318104834Sobrienif test "$bu_cv_have_fopen64" != no; then
12319218822Sdim
12320218822Sdimcat >>confdefs.h <<\_ACEOF
1232189857Sobrien#define HAVE_FOPEN64 1
12322218822Sdim_ACEOF
1232389857Sobrien
12324218822Sdimfi
12325218822Sdimecho "$as_me:$LINENO: checking for stat64" >&5
12326218822Sdimecho $ECHO_N "checking for stat64... $ECHO_C" >&6
12327218822Sdimif test "${bu_cv_have_stat64+set}" = set; then
12328218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12329218822Sdimelse
12330218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12331218822Sdim/* confdefs.h.  */
12332218822Sdim_ACEOF
12333218822Sdimcat confdefs.h >>conftest.$ac_ext
12334218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12335218822Sdim/* end confdefs.h.  */
12336218822Sdim#include <sys/stat.h>
12337218822Sdimint
12338218822Sdimmain ()
12339218822Sdim{
12340218822Sdimstruct stat64 st; stat64 ("/tmp/foo", &st);
12341218822Sdim  ;
12342218822Sdim  return 0;
12343218822Sdim}
12344218822Sdim_ACEOF
12345218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
12346218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347218822Sdim  (eval $ac_link) 2>conftest.er1
12348218822Sdim  ac_status=$?
12349218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12350218822Sdim  rm -f conftest.er1
12351218822Sdim  cat conftest.err >&5
12352218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353218822Sdim  (exit $ac_status); } &&
12354218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12355218822Sdim			 || test ! -s conftest.err'
12356218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357218822Sdim  (eval $ac_try) 2>&5
12358218822Sdim  ac_status=$?
12359218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360218822Sdim  (exit $ac_status); }; } &&
12361218822Sdim	 { ac_try='test -s conftest$ac_exeext'
12362218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363218822Sdim  (eval $ac_try) 2>&5
12364218822Sdim  ac_status=$?
12365218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366218822Sdim  (exit $ac_status); }; }; then
12367218822Sdim  bu_cv_have_stat64=yes
12368218822Sdimelse
12369218822Sdim  echo "$as_me: failed program was:" >&5
12370218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12371218822Sdim
12372218822Sdimsaved_CPPFLAGS=$CPPFLAGS
12373218822Sdim CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12374218822Sdim cat >conftest.$ac_ext <<_ACEOF
12375218822Sdim/* confdefs.h.  */
12376218822Sdim_ACEOF
12377218822Sdimcat confdefs.h >>conftest.$ac_ext
12378218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12379218822Sdim/* end confdefs.h.  */
12380218822Sdim#include <sys/stat.h>
12381218822Sdimint
12382218822Sdimmain ()
12383218822Sdim{
12384218822Sdimstruct stat64 st; stat64 ("/tmp/foo", &st);
12385218822Sdim  ;
12386218822Sdim  return 0;
12387218822Sdim}
12388218822Sdim_ACEOF
12389218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
12390218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391218822Sdim  (eval $ac_link) 2>conftest.er1
12392218822Sdim  ac_status=$?
12393218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12394218822Sdim  rm -f conftest.er1
12395218822Sdim  cat conftest.err >&5
12396218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397218822Sdim  (exit $ac_status); } &&
12398218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12399218822Sdim			 || test ! -s conftest.err'
12400218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401218822Sdim  (eval $ac_try) 2>&5
12402218822Sdim  ac_status=$?
12403218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404218822Sdim  (exit $ac_status); }; } &&
12405218822Sdim	 { ac_try='test -s conftest$ac_exeext'
12406218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407218822Sdim  (eval $ac_try) 2>&5
12408218822Sdim  ac_status=$?
12409218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410218822Sdim  (exit $ac_status); }; }; then
12411218822Sdim  bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12412218822Sdimelse
12413218822Sdim  echo "$as_me: failed program was:" >&5
12414218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12415218822Sdim
12416218822Sdimbu_cv_have_stat64=no
12417218822Sdimfi
12418218822Sdimrm -f conftest.err conftest.$ac_objext \
12419218822Sdim      conftest$ac_exeext conftest.$ac_ext
12420218822Sdim CPPFLAGS=$saved_CPPFLAGS
12421218822Sdimfi
12422218822Sdimrm -f conftest.err conftest.$ac_objext \
12423218822Sdim      conftest$ac_exeext conftest.$ac_ext
12424218822Sdimfi
12425218822Sdim
12426218822Sdimecho "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12427218822Sdimecho "${ECHO_T}$bu_cv_have_stat64" >&6
12428218822Sdimif test "$bu_cv_have_stat64" != no; then
12429218822Sdim
12430218822Sdimcat >>confdefs.h <<\_ACEOF
12431218822Sdim#define HAVE_STAT64 1
12432218822Sdim_ACEOF
12433218822Sdim
12434218822Sdimfi
12435218822Sdimif test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12436218822Sdim   || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
12437218822Sdim
12438218822Sdimcat >>confdefs.h <<\_ACEOF
1243989857Sobrien#define _LARGEFILE64_SOURCE 1
12440218822Sdim_ACEOF
1244189857Sobrien
12442218822Sdim  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1244389857Sobrienfi
1244489857Sobrien
1244560484Sobrien# Some systems have frexp only in -lm, not in -lc.
12446218822Sdimecho "$as_me:$LINENO: checking for library containing frexp" >&5
12447218822Sdimecho $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12448218822Sdimif test "${ac_cv_search_frexp+set}" = set; then
12449218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12450218822Sdimelse
12451218822Sdim  ac_func_search_save_LIBS=$LIBS
12452218822Sdimac_cv_search_frexp=no
12453218822Sdimcat >conftest.$ac_ext <<_ACEOF
12454218822Sdim/* confdefs.h.  */
12455218822Sdim_ACEOF
12456218822Sdimcat confdefs.h >>conftest.$ac_ext
12457218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12458218822Sdim/* end confdefs.h.  */
1245960484Sobrien
1246060484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
12461218822Sdim#ifdef __cplusplus
12462218822Sdimextern "C"
12463218822Sdim#endif
1246460484Sobrien/* We use char because int might match the return type of a gcc2
12465218822Sdim   builtin and then its argument prototype would still apply.  */
12466218822Sdimchar frexp ();
12467218822Sdimint
12468218822Sdimmain ()
12469218822Sdim{
12470218822Sdimfrexp ();
12471218822Sdim  ;
12472218822Sdim  return 0;
12473218822Sdim}
12474218822Sdim_ACEOF
12475218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
12476218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477218822Sdim  (eval $ac_link) 2>conftest.er1
12478218822Sdim  ac_status=$?
12479218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12480218822Sdim  rm -f conftest.er1
12481218822Sdim  cat conftest.err >&5
12482218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483218822Sdim  (exit $ac_status); } &&
12484218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12485218822Sdim			 || test ! -s conftest.err'
12486218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487218822Sdim  (eval $ac_try) 2>&5
12488218822Sdim  ac_status=$?
12489218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490218822Sdim  (exit $ac_status); }; } &&
12491218822Sdim	 { ac_try='test -s conftest$ac_exeext'
12492218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493218822Sdim  (eval $ac_try) 2>&5
12494218822Sdim  ac_status=$?
12495218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496218822Sdim  (exit $ac_status); }; }; then
1249760484Sobrien  ac_cv_search_frexp="none required"
1249860484Sobrienelse
12499218822Sdim  echo "$as_me: failed program was:" >&5
12500218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12501218822Sdim
1250260484Sobrienfi
12503218822Sdimrm -f conftest.err conftest.$ac_objext \
12504218822Sdim      conftest$ac_exeext conftest.$ac_ext
12505218822Sdimif test "$ac_cv_search_frexp" = no; then
12506218822Sdim  for ac_lib in m; do
12507218822Sdim    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12508218822Sdim    cat >conftest.$ac_ext <<_ACEOF
12509218822Sdim/* confdefs.h.  */
12510218822Sdim_ACEOF
12511218822Sdimcat confdefs.h >>conftest.$ac_ext
12512218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12513218822Sdim/* end confdefs.h.  */
12514218822Sdim
1251560484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
12516218822Sdim#ifdef __cplusplus
12517218822Sdimextern "C"
12518218822Sdim#endif
1251960484Sobrien/* We use char because int might match the return type of a gcc2
12520218822Sdim   builtin and then its argument prototype would still apply.  */
12521218822Sdimchar frexp ();
12522218822Sdimint
12523218822Sdimmain ()
12524218822Sdim{
12525218822Sdimfrexp ();
12526218822Sdim  ;
12527218822Sdim  return 0;
12528218822Sdim}
12529218822Sdim_ACEOF
12530218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
12531218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532218822Sdim  (eval $ac_link) 2>conftest.er1
12533218822Sdim  ac_status=$?
12534218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12535218822Sdim  rm -f conftest.er1
12536218822Sdim  cat conftest.err >&5
12537218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538218822Sdim  (exit $ac_status); } &&
12539218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12540218822Sdim			 || test ! -s conftest.err'
12541218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542218822Sdim  (eval $ac_try) 2>&5
12543218822Sdim  ac_status=$?
12544218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545218822Sdim  (exit $ac_status); }; } &&
12546218822Sdim	 { ac_try='test -s conftest$ac_exeext'
12547218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548218822Sdim  (eval $ac_try) 2>&5
12549218822Sdim  ac_status=$?
12550218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551218822Sdim  (exit $ac_status); }; }; then
12552218822Sdim  ac_cv_search_frexp="-l$ac_lib"
1255360484Sobrienbreak
1255460484Sobrienelse
12555218822Sdim  echo "$as_me: failed program was:" >&5
12556218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12557218822Sdim
1255860484Sobrienfi
12559218822Sdimrm -f conftest.err conftest.$ac_objext \
12560218822Sdim      conftest$ac_exeext conftest.$ac_ext
12561218822Sdim  done
1256260484Sobrienfi
12563218822SdimLIBS=$ac_func_search_save_LIBS
12564218822Sdimfi
12565218822Sdimecho "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12566218822Sdimecho "${ECHO_T}$ac_cv_search_frexp" >&6
12567218822Sdimif test "$ac_cv_search_frexp" != no; then
12568218822Sdim  test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
1256960484Sobrien
1257060484Sobrienfi
1257160484Sobrien
12572218822Sdim
12573218822Sdimecho "$as_me:$LINENO: checking for time_t in time.h" >&5
12574218822Sdimecho $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12575218822Sdimif test "${bu_cv_decl_time_t_time_h+set}" = set; then
12576218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1257733965Sjdpelse
12578218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12579218822Sdim/* confdefs.h.  */
12580218822Sdim_ACEOF
12581218822Sdimcat confdefs.h >>conftest.$ac_ext
12582218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12583218822Sdim/* end confdefs.h.  */
1258433965Sjdp#include <time.h>
12585218822Sdimint
12586218822Sdimmain ()
12587218822Sdim{
1258833965Sjdptime_t i;
12589218822Sdim  ;
12590218822Sdim  return 0;
12591218822Sdim}
12592218822Sdim_ACEOF
12593218822Sdimrm -f conftest.$ac_objext
12594218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12595218822Sdim  (eval $ac_compile) 2>conftest.er1
12596218822Sdim  ac_status=$?
12597218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12598218822Sdim  rm -f conftest.er1
12599218822Sdim  cat conftest.err >&5
12600218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601218822Sdim  (exit $ac_status); } &&
12602218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12603218822Sdim			 || test ! -s conftest.err'
12604218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605218822Sdim  (eval $ac_try) 2>&5
12606218822Sdim  ac_status=$?
12607218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608218822Sdim  (exit $ac_status); }; } &&
12609218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12610218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611218822Sdim  (eval $ac_try) 2>&5
12612218822Sdim  ac_status=$?
12613218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614218822Sdim  (exit $ac_status); }; }; then
1261533965Sjdp  bu_cv_decl_time_t_time_h=yes
1261633965Sjdpelse
12617218822Sdim  echo "$as_me: failed program was:" >&5
12618218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12619218822Sdim
12620218822Sdimbu_cv_decl_time_t_time_h=no
1262133965Sjdpfi
12622218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1262333965Sjdpfi
1262433965Sjdp
12625218822Sdimecho "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12626218822Sdimecho "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
1262733965Sjdpif test $bu_cv_decl_time_t_time_h = yes; then
12628218822Sdim
12629218822Sdimcat >>confdefs.h <<\_ACEOF
1263033965Sjdp#define HAVE_TIME_T_IN_TIME_H 1
12631218822Sdim_ACEOF
1263233965Sjdp
1263333965Sjdpfi
1263433965Sjdp
12635218822Sdimecho "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12636218822Sdimecho $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12637218822Sdimif test "${bu_cv_decl_time_t_types_h+set}" = set; then
12638218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1263933965Sjdpelse
12640218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12641218822Sdim/* confdefs.h.  */
12642218822Sdim_ACEOF
12643218822Sdimcat confdefs.h >>conftest.$ac_ext
12644218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12645218822Sdim/* end confdefs.h.  */
1264633965Sjdp#include <sys/types.h>
12647218822Sdimint
12648218822Sdimmain ()
12649218822Sdim{
1265033965Sjdptime_t i;
12651218822Sdim  ;
12652218822Sdim  return 0;
12653218822Sdim}
12654218822Sdim_ACEOF
12655218822Sdimrm -f conftest.$ac_objext
12656218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657218822Sdim  (eval $ac_compile) 2>conftest.er1
12658218822Sdim  ac_status=$?
12659218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12660218822Sdim  rm -f conftest.er1
12661218822Sdim  cat conftest.err >&5
12662218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663218822Sdim  (exit $ac_status); } &&
12664218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12665218822Sdim			 || test ! -s conftest.err'
12666218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667218822Sdim  (eval $ac_try) 2>&5
12668218822Sdim  ac_status=$?
12669218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670218822Sdim  (exit $ac_status); }; } &&
12671218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12672218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673218822Sdim  (eval $ac_try) 2>&5
12674218822Sdim  ac_status=$?
12675218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676218822Sdim  (exit $ac_status); }; }; then
1267733965Sjdp  bu_cv_decl_time_t_types_h=yes
1267833965Sjdpelse
12679218822Sdim  echo "$as_me: failed program was:" >&5
12680218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12681218822Sdim
12682218822Sdimbu_cv_decl_time_t_types_h=no
1268333965Sjdpfi
12684218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1268533965Sjdpfi
1268633965Sjdp
12687218822Sdimecho "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12688218822Sdimecho "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
1268933965Sjdpif test $bu_cv_decl_time_t_types_h = yes; then
12690218822Sdim
12691218822Sdimcat >>confdefs.h <<\_ACEOF
1269233965Sjdp#define HAVE_TIME_T_IN_TYPES_H 1
12693218822Sdim_ACEOF
1269433965Sjdp
1269533965Sjdpfi
1269633965Sjdp
12697218822Sdimecho "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12698218822Sdimecho $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12699218822Sdimif test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
12700218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12701218822Sdimelse
12702218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12703218822Sdim/* confdefs.h.  */
12704218822Sdim_ACEOF
12705218822Sdimcat confdefs.h >>conftest.$ac_ext
12706218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12707218822Sdim/* end confdefs.h.  */
12708218822Sdim#include <unistd.h>
12709218822Sdimint
12710218822Sdimmain ()
12711218822Sdim{
12712218822Sdimextern int getopt (int, char *const*, const char *);
12713218822Sdim  ;
12714218822Sdim  return 0;
12715218822Sdim}
12716218822Sdim_ACEOF
12717218822Sdimrm -f conftest.$ac_objext
12718218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12719218822Sdim  (eval $ac_compile) 2>conftest.er1
12720218822Sdim  ac_status=$?
12721218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12722218822Sdim  rm -f conftest.er1
12723218822Sdim  cat conftest.err >&5
12724218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725218822Sdim  (exit $ac_status); } &&
12726218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12727218822Sdim			 || test ! -s conftest.err'
12728218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729218822Sdim  (eval $ac_try) 2>&5
12730218822Sdim  ac_status=$?
12731218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732218822Sdim  (exit $ac_status); }; } &&
12733218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12734218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735218822Sdim  (eval $ac_try) 2>&5
12736218822Sdim  ac_status=$?
12737218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738218822Sdim  (exit $ac_status); }; }; then
12739218822Sdim  bu_cv_decl_getopt_unistd_h=yes
12740218822Sdimelse
12741218822Sdim  echo "$as_me: failed program was:" >&5
12742218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12743218822Sdim
12744218822Sdimbu_cv_decl_getopt_unistd_h=no
12745218822Sdimfi
12746218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12747218822Sdimfi
12748218822Sdim
12749218822Sdimecho "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
12750218822Sdimecho "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
12751218822Sdimif test $bu_cv_decl_getopt_unistd_h = yes; then
12752218822Sdim
12753218822Sdimcat >>confdefs.h <<\_ACEOF
12754218822Sdim#define HAVE_DECL_GETOPT 1
12755218822Sdim_ACEOF
12756218822Sdim
12757218822Sdimfi
12758218822Sdim
1275933965Sjdp# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
1276033965Sjdp# by default.
12761218822Sdimecho "$as_me:$LINENO: checking for utime.h" >&5
12762218822Sdimecho $ECHO_N "checking for utime.h... $ECHO_C" >&6
12763218822Sdimif test "${bu_cv_header_utime_h+set}" = set; then
12764218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1276533965Sjdpelse
12766218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12767218822Sdim/* confdefs.h.  */
12768218822Sdim_ACEOF
12769218822Sdimcat confdefs.h >>conftest.$ac_ext
12770218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12771218822Sdim/* end confdefs.h.  */
1277233965Sjdp#include <sys/types.h>
1277333965Sjdp#ifdef HAVE_TIME_H
1277433965Sjdp#include <time.h>
1277533965Sjdp#endif
1277633965Sjdp#include <utime.h>
12777218822Sdimint
12778218822Sdimmain ()
12779218822Sdim{
1278033965Sjdpstruct utimbuf s;
12781218822Sdim  ;
12782218822Sdim  return 0;
12783218822Sdim}
12784218822Sdim_ACEOF
12785218822Sdimrm -f conftest.$ac_objext
12786218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12787218822Sdim  (eval $ac_compile) 2>conftest.er1
12788218822Sdim  ac_status=$?
12789218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12790218822Sdim  rm -f conftest.er1
12791218822Sdim  cat conftest.err >&5
12792218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793218822Sdim  (exit $ac_status); } &&
12794218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12795218822Sdim			 || test ! -s conftest.err'
12796218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797218822Sdim  (eval $ac_try) 2>&5
12798218822Sdim  ac_status=$?
12799218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800218822Sdim  (exit $ac_status); }; } &&
12801218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12802218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803218822Sdim  (eval $ac_try) 2>&5
12804218822Sdim  ac_status=$?
12805218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806218822Sdim  (exit $ac_status); }; }; then
1280733965Sjdp  bu_cv_header_utime_h=yes
1280833965Sjdpelse
12809218822Sdim  echo "$as_me: failed program was:" >&5
12810218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12811218822Sdim
12812218822Sdimbu_cv_header_utime_h=no
1281333965Sjdpfi
12814218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1281533965Sjdpfi
1281633965Sjdp
12817218822Sdimecho "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
12818218822Sdimecho "${ECHO_T}$bu_cv_header_utime_h" >&6
1281933965Sjdpif test $bu_cv_header_utime_h = yes; then
12820218822Sdim
12821218822Sdimcat >>confdefs.h <<\_ACEOF
1282233965Sjdp#define HAVE_GOOD_UTIME_H 1
12823218822Sdim_ACEOF
1282433965Sjdp
1282533965Sjdpfi
1282633965Sjdp
12827218822Sdimecho "$as_me:$LINENO: checking whether fprintf is declared" >&5
12828218822Sdimecho $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
12829218822Sdimif test "${ac_cv_have_decl_fprintf+set}" = set; then
12830218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1283133965Sjdpelse
12832218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12833218822Sdim/* confdefs.h.  */
12834218822Sdim_ACEOF
12835218822Sdimcat confdefs.h >>conftest.$ac_ext
12836218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12837218822Sdim/* end confdefs.h.  */
12838218822Sdim$ac_includes_default
12839218822Sdimint
12840218822Sdimmain ()
12841218822Sdim{
12842218822Sdim#ifndef fprintf
12843218822Sdim  char *p = (char *) fprintf;
12844218822Sdim#endif
1284533965Sjdp
12846218822Sdim  ;
12847218822Sdim  return 0;
12848218822Sdim}
12849218822Sdim_ACEOF
12850218822Sdimrm -f conftest.$ac_objext
12851218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12852218822Sdim  (eval $ac_compile) 2>conftest.er1
12853218822Sdim  ac_status=$?
12854218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12855218822Sdim  rm -f conftest.er1
12856218822Sdim  cat conftest.err >&5
12857218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858218822Sdim  (exit $ac_status); } &&
12859218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12860218822Sdim			 || test ! -s conftest.err'
12861218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862218822Sdim  (eval $ac_try) 2>&5
12863218822Sdim  ac_status=$?
12864218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865218822Sdim  (exit $ac_status); }; } &&
12866218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12867218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868218822Sdim  (eval $ac_try) 2>&5
12869218822Sdim  ac_status=$?
12870218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871218822Sdim  (exit $ac_status); }; }; then
12872218822Sdim  ac_cv_have_decl_fprintf=yes
1287333965Sjdpelse
12874218822Sdim  echo "$as_me: failed program was:" >&5
12875218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
12876218822Sdim
12877218822Sdimac_cv_have_decl_fprintf=no
1287833965Sjdpfi
12879218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1288033965Sjdpfi
12881218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
12882218822Sdimecho "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
12883218822Sdimif test $ac_cv_have_decl_fprintf = yes; then
1288433965Sjdp
12885218822Sdimcat >>confdefs.h <<_ACEOF
12886218822Sdim#define HAVE_DECL_FPRINTF 1
12887218822Sdim_ACEOF
1288833965Sjdp
12889218822Sdim
12890218822Sdimelse
12891218822Sdim  cat >>confdefs.h <<_ACEOF
12892218822Sdim#define HAVE_DECL_FPRINTF 0
12893218822Sdim_ACEOF
12894218822Sdim
12895218822Sdim
1289633965Sjdpfi
12897218822Sdimecho "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12898218822Sdimecho $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12899218822Sdimif test "${ac_cv_have_decl_stpcpy+set}" = set; then
12900218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12901218822Sdimelse
12902218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12903218822Sdim/* confdefs.h.  */
12904218822Sdim_ACEOF
12905218822Sdimcat confdefs.h >>conftest.$ac_ext
12906218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12907218822Sdim/* end confdefs.h.  */
12908218822Sdim$ac_includes_default
12909218822Sdimint
12910218822Sdimmain ()
12911218822Sdim{
12912218822Sdim#ifndef stpcpy
12913218822Sdim  char *p = (char *) stpcpy;
12914218822Sdim#endif
1291533965Sjdp
12916218822Sdim  ;
12917218822Sdim  return 0;
12918218822Sdim}
12919218822Sdim_ACEOF
12920218822Sdimrm -f conftest.$ac_objext
12921218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922218822Sdim  (eval $ac_compile) 2>conftest.er1
12923218822Sdim  ac_status=$?
12924218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12925218822Sdim  rm -f conftest.er1
12926218822Sdim  cat conftest.err >&5
12927218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928218822Sdim  (exit $ac_status); } &&
12929218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
12930218822Sdim			 || test ! -s conftest.err'
12931218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932218822Sdim  (eval $ac_try) 2>&5
12933218822Sdim  ac_status=$?
12934218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935218822Sdim  (exit $ac_status); }; } &&
12936218822Sdim	 { ac_try='test -s conftest.$ac_objext'
12937218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938218822Sdim  (eval $ac_try) 2>&5
12939218822Sdim  ac_status=$?
12940218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941218822Sdim  (exit $ac_status); }; }; then
12942218822Sdim  ac_cv_have_decl_stpcpy=yes
1294333965Sjdpelse
12944218822Sdim  echo "$as_me: failed program was:" >&5
12945218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1294633965Sjdp
12947218822Sdimac_cv_have_decl_stpcpy=no
12948218822Sdimfi
12949218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12950218822Sdimfi
12951218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12952218822Sdimecho "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12953218822Sdimif test $ac_cv_have_decl_stpcpy = yes; then
12954218822Sdim
12955218822Sdimcat >>confdefs.h <<_ACEOF
12956218822Sdim#define HAVE_DECL_STPCPY 1
12957218822Sdim_ACEOF
12958218822Sdim
12959218822Sdim
12960218822Sdimelse
12961218822Sdim  cat >>confdefs.h <<_ACEOF
12962218822Sdim#define HAVE_DECL_STPCPY 0
12963218822Sdim_ACEOF
12964218822Sdim
12965218822Sdim
12966218822Sdimfi
12967218822Sdimecho "$as_me:$LINENO: checking whether strstr is declared" >&5
12968218822Sdimecho $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12969218822Sdimif test "${ac_cv_have_decl_strstr+set}" = set; then
12970218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
12971218822Sdimelse
12972218822Sdim  cat >conftest.$ac_ext <<_ACEOF
12973218822Sdim/* confdefs.h.  */
12974218822Sdim_ACEOF
12975218822Sdimcat confdefs.h >>conftest.$ac_ext
12976218822Sdimcat >>conftest.$ac_ext <<_ACEOF
12977218822Sdim/* end confdefs.h.  */
12978218822Sdim$ac_includes_default
12979218822Sdimint
12980218822Sdimmain ()
12981218822Sdim{
12982218822Sdim#ifndef strstr
12983218822Sdim  char *p = (char *) strstr;
1298433965Sjdp#endif
12985218822Sdim
12986218822Sdim  ;
12987218822Sdim  return 0;
12988218822Sdim}
12989218822Sdim_ACEOF
12990218822Sdimrm -f conftest.$ac_objext
12991218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992218822Sdim  (eval $ac_compile) 2>conftest.er1
12993218822Sdim  ac_status=$?
12994218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
12995218822Sdim  rm -f conftest.er1
12996218822Sdim  cat conftest.err >&5
12997218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998218822Sdim  (exit $ac_status); } &&
12999218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13000218822Sdim			 || test ! -s conftest.err'
13001218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002218822Sdim  (eval $ac_try) 2>&5
13003218822Sdim  ac_status=$?
13004218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005218822Sdim  (exit $ac_status); }; } &&
13006218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13007218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008218822Sdim  (eval $ac_try) 2>&5
13009218822Sdim  ac_status=$?
13010218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011218822Sdim  (exit $ac_status); }; }; then
13012218822Sdim  ac_cv_have_decl_strstr=yes
1301333965Sjdpelse
13014218822Sdim  echo "$as_me: failed program was:" >&5
13015218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13016218822Sdim
13017218822Sdimac_cv_have_decl_strstr=no
1301833965Sjdpfi
13019218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1302033965Sjdpfi
13021218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13022218822Sdimecho "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13023218822Sdimif test $ac_cv_have_decl_strstr = yes; then
1302433965Sjdp
13025218822Sdimcat >>confdefs.h <<_ACEOF
13026218822Sdim#define HAVE_DECL_STRSTR 1
13027218822Sdim_ACEOF
1302833965Sjdp
13029218822Sdim
13030218822Sdimelse
13031218822Sdim  cat >>confdefs.h <<_ACEOF
13032218822Sdim#define HAVE_DECL_STRSTR 0
13033218822Sdim_ACEOF
13034218822Sdim
13035218822Sdim
1303633965Sjdpfi
13037218822Sdimecho "$as_me:$LINENO: checking whether sbrk is declared" >&5
13038218822Sdimecho $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13039218822Sdimif test "${ac_cv_have_decl_sbrk+set}" = set; then
13040218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13041218822Sdimelse
13042218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13043218822Sdim/* confdefs.h.  */
13044218822Sdim_ACEOF
13045218822Sdimcat confdefs.h >>conftest.$ac_ext
13046218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13047218822Sdim/* end confdefs.h.  */
13048218822Sdim$ac_includes_default
13049218822Sdimint
13050218822Sdimmain ()
13051218822Sdim{
13052218822Sdim#ifndef sbrk
13053218822Sdim  char *p = (char *) sbrk;
13054218822Sdim#endif
1305533965Sjdp
13056218822Sdim  ;
13057218822Sdim  return 0;
13058218822Sdim}
13059218822Sdim_ACEOF
13060218822Sdimrm -f conftest.$ac_objext
13061218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13062218822Sdim  (eval $ac_compile) 2>conftest.er1
13063218822Sdim  ac_status=$?
13064218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13065218822Sdim  rm -f conftest.er1
13066218822Sdim  cat conftest.err >&5
13067218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068218822Sdim  (exit $ac_status); } &&
13069218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13070218822Sdim			 || test ! -s conftest.err'
13071218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072218822Sdim  (eval $ac_try) 2>&5
13073218822Sdim  ac_status=$?
13074218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075218822Sdim  (exit $ac_status); }; } &&
13076218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13077218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078218822Sdim  (eval $ac_try) 2>&5
13079218822Sdim  ac_status=$?
13080218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081218822Sdim  (exit $ac_status); }; }; then
13082218822Sdim  ac_cv_have_decl_sbrk=yes
1308333965Sjdpelse
13084218822Sdim  echo "$as_me: failed program was:" >&5
13085218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1308633965Sjdp
13087218822Sdimac_cv_have_decl_sbrk=no
13088218822Sdimfi
13089218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13090218822Sdimfi
13091218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13092218822Sdimecho "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13093218822Sdimif test $ac_cv_have_decl_sbrk = yes; then
13094218822Sdim
13095218822Sdimcat >>confdefs.h <<_ACEOF
13096218822Sdim#define HAVE_DECL_SBRK 1
13097218822Sdim_ACEOF
13098218822Sdim
13099218822Sdim
13100218822Sdimelse
13101218822Sdim  cat >>confdefs.h <<_ACEOF
13102218822Sdim#define HAVE_DECL_SBRK 0
13103218822Sdim_ACEOF
13104218822Sdim
13105218822Sdim
13106218822Sdimfi
13107218822Sdimecho "$as_me:$LINENO: checking whether getenv is declared" >&5
13108218822Sdimecho $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13109218822Sdimif test "${ac_cv_have_decl_getenv+set}" = set; then
13110218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13111218822Sdimelse
13112218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13113218822Sdim/* confdefs.h.  */
13114218822Sdim_ACEOF
13115218822Sdimcat confdefs.h >>conftest.$ac_ext
13116218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13117218822Sdim/* end confdefs.h.  */
13118218822Sdim$ac_includes_default
13119218822Sdimint
13120218822Sdimmain ()
13121218822Sdim{
13122218822Sdim#ifndef getenv
13123218822Sdim  char *p = (char *) getenv;
1312433965Sjdp#endif
13125218822Sdim
13126218822Sdim  ;
13127218822Sdim  return 0;
13128218822Sdim}
13129218822Sdim_ACEOF
13130218822Sdimrm -f conftest.$ac_objext
13131218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132218822Sdim  (eval $ac_compile) 2>conftest.er1
13133218822Sdim  ac_status=$?
13134218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13135218822Sdim  rm -f conftest.er1
13136218822Sdim  cat conftest.err >&5
13137218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138218822Sdim  (exit $ac_status); } &&
13139218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13140218822Sdim			 || test ! -s conftest.err'
13141218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142218822Sdim  (eval $ac_try) 2>&5
13143218822Sdim  ac_status=$?
13144218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145218822Sdim  (exit $ac_status); }; } &&
13146218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13147218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148218822Sdim  (eval $ac_try) 2>&5
13149218822Sdim  ac_status=$?
13150218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151218822Sdim  (exit $ac_status); }; }; then
13152218822Sdim  ac_cv_have_decl_getenv=yes
1315333965Sjdpelse
13154218822Sdim  echo "$as_me: failed program was:" >&5
13155218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13156218822Sdim
13157218822Sdimac_cv_have_decl_getenv=no
1315833965Sjdpfi
13159218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1316033965Sjdpfi
13161218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13162218822Sdimecho "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13163218822Sdimif test $ac_cv_have_decl_getenv = yes; then
1316433965Sjdp
13165218822Sdimcat >>confdefs.h <<_ACEOF
13166218822Sdim#define HAVE_DECL_GETENV 1
13167218822Sdim_ACEOF
1316833965Sjdp
13169218822Sdim
13170218822Sdimelse
13171218822Sdim  cat >>confdefs.h <<_ACEOF
13172218822Sdim#define HAVE_DECL_GETENV 0
13173218822Sdim_ACEOF
13174218822Sdim
13175218822Sdim
1317633965Sjdpfi
13177218822Sdimecho "$as_me:$LINENO: checking whether environ is declared" >&5
13178218822Sdimecho $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13179218822Sdimif test "${ac_cv_have_decl_environ+set}" = set; then
13180218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13181218822Sdimelse
13182218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13183218822Sdim/* confdefs.h.  */
13184218822Sdim_ACEOF
13185218822Sdimcat confdefs.h >>conftest.$ac_ext
13186218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13187218822Sdim/* end confdefs.h.  */
13188218822Sdim$ac_includes_default
13189218822Sdimint
13190218822Sdimmain ()
13191218822Sdim{
13192218822Sdim#ifndef environ
13193218822Sdim  char *p = (char *) environ;
13194218822Sdim#endif
1319533965Sjdp
13196218822Sdim  ;
13197218822Sdim  return 0;
13198218822Sdim}
13199218822Sdim_ACEOF
13200218822Sdimrm -f conftest.$ac_objext
13201218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13202218822Sdim  (eval $ac_compile) 2>conftest.er1
13203218822Sdim  ac_status=$?
13204218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13205218822Sdim  rm -f conftest.er1
13206218822Sdim  cat conftest.err >&5
13207218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208218822Sdim  (exit $ac_status); } &&
13209218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13210218822Sdim			 || test ! -s conftest.err'
13211218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212218822Sdim  (eval $ac_try) 2>&5
13213218822Sdim  ac_status=$?
13214218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215218822Sdim  (exit $ac_status); }; } &&
13216218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13217218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218218822Sdim  (eval $ac_try) 2>&5
13219218822Sdim  ac_status=$?
13220218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221218822Sdim  (exit $ac_status); }; }; then
13222218822Sdim  ac_cv_have_decl_environ=yes
1322333965Sjdpelse
13224218822Sdim  echo "$as_me: failed program was:" >&5
13225218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1322633965Sjdp
13227218822Sdimac_cv_have_decl_environ=no
13228218822Sdimfi
13229218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13230218822Sdimfi
13231218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13232218822Sdimecho "${ECHO_T}$ac_cv_have_decl_environ" >&6
13233218822Sdimif test $ac_cv_have_decl_environ = yes; then
13234218822Sdim
13235218822Sdimcat >>confdefs.h <<_ACEOF
13236218822Sdim#define HAVE_DECL_ENVIRON 1
13237218822Sdim_ACEOF
13238218822Sdim
13239218822Sdim
13240218822Sdimelse
13241218822Sdim  cat >>confdefs.h <<_ACEOF
13242218822Sdim#define HAVE_DECL_ENVIRON 0
13243218822Sdim_ACEOF
13244218822Sdim
13245218822Sdim
13246218822Sdimfi
13247218822Sdimecho "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13248218822Sdimecho $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13249218822Sdimif test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13250218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13251218822Sdimelse
13252218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13253218822Sdim/* confdefs.h.  */
13254218822Sdim_ACEOF
13255218822Sdimcat confdefs.h >>conftest.$ac_ext
13256218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13257218822Sdim/* end confdefs.h.  */
13258218822Sdim$ac_includes_default
13259218822Sdimint
13260218822Sdimmain ()
13261218822Sdim{
13262218822Sdim#ifndef getc_unlocked
13263218822Sdim  char *p = (char *) getc_unlocked;
1326433965Sjdp#endif
13265218822Sdim
13266218822Sdim  ;
13267218822Sdim  return 0;
13268218822Sdim}
13269218822Sdim_ACEOF
13270218822Sdimrm -f conftest.$ac_objext
13271218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13272218822Sdim  (eval $ac_compile) 2>conftest.er1
13273218822Sdim  ac_status=$?
13274218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13275218822Sdim  rm -f conftest.er1
13276218822Sdim  cat conftest.err >&5
13277218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278218822Sdim  (exit $ac_status); } &&
13279218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13280218822Sdim			 || test ! -s conftest.err'
13281218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282218822Sdim  (eval $ac_try) 2>&5
13283218822Sdim  ac_status=$?
13284218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285218822Sdim  (exit $ac_status); }; } &&
13286218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13287218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288218822Sdim  (eval $ac_try) 2>&5
13289218822Sdim  ac_status=$?
13290218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291218822Sdim  (exit $ac_status); }; }; then
13292218822Sdim  ac_cv_have_decl_getc_unlocked=yes
1329333965Sjdpelse
13294218822Sdim  echo "$as_me: failed program was:" >&5
13295218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13296218822Sdim
13297218822Sdimac_cv_have_decl_getc_unlocked=no
1329833965Sjdpfi
13299218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1330033965Sjdpfi
13301218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13302218822Sdimecho "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13303218822Sdimif test $ac_cv_have_decl_getc_unlocked = yes; then
1330433965Sjdp
13305218822Sdimcat >>confdefs.h <<_ACEOF
13306218822Sdim#define HAVE_DECL_GETC_UNLOCKED 1
13307218822Sdim_ACEOF
1330833965Sjdp
13309218822Sdim
13310218822Sdimelse
13311218822Sdim  cat >>confdefs.h <<_ACEOF
13312218822Sdim#define HAVE_DECL_GETC_UNLOCKED 0
13313218822Sdim_ACEOF
13314218822Sdim
13315218822Sdim
1331633965Sjdpfi
13317218822Sdimecho "$as_me:$LINENO: checking whether snprintf is declared" >&5
13318218822Sdimecho $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13319218822Sdimif test "${ac_cv_have_decl_snprintf+set}" = set; then
13320218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13321218822Sdimelse
13322218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13323218822Sdim/* confdefs.h.  */
13324218822Sdim_ACEOF
13325218822Sdimcat confdefs.h >>conftest.$ac_ext
13326218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13327218822Sdim/* end confdefs.h.  */
13328218822Sdim$ac_includes_default
13329218822Sdimint
13330218822Sdimmain ()
13331218822Sdim{
13332218822Sdim#ifndef snprintf
13333218822Sdim  char *p = (char *) snprintf;
13334218822Sdim#endif
1333533965Sjdp
13336218822Sdim  ;
13337218822Sdim  return 0;
13338218822Sdim}
13339218822Sdim_ACEOF
13340218822Sdimrm -f conftest.$ac_objext
13341218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13342218822Sdim  (eval $ac_compile) 2>conftest.er1
13343218822Sdim  ac_status=$?
13344218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13345218822Sdim  rm -f conftest.er1
13346218822Sdim  cat conftest.err >&5
13347218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348218822Sdim  (exit $ac_status); } &&
13349218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13350218822Sdim			 || test ! -s conftest.err'
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); }; } &&
13356218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13357218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358218822Sdim  (eval $ac_try) 2>&5
13359218822Sdim  ac_status=$?
13360218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361218822Sdim  (exit $ac_status); }; }; then
13362218822Sdim  ac_cv_have_decl_snprintf=yes
1336360484Sobrienelse
13364218822Sdim  echo "$as_me: failed program was:" >&5
13365218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
1336633965Sjdp
13367218822Sdimac_cv_have_decl_snprintf=no
13368218822Sdimfi
13369218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13370218822Sdimfi
13371218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13372218822Sdimecho "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13373218822Sdimif test $ac_cv_have_decl_snprintf = yes; then
13374218822Sdim
13375218822Sdimcat >>confdefs.h <<_ACEOF
13376218822Sdim#define HAVE_DECL_SNPRINTF 1
13377218822Sdim_ACEOF
13378218822Sdim
13379218822Sdim
13380218822Sdimelse
13381218822Sdim  cat >>confdefs.h <<_ACEOF
13382218822Sdim#define HAVE_DECL_SNPRINTF 0
13383218822Sdim_ACEOF
13384218822Sdim
13385218822Sdim
13386218822Sdimfi
13387218822Sdimecho "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13388218822Sdimecho $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13389218822Sdimif test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13390218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13391218822Sdimelse
13392218822Sdim  cat >conftest.$ac_ext <<_ACEOF
13393218822Sdim/* confdefs.h.  */
13394218822Sdim_ACEOF
13395218822Sdimcat confdefs.h >>conftest.$ac_ext
13396218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13397218822Sdim/* end confdefs.h.  */
13398218822Sdim$ac_includes_default
13399218822Sdimint
13400218822Sdimmain ()
13401218822Sdim{
13402218822Sdim#ifndef vsnprintf
13403218822Sdim  char *p = (char *) vsnprintf;
1340460484Sobrien#endif
13405218822Sdim
13406218822Sdim  ;
13407218822Sdim  return 0;
13408218822Sdim}
13409218822Sdim_ACEOF
13410218822Sdimrm -f conftest.$ac_objext
13411218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13412218822Sdim  (eval $ac_compile) 2>conftest.er1
13413218822Sdim  ac_status=$?
13414218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13415218822Sdim  rm -f conftest.er1
13416218822Sdim  cat conftest.err >&5
13417218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418218822Sdim  (exit $ac_status); } &&
13419218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13420218822Sdim			 || test ! -s conftest.err'
13421218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422218822Sdim  (eval $ac_try) 2>&5
13423218822Sdim  ac_status=$?
13424218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425218822Sdim  (exit $ac_status); }; } &&
13426218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13427218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428218822Sdim  (eval $ac_try) 2>&5
13429218822Sdim  ac_status=$?
13430218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431218822Sdim  (exit $ac_status); }; }; then
13432218822Sdim  ac_cv_have_decl_vsnprintf=yes
1343360484Sobrienelse
13434218822Sdim  echo "$as_me: failed program was:" >&5
13435218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13436218822Sdim
13437218822Sdimac_cv_have_decl_vsnprintf=no
1343860484Sobrienfi
13439218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1344060484Sobrienfi
13441218822Sdimecho "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13442218822Sdimecho "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13443218822Sdimif test $ac_cv_have_decl_vsnprintf = yes; then
1344433965Sjdp
13445218822Sdimcat >>confdefs.h <<_ACEOF
13446218822Sdim#define HAVE_DECL_VSNPRINTF 1
13447218822Sdim_ACEOF
1344860484Sobrien
13449218822Sdim
13450218822Sdimelse
13451218822Sdim  cat >>confdefs.h <<_ACEOF
13452218822Sdim#define HAVE_DECL_VSNPRINTF 0
13453218822Sdim_ACEOF
13454218822Sdim
13455218822Sdim
1345660484Sobrienfi
1345760484Sobrien
1345860484Sobrien
1345960484Sobrien
13460218822Sdim
1346133965Sjdpcase "${host}" in
1346260484Sobrien*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13463218822Sdim
13464218822Sdimcat >>confdefs.h <<\_ACEOF
1346533965Sjdp#define USE_BINARY_FOPEN 1
13466218822Sdim_ACEOF
1346733965Sjdp ;;
1346833965Sjdpesac
1346933965Sjdp
1347033965Sjdp# target-specific stuff:
1347133965Sjdp
1347233965Sjdp# Canonicalize the secondary target names.
1347333965Sjdpif test -n "$enable_targets"; then
1347433965Sjdp    for targ in `echo $enable_targets | sed 's/,/ /g'`
1347533965Sjdp    do
1347660484Sobrien	result=`$ac_config_sub $targ 2>/dev/null`
1347733965Sjdp	if test -n "$result"; then
1347833965Sjdp	    canon_targets="$canon_targets $result"
1347933965Sjdp	else
1348033965Sjdp	    # Allow targets that config.sub doesn't recognize, like "all".
1348133965Sjdp	    canon_targets="$canon_targets $targ"
1348233965Sjdp	fi
1348333965Sjdp    done
1348433965Sjdpfi
1348533965Sjdp
13486218822Sdimif test "${ac_cv_header_iconv_h+set}" = set; then
13487218822Sdim  echo "$as_me:$LINENO: checking for iconv.h" >&5
13488218822Sdimecho $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13489218822Sdimif test "${ac_cv_header_iconv_h+set}" = set; then
13490218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13491218822Sdimfi
13492218822Sdimecho "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13493218822Sdimecho "${ECHO_T}$ac_cv_header_iconv_h" >&6
13494218822Sdimelse
13495218822Sdim  # Is the header compilable?
13496218822Sdimecho "$as_me:$LINENO: checking iconv.h usability" >&5
13497218822Sdimecho $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13498218822Sdimcat >conftest.$ac_ext <<_ACEOF
13499218822Sdim/* confdefs.h.  */
13500218822Sdim_ACEOF
13501218822Sdimcat confdefs.h >>conftest.$ac_ext
13502218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13503218822Sdim/* end confdefs.h.  */
13504218822Sdim$ac_includes_default
13505218822Sdim#include <iconv.h>
13506218822Sdim_ACEOF
13507218822Sdimrm -f conftest.$ac_objext
13508218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13509218822Sdim  (eval $ac_compile) 2>conftest.er1
13510218822Sdim  ac_status=$?
13511218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13512218822Sdim  rm -f conftest.er1
13513218822Sdim  cat conftest.err >&5
13514218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515218822Sdim  (exit $ac_status); } &&
13516218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
13517218822Sdim			 || test ! -s conftest.err'
13518218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519218822Sdim  (eval $ac_try) 2>&5
13520218822Sdim  ac_status=$?
13521218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522218822Sdim  (exit $ac_status); }; } &&
13523218822Sdim	 { ac_try='test -s conftest.$ac_objext'
13524218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525218822Sdim  (eval $ac_try) 2>&5
13526218822Sdim  ac_status=$?
13527218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528218822Sdim  (exit $ac_status); }; }; then
13529218822Sdim  ac_header_compiler=yes
13530218822Sdimelse
13531218822Sdim  echo "$as_me: failed program was:" >&5
13532218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13533218822Sdim
13534218822Sdimac_header_compiler=no
13535218822Sdimfi
13536218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13537218822Sdimecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
13538218822Sdimecho "${ECHO_T}$ac_header_compiler" >&6
13539218822Sdim
13540218822Sdim# Is the header present?
13541218822Sdimecho "$as_me:$LINENO: checking iconv.h presence" >&5
13542218822Sdimecho $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13543218822Sdimcat >conftest.$ac_ext <<_ACEOF
13544218822Sdim/* confdefs.h.  */
13545218822Sdim_ACEOF
13546218822Sdimcat confdefs.h >>conftest.$ac_ext
13547218822Sdimcat >>conftest.$ac_ext <<_ACEOF
13548218822Sdim/* end confdefs.h.  */
13549218822Sdim#include <iconv.h>
13550218822Sdim_ACEOF
13551218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13552218822Sdim  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13553218822Sdim  ac_status=$?
13554218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
13555218822Sdim  rm -f conftest.er1
13556218822Sdim  cat conftest.err >&5
13557218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558218822Sdim  (exit $ac_status); } >/dev/null; then
13559218822Sdim  if test -s conftest.err; then
13560218822Sdim    ac_cpp_err=$ac_c_preproc_warn_flag
13561218822Sdim    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13562218822Sdim  else
13563218822Sdim    ac_cpp_err=
13564218822Sdim  fi
13565218822Sdimelse
13566218822Sdim  ac_cpp_err=yes
13567218822Sdimfi
13568218822Sdimif test -z "$ac_cpp_err"; then
13569218822Sdim  ac_header_preproc=yes
13570218822Sdimelse
13571218822Sdim  echo "$as_me: failed program was:" >&5
13572218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
13573218822Sdim
13574218822Sdim  ac_header_preproc=no
13575218822Sdimfi
13576218822Sdimrm -f conftest.err conftest.$ac_ext
13577218822Sdimecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
13578218822Sdimecho "${ECHO_T}$ac_header_preproc" >&6
13579218822Sdim
13580218822Sdim# So?  What about this header?
13581218822Sdimcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13582218822Sdim  yes:no: )
13583218822Sdim    { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13584218822Sdimecho "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13585218822Sdim    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
13586218822Sdimecho "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
13587218822Sdim    ac_header_preproc=yes
13588218822Sdim    ;;
13589218822Sdim  no:yes:* )
13590218822Sdim    { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13591218822Sdimecho "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13592218822Sdim    { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
13593218822Sdimecho "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
13594218822Sdim    { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
13595218822Sdimecho "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
13596218822Sdim    { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
13597218822Sdimecho "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13598218822Sdim    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13599218822Sdimecho "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
13600218822Sdim    { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
13601218822Sdimecho "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
13602218822Sdim    (
13603218822Sdim      cat <<\_ASBOX
13604218822Sdim## ------------------------------------------ ##
13605218822Sdim## Report this to the AC_PACKAGE_NAME lists.  ##
13606218822Sdim## ------------------------------------------ ##
13607218822Sdim_ASBOX
13608218822Sdim    ) |
13609218822Sdim      sed "s/^/$as_me: WARNING:     /" >&2
13610218822Sdim    ;;
13611218822Sdimesac
13612218822Sdimecho "$as_me:$LINENO: checking for iconv.h" >&5
13613218822Sdimecho $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13614218822Sdimif test "${ac_cv_header_iconv_h+set}" = set; then
13615218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13616218822Sdimelse
13617218822Sdim  ac_cv_header_iconv_h=$ac_header_preproc
13618218822Sdimfi
13619218822Sdimecho "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13620218822Sdimecho "${ECHO_T}$ac_cv_header_iconv_h" >&6
13621218822Sdim
13622218822Sdimfi
13623218822Sdim
13624218822Sdim
13625218822Sdim
13626218822Sdim      if test "X$prefix" = "XNONE"; then
13627218822Sdim    acl_final_prefix="$ac_default_prefix"
13628218822Sdim  else
13629218822Sdim    acl_final_prefix="$prefix"
13630218822Sdim  fi
13631218822Sdim  if test "X$exec_prefix" = "XNONE"; then
13632218822Sdim    acl_final_exec_prefix='${prefix}'
13633218822Sdim  else
13634218822Sdim    acl_final_exec_prefix="$exec_prefix"
13635218822Sdim  fi
13636218822Sdim  acl_save_prefix="$prefix"
13637218822Sdim  prefix="$acl_final_prefix"
13638218822Sdim  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13639218822Sdim  prefix="$acl_save_prefix"
13640218822Sdim
13641218822Sdim
13642218822Sdim# Check whether --with-gnu-ld or --without-gnu-ld was given.
13643218822Sdimif test "${with_gnu_ld+set}" = set; then
13644218822Sdim  withval="$with_gnu_ld"
13645218822Sdim  test "$withval" = no || with_gnu_ld=yes
13646218822Sdimelse
13647218822Sdim  with_gnu_ld=no
13648218822Sdimfi;
13649218822Sdim# Prepare PATH_SEPARATOR.
13650218822Sdim# The user is always right.
13651218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
13652218822Sdim  echo "#! /bin/sh" >conf$$.sh
13653218822Sdim  echo  "exit 0"   >>conf$$.sh
13654218822Sdim  chmod +x conf$$.sh
13655218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13656218822Sdim    PATH_SEPARATOR=';'
13657218822Sdim  else
13658218822Sdim    PATH_SEPARATOR=:
13659218822Sdim  fi
13660218822Sdim  rm -f conf$$.sh
13661218822Sdimfi
13662218822Sdimac_prog=ld
13663218822Sdimif test "$GCC" = yes; then
13664218822Sdim  # Check if gcc -print-prog-name=ld gives a path.
13665218822Sdim  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13666218822Sdimecho $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
13667218822Sdim  case $host in
13668218822Sdim  *-*-mingw*)
13669218822Sdim    # gcc leaves a trailing carriage return which upsets mingw
13670218822Sdim    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13671218822Sdim  *)
13672218822Sdim    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13673218822Sdim  esac
13674218822Sdim  case $ac_prog in
13675218822Sdim    # Accept absolute paths.
13676218822Sdim    [\\/]* | [A-Za-z]:[\\/]*)
13677218822Sdim      re_direlt='/[^/][^/]*/\.\./'
13678218822Sdim      # Canonicalize the path of ld
13679218822Sdim      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13680218822Sdim      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13681218822Sdim	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13682218822Sdim      done
13683218822Sdim      test -z "$LD" && LD="$ac_prog"
13684218822Sdim      ;;
13685218822Sdim  "")
13686218822Sdim    # If it fails, then pretend we aren't using GCC.
13687218822Sdim    ac_prog=ld
13688218822Sdim    ;;
13689218822Sdim  *)
13690218822Sdim    # If it is relative, then search for the first ld in PATH.
13691218822Sdim    with_gnu_ld=unknown
13692218822Sdim    ;;
13693218822Sdim  esac
13694218822Sdimelif test "$with_gnu_ld" = yes; then
13695218822Sdim  echo "$as_me:$LINENO: checking for GNU ld" >&5
13696218822Sdimecho $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13697218822Sdimelse
13698218822Sdim  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13699218822Sdimecho $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13700218822Sdimfi
13701218822Sdimif test "${acl_cv_path_LD+set}" = set; then
13702218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13703218822Sdimelse
13704218822Sdim  if test -z "$LD"; then
13705218822Sdim  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13706218822Sdim  for ac_dir in $PATH; do
13707218822Sdim    test -z "$ac_dir" && ac_dir=.
13708218822Sdim    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13709218822Sdim      acl_cv_path_LD="$ac_dir/$ac_prog"
13710218822Sdim      # Check to see if the program is GNU ld.  I'd rather use --version,
13711218822Sdim      # but apparently some GNU ld's only accept -v.
13712218822Sdim      # Break only if it was the GNU/non-GNU ld that we prefer.
13713218822Sdim      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13714218822Sdim	test "$with_gnu_ld" != no && break
13715218822Sdim      else
13716218822Sdim	test "$with_gnu_ld" != yes && break
13717218822Sdim      fi
13718218822Sdim    fi
13719218822Sdim  done
13720218822Sdim  IFS="$ac_save_ifs"
13721218822Sdimelse
13722218822Sdim  acl_cv_path_LD="$LD" # Let the user override the test with a path.
13723218822Sdimfi
13724218822Sdimfi
13725218822Sdim
13726218822SdimLD="$acl_cv_path_LD"
13727218822Sdimif test -n "$LD"; then
13728218822Sdim  echo "$as_me:$LINENO: result: $LD" >&5
13729218822Sdimecho "${ECHO_T}$LD" >&6
13730218822Sdimelse
13731218822Sdim  echo "$as_me:$LINENO: result: no" >&5
13732218822Sdimecho "${ECHO_T}no" >&6
13733218822Sdimfi
13734218822Sdimtest -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13735218822Sdimecho "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13736218822Sdim   { (exit 1); exit 1; }; }
13737218822Sdimecho "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13738218822Sdimecho $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13739218822Sdimif test "${acl_cv_prog_gnu_ld+set}" = set; then
13740218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13741218822Sdimelse
13742218822Sdim  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13743218822Sdimif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13744218822Sdim  acl_cv_prog_gnu_ld=yes
13745218822Sdimelse
13746218822Sdim  acl_cv_prog_gnu_ld=no
13747218822Sdimfi
13748218822Sdimfi
13749218822Sdimecho "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13750218822Sdimecho "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
13751218822Sdimwith_gnu_ld=$acl_cv_prog_gnu_ld
13752218822Sdim
13753218822Sdim
13754218822Sdim
13755218822Sdim                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13756218822Sdimecho $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
13757218822Sdimif test "${acl_cv_rpath+set}" = set; then
13758218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
13759218822Sdimelse
13760218822Sdim
13761218822Sdim    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13762218822Sdim    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13763218822Sdim    . ./conftest.sh
13764218822Sdim    rm -f ./conftest.sh
13765218822Sdim    acl_cv_rpath=done
13766218822Sdim
13767218822Sdimfi
13768218822Sdimecho "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13769218822Sdimecho "${ECHO_T}$acl_cv_rpath" >&6
13770218822Sdim  wl="$acl_cv_wl"
13771218822Sdim  libext="$acl_cv_libext"
13772218822Sdim  shlibext="$acl_cv_shlibext"
13773218822Sdim  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13774218822Sdim  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13775218822Sdim  hardcode_direct="$acl_cv_hardcode_direct"
13776218822Sdim  hardcode_minus_L="$acl_cv_hardcode_minus_L"
13777218822Sdim    # Check whether --enable-rpath or --disable-rpath was given.
13778218822Sdimif test "${enable_rpath+set}" = set; then
13779218822Sdim  enableval="$enable_rpath"
13780218822Sdim  :
13781218822Sdimelse
13782218822Sdim  enable_rpath=yes
13783218822Sdimfi;
13784218822Sdim
13785218822Sdim
13786218822Sdim
13787218822Sdim
13788218822Sdim
13789218822Sdim
13790218822Sdim
13791218822Sdim    use_additional=yes
13792218822Sdim
13793218822Sdim  acl_save_prefix="$prefix"
13794218822Sdim  prefix="$acl_final_prefix"
13795218822Sdim  acl_save_exec_prefix="$exec_prefix"
13796218822Sdim  exec_prefix="$acl_final_exec_prefix"
13797218822Sdim
13798218822Sdim    eval additional_includedir=\"$includedir\"
13799218822Sdim    eval additional_libdir=\"$libdir\"
13800218822Sdim
13801218822Sdim  exec_prefix="$acl_save_exec_prefix"
13802218822Sdim  prefix="$acl_save_prefix"
13803218822Sdim
13804218822Sdim
13805218822Sdim# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
13806218822Sdimif test "${with_libiconv_prefix+set}" = set; then
13807218822Sdim  withval="$with_libiconv_prefix"
13808218822Sdim
13809218822Sdim    if test "X$withval" = "Xno"; then
13810218822Sdim      use_additional=no
13811218822Sdim    else
13812218822Sdim      if test "X$withval" = "X"; then
13813218822Sdim
13814218822Sdim  acl_save_prefix="$prefix"
13815218822Sdim  prefix="$acl_final_prefix"
13816218822Sdim  acl_save_exec_prefix="$exec_prefix"
13817218822Sdim  exec_prefix="$acl_final_exec_prefix"
13818218822Sdim
13819218822Sdim          eval additional_includedir=\"$includedir\"
13820218822Sdim          eval additional_libdir=\"$libdir\"
13821218822Sdim
13822218822Sdim  exec_prefix="$acl_save_exec_prefix"
13823218822Sdim  prefix="$acl_save_prefix"
13824218822Sdim
13825218822Sdim      else
13826218822Sdim        additional_includedir="$withval/include"
13827218822Sdim        additional_libdir="$withval/lib"
13828218822Sdim      fi
13829218822Sdim    fi
13830218822Sdim
13831218822Sdimfi;
13832218822Sdim      LIBICONV=
13833218822Sdim  LTLIBICONV=
13834218822Sdim  INCICONV=
13835218822Sdim  rpathdirs=
13836218822Sdim  ltrpathdirs=
13837218822Sdim  names_already_handled=
13838218822Sdim  names_next_round='iconv '
13839218822Sdim  while test -n "$names_next_round"; do
13840218822Sdim    names_this_round="$names_next_round"
13841218822Sdim    names_next_round=
13842218822Sdim    for name in $names_this_round; do
13843218822Sdim      already_handled=
13844218822Sdim      for n in $names_already_handled; do
13845218822Sdim        if test "$n" = "$name"; then
13846218822Sdim          already_handled=yes
13847218822Sdim          break
13848218822Sdim        fi
13849218822Sdim      done
13850218822Sdim      if test -z "$already_handled"; then
13851218822Sdim        names_already_handled="$names_already_handled $name"
13852218822Sdim                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13853218822Sdim        eval value=\"\$HAVE_LIB$uppername\"
13854218822Sdim        if test -n "$value"; then
13855218822Sdim          if test "$value" = yes; then
13856218822Sdim            eval value=\"\$LIB$uppername\"
13857218822Sdim            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13858218822Sdim            eval value=\"\$LTLIB$uppername\"
13859218822Sdim            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13860218822Sdim          else
13861218822Sdim                                    :
13862218822Sdim          fi
13863218822Sdim        else
13864218822Sdim                              found_dir=
13865218822Sdim          found_la=
13866218822Sdim          found_so=
13867218822Sdim          found_a=
13868218822Sdim          if test $use_additional = yes; then
13869218822Sdim            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13870218822Sdim              found_dir="$additional_libdir"
13871218822Sdim              found_so="$additional_libdir/lib$name.$shlibext"
13872218822Sdim              if test -f "$additional_libdir/lib$name.la"; then
13873218822Sdim                found_la="$additional_libdir/lib$name.la"
13874218822Sdim              fi
13875218822Sdim            else
13876218822Sdim              if test -f "$additional_libdir/lib$name.$libext"; then
13877218822Sdim                found_dir="$additional_libdir"
13878218822Sdim                found_a="$additional_libdir/lib$name.$libext"
13879218822Sdim                if test -f "$additional_libdir/lib$name.la"; then
13880218822Sdim                  found_la="$additional_libdir/lib$name.la"
13881218822Sdim                fi
13882218822Sdim              fi
13883218822Sdim            fi
13884218822Sdim          fi
13885218822Sdim          if test "X$found_dir" = "X"; then
13886218822Sdim            for x in $LDFLAGS $LTLIBICONV; do
13887218822Sdim
13888218822Sdim  acl_save_prefix="$prefix"
13889218822Sdim  prefix="$acl_final_prefix"
13890218822Sdim  acl_save_exec_prefix="$exec_prefix"
13891218822Sdim  exec_prefix="$acl_final_exec_prefix"
13892218822Sdim  eval x=\"$x\"
13893218822Sdim  exec_prefix="$acl_save_exec_prefix"
13894218822Sdim  prefix="$acl_save_prefix"
13895218822Sdim
13896218822Sdim              case "$x" in
13897218822Sdim                -L*)
13898218822Sdim                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13899218822Sdim                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13900218822Sdim                    found_dir="$dir"
13901218822Sdim                    found_so="$dir/lib$name.$shlibext"
13902218822Sdim                    if test -f "$dir/lib$name.la"; then
13903218822Sdim                      found_la="$dir/lib$name.la"
13904218822Sdim                    fi
13905218822Sdim                  else
13906218822Sdim                    if test -f "$dir/lib$name.$libext"; then
13907218822Sdim                      found_dir="$dir"
13908218822Sdim                      found_a="$dir/lib$name.$libext"
13909218822Sdim                      if test -f "$dir/lib$name.la"; then
13910218822Sdim                        found_la="$dir/lib$name.la"
13911218822Sdim                      fi
13912218822Sdim                    fi
13913218822Sdim                  fi
13914218822Sdim                  ;;
13915218822Sdim              esac
13916218822Sdim              if test "X$found_dir" != "X"; then
13917218822Sdim                break
13918218822Sdim              fi
13919218822Sdim            done
13920218822Sdim          fi
13921218822Sdim          if test "X$found_dir" != "X"; then
13922218822Sdim                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13923218822Sdim            if test "X$found_so" != "X"; then
13924218822Sdim                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13925218822Sdim                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13926218822Sdim              else
13927218822Sdim                                                                                haveit=
13928218822Sdim                for x in $ltrpathdirs; do
13929218822Sdim                  if test "X$x" = "X$found_dir"; then
13930218822Sdim                    haveit=yes
13931218822Sdim                    break
13932218822Sdim                  fi
13933218822Sdim                done
13934218822Sdim                if test -z "$haveit"; then
13935218822Sdim                  ltrpathdirs="$ltrpathdirs $found_dir"
13936218822Sdim                fi
13937218822Sdim                                if test "$hardcode_direct" = yes; then
13938218822Sdim                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13939218822Sdim                else
13940218822Sdim                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13941218822Sdim                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13942218822Sdim                                                            haveit=
13943218822Sdim                    for x in $rpathdirs; do
13944218822Sdim                      if test "X$x" = "X$found_dir"; then
13945218822Sdim                        haveit=yes
13946218822Sdim                        break
13947218822Sdim                      fi
13948218822Sdim                    done
13949218822Sdim                    if test -z "$haveit"; then
13950218822Sdim                      rpathdirs="$rpathdirs $found_dir"
13951218822Sdim                    fi
13952218822Sdim                  else
13953218822Sdim                                                                                haveit=
13954218822Sdim                    for x in $LDFLAGS $LIBICONV; do
13955218822Sdim
13956218822Sdim  acl_save_prefix="$prefix"
13957218822Sdim  prefix="$acl_final_prefix"
13958218822Sdim  acl_save_exec_prefix="$exec_prefix"
13959218822Sdim  exec_prefix="$acl_final_exec_prefix"
13960218822Sdim  eval x=\"$x\"
13961218822Sdim  exec_prefix="$acl_save_exec_prefix"
13962218822Sdim  prefix="$acl_save_prefix"
13963218822Sdim
13964218822Sdim                      if test "X$x" = "X-L$found_dir"; then
13965218822Sdim                        haveit=yes
13966218822Sdim                        break
13967218822Sdim                      fi
13968218822Sdim                    done
13969218822Sdim                    if test -z "$haveit"; then
13970218822Sdim                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13971218822Sdim                    fi
13972218822Sdim                    if test "$hardcode_minus_L" != no; then
13973218822Sdim                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13974218822Sdim                    else
13975218822Sdim                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13976218822Sdim                    fi
13977218822Sdim                  fi
13978218822Sdim                fi
13979218822Sdim              fi
13980218822Sdim            else
13981218822Sdim              if test "X$found_a" != "X"; then
13982218822Sdim                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13983218822Sdim              else
13984218822Sdim                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13985218822Sdim              fi
13986218822Sdim            fi
13987218822Sdim                        additional_includedir=
13988218822Sdim            case "$found_dir" in
13989218822Sdim              */lib | */lib/)
13990218822Sdim                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13991218822Sdim                additional_includedir="$basedir/include"
13992218822Sdim                ;;
13993218822Sdim            esac
13994218822Sdim            if test "X$additional_includedir" != "X"; then
13995218822Sdim                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13996218822Sdim                haveit=
13997218822Sdim                if test "X$additional_includedir" = "X/usr/local/include"; then
13998218822Sdim                  if test -n "$GCC"; then
13999218822Sdim                    case $host_os in
14000218822Sdim                      linux*) haveit=yes;;
14001218822Sdim                    esac
14002218822Sdim                  fi
14003218822Sdim                fi
14004218822Sdim                if test -z "$haveit"; then
14005218822Sdim                  for x in $CPPFLAGS $INCICONV; do
14006218822Sdim
14007218822Sdim  acl_save_prefix="$prefix"
14008218822Sdim  prefix="$acl_final_prefix"
14009218822Sdim  acl_save_exec_prefix="$exec_prefix"
14010218822Sdim  exec_prefix="$acl_final_exec_prefix"
14011218822Sdim  eval x=\"$x\"
14012218822Sdim  exec_prefix="$acl_save_exec_prefix"
14013218822Sdim  prefix="$acl_save_prefix"
14014218822Sdim
14015218822Sdim                    if test "X$x" = "X-I$additional_includedir"; then
14016218822Sdim                      haveit=yes
14017218822Sdim                      break
14018218822Sdim                    fi
14019218822Sdim                  done
14020218822Sdim                  if test -z "$haveit"; then
14021218822Sdim                    if test -d "$additional_includedir"; then
14022218822Sdim                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14023218822Sdim                    fi
14024218822Sdim                  fi
14025218822Sdim                fi
14026218822Sdim              fi
14027218822Sdim            fi
14028218822Sdim                        if test -n "$found_la"; then
14029218822Sdim                                                        save_libdir="$libdir"
14030218822Sdim              case "$found_la" in
14031218822Sdim                */* | *\\*) . "$found_la" ;;
14032218822Sdim                *) . "./$found_la" ;;
14033218822Sdim              esac
14034218822Sdim              libdir="$save_libdir"
14035218822Sdim                            for dep in $dependency_libs; do
14036218822Sdim                case "$dep" in
14037218822Sdim                  -L*)
14038218822Sdim                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14039218822Sdim                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
14040218822Sdim                      haveit=
14041218822Sdim                      if test "X$additional_libdir" = "X/usr/local/lib"; then
14042218822Sdim                        if test -n "$GCC"; then
14043218822Sdim                          case $host_os in
14044218822Sdim                            linux*) haveit=yes;;
14045218822Sdim                          esac
14046218822Sdim                        fi
14047218822Sdim                      fi
14048218822Sdim                      if test -z "$haveit"; then
14049218822Sdim                        haveit=
14050218822Sdim                        for x in $LDFLAGS $LIBICONV; do
14051218822Sdim
14052218822Sdim  acl_save_prefix="$prefix"
14053218822Sdim  prefix="$acl_final_prefix"
14054218822Sdim  acl_save_exec_prefix="$exec_prefix"
14055218822Sdim  exec_prefix="$acl_final_exec_prefix"
14056218822Sdim  eval x=\"$x\"
14057218822Sdim  exec_prefix="$acl_save_exec_prefix"
14058218822Sdim  prefix="$acl_save_prefix"
14059218822Sdim
14060218822Sdim                          if test "X$x" = "X-L$additional_libdir"; then
14061218822Sdim                            haveit=yes
14062218822Sdim                            break
14063218822Sdim                          fi
14064218822Sdim                        done
14065218822Sdim                        if test -z "$haveit"; then
14066218822Sdim                          if test -d "$additional_libdir"; then
14067218822Sdim                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14068218822Sdim                          fi
14069218822Sdim                        fi
14070218822Sdim                        haveit=
14071218822Sdim                        for x in $LDFLAGS $LTLIBICONV; do
14072218822Sdim
14073218822Sdim  acl_save_prefix="$prefix"
14074218822Sdim  prefix="$acl_final_prefix"
14075218822Sdim  acl_save_exec_prefix="$exec_prefix"
14076218822Sdim  exec_prefix="$acl_final_exec_prefix"
14077218822Sdim  eval x=\"$x\"
14078218822Sdim  exec_prefix="$acl_save_exec_prefix"
14079218822Sdim  prefix="$acl_save_prefix"
14080218822Sdim
14081218822Sdim                          if test "X$x" = "X-L$additional_libdir"; then
14082218822Sdim                            haveit=yes
14083218822Sdim                            break
14084218822Sdim                          fi
14085218822Sdim                        done
14086218822Sdim                        if test -z "$haveit"; then
14087218822Sdim                          if test -d "$additional_libdir"; then
14088218822Sdim                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14089218822Sdim                          fi
14090218822Sdim                        fi
14091218822Sdim                      fi
14092218822Sdim                    fi
14093218822Sdim                    ;;
14094218822Sdim                  -R*)
14095218822Sdim                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14096218822Sdim                    if test "$enable_rpath" != no; then
14097218822Sdim                                                                  haveit=
14098218822Sdim                      for x in $rpathdirs; do
14099218822Sdim                        if test "X$x" = "X$dir"; then
14100218822Sdim                          haveit=yes
14101218822Sdim                          break
14102218822Sdim                        fi
14103218822Sdim                      done
14104218822Sdim                      if test -z "$haveit"; then
14105218822Sdim                        rpathdirs="$rpathdirs $dir"
14106218822Sdim                      fi
14107218822Sdim                                                                  haveit=
14108218822Sdim                      for x in $ltrpathdirs; do
14109218822Sdim                        if test "X$x" = "X$dir"; then
14110218822Sdim                          haveit=yes
14111218822Sdim                          break
14112218822Sdim                        fi
14113218822Sdim                      done
14114218822Sdim                      if test -z "$haveit"; then
14115218822Sdim                        ltrpathdirs="$ltrpathdirs $dir"
14116218822Sdim                      fi
14117218822Sdim                    fi
14118218822Sdim                    ;;
14119218822Sdim                  -l*)
14120218822Sdim                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14121218822Sdim                    ;;
14122218822Sdim                  *.la)
14123218822Sdim                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14124218822Sdim                    ;;
14125218822Sdim                  *)
14126218822Sdim                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14127218822Sdim                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14128218822Sdim                    ;;
14129218822Sdim                esac
14130218822Sdim              done
14131218822Sdim            fi
14132218822Sdim          else
14133218822Sdim                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14134218822Sdim            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14135218822Sdim          fi
14136218822Sdim        fi
14137218822Sdim      fi
14138218822Sdim    done
14139218822Sdim  done
14140218822Sdim  if test "X$rpathdirs" != "X"; then
14141218822Sdim    if test -n "$hardcode_libdir_separator"; then
14142218822Sdim                        alldirs=
14143218822Sdim      for found_dir in $rpathdirs; do
14144218822Sdim        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14145218822Sdim      done
14146218822Sdim            acl_save_libdir="$libdir"
14147218822Sdim      libdir="$alldirs"
14148218822Sdim      eval flag=\"$hardcode_libdir_flag_spec\"
14149218822Sdim      libdir="$acl_save_libdir"
14150218822Sdim      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14151218822Sdim    else
14152218822Sdim            for found_dir in $rpathdirs; do
14153218822Sdim        acl_save_libdir="$libdir"
14154218822Sdim        libdir="$found_dir"
14155218822Sdim        eval flag=\"$hardcode_libdir_flag_spec\"
14156218822Sdim        libdir="$acl_save_libdir"
14157218822Sdim        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14158218822Sdim      done
14159218822Sdim    fi
14160218822Sdim  fi
14161218822Sdim  if test "X$ltrpathdirs" != "X"; then
14162218822Sdim            for found_dir in $ltrpathdirs; do
14163218822Sdim      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14164218822Sdim    done
14165218822Sdim  fi
14166218822Sdim
14167218822Sdim
14168218822Sdim
14169218822Sdim
14170218822Sdim
14171218822Sdim
14172218822Sdim
14173218822Sdim          am_save_CPPFLAGS="$CPPFLAGS"
14174218822Sdim
14175218822Sdim  for element in $INCICONV; do
14176218822Sdim    haveit=
14177218822Sdim    for x in $CPPFLAGS; do
14178218822Sdim
14179218822Sdim  acl_save_prefix="$prefix"
14180218822Sdim  prefix="$acl_final_prefix"
14181218822Sdim  acl_save_exec_prefix="$exec_prefix"
14182218822Sdim  exec_prefix="$acl_final_exec_prefix"
14183218822Sdim  eval x=\"$x\"
14184218822Sdim  exec_prefix="$acl_save_exec_prefix"
14185218822Sdim  prefix="$acl_save_prefix"
14186218822Sdim
14187218822Sdim      if test "X$x" = "X$element"; then
14188218822Sdim        haveit=yes
14189218822Sdim        break
14190218822Sdim      fi
14191218822Sdim    done
14192218822Sdim    if test -z "$haveit"; then
14193218822Sdim      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14194218822Sdim    fi
14195218822Sdim  done
14196218822Sdim
14197218822Sdim
14198218822Sdim  echo "$as_me:$LINENO: checking for iconv" >&5
14199218822Sdimecho $ECHO_N "checking for iconv... $ECHO_C" >&6
14200218822Sdimif test "${am_cv_func_iconv+set}" = set; then
14201218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
14202218822Sdimelse
14203218822Sdim
14204218822Sdim    am_cv_func_iconv="no, consider installing GNU libiconv"
14205218822Sdim    am_cv_lib_iconv=no
14206218822Sdim    cat >conftest.$ac_ext <<_ACEOF
14207218822Sdim/* confdefs.h.  */
14208218822Sdim_ACEOF
14209218822Sdimcat confdefs.h >>conftest.$ac_ext
14210218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14211218822Sdim/* end confdefs.h.  */
14212218822Sdim#include <stdlib.h>
14213218822Sdim#include <iconv.h>
14214218822Sdimint
14215218822Sdimmain ()
14216218822Sdim{
14217218822Sdimiconv_t cd = iconv_open("","");
14218218822Sdim       iconv(cd,NULL,NULL,NULL,NULL);
14219218822Sdim       iconv_close(cd);
14220218822Sdim  ;
14221218822Sdim  return 0;
14222218822Sdim}
14223218822Sdim_ACEOF
14224218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
14225218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14226218822Sdim  (eval $ac_link) 2>conftest.er1
14227218822Sdim  ac_status=$?
14228218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14229218822Sdim  rm -f conftest.er1
14230218822Sdim  cat conftest.err >&5
14231218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232218822Sdim  (exit $ac_status); } &&
14233218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14234218822Sdim			 || test ! -s conftest.err'
14235218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236218822Sdim  (eval $ac_try) 2>&5
14237218822Sdim  ac_status=$?
14238218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239218822Sdim  (exit $ac_status); }; } &&
14240218822Sdim	 { ac_try='test -s conftest$ac_exeext'
14241218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242218822Sdim  (eval $ac_try) 2>&5
14243218822Sdim  ac_status=$?
14244218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245218822Sdim  (exit $ac_status); }; }; then
14246218822Sdim  am_cv_func_iconv=yes
14247218822Sdimelse
14248218822Sdim  echo "$as_me: failed program was:" >&5
14249218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14250218822Sdim
14251218822Sdimfi
14252218822Sdimrm -f conftest.err conftest.$ac_objext \
14253218822Sdim      conftest$ac_exeext conftest.$ac_ext
14254218822Sdim    if test "$am_cv_func_iconv" != yes; then
14255218822Sdim      am_save_LIBS="$LIBS"
14256218822Sdim      LIBS="$LIBS $LIBICONV"
14257218822Sdim      cat >conftest.$ac_ext <<_ACEOF
14258218822Sdim/* confdefs.h.  */
14259218822Sdim_ACEOF
14260218822Sdimcat confdefs.h >>conftest.$ac_ext
14261218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14262218822Sdim/* end confdefs.h.  */
14263218822Sdim#include <stdlib.h>
14264218822Sdim#include <iconv.h>
14265218822Sdimint
14266218822Sdimmain ()
14267218822Sdim{
14268218822Sdimiconv_t cd = iconv_open("","");
14269218822Sdim         iconv(cd,NULL,NULL,NULL,NULL);
14270218822Sdim         iconv_close(cd);
14271218822Sdim  ;
14272218822Sdim  return 0;
14273218822Sdim}
14274218822Sdim_ACEOF
14275218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
14276218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14277218822Sdim  (eval $ac_link) 2>conftest.er1
14278218822Sdim  ac_status=$?
14279218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14280218822Sdim  rm -f conftest.er1
14281218822Sdim  cat conftest.err >&5
14282218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283218822Sdim  (exit $ac_status); } &&
14284218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14285218822Sdim			 || test ! -s conftest.err'
14286218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287218822Sdim  (eval $ac_try) 2>&5
14288218822Sdim  ac_status=$?
14289218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290218822Sdim  (exit $ac_status); }; } &&
14291218822Sdim	 { ac_try='test -s conftest$ac_exeext'
14292218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293218822Sdim  (eval $ac_try) 2>&5
14294218822Sdim  ac_status=$?
14295218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296218822Sdim  (exit $ac_status); }; }; then
14297218822Sdim  am_cv_lib_iconv=yes
14298218822Sdim        am_cv_func_iconv=yes
14299218822Sdimelse
14300218822Sdim  echo "$as_me: failed program was:" >&5
14301218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14302218822Sdim
14303218822Sdimfi
14304218822Sdimrm -f conftest.err conftest.$ac_objext \
14305218822Sdim      conftest$ac_exeext conftest.$ac_ext
14306218822Sdim      LIBS="$am_save_LIBS"
14307218822Sdim    fi
14308218822Sdim
14309218822Sdimfi
14310218822Sdimecho "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14311218822Sdimecho "${ECHO_T}$am_cv_func_iconv" >&6
14312218822Sdim  if test "$am_cv_func_iconv" = yes; then
14313218822Sdim
14314218822Sdimcat >>confdefs.h <<\_ACEOF
14315218822Sdim#define HAVE_ICONV 1
14316218822Sdim_ACEOF
14317218822Sdim
14318218822Sdim  fi
14319218822Sdim  if test "$am_cv_lib_iconv" = yes; then
14320218822Sdim    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14321218822Sdimecho $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14322218822Sdim    echo "$as_me:$LINENO: result: $LIBICONV" >&5
14323218822Sdimecho "${ECHO_T}$LIBICONV" >&6
14324218822Sdim  else
14325218822Sdim            CPPFLAGS="$am_save_CPPFLAGS"
14326218822Sdim    LIBICONV=
14327218822Sdim    LTLIBICONV=
14328218822Sdim  fi
14329218822Sdim
14330218822Sdim
14331218822Sdim
14332218822Sdim  if test "$am_cv_func_iconv" = yes; then
14333218822Sdim    echo "$as_me:$LINENO: checking for iconv declaration" >&5
14334218822Sdimecho $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14335218822Sdim    if test "${am_cv_proto_iconv+set}" = set; then
14336218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
14337218822Sdimelse
14338218822Sdim
14339218822Sdim      cat >conftest.$ac_ext <<_ACEOF
14340218822Sdim/* confdefs.h.  */
14341218822Sdim_ACEOF
14342218822Sdimcat confdefs.h >>conftest.$ac_ext
14343218822Sdimcat >>conftest.$ac_ext <<_ACEOF
14344218822Sdim/* end confdefs.h.  */
14345218822Sdim
14346218822Sdim#include <stdlib.h>
14347218822Sdim#include <iconv.h>
14348218822Sdimextern
14349218822Sdim#ifdef __cplusplus
14350218822Sdim"C"
14351218822Sdim#endif
14352218822Sdim#if defined(__STDC__) || defined(__cplusplus)
14353218822Sdimsize_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14354218822Sdim#else
14355218822Sdimsize_t iconv();
14356218822Sdim#endif
14357218822Sdim
14358218822Sdimint
14359218822Sdimmain ()
14360218822Sdim{
14361218822Sdim
14362218822Sdim  ;
14363218822Sdim  return 0;
14364218822Sdim}
14365218822Sdim_ACEOF
14366218822Sdimrm -f conftest.$ac_objext
14367218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368218822Sdim  (eval $ac_compile) 2>conftest.er1
14369218822Sdim  ac_status=$?
14370218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
14371218822Sdim  rm -f conftest.er1
14372218822Sdim  cat conftest.err >&5
14373218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374218822Sdim  (exit $ac_status); } &&
14375218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
14376218822Sdim			 || test ! -s conftest.err'
14377218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378218822Sdim  (eval $ac_try) 2>&5
14379218822Sdim  ac_status=$?
14380218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381218822Sdim  (exit $ac_status); }; } &&
14382218822Sdim	 { ac_try='test -s conftest.$ac_objext'
14383218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384218822Sdim  (eval $ac_try) 2>&5
14385218822Sdim  ac_status=$?
14386218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387218822Sdim  (exit $ac_status); }; }; then
14388218822Sdim  am_cv_proto_iconv_arg1=""
14389218822Sdimelse
14390218822Sdim  echo "$as_me: failed program was:" >&5
14391218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
14392218822Sdim
14393218822Sdimam_cv_proto_iconv_arg1="const"
14394218822Sdimfi
14395218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14396218822Sdim      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14397218822Sdimfi
14398218822Sdim
14399218822Sdim    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14400218822Sdim    echo "$as_me:$LINENO: result: ${ac_t:-
14401218822Sdim         }$am_cv_proto_iconv" >&5
14402218822Sdimecho "${ECHO_T}${ac_t:-
14403218822Sdim         }$am_cv_proto_iconv" >&6
14404218822Sdim
14405218822Sdimcat >>confdefs.h <<_ACEOF
14406218822Sdim#define ICONV_CONST $am_cv_proto_iconv_arg1
14407218822Sdim_ACEOF
14408218822Sdim
14409218822Sdim  fi
14410218822Sdim
14411218822Sdim
1441233965Sjdpall_targets=false
1441333965SjdpBUILD_NLMCONV=
1441433965SjdpNLMCONV_DEFS=
1441533965SjdpBUILD_SRCONV=
1441633965SjdpBUILD_DLLTOOL=
1441733965SjdpDLLTOOL_DEFS=
14418218822SdimDLLTOOL_DEFAULT=
1441938889SjdpBUILD_WINDRES=
14420218822SdimBUILD_WINDMC=
1442160484SobrienBUILD_DLLWRAP=
1442260484SobrienBUILD_MISC=
14423218822SdimBUILD_INSTALL_MISC=
1442477298SobrienOBJDUMP_DEFS=
1442533965Sjdp
1442633965Sjdpfor targ in $target $canon_targets
1442733965Sjdpdo
1442833965Sjdp    if test "x$targ" = "xall"; then
1442933965Sjdp        all_targets=true
1443038889Sjdp	BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
1443160484Sobrien	BUILD_SRCONV='$(SRCONV_PROG)'
1443233965Sjdp	NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
14433218822Sdim	BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
1443433965Sjdp    else
1443533965Sjdp	case $targ in
14436218822Sdim	i[3-7]86*-*-netware*)
1443738889Sjdp	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
1443833965Sjdp	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
1443933965Sjdp	  ;;
1444033965Sjdp	alpha*-*-netware*)
1444138889Sjdp	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
1444233965Sjdp	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
1444333965Sjdp	  ;;
1444433965Sjdp	powerpc*-*-netware*)
1444538889Sjdp	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
1444633965Sjdp	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
1444733965Sjdp	  ;;
1444833965Sjdp	sparc*-*-netware*)
1444938889Sjdp	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
1445033965Sjdp	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
1445133965Sjdp	  ;;
1445233965Sjdp	esac
1445333965Sjdp	case $targ in
1445460484Sobrien	*-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
1445533965Sjdp	esac
1445633965Sjdp	case $targ in
1445777298Sobrien	arm-epoc-pe*)
1445877298Sobrien  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14459218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14460218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14461218822Sdim	  fi
1446277298Sobrien	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
1446377298Sobrien	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14464218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
1446577298Sobrien	  ;;
14466218822Sdim	arm-wince-pe* | arm-*-wince)
1446738889Sjdp  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14468218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14469218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14470218822Sdim	  fi
14471218822Sdim	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14472218822Sdim	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14473218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14474218822Sdim	  ;;
14475218822Sdim	arm-*-pe*)
14476218822Sdim  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14477218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14478218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14479218822Sdim	  fi
1448033965Sjdp	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
1448138889Sjdp	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14482218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
1448360484Sobrien	  ;;
14484130561Sobrien	thumb-*-pe*)
1448538889Sjdp  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14486218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14487218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14488218822Sdim	  fi
1448960484Sobrien	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
1449060484Sobrien	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14491218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
1449260484Sobrien	  ;;
14493218822Sdim	x86_64-*-mingw*)
14494218822Sdim  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14495218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14496218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14497218822Sdim	  fi
14498218822Sdim	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14499218822Sdim	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14500218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14501218822Sdim	  BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
1450277298Sobrien	  ;;
14503130561Sobrien	i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
1450460484Sobrien  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14505218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14506218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14507218822Sdim	  fi
1450833965Sjdp	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
1450938889Sjdp	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14510218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
1451160484Sobrien	  BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
1451260484Sobrien	  ;;
14513130561Sobrien	i[3-7]86-*-interix)
1451460484Sobrien	  BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14515218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14516218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14517218822Sdim	  fi
1451860484Sobrien	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
1451960484Sobrien	  ;;
14520130561Sobrien	powerpc*-aix5.[01])
14521130561Sobrien	  ;;
14522130561Sobrien	powerpc*-aix5.*)
14523130561Sobrien	  OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14524130561Sobrien	  ;;
1452599461Sobrien	powerpc*-*-pe* | powerpc*-*-cygwin*)
1452638889Sjdp  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14527218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14528218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14529218822Sdim	  fi
1453033965Sjdp	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
1453138889Sjdp	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14532218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
1453360484Sobrien	  ;;
14534218822Sdim	powerpc*-*-linux* | powerpc*-*-elf*)
14535218822Sdim	  BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14536218822Sdim	  ;;
1453799461Sobrien	sh*-*-pe)
1453860484Sobrien  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14539218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14540218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14541218822Sdim	  fi
1454260484Sobrien	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
1454360484Sobrien	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14544218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
1454560484Sobrien	  ;;
14546218822Sdim	spu-*-*)
14547218822Sdim	  BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14548218822Sdim	  ;;
1454999461Sobrien	mips*-*-pe)
1455060484Sobrien  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14551218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14552218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14553218822Sdim	  fi
1455460484Sobrien	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
1455560484Sobrien	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14556218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
1455760484Sobrien	  ;;
14558130561Sobrien	mcore-*-pe)
1455960484Sobrien  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14560218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14561218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14562218822Sdim	  fi
1456360484Sobrien	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
1456460484Sobrien	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14565218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
1456660484Sobrien	  ;;
14567130561Sobrien	mcore-*-elf)
1456860484Sobrien  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14569218822Sdim	  if test -z "$DLLTOOL_DEFAULT"; then
14570218822Sdim	    DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14571218822Sdim	  fi
1457260484Sobrien	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
1457360484Sobrien	  ;;
14574218822Sdim  	mep-*)
14575218822Sdim	  OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14576130561Sobrien	  ;;
1457733965Sjdp	esac
1457833965Sjdp    fi
1457933965Sjdpdone
1458033965Sjdp
14581218822SdimDLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14582218822Sdim
1458389857Sobrienif test "${with_windres+set}" = set; then
1458489857Sobrien	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
1458589857Sobrienfi
1458633965Sjdp
14587218822Sdimif test "${with_windmc+set}" = set; then
14588218822Sdim	  BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14589218822Sdimfi
1459033965Sjdp
1459133965Sjdp
1459233965Sjdp
1459333965Sjdp
1459433965Sjdp
1459538889Sjdp
1459660484Sobrien
1459760484Sobrien
1459877298Sobrien
1459989857Sobrien
14600218822Sdim
14601218822Sdim
14602218822Sdim
14603218822Sdim
14604218822Sdimcat >>confdefs.h <<_ACEOF
1460538889Sjdp#define TARGET "${target}"
14606218822Sdim_ACEOF
1460738889Sjdp
1460838889Sjdp
1460933965Sjdptarg=$target
1461033965Sjdp. $srcdir/../bfd/config.bfd
1461133965Sjdpif test "x$targ_underscore" = "xyes"; then
1461233965Sjdp    UNDERSCORE=1
1461333965Sjdpelse
1461433965Sjdp    UNDERSCORE=0
1461533965Sjdpfi
14616218822Sdim
14617218822Sdimcat >>confdefs.h <<_ACEOF
14618130561Sobrien#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14619218822Sdim_ACEOF
1462033965Sjdp
1462133965Sjdp
14622218822Sdim# Emulation
14623104834Sobrienfor targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
14624104834Sobriendo
14625104834Sobrien  # Canonicalize the secondary target names.
14626104834Sobrien result=`$ac_config_sub $targ_alias 2>/dev/null`
14627104834Sobrien if test -n "$result"; then
14628104834Sobrien   targ=$result
14629104834Sobrien else
14630104834Sobrien   targ=$targ_alias
14631104834Sobrien fi
14632104834Sobrien
14633104834Sobrien . ${srcdir}/configure.tgt
14634104834Sobrien
14635104834Sobrien  EMULATION=$targ_emul
14636218822Sdim  EMULATION_VECTOR=$targ_emul_vector
14637104834Sobriendone
14638104834Sobrien
14639104834Sobrien
14640104834Sobrien
14641104834Sobrien
14642218822Sdim# Required for html and install-html
14643218822Sdim
14644218822Sdim
14645218822Sdim
14646218822Sdim
14647218822Sdim                              ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14648218822Sdimcat >confcache <<\_ACEOF
1464933965Sjdp# This file is a shell script that caches the results of configure
1465033965Sjdp# tests run on this system so they can be shared between configure
14651218822Sdim# scripts and configure runs, see configure's option --config-cache.
14652218822Sdim# It is not useful on other systems.  If it contains results you don't
14653218822Sdim# want to keep, you may remove or edit it.
1465433965Sjdp#
14655218822Sdim# config.status only pays attention to the cache file if you give it
14656218822Sdim# the --recheck option to rerun configure.
1465733965Sjdp#
14658218822Sdim# `ac_cv_env_foo' variables (set or unset) will be overridden when
14659218822Sdim# loading this file, other *unset* `ac_cv_foo' will be assigned the
14660218822Sdim# following values.
14661218822Sdim
14662218822Sdim_ACEOF
14663218822Sdim
1466433965Sjdp# The following way of writing the cache mishandles newlines in values,
1466533965Sjdp# but we know of no workaround that is simple, portable, and efficient.
1466633965Sjdp# So, don't put newlines in cache variables' values.
1466733965Sjdp# Ultrix sh set writes to stderr and can't be redirected directly,
1466833965Sjdp# and sets the high bit in the cache file unless we assign to the vars.
14669218822Sdim{
14670218822Sdim  (set) 2>&1 |
14671218822Sdim    case `(ac_space=' '; set | grep ac_space) 2>&1` in
14672218822Sdim    *ac_space=\ *)
14673218822Sdim      # `set' does not quote correctly, so add quotes (double-quote
14674218822Sdim      # substitution turns \\\\ into \\, and sed turns \\ into \).
14675218822Sdim      sed -n \
14676218822Sdim	"s/'/'\\\\''/g;
14677218822Sdim	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14678218822Sdim      ;;
14679218822Sdim    *)
14680218822Sdim      # `set' quotes correctly as required by POSIX, so do not add quotes.
14681218822Sdim      sed -n \
14682218822Sdim	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14683218822Sdim      ;;
14684218822Sdim    esac;
14685218822Sdim} |
14686218822Sdim  sed '
14687218822Sdim     t clear
14688218822Sdim     : clear
14689218822Sdim     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14690218822Sdim     t end
14691218822Sdim     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14692218822Sdim     : end' >>confcache
14693218822Sdimif diff $cache_file confcache >/dev/null 2>&1; then :; else
1469433965Sjdp  if test -w $cache_file; then
14695218822Sdim    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14696218822Sdim    cat confcache >$cache_file
1469733965Sjdp  else
1469833965Sjdp    echo "not updating unwritable cache $cache_file"
1469933965Sjdp  fi
1470033965Sjdpfi
1470133965Sjdprm -f confcache
1470233965Sjdp
1470333965Sjdptest "x$prefix" = xNONE && prefix=$ac_default_prefix
1470433965Sjdp# Let make expand exec_prefix.
1470533965Sjdptest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1470633965Sjdp
14707218822Sdim# VPATH may cause trouble with some makes, so we remove $(srcdir),
14708218822Sdim# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14709218822Sdim# trailing colons and then remove the whole line if VPATH becomes empty
14710218822Sdim# (actually we leave an empty line to preserve line numbers).
1471133965Sjdpif test "x$srcdir" = x.; then
14712218822Sdim  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14713218822Sdims/:*\$(srcdir):*/:/;
14714218822Sdims/:*\${srcdir}:*/:/;
14715218822Sdims/:*@srcdir@:*/:/;
14716218822Sdims/^\([^=]*=[	 ]*\):*/\1/;
14717218822Sdims/:*$//;
14718218822Sdims/^[^=]*=[	 ]*$//;
14719218822Sdim}'
1472033965Sjdpfi
1472133965Sjdp
1472233965SjdpDEFS=-DHAVE_CONFIG_H
1472333965Sjdp
14724218822Sdimac_libobjs=
14725218822Sdimac_ltlibobjs=
14726218822Sdimfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14727218822Sdim  # 1. Remove the extension, and $U if already installed.
14728218822Sdim  ac_i=`echo "$ac_i" |
14729218822Sdim	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14730218822Sdim  # 2. Add them.
14731218822Sdim  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14732218822Sdim  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14733218822Sdimdone
14734218822SdimLIBOBJS=$ac_libobjs
14735218822Sdim
14736218822SdimLTLIBOBJS=$ac_ltlibobjs
14737218822Sdim
14738218822Sdim
14739218822Sdimif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14740218822Sdim  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14741218822SdimUsually this means the macro was only invoked conditionally." >&5
14742218822Sdimecho "$as_me: error: conditional \"AMDEP\" was never defined.
14743218822SdimUsually this means the macro was only invoked conditionally." >&2;}
14744218822Sdim   { (exit 1); exit 1; }; }
14745218822Sdimfi
14746218822Sdimif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14747218822Sdim  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14748218822SdimUsually this means the macro was only invoked conditionally." >&5
14749218822Sdimecho "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14750218822SdimUsually this means the macro was only invoked conditionally." >&2;}
14751218822Sdim   { (exit 1); exit 1; }; }
14752218822Sdimfi
14753218822Sdimif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14754218822Sdim  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14755218822SdimUsually this means the macro was only invoked conditionally." >&5
14756218822Sdimecho "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14757218822SdimUsually this means the macro was only invoked conditionally." >&2;}
14758218822Sdim   { (exit 1); exit 1; }; }
14759218822Sdimfi
14760218822Sdimif test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14761218822Sdim  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14762218822SdimUsually this means the macro was only invoked conditionally." >&5
14763218822Sdimecho "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14764218822SdimUsually this means the macro was only invoked conditionally." >&2;}
14765218822Sdim   { (exit 1); exit 1; }; }
14766218822Sdimfi
14767218822Sdim
1476833965Sjdp: ${CONFIG_STATUS=./config.status}
14769218822Sdimac_clean_files_save=$ac_clean_files
14770218822Sdimac_clean_files="$ac_clean_files $CONFIG_STATUS"
14771218822Sdim{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14772218822Sdimecho "$as_me: creating $CONFIG_STATUS" >&6;}
14773218822Sdimcat >$CONFIG_STATUS <<_ACEOF
14774218822Sdim#! $SHELL
14775218822Sdim# Generated by $as_me.
1477633965Sjdp# Run this file to recreate the current configuration.
1477733965Sjdp# Compiler output produced by configure, useful for debugging
14778218822Sdim# configure, is in config.log if it exists.
1477933965Sjdp
14780218822Sdimdebug=false
14781218822Sdimac_cs_recheck=false
14782218822Sdimac_cs_silent=false
14783218822SdimSHELL=\${CONFIG_SHELL-$SHELL}
14784218822Sdim_ACEOF
14785218822Sdim
14786218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
14787218822Sdim## --------------------- ##
14788218822Sdim## M4sh Initialization.  ##
14789218822Sdim## --------------------- ##
14790218822Sdim
14791218822Sdim# Be Bourne compatible
14792218822Sdimif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14793218822Sdim  emulate sh
14794218822Sdim  NULLCMD=:
14795218822Sdim  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14796218822Sdim  # is contrary to our usage.  Disable this feature.
14797218822Sdim  alias -g '${1+"$@"}'='"$@"'
14798218822Sdimelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14799218822Sdim  set -o posix
14800218822Sdimfi
14801218822SdimDUALCASE=1; export DUALCASE # for MKS sh
14802218822Sdim
14803218822Sdim# Support unset when possible.
14804218822Sdimif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14805218822Sdim  as_unset=unset
14806218822Sdimelse
14807218822Sdim  as_unset=false
14808218822Sdimfi
14809218822Sdim
14810218822Sdim
14811218822Sdim# Work around bugs in pre-3.0 UWIN ksh.
14812218822Sdim$as_unset ENV MAIL MAILPATH
14813218822SdimPS1='$ '
14814218822SdimPS2='> '
14815218822SdimPS4='+ '
14816218822Sdim
14817218822Sdim# NLS nuisances.
14818218822Sdimfor as_var in \
14819218822Sdim  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14820218822Sdim  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14821218822Sdim  LC_TELEPHONE LC_TIME
1482233965Sjdpdo
14823218822Sdim  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14824218822Sdim    eval $as_var=C; export $as_var
14825218822Sdim  else
14826218822Sdim    $as_unset $as_var
14827218822Sdim  fi
1482833965Sjdpdone
1482933965Sjdp
14830218822Sdim# Required to use basename.
14831218822Sdimif expr a : '\(a\)' >/dev/null 2>&1; then
14832218822Sdim  as_expr=expr
14833218822Sdimelse
14834218822Sdim  as_expr=false
14835218822Sdimfi
1483633965Sjdp
14837218822Sdimif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14838218822Sdim  as_basename=basename
14839218822Sdimelse
14840218822Sdim  as_basename=false
14841218822Sdimfi
1484233965Sjdp
1484333965Sjdp
14844218822Sdim# Name of the executable.
14845218822Sdimas_me=`$as_basename "$0" ||
14846218822Sdim$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14847218822Sdim	 X"$0" : 'X\(//\)$' \| \
14848218822Sdim	 X"$0" : 'X\(/\)$' \| \
14849218822Sdim	 .     : '\(.\)' 2>/dev/null ||
14850218822Sdimecho X/"$0" |
14851218822Sdim    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14852218822Sdim  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
14853218822Sdim  	  /^X\/\(\/\).*/{ s//\1/; q; }
14854218822Sdim  	  s/.*/./; q'`
1485533965Sjdp
1485633965Sjdp
14857218822Sdim# PATH needs CR, and LINENO needs CR and PATH.
14858218822Sdim# Avoid depending upon Character Ranges.
14859218822Sdimas_cr_letters='abcdefghijklmnopqrstuvwxyz'
14860218822Sdimas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14861218822Sdimas_cr_Letters=$as_cr_letters$as_cr_LETTERS
14862218822Sdimas_cr_digits='0123456789'
14863218822Sdimas_cr_alnum=$as_cr_Letters$as_cr_digits
14864218822Sdim
14865218822Sdim# The user is always right.
14866218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
14867218822Sdim  echo "#! /bin/sh" >conf$$.sh
14868218822Sdim  echo  "exit 0"   >>conf$$.sh
14869218822Sdim  chmod +x conf$$.sh
14870218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14871218822Sdim    PATH_SEPARATOR=';'
1487233965Sjdp  else
14873218822Sdim    PATH_SEPARATOR=:
1487433965Sjdp  fi
14875218822Sdim  rm -f conf$$.sh
14876218822Sdimfi
14877218822Sdim
14878218822Sdim
14879218822Sdim  as_lineno_1=$LINENO
14880218822Sdim  as_lineno_2=$LINENO
14881218822Sdim  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14882218822Sdim  test "x$as_lineno_1" != "x$as_lineno_2" &&
14883218822Sdim  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14884218822Sdim  # Find who we are.  Look in the path if we contain no path at all
14885218822Sdim  # relative or not.
14886218822Sdim  case $0 in
14887218822Sdim    *[\\/]* ) as_myself=$0 ;;
14888218822Sdim    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14889218822Sdimfor as_dir in $PATH
14890218822Sdimdo
14891218822Sdim  IFS=$as_save_IFS
14892218822Sdim  test -z "$as_dir" && as_dir=.
14893218822Sdim  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14894218822Sdimdone
14895218822Sdim
14896218822Sdim       ;;
14897218822Sdim  esac
14898218822Sdim  # We did not find ourselves, most probably we were run as `sh COMMAND'
14899218822Sdim  # in which case we are not to be found in the path.
14900218822Sdim  if test "x$as_myself" = x; then
14901218822Sdim    as_myself=$0
14902218822Sdim  fi
14903218822Sdim  if test ! -f "$as_myself"; then
14904218822Sdim    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14905218822Sdimecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14906218822Sdim   { (exit 1); exit 1; }; }
14907218822Sdim  fi
14908218822Sdim  case $CONFIG_SHELL in
14909218822Sdim  '')
14910218822Sdim    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14911218822Sdimfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14912218822Sdimdo
14913218822Sdim  IFS=$as_save_IFS
14914218822Sdim  test -z "$as_dir" && as_dir=.
14915218822Sdim  for as_base in sh bash ksh sh5; do
14916218822Sdim	 case $as_dir in
14917218822Sdim	 /*)
14918218822Sdim	   if ("$as_dir/$as_base" -c '
14919218822Sdim  as_lineno_1=$LINENO
14920218822Sdim  as_lineno_2=$LINENO
14921218822Sdim  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14922218822Sdim  test "x$as_lineno_1" != "x$as_lineno_2" &&
14923218822Sdim  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14924218822Sdim	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14925218822Sdim	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14926218822Sdim	     CONFIG_SHELL=$as_dir/$as_base
14927218822Sdim	     export CONFIG_SHELL
14928218822Sdim	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14929218822Sdim	   fi;;
14930218822Sdim	 esac
14931218822Sdim       done
14932218822Sdimdone
14933218822Sdim;;
14934218822Sdim  esac
14935218822Sdim
14936218822Sdim  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14937218822Sdim  # uniformly replaced by the line number.  The first 'sed' inserts a
14938218822Sdim  # line-number line before each line; the second 'sed' does the real
14939218822Sdim  # work.  The second script uses 'N' to pair each line-number line
14940218822Sdim  # with the numbered line, and appends trailing '-' during
14941218822Sdim  # substitution so that $LINENO is not a special case at line end.
14942218822Sdim  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14943218822Sdim  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14944218822Sdim  sed '=' <$as_myself |
14945218822Sdim    sed '
14946218822Sdim      N
14947218822Sdim      s,$,-,
14948218822Sdim      : loop
14949218822Sdim      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14950218822Sdim      t loop
14951218822Sdim      s,-$,,
14952218822Sdim      s,^['$as_cr_digits']*\n,,
14953218822Sdim    ' >$as_me.lineno &&
14954218822Sdim  chmod +x $as_me.lineno ||
14955218822Sdim    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14956218822Sdimecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14957218822Sdim   { (exit 1); exit 1; }; }
14958218822Sdim
14959218822Sdim  # Don't try to exec as it changes $[0], causing all sort of problems
14960218822Sdim  # (the dirname of $[0] is not the place where we might find the
14961218822Sdim  # original and so on.  Autoconf is especially sensible to this).
14962218822Sdim  . ./$as_me.lineno
14963218822Sdim  # Exit status is that of the last command.
14964218822Sdim  exit
14965218822Sdim}
14966218822Sdim
14967218822Sdim
14968218822Sdimcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14969218822Sdim  *c*,-n*) ECHO_N= ECHO_C='
14970218822Sdim' ECHO_T='	' ;;
14971218822Sdim  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14972218822Sdim  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14973218822Sdimesac
14974218822Sdim
14975218822Sdimif expr a : '\(a\)' >/dev/null 2>&1; then
14976218822Sdim  as_expr=expr
14977218822Sdimelse
14978218822Sdim  as_expr=false
14979218822Sdimfi
14980218822Sdim
14981218822Sdimrm -f conf$$ conf$$.exe conf$$.file
14982218822Sdimecho >conf$$.file
14983218822Sdimif ln -s conf$$.file conf$$ 2>/dev/null; then
14984218822Sdim  # We could just check for DJGPP; but this test a) works b) is more generic
14985218822Sdim  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14986218822Sdim  if test -f conf$$.exe; then
14987218822Sdim    # Don't use ln at all; we don't have any links
14988218822Sdim    as_ln_s='cp -p'
1498933965Sjdp  else
14990218822Sdim    as_ln_s='ln -s'
1499133965Sjdp  fi
14992218822Sdimelif ln conf$$.file conf$$ 2>/dev/null; then
14993218822Sdim  as_ln_s=ln
14994218822Sdimelse
14995218822Sdim  as_ln_s='cp -p'
14996218822Sdimfi
14997218822Sdimrm -f conf$$ conf$$.exe conf$$.file
14998218822Sdim
14999218822Sdimif mkdir -p . 2>/dev/null; then
15000218822Sdim  as_mkdir_p=:
15001218822Sdimelse
15002218822Sdim  test -d ./-p && rmdir ./-p
15003218822Sdim  as_mkdir_p=false
15004218822Sdimfi
15005218822Sdim
15006218822Sdimas_executable_p="test -f"
15007218822Sdim
15008218822Sdim# Sed expression to map a string onto a valid CPP name.
15009218822Sdimas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15010218822Sdim
15011218822Sdim# Sed expression to map a string onto a valid variable name.
15012218822Sdimas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15013218822Sdim
15014218822Sdim
15015218822Sdim# IFS
15016218822Sdim# We need space, tab and new line, in precisely that order.
15017218822Sdimas_nl='
15018218822Sdim'
15019218822SdimIFS=" 	$as_nl"
15020218822Sdim
15021218822Sdim# CDPATH.
15022218822Sdim$as_unset CDPATH
15023218822Sdim
15024218822Sdimexec 6>&1
15025218822Sdim
15026218822Sdim# Open the log real soon, to keep \$[0] and so on meaningful, and to
15027218822Sdim# report actual input values of CONFIG_FILES etc. instead of their
15028218822Sdim# values after options handling.  Logging --version etc. is OK.
15029218822Sdimexec 5>>config.log
15030218822Sdim{
15031218822Sdim  echo
15032218822Sdim  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15033218822Sdim## Running $as_me. ##
15034218822Sdim_ASBOX
15035218822Sdim} >&5
15036218822Sdimcat >&5 <<_CSEOF
15037218822Sdim
15038218822SdimThis file was extended by $as_me, which was
15039218822Sdimgenerated by GNU Autoconf 2.59.  Invocation command line was
15040218822Sdim
15041218822Sdim  CONFIG_FILES    = $CONFIG_FILES
15042218822Sdim  CONFIG_HEADERS  = $CONFIG_HEADERS
15043218822Sdim  CONFIG_LINKS    = $CONFIG_LINKS
15044218822Sdim  CONFIG_COMMANDS = $CONFIG_COMMANDS
15045218822Sdim  $ $0 $@
15046218822Sdim
15047218822Sdim_CSEOF
15048218822Sdimecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15049218822Sdimecho >&5
15050218822Sdim_ACEOF
15051218822Sdim
15052218822Sdim# Files that config.status was made for.
15053218822Sdimif test -n "$ac_config_files"; then
15054218822Sdim  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15055218822Sdimfi
15056218822Sdim
15057218822Sdimif test -n "$ac_config_headers"; then
15058218822Sdim  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15059218822Sdimfi
15060218822Sdim
15061218822Sdimif test -n "$ac_config_links"; then
15062218822Sdim  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15063218822Sdimfi
15064218822Sdim
15065218822Sdimif test -n "$ac_config_commands"; then
15066218822Sdim  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15067218822Sdimfi
15068218822Sdim
15069218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
15070218822Sdim
15071218822Sdimac_cs_usage="\
15072218822Sdim\`$as_me' instantiates files from templates according to the
15073218822Sdimcurrent configuration.
15074218822Sdim
15075218822SdimUsage: $0 [OPTIONS] [FILE]...
15076218822Sdim
15077218822Sdim  -h, --help       print this help, then exit
15078218822Sdim  -V, --version    print version number, then exit
15079218822Sdim  -q, --quiet      do not print progress messages
15080218822Sdim  -d, --debug      don't remove temporary files
15081218822Sdim      --recheck    update $as_me by reconfiguring in the same conditions
15082218822Sdim  --file=FILE[:TEMPLATE]
15083218822Sdim		   instantiate the configuration file FILE
15084218822Sdim  --header=FILE[:TEMPLATE]
15085218822Sdim		   instantiate the configuration header FILE
15086218822Sdim
15087218822SdimConfiguration files:
15088218822Sdim$config_files
15089218822Sdim
15090218822SdimConfiguration headers:
15091218822Sdim$config_headers
15092218822Sdim
15093218822SdimConfiguration commands:
15094218822Sdim$config_commands
15095218822Sdim
15096218822SdimReport bugs to <bug-autoconf@gnu.org>."
15097218822Sdim_ACEOF
15098218822Sdim
15099218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
15100218822Sdimac_cs_version="\\
15101218822Sdimconfig.status
15102218822Sdimconfigured by $0, generated by GNU Autoconf 2.59,
15103218822Sdim  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15104218822Sdim
15105218822SdimCopyright (C) 2003 Free Software Foundation, Inc.
15106218822SdimThis config.status script is free software; the Free Software Foundation
15107218822Sdimgives unlimited permission to copy, distribute and modify it."
15108218822Sdimsrcdir=$srcdir
15109218822SdimINSTALL="$INSTALL"
15110218822Sdim_ACEOF
15111218822Sdim
15112218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
15113218822Sdim# If no file are specified by the user, then we need to provide default
15114218822Sdim# value.  By we need to know if files were specified by the user.
15115218822Sdimac_need_defaults=:
15116218822Sdimwhile test $# != 0
15117218822Sdimdo
15118218822Sdim  case $1 in
15119218822Sdim  --*=*)
15120218822Sdim    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15121218822Sdim    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15122218822Sdim    ac_shift=:
15123218822Sdim    ;;
15124218822Sdim  -*)
15125218822Sdim    ac_option=$1
15126218822Sdim    ac_optarg=$2
15127218822Sdim    ac_shift=shift
15128218822Sdim    ;;
15129218822Sdim  *) # This is not an option, so the user has probably given explicit
15130218822Sdim     # arguments.
15131218822Sdim     ac_option=$1
15132218822Sdim     ac_need_defaults=false;;
15133218822Sdim  esac
15134218822Sdim
15135218822Sdim  case $ac_option in
15136218822Sdim  # Handling of the options.
15137218822Sdim_ACEOF
15138218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
15139218822Sdim  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15140218822Sdim    ac_cs_recheck=: ;;
15141218822Sdim  --version | --vers* | -V )
15142218822Sdim    echo "$ac_cs_version"; exit 0 ;;
15143218822Sdim  --he | --h)
15144218822Sdim    # Conflict between --help and --header
15145218822Sdim    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15146218822SdimTry \`$0 --help' for more information." >&5
15147218822Sdimecho "$as_me: error: ambiguous option: $1
15148218822SdimTry \`$0 --help' for more information." >&2;}
15149218822Sdim   { (exit 1); exit 1; }; };;
15150218822Sdim  --help | --hel | -h )
15151218822Sdim    echo "$ac_cs_usage"; exit 0 ;;
15152218822Sdim  --debug | --d* | -d )
15153218822Sdim    debug=: ;;
15154218822Sdim  --file | --fil | --fi | --f )
15155218822Sdim    $ac_shift
15156218822Sdim    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15157218822Sdim    ac_need_defaults=false;;
15158218822Sdim  --header | --heade | --head | --hea )
15159218822Sdim    $ac_shift
15160218822Sdim    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15161218822Sdim    ac_need_defaults=false;;
15162218822Sdim  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15163218822Sdim  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15164218822Sdim    ac_cs_silent=: ;;
15165218822Sdim
15166218822Sdim  # This is an error.
15167218822Sdim  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15168218822SdimTry \`$0 --help' for more information." >&5
15169218822Sdimecho "$as_me: error: unrecognized option: $1
15170218822SdimTry \`$0 --help' for more information." >&2;}
15171218822Sdim   { (exit 1); exit 1; }; } ;;
15172218822Sdim
15173218822Sdim  *) ac_config_targets="$ac_config_targets $1" ;;
15174218822Sdim
15175218822Sdim  esac
15176218822Sdim  shift
1517733965Sjdpdone
15178218822Sdim
15179218822Sdimac_configure_extra_args=
15180218822Sdim
15181218822Sdimif $ac_cs_silent; then
15182218822Sdim  exec 6>/dev/null
15183218822Sdim  ac_configure_extra_args="$ac_configure_extra_args --silent"
1518433965Sjdpfi
1518533965Sjdp
15186218822Sdim_ACEOF
15187218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
15188218822Sdimif \$ac_cs_recheck; then
15189218822Sdim  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15190218822Sdim  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15191218822Sdimfi
1519233965Sjdp
15193218822Sdim_ACEOF
15194218822Sdim
15195218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
15196218822Sdim#
15197218822Sdim# INIT-COMMANDS section.
15198218822Sdim#
15199218822Sdim
15200218822SdimAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15201218822Sdim
15202218822Sdim
15203218822Sdim# The HP-UX ksh and POSIX shell print the target directory to stdout
15204218822Sdim# if CDPATH is set.
15205218822Sdim(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15206218822Sdim
15207218822Sdimsed_quote_subst='$sed_quote_subst'
15208218822Sdimdouble_quote_subst='$double_quote_subst'
15209218822Sdimdelay_variable_subst='$delay_variable_subst'
15210218822Sdimmacro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15211218822Sdimmacro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15212218822Sdimenable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15213218822Sdimenable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15214218822Sdimpic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15215218822Sdimenable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15216218822Sdimhost_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15217218822Sdimhost='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15218218822Sdimhost_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15219218822Sdimbuild_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15220218822Sdimbuild='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15221218822Sdimbuild_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15222218822SdimSED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15223218822SdimXsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15224218822SdimGREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15225218822SdimEGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15226218822SdimFGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15227218822SdimLD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15228218822SdimNM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15229218822SdimLN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15230218822Sdimmax_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15231218822Sdimac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15232218822Sdimexeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15233218822Sdimlt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15234218822Sdimlt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15235218822Sdimlt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15236218822Sdimreload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15237218822Sdimreload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15238218822Sdimdeplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15239218822Sdimfile_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15240218822SdimAR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15241218822SdimAR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15242218822SdimSTRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15243218822SdimRANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15244218822Sdimold_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15245218822Sdimold_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15246218822Sdimold_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15247218822SdimCC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15248218822SdimCFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15249218822Sdimcompiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15250218822SdimGCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15251218822Sdimlt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15252218822Sdimlt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15253218822Sdimlt_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"`'
15254218822Sdimobjdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15255218822SdimSHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15256218822SdimECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15257218822SdimMAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15258218822Sdimlt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15259218822Sdimlt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15260218822Sdimlt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15261218822Sdimlt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15262218822Sdimlt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15263218822Sdimneed_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15264218822Sdimlibext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15265218822Sdimshrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15266218822Sdimextract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15267218822Sdimarchive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15268218822Sdimenable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15269218822Sdimexport_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15270218822Sdimwhole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15271218822Sdimcompiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15272218822Sdimold_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15273218822Sdimold_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15274218822Sdimarchive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15275218822Sdimarchive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15276218822Sdimmodule_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15277218822Sdimmodule_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15278218822Sdimwith_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15279218822Sdimallow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15280218822Sdimno_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15281218822Sdimhardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15282218822Sdimhardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15283218822Sdimhardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15284218822Sdimhardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15285218822Sdimhardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15286218822Sdimhardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15287218822Sdimhardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15288218822Sdimhardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15289218822Sdiminherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15290218822Sdimlink_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15291218822Sdimfix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15292218822Sdimalways_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15293218822Sdimexport_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15294218822Sdimexclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15295218822Sdiminclude_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15296218822Sdimprelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15297218822Sdimfile_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15298218822Sdimvariables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15299218822Sdimneed_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15300218822Sdimneed_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15301218822Sdimversion_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15302218822Sdimrunpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15303218822Sdimshlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15304218822Sdimshlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15305218822Sdimlibname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15306218822Sdimlibrary_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15307218822Sdimsoname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15308218822Sdimpostinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15309218822Sdimpostuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15310218822Sdimfinish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15311218822Sdimfinish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15312218822Sdimhardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15313218822Sdimsys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15314218822Sdimsys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15315218822Sdimhardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15316218822Sdimenable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15317218822Sdimenable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15318218822Sdimenable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15319218822Sdimold_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15320218822Sdimstriplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15321218822Sdim
15322218822SdimLTCC='$LTCC'
15323218822SdimLTCFLAGS='$LTCFLAGS'
15324218822Sdimcompiler='$compiler_DEFAULT'
15325218822Sdim
15326218822Sdim# Quote evaled strings.
15327218822Sdimfor var in SED \
15328218822SdimGREP \
15329218822SdimEGREP \
15330218822SdimFGREP \
15331218822SdimLD \
15332218822SdimNM \
15333218822SdimLN_S \
15334218822Sdimlt_SP2NL \
15335218822Sdimlt_NL2SP \
15336218822Sdimreload_flag \
15337218822Sdimdeplibs_check_method \
15338218822Sdimfile_magic_cmd \
15339218822SdimAR \
15340218822SdimAR_FLAGS \
15341218822SdimSTRIP \
15342218822SdimRANLIB \
15343218822SdimCC \
15344218822SdimCFLAGS \
15345218822Sdimcompiler \
15346218822Sdimlt_cv_sys_global_symbol_pipe \
15347218822Sdimlt_cv_sys_global_symbol_to_cdecl \
15348218822Sdimlt_cv_sys_global_symbol_to_c_name_address \
15349218822SdimSHELL \
15350218822SdimECHO \
15351218822Sdimlt_prog_compiler_no_builtin_flag \
15352218822Sdimlt_prog_compiler_wl \
15353218822Sdimlt_prog_compiler_pic \
15354218822Sdimlt_prog_compiler_static \
15355218822Sdimlt_cv_prog_compiler_c_o \
15356218822Sdimneed_locks \
15357218822Sdimshrext_cmds \
15358218822Sdimexport_dynamic_flag_spec \
15359218822Sdimwhole_archive_flag_spec \
15360218822Sdimcompiler_needs_object \
15361218822Sdimwith_gnu_ld \
15362218822Sdimallow_undefined_flag \
15363218822Sdimno_undefined_flag \
15364218822Sdimhardcode_libdir_flag_spec \
15365218822Sdimhardcode_libdir_flag_spec_ld \
15366218822Sdimhardcode_libdir_separator \
15367218822Sdimfix_srcfile_path \
15368218822Sdimexclude_expsyms \
15369218822Sdiminclude_expsyms \
15370218822Sdimfile_list_spec \
15371218822Sdimvariables_saved_for_relink \
15372218822Sdimlibname_spec \
15373218822Sdimlibrary_names_spec \
15374218822Sdimsoname_spec \
15375218822Sdimfinish_eval \
15376218822Sdimold_striplib \
15377218822Sdimstriplib; do
15378218822Sdim    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15379218822Sdim    *[\\\\\\\`\\"\\\$]*)
15380218822Sdim      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15381218822Sdim      ;;
15382218822Sdim    *)
15383218822Sdim      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15384218822Sdim      ;;
15385218822Sdim    esac
15386218822Sdimdone
15387218822Sdim
15388218822Sdim# Double-quote double-evaled strings.
15389218822Sdimfor var in reload_cmds \
15390218822Sdimold_postinstall_cmds \
15391218822Sdimold_postuninstall_cmds \
15392218822Sdimold_archive_cmds \
15393218822Sdimextract_expsyms_cmds \
15394218822Sdimold_archive_from_new_cmds \
15395218822Sdimold_archive_from_expsyms_cmds \
15396218822Sdimarchive_cmds \
15397218822Sdimarchive_expsym_cmds \
15398218822Sdimmodule_cmds \
15399218822Sdimmodule_expsym_cmds \
15400218822Sdimexport_symbols_cmds \
15401218822Sdimprelink_cmds \
15402218822Sdimpostinstall_cmds \
15403218822Sdimpostuninstall_cmds \
15404218822Sdimfinish_cmds \
15405218822Sdimsys_lib_search_path_spec \
15406218822Sdimsys_lib_dlsearch_path_spec; do
15407218822Sdim    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15408218822Sdim    *[\\\\\\\`\\"\\\$]*)
15409218822Sdim      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15410218822Sdim      ;;
15411218822Sdim    *)
15412218822Sdim      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15413218822Sdim      ;;
15414218822Sdim    esac
15415218822Sdimdone
15416218822Sdim
15417218822Sdim# Fix-up fallback echo if it was mangled by the above quoting rules.
15418218822Sdimcase \$lt_ECHO in
15419218822Sdim*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15420218822Sdim  ;;
15421218822Sdimesac
15422218822Sdim
15423218822Sdimac_aux_dir='$ac_aux_dir'
15424218822Sdimxsi_shell='$xsi_shell'
15425218822Sdimlt_shell_append='$lt_shell_append'
15426218822Sdim
15427218822Sdim# See if we are running on zsh, and set the options which allow our
15428218822Sdim# commands through without removal of \ escapes INIT.
15429218822Sdimif test -n "\${ZSH_VERSION+set}" ; then
15430218822Sdim   setopt NO_GLOB_SUBST
15431218822Sdimfi
15432218822Sdim
15433218822Sdim
15434218822Sdim    PACKAGE='$PACKAGE'
15435218822Sdim    VERSION='$VERSION'
15436218822Sdim    TIMESTAMP='$TIMESTAMP'
15437218822Sdim    RM='$RM'
15438218822Sdim    ofile='$ofile'
15439218822Sdim
15440218822Sdim
15441218822Sdim
15442218822Sdim# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15443218822Sdim    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15444218822Sdim    # from automake.
15445218822Sdim    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15446218822Sdim    # Capture the value of LINGUAS because we need it to compute CATALOGS.
15447218822Sdim    LINGUAS="${LINGUAS-%UNSET%}"
15448218822Sdim
15449218822Sdim
15450218822Sdim_ACEOF
15451218822Sdim
15452218822Sdim
15453218822Sdim
15454218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
15455218822Sdimfor ac_config_target in $ac_config_targets
15456218822Sdimdo
15457218822Sdim  case "$ac_config_target" in
15458218822Sdim  # Handling of arguments.
15459218822Sdim  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15460218822Sdim  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15461218822Sdim  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15462218822Sdim  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15463218822Sdim  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15464218822Sdim  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15465218822Sdim  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15466218822Sdim  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15467218822Sdimecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
15468218822Sdim   { (exit 1); exit 1; }; };;
1546933965Sjdp  esac
15470218822Sdimdone
1547133965Sjdp
15472218822Sdim# If the user did not use the arguments to specify the items to instantiate,
15473218822Sdim# then the envvar interface is used.  Set only those that are not.
15474218822Sdim# We use the long form for the default assignment because of an extremely
15475218822Sdim# bizarre bug on SunOS 4.1.3.
15476218822Sdimif $ac_need_defaults; then
15477218822Sdim  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15478218822Sdim  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15479218822Sdim  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15480218822Sdimfi
1548133965Sjdp
15482218822Sdim# Have a temporary directory for convenience.  Make it in the build tree
15483218822Sdim# simply because there is no reason to put it here, and in addition,
15484218822Sdim# creating and moving files from /tmp can sometimes cause problems.
15485218822Sdim# Create a temporary directory, and hook for its removal unless debugging.
15486218822Sdim$debug ||
15487218822Sdim{
15488218822Sdim  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15489218822Sdim  trap '{ (exit 1); exit 1; }' 1 2 13 15
15490218822Sdim}
15491218822Sdim
15492218822Sdim# Create a (secure) tmp directory for tmp files.
15493218822Sdim
15494218822Sdim{
15495218822Sdim  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15496218822Sdim  test -n "$tmp" && test -d "$tmp"
15497218822Sdim}  ||
15498218822Sdim{
15499218822Sdim  tmp=./confstat$$-$RANDOM
15500218822Sdim  (umask 077 && mkdir $tmp)
15501218822Sdim} ||
15502218822Sdim{
15503218822Sdim   echo "$me: cannot create a temporary directory in ." >&2
15504218822Sdim   { (exit 1); exit 1; }
15505218822Sdim}
15506218822Sdim
15507218822Sdim_ACEOF
15508218822Sdim
15509218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
15510218822Sdim
15511218822Sdim#
15512218822Sdim# CONFIG_FILES section.
15513218822Sdim#
15514218822Sdim
15515218822Sdim# No need to generate the scripts if there are no CONFIG_FILES.
15516218822Sdim# This happens for instance when ./config.status config.h
15517218822Sdimif test -n "\$CONFIG_FILES"; then
15518218822Sdim  # Protect against being on the right side of a sed subst in config.status.
15519218822Sdim  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15520218822Sdim   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15521218822Sdims,@SHELL@,$SHELL,;t t
15522218822Sdims,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15523218822Sdims,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15524218822Sdims,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15525218822Sdims,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15526218822Sdims,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15527218822Sdims,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15528218822Sdims,@exec_prefix@,$exec_prefix,;t t
15529218822Sdims,@prefix@,$prefix,;t t
15530218822Sdims,@program_transform_name@,$program_transform_name,;t t
15531218822Sdims,@bindir@,$bindir,;t t
15532218822Sdims,@sbindir@,$sbindir,;t t
15533218822Sdims,@libexecdir@,$libexecdir,;t t
15534218822Sdims,@datadir@,$datadir,;t t
15535218822Sdims,@sysconfdir@,$sysconfdir,;t t
15536218822Sdims,@sharedstatedir@,$sharedstatedir,;t t
15537218822Sdims,@localstatedir@,$localstatedir,;t t
15538218822Sdims,@libdir@,$libdir,;t t
15539218822Sdims,@includedir@,$includedir,;t t
15540218822Sdims,@oldincludedir@,$oldincludedir,;t t
15541218822Sdims,@infodir@,$infodir,;t t
15542218822Sdims,@mandir@,$mandir,;t t
15543218822Sdims,@build_alias@,$build_alias,;t t
15544218822Sdims,@host_alias@,$host_alias,;t t
15545218822Sdims,@target_alias@,$target_alias,;t t
15546218822Sdims,@DEFS@,$DEFS,;t t
15547218822Sdims,@ECHO_C@,$ECHO_C,;t t
15548218822Sdims,@ECHO_N@,$ECHO_N,;t t
15549218822Sdims,@ECHO_T@,$ECHO_T,;t t
15550218822Sdims,@LIBS@,$LIBS,;t t
15551218822Sdims,@build@,$build,;t t
15552218822Sdims,@build_cpu@,$build_cpu,;t t
15553218822Sdims,@build_vendor@,$build_vendor,;t t
15554218822Sdims,@build_os@,$build_os,;t t
15555218822Sdims,@host@,$host,;t t
15556218822Sdims,@host_cpu@,$host_cpu,;t t
15557218822Sdims,@host_vendor@,$host_vendor,;t t
15558218822Sdims,@host_os@,$host_os,;t t
15559218822Sdims,@target@,$target,;t t
15560218822Sdims,@target_cpu@,$target_cpu,;t t
15561218822Sdims,@target_vendor@,$target_vendor,;t t
15562218822Sdims,@target_os@,$target_os,;t t
15563218822Sdims,@CC@,$CC,;t t
15564218822Sdims,@CFLAGS@,$CFLAGS,;t t
15565218822Sdims,@LDFLAGS@,$LDFLAGS,;t t
15566218822Sdims,@CPPFLAGS@,$CPPFLAGS,;t t
15567218822Sdims,@ac_ct_CC@,$ac_ct_CC,;t t
15568218822Sdims,@EXEEXT@,$EXEEXT,;t t
15569218822Sdims,@OBJEXT@,$OBJEXT,;t t
15570218822Sdims,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15571218822Sdims,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15572218822Sdims,@INSTALL_DATA@,$INSTALL_DATA,;t t
15573218822Sdims,@CYGPATH_W@,$CYGPATH_W,;t t
15574218822Sdims,@PACKAGE@,$PACKAGE,;t t
15575218822Sdims,@VERSION@,$VERSION,;t t
15576218822Sdims,@ACLOCAL@,$ACLOCAL,;t t
15577218822Sdims,@AUTOCONF@,$AUTOCONF,;t t
15578218822Sdims,@AUTOMAKE@,$AUTOMAKE,;t t
15579218822Sdims,@AUTOHEADER@,$AUTOHEADER,;t t
15580218822Sdims,@MAKEINFO@,$MAKEINFO,;t t
15581218822Sdims,@install_sh@,$install_sh,;t t
15582218822Sdims,@STRIP@,$STRIP,;t t
15583218822Sdims,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15584218822Sdims,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15585218822Sdims,@mkdir_p@,$mkdir_p,;t t
15586218822Sdims,@AWK@,$AWK,;t t
15587218822Sdims,@SET_MAKE@,$SET_MAKE,;t t
15588218822Sdims,@am__leading_dot@,$am__leading_dot,;t t
15589218822Sdims,@AMTAR@,$AMTAR,;t t
15590218822Sdims,@am__tar@,$am__tar,;t t
15591218822Sdims,@am__untar@,$am__untar,;t t
15592218822Sdims,@DEPDIR@,$DEPDIR,;t t
15593218822Sdims,@am__include@,$am__include,;t t
15594218822Sdims,@am__quote@,$am__quote,;t t
15595218822Sdims,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15596218822Sdims,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15597218822Sdims,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15598218822Sdims,@CCDEPMODE@,$CCDEPMODE,;t t
15599218822Sdims,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15600218822Sdims,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15601218822Sdims,@LIBTOOL@,$LIBTOOL,;t t
15602218822Sdims,@SED@,$SED,;t t
15603218822Sdims,@EGREP@,$EGREP,;t t
15604218822Sdims,@FGREP@,$FGREP,;t t
15605218822Sdims,@GREP@,$GREP,;t t
15606218822Sdims,@LD@,$LD,;t t
15607218822Sdims,@DUMPBIN@,$DUMPBIN,;t t
15608218822Sdims,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15609218822Sdims,@NM@,$NM,;t t
15610218822Sdims,@LN_S@,$LN_S,;t t
15611218822Sdims,@AR@,$AR,;t t
15612218822Sdims,@ac_ct_AR@,$ac_ct_AR,;t t
15613218822Sdims,@RANLIB@,$RANLIB,;t t
15614218822Sdims,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15615218822Sdims,@lt_ECHO@,$lt_ECHO,;t t
15616218822Sdims,@CPP@,$CPP,;t t
15617218822Sdims,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15618218822Sdims,@NO_WERROR@,$NO_WERROR,;t t
15619218822Sdims,@YACC@,$YACC,;t t
15620218822Sdims,@LEX@,$LEX,;t t
15621218822Sdims,@LEXLIB@,$LEXLIB,;t t
15622218822Sdims,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15623218822Sdims,@USE_NLS@,$USE_NLS,;t t
15624218822Sdims,@LIBINTL@,$LIBINTL,;t t
15625218822Sdims,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15626218822Sdims,@INCINTL@,$INCINTL,;t t
15627218822Sdims,@XGETTEXT@,$XGETTEXT,;t t
15628218822Sdims,@GMSGFMT@,$GMSGFMT,;t t
15629218822Sdims,@POSUB@,$POSUB,;t t
15630218822Sdims,@CATALOGS@,$CATALOGS,;t t
15631218822Sdims,@DATADIRNAME@,$DATADIRNAME,;t t
15632218822Sdims,@INSTOBJEXT@,$INSTOBJEXT,;t t
15633218822Sdims,@GENCAT@,$GENCAT,;t t
15634218822Sdims,@CATOBJEXT@,$CATOBJEXT,;t t
15635218822Sdims,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15636218822Sdims,@MSGFMT@,$MSGFMT,;t t
15637218822Sdims,@MSGMERGE@,$MSGMERGE,;t t
15638218822Sdims,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15639218822Sdims,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15640218822Sdims,@MAINT@,$MAINT,;t t
15641218822Sdims,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15642218822Sdims,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15643218822Sdims,@HDEFINES@,$HDEFINES,;t t
15644218822Sdims,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15645218822Sdims,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15646218822Sdims,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
15647218822Sdims,@ALLOCA@,$ALLOCA,;t t
15648218822Sdims,@LIBICONV@,$LIBICONV,;t t
15649218822Sdims,@LTLIBICONV@,$LTLIBICONV,;t t
15650218822Sdims,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
15651218822Sdims,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
15652218822Sdims,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
15653218822Sdims,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
15654218822Sdims,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
15655218822Sdims,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
15656218822Sdims,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
15657218822Sdims,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
15658218822Sdims,@BUILD_MISC@,$BUILD_MISC,;t t
15659218822Sdims,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
15660218822Sdims,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
15661218822Sdims,@EMULATION@,$EMULATION,;t t
15662218822Sdims,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
15663218822Sdims,@datarootdir@,$datarootdir,;t t
15664218822Sdims,@docdir@,$docdir,;t t
15665218822Sdims,@htmldir@,$htmldir,;t t
15666218822Sdims,@LIBOBJS@,$LIBOBJS,;t t
15667218822Sdims,@LTLIBOBJS@,$LTLIBOBJS,;t t
15668218822SdimCEOF
15669218822Sdim
15670218822Sdim_ACEOF
15671218822Sdim
15672218822Sdim  cat >>$CONFIG_STATUS <<\_ACEOF
15673218822Sdim  # Split the substitutions into bite-sized pieces for seds with
15674218822Sdim  # small command number limits, like on Digital OSF/1 and HP-UX.
15675218822Sdim  ac_max_sed_lines=48
15676218822Sdim  ac_sed_frag=1 # Number of current file.
15677218822Sdim  ac_beg=1 # First line for current file.
15678218822Sdim  ac_end=$ac_max_sed_lines # Line after last line for current file.
15679218822Sdim  ac_more_lines=:
15680218822Sdim  ac_sed_cmds=
15681218822Sdim  while $ac_more_lines; do
15682218822Sdim    if test $ac_beg -gt 1; then
15683218822Sdim      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15684218822Sdim    else
15685218822Sdim      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15686218822Sdim    fi
15687218822Sdim    if test ! -s $tmp/subs.frag; then
15688218822Sdim      ac_more_lines=false
15689218822Sdim    else
15690218822Sdim      # The purpose of the label and of the branching condition is to
15691218822Sdim      # speed up the sed processing (if there are no `@' at all, there
15692218822Sdim      # is no need to browse any of the substitutions).
15693218822Sdim      # These are the two extra sed commands mentioned above.
15694218822Sdim      (echo ':t
15695218822Sdim  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15696218822Sdim      if test -z "$ac_sed_cmds"; then
15697218822Sdim	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15698218822Sdim      else
15699218822Sdim	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15700218822Sdim      fi
15701218822Sdim      ac_sed_frag=`expr $ac_sed_frag + 1`
15702218822Sdim      ac_beg=$ac_end
15703218822Sdim      ac_end=`expr $ac_end + $ac_max_sed_lines`
15704218822Sdim    fi
15705218822Sdim  done
15706218822Sdim  if test -z "$ac_sed_cmds"; then
15707218822Sdim    ac_sed_cmds=cat
1570833965Sjdp  fi
15709218822Sdimfi # test -n "$CONFIG_FILES"
1571033965Sjdp
15711218822Sdim_ACEOF
15712218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
15713218822Sdimfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15714218822Sdim  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15715218822Sdim  case $ac_file in
15716218822Sdim  - | *:- | *:-:* ) # input from stdin
15717218822Sdim	cat >$tmp/stdin
15718218822Sdim	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15719218822Sdim	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15720218822Sdim  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15721218822Sdim	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15722218822Sdim  * )   ac_file_in=$ac_file.in ;;
1572333965Sjdp  esac
1572433965Sjdp
15725218822Sdim  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15726218822Sdim  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15727218822Sdim$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15728218822Sdim	 X"$ac_file" : 'X\(//\)[^/]' \| \
15729218822Sdim	 X"$ac_file" : 'X\(//\)$' \| \
15730218822Sdim	 X"$ac_file" : 'X\(/\)' \| \
15731218822Sdim	 .     : '\(.\)' 2>/dev/null ||
15732218822Sdimecho X"$ac_file" |
15733218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15734218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15735218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
15736218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
15737218822Sdim  	  s/.*/./; q'`
15738218822Sdim  { if $as_mkdir_p; then
15739218822Sdim    mkdir -p "$ac_dir"
15740218822Sdim  else
15741218822Sdim    as_dir="$ac_dir"
15742218822Sdim    as_dirs=
15743218822Sdim    while test ! -d "$as_dir"; do
15744218822Sdim      as_dirs="$as_dir $as_dirs"
15745218822Sdim      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15746218822Sdim$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15747218822Sdim	 X"$as_dir" : 'X\(//\)[^/]' \| \
15748218822Sdim	 X"$as_dir" : 'X\(//\)$' \| \
15749218822Sdim	 X"$as_dir" : 'X\(/\)' \| \
15750218822Sdim	 .     : '\(.\)' 2>/dev/null ||
15751218822Sdimecho X"$as_dir" |
15752218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15753218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15754218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
15755218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
15756218822Sdim  	  s/.*/./; q'`
15757218822Sdim    done
15758218822Sdim    test ! -n "$as_dirs" || mkdir $as_dirs
15759218822Sdim  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15760218822Sdimecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15761218822Sdim   { (exit 1); exit 1; }; }; }
1576233965Sjdp
15763218822Sdim  ac_builddir=.
15764218822Sdim
15765218822Sdimif test "$ac_dir" != .; then
15766218822Sdim  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15767218822Sdim  # A "../" for each directory in $ac_dir_suffix.
15768218822Sdim  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15769218822Sdimelse
15770218822Sdim  ac_dir_suffix= ac_top_builddir=
15771218822Sdimfi
15772218822Sdim
15773218822Sdimcase $srcdir in
15774218822Sdim  .)  # No --srcdir option.  We are building in place.
15775218822Sdim    ac_srcdir=.
15776218822Sdim    if test -z "$ac_top_builddir"; then
15777218822Sdim       ac_top_srcdir=.
15778218822Sdim    else
15779218822Sdim       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15780218822Sdim    fi ;;
15781218822Sdim  [\\/]* | ?:[\\/]* )  # Absolute path.
15782218822Sdim    ac_srcdir=$srcdir$ac_dir_suffix;
15783218822Sdim    ac_top_srcdir=$srcdir ;;
15784218822Sdim  *) # Relative path.
15785218822Sdim    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15786218822Sdim    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15787218822Sdimesac
15788218822Sdim
15789218822Sdim# Do not use `cd foo && pwd` to compute absolute paths, because
15790218822Sdim# the directories may not exist.
15791218822Sdimcase `pwd` in
15792218822Sdim.) ac_abs_builddir="$ac_dir";;
15793218822Sdim*)
15794218822Sdim  case "$ac_dir" in
15795218822Sdim  .) ac_abs_builddir=`pwd`;;
15796218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15797218822Sdim  *) ac_abs_builddir=`pwd`/"$ac_dir";;
15798218822Sdim  esac;;
15799218822Sdimesac
15800218822Sdimcase $ac_abs_builddir in
15801218822Sdim.) ac_abs_top_builddir=${ac_top_builddir}.;;
15802218822Sdim*)
15803218822Sdim  case ${ac_top_builddir}. in
15804218822Sdim  .) ac_abs_top_builddir=$ac_abs_builddir;;
15805218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15806218822Sdim  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15807218822Sdim  esac;;
15808218822Sdimesac
15809218822Sdimcase $ac_abs_builddir in
15810218822Sdim.) ac_abs_srcdir=$ac_srcdir;;
15811218822Sdim*)
15812218822Sdim  case $ac_srcdir in
15813218822Sdim  .) ac_abs_srcdir=$ac_abs_builddir;;
15814218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15815218822Sdim  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15816218822Sdim  esac;;
15817218822Sdimesac
15818218822Sdimcase $ac_abs_builddir in
15819218822Sdim.) ac_abs_top_srcdir=$ac_top_srcdir;;
15820218822Sdim*)
15821218822Sdim  case $ac_top_srcdir in
15822218822Sdim  .) ac_abs_top_srcdir=$ac_abs_builddir;;
15823218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15824218822Sdim  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15825218822Sdim  esac;;
15826218822Sdimesac
15827218822Sdim
15828218822Sdim
15829218822Sdim  case $INSTALL in
15830218822Sdim  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15831218822Sdim  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1583233965Sjdp  esac
1583333965Sjdp
15834218822Sdim  if test x"$ac_file" != x-; then
15835218822Sdim    { echo "$as_me:$LINENO: creating $ac_file" >&5
15836218822Sdimecho "$as_me: creating $ac_file" >&6;}
15837218822Sdim    rm -f "$ac_file"
15838218822Sdim  fi
15839218822Sdim  # Let's still pretend it is `configure' which instantiates (i.e., don't
15840218822Sdim  # use $as_me), people would be surprised to read:
15841218822Sdim  #    /* config.h.  Generated by config.status.  */
15842218822Sdim  if test x"$ac_file" = x-; then
15843218822Sdim    configure_input=
15844218822Sdim  else
15845218822Sdim    configure_input="$ac_file.  "
15846218822Sdim  fi
15847218822Sdim  configure_input=$configure_input"Generated from `echo $ac_file_in |
15848218822Sdim				     sed 's,.*/,,'` by configure."
1584933965Sjdp
15850218822Sdim  # First look for the input files in the build tree, otherwise in the
15851218822Sdim  # src tree.
15852218822Sdim  ac_file_inputs=`IFS=:
15853218822Sdim    for f in $ac_file_in; do
15854218822Sdim      case $f in
15855218822Sdim      -) echo $tmp/stdin ;;
15856218822Sdim      [\\/$]*)
15857218822Sdim	 # Absolute (can't be DOS-style, as IFS=:)
15858218822Sdim	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15859218822Sdimecho "$as_me: error: cannot find input file: $f" >&2;}
15860218822Sdim   { (exit 1); exit 1; }; }
15861218822Sdim	 echo "$f";;
15862218822Sdim      *) # Relative
15863218822Sdim	 if test -f "$f"; then
15864218822Sdim	   # Build tree
15865218822Sdim	   echo "$f"
15866218822Sdim	 elif test -f "$srcdir/$f"; then
15867218822Sdim	   # Source tree
15868218822Sdim	   echo "$srcdir/$f"
15869218822Sdim	 else
15870218822Sdim	   # /dev/null tree
15871218822Sdim	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15872218822Sdimecho "$as_me: error: cannot find input file: $f" >&2;}
15873218822Sdim   { (exit 1); exit 1; }; }
15874218822Sdim	 fi;;
15875218822Sdim      esac
15876218822Sdim    done` || { (exit 1); exit 1; }
15877218822Sdim_ACEOF
15878218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
15879218822Sdim  sed "$ac_vpsub
15880218822Sdim$extrasub
15881218822Sdim_ACEOF
15882218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
15883218822Sdim:t
15884218822Sdim/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15885218822Sdims,@configure_input@,$configure_input,;t t
15886218822Sdims,@srcdir@,$ac_srcdir,;t t
15887218822Sdims,@abs_srcdir@,$ac_abs_srcdir,;t t
15888218822Sdims,@top_srcdir@,$ac_top_srcdir,;t t
15889218822Sdims,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15890218822Sdims,@builddir@,$ac_builddir,;t t
15891218822Sdims,@abs_builddir@,$ac_abs_builddir,;t t
15892218822Sdims,@top_builddir@,$ac_top_builddir,;t t
15893218822Sdims,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15894218822Sdims,@INSTALL@,$ac_INSTALL,;t t
15895218822Sdim" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15896218822Sdim  rm -f $tmp/stdin
15897218822Sdim  if test x"$ac_file" != x-; then
15898218822Sdim    mv $tmp/out $ac_file
15899218822Sdim  else
15900218822Sdim    cat $tmp/out
15901218822Sdim    rm -f $tmp/out
15902218822Sdim  fi
15903218822Sdim
15904218822Sdimdone
15905218822Sdim_ACEOF
15906218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
15907218822Sdim
15908218822Sdim#
15909218822Sdim# CONFIG_HEADER section.
15910218822Sdim#
15911218822Sdim
1591233965Sjdp# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1591333965Sjdp# NAME is the cpp macro being defined and VALUE is the value it is being given.
1591433965Sjdp#
1591533965Sjdp# ac_d sets the value in "#define NAME VALUE" lines.
15916218822Sdimac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
15917218822Sdimac_dB='[	 ].*$,\1#\2'
15918218822Sdimac_dC=' '
15919218822Sdimac_dD=',;t'
15920218822Sdim# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15921218822Sdimac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
15922218822Sdimac_uB='$,\1#\2define\3'
1592333965Sjdpac_uC=' '
15924218822Sdimac_uD=',;t'
1592533965Sjdp
15926218822Sdimfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1592733965Sjdp  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15928218822Sdim  case $ac_file in
15929218822Sdim  - | *:- | *:-:* ) # input from stdin
15930218822Sdim	cat >$tmp/stdin
15931218822Sdim	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15932218822Sdim	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15933218822Sdim  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15934218822Sdim	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15935218822Sdim  * )   ac_file_in=$ac_file.in ;;
1593633965Sjdp  esac
1593733965Sjdp
15938218822Sdim  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15939218822Sdimecho "$as_me: creating $ac_file" >&6;}
1594033965Sjdp
15941218822Sdim  # First look for the input files in the build tree, otherwise in the
15942218822Sdim  # src tree.
15943218822Sdim  ac_file_inputs=`IFS=:
15944218822Sdim    for f in $ac_file_in; do
15945218822Sdim      case $f in
15946218822Sdim      -) echo $tmp/stdin ;;
15947218822Sdim      [\\/$]*)
15948218822Sdim	 # Absolute (can't be DOS-style, as IFS=:)
15949218822Sdim	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15950218822Sdimecho "$as_me: error: cannot find input file: $f" >&2;}
15951218822Sdim   { (exit 1); exit 1; }; }
15952218822Sdim	 # Do quote $f, to prevent DOS paths from being IFS'd.
15953218822Sdim	 echo "$f";;
15954218822Sdim      *) # Relative
15955218822Sdim	 if test -f "$f"; then
15956218822Sdim	   # Build tree
15957218822Sdim	   echo "$f"
15958218822Sdim	 elif test -f "$srcdir/$f"; then
15959218822Sdim	   # Source tree
15960218822Sdim	   echo "$srcdir/$f"
15961218822Sdim	 else
15962218822Sdim	   # /dev/null tree
15963218822Sdim	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15964218822Sdimecho "$as_me: error: cannot find input file: $f" >&2;}
15965218822Sdim   { (exit 1); exit 1; }; }
15966218822Sdim	 fi;;
15967218822Sdim      esac
15968218822Sdim    done` || { (exit 1); exit 1; }
15969218822Sdim  # Remove the trailing spaces.
15970218822Sdim  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
1597133965Sjdp
15972218822Sdim_ACEOF
1597333965Sjdp
15974218822Sdim# Transform confdefs.h into two sed scripts, `conftest.defines' and
15975218822Sdim# `conftest.undefs', that substitutes the proper values into
15976218822Sdim# config.h.in to produce config.h.  The first handles `#define'
15977218822Sdim# templates, and the second `#undef' templates.
15978218822Sdim# And first: Protect against being on the right side of a sed subst in
15979218822Sdim# config.status.  Protect against being in an unquoted here document
15980218822Sdim# in config.status.
15981218822Sdimrm -f conftest.defines conftest.undefs
15982218822Sdim# Using a here document instead of a string reduces the quoting nightmare.
15983218822Sdim# Putting comments in sed scripts is not portable.
15984218822Sdim#
15985218822Sdim# `end' is used to avoid that the second main sed command (meant for
15986218822Sdim# 0-ary CPP macros) applies to n-ary macro definitions.
15987218822Sdim# See the Autoconf documentation for `clear'.
15988218822Sdimcat >confdef2sed.sed <<\_ACEOF
15989218822Sdims/[\\&,]/\\&/g
15990218822Sdims,[\\$`],\\&,g
15991218822Sdimt clear
15992218822Sdim: clear
15993218822Sdims,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15994218822Sdimt end
15995218822Sdims,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15996218822Sdim: end
15997218822Sdim_ACEOF
15998218822Sdim# If some macros were called several times there might be several times
15999218822Sdim# the same #defines, which is useless.  Nevertheless, we may not want to
16000218822Sdim# sort them, since we want the *last* AC-DEFINE to be honored.
16001218822Sdimuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16002218822Sdimsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16003218822Sdimrm -f confdef2sed.sed
1600433965Sjdp
1600533965Sjdp# This sed command replaces #undef with comments.  This is necessary, for
1600633965Sjdp# example, in the case of _POSIX_SOURCE, which is predefined and required
1600733965Sjdp# on some systems where configure will not decide to define it.
16008218822Sdimcat >>conftest.undefs <<\_ACEOF
16009218822Sdims,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16010218822Sdim_ACEOF
1601133965Sjdp
16012218822Sdim# Break up conftest.defines because some shells have a limit on the size
16013218822Sdim# of here documents, and old seds have small limits too (100 cmds).
16014218822Sdimecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16015218822Sdimecho '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16016218822Sdimecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16017218822Sdimecho '  :' >>$CONFIG_STATUS
16018218822Sdimrm -f conftest.tail
16019218822Sdimwhile grep . conftest.defines >/dev/null
16020218822Sdimdo
16021218822Sdim  # Write a limited-size here document to $tmp/defines.sed.
16022218822Sdim  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16023218822Sdim  # Speed up: don't consider the non `#define' lines.
16024218822Sdim  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
16025218822Sdim  # Work around the forget-to-reset-the-flag bug.
16026218822Sdim  echo 't clr' >>$CONFIG_STATUS
16027218822Sdim  echo ': clr' >>$CONFIG_STATUS
16028218822Sdim  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16029218822Sdim  echo 'CEOF
16030218822Sdim  sed -f $tmp/defines.sed $tmp/in >$tmp/out
16031218822Sdim  rm -f $tmp/in
16032218822Sdim  mv $tmp/out $tmp/in
16033218822Sdim' >>$CONFIG_STATUS
16034218822Sdim  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16035218822Sdim  rm -f conftest.defines
16036218822Sdim  mv conftest.tail conftest.defines
16037218822Sdimdone
16038218822Sdimrm -f conftest.defines
16039218822Sdimecho '  fi # grep' >>$CONFIG_STATUS
16040218822Sdimecho >>$CONFIG_STATUS
1604133965Sjdp
16042218822Sdim# Break up conftest.undefs because some shells have a limit on the size
16043218822Sdim# of here documents, and old seds have small limits too (100 cmds).
16044218822Sdimecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
1604533965Sjdprm -f conftest.tail
16046218822Sdimwhile grep . conftest.undefs >/dev/null
1604733965Sjdpdo
16048218822Sdim  # Write a limited-size here document to $tmp/undefs.sed.
16049218822Sdim  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16050218822Sdim  # Speed up: don't consider the non `#undef'
16051218822Sdim  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
16052218822Sdim  # Work around the forget-to-reset-the-flag bug.
16053218822Sdim  echo 't clr' >>$CONFIG_STATUS
16054218822Sdim  echo ': clr' >>$CONFIG_STATUS
16055218822Sdim  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1605633965Sjdp  echo 'CEOF
16057218822Sdim  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16058218822Sdim  rm -f $tmp/in
16059218822Sdim  mv $tmp/out $tmp/in
16060218822Sdim' >>$CONFIG_STATUS
16061218822Sdim  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16062218822Sdim  rm -f conftest.undefs
16063218822Sdim  mv conftest.tail conftest.undefs
1606433965Sjdpdone
16065218822Sdimrm -f conftest.undefs
1606633965Sjdp
16067218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
16068218822Sdim  # Let's still pretend it is `configure' which instantiates (i.e., don't
16069218822Sdim  # use $as_me), people would be surprised to read:
16070218822Sdim  #    /* config.h.  Generated by config.status.  */
16071218822Sdim  if test x"$ac_file" = x-; then
16072218822Sdim    echo "/* Generated by configure.  */" >$tmp/config.h
1607333965Sjdp  else
16074218822Sdim    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16075218822Sdim  fi
16076218822Sdim  cat $tmp/in >>$tmp/config.h
16077218822Sdim  rm -f $tmp/in
16078218822Sdim  if test x"$ac_file" != x-; then
16079218822Sdim    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16080218822Sdim      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16081218822Sdimecho "$as_me: $ac_file is unchanged" >&6;}
16082218822Sdim    else
16083218822Sdim      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16084218822Sdim$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16085218822Sdim	 X"$ac_file" : 'X\(//\)[^/]' \| \
16086218822Sdim	 X"$ac_file" : 'X\(//\)$' \| \
16087218822Sdim	 X"$ac_file" : 'X\(/\)' \| \
16088218822Sdim	 .     : '\(.\)' 2>/dev/null ||
16089218822Sdimecho X"$ac_file" |
16090218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16091218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16092218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
16093218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
16094218822Sdim  	  s/.*/./; q'`
16095218822Sdim      { if $as_mkdir_p; then
16096218822Sdim    mkdir -p "$ac_dir"
16097218822Sdim  else
16098218822Sdim    as_dir="$ac_dir"
16099218822Sdim    as_dirs=
16100218822Sdim    while test ! -d "$as_dir"; do
16101218822Sdim      as_dirs="$as_dir $as_dirs"
16102218822Sdim      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16103218822Sdim$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16104218822Sdim	 X"$as_dir" : 'X\(//\)[^/]' \| \
16105218822Sdim	 X"$as_dir" : 'X\(//\)$' \| \
16106218822Sdim	 X"$as_dir" : 'X\(/\)' \| \
16107218822Sdim	 .     : '\(.\)' 2>/dev/null ||
16108218822Sdimecho X"$as_dir" |
16109218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16110218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16111218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
16112218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
16113218822Sdim  	  s/.*/./; q'`
16114218822Sdim    done
16115218822Sdim    test ! -n "$as_dirs" || mkdir $as_dirs
16116218822Sdim  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16117218822Sdimecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16118218822Sdim   { (exit 1); exit 1; }; }; }
16119218822Sdim
16120218822Sdim      rm -f $ac_file
16121218822Sdim      mv $tmp/config.h $ac_file
1612233965Sjdp    fi
16123218822Sdim  else
16124218822Sdim    cat $tmp/config.h
16125218822Sdim    rm -f $tmp/config.h
1612633965Sjdp  fi
16127218822Sdim# Compute $ac_file's index in $config_headers.
16128218822Sdim_am_stamp_count=1
16129218822Sdimfor _am_header in $config_headers :; do
16130218822Sdim  case $_am_header in
16131218822Sdim    $ac_file | $ac_file:* )
16132218822Sdim      break ;;
16133218822Sdim    * )
16134218822Sdim      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16135218822Sdim  esac
16136218822Sdimdone
16137218822Sdimecho "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16138218822Sdim$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16139218822Sdim	 X$ac_file : 'X\(//\)[^/]' \| \
16140218822Sdim	 X$ac_file : 'X\(//\)$' \| \
16141218822Sdim	 X$ac_file : 'X\(/\)' \| \
16142218822Sdim	 .     : '\(.\)' 2>/dev/null ||
16143218822Sdimecho X$ac_file |
16144218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16145218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16146218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
16147218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
16148218822Sdim  	  s/.*/./; q'`/stamp-h$_am_stamp_count
16149218822Sdimdone
16150218822Sdim_ACEOF
16151218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
1615233965Sjdp
16153218822Sdim#
16154218822Sdim# CONFIG_COMMANDS section.
16155218822Sdim#
16156218822Sdimfor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16157218822Sdim  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16158218822Sdim  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16159218822Sdim  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16160218822Sdim$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16161218822Sdim	 X"$ac_dest" : 'X\(//\)[^/]' \| \
16162218822Sdim	 X"$ac_dest" : 'X\(//\)$' \| \
16163218822Sdim	 X"$ac_dest" : 'X\(/\)' \| \
16164218822Sdim	 .     : '\(.\)' 2>/dev/null ||
16165218822Sdimecho X"$ac_dest" |
16166218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16167218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16168218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
16169218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
16170218822Sdim  	  s/.*/./; q'`
16171218822Sdim  { if $as_mkdir_p; then
16172218822Sdim    mkdir -p "$ac_dir"
16173218822Sdim  else
16174218822Sdim    as_dir="$ac_dir"
16175218822Sdim    as_dirs=
16176218822Sdim    while test ! -d "$as_dir"; do
16177218822Sdim      as_dirs="$as_dir $as_dirs"
16178218822Sdim      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16179218822Sdim$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16180218822Sdim	 X"$as_dir" : 'X\(//\)[^/]' \| \
16181218822Sdim	 X"$as_dir" : 'X\(//\)$' \| \
16182218822Sdim	 X"$as_dir" : 'X\(/\)' \| \
16183218822Sdim	 .     : '\(.\)' 2>/dev/null ||
16184218822Sdimecho X"$as_dir" |
16185218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16186218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16187218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
16188218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
16189218822Sdim  	  s/.*/./; q'`
16190218822Sdim    done
16191218822Sdim    test ! -n "$as_dirs" || mkdir $as_dirs
16192218822Sdim  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16193218822Sdimecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16194218822Sdim   { (exit 1); exit 1; }; }; }
1619533965Sjdp
16196218822Sdim  ac_builddir=.
1619738889Sjdp
16198218822Sdimif test "$ac_dir" != .; then
16199218822Sdim  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16200218822Sdim  # A "../" for each directory in $ac_dir_suffix.
16201218822Sdim  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16202218822Sdimelse
16203218822Sdim  ac_dir_suffix= ac_top_builddir=
16204218822Sdimfi
1620538889Sjdp
16206218822Sdimcase $srcdir in
16207218822Sdim  .)  # No --srcdir option.  We are building in place.
16208218822Sdim    ac_srcdir=.
16209218822Sdim    if test -z "$ac_top_builddir"; then
16210218822Sdim       ac_top_srcdir=.
16211218822Sdim    else
16212218822Sdim       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16213218822Sdim    fi ;;
16214218822Sdim  [\\/]* | ?:[\\/]* )  # Absolute path.
16215218822Sdim    ac_srcdir=$srcdir$ac_dir_suffix;
16216218822Sdim    ac_top_srcdir=$srcdir ;;
16217218822Sdim  *) # Relative path.
16218218822Sdim    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16219218822Sdim    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1622060484Sobrienesac
1622160484Sobrien
16222218822Sdim# Do not use `cd foo && pwd` to compute absolute paths, because
16223218822Sdim# the directories may not exist.
16224218822Sdimcase `pwd` in
16225218822Sdim.) ac_abs_builddir="$ac_dir";;
16226218822Sdim*)
16227218822Sdim  case "$ac_dir" in
16228218822Sdim  .) ac_abs_builddir=`pwd`;;
16229218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16230218822Sdim  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16231218822Sdim  esac;;
16232218822Sdimesac
16233218822Sdimcase $ac_abs_builddir in
16234218822Sdim.) ac_abs_top_builddir=${ac_top_builddir}.;;
16235218822Sdim*)
16236218822Sdim  case ${ac_top_builddir}. in
16237218822Sdim  .) ac_abs_top_builddir=$ac_abs_builddir;;
16238218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16239218822Sdim  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16240218822Sdim  esac;;
16241218822Sdimesac
16242218822Sdimcase $ac_abs_builddir in
16243218822Sdim.) ac_abs_srcdir=$ac_srcdir;;
16244218822Sdim*)
16245218822Sdim  case $ac_srcdir in
16246218822Sdim  .) ac_abs_srcdir=$ac_abs_builddir;;
16247218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16248218822Sdim  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16249218822Sdim  esac;;
16250218822Sdimesac
16251218822Sdimcase $ac_abs_builddir in
16252218822Sdim.) ac_abs_top_srcdir=$ac_top_srcdir;;
16253218822Sdim*)
16254218822Sdim  case $ac_top_srcdir in
16255218822Sdim  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16256218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16257218822Sdim  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16258218822Sdim  esac;;
16259218822Sdimesac
16260218822Sdim
16261218822Sdim
16262218822Sdim  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16263218822Sdimecho "$as_me: executing $ac_dest commands" >&6;}
16264218822Sdim  case $ac_dest in
16265218822Sdim    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16266218822Sdim  # Strip MF so we end up with the name of the file.
16267218822Sdim  mf=`echo "$mf" | sed -e 's/:.*$//'`
16268218822Sdim  # Check whether this is an Automake generated Makefile or not.
16269218822Sdim  # We used to match only the files named `Makefile.in', but
16270218822Sdim  # some people rename them; so instead we look at the file content.
16271218822Sdim  # Grep'ing the first line is not enough: some people post-process
16272218822Sdim  # each Makefile.in and add a new line on top of each file to say so.
16273218822Sdim  # So let's grep whole file.
16274218822Sdim  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16275218822Sdim    dirpart=`(dirname "$mf") 2>/dev/null ||
16276218822Sdim$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16277218822Sdim	 X"$mf" : 'X\(//\)[^/]' \| \
16278218822Sdim	 X"$mf" : 'X\(//\)$' \| \
16279218822Sdim	 X"$mf" : 'X\(/\)' \| \
16280218822Sdim	 .     : '\(.\)' 2>/dev/null ||
16281218822Sdimecho X"$mf" |
16282218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16283218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16284218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
16285218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
16286218822Sdim  	  s/.*/./; q'`
16287218822Sdim  else
16288218822Sdim    continue
16289218822Sdim  fi
16290218822Sdim  # Extract the definition of DEPDIR, am__include, and am__quote
16291218822Sdim  # from the Makefile without running `make'.
16292218822Sdim  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16293218822Sdim  test -z "$DEPDIR" && continue
16294218822Sdim  am__include=`sed -n 's/^am__include = //p' < "$mf"`
16295218822Sdim  test -z "am__include" && continue
16296218822Sdim  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16297218822Sdim  # When using ansi2knr, U may be empty or an underscore; expand it
16298218822Sdim  U=`sed -n 's/^U = //p' < "$mf"`
16299218822Sdim  # Find all dependency output files, they are included files with
16300218822Sdim  # $(DEPDIR) in their names.  We invoke sed twice because it is the
16301218822Sdim  # simplest approach to changing $(DEPDIR) to its actual value in the
16302218822Sdim  # expansion.
16303218822Sdim  for file in `sed -n "
16304218822Sdim    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16305218822Sdim       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16306218822Sdim    # Make sure the directory exists.
16307218822Sdim    test -f "$dirpart/$file" && continue
16308218822Sdim    fdir=`(dirname "$file") 2>/dev/null ||
16309218822Sdim$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16310218822Sdim	 X"$file" : 'X\(//\)[^/]' \| \
16311218822Sdim	 X"$file" : 'X\(//\)$' \| \
16312218822Sdim	 X"$file" : 'X\(/\)' \| \
16313218822Sdim	 .     : '\(.\)' 2>/dev/null ||
16314218822Sdimecho X"$file" |
16315218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16316218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16317218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
16318218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
16319218822Sdim  	  s/.*/./; q'`
16320218822Sdim    { if $as_mkdir_p; then
16321218822Sdim    mkdir -p $dirpart/$fdir
16322218822Sdim  else
16323218822Sdim    as_dir=$dirpart/$fdir
16324218822Sdim    as_dirs=
16325218822Sdim    while test ! -d "$as_dir"; do
16326218822Sdim      as_dirs="$as_dir $as_dirs"
16327218822Sdim      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16328218822Sdim$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16329218822Sdim	 X"$as_dir" : 'X\(//\)[^/]' \| \
16330218822Sdim	 X"$as_dir" : 'X\(//\)$' \| \
16331218822Sdim	 X"$as_dir" : 'X\(/\)' \| \
16332218822Sdim	 .     : '\(.\)' 2>/dev/null ||
16333218822Sdimecho X"$as_dir" |
16334218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16335218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16336218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
16337218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
16338218822Sdim  	  s/.*/./; q'`
16339218822Sdim    done
16340218822Sdim    test ! -n "$as_dirs" || mkdir $as_dirs
16341218822Sdim  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16342218822Sdimecho "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16343218822Sdim   { (exit 1); exit 1; }; }; }
16344218822Sdim
16345218822Sdim    # echo "creating $dirpart/$file"
16346218822Sdim    echo '# dummy' > "$dirpart/$file"
16347218822Sdim  done
16348218822Sdimdone
16349218822Sdim ;;
16350218822Sdim    libtool )
16351218822Sdim
16352218822Sdim    # See if we are running on zsh, and set the options which allow our
16353218822Sdim    # commands through without removal of \ escapes.
16354218822Sdim    if test -n "${ZSH_VERSION+set}" ; then
16355218822Sdim      setopt NO_GLOB_SUBST
16356218822Sdim    fi
16357218822Sdim
16358218822Sdim    cfgfile="${ofile}T"
16359218822Sdim    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16360218822Sdim    $RM "$cfgfile"
16361218822Sdim
16362218822Sdim    cat <<_LT_EOF >> "$cfgfile"
16363218822Sdim#! $SHELL
16364218822Sdim
16365218822Sdim# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16366218822Sdim# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16367218822Sdim# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16368218822Sdim# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16369218822Sdim#
16370218822Sdim# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16371218822Sdim# 2006, 2007 Free Software Foundation, Inc.
16372218822Sdim#
16373218822Sdim# This file is part of GNU Libtool:
16374218822Sdim# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16375218822Sdim#
16376218822Sdim# This program is free software; you can redistribute it and/or modify
16377218822Sdim# it under the terms of the GNU General Public License as published by
16378218822Sdim# the Free Software Foundation; either version 2 of the License, or
16379218822Sdim# (at your option) any later version.
16380218822Sdim#
16381218822Sdim# This program is distributed in the hope that it will be useful, but
16382218822Sdim# WITHOUT ANY WARRANTY; without even the implied warranty of
16383218822Sdim# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16384218822Sdim# General Public License for more details.
16385218822Sdim#
16386218822Sdim# You should have received a copy of the GNU General Public License
16387218822Sdim# along with this program; if not, a copy can be downloaded from
16388218822Sdim# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16389218822Sdim# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16390218822Sdim# MA 02110-1301, USA.
16391218822Sdim#
16392218822Sdim# As a special exception to the GNU General Public License, if you
16393218822Sdim# distribute this file as part of a program that contains a
16394218822Sdim# configuration script generated by Autoconf, you may include it under
16395218822Sdim# the same distribution terms that you use for the rest of that program.
16396218822Sdim
16397218822Sdim
16398218822Sdim# The names of the tagged configurations supported by this script.
16399218822Sdimavailable_tags=""
16400218822Sdim
16401218822Sdim# ### BEGIN LIBTOOL CONFIG
16402218822Sdim
16403218822Sdim# Which release of libtool.m4 was used?
16404218822Sdimmacro_version=$macro_version
16405218822Sdimmacro_revision=$macro_revision
16406218822Sdim
16407218822Sdim# Whether or not to build shared libraries.
16408218822Sdimbuild_libtool_libs=$enable_shared
16409218822Sdim
16410218822Sdim# Whether or not to build static libraries.
16411218822Sdimbuild_old_libs=$enable_static
16412218822Sdim
16413218822Sdim# What type of objects to build.
16414218822Sdimpic_mode=$pic_mode
16415218822Sdim
16416218822Sdim# Whether or not to optimize for fast installation.
16417218822Sdimfast_install=$enable_fast_install
16418218822Sdim
16419218822Sdim# The host system.
16420218822Sdimhost_alias=$host_alias
16421218822Sdimhost=$host
16422218822Sdimhost_os=$host_os
16423218822Sdim
16424218822Sdim# The build system.
16425218822Sdimbuild_alias=$build_alias
16426218822Sdimbuild=$build
16427218822Sdimbuild_os=$build_os
16428218822Sdim
16429218822Sdim# A sed program that does not truncate output.
16430218822SdimSED=$lt_SED
16431218822Sdim
16432218822Sdim# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16433218822SdimXsed="\$SED -e 1s/^X//"
16434218822Sdim
16435218822Sdim# A grep program that handles long lines.
16436218822SdimGREP=$lt_GREP
16437218822Sdim
16438218822Sdim# An ERE matcher.
16439218822SdimEGREP=$lt_EGREP
16440218822Sdim
16441218822Sdim# A literal string matcher.
16442218822SdimFGREP=$lt_FGREP
16443218822Sdim
16444218822Sdim# A BSD- or MS-compatible name lister.
16445218822SdimNM=$lt_NM
16446218822Sdim
16447218822Sdim# Whether we need soft or hard links.
16448218822SdimLN_S=$lt_LN_S
16449218822Sdim
16450218822Sdim# What is the maximum length of a command?
16451218822Sdimmax_cmd_len=$max_cmd_len
16452218822Sdim
16453218822Sdim# Object file suffix (normally "o").
16454218822Sdimobjext=$ac_objext
16455218822Sdim
16456218822Sdim# Executable file suffix (normally "").
16457218822Sdimexeext=$exeext
16458218822Sdim
16459218822Sdim# whether the shell understands "unset".
16460218822Sdimlt_unset=$lt_unset
16461218822Sdim
16462218822Sdim# turn spaces into newlines.
16463218822SdimSP2NL=$lt_lt_SP2NL
16464218822Sdim
16465218822Sdim# turn newlines into spaces.
16466218822SdimNL2SP=$lt_lt_NL2SP
16467218822Sdim
16468218822Sdim# How to create reloadable object files.
16469218822Sdimreload_flag=$lt_reload_flag
16470218822Sdimreload_cmds=$lt_reload_cmds
16471218822Sdim
16472218822Sdim# Method to check whether dependent libraries are shared objects.
16473218822Sdimdeplibs_check_method=$lt_deplibs_check_method
16474218822Sdim
16475218822Sdim# Command to use when deplibs_check_method == "file_magic".
16476218822Sdimfile_magic_cmd=$lt_file_magic_cmd
16477218822Sdim
16478218822Sdim# The archiver.
16479218822SdimAR=$lt_AR
16480218822SdimAR_FLAGS=$lt_AR_FLAGS
16481218822Sdim
16482218822Sdim# A symbol stripping program.
16483218822SdimSTRIP=$lt_STRIP
16484218822Sdim
16485218822Sdim# Commands used to install an old-style archive.
16486218822SdimRANLIB=$lt_RANLIB
16487218822Sdimold_postinstall_cmds=$lt_old_postinstall_cmds
16488218822Sdimold_postuninstall_cmds=$lt_old_postuninstall_cmds
16489218822Sdim
16490218822Sdim# A C compiler.
16491218822SdimLTCC=$lt_CC
16492218822Sdim
16493218822Sdim# LTCC compiler flags.
16494218822SdimLTCFLAGS=$lt_CFLAGS
16495218822Sdim
16496218822Sdim# Take the output of nm and produce a listing of raw symbols and C names.
16497218822Sdimglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16498218822Sdim
16499218822Sdim# Transform the output of nm in a proper C declaration.
16500218822Sdimglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16501218822Sdim
16502218822Sdim# Transform the output of nm in a C name address pair.
16503218822Sdimglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16504218822Sdim
16505218822Sdim# The name of the directory that contains temporary libtool files.
16506218822Sdimobjdir=$objdir
16507218822Sdim
16508218822Sdim# Shell to use when invoking shell scripts.
16509218822SdimSHELL=$lt_SHELL
16510218822Sdim
16511218822Sdim# An echo program that does not interpret backslashes.
16512218822SdimECHO=$lt_ECHO
16513218822Sdim
16514218822Sdim# Used to examine libraries when file_magic_cmd begins with "file".
16515218822SdimMAGIC_CMD=$MAGIC_CMD
16516218822Sdim
16517218822Sdim# Must we lock files when doing compilation?
16518218822Sdimneed_locks=$lt_need_locks
16519218822Sdim
16520218822Sdim# Old archive suffix (normally "a").
16521218822Sdimlibext=$libext
16522218822Sdim
16523218822Sdim# Shared library suffix (normally ".so").
16524218822Sdimshrext_cmds=$lt_shrext_cmds
16525218822Sdim
16526218822Sdim# The commands to extract the exported symbol list from a shared archive.
16527218822Sdimextract_expsyms_cmds=$lt_extract_expsyms_cmds
16528218822Sdim
16529218822Sdim# Variables whose values should be saved in libtool wrapper scripts and
16530218822Sdim# restored at link time.
16531218822Sdimvariables_saved_for_relink=$lt_variables_saved_for_relink
16532218822Sdim
16533218822Sdim# Do we need the "lib" prefix for modules?
16534218822Sdimneed_lib_prefix=$need_lib_prefix
16535218822Sdim
16536218822Sdim# Do we need a version for libraries?
16537218822Sdimneed_version=$need_version
16538218822Sdim
16539218822Sdim# Library versioning type.
16540218822Sdimversion_type=$version_type
16541218822Sdim
16542218822Sdim# Shared library runtime path variable.
16543218822Sdimrunpath_var=$runpath_var
16544218822Sdim
16545218822Sdim# Shared library path variable.
16546218822Sdimshlibpath_var=$shlibpath_var
16547218822Sdim
16548218822Sdim# Is shlibpath searched before the hard-coded library search path?
16549218822Sdimshlibpath_overrides_runpath=$shlibpath_overrides_runpath
16550218822Sdim
16551218822Sdim# Format of library name prefix.
16552218822Sdimlibname_spec=$lt_libname_spec
16553218822Sdim
16554218822Sdim# List of archive names.  First name is the real one, the rest are links.
16555218822Sdim# The last name is the one that the linker finds with -lNAME
16556218822Sdimlibrary_names_spec=$lt_library_names_spec
16557218822Sdim
16558218822Sdim# The coded name of the library, if different from the real name.
16559218822Sdimsoname_spec=$lt_soname_spec
16560218822Sdim
16561218822Sdim# Command to use after installation of a shared archive.
16562218822Sdimpostinstall_cmds=$lt_postinstall_cmds
16563218822Sdim
16564218822Sdim# Command to use after uninstallation of a shared archive.
16565218822Sdimpostuninstall_cmds=$lt_postuninstall_cmds
16566218822Sdim
16567218822Sdim# Commands used to finish a libtool library installation in a directory.
16568218822Sdimfinish_cmds=$lt_finish_cmds
16569218822Sdim
16570218822Sdim# As "finish_cmds", except a single script fragment to be evaled but
16571218822Sdim# not shown.
16572218822Sdimfinish_eval=$lt_finish_eval
16573218822Sdim
16574218822Sdim# Whether we should hardcode library paths into libraries.
16575218822Sdimhardcode_into_libs=$hardcode_into_libs
16576218822Sdim
16577218822Sdim# Compile-time system search path for libraries.
16578218822Sdimsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16579218822Sdim
16580218822Sdim# Run-time system search path for libraries.
16581218822Sdimsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16582218822Sdim
16583218822Sdim# Whether dlopen is supported.
16584218822Sdimdlopen_support=$enable_dlopen
16585218822Sdim
16586218822Sdim# Whether dlopen of programs is supported.
16587218822Sdimdlopen_self=$enable_dlopen_self
16588218822Sdim
16589218822Sdim# Whether dlopen of statically linked programs is supported.
16590218822Sdimdlopen_self_static=$enable_dlopen_self_static
16591218822Sdim
16592218822Sdim# Commands to strip libraries.
16593218822Sdimold_striplib=$lt_old_striplib
16594218822Sdimstriplib=$lt_striplib
16595218822Sdim
16596218822Sdim
16597218822Sdim# The linker used to build libraries.
16598218822SdimLD=$lt_LD
16599218822Sdim
16600218822Sdim# Commands used to build an old-style archive.
16601218822Sdimold_archive_cmds=$lt_old_archive_cmds
16602218822Sdim
16603218822Sdim# A language specific compiler.
16604218822SdimCC=$lt_compiler
16605218822Sdim
16606218822Sdim# Is the compiler the GNU compiler?
16607218822Sdimwith_gcc=$GCC
16608218822Sdim
16609218822Sdim# Compiler flag to turn off builtin functions.
16610218822Sdimno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16611218822Sdim
16612218822Sdim# How to pass a linker flag through the compiler.
16613218822Sdimwl=$lt_lt_prog_compiler_wl
16614218822Sdim
16615218822Sdim# Additional compiler flags for building library objects.
16616218822Sdimpic_flag=$lt_lt_prog_compiler_pic
16617218822Sdim
16618218822Sdim# Compiler flag to prevent dynamic linking.
16619218822Sdimlink_static_flag=$lt_lt_prog_compiler_static
16620218822Sdim
16621218822Sdim# Does compiler simultaneously support -c and -o options?
16622218822Sdimcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
16623218822Sdim
16624218822Sdim# Whether or not to add -lc for building shared libraries.
16625218822Sdimbuild_libtool_need_lc=$archive_cmds_need_lc
16626218822Sdim
16627218822Sdim# Whether or not to disallow shared libs when runtime libs are static.
16628218822Sdimallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16629218822Sdim
16630218822Sdim# Compiler flag to allow reflexive dlopens.
16631218822Sdimexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16632218822Sdim
16633218822Sdim# Compiler flag to generate shared objects directly from archives.
16634218822Sdimwhole_archive_flag_spec=$lt_whole_archive_flag_spec
16635218822Sdim
16636218822Sdim# Whether the compiler copes with passing no objects directly.
16637218822Sdimcompiler_needs_object=$lt_compiler_needs_object
16638218822Sdim
16639218822Sdim# Create an old-style archive from a shared archive.
16640218822Sdimold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16641218822Sdim
16642218822Sdim# Create a temporary old-style archive to link instead of a shared archive.
16643218822Sdimold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16644218822Sdim
16645218822Sdim# Commands used to build a shared archive.
16646218822Sdimarchive_cmds=$lt_archive_cmds
16647218822Sdimarchive_expsym_cmds=$lt_archive_expsym_cmds
16648218822Sdim
16649218822Sdim# Commands used to build a loadable module if different from building
16650218822Sdim# a shared archive.
16651218822Sdimmodule_cmds=$lt_module_cmds
16652218822Sdimmodule_expsym_cmds=$lt_module_expsym_cmds
16653218822Sdim
16654218822Sdim# Whether we are building with GNU ld or not.
16655218822Sdimwith_gnu_ld=$lt_with_gnu_ld
16656218822Sdim
16657218822Sdim# Flag that allows shared libraries with undefined symbols to be built.
16658218822Sdimallow_undefined_flag=$lt_allow_undefined_flag
16659218822Sdim
16660218822Sdim# Flag that enforces no undefined symbols.
16661218822Sdimno_undefined_flag=$lt_no_undefined_flag
16662218822Sdim
16663218822Sdim# Flag to hardcode \$libdir into a binary during linking.
16664218822Sdim# This must work even if \$libdir does not exist
16665218822Sdimhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16666218822Sdim
16667218822Sdim# If ld is used when linking, flag to hardcode \$libdir into a binary
16668218822Sdim# during linking.  This must work even if \$libdir does not exist.
16669218822Sdimhardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16670218822Sdim
16671218822Sdim# Whether we need a single "-rpath" flag with a separated argument.
16672218822Sdimhardcode_libdir_separator=$lt_hardcode_libdir_separator
16673218822Sdim
16674218822Sdim# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16675218822Sdim# DIR into the resulting binary.
16676218822Sdimhardcode_direct=$hardcode_direct
16677218822Sdim
16678218822Sdim# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16679218822Sdim# DIR into the resulting binary and the resulting library dependency is
16680218822Sdim# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16681218822Sdim# library is relocated.
16682218822Sdimhardcode_direct_absolute=$hardcode_direct_absolute
16683218822Sdim
16684218822Sdim# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16685218822Sdim# into the resulting binary.
16686218822Sdimhardcode_minus_L=$hardcode_minus_L
16687218822Sdim
16688218822Sdim# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16689218822Sdim# into the resulting binary.
16690218822Sdimhardcode_shlibpath_var=$hardcode_shlibpath_var
16691218822Sdim
16692218822Sdim# Set to "yes" if building a shared library automatically hardcodes DIR
16693218822Sdim# into the library and all subsequent libraries and executables linked
16694218822Sdim# against it.
16695218822Sdimhardcode_automatic=$hardcode_automatic
16696218822Sdim
16697218822Sdim# Set to yes if linker adds runtime paths of dependent libraries
16698218822Sdim# to runtime path list.
16699218822Sdiminherit_rpath=$inherit_rpath
16700218822Sdim
16701218822Sdim# Whether libtool must link a program against all its dependency libraries.
16702218822Sdimlink_all_deplibs=$link_all_deplibs
16703218822Sdim
16704218822Sdim# Fix the shell variable \$srcfile for the compiler.
16705218822Sdimfix_srcfile_path=$lt_fix_srcfile_path
16706218822Sdim
16707218822Sdim# Set to "yes" if exported symbols are required.
16708218822Sdimalways_export_symbols=$always_export_symbols
16709218822Sdim
16710218822Sdim# The commands to list exported symbols.
16711218822Sdimexport_symbols_cmds=$lt_export_symbols_cmds
16712218822Sdim
16713218822Sdim# Symbols that should not be listed in the preloaded symbols.
16714218822Sdimexclude_expsyms=$lt_exclude_expsyms
16715218822Sdim
16716218822Sdim# Symbols that must always be exported.
16717218822Sdiminclude_expsyms=$lt_include_expsyms
16718218822Sdim
16719218822Sdim# Commands necessary for linking programs (against libraries) with templates.
16720218822Sdimprelink_cmds=$lt_prelink_cmds
16721218822Sdim
16722218822Sdim# Specify filename containing input files.
16723218822Sdimfile_list_spec=$lt_file_list_spec
16724218822Sdim
16725218822Sdim# How to hardcode a shared library path into an executable.
16726218822Sdimhardcode_action=$hardcode_action
16727218822Sdim
16728218822Sdim# ### END LIBTOOL CONFIG
16729218822Sdim
16730218822Sdim_LT_EOF
16731218822Sdim
16732218822Sdim  case $host_os in
16733218822Sdim  aix3*)
16734218822Sdim    cat <<\_LT_EOF >> "$cfgfile"
16735218822Sdim# AIX sometimes has problems with the GCC collect2 program.  For some
16736218822Sdim# reason, if we set the COLLECT_NAMES environment variable, the problems
16737218822Sdim# vanish in a puff of smoke.
16738218822Sdimif test "X${COLLECT_NAMES+set}" != Xset; then
16739218822Sdim  COLLECT_NAMES=
16740218822Sdim  export COLLECT_NAMES
16741218822Sdimfi
16742218822Sdim_LT_EOF
16743218822Sdim    ;;
16744218822Sdim  esac
16745218822Sdim
16746218822Sdim
16747218822Sdimltmain="$ac_aux_dir/ltmain.sh"
16748218822Sdim
16749218822Sdim
16750218822Sdim  # We use sed instead of cat because bash on DJGPP gets confused if
16751218822Sdim  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16752218822Sdim  # text mode, it properly converts lines to CR/LF.  This bash problem
16753218822Sdim  # is reportedly fixed, but why not run on old versions too?
16754218822Sdim  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16755218822Sdim    || (rm -f "$cfgfile"; exit 1)
16756218822Sdim
16757218822Sdim  case $xsi_shell in
16758218822Sdim  yes)
16759218822Sdim    cat << \_LT_EOF >> "$cfgfile"
16760218822Sdim# func_dirname file append nondir_replacement
16761218822Sdim# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16762218822Sdim# otherwise set result to NONDIR_REPLACEMENT.
16763218822Sdimfunc_dirname ()
16764218822Sdim{
16765218822Sdim  case ${1} in
16766218822Sdim    */*) func_dirname_result="${1%/*}${2}" ;;
16767218822Sdim    *  ) func_dirname_result="${3}" ;;
16768218822Sdim  esac
16769218822Sdim}
16770218822Sdim
16771218822Sdim# func_basename file
16772218822Sdimfunc_basename ()
16773218822Sdim{
16774218822Sdim  func_basename_result="${1##*/}"
16775218822Sdim}
16776218822Sdim
16777218822Sdim# func_stripname prefix suffix name
16778218822Sdim# strip PREFIX and SUFFIX off of NAME.
16779218822Sdim# PREFIX and SUFFIX must not contain globbing or regex special
16780218822Sdim# characters, hashes, percent signs, but SUFFIX may contain a leading
16781218822Sdim# dot (in which case that matches only a dot).
16782218822Sdimfunc_stripname ()
16783218822Sdim{
16784218822Sdim  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16785218822Sdim  # positional parameters, so assign one to ordinary parameter first.
16786218822Sdim  func_stripname_result=${3}
16787218822Sdim  func_stripname_result=${func_stripname_result#"${1}"}
16788218822Sdim  func_stripname_result=${func_stripname_result%"${2}"}
16789218822Sdim}
16790218822Sdim
16791218822Sdim# func_opt_split
16792218822Sdimfunc_opt_split ()
16793218822Sdim{
16794218822Sdim  func_opt_split_opt=${1%%=*}
16795218822Sdim  func_opt_split_arg=${1#*=}
16796218822Sdim}
16797218822Sdim
16798218822Sdim# func_lo2o object
16799218822Sdimfunc_lo2o ()
16800218822Sdim{
16801218822Sdim  case ${1} in
16802218822Sdim    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16803218822Sdim    *)    func_lo2o_result=${1} ;;
16804218822Sdim  esac
16805218822Sdim}
16806218822Sdim_LT_EOF
16807218822Sdim    ;;
16808218822Sdim  *) # Bourne compatible functions.
16809218822Sdim    cat << \_LT_EOF >> "$cfgfile"
16810218822Sdim# func_dirname file append nondir_replacement
16811218822Sdim# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16812218822Sdim# otherwise set result to NONDIR_REPLACEMENT.
16813218822Sdimfunc_dirname ()
16814218822Sdim{
16815218822Sdim  # Extract subdirectory from the argument.
16816218822Sdim  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16817218822Sdim  if test "X$func_dirname_result" = "X${1}"; then
16818218822Sdim    func_dirname_result="${3}"
16819218822Sdim  else
16820218822Sdim    func_dirname_result="$func_dirname_result${2}"
16821218822Sdim  fi
16822218822Sdim}
16823218822Sdim
16824218822Sdim# func_basename file
16825218822Sdimfunc_basename ()
16826218822Sdim{
16827218822Sdim  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16828218822Sdim}
16829218822Sdim
16830218822Sdim# func_stripname prefix suffix name
16831218822Sdim# strip PREFIX and SUFFIX off of NAME.
16832218822Sdim# PREFIX and SUFFIX must not contain globbing or regex special
16833218822Sdim# characters, hashes, percent signs, but SUFFIX may contain a leading
16834218822Sdim# dot (in which case that matches only a dot).
16835218822Sdim# func_strip_suffix prefix name
16836218822Sdimfunc_stripname ()
16837218822Sdim{
16838218822Sdim  case ${2} in
16839218822Sdim    .*) func_stripname_result=`$ECHO "X${3}" \
16840218822Sdim           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16841218822Sdim    *)  func_stripname_result=`$ECHO "X${3}" \
16842218822Sdim           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16843218822Sdim  esac
16844218822Sdim}
16845218822Sdim
16846218822Sdim# sed scripts:
16847218822Sdimmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16848218822Sdimmy_sed_long_arg='1s/^-[^=]*=//'
16849218822Sdim
16850218822Sdim# func_opt_split
16851218822Sdimfunc_opt_split ()
16852218822Sdim{
16853218822Sdim  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16854218822Sdim  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16855218822Sdim}
16856218822Sdim
16857218822Sdim# func_lo2o object
16858218822Sdimfunc_lo2o ()
16859218822Sdim{
16860218822Sdim  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16861218822Sdim}
16862218822Sdim_LT_EOF
16863218822Sdimesac
16864218822Sdim
16865218822Sdimcase $lt_shell_append in
16866218822Sdim  yes)
16867218822Sdim    cat << \_LT_EOF >> "$cfgfile"
16868218822Sdim
16869218822Sdim# func_append var value
16870218822Sdim# Append VALUE to the end of shell variable VAR.
16871218822Sdimfunc_append ()
16872218822Sdim{
16873218822Sdim  eval "$1+=\$2"
16874218822Sdim}
16875218822Sdim_LT_EOF
16876218822Sdim    ;;
16877218822Sdim  *)
16878218822Sdim    cat << \_LT_EOF >> "$cfgfile"
16879218822Sdim
16880218822Sdim# func_append var value
16881218822Sdim# Append VALUE to the end of shell variable VAR.
16882218822Sdimfunc_append ()
16883218822Sdim{
16884218822Sdim  eval "$1=\$$1\$2"
16885218822Sdim}
16886218822Sdim_LT_EOF
16887218822Sdim    ;;
16888218822Sdim  esac
16889218822Sdim
16890218822Sdim
16891218822Sdim  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16892218822Sdim    || (rm -f "$cfgfile"; exit 1)
16893218822Sdim
16894218822Sdim  mv -f "$cfgfile" "$ofile" ||
16895218822Sdim    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16896218822Sdim  chmod +x "$ofile"
16897218822Sdim
16898218822Sdim ;;
16899218822Sdim    default-1 )
16900218822Sdim    for ac_file in $CONFIG_FILES; do
16901218822Sdim      # Support "outfile[:infile[:infile...]]"
16902218822Sdim      case "$ac_file" in
16903218822Sdim        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16904218822Sdim      esac
16905218822Sdim      # PO directories have a Makefile.in generated from Makefile.in.in.
16906218822Sdim      case "$ac_file" in */Makefile.in)
16907218822Sdim        # Adjust a relative srcdir.
16908218822Sdim        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16909218822Sdim        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16910218822Sdim        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16911218822Sdim        # In autoconf-2.13 it is called $ac_given_srcdir.
16912218822Sdim        # In autoconf-2.50 it is called $srcdir.
16913218822Sdim        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16914218822Sdim        case "$ac_given_srcdir" in
16915218822Sdim          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16916218822Sdim          /*) top_srcdir="$ac_given_srcdir" ;;
16917218822Sdim          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16918218822Sdim        esac
16919218822Sdim        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16920218822Sdim          rm -f "$ac_dir/POTFILES"
16921218822Sdim          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16922218822Sdim          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16923218822Sdim          POMAKEFILEDEPS="POTFILES.in"
16924218822Sdim          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16925218822Sdim          # on $ac_dir but don't depend on user-specified configuration
16926218822Sdim          # parameters.
16927218822Sdim          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16928218822Sdim            # The LINGUAS file contains the set of available languages.
16929218822Sdim            if test -n "$OBSOLETE_ALL_LINGUAS"; then
16930218822Sdim              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16931218822Sdim            fi
16932218822Sdim            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16933218822Sdim            # Hide the ALL_LINGUAS assigment from automake.
16934218822Sdim            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16935218822Sdim            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16936218822Sdim          else
16937218822Sdim            # The set of available languages was given in configure.in.
16938218822Sdim            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16939218822Sdim          fi
16940218822Sdim          case "$ac_given_srcdir" in
16941218822Sdim            .) srcdirpre= ;;
16942218822Sdim            *) srcdirpre='$(srcdir)/' ;;
16943218822Sdim          esac
16944218822Sdim          POFILES=
16945218822Sdim          GMOFILES=
16946218822Sdim          UPDATEPOFILES=
16947218822Sdim          DUMMYPOFILES=
16948218822Sdim          for lang in $ALL_LINGUAS; do
16949218822Sdim            POFILES="$POFILES $srcdirpre$lang.po"
16950218822Sdim            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16951218822Sdim            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16952218822Sdim            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16953218822Sdim          done
16954218822Sdim          # CATALOGS depends on both $ac_dir and the user's LINGUAS
16955218822Sdim          # environment variable.
16956218822Sdim          INST_LINGUAS=
16957218822Sdim          if test -n "$ALL_LINGUAS"; then
16958218822Sdim            for presentlang in $ALL_LINGUAS; do
16959218822Sdim              useit=no
16960218822Sdim              if test "%UNSET%" != "$LINGUAS"; then
16961218822Sdim                desiredlanguages="$LINGUAS"
16962218822Sdim              else
16963218822Sdim                desiredlanguages="$ALL_LINGUAS"
16964218822Sdim              fi
16965218822Sdim              for desiredlang in $desiredlanguages; do
16966218822Sdim                # Use the presentlang catalog if desiredlang is
16967218822Sdim                #   a. equal to presentlang, or
16968218822Sdim                #   b. a variant of presentlang (because in this case,
16969218822Sdim                #      presentlang can be used as a fallback for messages
16970218822Sdim                #      which are not translated in the desiredlang catalog).
16971218822Sdim                case "$desiredlang" in
16972218822Sdim                  "$presentlang"*) useit=yes;;
16973218822Sdim                esac
16974218822Sdim              done
16975218822Sdim              if test $useit = yes; then
16976218822Sdim                INST_LINGUAS="$INST_LINGUAS $presentlang"
16977218822Sdim              fi
16978218822Sdim            done
16979218822Sdim          fi
16980218822Sdim          CATALOGS=
16981218822Sdim          if test -n "$INST_LINGUAS"; then
16982218822Sdim            for lang in $INST_LINGUAS; do
16983218822Sdim              CATALOGS="$CATALOGS $lang.gmo"
16984218822Sdim            done
16985218822Sdim          fi
16986218822Sdim          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16987218822Sdim          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"
16988218822Sdim          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16989218822Sdim            if test -f "$f"; then
16990218822Sdim              case "$f" in
16991218822Sdim                *.orig | *.bak | *~) ;;
16992218822Sdim                *) cat "$f" >> "$ac_dir/Makefile" ;;
16993218822Sdim              esac
16994218822Sdim            fi
16995218822Sdim          done
16996218822Sdim        fi
16997218822Sdim        ;;
16998218822Sdim      esac
16999218822Sdim    done ;;
17000218822Sdim  esac
17001218822Sdimdone
17002218822Sdim_ACEOF
17003218822Sdim
17004218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
17005218822Sdim
17006218822Sdim{ (exit 0); exit 0; }
17007218822Sdim_ACEOF
1700833965Sjdpchmod +x $CONFIG_STATUS
17009218822Sdimac_clean_files=$ac_clean_files_save
1701033965Sjdp
17011218822Sdim
17012218822Sdim# configure is writing to config.log, and then calls config.status.
17013218822Sdim# config.status does its own redirection, appending to config.log.
17014218822Sdim# Unfortunately, on DOS this fails, as config.log is still kept open
17015218822Sdim# by configure, so config.status won't be able to write to it; its
17016218822Sdim# output is simply discarded.  So we exec the FD to /dev/null,
17017218822Sdim# effectively closing config.log, so it can be properly (re)opened and
17018218822Sdim# appended to by config.status.  When coming back to configure, we
17019218822Sdim# need to make the FD available again.
17020218822Sdimif test "$no_create" != yes; then
17021218822Sdim  ac_cs_success=:
17022218822Sdim  ac_config_status_args=
17023218822Sdim  test "$silent" = yes &&
17024218822Sdim    ac_config_status_args="$ac_config_status_args --quiet"
17025218822Sdim  exec 5>/dev/null
17026218822Sdim  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17027218822Sdim  exec 5>>config.log
17028218822Sdim  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17029218822Sdim  # would make configure fail if this is the last instruction.
17030218822Sdim  $ac_cs_success || { (exit 1); exit 1; }
17031218822Sdimfi
17032218822Sdim
17033