2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
ab509236 3# Generated by GNU Autoconf 2.59.
252b5132 4#
ab509236 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
13b2be9c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
ab509236 22DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
23
24# Support unset when possible.
ab509236 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
ab509236 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
ab509236 221 test -d ./-p && rmdir ./-p
13b2be9c
DJ
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
ab509236 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
229
230# Sed expression to map a string onto a valid variable name.
ab509236 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
13b2be9c
DJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
13b2be9c
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
13b2be9c
DJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="as.h"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
7357c5b6 461ac_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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB 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 ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
13b2be9c 462ac_subst_files=''
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
13b2be9c
DJ
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
13b2be9c 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
13b2be9c
DJ
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
13b2be9c 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
13b2be9c 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
13b2be9c 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
13b2be9c 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
13b2be9c 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
13b2be9c
DJ
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
13b2be9c 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
13b2be9c
DJ
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
13b2be9c 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
13b2be9c 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
13b2be9c
DJ
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
13b2be9c 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
13b2be9c 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
13b2be9c 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
13b2be9c 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
13b2be9c 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
13b2be9c 711 site=$ac_optarg ;;
76bff705 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
13b2be9c
DJ
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
13b2be9c 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
13b2be9c
DJ
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
13b2be9c
DJ
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
13b2be9c 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
13b2be9c 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
13b2be9c
DJ
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 774 x_libraries=$ac_optarg ;;
252b5132 775
13b2be9c
DJ
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
13b2be9c
DJ
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
13b2be9c
DJ
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
13b2be9c
DJ
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
c8615825 806fi
c8615825 807
13b2be9c
DJ
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
252b5132 818
13b2be9c
DJ
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ab509236 821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
13b2be9c
DJ
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
13b2be9c
DJ
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
9b2b7d69 848
13b2be9c
DJ
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
13b2be9c
DJ
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
13b2be9c
DJ
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
13b2be9c
DJ
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
13b2be9c
DJ
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
d6d788bd 923
13b2be9c
DJ
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
9b2b7d69 932
13b2be9c 933Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 934
13b2be9c
DJ
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 937
13b2be9c 938Defaults for the options are specified in brackets.
9b2b7d69 939
13b2be9c
DJ
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
ab509236 956 [$ac_default_prefix]
13b2be9c 957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ab509236 958 [PREFIX]
9b2b7d69 959
13b2be9c
DJ
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
9b2b7d69 964
13b2be9c 965For better control, use the options below.
9b2b7d69 966
13b2be9c
DJ
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
9b2b7d69 981
13b2be9c 982 cat <<\_ACEOF
9b2b7d69 983
13b2be9c
DJ
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 988
13b2be9c
DJ
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
9b2b7d69 994fi
9b2b7d69 995
13b2be9c 996if test -n "$ac_init_help"; then
9b2b7d69 997
13b2be9c 998 cat <<\_ACEOF
9b2b7d69 999
13b2be9c
DJ
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
13b2be9c 1011 --disable-libtool-lock avoid locking (might break parallel builds)
241a6c40 1012 --enable-targets alternative target configurations besides the primary
13b2be9c 1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
c43a438d 1014 --enable-checking enable run-time checks
241a6c40
AM
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1017 --disable-nls do not use Native Language Support
ab509236
L
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
9b2b7d69 1020
13b2be9c
DJ
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9b2b7d69 1027
13b2be9c
DJ
1028Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1036
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040_ACEOF
9b2b7d69 1041fi
9b2b7d69 1042
13b2be9c
DJ
1043if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054else
1055 ac_dir_suffix= ac_top_builddir=
1056fi
9b2b7d69 1057
13b2be9c
DJ
1058case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
c8615825 1065 fi ;;
13b2be9c
DJ
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
c8615825 1072esac
ab509236
L
1073
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084esac
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111esac
13b2be9c
DJ
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
ab509236 1122 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1ad12f97 1128 cd $ac_popdir
13b2be9c
DJ
1129 done
1130fi
6840198f 1131
13b2be9c
DJ
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
c8615825 1135
ab509236 1136Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
c8615825 1146
13b2be9c 1147It was created by $as_me, which was
ab509236 1148generated by GNU Autoconf 2.59. Invocation command line was
c8615825 1149
13b2be9c 1150 $ $0 $@
c8615825 1151
13b2be9c
DJ
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
9b2b7d69 1185
13b2be9c 1186} >&5
6840198f 1187
13b2be9c 1188cat >&5 <<_ACEOF
c8615825 1189
9b2b7d69 1190
13b2be9c
DJ
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
87ccc1b0 1194
13b2be9c 1195_ACEOF
9b2b7d69 1196
13b2be9c
DJ
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
1200# Strip out --silent because we don't want to record it for future runs.
1201# Also quote any args containing shell meta-characters.
1202# Make two passes to allow for proper duplicate-argument suppression.
1203ac_configure_args=
1204ac_configure_args0=
1205ac_configure_args1=
1206ac_sep=
1207ac_must_keep_next=false
1208for ac_pass in 1 2
1209do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
ab509236 1225 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1226 else
ab509236
L
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
13b2be9c
DJ
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
c8615825
AM
1242 ;;
1243 esac
1244 done
13b2be9c
DJ
1245done
1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log. We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
ab509236
L
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1273 ;;
1274 *)
1275 sed -n \
ab509236 1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
1277 ;;
1278 esac;
1279}
1280 echo
1281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
ab509236 1305 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
ab509236 1324 rm -f core *.core &&
13b2be9c
DJ
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
ab509236 1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1427 ac_cache_corrupted=:
1428 else
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1432 fi
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1450 fi
1451done
1452if $ac_cache_corrupted; then
7a283e07
RW
1453 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454echo "$as_me: error: in \`$ac_pwd':" >&2;}
13b2be9c
DJ
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1460fi
1461
1462ac_ext=c
1463ac_cpp='$CPP $CPPFLAGS'
1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
7a283e07
RW
1484
1485
1486
13b2be9c
DJ
1487
1488
1489
1490ac_aux_dir=
1491for ac_dir in .. $srcdir/..; do
1492 if test -f $ac_dir/install-sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install-sh -c"
1495 break
1496 elif test -f $ac_dir/install.sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install.sh -c"
1499 break
1500 elif test -f $ac_dir/shtool; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/shtool install -c"
1503 break
1504 fi
1505done
1506if test -z "$ac_aux_dir"; then
1507 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1508echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1509 { (exit 1); exit 1; }; }
1510fi
1511ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1512ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1513ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1514
1515# Make sure we can run config.sub.
1516$ac_config_sub sun4 >/dev/null 2>&1 ||
1517 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519 { (exit 1); exit 1; }; }
1520
1521echo "$as_me:$LINENO: checking build system type" >&5
1522echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523if test "${ac_cv_build+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 ac_cv_build_alias=$build_alias
1527test -z "$ac_cv_build_alias" &&
1528 ac_cv_build_alias=`$ac_config_guess`
1529test -z "$ac_cv_build_alias" &&
1530 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532 { (exit 1); exit 1; }; }
1533ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1537
1538fi
1539echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540echo "${ECHO_T}$ac_cv_build" >&6
1541build=$ac_cv_build
1542build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547echo "$as_me:$LINENO: checking host system type" >&5
1548echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549if test "${ac_cv_host+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552 ac_cv_host_alias=$host_alias
1553test -z "$ac_cv_host_alias" &&
1554 ac_cv_host_alias=$ac_cv_build_alias
1555ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1559
1560fi
1561echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562echo "${ECHO_T}$ac_cv_host" >&6
1563host=$ac_cv_host
1564host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569echo "$as_me:$LINENO: checking target system type" >&5
1570echo $ECHO_N "checking target system type... $ECHO_C" >&6
1571if test "${ac_cv_target+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573else
1574 ac_cv_target_alias=$target_alias
1575test "x$ac_cv_target_alias" = "x" &&
1576 ac_cv_target_alias=$ac_cv_host_alias
1577ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1578 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1579echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582fi
1583echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1584echo "${ECHO_T}$ac_cv_target" >&6
1585target=$ac_cv_target
1586target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589
1590
1591# The aliases save the names the user supplied, while $host etc.
1592# will get canonicalized.
1593test -n "$target_alias" &&
1594 test "$program_prefix$program_suffix$program_transform_name" = \
1595 NONENONEs,x,x, &&
1596 program_prefix=${target_alias}-
1597ac_ext=c
1598ac_cpp='$CPP $CPPFLAGS'
1599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1601ac_compiler_gnu=$ac_cv_c_compiler_gnu
1602if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1604set dummy ${ac_tool_prefix}gcc; ac_word=$2
1605echo "$as_me:$LINENO: checking for $ac_word" >&5
1606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1612else
1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614for as_dir in $PATH
1615do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624done
1625done
1626
1627fi
1628fi
1629CC=$ac_cv_prog_CC
1630if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632echo "${ECHO_T}$CC" >&6
1633else
1634 echo "$as_me:$LINENO: result: no" >&5
1635echo "${ECHO_T}no" >&6
1636fi
1637
1638fi
1639if test -z "$ac_cv_prog_CC"; then
1640 ac_ct_CC=$CC
1641 # Extract the first word of "gcc", so it can be a program name with args.
1642set dummy gcc; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648 if test -n "$ac_ct_CC"; then
1649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_ac_ct_CC="gcc"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1661 fi
1662done
1663done
1664
1665fi
1666fi
1667ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668if test -n "$ac_ct_CC"; then
1669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1670echo "${ECHO_T}$ac_ct_CC" >&6
1671else
1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
1675
1676 CC=$ac_ct_CC
1677else
1678 CC="$ac_cv_prog_CC"
1679fi
1680
1681if test -z "$CC"; then
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1684set dummy ${ac_tool_prefix}cc; ac_word=$2
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1692else
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_CC="${ac_tool_prefix}cc"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704done
1705done
1706
1707fi
1708fi
1709CC=$ac_cv_prog_CC
1710if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712echo "${ECHO_T}$CC" >&6
1713else
1714 echo "$as_me:$LINENO: result: no" >&5
1715echo "${ECHO_T}no" >&6
1716fi
1717
1718fi
1719if test -z "$ac_cv_prog_CC"; then
1720 ac_ct_CC=$CC
1721 # Extract the first word of "cc", so it can be a program name with args.
1722set dummy cc; ac_word=$2
1723echo "$as_me:$LINENO: checking for $ac_word" >&5
1724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727else
1728 if test -n "$ac_ct_CC"; then
1729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1730else
1731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732for as_dir in $PATH
1733do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_CC="cc"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 break 2
1741 fi
1742done
1743done
1744
1745fi
1746fi
1747ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748if test -n "$ac_ct_CC"; then
1749 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1750echo "${ECHO_T}$ac_ct_CC" >&6
1751else
1752 echo "$as_me:$LINENO: result: no" >&5
1753echo "${ECHO_T}no" >&6
1754fi
1755
1756 CC=$ac_ct_CC
1757else
1758 CC="$ac_cv_prog_CC"
1759fi
1760
1761fi
1762if test -z "$CC"; then
1763 # Extract the first word of "cc", so it can be a program name with args.
1764set dummy cc; ac_word=$2
1765echo "$as_me:$LINENO: checking for $ac_word" >&5
1766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767if test "${ac_cv_prog_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770 if test -n "$CC"; then
1771 ac_cv_prog_CC="$CC" # Let the user override the test.
1772else
1773 ac_prog_rejected=no
1774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775for as_dir in $PATH
1776do
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1782 ac_prog_rejected=yes
1783 continue
1784 fi
1785 ac_cv_prog_CC="cc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 break 2
1788 fi
1789done
1790done
1791
1792if test $ac_prog_rejected = yes; then
1793 # We found a bogon in the path, so make sure we never use it.
1794 set dummy $ac_cv_prog_CC
1795 shift
1796 if test $# != 0; then
1797 # We chose a different compiler from the bogus one.
1798 # However, it has the same basename, so the bogon will be chosen
1799 # first if we set CC to just the basename; use the full file name.
1800 shift
1801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1802 fi
1803fi
1804fi
1805fi
1806CC=$ac_cv_prog_CC
1807if test -n "$CC"; then
1808 echo "$as_me:$LINENO: result: $CC" >&5
1809echo "${ECHO_T}$CC" >&6
1810else
1811 echo "$as_me:$LINENO: result: no" >&5
1812echo "${ECHO_T}no" >&6
1813fi
1814
1815fi
1816if test -z "$CC"; then
1817 if test -n "$ac_tool_prefix"; then
1818 for ac_prog in cl
1819 do
1820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1821set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1822echo "$as_me:$LINENO: checking for $ac_word" >&5
1823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829else
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841done
1842done
1843
1844fi
1845fi
1846CC=$ac_cv_prog_CC
1847if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849echo "${ECHO_T}$CC" >&6
1850else
1851 echo "$as_me:$LINENO: result: no" >&5
1852echo "${ECHO_T}no" >&6
1853fi
1854
1855 test -n "$CC" && break
1856 done
1857fi
1858if test -z "$CC"; then
1859 ac_ct_CC=$CC
1860 for ac_prog in cl
1861do
1862 # Extract the first word of "$ac_prog", so it can be a program name with args.
1863set dummy $ac_prog; ac_word=$2
1864echo "$as_me:$LINENO: checking for $ac_word" >&5
1865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
1869 if test -n "$ac_ct_CC"; then
1870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1871else
1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873for as_dir in $PATH
1874do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_ac_ct_CC="$ac_prog"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883done
1884done
1885
1886fi
1887fi
1888ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889if test -n "$ac_ct_CC"; then
1890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891echo "${ECHO_T}$ac_ct_CC" >&6
1892else
1893 echo "$as_me:$LINENO: result: no" >&5
1894echo "${ECHO_T}no" >&6
1895fi
1896
1897 test -n "$ac_ct_CC" && break
1898done
1899
1900 CC=$ac_ct_CC
1901fi
1902
1903fi
1904
1905
7a283e07
RW
1906test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1907echo "$as_me: error: in \`$ac_pwd':" >&2;}
1908{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13b2be9c
DJ
1909See \`config.log' for more details." >&5
1910echo "$as_me: error: no acceptable C compiler found in \$PATH
1911See \`config.log' for more details." >&2;}
7a283e07 1912 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
1913
1914# Provide some information about the compiler.
1915echo "$as_me:$LINENO:" \
1916 "checking for C compiler version" >&5
1917ac_compiler=`set X $ac_compile; echo $2`
1918{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919 (eval $ac_compiler --version </dev/null >&5) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924 (eval $ac_compiler -v </dev/null >&5) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929 (eval $ac_compiler -V </dev/null >&5) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1933
1934cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1935/* confdefs.h. */
1936_ACEOF
1937cat confdefs.h >>conftest.$ac_ext
1938cat >>conftest.$ac_ext <<_ACEOF
1939/* end confdefs.h. */
1940
1941int
1942main ()
1943{
1944
1945 ;
1946 return 0;
1947}
1948_ACEOF
1949ac_clean_files_save=$ac_clean_files
1950ac_clean_files="$ac_clean_files a.out a.exe b.out"
1951# Try to create an executable without -o first, disregard a.out.
1952# It will help us diagnose broken compilers, and finding out an intuition
1953# of exeext.
ab509236
L
1954echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1955echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1956ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1957if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1958 (eval $ac_link_default) 2>&5
1959 ac_status=$?
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; then
1962 # Find the output, starting from the most likely. This scheme is
1963# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1964# resort.
1965
1966# Be careful to initialize this variable, since it used to be cached.
1967# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1968ac_cv_exeext=
1969# b.out is created by i960 compilers.
1970for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1971do
1972 test -f "$ac_file" || continue
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1975 ;;
13b2be9c 1976 conftest.$ac_ext )
ab509236
L
1977 # This is the source file.
1978 ;;
13b2be9c 1979 [ab].out )
ab509236
L
1980 # We found the default executable, but exeext='' is most
1981 # certainly right.
1982 break;;
13b2be9c 1983 *.* )
ab509236
L
1984 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985 # FIXME: I believe we export ac_cv_exeext for Libtool,
1986 # but it would be cool to find out if it's true. Does anybody
1987 # maintain Libtool? --akim.
1988 export ac_cv_exeext
1989 break;;
13b2be9c 1990 * )
ab509236 1991 break;;
13b2be9c
DJ
1992 esac
1993done
1994else
1995 echo "$as_me: failed program was:" >&5
1996sed 's/^/| /' conftest.$ac_ext >&5
1997
7a283e07
RW
1998{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999echo "$as_me: error: in \`$ac_pwd':" >&2;}
13b2be9c
DJ
2000{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2001See \`config.log' for more details." >&5
2002echo "$as_me: error: C compiler cannot create executables
2003See \`config.log' for more details." >&2;}
7a283e07 2004 { (exit 77); exit 77; }; }; }
13b2be9c
DJ
2005fi
2006
2007ac_exeext=$ac_cv_exeext
2008echo "$as_me:$LINENO: result: $ac_file" >&5
2009echo "${ECHO_T}$ac_file" >&6
2010
2011# Check the compiler produces executables we can run. If not, either
2012# the compiler is broken, or we cross compile.
2013echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2014echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2015# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2016# If not cross compiling, check that we can run a simple program.
2017if test "$cross_compiling" != yes; then
2018 if { ac_try='./$ac_file'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020 (eval $ac_try) 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2024 cross_compiling=no
2025 else
2026 if test "$cross_compiling" = maybe; then
2027 cross_compiling=yes
2028 else
7a283e07
RW
2029 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2030echo "$as_me: error: in \`$ac_pwd':" >&2;}
2031{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
13b2be9c
DJ
2032If you meant to cross compile, use \`--host'.
2033See \`config.log' for more details." >&5
2034echo "$as_me: error: cannot run C compiled programs.
2035If you meant to cross compile, use \`--host'.
2036See \`config.log' for more details." >&2;}
7a283e07 2037 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
2038 fi
2039 fi
2040fi
2041echo "$as_me:$LINENO: result: yes" >&5
2042echo "${ECHO_T}yes" >&6
2043
2044rm -f a.out a.exe conftest$ac_cv_exeext b.out
2045ac_clean_files=$ac_clean_files_save
2046# Check the compiler produces executables we can run. If not, either
2047# the compiler is broken, or we cross compile.
2048echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2049echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2050echo "$as_me:$LINENO: result: $cross_compiling" >&5
2051echo "${ECHO_T}$cross_compiling" >&6
2052
2053echo "$as_me:$LINENO: checking for suffix of executables" >&5
2054echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2056 (eval $ac_link) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; then
2060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2061# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2062# work properly (i.e., refer to `conftest.exe'), while it won't with
2063# `rm'.
2064for ac_file in conftest.exe conftest conftest.*; do
2065 test -f "$ac_file" || continue
2066 case $ac_file in
2067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
2069 export ac_cv_exeext
2070 break;;
13b2be9c
DJ
2071 * ) break;;
2072 esac
2073done
2074else
7a283e07
RW
2075 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2076echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
13b2be9c
DJ
2078See \`config.log' for more details." >&5
2079echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2080See \`config.log' for more details." >&2;}
7a283e07 2081 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
2082fi
2083
2084rm -f conftest$ac_cv_exeext
2085echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2086echo "${ECHO_T}$ac_cv_exeext" >&6
2087
2088rm -f conftest.$ac_ext
2089EXEEXT=$ac_cv_exeext
2090ac_exeext=$EXEEXT
2091echo "$as_me:$LINENO: checking for suffix of object files" >&5
2092echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2093if test "${ac_cv_objext+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2097/* confdefs.h. */
2098_ACEOF
2099cat confdefs.h >>conftest.$ac_ext
2100cat >>conftest.$ac_ext <<_ACEOF
2101/* end confdefs.h. */
2102
2103int
2104main ()
2105{
2106
2107 ;
2108 return 0;
2109}
2110_ACEOF
2111rm -f conftest.o conftest.obj
2112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113 (eval $ac_compile) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2118 case $ac_file in
2119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2121 break;;
2122 esac
2123done
2124else
2125 echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
7a283e07
RW
2128{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2129echo "$as_me: error: in \`$ac_pwd':" >&2;}
13b2be9c
DJ
2130{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2131See \`config.log' for more details." >&5
2132echo "$as_me: error: cannot compute suffix of object files: cannot compile
2133See \`config.log' for more details." >&2;}
7a283e07 2134 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
2135fi
2136
2137rm -f conftest.$ac_cv_objext conftest.$ac_ext
2138fi
2139echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2140echo "${ECHO_T}$ac_cv_objext" >&6
2141OBJEXT=$ac_cv_objext
2142ac_objext=$OBJEXT
2143echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2144echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2145if test "${ac_cv_c_compiler_gnu+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2149/* confdefs.h. */
2150_ACEOF
2151cat confdefs.h >>conftest.$ac_ext
2152cat >>conftest.$ac_ext <<_ACEOF
2153/* end confdefs.h. */
2154
2155int
2156main ()
2157{
2158#ifndef __GNUC__
2159 choke me
2160#endif
2161
2162 ;
2163 return 0;
2164}
2165_ACEOF
2166rm -f conftest.$ac_objext
2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2168 (eval $ac_compile) 2>conftest.er1
13b2be9c 2169 ac_status=$?
ab509236
L
2170 grep -v '^ *+' conftest.er1 >conftest.err
2171 rm -f conftest.er1
2172 cat conftest.err >&5
13b2be9c
DJ
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
1ad12f97
NC
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
ab509236
L
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 ac_compiler_gnu=yes
2189else
2190 echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193ac_compiler_gnu=no
2194fi
ab509236 2195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2196ac_cv_c_compiler_gnu=$ac_compiler_gnu
2197
2198fi
2199echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2200echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2201GCC=`test $ac_compiler_gnu = yes && echo yes`
2202ac_test_CFLAGS=${CFLAGS+set}
2203ac_save_CFLAGS=$CFLAGS
2204CFLAGS="-g"
2205echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2206echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2207if test "${ac_cv_prog_cc_g+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209else
2210 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2211/* confdefs.h. */
2212_ACEOF
2213cat confdefs.h >>conftest.$ac_ext
2214cat >>conftest.$ac_ext <<_ACEOF
2215/* end confdefs.h. */
2216
2217int
2218main ()
2219{
2220
2221 ;
2222 return 0;
2223}
2224_ACEOF
2225rm -f conftest.$ac_objext
2226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2227 (eval $ac_compile) 2>conftest.er1
13b2be9c 2228 ac_status=$?
ab509236
L
2229 grep -v '^ *+' conftest.er1 >conftest.err
2230 rm -f conftest.er1
2231 cat conftest.err >&5
13b2be9c
DJ
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
1ad12f97
NC
2234 { ac_try='test -z "$ac_c_werror_flag"
2235 || test ! -s conftest.err'
ab509236
L
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 ac_cv_prog_cc_g=yes
2248else
2249 echo "$as_me: failed program was:" >&5
2250sed 's/^/| /' conftest.$ac_ext >&5
2251
2252ac_cv_prog_cc_g=no
2253fi
ab509236 2254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2255fi
2256echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2257echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2258if test "$ac_test_CFLAGS" = set; then
2259 CFLAGS=$ac_save_CFLAGS
2260elif test $ac_cv_prog_cc_g = yes; then
2261 if test "$GCC" = yes; then
2262 CFLAGS="-g -O2"
2263 else
2264 CFLAGS="-g"
2265 fi
2266else
2267 if test "$GCC" = yes; then
2268 CFLAGS="-O2"
2269 else
2270 CFLAGS=
2271 fi
2272fi
2273echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2274echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2275if test "${ac_cv_prog_cc_stdc+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277else
2278 ac_cv_prog_cc_stdc=no
2279ac_save_CC=$CC
2280cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2281/* confdefs.h. */
2282_ACEOF
2283cat confdefs.h >>conftest.$ac_ext
2284cat >>conftest.$ac_ext <<_ACEOF
2285/* end confdefs.h. */
2286#include <stdarg.h>
2287#include <stdio.h>
2288#include <sys/types.h>
2289#include <sys/stat.h>
2290/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2291struct buf { int x; };
2292FILE * (*rcsopen) (struct buf *, struct stat *, int);
2293static char *e (p, i)
2294 char **p;
2295 int i;
2296{
2297 return p[i];
2298}
2299static char *f (char * (*g) (char **, int), char **p, ...)
2300{
2301 char *s;
2302 va_list v;
2303 va_start (v,p);
2304 s = g (p, va_arg (v,int));
2305 va_end (v);
2306 return s;
2307}
ab509236
L
2308
2309/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2310 function prototypes and stuff, but not '\xHH' hex character constants.
2311 These don't provoke an error unfortunately, instead are silently treated
2312 as 'x'. The following induces an error, until -std1 is added to get
2313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2314 array size at least. It's necessary to write '\x00'==0 to get something
2315 that's true only with -std1. */
2316int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2317
13b2be9c
DJ
2318int test (int i, double x);
2319struct s1 {int (*f) (int a);};
2320struct s2 {int (*f) (double a);};
2321int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2322int argc;
2323char **argv;
2324int
2325main ()
2326{
2327return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2328 ;
2329 return 0;
2330}
2331_ACEOF
2332# Don't try gcc -ansi; that turns off useful extensions and
2333# breaks some systems' header files.
2334# AIX -qlanglvl=ansi
2335# Ultrix and OSF/1 -std1
2336# HP-UX 10.20 and later -Ae
2337# HP-UX older versions -Aa -D_HPUX_SOURCE
2338# SVR4 -Xc -D__EXTENSIONS__
2339for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2340do
2341 CC="$ac_save_CC $ac_arg"
2342 rm -f conftest.$ac_objext
2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2344 (eval $ac_compile) 2>conftest.er1
13b2be9c 2345 ac_status=$?
ab509236
L
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
13b2be9c
DJ
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
1ad12f97
NC
2351 { ac_try='test -z "$ac_c_werror_flag"
2352 || test ! -s conftest.err'
ab509236
L
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_cv_prog_cc_stdc=$ac_arg
2365break
2366else
2367 echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370fi
ab509236 2371rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2372done
2373rm -f conftest.$ac_ext conftest.$ac_objext
2374CC=$ac_save_CC
2375
2376fi
2377
2378case "x$ac_cv_prog_cc_stdc" in
2379 x|xno)
2380 echo "$as_me:$LINENO: result: none needed" >&5
2381echo "${ECHO_T}none needed" >&6 ;;
2382 *)
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2384echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2385 CC="$CC $ac_cv_prog_cc_stdc" ;;
2386esac
2387
2388# Some people use a C++ compiler to compile C. Since we use `exit',
2389# in C++ we need to declare it. In case someone uses the same compiler
2390# for both compiling C and C++ we need to have the C++ compiler decide
2391# the declaration of exit, since it's the most demanding environment.
2392cat >conftest.$ac_ext <<_ACEOF
2393#ifndef __cplusplus
2394 choke me
2395#endif
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2399 (eval $ac_compile) 2>conftest.er1
13b2be9c 2400 ac_status=$?
ab509236
L
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
2403 cat conftest.err >&5
13b2be9c
DJ
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
1ad12f97
NC
2406 { ac_try='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
ab509236
L
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 for ac_declaration in \
ab509236 2420 '' \
13b2be9c
DJ
2421 'extern "C" void std::exit (int) throw (); using std::exit;' \
2422 'extern "C" void std::exit (int); using std::exit;' \
2423 'extern "C" void exit (int) throw ();' \
2424 'extern "C" void exit (int);' \
2425 'void exit (int);'
2426do
2427 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2428/* confdefs.h. */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h. */
13dfd2d0 2433$ac_declaration
ab509236 2434#include <stdlib.h>
13b2be9c
DJ
2435int
2436main ()
2437{
2438exit (42);
2439 ;
2440 return 0;
2441}
2442_ACEOF
2443rm -f conftest.$ac_objext
2444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2445 (eval $ac_compile) 2>conftest.er1
13b2be9c 2446 ac_status=$?
ab509236
L
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
13b2be9c
DJ
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
1ad12f97
NC
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
ab509236
L
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 :
2466else
2467 echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470continue
2471fi
ab509236 2472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2473 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2474/* confdefs.h. */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h. */
2479$ac_declaration
2480int
2481main ()
2482{
2483exit (42);
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488rm -f conftest.$ac_objext
2489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2490 (eval $ac_compile) 2>conftest.er1
13b2be9c 2491 ac_status=$?
ab509236
L
2492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
13b2be9c
DJ
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
1ad12f97
NC
2497 { ac_try='test -z "$ac_c_werror_flag"
2498 || test ! -s conftest.err'
ab509236
L
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 break
2511else
2512 echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515fi
ab509236 2516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2517done
2518rm -f conftest*
2519if test -n "$ac_declaration"; then
2520 echo '#ifdef __cplusplus' >>confdefs.h
2521 echo $ac_declaration >>confdefs.h
2522 echo '#endif' >>confdefs.h
2523fi
2524
2525else
2526 echo "$as_me: failed program was:" >&5
2527sed 's/^/| /' conftest.$ac_ext >&5
2528
2529fi
ab509236 2530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2531ac_ext=c
2532ac_cpp='$CPP $CPPFLAGS'
2533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
2537
ab509236
L
2538echo "$as_me:$LINENO: checking for library containing strerror" >&5
2539echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2540if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
ab509236
L
2543 ac_func_search_save_LIBS=$LIBS
2544ac_cv_search_strerror=no
13b2be9c 2545cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2546/* confdefs.h. */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
2550/* end confdefs.h. */
2551
2552/* Override any gcc2 internal prototype to avoid an error. */
2553#ifdef __cplusplus
2554extern "C"
2555#endif
2556/* We use char because int might match the return type of a gcc2
2557 builtin and then its argument prototype would still apply. */
2558char strerror ();
2559int
2560main ()
2561{
2562strerror ();
2563 ;
2564 return 0;
2565}
2566_ACEOF
2567rm -f conftest.$ac_objext conftest$ac_exeext
2568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2569 (eval $ac_link) 2>conftest.er1
13b2be9c 2570 ac_status=$?
ab509236
L
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
13b2be9c
DJ
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
1ad12f97
NC
2576 { ac_try='test -z "$ac_c_werror_flag"
2577 || test ! -s conftest.err'
ab509236
L
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
ab509236 2589 ac_cv_search_strerror="none required"
13b2be9c
DJ
2590else
2591 echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
13b2be9c 2594fi
ab509236
L
2595rm -f conftest.err conftest.$ac_objext \
2596 conftest$ac_exeext conftest.$ac_ext
2597if test "$ac_cv_search_strerror" = no; then
2598 for ac_lib in cposix; do
2599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2600 cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h. */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h. */
2606
2607/* Override any gcc2 internal prototype to avoid an error. */
2608#ifdef __cplusplus
2609extern "C"
2610#endif
2611/* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2613char strerror ();
2614int
2615main ()
2616{
2617strerror ();
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622rm -f conftest.$ac_objext conftest$ac_exeext
2623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2624 (eval $ac_link) 2>conftest.er1
2625 ac_status=$?
2626 grep -v '^ *+' conftest.er1 >conftest.err
2627 rm -f conftest.er1
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
1ad12f97
NC
2631 { ac_try='test -z "$ac_c_werror_flag"
2632 || test ! -s conftest.err'
ab509236
L
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest$ac_exeext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_search_strerror="-l$ac_lib"
2645break
2646else
2647 echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
13b2be9c 2650fi
ab509236
L
2651rm -f conftest.err conftest.$ac_objext \
2652 conftest$ac_exeext conftest.$ac_ext
2653 done
13b2be9c 2654fi
ab509236
L
2655LIBS=$ac_func_search_save_LIBS
2656fi
2657echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2658echo "${ECHO_T}$ac_cv_search_strerror" >&6
2659if test "$ac_cv_search_strerror" != no; then
2660 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2661
ab509236 2662fi
13b2be9c
DJ
2663
2664
2665BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2666am__api_version="1.9"
13b2be9c
DJ
2667# Find a good install program. We prefer a C program (faster),
2668# so one script is as good as another. But avoid the broken or
2669# incompatible versions:
2670# SysV /etc/install, /usr/sbin/install
2671# SunOS /usr/etc/install
2672# IRIX /sbin/install
2673# AIX /bin/install
2674# AmigaOS /C/install, which installs bootblocks on floppy discs
2675# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2676# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2677# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2678# OS/2's system install, which has a completely different semantic
13b2be9c 2679# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2680# Reject install programs that cannot install multiple files.
13b2be9c
DJ
2681echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2682echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2683if test -z "$INSTALL"; then
2684if test "${ac_cv_path_install+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 # Account for people who put trailing slashes in PATH elements.
2693case $as_dir/ in
2694 ./ | .// | /cC/* | \
2695 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2696 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2697 /usr/ucb/* ) ;;
2698 *)
2699 # OSF1 and SCO ODT 3.0 have their own names for install.
2700 # Don't use installbsd from OSF since it installs stuff as root
2701 # by default.
2702 for ac_prog in ginstall scoinst install; do
2703 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2704 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2705 if test $ac_prog = install &&
2706 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707 # AIX install. It has an incompatible calling convention.
2708 :
2709 elif test $ac_prog = install &&
2710 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # program-specific install script used by HP pwplus--don't use.
2712 :
2713 else
58c85be7
RW
2714 rm -rf conftest.one conftest.two conftest.dir
2715 echo one > conftest.one
2716 echo two > conftest.two
2717 mkdir conftest.dir
2718 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2719 test -s conftest.one && test -s conftest.two &&
2720 test -s conftest.dir/conftest.one &&
2721 test -s conftest.dir/conftest.two
2722 then
2723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2724 break 3
2725 fi
ab509236
L
2726 fi
2727 fi
13b2be9c
DJ
2728 done
2729 done
2730 ;;
2731esac
2732done
2733
58c85be7 2734rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2735
2736fi
2737 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2738 INSTALL=$ac_cv_path_install
252b5132 2739 else
58c85be7
RW
2740 # As a last resort, use the slow shell script. Don't cache a
2741 # value for INSTALL within a source directory, because that will
252b5132 2742 # break other packages using the cache if that directory is
58c85be7 2743 # removed, or if the value is a relative name.
13b2be9c 2744 INSTALL=$ac_install_sh
252b5132
RH
2745 fi
2746fi
13b2be9c
DJ
2747echo "$as_me:$LINENO: result: $INSTALL" >&5
2748echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2749
2750# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2751# It thinks the first close brace ends the variable substitution.
2752test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2753
13b2be9c 2754test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2755
2756test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2757
13b2be9c
DJ
2758echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2759echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2760# Just in case
2761sleep 1
13b2be9c 2762echo timestamp > conftest.file
252b5132
RH
2763# Do `set' in a subshell so we don't clobber the current shell's
2764# arguments. Must try -L first in case configure is actually a
2765# symlink; some systems play weird games with the mod time of symlinks
2766# (eg FreeBSD returns the mod time of the symlink's containing
2767# directory).
2768if (
13b2be9c 2769 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2770 if test "$*" = "X"; then
2771 # -L didn't work.
13b2be9c 2772 set X `ls -t $srcdir/configure conftest.file`
252b5132 2773 fi
13b2be9c
DJ
2774 rm -f conftest.file
2775 if test "$*" != "X $srcdir/configure conftest.file" \
2776 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2777
2778 # If neither matched, then we have a broken ls. This can happen
2779 # if, for instance, CONFIG_SHELL is bash and it inherits a
2780 # broken ls alias from the environment. This has actually
2781 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2782 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2783alias in your environment" >&5
2784echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2785alias in your environment" >&2;}
2786 { (exit 1); exit 1; }; }
252b5132
RH
2787 fi
2788
13b2be9c
DJ
2789 test "$2" = conftest.file
2790 )
2791then
2792 # Ok.
2793 :
2794else
2795 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2796Check your system clock" >&5
2797echo "$as_me: error: newly created file is older than distributed files!
2798Check your system clock" >&2;}
2799 { (exit 1); exit 1; }; }
2800fi
2801echo "$as_me:$LINENO: result: yes" >&5
2802echo "${ECHO_T}yes" >&6
2803test "$program_prefix" != NONE &&
2804 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2805# Use a double $ so make ignores it.
2806test "$program_suffix" != NONE &&
2807 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2808# Double any \ or $. echo might interpret backslashes.
2809# By default was `s,x,x', remove it if useless.
2810cat <<\_ACEOF >conftest.sed
2811s/[\\$]/&&/g;s/;s,x,x,$//
2812_ACEOF
2813program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2814rm conftest.sed
2815
13b2be9c
DJ
2816# expand $ac_aux_dir to an absolute path
2817am_aux_dir=`cd $ac_aux_dir && pwd`
2818
2819test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2820# Use eval to expand $SHELL
2821if eval "$MISSING --run true"; then
2822 am_missing_run="$MISSING --run "
2823else
2824 am_missing_run=
2825 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2826echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2827fi
2828
4b363073 2829if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2830 # We used to keeping the `.' as first argument, in order to
2831 # allow $(mkdir_p) to be used without argument. As in
ab509236 2832 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2833 # where $(somedir) is conditionally defined. However this is wrong
2834 # for two reasons:
2835 # 1. if the package is installed by a user who cannot write `.'
2836 # make install will fail,
2837 # 2. the above comment should most certainly read
2838 # $(mkdir_p) $(DESTDIR)$(somedir)
2839 # so it does not work when $(somedir) is undefined and
2840 # $(DESTDIR) is not.
2841 # To support the latter case, we have to write
2842 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2843 # so the `.' trick is pointless.
2844 mkdir_p='mkdir -p --'
ab509236
L
2845else
2846 # On NextStep and OpenStep, the `mkdir' command does not
2847 # recognize any option. It will interpret all options as
2848 # directories to create, and then abort because `.' already
2849 # exists.
4b363073 2850 for d in ./-p ./--version;
ab509236
L
2851 do
2852 test -d $d && rmdir $d
2853 done
2854 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2855 if test -f "$ac_aux_dir/mkinstalldirs"; then
2856 mkdir_p='$(mkinstalldirs)'
2857 else
2858 mkdir_p='$(install_sh) -d'
2859 fi
2860fi
2861
13b2be9c
DJ
2862for ac_prog in gawk mawk nawk awk
2863do
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865set dummy $ac_prog; ac_word=$2
2866echo "$as_me:$LINENO: checking for $ac_word" >&5
2867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2868if test "${ac_cv_prog_AWK+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871 if test -n "$AWK"; then
2872 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2873else
2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_AWK="$ac_prog"
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885done
2886done
2887
2888fi
2889fi
2890AWK=$ac_cv_prog_AWK
2891if test -n "$AWK"; then
2892 echo "$as_me:$LINENO: result: $AWK" >&5
2893echo "${ECHO_T}$AWK" >&6
2894else
2895 echo "$as_me:$LINENO: result: no" >&5
2896echo "${ECHO_T}no" >&6
2897fi
2898
2899 test -n "$AWK" && break
2900done
2901
2902echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2904set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2905if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
2908 cat >conftest.make <<\_ACEOF
2909all:
2910 @echo 'ac_maketemp="$(MAKE)"'
2911_ACEOF
2912# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2913eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2914if test -n "$ac_maketemp"; then
2915 eval ac_cv_prog_make_${ac_make}_set=yes
2916else
2917 eval ac_cv_prog_make_${ac_make}_set=no
2918fi
2919rm -f conftest.make
2920fi
2921if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2922 echo "$as_me:$LINENO: result: yes" >&5
2923echo "${ECHO_T}yes" >&6
2924 SET_MAKE=
2925else
2926 echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6
2928 SET_MAKE="MAKE=${MAKE-make}"
2929fi
2930
2931rm -rf .tst 2>/dev/null
2932mkdir .tst 2>/dev/null
2933if test -d .tst; then
2934 am__leading_dot=.
2935else
2936 am__leading_dot=_
2937fi
2938rmdir .tst 2>/dev/null
2939
2940DEPDIR="${am__leading_dot}deps"
2941
2942 ac_config_commands="$ac_config_commands depfiles"
2943
2944
2945am_make=${MAKE-make}
2946cat > confinc << 'END'
2947am__doit:
2948 @echo done
2949.PHONY: am__doit
2950END
2951# If we don't find an include directive, just comment out the code.
2952echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2953echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2954am__include="#"
2955am__quote=
2956_am_result=none
2957# First try GNU make style include.
2958echo "include confinc" > confmf
2959# We grep out `Entering directory' and `Leaving directory'
2960# messages which can occur if `w' ends up in MAKEFLAGS.
2961# In particular we don't look at `^make:' because GNU make might
2962# be invoked under some other name (usually "gmake"), in which
2963# case it prints its new name instead of `make'.
2964if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2965 am__include=include
2966 am__quote=
2967 _am_result=GNU
2968fi
2969# Now try BSD make style include.
2970if test "$am__include" = "#"; then
2971 echo '.include "confinc"' > confmf
2972 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2973 am__include=.include
2974 am__quote="\""
2975 _am_result=BSD
2976 fi
2977fi
2978
2979
2980echo "$as_me:$LINENO: result: $_am_result" >&5
2981echo "${ECHO_T}$_am_result" >&6
2982rm -f confinc confmf
2983
2984# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2985if test "${enable_dependency_tracking+set}" = set; then
2986 enableval="$enable_dependency_tracking"
2987
2988fi;
2989if test "x$enable_dependency_tracking" != xno; then
2990 am_depcomp="$ac_aux_dir/depcomp"
2991 AMDEPBACKSLASH='\'
2992fi
2993
2994
2995if test "x$enable_dependency_tracking" != xno; then
2996 AMDEP_TRUE=
2997 AMDEP_FALSE='#'
2998else
2999 AMDEP_TRUE='#'
3000 AMDEP_FALSE=
3001fi
3002
3003
3004
ab509236 3005# test to see if srcdir already configured
13b2be9c
DJ
3006if test "`cd $srcdir && pwd`" != "`pwd`" &&
3007 test -f $srcdir/config.status; then
3008 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3009echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3010 { (exit 1); exit 1; }; }
3011fi
3012
3013# test whether we have cygpath
3014if test -z "$CYGPATH_W"; then
3015 if (cygpath --version) >/dev/null 2>/dev/null; then
3016 CYGPATH_W='cygpath -w'
3017 else
3018 CYGPATH_W=echo
3019 fi
3020fi
3021
3022
3023# Define the identity of the package.
3024 PACKAGE=gas
3025 VERSION=${BFD_VERSION}
3026
3027
3028cat >>confdefs.h <<_ACEOF
3029#define PACKAGE "$PACKAGE"
3030_ACEOF
3031
3032
3033cat >>confdefs.h <<_ACEOF
3034#define VERSION "$VERSION"
3035_ACEOF
3036
3037# Some tools Automake needs.
3038
3039ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3040
3041
3042AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3043
3044
3045AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3046
3047
3048AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3049
3050
3051MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3052
13b2be9c
DJ
3053install_sh=${install_sh-"$am_aux_dir/install-sh"}
3054
3055# Installed binaries are usually stripped using `strip' when the user
3056# run `make install-strip'. However `strip' might not be the right
3057# tool to use in cross-compilation environments, therefore Automake
3058# will honor the `STRIP' environment variable to overrule this program.
3059if test "$cross_compiling" != no; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3062set dummy ${ac_tool_prefix}strip; ac_word=$2
3063echo "$as_me:$LINENO: checking for $ac_word" >&5
3064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065if test "${ac_cv_prog_STRIP+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068 if test -n "$STRIP"; then
3069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3070else
13b2be9c
DJ
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082done
3083done
3084
252b5132 3085fi
13b2be9c
DJ
3086fi
3087STRIP=$ac_cv_prog_STRIP
3088if test -n "$STRIP"; then
3089 echo "$as_me:$LINENO: result: $STRIP" >&5
3090echo "${ECHO_T}$STRIP" >&6
c8615825 3091else
13b2be9c
DJ
3092 echo "$as_me:$LINENO: result: no" >&5
3093echo "${ECHO_T}no" >&6
c8615825 3094fi
c8615825 3095
13b2be9c
DJ
3096fi
3097if test -z "$ac_cv_prog_STRIP"; then
3098 ac_ct_STRIP=$STRIP
3099 # Extract the first word of "strip", so it can be a program name with args.
3100set dummy strip; ac_word=$2
3101echo "$as_me:$LINENO: checking for $ac_word" >&5
3102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 3105else
13b2be9c
DJ
3106 if test -n "$ac_ct_STRIP"; then
3107 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3108else
13b2be9c
DJ
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_ac_ct_STRIP="strip"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120done
3121done
3122
3123 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3124fi
252b5132 3125fi
13b2be9c
DJ
3126ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3127if test -n "$ac_ct_STRIP"; then
3128 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3129echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3130else
13b2be9c
DJ
3131 echo "$as_me:$LINENO: result: no" >&5
3132echo "${ECHO_T}no" >&6
252b5132
RH
3133fi
3134
13b2be9c
DJ
3135 STRIP=$ac_ct_STRIP
3136else
3137 STRIP="$ac_cv_prog_STRIP"
3138fi
d6d788bd 3139
252b5132 3140fi
13b2be9c 3141INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3142
13b2be9c
DJ
3143# We need awk for the "check" target. The system "awk" is bad on
3144# some platforms.
8ea2b00f
AM
3145# Always define AMTAR for backward compatibility.
3146
3147AMTAR=${AMTAR-"${am_missing_run}tar"}
3148
3149am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3150
3151
252b5132 3152
d6d788bd 3153
13b2be9c 3154depcc="$CC" am_compiler_list=
d6d788bd 3155
13b2be9c
DJ
3156echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3157echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3158if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3160else
13b2be9c
DJ
3161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3162 # We make a subdir and do the tests there. Otherwise we can end up
3163 # making bogus files that we don't know about and never remove. For
3164 # instance it was reported that on HP-UX the gcc test will end up
3165 # making a dummy file named `D' -- because `-MD' means `put the output
3166 # in D'.
3167 mkdir conftest.dir
3168 # Copy depcomp to subdir because otherwise we won't find it if we're
3169 # using a relative directory.
3170 cp "$am_depcomp" conftest.dir
3171 cd conftest.dir
3172 # We will build objects and dependencies in a subdirectory because
3173 # it helps to detect inapplicable dependency modes. For instance
3174 # both Tru64's cc and ICC support -MD to output dependencies as a
3175 # side effect of compilation, but ICC will put the dependencies in
3176 # the current directory while Tru64 will put them in the object
3177 # directory.
3178 mkdir sub
252b5132 3179
13b2be9c
DJ
3180 am_cv_CC_dependencies_compiler_type=none
3181 if test "$am_compiler_list" = ""; then
3182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3183 fi
3184 for depmode in $am_compiler_list; do
3185 # Setup a source with many dependencies, because some compilers
3186 # like to wrap large dependency lists on column 80 (with \), and
3187 # we should not choose a depcomp mode which is confused by this.
3188 #
3189 # We need to recreate these files for each test, as the compiler may
3190 # overwrite some of them when testing with obscure command lines.
3191 # This happens at least with the AIX C compiler.
3192 : > sub/conftest.c
3193 for i in 1 2 3 4 5 6; do
3194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3196 # Solaris 8's {/usr,}/bin/sh.
3197 touch sub/conftst$i.h
13b2be9c
DJ
3198 done
3199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3200
3201 case $depmode in
3202 nosideeffect)
3203 # after this tag, mechanisms are not by side-effect, so they'll
3204 # only be used when explicitly requested
3205 if test "x$enable_dependency_tracking" = xyes; then
3206 continue
3207 else
3208 break
3209 fi
3210 ;;
3211 none) break ;;
3212 esac
3213 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3214 # mode. It turns out that the SunPro C++ compiler does not properly
3215 # handle `-M -o', and we need to detect this.
3216 if depmode=$depmode \
3217 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3219 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3220 >/dev/null 2>conftest.err &&
3221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3222 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3224 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3225 # or remarks (even with -Werror). So we grep stderr for any message
3226 # that says an option was ignored or not supported.
3227 # When given -MP, icc 7.0 and 7.1 complain thusly:
3228 # icc: Command line warning: ignoring option '-M'; no argument required
3229 # The diagnosis changed in icc 8.0:
3230 # icc: Command line remark: option '-MP' not supported
3231 if (grep 'ignoring option' conftest.err ||
3232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3233 am_cv_CC_dependencies_compiler_type=$depmode
3234 break
3235 fi
3236 fi
3237 done
252b5132 3238
13b2be9c
DJ
3239 cd ..
3240 rm -rf conftest.dir
252b5132 3241else
13b2be9c 3242 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3243fi
3244
252b5132 3245fi
13b2be9c
DJ
3246echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3247echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3248CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3249
13b2be9c
DJ
3250
3251
3252if
3253 test "x$enable_dependency_tracking" != xno \
3254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3255 am__fastdepCC_TRUE=
3256 am__fastdepCC_FALSE='#'
252b5132 3257else
13b2be9c
DJ
3258 am__fastdepCC_TRUE='#'
3259 am__fastdepCC_FALSE=
252b5132
RH
3260fi
3261
d6d788bd
L
3262
3263
13b2be9c 3264
ce2cded5
L
3265ac_ext=c
3266ac_cpp='$CPP $CPPFLAGS'
3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273echo "$as_me:$LINENO: checking for $ac_word" >&5
3274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275if test "${ac_cv_prog_CC+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3277else
ce2cded5
L
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3280else
ce2cded5
L
3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in $PATH
3283do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292done
3293done
d7040cdb 3294
ce2cded5
L
3295fi
3296fi
3297CC=$ac_cv_prog_CC
3298if test -n "$CC"; then
3299 echo "$as_me:$LINENO: result: $CC" >&5
3300echo "${ECHO_T}$CC" >&6
bedf545c 3301else
ce2cded5
L
3302 echo "$as_me:$LINENO: result: no" >&5
3303echo "${ECHO_T}no" >&6
3304fi
d7040cdb 3305
ce2cded5
L
3306fi
3307if test -z "$ac_cv_prog_CC"; then
3308 ac_ct_CC=$CC
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310set dummy gcc; ac_word=$2
3311echo "$as_me:$LINENO: checking for $ac_word" >&5
3312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
ce2cded5
L
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318else
d7040cdb
SE
3319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320for as_dir in $PATH
3321do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
ce2cded5
L
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_ac_ct_CC="gcc"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
d7040cdb 3329 fi
ce2cded5 3330done
d7040cdb
SE
3331done
3332
ce2cded5
L
3333fi
3334fi
3335ac_ct_CC=$ac_cv_prog_ac_ct_CC
3336if test -n "$ac_ct_CC"; then
3337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3338echo "${ECHO_T}$ac_ct_CC" >&6
3339else
3340 echo "$as_me:$LINENO: result: no" >&5
3341echo "${ECHO_T}no" >&6
d7040cdb
SE
3342fi
3343
ce2cded5
L
3344 CC=$ac_ct_CC
3345else
3346 CC="$ac_cv_prog_CC"
3347fi
d7040cdb 3348
ce2cded5
L
3349if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3352set dummy ${ac_tool_prefix}cc; ac_word=$2
3353echo "$as_me:$LINENO: checking for $ac_word" >&5
3354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
ce2cded5
L
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3360else
ce2cded5
L
3361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362for as_dir in $PATH
3363do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_CC="${ac_tool_prefix}cc"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372done
3373done
d7040cdb 3374
252b5132
RH
3375fi
3376fi
ce2cded5
L
3377CC=$ac_cv_prog_CC
3378if test -n "$CC"; then
3379 echo "$as_me:$LINENO: result: $CC" >&5
3380echo "${ECHO_T}$CC" >&6
252b5132 3381else
13b2be9c
DJ
3382 echo "$as_me:$LINENO: result: no" >&5
3383echo "${ECHO_T}no" >&6
252b5132 3384fi
d7040cdb 3385
252b5132 3386fi
ce2cded5
L
3387if test -z "$ac_cv_prog_CC"; then
3388 ac_ct_CC=$CC
3389 # Extract the first word of "cc", so it can be a program name with args.
3390set dummy cc; ac_word=$2
d7040cdb
SE
3391echo "$as_me:$LINENO: checking for $ac_word" >&5
3392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3393if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13b2be9c 3394 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3395else
ce2cded5
L
3396 if test -n "$ac_ct_CC"; then
3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3398else
3399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH
3401do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3406 ac_cv_prog_ac_ct_CC="cc"
d7040cdb
SE
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3409 fi
3410done
3411done
ac48eca1 3412
d7040cdb
SE
3413fi
3414fi
ce2cded5
L
3415ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416if test -n "$ac_ct_CC"; then
3417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3418echo "${ECHO_T}$ac_ct_CC" >&6
3419else
3420 echo "$as_me:$LINENO: result: no" >&5
d7040cdb
SE
3421echo "${ECHO_T}no" >&6
3422fi
f9c19112 3423
ce2cded5
L
3424 CC=$ac_ct_CC
3425else
3426 CC="$ac_cv_prog_CC"
3427fi
3428
3429fi
3430if test -z "$CC"; then
3431 # Extract the first word of "cc", so it can be a program name with args.
3432set dummy cc; ac_word=$2
3433echo "$as_me:$LINENO: checking for $ac_word" >&5
3434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435if test "${ac_cv_prog_CC+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440else
3441 ac_prog_rejected=no
3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450 ac_prog_rejected=yes
3451 continue
3452 fi
3453 ac_cv_prog_CC="cc"
3454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3456 fi
3457done
3458done
3459
3460if test $ac_prog_rejected = yes; then
3461 # We found a bogon in the path, so make sure we never use it.
3462 set dummy $ac_cv_prog_CC
3463 shift
3464 if test $# != 0; then
3465 # We chose a different compiler from the bogus one.
3466 # However, it has the same basename, so the bogon will be chosen
3467 # first if we set CC to just the basename; use the full file name.
3468 shift
3469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3470 fi
3471fi
3472fi
3473fi
3474CC=$ac_cv_prog_CC
3475if test -n "$CC"; then
3476 echo "$as_me:$LINENO: result: $CC" >&5
3477echo "${ECHO_T}$CC" >&6
3478else
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
3481fi
3482
3483fi
3484if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3486 for ac_prog in cl
3487 do
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490echo "$as_me:$LINENO: checking for $ac_word" >&5
3491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492if test "${ac_cv_prog_CC+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497else
3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509done
3510done
3511
3512fi
3513fi
3514CC=$ac_cv_prog_CC
3515if test -n "$CC"; then
3516 echo "$as_me:$LINENO: result: $CC" >&5
3517echo "${ECHO_T}$CC" >&6
3518else
3519 echo "$as_me:$LINENO: result: no" >&5
3520echo "${ECHO_T}no" >&6
3521fi
3522
3523 test -n "$CC" && break
d7040cdb
SE
3524 done
3525fi
ce2cded5
L
3526if test -z "$CC"; then
3527 ac_ct_CC=$CC
3528 for ac_prog in cl
d7040cdb
SE
3529do
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531set dummy $ac_prog; ac_word=$2
3532echo "$as_me:$LINENO: checking for $ac_word" >&5
3533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3534if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536else
ce2cded5
L
3537 if test -n "$ac_ct_CC"; then
3538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3547 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
ac48eca1 3550 fi
d7040cdb
SE
3551done
3552done
ac48eca1 3553
d7040cdb
SE
3554fi
3555fi
ce2cded5
L
3556ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557if test -n "$ac_ct_CC"; then
3558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3559echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3560else
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563fi
ac48eca1 3564
ce2cded5 3565 test -n "$ac_ct_CC" && break
d7040cdb 3566done
ac48eca1 3567
ce2cded5 3568 CC=$ac_ct_CC
d7040cdb 3569fi
ac48eca1 3570
d7040cdb 3571fi
ac48eca1 3572
ac48eca1 3573
7a283e07
RW
3574test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3575echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ce2cded5
L
3577See \`config.log' for more details." >&5
3578echo "$as_me: error: no acceptable C compiler found in \$PATH
3579See \`config.log' for more details." >&2;}
7a283e07 3580 { (exit 1); exit 1; }; }; }
6be7c12c 3581
ce2cded5
L
3582# Provide some information about the compiler.
3583echo "$as_me:$LINENO:" \
3584 "checking for C compiler version" >&5
3585ac_compiler=`set X $ac_compile; echo $2`
3586{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3587 (eval $ac_compiler --version </dev/null >&5) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }
3591{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3592 (eval $ac_compiler -v </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3597 (eval $ac_compiler -V </dev/null >&5) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
ac48eca1 3601
ce2cded5
L
3602echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3603echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3604if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
ce2cded5
L
3607 cat >conftest.$ac_ext <<_ACEOF
3608/* confdefs.h. */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h. */
c8615825 3613
ce2cded5
L
3614int
3615main ()
3616{
3617#ifndef __GNUC__
3618 choke me
3619#endif
3620
3621 ;
3622 return 0;
3623}
3624_ACEOF
3625rm -f conftest.$ac_objext
3626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_c_werror_flag"
3635 || test ! -s conftest.err'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 (eval $ac_try) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3647 ac_compiler_gnu=yes
d7040cdb 3648else
ce2cded5
L
3649 echo "$as_me: failed program was:" >&5
3650sed 's/^/| /' conftest.$ac_ext >&5
3651
3652ac_compiler_gnu=no
d7040cdb 3653fi
ce2cded5
L
3654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3656
ce2cded5
L
3657fi
3658echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3659echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3660GCC=`test $ac_compiler_gnu = yes && echo yes`
3661ac_test_CFLAGS=${CFLAGS+set}
3662ac_save_CFLAGS=$CFLAGS
3663CFLAGS="-g"
3664echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3665echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3666if test "${ac_cv_prog_cc_g+set}" = set; then
d70c5fc7
NC
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
ce2cded5
L
3669 cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h. */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h. */
d7040cdb 3675
ce2cded5
L
3676int
3677main ()
3678{
d7040cdb 3679
ce2cded5
L
3680 ;
3681 return 0;
3682}
3683_ACEOF
3684rm -f conftest.$ac_objext
3685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686 (eval $ac_compile) 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 ac_cv_prog_cc_g=yes
3707else
3708 echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
d70c5fc7 3710
ce2cded5 3711ac_cv_prog_cc_g=no
d70c5fc7 3712fi
ce2cded5 3713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 3714fi
ce2cded5
L
3715echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3716echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3717if test "$ac_test_CFLAGS" = set; then
3718 CFLAGS=$ac_save_CFLAGS
3719elif test $ac_cv_prog_cc_g = yes; then
3720 if test "$GCC" = yes; then
3721 CFLAGS="-g -O2"
3722 else
3723 CFLAGS="-g"
3724 fi
ac48eca1 3725else
ce2cded5
L
3726 if test "$GCC" = yes; then
3727 CFLAGS="-O2"
3728 else
3729 CFLAGS=
3730 fi
ac48eca1 3731fi
ce2cded5
L
3732echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3733echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3734if test "${ac_cv_prog_cc_stdc+set}" = set; then
13b2be9c 3735 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3736else
ce2cded5
L
3737 ac_cv_prog_cc_stdc=no
3738ac_save_CC=$CC
3739cat >conftest.$ac_ext <<_ACEOF
3740/* confdefs.h. */
3741_ACEOF
3742cat confdefs.h >>conftest.$ac_ext
3743cat >>conftest.$ac_ext <<_ACEOF
3744/* end confdefs.h. */
3745#include <stdarg.h>
3746#include <stdio.h>
3747#include <sys/types.h>
3748#include <sys/stat.h>
3749/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3750struct buf { int x; };
3751FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752static char *e (p, i)
3753 char **p;
3754 int i;
3755{
3756 return p[i];
3757}
3758static char *f (char * (*g) (char **, int), char **p, ...)
3759{
3760 char *s;
3761 va_list v;
3762 va_start (v,p);
3763 s = g (p, va_arg (v,int));
3764 va_end (v);
3765 return s;
3766}
3767
3768/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3769 function prototypes and stuff, but not '\xHH' hex character constants.
3770 These don't provoke an error unfortunately, instead are silently treated
3771 as 'x'. The following induces an error, until -std1 is added to get
3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3773 array size at least. It's necessary to write '\x00'==0 to get something
3774 that's true only with -std1. */
3775int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3776
3777int test (int i, double x);
3778struct s1 {int (*f) (int a);};
3779struct s2 {int (*f) (double a);};
3780int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3781int argc;
3782char **argv;
3783int
3784main ()
3785{
3786return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3787 ;
3788 return 0;
3789}
3790_ACEOF
3791# Don't try gcc -ansi; that turns off useful extensions and
3792# breaks some systems' header files.
3793# AIX -qlanglvl=ansi
3794# Ultrix and OSF/1 -std1
3795# HP-UX 10.20 and later -Ae
3796# HP-UX older versions -Aa -D_HPUX_SOURCE
3797# SVR4 -Xc -D__EXTENSIONS__
3798for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3799do
3800 CC="$ac_save_CC $ac_arg"
3801 rm -f conftest.$ac_objext
3802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_prog_cc_stdc=$ac_arg
3824break
3825else
3826 echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829fi
3830rm -f conftest.err conftest.$ac_objext
3831done
3832rm -f conftest.$ac_ext conftest.$ac_objext
3833CC=$ac_save_CC
3834
3835fi
3836
3837case "x$ac_cv_prog_cc_stdc" in
3838 x|xno)
3839 echo "$as_me:$LINENO: result: none needed" >&5
3840echo "${ECHO_T}none needed" >&6 ;;
3841 *)
3842 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3843echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3844 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
3845esac
3846
ce2cded5
L
3847# Some people use a C++ compiler to compile C. Since we use `exit',
3848# in C++ we need to declare it. In case someone uses the same compiler
3849# for both compiling C and C++ we need to have the C++ compiler decide
3850# the declaration of exit, since it's the most demanding environment.
3851cat >conftest.$ac_ext <<_ACEOF
3852#ifndef __cplusplus
3853 choke me
3854#endif
3855_ACEOF
3856rm -f conftest.$ac_objext
3857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 for ac_declaration in \
3879 '' \
3880 'extern "C" void std::exit (int) throw (); using std::exit;' \
3881 'extern "C" void std::exit (int); using std::exit;' \
3882 'extern "C" void exit (int) throw ();' \
3883 'extern "C" void exit (int);' \
3884 'void exit (int);'
3885do
3886 cat >conftest.$ac_ext <<_ACEOF
3887/* confdefs.h. */
3888_ACEOF
3889cat confdefs.h >>conftest.$ac_ext
3890cat >>conftest.$ac_ext <<_ACEOF
3891/* end confdefs.h. */
3892$ac_declaration
3893#include <stdlib.h>
3894int
3895main ()
3896{
3897exit (42);
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext
3903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_c_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 :
3925else
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3928
ce2cded5
L
3929continue
3930fi
3931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932 cat >conftest.$ac_ext <<_ACEOF
3933/* confdefs.h. */
3934_ACEOF
3935cat confdefs.h >>conftest.$ac_ext
3936cat >>conftest.$ac_ext <<_ACEOF
3937/* end confdefs.h. */
3938$ac_declaration
3939int
3940main ()
3941{
3942exit (42);
3943 ;
3944 return 0;
3945}
3946_ACEOF
3947rm -f conftest.$ac_objext
3948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3949 (eval $ac_compile) 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag"
3957 || test ! -s conftest.err'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; } &&
3963 { ac_try='test -s conftest.$ac_objext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 (eval $ac_try) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3969 break
3970else
3971 echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3973
ce2cded5
L
3974fi
3975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3976done
3977rm -f conftest*
3978if test -n "$ac_declaration"; then
3979 echo '#ifdef __cplusplus' >>confdefs.h
3980 echo $ac_declaration >>confdefs.h
3981 echo '#endif' >>confdefs.h
3982fi
d7040cdb 3983
ce2cded5
L
3984else
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3987
ce2cded5
L
3988fi
3989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990ac_ext=c
3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
3995
3996
ce2cded5
L
3997cat >>confdefs.h <<\_ACEOF
3998#define _GNU_SOURCE 1
3999_ACEOF
d7040cdb
SE
4000
4001
7357c5b6
AM
4002ac_ext=c
4003ac_cpp='$CPP $CPPFLAGS'
4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4008echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4009# On Suns, sometimes $CPP names a directory.
4010if test -n "$CPP" && test -d "$CPP"; then
4011 CPP=
4012fi
4013if test -z "$CPP"; then
4014 if test "${ac_cv_prog_CPP+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017 # Double quotes because CPP needs to be expanded
4018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4019 do
4020 ac_preproc_ok=false
4021for ac_c_preproc_warn_flag in '' yes
4022do
4023 # Use a header file that comes with gcc, so configuring glibc
4024 # with a fresh cross-compiler works.
4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026 # <limits.h> exists even on freestanding compilers.
4027 # On the NeXT, cc -E runs the code through the compiler's parser,
4028 # not just through cpp. "Syntax error" is here to catch this case.
4029 cat >conftest.$ac_ext <<_ACEOF
4030/* confdefs.h. */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h. */
4035#ifdef __STDC__
4036# include <limits.h>
4037#else
4038# include <assert.h>
4039#endif
4040 Syntax error
4041_ACEOF
4042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4044 ac_status=$?
4045 grep -v '^ *+' conftest.er1 >conftest.err
4046 rm -f conftest.er1
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } >/dev/null; then
4050 if test -s conftest.err; then
4051 ac_cpp_err=$ac_c_preproc_warn_flag
4052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4053 else
4054 ac_cpp_err=
4055 fi
4056else
4057 ac_cpp_err=yes
4058fi
4059if test -z "$ac_cpp_err"; then
4060 :
4061else
4062 echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4064
7357c5b6
AM
4065 # Broken: fails on valid input.
4066continue
4067fi
4068rm -f conftest.err conftest.$ac_ext
d7040cdb 4069
7357c5b6
AM
4070 # OK, works on sane cases. Now check whether non-existent headers
4071 # can be detected and how.
4072 cat >conftest.$ac_ext <<_ACEOF
4073/* confdefs.h. */
4074_ACEOF
4075cat confdefs.h >>conftest.$ac_ext
4076cat >>conftest.$ac_ext <<_ACEOF
4077/* end confdefs.h. */
4078#include <ac_nonexistent.h>
4079_ACEOF
4080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null; then
4088 if test -s conftest.err; then
4089 ac_cpp_err=$ac_c_preproc_warn_flag
4090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4091 else
4092 ac_cpp_err=
4093 fi
4094else
4095 ac_cpp_err=yes
4096fi
4097if test -z "$ac_cpp_err"; then
4098 # Broken: success on invalid input.
4099continue
4100else
4101 echo "$as_me: failed program was:" >&5
4102sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4103
7357c5b6
AM
4104 # Passes both tests.
4105ac_preproc_ok=:
4106break
4107fi
4108rm -f conftest.err conftest.$ac_ext
d7040cdb 4109
7357c5b6
AM
4110done
4111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4112rm -f conftest.err conftest.$ac_ext
4113if $ac_preproc_ok; then
4114 break
4115fi
d7040cdb 4116
7357c5b6
AM
4117 done
4118 ac_cv_prog_CPP=$CPP
d7040cdb 4119
7357c5b6
AM
4120fi
4121 CPP=$ac_cv_prog_CPP
4122else
4123 ac_cv_prog_CPP=$CPP
4124fi
4125echo "$as_me:$LINENO: result: $CPP" >&5
4126echo "${ECHO_T}$CPP" >&6
4127ac_preproc_ok=false
4128for ac_c_preproc_warn_flag in '' yes
4129do
4130 # Use a header file that comes with gcc, so configuring glibc
4131 # with a fresh cross-compiler works.
4132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133 # <limits.h> exists even on freestanding compilers.
4134 # On the NeXT, cc -E runs the code through the compiler's parser,
4135 # not just through cpp. "Syntax error" is here to catch this case.
4136 cat >conftest.$ac_ext <<_ACEOF
4137/* confdefs.h. */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
4141/* end confdefs.h. */
4142#ifdef __STDC__
4143# include <limits.h>
4144#else
4145# include <assert.h>
4146#endif
4147 Syntax error
4148_ACEOF
4149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } >/dev/null; then
4157 if test -s conftest.err; then
4158 ac_cpp_err=$ac_c_preproc_warn_flag
4159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4160 else
4161 ac_cpp_err=
4162 fi
4163else
4164 ac_cpp_err=yes
4165fi
4166if test -z "$ac_cpp_err"; then
4167 :
4168else
4169 echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4171
7357c5b6
AM
4172 # Broken: fails on valid input.
4173continue
4174fi
4175rm -f conftest.err conftest.$ac_ext
d7040cdb 4176
7357c5b6
AM
4177 # OK, works on sane cases. Now check whether non-existent headers
4178 # can be detected and how.
4179 cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h. */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
4184/* end confdefs.h. */
4185#include <ac_nonexistent.h>
4186_ACEOF
4187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev/null; then
4195 if test -s conftest.err; then
4196 ac_cpp_err=$ac_c_preproc_warn_flag
4197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4198 else
4199 ac_cpp_err=
4200 fi
4201else
4202 ac_cpp_err=yes
4203fi
4204if test -z "$ac_cpp_err"; then
4205 # Broken: success on invalid input.
4206continue
4207else
4208 echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4210
7357c5b6
AM
4211 # Passes both tests.
4212ac_preproc_ok=:
4213break
4214fi
4215rm -f conftest.err conftest.$ac_ext
d7040cdb 4216
7357c5b6
AM
4217done
4218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219rm -f conftest.err conftest.$ac_ext
4220if $ac_preproc_ok; then
4221 :
4222else
4223 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4224echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4226See \`config.log' for more details." >&5
4227echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4228See \`config.log' for more details." >&2;}
4229 { (exit 1); exit 1; }; }; }
4230fi
ac48eca1 4231
7357c5b6
AM
4232ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4237
ac48eca1 4238
7357c5b6
AM
4239echo "$as_me:$LINENO: checking for egrep" >&5
4240echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4241if test "${ac_cv_prog_egrep+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4245 then ac_cv_prog_egrep='grep -E'
4246 else ac_cv_prog_egrep='egrep'
4247 fi
4248fi
4249echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4250echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4251 EGREP=$ac_cv_prog_egrep
ac48eca1 4252
d7040cdb 4253
7357c5b6
AM
4254echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4255echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4256if test "${ac_cv_header_stdc+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258else
4259 cat >conftest.$ac_ext <<_ACEOF
4260/* confdefs.h. */
4261_ACEOF
4262cat confdefs.h >>conftest.$ac_ext
4263cat >>conftest.$ac_ext <<_ACEOF
4264/* end confdefs.h. */
4265#include <stdlib.h>
4266#include <stdarg.h>
4267#include <string.h>
4268#include <float.h>
d7040cdb 4269
7357c5b6
AM
4270int
4271main ()
4272{
d7040cdb 4273
7357c5b6
AM
4274 ;
4275 return 0;
4276}
4277_ACEOF
4278rm -f conftest.$ac_objext
4279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_cv_header_stdc=yes
4301else
4302 echo "$as_me: failed program was:" >&5
4303sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4304
7357c5b6
AM
4305ac_cv_header_stdc=no
4306fi
4307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4308
7357c5b6
AM
4309if test $ac_cv_header_stdc = yes; then
4310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4311 cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h. */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h. */
4317#include <string.h>
d7040cdb 4318
7357c5b6
AM
4319_ACEOF
4320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "memchr" >/dev/null 2>&1; then
4322 :
ce2cded5 4323else
7357c5b6
AM
4324 ac_cv_header_stdc=no
4325fi
4326rm -f conftest*
d7040cdb 4327
7357c5b6 4328fi
d7040cdb 4329
7357c5b6
AM
4330if test $ac_cv_header_stdc = yes; then
4331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332 cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h. */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h. */
4338#include <stdlib.h>
ac48eca1 4339
7357c5b6
AM
4340_ACEOF
4341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342 $EGREP "free" >/dev/null 2>&1; then
4343 :
4344else
4345 ac_cv_header_stdc=no
4346fi
4347rm -f conftest*
d7040cdb 4348
7357c5b6 4349fi
d7040cdb 4350
7357c5b6
AM
4351if test $ac_cv_header_stdc = yes; then
4352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4353 if test "$cross_compiling" = yes; then
4354 :
4355else
4356 cat >conftest.$ac_ext <<_ACEOF
4357/* confdefs.h. */
4358_ACEOF
4359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
4361/* end confdefs.h. */
4362#include <ctype.h>
4363#if ((' ' & 0x0FF) == 0x020)
4364# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4365# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4366#else
4367# define ISLOWER(c) \
4368 (('a' <= (c) && (c) <= 'i') \
4369 || ('j' <= (c) && (c) <= 'r') \
4370 || ('s' <= (c) && (c) <= 'z'))
4371# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4372#endif
d7040cdb 4373
7357c5b6
AM
4374#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4375int
4376main ()
4377{
4378 int i;
4379 for (i = 0; i < 256; i++)
4380 if (XOR (islower (i), ISLOWER (i))
4381 || toupper (i) != TOUPPER (i))
4382 exit(2);
4383 exit (0);
4384}
4385_ACEOF
4386rm -f conftest$ac_exeext
4387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388 (eval $ac_link) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 :
4398else
4399 echo "$as_me: program exited with status $ac_status" >&5
4400echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4402
7357c5b6
AM
4403( exit $ac_status )
4404ac_cv_header_stdc=no
4405fi
4406rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4407fi
4408fi
4409fi
4410echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4411echo "${ECHO_T}$ac_cv_header_stdc" >&6
4412if test $ac_cv_header_stdc = yes; then
d7040cdb 4413
7357c5b6
AM
4414cat >>confdefs.h <<\_ACEOF
4415#define STDC_HEADERS 1
4416_ACEOF
d7040cdb 4417
7357c5b6 4418fi
d7040cdb 4419
7357c5b6 4420# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4421
4422
4423
4424
4425
ce2cded5
L
4426
4427
13b2be9c 4428
ce2cded5 4429
7357c5b6
AM
4430for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4431 inttypes.h stdint.h unistd.h
4432do
4433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434echo "$as_me:$LINENO: checking for $ac_header" >&5
4435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4436if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439 cat >conftest.$ac_ext <<_ACEOF
4440/* confdefs.h. */
4441_ACEOF
4442cat confdefs.h >>conftest.$ac_ext
4443cat >>conftest.$ac_ext <<_ACEOF
4444/* end confdefs.h. */
4445$ac_includes_default
ce2cded5 4446
7357c5b6
AM
4447#include <$ac_header>
4448_ACEOF
4449rm -f conftest.$ac_objext
4450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -z "$ac_c_werror_flag"
4459 || test ! -s conftest.err'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 eval "$as_ac_Header=yes"
4472else
4473 echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4475
7357c5b6
AM
4476eval "$as_ac_Header=no"
4477fi
4478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4479fi
4480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4482if test `eval echo '${'$as_ac_Header'}'` = yes; then
4483 cat >>confdefs.h <<_ACEOF
4484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4485_ACEOF
ce2cded5 4486
7357c5b6 4487fi
ce2cded5 4488
7357c5b6 4489done
ce2cded5
L
4490
4491
4492
7357c5b6
AM
4493 if test "${ac_cv_header_minix_config_h+set}" = set; then
4494 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4495echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4496if test "${ac_cv_header_minix_config_h+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498fi
4499echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4500echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4501else
4502 # Is the header compilable?
4503echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4504echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4505cat >conftest.$ac_ext <<_ACEOF
4506/* confdefs.h. */
4507_ACEOF
4508cat confdefs.h >>conftest.$ac_ext
4509cat >>conftest.$ac_ext <<_ACEOF
4510/* end confdefs.h. */
4511$ac_includes_default
4512#include <minix/config.h>
4513_ACEOF
4514rm -f conftest.$ac_objext
4515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516 (eval $ac_compile) 2>conftest.er1
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag"
4524 || test ! -s conftest.err'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; } &&
4530 { ac_try='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 ac_header_compiler=yes
4537else
4538 echo "$as_me: failed program was:" >&5
4539sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4540
7357c5b6
AM
4541ac_header_compiler=no
4542fi
4543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4545echo "${ECHO_T}$ac_header_compiler" >&6
ce2cded5 4546
7357c5b6
AM
4547# Is the header present?
4548echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4549echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4550cat >conftest.$ac_ext <<_ACEOF
4551/* confdefs.h. */
4552_ACEOF
4553cat confdefs.h >>conftest.$ac_ext
4554cat >>conftest.$ac_ext <<_ACEOF
4555/* end confdefs.h. */
4556#include <minix/config.h>
4557_ACEOF
4558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } >/dev/null; then
4566 if test -s conftest.err; then
4567 ac_cpp_err=$ac_c_preproc_warn_flag
4568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4569 else
4570 ac_cpp_err=
4571 fi
4572else
4573 ac_cpp_err=yes
4574fi
4575if test -z "$ac_cpp_err"; then
4576 ac_header_preproc=yes
4577else
4578 echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4580
7357c5b6
AM
4581 ac_header_preproc=no
4582fi
4583rm -f conftest.err conftest.$ac_ext
4584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4585echo "${ECHO_T}$ac_header_preproc" >&6
ce2cded5 4586
7357c5b6
AM
4587# So? What about this header?
4588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4589 yes:no: )
4590 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4591echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4593echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4594 ac_header_preproc=yes
4595 ;;
4596 no:yes:* )
4597 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4598echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4600echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4602echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4604echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4606echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4608echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4609 (
4610 cat <<\_ASBOX
4611## ------------------------------------------ ##
4612## Report this to the AC_PACKAGE_NAME lists. ##
4613## ------------------------------------------ ##
4614_ASBOX
4615 ) |
4616 sed "s/^/$as_me: WARNING: /" >&2
4617 ;;
4618esac
4619echo "$as_me:$LINENO: checking for minix/config.h" >&5
4620echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4621if test "${ac_cv_header_minix_config_h+set}" = set; then
13b2be9c 4622 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4623else
7357c5b6 4624 ac_cv_header_minix_config_h=$ac_header_preproc
ac48eca1 4625fi
7357c5b6
AM
4626echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4627echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
ac48eca1 4628
7357c5b6
AM
4629fi
4630if test $ac_cv_header_minix_config_h = yes; then
4631 MINIX=yes
4632else
4633 MINIX=
4634fi
d7040cdb
SE
4635
4636
7357c5b6 4637 if test "$MINIX" = yes; then
d7040cdb 4638
7357c5b6
AM
4639cat >>confdefs.h <<\_ACEOF
4640#define _POSIX_SOURCE 1
4641_ACEOF
d7040cdb
SE
4642
4643
7357c5b6
AM
4644cat >>confdefs.h <<\_ACEOF
4645#define _POSIX_1_SOURCE 2
4646_ACEOF
d7040cdb
SE
4647
4648
7357c5b6
AM
4649cat >>confdefs.h <<\_ACEOF
4650#define _MINIX 1
4651_ACEOF
d7040cdb 4652
7357c5b6 4653 fi
d7040cdb
SE
4654
4655
13b2be9c 4656
7357c5b6
AM
4657 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4658echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4659if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
ce2cded5 4660 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4661else
7357c5b6
AM
4662 cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h. */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h. */
ac48eca1 4668
7357c5b6
AM
4669# define __EXTENSIONS__ 1
4670 $ac_includes_default
4671int
4672main ()
4673{
13b2be9c 4674
7357c5b6
AM
4675 ;
4676 return 0;
4677}
4678_ACEOF
4679rm -f conftest.$ac_objext
4680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>conftest.er1
4682 ac_status=$?
4683 grep -v '^ *+' conftest.er1 >conftest.err
4684 rm -f conftest.er1
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -z "$ac_c_werror_flag"
4689 || test ! -s conftest.err'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try='test -s conftest.$ac_objext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 ac_cv_safe_to_define___extensions__=yes
d6d788bd 4702else
7357c5b6
AM
4703 echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706ac_cv_safe_to_define___extensions__=no
d6d788bd 4707fi
7357c5b6
AM
4708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709fi
4710echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4711echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4712 test $ac_cv_safe_to_define___extensions__ = yes &&
4713 cat >>confdefs.h <<\_ACEOF
4714#define __EXTENSIONS__ 1
4715_ACEOF
d6d788bd 4716
7357c5b6
AM
4717 cat >>confdefs.h <<\_ACEOF
4718#define _ALL_SOURCE 1
4719_ACEOF
d6d788bd 4720
7357c5b6
AM
4721 cat >>confdefs.h <<\_ACEOF
4722#define _GNU_SOURCE 1
4723_ACEOF
252b5132 4724
7357c5b6
AM
4725 cat >>confdefs.h <<\_ACEOF
4726#define _POSIX_PTHREAD_SEMANTICS 1
4727_ACEOF
252b5132 4728
7357c5b6
AM
4729 cat >>confdefs.h <<\_ACEOF
4730#define _TANDEM_SOURCE 1
4731_ACEOF
d6d788bd 4732
a74801ba 4733
a74801ba 4734
13b2be9c 4735
252b5132 4736
7357c5b6
AM
4737macro_version='2.1a'
4738macro_revision='1.2435'
4867be41 4739
ce2cded5
L
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
7357c5b6
AM
4751ltmain="$ac_aux_dir/ltmain.sh"
4752
4753# Set options
4754
4755enable_dlopen=no
4756
4757
4758enable_win32_dll=no
4759
4760
4761# Check whether --enable-shared or --disable-shared was given.
4762if test "${enable_shared+set}" = set; then
4763 enableval="$enable_shared"
4764 p=${PACKAGE-default}
4765 case $enableval in
4766 yes) enable_shared=yes ;;
4767 no) enable_shared=no ;;
4768 *)
4769 enable_shared=no
4770 # Look at the argument we got. We use all the common list separators.
4771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4772 for pkg in $enableval; do
4773 IFS="$lt_save_ifs"
4774 if test "X$pkg" = "X$p"; then
4775 enable_shared=yes
4776 fi
4777 done
4778 IFS="$lt_save_ifs"
4779 ;;
4780 esac
4781else
4782 enable_shared=yes
4783fi;
4784
4785
4786
4787
4788
4789
4790
4791
4792# Check whether --enable-static or --disable-static was given.
4793if test "${enable_static+set}" = set; then
4794 enableval="$enable_static"
4795 p=${PACKAGE-default}
4796 case $enableval in
4797 yes) enable_static=yes ;;
4798 no) enable_static=no ;;
4799 *)
4800 enable_static=no
4801 # Look at the argument we got. We use all the common list separators.
4802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4803 for pkg in $enableval; do
4804 IFS="$lt_save_ifs"
4805 if test "X$pkg" = "X$p"; then
4806 enable_static=yes
4807 fi
4808 done
4809 IFS="$lt_save_ifs"
4810 ;;
4811 esac
4812else
4813 enable_static=yes
4814fi;
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824# Check whether --with-pic or --without-pic was given.
4825if test "${with_pic+set}" = set; then
4826 withval="$with_pic"
4827 pic_mode="$withval"
4828else
4829 pic_mode=default
4830fi;
4831
4832test -z "$pic_mode" && pic_mode=default
4833
4834
4835
4836
4837
4838
4839
4840# Check whether --enable-fast-install or --disable-fast-install was given.
4841if test "${enable_fast_install+set}" = set; then
4842 enableval="$enable_fast_install"
4843 p=${PACKAGE-default}
4844 case $enableval in
4845 yes) enable_fast_install=yes ;;
4846 no) enable_fast_install=no ;;
4847 *)
4848 enable_fast_install=no
4849 # Look at the argument we got. We use all the common list separators.
4850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4851 for pkg in $enableval; do
4852 IFS="$lt_save_ifs"
4853 if test "X$pkg" = "X$p"; then
4854 enable_fast_install=yes
4855 fi
4856 done
4857 IFS="$lt_save_ifs"
4858 ;;
4859 esac
4860else
4861 enable_fast_install=yes
4862fi;
4863
4864
4865
4866
4867
4868
4869
4870
4871echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4872echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4873if test "${lt_cv_path_SED+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875else
4876 # Loop through the user's path and test for sed and gsed.
4877# Then use that list of sed's as ones to test for truncation.
4878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879for as_dir in $PATH
4880do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for lt_ac_prog in sed gsed; do
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4886 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4887 fi
4888 done
4889 done
4890done
4891IFS=$as_save_IFS
4892lt_ac_max=0
4893lt_ac_count=0
4894# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4895# along with /bin/sed that truncates output.
4896for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4897 test ! -f $lt_ac_sed && continue
4898 cat /dev/null > conftest.in
4899 lt_ac_count=0
4900 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4901 # Check for GNU sed and select it if it is found.
4902 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4903 lt_cv_path_SED=$lt_ac_sed
4904 break
4905 fi
4906 while true; do
4907 cat conftest.in conftest.in >conftest.tmp
4908 mv conftest.tmp conftest.in
4909 cp conftest.in conftest.nl
4910 echo >>conftest.nl
4911 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4912 cmp -s conftest.out conftest.nl || break
4913 # 10000 chars as input seems more than enough
4914 test $lt_ac_count -gt 10 && break
4915 lt_ac_count=`expr $lt_ac_count + 1`
4916 if test $lt_ac_count -gt $lt_ac_max; then
4917 lt_ac_max=$lt_ac_count
4918 lt_cv_path_SED=$lt_ac_sed
4919 fi
4920 done
4921done
4922
4923fi
4924
4925SED=$lt_cv_path_SED
4926
4927echo "$as_me:$LINENO: result: $SED" >&5
4928echo "${ECHO_T}$SED" >&6
4929
4930test -z "$SED" && SED=sed
4931Xsed="$SED -e 1s/^X//"
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943echo "$as_me:$LINENO: checking for fgrep" >&5
4944echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4945if test "${ac_cv_prog_fgrep+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4949 then ac_cv_prog_fgrep='grep -F'
4950 else ac_cv_prog_fgrep='fgrep'
4951 fi
4952fi
4953echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4954echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4955 FGREP=$ac_cv_prog_fgrep
4956
4957
4958test -z "$GREP" && GREP=grep
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978# Check whether --with-gnu-ld or --without-gnu-ld was given.
4979if test "${with_gnu_ld+set}" = set; then
4980 withval="$with_gnu_ld"
4981 test "$withval" = no || with_gnu_ld=yes
4982else
4983 with_gnu_ld=no
ce2cded5
L
4984fi;
4985ac_prog=ld
4986if test "$GCC" = yes; then
4987 # Check if gcc -print-prog-name=ld gives a path.
4988 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4989echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4990 case $host in
4991 *-*-mingw*)
4992 # gcc leaves a trailing carriage return which upsets mingw
4993 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4994 *)
4995 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4996 esac
4997 case $ac_prog in
4998 # Accept absolute paths.
4999 [\\/]* | ?:[\\/]*)
5000 re_direlt='/[^/][^/]*/\.\./'
5001 # Canonicalize the pathname of ld
5002 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5003 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5004 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5005 done
5006 test -z "$LD" && LD="$ac_prog"
5007 ;;
5008 "")
5009 # If it fails, then pretend we aren't using GCC.
5010 ac_prog=ld
5011 ;;
5012 *)
5013 # If it is relative, then search for the first ld in PATH.
5014 with_gnu_ld=unknown
5015 ;;
5016 esac
5017elif test "$with_gnu_ld" = yes; then
5018 echo "$as_me:$LINENO: checking for GNU ld" >&5
5019echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5020else
5021 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5022echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5023fi
5024if test "${lt_cv_path_LD+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
5027 if test -z "$LD"; then
5028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5029 for ac_dir in $PATH; do
5030 IFS="$lt_save_ifs"
5031 test -z "$ac_dir" && ac_dir=.
5032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5033 lt_cv_path_LD="$ac_dir/$ac_prog"
5034 # Check to see if the program is GNU ld. I'd rather use --version,
5035 # but apparently some variants of GNU ld only accept -v.
5036 # Break only if it was the GNU/non-GNU ld that we prefer.
5037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5038 *GNU* | *'with BFD'*)
5039 test "$with_gnu_ld" != no && break
5040 ;;
5041 *)
5042 test "$with_gnu_ld" != yes && break
5043 ;;
5044 esac
5045 fi
5046 done
5047 IFS="$lt_save_ifs"
5048else
5049 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5050fi
5051fi
5052
5053LD="$lt_cv_path_LD"
5054if test -n "$LD"; then
5055 echo "$as_me:$LINENO: result: $LD" >&5
5056echo "${ECHO_T}$LD" >&6
5057else
5058 echo "$as_me:$LINENO: result: no" >&5
5059echo "${ECHO_T}no" >&6
5060fi
5061test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5062echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5063 { (exit 1); exit 1; }; }
5064echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5065echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5066if test "${lt_cv_prog_gnu_ld+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5070case `$LD -v 2>&1 </dev/null` in
5071*GNU* | *'with BFD'*)
5072 lt_cv_prog_gnu_ld=yes
5073 ;;
5074*)
5075 lt_cv_prog_gnu_ld=no
5076 ;;
5077esac
5078fi
5079echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5080echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5081with_gnu_ld=$lt_cv_prog_gnu_ld
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5093echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5094if test "${lt_cv_path_NM+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097 if test -n "$NM"; then
5098 # Let the user override the test.
5099 lt_cv_path_NM="$NM"
5100else
5101 lt_nm_to_check="${ac_tool_prefix}nm"
5102 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5103 lt_nm_to_check="$lt_nm_to_check nm"
5104 fi
5105 for lt_tmp_nm in $lt_nm_to_check; do
5106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5107 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5108 IFS="$lt_save_ifs"
5109 test -z "$ac_dir" && ac_dir=.
5110 tmp_nm="$ac_dir/$lt_tmp_nm"
5111 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5112 # Check to see if the nm accepts a BSD-compat flag.
5113 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5114 # nm: unknown option "B" ignored
5115 # Tru64's nm complains that /dev/null is an invalid object file
5116 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5117 */dev/null* | *'Invalid file or object type'*)
5118 lt_cv_path_NM="$tmp_nm -B"
5119 break
5120 ;;
5121 *)
5122 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5123 */dev/null*)
5124 lt_cv_path_NM="$tmp_nm -p"
5125 break
5126 ;;
5127 *)
5128 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5129 continue # so that we can try to find one that supports BSD flags
5130 ;;
5131 esac
5132 ;;
5133 esac
5134 fi
5135 done
5136 IFS="$lt_save_ifs"
5137 done
5138 : ${lt_cv_path_NM=no}
5139fi
5140fi
5141echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5142echo "${ECHO_T}$lt_cv_path_NM" >&6
5143if test "$lt_cv_path_NM" != "no"; then
5144 NM="$lt_cv_path_NM"
5145else
5146 # Didn't find any BSD compatible name lister, look for dumpbin.
5147 if test -n "$ac_tool_prefix"; then
5148 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5149 do
5150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5151set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d7040cdb
SE
5152echo "$as_me:$LINENO: checking for $ac_word" >&5
5153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 5154if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d7040cdb
SE
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156else
ce2cded5
L
5157 if test -n "$DUMPBIN"; then
5158 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 5167 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
d7040cdb
SE
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
d70c5fc7 5170 fi
d7040cdb
SE
5171done
5172done
d70c5fc7 5173
d7040cdb
SE
5174fi
5175fi
ce2cded5
L
5176DUMPBIN=$ac_cv_prog_DUMPBIN
5177if test -n "$DUMPBIN"; then
5178 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5179echo "${ECHO_T}$DUMPBIN" >&6
bedf545c 5180else
d7040cdb
SE
5181 echo "$as_me:$LINENO: result: no" >&5
5182echo "${ECHO_T}no" >&6
5183fi
13b2be9c 5184
ce2cded5
L
5185 test -n "$DUMPBIN" && break
5186 done
5187fi
5188if test -z "$DUMPBIN"; then
5189 ac_ct_DUMPBIN=$DUMPBIN
5190 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5191do
5192 # Extract the first word of "$ac_prog", so it can be a program name with args.
5193set dummy $ac_prog; ac_word=$2
5194echo "$as_me:$LINENO: checking for $ac_word" >&5
5195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5198else
ce2cded5
L
5199 if test -n "$ac_ct_DUMPBIN"; then
5200 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5201else
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214done
5215
5216fi
5217fi
5218ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5219if test -n "$ac_ct_DUMPBIN"; then
5220 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5221echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5222else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
d7040cdb
SE
5225fi
5226
ce2cded5
L
5227 test -n "$ac_ct_DUMPBIN" && break
5228done
5229test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
13b2be9c 5230
ce2cded5
L
5231 DUMPBIN=$ac_ct_DUMPBIN
5232fi
13b2be9c 5233
bedf545c 5234
ce2cded5
L
5235 if test "$DUMPBIN" != ":"; then
5236 NM="$DUMPBIN"
5237 fi
5238fi
5239test -z "$NM" && NM=nm
6840198f 5240
13b2be9c 5241
ac48eca1 5242
d7040cdb 5243
ce2cded5
L
5244
5245
5246echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5247echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5248if test "${lt_cv_nm_interface+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250else
5251 lt_cv_nm_interface="BSD nm"
5252 echo "int some_variable = 0;" > conftest.$ac_ext
7357c5b6 5253 (eval echo "\"\$as_me:5253: $ac_compile\"" >&5)
ce2cded5
L
5254 (eval "$ac_compile" 2>conftest.err)
5255 cat conftest.err >&5
7357c5b6 5256 (eval echo "\"\$as_me:5256: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5257 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5258 cat conftest.err >&5
7357c5b6 5259 (eval echo "\"\$as_me:5259: output\"" >&5)
ce2cded5
L
5260 cat conftest.out >&5
5261 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5262 lt_cv_nm_interface="MS dumpbin"
5263 fi
5264 rm -f conftest*
5265fi
5266echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5267echo "${ECHO_T}$lt_cv_nm_interface" >&6
5268
5269echo "$as_me:$LINENO: checking whether ln -s works" >&5
5270echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5271LN_S=$as_ln_s
5272if test "$LN_S" = "ln -s"; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274echo "${ECHO_T}yes" >&6
5275else
5276 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5277echo "${ECHO_T}no, using $LN_S" >&6
5278fi
5279
5280# find the maximum length of command line arguments
5281echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5282echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5283if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285else
5286 i=0
5287 teststring="ABCD"
5288
5289 case $build_os in
5290 msdosdjgpp*)
5291 # On DJGPP, this test can blow up pretty badly due to problems in libc
5292 # (any single argument exceeding 2000 bytes causes a buffer overrun
5293 # during glob expansion). Even if it were fixed, the result of this
5294 # check would be larger than it should be.
5295 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5296 ;;
5297
5298 gnu*)
5299 # Under GNU Hurd, this test is not required because there is
5300 # no limit to the length of command line arguments.
5301 # Libtool will interpret -1 as no limit whatsoever
5302 lt_cv_sys_max_cmd_len=-1;
5303 ;;
5304
5305 cygwin* | mingw*)
5306 # On Win9x/ME, this test blows up -- it succeeds, but takes
5307 # about 5 minutes as the teststring grows exponentially.
5308 # Worse, since 9x/ME are not pre-emptively multitasking,
5309 # you end up with a "frozen" computer, even though with patience
5310 # the test eventually succeeds (with a max line length of 256k).
5311 # Instead, let's just punt: use the minimum linelength reported by
5312 # all of the supported platforms: 8192 (on NT/2K/XP).
5313 lt_cv_sys_max_cmd_len=8192;
5314 ;;
5315
5316 amigaos*)
5317 # On AmigaOS with pdksh, this test takes hours, literally.
5318 # So we just punt and use a minimum line length of 8192.
5319 lt_cv_sys_max_cmd_len=8192;
5320 ;;
5321
5322 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5323 # This has been around since 386BSD, at least. Likely further.
5324 if test -x /sbin/sysctl; then
5325 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5326 elif test -x /usr/sbin/sysctl; then
5327 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5328 else
5329 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5330 fi
5331 # And add a safety zone
5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5334 ;;
5335
5336 interix*)
5337 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5338 lt_cv_sys_max_cmd_len=196608
5339 ;;
5340
5341 osf*)
5342 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5343 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5344 # nice to cause kernel panics so lets avoid the loop below.
5345 # First set a reasonable default.
5346 lt_cv_sys_max_cmd_len=16384
5347 #
5348 if test -x /sbin/sysconfig; then
5349 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5350 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5351 esac
5352 fi
5353 ;;
5354 sco3.2v5*)
5355 lt_cv_sys_max_cmd_len=102400
5356 ;;
5357 sysv5* | sco5v6* | sysv4.2uw2*)
5358 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5359 if test -n "$kargmax"; then
5360 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5361 else
5362 lt_cv_sys_max_cmd_len=32768
5363 fi
d7040cdb
SE
5364 ;;
5365 *)
ce2cded5
L
5366 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5367 if test -n $lt_cv_sys_max_cmd_len; then
5368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5370 else
5371 # Make teststring a little bigger before we do anything with it.
5372 # a 1K string should be a reasonable start.
5373 for i in 1 2 3 4 5 6 7 8 ; do
5374 teststring=$teststring$teststring
5375 done
5376 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5377 # If test is not a shell built-in, we'll probably end up computing a
5378 # maximum length that is only half of the actual maximum length, but
5379 # we can't tell.
5380 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5381 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5382 test $i != 17 # 1/2 MB should be enough
5383 do
5384 i=`expr $i + 1`
5385 teststring=$teststring$teststring
5386 done
5387 # Only check the string length outside the loop.
5388 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5389 teststring=
5390 # Add a significant safety factor because C++ compilers can tack on
5391 # massive amounts of additional arguments before passing them to the
5392 # linker. It appears as though 1/2 is a usable value.
5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5394 fi
d7040cdb
SE
5395 ;;
5396 esac
252b5132 5397
ce2cded5 5398fi
d6d788bd 5399
ce2cded5
L
5400if test -n $lt_cv_sys_max_cmd_len ; then
5401 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5402echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5403else
5404 echo "$as_me:$LINENO: result: none" >&5
5405echo "${ECHO_T}none" >&6
5406fi
5407max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5408
d6d788bd 5409
13b2be9c 5410
13b2be9c 5411
bedf545c 5412
252b5132 5413
bedf545c 5414
ce2cded5
L
5415: ${CP="cp -f"}
5416: ${MV="mv -f"}
5417: ${RM="rm -f"}
d6d788bd 5418
ce2cded5
L
5419echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5420echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5421# Try some XSI features
5422xsi_shell=no
5423( _lt_dummy="a/b/c"
5424 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5425 = c,a/b,, ) >/dev/null 2>&1 \
5426 && xsi_shell=yes
5427echo "$as_me:$LINENO: result: $xsi_shell" >&5
5428echo "${ECHO_T}$xsi_shell" >&6
bedf545c 5429
bedf545c 5430
ce2cded5
L
5431echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5432echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5433lt_shell_append=no
5434( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5435 >/dev/null 2>&1 \
5436 && lt_shell_append=yes
5437echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5438echo "${ECHO_T}$lt_shell_append" >&6
252b5132 5439
d6d788bd 5440
ce2cded5
L
5441if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5442 lt_unset=unset
5443else
5444 lt_unset=false
5445fi
13b2be9c
DJ
5446
5447
5448
5449
d6d788bd 5450
ce2cded5
L
5451# test EBCDIC or ASCII
5452case `echo X|tr X '\101'` in
5453 A) # ASCII based system
5454 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5455 lt_SP2NL='tr \040 \012'
5456 lt_NL2SP='tr \015\012 \040\040'
5457 ;;
5458 *) # EBCDIC based system
5459 lt_SP2NL='tr \100 \n'
5460 lt_NL2SP='tr \r\n \100\100'
5461 ;;
5462esac
c43a438d 5463
c43a438d 5464
c43a438d 5465
252b5132 5466
ad22bfe8 5467
1ad12f97 5468
1ad12f97 5469
9e9b66a9 5470
1ad12f97 5471
ce2cded5
L
5472echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5473echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5474if test "${lt_cv_ld_reload_flag+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476else
5477 lt_cv_ld_reload_flag='-r'
5478fi
5479echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5480echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5481reload_flag=$lt_cv_ld_reload_flag
5482case $reload_flag in
5483"" | " "*) ;;
5484*) reload_flag=" $reload_flag" ;;
5485esac
5486reload_cmds='$LD$reload_flag -o $output$reload_objs'
5487case $host_os in
5488 darwin*)
5489 if test "$GCC" = yes; then
5490 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5491 else
5492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5493 fi
5494 ;;
5495esac
a541e3ce 5496
9e9b66a9 5497
a2d91340 5498
d6d788bd 5499
9e9b66a9
AM
5500
5501
5502
d6d788bd 5503
252b5132 5504
13b2be9c 5505
ce2cded5
L
5506echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5507echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5508if test "${lt_cv_deplibs_check_method+set}" = set; then
d7040cdb
SE
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510else
ce2cded5
L
5511 lt_cv_file_magic_cmd='$MAGIC_CMD'
5512lt_cv_file_magic_test_file=
5513lt_cv_deplibs_check_method='unknown'
5514# Need to set the preceding variable on all platforms that support
5515# interlibrary dependencies.
5516# 'none' -- dependencies not supported.
5517# `unknown' -- same as none, but documents that we really don't know.
5518# 'pass_all' -- all dependencies passed with no checks.
5519# 'test_compile' -- check by making test program.
5520# 'file_magic [[regex]]' -- check by looking for files in library path
5521# which responds to the $file_magic_cmd with a given extended regex.
5522# If you have `file' or equivalent on your system and you're not sure
5523# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 5524
ce2cded5 5525case $host_os in
50e7d84b 5526aix[4-9]*)
ce2cded5
L
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
d7040cdb 5529
ce2cded5
L
5530beos*)
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
d7040cdb 5533
ce2cded5
L
5534bsdi[45]*)
5535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5536 lt_cv_file_magic_cmd='/usr/bin/file -L'
5537 lt_cv_file_magic_test_file=/shlib/libc.so
5538 ;;
d7040cdb 5539
ce2cded5
L
5540cygwin*)
5541 # func_win32_libid is a shell function defined in ltmain.sh
5542 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5543 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5544 ;;
ce2cded5
L
5545
5546mingw* | pw32*)
5547 # Base MSYS/MinGW do not provide the 'file' command needed by
5548 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5549 # unless we find 'file', for example because we are cross-compiling.
5550 if ( file / ) >/dev/null 2>&1; then
5551 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5552 lt_cv_file_magic_cmd='func_win32_libid'
5553 else
5554 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5555 lt_cv_file_magic_cmd='$OBJDUMP -f'
5556 fi
d7040cdb 5557 ;;
ce2cded5
L
5558
5559darwin* | rhapsody*)
5560 lt_cv_deplibs_check_method=pass_all
5561 ;;
5562
5563freebsd* | dragonfly*)
5564 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5565 case $host_cpu in
5566 i*86 )
5567 # Not sure whether the presence of OpenBSD here was a mistake.
5568 # Let's accept both of them until this is cleared up.
5569 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5570 lt_cv_file_magic_cmd=/usr/bin/file
5571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5572 ;;
5573 esac
5574 else
5575 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
5576 fi
5577 ;;
ce2cded5
L
5578
5579gnu*)
5580 lt_cv_deplibs_check_method=pass_all
d7040cdb 5581 ;;
ce2cded5
L
5582
5583hpux10.20* | hpux11*)
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 case $host_cpu in
5586 ia64*)
5587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5588 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5589 ;;
5590 hppa*64*)
5591 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]'
5592 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5593 ;;
5594 *)
5595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5596 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5597 ;;
5598 esac
d7040cdb 5599 ;;
ce2cded5
L
5600
5601interix[3-9]*)
5602 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 5604 ;;
ce2cded5
L
5605
5606irix5* | irix6* | nonstopux*)
5607 case $LD in
5608 *-32|*"-32 ") libmagic=32-bit;;
5609 *-n32|*"-n32 ") libmagic=N32;;
5610 *-64|*"-64 ") libmagic=64-bit;;
5611 *) libmagic=never-match;;
5612 esac
5613 lt_cv_deplibs_check_method=pass_all
d7040cdb 5614 ;;
ce2cded5
L
5615
5616# This must be Linux ELF.
5617linux* | k*bsd*-gnu)
5618 lt_cv_deplibs_check_method=pass_all
d7040cdb 5619 ;;
ce2cded5
L
5620
5621netbsd*)
5622 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624 else
5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5626 fi
d7040cdb 5627 ;;
ce2cded5
L
5628
5629newos6*)
5630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5631 lt_cv_file_magic_cmd=/usr/bin/file
5632 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 5633 ;;
76a27922 5634
ce2cded5
L
5635*nto* | *qnx*)
5636 lt_cv_deplibs_check_method=pass_all
5637 ;;
d6d788bd 5638
ce2cded5
L
5639openbsd*)
5640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5642 else
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5644 fi
5645 ;;
44f2f9d2 5646
ce2cded5
L
5647osf3* | osf4* | osf5*)
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
44f2f9d2 5650
ce2cded5
L
5651rdos*)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654
5655solaris*)
5656 lt_cv_deplibs_check_method=pass_all
5657 ;;
5658
5659sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662
5663sysv4 | sysv4.3*)
5664 case $host_vendor in
5665 motorola)
5666 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]'
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5668 ;;
5669 ncr)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672 sequent)
5673 lt_cv_file_magic_cmd='/bin/file'
5674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5675 ;;
5676 sni)
5677 lt_cv_file_magic_cmd='/bin/file'
5678 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5679 lt_cv_file_magic_test_file=/lib/libc.so
5680 ;;
5681 siemens)
5682 lt_cv_deplibs_check_method=pass_all
5683 ;;
5684 pc)
5685 lt_cv_deplibs_check_method=pass_all
5686 ;;
5687 esac
5688 ;;
5689
5690tpf*)
5691 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
5692 ;;
5693esac
5694
ce2cded5
L
5695fi
5696echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5697echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5698file_magic_cmd=$lt_cv_file_magic_cmd
5699deplibs_check_method=$lt_cv_deplibs_check_method
5700test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5701
d7040cdb 5702
d7040cdb 5703
d7040cdb 5704
d7040cdb 5705
44f2f9d2 5706
d7040cdb 5707
d7040cdb 5708
d7040cdb 5709
d7040cdb 5710
44f2f9d2 5711
d7040cdb 5712
ce2cded5
L
5713if test -n "$ac_tool_prefix"; then
5714 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5715set dummy ${ac_tool_prefix}ar; ac_word=$2
5716echo "$as_me:$LINENO: checking for $ac_word" >&5
5717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718if test "${ac_cv_prog_AR+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721 if test -n "$AR"; then
5722 ac_cv_prog_AR="$AR" # Let the user override the test.
5723else
5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH
5726do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_AR="${ac_tool_prefix}ar"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
d7040cdb
SE
5734 fi
5735done
ce2cded5 5736done
44f2f9d2 5737
ce2cded5
L
5738fi
5739fi
5740AR=$ac_cv_prog_AR
5741if test -n "$AR"; then
5742 echo "$as_me:$LINENO: result: $AR" >&5
5743echo "${ECHO_T}$AR" >&6
5744else
5745 echo "$as_me:$LINENO: result: no" >&5
5746echo "${ECHO_T}no" >&6
44f2f9d2 5747fi
d7040cdb 5748
d7040cdb 5749fi
ce2cded5
L
5750if test -z "$ac_cv_prog_AR"; then
5751 ac_ct_AR=$AR
5752 # Extract the first word of "ar", so it can be a program name with args.
5753set dummy ar; ac_word=$2
5754echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5758else
ce2cded5
L
5759 if test -n "$ac_ct_AR"; then
5760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_ac_ct_AR="ar"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
5774done
5775
5776 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5777fi
5778fi
5779ac_ct_AR=$ac_cv_prog_ac_ct_AR
5780if test -n "$ac_ct_AR"; then
5781 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5782echo "${ECHO_T}$ac_ct_AR" >&6
5783else
5784 echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6
d7040cdb 5786fi
44f2f9d2 5787
ce2cded5
L
5788 AR=$ac_ct_AR
5789else
5790 AR="$ac_cv_prog_AR"
5791fi
d7040cdb 5792
ce2cded5
L
5793test -z "$AR" && AR=ar
5794test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
ce2cded5
L
5806if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5808set dummy ${ac_tool_prefix}strip; ac_word=$2
5809echo "$as_me:$LINENO: checking for $ac_word" >&5
5810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811if test "${ac_cv_prog_STRIP+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813else
5814 if test -n "$STRIP"; then
5815 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828done
5829done
d7040cdb 5830
ce2cded5
L
5831fi
5832fi
5833STRIP=$ac_cv_prog_STRIP
5834if test -n "$STRIP"; then
5835 echo "$as_me:$LINENO: result: $STRIP" >&5
5836echo "${ECHO_T}$STRIP" >&6
5837else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840fi
d7040cdb 5841
ce2cded5
L
5842fi
5843if test -z "$ac_cv_prog_STRIP"; then
5844 ac_ct_STRIP=$STRIP
5845 # Extract the first word of "strip", so it can be a program name with args.
5846set dummy strip; ac_word=$2
5847echo "$as_me:$LINENO: checking for $ac_word" >&5
5848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
5852 if test -n "$ac_ct_STRIP"; then
5853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5854else
5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_ac_ct_STRIP="strip"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866done
5867done
d7040cdb 5868
ce2cded5
L
5869 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5870fi
5871fi
5872ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5873if test -n "$ac_ct_STRIP"; then
5874 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5875echo "${ECHO_T}$ac_ct_STRIP" >&6
5876else
5877 echo "$as_me:$LINENO: result: no" >&5
5878echo "${ECHO_T}no" >&6
5879fi
d7040cdb 5880
ce2cded5
L
5881 STRIP=$ac_ct_STRIP
5882else
5883 STRIP="$ac_cv_prog_STRIP"
5884fi
d7040cdb 5885
ce2cded5 5886test -z "$STRIP" && STRIP=:
d7040cdb 5887
d7040cdb 5888
d7040cdb 5889
d7040cdb 5890
d7040cdb 5891
d7040cdb 5892
ce2cded5
L
5893if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5895set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5896echo "$as_me:$LINENO: checking for $ac_word" >&5
5897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5898if test "${ac_cv_prog_RANLIB+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5900else
ce2cded5
L
5901 if test -n "$RANLIB"; then
5902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915done
5916done
44f2f9d2 5917
d7040cdb 5918fi
44f2f9d2 5919fi
ce2cded5
L
5920RANLIB=$ac_cv_prog_RANLIB
5921if test -n "$RANLIB"; then
5922 echo "$as_me:$LINENO: result: $RANLIB" >&5
5923echo "${ECHO_T}$RANLIB" >&6
5924else
5925 echo "$as_me:$LINENO: result: no" >&5
5926echo "${ECHO_T}no" >&6
5927fi
d7040cdb 5928
d7040cdb 5929fi
ce2cded5
L
5930if test -z "$ac_cv_prog_RANLIB"; then
5931 ac_ct_RANLIB=$RANLIB
5932 # Extract the first word of "ranlib", so it can be a program name with args.
5933set dummy ranlib; ac_word=$2
5934echo "$as_me:$LINENO: checking for $ac_word" >&5
5935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5936if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
d7040cdb 5937 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5938else
ce2cded5
L
5939 if test -n "$ac_ct_RANLIB"; then
5940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
d7040cdb 5944do
ce2cded5
L
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 ac_cv_prog_ac_ct_RANLIB="ranlib"
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
d7040cdb 5952 fi
ce2cded5
L
5953done
5954done
5955
5956 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d7040cdb 5957fi
ce2cded5
L
5958fi
5959ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5960if test -n "$ac_ct_RANLIB"; then
5961 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5962echo "${ECHO_T}$ac_ct_RANLIB" >&6
d7040cdb 5963else
ce2cded5
L
5964 echo "$as_me:$LINENO: result: no" >&5
5965echo "${ECHO_T}no" >&6
44f2f9d2 5966fi
44f2f9d2 5967
ce2cded5 5968 RANLIB=$ac_ct_RANLIB
d7040cdb 5969else
ce2cded5 5970 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5971fi
252b5132 5972
ce2cded5 5973test -z "$RANLIB" && RANLIB=:
252b5132 5974
252b5132 5975
ae57792d 5976
252b5132 5977
13b2be9c 5978
14ee9f48 5979
ce2cded5
L
5980# Determine commands to create old-style static archives.
5981old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5982old_postinstall_cmds='chmod 644 $oldlib'
5983old_postuninstall_cmds=
14ee9f48 5984
ce2cded5
L
5985if test -n "$RANLIB"; then
5986 case $host_os in
5987 openbsd*)
5988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5989 ;;
5990 *)
5991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5992 ;;
5993 esac
5994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 5995fi
14ee9f48 5996
f8fc3443 5997
f8fc3443 5998
252b5132 5999
85fbca6a 6000
85fbca6a 6001
13b2be9c 6002
13b2be9c 6003
d7040cdb 6004
d7040cdb
SE
6005
6006
6007
252b5132 6008
93fbbb04 6009
93fbbb04 6010
d70c5fc7 6011
e0001a05 6012
252b5132 6013
252b5132 6014
252b5132 6015
252b5132 6016
252b5132 6017
3bcbcc3d 6018
252b5132 6019
252b5132 6020
252b5132 6021
15886821 6022
252b5132 6023
252b5132 6024
13b2be9c
DJ
6025
6026
252b5132 6027
252b5132 6028
d6d788bd 6029
ce2cded5
L
6030# If no C compiler was specified, use CC.
6031LTCC=${LTCC-"$CC"}
252b5132 6032
ce2cded5
L
6033# If no C compiler flags were specified, use CFLAGS.
6034LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6035
ce2cded5
L
6036# Allow CC to be a program name with arguments.
6037compiler=$CC
252b5132 6038
252b5132 6039
ce2cded5
L
6040# Check for command to grab the raw symbol name followed by C symbol from nm.
6041echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6042echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6043if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045else
252b5132 6046
ce2cded5
L
6047# These are sane defaults that work on at least a few old systems.
6048# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6049
ce2cded5
L
6050# Character class describing NM global symbol codes.
6051symcode='[BCDEGRST]'
252b5132 6052
ce2cded5
L
6053# Regexp to match symbols that can be accessed directly from C.
6054sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6055
ce2cded5
L
6056# Define system-specific variables.
6057case $host_os in
6058aix*)
6059 symcode='[BCDT]'
6060 ;;
6061cygwin* | mingw* | pw32*)
6062 symcode='[ABCDGISTW]'
6063 ;;
6064hpux*)
6065 if test "$host_cpu" = ia64; then
6066 symcode='[ABCDEGRST]'
6067 fi
6068 ;;
6069irix* | nonstopux*)
6070 symcode='[BCDEGRST]'
6071 ;;
6072osf*)
6073 symcode='[BCDEGQRST]'
6074 ;;
6075solaris*)
6076 symcode='[BDRT]'
6077 ;;
6078sco3.2v5*)
6079 symcode='[DT]'
6080 ;;
6081sysv4.2uw2*)
6082 symcode='[DT]'
6083 ;;
6084sysv5* | sco5v6* | unixware* | OpenUNIX*)
6085 symcode='[ABDT]'
6086 ;;
6087sysv4)
6088 symcode='[DFNSTU]'
6089 ;;
6090esac
6091
6092# If we're using GNU nm, then use its standard symbol codes.
6093case `$NM -V 2>&1` in
6094*GNU* | *'with BFD'*)
6095 symcode='[ABCDGIRSTW]' ;;
6096esac
252b5132 6097
ce2cded5
L
6098# Transform an extracted symbol line into a proper C declaration.
6099# Some systems (esp. on ia64) link data and code symbols differently,
6100# so use this general approach.
6101lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6102
ce2cded5 6103# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6104lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 6105
7357c5b6
AM
6106# Handle CRLF in mingw tool chain
6107opt_cr=
6108case $build_os in
6109mingw*)
6110 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6111 ;;
6112esac
d7040cdb 6113
7357c5b6
AM
6114# Try without a prefix underscore, then with it.
6115for ac_symprfx in "" "_"; do
d7040cdb 6116
7357c5b6
AM
6117 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6118 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6119
7357c5b6
AM
6120 # Write the raw and C identifiers.
6121 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6122 # Fake it for dumpbin and say T for any non-static function
6123 # and D for any global variable.
6124 # Also find C++ and __fastcall symbols from MSVC++,
6125 # which start with @ or ?.
6126 lt_cv_sys_global_symbol_pipe="$AWK '"\
6127" {last_section=section; section=\$ 3};"\
6128" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6129" \$ 0!~/External *\|/{next};"\
6130" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6131" {if(hide[section]) next};"\
6132" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6133" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6134" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6135" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6136" ' prfx=^$ac_symprfx"
6137 else
6138 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6139 fi
d7040cdb 6140
7357c5b6
AM
6141 # Check to see that the pipe works correctly.
6142 pipe_works=no
d7040cdb 6143
7357c5b6
AM
6144 rm -f conftest*
6145 cat > conftest.$ac_ext <<_LT_EOF
6146#ifdef __cplusplus
6147extern "C" {
6148#endif
6149char nm_test_var;
6150void nm_test_func(void);
6151void nm_test_func(void){}
6152#ifdef __cplusplus
ce2cded5 6153}
7357c5b6
AM
6154#endif
6155int main(){nm_test_var='a';nm_test_func();return(0);}
6156_LT_EOF
6157
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
ce2cded5
L
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6162 (exit $ac_status); }; then
6163 # Now try to grab the symbols.
6164 nlist=conftest.nm
6165 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6166 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
ce2cded5
L
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6169 (exit $ac_status); } && test -s "$nlist"; then
6170 # Try sorting and uniquifying the output.
6171 if sort "$nlist" | uniq > "$nlist"T; then
6172 mv -f "$nlist"T "$nlist"
6173 else
6174 rm -f "$nlist"T
6175 fi
13b2be9c 6176
7357c5b6
AM
6177 # Make sure that we snagged all the symbols we need.
6178 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6179 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6180 cat <<_LT_EOF > conftest.$ac_ext
6181#ifdef __cplusplus
6182extern "C" {
6183#endif
13b2be9c 6184
7357c5b6
AM
6185_LT_EOF
6186 # Now generate the symbol file.
6187 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6188
7357c5b6 6189 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6190
7357c5b6
AM
6191/* The mapping between symbol names and symbols. */
6192const struct {
6193 const char *name;
6194 void *address;
6195}
6196lt__PROGRAM__LTX_preloaded_symbols[] =
6197{
6198 { "@PROGRAM@", (void *) 0 },
6199_LT_EOF
6200 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6201 cat <<\_LT_EOF >> conftest.$ac_ext
6202 {0, (void *) 0}
6203};
d7040cdb 6204
7357c5b6
AM
6205/* This works around a problem in FreeBSD linker */
6206#ifdef FREEBSD_WORKAROUND
6207static const void *lt_preloaded_setup() {
6208 return lt__PROGRAM__LTX_preloaded_symbols;
6209}
ce2cded5 6210#endif
d7040cdb 6211
7357c5b6 6212#ifdef __cplusplus
ce2cded5 6213}
7357c5b6
AM
6214#endif
6215_LT_EOF
6216 # Now try linking the two files.
6217 mv conftest.$ac_objext conftstm.$ac_objext
6218 lt_save_LIBS="$LIBS"
6219 lt_save_CFLAGS="$CFLAGS"
6220 LIBS="conftstm.$ac_objext"
6221 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ce2cded5
L
6223 (eval $ac_link) 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6226 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6227 pipe_works=yes
6228 fi
6229 LIBS="$lt_save_LIBS"
6230 CFLAGS="$lt_save_CFLAGS"
6231 else
6232 echo "cannot find nm_test_func in $nlist" >&5
6233 fi
6234 else
6235 echo "cannot find nm_test_var in $nlist" >&5
6236 fi
6237 else
6238 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6239 fi
6240 else
6241 echo "$progname: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 fi
6244 rm -f conftest* conftst*
6245
6246 # Do not use the global_symbol_pipe unless it works.
6247 if test "$pipe_works" = yes; then
6248 break
6249 else
6250 lt_cv_sys_global_symbol_pipe=
6251 fi
6252done
d7040cdb 6253
ce2cded5 6254fi
7357c5b6
AM
6255
6256if test -z "$lt_cv_sys_global_symbol_pipe"; then
6257 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6258fi
7357c5b6
AM
6259if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6260 echo "$as_me:$LINENO: result: failed" >&5
6261echo "${ECHO_T}failed" >&6
6262else
6263 echo "$as_me:$LINENO: result: ok" >&5
6264echo "${ECHO_T}ok" >&6
ce2cded5 6265fi
d7040cdb 6266
d7040cdb 6267
d7040cdb 6268
d7040cdb 6269
d7040cdb 6270
d7040cdb 6271
d7040cdb 6272
d7040cdb 6273
d7040cdb 6274
d7040cdb 6275
d7040cdb 6276
d7040cdb 6277
7357c5b6
AM
6278
6279
6280
6281
6282
6283# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6284if test "${enable_libtool_lock+set}" = set; then
6285 enableval="$enable_libtool_lock"
6286
6287fi;
6288test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6289
6290# Some flags need to be propagated to the compiler or linker for good
6291# libtool support.
6292case $host in
6293ia64-*-hpux*)
6294 # Find out which ABI we are using.
6295 echo 'int i;' > conftest.$ac_ext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; then
6301 case `/usr/bin/file conftest.$ac_objext` in
6302 *ELF-32*)
6303 HPUX_IA64_MODE="32"
6304 ;;
6305 *ELF-64*)
6306 HPUX_IA64_MODE="64"
6307 ;;
6308 esac
6309 fi
6310 rm -rf conftest*
6311 ;;
6312*-*-irix6*)
6313 # Find out which ABI we are using.
6314 echo '#line 6314 "configure"' > conftest.$ac_ext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316 (eval $ac_compile) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; then
6320 if test "$lt_cv_prog_gnu_ld" = yes; then
6321 case `/usr/bin/file conftest.$ac_objext` in
6322 *32-bit*)
6323 LD="${LD-ld} -melf32bsmip"
6324 ;;
6325 *N32*)
6326 LD="${LD-ld} -melf32bmipn32"
6327 ;;
6328 *64-bit*)
6329 LD="${LD-ld} -melf64bmip"
6330 ;;
6331 esac
6332 else
6333 case `/usr/bin/file conftest.$ac_objext` in
6334 *32-bit*)
6335 LD="${LD-ld} -32"
6336 ;;
6337 *N32*)
6338 LD="${LD-ld} -n32"
6339 ;;
6340 *64-bit*)
6341 LD="${LD-ld} -64"
6342 ;;
6343 esac
6344 fi
6345 fi
6346 rm -rf conftest*
6347 ;;
6348
6349x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6350s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6351 # Find out which ABI we are using.
6352 echo 'int i;' > conftest.$ac_ext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; then
6358 case `/usr/bin/file conftest.o` in
6359 *32-bit*)
6360 case $host in
6361 x86_64-*kfreebsd*-gnu)
6362 LD="${LD-ld} -m elf_i386_fbsd"
6363 ;;
6364 x86_64-*linux*)
6365 LD="${LD-ld} -m elf_i386"
6366 ;;
6367 ppc64-*linux*|powerpc64-*linux*)
6368 LD="${LD-ld} -m elf32ppclinux"
6369 ;;
6370 s390x-*linux*)
6371 LD="${LD-ld} -m elf_s390"
6372 ;;
6373 sparc64-*linux*)
6374 LD="${LD-ld} -m elf32_sparc"
6375 ;;
6376 esac
6377 ;;
6378 *64-bit*)
6379 case $host in
6380 x86_64-*kfreebsd*-gnu)
6381 LD="${LD-ld} -m elf_x86_64_fbsd"
6382 ;;
6383 x86_64-*linux*)
6384 LD="${LD-ld} -m elf_x86_64"
6385 ;;
6386 ppc*-*linux*|powerpc*-*linux*)
6387 LD="${LD-ld} -m elf64ppc"
6388 ;;
6389 s390*-*linux*|s390*-*tpf*)
6390 LD="${LD-ld} -m elf64_s390"
6391 ;;
6392 sparc*-*linux*)
6393 LD="${LD-ld} -m elf64_sparc"
6394 ;;
6395 esac
6396 ;;
6397 esac
6398 fi
6399 rm -rf conftest*
6400 ;;
6401
6402*-*-sco3.2v5*)
6403 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6404 SAVE_CFLAGS="$CFLAGS"
6405 CFLAGS="$CFLAGS -belf"
6406 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6407echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6408if test "${lt_cv_cc_needs_belf+set}" = set; then
ce2cded5
L
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410else
7357c5b6
AM
6411 ac_ext=c
6412ac_cpp='$CPP $CPPFLAGS'
6413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416
6417 cat >conftest.$ac_ext <<_ACEOF
ce2cded5
L
6418/* confdefs.h. */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
6422/* end confdefs.h. */
d7040cdb 6423
7357c5b6
AM
6424int
6425main ()
6426{
6427
6428 ;
6429 return 0;
6430}
ce2cded5 6431_ACEOF
7357c5b6
AM
6432rm -f conftest.$ac_objext conftest$ac_exeext
6433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>conftest.er1
ce2cded5
L
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
7357c5b6 6448 { ac_try='test -s conftest$ac_exeext'
ce2cded5
L
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
7357c5b6 6454 lt_cv_cc_needs_belf=yes
ce2cded5
L
6455else
6456 echo "$as_me: failed program was:" >&5
6457sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6458
7357c5b6 6459lt_cv_cc_needs_belf=no
ce2cded5 6460fi
7357c5b6
AM
6461rm -f conftest.err conftest.$ac_objext \
6462 conftest$ac_exeext conftest.$ac_ext
6463 ac_ext=c
6464ac_cpp='$CPP $CPPFLAGS'
6465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6467ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6468
ce2cded5 6469fi
7357c5b6
AM
6470echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6471echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6472 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6473 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6474 CFLAGS="$SAVE_CFLAGS"
6475 fi
6476 ;;
6477sparc*-*solaris*)
6478 # Find out which ABI we are using.
6479 echo 'int i;' > conftest.$ac_ext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; then
6485 case `/usr/bin/file conftest.o` in
6486 *64-bit*)
6487 case $lt_cv_prog_gnu_ld in
6488 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6489 *) LD="${LD-ld} -64" ;;
6490 esac
6491 ;;
6492 esac
6493 fi
6494 rm -rf conftest*
6495 ;;
6496esac
d7040cdb 6497
7357c5b6 6498need_locks="$enable_libtool_lock"
d7040cdb 6499
d7040cdb 6500
ce2cded5
L
6501for ac_header in dlfcn.h
6502do
6503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6504echo "$as_me:$LINENO: checking for $ac_header" >&5
6505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 cat >conftest.$ac_ext <<_ACEOF
6510/* confdefs.h. */
6511_ACEOF
6512cat confdefs.h >>conftest.$ac_ext
6513cat >>conftest.$ac_ext <<_ACEOF
6514/* end confdefs.h. */
6515$ac_includes_default
d7040cdb 6516
ce2cded5
L
6517#include <$ac_header>
6518_ACEOF
6519rm -f conftest.$ac_objext
6520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6521 (eval $ac_compile) 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag"
6529 || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest.$ac_objext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 eval "$as_ac_Header=yes"
6542else
6543 echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6545
ce2cded5
L
6546eval "$as_ac_Header=no"
6547fi
6548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6549fi
6550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6552if test `eval echo '${'$as_ac_Header'}'` = yes; then
6553 cat >>confdefs.h <<_ACEOF
6554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6555_ACEOF
d7040cdb 6556
ce2cded5 6557fi
d7040cdb 6558
ce2cded5 6559done
d7040cdb 6560
d7040cdb 6561
d7040cdb 6562
ce2cded5
L
6563# This can be used to rebuild libtool when needed
6564LIBTOOL_DEPS="$ltmain"
d7040cdb 6565
ce2cded5
L
6566# Always use our own libtool.
6567LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6568
d7040cdb 6569
d7040cdb 6570
d7040cdb
SE
6571
6572
6573
6574
6575
6576
d7040cdb 6577
d7040cdb 6578
ab509236 6579
ab509236 6580
d7040cdb
SE
6581
6582
6583
6584
6585
13b2be9c 6586
13b2be9c 6587
13b2be9c 6588
13b2be9c 6589
d7040cdb
SE
6590
6591
6592
ce2cded5 6593test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6594
6595
d7040cdb 6596
d7040cdb 6597
d7040cdb
SE
6598
6599
6600
6601
6602
6603
ce2cded5
L
6604
6605
6606
6607
6608if test -n "${ZSH_VERSION+set}" ; then
6609 setopt NO_GLOB_SUBST
6610fi
6611
6612echo "$as_me:$LINENO: checking for objdir" >&5
6613echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6614if test "${lt_cv_objdir+set}" = set; then
d7040cdb
SE
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616else
ce2cded5
L
6617 rm -f .libs 2>/dev/null
6618mkdir .libs 2>/dev/null
6619if test -d .libs; then
6620 lt_cv_objdir=.libs
6621else
6622 # MS-DOS does not allow filenames that begin with a dot.
6623 lt_cv_objdir=_libs
d7040cdb 6624fi
ce2cded5
L
6625rmdir .libs 2>/dev/null
6626fi
6627echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6628echo "${ECHO_T}$lt_cv_objdir" >&6
6629objdir=$lt_cv_objdir
d7040cdb
SE
6630
6631
6632
6633
d7040cdb 6634
ce2cded5
L
6635cat >>confdefs.h <<_ACEOF
6636#define LT_OBJDIR "$lt_cv_objdir/"
6637_ACEOF
d7040cdb
SE
6638
6639
6640
6641
6642
d7040cdb 6643
d7040cdb 6644
d7040cdb 6645
d7040cdb 6646
d7040cdb 6647
d7040cdb 6648
d7040cdb 6649
d7040cdb 6650
d7040cdb 6651
d7040cdb 6652
d7040cdb 6653
d7040cdb 6654
ce2cded5
L
6655case $host_os in
6656aix3*)
6657 # AIX sometimes has problems with the GCC collect2 program. For some
6658 # reason, if we set the COLLECT_NAMES environment variable, the problems
6659 # vanish in a puff of smoke.
6660 if test "X${COLLECT_NAMES+set}" != Xset; then
6661 COLLECT_NAMES=
6662 export COLLECT_NAMES
6663 fi
6664 ;;
6665esac
d7040cdb 6666
ce2cded5
L
6667# Sed substitution that helps us do robust quoting. It backslashifies
6668# metacharacters that are still active within double-quoted strings.
6669sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6670
ce2cded5
L
6671# Same as above, but do not quote variable references.
6672double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6673
ce2cded5
L
6674# Sed substitution to delay expansion of an escaped shell variable in a
6675# double_quote_subst'ed string.
6676delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6677
ce2cded5
L
6678# Sed substitution to delay expansion of an escaped single quote.
6679delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6680
ce2cded5
L
6681# Sed substitution to avoid accidental globbing in evaled expressions
6682no_glob_subst='s/\*/\\\*/g'
d7040cdb 6683
ce2cded5
L
6684# Global variables:
6685ofile=libtool
6686can_build_shared=yes
d7040cdb 6687
ce2cded5
L
6688# All known linkers require a `.a' archive for static linking (except MSVC,
6689# which needs '.lib').
6690libext=a
d7040cdb 6691
ce2cded5 6692with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6693
ce2cded5
L
6694old_CC="$CC"
6695old_CFLAGS="$CFLAGS"
d7040cdb 6696
ce2cded5
L
6697# Set sane defaults for various variables
6698test -z "$CC" && CC=cc
6699test -z "$LTCC" && LTCC=$CC
6700test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6701test -z "$LD" && LD=ld
6702test -z "$ac_objext" && ac_objext=o
6703
6704for cc_temp in $compiler""; do
6705 case $cc_temp in
6706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6708 \-*) ;;
6709 *) break;;
6710 esac
6711done
6712cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6713
6714
6715# Only perform the check for file, if the check method requires it
6716test -z "$MAGIC_CMD" && MAGIC_CMD=file
6717case $deplibs_check_method in
6718file_magic*)
6719 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6720 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6721echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6722if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725 case $MAGIC_CMD in
6726[\\/*] | ?:[\\/]*)
6727 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6728 ;;
6729*)
6730 lt_save_MAGIC_CMD="$MAGIC_CMD"
6731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6733 for ac_dir in $ac_dummy; do
6734 IFS="$lt_save_ifs"
6735 test -z "$ac_dir" && ac_dir=.
6736 if test -f $ac_dir/${ac_tool_prefix}file; then
6737 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6738 if test -n "$file_magic_test_file"; then
6739 case $deplibs_check_method in
6740 "file_magic "*)
6741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6744 $EGREP "$file_magic_regex" > /dev/null; then
6745 :
d7040cdb 6746 else
ce2cded5 6747 cat <<_LT_EOF 1>&2
d7040cdb 6748
ce2cded5
L
6749*** Warning: the command libtool uses to detect shared libraries,
6750*** $file_magic_cmd, produces output that libtool cannot recognize.
6751*** The result is that libtool may fail to recognize shared libraries
6752*** as such. This will affect the creation of libtool libraries that
6753*** depend on shared libraries, but programs linked with such libtool
6754*** libraries will work regardless of this problem. Nevertheless, you
6755*** may want to report the problem to your system manager and/or to
6756*** bug-libtool@gnu.org
d7040cdb 6757
ce2cded5
L
6758_LT_EOF
6759 fi ;;
6760 esac
d7040cdb 6761 fi
ce2cded5 6762 break
d7040cdb 6763 fi
ce2cded5
L
6764 done
6765 IFS="$lt_save_ifs"
6766 MAGIC_CMD="$lt_save_MAGIC_CMD"
6767 ;;
6768esac
6769fi
d7040cdb 6770
ce2cded5
L
6771MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6772if test -n "$MAGIC_CMD"; then
6773 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6774echo "${ECHO_T}$MAGIC_CMD" >&6
6775else
6776 echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6
6778fi
d7040cdb 6779
d7040cdb 6780
d7040cdb 6781
d7040cdb 6782
d7040cdb 6783
ce2cded5
L
6784if test -z "$lt_cv_path_MAGIC_CMD"; then
6785 if test -n "$ac_tool_prefix"; then
6786 echo "$as_me:$LINENO: checking for file" >&5
6787echo $ECHO_N "checking for file... $ECHO_C" >&6
6788if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790else
6791 case $MAGIC_CMD in
6792[\\/*] | ?:[\\/]*)
6793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6794 ;;
6795*)
6796 lt_save_MAGIC_CMD="$MAGIC_CMD"
6797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6799 for ac_dir in $ac_dummy; do
6800 IFS="$lt_save_ifs"
6801 test -z "$ac_dir" && ac_dir=.
6802 if test -f $ac_dir/file; then
6803 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6804 if test -n "$file_magic_test_file"; then
6805 case $deplibs_check_method in
6806 "file_magic "*)
6807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6810 $EGREP "$file_magic_regex" > /dev/null; then
6811 :
d7040cdb 6812 else
ce2cded5
L
6813 cat <<_LT_EOF 1>&2
6814
6815*** Warning: the command libtool uses to detect shared libraries,
6816*** $file_magic_cmd, produces output that libtool cannot recognize.
6817*** The result is that libtool may fail to recognize shared libraries
6818*** as such. This will affect the creation of libtool libraries that
6819*** depend on shared libraries, but programs linked with such libtool
6820*** libraries will work regardless of this problem. Nevertheless, you
6821*** may want to report the problem to your system manager and/or to
6822*** bug-libtool@gnu.org
6823
6824_LT_EOF
6825 fi ;;
d7040cdb 6826 esac
d7040cdb 6827 fi
ce2cded5
L
6828 break
6829 fi
6830 done
6831 IFS="$lt_save_ifs"
6832 MAGIC_CMD="$lt_save_MAGIC_CMD"
6833 ;;
6834esac
6835fi
d7040cdb 6836
ce2cded5
L
6837MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6838if test -n "$MAGIC_CMD"; then
6839 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6840echo "${ECHO_T}$MAGIC_CMD" >&6
6841else
6842 echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6
6844fi
d7040cdb 6845
d7040cdb 6846
ce2cded5
L
6847 else
6848 MAGIC_CMD=:
6849 fi
d7040cdb 6850fi
d7040cdb 6851
ce2cded5
L
6852 fi
6853 ;;
6854esac
d7040cdb 6855
ce2cded5 6856# Use C for the default configuration in the libtool script
d7040cdb 6857
ce2cded5
L
6858lt_save_CC="$CC"
6859ac_ext=c
6860ac_cpp='$CPP $CPPFLAGS'
6861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6864
d7040cdb 6865
ce2cded5
L
6866# Source file extension for C test sources.
6867ac_ext=c
d7040cdb 6868
ce2cded5
L
6869# Object file extension for compiled C test sources.
6870objext=o
6871objext=$objext
d7040cdb 6872
ce2cded5
L
6873# Code to be used in simple compile tests
6874lt_simple_compile_test_code="int some_variable = 0;"
6875
6876# Code to be used in simple link tests
6877lt_simple_link_test_code='int main(){return(0);}'
6878
6879
6880
6881
6882
6883
6884
6885# If no C compiler was specified, use CC.
6886LTCC=${LTCC-"$CC"}
6887
6888# If no C compiler flags were specified, use CFLAGS.
6889LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6890
6891# Allow CC to be a program name with arguments.
6892compiler=$CC
6893
6894# Save the default compiler, since it gets overwritten when the other
6895# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6896compiler_DEFAULT=$CC
6897
6898# save warnings/boilerplate of simple test code
6899ac_outfile=conftest.$ac_objext
6900echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6901eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6902_lt_compiler_boilerplate=`cat conftest.err`
6903$RM conftest*
6904
6905ac_outfile=conftest.$ac_objext
6906echo "$lt_simple_link_test_code" >conftest.$ac_ext
6907eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6908_lt_linker_boilerplate=`cat conftest.err`
6909$RM conftest*
6910
6911
6912## CAVEAT EMPTOR:
6913## There is no encapsulation within the following macros, do not change
6914## the running order or otherwise move them around unless you know exactly
6915## what you are doing...
6916if test -n "$compiler"; then
6917
6918lt_prog_compiler_no_builtin_flag=
6919
6920if test "$GCC" = yes; then
6921 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6922
6923 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6924echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6925if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927else
6928 lt_cv_prog_compiler_rtti_exceptions=no
6929 ac_outfile=conftest.$ac_objext
6930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6931 lt_compiler_flag="-fno-rtti -fno-exceptions"
6932 # Insert the option either (1) after the last *FLAGS variable, or
6933 # (2) before a word containing "conftest.", or (3) at the end.
6934 # Note that $ac_compile itself does not contain backslashes and begins
6935 # with a dollar sign (not a hyphen), so the echo should work correctly.
6936 # The option is referenced via a variable to avoid confusing sed.
6937 lt_compile=`echo "$ac_compile" | $SED \
6938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6940 -e 's:$: $lt_compiler_flag:'`
7357c5b6 6941 (eval echo "\"\$as_me:6941: $lt_compile\"" >&5)
ce2cded5
L
6942 (eval "$lt_compile" 2>conftest.err)
6943 ac_status=$?
6944 cat conftest.err >&5
7357c5b6 6945 echo "$as_me:6945: \$? = $ac_status" >&5
ce2cded5
L
6946 if (exit $ac_status) && test -s "$ac_outfile"; then
6947 # The compiler can only warn and ignore the option if not recognized
6948 # So say no if there are warnings other than the usual output.
6949 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6952 lt_cv_prog_compiler_rtti_exceptions=yes
6953 fi
6954 fi
6955 $RM conftest*
6956
6957fi
6958echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6959echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6960
6961if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6962 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6963else
6964 :
6965fi
6966
6967fi
6968
6969
6970
6971
6972
6973
6974 lt_prog_compiler_wl=
6975lt_prog_compiler_pic=
6976lt_prog_compiler_static=
6977
6978echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6979echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6980
6981 if test "$GCC" = yes; then
6982 lt_prog_compiler_wl='-Wl,'
6983 lt_prog_compiler_static='-static'
6984
6985 case $host_os in
6986 aix*)
6987 # All AIX code is PIC.
6988 if test "$host_cpu" = ia64; then
6989 # AIX 5 now supports IA64 processor
6990 lt_prog_compiler_static='-Bstatic'
6991 fi
6992 ;;
d7040cdb
SE
6993
6994 amigaos*)
6995 if test "$host_cpu" = m68k; then
ce2cded5
L
6996 # FIXME: we need at least 68020 code to build shared libraries, but
6997 # adding the `-m68020' flag to GCC prevents building anything better,
6998 # like `-m68040'.
6999 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
d7040cdb 7000 fi
d7040cdb
SE
7001 ;;
7002
ce2cded5
L
7003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7004 # PIC is the default for these OSes.
d7040cdb
SE
7005 ;;
7006
ce2cded5
L
7007 mingw* | cygwin* | pw32* | os2*)
7008 # This hack is so that the source file can tell whether it is being
7009 # built for inclusion in a dll (and should export symbols for example).
7010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7011 # (--disable-auto-import) libraries
7012 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
7013 ;;
7014
7015 darwin* | rhapsody*)
ce2cded5
L
7016 # PIC is the default on this platform
7017 # Common symbols not allowed in MH_DYLIB files
7018 lt_prog_compiler_pic='-fno-common'
7019 ;;
7020
7021 hpux*)
7022 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7023 # not for PA HP-UX.
7024 case $host_cpu in
7025 hppa*64*|ia64*)
7026 # +Z the default
d7040cdb 7027 ;;
ce2cded5
L
7028 *)
7029 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
7030 ;;
7031 esac
ce2cded5 7032 ;;
d7040cdb 7033
ce2cded5
L
7034 interix[3-9]*)
7035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7036 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
7037 ;;
7038
ce2cded5
L
7039 msdosdjgpp*)
7040 # Just because we use GCC doesn't mean we suddenly get shared libraries
7041 # on systems that don't support them.
7042 lt_prog_compiler_can_build_shared=no
7043 enable_shared=no
d7040cdb
SE
7044 ;;
7045
ce2cded5
L
7046 *nto* | *qnx*)
7047 # QNX uses GNU C++, but need to define -shared option too, otherwise
7048 # it will coredump.
7049 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
7050 ;;
7051
ce2cded5
L
7052 sysv4*MP*)
7053 if test -d /usr/nec; then
7054 lt_prog_compiler_pic=-Kconform_pic
7055 fi
d7040cdb
SE
7056 ;;
7057
ce2cded5
L
7058 *)
7059 lt_prog_compiler_pic='-fPIC'
d7040cdb 7060 ;;
ce2cded5
L
7061 esac
7062 else
7063 # PORTME Check for flag to pass linker flags through the system compiler.
7064 case $host_os in
7065 aix*)
7066 lt_prog_compiler_wl='-Wl,'
7067 if test "$host_cpu" = ia64; then
7068 # AIX 5 now supports IA64 processor
7069 lt_prog_compiler_static='-Bstatic'
d7040cdb 7070 else
ce2cded5 7071 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 7072 fi
ce2cded5
L
7073 ;;
7074 darwin*)
7075 # PIC is the default on this platform
7076 # Common symbols not allowed in MH_DYLIB files
7077 case $cc_basename in
7078 xlc*)
7079 lt_prog_compiler_pic='-qnocommon'
7080 lt_prog_compiler_wl='-Wl,'
7081 ;;
7082 esac
7083 ;;
d7040cdb 7084
ce2cded5
L
7085 mingw* | cygwin* | pw32* | os2*)
7086 # This hack is so that the source file can tell whether it is being
7087 # built for inclusion in a dll (and should export symbols for example).
7088 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
7089 ;;
7090
ce2cded5
L
7091 hpux9* | hpux10* | hpux11*)
7092 lt_prog_compiler_wl='-Wl,'
7093 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7094 # not for PA HP-UX.
7095 case $host_cpu in
7096 hppa*64*|ia64*)
7097 # +Z the default
7098 ;;
7099 *)
7100 lt_prog_compiler_pic='+Z'
7101 ;;
7102 esac
7103 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7104 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
7105 ;;
7106
ce2cded5
L
7107 irix5* | irix6* | nonstopux*)
7108 lt_prog_compiler_wl='-Wl,'
7109 # PIC (with -KPIC) is the default.
7110 lt_prog_compiler_static='-non_shared'
7111 ;;
d7040cdb 7112
ce2cded5
L
7113 linux* | k*bsd*-gnu)
7114 case $cc_basename in
7115 icc* | ecc*)
7116 lt_prog_compiler_wl='-Wl,'
7117 lt_prog_compiler_pic='-KPIC'
7118 lt_prog_compiler_static='-static'
7119 ;;
7120 pgcc* | pgf77* | pgf90* | pgf95*)
7121 # Portland Group compilers (*not* the Pentium gcc compiler,
7122 # which looks to be a dead project)
7123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_pic='-fpic'
7125 lt_prog_compiler_static='-Bstatic'
7126 ;;
7127 ccc*)
7128 lt_prog_compiler_wl='-Wl,'
7129 # All Alpha code is PIC.
7130 lt_prog_compiler_static='-non_shared'
7131 ;;
7132 *)
7133 case `$CC -V 2>&1 | sed 5q` in
7134 *Sun\ C*)
7135 # Sun C 5.9
7136 lt_prog_compiler_pic='-KPIC'
7137 lt_prog_compiler_static='-Bstatic'
7138 lt_prog_compiler_wl='-Wl,'
d7040cdb 7139 ;;
ce2cded5
L
7140 *Sun\ F*)
7141 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7142 lt_prog_compiler_pic='-KPIC'
7143 lt_prog_compiler_static='-Bstatic'
7144 lt_prog_compiler_wl=''
d7040cdb
SE
7145 ;;
7146 esac
ce2cded5
L
7147 ;;
7148 esac
d7040cdb
SE
7149 ;;
7150
ce2cded5
L
7151 newsos6)
7152 lt_prog_compiler_pic='-KPIC'
7153 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7154 ;;
7155
ce2cded5
L
7156 *nto* | *qnx*)
7157 # QNX uses GNU C++, but need to define -shared option too, otherwise
7158 # it will coredump.
7159 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
7160 ;;
7161
ce2cded5
L
7162 osf3* | osf4* | osf5*)
7163 lt_prog_compiler_wl='-Wl,'
7164 # All OSF/1 code is PIC.
7165 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
7166 ;;
7167
ce2cded5
L
7168 rdos*)
7169 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
7170 ;;
7171
7172 solaris*)
ce2cded5
L
7173 lt_prog_compiler_pic='-KPIC'
7174 lt_prog_compiler_static='-Bstatic'
7175 case $cc_basename in
7176 f77* | f90* | f95*)
7177 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 7178 *)
ce2cded5 7179 lt_prog_compiler_wl='-Wl,';;
d7040cdb 7180 esac
d7040cdb
SE
7181 ;;
7182
7183 sunos4*)
ce2cded5
L
7184 lt_prog_compiler_wl='-Qoption ld '
7185 lt_prog_compiler_pic='-PIC'
7186 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7187 ;;
7188
ce2cded5
L
7189 sysv4 | sysv4.2uw2* | sysv4.3*)
7190 lt_prog_compiler_wl='-Wl,'
7191 lt_prog_compiler_pic='-KPIC'
7192 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7193 ;;
7194
7195 sysv4*MP*)
ce2cded5
L
7196 if test -d /usr/nec ;then
7197 lt_prog_compiler_pic='-Kconform_pic'
7198 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7199 fi
7200 ;;
7201
ce2cded5
L
7202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7203 lt_prog_compiler_wl='-Wl,'
7204 lt_prog_compiler_pic='-KPIC'
7205 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7206 ;;
7207
ce2cded5
L
7208 unicos*)
7209 lt_prog_compiler_wl='-Wl,'
7210 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
7211 ;;
7212
7213 uts4*)
ce2cded5
L
7214 lt_prog_compiler_pic='-pic'
7215 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7216 ;;
7217
7218 *)
ce2cded5 7219 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
7220 ;;
7221 esac
d7040cdb
SE
7222 fi
7223
ce2cded5
L
7224case $host_os in
7225 # For platforms which do not support PIC, -DPIC is meaningless:
7226 *djgpp*)
7227 lt_prog_compiler_pic=
7228 ;;
7229 *)
7230 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7231 ;;
7232esac
7233echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7234echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7235
7236
7237
7238
7239
7240
7241#
ce2cded5 7242# Check to make sure the PIC flag actually works.
d7040cdb 7243#
ce2cded5
L
7244if test -n "$lt_prog_compiler_pic"; then
7245 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7246echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7247if test "${lt_prog_compiler_pic_works+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250 lt_prog_compiler_pic_works=no
7251 ac_outfile=conftest.$ac_objext
7252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7253 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7254 # Insert the option either (1) after the last *FLAGS variable, or
7255 # (2) before a word containing "conftest.", or (3) at the end.
7256 # Note that $ac_compile itself does not contain backslashes and begins
7257 # with a dollar sign (not a hyphen), so the echo should work correctly.
7258 # The option is referenced via a variable to avoid confusing sed.
7259 lt_compile=`echo "$ac_compile" | $SED \
7260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7262 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7263 (eval echo "\"\$as_me:7263: $lt_compile\"" >&5)
ce2cded5
L
7264 (eval "$lt_compile" 2>conftest.err)
7265 ac_status=$?
7266 cat conftest.err >&5
7357c5b6 7267 echo "$as_me:7267: \$? = $ac_status" >&5
ce2cded5
L
7268 if (exit $ac_status) && test -s "$ac_outfile"; then
7269 # The compiler can only warn and ignore the option if not recognized
7270 # So say no if there are warnings other than the usual output.
7271 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7274 lt_prog_compiler_pic_works=yes
7275 fi
7276 fi
7277 $RM conftest*
d7040cdb 7278
ce2cded5
L
7279fi
7280echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7281echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
d7040cdb 7282
ce2cded5
L
7283if test x"$lt_prog_compiler_pic_works" = xyes; then
7284 case $lt_prog_compiler_pic in
7285 "" | " "*) ;;
7286 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7287 esac
7288else
7289 lt_prog_compiler_pic=
7290 lt_prog_compiler_can_build_shared=no
7291fi
d7040cdb 7292
ce2cded5 7293fi
d7040cdb
SE
7294
7295
7296
7297
7298
7299
ce2cded5
L
7300#
7301# Check to make sure the static flag actually works.
7302#
7303wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7304echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7305echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7306if test "${lt_prog_compiler_static_works+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308else
7309 lt_prog_compiler_static_works=no
7310 save_LDFLAGS="$LDFLAGS"
7311 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7312 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7313 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7314 # The linker can only warn and ignore the option if not recognized
7315 # So say no if there are warnings
7316 if test -s conftest.err; then
7317 # Append any errors to the config.log.
7318 cat conftest.err 1>&5
7319 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7321 if diff conftest.exp conftest.er2 >/dev/null; then
7322 lt_prog_compiler_static_works=yes
7323 fi
7324 else
7325 lt_prog_compiler_static_works=yes
7326 fi
7327 fi
7328 $RM conftest*
7329 LDFLAGS="$save_LDFLAGS"
d7040cdb 7330
ce2cded5
L
7331fi
7332echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7333echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7334
ce2cded5
L
7335if test x"$lt_prog_compiler_static_works" = xyes; then
7336 :
7337else
7338 lt_prog_compiler_static=
7339fi
d7040cdb
SE
7340
7341
7342
7343
7344
7345
7346
ce2cded5
L
7347 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7348echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7349if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351else
7352 lt_cv_prog_compiler_c_o=no
7353 $RM -r conftest 2>/dev/null
7354 mkdir conftest
7355 cd conftest
7356 mkdir out
7357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7358
ce2cded5
L
7359 lt_compiler_flag="-o out/conftest2.$ac_objext"
7360 # Insert the option either (1) after the last *FLAGS variable, or
7361 # (2) before a word containing "conftest.", or (3) at the end.
7362 # Note that $ac_compile itself does not contain backslashes and begins
7363 # with a dollar sign (not a hyphen), so the echo should work correctly.
7364 lt_compile=`echo "$ac_compile" | $SED \
7365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7367 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7368 (eval echo "\"\$as_me:7368: $lt_compile\"" >&5)
ce2cded5
L
7369 (eval "$lt_compile" 2>out/conftest.err)
7370 ac_status=$?
7371 cat out/conftest.err >&5
7357c5b6 7372 echo "$as_me:7372: \$? = $ac_status" >&5
ce2cded5
L
7373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7374 then
7375 # The compiler can only warn and ignore the option if not recognized
7376 # So say no if there are warnings
7377 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7380 lt_cv_prog_compiler_c_o=yes
7381 fi
7382 fi
7383 chmod u+w . 2>&5
7384 $RM conftest*
7385 # SGI C++ compiler will create directory out/ii_files/ for
7386 # template instantiation
7387 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7388 $RM out/* && rmdir out
7389 cd ..
7390 $RM -r conftest
7391 $RM conftest*
d7040cdb 7392
ce2cded5
L
7393fi
7394echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7395echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7396
7397
7398
7399
7400
7401
ce2cded5
L
7402 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7403echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7404if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407 lt_cv_prog_compiler_c_o=no
7408 $RM -r conftest 2>/dev/null
7409 mkdir conftest
7410 cd conftest
7411 mkdir out
7412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7413
ce2cded5
L
7414 lt_compiler_flag="-o out/conftest2.$ac_objext"
7415 # Insert the option either (1) after the last *FLAGS variable, or
7416 # (2) before a word containing "conftest.", or (3) at the end.
7417 # Note that $ac_compile itself does not contain backslashes and begins
7418 # with a dollar sign (not a hyphen), so the echo should work correctly.
7419 lt_compile=`echo "$ac_compile" | $SED \
7420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7422 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7423 (eval echo "\"\$as_me:7423: $lt_compile\"" >&5)
ce2cded5
L
7424 (eval "$lt_compile" 2>out/conftest.err)
7425 ac_status=$?
7426 cat out/conftest.err >&5
7357c5b6 7427 echo "$as_me:7427: \$? = $ac_status" >&5
ce2cded5
L
7428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7429 then
7430 # The compiler can only warn and ignore the option if not recognized
7431 # So say no if there are warnings
7432 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7435 lt_cv_prog_compiler_c_o=yes
7436 fi
7437 fi
7438 chmod u+w . 2>&5
7439 $RM conftest*
7440 # SGI C++ compiler will create directory out/ii_files/ for
7441 # template instantiation
7442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7443 $RM out/* && rmdir out
7444 cd ..
7445 $RM -r conftest
7446 $RM conftest*
d7040cdb 7447
ce2cded5
L
7448fi
7449echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7450echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7451
7452
7453
7454
ce2cded5
L
7455hard_links="nottested"
7456if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7457 # do not overwrite the value of need_locks provided by the user
7458 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7459echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7460 hard_links=yes
7461 $RM conftest*
7462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7463 touch conftest.a
7464 ln conftest.a conftest.b 2>&5 || hard_links=no
7465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7466 echo "$as_me:$LINENO: result: $hard_links" >&5
7467echo "${ECHO_T}$hard_links" >&6
7468 if test "$hard_links" = no; then
7469 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7470echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7471 need_locks=warn
7472 fi
7473else
7474 need_locks=no
7475fi
d7040cdb
SE
7476
7477
7478
7479
7480
7481
ce2cded5
L
7482 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7483echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7484
ce2cded5
L
7485 runpath_var=
7486 allow_undefined_flag=
7487 always_export_symbols=no
7488 archive_cmds=
7489 archive_expsym_cmds=
7490 compiler_needs_object=no
7491 enable_shared_with_static_runtimes=no
7492 export_dynamic_flag_spec=
7493 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7494 hardcode_automatic=no
7495 hardcode_direct=no
7496 hardcode_direct_absolute=no
7497 hardcode_libdir_flag_spec=
7498 hardcode_libdir_flag_spec_ld=
7499 hardcode_libdir_separator=
7500 hardcode_minus_L=no
7501 hardcode_shlibpath_var=unsupported
7502 inherit_rpath=no
7503 link_all_deplibs=unknown
7504 module_cmds=
7505 module_expsym_cmds=
7506 old_archive_from_new_cmds=
7507 old_archive_from_expsyms_cmds=
7508 thread_safe_flag_spec=
7509 whole_archive_flag_spec=
7510 # include_expsyms should be a list of space-separated symbols to be *always*
7511 # included in the symbol list
7512 include_expsyms=
7513 # exclude_expsyms can be an extended regexp of symbols to exclude
7514 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7515 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7516 # as well as any symbol that contains `d'.
7517 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7518 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7519 # platforms (ab)use it in PIC code, but their linkers get confused if
7520 # the symbol is explicitly referenced. Since portable code cannot
7521 # rely on this symbol name, it's probably fine to never include it in
7522 # preloaded symbol tables.
7523 extract_expsyms_cmds=
d7040cdb 7524
ce2cded5
L
7525 case $host_os in
7526 cygwin* | mingw* | pw32*)
7527 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7528 # When not using gcc, we currently assume that we are using
7529 # Microsoft Visual C++.
7530 if test "$GCC" != yes; then
7531 with_gnu_ld=no
7532 fi
7533 ;;
7534 interix*)
7535 # we just hope/assume this is gcc and not c89 (= MSVC++)
7536 with_gnu_ld=yes
7537 ;;
7538 openbsd*)
7539 with_gnu_ld=no
7540 ;;
7541 esac
d7040cdb 7542
ce2cded5
L
7543 ld_shlibs=yes
7544 if test "$with_gnu_ld" = yes; then
7545 # If archive_cmds runs LD, not CC, wlarc should be empty
7546 wlarc='${wl}'
d7040cdb 7547
ce2cded5
L
7548 # Set some defaults for GNU ld with shared library support. These
7549 # are reset later if shared libraries are not supported. Putting them
7550 # here allows them to be overridden if necessary.
7551 runpath_var=LD_RUN_PATH
7552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7553 export_dynamic_flag_spec='${wl}--export-dynamic'
7554 # ancient GNU ld didn't support --whole-archive et. al.
7555 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7556 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7557 else
7558 whole_archive_flag_spec=
7559 fi
7560 supports_anon_versioning=no
7561 case `$LD -v 2>&1` in
7562 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7563 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7564 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7565 *\ 2.11.*) ;; # other 2.11 versions
7566 *) supports_anon_versioning=yes ;;
7567 esac
d7040cdb 7568
ce2cded5
L
7569 # See if GNU ld supports shared libraries.
7570 case $host_os in
50e7d84b 7571 aix[3-9]*)
ce2cded5
L
7572 # On AIX/PPC, the GNU linker is very broken
7573 if test "$host_cpu" != ia64; then
7574 ld_shlibs=no
7575 cat <<_LT_EOF 1>&2
d7040cdb 7576
ce2cded5
L
7577*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7578*** to be unable to reliably create shared libraries on AIX.
7579*** Therefore, libtool is disabling shared libraries support. If you
7580*** really care for shared libraries, you may want to modify your PATH
7581*** so that a non-GNU linker is found, and then restart.
d7040cdb 7582
ce2cded5
L
7583_LT_EOF
7584 fi
7585 ;;
d7040cdb 7586
ce2cded5
L
7587 amigaos*)
7588 if test "$host_cpu" = m68k; then
7589 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)'
7590 hardcode_libdir_flag_spec='-L$libdir'
7591 hardcode_minus_L=yes
7592 fi
d7040cdb 7593
ce2cded5
L
7594 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7595 # that the semantics of dynamic libraries on AmigaOS, at least up
7596 # to version 4, is to share data among multiple programs linked
7597 # with the same dynamic library. Since this doesn't match the
7598 # behavior of shared libraries on other platforms, we can't use
7599 # them.
7600 ld_shlibs=no
7601 ;;
d7040cdb 7602
ce2cded5
L
7603 beos*)
7604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7605 allow_undefined_flag=unsupported
7606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7607 # support --undefined. This deserves some investigation. FIXME
7608 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7609 else
7610 ld_shlibs=no
7611 fi
7612 ;;
d7040cdb 7613
ce2cded5
L
7614 cygwin* | mingw* | pw32*)
7615 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7616 # as there is no search path for DLLs.
7617 hardcode_libdir_flag_spec='-L$libdir'
7618 allow_undefined_flag=unsupported
7619 always_export_symbols=no
7620 enable_shared_with_static_runtimes=yes
7621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 7622
ce2cded5
L
7623 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7625 # If the export-symbols file already is a .def file (1st line
7626 # is EXPORTS), use it as is; otherwise, prepend...
7627 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7628 cp $export_symbols $output_objdir/$soname.def;
7629 else
7630 echo EXPORTS > $output_objdir/$soname.def;
7631 cat $export_symbols >> $output_objdir/$soname.def;
7632 fi~
7633 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7634 else
7635 ld_shlibs=no
7636 fi
7637 ;;
d7040cdb 7638
ce2cded5
L
7639 interix[3-9]*)
7640 hardcode_direct=no
7641 hardcode_shlibpath_var=no
7642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7643 export_dynamic_flag_spec='${wl}-E'
7644 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7645 # Instead, shared libraries are loaded at an image base (0x10000000 by
7646 # default) and relocated if they conflict, which is a slow very memory
7647 # consuming and fragmenting process. To avoid this, we pick a random,
7648 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7649 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7650 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7651 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'
7652 ;;
d7040cdb 7653
ce2cded5
L
7654 gnu* | linux* | tpf* | k*bsd*-gnu)
7655 tmp_diet=no
7656 if test "$host_os" = linux-dietlibc; then
7657 case $cc_basename in
7658 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7659 esac
7660 fi
7661 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7662 && test "$tmp_diet" = no
7663 then
7664 tmp_addflag=
7665 case $cc_basename,$host_cpu in
7666 pgcc*) # Portland Group C compiler
7667 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'
7668 tmp_addflag=' $pic_flag'
7669 ;;
7670 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7671 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'
7672 tmp_addflag=' $pic_flag -Mnomain' ;;
7673 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7674 tmp_addflag=' -i_dynamic' ;;
7675 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7676 tmp_addflag=' -i_dynamic -nofor_main' ;;
7677 ifc* | ifort*) # Intel Fortran compiler
7678 tmp_addflag=' -nofor_main' ;;
7679 esac
7680 case `$CC -V 2>&1 | sed 5q` in
7681 *Sun\ C*) # Sun C 5.9
7682 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'
7683 compiler_needs_object=yes
7684 tmp_sharedflag='-G' ;;
7685 *Sun\ F*) # Sun Fortran 8.3
7686 tmp_sharedflag='-G' ;;
7687 *)
7688 tmp_sharedflag='-shared' ;;
7689 esac
7690 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7691
ce2cded5
L
7692 if test "x$supports_anon_versioning" = xyes; then
7693 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7695 echo "local: *; };" >> $output_objdir/$libname.ver~
7696 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7697 fi
7698 else
7699 ld_shlibs=no
7700 fi
7701 ;;
d7040cdb 7702
ce2cded5
L
7703 netbsd*)
7704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7705 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7706 wlarc=
7707 else
7708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7710 fi
7711 ;;
d7040cdb 7712
ce2cded5
L
7713 solaris*)
7714 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7715 ld_shlibs=no
7716 cat <<_LT_EOF 1>&2
d7040cdb 7717
ce2cded5
L
7718*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7719*** create shared libraries on Solaris systems. Therefore, libtool
7720*** is disabling shared libraries support. We urge you to upgrade GNU
7721*** binutils to release 2.9.1 or newer. Another option is to modify
7722*** your PATH or compiler configuration so that the native linker is
7723*** used, and then restart.
d7040cdb 7724
ce2cded5
L
7725_LT_EOF
7726 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7729 else
7730 ld_shlibs=no
7731 fi
7732 ;;
d7040cdb 7733
ce2cded5
L
7734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7735 case `$LD -v 2>&1` in
7736 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7737 ld_shlibs=no
7738 cat <<_LT_EOF 1>&2
d7040cdb 7739
ce2cded5
L
7740*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7741*** reliably create shared libraries on SCO systems. Therefore, libtool
7742*** is disabling shared libraries support. We urge you to upgrade GNU
7743*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7744*** your PATH or compiler configuration so that the native linker is
7745*** used, and then restart.
d7040cdb 7746
ce2cded5
L
7747_LT_EOF
7748 ;;
7749 *)
7750 # For security reasons, it is highly recommended that you always
7751 # use absolute paths for naming shared libraries, and exclude the
7752 # DT_RUNPATH tag from executables and libraries. But doing so
7753 # requires that you compile everything twice, which is a pain.
7754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7758 else
7759 ld_shlibs=no
7760 fi
7761 ;;
7762 esac
7763 ;;
d7040cdb 7764
ce2cded5
L
7765 sunos4*)
7766 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7767 wlarc=
7768 hardcode_direct=yes
7769 hardcode_shlibpath_var=no
7770 ;;
d7040cdb 7771
ce2cded5
L
7772 *)
7773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7776 else
7777 ld_shlibs=no
7778 fi
7779 ;;
7780 esac
d7040cdb 7781
ce2cded5
L
7782 if test "$ld_shlibs" = no; then
7783 runpath_var=
7784 hardcode_libdir_flag_spec=
7785 export_dynamic_flag_spec=
7786 whole_archive_flag_spec=
7787 fi
7788 else
7789 # PORTME fill in a description of your system's linker (not GNU ld)
7790 case $host_os in
7791 aix3*)
7792 allow_undefined_flag=unsupported
7793 always_export_symbols=yes
7794 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'
7795 # Note: this linker hardcodes the directories in LIBPATH if there
7796 # are no directories specified by -L.
7797 hardcode_minus_L=yes
7798 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7799 # Neither direct hardcoding nor static linking is supported with a
7800 # broken collect2.
7801 hardcode_direct=unsupported
7802 fi
7803 ;;
d7040cdb 7804
50e7d84b 7805 aix[4-9]*)
ce2cded5
L
7806 if test "$host_cpu" = ia64; then
7807 # On IA64, the linker does run time linking by default, so we don't
7808 # have to do anything special.
7809 aix_use_runtimelinking=no
7810 exp_sym_flag='-Bexport'
7811 no_entry_flag=""
7812 else
7813 # If we're using GNU nm, then we don't want the "-C" option.
7814 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7815 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7816 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'
7817 else
7818 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'
7819 fi
7820 aix_use_runtimelinking=no
d7040cdb 7821
ce2cded5
L
7822 # Test if we are trying to use run time linking or normal
7823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7824 # need to do runtime linking.
50e7d84b 7825 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
7826 for ld_flag in $LDFLAGS; do
7827 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7828 aix_use_runtimelinking=yes
7829 break
7830 fi
7831 done
7832 ;;
7833 esac
d7040cdb 7834
ce2cded5
L
7835 exp_sym_flag='-bexport'
7836 no_entry_flag='-bnoentry'
7837 fi
d7040cdb 7838
ce2cded5
L
7839 # When large executables or shared objects are built, AIX ld can
7840 # have problems creating the table of contents. If linking a library
7841 # or program results in "error TOC overflow" add -mminimal-toc to
7842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 7844
ce2cded5
L
7845 archive_cmds=''
7846 hardcode_direct=yes
7847 hardcode_direct_absolute=yes
7848 hardcode_libdir_separator=':'
7849 link_all_deplibs=yes
7850 file_list_spec='${wl}-f,'
d7040cdb 7851
ce2cded5
L
7852 if test "$GCC" = yes; then
7853 case $host_os in aix4.[012]|aix4.[012].*)
7854 # We only want to do this on AIX 4.2 and lower, the check
7855 # below for broken collect2 doesn't work under 4.3+
7856 collect2name=`${CC} -print-prog-name=collect2`
7857 if test -f "$collect2name" &&
7858 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7859 then
7860 # We have reworked collect2
7861 :
7862 else
7863 # We have old collect2
7864 hardcode_direct=unsupported
7865 # It fails to find uninstalled libraries when the uninstalled
7866 # path is not listed in the libpath. Setting hardcode_minus_L
7867 # to unsupported forces relinking
7868 hardcode_minus_L=yes
7869 hardcode_libdir_flag_spec='-L$libdir'
7870 hardcode_libdir_separator=
7871 fi
7872 ;;
7873 esac
7874 shared_flag='-shared'
7875 if test "$aix_use_runtimelinking" = yes; then
7876 shared_flag="$shared_flag "'${wl}-G'
7877 fi
7878 else
7879 # not using gcc
7880 if test "$host_cpu" = ia64; then
7881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7882 # chokes on -Wl,-G. The following line is correct:
7883 shared_flag='-G'
7884 else
7885 if test "$aix_use_runtimelinking" = yes; then
7886 shared_flag='${wl}-G'
7887 else
7888 shared_flag='${wl}-bM:SRE'
7889 fi
7890 fi
7891 fi
d7040cdb 7892
ce2cded5
L
7893 # It seems that -bexpall does not export symbols beginning with
7894 # underscore (_), so it is better to generate a list of symbols to export.
7895 always_export_symbols=yes
7896 if test "$aix_use_runtimelinking" = yes; then
7897 # Warning - without using the other runtime loading flags (-brtl),
7898 # -berok will link without error, but may produce a broken library.
7899 allow_undefined_flag='-berok'
7900 # Determine the default libpath from the value encoded in an
7901 # empty executable.
7902 cat >conftest.$ac_ext <<_ACEOF
7903/* confdefs.h. */
7904_ACEOF
7905cat confdefs.h >>conftest.$ac_ext
7906cat >>conftest.$ac_ext <<_ACEOF
7907/* end confdefs.h. */
d7040cdb 7908
ce2cded5
L
7909int
7910main ()
7911{
d7040cdb 7912
ce2cded5
L
7913 ;
7914 return 0;
7915}
7916_ACEOF
7917rm -f conftest.$ac_objext conftest$ac_exeext
7918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
d7040cdb 7939
ce2cded5
L
7940lt_aix_libpath_sed='
7941 /Import File Strings/,/^$/ {
7942 /^0/ {
7943 s/^0 *\(.*\)$/\1/
7944 p
7945 }
7946 }'
7947aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7948# Check for a 64-bit object if we didn't find anything.
7949if test -z "$aix_libpath"; then
7950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7951fi
7952else
7953 echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7955
ce2cded5
L
7956fi
7957rm -f conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7959if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7960
ce2cded5
L
7961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7962 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"
7963 else
7964 if test "$host_cpu" = ia64; then
7965 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7966 allow_undefined_flag="-z nodefs"
7967 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"
7968 else
7969 # Determine the default libpath from the value encoded in an
7970 # empty executable.
7971 cat >conftest.$ac_ext <<_ACEOF
7972/* confdefs.h. */
7973_ACEOF
7974cat confdefs.h >>conftest.$ac_ext
7975cat >>conftest.$ac_ext <<_ACEOF
7976/* end confdefs.h. */
d7040cdb 7977
ce2cded5
L
7978int
7979main ()
7980{
d7040cdb 7981
ce2cded5
L
7982 ;
7983 return 0;
7984}
7985_ACEOF
7986rm -f conftest.$ac_objext conftest$ac_exeext
7987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7988 (eval $ac_link) 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest$ac_exeext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
d7040cdb 8008
ce2cded5
L
8009lt_aix_libpath_sed='
8010 /Import File Strings/,/^$/ {
8011 /^0/ {
8012 s/^0 *\(.*\)$/\1/
8013 p
8014 }
8015 }'
8016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8017# Check for a 64-bit object if we didn't find anything.
8018if test -z "$aix_libpath"; then
8019 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8020fi
8021else
8022 echo "$as_me: failed program was:" >&5
8023sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8024
ce2cded5
L
8025fi
8026rm -f conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8029
ce2cded5
L
8030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8031 # Warning - without using the other run time loading flags,
8032 # -berok will link without error, but may produce a broken library.
8033 no_undefined_flag=' ${wl}-bernotok'
8034 allow_undefined_flag=' ${wl}-berok'
8035 # Exported symbols can be pulled into shared objects from archives
8036 whole_archive_flag_spec='$convenience'
8037 archive_cmds_need_lc=yes
8038 # This is similar to how AIX traditionally builds its shared libraries.
8039 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'
8040 fi
8041 fi
8042 ;;
d7040cdb 8043
ce2cded5
L
8044 amigaos*)
8045 if test "$host_cpu" = m68k; then
8046 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)'
8047 hardcode_libdir_flag_spec='-L$libdir'
8048 hardcode_minus_L=yes
8049 fi
8050 # see comment about different semantics on the GNU ld section
8051 ld_shlibs=no
8052 ;;
d7040cdb 8053
ce2cded5
L
8054 bsdi[45]*)
8055 export_dynamic_flag_spec=-rdynamic
8056 ;;
d7040cdb 8057
ce2cded5
L
8058 cygwin* | mingw* | pw32*)
8059 # When not using gcc, we currently assume that we are using
8060 # Microsoft Visual C++.
8061 # hardcode_libdir_flag_spec is actually meaningless, as there is
8062 # no search path for DLLs.
8063 hardcode_libdir_flag_spec=' '
8064 allow_undefined_flag=unsupported
8065 # Tell ltmain to make .lib files, not .a files.
8066 libext=lib
8067 # Tell ltmain to make .dll files, not .so files.
8068 shrext_cmds=".dll"
8069 # FIXME: Setting linknames here is a bad hack.
8070 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8071 # The linker will automatically build a .lib file if we build a DLL.
8072 old_archive_from_new_cmds='true'
8073 # FIXME: Should let the user specify the lib program.
8074 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8075 fix_srcfile_path='`cygpath -w "$srcfile"`'
8076 enable_shared_with_static_runtimes=yes
8077 ;;
d7040cdb 8078
ce2cded5
L
8079 darwin* | rhapsody*)
8080 case $host_os in
8081 rhapsody* | darwin1.[012])
8082 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8083 ;;
8084 *) # Darwin 1.3 on
8085 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8086 10.[012])
8087 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8088 ;;
8089 10.*)
8090 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8091 ;;
8092 esac
8093 ;;
8094 esac
8095 archive_cmds_need_lc=no
8096 hardcode_direct=no
8097 hardcode_automatic=yes
8098 hardcode_shlibpath_var=unsupported
8099 whole_archive_flag_spec=''
8100 link_all_deplibs=yes
8101 if test "$GCC" = yes ; then
8102 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105 lt_cv_apple_cc_single_mod=no
8106 if test -z "${LT_MULTI_MODULE}"; then
8107 # By default we will add the -single_module flag. You can override
8108 # by either setting the environment variable LT_MULTI_MODULE
8109 # non-empty at configure time, or by adding -multi-module to the
8110 # link flags.
8111 echo "int foo(void){return 1;}" > conftest.c
8112 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8113 -dynamiclib ${wl}-single_module conftest.c
8114 if test -f libconftest.dylib; then
8115 lt_cv_apple_cc_single_mod=yes
8116 rm libconftest.dylib
8117 fi
8118 rm conftest.$ac_ext
8119 fi
8120fi
d7040cdb 8121
ce2cded5
L
8122 output_verbose_link_cmd=echo
8123 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8124 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8125 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}'
8126 else
8127 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8128 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}'
8129 fi
8130 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8131 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}'
8132 else
8133 case $cc_basename in
8134 xlc*)
8135 output_verbose_link_cmd=echo
8136 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8137 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8139 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}'
8140 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}'
8141 ;;
8142 *)
8143 ld_shlibs=no
8144 ;;
8145 esac
8146 fi
8147 ;;
d7040cdb 8148
ce2cded5
L
8149 dgux*)
8150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8151 hardcode_libdir_flag_spec='-L$libdir'
8152 hardcode_shlibpath_var=no
8153 ;;
d7040cdb 8154
ce2cded5
L
8155 freebsd1*)
8156 ld_shlibs=no
8157 ;;
d7040cdb 8158
ce2cded5
L
8159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8160 # support. Future versions do this automatically, but an explicit c++rt0.o
8161 # does not break anything, and helps significantly (at the cost of a little
8162 # extra space).
8163 freebsd2.2*)
8164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8165 hardcode_libdir_flag_spec='-R$libdir'
8166 hardcode_direct=yes
8167 hardcode_shlibpath_var=no
8168 ;;
d7040cdb 8169
ce2cded5
L
8170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8171 freebsd2*)
8172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8173 hardcode_direct=yes
8174 hardcode_minus_L=yes
8175 hardcode_shlibpath_var=no
8176 ;;
d7040cdb 8177
ce2cded5
L
8178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8179 freebsd* | dragonfly*)
8180 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8181 hardcode_libdir_flag_spec='-R$libdir'
8182 hardcode_direct=yes
8183 hardcode_shlibpath_var=no
8184 ;;
d7040cdb 8185
ce2cded5
L
8186 hpux9*)
8187 if test "$GCC" = yes; then
8188 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'
8189 else
8190 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'
8191 fi
8192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8193 hardcode_libdir_separator=:
8194 hardcode_direct=yes
d7040cdb 8195
ce2cded5
L
8196 # hardcode_minus_L: Not really in the search PATH,
8197 # but as the default location of the library.
8198 hardcode_minus_L=yes
8199 export_dynamic_flag_spec='${wl}-E'
8200 ;;
d7040cdb 8201
ce2cded5
L
8202 hpux10*)
8203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8204 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8205 else
8206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8207 fi
8208 if test "$with_gnu_ld" = no; then
8209 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8210 hardcode_libdir_flag_spec_ld='+b $libdir'
8211 hardcode_libdir_separator=:
8212 hardcode_direct=yes
8213 hardcode_direct_absolute=yes
8214 export_dynamic_flag_spec='${wl}-E'
8215 # hardcode_minus_L: Not really in the search PATH,
8216 # but as the default location of the library.
8217 hardcode_minus_L=yes
8218 fi
8219 ;;
d7040cdb 8220
ce2cded5
L
8221 hpux11*)
8222 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8223 case $host_cpu in
8224 hppa*64*)
8225 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8226 ;;
8227 ia64*)
8228 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8229 ;;
8230 *)
8231 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8232 ;;
8233 esac
8234 else
8235 case $host_cpu in
8236 hppa*64*)
8237 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8238 ;;
8239 ia64*)
8240 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8241 ;;
8242 *)
8243 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8244 ;;
8245 esac
8246 fi
8247 if test "$with_gnu_ld" = no; then
8248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8249 hardcode_libdir_separator=:
d7040cdb 8250
ce2cded5
L
8251 case $host_cpu in
8252 hppa*64*|ia64*)
8253 hardcode_direct=no
8254 hardcode_shlibpath_var=no
8255 ;;
8256 *)
8257 hardcode_direct=yes
8258 hardcode_direct_absolute=yes
8259 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8260
ce2cded5
L
8261 # hardcode_minus_L: Not really in the search PATH,
8262 # but as the default location of the library.
8263 hardcode_minus_L=yes
8264 ;;
8265 esac
8266 fi
8267 ;;
8268
8269 irix5* | irix6* | nonstopux*)
8270 if test "$GCC" = yes; then
8271 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'
8272 # Try to use the -exported_symbol ld option, if it does not
8273 # work, assume that -exports_file does not work either and
8274 # implicitly export all symbols.
8275 save_LDFLAGS="$LDFLAGS"
8276 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8277 cat >conftest.$ac_ext <<_ACEOF
8278int foo(void) {}
8279_ACEOF
8280rm -f conftest.$ac_objext conftest$ac_exeext
8281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 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'
d7040cdb 8303
d7040cdb 8304else
ce2cded5
L
8305 echo "$as_me: failed program was:" >&5
8306sed 's/^/| /' conftest.$ac_ext >&5
8307
d7040cdb 8308fi
ce2cded5
L
8309rm -f conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 LDFLAGS="$save_LDFLAGS"
8312 else
8313 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'
8314 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'
8315 fi
8316 archive_cmds_need_lc='no'
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 hardcode_libdir_separator=:
8319 inherit_rpath=yes
8320 link_all_deplibs=yes
8321 ;;
d7040cdb 8322
ce2cded5
L
8323 netbsd*)
8324 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8326 else
8327 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8328 fi
8329 hardcode_libdir_flag_spec='-R$libdir'
8330 hardcode_direct=yes
8331 hardcode_shlibpath_var=no
8332 ;;
d7040cdb 8333
ce2cded5
L
8334 newsos6)
8335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8336 hardcode_direct=yes
8337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8338 hardcode_libdir_separator=:
8339 hardcode_shlibpath_var=no
8340 ;;
d7040cdb 8341
ce2cded5
L
8342 *nto* | *qnx*)
8343 ;;
d7040cdb 8344
ce2cded5
L
8345 openbsd*)
8346 hardcode_direct=yes
8347 hardcode_shlibpath_var=no
8348 hardcode_direct_absolute=yes
8349 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8350 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8351 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8353 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8354 else
ce2cded5
L
8355 case $host_os in
8356 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8358 hardcode_libdir_flag_spec='-R$libdir'
8359 ;;
8360 *)
8361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8363 ;;
8364 esac
d7040cdb
SE
8365 fi
8366 ;;
d7040cdb 8367
ce2cded5
L
8368 os2*)
8369 hardcode_libdir_flag_spec='-L$libdir'
8370 hardcode_minus_L=yes
8371 allow_undefined_flag=unsupported
8372 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'
8373 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8374 ;;
d7040cdb 8375
ce2cded5
L
8376 osf3*)
8377 if test "$GCC" = yes; then
8378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8379 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'
8380 else
8381 allow_undefined_flag=' -expect_unresolved \*'
8382 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'
8383 fi
8384 archive_cmds_need_lc='no'
8385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8386 hardcode_libdir_separator=:
8387 ;;
d7040cdb 8388
ce2cded5
L
8389 osf4* | osf5*) # as osf3* with the addition of -msym flag
8390 if test "$GCC" = yes; then
8391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8392 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'
8393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8394 else
8395 allow_undefined_flag=' -expect_unresolved \*'
8396 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'
8397 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~
8398 $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'
d7040cdb 8399
ce2cded5
L
8400 # Both c and cxx compiler support -rpath directly
8401 hardcode_libdir_flag_spec='-rpath $libdir'
8402 fi
8403 archive_cmds_need_lc='no'
8404 hardcode_libdir_separator=:
8405 ;;
d7040cdb 8406
ce2cded5
L
8407 solaris*)
8408 no_undefined_flag=' -z defs'
8409 if test "$GCC" = yes; then
8410 wlarc='${wl}'
8411 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8413 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8414 else
8415 case `$CC -V 2>&1` in
8416 *"Compilers 5.0"*)
8417 wlarc=''
8418 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8419 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8421 ;;
8422 *)
8423 wlarc='${wl}'
8424 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8425 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8426 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8427 ;;
8428 esac
8429 fi
8430 hardcode_libdir_flag_spec='-R$libdir'
8431 hardcode_shlibpath_var=no
8432 case $host_os in
8433 solaris2.[0-5] | solaris2.[0-5].*) ;;
8434 *)
8435 # The compiler driver will combine and reorder linker options,
8436 # but understands `-z linker_flag'. GCC discards it without `$wl',
8437 # but is careful enough not to reorder.
8438 # Supported since Solaris 2.6 (maybe 2.5.1?)
8439 if test "$GCC" = yes; then
8440 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8441 else
8442 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8443 fi
8444 ;;
8445 esac
8446 link_all_deplibs=yes
d7040cdb 8447 ;;
ce2cded5
L
8448
8449 sunos4*)
8450 if test "x$host_vendor" = xsequent; then
8451 # Use $CC to link under sequent, because it throws in some extra .o
8452 # files that make .init and .fini sections work.
8453 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 8454 else
ce2cded5 8455 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 8456 fi
ce2cded5
L
8457 hardcode_libdir_flag_spec='-L$libdir'
8458 hardcode_direct=yes
8459 hardcode_minus_L=yes
8460 hardcode_shlibpath_var=no
d7040cdb 8461 ;;
ce2cded5
L
8462
8463 sysv4)
8464 case $host_vendor in
8465 sni)
8466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467 hardcode_direct=yes # is this really true???
8468 ;;
8469 siemens)
8470 ## LD is ld it makes a PLAMLIB
8471 ## CC just makes a GrossModule.
8472 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8473 reload_cmds='$CC -r -o $output$reload_objs'
8474 hardcode_direct=no
8475 ;;
8476 motorola)
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8479 ;;
8480 esac
8481 runpath_var='LD_RUN_PATH'
8482 hardcode_shlibpath_var=no
d7040cdb 8483 ;;
d7040cdb 8484
ce2cded5
L
8485 sysv4.3*)
8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487 hardcode_shlibpath_var=no
8488 export_dynamic_flag_spec='-Bexport'
8489 ;;
d7040cdb 8490
ce2cded5
L
8491 sysv4*MP*)
8492 if test -d /usr/nec; then
8493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8494 hardcode_shlibpath_var=no
8495 runpath_var=LD_RUN_PATH
8496 hardcode_runpath_var=yes
8497 ld_shlibs=yes
8498 fi
8499 ;;
d7040cdb 8500
ce2cded5
L
8501 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8502 no_undefined_flag='${wl}-z,text'
8503 archive_cmds_need_lc=no
8504 hardcode_shlibpath_var=no
8505 runpath_var='LD_RUN_PATH'
d7040cdb 8506
ce2cded5
L
8507 if test "$GCC" = yes; then
8508 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8509 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 else
8511 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 fi
8514 ;;
d7040cdb 8515
ce2cded5
L
8516 sysv5* | sco3.2v5* | sco5v6*)
8517 # Note: We can NOT use -z defs as we might desire, because we do not
8518 # link with -lc, and that would cause any symbols used from libc to
8519 # always be unresolved, which means just about no library would
8520 # ever link correctly. If we're not using GNU ld we use -z text
8521 # though, which does catch some bad symbols but isn't as heavy-handed
8522 # as -z defs.
8523 no_undefined_flag='${wl}-z,text'
8524 allow_undefined_flag='${wl}-z,nodefs'
8525 archive_cmds_need_lc=no
8526 hardcode_shlibpath_var=no
8527 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8528 hardcode_libdir_separator=':'
8529 link_all_deplibs=yes
8530 export_dynamic_flag_spec='${wl}-Bexport'
8531 runpath_var='LD_RUN_PATH'
d7040cdb 8532
ce2cded5
L
8533 if test "$GCC" = yes; then
8534 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8535 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536 else
8537 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 fi
d7040cdb 8540 ;;
d7040cdb 8541
ce2cded5
L
8542 uts4*)
8543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_libdir_flag_spec='-L$libdir'
8545 hardcode_shlibpath_var=no
8546 ;;
d7040cdb 8547
ce2cded5
L
8548 *)
8549 ld_shlibs=no
8550 ;;
8551 esac
8552
8553 if test x$host_vendor = xsni; then
8554 case $host in
8555 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8556 export_dynamic_flag_spec='${wl}-Blargedynsym'
8557 ;;
8558 esac
d7040cdb 8559 fi
ce2cded5 8560 fi
d7040cdb 8561
ce2cded5
L
8562echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8563echo "${ECHO_T}$ld_shlibs" >&6
8564test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8565
ce2cded5 8566with_gnu_ld=$with_gnu_ld
d7040cdb 8567
d7040cdb 8568
d7040cdb 8569
d7040cdb 8570
d7040cdb 8571
d7040cdb 8572
d7040cdb 8573
d7040cdb 8574
d7040cdb 8575
d7040cdb 8576
d7040cdb 8577
d7040cdb 8578
d7040cdb 8579
d7040cdb 8580
d7040cdb 8581
ce2cded5
L
8582#
8583# Do we need to explicitly link libc?
8584#
8585case "x$archive_cmds_need_lc" in
8586x|xyes)
8587 # Assume -lc should be added
8588 archive_cmds_need_lc=yes
d7040cdb 8589
ce2cded5
L
8590 if test "$enable_shared" = yes && test "$GCC" = yes; then
8591 case $archive_cmds in
8592 *'~'*)
8593 # FIXME: we may have to deal with multi-command sequences.
8594 ;;
8595 '$CC '*)
8596 # Test whether the compiler implicitly links with -lc since on some
8597 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8598 # to ld, don't add -lc before -lgcc.
8599 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8600echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8601 $RM conftest*
8602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8603
ce2cded5
L
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } 2>conftest.err; then
8609 soname=conftest
8610 lib=conftest
8611 libobjs=conftest.$ac_objext
8612 deplibs=
8613 wl=$lt_prog_compiler_wl
8614 pic_flag=$lt_prog_compiler_pic
8615 compiler_flags=-v
8616 linker_flags=-v
8617 verstring=
8618 output_objdir=.
8619 libname=conftest
8620 lt_save_allow_undefined_flag=$allow_undefined_flag
8621 allow_undefined_flag=
8622 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8623 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }
8627 then
8628 archive_cmds_need_lc=no
8629 else
8630 archive_cmds_need_lc=yes
8631 fi
8632 allow_undefined_flag=$lt_save_allow_undefined_flag
8633 else
8634 cat conftest.err 1>&5
8635 fi
8636 $RM conftest*
8637 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8638echo "${ECHO_T}$archive_cmds_need_lc" >&6
8639 ;;
8640 esac
d7040cdb 8641 fi
d7040cdb 8642 ;;
ce2cded5 8643esac
d7040cdb 8644
d7040cdb 8645
d7040cdb 8646
d7040cdb 8647
d7040cdb 8648
d7040cdb 8649
d7040cdb 8650
d7040cdb
SE
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
d7040cdb 8738
d7040cdb 8739
d7040cdb
SE
8740
8741
8742
8743
8744
8745
d7040cdb 8746
d7040cdb 8747
d7040cdb 8748
d7040cdb 8749
d7040cdb 8750
d7040cdb 8751
d7040cdb 8752
d7040cdb 8753
d7040cdb 8754
d7040cdb 8755
d7040cdb 8756
d7040cdb 8757
d7040cdb 8758
d7040cdb 8759
d7040cdb 8760
d7040cdb 8761
d7040cdb 8762
d7040cdb 8763
d7040cdb 8764
d7040cdb 8765
d7040cdb 8766
d7040cdb 8767
d7040cdb 8768
ce2cded5
L
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8802echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8803withGCC=$GCC
8804if test "$withGCC" = yes; then
8805 case $host_os in
8806 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8807 *) lt_awk_arg="/^libraries:/" ;;
8808 esac
8809 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8810 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8811 # if the path contains ";" then we assume it to be the separator
8812 # otherwise default to the standard path separator (i.e. ":") - it is
8813 # assumed that no part of a normal pathname contains ";" but that should
8814 # okay in the real world where ";" in dirpaths is itself problematic.
8815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8816 else
8817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8818 fi
8819 # Ok, now we have the path, separated by spaces, we can step through it
8820 # and add multilib dir if necessary.
8821 lt_tmp_lt_search_path_spec=
8822 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8823 for lt_sys_path in $lt_search_path_spec; do
8824 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8825 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8826 else
8827 test -d "$lt_sys_path" && \
8828 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8829 fi
8830 done
8831 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8832BEGIN {RS=" "; FS="/|\n";} {
8833 lt_foo="";
8834 lt_count=0;
8835 for (lt_i = NF; lt_i > 0; lt_i--) {
8836 if ($lt_i != "" && $lt_i != ".") {
8837 if ($lt_i == "..") {
8838 lt_count++;
8839 } else {
8840 if (lt_count == 0) {
8841 lt_foo="/" $lt_i lt_foo;
8842 } else {
8843 lt_count--;
8844 }
8845 }
8846 }
8847 }
8848 if (lt_foo != "") { lt_freq[lt_foo]++; }
8849 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8850}'`
8851 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8852else
ce2cded5
L
8853 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8854fi
8855library_names_spec=
8856libname_spec='lib$name'
8857soname_spec=
8858shrext_cmds=".so"
8859postinstall_cmds=
8860postuninstall_cmds=
8861finish_cmds=
8862finish_eval=
8863shlibpath_var=
8864shlibpath_overrides_runpath=unknown
8865version_type=none
8866dynamic_linker="$host_os ld.so"
8867sys_lib_dlsearch_path_spec="/lib /usr/lib"
8868need_lib_prefix=unknown
8869hardcode_into_libs=no
8870
8871# when you set need_version to no, make sure it does not cause -set_version
8872# flags to be left without arguments
8873need_version=unknown
8874
8875case $host_os in
8876aix3*)
8877 version_type=linux
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8879 shlibpath_var=LIBPATH
8880
8881 # AIX 3 has no versioning support, so we append a major version to the name.
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 ;;
8884
50e7d84b 8885aix[4-9]*)
ce2cded5
L
8886 version_type=linux
8887 need_lib_prefix=no
8888 need_version=no
8889 hardcode_into_libs=yes
8890 if test "$host_cpu" = ia64; then
8891 # AIX 5 supports IA64
8892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8893 shlibpath_var=LD_LIBRARY_PATH
8894 else
8895 # With GCC up to 2.95.x, collect2 would create an import file
8896 # for dependence libraries. The import file would start with
8897 # the line `#! .'. This would cause the generated library to
8898 # depend on `.', always an invalid library. This was fixed in
8899 # development snapshots of GCC prior to 3.0.
8900 case $host_os in
8901 aix4 | aix4.[01] | aix4.[01].*)
8902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8903 echo ' yes '
8904 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8905 :
8906 else
8907 can_build_shared=no
8908 fi
8909 ;;
8910 esac
8911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8912 # soname into executable. Probably we can add versioning support to
8913 # collect2, so additional links can be useful in future.
8914 if test "$aix_use_runtimelinking" = yes; then
8915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8916 # instead of lib<name>.a to let people know that these are not
8917 # typical AIX shared libraries.
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919 else
8920 # We preserve .a as extension for shared libraries through AIX4.2
8921 # and later when we are not doing run time linking.
8922 library_names_spec='${libname}${release}.a $libname.a'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 fi
8925 shlibpath_var=LIBPATH
8926 fi
8927 ;;
8928
8929amigaos*)
8930 if test "$host_cpu" = m68k; then
8931 library_names_spec='$libname.ixlibrary $libname.a'
8932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8933 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'
8934 else
8935 dynamic_linker=no
8936 fi
8937 ;;
8938
8939beos*)
8940 library_names_spec='${libname}${shared_ext}'
8941 dynamic_linker="$host_os ld.so"
8942 shlibpath_var=LIBRARY_PATH
8943 ;;
8944
8945bsdi[45]*)
8946 version_type=linux
8947 need_version=no
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8954 # the default ld.so.conf also contains /usr/contrib/lib and
8955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8956 # libtool to hard-code these into programs
8957 ;;
8958
8959cygwin* | mingw* | pw32*)
8960 version_type=windows
8961 shrext_cmds=".dll"
8962 need_version=no
8963 need_lib_prefix=no
8964
8965 case $withGCC,$host_os in
8966 yes,cygwin* | yes,mingw* | yes,pw32*)
8967 library_names_spec='$libname.dll.a'
8968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8969 postinstall_cmds='base_file=`basename \${file}`~
8970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8971 dldir=$destdir/`dirname \$dlpath`~
8972 test -d \$dldir || mkdir -p \$dldir~
8973 $install_prog $dir/$dlname \$dldir/$dlname~
8974 chmod a+x \$dldir/$dlname~
8975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8977 fi'
8978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8979 dlpath=$dir/\$dldll~
8980 $RM \$dlpath'
8981 shlibpath_overrides_runpath=yes
8982
8983 case $host_os in
8984 cygwin*)
8985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8988 ;;
8989 mingw*)
8990 # MinGW DLLs use traditional 'lib' prefix
8991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8992 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8993 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8994 # It is most probably a Windows format PATH printed by
8995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8996 # path with ; separators, and with drive letters. We can handle the
8997 # drive letters (cygwin fileutils understands them), so leave them,
8998 # especially as we might pass files found there to a mingw objdump,
8999 # which wouldn't understand a cygwinified path. Ahh.
9000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9001 else
9002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9003 fi
9004 ;;
9005 pw32*)
9006 # pw32 DLLs use 'pw' prefix rather than 'lib'
9007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9008 ;;
9009 esac
9010 ;;
9011
9012 *)
9013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9014 ;;
9015 esac
9016 dynamic_linker='Win32 ld.exe'
9017 # FIXME: first we should search . and the directory the executable is in
9018 shlibpath_var=PATH
9019 ;;
9020
9021darwin* | rhapsody*)
9022 dynamic_linker="$host_os dyld"
9023 version_type=darwin
9024 need_lib_prefix=no
9025 need_version=no
9026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9027 soname_spec='${libname}${release}${major}$shared_ext'
9028 shlibpath_overrides_runpath=yes
9029 shlibpath_var=DYLD_LIBRARY_PATH
9030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9031
9032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9034 ;;
9035
9036dgux*)
9037 version_type=linux
9038 need_lib_prefix=no
9039 need_version=no
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 ;;
9044
9045freebsd1*)
9046 dynamic_linker=no
9047 ;;
9048
9049freebsd* | dragonfly*)
9050 # DragonFly does not have aout. When/if they implement a new
9051 # versioning mechanism, adjust this.
9052 if test -x /usr/bin/objformat; then
9053 objformat=`/usr/bin/objformat`
9054 else
9055 case $host_os in
9056 freebsd[123]*) objformat=aout ;;
9057 *) objformat=elf ;;
9058 esac
9059 fi
9060 version_type=freebsd-$objformat
9061 case $version_type in
9062 freebsd-elf*)
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 need_version=no
9065 need_lib_prefix=no
9066 ;;
9067 freebsd-*)
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9069 need_version=yes
9070 ;;
9071 esac
9072 shlibpath_var=LD_LIBRARY_PATH
9073 case $host_os in
9074 freebsd2*)
9075 shlibpath_overrides_runpath=yes
9076 ;;
9077 freebsd3.[01]* | freebsdelf3.[01]*)
9078 shlibpath_overrides_runpath=yes
9079 hardcode_into_libs=yes
9080 ;;
9081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9085 ;;
9086 *) # from 4.6 on, and DragonFly
9087 shlibpath_overrides_runpath=yes
9088 hardcode_into_libs=yes
9089 ;;
9090 esac
9091 ;;
9092
9093gnu*)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 hardcode_into_libs=yes
9101 ;;
9102
9103hpux9* | hpux10* | hpux11*)
9104 # Give a soname corresponding to the major version so that dld.sl refuses to
9105 # link against other versions.
9106 version_type=sunos
9107 need_lib_prefix=no
9108 need_version=no
9109 case $host_cpu in
9110 ia64*)
9111 shrext_cmds='.so'
9112 hardcode_into_libs=yes
9113 dynamic_linker="$host_os dld.so"
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 if test "X$HPUX_IA64_MODE" = X32; then
9119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9120 else
9121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9122 fi
9123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9124 ;;
9125 hppa*64*)
9126 shrext_cmds='.sl'
9127 hardcode_into_libs=yes
9128 dynamic_linker="$host_os dld.sl"
9129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9135 ;;
9136 *)
9137 shrext_cmds='.sl'
9138 dynamic_linker="$host_os dld.sl"
9139 shlibpath_var=SHLIB_PATH
9140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 ;;
9144 esac
9145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9146 postinstall_cmds='chmod 555 $lib'
9147 ;;
9148
9149interix[3-9]*)
9150 version_type=linux
9151 need_lib_prefix=no
9152 need_version=no
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=no
9158 hardcode_into_libs=yes
9159 ;;
9160
9161irix5* | irix6* | nonstopux*)
9162 case $host_os in
9163 nonstopux*) version_type=nonstopux ;;
9164 *)
9165 if test "$lt_cv_prog_gnu_ld" = yes; then
9166 version_type=linux
9167 else
9168 version_type=irix
9169 fi ;;
9170 esac
9171 need_lib_prefix=no
9172 need_version=no
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9175 case $host_os in
9176 irix5* | nonstopux*)
9177 libsuff= shlibsuff=
9178 ;;
9179 *)
9180 case $LD in # libtool.m4 will add one of these switches to LD
9181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9182 libsuff= shlibsuff= libmagic=32-bit;;
9183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9184 libsuff=32 shlibsuff=N32 libmagic=N32;;
9185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9187 *) libsuff= shlibsuff= libmagic=never-match;;
9188 esac
9189 ;;
9190 esac
9191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9192 shlibpath_overrides_runpath=no
9193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9195 hardcode_into_libs=yes
9196 ;;
d7040cdb 9197
ce2cded5
L
9198# No shared lib support for Linux oldld, aout, or coff.
9199linux*oldld* | linux*aout* | linux*coff*)
9200 dynamic_linker=no
9201 ;;
9202
9203# This must be Linux ELF.
9204linux* | k*bsd*-gnu)
9205 version_type=linux
9206 need_lib_prefix=no
9207 need_version=no
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=no
9213 # Some binutils ld are patched to set DT_RUNPATH
9214 save_LDFLAGS=$LDFLAGS
9215 save_libdir=$libdir
9216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9218 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9219/* confdefs.h. */
9220_ACEOF
9221cat confdefs.h >>conftest.$ac_ext
9222cat >>conftest.$ac_ext <<_ACEOF
9223/* end confdefs.h. */
9224
d7040cdb
SE
9225int
9226main ()
9227{
ce2cded5 9228
d7040cdb
SE
9229 ;
9230 return 0;
9231}
9232_ACEOF
9233rm -f conftest.$ac_objext conftest$ac_exeext
9234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235 (eval $ac_link) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest$ac_exeext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
ce2cded5
L
9255 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9256 shlibpath_overrides_runpath=yes
9257fi
9258
d7040cdb
SE
9259else
9260 echo "$as_me: failed program was:" >&5
9261sed 's/^/| /' conftest.$ac_ext >&5
9262
ce2cded5
L
9263fi
9264rm -f conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9266 LDFLAGS=$save_LDFLAGS
9267 libdir=$save_libdir
9268
9269 # This implies no fast_install, which is unacceptable.
9270 # Some rework will be needed to allow for fast_install
9271 # before this can be enabled.
9272 hardcode_into_libs=yes
9273
9274 # Append ld.so.conf contents to the search path
9275 if test -f /etc/ld.so.conf; then
9276 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' ' '`
9277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9278 fi
9279
9280 # We used to test for /lib/ld.so.1 and disable shared libraries on
9281 # powerpc, because MkLinux only supported shared libraries with the
9282 # GNU dynamic linker. Since this was broken with cross compilers,
9283 # most powerpc-linux boxes support dynamic linking these days and
9284 # people can always --disable-shared, the test was removed, and we
9285 # assume the GNU/Linux dynamic linker is in use.
9286 dynamic_linker='GNU/Linux ld.so'
9287 ;;
9288
9289netbsd*)
9290 version_type=sunos
9291 need_lib_prefix=no
9292 need_version=no
9293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9296 dynamic_linker='NetBSD (a.out) ld.so'
9297 else
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 dynamic_linker='NetBSD ld.elf_so'
9301 fi
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 hardcode_into_libs=yes
9305 ;;
9306
9307newsos6)
9308 version_type=linux
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9312 ;;
9313
9314*nto* | *qnx*)
9315 version_type=qnx
9316 need_lib_prefix=no
9317 need_version=no
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=no
9322 hardcode_into_libs=yes
9323 dynamic_linker='ldqnx.so'
9324 ;;
9325
9326openbsd*)
9327 version_type=sunos
9328 sys_lib_dlsearch_path_spec="/usr/lib"
9329 need_lib_prefix=no
9330 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9331 case $host_os in
9332 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9333 *) need_version=no ;;
9334 esac
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9339 case $host_os in
9340 openbsd2.[89] | openbsd2.[89].*)
9341 shlibpath_overrides_runpath=no
9342 ;;
9343 *)
9344 shlibpath_overrides_runpath=yes
9345 ;;
9346 esac
9347 else
9348 shlibpath_overrides_runpath=yes
9349 fi
9350 ;;
9351
9352os2*)
9353 libname_spec='$name'
9354 shrext_cmds=".dll"
9355 need_lib_prefix=no
9356 library_names_spec='$libname${shared_ext} $libname.a'
9357 dynamic_linker='OS/2 ld.exe'
9358 shlibpath_var=LIBPATH
9359 ;;
9360
9361osf3* | osf4* | osf5*)
9362 version_type=osf
9363 need_lib_prefix=no
9364 need_version=no
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9370 ;;
9371
9372rdos*)
9373 dynamic_linker=no
9374 ;;
9375
9376solaris*)
9377 version_type=linux
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=yes
9384 hardcode_into_libs=yes
9385 # ldd complains unless libraries are executable
9386 postinstall_cmds='chmod +x $lib'
9387 ;;
9388
9389sunos4*)
9390 version_type=sunos
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9392 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9393 shlibpath_var=LD_LIBRARY_PATH
9394 shlibpath_overrides_runpath=yes
9395 if test "$with_gnu_ld" = yes; then
9396 need_lib_prefix=no
9397 fi
9398 need_version=yes
9399 ;;
9400
9401sysv4 | sysv4.3*)
9402 version_type=linux
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 case $host_vendor in
9407 sni)
9408 shlibpath_overrides_runpath=no
9409 need_lib_prefix=no
9410 runpath_var=LD_RUN_PATH
9411 ;;
9412 siemens)
9413 need_lib_prefix=no
9414 ;;
9415 motorola)
9416 need_lib_prefix=no
9417 need_version=no
9418 shlibpath_overrides_runpath=no
9419 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9420 ;;
9421 esac
9422 ;;
9423
9424sysv4*MP*)
9425 if test -d /usr/nec ;then
9426 version_type=linux
9427 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9428 soname_spec='$libname${shared_ext}.$major'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 fi
9431 ;;
9432
9433sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9434 version_type=freebsd-elf
9435 need_lib_prefix=no
9436 need_version=no
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 shlibpath_overrides_runpath=yes
9441 hardcode_into_libs=yes
9442 if test "$with_gnu_ld" = yes; then
9443 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9444 else
9445 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9446 case $host_os in
9447 sco3.2v5*)
9448 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9449 ;;
9450 esac
9451 fi
9452 sys_lib_dlsearch_path_spec='/usr/lib'
9453 ;;
9454
9455tpf*)
9456 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9457 version_type=linux
9458 need_lib_prefix=no
9459 need_version=no
9460 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 shlibpath_var=LD_LIBRARY_PATH
9462 shlibpath_overrides_runpath=no
9463 hardcode_into_libs=yes
9464 ;;
d7040cdb 9465
ce2cded5
L
9466uts4*)
9467 version_type=linux
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469 soname_spec='${libname}${release}${shared_ext}$major'
9470 shlibpath_var=LD_LIBRARY_PATH
9471 ;;
d7040cdb 9472
ce2cded5
L
9473*)
9474 dynamic_linker=no
9475 ;;
9476esac
9477echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9478echo "${ECHO_T}$dynamic_linker" >&6
9479test "$dynamic_linker" = no && can_build_shared=no
9480
9481variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9482if test "$GCC" = yes; then
9483 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 9484fi
d7040cdb 9485
d7040cdb 9486
d7040cdb
SE
9487
9488
d7040cdb
SE
9489
9490
d7040cdb
SE
9491
9492
d7040cdb
SE
9493
9494
d7040cdb
SE
9495
9496
d7040cdb 9497
d7040cdb 9498
d7040cdb 9499
d7040cdb 9500
d7040cdb 9501
d7040cdb 9502
d7040cdb 9503
d7040cdb 9504
d7040cdb 9505
d7040cdb 9506
d7040cdb 9507
d7040cdb 9508
d7040cdb 9509
d7040cdb 9510
d7040cdb
SE
9511
9512
d7040cdb 9513
d7040cdb 9514
d7040cdb 9515
d7040cdb 9516
d7040cdb 9517
d7040cdb 9518
d7040cdb 9519
d7040cdb 9520
d7040cdb 9521
d7040cdb
SE
9522
9523
d7040cdb 9524
d7040cdb 9525
d7040cdb 9526
d7040cdb
SE
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
d7040cdb
SE
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
d7040cdb 9556
d7040cdb 9557
d7040cdb 9558
d7040cdb 9559
d7040cdb
SE
9560
9561
9562
9563
ce2cded5
L
9564
9565
9566
9567
9568
9569
9570
9571
9572 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9573echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9574hardcode_action=
9575if test -n "$hardcode_libdir_flag_spec" ||
9576 test -n "$runpath_var" ||
9577 test "X$hardcode_automatic" = "Xyes" ; then
9578
9579 # We can hardcode non-existent directories.
9580 if test "$hardcode_direct" != no &&
9581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9582 # have to relink, otherwise we might link with an installed library
9583 # when we should be linking with a yet-to-be-installed one
9584 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9585 test "$hardcode_minus_L" != no; then
9586 # Linking always hardcodes the temporary library directory.
9587 hardcode_action=relink
9588 else
9589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9590 hardcode_action=immediate
9591 fi
9592else
9593 # We cannot hardcode anything, or else we can only hardcode existing
9594 # directories.
9595 hardcode_action=unsupported
9596fi
9597echo "$as_me:$LINENO: result: $hardcode_action" >&5
9598echo "${ECHO_T}$hardcode_action" >&6
9599
9600if test "$hardcode_action" = relink ||
9601 test "$inherit_rpath" = yes; then
9602 # Fast installation is not supported
9603 enable_fast_install=no
9604elif test "$shlibpath_overrides_runpath" = yes ||
9605 test "$enable_shared" = no; then
9606 # Fast installation is not necessary
9607 enable_fast_install=needless
d7040cdb 9608fi
d7040cdb 9609
d7040cdb
SE
9610
9611
9612
9613
9614
ce2cded5
L
9615 if test "x$enable_dlopen" != xyes; then
9616 enable_dlopen=unknown
9617 enable_dlopen_self=unknown
9618 enable_dlopen_self_static=unknown
9619else
9620 lt_cv_dlopen=no
9621 lt_cv_dlopen_libs=
9622
9623 case $host_os in
9624 beos*)
9625 lt_cv_dlopen="load_add_on"
9626 lt_cv_dlopen_libs=
9627 lt_cv_dlopen_self=yes
9628 ;;
d7040cdb 9629
ce2cded5
L
9630 mingw* | pw32*)
9631 lt_cv_dlopen="LoadLibrary"
9632 lt_cv_dlopen_libs=
9633 ;;
d7040cdb 9634
ce2cded5
L
9635 cygwin*)
9636 lt_cv_dlopen="dlopen"
9637 lt_cv_dlopen_libs=
9638 ;;
d7040cdb 9639
ce2cded5
L
9640 darwin*)
9641 # if libdl is installed we need to link against it
9642 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9643echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9644if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646else
9647 ac_check_lib_save_LIBS=$LIBS
9648LIBS="-ldl $LIBS"
9649cat >conftest.$ac_ext <<_ACEOF
9650/* confdefs.h. */
9651_ACEOF
9652cat confdefs.h >>conftest.$ac_ext
9653cat >>conftest.$ac_ext <<_ACEOF
9654/* end confdefs.h. */
d7040cdb 9655
ce2cded5
L
9656/* Override any gcc2 internal prototype to avoid an error. */
9657#ifdef __cplusplus
9658extern "C"
9659#endif
9660/* We use char because int might match the return type of a gcc2
9661 builtin and then its argument prototype would still apply. */
9662char dlopen ();
9663int
9664main ()
9665{
9666dlopen ();
9667 ;
9668 return 0;
9669}
9670_ACEOF
9671rm -f conftest.$ac_objext conftest$ac_exeext
9672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 ac_cv_lib_dl_dlopen=yes
9694else
9695 echo "$as_me: failed program was:" >&5
9696sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9697
ce2cded5
L
9698ac_cv_lib_dl_dlopen=no
9699fi
9700rm -f conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702LIBS=$ac_check_lib_save_LIBS
9703fi
9704echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9705echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9706if test $ac_cv_lib_dl_dlopen = yes; then
9707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9708else
d7040cdb 9709
ce2cded5
L
9710 lt_cv_dlopen="dyld"
9711 lt_cv_dlopen_libs=
9712 lt_cv_dlopen_self=yes
d7040cdb 9713
ce2cded5 9714fi
d7040cdb 9715
ce2cded5 9716 ;;
d7040cdb 9717
ce2cded5
L
9718 *)
9719 echo "$as_me:$LINENO: checking for shl_load" >&5
9720echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9721if test "${ac_cv_func_shl_load+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723else
9724 cat >conftest.$ac_ext <<_ACEOF
9725/* confdefs.h. */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h. */
9730/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9732#define shl_load innocuous_shl_load
d7040cdb 9733
ce2cded5
L
9734/* System header to define __stub macros and hopefully few prototypes,
9735 which can conflict with char shl_load (); below.
9736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737 <limits.h> exists even on freestanding compilers. */
d7040cdb 9738
ce2cded5
L
9739#ifdef __STDC__
9740# include <limits.h>
9741#else
9742# include <assert.h>
9743#endif
d7040cdb 9744
ce2cded5 9745#undef shl_load
d7040cdb 9746
ce2cded5
L
9747/* Override any gcc2 internal prototype to avoid an error. */
9748#ifdef __cplusplus
9749extern "C"
9750{
9751#endif
9752/* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754char shl_load ();
9755/* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758#if defined (__stub_shl_load) || defined (__stub___shl_load)
9759choke me
9760#else
9761char (*f) () = shl_load;
9762#endif
9763#ifdef __cplusplus
9764}
9765#endif
d7040cdb 9766
ce2cded5
L
9767int
9768main ()
9769{
9770return f != shl_load;
9771 ;
9772 return 0;
9773}
9774_ACEOF
9775rm -f conftest.$ac_objext conftest$ac_exeext
9776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777 (eval $ac_link) 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -z "$ac_c_werror_flag"
9785 || test ! -s conftest.err'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 ac_cv_func_shl_load=yes
9798else
9799 echo "$as_me: failed program was:" >&5
9800sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9801
ce2cded5 9802ac_cv_func_shl_load=no
d7040cdb 9803fi
ce2cded5
L
9804rm -f conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9806fi
9807echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9808echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9809if test $ac_cv_func_shl_load = yes; then
9810 lt_cv_dlopen="shl_load"
9811else
9812 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9813echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9814if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816else
9817 ac_check_lib_save_LIBS=$LIBS
9818LIBS="-ldld $LIBS"
9819cat >conftest.$ac_ext <<_ACEOF
9820/* confdefs.h. */
9821_ACEOF
9822cat confdefs.h >>conftest.$ac_ext
9823cat >>conftest.$ac_ext <<_ACEOF
9824/* end confdefs.h. */
d7040cdb 9825
ce2cded5
L
9826/* Override any gcc2 internal prototype to avoid an error. */
9827#ifdef __cplusplus
9828extern "C"
9829#endif
9830/* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */
9832char shl_load ();
9833int
9834main ()
9835{
9836shl_load ();
9837 ;
9838 return 0;
9839}
d7040cdb 9840_ACEOF
ce2cded5
L
9841rm -f conftest.$ac_objext conftest$ac_exeext
9842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -z "$ac_c_werror_flag"
9851 || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest$ac_exeext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_cv_lib_dld_shl_load=yes
9864else
9865 echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9867
ce2cded5 9868ac_cv_lib_dld_shl_load=no
d7040cdb 9869fi
ce2cded5
L
9870rm -f conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872LIBS=$ac_check_lib_save_LIBS
9873fi
9874echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9875echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9876if test $ac_cv_lib_dld_shl_load = yes; then
9877 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9878else
9879 echo "$as_me:$LINENO: checking for dlopen" >&5
9880echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9881if test "${ac_cv_func_dlopen+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883else
9884 cat >conftest.$ac_ext <<_ACEOF
9885/* confdefs.h. */
9886_ACEOF
9887cat confdefs.h >>conftest.$ac_ext
9888cat >>conftest.$ac_ext <<_ACEOF
9889/* end confdefs.h. */
9890/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9892#define dlopen innocuous_dlopen
d7040cdb 9893
ce2cded5
L
9894/* System header to define __stub macros and hopefully few prototypes,
9895 which can conflict with char dlopen (); below.
9896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9897 <limits.h> exists even on freestanding compilers. */
d7040cdb 9898
ce2cded5
L
9899#ifdef __STDC__
9900# include <limits.h>
9901#else
9902# include <assert.h>
9903#endif
d7040cdb 9904
ce2cded5 9905#undef dlopen
d7040cdb 9906
ce2cded5
L
9907/* Override any gcc2 internal prototype to avoid an error. */
9908#ifdef __cplusplus
9909extern "C"
9910{
9911#endif
9912/* We use char because int might match the return type of a gcc2
9913 builtin and then its argument prototype would still apply. */
9914char dlopen ();
9915/* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918#if defined (__stub_dlopen) || defined (__stub___dlopen)
9919choke me
9920#else
9921char (*f) () = dlopen;
9922#endif
9923#ifdef __cplusplus
9924}
9925#endif
d7040cdb 9926
ce2cded5
L
9927int
9928main ()
9929{
9930return f != dlopen;
9931 ;
9932 return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext conftest$ac_exeext
9936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9937 (eval $ac_link) 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -z "$ac_c_werror_flag"
9945 || test ! -s conftest.err'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 (eval $ac_try) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 (eval $ac_try) 2>&5
9954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_func_dlopen=yes
9958else
9959 echo "$as_me: failed program was:" >&5
9960sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9961
ce2cded5 9962ac_cv_func_dlopen=no
d7040cdb 9963fi
ce2cded5
L
9964rm -f conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9966fi
ce2cded5
L
9967echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9968echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9969if test $ac_cv_func_dlopen = yes; then
9970 lt_cv_dlopen="dlopen"
9971else
9972 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9973echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9974if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976else
ce2cded5
L
9977 ac_check_lib_save_LIBS=$LIBS
9978LIBS="-ldl $LIBS"
d7040cdb
SE
9979cat >conftest.$ac_ext <<_ACEOF
9980/* confdefs.h. */
9981_ACEOF
9982cat confdefs.h >>conftest.$ac_ext
9983cat >>conftest.$ac_ext <<_ACEOF
9984/* end confdefs.h. */
d7040cdb 9985
ce2cded5
L
9986/* Override any gcc2 internal prototype to avoid an error. */
9987#ifdef __cplusplus
9988extern "C"
9989#endif
9990/* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
9992char dlopen ();
d7040cdb
SE
9993int
9994main ()
9995{
ce2cded5 9996dlopen ();
d7040cdb
SE
9997 ;
9998 return 0;
9999}
10000_ACEOF
ce2cded5
L
10001rm -f conftest.$ac_objext conftest$ac_exeext
10002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag"
10011 || test ! -s conftest.err'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; } &&
ce2cded5 10017 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
ce2cded5
L
10023 ac_cv_lib_dl_dlopen=yes
10024else
10025 echo "$as_me: failed program was:" >&5
10026sed 's/^/| /' conftest.$ac_ext >&5
10027
10028ac_cv_lib_dl_dlopen=no
10029fi
10030rm -f conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032LIBS=$ac_check_lib_save_LIBS
10033fi
10034echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10035echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10036if test $ac_cv_lib_dl_dlopen = yes; then
10037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10038else
10039 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10040echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10041if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043else
10044 ac_check_lib_save_LIBS=$LIBS
10045LIBS="-lsvld $LIBS"
d7040cdb
SE
10046cat >conftest.$ac_ext <<_ACEOF
10047/* confdefs.h. */
10048_ACEOF
10049cat confdefs.h >>conftest.$ac_ext
10050cat >>conftest.$ac_ext <<_ACEOF
10051/* end confdefs.h. */
d7040cdb 10052
ce2cded5
L
10053/* Override any gcc2 internal prototype to avoid an error. */
10054#ifdef __cplusplus
10055extern "C"
10056#endif
10057/* We use char because int might match the return type of a gcc2
10058 builtin and then its argument prototype would still apply. */
10059char dlopen ();
d7040cdb
SE
10060int
10061main ()
10062{
ce2cded5 10063dlopen ();
d7040cdb
SE
10064 ;
10065 return 0;
10066}
10067_ACEOF
ce2cded5
L
10068rm -f conftest.$ac_objext conftest$ac_exeext
10069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
ce2cded5 10084 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
ce2cded5 10090 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
10091else
10092 echo "$as_me: failed program was:" >&5
10093sed 's/^/| /' conftest.$ac_ext >&5
10094
ce2cded5 10095ac_cv_lib_svld_dlopen=no
d7040cdb 10096fi
ce2cded5
L
10097rm -f conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099LIBS=$ac_check_lib_save_LIBS
10100fi
10101echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10102echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10103if test $ac_cv_lib_svld_dlopen = yes; then
10104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10105else
10106 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10107echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10108if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10110else
ce2cded5
L
10111 ac_check_lib_save_LIBS=$LIBS
10112LIBS="-ldld $LIBS"
10113cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10114/* confdefs.h. */
10115_ACEOF
10116cat confdefs.h >>conftest.$ac_ext
10117cat >>conftest.$ac_ext <<_ACEOF
10118/* end confdefs.h. */
ce2cded5
L
10119
10120/* Override any gcc2 internal prototype to avoid an error. */
10121#ifdef __cplusplus
10122extern "C"
10123#endif
10124/* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10126char dld_link ();
d7040cdb
SE
10127int
10128main ()
10129{
ce2cded5 10130dld_link ();
d7040cdb
SE
10131 ;
10132 return 0;
10133}
10134_ACEOF
ce2cded5
L
10135rm -f conftest.$ac_objext conftest$ac_exeext
10136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
ce2cded5 10151 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
ce2cded5
L
10157 ac_cv_lib_dld_dld_link=yes
10158else
10159 echo "$as_me: failed program was:" >&5
10160sed 's/^/| /' conftest.$ac_ext >&5
10161
10162ac_cv_lib_dld_dld_link=no
d7040cdb 10163fi
ce2cded5
L
10164rm -f conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166LIBS=$ac_check_lib_save_LIBS
10167fi
10168echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10169echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10170if test $ac_cv_lib_dld_dld_link = yes; then
10171 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10172fi
10173
10174
10175fi
10176
10177
10178fi
10179
10180
10181fi
10182
10183
10184fi
10185
10186
10187fi
10188
10189 ;;
10190 esac
10191
10192 if test "x$lt_cv_dlopen" != xno; then
10193 enable_dlopen=yes
d7040cdb 10194 else
ce2cded5 10195 enable_dlopen=no
d7040cdb 10196 fi
ce2cded5
L
10197
10198 case $lt_cv_dlopen in
10199 dlopen)
10200 save_CPPFLAGS="$CPPFLAGS"
10201 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10202
10203 save_LDFLAGS="$LDFLAGS"
10204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10205
10206 save_LIBS="$LIBS"
10207 LIBS="$lt_cv_dlopen_libs $LIBS"
10208
10209 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10210echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10211if test "${lt_cv_dlopen_self+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10213else
ce2cded5
L
10214 if test "$cross_compiling" = yes; then :
10215 lt_cv_dlopen_self=cross
10216else
10217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10218 lt_status=$lt_dlunknown
10219 cat > conftest.$ac_ext <<_LT_EOF
7357c5b6 10220#line 10220 "configure"
ce2cded5
L
10221#include "confdefs.h"
10222
10223#if HAVE_DLFCN_H
10224#include <dlfcn.h>
10225#endif
10226
10227#include <stdio.h>
10228
10229#ifdef RTLD_GLOBAL
10230# define LT_DLGLOBAL RTLD_GLOBAL
10231#else
10232# ifdef DL_GLOBAL
10233# define LT_DLGLOBAL DL_GLOBAL
10234# else
10235# define LT_DLGLOBAL 0
10236# endif
10237#endif
10238
10239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10240 find out it does not work in some platform. */
10241#ifndef LT_DLLAZY_OR_NOW
10242# ifdef RTLD_LAZY
10243# define LT_DLLAZY_OR_NOW RTLD_LAZY
10244# else
10245# ifdef DL_LAZY
10246# define LT_DLLAZY_OR_NOW DL_LAZY
10247# else
10248# ifdef RTLD_NOW
10249# define LT_DLLAZY_OR_NOW RTLD_NOW
10250# else
10251# ifdef DL_NOW
10252# define LT_DLLAZY_OR_NOW DL_NOW
10253# else
10254# define LT_DLLAZY_OR_NOW 0
10255# endif
10256# endif
10257# endif
10258# endif
10259#endif
10260
10261#ifdef __cplusplus
10262extern "C" void exit (int);
10263#endif
10264
10265void fnord() { int i=42;}
10266int main ()
10267{
10268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10269 int status = $lt_dlunknown;
10270
10271 if (self)
10272 {
10273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10274 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10275 /* dlclose (self); */
10276 }
10277 else
10278 puts (dlerror ());
10279
10280 exit (status);
10281}
10282_LT_EOF
10283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10284 (eval $ac_link) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10288 (./conftest; exit; ) >&5 2>/dev/null
10289 lt_status=$?
10290 case x$lt_status in
10291 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10292 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10293 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10294 esac
10295 else :
10296 # compilation failed
10297 lt_cv_dlopen_self=no
10298 fi
10299fi
10300rm -fr conftest*
10301
d7040cdb
SE
10302
10303fi
ce2cded5
L
10304echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10305echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10306
10307 if test "x$lt_cv_dlopen_self" = xyes; then
10308 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10309 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10310echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10311if test "${lt_cv_dlopen_self_static+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10313else
ce2cded5
L
10314 if test "$cross_compiling" = yes; then :
10315 lt_cv_dlopen_self_static=cross
10316else
10317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10318 lt_status=$lt_dlunknown
10319 cat > conftest.$ac_ext <<_LT_EOF
7357c5b6 10320#line 10320 "configure"
ce2cded5
L
10321#include "confdefs.h"
10322
10323#if HAVE_DLFCN_H
10324#include <dlfcn.h>
10325#endif
10326
10327#include <stdio.h>
10328
10329#ifdef RTLD_GLOBAL
10330# define LT_DLGLOBAL RTLD_GLOBAL
10331#else
10332# ifdef DL_GLOBAL
10333# define LT_DLGLOBAL DL_GLOBAL
10334# else
10335# define LT_DLGLOBAL 0
10336# endif
10337#endif
10338
10339/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10340 find out it does not work in some platform. */
10341#ifndef LT_DLLAZY_OR_NOW
10342# ifdef RTLD_LAZY
10343# define LT_DLLAZY_OR_NOW RTLD_LAZY
10344# else
10345# ifdef DL_LAZY
10346# define LT_DLLAZY_OR_NOW DL_LAZY
10347# else
10348# ifdef RTLD_NOW
10349# define LT_DLLAZY_OR_NOW RTLD_NOW
10350# else
10351# ifdef DL_NOW
10352# define LT_DLLAZY_OR_NOW DL_NOW
10353# else
10354# define LT_DLLAZY_OR_NOW 0
10355# endif
10356# endif
10357# endif
10358# endif
10359#endif
10360
10361#ifdef __cplusplus
10362extern "C" void exit (int);
10363#endif
10364
10365void fnord() { int i=42;}
10366int main ()
d7040cdb 10367{
ce2cded5
L
10368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10369 int status = $lt_dlunknown;
10370
10371 if (self)
10372 {
10373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10375 /* dlclose (self); */
10376 }
10377 else
10378 puts (dlerror ());
10379
10380 exit (status);
d7040cdb 10381}
ce2cded5
L
10382_LT_EOF
10383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
10384 (eval $ac_link) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10388 (./conftest; exit; ) >&5 2>/dev/null
10389 lt_status=$?
10390 case x$lt_status in
10391 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10392 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10393 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10394 esac
10395 else :
10396 # compilation failed
10397 lt_cv_dlopen_self_static=no
10398 fi
d7040cdb 10399fi
ce2cded5
L
10400rm -fr conftest*
10401
10402
d7040cdb 10403fi
ce2cded5
L
10404echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10405echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10406 fi
10407
10408 CPPFLAGS="$save_CPPFLAGS"
10409 LDFLAGS="$save_LDFLAGS"
10410 LIBS="$save_LIBS"
10411 ;;
10412 esac
10413
10414 case $lt_cv_dlopen_self in
10415 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10416 *) enable_dlopen_self=unknown ;;
10417 esac
10418
10419 case $lt_cv_dlopen_self_static in
10420 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10421 *) enable_dlopen_self_static=unknown ;;
10422 esac
d7040cdb 10423fi
d7040cdb 10424
d7040cdb
SE
10425
10426
d7040cdb 10427
d7040cdb 10428
ce2cded5
L
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441striplib=
10442old_striplib=
10443echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10444echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10445if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10446 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10447 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10448 echo "$as_me:$LINENO: result: yes" >&5
10449echo "${ECHO_T}yes" >&6
10450else
10451# FIXME - insert some real tests, host_os isn't really good enough
10452 case $host_os in
10453 darwin*)
10454 if test -n "$STRIP" ; then
10455 striplib="$STRIP -x"
10456 old_striplib="$STRIP -S"
10457 echo "$as_me:$LINENO: result: yes" >&5
10458echo "${ECHO_T}yes" >&6
10459 else
10460 echo "$as_me:$LINENO: result: no" >&5
10461echo "${ECHO_T}no" >&6
d7040cdb 10462 fi
ce2cded5
L
10463 ;;
10464 *)
10465 echo "$as_me:$LINENO: result: no" >&5
10466echo "${ECHO_T}no" >&6
10467 ;;
d7040cdb 10468 esac
d7040cdb
SE
10469fi
10470
d7040cdb 10471
d7040cdb 10472
d7040cdb 10473
d7040cdb 10474
d7040cdb 10475
d7040cdb 10476
d7040cdb 10477
d7040cdb 10478
d7040cdb 10479
d7040cdb 10480
d7040cdb 10481
ce2cded5
L
10482 # Report which library types will actually be built
10483 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10484echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10485 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10486echo "${ECHO_T}$can_build_shared" >&6
d7040cdb 10487
ce2cded5
L
10488 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10489echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10490 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 10491
ce2cded5
L
10492 # On AIX, shared libraries and static libraries use the same namespace, and
10493 # are all built from PIC.
10494 case $host_os in
10495 aix3*)
10496 test "$enable_shared" = yes && enable_static=no
10497 if test -n "$RANLIB"; then
10498 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10499 postinstall_cmds='$RANLIB $lib'
10500 fi
10501 ;;
d7040cdb 10502
50e7d84b 10503 aix[4-9]*)
ce2cded5
L
10504 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10505 test "$enable_shared" = yes && enable_static=no
10506 fi
10507 ;;
10508 esac
10509 echo "$as_me:$LINENO: result: $enable_shared" >&5
10510echo "${ECHO_T}$enable_shared" >&6
10511
10512 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10513echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10514 # Make sure either enable_shared or enable_static is yes.
10515 test "$enable_shared" = yes || enable_static=yes
10516 echo "$as_me:$LINENO: result: $enable_static" >&5
10517echo "${ECHO_T}$enable_static" >&6
d7040cdb 10518
d7040cdb 10519
d7040cdb 10520
d7040cdb 10521
ce2cded5
L
10522fi
10523ac_ext=c
10524ac_cpp='$CPP $CPPFLAGS'
10525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 10528
ce2cded5 10529CC="$lt_save_CC"
d7040cdb 10530
d7040cdb 10531
d7040cdb 10532
d7040cdb 10533
d7040cdb 10534
d7040cdb 10535
d7040cdb 10536
d7040cdb 10537
d7040cdb 10538
d7040cdb
SE
10539
10540
d7040cdb
SE
10541
10542
ce2cded5 10543 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
10544
10545
d7040cdb 10546
d7040cdb 10547
ce2cded5 10548# Only expand once:
d7040cdb 10549
d7040cdb 10550
d7040cdb 10551
ce2cded5
L
10552# Check whether --enable-targets or --disable-targets was given.
10553if test "${enable_targets+set}" = set; then
10554 enableval="$enable_targets"
10555 case "${enableval}" in
10556 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10557echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10558 { (exit 1); exit 1; }; }
10559 ;;
10560 no) enable_targets= ;;
10561 *) enable_targets=$enableval ;;
10562esac
10563fi;
10564# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10565if test "${enable_commonbfdlib+set}" = set; then
10566 enableval="$enable_commonbfdlib"
10567 case "${enableval}" in
10568 yes) commonbfdlib=true ;;
10569 no) commonbfdlib=false ;;
10570 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10571echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10572 { (exit 1); exit 1; }; } ;;
10573esac
10574fi;
10575ac_checking=yes
10576if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10577 ac_checking=
10578fi
10579# Check whether --enable-checking or --disable-checking was given.
10580if test "${enable_checking+set}" = set; then
10581 enableval="$enable_checking"
10582 case "${enableval}" in
10583 no|none) ac_checking= ;;
10584 *) ac_checking=yes ;;
10585esac
10586fi; if test x$ac_checking != x ; then
d7040cdb 10587
ce2cded5
L
10588cat >>confdefs.h <<\_ACEOF
10589#define ENABLE_CHECKING 1
10590_ACEOF
d7040cdb 10591
ce2cded5 10592fi
d7040cdb 10593
ce2cded5 10594using_cgen=no
d7040cdb 10595
d7040cdb 10596
ce2cded5 10597GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 10598
ce2cded5
L
10599# Check whether --enable-werror or --disable-werror was given.
10600if test "${enable_werror+set}" = set; then
10601 enableval="$enable_werror"
10602 case "${enableval}" in
10603 yes | y) ERROR_ON_WARNING="yes" ;;
10604 no | n) ERROR_ON_WARNING="no" ;;
10605 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10606echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10607 { (exit 1); exit 1; }; } ;;
10608 esac
10609fi;
d7040cdb 10610
bb8541b9
L
10611# Enable -Wno-format by default when using gcc on mingw
10612case "${host}" in
10613 *-*-mingw32*)
10614 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10615 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10616 fi
10617 ;;
10618 *) ;;
10619esac
10620
ce2cded5
L
10621# Enable -Werror by default when using gcc
10622if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10623 ERROR_ON_WARNING=yes
10624fi
10625
10626NO_WERROR=
10627if test "${ERROR_ON_WARNING}" = yes ; then
10628 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10629 NO_WERROR="-Wno-error"
10630fi
10631
10632if test "${GCC}" = yes ; then
10633 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10634fi
10635
10636# Check whether --enable-build-warnings or --disable-build-warnings was given.
10637if test "${enable_build_warnings+set}" = set; then
10638 enableval="$enable_build_warnings"
10639 case "${enableval}" in
10640 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10641 no) if test "${GCC}" = yes ; then
10642 WARN_CFLAGS="-w"
10643 fi;;
10644 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10645 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10646 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10647 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10648 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10649esac
10650fi;
d7040cdb 10651
ce2cded5
L
10652if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10653 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10654fi
d7040cdb 10655
d7040cdb 10656
d7040cdb 10657
d7040cdb 10658
d7040cdb 10659
ce2cded5
L
10660# Generate a header file
10661 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 10662
d7040cdb 10663
ce2cded5
L
10664# If we are on a DOS filesystem, we must use gdb.ini rather than
10665# .gdbinit.
10666case "${host}" in
10667 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10668 GDBINIT="gdb.ini"
10669 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 10670
ce2cded5
L
10671 ;;
10672 *)
10673 GDBINIT=".gdbinit"
10674 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 10675
ce2cded5
L
10676 ;;
10677esac
d7040cdb 10678
d7040cdb 10679
ce2cded5
L
10680#We need this for the host. BOUT header is in host order.
10681echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10682echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10683if test "${ac_cv_c_bigendian+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685else
10686 # See if sys/param.h defines the BYTE_ORDER macro.
10687cat >conftest.$ac_ext <<_ACEOF
10688/* confdefs.h. */
10689_ACEOF
10690cat confdefs.h >>conftest.$ac_ext
10691cat >>conftest.$ac_ext <<_ACEOF
10692/* end confdefs.h. */
10693#include <sys/types.h>
10694#include <sys/param.h>
d7040cdb 10695
ce2cded5
L
10696int
10697main ()
10698{
10699#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10700 bogus endian macros
10701#endif
d7040cdb 10702
ce2cded5
L
10703 ;
10704 return 0;
10705}
10706_ACEOF
10707rm -f conftest.$ac_objext
10708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag"
10717 || test ! -s conftest.err'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; } &&
10723 { ac_try='test -s conftest.$ac_objext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 # It does; now see whether it defined to BIG_ENDIAN or not.
10730cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h. */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h. */
10736#include <sys/types.h>
10737#include <sys/param.h>
d7040cdb 10738
ce2cded5
L
10739int
10740main ()
10741{
10742#if BYTE_ORDER != BIG_ENDIAN
10743 not big endian
10744#endif
d7040cdb 10745
ce2cded5
L
10746 ;
10747 return 0;
10748}
10749_ACEOF
10750rm -f conftest.$ac_objext
10751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10752 (eval $ac_compile) 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag"
10760 || test ! -s conftest.err'
10761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762 (eval $ac_try) 2>&5
10763 ac_status=$?
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }; } &&
10766 { ac_try='test -s conftest.$ac_objext'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
10772 ac_cv_c_bigendian=yes
10773else
10774 echo "$as_me: failed program was:" >&5
10775sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10776
ce2cded5
L
10777ac_cv_c_bigendian=no
10778fi
10779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10783
ce2cded5
L
10784# It does not; compile a test program.
10785if test "$cross_compiling" = yes; then
10786 # try to guess the endianness by grepping values into an object file
10787 ac_cv_c_bigendian=unknown
10788 cat >conftest.$ac_ext <<_ACEOF
10789/* confdefs.h. */
10790_ACEOF
10791cat confdefs.h >>conftest.$ac_ext
10792cat >>conftest.$ac_ext <<_ACEOF
10793/* end confdefs.h. */
10794short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10795short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10796void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10797short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10798short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10799void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10800int
10801main ()
10802{
10803 _ascii (); _ebcdic ();
10804 ;
10805 return 0;
10806}
10807_ACEOF
10808rm -f conftest.$ac_objext
10809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>conftest.er1
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag"
10818 || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest.$ac_objext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10831 ac_cv_c_bigendian=yes
d7040cdb 10832fi
ce2cded5
L
10833if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10834 if test "$ac_cv_c_bigendian" = unknown; then
10835 ac_cv_c_bigendian=no
10836 else
10837 # finding both strings is unlikely to happen, but who knows?
10838 ac_cv_c_bigendian=unknown
10839 fi
10840fi
10841else
10842 echo "$as_me: failed program was:" >&5
10843sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10844
ce2cded5
L
10845fi
10846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10847else
10848 cat >conftest.$ac_ext <<_ACEOF
10849/* confdefs.h. */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
10853/* end confdefs.h. */
10854int
10855main ()
10856{
10857 /* Are we little or big endian? From Harbison&Steele. */
10858 union
10859 {
10860 long l;
10861 char c[sizeof (long)];
10862 } u;
10863 u.l = 1;
10864 exit (u.c[sizeof (long) - 1] == 1);
10865}
d7040cdb 10866_ACEOF
ce2cded5
L
10867rm -f conftest$ac_exeext
10868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10869 (eval $ac_link) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_c_bigendian=no
10879else
10880 echo "$as_me: program exited with status $ac_status" >&5
10881echo "$as_me: failed program was:" >&5
10882sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10883
ce2cded5
L
10884( exit $ac_status )
10885ac_cv_c_bigendian=yes
d7040cdb 10886fi
ce2cded5 10887rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7040cdb 10888fi
d7040cdb 10889fi
ce2cded5
L
10890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10891fi
10892echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10893echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10894case $ac_cv_c_bigendian in
10895 yes)
d7040cdb 10896
d7040cdb 10897cat >>confdefs.h <<\_ACEOF
ce2cded5 10898#define WORDS_BIGENDIAN 1
d7040cdb
SE
10899_ACEOF
10900 ;;
ce2cded5
L
10901 no)
10902 ;;
10903 *)
10904 { { echo "$as_me:$LINENO: error: unknown endianness
10905presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10906echo "$as_me: error: unknown endianness
10907presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10908 { (exit 1); exit 1; }; } ;;
d7040cdb
SE
10909esac
10910
d7040cdb 10911
ce2cded5 10912te_file=generic
d7040cdb 10913
ce2cded5
L
10914# Makefile target for installing gas in $(tooldir)/bin.
10915install_tooldir=install-exec-tooldir
d7040cdb 10916
ce2cded5
L
10917canon_targets=""
10918all_targets=no
10919if test -n "$enable_targets" ; then
10920 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10921 if test $t = "all"; then
10922 all_targets=yes
10923 continue
10924 fi
10925 result=`$ac_config_sub $t 2>/dev/null`
10926 if test -n "$result" ; then
10927 canon_targets="$canon_targets $result"
10928# else
10929# # Permit "all", etc. We don't support it yet though.
10930# canon_targets="$canon_targets $t"
10931 fi
10932 done
10933 _gas_uniq_list="$canon_targets"
d7040cdb
SE
10934_gas_uniq_newlist=""
10935for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10936 case $_gas_uniq_i in
10937 _gas_uniq_dummy) ;;
10938 *) case " $_gas_uniq_newlist " in
10939 *" $_gas_uniq_i "*) ;;
10940 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10941 esac ;;
10942 esac
10943done
ce2cded5 10944canon_targets=$_gas_uniq_newlist
d7040cdb 10945
ce2cded5
L
10946fi
10947
10948emulations=""
10949
10950for this_target in $target $canon_targets ; do
10951
10952 targ=${this_target}
10953 . ${srcdir}/configure.tgt
10954
10955 case ${target_cpu} in
10956 crisv32)
10957
10958cat >>confdefs.h <<_ACEOF
10959#define DEFAULT_CRIS_ARCH $arch
d7040cdb 10960_ACEOF
ce2cded5
L
10961
10962 ;;
10963 esac
10964
10965 if test ${this_target} = $target ; then
10966 target_cpu_type=${cpu_type}
10967 elif test ${target_cpu_type} != ${cpu_type} ; then
10968 continue
10969 fi
10970
10971 generic_target=${cpu_type}-${target_vendor}-${target_os}
10972 case ${generic_target} in
10973 i386-*-sco3.2v5*)
10974 if test ${this_target} = $target; then
10975
d7040cdb 10976cat >>confdefs.h <<\_ACEOF
ce2cded5 10977#define SCO_ELF 1
d7040cdb 10978_ACEOF
ce2cded5
L
10979
10980 fi
10981 ;;
10982
10983 i386-*-msdosdjgpp* \
10984 | i386-*-go32* \
10985 | i386-go32-rtems*)
10986
d7040cdb 10987cat >>confdefs.h <<\_ACEOF
ce2cded5 10988#define STRICTCOFF 1
d7040cdb 10989_ACEOF
ce2cded5
L
10990
10991 ;;
10992
10993 i860-*-*)
10994 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10995echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10996 ;;
10997
10998 mips-sony-bsd*)
10999 ;;
11000 mips-*-bsd*)
11001 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
11002echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
11003 { (exit 1); exit 1; }; }
11004 ;;
11005
11006 ppc-*-aix5.*)
11007
d7040cdb 11008cat >>confdefs.h <<\_ACEOF
ce2cded5 11009#define AIX_WEAK_SUPPORT 1
d7040cdb 11010_ACEOF
ce2cded5
L
11011
11012 ;;
11013 ppc-*-linux-*)
11014 case "$endian" in
11015 big) ;;
11016 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
11017echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
11018 { (exit 1); exit 1; }; } ;;
11019 esac
11020 ;;
11021 ppc-*-solaris*)
11022 if test ${this_target} = $target; then
11023
d7040cdb 11024cat >>confdefs.h <<\_ACEOF
ce2cded5 11025#define TARGET_SOLARIS_COMMENT 1
d7040cdb 11026_ACEOF
ce2cded5
L
11027
11028 fi
11029 if test x${endian} = xbig; then
11030 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
11031echo "$as_me: error: Solaris must be configured little endian" >&2;}
11032 { (exit 1); exit 1; }; }
11033 fi
11034 ;;
11035
11036 sh*-*-symbianelf*)
11037
d7040cdb 11038cat >>confdefs.h <<\_ACEOF
ce2cded5 11039#define TARGET_SYMBIAN 1
d7040cdb 11040_ACEOF
ce2cded5
L
11041
11042 ;;
d7040cdb 11043 esac
d7040cdb 11044
ce2cded5
L
11045 if test ${this_target} = $target ; then
11046 endian_def=
11047 if test x${endian} = xbig; then
11048 endian_def=1
11049 elif test x${endian} = xlittle; then
11050 endian_def=0
11051 fi
11052 if test x${endian_def} != x; then
11053
11054cat >>confdefs.h <<_ACEOF
11055#define TARGET_BYTES_BIG_ENDIAN $endian_def
11056_ACEOF
11057
11058 fi
11059 fi
11060
11061# Other random stuff.
11062
11063 case ${cpu_type} in
11064 mips)
11065 # Set mips_cpu to the name of the default CPU.
11066 case ${target_cpu} in
11067 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11068 mips_cpu=from-abi
11069 ;;
11070 mipsisa32 | mipsisa32el)
11071 mips_cpu=mips32
11072 ;;
11073 mipsisa32r2 | mipsisa32r2el)
11074 mips_cpu=mips32r2
11075 ;;
11076 mipsisa64 | mipsisa64el)
11077 mips_cpu=mips64
11078 ;;
11079 mipsisa64r2 | mipsisa64r2el)
11080 mips_cpu=mips64r2
11081 ;;
11082 mipstx39 | mipstx39el)
11083 mips_cpu=r3900
11084 ;;
11085 mips64vr | mips64vrel)
11086 mips_cpu=vr4100
11087 ;;
11088 mipsisa32r2* | mipsisa64r2*)
11089 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11090 ;;
11091 mips64* | mipsisa64* | mipsisa32*)
11092 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11093 ;;
11094 *)
11095 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
11096echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
11097 { (exit 1); exit 1; }; }
11098 ;;
11099 esac
11100 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11101 # binaries. It's a GNU extension that some OSes don't understand.
11102 # The value only matters on ELF targets.
11103 case ${target} in
11104 *-*-irix*)
11105 use_e_mips_abi_o32=0
11106 ;;
11107 *)
11108 use_e_mips_abi_o32=1
11109 ;;
11110 esac
11111 # Decide whether to generate 32-bit or 64-bit code by default.
11112 # Used to resolve -march=from-abi when an embedded ABI is selected.
11113 case ${target} in
11114 mips64*-*-* | mipsisa64*-*-*)
11115 mips_default_64bit=1
11116 ;;
11117 *)
11118 mips_default_64bit=0
11119 ;;
11120 esac
11121 # Decide which ABI to target by default.
11122 case ${target} in
11123 mips64*-linux* | mips-sgi-irix6*)
11124 mips_default_abi=N32_ABI
11125 ;;
11126 mips*-linux*)
11127 mips_default_abi=O32_ABI
11128 ;;
11129 mips64*-openbsd*)
11130 mips_default_abi=N64_ABI
11131 ;;
11132 *)
11133 mips_default_abi=NO_ABI
11134 ;;
11135 esac
11136
11137cat >>confdefs.h <<_ACEOF
11138#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 11139_ACEOF
d7040cdb
SE
11140
11141
11142cat >>confdefs.h <<_ACEOF
ce2cded5 11143#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
11144_ACEOF
11145
11146
11147cat >>confdefs.h <<_ACEOF
ce2cded5 11148#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
11149_ACEOF
11150
11151
ce2cded5
L
11152cat >>confdefs.h <<_ACEOF
11153#define MIPS_DEFAULT_ABI $mips_default_abi
11154_ACEOF
d7040cdb 11155
ce2cded5
L
11156 ;;
11157 esac
d7040cdb 11158
ce2cded5
L
11159 # Do we need the opcodes library?
11160 case ${cpu_type} in
11161 vax | tic30)
11162 ;;
d7040cdb 11163
ce2cded5
L
11164 *)
11165 need_opcodes=yes
d7040cdb 11166
ce2cded5
L
11167 case "${enable_shared}" in
11168 yes) shared_opcodes=true ;;
11169 *opcodes*) shared_opcodes=true ;;
11170 *) shared_opcodes=false ;;
11171 esac
11172 ;;
11173 esac
d7040cdb 11174
ce2cded5
L
11175 # Any other special object files needed ?
11176 case ${cpu_type} in
d7040cdb 11177
ce2cded5
L
11178 bfin)
11179 echo ${extra_objects} | grep -s "bfin-parse.o"
11180 if test $? -ne 0 ; then
11181 extra_objects="$extra_objects bfin-parse.o"
11182 fi
d7040cdb 11183
ce2cded5
L
11184 echo ${extra_objects} | grep -s "bfin-lex.o"
11185 if test $? -ne 0 ; then
11186 extra_objects="$extra_objects bfin-lex.o"
11187 fi
11188 ;;
d7040cdb 11189
ce2cded5
L
11190 fr30 | ip2k | iq2000 | m32r | openrisc)
11191 using_cgen=yes
11192 ;;
d7040cdb 11193
ce2cded5
L
11194 m32c)
11195 using_cgen=yes
11196 ;;
11197 frv)
11198 using_cgen=yes
11199 ;;
11200 m68k)
11201 case ${extra_objects} in
11202 *m68k-parse.o*) ;;
11203 *) extra_objects="$extra_objects m68k-parse.o" ;;
11204 esac
11205 ;;
d7040cdb 11206
ce2cded5
L
11207 mep)
11208 using_cgen=yes
11209 ;;
d7040cdb 11210
ce2cded5
L
11211 mips)
11212 echo ${extra_objects} | grep -s "itbl-parse.o"
11213 if test $? -ne 0 ; then
11214 extra_objects="$extra_objects itbl-parse.o"
11215 fi
d7040cdb 11216
ce2cded5
L
11217 echo ${extra_objects} | grep -s "itbl-lex.o"
11218 if test $? -ne 0 ; then
11219 extra_objects="$extra_objects itbl-lex.o"
11220 fi
d7040cdb 11221
ce2cded5
L
11222 echo ${extra_objects} | grep -s "itbl-ops.o"
11223 if test $? -ne 0 ; then
11224 extra_objects="$extra_objects itbl-ops.o"
11225 fi
11226 ;;
d7040cdb 11227
ce2cded5
L
11228 mt)
11229 using_cgen=yes
11230 ;;
d7040cdb 11231
ce2cded5
L
11232 i386 | s390 | sparc)
11233 if test $this_target = $target ; then
d7040cdb
SE
11234
11235cat >>confdefs.h <<_ACEOF
ce2cded5 11236#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
11237_ACEOF
11238
ce2cded5
L
11239 fi
11240 ;;
d7040cdb 11241
ce2cded5
L
11242 xstormy16)
11243 using_cgen=yes
11244 ;;
d7040cdb 11245
ce2cded5
L
11246 xc16x)
11247 using_cgen=yes
11248 ;;
d7040cdb 11249
ce2cded5
L
11250 xtensa)
11251 echo ${extra_objects} | grep -s "xtensa-relax.o"
11252 if test $? -ne 0 ; then
11253 extra_objects="$extra_objects xtensa-relax.o"
11254 fi
11255 ;;
d7040cdb 11256
ce2cded5
L
11257 *)
11258 ;;
11259 esac
d7040cdb 11260
ce2cded5
L
11261 if test $using_cgen = yes ; then
11262 case "x${extra_objects}" in
11263 *cgen.o*) ;;
11264 *) extra_objects="$extra_objects cgen.o" ;;
11265 esac
11266 fi
d7040cdb 11267
ce2cded5 11268# See if we really can support this configuration with the emulation code.
d7040cdb 11269
ce2cded5
L
11270 if test $this_target = $target ; then
11271 obj_format=$fmt
11272 te_file=$em
11273 fi
d7040cdb 11274
ce2cded5 11275# From target name and format, produce a list of supported emulations.
d7040cdb 11276
ce2cded5
L
11277 case ${generic_target}-${fmt} in
11278 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11279 mips*-*-linux*-*) case "$endian" in
11280 big) emulation="mipsbelf mipslelf mipself" ;;
11281 *) emulation="mipslelf mipsbelf mipself" ;;
11282 esac ;;
11283 mips-*-lnews*-ecoff) ;;
11284 mips-*-*-ecoff) case "$endian" in
11285 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11286 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11287 esac ;;
11288 mips-*-*-elf) case "$endian" in
11289 big) emulation="mipsbelf mipslelf mipself" ;;
11290 *) emulation="mipslelf mipsbelf mipself" ;;
11291 esac ;;
11292 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11293 # i386-pc-pe-coff != i386-pc-coff.
11294 i386-*-pe-coff) ;;
11295 # Uncommenting the next line will turn on support for i386 AOUT
11296 # for the default linux configuration
11297 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11298 #
11299 i386-*-aout) emulation="i386aout" ;;
11300 i386-*-coff) emulation="i386coff" ;;
11301 i386-*-elf) emulation="i386elf" ;;
d7040cdb 11302
ce2cded5
L
11303 # Always all formats. The first stated emulation becomes the default.
11304 cris-*-*aout*) emulation="crisaout criself" ;;
11305 cris-*-*) emulation="criself crisaout" ;;
11306 esac
13b2be9c 11307
ce2cded5 11308 emulations="$emulations $emulation"
13b2be9c 11309
13b2be9c 11310done
13b2be9c 11311
ce2cded5
L
11312# Turn on all targets if possible
11313if test ${all_targets} = "yes"; then
11314 case ${target_cpu_type} in
11315 i386)
11316 case ${obj_format} in
11317 aout)
11318 emulations="$emulations i386coff i386elf"
11319 ;;
11320 coff)
11321 emulations="$emulations i386aout i386elf"
11322 ;;
11323 elf)
11324 emulations="$emulations i386aout i386coff"
11325 ;;
11326 esac
11327 ;;
11328 x86_64)
11329 case ${obj_format} in
11330 aout)
11331 emulations="$emulations i386coff i386elf"
11332 ;;
11333 coff)
11334 emulations="$emulations i386aout i386elf"
11335 ;;
11336 elf)
11337 emulations="$emulations i386aout i386coff"
11338 ;;
11339 esac
11340 ;;
11341 esac
13b2be9c 11342fi
c8615825 11343
ce2cded5
L
11344# Assign floating point type. Most processors with FP support
11345# IEEE FP. On those that don't support FP at all, usually IEEE
11346# is emulated.
11347case ${target_cpu} in
11348 vax | pdp11 ) atof=vax ;;
11349 *) atof=ieee ;;
11350esac
c8615825 11351
ce2cded5
L
11352case "${obj_format}" in
11353 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11354echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11355 { (exit 1); exit 1; }; } ;;
11356esac
13b2be9c 11357
ce2cded5
L
11358# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11359cgen_cpu_prefix=""
11360if test $using_cgen = yes ; then
11361 case ${target_cpu} in
11362 *) cgen_cpu_prefix=${target_cpu} ;;
11363 esac
c8615825 11364
c8615825 11365
ce2cded5
L
11366cat >>confdefs.h <<\_ACEOF
11367#define USING_CGEN 1
11368_ACEOF
d7040cdb 11369
d7040cdb 11370fi
13b2be9c 11371
ce2cded5
L
11372
11373if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11374 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11375echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11376 { (exit 1); exit 1; }; }
13b2be9c 11377fi
ce2cded5
L
11378
11379if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11380 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11381echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11382 { (exit 1); exit 1; }; }
13b2be9c
DJ
11383fi
11384
ce2cded5
L
11385# Some COFF configurations want these random other flags set.
11386case ${obj_format} in
11387 coff)
11388 case ${target_cpu_type} in
11389 i386)
11390cat >>confdefs.h <<\_ACEOF
11391#define I386COFF 1
11392_ACEOF
11393 ;;
11394 m68k)
11395cat >>confdefs.h <<\_ACEOF
11396#define M68KCOFF 1
11397_ACEOF
11398 ;;
11399 m88k)
11400cat >>confdefs.h <<\_ACEOF
11401#define M88KCOFF 1
11402_ACEOF
11403 ;;
11404 x86_64)
11405cat >>confdefs.h <<\_ACEOF
11406#define I386COFF 1
11407_ACEOF
11408 ;;
11409 esac
11410 ;;
11411esac
11412
11413# Getting this done right is going to be a bitch. Each configuration specified
11414# with --enable-targets=... should be checked for environment, format, cpu
11415# setting.
11416#
11417# For each configuration, the necessary object file support code must be linked
11418# in. This might be only one, it might be up to four. The necessary emulation
11419# code needs to be provided, too.
11420#
11421# And then there's "--enable-targets=all"....
11422#
11423# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11424
11425formats="${obj_format}"
11426emfiles=""
11427EMULATIONS=""
11428_gas_uniq_list="$emulations"
11429_gas_uniq_newlist=""
11430for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11431 case $_gas_uniq_i in
11432 _gas_uniq_dummy) ;;
11433 *) case " $_gas_uniq_newlist " in
11434 *" $_gas_uniq_i "*) ;;
11435 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11436 esac ;;
11437 esac
11438done
11439emulations=$_gas_uniq_newlist
11440
11441for em in . $emulations ; do
11442 case $em in
11443 .) continue ;;
11444 mipsbelf | mipslelf | mipself)
11445 fmt=elf file=mipself ;;
11446 mipsbecoff | mipslecoff | mipsecoff)
11447 fmt=ecoff file=mipsecoff ;;
11448 *coff)
11449 fmt=coff file=$em ;;
11450 *aout)
11451 fmt=aout file=$em ;;
11452 *elf)
11453 fmt=elf file=$em ;;
11454 esac
11455 formats="$formats $fmt"
11456 emfiles="$emfiles e-$file.o"
11457 EMULATIONS="$EMULATIONS &$em,"
11458done
11459_gas_uniq_list="$formats"
11460_gas_uniq_newlist=""
11461for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11462 case $_gas_uniq_i in
11463 _gas_uniq_dummy) ;;
11464 *) case " $_gas_uniq_newlist " in
11465 *" $_gas_uniq_i "*) ;;
11466 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11467 esac ;;
11468 esac
13b2be9c 11469done
ce2cded5 11470formats=$_gas_uniq_newlist
13b2be9c 11471
ce2cded5
L
11472_gas_uniq_list="$emfiles"
11473_gas_uniq_newlist=""
11474for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11475 case $_gas_uniq_i in
11476 _gas_uniq_dummy) ;;
11477 *) case " $_gas_uniq_newlist " in
11478 *" $_gas_uniq_i "*) ;;
11479 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11480 esac ;;
11481 esac
11482done
11483emfiles=$_gas_uniq_newlist
d7040cdb 11484
ce2cded5
L
11485if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11486 for fmt in $formats ; do
11487 case $fmt in
11488 aout)
11489cat >>confdefs.h <<\_ACEOF
11490#define OBJ_MAYBE_AOUT 1
13b2be9c 11491_ACEOF
ce2cded5
L
11492 ;;
11493 bout)
11494cat >>confdefs.h <<\_ACEOF
11495#define OBJ_MAYBE_BOUT 1
13b2be9c 11496_ACEOF
ce2cded5
L
11497 ;;
11498 coff)
11499cat >>confdefs.h <<\_ACEOF
11500#define OBJ_MAYBE_COFF 1
11501_ACEOF
11502 ;;
11503 ecoff)
11504cat >>confdefs.h <<\_ACEOF
11505#define OBJ_MAYBE_ECOFF 1
11506_ACEOF
11507 ;;
11508 elf)
11509cat >>confdefs.h <<\_ACEOF
11510#define OBJ_MAYBE_ELF 1
11511_ACEOF
11512 ;;
11513 generic)
11514cat >>confdefs.h <<\_ACEOF
11515#define OBJ_MAYBE_GENERIC 1
11516_ACEOF
11517 ;;
11518 som)
11519cat >>confdefs.h <<\_ACEOF
11520#define OBJ_MAYBE_SOM 1
11521_ACEOF
11522 ;;
11523 esac
11524 extra_objects="$extra_objects obj-$fmt.o"
11525 done
11526 obj_format=multi
13b2be9c 11527fi
ce2cded5
L
11528if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11529 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11530 # e-mips* has more than one emulation per file, e-i386* has just one at the
11531 # moment. If only one emulation is specified, then don't define
11532 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11533 case "${obj_format}${emfiles}" in
11534 multi* | *mips*)
11535 extra_objects="$extra_objects $emfiles"
d7040cdb 11536
ce2cded5
L
11537cat >>confdefs.h <<\_ACEOF
11538#define USE_EMULATIONS 1
13b2be9c 11539_ACEOF
ce2cded5
L
11540 ;;
11541 esac
11542fi
d7040cdb 11543
13b2be9c 11544
ce2cded5
L
11545cat >>confdefs.h <<_ACEOF
11546#define EMULATIONS $EMULATIONS
13b2be9c 11547_ACEOF
d7040cdb 11548
d7040cdb 11549
ce2cded5
L
11550cat >>confdefs.h <<_ACEOF
11551#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 11552_ACEOF
d7040cdb 11553
d7040cdb 11554
ce2cded5 11555reject_dev_configs=yes
252b5132 11556
ce2cded5
L
11557case ${reject_dev_configs}-${dev} in
11558 yes-yes) # Oops.
11559 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11560echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11561 { (exit 1); exit 1; }; }
11562 ;;
d7040cdb
SE
11563esac
11564
13b2be9c 11565
ce2cded5
L
11566
11567
11568
11569
11570
11571# do we need the opcodes library?
11572case "${need_opcodes}" in
11573yes)
11574 OPCODES_LIB=../opcodes/libopcodes.la
11575 ;;
11576esac
11577
11578
11579
11580
11581cat >>confdefs.h <<_ACEOF
11582#define TARGET_ALIAS "${target_alias}"
d7040cdb 11583_ACEOF
20e95c23 11584
20e95c23 11585
ce2cded5
L
11586cat >>confdefs.h <<_ACEOF
11587#define TARGET_CANONICAL "${target}"
11588_ACEOF
20e95c23 11589
d6d788bd 11590
ce2cded5
L
11591cat >>confdefs.h <<_ACEOF
11592#define TARGET_CPU "${target_cpu}"
11593_ACEOF
20e95c23 11594
ce2cded5
L
11595
11596cat >>confdefs.h <<_ACEOF
11597#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
11598_ACEOF
11599
11600
ce2cded5
L
11601cat >>confdefs.h <<_ACEOF
11602#define TARGET_OS "${target_os}"
11603_ACEOF
11604
0efedc4c 11605
d7040cdb
SE
11606for ac_prog in 'bison -y' byacc
11607do
11608 # Extract the first word of "$ac_prog", so it can be a program name with args.
11609set dummy $ac_prog; ac_word=$2
20e95c23
DJ
11610echo "$as_me:$LINENO: checking for $ac_word" >&5
11611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 11612if test "${ac_cv_prog_YACC+set}" = set; then
20e95c23
DJ
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614else
d7040cdb
SE
11615 if test -n "$YACC"; then
11616 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 11617else
d7040cdb
SE
11618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619for as_dir in $PATH
11620do
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11625 ac_cv_prog_YACC="$ac_prog"
11626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
20e95c23 11628 fi
d7040cdb
SE
11629done
11630done
20e95c23 11631
d7040cdb
SE
11632fi
11633fi
11634YACC=$ac_cv_prog_YACC
11635if test -n "$YACC"; then
11636 echo "$as_me:$LINENO: result: $YACC" >&5
11637echo "${ECHO_T}$YACC" >&6
11638else
11639 echo "$as_me:$LINENO: result: no" >&5
11640echo "${ECHO_T}no" >&6
11641fi
20e95c23 11642
d7040cdb
SE
11643 test -n "$YACC" && break
11644done
11645test -n "$YACC" || YACC="yacc"
20e95c23 11646
d7040cdb
SE
11647for ac_prog in flex lex
11648do
11649 # Extract the first word of "$ac_prog", so it can be a program name with args.
11650set dummy $ac_prog; ac_word=$2
11651echo "$as_me:$LINENO: checking for $ac_word" >&5
11652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653if test "${ac_cv_prog_LEX+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 11655else
d7040cdb
SE
11656 if test -n "$LEX"; then
11657 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11658else
11659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_LEX="$ac_prog"
11667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670done
11671done
20e95c23 11672
d7040cdb
SE
11673fi
11674fi
11675LEX=$ac_cv_prog_LEX
11676if test -n "$LEX"; then
11677 echo "$as_me:$LINENO: result: $LEX" >&5
11678echo "${ECHO_T}$LEX" >&6
20e95c23 11679else
d7040cdb
SE
11680 echo "$as_me:$LINENO: result: no" >&5
11681echo "${ECHO_T}no" >&6
13b2be9c
DJ
11682fi
11683
d7040cdb
SE
11684 test -n "$LEX" && break
11685done
11686test -n "$LEX" || LEX=":"
20e95c23 11687
d7040cdb
SE
11688if test -z "$LEXLIB"
11689then
11690 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11691echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11692if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
d5fbea21 11694else
d7040cdb
SE
11695 ac_check_lib_save_LIBS=$LIBS
11696LIBS="-lfl $LIBS"
11697cat >conftest.$ac_ext <<_ACEOF
11698/* confdefs.h. */
11699_ACEOF
11700cat confdefs.h >>conftest.$ac_ext
11701cat >>conftest.$ac_ext <<_ACEOF
11702/* end confdefs.h. */
d5fbea21 11703
d7040cdb
SE
11704/* Override any gcc2 internal prototype to avoid an error. */
11705#ifdef __cplusplus
11706extern "C"
11707#endif
11708/* We use char because int might match the return type of a gcc2
11709 builtin and then its argument prototype would still apply. */
11710char yywrap ();
11711int
11712main ()
11713{
11714yywrap ();
11715 ;
11716 return 0;
11717}
11718_ACEOF
11719rm -f conftest.$ac_objext conftest$ac_exeext
11720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>conftest.er1
11722 ac_status=$?
11723 grep -v '^ *+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -z "$ac_c_werror_flag"
11729 || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_lib_fl_yywrap=yes
11742else
11743 echo "$as_me: failed program was:" >&5
11744sed 's/^/| /' conftest.$ac_ext >&5
d5fbea21 11745
d7040cdb 11746ac_cv_lib_fl_yywrap=no
d6d788bd 11747fi
d7040cdb
SE
11748rm -f conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750LIBS=$ac_check_lib_save_LIBS
11751fi
11752echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11753echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11754if test $ac_cv_lib_fl_yywrap = yes; then
11755 LEXLIB="-lfl"
11756else
11757 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11758echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11759if test "${ac_cv_lib_l_yywrap+set}" = set; then
13b2be9c
DJ
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761else
d7040cdb
SE
11762 ac_check_lib_save_LIBS=$LIBS
11763LIBS="-ll $LIBS"
11764cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
11765/* confdefs.h. */
11766_ACEOF
11767cat confdefs.h >>conftest.$ac_ext
11768cat >>conftest.$ac_ext <<_ACEOF
11769/* end confdefs.h. */
d7040cdb
SE
11770
11771/* Override any gcc2 internal prototype to avoid an error. */
11772#ifdef __cplusplus
11773extern "C"
13b2be9c 11774#endif
d7040cdb
SE
11775/* We use char because int might match the return type of a gcc2
11776 builtin and then its argument prototype would still apply. */
11777char yywrap ();
11778int
11779main ()
11780{
11781yywrap ();
11782 ;
11783 return 0;
11784}
11785_ACEOF
11786rm -f conftest.$ac_objext conftest$ac_exeext
11787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11788 (eval $ac_link) 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -z "$ac_c_werror_flag"
11796 || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest$ac_exeext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_cv_lib_l_yywrap=yes
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813ac_cv_lib_l_yywrap=no
11814fi
11815rm -f conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11817LIBS=$ac_check_lib_save_LIBS
11818fi
11819echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11820echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11821if test $ac_cv_lib_l_yywrap = yes; then
11822 LEXLIB="-ll"
11823fi
11824
11825fi
11826
11827fi
11828
11829if test "x$LEX" != "x:"; then
11830 echo "$as_me:$LINENO: checking lex output file root" >&5
11831echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11832if test "${ac_cv_prog_lex_root+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834else
11835 # The minimal lex program is just a single line: %%. But some broken lexes
11836# (Solaris, I think it was) want two %% lines, so accommodate them.
11837cat >conftest.l <<_ACEOF
11838%%
11839%%
13b2be9c 11840_ACEOF
d7040cdb
SE
11841{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11842 (eval $LEX conftest.l) 2>&5
13b2be9c 11843 ac_status=$?
13b2be9c 11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11845 (exit $ac_status); }
11846if test -f lex.yy.c; then
11847 ac_cv_prog_lex_root=lex.yy
11848elif test -f lexyy.c; then
11849 ac_cv_prog_lex_root=lexyy
13b2be9c 11850else
d7040cdb
SE
11851 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11852echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11853 { (exit 1); exit 1; }; }
d6d788bd 11854fi
13b2be9c 11855fi
d7040cdb
SE
11856echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11857echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11858rm -f conftest.l
11859LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13b2be9c 11860
d7040cdb
SE
11861echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11862echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11863if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865else
11866 # POSIX says lex can declare yytext either as a pointer or an array; the
11867# default is implementation-dependent. Figure out which it is, since
11868# not all implementations provide the %pointer and %array declarations.
11869ac_cv_prog_lex_yytext_pointer=no
11870echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11871ac_save_LIBS=$LIBS
11872LIBS="$LIBS $LEXLIB"
11873cat >conftest.$ac_ext <<_ACEOF
11874`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 11875_ACEOF
d7040cdb
SE
11876rm -f conftest.$ac_objext conftest$ac_exeext
11877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>conftest.er1
13b2be9c
DJ
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_c_werror_flag"
11886 || test ! -s conftest.err'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c
DJ
11899else
11900 echo "$as_me: failed program was:" >&5
11901sed 's/^/| /' conftest.$ac_ext >&5
6840198f 11902
13b2be9c 11903fi
d7040cdb
SE
11904rm -f conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906LIBS=$ac_save_LIBS
11907rm -f "${LEX_OUTPUT_ROOT}.c"
252b5132 11908
9b2b7d69 11909fi
d7040cdb
SE
11910echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11911echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11912if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 11913
d7040cdb
SE
11914cat >>confdefs.h <<\_ACEOF
11915#define YYTEXT_POINTER 1
11916_ACEOF
9b2b7d69 11917
d6d788bd 11918fi
d7040cdb 11919
c8615825 11920fi
d7040cdb
SE
11921if test "$LEX" = :; then
11922 LEX=${am_missing_run}flex
11923fi
11924
11925ALL_LINGUAS="fr tr es rw"
11926# If we haven't got the data from the intl directory,
11927# assume NLS is disabled.
11928USE_NLS=no
11929LIBINTL=
11930LIBINTL_DEP=
11931INCINTL=
11932XGETTEXT=
11933GMSGFMT=
11934POSUB=
11935
11936if test -f ../intl/config.intl; then
11937 . ../intl/config.intl
11938fi
11939echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11940echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11941if test x"$USE_NLS" != xyes; then
11942 echo "$as_me:$LINENO: result: no" >&5
11943echo "${ECHO_T}no" >&6
11944else
11945 echo "$as_me:$LINENO: result: yes" >&5
11946echo "${ECHO_T}yes" >&6
11947
11948cat >>confdefs.h <<\_ACEOF
11949#define ENABLE_NLS 1
13b2be9c 11950_ACEOF
d7040cdb
SE
11951
11952
11953 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11954echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11955 # Look for .po and .gmo files in the source directory.
11956 CATALOGS=
11957 XLINGUAS=
11958 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11959 # If there aren't any .gmo files the shell will give us the
11960 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11961 # weeded out.
11962 case "$cat" in *\**)
11963 continue;;
11964 esac
11965 # The quadruple backslash is collapsed to a double backslash
11966 # by the backticks, then collapsed again by the double quotes,
11967 # leaving us with one backslash in the sed expression (right
11968 # before the dot that mustn't act as a wildcard).
11969 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11970 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11971 # The user is allowed to set LINGUAS to a list of languages to
11972 # install catalogs for. If it's empty that means "all of them."
11973 if test "x$LINGUAS" = x; then
11974 CATALOGS="$CATALOGS $cat"
11975 XLINGUAS="$XLINGUAS $lang"
11976 else
11977 case "$LINGUAS" in *$lang*)
11978 CATALOGS="$CATALOGS $cat"
11979 XLINGUAS="$XLINGUAS $lang"
11980 ;;
11981 esac
11982 fi
11983 done
11984 LINGUAS="$XLINGUAS"
11985 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11986echo "${ECHO_T}$LINGUAS" >&6
11987
11988
11989 DATADIRNAME=share
11990
11991 INSTOBJEXT=.mo
11992
11993 GENCAT=gencat
11994
11995 CATOBJEXT=.gmo
11996
11997fi
11998
11999 MKINSTALLDIRS=
12000 if test -n "$ac_aux_dir"; then
12001 case "$ac_aux_dir" in
12002 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12003 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12004 esac
12005 fi
12006 if test -z "$MKINSTALLDIRS"; then
12007 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12008 fi
12009
12010
12011
12012 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12013echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12014 # Check whether --enable-nls or --disable-nls was given.
12015if test "${enable_nls+set}" = set; then
12016 enableval="$enable_nls"
12017 USE_NLS=$enableval
12018else
12019 USE_NLS=yes
12020fi;
12021 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12022echo "${ECHO_T}$USE_NLS" >&6
12023
12024
12025
12026
12027
12028
12029# Prepare PATH_SEPARATOR.
12030# The user is always right.
12031if test "${PATH_SEPARATOR+set}" != set; then
12032 echo "#! /bin/sh" >conf$$.sh
12033 echo "exit 0" >>conf$$.sh
12034 chmod +x conf$$.sh
12035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12036 PATH_SEPARATOR=';'
13b2be9c 12037 else
d7040cdb 12038 PATH_SEPARATOR=:
13b2be9c 12039 fi
d7040cdb 12040 rm -f conf$$.sh
252b5132 12041fi
13b2be9c 12042
d7040cdb
SE
12043# Find out how to test for executable files. Don't use a zero-byte file,
12044# as systems may use methods other than mode bits to determine executability.
12045cat >conf$$.file <<_ASEOF
12046#! /bin/sh
12047exit 0
12048_ASEOF
12049chmod +x conf$$.file
12050if test -x conf$$.file >/dev/null 2>&1; then
12051 ac_executable_p="test -x"
12052else
12053 ac_executable_p="test -f"
13b2be9c 12054fi
d7040cdb 12055rm -f conf$$.file
13b2be9c 12056
d7040cdb
SE
12057# Extract the first word of "msgfmt", so it can be a program name with args.
12058set dummy msgfmt; ac_word=$2
12059echo "$as_me:$LINENO: checking for $ac_word" >&5
12060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12061if test "${ac_cv_path_MSGFMT+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12063else
d7040cdb
SE
12064 case "$MSGFMT" in
12065 [\\/]* | ?:[\\/]*)
12066 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12067 ;;
12068 *)
12069 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12070 for ac_dir in $PATH; do
12071 IFS="$ac_save_IFS"
12072 test -z "$ac_dir" && ac_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12075 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12076 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12077 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12078 break 2
12079 fi
12080 fi
12081 done
12082 done
12083 IFS="$ac_save_IFS"
12084 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12085 ;;
12086esac
252b5132 12087fi
d7040cdb
SE
12088MSGFMT="$ac_cv_path_MSGFMT"
12089if test "$MSGFMT" != ":"; then
12090 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12091echo "${ECHO_T}$MSGFMT" >&6
252b5132 12092else
d7040cdb
SE
12093 echo "$as_me:$LINENO: result: no" >&5
12094echo "${ECHO_T}no" >&6
252b5132 12095fi
252b5132 12096
d7040cdb
SE
12097 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12098set dummy gmsgfmt; ac_word=$2
12099echo "$as_me:$LINENO: checking for $ac_word" >&5
12100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12101if test "${ac_cv_path_GMSGFMT+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 12103else
d7040cdb
SE
12104 case $GMSGFMT in
12105 [\\/]* | ?:[\\/]*)
12106 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12107 ;;
12108 *)
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110for as_dir in $PATH
12111do
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 break 2
12119 fi
12120done
12121done
252b5132 12122
d7040cdb
SE
12123 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12124 ;;
12125esac
12126fi
12127GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 12128
d7040cdb
SE
12129if test -n "$GMSGFMT"; then
12130 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12131echo "${ECHO_T}$GMSGFMT" >&6
ac48eca1 12132else
d7040cdb
SE
12133 echo "$as_me:$LINENO: result: no" >&5
12134echo "${ECHO_T}no" >&6
6840198f 12135fi
6840198f 12136
13b2be9c 12137
20e95c23 12138
d7040cdb
SE
12139# Prepare PATH_SEPARATOR.
12140# The user is always right.
12141if test "${PATH_SEPARATOR+set}" != set; then
12142 echo "#! /bin/sh" >conf$$.sh
12143 echo "exit 0" >>conf$$.sh
12144 chmod +x conf$$.sh
12145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12146 PATH_SEPARATOR=';'
12147 else
12148 PATH_SEPARATOR=:
12149 fi
12150 rm -f conf$$.sh
12151fi
20e95c23 12152
d7040cdb
SE
12153# Find out how to test for executable files. Don't use a zero-byte file,
12154# as systems may use methods other than mode bits to determine executability.
12155cat >conf$$.file <<_ASEOF
12156#! /bin/sh
12157exit 0
12158_ASEOF
12159chmod +x conf$$.file
12160if test -x conf$$.file >/dev/null 2>&1; then
12161 ac_executable_p="test -x"
13b2be9c 12162else
d7040cdb 12163 ac_executable_p="test -f"
13b2be9c 12164fi
d7040cdb 12165rm -f conf$$.file
20e95c23 12166
d7040cdb
SE
12167# Extract the first word of "xgettext", so it can be a program name with args.
12168set dummy xgettext; ac_word=$2
12169echo "$as_me:$LINENO: checking for $ac_word" >&5
12170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12171if test "${ac_cv_path_XGETTEXT+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12173else
d7040cdb
SE
12174 case "$XGETTEXT" in
12175 [\\/]* | ?:[\\/]*)
12176 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12177 ;;
12178 *)
12179 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12180 for ac_dir in $PATH; do
12181 IFS="$ac_save_IFS"
12182 test -z "$ac_dir" && ac_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12185 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12186 (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
12187 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12188 break 2
12189 fi
12190 fi
12191 done
12192 done
12193 IFS="$ac_save_IFS"
12194 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12195 ;;
12196esac
13b2be9c 12197fi
d7040cdb
SE
12198XGETTEXT="$ac_cv_path_XGETTEXT"
12199if test "$XGETTEXT" != ":"; then
12200 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12201echo "${ECHO_T}$XGETTEXT" >&6
12202else
12203 echo "$as_me:$LINENO: result: no" >&5
12204echo "${ECHO_T}no" >&6
13b2be9c 12205fi
13b2be9c 12206
d7040cdb 12207 rm -f messages.po
20e95c23 12208
13b2be9c 12209
d7040cdb
SE
12210# Prepare PATH_SEPARATOR.
12211# The user is always right.
12212if test "${PATH_SEPARATOR+set}" != set; then
12213 echo "#! /bin/sh" >conf$$.sh
12214 echo "exit 0" >>conf$$.sh
12215 chmod +x conf$$.sh
12216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12217 PATH_SEPARATOR=';'
12218 else
12219 PATH_SEPARATOR=:
12220 fi
12221 rm -f conf$$.sh
252b5132 12222fi
20e95c23 12223
d7040cdb
SE
12224# Find out how to test for executable files. Don't use a zero-byte file,
12225# as systems may use methods other than mode bits to determine executability.
12226cat >conf$$.file <<_ASEOF
12227#! /bin/sh
12228exit 0
12229_ASEOF
12230chmod +x conf$$.file
12231if test -x conf$$.file >/dev/null 2>&1; then
12232 ac_executable_p="test -x"
252b5132 12233else
d7040cdb
SE
12234 ac_executable_p="test -f"
12235fi
12236rm -f conf$$.file
20e95c23 12237
d7040cdb
SE
12238# Extract the first word of "msgmerge", so it can be a program name with args.
12239set dummy msgmerge; ac_word=$2
12240echo "$as_me:$LINENO: checking for $ac_word" >&5
12241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12242if test "${ac_cv_path_MSGMERGE+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 12244else
d7040cdb
SE
12245 case "$MSGMERGE" in
12246 [\\/]* | ?:[\\/]*)
12247 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12248 ;;
12249 *)
12250 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12251 for ac_dir in $PATH; do
12252 IFS="$ac_save_IFS"
12253 test -z "$ac_dir" && ac_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12256 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12257 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12258 break 2
12259 fi
12260 fi
12261 done
12262 done
12263 IFS="$ac_save_IFS"
12264 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12265 ;;
12266esac
20e95c23 12267fi
d7040cdb
SE
12268MSGMERGE="$ac_cv_path_MSGMERGE"
12269if test "$MSGMERGE" != ":"; then
12270 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12271echo "${ECHO_T}$MSGMERGE" >&6
12272else
12273 echo "$as_me:$LINENO: result: no" >&5
12274echo "${ECHO_T}no" >&6
20e95c23 12275fi
252b5132 12276
252b5132 12277
d7040cdb
SE
12278 if test "$GMSGFMT" != ":"; then
12279 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12280 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12281 : ;
12282 else
12283 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12284 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12285echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12286 GMSGFMT=":"
12287 fi
12288 fi
13b2be9c 12289
d7040cdb
SE
12290 if test "$XGETTEXT" != ":"; then
12291 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12292 (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
12293 : ;
12294 else
12295 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12296echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12297 XGETTEXT=":"
12298 fi
12299 rm -f messages.po
12300 fi
252b5132 12301
d7040cdb 12302 ac_config_commands="$ac_config_commands default-1"
252b5132 12303
13b2be9c 12304
252b5132 12305
d7040cdb
SE
12306echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12307echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12308 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12309if test "${enable_maintainer_mode+set}" = set; then
12310 enableval="$enable_maintainer_mode"
12311 USE_MAINTAINER_MODE=$enableval
c8615825 12312else
d7040cdb
SE
12313 USE_MAINTAINER_MODE=no
12314fi;
12315 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12316echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13b2be9c 12317
d7040cdb
SE
12318
12319if test $USE_MAINTAINER_MODE = yes; then
12320 MAINTAINER_MODE_TRUE=
12321 MAINTAINER_MODE_FALSE='#'
12322else
12323 MAINTAINER_MODE_TRUE='#'
12324 MAINTAINER_MODE_FALSE=
20e95c23 12325fi
9b2b7d69 12326
d7040cdb
SE
12327 MAINT=$MAINTAINER_MODE_TRUE
12328
12329
12330
12331
12332if false; then
12333 GENINSRC_NEVER_TRUE=
12334 GENINSRC_NEVER_FALSE='#'
12335else
12336 GENINSRC_NEVER_TRUE='#'
12337 GENINSRC_NEVER_FALSE=
20e95c23 12338fi
9b2b7d69
MM
12339
12340
12341
12342
12343
13b2be9c
DJ
12344
12345
12346
12347
12348
12349
12350
40fb9820
L
12351
12352for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
d6d788bd 12353do
13b2be9c
DJ
12354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12355if eval "test \"\${$as_ac_Header+set}\" = set"; then
12356 echo "$as_me:$LINENO: checking for $ac_header" >&5
12357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12358if eval "test \"\${$as_ac_Header+set}\" = set"; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360fi
12361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12363else
12364 # Is the header compilable?
12365echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12367cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373$ac_includes_default
12374#include <$ac_header>
12375_ACEOF
12376rm -f conftest.$ac_objext
12377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12378 (eval $ac_compile) 2>conftest.er1
13b2be9c 12379 ac_status=$?
ab509236
L
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
13b2be9c
DJ
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
1ad12f97
NC
12385 { ac_try='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
ab509236
L
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_header_compiler=yes
12399else
12400 echo "$as_me: failed program was:" >&5
12401sed 's/^/| /' conftest.$ac_ext >&5
12402
12403ac_header_compiler=no
12404fi
ab509236 12405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
12406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12407echo "${ECHO_T}$ac_header_compiler" >&6
12408
12409# Is the header present?
12410echo "$as_me:$LINENO: checking $ac_header presence" >&5
12411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12412cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12413/* confdefs.h. */
12414_ACEOF
12415cat confdefs.h >>conftest.$ac_ext
12416cat >>conftest.$ac_ext <<_ACEOF
12417/* end confdefs.h. */
12418#include <$ac_header>
12419_ACEOF
12420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null; then
12428 if test -s conftest.err; then
12429 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 12430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
12431 else
12432 ac_cpp_err=
12433 fi
9b2b7d69 12434else
13b2be9c
DJ
12435 ac_cpp_err=yes
12436fi
12437if test -z "$ac_cpp_err"; then
12438 ac_header_preproc=yes
12439else
12440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_header_preproc=no
12444fi
12445rm -f conftest.err conftest.$ac_ext
12446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12447echo "${ECHO_T}$ac_header_preproc" >&6
12448
12449# So? What about this header?
ab509236
L
12450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12451 yes:no: )
13b2be9c
DJ
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12456 ac_header_preproc=yes
13b2be9c 12457 ;;
ab509236 12458 no:yes:* )
13b2be9c
DJ
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
12469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
12471 (
12472 cat <<\_ASBOX
ab509236
L
12473## ------------------------------------------ ##
12474## Report this to the AC_PACKAGE_NAME lists. ##
12475## ------------------------------------------ ##
13b2be9c
DJ
12476_ASBOX
12477 ) |
12478 sed "s/^/$as_me: WARNING: /" >&2
12479 ;;
12480esac
12481echo "$as_me:$LINENO: checking for $ac_header" >&5
12482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485else
ab509236 12486 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 12487fi
13b2be9c
DJ
12488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12490
252b5132 12491fi
13b2be9c
DJ
12492if test `eval echo '${'$as_ac_Header'}'` = yes; then
12493 cat >>confdefs.h <<_ACEOF
12494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12495_ACEOF
12496
252b5132 12497fi
13b2be9c 12498
252b5132
RH
12499done
12500
d6d788bd 12501
252b5132
RH
12502# Put this here so that autoconf's "cross-compiling" message doesn't confuse
12503# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
12504echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12505echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
12506if test "${host}" = "${target}"; then
12507 cross_gas=no
12508else
12509 cross_gas=yes
13b2be9c
DJ
12510
12511cat >>confdefs.h <<\_ACEOF
252b5132 12512#define CROSS_COMPILE 1
13b2be9c 12513_ACEOF
252b5132
RH
12514
12515fi
13b2be9c
DJ
12516echo "$as_me:$LINENO: result: $cross_gas" >&5
12517echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
12518
12519# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12520# for constant arguments. Useless!
13b2be9c
DJ
12521echo "$as_me:$LINENO: checking for working alloca.h" >&5
12522echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12523if test "${ac_cv_working_alloca_h+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525else
12526 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12527/* confdefs.h. */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
12531/* end confdefs.h. */
252b5132 12532#include <alloca.h>
13b2be9c
DJ
12533int
12534main ()
12535{
12536char *p = (char *) alloca (2 * sizeof (int));
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext conftest$ac_exeext
12542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12543 (eval $ac_link) 2>conftest.er1
13b2be9c 12544 ac_status=$?
ab509236
L
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
13b2be9c
DJ
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
1ad12f97
NC
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
ab509236
L
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_working_alloca_h=yes
12564else
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568ac_cv_working_alloca_h=no
12569fi
ab509236
L
12570rm -f conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12572fi
12573echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12574echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12575if test $ac_cv_working_alloca_h = yes; then
12576
12577cat >>confdefs.h <<\_ACEOF
252b5132 12578#define HAVE_ALLOCA_H 1
13b2be9c 12579_ACEOF
252b5132
RH
12580
12581fi
12582
13b2be9c
DJ
12583echo "$as_me:$LINENO: checking for alloca" >&5
12584echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12585if test "${ac_cv_func_alloca_works+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12587else
13b2be9c 12588 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12589/* confdefs.h. */
12590_ACEOF
12591cat confdefs.h >>conftest.$ac_ext
12592cat >>conftest.$ac_ext <<_ACEOF
12593/* end confdefs.h. */
252b5132
RH
12594#ifdef __GNUC__
12595# define alloca __builtin_alloca
12596#else
12597# ifdef _MSC_VER
12598# include <malloc.h>
12599# define alloca _alloca
12600# else
12601# if HAVE_ALLOCA_H
12602# include <alloca.h>
12603# else
12604# ifdef _AIX
12605 #pragma alloca
12606# else
12607# ifndef alloca /* predefined by HP cc +Olibcalls */
12608char *alloca ();
12609# endif
12610# endif
12611# endif
12612# endif
12613#endif
12614
13b2be9c
DJ
12615int
12616main ()
12617{
12618char *p = (char *) alloca (1);
12619 ;
12620 return 0;
12621}
12622_ACEOF
12623rm -f conftest.$ac_objext conftest$ac_exeext
12624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12625 (eval $ac_link) 2>conftest.er1
13b2be9c 12626 ac_status=$?
ab509236
L
12627 grep -v '^ *+' conftest.er1 >conftest.err
12628 rm -f conftest.er1
12629 cat conftest.err >&5
13b2be9c
DJ
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
1ad12f97
NC
12632 { ac_try='test -z "$ac_c_werror_flag"
12633 || test ! -s conftest.err'
ab509236
L
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
252b5132
RH
12645 ac_cv_func_alloca_works=yes
12646else
13b2be9c
DJ
12647 echo "$as_me: failed program was:" >&5
12648sed 's/^/| /' conftest.$ac_ext >&5
12649
12650ac_cv_func_alloca_works=no
252b5132 12651fi
ab509236
L
12652rm -f conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
252b5132 12654fi
13b2be9c
DJ
12655echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12656echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 12657
252b5132 12658if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 12659
13b2be9c
DJ
12660cat >>confdefs.h <<\_ACEOF
12661#define HAVE_ALLOCA 1
12662_ACEOF
9b2b7d69 12663
13b2be9c 12664else
c8615825 12665 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
12666# that cause trouble. Some versions do not even contain alloca or
12667# contain a buggy version. If you still want to use their alloca,
12668# use ar to extract alloca.o from them instead of compiling alloca.c.
12669
12670ALLOCA=alloca.$ac_objext
12671
12672cat >>confdefs.h <<\_ACEOF
252b5132 12673#define C_ALLOCA 1
13b2be9c 12674_ACEOF
252b5132 12675
d6d788bd 12676
13b2be9c
DJ
12677echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12678echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12679if test "${ac_cv_os_cray+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12681else
13b2be9c 12682 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12683/* confdefs.h. */
12684_ACEOF
12685cat confdefs.h >>conftest.$ac_ext
12686cat >>conftest.$ac_ext <<_ACEOF
12687/* end confdefs.h. */
252b5132
RH
12688#if defined(CRAY) && ! defined(CRAY2)
12689webecray
12690#else
12691wenotbecray
12692#endif
12693
13b2be9c 12694_ACEOF
252b5132 12695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 12696 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
12697 ac_cv_os_cray=yes
12698else
252b5132
RH
12699 ac_cv_os_cray=no
12700fi
12701rm -f conftest*
12702
12703fi
13b2be9c
DJ
12704echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12705echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 12706if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
12707 for ac_func in _getb67 GETB67 getb67; do
12708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12709echo "$as_me:$LINENO: checking for $ac_func" >&5
12710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12711if eval "test \"\${$as_ac_var+set}\" = set"; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713else
12714 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
ab509236
L
12720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12722#define $ac_func innocuous_$ac_func
12723
252b5132 12724/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12725 which can conflict with char $ac_func (); below.
12726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 <limits.h> exists even on freestanding compilers. */
ab509236 12728
13b2be9c
DJ
12729#ifdef __STDC__
12730# include <limits.h>
12731#else
12732# include <assert.h>
12733#endif
ab509236
L
12734
12735#undef $ac_func
12736
252b5132 12737/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12738#ifdef __cplusplus
12739extern "C"
12740{
12741#endif
252b5132 12742/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12743 builtin and then its argument prototype would still apply. */
12744char $ac_func ();
252b5132
RH
12745/* The GNU C library defines this for functions which it implements
12746 to always fail with ENOSYS. Some functions are actually named
12747 something starting with __ and the normal name is an alias. */
12748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12749choke me
12750#else
13b2be9c
DJ
12751char (*f) () = $ac_func;
12752#endif
12753#ifdef __cplusplus
12754}
252b5132
RH
12755#endif
12756
13b2be9c
DJ
12757int
12758main ()
12759{
12760return f != $ac_func;
12761 ;
12762 return 0;
12763}
12764_ACEOF
12765rm -f conftest.$ac_objext conftest$ac_exeext
12766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12767 (eval $ac_link) 2>conftest.er1
13b2be9c 12768 ac_status=$?
ab509236
L
12769 grep -v '^ *+' conftest.er1 >conftest.err
12770 rm -f conftest.er1
12771 cat conftest.err >&5
13b2be9c
DJ
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
1ad12f97
NC
12774 { ac_try='test -z "$ac_c_werror_flag"
12775 || test ! -s conftest.err'
ab509236
L
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 eval "$as_ac_var=yes"
12788else
12789 echo "$as_me: failed program was:" >&5
12790sed 's/^/| /' conftest.$ac_ext >&5
12791
12792eval "$as_ac_var=no"
12793fi
ab509236
L
12794rm -f conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12796fi
12797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12799if test `eval echo '${'$as_ac_var'}'` = yes; then
12800
12801cat >>confdefs.h <<_ACEOF
252b5132 12802#define CRAY_STACKSEG_END $ac_func
13b2be9c 12803_ACEOF
252b5132 12804
13b2be9c 12805 break
252b5132
RH
12806fi
12807
13b2be9c 12808 done
252b5132
RH
12809fi
12810
13b2be9c
DJ
12811echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12812echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12813if test "${ac_cv_c_stack_direction+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12815else
12816 if test "$cross_compiling" = yes; then
12817 ac_cv_c_stack_direction=0
12818else
13b2be9c 12819 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12820/* confdefs.h. */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h. */
12825int
252b5132
RH
12826find_stack_direction ()
12827{
12828 static char *addr = 0;
12829 auto char dummy;
12830 if (addr == 0)
12831 {
12832 addr = &dummy;
12833 return find_stack_direction ();
12834 }
12835 else
12836 return (&dummy > addr) ? 1 : -1;
12837}
13b2be9c
DJ
12838
12839int
252b5132
RH
12840main ()
12841{
13b2be9c 12842 exit (find_stack_direction () < 0);
252b5132 12843}
13b2be9c
DJ
12844_ACEOF
12845rm -f conftest$ac_exeext
12846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
252b5132
RH
12856 ac_cv_c_stack_direction=1
12857else
13b2be9c
DJ
12858 echo "$as_me: program exited with status $ac_status" >&5
12859echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
12861
12862( exit $ac_status )
12863ac_cv_c_stack_direction=-1
252b5132 12864fi
ab509236 12865rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 12866fi
252b5132 12867fi
13b2be9c
DJ
12868echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12869echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 12870
13b2be9c 12871cat >>confdefs.h <<_ACEOF
252b5132 12872#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
12873_ACEOF
12874
252b5132
RH
12875
12876fi
12877
13b2be9c
DJ
12878echo "$as_me:$LINENO: checking for inline" >&5
12879echo $ECHO_N "checking for inline... $ECHO_C" >&6
12880if test "${ac_cv_c_inline+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12882else
12883 ac_cv_c_inline=no
12884for ac_kw in inline __inline__ __inline; do
13b2be9c 12885 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12886/* confdefs.h. */
12887_ACEOF
12888cat confdefs.h >>conftest.$ac_ext
12889cat >>conftest.$ac_ext <<_ACEOF
12890/* end confdefs.h. */
12891#ifndef __cplusplus
12892typedef int foo_t;
12893static $ac_kw foo_t static_foo () {return 0; }
12894$ac_kw foo_t foo () {return 0; }
12895#endif
252b5132 12896
13b2be9c
DJ
12897_ACEOF
12898rm -f conftest.$ac_objext
12899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12900 (eval $ac_compile) 2>conftest.er1
13b2be9c 12901 ac_status=$?
ab509236
L
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
13b2be9c
DJ
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
1ad12f97
NC
12907 { ac_try='test -z "$ac_c_werror_flag"
12908 || test ! -s conftest.err'
ab509236
L
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
252b5132
RH
12920 ac_cv_c_inline=$ac_kw; break
12921else
13b2be9c
DJ
12922 echo "$as_me: failed program was:" >&5
12923sed 's/^/| /' conftest.$ac_ext >&5
12924
252b5132 12925fi
ab509236 12926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12927done
12928
12929fi
13b2be9c
DJ
12930echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12931echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
12932
12933
13b2be9c 12934case $ac_cv_c_inline in
252b5132 12935 inline | yes) ;;
ab509236
L
12936 *)
12937 case $ac_cv_c_inline in
12938 no) ac_val=;;
12939 *) ac_val=$ac_cv_c_inline;;
12940 esac
12941 cat >>confdefs.h <<_ACEOF
12942#ifndef __cplusplus
12943#define inline $ac_val
12944#endif
13b2be9c 12945_ACEOF
ab509236 12946 ;;
252b5132
RH
12947esac
12948
6840198f 12949
d6d788bd 12950# VMS doesn't have unlink.
13b2be9c
DJ
12951
12952
252b5132
RH
12953for ac_func in unlink remove
12954do
13b2be9c
DJ
12955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12956echo "$as_me:$LINENO: checking for $ac_func" >&5
12957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12958if eval "test \"\${$as_ac_var+set}\" = set"; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
12961 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12962/* confdefs.h. */
12963_ACEOF
12964cat confdefs.h >>conftest.$ac_ext
12965cat >>conftest.$ac_ext <<_ACEOF
12966/* end confdefs.h. */
ab509236
L
12967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12969#define $ac_func innocuous_$ac_func
12970
252b5132 12971/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12972 which can conflict with char $ac_func (); below.
12973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12974 <limits.h> exists even on freestanding compilers. */
ab509236 12975
13b2be9c
DJ
12976#ifdef __STDC__
12977# include <limits.h>
12978#else
12979# include <assert.h>
12980#endif
ab509236
L
12981
12982#undef $ac_func
12983
252b5132 12984/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12985#ifdef __cplusplus
12986extern "C"
12987{
12988#endif
252b5132 12989/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12990 builtin and then its argument prototype would still apply. */
12991char $ac_func ();
252b5132
RH
12992/* The GNU C library defines this for functions which it implements
12993 to always fail with ENOSYS. Some functions are actually named
12994 something starting with __ and the normal name is an alias. */
12995#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12996choke me
12997#else
13b2be9c
DJ
12998char (*f) () = $ac_func;
12999#endif
13000#ifdef __cplusplus
13001}
252b5132
RH
13002#endif
13003
13b2be9c
DJ
13004int
13005main ()
13006{
13007return f != $ac_func;
13008 ;
13009 return 0;
13010}
13011_ACEOF
13012rm -f conftest.$ac_objext conftest$ac_exeext
13013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13014 (eval $ac_link) 2>conftest.er1
13b2be9c 13015 ac_status=$?
ab509236
L
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
13b2be9c
DJ
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
1ad12f97
NC
13021 { ac_try='test -z "$ac_c_werror_flag"
13022 || test ! -s conftest.err'
ab509236
L
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; } &&
13028 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13034 eval "$as_ac_var=yes"
13035else
13036 echo "$as_me: failed program was:" >&5
13037sed 's/^/| /' conftest.$ac_ext >&5
13038
13039eval "$as_ac_var=no"
13040fi
ab509236
L
13041rm -f conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13043fi
13044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13046if test `eval echo '${'$as_ac_var'}'` = yes; then
13047 cat >>confdefs.h <<_ACEOF
13048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13049_ACEOF
252b5132 13050 break
252b5132
RH
13051fi
13052done
13053
6840198f 13054
d6d788bd 13055# Some systems don't have sbrk().
13b2be9c 13056
252b5132
RH
13057for ac_func in sbrk
13058do
13b2be9c
DJ
13059as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13060echo "$as_me:$LINENO: checking for $ac_func" >&5
13061echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13062if eval "test \"\${$as_ac_var+set}\" = set"; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064else
13065 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13066/* confdefs.h. */
13067_ACEOF
13068cat confdefs.h >>conftest.$ac_ext
13069cat >>conftest.$ac_ext <<_ACEOF
13070/* end confdefs.h. */
ab509236
L
13071/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13073#define $ac_func innocuous_$ac_func
13074
252b5132 13075/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
13076 which can conflict with char $ac_func (); below.
13077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13078 <limits.h> exists even on freestanding compilers. */
ab509236 13079
13b2be9c
DJ
13080#ifdef __STDC__
13081# include <limits.h>
13082#else
13083# include <assert.h>
13084#endif
ab509236
L
13085
13086#undef $ac_func
13087
252b5132 13088/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
13089#ifdef __cplusplus
13090extern "C"
13091{
13092#endif
252b5132 13093/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
13094 builtin and then its argument prototype would still apply. */
13095char $ac_func ();
252b5132
RH
13096/* The GNU C library defines this for functions which it implements
13097 to always fail with ENOSYS. Some functions are actually named
13098 something starting with __ and the normal name is an alias. */
13099#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13100choke me
13101#else
13b2be9c
DJ
13102char (*f) () = $ac_func;
13103#endif
13104#ifdef __cplusplus
13105}
252b5132
RH
13106#endif
13107
13b2be9c
DJ
13108int
13109main ()
13110{
13111return f != $ac_func;
13112 ;
13113 return 0;
13114}
13115_ACEOF
13116rm -f conftest.$ac_objext conftest$ac_exeext
13117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13118 (eval $ac_link) 2>conftest.er1
13b2be9c 13119 ac_status=$?
ab509236
L
13120 grep -v '^ *+' conftest.er1 >conftest.err
13121 rm -f conftest.er1
13122 cat conftest.err >&5
13b2be9c
DJ
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } &&
1ad12f97
NC
13125 { ac_try='test -z "$ac_c_werror_flag"
13126 || test ! -s conftest.err'
ab509236
L
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; } &&
13132 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 eval "$as_ac_var=yes"
13139else
13140 echo "$as_me: failed program was:" >&5
13141sed 's/^/| /' conftest.$ac_ext >&5
13142
13143eval "$as_ac_var=no"
13144fi
ab509236
L
13145rm -f conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13147fi
13148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13149echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13150if test `eval echo '${'$as_ac_var'}'` = yes; then
13151 cat >>confdefs.h <<_ACEOF
13152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13153_ACEOF
252b5132 13154
252b5132
RH
13155fi
13156done
13157
d6d788bd 13158
39bec121
TW
13159# do we need the math library?
13160case "${need_libm}" in
13b2be9c 13161yes)
39bec121 13162 LIBM=
f9c19112 13163case $host in
d70c5fc7 13164*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
d7040cdb 13165 # These system don't have libm, or don't need it
39bec121
TW
13166 ;;
13167*-ncr-sysv4.3*)
13b2be9c
DJ
13168 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
13169echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
13170if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13172else
13b2be9c 13173 ac_check_lib_save_LIBS=$LIBS
39bec121 13174LIBS="-lmw $LIBS"
13b2be9c 13175cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
13181
39bec121 13182/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
13183#ifdef __cplusplus
13184extern "C"
13185#endif
39bec121 13186/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
13187 builtin and then its argument prototype would still apply. */
13188char _mwvalidcheckl ();
13189int
13190main ()
13191{
13192_mwvalidcheckl ();
13193 ;
13194 return 0;
13195}
13196_ACEOF
13197rm -f conftest.$ac_objext conftest$ac_exeext
13198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13199 (eval $ac_link) 2>conftest.er1
13b2be9c 13200 ac_status=$?
ab509236
L
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13b2be9c
DJ
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
1ad12f97
NC
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
ab509236
L
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_cv_lib_mw__mwvalidcheckl=yes
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
13224ac_cv_lib_mw__mwvalidcheckl=no
13225fi
ab509236
L
13226rm -f conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13228LIBS=$ac_check_lib_save_LIBS
13229fi
13230echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13231echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
13232if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 13233 LIBM="-lmw"
39bec121
TW
13234fi
13235
d7040cdb
SE
13236 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13237echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13238if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 13239 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13240else
13b2be9c 13241 ac_check_lib_save_LIBS=$LIBS
39bec121 13242LIBS="-lm $LIBS"
13b2be9c 13243cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13244/* confdefs.h. */
13245_ACEOF
13246cat confdefs.h >>conftest.$ac_ext
13247cat >>conftest.$ac_ext <<_ACEOF
13248/* end confdefs.h. */
39bec121 13249
d7040cdb
SE
13250/* Override any gcc2 internal prototype to avoid an error. */
13251#ifdef __cplusplus
13252extern "C"
13253#endif
13254/* We use char because int might match the return type of a gcc2
13255 builtin and then its argument prototype would still apply. */
13256char cos ();
13b2be9c
DJ
13257int
13258main ()
13259{
d7040cdb 13260cos ();
13b2be9c
DJ
13261 ;
13262 return 0;
13263}
13264_ACEOF
13265rm -f conftest.$ac_objext conftest$ac_exeext
13266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13267 (eval $ac_link) 2>conftest.er1
13b2be9c 13268 ac_status=$?
ab509236
L
13269 grep -v '^ *+' conftest.er1 >conftest.err
13270 rm -f conftest.er1
13271 cat conftest.err >&5
13b2be9c
DJ
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
1ad12f97
NC
13274 { ac_try='test -z "$ac_c_werror_flag"
13275 || test ! -s conftest.err'
ab509236
L
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
d7040cdb 13287 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
d7040cdb 13292ac_cv_lib_m_cos=no
13b2be9c 13293fi
ab509236
L
13294rm -f conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13296LIBS=$ac_check_lib_save_LIBS
13297fi
d7040cdb
SE
13298echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13299echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13300if test $ac_cv_lib_m_cos = yes; then
39bec121 13301 LIBM="$LIBM -lm"
39bec121
TW
13302fi
13303
13304 ;;
13305*)
d7040cdb
SE
13306 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13307echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13308if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 13309 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13310else
13b2be9c 13311 ac_check_lib_save_LIBS=$LIBS
39bec121 13312LIBS="-lm $LIBS"
13b2be9c 13313cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13314/* confdefs.h. */
13315_ACEOF
13316cat confdefs.h >>conftest.$ac_ext
13317cat >>conftest.$ac_ext <<_ACEOF
13318/* end confdefs.h. */
39bec121 13319
d7040cdb
SE
13320/* Override any gcc2 internal prototype to avoid an error. */
13321#ifdef __cplusplus
13322extern "C"
13323#endif
13324/* We use char because int might match the return type of a gcc2
13325 builtin and then its argument prototype would still apply. */
13326char cos ();
13b2be9c
DJ
13327int
13328main ()
13329{
d7040cdb 13330cos ();
13b2be9c
DJ
13331 ;
13332 return 0;
13333}
13334_ACEOF
13335rm -f conftest.$ac_objext conftest$ac_exeext
13336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13337 (eval $ac_link) 2>conftest.er1
13b2be9c 13338 ac_status=$?
ab509236
L
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13b2be9c
DJ
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
1ad12f97
NC
13344 { ac_try='test -z "$ac_c_werror_flag"
13345 || test ! -s conftest.err'
ab509236
L
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
d7040cdb 13357 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13358else
13359 echo "$as_me: failed program was:" >&5
13360sed 's/^/| /' conftest.$ac_ext >&5
13361
d7040cdb 13362ac_cv_lib_m_cos=no
13b2be9c 13363fi
ab509236
L
13364rm -f conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13366LIBS=$ac_check_lib_save_LIBS
13367fi
d7040cdb
SE
13368echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13369echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13370if test $ac_cv_lib_m_cos = yes; then
39bec121 13371 LIBM="-lm"
39bec121
TW
13372fi
13373
13374 ;;
13375esac
13376
13b2be9c 13377
d7040cdb 13378
39bec121
TW
13379 ;;
13380esac
13381
252b5132
RH
13382# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13383# enough, but on some of those systems, the assert macro relies on requoting
13384# working properly!
13b2be9c
DJ
13385echo "$as_me:$LINENO: checking for working assert macro" >&5
13386echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13387if test "${gas_cv_assert_ok+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389else
13390 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13391/* confdefs.h. */
13392_ACEOF
13393cat confdefs.h >>conftest.$ac_ext
13394cat >>conftest.$ac_ext <<_ACEOF
13395/* end confdefs.h. */
252b5132
RH
13396#include <assert.h>
13397#include <stdio.h>
13b2be9c
DJ
13398int
13399main ()
13400{
252b5132
RH
13401
13402/* check for requoting problems */
13403static int a, b, c, d;
13404static char *s;
13405assert (!strcmp(s, "foo bar baz quux"));
13406/* check for newline handling */
13407assert (a == b
13408 || c == d);
13409
13b2be9c
DJ
13410 ;
13411 return 0;
13412}
13413_ACEOF
13414rm -f conftest.$ac_objext conftest$ac_exeext
13415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13416 (eval $ac_link) 2>conftest.er1
13b2be9c 13417 ac_status=$?
ab509236
L
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13b2be9c
DJ
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
1ad12f97
NC
13423 { ac_try='test -z "$ac_c_werror_flag"
13424 || test ! -s conftest.err'
ab509236
L
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
252b5132
RH
13436 gas_cv_assert_ok=yes
13437else
13b2be9c
DJ
13438 echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441gas_cv_assert_ok=no
252b5132 13442fi
ab509236
L
13443rm -f conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
252b5132 13445fi
13b2be9c
DJ
13446echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13447echo "${ECHO_T}$gas_cv_assert_ok" >&6
13448test $gas_cv_assert_ok = yes ||
13449cat >>confdefs.h <<\_ACEOF
252b5132 13450#define BROKEN_ASSERT 1
13b2be9c 13451_ACEOF
252b5132 13452
d6d788bd
L
13453
13454
252b5132
RH
13455# On some systems, the system header files may not declare malloc, realloc,
13456# and free. There are places where gas needs these functions to have been
13457# declared -- such as when taking their addresses.
13458gas_test_headers="
13459#ifdef HAVE_MEMORY_H
13460#include <memory.h>
13461#endif
13462#ifdef HAVE_STRING_H
13463#include <string.h>
13464#else
13465#ifdef HAVE_STRINGS_H
13466#include <strings.h>
13467#endif
13468#endif
13469#ifdef HAVE_STDLIB_H
13470#include <stdlib.h>
13471#endif
13472#ifdef HAVE_UNISTD_H
13473#include <unistd.h>
13474#endif
13475"
13476
e8a38df5
AL
13477# Does errno.h declare errno, or do we have to add a separate declaration
13478# for it?
13479
13480echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13481echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13482if test "${gas_cv_decl_needed_errno+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13484else
13485 cat >conftest.$ac_ext <<_ACEOF
13486/* confdefs.h. */
13487_ACEOF
13488cat confdefs.h >>conftest.$ac_ext
13489cat >>conftest.$ac_ext <<_ACEOF
13490/* end confdefs.h. */
13491
13492#ifdef HAVE_ERRNO_H
13493#include <errno.h>
13494#endif
13495
13496int
13497main ()
13498{
13499
13500typedef int f;
13501f x;
13502x = (f) errno;
13503
13504 ;
13505 return 0;
13506}
13507_ACEOF
13508rm -f conftest.$ac_objext conftest$ac_exeext
13509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510 (eval $ac_link) 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag"
13518 || test ! -s conftest.err'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } &&
13524 { ac_try='test -s conftest$ac_exeext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 gas_cv_decl_needed_errno=no
13531else
13532 echo "$as_me: failed program was:" >&5
13533sed 's/^/| /' conftest.$ac_ext >&5
13534
13535gas_cv_decl_needed_errno=yes
13536fi
13537rm -f conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13539fi
13540echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13541echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13542if test $gas_cv_decl_needed_errno = yes; then
13543
13544cat >>confdefs.h <<\_ACEOF
13545#define NEED_DECLARATION_ERRNO 1
13546_ACEOF
13547
13548fi
13549
13550
56f36663
NC
13551echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13552echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13553if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13554 echo $ECHO_N "(cached) $ECHO_C" >&6
13555else
13556 cat >conftest.$ac_ext <<_ACEOF
13557/* confdefs.h. */
13558_ACEOF
13559cat confdefs.h >>conftest.$ac_ext
13560cat >>conftest.$ac_ext <<_ACEOF
13561/* end confdefs.h. */
13562#include <unistd.h>
13563int
13564main ()
13565{
13566extern int getopt (int, char *const*, const char *);
13567 ;
13568 return 0;
13569}
13570_ACEOF
13571rm -f conftest.$ac_objext
13572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13573 (eval $ac_compile) 2>conftest.er1
13574 ac_status=$?
13575 grep -v '^ *+' conftest.er1 >conftest.err
13576 rm -f conftest.er1
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag"
13581 || test ! -s conftest.err'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; } &&
13587 { ac_try='test -s conftest.$ac_objext'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 gas_cv_decl_getopt_unistd_h=yes
13594else
13595 echo "$as_me: failed program was:" >&5
13596sed 's/^/| /' conftest.$ac_ext >&5
13597
13598gas_cv_decl_getopt_unistd_h=no
13599fi
13600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13601fi
13602
13603echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13604echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13605if test $gas_cv_decl_getopt_unistd_h = yes; then
13606
13607cat >>confdefs.h <<\_ACEOF
13608#define HAVE_DECL_GETOPT 1
13609_ACEOF
13610
13611fi
13612
e8a38df5
AL
13613
13614echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13615echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13616if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618else
13619 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13620/* confdefs.h. */
13621_ACEOF
13622cat confdefs.h >>conftest.$ac_ext
13623cat >>conftest.$ac_ext <<_ACEOF
13624/* end confdefs.h. */
252b5132 13625$gas_test_headers
13b2be9c
DJ
13626int
13627main ()
13628{
252b5132 13629
e8a38df5 13630typedef char **f;
252b5132 13631f x;
e8a38df5 13632x = (f) environ;
252b5132 13633
13b2be9c
DJ
13634 ;
13635 return 0;
13636}
13637_ACEOF
13638rm -f conftest.$ac_objext conftest$ac_exeext
13639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13640 (eval $ac_link) 2>conftest.er1
13b2be9c 13641 ac_status=$?
ab509236
L
13642 grep -v '^ *+' conftest.er1 >conftest.err
13643 rm -f conftest.er1
13644 cat conftest.err >&5
13b2be9c
DJ
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
1ad12f97
NC
13647 { ac_try='test -z "$ac_c_werror_flag"
13648 || test ! -s conftest.err'
ab509236
L
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
e8a38df5 13660 gas_cv_decl_needed_environ=no
252b5132 13661else
13b2be9c
DJ
13662 echo "$as_me: failed program was:" >&5
13663sed 's/^/| /' conftest.$ac_ext >&5
13664
e8a38df5 13665gas_cv_decl_needed_environ=yes
252b5132 13666fi
ab509236
L
13667rm -f conftest.err conftest.$ac_objext \
13668 conftest$ac_exeext conftest.$ac_ext
252b5132 13669fi
e8a38df5
AL
13670echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13671echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13672if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
13673
13674cat >>confdefs.h <<\_ACEOF
e8a38df5 13675#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
13676_ACEOF
13677
13678fi
13679
13680
e8a38df5
AL
13681echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13682echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13683if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685else
13686 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13687/* confdefs.h. */
13688_ACEOF
13689cat confdefs.h >>conftest.$ac_ext
13690cat >>conftest.$ac_ext <<_ACEOF
13691/* end confdefs.h. */
13692$gas_test_headers
13693int
13694main ()
13695{
13696
e8a38df5 13697typedef int (*f)(int);
13b2be9c 13698f x;
e8a38df5 13699x = (f) ffs;
13b2be9c
DJ
13700
13701 ;
13702 return 0;
13703}
13704_ACEOF
13705rm -f conftest.$ac_objext conftest$ac_exeext
13706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13707 (eval $ac_link) 2>conftest.er1
13b2be9c 13708 ac_status=$?
ab509236
L
13709 grep -v '^ *+' conftest.er1 >conftest.err
13710 rm -f conftest.er1
13711 cat conftest.err >&5
13b2be9c
DJ
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
1ad12f97
NC
13714 { ac_try='test -z "$ac_c_werror_flag"
13715 || test ! -s conftest.err'
ab509236
L
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
e8a38df5 13727 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
13728else
13729 echo "$as_me: failed program was:" >&5
13730sed 's/^/| /' conftest.$ac_ext >&5
13731
e8a38df5 13732gas_cv_decl_needed_ffs=yes
13b2be9c 13733fi
ab509236
L
13734rm -f conftest.err conftest.$ac_objext \
13735 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13736fi
e8a38df5
AL
13737echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13738echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13739if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
13740
13741cat >>confdefs.h <<\_ACEOF
e8a38df5 13742#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
13743_ACEOF
13744
13745fi
13746
13747
13748echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13749echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13750if test "${gas_cv_decl_needed_free+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
13753 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13754/* confdefs.h. */
13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
13758/* end confdefs.h. */
13759$gas_test_headers
13760int
13761main ()
13762{
13763
13764typedef void (*f)();
13765f x;
13766x = (f) free;
13767
13768 ;
13769 return 0;
13770}
13771_ACEOF
13772rm -f conftest.$ac_objext conftest$ac_exeext
13773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13774 (eval $ac_link) 2>conftest.er1
13b2be9c 13775 ac_status=$?
ab509236
L
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13b2be9c
DJ
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
1ad12f97
NC
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
ab509236
L
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 gas_cv_decl_needed_free=no
13795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799gas_cv_decl_needed_free=yes
13800fi
ab509236
L
13801rm -f conftest.err conftest.$ac_objext \
13802 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13803fi
13804echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13805echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13806if test $gas_cv_decl_needed_free = yes; then
13807
13808cat >>confdefs.h <<\_ACEOF
13809#define NEED_DECLARATION_FREE 1
13810_ACEOF
13811
13812fi
13813
13814
e8a38df5
AL
13815echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13816echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13817if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819else
13820 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13821/* confdefs.h. */
13822_ACEOF
13823cat confdefs.h >>conftest.$ac_ext
13824cat >>conftest.$ac_ext <<_ACEOF
13825/* end confdefs.h. */
13826$gas_test_headers
13827int
13828main ()
13829{
13830
13831typedef char *(*f)();
13832f x;
e8a38df5 13833x = (f) malloc;
13b2be9c
DJ
13834
13835 ;
13836 return 0;
13837}
13838_ACEOF
13839rm -f conftest.$ac_objext conftest$ac_exeext
13840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13841 (eval $ac_link) 2>conftest.er1
13b2be9c 13842 ac_status=$?
ab509236
L
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13b2be9c
DJ
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
1ad12f97
NC
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
ab509236
L
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
e8a38df5 13861 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
e8a38df5 13866gas_cv_decl_needed_malloc=yes
13b2be9c 13867fi
ab509236
L
13868rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13870fi
e8a38df5
AL
13871echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13872echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13873if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
13874
13875cat >>confdefs.h <<\_ACEOF
e8a38df5 13876#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
13877_ACEOF
13878
13879fi
13880
13881
e8a38df5
AL
13882echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13883echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13884if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886else
13887 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13888/* confdefs.h. */
13889_ACEOF
13890cat confdefs.h >>conftest.$ac_ext
13891cat >>conftest.$ac_ext <<_ACEOF
13892/* end confdefs.h. */
13893$gas_test_headers
13894int
13895main ()
13896{
13897
e8a38df5 13898typedef char *(*f)();
13b2be9c 13899f x;
e8a38df5 13900x = (f) sbrk;
13b2be9c
DJ
13901
13902 ;
13903 return 0;
13904}
13905_ACEOF
13906rm -f conftest.$ac_objext conftest$ac_exeext
13907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13908 (eval $ac_link) 2>conftest.er1
13b2be9c 13909 ac_status=$?
ab509236
L
13910 grep -v '^ *+' conftest.er1 >conftest.err
13911 rm -f conftest.er1
13912 cat conftest.err >&5
13b2be9c
DJ
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
1ad12f97
NC
13915 { ac_try='test -z "$ac_c_werror_flag"
13916 || test ! -s conftest.err'
ab509236
L
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; } &&
13922 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
e8a38df5 13928 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
13929else
13930 echo "$as_me: failed program was:" >&5
13931sed 's/^/| /' conftest.$ac_ext >&5
13932
e8a38df5 13933gas_cv_decl_needed_sbrk=yes
13b2be9c 13934fi
ab509236
L
13935rm -f conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13937fi
e8a38df5
AL
13938echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13939echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13940if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
13941
13942cat >>confdefs.h <<\_ACEOF
e8a38df5 13943#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
13944_ACEOF
13945
13946fi
13947
13948
e8a38df5
AL
13949echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13950echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13951if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953else
13954 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
e8a38df5 13960$gas_test_headers
13b2be9c
DJ
13961int
13962main ()
13963{
13964
e8a38df5 13965typedef char *(*f)();
13b2be9c 13966f x;
e8a38df5 13967x = (f) strstr;
13b2be9c
DJ
13968
13969 ;
13970 return 0;
13971}
13972_ACEOF
13973rm -f conftest.$ac_objext conftest$ac_exeext
13974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13975 (eval $ac_link) 2>conftest.er1
13b2be9c 13976 ac_status=$?
ab509236
L
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13b2be9c
DJ
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } &&
1ad12f97
NC
13982 { ac_try='test -z "$ac_c_werror_flag"
13983 || test ! -s conftest.err'
ab509236
L
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
e8a38df5 13995 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
13996else
13997 echo "$as_me: failed program was:" >&5
13998sed 's/^/| /' conftest.$ac_ext >&5
13999
e8a38df5 14000gas_cv_decl_needed_strstr=yes
13b2be9c 14001fi
ab509236
L
14002rm -f conftest.err conftest.$ac_objext \
14003 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14004fi
e8a38df5
AL
14005echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
14006echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
14007if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
14008
14009cat >>confdefs.h <<\_ACEOF
e8a38df5 14010#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
14011_ACEOF
14012
14013fi
14014
14015
6d74f28b
EB
14016echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14017echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14018if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020else
14021 cat >conftest.$ac_ext <<_ACEOF
14022/* confdefs.h. */
14023_ACEOF
14024cat confdefs.h >>conftest.$ac_ext
14025cat >>conftest.$ac_ext <<_ACEOF
14026/* end confdefs.h. */
14027$ac_includes_default
14028int
14029main ()
14030{
14031#ifndef vsnprintf
14032 char *p = (char *) vsnprintf;
14033#endif
14034
14035 ;
14036 return 0;
14037}
14038_ACEOF
14039rm -f conftest.$ac_objext
14040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>conftest.er1
14042 ac_status=$?
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest.$ac_objext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_have_decl_vsnprintf=yes
14062else
14063 echo "$as_me: failed program was:" >&5
14064sed 's/^/| /' conftest.$ac_ext >&5
14065
14066ac_cv_have_decl_vsnprintf=no
14067fi
14068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14069fi
14070echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14071echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14072if test $ac_cv_have_decl_vsnprintf = yes; then
14073
14074cat >>confdefs.h <<_ACEOF
14075#define HAVE_DECL_VSNPRINTF 1
14076_ACEOF
14077
14078
14079else
14080 cat >>confdefs.h <<_ACEOF
14081#define HAVE_DECL_VSNPRINTF 0
14082_ACEOF
14083
14084
14085fi
14086
14087
14088
13b2be9c 14089
c973bc5c
NC
14090case "${host}" in
14091*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14092
14093cat >>confdefs.h <<\_ACEOF
14094#define USE_BINARY_FOPEN 1
14095_ACEOF
14096 ;;
14097esac
14098
14099
13b2be9c 14100
108a6f8e
CD
14101
14102
14103
14104
13b2be9c
DJ
14105 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14106
14107 ac_config_commands="$ac_config_commands default"
14108
14109
14110cat >confcache <<\_ACEOF
14111# This file is a shell script that caches the results of configure
14112# tests run on this system so they can be shared between configure
14113# scripts and configure runs, see configure's option --config-cache.
14114# It is not useful on other systems. If it contains results you don't
14115# want to keep, you may remove or edit it.
14116#
14117# config.status only pays attention to the cache file if you give it
14118# the --recheck option to rerun configure.
14119#
14120# `ac_cv_env_foo' variables (set or unset) will be overridden when
14121# loading this file, other *unset* `ac_cv_foo' will be assigned the
14122# following values.
14123
14124_ACEOF
14125
14126# The following way of writing the cache mishandles newlines in values,
14127# but we know of no workaround that is simple, portable, and efficient.
14128# So, don't put newlines in cache variables' values.
14129# Ultrix sh set writes to stderr and can't be redirected directly,
14130# and sets the high bit in the cache file unless we assign to the vars.
14131{
14132 (set) 2>&1 |
14133 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14134 *ac_space=\ *)
14135 # `set' does not quote correctly, so add quotes (double-quote
14136 # substitution turns \\\\ into \\, and sed turns \\ into \).
14137 sed -n \
ab509236
L
14138 "s/'/'\\\\''/g;
14139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
14140 ;;
14141 *)
14142 # `set' quotes correctly as required by POSIX, so do not add quotes.
14143 sed -n \
ab509236 14144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
14145 ;;
14146 esac;
14147} |
14148 sed '
14149 t clear
14150 : clear
14151 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14152 t end
14153 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14154 : end' >>confcache
14155if diff $cache_file confcache >/dev/null 2>&1; then :; else
14156 if test -w $cache_file; then
14157 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14158 cat confcache >$cache_file
14159 else
14160 echo "not updating unwritable cache $cache_file"
14161 fi
14162fi
14163rm -f confcache
14164
14165test "x$prefix" = xNONE && prefix=$ac_default_prefix
14166# Let make expand exec_prefix.
14167test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14168
14169# VPATH may cause trouble with some makes, so we remove $(srcdir),
14170# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14171# trailing colons and then remove the whole line if VPATH becomes empty
14172# (actually we leave an empty line to preserve line numbers).
14173if test "x$srcdir" = x.; then
ab509236 14174 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
14175s/:*\$(srcdir):*/:/;
14176s/:*\${srcdir}:*/:/;
14177s/:*@srcdir@:*/:/;
ab509236 14178s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 14179s/:*$//;
ab509236 14180s/^[^=]*=[ ]*$//;
13b2be9c
DJ
14181}'
14182fi
14183
14184DEFS=-DHAVE_CONFIG_H
14185
14186ac_libobjs=
14187ac_ltlibobjs=
14188for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14189 # 1. Remove the extension, and $U if already installed.
14190 ac_i=`echo "$ac_i" |
ab509236 14191 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
14192 # 2. Add them.
14193 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14194 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14195done
14196LIBOBJS=$ac_libobjs
14197
14198LTLIBOBJS=$ac_ltlibobjs
14199
14200
14201if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14202 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14203Usually this means the macro was only invoked conditionally." >&5
14204echo "$as_me: error: conditional \"AMDEP\" was never defined.
14205Usually this means the macro was only invoked conditionally." >&2;}
14206 { (exit 1); exit 1; }; }
14207fi
14208if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14209 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14210Usually this means the macro was only invoked conditionally." >&5
14211echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14212Usually this means the macro was only invoked conditionally." >&2;}
14213 { (exit 1); exit 1; }; }
14214fi
14215if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14216 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14217Usually this means the macro was only invoked conditionally." >&5
14218echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14219Usually this means the macro was only invoked conditionally." >&2;}
14220 { (exit 1); exit 1; }; }
14221fi
d5fbea21
DJ
14222if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14223 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14224Usually this means the macro was only invoked conditionally." >&5
14225echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14226Usually this means the macro was only invoked conditionally." >&2;}
14227 { (exit 1); exit 1; }; }
14228fi
13b2be9c
DJ
14229
14230: ${CONFIG_STATUS=./config.status}
14231ac_clean_files_save=$ac_clean_files
14232ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14233{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14234echo "$as_me: creating $CONFIG_STATUS" >&6;}
14235cat >$CONFIG_STATUS <<_ACEOF
14236#! $SHELL
14237# Generated by $as_me.
14238# Run this file to recreate the current configuration.
14239# Compiler output produced by configure, useful for debugging
14240# configure, is in config.log if it exists.
14241
14242debug=false
14243ac_cs_recheck=false
14244ac_cs_silent=false
14245SHELL=\${CONFIG_SHELL-$SHELL}
14246_ACEOF
14247
14248cat >>$CONFIG_STATUS <<\_ACEOF
14249## --------------------- ##
14250## M4sh Initialization. ##
14251## --------------------- ##
14252
14253# Be Bourne compatible
14254if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14255 emulate sh
14256 NULLCMD=:
14257 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14258 # is contrary to our usage. Disable this feature.
14259 alias -g '${1+"$@"}'='"$@"'
14260elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14261 set -o posix
14262fi
ab509236 14263DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
14264
14265# Support unset when possible.
ab509236 14266if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
14267 as_unset=unset
14268else
14269 as_unset=false
14270fi
14271
14272
14273# Work around bugs in pre-3.0 UWIN ksh.
14274$as_unset ENV MAIL MAILPATH
14275PS1='$ '
14276PS2='> '
14277PS4='+ '
14278
14279# NLS nuisances.
14280for as_var in \
14281 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14282 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14283 LC_TELEPHONE LC_TIME
14284do
ab509236 14285 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
14286 eval $as_var=C; export $as_var
14287 else
14288 $as_unset $as_var
14289 fi
14290done
14291
14292# Required to use basename.
14293if expr a : '\(a\)' >/dev/null 2>&1; then
14294 as_expr=expr
14295else
14296 as_expr=false
14297fi
14298
14299if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14300 as_basename=basename
14301else
14302 as_basename=false
14303fi
14304
14305
14306# Name of the executable.
14307as_me=`$as_basename "$0" ||
14308$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14309 X"$0" : 'X\(//\)$' \| \
14310 X"$0" : 'X\(/\)$' \| \
14311 . : '\(.\)' 2>/dev/null ||
14312echo X/"$0" |
14313 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14314 /^X\/\(\/\/\)$/{ s//\1/; q; }
14315 /^X\/\(\/\).*/{ s//\1/; q; }
14316 s/.*/./; q'`
14317
14318
14319# PATH needs CR, and LINENO needs CR and PATH.
14320# Avoid depending upon Character Ranges.
14321as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14322as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14323as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14324as_cr_digits='0123456789'
14325as_cr_alnum=$as_cr_Letters$as_cr_digits
14326
14327# The user is always right.
14328if test "${PATH_SEPARATOR+set}" != set; then
14329 echo "#! /bin/sh" >conf$$.sh
14330 echo "exit 0" >>conf$$.sh
14331 chmod +x conf$$.sh
14332 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14333 PATH_SEPARATOR=';'
14334 else
14335 PATH_SEPARATOR=:
14336 fi
14337 rm -f conf$$.sh
14338fi
14339
14340
14341 as_lineno_1=$LINENO
14342 as_lineno_2=$LINENO
14343 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14344 test "x$as_lineno_1" != "x$as_lineno_2" &&
14345 test "x$as_lineno_3" = "x$as_lineno_2" || {
14346 # Find who we are. Look in the path if we contain no path at all
14347 # relative or not.
14348 case $0 in
14349 *[\\/]* ) as_myself=$0 ;;
14350 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351for as_dir in $PATH
14352do
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
14355 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14356done
252b5132 14357
13b2be9c
DJ
14358 ;;
14359 esac
14360 # We did not find ourselves, most probably we were run as `sh COMMAND'
14361 # in which case we are not to be found in the path.
14362 if test "x$as_myself" = x; then
14363 as_myself=$0
14364 fi
14365 if test ! -f "$as_myself"; then
14366 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14367echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14368 { (exit 1); exit 1; }; }
14369 fi
14370 case $CONFIG_SHELL in
14371 '')
14372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14373for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14374do
14375 IFS=$as_save_IFS
14376 test -z "$as_dir" && as_dir=.
14377 for as_base in sh bash ksh sh5; do
14378 case $as_dir in
14379 /*)
14380 if ("$as_dir/$as_base" -c '
14381 as_lineno_1=$LINENO
14382 as_lineno_2=$LINENO
14383 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14384 test "x$as_lineno_1" != "x$as_lineno_2" &&
14385 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14386 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14387 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14388 CONFIG_SHELL=$as_dir/$as_base
14389 export CONFIG_SHELL
14390 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14391 fi;;
14392 esac
14393 done
14394done
14395;;
14396 esac
252b5132 14397
13b2be9c
DJ
14398 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14399 # uniformly replaced by the line number. The first 'sed' inserts a
14400 # line-number line before each line; the second 'sed' does the real
14401 # work. The second script uses 'N' to pair each line-number line
14402 # with the numbered line, and appends trailing '-' during
14403 # substitution so that $LINENO is not a special case at line end.
14404 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14405 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14406 sed '=' <$as_myself |
14407 sed '
14408 N
14409 s,$,-,
14410 : loop
14411 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14412 t loop
14413 s,-$,,
14414 s,^['$as_cr_digits']*\n,,
14415 ' >$as_me.lineno &&
14416 chmod +x $as_me.lineno ||
14417 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14418echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14419 { (exit 1); exit 1; }; }
14420
14421 # Don't try to exec as it changes $[0], causing all sort of problems
14422 # (the dirname of $[0] is not the place where we might find the
14423 # original and so on. Autoconf is especially sensible to this).
14424 . ./$as_me.lineno
14425 # Exit status is that of the last command.
14426 exit
14427}
d6d788bd 14428
252b5132 14429
13b2be9c
DJ
14430case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14431 *c*,-n*) ECHO_N= ECHO_C='
14432' ECHO_T=' ' ;;
14433 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14434 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14435esac
252b5132 14436
13b2be9c
DJ
14437if expr a : '\(a\)' >/dev/null 2>&1; then
14438 as_expr=expr
252b5132 14439else
13b2be9c 14440 as_expr=false
252b5132 14441fi
252b5132 14442
13b2be9c
DJ
14443rm -f conf$$ conf$$.exe conf$$.file
14444echo >conf$$.file
14445if ln -s conf$$.file conf$$ 2>/dev/null; then
14446 # We could just check for DJGPP; but this test a) works b) is more generic
14447 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14448 if test -f conf$$.exe; then
14449 # Don't use ln at all; we don't have any links
14450 as_ln_s='cp -p'
14451 else
14452 as_ln_s='ln -s'
14453 fi
14454elif ln conf$$.file conf$$ 2>/dev/null; then
14455 as_ln_s=ln
14456else
14457 as_ln_s='cp -p'
252b5132 14458fi
13b2be9c 14459rm -f conf$$ conf$$.exe conf$$.file
252b5132 14460
13b2be9c
DJ
14461if mkdir -p . 2>/dev/null; then
14462 as_mkdir_p=:
252b5132 14463else
ab509236 14464 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14465 as_mkdir_p=false
14466fi
252b5132 14467
13b2be9c 14468as_executable_p="test -f"
252b5132 14469
13b2be9c 14470# Sed expression to map a string onto a valid CPP name.
ab509236 14471as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14472
13b2be9c 14473# Sed expression to map a string onto a valid variable name.
ab509236 14474as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14475
d6d788bd 14476
13b2be9c
DJ
14477# IFS
14478# We need space, tab and new line, in precisely that order.
14479as_nl='
14480'
14481IFS=" $as_nl"
252b5132 14482
13b2be9c
DJ
14483# CDPATH.
14484$as_unset CDPATH
252b5132 14485
13b2be9c 14486exec 6>&1
252b5132 14487
13b2be9c
DJ
14488# Open the log real soon, to keep \$[0] and so on meaningful, and to
14489# report actual input values of CONFIG_FILES etc. instead of their
14490# values after options handling. Logging --version etc. is OK.
14491exec 5>>config.log
14492{
14493 echo
14494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14495## Running $as_me. ##
14496_ASBOX
14497} >&5
14498cat >&5 <<_CSEOF
252b5132 14499
13b2be9c 14500This file was extended by $as_me, which was
ab509236 14501generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 14502
13b2be9c
DJ
14503 CONFIG_FILES = $CONFIG_FILES
14504 CONFIG_HEADERS = $CONFIG_HEADERS
14505 CONFIG_LINKS = $CONFIG_LINKS
14506 CONFIG_COMMANDS = $CONFIG_COMMANDS
14507 $ $0 $@
252b5132 14508
13b2be9c
DJ
14509_CSEOF
14510echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14511echo >&5
14512_ACEOF
252b5132 14513
13b2be9c
DJ
14514# Files that config.status was made for.
14515if test -n "$ac_config_files"; then
14516 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 14517fi
13b2be9c
DJ
14518
14519if test -n "$ac_config_headers"; then
14520 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 14521fi
252b5132 14522
13b2be9c
DJ
14523if test -n "$ac_config_links"; then
14524 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
14525fi
14526
13b2be9c
DJ
14527if test -n "$ac_config_commands"; then
14528 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14529fi
d6d788bd 14530
13b2be9c 14531cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14532
13b2be9c
DJ
14533ac_cs_usage="\
14534\`$as_me' instantiates files from templates according to the
14535current configuration.
252b5132 14536
13b2be9c 14537Usage: $0 [OPTIONS] [FILE]...
252b5132 14538
13b2be9c
DJ
14539 -h, --help print this help, then exit
14540 -V, --version print version number, then exit
14541 -q, --quiet do not print progress messages
14542 -d, --debug don't remove temporary files
14543 --recheck update $as_me by reconfiguring in the same conditions
14544 --file=FILE[:TEMPLATE]
ab509236 14545 instantiate the configuration file FILE
13b2be9c 14546 --header=FILE[:TEMPLATE]
ab509236 14547 instantiate the configuration header FILE
252b5132 14548
13b2be9c
DJ
14549Configuration files:
14550$config_files
252b5132 14551
13b2be9c
DJ
14552Configuration headers:
14553$config_headers
252b5132 14554
13b2be9c
DJ
14555Configuration commands:
14556$config_commands
252b5132 14557
13b2be9c
DJ
14558Report bugs to <bug-autoconf@gnu.org>."
14559_ACEOF
d6d788bd 14560
13b2be9c
DJ
14561cat >>$CONFIG_STATUS <<_ACEOF
14562ac_cs_version="\\
14563config.status
ab509236 14564configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 14565 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 14566
ab509236 14567Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
14568This config.status script is free software; the Free Software Foundation
14569gives unlimited permission to copy, distribute and modify it."
14570srcdir=$srcdir
14571INSTALL="$INSTALL"
14572_ACEOF
d6d788bd 14573
13b2be9c
DJ
14574cat >>$CONFIG_STATUS <<\_ACEOF
14575# If no file are specified by the user, then we need to provide default
14576# value. By we need to know if files were specified by the user.
14577ac_need_defaults=:
14578while test $# != 0
14579do
14580 case $1 in
14581 --*=*)
14582 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14583 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14584 ac_shift=:
c8615825 14585 ;;
13b2be9c
DJ
14586 -*)
14587 ac_option=$1
14588 ac_optarg=$2
14589 ac_shift=shift
c8615825 14590 ;;
13b2be9c
DJ
14591 *) # This is not an option, so the user has probably given explicit
14592 # arguments.
14593 ac_option=$1
14594 ac_need_defaults=false;;
14595 esac
252b5132 14596
13b2be9c
DJ
14597 case $ac_option in
14598 # Handling of the options.
14599_ACEOF
14600cat >>$CONFIG_STATUS <<\_ACEOF
14601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14602 ac_cs_recheck=: ;;
14603 --version | --vers* | -V )
14604 echo "$ac_cs_version"; exit 0 ;;
14605 --he | --h)
14606 # Conflict between --help and --header
14607 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14608Try \`$0 --help' for more information." >&5
14609echo "$as_me: error: ambiguous option: $1
14610Try \`$0 --help' for more information." >&2;}
14611 { (exit 1); exit 1; }; };;
14612 --help | --hel | -h )
14613 echo "$ac_cs_usage"; exit 0 ;;
14614 --debug | --d* | -d )
14615 debug=: ;;
14616 --file | --fil | --fi | --f )
14617 $ac_shift
14618 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14619 ac_need_defaults=false;;
14620 --header | --heade | --head | --hea )
14621 $ac_shift
14622 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14623 ac_need_defaults=false;;
14624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14625 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14626 ac_cs_silent=: ;;
c8615825 14627
13b2be9c
DJ
14628 # This is an error.
14629 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14630Try \`$0 --help' for more information." >&5
14631echo "$as_me: error: unrecognized option: $1
14632Try \`$0 --help' for more information." >&2;}
14633 { (exit 1); exit 1; }; } ;;
252b5132 14634
13b2be9c 14635 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14636
13b2be9c
DJ
14637 esac
14638 shift
14639done
252b5132 14640
13b2be9c 14641ac_configure_extra_args=
d6d788bd 14642
13b2be9c
DJ
14643if $ac_cs_silent; then
14644 exec 6>/dev/null
14645 ac_configure_extra_args="$ac_configure_extra_args --silent"
14646fi
9b2b7d69 14647
13b2be9c
DJ
14648_ACEOF
14649cat >>$CONFIG_STATUS <<_ACEOF
14650if \$ac_cs_recheck; then
14651 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14652 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14653fi
14654
14655_ACEOF
14656
14657cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 14658#
13b2be9c 14659# INIT-COMMANDS section.
9b2b7d69
MM
14660#
14661
13b2be9c 14662AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14663
14664
14665# The HP-UX ksh and POSIX shell print the target directory to stdout
14666# if CDPATH is set.
14667(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14668
14669sed_quote_subst='$sed_quote_subst'
14670double_quote_subst='$double_quote_subst'
14671delay_variable_subst='$delay_variable_subst'
14672macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14673macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14674enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14675enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14676pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14677enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14678host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14679host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14680host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14681build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14682build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14683build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14684SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14685Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14686GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14687EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14688FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14689LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14690NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14691LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14692max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14693ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14694exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14695lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14696lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14697lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14698reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14699reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14700deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14701file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14702AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14703AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14704STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14705RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14706old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14707old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14708old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14709CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14710CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14711compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14712GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14713lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14714lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14715lt_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"`'
14716objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14717SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14718ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14719MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14720lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14721lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14722lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14723lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14724lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14725need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14726libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14727shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14728extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14729archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14730enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14731export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14732whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14733compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14734old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14735old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14736archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14737archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14738module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14739module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14740with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14741allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14742no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14743hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14744hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14745hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14746hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14747hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14748hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14749hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14750hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14751inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14752link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14753fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14754always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14755export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14756exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14757include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14758prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14759file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14760variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14761need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14762need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14763version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14764runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14765shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14766shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14767libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14768library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14769soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14770postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14771postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14772finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14773finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14774hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14775sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14776sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14777hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14778enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14779enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14780enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14781old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14782striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14783
14784LTCC='$LTCC'
14785LTCFLAGS='$LTCFLAGS'
14786compiler='$compiler_DEFAULT'
14787
14788# Quote evaled strings.
14789for var in SED \
14790GREP \
14791EGREP \
14792FGREP \
14793LD \
14794NM \
14795LN_S \
14796lt_SP2NL \
14797lt_NL2SP \
14798reload_flag \
14799deplibs_check_method \
14800file_magic_cmd \
14801AR \
14802AR_FLAGS \
14803STRIP \
14804RANLIB \
14805CC \
14806CFLAGS \
14807compiler \
14808lt_cv_sys_global_symbol_pipe \
14809lt_cv_sys_global_symbol_to_cdecl \
14810lt_cv_sys_global_symbol_to_c_name_address \
14811SHELL \
14812ECHO \
14813lt_prog_compiler_no_builtin_flag \
14814lt_prog_compiler_wl \
14815lt_prog_compiler_pic \
14816lt_prog_compiler_static \
14817lt_cv_prog_compiler_c_o \
14818need_locks \
14819shrext_cmds \
14820export_dynamic_flag_spec \
14821whole_archive_flag_spec \
14822compiler_needs_object \
14823with_gnu_ld \
14824allow_undefined_flag \
14825no_undefined_flag \
14826hardcode_libdir_flag_spec \
14827hardcode_libdir_flag_spec_ld \
14828hardcode_libdir_separator \
14829fix_srcfile_path \
14830exclude_expsyms \
14831include_expsyms \
14832file_list_spec \
14833variables_saved_for_relink \
14834libname_spec \
14835library_names_spec \
14836soname_spec \
14837finish_eval \
14838old_striplib \
14839striplib; do
14840 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14841 *[\\\\\\\`\\"\\\$]*)
14842 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14843 ;;
14844 *)
14845 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14846 ;;
14847 esac
14848done
14849
14850# Double-quote double-evaled strings.
14851for var in reload_cmds \
14852old_postinstall_cmds \
14853old_postuninstall_cmds \
14854old_archive_cmds \
14855extract_expsyms_cmds \
14856old_archive_from_new_cmds \
14857old_archive_from_expsyms_cmds \
14858archive_cmds \
14859archive_expsym_cmds \
14860module_cmds \
14861module_expsym_cmds \
14862export_symbols_cmds \
14863prelink_cmds \
14864postinstall_cmds \
14865postuninstall_cmds \
14866finish_cmds \
14867sys_lib_search_path_spec \
14868sys_lib_dlsearch_path_spec; do
14869 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14870 *[\\\\\\\`\\"\\\$]*)
14871 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14872 ;;
14873 *)
14874 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14875 ;;
14876 esac
14877done
14878
14879# Fix-up fallback echo if it was mangled by the above quoting rules.
14880case \$lt_ECHO in
14881*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14882 ;;
14883esac
14884
14885ac_aux_dir='$ac_aux_dir'
14886xsi_shell='$xsi_shell'
14887lt_shell_append='$lt_shell_append'
14888
14889# See if we are running on zsh, and set the options which allow our
14890# commands through without removal of \ escapes INIT.
14891if test -n "\${ZSH_VERSION+set}" ; then
14892 setopt NO_GLOB_SUBST
14893fi
14894
14895
14896 PACKAGE='$PACKAGE'
14897 VERSION='$VERSION'
14898 TIMESTAMP='$TIMESTAMP'
14899 RM='$RM'
14900 ofile='$ofile'
14901
14902
14903
20e95c23
DJ
14904# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14905 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14906 # from automake.
14907 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14908 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14909 LINGUAS="${LINGUAS-%UNSET%}"
14910
13b2be9c
DJ
14911target_cpu_type=${target_cpu_type}
14912 cgen_cpu_prefix=${cgen_cpu_prefix}
14913 obj_format=${obj_format}
14914 te_file=${te_file}
14915
14916_ACEOF
14917
14918
14919
14920cat >>$CONFIG_STATUS <<\_ACEOF
14921for ac_config_target in $ac_config_targets
9b2b7d69 14922do
13b2be9c
DJ
14923 case "$ac_config_target" in
14924 # Handling of arguments.
14925 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14926 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14927 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14928 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14929 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14930 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 14931 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 14932 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13b2be9c
DJ
14933 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14934 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14935 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14936echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14937 { (exit 1); exit 1; }; };;
9b2b7d69
MM
14938 esac
14939done
14940
13b2be9c
DJ
14941# If the user did not use the arguments to specify the items to instantiate,
14942# then the envvar interface is used. Set only those that are not.
14943# We use the long form for the default assignment because of an extremely
14944# bizarre bug on SunOS 4.1.3.
14945if $ac_need_defaults; then
14946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14949fi
14950
14951# Have a temporary directory for convenience. Make it in the build tree
14952# simply because there is no reason to put it here, and in addition,
14953# creating and moving files from /tmp can sometimes cause problems.
14954# Create a temporary directory, and hook for its removal unless debugging.
14955$debug ||
14956{
14957 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14958 trap '{ (exit 1); exit 1; }' 1 2 13 15
14959}
9b2b7d69 14960
13b2be9c 14961# Create a (secure) tmp directory for tmp files.
9b2b7d69 14962
13b2be9c
DJ
14963{
14964 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14965 test -n "$tmp" && test -d "$tmp"
14966} ||
14967{
14968 tmp=./confstat$$-$RANDOM
14969 (umask 077 && mkdir $tmp)
14970} ||
14971{
14972 echo "$me: cannot create a temporary directory in ." >&2
14973 { (exit 1); exit 1; }
14974}
9b2b7d69 14975
13b2be9c
DJ
14976_ACEOF
14977
14978cat >>$CONFIG_STATUS <<_ACEOF
14979
14980#
14981# CONFIG_FILES section.
14982#
14983
14984# No need to generate the scripts if there are no CONFIG_FILES.
14985# This happens for instance when ./config.status config.h
14986if test -n "\$CONFIG_FILES"; then
14987 # Protect against being on the right side of a sed subst in config.status.
14988 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14989 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14990s,@SHELL@,$SHELL,;t t
14991s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14992s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14993s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14994s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14995s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14996s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14997s,@exec_prefix@,$exec_prefix,;t t
14998s,@prefix@,$prefix,;t t
14999s,@program_transform_name@,$program_transform_name,;t t
15000s,@bindir@,$bindir,;t t
15001s,@sbindir@,$sbindir,;t t
15002s,@libexecdir@,$libexecdir,;t t
15003s,@datadir@,$datadir,;t t
15004s,@sysconfdir@,$sysconfdir,;t t
15005s,@sharedstatedir@,$sharedstatedir,;t t
15006s,@localstatedir@,$localstatedir,;t t
15007s,@libdir@,$libdir,;t t
15008s,@includedir@,$includedir,;t t
15009s,@oldincludedir@,$oldincludedir,;t t
15010s,@infodir@,$infodir,;t t
15011s,@mandir@,$mandir,;t t
15012s,@build_alias@,$build_alias,;t t
15013s,@host_alias@,$host_alias,;t t
15014s,@target_alias@,$target_alias,;t t
15015s,@DEFS@,$DEFS,;t t
15016s,@ECHO_C@,$ECHO_C,;t t
15017s,@ECHO_N@,$ECHO_N,;t t
15018s,@ECHO_T@,$ECHO_T,;t t
15019s,@LIBS@,$LIBS,;t t
15020s,@build@,$build,;t t
15021s,@build_cpu@,$build_cpu,;t t
15022s,@build_vendor@,$build_vendor,;t t
15023s,@build_os@,$build_os,;t t
15024s,@host@,$host,;t t
15025s,@host_cpu@,$host_cpu,;t t
15026s,@host_vendor@,$host_vendor,;t t
15027s,@host_os@,$host_os,;t t
15028s,@target@,$target,;t t
15029s,@target_cpu@,$target_cpu,;t t
15030s,@target_vendor@,$target_vendor,;t t
15031s,@target_os@,$target_os,;t t
15032s,@CC@,$CC,;t t
15033s,@CFLAGS@,$CFLAGS,;t t
15034s,@LDFLAGS@,$LDFLAGS,;t t
15035s,@CPPFLAGS@,$CPPFLAGS,;t t
15036s,@ac_ct_CC@,$ac_ct_CC,;t t
15037s,@EXEEXT@,$EXEEXT,;t t
15038s,@OBJEXT@,$OBJEXT,;t t
15039s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15040s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15041s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15042s,@CYGPATH_W@,$CYGPATH_W,;t t
15043s,@PACKAGE@,$PACKAGE,;t t
15044s,@VERSION@,$VERSION,;t t
15045s,@ACLOCAL@,$ACLOCAL,;t t
15046s,@AUTOCONF@,$AUTOCONF,;t t
15047s,@AUTOMAKE@,$AUTOMAKE,;t t
15048s,@AUTOHEADER@,$AUTOHEADER,;t t
15049s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
15050s,@install_sh@,$install_sh,;t t
15051s,@STRIP@,$STRIP,;t t
15052s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15053s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 15054s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
15055s,@AWK@,$AWK,;t t
15056s,@SET_MAKE@,$SET_MAKE,;t t
15057s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
15058s,@AMTAR@,$AMTAR,;t t
15059s,@am__tar@,$am__tar,;t t
15060s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
15061s,@DEPDIR@,$DEPDIR,;t t
15062s,@am__include@,$am__include,;t t
15063s,@am__quote@,$am__quote,;t t
15064s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15065s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15066s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15067s,@CCDEPMODE@,$CCDEPMODE,;t t
15068s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15069s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7357c5b6
AM
15070s,@CPP@,$CPP,;t t
15071s,@EGREP@,$EGREP,;t t
d7040cdb
SE
15072s,@LIBTOOL@,$LIBTOOL,;t t
15073s,@SED@,$SED,;t t
d7040cdb
SE
15074s,@FGREP@,$FGREP,;t t
15075s,@GREP@,$GREP,;t t
15076s,@LD@,$LD,;t t
15077s,@DUMPBIN@,$DUMPBIN,;t t
15078s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15079s,@NM@,$NM,;t t
13b2be9c 15080s,@LN_S@,$LN_S,;t t
d7040cdb
SE
15081s,@AR@,$AR,;t t
15082s,@ac_ct_AR@,$ac_ct_AR,;t t
13b2be9c
DJ
15083s,@RANLIB@,$RANLIB,;t t
15084s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 15085s,@lt_ECHO@,$lt_ECHO,;t t
13b2be9c 15086s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 15087s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
15088s,@GDBINIT@,$GDBINIT,;t t
15089s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
15090s,@extra_objects@,$extra_objects,;t t
15091s,@target_cpu_type@,$target_cpu_type,;t t
15092s,@obj_format@,$obj_format,;t t
15093s,@te_file@,$te_file,;t t
15094s,@install_tooldir@,$install_tooldir,;t t
15095s,@atof@,$atof,;t t
13b2be9c 15096s,@OPCODES_LIB@,$OPCODES_LIB,;t t
13b2be9c
DJ
15097s,@YACC@,$YACC,;t t
15098s,@LEX@,$LEX,;t t
15099s,@LEXLIB@,$LEXLIB,;t t
15100s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13b2be9c 15101s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
15102s,@LIBINTL@,$LIBINTL,;t t
15103s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15104s,@INCINTL@,$INCINTL,;t t
13b2be9c 15105s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
15106s,@GMSGFMT@,$GMSGFMT,;t t
15107s,@POSUB@,$POSUB,;t t
13b2be9c 15108s,@CATALOGS@,$CATALOGS,;t t
13b2be9c 15109s,@DATADIRNAME@,$DATADIRNAME,;t t
13b2be9c 15110s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
15111s,@GENCAT@,$GENCAT,;t t
15112s,@CATOBJEXT@,$CATOBJEXT,;t t
13b2be9c 15113s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
15114s,@MSGFMT@,$MSGFMT,;t t
15115s,@MSGMERGE@,$MSGMERGE,;t t
13b2be9c
DJ
15116s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15117s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15118s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
15119s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15120s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
20e95c23 15121s,@ALLOCA@,$ALLOCA,;t t
13b2be9c 15122s,@LIBM@,$LIBM,;t t
108a6f8e
CD
15123s,@datarootdir@,$datarootdir,;t t
15124s,@docdir@,$docdir,;t t
15125s,@htmldir@,$htmldir,;t t
13b2be9c
DJ
15126s,@LIBOBJS@,$LIBOBJS,;t t
15127s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
15128CEOF
15129
13b2be9c
DJ
15130_ACEOF
15131
15132 cat >>$CONFIG_STATUS <<\_ACEOF
15133 # Split the substitutions into bite-sized pieces for seds with
15134 # small command number limits, like on Digital OSF/1 and HP-UX.
15135 ac_max_sed_lines=48
15136 ac_sed_frag=1 # Number of current file.
15137 ac_beg=1 # First line for current file.
15138 ac_end=$ac_max_sed_lines # Line after last line for current file.
15139 ac_more_lines=:
15140 ac_sed_cmds=
15141 while $ac_more_lines; do
15142 if test $ac_beg -gt 1; then
15143 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15144 else
15145 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15146 fi
15147 if test ! -s $tmp/subs.frag; then
15148 ac_more_lines=false
9b2b7d69 15149 else
13b2be9c
DJ
15150 # The purpose of the label and of the branching condition is to
15151 # speed up the sed processing (if there are no `@' at all, there
15152 # is no need to browse any of the substitutions).
15153 # These are the two extra sed commands mentioned above.
15154 (echo ':t
15155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15156 if test -z "$ac_sed_cmds"; then
ab509236 15157 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 15158 else
ab509236 15159 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
15160 fi
15161 ac_sed_frag=`expr $ac_sed_frag + 1`
15162 ac_beg=$ac_end
15163 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 15164 fi
13b2be9c
DJ
15165 done
15166 if test -z "$ac_sed_cmds"; then
15167 ac_sed_cmds=cat
252b5132 15168 fi
13b2be9c 15169fi # test -n "$CONFIG_FILES"
252b5132 15170
13b2be9c
DJ
15171_ACEOF
15172cat >>$CONFIG_STATUS <<\_ACEOF
15173for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 15174 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
15175 case $ac_file in
15176 - | *:- | *:-:* ) # input from stdin
ab509236
L
15177 cat >$tmp/stdin
15178 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15180 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 15181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15182 * ) ac_file_in=$ac_file.in ;;
252b5132 15183 esac
9b2b7d69 15184
13b2be9c
DJ
15185 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15186 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15187$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15188 X"$ac_file" : 'X\(//\)[^/]' \| \
15189 X"$ac_file" : 'X\(//\)$' \| \
15190 X"$ac_file" : 'X\(/\)' \| \
15191 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15192echo X"$ac_file" |
15193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15195 /^X\(\/\/\)$/{ s//\1/; q; }
15196 /^X\(\/\).*/{ s//\1/; q; }
15197 s/.*/./; q'`
15198 { if $as_mkdir_p; then
15199 mkdir -p "$ac_dir"
c8615825 15200 else
13b2be9c
DJ
15201 as_dir="$ac_dir"
15202 as_dirs=
15203 while test ! -d "$as_dir"; do
15204 as_dirs="$as_dir $as_dirs"
15205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15207 X"$as_dir" : 'X\(//\)[^/]' \| \
15208 X"$as_dir" : 'X\(//\)$' \| \
15209 X"$as_dir" : 'X\(/\)' \| \
15210 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15211echo X"$as_dir" |
15212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15214 /^X\(\/\/\)$/{ s//\1/; q; }
15215 /^X\(\/\).*/{ s//\1/; q; }
15216 s/.*/./; q'`
15217 done
15218 test ! -n "$as_dirs" || mkdir $as_dirs
15219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15220echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15221 { (exit 1); exit 1; }; }; }
15222
15223 ac_builddir=.
15224
15225if test "$ac_dir" != .; then
15226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15227 # A "../" for each directory in $ac_dir_suffix.
15228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15229else
15230 ac_dir_suffix= ac_top_builddir=
15231fi
9b2b7d69 15232
13b2be9c
DJ
15233case $srcdir in
15234 .) # No --srcdir option. We are building in place.
15235 ac_srcdir=.
15236 if test -z "$ac_top_builddir"; then
15237 ac_top_srcdir=.
15238 else
15239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15240 fi ;;
15241 [\\/]* | ?:[\\/]* ) # Absolute path.
15242 ac_srcdir=$srcdir$ac_dir_suffix;
15243 ac_top_srcdir=$srcdir ;;
9b2b7d69 15244 *) # Relative path.
13b2be9c
DJ
15245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15247esac
ab509236
L
15248
15249# Do not use `cd foo && pwd` to compute absolute paths, because
15250# the directories may not exist.
15251case `pwd` in
15252.) ac_abs_builddir="$ac_dir";;
15253*)
15254 case "$ac_dir" in
15255 .) ac_abs_builddir=`pwd`;;
15256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15257 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15258 esac;;
15259esac
15260case $ac_abs_builddir in
15261.) ac_abs_top_builddir=${ac_top_builddir}.;;
15262*)
15263 case ${ac_top_builddir}. in
15264 .) ac_abs_top_builddir=$ac_abs_builddir;;
15265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15267 esac;;
15268esac
15269case $ac_abs_builddir in
15270.) ac_abs_srcdir=$ac_srcdir;;
15271*)
15272 case $ac_srcdir in
15273 .) ac_abs_srcdir=$ac_abs_builddir;;
15274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15276 esac;;
15277esac
15278case $ac_abs_builddir in
15279.) ac_abs_top_srcdir=$ac_top_srcdir;;
15280*)
15281 case $ac_top_srcdir in
15282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15285 esac;;
15286esac
252b5132 15287
9b2b7d69 15288
13b2be9c
DJ
15289 case $INSTALL in
15290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15291 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 15292 esac
9b2b7d69 15293
1ad12f97
NC
15294 if test x"$ac_file" != x-; then
15295 { echo "$as_me:$LINENO: creating $ac_file" >&5
15296echo "$as_me: creating $ac_file" >&6;}
15297 rm -f "$ac_file"
15298 fi
13b2be9c
DJ
15299 # Let's still pretend it is `configure' which instantiates (i.e., don't
15300 # use $as_me), people would be surprised to read:
15301 # /* config.h. Generated by config.status. */
15302 if test x"$ac_file" = x-; then
15303 configure_input=
15304 else
15305 configure_input="$ac_file. "
15306 fi
15307 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 15308 sed 's,.*/,,'` by configure."
13b2be9c
DJ
15309
15310 # First look for the input files in the build tree, otherwise in the
15311 # src tree.
15312 ac_file_inputs=`IFS=:
15313 for f in $ac_file_in; do
15314 case $f in
15315 -) echo $tmp/stdin ;;
15316 [\\/$]*)
ab509236
L
15317 # Absolute (can't be DOS-style, as IFS=:)
15318 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15319echo "$as_me: error: cannot find input file: $f" >&2;}
15320 { (exit 1); exit 1; }; }
ab509236 15321 echo "$f";;
13b2be9c 15322 *) # Relative
ab509236
L
15323 if test -f "$f"; then
15324 # Build tree
15325 echo "$f"
15326 elif test -f "$srcdir/$f"; then
15327 # Source tree
15328 echo "$srcdir/$f"
15329 else
15330 # /dev/null tree
15331 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15332echo "$as_me: error: cannot find input file: $f" >&2;}
15333 { (exit 1); exit 1; }; }
ab509236 15334 fi;;
13b2be9c
DJ
15335 esac
15336 done` || { (exit 1); exit 1; }
15337_ACEOF
15338cat >>$CONFIG_STATUS <<_ACEOF
15339 sed "$ac_vpsub
15340$extrasub
15341_ACEOF
15342cat >>$CONFIG_STATUS <<\_ACEOF
15343:t
15344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15345s,@configure_input@,$configure_input,;t t
15346s,@srcdir@,$ac_srcdir,;t t
15347s,@abs_srcdir@,$ac_abs_srcdir,;t t
15348s,@top_srcdir@,$ac_top_srcdir,;t t
15349s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15350s,@builddir@,$ac_builddir,;t t
15351s,@abs_builddir@,$ac_abs_builddir,;t t
15352s,@top_builddir@,$ac_top_builddir,;t t
15353s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15354s,@INSTALL@,$ac_INSTALL,;t t
15355" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15356 rm -f $tmp/stdin
15357 if test x"$ac_file" != x-; then
15358 mv $tmp/out $ac_file
15359 else
15360 cat $tmp/out
15361 rm -f $tmp/out
15362 fi
15363
15364done
15365_ACEOF
15366cat >>$CONFIG_STATUS <<\_ACEOF
15367
15368#
15369# CONFIG_HEADER section.
15370#
252b5132
RH
15371
15372# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15373# NAME is the cpp macro being defined and VALUE is the value it is being given.
15374#
15375# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
15376ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15377ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
15378ac_dC=' '
15379ac_dD=',;t'
15380# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 15381ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 15382ac_uB='$,\1#\2define\3'
252b5132 15383ac_uC=' '
13b2be9c
DJ
15384ac_uD=',;t'
15385
15386for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15387 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
15388 case $ac_file in
15389 - | *:- | *:-:* ) # input from stdin
ab509236
L
15390 cat >$tmp/stdin
15391 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15393 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 15394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15395 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15396 esac
15397
13b2be9c
DJ
15398 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15399echo "$as_me: creating $ac_file" >&6;}
15400
15401 # First look for the input files in the build tree, otherwise in the
15402 # src tree.
15403 ac_file_inputs=`IFS=:
15404 for f in $ac_file_in; do
15405 case $f in
15406 -) echo $tmp/stdin ;;
15407 [\\/$]*)
ab509236
L
15408 # Absolute (can't be DOS-style, as IFS=:)
15409 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15410echo "$as_me: error: cannot find input file: $f" >&2;}
15411 { (exit 1); exit 1; }; }
ab509236
L
15412 # Do quote $f, to prevent DOS paths from being IFS'd.
15413 echo "$f";;
13b2be9c 15414 *) # Relative
ab509236
L
15415 if test -f "$f"; then
15416 # Build tree
15417 echo "$f"
15418 elif test -f "$srcdir/$f"; then
15419 # Source tree
15420 echo "$srcdir/$f"
15421 else
15422 # /dev/null tree
15423 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15424echo "$as_me: error: cannot find input file: $f" >&2;}
15425 { (exit 1); exit 1; }; }
ab509236 15426 fi;;
13b2be9c
DJ
15427 esac
15428 done` || { (exit 1); exit 1; }
15429 # Remove the trailing spaces.
ab509236 15430 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
15431
15432_ACEOF
15433
15434# Transform confdefs.h into two sed scripts, `conftest.defines' and
15435# `conftest.undefs', that substitutes the proper values into
15436# config.h.in to produce config.h. The first handles `#define'
15437# templates, and the second `#undef' templates.
15438# And first: Protect against being on the right side of a sed subst in
15439# config.status. Protect against being in an unquoted here document
15440# in config.status.
15441rm -f conftest.defines conftest.undefs
15442# Using a here document instead of a string reduces the quoting nightmare.
15443# Putting comments in sed scripts is not portable.
15444#
15445# `end' is used to avoid that the second main sed command (meant for
15446# 0-ary CPP macros) applies to n-ary macro definitions.
15447# See the Autoconf documentation for `clear'.
15448cat >confdef2sed.sed <<\_ACEOF
15449s/[\\&,]/\\&/g
15450s,[\\$`],\\&,g
15451t clear
15452: clear
ab509236 15453s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 15454t end
ab509236 15455s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
15456: end
15457_ACEOF
15458# If some macros were called several times there might be several times
15459# the same #defines, which is useless. Nevertheless, we may not want to
15460# sort them, since we want the *last* AC-DEFINE to be honored.
15461uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15462sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15463rm -f confdef2sed.sed
252b5132
RH
15464
15465# This sed command replaces #undef with comments. This is necessary, for
15466# example, in the case of _POSIX_SOURCE, which is predefined and required
15467# on some systems where configure will not decide to define it.
13b2be9c 15468cat >>conftest.undefs <<\_ACEOF
ab509236 15469s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
15470_ACEOF
15471
15472# Break up conftest.defines because some shells have a limit on the size
15473# of here documents, and old seds have small limits too (100 cmds).
15474echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 15475echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
15476echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15477echo ' :' >>$CONFIG_STATUS
15478rm -f conftest.tail
15479while grep . conftest.defines >/dev/null
15480do
15481 # Write a limited-size here document to $tmp/defines.sed.
15482 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15483 # Speed up: don't consider the non `#define' lines.
ab509236 15484 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15485 # Work around the forget-to-reset-the-flag bug.
15486 echo 't clr' >>$CONFIG_STATUS
15487 echo ': clr' >>$CONFIG_STATUS
15488 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15489 echo 'CEOF
15490 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15491 rm -f $tmp/in
15492 mv $tmp/out $tmp/in
15493' >>$CONFIG_STATUS
15494 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15495 rm -f conftest.defines
15496 mv conftest.tail conftest.defines
15497done
15498rm -f conftest.defines
15499echo ' fi # grep' >>$CONFIG_STATUS
15500echo >>$CONFIG_STATUS
252b5132 15501
13b2be9c
DJ
15502# Break up conftest.undefs because some shells have a limit on the size
15503# of here documents, and old seds have small limits too (100 cmds).
15504echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15505rm -f conftest.tail
13b2be9c 15506while grep . conftest.undefs >/dev/null
252b5132 15507do
13b2be9c
DJ
15508 # Write a limited-size here document to $tmp/undefs.sed.
15509 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15510 # Speed up: don't consider the non `#undef'
ab509236 15511 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15512 # Work around the forget-to-reset-the-flag bug.
15513 echo 't clr' >>$CONFIG_STATUS
15514 echo ': clr' >>$CONFIG_STATUS
15515 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15516 echo 'CEOF
13b2be9c
DJ
15517 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15518 rm -f $tmp/in
15519 mv $tmp/out $tmp/in
15520' >>$CONFIG_STATUS
15521 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15522 rm -f conftest.undefs
15523 mv conftest.tail conftest.undefs
252b5132 15524done
13b2be9c
DJ
15525rm -f conftest.undefs
15526
15527cat >>$CONFIG_STATUS <<\_ACEOF
15528 # Let's still pretend it is `configure' which instantiates (i.e., don't
15529 # use $as_me), people would be surprised to read:
15530 # /* config.h. Generated by config.status. */
15531 if test x"$ac_file" = x-; then
15532 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 15533 else
13b2be9c
DJ
15534 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15535 fi
15536 cat $tmp/in >>$tmp/config.h
15537 rm -f $tmp/in
15538 if test x"$ac_file" != x-; then
15539 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15540 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15541echo "$as_me: $ac_file is unchanged" >&6;}
15542 else
15543 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15544$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15545 X"$ac_file" : 'X\(//\)[^/]' \| \
15546 X"$ac_file" : 'X\(//\)$' \| \
15547 X"$ac_file" : 'X\(/\)' \| \
15548 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15549echo X"$ac_file" |
15550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15552 /^X\(\/\/\)$/{ s//\1/; q; }
15553 /^X\(\/\).*/{ s//\1/; q; }
15554 s/.*/./; q'`
15555 { if $as_mkdir_p; then
15556 mkdir -p "$ac_dir"
15557 else
15558 as_dir="$ac_dir"
15559 as_dirs=
15560 while test ! -d "$as_dir"; do
15561 as_dirs="$as_dir $as_dirs"
15562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15563$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15564 X"$as_dir" : 'X\(//\)[^/]' \| \
15565 X"$as_dir" : 'X\(//\)$' \| \
15566 X"$as_dir" : 'X\(/\)' \| \
15567 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15568echo X"$as_dir" |
15569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15571 /^X\(\/\/\)$/{ s//\1/; q; }
15572 /^X\(\/\).*/{ s//\1/; q; }
15573 s/.*/./; q'`
15574 done
15575 test ! -n "$as_dirs" || mkdir $as_dirs
15576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15577echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15578 { (exit 1); exit 1; }; }; }
15579
15580 rm -f $ac_file
15581 mv $tmp/config.h $ac_file
9b2b7d69 15582 fi
13b2be9c
DJ
15583 else
15584 cat $tmp/config.h
15585 rm -f $tmp/config.h
9b2b7d69 15586 fi
13b2be9c
DJ
15587# Compute $ac_file's index in $config_headers.
15588_am_stamp_count=1
15589for _am_header in $config_headers :; do
15590 case $_am_header in
15591 $ac_file | $ac_file:* )
15592 break ;;
15593 * )
15594 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15595 esac
15596done
15597echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15598$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15599 X$ac_file : 'X\(//\)[^/]' \| \
15600 X$ac_file : 'X\(//\)$' \| \
15601 X$ac_file : 'X\(/\)' \| \
15602 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15603echo X$ac_file |
15604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15606 /^X\(\/\/\)$/{ s//\1/; q; }
15607 /^X\(\/\).*/{ s//\1/; q; }
15608 s/.*/./; q'`/stamp-h$_am_stamp_count
15609done
15610_ACEOF
15611cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 15612
13b2be9c
DJ
15613#
15614# CONFIG_COMMANDS section.
15615#
15616for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15617 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15618 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15619 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15620$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15621 X"$ac_dest" : 'X\(//\)[^/]' \| \
15622 X"$ac_dest" : 'X\(//\)$' \| \
15623 X"$ac_dest" : 'X\(/\)' \| \
15624 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15625echo X"$ac_dest" |
15626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15628 /^X\(\/\/\)$/{ s//\1/; q; }
15629 /^X\(\/\).*/{ s//\1/; q; }
15630 s/.*/./; q'`
ab509236
L
15631 { if $as_mkdir_p; then
15632 mkdir -p "$ac_dir"
15633 else
15634 as_dir="$ac_dir"
15635 as_dirs=
15636 while test ! -d "$as_dir"; do
15637 as_dirs="$as_dir $as_dirs"
15638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15639$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15640 X"$as_dir" : 'X\(//\)[^/]' \| \
15641 X"$as_dir" : 'X\(//\)$' \| \
15642 X"$as_dir" : 'X\(/\)' \| \
15643 . : '\(.\)' 2>/dev/null ||
15644echo X"$as_dir" |
15645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15647 /^X\(\/\/\)$/{ s//\1/; q; }
15648 /^X\(\/\).*/{ s//\1/; q; }
15649 s/.*/./; q'`
15650 done
15651 test ! -n "$as_dirs" || mkdir $as_dirs
15652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15653echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15654 { (exit 1); exit 1; }; }; }
15655
13b2be9c
DJ
15656 ac_builddir=.
15657
15658if test "$ac_dir" != .; then
15659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15660 # A "../" for each directory in $ac_dir_suffix.
15661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15662else
15663 ac_dir_suffix= ac_top_builddir=
15664fi
15665
15666case $srcdir in
15667 .) # No --srcdir option. We are building in place.
15668 ac_srcdir=.
15669 if test -z "$ac_top_builddir"; then
15670 ac_top_srcdir=.
15671 else
15672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15673 fi ;;
15674 [\\/]* | ?:[\\/]* ) # Absolute path.
15675 ac_srcdir=$srcdir$ac_dir_suffix;
15676 ac_top_srcdir=$srcdir ;;
15677 *) # Relative path.
15678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15680esac
ab509236
L
15681
15682# Do not use `cd foo && pwd` to compute absolute paths, because
15683# the directories may not exist.
15684case `pwd` in
15685.) ac_abs_builddir="$ac_dir";;
15686*)
15687 case "$ac_dir" in
15688 .) ac_abs_builddir=`pwd`;;
15689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15691 esac;;
15692esac
15693case $ac_abs_builddir in
15694.) ac_abs_top_builddir=${ac_top_builddir}.;;
15695*)
15696 case ${ac_top_builddir}. in
15697 .) ac_abs_top_builddir=$ac_abs_builddir;;
15698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15700 esac;;
15701esac
15702case $ac_abs_builddir in
15703.) ac_abs_srcdir=$ac_srcdir;;
15704*)
15705 case $ac_srcdir in
15706 .) ac_abs_srcdir=$ac_abs_builddir;;
15707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15709 esac;;
15710esac
15711case $ac_abs_builddir in
15712.) ac_abs_top_srcdir=$ac_top_srcdir;;
15713*)
15714 case $ac_top_srcdir in
15715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15718 esac;;
15719esac
13b2be9c
DJ
15720
15721
15722 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15723echo "$as_me: executing $ac_dest commands" >&6;}
15724 case $ac_dest in
15725 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15726 # Strip MF so we end up with the name of the file.
15727 mf=`echo "$mf" | sed -e 's/:.*$//'`
15728 # Check whether this is an Automake generated Makefile or not.
15729 # We used to match only the files named `Makefile.in', but
15730 # some people rename them; so instead we look at the file content.
15731 # Grep'ing the first line is not enough: some people post-process
15732 # each Makefile.in and add a new line on top of each file to say so.
15733 # So let's grep whole file.
15734 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15735 dirpart=`(dirname "$mf") 2>/dev/null ||
15736$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15737 X"$mf" : 'X\(//\)[^/]' \| \
15738 X"$mf" : 'X\(//\)$' \| \
15739 X"$mf" : 'X\(/\)' \| \
15740 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15741echo X"$mf" |
15742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15744 /^X\(\/\/\)$/{ s//\1/; q; }
15745 /^X\(\/\).*/{ s//\1/; q; }
15746 s/.*/./; q'`
15747 else
15748 continue
15749 fi
8ea2b00f
AM
15750 # Extract the definition of DEPDIR, am__include, and am__quote
15751 # from the Makefile without running `make'.
4b363073 15752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 15753 test -z "$DEPDIR" && continue
8ea2b00f
AM
15754 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15755 test -z "am__include" && continue
15756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 15757 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 15758 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
15759 # Find all dependency output files, they are included files with
15760 # $(DEPDIR) in their names. We invoke sed twice because it is the
15761 # simplest approach to changing $(DEPDIR) to its actual value in the
15762 # expansion.
15763 for file in `sed -n "
15764 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
15765 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15766 # Make sure the directory exists.
15767 test -f "$dirpart/$file" && continue
15768 fdir=`(dirname "$file") 2>/dev/null ||
15769$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15770 X"$file" : 'X\(//\)[^/]' \| \
15771 X"$file" : 'X\(//\)$' \| \
15772 X"$file" : 'X\(/\)' \| \
15773 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15774echo X"$file" |
15775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15777 /^X\(\/\/\)$/{ s//\1/; q; }
15778 /^X\(\/\).*/{ s//\1/; q; }
15779 s/.*/./; q'`
15780 { if $as_mkdir_p; then
15781 mkdir -p $dirpart/$fdir
15782 else
15783 as_dir=$dirpart/$fdir
15784 as_dirs=
15785 while test ! -d "$as_dir"; do
15786 as_dirs="$as_dir $as_dirs"
15787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15788$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15789 X"$as_dir" : 'X\(//\)[^/]' \| \
15790 X"$as_dir" : 'X\(//\)$' \| \
15791 X"$as_dir" : 'X\(/\)' \| \
15792 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15793echo X"$as_dir" |
15794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15796 /^X\(\/\/\)$/{ s//\1/; q; }
15797 /^X\(\/\).*/{ s//\1/; q; }
15798 s/.*/./; q'`
15799 done
15800 test ! -n "$as_dirs" || mkdir $as_dirs
15801 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15802echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15803 { (exit 1); exit 1; }; }; }
c8615825 15804
13b2be9c
DJ
15805 # echo "creating $dirpart/$file"
15806 echo '# dummy' > "$dirpart/$file"
15807 done
15808done
d7040cdb
SE
15809 ;;
15810 libtool )
15811
15812 # See if we are running on zsh, and set the options which allow our
15813 # commands through without removal of \ escapes.
15814 if test -n "${ZSH_VERSION+set}" ; then
15815 setopt NO_GLOB_SUBST
15816 fi
15817
15818 cfgfile="${ofile}T"
15819 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15820 $RM "$cfgfile"
15821
15822 cat <<_LT_EOF >> "$cfgfile"
15823#! $SHELL
15824
15825# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15826# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15827# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15828# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15829#
15830# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15831# 2006, 2007 Free Software Foundation, Inc.
15832#
15833# This file is part of GNU Libtool:
15834# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15835#
15836# This program is free software; you can redistribute it and/or modify
15837# it under the terms of the GNU General Public License as published by
15838# the Free Software Foundation; either version 2 of the License, or
15839# (at your option) any later version.
15840#
15841# This program is distributed in the hope that it will be useful, but
15842# WITHOUT ANY WARRANTY; without even the implied warranty of
15843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15844# General Public License for more details.
15845#
15846# You should have received a copy of the GNU General Public License
15847# along with this program; if not, a copy can be downloaded from
15848# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15849# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15850# MA 02110-1301, USA.
15851#
15852# As a special exception to the GNU General Public License, if you
15853# distribute this file as part of a program that contains a
15854# configuration script generated by Autoconf, you may include it under
15855# the same distribution terms that you use for the rest of that program.
15856
15857
15858# The names of the tagged configurations supported by this script.
15859available_tags=""
15860
15861# ### BEGIN LIBTOOL CONFIG
15862
15863# Which release of libtool.m4 was used?
15864macro_version=$macro_version
15865macro_revision=$macro_revision
15866
15867# Whether or not to build shared libraries.
15868build_libtool_libs=$enable_shared
15869
15870# Whether or not to build static libraries.
15871build_old_libs=$enable_static
15872
15873# What type of objects to build.
15874pic_mode=$pic_mode
15875
15876# Whether or not to optimize for fast installation.
15877fast_install=$enable_fast_install
15878
15879# The host system.
15880host_alias=$host_alias
15881host=$host
15882host_os=$host_os
15883
15884# The build system.
15885build_alias=$build_alias
15886build=$build
15887build_os=$build_os
15888
15889# A sed program that does not truncate output.
15890SED=$lt_SED
15891
15892# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15893Xsed="\$SED -e 1s/^X//"
15894
15895# A grep program that handles long lines.
15896GREP=$lt_GREP
15897
15898# An ERE matcher.
15899EGREP=$lt_EGREP
15900
15901# A literal string matcher.
15902FGREP=$lt_FGREP
15903
15904# A BSD- or MS-compatible name lister.
15905NM=$lt_NM
15906
15907# Whether we need soft or hard links.
15908LN_S=$lt_LN_S
15909
15910# What is the maximum length of a command?
15911max_cmd_len=$max_cmd_len
15912
15913# Object file suffix (normally "o").
15914objext=$ac_objext
15915
15916# Executable file suffix (normally "").
15917exeext=$exeext
15918
15919# whether the shell understands "unset".
15920lt_unset=$lt_unset
15921
15922# turn spaces into newlines.
15923SP2NL=$lt_lt_SP2NL
15924
15925# turn newlines into spaces.
15926NL2SP=$lt_lt_NL2SP
15927
15928# How to create reloadable object files.
15929reload_flag=$lt_reload_flag
15930reload_cmds=$lt_reload_cmds
15931
15932# Method to check whether dependent libraries are shared objects.
15933deplibs_check_method=$lt_deplibs_check_method
15934
15935# Command to use when deplibs_check_method == "file_magic".
15936file_magic_cmd=$lt_file_magic_cmd
15937
15938# The archiver.
15939AR=$lt_AR
15940AR_FLAGS=$lt_AR_FLAGS
15941
15942# A symbol stripping program.
15943STRIP=$lt_STRIP
15944
15945# Commands used to install an old-style archive.
15946RANLIB=$lt_RANLIB
15947old_postinstall_cmds=$lt_old_postinstall_cmds
15948old_postuninstall_cmds=$lt_old_postuninstall_cmds
15949
15950# A C compiler.
15951LTCC=$lt_CC
15952
15953# LTCC compiler flags.
15954LTCFLAGS=$lt_CFLAGS
15955
15956# Take the output of nm and produce a listing of raw symbols and C names.
15957global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15958
15959# Transform the output of nm in a proper C declaration.
15960global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15961
15962# Transform the output of nm in a C name address pair.
15963global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15964
15965# The name of the directory that contains temporary libtool files.
15966objdir=$objdir
15967
15968# Shell to use when invoking shell scripts.
15969SHELL=$lt_SHELL
15970
15971# An echo program that does not interpret backslashes.
15972ECHO=$lt_ECHO
15973
15974# Used to examine libraries when file_magic_cmd begins with "file".
15975MAGIC_CMD=$MAGIC_CMD
15976
15977# Must we lock files when doing compilation?
15978need_locks=$lt_need_locks
15979
15980# Old archive suffix (normally "a").
15981libext=$libext
15982
15983# Shared library suffix (normally ".so").
15984shrext_cmds=$lt_shrext_cmds
15985
15986# The commands to extract the exported symbol list from a shared archive.
15987extract_expsyms_cmds=$lt_extract_expsyms_cmds
15988
15989# Variables whose values should be saved in libtool wrapper scripts and
15990# restored at link time.
15991variables_saved_for_relink=$lt_variables_saved_for_relink
15992
15993# Do we need the "lib" prefix for modules?
15994need_lib_prefix=$need_lib_prefix
15995
15996# Do we need a version for libraries?
15997need_version=$need_version
15998
15999# Library versioning type.
16000version_type=$version_type
16001
16002# Shared library runtime path variable.
16003runpath_var=$runpath_var
16004
16005# Shared library path variable.
16006shlibpath_var=$shlibpath_var
16007
16008# Is shlibpath searched before the hard-coded library search path?
16009shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16010
16011# Format of library name prefix.
16012libname_spec=$lt_libname_spec
16013
16014# List of archive names. First name is the real one, the rest are links.
16015# The last name is the one that the linker finds with -lNAME
16016library_names_spec=$lt_library_names_spec
16017
16018# The coded name of the library, if different from the real name.
16019soname_spec=$lt_soname_spec
16020
16021# Command to use after installation of a shared archive.
16022postinstall_cmds=$lt_postinstall_cmds
16023
16024# Command to use after uninstallation of a shared archive.
16025postuninstall_cmds=$lt_postuninstall_cmds
16026
16027# Commands used to finish a libtool library installation in a directory.
16028finish_cmds=$lt_finish_cmds
16029
16030# As "finish_cmds", except a single script fragment to be evaled but
16031# not shown.
16032finish_eval=$lt_finish_eval
16033
16034# Whether we should hardcode library paths into libraries.
16035hardcode_into_libs=$hardcode_into_libs
16036
16037# Compile-time system search path for libraries.
16038sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16039
16040# Run-time system search path for libraries.
16041sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16042
16043# Whether dlopen is supported.
16044dlopen_support=$enable_dlopen
16045
16046# Whether dlopen of programs is supported.
16047dlopen_self=$enable_dlopen_self
16048
16049# Whether dlopen of statically linked programs is supported.
16050dlopen_self_static=$enable_dlopen_self_static
16051
16052# Commands to strip libraries.
16053old_striplib=$lt_old_striplib
16054striplib=$lt_striplib
16055
16056
16057# The linker used to build libraries.
16058LD=$lt_LD
16059
16060# Commands used to build an old-style archive.
16061old_archive_cmds=$lt_old_archive_cmds
16062
16063# A language specific compiler.
16064CC=$lt_compiler
16065
16066# Is the compiler the GNU compiler?
16067with_gcc=$GCC
16068
16069# Compiler flag to turn off builtin functions.
16070no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16071
16072# How to pass a linker flag through the compiler.
16073wl=$lt_lt_prog_compiler_wl
16074
16075# Additional compiler flags for building library objects.
16076pic_flag=$lt_lt_prog_compiler_pic
16077
16078# Compiler flag to prevent dynamic linking.
16079link_static_flag=$lt_lt_prog_compiler_static
16080
16081# Does compiler simultaneously support -c and -o options?
16082compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16083
16084# Whether or not to add -lc for building shared libraries.
16085build_libtool_need_lc=$archive_cmds_need_lc
16086
16087# Whether or not to disallow shared libs when runtime libs are static.
16088allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16089
16090# Compiler flag to allow reflexive dlopens.
16091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16092
16093# Compiler flag to generate shared objects directly from archives.
16094whole_archive_flag_spec=$lt_whole_archive_flag_spec
16095
16096# Whether the compiler copes with passing no objects directly.
16097compiler_needs_object=$lt_compiler_needs_object
16098
16099# Create an old-style archive from a shared archive.
16100old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16101
16102# Create a temporary old-style archive to link instead of a shared archive.
16103old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16104
16105# Commands used to build a shared archive.
16106archive_cmds=$lt_archive_cmds
16107archive_expsym_cmds=$lt_archive_expsym_cmds
16108
16109# Commands used to build a loadable module if different from building
16110# a shared archive.
16111module_cmds=$lt_module_cmds
16112module_expsym_cmds=$lt_module_expsym_cmds
16113
16114# Whether we are building with GNU ld or not.
16115with_gnu_ld=$lt_with_gnu_ld
16116
16117# Flag that allows shared libraries with undefined symbols to be built.
16118allow_undefined_flag=$lt_allow_undefined_flag
16119
16120# Flag that enforces no undefined symbols.
16121no_undefined_flag=$lt_no_undefined_flag
16122
16123# Flag to hardcode \$libdir into a binary during linking.
16124# This must work even if \$libdir does not exist
16125hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16126
16127# If ld is used when linking, flag to hardcode \$libdir into a binary
16128# during linking. This must work even if \$libdir does not exist.
16129hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16130
16131# Whether we need a single "-rpath" flag with a separated argument.
16132hardcode_libdir_separator=$lt_hardcode_libdir_separator
16133
16134# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16135# DIR into the resulting binary.
16136hardcode_direct=$hardcode_direct
16137
16138# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16139# DIR into the resulting binary and the resulting library dependency is
16140# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16141# library is relocated.
16142hardcode_direct_absolute=$hardcode_direct_absolute
16143
16144# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16145# into the resulting binary.
16146hardcode_minus_L=$hardcode_minus_L
16147
16148# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16149# into the resulting binary.
16150hardcode_shlibpath_var=$hardcode_shlibpath_var
16151
16152# Set to "yes" if building a shared library automatically hardcodes DIR
16153# into the library and all subsequent libraries and executables linked
16154# against it.
16155hardcode_automatic=$hardcode_automatic
16156
16157# Set to yes if linker adds runtime paths of dependent libraries
16158# to runtime path list.
16159inherit_rpath=$inherit_rpath
16160
16161# Whether libtool must link a program against all its dependency libraries.
16162link_all_deplibs=$link_all_deplibs
16163
16164# Fix the shell variable \$srcfile for the compiler.
16165fix_srcfile_path=$lt_fix_srcfile_path
16166
16167# Set to "yes" if exported symbols are required.
16168always_export_symbols=$always_export_symbols
16169
16170# The commands to list exported symbols.
16171export_symbols_cmds=$lt_export_symbols_cmds
16172
16173# Symbols that should not be listed in the preloaded symbols.
16174exclude_expsyms=$lt_exclude_expsyms
16175
16176# Symbols that must always be exported.
16177include_expsyms=$lt_include_expsyms
16178
16179# Commands necessary for linking programs (against libraries) with templates.
16180prelink_cmds=$lt_prelink_cmds
16181
16182# Specify filename containing input files.
16183file_list_spec=$lt_file_list_spec
16184
16185# How to hardcode a shared library path into an executable.
16186hardcode_action=$hardcode_action
16187
16188# ### END LIBTOOL CONFIG
16189
16190_LT_EOF
16191
16192 case $host_os in
16193 aix3*)
16194 cat <<\_LT_EOF >> "$cfgfile"
16195# AIX sometimes has problems with the GCC collect2 program. For some
16196# reason, if we set the COLLECT_NAMES environment variable, the problems
16197# vanish in a puff of smoke.
16198if test "X${COLLECT_NAMES+set}" != Xset; then
16199 COLLECT_NAMES=
16200 export COLLECT_NAMES
16201fi
16202_LT_EOF
16203 ;;
16204 esac
16205
16206
16207ltmain="$ac_aux_dir/ltmain.sh"
16208
16209
16210 # We use sed instead of cat because bash on DJGPP gets confused if
16211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16212 # text mode, it properly converts lines to CR/LF. This bash problem
16213 # is reportedly fixed, but why not run on old versions too?
16214 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16215 || (rm -f "$cfgfile"; exit 1)
16216
16217 case $xsi_shell in
16218 yes)
16219 cat << \_LT_EOF >> "$cfgfile"
16220# func_dirname file append nondir_replacement
16221# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16222# otherwise set result to NONDIR_REPLACEMENT.
16223func_dirname ()
16224{
16225 case ${1} in
16226 */*) func_dirname_result="${1%/*}${2}" ;;
16227 * ) func_dirname_result="${3}" ;;
16228 esac
16229}
16230
16231# func_basename file
16232func_basename ()
16233{
16234 func_basename_result="${1##*/}"
16235}
16236
16237# func_stripname prefix suffix name
16238# strip PREFIX and SUFFIX off of NAME.
16239# PREFIX and SUFFIX must not contain globbing or regex special
16240# characters, hashes, percent signs, but SUFFIX may contain a leading
16241# dot (in which case that matches only a dot).
16242func_stripname ()
16243{
16244 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16245 # positional parameters, so assign one to ordinary parameter first.
16246 func_stripname_result=${3}
16247 func_stripname_result=${func_stripname_result#"${1}"}
16248 func_stripname_result=${func_stripname_result%"${2}"}
16249}
16250
16251# func_opt_split
16252func_opt_split ()
16253{
16254 func_opt_split_opt=${1%%=*}
16255 func_opt_split_arg=${1#*=}
16256}
16257
16258# func_lo2o object
16259func_lo2o ()
16260{
16261 case ${1} in
16262 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16263 *) func_lo2o_result=${1} ;;
16264 esac
16265}
16266_LT_EOF
16267 ;;
16268 *) # Bourne compatible functions.
16269 cat << \_LT_EOF >> "$cfgfile"
16270# func_dirname file append nondir_replacement
16271# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16272# otherwise set result to NONDIR_REPLACEMENT.
16273func_dirname ()
16274{
16275 # Extract subdirectory from the argument.
16276 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16277 if test "X$func_dirname_result" = "X${1}"; then
16278 func_dirname_result="${3}"
16279 else
16280 func_dirname_result="$func_dirname_result${2}"
16281 fi
16282}
16283
16284# func_basename file
16285func_basename ()
16286{
16287 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16288}
16289
16290# func_stripname prefix suffix name
16291# strip PREFIX and SUFFIX off of NAME.
16292# PREFIX and SUFFIX must not contain globbing or regex special
16293# characters, hashes, percent signs, but SUFFIX may contain a leading
16294# dot (in which case that matches only a dot).
16295# func_strip_suffix prefix name
16296func_stripname ()
16297{
16298 case ${2} in
16299 .*) func_stripname_result=`$ECHO "X${3}" \
16300 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16301 *) func_stripname_result=`$ECHO "X${3}" \
16302 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16303 esac
16304}
16305
16306# sed scripts:
16307my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16308my_sed_long_arg='1s/^-[^=]*=//'
16309
16310# func_opt_split
16311func_opt_split ()
16312{
16313 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16314 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16315}
16316
16317# func_lo2o object
16318func_lo2o ()
16319{
16320 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16321}
16322_LT_EOF
16323esac
16324
16325case $lt_shell_append in
16326 yes)
16327 cat << \_LT_EOF >> "$cfgfile"
16328
16329# func_append var value
16330# Append VALUE to the end of shell variable VAR.
16331func_append ()
16332{
16333 eval "$1+=\$2"
16334}
16335_LT_EOF
16336 ;;
16337 *)
16338 cat << \_LT_EOF >> "$cfgfile"
16339
16340# func_append var value
16341# Append VALUE to the end of shell variable VAR.
16342func_append ()
16343{
16344 eval "$1=\$$1\$2"
16345}
16346_LT_EOF
16347 ;;
16348 esac
16349
16350
16351 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16352 || (rm -f "$cfgfile"; exit 1)
16353
16354 mv -f "$cfgfile" "$ofile" ||
16355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16356 chmod +x "$ofile"
16357
13b2be9c 16358 ;;
20e95c23
DJ
16359 default-1 )
16360 for ac_file in $CONFIG_FILES; do
16361 # Support "outfile[:infile[:infile...]]"
16362 case "$ac_file" in
16363 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16364 esac
16365 # PO directories have a Makefile.in generated from Makefile.in.in.
16366 case "$ac_file" in */Makefile.in)
16367 # Adjust a relative srcdir.
16368 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16369 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16370 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16371 # In autoconf-2.13 it is called $ac_given_srcdir.
16372 # In autoconf-2.50 it is called $srcdir.
16373 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16374 case "$ac_given_srcdir" in
16375 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16376 /*) top_srcdir="$ac_given_srcdir" ;;
16377 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16378 esac
16379 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16380 rm -f "$ac_dir/POTFILES"
16381 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16382 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16383 POMAKEFILEDEPS="POTFILES.in"
16384 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16385 # on $ac_dir but don't depend on user-specified configuration
16386 # parameters.
16387 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16388 # The LINGUAS file contains the set of available languages.
16389 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16390 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16391 fi
16392 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16393 # Hide the ALL_LINGUAS assigment from automake.
16394 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16395 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16396 else
16397 # The set of available languages was given in configure.in.
16398 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16399 fi
16400 case "$ac_given_srcdir" in
16401 .) srcdirpre= ;;
16402 *) srcdirpre='$(srcdir)/' ;;
16403 esac
16404 POFILES=
16405 GMOFILES=
16406 UPDATEPOFILES=
16407 DUMMYPOFILES=
16408 for lang in $ALL_LINGUAS; do
16409 POFILES="$POFILES $srcdirpre$lang.po"
16410 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16411 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16412 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16413 done
16414 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16415 # environment variable.
16416 INST_LINGUAS=
16417 if test -n "$ALL_LINGUAS"; then
16418 for presentlang in $ALL_LINGUAS; do
16419 useit=no
16420 if test "%UNSET%" != "$LINGUAS"; then
16421 desiredlanguages="$LINGUAS"
16422 else
16423 desiredlanguages="$ALL_LINGUAS"
16424 fi
16425 for desiredlang in $desiredlanguages; do
16426 # Use the presentlang catalog if desiredlang is
16427 # a. equal to presentlang, or
16428 # b. a variant of presentlang (because in this case,
16429 # presentlang can be used as a fallback for messages
16430 # which are not translated in the desiredlang catalog).
16431 case "$desiredlang" in
16432 "$presentlang"*) useit=yes;;
16433 esac
16434 done
16435 if test $useit = yes; then
16436 INST_LINGUAS="$INST_LINGUAS $presentlang"
16437 fi
16438 done
16439 fi
16440 CATALOGS=
16441 if test -n "$INST_LINGUAS"; then
16442 for lang in $INST_LINGUAS; do
16443 CATALOGS="$CATALOGS $lang.gmo"
16444 done
16445 fi
16446 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16447 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"
16448 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16449 if test -f "$f"; then
16450 case "$f" in
16451 *.orig | *.bak | *~) ;;
16452 *) cat "$f" >> "$ac_dir/Makefile" ;;
16453 esac
16454 fi
16455 done
16456 fi
16457 ;;
16458 esac
16459 done ;;
13b2be9c 16460 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
16461 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16462 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16463 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16464 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16465 if test "x$cgen_cpu_prefix" != x ; then
16466 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16467 fi ;;
13b2be9c
DJ
16468 esac
16469done
16470_ACEOF
16471
16472cat >>$CONFIG_STATUS <<\_ACEOF
16473
16474{ (exit 0); exit 0; }
16475_ACEOF
252b5132 16476chmod +x $CONFIG_STATUS
13b2be9c
DJ
16477ac_clean_files=$ac_clean_files_save
16478
16479
16480# configure is writing to config.log, and then calls config.status.
16481# config.status does its own redirection, appending to config.log.
16482# Unfortunately, on DOS this fails, as config.log is still kept open
16483# by configure, so config.status won't be able to write to it; its
16484# output is simply discarded. So we exec the FD to /dev/null,
16485# effectively closing config.log, so it can be properly (re)opened and
16486# appended to by config.status. When coming back to configure, we
16487# need to make the FD available again.
16488if test "$no_create" != yes; then
16489 ac_cs_success=:
16490 ac_config_status_args=
16491 test "$silent" = yes &&
16492 ac_config_status_args="$ac_config_status_args --quiet"
16493 exec 5>/dev/null
16494 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16495 exec 5>>config.log
16496 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16497 # would make configure fail if this is the last instruction.
16498 $ac_cs_success || { (exit 1); exit 1; }
16499fi
252b5132 16500
This page took 1.297385 seconds and 4 git commands to generate.