* elf32-cris.c (elf_cris_copy_indirect_symbol): New function.
[deliverable/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 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.
42ecbf5e
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
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
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
221 test -d ./-p && rmdir ./-p
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.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
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
42ecbf5e
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
42ecbf5e
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
42ecbf5e
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="ar.c"
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
718a6fd8 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 OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files=''
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
42ecbf5e
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.
42ecbf5e 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
42ecbf5e
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
42ecbf5e 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
42ecbf5e 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=*)
42ecbf5e 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
42ecbf5e 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 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=*)
42ecbf5e
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=*)
42ecbf5e 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
42ecbf5e 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
42ecbf5e
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-*)
42ecbf5e 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
42ecbf5e
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
42ecbf5e 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=*)
42ecbf5e 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
42ecbf5e
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)
42ecbf5e 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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 \
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
42ecbf5e 711 site=$ac_optarg ;;
252b5132
RH
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 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=*)
42ecbf5e 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
42ecbf5e
DJ
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
42ecbf5e 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
42ecbf5e
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'`
42ecbf5e
DJ
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
42ecbf5e 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
42ecbf5e 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
42ecbf5e
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=*)
42ecbf5e 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=*)
42ecbf5e 774 x_libraries=$ac_optarg ;;
252b5132 775
42ecbf5e
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
42ecbf5e
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 *)
42ecbf5e
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
42ecbf5e
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; }; }
252b5132
RH
806fi
807
42ecbf5e
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
42ecbf5e
DJ
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
42ecbf5e
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
42ecbf5e
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
e5a52504 848
42ecbf5e
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.
42ecbf5e
DJ
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
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
42ecbf5e
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
42ecbf5e
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
42ecbf5e
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
252b5132 923
42ecbf5e
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.
252b5132 932
42ecbf5e 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
42ecbf5e
DJ
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 937
42ecbf5e 938Defaults for the options are specified in brackets.
ac48eca1 939
42ecbf5e
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
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
ac48eca1 959
42ecbf5e
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'.
ac48eca1 964
42ecbf5e 965For better control, use the options below.
ac48eca1 966
42ecbf5e
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
ac48eca1 981
42ecbf5e 982 cat <<\_ACEOF
252b5132 983
42ecbf5e
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
252b5132 988
42ecbf5e
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
252b5132 994fi
252b5132 995
42ecbf5e 996if test -n "$ac_init_help"; then
252b5132 997
42ecbf5e 998 cat <<\_ACEOF
252b5132 999
42ecbf5e
DJ
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d053aef8 1005 --disable-largefile omit support for large files
d7040cdb
SE
1006 --enable-shared[=PKGS]
1007 build shared libraries [default=yes]
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
42ecbf5e
DJ
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-targets alternative target configurations
1014 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1017 --disable-nls do not use Native Language Support
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
5ba684e2 1020 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1021
1022Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5ba684e2
NC
1028 --with-gnu-ld assume the C compiler uses GNU ld default=no
1029 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1030 --without-libiconv-prefix don't search for libiconv in includedir and libdir
252b5132 1031
42ecbf5e
DJ
1032Some influential environment variables:
1033 CC C compiler command
1034 CFLAGS C compiler flags
1035 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036 nonstandard directory <lib dir>
1037 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038 headers in a nonstandard directory <include dir>
1039 CPP C preprocessor
e5a52504 1040
42ecbf5e
DJ
1041Use these variables to override the choices made by `configure' or to help
1042it to find libraries and programs with nonstandard names/locations.
1043
1044_ACEOF
252b5132
RH
1045fi
1046
42ecbf5e
DJ
1047if test "$ac_init_help" = "recursive"; then
1048 # If there are subdirs, report their specific --help.
1049 ac_popdir=`pwd`
1050 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1051 test -d $ac_dir || continue
1052 ac_builddir=.
1053
1054if test "$ac_dir" != .; then
1055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1056 # A "../" for each directory in $ac_dir_suffix.
1057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1058else
1059 ac_dir_suffix= ac_top_builddir=
1060fi
252b5132 1061
42ecbf5e
DJ
1062case $srcdir in
1063 .) # No --srcdir option. We are building in place.
1064 ac_srcdir=.
1065 if test -z "$ac_top_builddir"; then
1066 ac_top_srcdir=.
1067 else
1068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 1069 fi ;;
42ecbf5e
DJ
1070 [\\/]* | ?:[\\/]* ) # Absolute path.
1071 ac_srcdir=$srcdir$ac_dir_suffix;
1072 ac_top_srcdir=$srcdir ;;
1073 *) # Relative path.
1074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1076esac
1077
42ecbf5e
DJ
1078# Do not use `cd foo && pwd` to compute absolute paths, because
1079# the directories may not exist.
1080case `pwd` in
1081.) ac_abs_builddir="$ac_dir";;
1082*)
1083 case "$ac_dir" in
1084 .) ac_abs_builddir=`pwd`;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1087 esac;;
252b5132 1088esac
42ecbf5e
DJ
1089case $ac_abs_builddir in
1090.) ac_abs_top_builddir=${ac_top_builddir}.;;
1091*)
1092 case ${ac_top_builddir}. in
1093 .) ac_abs_top_builddir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1096 esac;;
1097esac
1098case $ac_abs_builddir in
1099.) ac_abs_srcdir=$ac_srcdir;;
1100*)
1101 case $ac_srcdir in
1102 .) ac_abs_srcdir=$ac_abs_builddir;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1105 esac;;
1106esac
1107case $ac_abs_builddir in
1108.) ac_abs_top_srcdir=$ac_top_srcdir;;
1109*)
1110 case $ac_top_srcdir in
1111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1114 esac;;
d15b04bd 1115esac
5d64ca4e 1116
42ecbf5e
DJ
1117 cd $ac_dir
1118 # Check for guested configure; otherwise get Cygnus style configure.
1119 if test -f $ac_srcdir/configure.gnu; then
1120 echo
1121 $SHELL $ac_srcdir/configure.gnu --help=recursive
1122 elif test -f $ac_srcdir/configure; then
1123 echo
1124 $SHELL $ac_srcdir/configure --help=recursive
1125 elif test -f $ac_srcdir/configure.ac ||
1126 test -f $ac_srcdir/configure.in; then
1127 echo
1128 $ac_configure --help
1129 else
1130 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 fi
7357c5b6 1132 cd $ac_popdir
42ecbf5e
DJ
1133 done
1134fi
5d64ca4e 1135
42ecbf5e
DJ
1136test -n "$ac_init_help" && exit 0
1137if $ac_init_version; then
1138 cat <<\_ACEOF
5d64ca4e 1139
42ecbf5e
DJ
1140Copyright (C) 2003 Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
429cc0ae 1150
42ecbf5e
DJ
1151It was created by $as_me, which was
1152generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1153
42ecbf5e 1154 $ $0 $@
e5a52504 1155
42ecbf5e
DJ
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
e5a52504 1189
42ecbf5e 1190} >&5
ceae3e33 1191
42ecbf5e 1192cat >&5 <<_ACEOF
e5a52504 1193
42ecbf5e
DJ
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
1204# Strip out --silent because we don't want to record it for future runs.
1205# Also quote any args containing shell meta-characters.
1206# Make two passes to allow for proper duplicate-argument suppression.
1207ac_configure_args=
1208ac_configure_args0=
1209ac_configure_args1=
1210ac_sep=
1211ac_must_keep_next=false
1212for ac_pass in 1 2
1213do
1214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
1249done
1250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
1262
1263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270{
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283}
1284 echo
1285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
1314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
1321 sed "/^$/d" confdefs.h | sort
1322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1425 # differences in whitespace do not lead to failure.
1426 ac_old_val_w=`echo x $ac_old_val`
1427 ac_new_val_w=`echo x $ac_new_val`
1428 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1429 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42ecbf5e 1430echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1431 ac_cache_corrupted=:
1432 else
1433 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1434echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1435 eval $ac_var=\$ac_old_val
1436 fi
1437 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1438echo "$as_me: former value: \`$ac_old_val'" >&2;}
1439 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1440echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
1441 fi;;
1442 esac
1443 # Pass precious variables to config.status.
1444 if test "$ac_new_set" = set; then
1445 case $ac_new_val in
1446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1447 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1448 *) ac_arg=$ac_var=$ac_new_val ;;
1449 esac
1450 case " $ac_configure_args " in
1451 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1452 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1453 esac
1454 fi
1455done
1456if $ac_cache_corrupted; then
7a283e07
RW
1457 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1458echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
1459 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463 { (exit 1); exit 1; }; }
1464fi
1465
1466ac_ext=c
1467ac_cpp='$CPP $CPPFLAGS'
1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
7a283e07
RW
1488
1489
1490
42ecbf5e 1491
da594c4a 1492
42ecbf5e
DJ
1493
1494
1495ac_aux_dir=
1496for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1497 if test -f $ac_dir/install-sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install-sh -c"
1500 break
1501 elif test -f $ac_dir/install.sh; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/install.sh -c"
1504 break
1505 elif test -f $ac_dir/shtool; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/shtool install -c"
1508 break
1509 fi
1510done
1511if test -z "$ac_aux_dir"; then
1512 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514 { (exit 1); exit 1; }; }
1515fi
1516ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1517ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1518ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1519
1520# Make sure we can run config.sub.
1521$ac_config_sub sun4 >/dev/null 2>&1 ||
1522 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1525
1526echo "$as_me:$LINENO: checking build system type" >&5
1527echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530else
1531 ac_cv_build_alias=$build_alias
1532test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias=`$ac_config_guess`
1534test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1542
1543fi
1544echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545echo "${ECHO_T}$ac_cv_build" >&6
1546build=$ac_cv_build
1547build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552echo "$as_me:$LINENO: checking host system type" >&5
1553echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
1557 ac_cv_host_alias=$host_alias
1558test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias=$ac_cv_build_alias
1560ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565fi
1566echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567echo "${ECHO_T}$ac_cv_host" >&6
1568host=$ac_cv_host
1569host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574echo "$as_me:$LINENO: checking target system type" >&5
1575echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576if test "${ac_cv_target+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_target_alias=$target_alias
1580test "x$ac_cv_target_alias" = "x" &&
1581 ac_cv_target_alias=$ac_cv_host_alias
1582ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587fi
1588echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589echo "${ECHO_T}$ac_cv_target" >&6
1590target=$ac_cv_target
1591target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596# The aliases save the names the user supplied, while $host etc.
1597# will get canonicalized.
1598test -n "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1600 NONENONEs,x,x, &&
1601 program_prefix=${target_alias}-
1602ac_ext=c
1603ac_cpp='$CPP $CPPFLAGS'
1604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606ac_compiler_gnu=$ac_cv_c_compiler_gnu
1607if test -n "$ac_tool_prefix"; then
1608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1609set dummy ${ac_tool_prefix}gcc; ac_word=$2
1610echo "$as_me:$LINENO: checking for $ac_word" >&5
1611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1617else
1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619for as_dir in $PATH
1620do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 break 2
1628 fi
1629done
1630done
1631
1632fi
1633fi
1634CC=$ac_cv_prog_CC
1635if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637echo "${ECHO_T}$CC" >&6
1638else
1639 echo "$as_me:$LINENO: result: no" >&5
1640echo "${ECHO_T}no" >&6
1641fi
1642
1643fi
1644if test -z "$ac_cv_prog_CC"; then
1645 ac_ct_CC=$CC
1646 # Extract the first word of "gcc", so it can be a program name with args.
1647set dummy gcc; ac_word=$2
1648echo "$as_me:$LINENO: checking for $ac_word" >&5
1649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655else
1656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657for as_dir in $PATH
1658do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_ac_ct_CC="gcc"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 break 2
1666 fi
1667done
1668done
1669
1670fi
1671fi
1672ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675echo "${ECHO_T}$ac_ct_CC" >&6
1676else
1677 echo "$as_me:$LINENO: result: no" >&5
1678echo "${ECHO_T}no" >&6
1679fi
1680
1681 CC=$ac_ct_CC
1682else
1683 CC="$ac_cv_prog_CC"
1684fi
1685
1686if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1689set dummy ${ac_tool_prefix}cc; ac_word=$2
1690echo "$as_me:$LINENO: checking for $ac_word" >&5
1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1697else
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="${ac_tool_prefix}cc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709done
1710done
1711
1712fi
1713fi
1714CC=$ac_cv_prog_CC
1715if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717echo "${ECHO_T}$CC" >&6
1718else
1719 echo "$as_me:$LINENO: result: no" >&5
1720echo "${ECHO_T}no" >&6
1721fi
1722
1723fi
1724if test -z "$ac_cv_prog_CC"; then
1725 ac_ct_CC=$CC
1726 # Extract the first word of "cc", so it can be a program name with args.
1727set dummy cc; ac_word=$2
1728echo "$as_me:$LINENO: checking for $ac_word" >&5
1729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732else
1733 if test -n "$ac_ct_CC"; then
1734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735else
1736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737for as_dir in $PATH
1738do
1739 IFS=$as_save_IFS
1740 test -z "$as_dir" && as_dir=.
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_ac_ct_CC="cc"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 break 2
1746 fi
1747done
1748done
1749
1750fi
1751fi
1752ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753if test -n "$ac_ct_CC"; then
1754 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755echo "${ECHO_T}$ac_ct_CC" >&6
1756else
1757 echo "$as_me:$LINENO: result: no" >&5
1758echo "${ECHO_T}no" >&6
1759fi
1760
1761 CC=$ac_ct_CC
1762else
1763 CC="$ac_cv_prog_CC"
1764fi
1765
1766fi
1767if test -z "$CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769set dummy cc; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1777else
1778 ac_prog_rejected=no
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1787 ac_prog_rejected=yes
1788 continue
1789 fi
1790 ac_cv_prog_CC="cc"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1793 fi
1794done
1795done
1796
1797if test $ac_prog_rejected = yes; then
1798 # We found a bogon in the path, so make sure we never use it.
1799 set dummy $ac_cv_prog_CC
1800 shift
1801 if test $# != 0; then
1802 # We chose a different compiler from the bogus one.
1803 # However, it has the same basename, so the bogon will be chosen
1804 # first if we set CC to just the basename; use the full file name.
1805 shift
1806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807 fi
1808fi
1809fi
1810fi
1811CC=$ac_cv_prog_CC
1812if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814echo "${ECHO_T}$CC" >&6
1815else
1816 echo "$as_me:$LINENO: result: no" >&5
1817echo "${ECHO_T}no" >&6
1818fi
1819
1820fi
1821if test -z "$CC"; then
1822 if test -n "$ac_tool_prefix"; then
1823 for ac_prog in cl
1824 do
1825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1827echo "$as_me:$LINENO: checking for $ac_word" >&5
1828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834else
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846done
1847done
1848
1849fi
1850fi
1851CC=$ac_cv_prog_CC
1852if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854echo "${ECHO_T}$CC" >&6
1855else
1856 echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6
1858fi
1859
1860 test -n "$CC" && break
1861 done
1862fi
1863if test -z "$CC"; then
1864 ac_ct_CC=$CC
1865 for ac_prog in cl
1866do
1867 # Extract the first word of "$ac_prog", so it can be a program name with args.
1868set dummy $ac_prog; ac_word=$2
1869echo "$as_me:$LINENO: checking for $ac_word" >&5
1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876else
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1887 fi
1888done
1889done
1890
1891fi
1892fi
1893ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896echo "${ECHO_T}$ac_ct_CC" >&6
1897else
1898 echo "$as_me:$LINENO: result: no" >&5
1899echo "${ECHO_T}no" >&6
1900fi
1901
1902 test -n "$ac_ct_CC" && break
1903done
1904
1905 CC=$ac_ct_CC
1906fi
1907
1908fi
1909
1910
7a283e07
RW
1911test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1912echo "$as_me: error: in \`$ac_pwd':" >&2;}
1913{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
42ecbf5e
DJ
1914See \`config.log' for more details." >&5
1915echo "$as_me: error: no acceptable C compiler found in \$PATH
1916See \`config.log' for more details." >&2;}
7a283e07 1917 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
1918
1919# Provide some information about the compiler.
1920echo "$as_me:$LINENO:" \
1921 "checking for C compiler version" >&5
1922ac_compiler=`set X $ac_compile; echo $2`
1923{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1924 (eval $ac_compiler --version </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{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1934 (eval $ac_compiler -V </dev/null >&5) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }
1938
1939cat >conftest.$ac_ext <<_ACEOF
1940/* confdefs.h. */
1941_ACEOF
1942cat confdefs.h >>conftest.$ac_ext
1943cat >>conftest.$ac_ext <<_ACEOF
1944/* end confdefs.h. */
1945
1946int
1947main ()
1948{
1949
1950 ;
1951 return 0;
1952}
1953_ACEOF
1954ac_clean_files_save=$ac_clean_files
1955ac_clean_files="$ac_clean_files a.out a.exe b.out"
1956# Try to create an executable without -o first, disregard a.out.
1957# It will help us diagnose broken compilers, and finding out an intuition
1958# of exeext.
1959echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1960echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1961ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1962if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1963 (eval $ac_link_default) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 # Find the output, starting from the most likely. This scheme is
1968# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969# resort.
1970
1971# Be careful to initialize this variable, since it used to be cached.
1972# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1973ac_cv_exeext=
1974# b.out is created by i960 compilers.
1975for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1976do
1977 test -f "$ac_file" || continue
1978 case $ac_file in
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1980 ;;
1981 conftest.$ac_ext )
1982 # This is the source file.
1983 ;;
1984 [ab].out )
1985 # We found the default executable, but exeext='' is most
1986 # certainly right.
1987 break;;
1988 *.* )
1989 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 # FIXME: I believe we export ac_cv_exeext for Libtool,
1991 # but it would be cool to find out if it's true. Does anybody
1992 # maintain Libtool? --akim.
1993 export ac_cv_exeext
1994 break;;
1995 * )
1996 break;;
1997 esac
1998done
1999else
2000 echo "$as_me: failed program was:" >&5
2001sed 's/^/| /' conftest.$ac_ext >&5
2002
7a283e07
RW
2003{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2004echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2005{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2006See \`config.log' for more details." >&5
2007echo "$as_me: error: C compiler cannot create executables
2008See \`config.log' for more details." >&2;}
7a283e07 2009 { (exit 77); exit 77; }; }; }
42ecbf5e
DJ
2010fi
2011
2012ac_exeext=$ac_cv_exeext
2013echo "$as_me:$LINENO: result: $ac_file" >&5
2014echo "${ECHO_T}$ac_file" >&6
2015
2016# Check the compiler produces executables we can run. If not, either
2017# the compiler is broken, or we cross compile.
2018echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2019echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2020# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2021# If not cross compiling, check that we can run a simple program.
2022if test "$cross_compiling" != yes; then
2023 if { ac_try='./$ac_file'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025 (eval $ac_try) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; }; then
2029 cross_compiling=no
2030 else
2031 if test "$cross_compiling" = maybe; then
2032 cross_compiling=yes
2033 else
7a283e07
RW
2034 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
42ecbf5e
DJ
2037If you meant to cross compile, use \`--host'.
2038See \`config.log' for more details." >&5
2039echo "$as_me: error: cannot run C compiled programs.
2040If you meant to cross compile, use \`--host'.
2041See \`config.log' for more details." >&2;}
7a283e07 2042 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2043 fi
2044 fi
2045fi
2046echo "$as_me:$LINENO: result: yes" >&5
2047echo "${ECHO_T}yes" >&6
2048
2049rm -f a.out a.exe conftest$ac_cv_exeext b.out
2050ac_clean_files=$ac_clean_files_save
2051# Check the compiler produces executables we can run. If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2054echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2055echo "$as_me:$LINENO: result: $cross_compiling" >&5
2056echo "${ECHO_T}$cross_compiling" >&6
2057
2058echo "$as_me:$LINENO: checking for suffix of executables" >&5
2059echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2061 (eval $ac_link) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2066# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2067# work properly (i.e., refer to `conftest.exe'), while it won't with
2068# `rm'.
2069for ac_file in conftest.exe conftest conftest.*; do
2070 test -f "$ac_file" || continue
2071 case $ac_file in
2072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074 export ac_cv_exeext
2075 break;;
2076 * ) break;;
2077 esac
2078done
2079else
7a283e07
RW
2080 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2081echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
42ecbf5e
DJ
2083See \`config.log' for more details." >&5
2084echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2085See \`config.log' for more details." >&2;}
7a283e07 2086 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2087fi
2088
2089rm -f conftest$ac_cv_exeext
2090echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2091echo "${ECHO_T}$ac_cv_exeext" >&6
2092
2093rm -f conftest.$ac_ext
2094EXEEXT=$ac_cv_exeext
2095ac_exeext=$EXEEXT
2096echo "$as_me:$LINENO: checking for suffix of object files" >&5
2097echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2098if test "${ac_cv_objext+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101 cat >conftest.$ac_ext <<_ACEOF
2102/* confdefs.h. */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
2106/* end confdefs.h. */
2107
2108int
2109main ()
2110{
2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116rm -f conftest.o conftest.obj
2117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118 (eval $ac_compile) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; then
2122 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2123 case $ac_file in
2124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2126 break;;
2127 esac
2128done
2129else
2130 echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
7a283e07
RW
2133{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2134echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2135{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2136See \`config.log' for more details." >&5
2137echo "$as_me: error: cannot compute suffix of object files: cannot compile
2138See \`config.log' for more details." >&2;}
7a283e07 2139 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2140fi
2141
2142rm -f conftest.$ac_cv_objext conftest.$ac_ext
2143fi
2144echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2145echo "${ECHO_T}$ac_cv_objext" >&6
2146OBJEXT=$ac_cv_objext
2147ac_objext=$OBJEXT
2148echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2149echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2150if test "${ac_cv_c_compiler_gnu+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153 cat >conftest.$ac_ext <<_ACEOF
2154/* confdefs.h. */
2155_ACEOF
2156cat confdefs.h >>conftest.$ac_ext
2157cat >>conftest.$ac_ext <<_ACEOF
2158/* end confdefs.h. */
2159
2160int
2161main ()
2162{
2163#ifndef __GNUC__
2164 choke me
2165#endif
2166
2167 ;
2168 return 0;
2169}
2170_ACEOF
2171rm -f conftest.$ac_objext
2172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
7357c5b6
AM
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
42ecbf5e
DJ
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_compiler_gnu=yes
2194else
2195 echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198ac_compiler_gnu=no
2199fi
2200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2201ac_cv_c_compiler_gnu=$ac_compiler_gnu
2202
2203fi
2204echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2205echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2206GCC=`test $ac_compiler_gnu = yes && echo yes`
2207ac_test_CFLAGS=${CFLAGS+set}
2208ac_save_CFLAGS=$CFLAGS
2209CFLAGS="-g"
2210echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2211echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2212if test "${ac_cv_prog_cc_g+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215 cat >conftest.$ac_ext <<_ACEOF
2216/* confdefs.h. */
2217_ACEOF
2218cat confdefs.h >>conftest.$ac_ext
2219cat >>conftest.$ac_ext <<_ACEOF
2220/* end confdefs.h. */
2221
2222int
2223main ()
2224{
2225
2226 ;
2227 return 0;
2228}
2229_ACEOF
2230rm -f conftest.$ac_objext
2231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2233 ac_status=$?
2234 grep -v '^ *+' conftest.er1 >conftest.err
2235 rm -f conftest.er1
2236 cat conftest.err >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
7357c5b6
AM
2239 { ac_try='test -z "$ac_c_werror_flag"
2240 || test ! -s conftest.err'
42ecbf5e
DJ
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2252 ac_cv_prog_cc_g=yes
2253else
2254 echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257ac_cv_prog_cc_g=no
2258fi
2259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2260fi
2261echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2262echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2263if test "$ac_test_CFLAGS" = set; then
2264 CFLAGS=$ac_save_CFLAGS
2265elif test $ac_cv_prog_cc_g = yes; then
2266 if test "$GCC" = yes; then
2267 CFLAGS="-g -O2"
2268 else
2269 CFLAGS="-g"
2270 fi
2271else
2272 if test "$GCC" = yes; then
2273 CFLAGS="-O2"
2274 else
2275 CFLAGS=
2276 fi
2277fi
2278echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2279echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2280if test "${ac_cv_prog_cc_stdc+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283 ac_cv_prog_cc_stdc=no
2284ac_save_CC=$CC
2285cat >conftest.$ac_ext <<_ACEOF
2286/* confdefs.h. */
2287_ACEOF
2288cat confdefs.h >>conftest.$ac_ext
2289cat >>conftest.$ac_ext <<_ACEOF
2290/* end confdefs.h. */
2291#include <stdarg.h>
2292#include <stdio.h>
2293#include <sys/types.h>
2294#include <sys/stat.h>
2295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2296struct buf { int x; };
2297FILE * (*rcsopen) (struct buf *, struct stat *, int);
2298static char *e (p, i)
2299 char **p;
2300 int i;
2301{
2302 return p[i];
2303}
2304static char *f (char * (*g) (char **, int), char **p, ...)
2305{
2306 char *s;
2307 va_list v;
2308 va_start (v,p);
2309 s = g (p, va_arg (v,int));
2310 va_end (v);
2311 return s;
2312}
2313
2314/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2315 function prototypes and stuff, but not '\xHH' hex character constants.
2316 These don't provoke an error unfortunately, instead are silently treated
2317 as 'x'. The following induces an error, until -std1 is added to get
2318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2319 array size at least. It's necessary to write '\x00'==0 to get something
2320 that's true only with -std1. */
2321int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2322
2323int test (int i, double x);
2324struct s1 {int (*f) (int a);};
2325struct s2 {int (*f) (double a);};
2326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2327int argc;
2328char **argv;
2329int
2330main ()
2331{
2332return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2333 ;
2334 return 0;
2335}
2336_ACEOF
2337# Don't try gcc -ansi; that turns off useful extensions and
2338# breaks some systems' header files.
2339# AIX -qlanglvl=ansi
2340# Ultrix and OSF/1 -std1
2341# HP-UX 10.20 and later -Ae
2342# HP-UX older versions -Aa -D_HPUX_SOURCE
2343# SVR4 -Xc -D__EXTENSIONS__
2344for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2345do
2346 CC="$ac_save_CC $ac_arg"
2347 rm -f conftest.$ac_objext
2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>conftest.er1
2350 ac_status=$?
2351 grep -v '^ *+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
7357c5b6
AM
2356 { ac_try='test -z "$ac_c_werror_flag"
2357 || test ! -s conftest.err'
42ecbf5e
DJ
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 ac_cv_prog_cc_stdc=$ac_arg
2370break
2371else
2372 echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375fi
2376rm -f conftest.err conftest.$ac_objext
2377done
2378rm -f conftest.$ac_ext conftest.$ac_objext
2379CC=$ac_save_CC
2380
2381fi
2382
2383case "x$ac_cv_prog_cc_stdc" in
2384 x|xno)
2385 echo "$as_me:$LINENO: result: none needed" >&5
2386echo "${ECHO_T}none needed" >&6 ;;
2387 *)
2388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2389echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2390 CC="$CC $ac_cv_prog_cc_stdc" ;;
2391esac
2392
2393# Some people use a C++ compiler to compile C. Since we use `exit',
2394# in C++ we need to declare it. In case someone uses the same compiler
2395# for both compiling C and C++ we need to have the C++ compiler decide
2396# the declaration of exit, since it's the most demanding environment.
2397cat >conftest.$ac_ext <<_ACEOF
2398#ifndef __cplusplus
2399 choke me
2400#endif
2401_ACEOF
2402rm -f conftest.$ac_objext
2403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
7357c5b6
AM
2411 { ac_try='test -z "$ac_c_werror_flag"
2412 || test ! -s conftest.err'
42ecbf5e
DJ
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 for ac_declaration in \
2425 '' \
2426 'extern "C" void std::exit (int) throw (); using std::exit;' \
2427 'extern "C" void std::exit (int); using std::exit;' \
2428 'extern "C" void exit (int) throw ();' \
2429 'extern "C" void exit (int);' \
2430 'void exit (int);'
2431do
2432 cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h. */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
2437/* end confdefs.h. */
2438$ac_declaration
2439#include <stdlib.h>
2440int
2441main ()
2442{
2443exit (42);
2444 ;
2445 return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext
2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
7357c5b6
AM
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
42ecbf5e
DJ
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 :
2471else
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475continue
2476fi
2477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h. */
2484$ac_declaration
2485int
2486main ()
2487{
2488exit (42);
2489 ;
2490 return 0;
2491}
2492_ACEOF
2493rm -f conftest.$ac_objext
2494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
7357c5b6
AM
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
42ecbf5e
DJ
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 break
2516else
2517 echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520fi
2521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522done
2523rm -f conftest*
2524if test -n "$ac_declaration"; then
2525 echo '#ifdef __cplusplus' >>confdefs.h
2526 echo $ac_declaration >>confdefs.h
2527 echo '#endif' >>confdefs.h
2528fi
2529
2530else
2531 echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534fi
2535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536ac_ext=c
2537ac_cpp='$CPP $CPPFLAGS'
2538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541
2542
2543echo "$as_me:$LINENO: checking for library containing strerror" >&5
2544echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2545if test "${ac_cv_search_strerror+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548 ac_func_search_save_LIBS=$LIBS
2549ac_cv_search_strerror=no
2550cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
2556
2557/* Override any gcc2 internal prototype to avoid an error. */
2558#ifdef __cplusplus
2559extern "C"
2560#endif
2561/* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2563char strerror ();
2564int
2565main ()
2566{
2567strerror ();
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.$ac_objext conftest$ac_exeext
2573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2574 (eval $ac_link) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
7357c5b6
AM
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
42ecbf5e
DJ
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest$ac_exeext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 ac_cv_search_strerror="none required"
2595else
2596 echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599fi
2600rm -f conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2602if test "$ac_cv_search_strerror" = no; then
2603 for ac_lib in cposix; do
2604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2605 cat >conftest.$ac_ext <<_ACEOF
2606/* confdefs.h. */
2607_ACEOF
2608cat confdefs.h >>conftest.$ac_ext
2609cat >>conftest.$ac_ext <<_ACEOF
2610/* end confdefs.h. */
2611
2612/* Override any gcc2 internal prototype to avoid an error. */
2613#ifdef __cplusplus
2614extern "C"
2615#endif
2616/* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */
2618char strerror ();
2619int
2620main ()
2621{
2622strerror ();
2623 ;
2624 return 0;
2625}
2626_ACEOF
2627rm -f conftest.$ac_objext conftest$ac_exeext
2628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2629 (eval $ac_link) 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
7357c5b6
AM
2636 { ac_try='test -z "$ac_c_werror_flag"
2637 || test ! -s conftest.err'
42ecbf5e
DJ
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest$ac_exeext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_search_strerror="-l$ac_lib"
2650break
2651else
2652 echo "$as_me: failed program was:" >&5
2653sed 's/^/| /' conftest.$ac_ext >&5
2654
2655fi
2656rm -f conftest.err conftest.$ac_objext \
2657 conftest$ac_exeext conftest.$ac_ext
2658 done
2659fi
2660LIBS=$ac_func_search_save_LIBS
2661fi
2662echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2663echo "${ECHO_T}$ac_cv_search_strerror" >&6
2664if test "$ac_cv_search_strerror" != no; then
2665 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2666
2667fi
2668
2669
2670BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2671am__api_version="1.9"
2672# Find a good install program. We prefer a C program (faster),
2673# so one script is as good as another. But avoid the broken or
2674# incompatible versions:
2675# SysV /etc/install, /usr/sbin/install
2676# SunOS /usr/etc/install
2677# IRIX /sbin/install
2678# AIX /bin/install
2679# AmigaOS /C/install, which installs bootblocks on floppy discs
2680# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683# OS/2's system install, which has a completely different semantic
2684# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2685# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2686echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2687echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2688if test -z "$INSTALL"; then
2689if test "${ac_cv_path_install+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 # Account for people who put trailing slashes in PATH elements.
2698case $as_dir/ in
2699 ./ | .// | /cC/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2702 /usr/ucb/* ) ;;
2703 *)
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2706 # by default.
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2710 if test $ac_prog = install &&
2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2712 # AIX install. It has an incompatible calling convention.
2713 :
42ecbf5e
DJ
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2717 :
252b5132 2718 else
58c85be7
RW
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2722 mkdir conftest.dir
2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2727 then
2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 break 3
2730 fi
252b5132
RH
2731 fi
2732 fi
d15b04bd 2733 done
42ecbf5e
DJ
2734 done
2735 ;;
2736esac
2737done
2738
58c85be7 2739rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2740
2741fi
2742 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2743 INSTALL=$ac_cv_path_install
252b5132 2744 else
58c85be7
RW
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
252b5132 2747 # break other packages using the cache if that directory is
58c85be7 2748 # removed, or if the value is a relative name.
42ecbf5e 2749 INSTALL=$ac_install_sh
252b5132
RH
2750 fi
2751fi
42ecbf5e
DJ
2752echo "$as_me:$LINENO: result: $INSTALL" >&5
2753echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2754
2755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756# It thinks the first close brace ends the variable substitution.
2757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758
42ecbf5e 2759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2760
2761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762
42ecbf5e
DJ
2763echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2764echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2765# Just in case
2766sleep 1
42ecbf5e 2767echo timestamp > conftest.file
252b5132
RH
2768# Do `set' in a subshell so we don't clobber the current shell's
2769# arguments. Must try -L first in case configure is actually a
2770# symlink; some systems play weird games with the mod time of symlinks
2771# (eg FreeBSD returns the mod time of the symlink's containing
2772# directory).
2773if (
42ecbf5e 2774 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2775 if test "$*" = "X"; then
2776 # -L didn't work.
42ecbf5e 2777 set X `ls -t $srcdir/configure conftest.file`
252b5132 2778 fi
42ecbf5e
DJ
2779 rm -f conftest.file
2780 if test "$*" != "X $srcdir/configure conftest.file" \
2781 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2782
2783 # If neither matched, then we have a broken ls. This can happen
2784 # if, for instance, CONFIG_SHELL is bash and it inherits a
2785 # broken ls alias from the environment. This has actually
2786 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2787 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2788alias in your environment" >&5
2789echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2790alias in your environment" >&2;}
2791 { (exit 1); exit 1; }; }
252b5132
RH
2792 fi
2793
42ecbf5e 2794 test "$2" = conftest.file
252b5132
RH
2795 )
2796then
2797 # Ok.
2798 :
2799else
42ecbf5e
DJ
2800 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2801Check your system clock" >&5
2802echo "$as_me: error: newly created file is older than distributed files!
2803Check your system clock" >&2;}
2804 { (exit 1); exit 1; }; }
2805fi
2806echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
2808test "$program_prefix" != NONE &&
2809 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2810# Use a double $ so make ignores it.
2811test "$program_suffix" != NONE &&
2812 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2813# Double any \ or $. echo might interpret backslashes.
2814# By default was `s,x,x', remove it if useless.
2815cat <<\_ACEOF >conftest.sed
2816s/[\\$]/&&/g;s/;s,x,x,$//
2817_ACEOF
2818program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2819rm conftest.sed
2820
2821# expand $ac_aux_dir to an absolute path
2822am_aux_dir=`cd $ac_aux_dir && pwd`
2823
2824test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2825# Use eval to expand $SHELL
2826if eval "$MISSING --run true"; then
2827 am_missing_run="$MISSING --run "
2828else
2829 am_missing_run=
2830 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2831echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2832fi
2833
2834if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2835 # We used to keeping the `.' as first argument, in order to
2836 # allow $(mkdir_p) to be used without argument. As in
2837 # $(mkdir_p) $(somedir)
2838 # where $(somedir) is conditionally defined. However this is wrong
2839 # for two reasons:
2840 # 1. if the package is installed by a user who cannot write `.'
2841 # make install will fail,
2842 # 2. the above comment should most certainly read
2843 # $(mkdir_p) $(DESTDIR)$(somedir)
2844 # so it does not work when $(somedir) is undefined and
2845 # $(DESTDIR) is not.
2846 # To support the latter case, we have to write
2847 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2848 # so the `.' trick is pointless.
2849 mkdir_p='mkdir -p --'
2850else
2851 # On NextStep and OpenStep, the `mkdir' command does not
2852 # recognize any option. It will interpret all options as
2853 # directories to create, and then abort because `.' already
2854 # exists.
2855 for d in ./-p ./--version;
2856 do
2857 test -d $d && rmdir $d
2858 done
2859 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2860 if test -f "$ac_aux_dir/mkinstalldirs"; then
2861 mkdir_p='$(mkinstalldirs)'
2862 else
2863 mkdir_p='$(install_sh) -d'
2864 fi
2865fi
2866
2867for ac_prog in gawk mawk nawk awk
2868do
2869 # Extract the first word of "$ac_prog", so it can be a program name with args.
2870set dummy $ac_prog; ac_word=$2
2871echo "$as_me:$LINENO: checking for $ac_word" >&5
2872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873if test "${ac_cv_prog_AWK+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876 if test -n "$AWK"; then
2877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_AWK="$ac_prog"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890done
2891done
2892
2893fi
2894fi
2895AWK=$ac_cv_prog_AWK
2896if test -n "$AWK"; then
2897 echo "$as_me:$LINENO: result: $AWK" >&5
2898echo "${ECHO_T}$AWK" >&6
2899else
2900 echo "$as_me:$LINENO: result: no" >&5
2901echo "${ECHO_T}no" >&6
2902fi
2903
2904 test -n "$AWK" && break
2905done
2906
2907echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2908echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2909set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2910if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913 cat >conftest.make <<\_ACEOF
2914all:
2915 @echo 'ac_maketemp="$(MAKE)"'
2916_ACEOF
2917# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2918eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2919if test -n "$ac_maketemp"; then
2920 eval ac_cv_prog_make_${ac_make}_set=yes
2921else
2922 eval ac_cv_prog_make_${ac_make}_set=no
2923fi
2924rm -f conftest.make
2925fi
2926if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2927 echo "$as_me:$LINENO: result: yes" >&5
2928echo "${ECHO_T}yes" >&6
2929 SET_MAKE=
2930else
2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
2933 SET_MAKE="MAKE=${MAKE-make}"
2934fi
2935
2936rm -rf .tst 2>/dev/null
2937mkdir .tst 2>/dev/null
2938if test -d .tst; then
2939 am__leading_dot=.
2940else
2941 am__leading_dot=_
2942fi
2943rmdir .tst 2>/dev/null
2944
2945DEPDIR="${am__leading_dot}deps"
2946
2947 ac_config_commands="$ac_config_commands depfiles"
2948
2949
2950am_make=${MAKE-make}
2951cat > confinc << 'END'
2952am__doit:
2953 @echo done
2954.PHONY: am__doit
2955END
2956# If we don't find an include directive, just comment out the code.
2957echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2958echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2959am__include="#"
2960am__quote=
2961_am_result=none
2962# First try GNU make style include.
2963echo "include confinc" > confmf
2964# We grep out `Entering directory' and `Leaving directory'
2965# messages which can occur if `w' ends up in MAKEFLAGS.
2966# In particular we don't look at `^make:' because GNU make might
2967# be invoked under some other name (usually "gmake"), in which
2968# case it prints its new name instead of `make'.
2969if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2970 am__include=include
2971 am__quote=
2972 _am_result=GNU
2973fi
2974# Now try BSD make style include.
2975if test "$am__include" = "#"; then
2976 echo '.include "confinc"' > confmf
2977 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2978 am__include=.include
2979 am__quote="\""
2980 _am_result=BSD
2981 fi
2982fi
2983
2984
2985echo "$as_me:$LINENO: result: $_am_result" >&5
2986echo "${ECHO_T}$_am_result" >&6
2987rm -f confinc confmf
2988
2989# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2990if test "${enable_dependency_tracking+set}" = set; then
2991 enableval="$enable_dependency_tracking"
2992
2993fi;
2994if test "x$enable_dependency_tracking" != xno; then
2995 am_depcomp="$ac_aux_dir/depcomp"
2996 AMDEPBACKSLASH='\'
2997fi
2998
2999
3000if test "x$enable_dependency_tracking" != xno; then
3001 AMDEP_TRUE=
3002 AMDEP_FALSE='#'
3003else
3004 AMDEP_TRUE='#'
3005 AMDEP_FALSE=
3006fi
3007
3008
3009
3010# test to see if srcdir already configured
3011if test "`cd $srcdir && pwd`" != "`pwd`" &&
3012 test -f $srcdir/config.status; then
3013 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3014echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3015 { (exit 1); exit 1; }; }
3016fi
3017
3018# test whether we have cygpath
3019if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3022 else
3023 CYGPATH_W=echo
3024 fi
3025fi
3026
3027
3028# Define the identity of the package.
3029 PACKAGE=binutils
3030 VERSION=${BFD_VERSION}
3031
3032
3033cat >>confdefs.h <<_ACEOF
3034#define PACKAGE "$PACKAGE"
3035_ACEOF
3036
3037
3038cat >>confdefs.h <<_ACEOF
3039#define VERSION "$VERSION"
3040_ACEOF
3041
3042# Some tools Automake needs.
3043
3044ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045
3046
3047AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048
3049
3050AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051
3052
3053AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054
3055
3056MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057
3058install_sh=${install_sh-"$am_aux_dir/install-sh"}
3059
3060# Installed binaries are usually stripped using `strip' when the user
3061# run `make install-strip'. However `strip' might not be the right
3062# tool to use in cross-compilation environments, therefore Automake
3063# will honor the `STRIP' environment variable to overrule this program.
3064if test "$cross_compiling" != no; then
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3067set dummy ${ac_tool_prefix}strip; ac_word=$2
3068echo "$as_me:$LINENO: checking for $ac_word" >&5
3069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070if test "${ac_cv_prog_STRIP+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 if test -n "$STRIP"; then
3074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3086 fi
3087done
3088done
3089
252b5132 3090fi
42ecbf5e
DJ
3091fi
3092STRIP=$ac_cv_prog_STRIP
3093if test -n "$STRIP"; then
3094 echo "$as_me:$LINENO: result: $STRIP" >&5
3095echo "${ECHO_T}$STRIP" >&6
d15b04bd 3096else
42ecbf5e
DJ
3097 echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
d15b04bd 3099fi
d15b04bd 3100
42ecbf5e
DJ
3101fi
3102if test -z "$ac_cv_prog_STRIP"; then
3103 ac_ct_STRIP=$STRIP
3104 # Extract the first word of "strip", so it can be a program name with args.
3105set dummy strip; ac_word=$2
3106echo "$as_me:$LINENO: checking for $ac_word" >&5
3107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 3110else
42ecbf5e
DJ
3111 if test -n "$ac_ct_STRIP"; then
3112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3113else
42ecbf5e
DJ
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_STRIP="strip"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125done
3126done
3127
3128 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3129fi
252b5132 3130fi
42ecbf5e
DJ
3131ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3132if test -n "$ac_ct_STRIP"; then
3133 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3134echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3135else
42ecbf5e
DJ
3136 echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
252b5132
RH
3138fi
3139
42ecbf5e
DJ
3140 STRIP=$ac_ct_STRIP
3141else
3142 STRIP="$ac_cv_prog_STRIP"
3143fi
252b5132 3144
42ecbf5e
DJ
3145fi
3146INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3147
42ecbf5e
DJ
3148# We need awk for the "check" target. The system "awk" is bad on
3149# some platforms.
3150# Always define AMTAR for backward compatibility.
252b5132 3151
42ecbf5e 3152AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3153
42ecbf5e 3154am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3155
3156
3157
252b5132 3158
42ecbf5e
DJ
3159depcc="$CC" am_compiler_list=
3160
3161echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3162echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3163if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3165else
42ecbf5e
DJ
3166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3167 # We make a subdir and do the tests there. Otherwise we can end up
3168 # making bogus files that we don't know about and never remove. For
3169 # instance it was reported that on HP-UX the gcc test will end up
3170 # making a dummy file named `D' -- because `-MD' means `put the output
3171 # in D'.
3172 mkdir conftest.dir
3173 # Copy depcomp to subdir because otherwise we won't find it if we're
3174 # using a relative directory.
3175 cp "$am_depcomp" conftest.dir
3176 cd conftest.dir
3177 # We will build objects and dependencies in a subdirectory because
3178 # it helps to detect inapplicable dependency modes. For instance
3179 # both Tru64's cc and ICC support -MD to output dependencies as a
3180 # side effect of compilation, but ICC will put the dependencies in
3181 # the current directory while Tru64 will put them in the object
3182 # directory.
3183 mkdir sub
252b5132 3184
42ecbf5e
DJ
3185 am_cv_CC_dependencies_compiler_type=none
3186 if test "$am_compiler_list" = ""; then
3187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3188 fi
3189 for depmode in $am_compiler_list; do
3190 # Setup a source with many dependencies, because some compilers
3191 # like to wrap large dependency lists on column 80 (with \), and
3192 # we should not choose a depcomp mode which is confused by this.
3193 #
3194 # We need to recreate these files for each test, as the compiler may
3195 # overwrite some of them when testing with obscure command lines.
3196 # This happens at least with the AIX C compiler.
3197 : > sub/conftest.c
3198 for i in 1 2 3 4 5 6; do
3199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3201 # Solaris 8's {/usr,}/bin/sh.
3202 touch sub/conftst$i.h
3203 done
3204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3205
3206 case $depmode in
3207 nosideeffect)
3208 # after this tag, mechanisms are not by side-effect, so they'll
3209 # only be used when explicitly requested
3210 if test "x$enable_dependency_tracking" = xyes; then
3211 continue
3212 else
3213 break
3214 fi
3215 ;;
3216 none) break ;;
3217 esac
3218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3219 # mode. It turns out that the SunPro C++ compiler does not properly
3220 # handle `-M -o', and we need to detect this.
3221 if depmode=$depmode \
3222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3225 >/dev/null 2>conftest.err &&
3226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3227 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3229 # icc doesn't choke on unknown options, it will just issue warnings
3230 # or remarks (even with -Werror). So we grep stderr for any message
3231 # that says an option was ignored or not supported.
3232 # When given -MP, icc 7.0 and 7.1 complain thusly:
3233 # icc: Command line warning: ignoring option '-M'; no argument required
3234 # The diagnosis changed in icc 8.0:
3235 # icc: Command line remark: option '-MP' not supported
3236 if (grep 'ignoring option' conftest.err ||
3237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3238 am_cv_CC_dependencies_compiler_type=$depmode
3239 break
3240 fi
3241 fi
3242 done
3243
3244 cd ..
3245 rm -rf conftest.dir
252b5132 3246else
42ecbf5e 3247 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3248fi
3249
252b5132 3250fi
42ecbf5e
DJ
3251echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3252echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3253CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3254
3255
252b5132 3256
42ecbf5e
DJ
3257if
3258 test "x$enable_dependency_tracking" != xno \
3259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3260 am__fastdepCC_TRUE=
3261 am__fastdepCC_FALSE='#'
252b5132 3262else
42ecbf5e
DJ
3263 am__fastdepCC_TRUE='#'
3264 am__fastdepCC_FALSE=
252b5132
RH
3265fi
3266
3267
3268
42ecbf5e 3269
d45dc31f
SE
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3277set dummy ${ac_tool_prefix}gcc; ac_word=$2
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280if test "${ac_cv_prog_CC+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3282else
d45dc31f
SE
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3285else
d45dc31f
SE
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297done
3298done
ceae3e33 3299
d45dc31f
SE
3300fi
3301fi
3302CC=$ac_cv_prog_CC
3303if test -n "$CC"; then
3304 echo "$as_me:$LINENO: result: $CC" >&5
3305echo "${ECHO_T}$CC" >&6
252b5132 3306else
d45dc31f
SE
3307 echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
252b5132 3309fi
d45dc31f
SE
3310
3311fi
3312if test -z "$ac_cv_prog_CC"; then
3313 ac_ct_CC=$CC
3314 # Extract the first word of "gcc", so it can be a program name with args.
3315set dummy gcc; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3319 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3320else
d45dc31f
SE
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3323else
d45dc31f
SE
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_CC="gcc"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
3337
252b5132
RH
3338fi
3339fi
d45dc31f
SE
3340ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341if test -n "$ac_ct_CC"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3344else
42ecbf5e
DJ
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
252b5132 3347fi
d45dc31f
SE
3348
3349 CC=$ac_ct_CC
3350else
3351 CC="$ac_cv_prog_CC"
3352fi
3353
3354if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357set dummy ${ac_tool_prefix}cc; ac_word=$2
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3361 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3362else
d45dc31f
SE
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3365else
d45dc31f
SE
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}cc"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378done
3379
252b5132
RH
3380fi
3381fi
d45dc31f
SE
3382CC=$ac_cv_prog_CC
3383if test -n "$CC"; then
3384 echo "$as_me:$LINENO: result: $CC" >&5
3385echo "${ECHO_T}$CC" >&6
ac48eca1 3386else
d45dc31f
SE
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
ac48eca1 3389fi
ac48eca1 3390
d45dc31f
SE
3391fi
3392if test -z "$ac_cv_prog_CC"; then
3393 ac_ct_CC=$CC
3394 # Extract the first word of "cc", so it can be a program name with args.
3395set dummy cc; ac_word=$2
3396echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3399 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3400else
d45dc31f
SE
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3403else
d45dc31f
SE
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_CC="cc"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415done
3416done
3417
252b5132 3418fi
d45dc31f
SE
3419fi
3420ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421if test -n "$ac_ct_CC"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3423echo "${ECHO_T}$ac_ct_CC" >&6
3424else
3425 echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6
252b5132
RH
3427fi
3428
d45dc31f
SE
3429 CC=$ac_ct_CC
3430else
3431 CC="$ac_cv_prog_CC"
3432fi
252b5132 3433
d45dc31f
SE
3434fi
3435if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437set dummy cc; ac_word=$2
3438echo "$as_me:$LINENO: checking for $ac_word" >&5
3439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440if test "${ac_cv_prog_CC+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3442else
d45dc31f
SE
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445else
3446 ac_prog_rejected=no
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3457 fi
3458 ac_cv_prog_CC="cc"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462done
3463done
3464
3465if test $ac_prog_rejected = yes; then
3466 # We found a bogon in the path, so make sure we never use it.
3467 set dummy $ac_cv_prog_CC
3468 shift
3469 if test $# != 0; then
3470 # We chose a different compiler from the bogus one.
3471 # However, it has the same basename, so the bogon will be chosen
3472 # first if we set CC to just the basename; use the full file name.
3473 shift
3474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 fi
3476fi
3477fi
3478fi
3479CC=$ac_cv_prog_CC
3480if test -n "$CC"; then
3481 echo "$as_me:$LINENO: result: $CC" >&5
3482echo "${ECHO_T}$CC" >&6
3483else
3484 echo "$as_me:$LINENO: result: no" >&5
3485echo "${ECHO_T}no" >&6
252b5132
RH
3486fi
3487
d45dc31f
SE
3488fi
3489if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 for ac_prog in cl
3492 do
3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495echo "$as_me:$LINENO: checking for $ac_word" >&5
3496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3498 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3499else
d45dc31f
SE
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514done
3515done
ac48eca1 3516
d45dc31f
SE
3517fi
3518fi
3519CC=$ac_cv_prog_CC
3520if test -n "$CC"; then
3521 echo "$as_me:$LINENO: result: $CC" >&5
3522echo "${ECHO_T}$CC" >&6
3523else
3524 echo "$as_me:$LINENO: result: no" >&5
3525echo "${ECHO_T}no" >&6
3526fi
ac48eca1 3527
d45dc31f
SE
3528 test -n "$CC" && break
3529 done
3530fi
3531if test -z "$CC"; then
3532 ac_ct_CC=$CC
3533 for ac_prog in cl
3534do
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536set dummy $ac_prog; ac_word=$2
3537echo "$as_me:$LINENO: checking for $ac_word" >&5
3538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544else
3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH
3547do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556done
3557done
ac48eca1 3558
d45dc31f
SE
3559fi
3560fi
3561ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562if test -n "$ac_ct_CC"; then
3563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3564echo "${ECHO_T}$ac_ct_CC" >&6
3565else
3566 echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
3568fi
ac48eca1 3569
d45dc31f
SE
3570 test -n "$ac_ct_CC" && break
3571done
ac48eca1 3572
d45dc31f
SE
3573 CC=$ac_ct_CC
3574fi
ac48eca1
AO
3575
3576fi
ac48eca1 3577
ac48eca1 3578
7a283e07
RW
3579test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3580echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d45dc31f
SE
3582See \`config.log' for more details." >&5
3583echo "$as_me: error: no acceptable C compiler found in \$PATH
3584See \`config.log' for more details." >&2;}
7a283e07 3585 { (exit 1); exit 1; }; }; }
ac48eca1 3586
d45dc31f
SE
3587# Provide some information about the compiler.
3588echo "$as_me:$LINENO:" \
3589 "checking for C compiler version" >&5
3590ac_compiler=`set X $ac_compile; echo $2`
3591{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3592 (eval $ac_compiler --version </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); }
3601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3602 (eval $ac_compiler -V </dev/null >&5) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }
ac48eca1 3606
d45dc31f
SE
3607echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3608echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3609if test "${ac_cv_c_compiler_gnu+set}" = set; then
bdcfeba5
NC
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
d45dc31f
SE
3612 cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
bdcfeba5 3618
d45dc31f
SE
3619int
3620main ()
3621{
3622#ifndef __GNUC__
3623 choke me
3624#endif
bdcfeba5 3625
d45dc31f
SE
3626 ;
3627 return 0;
3628}
3629_ACEOF
3630rm -f conftest.$ac_objext
3631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
7357c5b6
AM
3639 { ac_try='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
d45dc31f
SE
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_compiler_gnu=yes
3653else
3654 echo "$as_me: failed program was:" >&5
3655sed 's/^/| /' conftest.$ac_ext >&5
bdcfeba5 3656
d45dc31f 3657ac_compiler_gnu=no
bdcfeba5 3658fi
d45dc31f
SE
3659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3661
bdcfeba5 3662fi
d45dc31f
SE
3663echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3664echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3665GCC=`test $ac_compiler_gnu = yes && echo yes`
3666ac_test_CFLAGS=${CFLAGS+set}
3667ac_save_CFLAGS=$CFLAGS
3668CFLAGS="-g"
3669echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3670echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3671if test "${ac_cv_prog_cc_g+set}" = set; then
42ecbf5e 3672 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3673else
d45dc31f
SE
3674 cat >conftest.$ac_ext <<_ACEOF
3675/* confdefs.h. */
3676_ACEOF
3677cat confdefs.h >>conftest.$ac_ext
3678cat >>conftest.$ac_ext <<_ACEOF
3679/* end confdefs.h. */
ac48eca1 3680
d45dc31f
SE
3681int
3682main ()
3683{
ac48eca1 3684
d45dc31f
SE
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689rm -f conftest.$ac_objext
3690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
7357c5b6
AM
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
d45dc31f
SE
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_prog_cc_g=yes
ac48eca1 3712else
d45dc31f
SE
3713 echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3715
d45dc31f 3716ac_cv_prog_cc_g=no
ac48eca1 3717fi
d45dc31f 3718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3719fi
d45dc31f
SE
3720echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3721echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3722if test "$ac_test_CFLAGS" = set; then
3723 CFLAGS=$ac_save_CFLAGS
3724elif test $ac_cv_prog_cc_g = yes; then
3725 if test "$GCC" = yes; then
3726 CFLAGS="-g -O2"
ac48eca1 3727 else
d45dc31f 3728 CFLAGS="-g"
42ecbf5e 3729 fi
ac48eca1 3730else
d45dc31f
SE
3731 if test "$GCC" = yes; then
3732 CFLAGS="-O2"
3733 else
3734 CFLAGS=
42ecbf5e 3735 fi
ac48eca1 3736fi
d45dc31f
SE
3737echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3738echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3739if test "${ac_cv_prog_cc_stdc+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 ac_cv_prog_cc_stdc=no
3743ac_save_CC=$CC
3744cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
3745/* confdefs.h. */
3746_ACEOF
3747cat confdefs.h >>conftest.$ac_ext
3748cat >>conftest.$ac_ext <<_ACEOF
3749/* end confdefs.h. */
d45dc31f
SE
3750#include <stdarg.h>
3751#include <stdio.h>
3752#include <sys/types.h>
3753#include <sys/stat.h>
3754/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3755struct buf { int x; };
3756FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757static char *e (p, i)
3758 char **p;
3759 int i;
3760{
3761 return p[i];
3762}
3763static char *f (char * (*g) (char **, int), char **p, ...)
3764{
3765 char *s;
3766 va_list v;
3767 va_start (v,p);
3768 s = g (p, va_arg (v,int));
3769 va_end (v);
3770 return s;
3771}
3772
3773/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3774 function prototypes and stuff, but not '\xHH' hex character constants.
3775 These don't provoke an error unfortunately, instead are silently treated
3776 as 'x'. The following induces an error, until -std1 is added to get
3777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3778 array size at least. It's necessary to write '\x00'==0 to get something
3779 that's true only with -std1. */
3780int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3781
d45dc31f
SE
3782int test (int i, double x);
3783struct s1 {int (*f) (int a);};
3784struct s2 {int (*f) (double a);};
3785int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786int argc;
3787char **argv;
42ecbf5e
DJ
3788int
3789main ()
3790{
d45dc31f 3791return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3792 ;
3793 return 0;
3794}
3795_ACEOF
d45dc31f
SE
3796# Don't try gcc -ansi; that turns off useful extensions and
3797# breaks some systems' header files.
3798# AIX -qlanglvl=ansi
3799# Ultrix and OSF/1 -std1
3800# HP-UX 10.20 and later -Ae
3801# HP-UX older versions -Aa -D_HPUX_SOURCE
3802# SVR4 -Xc -D__EXTENSIONS__
3803for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3804do
3805 CC="$ac_save_CC $ac_arg"
3806 rm -f conftest.$ac_objext
3807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
7357c5b6
AM
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
42ecbf5e
DJ
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
d45dc31f 3822 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
d45dc31f
SE
3828 ac_cv_prog_cc_stdc=$ac_arg
3829break
252b5132 3830else
42ecbf5e
DJ
3831 echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
252b5132 3834fi
d45dc31f
SE
3835rm -f conftest.err conftest.$ac_objext
3836done
3837rm -f conftest.$ac_ext conftest.$ac_objext
3838CC=$ac_save_CC
ac48eca1 3839
252b5132 3840fi
252b5132 3841
d45dc31f
SE
3842case "x$ac_cv_prog_cc_stdc" in
3843 x|xno)
3844 echo "$as_me:$LINENO: result: none needed" >&5
3845echo "${ECHO_T}none needed" >&6 ;;
3846 *)
3847 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3848echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3849 CC="$CC $ac_cv_prog_cc_stdc" ;;
252b5132
RH
3850esac
3851
d45dc31f
SE
3852# Some people use a C++ compiler to compile C. Since we use `exit',
3853# in C++ we need to declare it. In case someone uses the same compiler
3854# for both compiling C and C++ we need to have the C++ compiler decide
3855# the declaration of exit, since it's the most demanding environment.
3856cat >conftest.$ac_ext <<_ACEOF
3857#ifndef __cplusplus
3858 choke me
3859#endif
42ecbf5e 3860_ACEOF
d45dc31f
SE
3861rm -f conftest.$ac_objext
3862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
7357c5b6
AM
3870 { ac_try='test -z "$ac_c_werror_flag"
3871 || test ! -s conftest.err'
d45dc31f
SE
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 for ac_declaration in \
3884 '' \
3885 'extern "C" void std::exit (int) throw (); using std::exit;' \
3886 'extern "C" void std::exit (int); using std::exit;' \
3887 'extern "C" void exit (int) throw ();' \
3888 'extern "C" void exit (int);' \
3889 'void exit (int);'
3890do
3891 cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
3897$ac_declaration
3898#include <stdlib.h>
3899int
3900main ()
42ecbf5e 3901{
d45dc31f
SE
3902exit (42);
3903 ;
3904 return 0;
3905}
3906_ACEOF
3907rm -f conftest.$ac_objext
3908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
7357c5b6
AM
3916 { ac_try='test -z "$ac_c_werror_flag"
3917 || test ! -s conftest.err'
d45dc31f
SE
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try='test -s conftest.$ac_objext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 :
3930else
3931 echo "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3933
d45dc31f
SE
3934continue
3935fi
3936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937 cat >conftest.$ac_ext <<_ACEOF
3938/* confdefs.h. */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h. */
3943$ac_declaration
3944int
3945main ()
3946{
3947exit (42);
3948 ;
3949 return 0;
3950}
3951_ACEOF
3952rm -f conftest.$ac_objext
3953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954 (eval $ac_compile) 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
7357c5b6
AM
3961 { ac_try='test -z "$ac_c_werror_flag"
3962 || test ! -s conftest.err'
d45dc31f
SE
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 break
3975else
3976 echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3978
d45dc31f
SE
3979fi
3980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981done
3982rm -f conftest*
3983if test -n "$ac_declaration"; then
3984 echo '#ifdef __cplusplus' >>confdefs.h
3985 echo $ac_declaration >>confdefs.h
3986 echo '#endif' >>confdefs.h
3987fi
ac48eca1 3988
d45dc31f
SE
3989else
3990 echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 3992
d45dc31f
SE
3993fi
3994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995ac_ext=c
3996ac_cpp='$CPP $CPPFLAGS'
3997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
4000
4001
d45dc31f
SE
4002cat >>confdefs.h <<\_ACEOF
4003#define _GNU_SOURCE 1
4004_ACEOF
42ecbf5e 4005
ac48eca1 4006
7357c5b6
AM
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4013echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4014# On Suns, sometimes $CPP names a directory.
4015if test -n "$CPP" && test -d "$CPP"; then
4016 CPP=
4017fi
4018if test -z "$CPP"; then
4019 if test "${ac_cv_prog_CPP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022 # Double quotes because CPP needs to be expanded
4023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024 do
4025 ac_preproc_ok=false
4026for ac_c_preproc_warn_flag in '' yes
4027do
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040#ifdef __STDC__
4041# include <limits.h>
4042#else
4043# include <assert.h>
4044#endif
4045 Syntax error
4046_ACEOF
4047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_c_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058 else
4059 ac_cpp_err=
4060 fi
4061else
4062 ac_cpp_err=yes
4063fi
4064if test -z "$ac_cpp_err"; then
4065 :
4066else
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4069
7357c5b6
AM
4070 # Broken: fails on valid input.
4071continue
4072fi
4073rm -f conftest.err conftest.$ac_ext
d7040cdb 4074
7357c5b6
AM
4075 # OK, works on sane cases. Now check whether non-existent headers
4076 # can be detected and how.
4077 cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h. */
4079_ACEOF
4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
4082/* end confdefs.h. */
4083#include <ac_nonexistent.h>
4084_ACEOF
4085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096 else
4097 ac_cpp_err=
4098 fi
4099else
4100 ac_cpp_err=yes
4101fi
4102if test -z "$ac_cpp_err"; then
4103 # Broken: success on invalid input.
4104continue
4105else
4106 echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4108
7357c5b6
AM
4109 # Passes both tests.
4110ac_preproc_ok=:
4111break
4112fi
4113rm -f conftest.err conftest.$ac_ext
d7040cdb 4114
7357c5b6
AM
4115done
4116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117rm -f conftest.err conftest.$ac_ext
4118if $ac_preproc_ok; then
4119 break
4120fi
d7040cdb 4121
7357c5b6
AM
4122 done
4123 ac_cv_prog_CPP=$CPP
d7040cdb 4124
7357c5b6
AM
4125fi
4126 CPP=$ac_cv_prog_CPP
4127else
4128 ac_cv_prog_CPP=$CPP
4129fi
4130echo "$as_me:$LINENO: result: $CPP" >&5
4131echo "${ECHO_T}$CPP" >&6
4132ac_preproc_ok=false
4133for ac_c_preproc_warn_flag in '' yes
4134do
4135 # Use a header file that comes with gcc, so configuring glibc
4136 # with a fresh cross-compiler works.
4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 # <limits.h> exists even on freestanding compilers.
4139 # On the NeXT, cc -E runs the code through the compiler's parser,
4140 # not just through cpp. "Syntax error" is here to catch this case.
4141 cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
4147#ifdef __STDC__
4148# include <limits.h>
4149#else
4150# include <assert.h>
4151#endif
4152 Syntax error
4153_ACEOF
4154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } >/dev/null; then
4162 if test -s conftest.err; then
4163 ac_cpp_err=$ac_c_preproc_warn_flag
4164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4165 else
4166 ac_cpp_err=
4167 fi
4168else
4169 ac_cpp_err=yes
4170fi
4171if test -z "$ac_cpp_err"; then
4172 :
4173else
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4176
7357c5b6
AM
4177 # Broken: fails on valid input.
4178continue
4179fi
4180rm -f conftest.err conftest.$ac_ext
d7040cdb 4181
7357c5b6
AM
4182 # OK, works on sane cases. Now check whether non-existent headers
4183 # can be detected and how.
4184 cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h. */
4190#include <ac_nonexistent.h>
4191_ACEOF
4192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null; then
4200 if test -s conftest.err; then
4201 ac_cpp_err=$ac_c_preproc_warn_flag
4202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203 else
4204 ac_cpp_err=
4205 fi
4206else
4207 ac_cpp_err=yes
4208fi
4209if test -z "$ac_cpp_err"; then
4210 # Broken: success on invalid input.
4211continue
4212else
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4215
7357c5b6
AM
4216 # Passes both tests.
4217ac_preproc_ok=:
4218break
4219fi
4220rm -f conftest.err conftest.$ac_ext
d7040cdb 4221
7357c5b6
AM
4222done
4223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224rm -f conftest.err conftest.$ac_ext
4225if $ac_preproc_ok; then
4226 :
4227else
4228 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4229echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4231See \`config.log' for more details." >&5
4232echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4233See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }; }
4235fi
d7040cdb 4236
7357c5b6
AM
4237ac_ext=c
4238ac_cpp='$CPP $CPPFLAGS'
4239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4242
4243
7357c5b6
AM
4244echo "$as_me:$LINENO: checking for egrep" >&5
4245echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4246if test "${ac_cv_prog_egrep+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4250 then ac_cv_prog_egrep='grep -E'
4251 else ac_cv_prog_egrep='egrep'
4252 fi
4253fi
4254echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4255echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4256 EGREP=$ac_cv_prog_egrep
d7040cdb 4257
d7040cdb 4258
7357c5b6
AM
4259echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4260echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4261if test "${ac_cv_header_stdc+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264 cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h. */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
4269/* end confdefs.h. */
4270#include <stdlib.h>
4271#include <stdarg.h>
4272#include <string.h>
4273#include <float.h>
d7040cdb 4274
7357c5b6
AM
4275int
4276main ()
4277{
d7040cdb 4278
7357c5b6
AM
4279 ;
4280 return 0;
4281}
4282_ACEOF
4283rm -f conftest.$ac_objext
4284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_header_stdc=yes
4306else
4307 echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4309
7357c5b6
AM
4310ac_cv_header_stdc=no
4311fi
4312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4313
7357c5b6
AM
4314if test $ac_cv_header_stdc = yes; then
4315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h. */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h. */
4322#include <string.h>
d7040cdb 4323
7357c5b6
AM
4324_ACEOF
4325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "memchr" >/dev/null 2>&1; then
4327 :
d45dc31f 4328else
7357c5b6
AM
4329 ac_cv_header_stdc=no
4330fi
4331rm -f conftest*
d7040cdb 4332
7357c5b6 4333fi
d7040cdb 4334
7357c5b6
AM
4335if test $ac_cv_header_stdc = yes; then
4336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337 cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343#include <stdlib.h>
d7040cdb 4344
7357c5b6
AM
4345_ACEOF
4346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "free" >/dev/null 2>&1; then
4348 :
4349else
4350 ac_cv_header_stdc=no
4351fi
4352rm -f conftest*
d7040cdb 4353
7357c5b6 4354fi
d7040cdb 4355
7357c5b6
AM
4356if test $ac_cv_header_stdc = yes; then
4357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358 if test "$cross_compiling" = yes; then
4359 :
4360else
4361 cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h. */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h. */
4367#include <ctype.h>
4368#if ((' ' & 0x0FF) == 0x020)
4369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4371#else
4372# define ISLOWER(c) \
4373 (('a' <= (c) && (c) <= 'i') \
4374 || ('j' <= (c) && (c) <= 'r') \
4375 || ('s' <= (c) && (c) <= 'z'))
4376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377#endif
d7040cdb 4378
7357c5b6
AM
4379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380int
4381main ()
4382{
4383 int i;
4384 for (i = 0; i < 256; i++)
4385 if (XOR (islower (i), ISLOWER (i))
4386 || toupper (i) != TOUPPER (i))
4387 exit(2);
4388 exit (0);
4389}
4390_ACEOF
4391rm -f conftest$ac_exeext
4392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 :
4403else
4404 echo "$as_me: program exited with status $ac_status" >&5
4405echo "$as_me: failed program was:" >&5
4406sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4407
7357c5b6
AM
4408( exit $ac_status )
4409ac_cv_header_stdc=no
4410fi
4411rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4412fi
4413fi
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417if test $ac_cv_header_stdc = yes; then
d7040cdb 4418
7357c5b6
AM
4419cat >>confdefs.h <<\_ACEOF
4420#define STDC_HEADERS 1
4421_ACEOF
d7040cdb 4422
7357c5b6 4423fi
d7040cdb 4424
7357c5b6 4425# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4426
4427
4428
4429
4430
4431
4432
d7040cdb 4433
d7040cdb 4434
7357c5b6
AM
4435for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
4437do
4438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439echo "$as_me:$LINENO: checking for $ac_header" >&5
4440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450$ac_includes_default
d7040cdb 4451
7357c5b6
AM
4452#include <$ac_header>
4453_ACEOF
4454rm -f conftest.$ac_objext
4455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456 (eval $ac_compile) 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -z "$ac_c_werror_flag"
4464 || test ! -s conftest.err'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest.$ac_objext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 eval "$as_ac_Header=yes"
4477else
4478 echo "$as_me: failed program was:" >&5
4479sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4480
7357c5b6
AM
4481eval "$as_ac_Header=no"
4482fi
4483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4484fi
4485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488 cat >>confdefs.h <<_ACEOF
4489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490_ACEOF
d7040cdb 4491
7357c5b6 4492fi
d7040cdb 4493
7357c5b6 4494done
d7040cdb
SE
4495
4496
4497
7357c5b6
AM
4498 if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4500echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4501if test "${ac_cv_header_minix_config_h+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503fi
4504echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4505echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4506else
4507 # Is the header compilable?
4508echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4509echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4510cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516$ac_includes_default
4517#include <minix/config.h>
4518_ACEOF
4519rm -f conftest.$ac_objext
4520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_header_compiler=yes
4542else
4543 echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4545
7357c5b6
AM
4546ac_header_compiler=no
4547fi
4548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4550echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4551
7357c5b6
AM
4552# Is the header present?
4553echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4554echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4555cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h. */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h. */
4561#include <minix/config.h>
4562_ACEOF
4563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_c_preproc_warn_flag
4573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4574 else
4575 ac_cpp_err=
4576 fi
4577else
4578 ac_cpp_err=yes
4579fi
4580if test -z "$ac_cpp_err"; then
4581 ac_header_preproc=yes
4582else
4583 echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4585
7357c5b6
AM
4586 ac_header_preproc=no
4587fi
4588rm -f conftest.err conftest.$ac_ext
4589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4591
7357c5b6
AM
4592# So? What about this header?
4593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4594 yes:no: )
4595 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4596echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4598echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4599 ac_header_preproc=yes
4600 ;;
4601 no:yes:* )
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4603echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4605echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4607echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4609echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4611echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4613echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4614 (
4615 cat <<\_ASBOX
4616## ------------------------------------------ ##
4617## Report this to the AC_PACKAGE_NAME lists. ##
4618## ------------------------------------------ ##
4619_ASBOX
4620 ) |
4621 sed "s/^/$as_me: WARNING: /" >&2
4622 ;;
4623esac
4624echo "$as_me:$LINENO: checking for minix/config.h" >&5
4625echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4626if test "${ac_cv_header_minix_config_h+set}" = set; then
d7040cdb
SE
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
7357c5b6 4629 ac_cv_header_minix_config_h=$ac_header_preproc
d7040cdb 4630fi
7357c5b6
AM
4631echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4632echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4633
7357c5b6
AM
4634fi
4635if test $ac_cv_header_minix_config_h = yes; then
4636 MINIX=yes
4637else
4638 MINIX=
4639fi
d7040cdb
SE
4640
4641
7357c5b6 4642 if test "$MINIX" = yes; then
d7040cdb 4643
7357c5b6
AM
4644cat >>confdefs.h <<\_ACEOF
4645#define _POSIX_SOURCE 1
4646_ACEOF
d7040cdb
SE
4647
4648
7357c5b6
AM
4649cat >>confdefs.h <<\_ACEOF
4650#define _POSIX_1_SOURCE 2
4651_ACEOF
d7040cdb
SE
4652
4653
7357c5b6
AM
4654cat >>confdefs.h <<\_ACEOF
4655#define _MINIX 1
4656_ACEOF
d7040cdb 4657
7357c5b6 4658 fi
d7040cdb
SE
4659
4660
4661
7357c5b6
AM
4662 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4663echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4664if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
d7040cdb
SE
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
7357c5b6
AM
4667 cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h. */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h. */
d7040cdb 4673
7357c5b6
AM
4674# define __EXTENSIONS__ 1
4675 $ac_includes_default
4676int
4677main ()
4678{
d7040cdb 4679
7357c5b6
AM
4680 ;
4681 return 0;
4682}
4683_ACEOF
4684rm -f conftest.$ac_objext
4685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4707else
7357c5b6
AM
4708 echo "$as_me: failed program was:" >&5
4709sed 's/^/| /' conftest.$ac_ext >&5
4710
4711ac_cv_safe_to_define___extensions__=no
d7040cdb 4712fi
7357c5b6
AM
4713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714fi
4715echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4716echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4717 test $ac_cv_safe_to_define___extensions__ = yes &&
4718 cat >>confdefs.h <<\_ACEOF
4719#define __EXTENSIONS__ 1
4720_ACEOF
d7040cdb 4721
7357c5b6
AM
4722 cat >>confdefs.h <<\_ACEOF
4723#define _ALL_SOURCE 1
4724_ACEOF
d7040cdb 4725
7357c5b6
AM
4726 cat >>confdefs.h <<\_ACEOF
4727#define _GNU_SOURCE 1
4728_ACEOF
d7040cdb 4729
7357c5b6
AM
4730 cat >>confdefs.h <<\_ACEOF
4731#define _POSIX_PTHREAD_SEMANTICS 1
4732_ACEOF
d7040cdb 4733
7357c5b6
AM
4734 cat >>confdefs.h <<\_ACEOF
4735#define _TANDEM_SOURCE 1
4736_ACEOF
d7040cdb
SE
4737
4738
d053aef8
JK
4739# Check whether --enable-largefile or --disable-largefile was given.
4740if test "${enable_largefile+set}" = set; then
4741 enableval="$enable_largefile"
4742
4743fi;
4744if test "$enable_largefile" != no; then
4745
4746 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4747echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4748if test "${ac_cv_sys_largefile_CC+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751 ac_cv_sys_largefile_CC=no
4752 if test "$GCC" != yes; then
4753 ac_save_CC=$CC
4754 while :; do
4755 # IRIX 6.2 and later do not support large files by default,
4756 # so use the C compiler's -n32 option if that helps.
4757 cat >conftest.$ac_ext <<_ACEOF
4758/* confdefs.h. */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h. */
4763#include <sys/types.h>
4764 /* Check that off_t can represent 2**63 - 1 correctly.
4765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4766 since some C++ compilers masquerading as C compilers
4767 incorrectly reject 9223372036854775807. */
4768#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4770 && LARGE_OFF_T % 2147483647 == 1)
4771 ? 1 : -1];
4772int
4773main ()
4774{
4775
4776 ;
4777 return 0;
4778}
4779_ACEOF
4780 rm -f conftest.$ac_objext
4781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 break
4803else
4804 echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807fi
4808rm -f conftest.err conftest.$ac_objext
4809 CC="$CC -n32"
4810 rm -f conftest.$ac_objext
4811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_c_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_sys_largefile_CC=' -n32'; break
4833else
4834 echo "$as_me: failed program was:" >&5
4835sed 's/^/| /' conftest.$ac_ext >&5
4836
4837fi
4838rm -f conftest.err conftest.$ac_objext
4839 break
4840 done
4841 CC=$ac_save_CC
4842 rm -f conftest.$ac_ext
4843 fi
4844fi
4845echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4846echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4847 if test "$ac_cv_sys_largefile_CC" != no; then
4848 CC=$CC$ac_cv_sys_largefile_CC
4849 fi
4850
4851 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4852echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4853if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 while :; do
4857 ac_cv_sys_file_offset_bits=no
4858 cat >conftest.$ac_ext <<_ACEOF
4859/* confdefs.h. */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h. */
4864#include <sys/types.h>
4865 /* Check that off_t can represent 2**63 - 1 correctly.
4866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4867 since some C++ compilers masquerading as C compilers
4868 incorrectly reject 9223372036854775807. */
4869#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4871 && LARGE_OFF_T % 2147483647 == 1)
4872 ? 1 : -1];
4873int
4874main ()
4875{
4876
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext
4882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 break
4904else
4905 echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908fi
4909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910 cat >conftest.$ac_ext <<_ACEOF
4911/* confdefs.h. */
4912_ACEOF
4913cat confdefs.h >>conftest.$ac_ext
4914cat >>conftest.$ac_ext <<_ACEOF
4915/* end confdefs.h. */
4916#define _FILE_OFFSET_BITS 64
4917#include <sys/types.h>
4918 /* Check that off_t can represent 2**63 - 1 correctly.
4919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4920 since some C++ compilers masquerading as C compilers
4921 incorrectly reject 9223372036854775807. */
4922#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4924 && LARGE_OFF_T % 2147483647 == 1)
4925 ? 1 : -1];
4926int
4927main ()
4928{
4929
4930 ;
4931 return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext
4935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 ac_cv_sys_file_offset_bits=64; break
4957else
4958 echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961fi
4962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 break
4964done
4965fi
4966echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4967echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4968if test "$ac_cv_sys_file_offset_bits" != no; then
4969
4970cat >>confdefs.h <<_ACEOF
4971#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4972_ACEOF
4973
4974fi
4975rm -f conftest*
4976 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4977echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4978if test "${ac_cv_sys_large_files+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980else
4981 while :; do
4982 ac_cv_sys_large_files=no
4983 cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h. */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h. */
4989#include <sys/types.h>
4990 /* Check that off_t can represent 2**63 - 1 correctly.
4991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4992 since some C++ compilers masquerading as C compilers
4993 incorrectly reject 9223372036854775807. */
4994#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4996 && LARGE_OFF_T % 2147483647 == 1)
4997 ? 1 : -1];
4998int
4999main ()
5000{
5001
5002 ;
5003 return 0;
5004}
5005_ACEOF
5006rm -f conftest.$ac_objext
5007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag"
5016 || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 break
5029else
5030 echo "$as_me: failed program was:" >&5
5031sed 's/^/| /' conftest.$ac_ext >&5
5032
5033fi
5034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041#define _LARGE_FILES 1
5042#include <sys/types.h>
5043 /* Check that off_t can represent 2**63 - 1 correctly.
5044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5045 since some C++ compilers masquerading as C compilers
5046 incorrectly reject 9223372036854775807. */
5047#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5049 && LARGE_OFF_T % 2147483647 == 1)
5050 ? 1 : -1];
5051int
5052main ()
5053{
5054
5055 ;
5056 return 0;
5057}
5058_ACEOF
5059rm -f conftest.$ac_objext
5060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -z "$ac_c_werror_flag"
5069 || test ! -s conftest.err'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; } &&
5075 { ac_try='test -s conftest.$ac_objext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_cv_sys_large_files=1; break
5082else
5083 echo "$as_me: failed program was:" >&5
5084sed 's/^/| /' conftest.$ac_ext >&5
5085
5086fi
5087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5088 break
5089done
5090fi
5091echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5092echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5093if test "$ac_cv_sys_large_files" != no; then
5094
5095cat >>confdefs.h <<_ACEOF
5096#define _LARGE_FILES $ac_cv_sys_large_files
5097_ACEOF
5098
5099fi
5100rm -f conftest*
5101fi
5102
718a6fd8
SE
5103case `pwd` in
5104 *\ * | *\ *)
5105 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5106echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5107esac
d7040cdb
SE
5108
5109
7357c5b6 5110
718a6fd8
SE
5111macro_version='2.2.6'
5112macro_revision='1.3012'
7357c5b6
AM
5113
5114
5115
5116
5117
5118
7357c5b6
AM
5119
5120
5121
5122
5123
5124
5125
718a6fd8 5126ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
5127
5128echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5129echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5130if test "${lt_cv_path_SED+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133 # Loop through the user's path and test for sed and gsed.
5134# Then use that list of sed's as ones to test for truncation.
5135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for lt_ac_prog in sed gsed; do
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5143 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5144 fi
5145 done
5146 done
5147done
5148IFS=$as_save_IFS
5149lt_ac_max=0
5150lt_ac_count=0
5151# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5152# along with /bin/sed that truncates output.
5153for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5154 test ! -f $lt_ac_sed && continue
5155 cat /dev/null > conftest.in
5156 lt_ac_count=0
5157 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5158 # Check for GNU sed and select it if it is found.
5159 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5160 lt_cv_path_SED=$lt_ac_sed
5161 break
5162 fi
5163 while true; do
5164 cat conftest.in conftest.in >conftest.tmp
5165 mv conftest.tmp conftest.in
5166 cp conftest.in conftest.nl
5167 echo >>conftest.nl
5168 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5169 cmp -s conftest.out conftest.nl || break
5170 # 10000 chars as input seems more than enough
5171 test $lt_ac_count -gt 10 && break
5172 lt_ac_count=`expr $lt_ac_count + 1`
5173 if test $lt_ac_count -gt $lt_ac_max; then
5174 lt_ac_max=$lt_ac_count
5175 lt_cv_path_SED=$lt_ac_sed
5176 fi
5177 done
5178done
5179
5180fi
5181
5182SED=$lt_cv_path_SED
5183
5184echo "$as_me:$LINENO: result: $SED" >&5
5185echo "${ECHO_T}$SED" >&6
5186
5187test -z "$SED" && SED=sed
5188Xsed="$SED -e 1s/^X//"
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200echo "$as_me:$LINENO: checking for fgrep" >&5
5201echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5202if test "${ac_cv_prog_fgrep+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5206 then ac_cv_prog_fgrep='grep -F'
5207 else ac_cv_prog_fgrep='fgrep'
5208 fi
5209fi
5210echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5211echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5212 FGREP=$ac_cv_prog_fgrep
5213
5214
5215test -z "$GREP" && GREP=grep
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235# Check whether --with-gnu-ld or --without-gnu-ld was given.
5236if test "${with_gnu_ld+set}" = set; then
5237 withval="$with_gnu_ld"
5238 test "$withval" = no || with_gnu_ld=yes
5239else
5240 with_gnu_ld=no
5241fi;
5242ac_prog=ld
5243if test "$GCC" = yes; then
5244 # Check if gcc -print-prog-name=ld gives a path.
5245 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5246echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5247 case $host in
5248 *-*-mingw*)
d45dc31f
SE
5249 # gcc leaves a trailing carriage return which upsets mingw
5250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5251 *)
5252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5253 esac
5254 case $ac_prog in
5255 # Accept absolute paths.
d7040cdb 5256 [\\/]* | ?:[\\/]*)
d45dc31f 5257 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5258 # Canonicalize the pathname of ld
5259 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5260 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5261 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5262 done
5263 test -z "$LD" && LD="$ac_prog"
5264 ;;
5265 "")
5266 # If it fails, then pretend we aren't using GCC.
5267 ac_prog=ld
5268 ;;
5269 *)
5270 # If it is relative, then search for the first ld in PATH.
5271 with_gnu_ld=unknown
5272 ;;
5273 esac
5274elif test "$with_gnu_ld" = yes; then
5275 echo "$as_me:$LINENO: checking for GNU ld" >&5
5276echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5277else
5278 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5279echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5280fi
5281if test "${lt_cv_path_LD+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284 if test -z "$LD"; then
d7040cdb 5285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5286 for ac_dir in $PATH; do
d7040cdb 5287 IFS="$lt_save_ifs"
d45dc31f
SE
5288 test -z "$ac_dir" && ac_dir=.
5289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5290 lt_cv_path_LD="$ac_dir/$ac_prog"
5291 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5292 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5293 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5295 *GNU* | *'with BFD'*)
d45dc31f 5296 test "$with_gnu_ld" != no && break
d7040cdb
SE
5297 ;;
5298 *)
d45dc31f 5299 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5300 ;;
5301 esac
d45dc31f
SE
5302 fi
5303 done
d7040cdb 5304 IFS="$lt_save_ifs"
d45dc31f
SE
5305else
5306 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5307fi
5308fi
1ad12f97 5309
d45dc31f
SE
5310LD="$lt_cv_path_LD"
5311if test -n "$LD"; then
5312 echo "$as_me:$LINENO: result: $LD" >&5
5313echo "${ECHO_T}$LD" >&6
5314else
5315 echo "$as_me:$LINENO: result: no" >&5
5316echo "${ECHO_T}no" >&6
5317fi
5318test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5319echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5320 { (exit 1); exit 1; }; }
5321echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5322echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5323if test "${lt_cv_prog_gnu_ld+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325else
d7040cdb
SE
5326 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5327case `$LD -v 2>&1 </dev/null` in
5328*GNU* | *'with BFD'*)
d45dc31f 5329 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5330 ;;
5331*)
d45dc31f 5332 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5333 ;;
5334esac
d45dc31f
SE
5335fi
5336echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5337echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5338with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5339
d45dc31f 5340
42ecbf5e 5341
d7040cdb
SE
5342
5343
5344
5345
5346
5347
d7040cdb
SE
5348echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5349echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
d45dc31f
SE
5350if test "${lt_cv_path_NM+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353 if test -n "$NM"; then
5354 # Let the user override the test.
5355 lt_cv_path_NM="$NM"
5356else
d7040cdb
SE
5357 lt_nm_to_check="${ac_tool_prefix}nm"
5358 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5359 lt_nm_to_check="$lt_nm_to_check nm"
5360 fi
5361 for lt_tmp_nm in $lt_nm_to_check; do
5362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5363 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5364 IFS="$lt_save_ifs"
5365 test -z "$ac_dir" && ac_dir=.
5366 tmp_nm="$ac_dir/$lt_tmp_nm"
5367 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5368 # Check to see if the nm accepts a BSD-compat flag.
5369 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5370 # nm: unknown option "B" ignored
5371 # Tru64's nm complains that /dev/null is an invalid object file
5372 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5373 */dev/null* | *'Invalid file or object type'*)
5374 lt_cv_path_NM="$tmp_nm -B"
5375 break
5376 ;;
5377 *)
5378 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5379 */dev/null*)
5380 lt_cv_path_NM="$tmp_nm -p"
5381 break
5382 ;;
5383 *)
5384 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5385 continue # so that we can try to find one that supports BSD flags
5386 ;;
5387 esac
5388 ;;
5389 esac
d45dc31f 5390 fi
d7040cdb
SE
5391 done
5392 IFS="$lt_save_ifs"
d45dc31f 5393 done
d7040cdb 5394 : ${lt_cv_path_NM=no}
d45dc31f 5395fi
a541e3ce 5396fi
d7040cdb
SE
5397echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5398echo "${ECHO_T}$lt_cv_path_NM" >&6
5399if test "$lt_cv_path_NM" != "no"; then
5400 NM="$lt_cv_path_NM"
d45dc31f 5401else
d7040cdb
SE
5402 # Didn't find any BSD compatible name lister, look for dumpbin.
5403 if test -n "$ac_tool_prefix"; then
5404 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5405 do
5406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5407set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5408echo "$as_me:$LINENO: checking for $ac_word" >&5
5409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d45dc31f
SE
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
d7040cdb
SE
5413 if test -n "$DUMPBIN"; then
5414 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5415else
5416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417for as_dir in $PATH
5418do
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5426 fi
5427done
5428done
398ee8f1 5429
d7040cdb
SE
5430fi
5431fi
5432DUMPBIN=$ac_cv_prog_DUMPBIN
5433if test -n "$DUMPBIN"; then
5434 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5435echo "${ECHO_T}$DUMPBIN" >&6
5436else
5437 echo "$as_me:$LINENO: result: no" >&5
5438echo "${ECHO_T}no" >&6
5439fi
d15b04bd 5440
d7040cdb
SE
5441 test -n "$DUMPBIN" && break
5442 done
5443fi
5444if test -z "$DUMPBIN"; then
5445 ac_ct_DUMPBIN=$DUMPBIN
5446 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5447do
5448 # Extract the first word of "$ac_prog", so it can be a program name with args.
5449set dummy $ac_prog; ac_word=$2
5450echo "$as_me:$LINENO: checking for $ac_word" >&5
5451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5452if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455 if test -n "$ac_ct_DUMPBIN"; then
5456 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
d45dc31f 5468 fi
d7040cdb
SE
5469done
5470done
d15b04bd 5471
d7040cdb
SE
5472fi
5473fi
5474ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5475if test -n "$ac_ct_DUMPBIN"; then
5476 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5477echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5478else
5479 echo "$as_me:$LINENO: result: no" >&5
5480echo "${ECHO_T}no" >&6
5481fi
42ecbf5e 5482
d7040cdb
SE
5483 test -n "$ac_ct_DUMPBIN" && break
5484done
5485test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d45dc31f 5486
d7040cdb
SE
5487 DUMPBIN=$ac_ct_DUMPBIN
5488fi
d45dc31f 5489
d45dc31f 5490
d7040cdb
SE
5491 if test "$DUMPBIN" != ":"; then
5492 NM="$DUMPBIN"
42ecbf5e 5493 fi
d7040cdb
SE
5494fi
5495test -z "$NM" && NM=nm
d45dc31f 5496
42ecbf5e 5497
d15b04bd 5498
42ecbf5e 5499
d45dc31f 5500
42ecbf5e 5501
d7040cdb
SE
5502echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5503echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5504if test "${lt_cv_nm_interface+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507 lt_cv_nm_interface="BSD nm"
5508 echo "int some_variable = 0;" > conftest.$ac_ext
718a6fd8 5509 (eval echo "\"\$as_me:5509: $ac_compile\"" >&5)
d7040cdb
SE
5510 (eval "$ac_compile" 2>conftest.err)
5511 cat conftest.err >&5
718a6fd8 5512 (eval echo "\"\$as_me:5512: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5513 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5514 cat conftest.err >&5
718a6fd8 5515 (eval echo "\"\$as_me:5515: output\"" >&5)
d7040cdb
SE
5516 cat conftest.out >&5
5517 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5518 lt_cv_nm_interface="MS dumpbin"
5519 fi
5520 rm -f conftest*
42ecbf5e 5521fi
d7040cdb
SE
5522echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5523echo "${ECHO_T}$lt_cv_nm_interface" >&6
42ecbf5e 5524
d7040cdb
SE
5525echo "$as_me:$LINENO: checking whether ln -s works" >&5
5526echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5527LN_S=$as_ln_s
5528if test "$LN_S" = "ln -s"; then
5529 echo "$as_me:$LINENO: result: yes" >&5
5530echo "${ECHO_T}yes" >&6
5531else
5532 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5533echo "${ECHO_T}no, using $LN_S" >&6
5534fi
d45dc31f
SE
5535
5536# find the maximum length of command line arguments
5537echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5538echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5539if test "${lt_cv_sys_max_cmd_len+set}" = set; then
42ecbf5e
DJ
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541else
d45dc31f
SE
5542 i=0
5543 teststring="ABCD"
5544
5545 case $build_os in
5546 msdosdjgpp*)
5547 # On DJGPP, this test can blow up pretty badly due to problems in libc
5548 # (any single argument exceeding 2000 bytes causes a buffer overrun
5549 # during glob expansion). Even if it were fixed, the result of this
5550 # check would be larger than it should be.
5551 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5552 ;;
5553
d7040cdb
SE
5554 gnu*)
5555 # Under GNU Hurd, this test is not required because there is
5556 # no limit to the length of command line arguments.
5557 # Libtool will interpret -1 as no limit whatsoever
5558 lt_cv_sys_max_cmd_len=-1;
5559 ;;
5560
718a6fd8 5561 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5562 # On Win9x/ME, this test blows up -- it succeeds, but takes
5563 # about 5 minutes as the teststring grows exponentially.
5564 # Worse, since 9x/ME are not pre-emptively multitasking,
5565 # you end up with a "frozen" computer, even though with patience
5566 # the test eventually succeeds (with a max line length of 256k).
5567 # Instead, let's just punt: use the minimum linelength reported by
5568 # all of the supported platforms: 8192 (on NT/2K/XP).
5569 lt_cv_sys_max_cmd_len=8192;
5570 ;;
5571
5572 amigaos*)
5573 # On AmigaOS with pdksh, this test takes hours, literally.
5574 # So we just punt and use a minimum line length of 8192.
5575 lt_cv_sys_max_cmd_len=8192;
5576 ;;
5577
5578 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5579 # This has been around since 386BSD, at least. Likely further.
5580 if test -x /sbin/sysctl; then
5581 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5582 elif test -x /usr/sbin/sysctl; then
5583 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5584 else
d7040cdb 5585 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5586 fi
5587 # And add a safety zone
5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5590 ;;
d7040cdb
SE
5591
5592 interix*)
5593 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5594 lt_cv_sys_max_cmd_len=196608
5595 ;;
5596
5597 osf*)
5598 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5599 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5600 # nice to cause kernel panics so lets avoid the loop below.
5601 # First set a reasonable default.
5602 lt_cv_sys_max_cmd_len=16384
5603 #
5604 if test -x /sbin/sysconfig; then
5605 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5606 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5607 esac
5608 fi
5609 ;;
5610 sco3.2v5*)
5611 lt_cv_sys_max_cmd_len=102400
5612 ;;
5613 sysv5* | sco5v6* | sysv4.2uw2*)
5614 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5615 if test -n "$kargmax"; then
5616 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5617 else
5618 lt_cv_sys_max_cmd_len=32768
5619 fi
5620 ;;
5621 *)
718a6fd8
SE
5622 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5623 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5626 else
5627 # Make teststring a little bigger before we do anything with it.
5628 # a 1K string should be a reasonable start.
5629 for i in 1 2 3 4 5 6 7 8 ; do
5630 teststring=$teststring$teststring
5631 done
5632 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5633 # If test is not a shell built-in, we'll probably end up computing a
5634 # maximum length that is only half of the actual maximum length, but
5635 # we can't tell.
5636 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5637 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5638 test $i != 17 # 1/2 MB should be enough
5639 do
5640 i=`expr $i + 1`
5641 teststring=$teststring$teststring
5642 done
5643 # Only check the string length outside the loop.
5644 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5645 teststring=
5646 # Add a significant safety factor because C++ compilers can tack on
5647 # massive amounts of additional arguments before passing them to the
5648 # linker. It appears as though 1/2 is a usable value.
5649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5650 fi
d7040cdb 5651 ;;
d45dc31f 5652 esac
42ecbf5e 5653
42ecbf5e
DJ
5654fi
5655
d7040cdb 5656if test -n $lt_cv_sys_max_cmd_len ; then
d45dc31f
SE
5657 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5658echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
252b5132 5659else
d45dc31f
SE
5660 echo "$as_me:$LINENO: result: none" >&5
5661echo "${ECHO_T}none" >&6
252b5132 5662fi
d7040cdb 5663max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5664
d45dc31f 5665
42ecbf5e 5666
d45dc31f 5667
d45dc31f 5668
d7040cdb 5669
d7040cdb
SE
5670: ${CP="cp -f"}
5671: ${MV="mv -f"}
5672: ${RM="rm -f"}
5673
5674echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5675echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5676# Try some XSI features
5677xsi_shell=no
5678( _lt_dummy="a/b/c"
5679 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5680 = c,a/b,, \
5681 && eval 'test $(( 1 + 1 )) -eq 2 \
5682 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb
SE
5683 && xsi_shell=yes
5684echo "$as_me:$LINENO: result: $xsi_shell" >&5
5685echo "${ECHO_T}$xsi_shell" >&6
5686
5687
5688echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5689echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5690lt_shell_append=no
5691( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5692 >/dev/null 2>&1 \
5693 && lt_shell_append=yes
5694echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5695echo "${ECHO_T}$lt_shell_append" >&6
5696
5697
5698if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5699 lt_unset=unset
252b5132 5700else
d7040cdb 5701 lt_unset=false
252b5132
RH
5702fi
5703
d7040cdb
SE
5704
5705
5706
5707
5708# test EBCDIC or ASCII
5709case `echo X|tr X '\101'` in
5710 A) # ASCII based system
5711 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5712 lt_SP2NL='tr \040 \012'
5713 lt_NL2SP='tr \015\012 \040\040'
5714 ;;
5715 *) # EBCDIC based system
5716 lt_SP2NL='tr \100 \n'
5717 lt_NL2SP='tr \r\n \100\100'
5718 ;;
5719esac
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5730echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5731if test "${lt_cv_ld_reload_flag+set}" = set; then
42ecbf5e 5732 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5733else
d7040cdb
SE
5734 lt_cv_ld_reload_flag='-r'
5735fi
5736echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5737echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5738reload_flag=$lt_cv_ld_reload_flag
5739case $reload_flag in
5740"" | " "*) ;;
5741*) reload_flag=" $reload_flag" ;;
5742esac
5743reload_cmds='$LD$reload_flag -o $output$reload_objs'
5744case $host_os in
5745 darwin*)
5746 if test "$GCC" = yes; then
5747 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5748 else
5749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5750 fi
5751 ;;
5752esac
5753
5754
5755
5756
5757
5758
5759
5760
5761
718a6fd8
SE
5762if test -n "$ac_tool_prefix"; then
5763 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5764set dummy ${ac_tool_prefix}objdump; ac_word=$2
5765echo "$as_me:$LINENO: checking for $ac_word" >&5
5766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5767if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769else
5770 if test -n "$OBJDUMP"; then
5771 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784done
5785done
5786
5787fi
5788fi
5789OBJDUMP=$ac_cv_prog_OBJDUMP
5790if test -n "$OBJDUMP"; then
5791 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5792echo "${ECHO_T}$OBJDUMP" >&6
5793else
5794 echo "$as_me:$LINENO: result: no" >&5
5795echo "${ECHO_T}no" >&6
5796fi
5797
5798fi
5799if test -z "$ac_cv_prog_OBJDUMP"; then
5800 ac_ct_OBJDUMP=$OBJDUMP
5801 # Extract the first word of "objdump", so it can be a program name with args.
5802set dummy objdump; ac_word=$2
5803echo "$as_me:$LINENO: checking for $ac_word" >&5
5804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5805if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807else
5808 if test -n "$ac_ct_OBJDUMP"; then
5809 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5810else
5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH
5813do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822done
5823done
5824
5825 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5826fi
5827fi
5828ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5829if test -n "$ac_ct_OBJDUMP"; then
5830 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5831echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5832else
5833 echo "$as_me:$LINENO: result: no" >&5
5834echo "${ECHO_T}no" >&6
5835fi
5836
5837 OBJDUMP=$ac_ct_OBJDUMP
5838else
5839 OBJDUMP="$ac_cv_prog_OBJDUMP"
5840fi
5841
5842test -z "$OBJDUMP" && OBJDUMP=objdump
5843
5844
5845
5846
5847
5848
5849
5850
d7040cdb
SE
5851
5852echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5853echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5854if test "${lt_cv_deplibs_check_method+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856else
5857 lt_cv_file_magic_cmd='$MAGIC_CMD'
5858lt_cv_file_magic_test_file=
5859lt_cv_deplibs_check_method='unknown'
5860# Need to set the preceding variable on all platforms that support
5861# interlibrary dependencies.
5862# 'none' -- dependencies not supported.
5863# `unknown' -- same as none, but documents that we really don't know.
5864# 'pass_all' -- all dependencies passed with no checks.
5865# 'test_compile' -- check by making test program.
5866# 'file_magic [[regex]]' -- check by looking for files in library path
5867# which responds to the $file_magic_cmd with a given extended regex.
5868# If you have `file' or equivalent on your system and you're not sure
5869# whether `pass_all' will *always* work, you probably want this one.
5870
5871case $host_os in
50e7d84b 5872aix[4-9]*)
d7040cdb
SE
5873 lt_cv_deplibs_check_method=pass_all
5874 ;;
5875
5876beos*)
5877 lt_cv_deplibs_check_method=pass_all
5878 ;;
5879
5880bsdi[45]*)
5881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5882 lt_cv_file_magic_cmd='/usr/bin/file -L'
5883 lt_cv_file_magic_test_file=/shlib/libc.so
5884 ;;
5885
5886cygwin*)
5887 # func_win32_libid is a shell function defined in ltmain.sh
5888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5889 lt_cv_file_magic_cmd='func_win32_libid'
5890 ;;
5891
5892mingw* | pw32*)
5893 # Base MSYS/MinGW do not provide the 'file' command needed by
5894 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5895 # unless we find 'file', for example because we are cross-compiling.
5896 if ( file / ) >/dev/null 2>&1; then
5897 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5898 lt_cv_file_magic_cmd='func_win32_libid'
5899 else
5900 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5901 lt_cv_file_magic_cmd='$OBJDUMP -f'
5902 fi
5903 ;;
5904
718a6fd8
SE
5905cegcc)
5906 # use the weaker test based on 'objdump'. See mingw*.
5907 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5908 lt_cv_file_magic_cmd='$OBJDUMP -f'
5909 ;;
5910
d7040cdb
SE
5911darwin* | rhapsody*)
5912 lt_cv_deplibs_check_method=pass_all
d45dc31f 5913 ;;
d7040cdb
SE
5914
5915freebsd* | dragonfly*)
5916 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5917 case $host_cpu in
5918 i*86 )
5919 # Not sure whether the presence of OpenBSD here was a mistake.
5920 # Let's accept both of them until this is cleared up.
5921 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5922 lt_cv_file_magic_cmd=/usr/bin/file
5923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5924 ;;
5925 esac
5926 else
5927 lt_cv_deplibs_check_method=pass_all
5928 fi
5929 ;;
5930
5931gnu*)
5932 lt_cv_deplibs_check_method=pass_all
d45dc31f 5933 ;;
d7040cdb
SE
5934
5935hpux10.20* | hpux11*)
5936 lt_cv_file_magic_cmd=/usr/bin/file
5937 case $host_cpu in
5938 ia64*)
5939 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5940 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5941 ;;
5942 hppa*64*)
5943 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]'
5944 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5945 ;;
d45dc31f 5946 *)
d7040cdb
SE
5947 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5948 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5949 ;;
5950 esac
5951 ;;
42ecbf5e 5952
d7040cdb
SE
5953interix[3-9]*)
5954 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5956 ;;
42ecbf5e 5957
d7040cdb
SE
5958irix5* | irix6* | nonstopux*)
5959 case $LD in
5960 *-32|*"-32 ") libmagic=32-bit;;
5961 *-n32|*"-n32 ") libmagic=N32;;
5962 *-64|*"-64 ") libmagic=64-bit;;
5963 *) libmagic=never-match;;
5964 esac
5965 lt_cv_deplibs_check_method=pass_all
d45dc31f 5966 ;;
42ecbf5e 5967
d7040cdb
SE
5968# This must be Linux ELF.
5969linux* | k*bsd*-gnu)
5970 lt_cv_deplibs_check_method=pass_all
5971 ;;
252b5132 5972
d7040cdb
SE
5973netbsd*)
5974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 5976 else
d7040cdb 5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 5978 fi
d7040cdb
SE
5979 ;;
5980
5981newos6*)
5982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5983 lt_cv_file_magic_cmd=/usr/bin/file
5984 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5985 ;;
5986
5987*nto* | *qnx*)
5988 lt_cv_deplibs_check_method=pass_all
5989 ;;
42ecbf5e 5990
d7040cdb
SE
5991openbsd*)
5992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5994 else
5995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
5996 fi
5997 ;;
d7040cdb
SE
5998
5999osf3* | osf4* | osf5*)
6000 lt_cv_deplibs_check_method=pass_all
6001 ;;
6002
6003rdos*)
6004 lt_cv_deplibs_check_method=pass_all
6005 ;;
6006
6007solaris*)
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010
6011sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6012 lt_cv_deplibs_check_method=pass_all
6013 ;;
6014
6015sysv4 | sysv4.3*)
6016 case $host_vendor in
6017 motorola)
6018 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]'
6019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6020 ;;
6021 ncr)
6022 lt_cv_deplibs_check_method=pass_all
6023 ;;
6024 sequent)
6025 lt_cv_file_magic_cmd='/bin/file'
6026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6027 ;;
6028 sni)
6029 lt_cv_file_magic_cmd='/bin/file'
6030 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6031 lt_cv_file_magic_test_file=/lib/libc.so
6032 ;;
6033 siemens)
6034 lt_cv_deplibs_check_method=pass_all
6035 ;;
6036 pc)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039 esac
6040 ;;
6041
6042tpf*)
6043 lt_cv_deplibs_check_method=pass_all
6044 ;;
d45dc31f 6045esac
42ecbf5e 6046
d7040cdb
SE
6047fi
6048echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6049echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6050file_magic_cmd=$lt_cv_file_magic_cmd
6051deplibs_check_method=$lt_cv_deplibs_check_method
6052test -z "$deplibs_check_method" && deplibs_check_method=unknown
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
d45dc31f 6065if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6066 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6067set dummy ${ac_tool_prefix}ar; ac_word=$2
d45dc31f
SE
6068echo "$as_me:$LINENO: checking for $ac_word" >&5
6069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6070if test "${ac_cv_prog_AR+set}" = set; then
d45dc31f 6071 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 6072else
d7040cdb
SE
6073 if test -n "$AR"; then
6074 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
6075else
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6083 ac_cv_prog_AR="${ac_tool_prefix}ar"
d45dc31f
SE
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6086 fi
6087done
6088done
42ecbf5e 6089
42ecbf5e 6090fi
d45dc31f 6091fi
d7040cdb
SE
6092AR=$ac_cv_prog_AR
6093if test -n "$AR"; then
6094 echo "$as_me:$LINENO: result: $AR" >&5
6095echo "${ECHO_T}$AR" >&6
d45dc31f
SE
6096else
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099fi
42ecbf5e
DJ
6100
6101fi
d7040cdb
SE
6102if test -z "$ac_cv_prog_AR"; then
6103 ac_ct_AR=$AR
6104 # Extract the first word of "ar", so it can be a program name with args.
6105set dummy ar; ac_word=$2
d45dc31f
SE
6106echo "$as_me:$LINENO: checking for $ac_word" >&5
6107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6108if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42ecbf5e
DJ
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
d7040cdb
SE
6111 if test -n "$ac_ct_AR"; then
6112 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 6113else
d45dc31f
SE
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6121 ac_cv_prog_ac_ct_AR="ar"
d45dc31f
SE
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125done
6126done
42ecbf5e 6127
d7040cdb 6128 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
42ecbf5e 6129fi
42ecbf5e 6130fi
d7040cdb
SE
6131ac_ct_AR=$ac_cv_prog_ac_ct_AR
6132if test -n "$ac_ct_AR"; then
6133 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6134echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 6135else
d45dc31f
SE
6136 echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
252b5132 6138fi
252b5132 6139
d7040cdb 6140 AR=$ac_ct_AR
d45dc31f 6141else
d7040cdb 6142 AR="$ac_cv_prog_AR"
d45dc31f 6143fi
42ecbf5e 6144
d7040cdb
SE
6145test -z "$AR" && AR=ar
6146test -z "$AR_FLAGS" && AR_FLAGS=cru
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
d45dc31f
SE
6158if test -n "$ac_tool_prefix"; then
6159 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6160set dummy ${ac_tool_prefix}strip; ac_word=$2
6161echo "$as_me:$LINENO: checking for $ac_word" >&5
6162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6163if test "${ac_cv_prog_STRIP+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
6166 if test -n "$STRIP"; then
6167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
42ecbf5e 6171do
d45dc31f
SE
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6179 fi
6180done
6181done
6182
6183fi
6184fi
6185STRIP=$ac_cv_prog_STRIP
6186if test -n "$STRIP"; then
6187 echo "$as_me:$LINENO: result: $STRIP" >&5
6188echo "${ECHO_T}$STRIP" >&6
252b5132 6189else
d45dc31f
SE
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
6192fi
42ecbf5e 6193
252b5132 6194fi
d45dc31f
SE
6195if test -z "$ac_cv_prog_STRIP"; then
6196 ac_ct_STRIP=$STRIP
6197 # Extract the first word of "strip", so it can be a program name with args.
6198set dummy strip; ac_word=$2
6199echo "$as_me:$LINENO: checking for $ac_word" >&5
6200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6201if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203else
6204 if test -n "$ac_ct_STRIP"; then
6205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6206else
6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208for as_dir in $PATH
6209do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6214 ac_cv_prog_ac_ct_STRIP="strip"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218done
42ecbf5e 6219done
42ecbf5e 6220
d45dc31f
SE
6221 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6222fi
6223fi
6224ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6225if test -n "$ac_ct_STRIP"; then
6226 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6227echo "${ECHO_T}$ac_ct_STRIP" >&6
6228else
6229 echo "$as_me:$LINENO: result: no" >&5
6230echo "${ECHO_T}no" >&6
252b5132 6231fi
e5a52504 6232
d45dc31f
SE
6233 STRIP=$ac_ct_STRIP
6234else
6235 STRIP="$ac_cv_prog_STRIP"
6236fi
e5a52504 6237
d7040cdb 6238test -z "$STRIP" && STRIP=:
d45dc31f 6239
d45dc31f
SE
6240
6241
d45dc31f 6242
d45dc31f
SE
6243
6244
d7040cdb
SE
6245if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6247set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6248echo "$as_me:$LINENO: checking for $ac_word" >&5
6249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250if test "${ac_cv_prog_RANLIB+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
d45dc31f 6252else
d7040cdb
SE
6253 if test -n "$RANLIB"; then
6254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
d45dc31f 6266 fi
d7040cdb
SE
6267done
6268done
d45dc31f 6269
d7040cdb
SE
6270fi
6271fi
6272RANLIB=$ac_cv_prog_RANLIB
6273if test -n "$RANLIB"; then
6274 echo "$as_me:$LINENO: result: $RANLIB" >&5
6275echo "${ECHO_T}$RANLIB" >&6
6276else
6277 echo "$as_me:$LINENO: result: no" >&5
6278echo "${ECHO_T}no" >&6
6279fi
d45dc31f 6280
d7040cdb
SE
6281fi
6282if test -z "$ac_cv_prog_RANLIB"; then
6283 ac_ct_RANLIB=$RANLIB
6284 # Extract the first word of "ranlib", so it can be a program name with args.
6285set dummy ranlib; ac_word=$2
6286echo "$as_me:$LINENO: checking for $ac_word" >&5
6287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6288if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290else
6291 if test -n "$ac_ct_RANLIB"; then
6292 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301 ac_cv_prog_ac_ct_RANLIB="ranlib"
6302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 break 2
d45dc31f 6304 fi
d7040cdb
SE
6305done
6306done
d45dc31f 6307
d7040cdb
SE
6308 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6309fi
6310fi
6311ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6312if test -n "$ac_ct_RANLIB"; then
6313 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6314echo "${ECHO_T}$ac_ct_RANLIB" >&6
d15b04bd 6315else
d7040cdb
SE
6316 echo "$as_me:$LINENO: result: no" >&5
6317echo "${ECHO_T}no" >&6
6318fi
252b5132 6319
d7040cdb
SE
6320 RANLIB=$ac_ct_RANLIB
6321else
6322 RANLIB="$ac_cv_prog_RANLIB"
6323fi
d45dc31f 6324
d7040cdb 6325test -z "$RANLIB" && RANLIB=:
d45dc31f 6326
d45dc31f 6327
d45dc31f 6328
42ecbf5e 6329
e5a52504 6330
d7040cdb
SE
6331
6332# Determine commands to create old-style static archives.
718a6fd8 6333old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6334old_postinstall_cmds='chmod 644 $oldlib'
6335old_postuninstall_cmds=
6336
6337if test -n "$RANLIB"; then
6338 case $host_os in
6339 openbsd*)
6340 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6341 ;;
6342 *)
6343 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6344 ;;
6345 esac
6346 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6347fi
d45dc31f
SE
6348
6349
d45dc31f
SE
6350
6351
d15b04bd 6352
3e321448 6353
d45dc31f 6354
d45dc31f 6355
d45dc31f
SE
6356
6357
d45dc31f 6358
d45dc31f 6359
d45dc31f
SE
6360
6361
6362
6363
6364
6365
6366
d45dc31f 6367
d45dc31f 6368
d45dc31f 6369
d45dc31f 6370
d45dc31f 6371
d45dc31f 6372
d45dc31f 6373
d45dc31f 6374
3e321448
L
6375
6376
d45dc31f
SE
6377
6378
d45dc31f
SE
6379
6380
d45dc31f 6381
d7040cdb
SE
6382# If no C compiler was specified, use CC.
6383LTCC=${LTCC-"$CC"}
42ecbf5e 6384
d7040cdb
SE
6385# If no C compiler flags were specified, use CFLAGS.
6386LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6387
d7040cdb
SE
6388# Allow CC to be a program name with arguments.
6389compiler=$CC
d15b04bd 6390
d7040cdb
SE
6391
6392# Check for command to grab the raw symbol name followed by C symbol from nm.
6393echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6394echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6395if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
42ecbf5e 6396 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 6397else
d7040cdb
SE
6398
6399# These are sane defaults that work on at least a few old systems.
6400# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6401
6402# Character class describing NM global symbol codes.
6403symcode='[BCDEGRST]'
6404
6405# Regexp to match symbols that can be accessed directly from C.
6406sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6407
6408# Define system-specific variables.
6409case $host_os in
6410aix*)
6411 symcode='[BCDT]'
6412 ;;
718a6fd8 6413cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6414 symcode='[ABCDGISTW]'
6415 ;;
6416hpux*)
6417 if test "$host_cpu" = ia64; then
6418 symcode='[ABCDEGRST]'
42ecbf5e 6419 fi
d7040cdb
SE
6420 ;;
6421irix* | nonstopux*)
6422 symcode='[BCDEGRST]'
6423 ;;
6424osf*)
6425 symcode='[BCDEGQRST]'
6426 ;;
6427solaris*)
6428 symcode='[BDRT]'
6429 ;;
6430sco3.2v5*)
6431 symcode='[DT]'
6432 ;;
6433sysv4.2uw2*)
6434 symcode='[DT]'
6435 ;;
6436sysv5* | sco5v6* | unixware* | OpenUNIX*)
6437 symcode='[ABDT]'
6438 ;;
6439sysv4)
6440 symcode='[DFNSTU]'
6441 ;;
6442esac
d15b04bd 6443
d7040cdb
SE
6444# If we're using GNU nm, then use its standard symbol codes.
6445case `$NM -V 2>&1` in
6446*GNU* | *'with BFD'*)
6447 symcode='[ABCDGIRSTW]' ;;
6448esac
e5a52504 6449
d7040cdb
SE
6450# Transform an extracted symbol line into a proper C declaration.
6451# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6452# so use this general approach.
6453lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6454
7357c5b6
AM
6455# Transform an extracted symbol line into symbol name and symbol address
6456lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6457lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
d7040cdb 6458
7357c5b6
AM
6459# Handle CRLF in mingw tool chain
6460opt_cr=
6461case $build_os in
6462mingw*)
6463 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6464 ;;
6465esac
d7040cdb 6466
7357c5b6
AM
6467# Try without a prefix underscore, then with it.
6468for ac_symprfx in "" "_"; do
d7040cdb 6469
7357c5b6
AM
6470 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6471 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6472
7357c5b6
AM
6473 # Write the raw and C identifiers.
6474 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6475 # Fake it for dumpbin and say T for any non-static function
6476 # and D for any global variable.
6477 # Also find C++ and __fastcall symbols from MSVC++,
6478 # which start with @ or ?.
6479 lt_cv_sys_global_symbol_pipe="$AWK '"\
6480" {last_section=section; section=\$ 3};"\
6481" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6482" \$ 0!~/External *\|/{next};"\
6483" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6484" {if(hide[section]) next};"\
6485" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6486" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6487" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6488" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6489" ' prfx=^$ac_symprfx"
6490 else
6491 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6492 fi
6493
6494 # Check to see that the pipe works correctly.
6495 pipe_works=no
6496
6497 rm -f conftest*
6498 cat > conftest.$ac_ext <<_LT_EOF
6499#ifdef __cplusplus
6500extern "C" {
6501#endif
6502char nm_test_var;
6503void nm_test_func(void);
6504void nm_test_func(void){}
6505#ifdef __cplusplus
d7040cdb 6506}
7357c5b6
AM
6507#endif
6508int main(){nm_test_var='a';nm_test_func();return(0);}
6509_LT_EOF
6510
6511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512 (eval $ac_compile) 2>&5
42ecbf5e
DJ
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6515 (exit $ac_status); }; then
6516 # Now try to grab the symbols.
6517 nlist=conftest.nm
6518 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6519 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
42ecbf5e
DJ
6520 ac_status=$?
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6522 (exit $ac_status); } && test -s "$nlist"; then
6523 # Try sorting and uniquifying the output.
6524 if sort "$nlist" | uniq > "$nlist"T; then
6525 mv -f "$nlist"T "$nlist"
6526 else
6527 rm -f "$nlist"T
6528 fi
d7040cdb 6529
7357c5b6
AM
6530 # Make sure that we snagged all the symbols we need.
6531 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6532 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6533 cat <<_LT_EOF > conftest.$ac_ext
6534#ifdef __cplusplus
6535extern "C" {
6536#endif
e5a52504 6537
7357c5b6
AM
6538_LT_EOF
6539 # Now generate the symbol file.
6540 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6541
7357c5b6 6542 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6543
7357c5b6
AM
6544/* The mapping between symbol names and symbols. */
6545const struct {
6546 const char *name;
6547 void *address;
6548}
6549lt__PROGRAM__LTX_preloaded_symbols[] =
6550{
6551 { "@PROGRAM@", (void *) 0 },
6552_LT_EOF
6553 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6554 cat <<\_LT_EOF >> conftest.$ac_ext
6555 {0, (void *) 0}
6556};
d7040cdb 6557
7357c5b6
AM
6558/* This works around a problem in FreeBSD linker */
6559#ifdef FREEBSD_WORKAROUND
6560static const void *lt_preloaded_setup() {
6561 return lt__PROGRAM__LTX_preloaded_symbols;
6562}
d7040cdb
SE
6563#endif
6564
7357c5b6 6565#ifdef __cplusplus
d7040cdb 6566}
7357c5b6
AM
6567#endif
6568_LT_EOF
6569 # Now try linking the two files.
6570 mv conftest.$ac_objext conftstm.$ac_objext
6571 lt_save_LIBS="$LIBS"
6572 lt_save_CFLAGS="$CFLAGS"
6573 LIBS="conftstm.$ac_objext"
6574 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
6576 (eval $ac_link) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6579 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6580 pipe_works=yes
6581 fi
6582 LIBS="$lt_save_LIBS"
6583 CFLAGS="$lt_save_CFLAGS"
6584 else
6585 echo "cannot find nm_test_func in $nlist" >&5
6586 fi
6587 else
6588 echo "cannot find nm_test_var in $nlist" >&5
6589 fi
6590 else
6591 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6592 fi
6593 else
6594 echo "$progname: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6596 fi
718a6fd8 6597 rm -rf conftest* conftst*
7357c5b6
AM
6598
6599 # Do not use the global_symbol_pipe unless it works.
6600 if test "$pipe_works" = yes; then
6601 break
6602 else
6603 lt_cv_sys_global_symbol_pipe=
6604 fi
6605done
d7040cdb 6606
d7040cdb 6607fi
7357c5b6
AM
6608
6609if test -z "$lt_cv_sys_global_symbol_pipe"; then
6610 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6611fi
7357c5b6
AM
6612if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6613 echo "$as_me:$LINENO: result: failed" >&5
6614echo "${ECHO_T}failed" >&6
6615else
6616 echo "$as_me:$LINENO: result: ok" >&5
6617echo "${ECHO_T}ok" >&6
d7040cdb 6618fi
20e95c23 6619
20e95c23
DJ
6620
6621
20e95c23
DJ
6622
6623
20e95c23 6624
20e95c23 6625
20e95c23 6626
20e95c23 6627
20e95c23 6628
20e95c23
DJ
6629
6630
7357c5b6
AM
6631
6632
6633
718a6fd8
SE
6634
6635
6636
6637
6638
7357c5b6
AM
6639
6640
6641# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6642if test "${enable_libtool_lock+set}" = set; then
6643 enableval="$enable_libtool_lock"
6644
6645fi;
6646test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6647
6648# Some flags need to be propagated to the compiler or linker for good
6649# libtool support.
6650case $host in
6651ia64-*-hpux*)
6652 # Find out which ABI we are using.
6653 echo 'int i;' > conftest.$ac_ext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655 (eval $ac_compile) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; then
6659 case `/usr/bin/file conftest.$ac_objext` in
6660 *ELF-32*)
6661 HPUX_IA64_MODE="32"
6662 ;;
6663 *ELF-64*)
6664 HPUX_IA64_MODE="64"
6665 ;;
6666 esac
6667 fi
6668 rm -rf conftest*
6669 ;;
6670*-*-irix6*)
6671 # Find out which ABI we are using.
718a6fd8 6672 echo '#line 6672 "configure"' > conftest.$ac_ext
7357c5b6
AM
6673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674 (eval $ac_compile) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; then
6678 if test "$lt_cv_prog_gnu_ld" = yes; then
6679 case `/usr/bin/file conftest.$ac_objext` in
6680 *32-bit*)
6681 LD="${LD-ld} -melf32bsmip"
6682 ;;
6683 *N32*)
6684 LD="${LD-ld} -melf32bmipn32"
6685 ;;
6686 *64-bit*)
6687 LD="${LD-ld} -melf64bmip"
6688 ;;
6689 esac
6690 else
6691 case `/usr/bin/file conftest.$ac_objext` in
6692 *32-bit*)
6693 LD="${LD-ld} -32"
6694 ;;
6695 *N32*)
6696 LD="${LD-ld} -n32"
6697 ;;
6698 *64-bit*)
6699 LD="${LD-ld} -64"
6700 ;;
6701 esac
6702 fi
6703 fi
6704 rm -rf conftest*
6705 ;;
6706
6707x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6708s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6709 # Find out which ABI we are using.
6710 echo 'int i;' > conftest.$ac_ext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6712 (eval $ac_compile) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; then
6716 case `/usr/bin/file conftest.o` in
6717 *32-bit*)
6718 case $host in
6719 x86_64-*kfreebsd*-gnu)
6720 LD="${LD-ld} -m elf_i386_fbsd"
6721 ;;
6722 x86_64-*linux*)
6723 LD="${LD-ld} -m elf_i386"
6724 ;;
6725 ppc64-*linux*|powerpc64-*linux*)
6726 LD="${LD-ld} -m elf32ppclinux"
6727 ;;
6728 s390x-*linux*)
6729 LD="${LD-ld} -m elf_s390"
6730 ;;
6731 sparc64-*linux*)
6732 LD="${LD-ld} -m elf32_sparc"
6733 ;;
6734 esac
6735 ;;
6736 *64-bit*)
6737 case $host in
6738 x86_64-*kfreebsd*-gnu)
6739 LD="${LD-ld} -m elf_x86_64_fbsd"
6740 ;;
6741 x86_64-*linux*)
6742 LD="${LD-ld} -m elf_x86_64"
6743 ;;
6744 ppc*-*linux*|powerpc*-*linux*)
6745 LD="${LD-ld} -m elf64ppc"
6746 ;;
6747 s390*-*linux*|s390*-*tpf*)
6748 LD="${LD-ld} -m elf64_s390"
6749 ;;
6750 sparc*-*linux*)
6751 LD="${LD-ld} -m elf64_sparc"
6752 ;;
6753 esac
6754 ;;
6755 esac
6756 fi
6757 rm -rf conftest*
6758 ;;
6759
6760*-*-sco3.2v5*)
6761 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6762 SAVE_CFLAGS="$CFLAGS"
6763 CFLAGS="$CFLAGS -belf"
6764 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6765echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6766if test "${lt_cv_cc_needs_belf+set}" = set; then
d7040cdb
SE
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
7357c5b6
AM
6769 ac_ext=c
6770ac_cpp='$CPP $CPPFLAGS'
6771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774
6775 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6776/* confdefs.h. */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h. */
20e95c23 6781
7357c5b6
AM
6782int
6783main ()
6784{
6785
6786 ;
6787 return 0;
6788}
d7040cdb 6789_ACEOF
7357c5b6
AM
6790rm -f conftest.$ac_objext conftest$ac_exeext
6791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6792 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
7357c5b6
AM
6799 { ac_try='test -z "$ac_c_werror_flag"
6800 || test ! -s conftest.err'
d7040cdb
SE
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
7357c5b6 6806 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
7357c5b6 6812 lt_cv_cc_needs_belf=yes
d15b04bd 6813else
d7040cdb
SE
6814 echo "$as_me: failed program was:" >&5
6815sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 6816
7357c5b6 6817lt_cv_cc_needs_belf=no
d7040cdb 6818fi
7357c5b6
AM
6819rm -f conftest.err conftest.$ac_objext \
6820 conftest$ac_exeext conftest.$ac_ext
6821 ac_ext=c
6822ac_cpp='$CPP $CPPFLAGS'
6823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6826
718a6fd8
SE
6827fi
6828echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6829echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6830 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6831 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6832 CFLAGS="$SAVE_CFLAGS"
6833 fi
6834 ;;
6835sparc*-*solaris*)
6836 # Find out which ABI we are using.
6837 echo 'int i;' > conftest.$ac_ext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839 (eval $ac_compile) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; then
6843 case `/usr/bin/file conftest.o` in
6844 *64-bit*)
6845 case $lt_cv_prog_gnu_ld in
6846 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6847 *)
6848 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6849 LD="${LD-ld} -64"
6850 fi
6851 ;;
6852 esac
6853 ;;
6854 esac
6855 fi
6856 rm -rf conftest*
6857 ;;
6858esac
6859
6860need_locks="$enable_libtool_lock"
6861
6862
6863 case $host_os in
6864 rhapsody* | darwin*)
6865 if test -n "$ac_tool_prefix"; then
6866 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6867set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6868echo "$as_me:$LINENO: checking for $ac_word" >&5
6869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6870if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872else
6873 if test -n "$DSYMUTIL"; then
6874 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887done
6888done
6889
6890fi
6891fi
6892DSYMUTIL=$ac_cv_prog_DSYMUTIL
6893if test -n "$DSYMUTIL"; then
6894 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6895echo "${ECHO_T}$DSYMUTIL" >&6
6896else
6897 echo "$as_me:$LINENO: result: no" >&5
6898echo "${ECHO_T}no" >&6
6899fi
6900
6901fi
6902if test -z "$ac_cv_prog_DSYMUTIL"; then
6903 ac_ct_DSYMUTIL=$DSYMUTIL
6904 # Extract the first word of "dsymutil", so it can be a program name with args.
6905set dummy dsymutil; ac_word=$2
6906echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6908if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911 if test -n "$ac_ct_DSYMUTIL"; then
6912 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6913else
6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925done
6926done
6927
6928 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6929fi
6930fi
6931ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6932if test -n "$ac_ct_DSYMUTIL"; then
6933 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6934echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6935else
6936 echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6
6938fi
6939
6940 DSYMUTIL=$ac_ct_DSYMUTIL
6941else
6942 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6943fi
6944
6945 if test -n "$ac_tool_prefix"; then
6946 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6947set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6948echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6950if test "${ac_cv_prog_NMEDIT+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 if test -n "$NMEDIT"; then
6954 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967done
6968done
6969
6970fi
6971fi
6972NMEDIT=$ac_cv_prog_NMEDIT
6973if test -n "$NMEDIT"; then
6974 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6975echo "${ECHO_T}$NMEDIT" >&6
6976else
6977 echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6
6979fi
6980
6981fi
6982if test -z "$ac_cv_prog_NMEDIT"; then
6983 ac_ct_NMEDIT=$NMEDIT
6984 # Extract the first word of "nmedit", so it can be a program name with args.
6985set dummy nmedit; ac_word=$2
6986echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6988if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
6991 if test -n "$ac_ct_NMEDIT"; then
6992 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6993else
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006done
7007
7008 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7009fi
7010fi
7011ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7012if test -n "$ac_ct_NMEDIT"; then
7013 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7014echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7015else
7016 echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6
7018fi
7019
7020 NMEDIT=$ac_ct_NMEDIT
7021else
7022 NMEDIT="$ac_cv_prog_NMEDIT"
7023fi
7024
7025 if test -n "$ac_tool_prefix"; then
7026 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7027set dummy ${ac_tool_prefix}lipo; ac_word=$2
7028echo "$as_me:$LINENO: checking for $ac_word" >&5
7029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7030if test "${ac_cv_prog_LIPO+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032else
7033 if test -n "$LIPO"; then
7034 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047done
7048done
7049
7050fi
7051fi
7052LIPO=$ac_cv_prog_LIPO
7053if test -n "$LIPO"; then
7054 echo "$as_me:$LINENO: result: $LIPO" >&5
7055echo "${ECHO_T}$LIPO" >&6
7056else
7057 echo "$as_me:$LINENO: result: no" >&5
7058echo "${ECHO_T}no" >&6
7059fi
7060
7061fi
7062if test -z "$ac_cv_prog_LIPO"; then
7063 ac_ct_LIPO=$LIPO
7064 # Extract the first word of "lipo", so it can be a program name with args.
7065set dummy lipo; ac_word=$2
7066echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 if test -n "$ac_ct_LIPO"; then
7072 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_ac_ct_LIPO="lipo"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086done
7087
7088 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7089fi
7090fi
7091ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7092if test -n "$ac_ct_LIPO"; then
7093 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7094echo "${ECHO_T}$ac_ct_LIPO" >&6
7095else
7096 echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6
7098fi
7099
7100 LIPO=$ac_ct_LIPO
7101else
7102 LIPO="$ac_cv_prog_LIPO"
7103fi
7104
7105 if test -n "$ac_tool_prefix"; then
7106 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7107set dummy ${ac_tool_prefix}otool; ac_word=$2
7108echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7110if test "${ac_cv_prog_OTOOL+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 if test -n "$OTOOL"; then
7114 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127done
7128done
7129
7130fi
7131fi
7132OTOOL=$ac_cv_prog_OTOOL
7133if test -n "$OTOOL"; then
7134 echo "$as_me:$LINENO: result: $OTOOL" >&5
7135echo "${ECHO_T}$OTOOL" >&6
7136else
7137 echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6
7139fi
7140
7141fi
7142if test -z "$ac_cv_prog_OTOOL"; then
7143 ac_ct_OTOOL=$OTOOL
7144 # Extract the first word of "otool", so it can be a program name with args.
7145set dummy otool; ac_word=$2
7146echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151 if test -n "$ac_ct_OTOOL"; then
7152 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_ac_ct_OTOOL="otool"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7164 fi
7165done
7166done
7167
7168 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7169fi
7170fi
7171ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7172if test -n "$ac_ct_OTOOL"; then
7173 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7174echo "${ECHO_T}$ac_ct_OTOOL" >&6
7175else
7176 echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
7178fi
7179
7180 OTOOL=$ac_ct_OTOOL
7181else
7182 OTOOL="$ac_cv_prog_OTOOL"
7183fi
7184
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7187set dummy ${ac_tool_prefix}otool64; ac_word=$2
7188echo "$as_me:$LINENO: checking for $ac_word" >&5
7189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190if test "${ac_cv_prog_OTOOL64+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193 if test -n "$OTOOL64"; then
7194 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207done
7208done
7209
7210fi
7211fi
7212OTOOL64=$ac_cv_prog_OTOOL64
7213if test -n "$OTOOL64"; then
7214 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7215echo "${ECHO_T}$OTOOL64" >&6
7216else
7217 echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6
7219fi
7220
7221fi
7222if test -z "$ac_cv_prog_OTOOL64"; then
7223 ac_ct_OTOOL64=$OTOOL64
7224 # Extract the first word of "otool64", so it can be a program name with args.
7225set dummy otool64; ac_word=$2
7226echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231 if test -n "$ac_ct_OTOOL64"; then
7232 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_ac_ct_OTOOL64="otool64"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245done
7246done
7247
7248 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7249fi
7250fi
7251ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7252if test -n "$ac_ct_OTOOL64"; then
7253 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7254echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7255else
7256 echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6
7258fi
7259
7260 OTOOL64=$ac_ct_OTOOL64
7261else
7262 OTOOL64="$ac_cv_prog_OTOOL64"
7263fi
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7292echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7293if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296 lt_cv_apple_cc_single_mod=no
7297 if test -z "${LT_MULTI_MODULE}"; then
7298 # By default we will add the -single_module flag. You can override
7299 # by either setting the environment variable LT_MULTI_MODULE
7300 # non-empty at configure time, or by adding -multi_module to the
7301 # link flags.
7302 rm -rf libconftest.dylib*
7303 echo "int foo(void){return 1;}" > conftest.c
7304 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7305-dynamiclib -Wl,-single_module conftest.c" >&5
7306 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7307 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7308 _lt_result=$?
7309 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7310 lt_cv_apple_cc_single_mod=yes
7311 else
7312 cat conftest.err >&5
7313 fi
7314 rm -rf libconftest.dylib*
7315 rm -f conftest.*
7316 fi
7317fi
7318echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7319echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7320 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7321echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7322if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325 lt_cv_ld_exported_symbols_list=no
7326 save_LDFLAGS=$LDFLAGS
7327 echo "_main" > conftest.sym
7328 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7329 cat >conftest.$ac_ext <<_ACEOF
7330/* confdefs.h. */
7331_ACEOF
7332cat confdefs.h >>conftest.$ac_ext
7333cat >>conftest.$ac_ext <<_ACEOF
7334/* end confdefs.h. */
7335
7336int
7337main ()
7338{
7339
7340 ;
7341 return 0;
7342}
7343_ACEOF
7344rm -f conftest.$ac_objext conftest$ac_exeext
7345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7346 (eval $ac_link) 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_c_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest$ac_exeext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 lt_cv_ld_exported_symbols_list=yes
7367else
7368 echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371lt_cv_ld_exported_symbols_list=no
7372fi
7373rm -f conftest.err conftest.$ac_objext \
7374 conftest$ac_exeext conftest.$ac_ext
7375 LDFLAGS="$save_LDFLAGS"
7376
7377fi
7378echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7379echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7380 case $host_os in
7381 rhapsody* | darwin1.[012])
7382 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7383 darwin1.*)
7384 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7385 darwin*) # darwin 5.x on
7386 # if running on 10.5 or later, the deployment target defaults
7387 # to the OS version, if on x86, and 10.4, the deployment
7388 # target defaults to 10.4. Don't you love it?
7389 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7390 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7391 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7392 10.[012]*)
7393 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7394 10.*)
7395 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7396 esac
7397 ;;
7398 esac
7399 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7400 _lt_dar_single_mod='$single_module'
7401 fi
7402 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7403 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7404 else
7405 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7406 fi
7407 if test "$DSYMUTIL" != ":"; then
7408 _lt_dsymutil='~$DSYMUTIL $lib || :'
7409 else
7410 _lt_dsymutil=
7411 fi
7412 ;;
7413 esac
7414
7415
7416for ac_header in dlfcn.h
7417do
7418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7419echo "$as_me:$LINENO: checking for $ac_header" >&5
7420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7421if eval "test \"\${$as_ac_Header+set}\" = set"; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424 cat >conftest.$ac_ext <<_ACEOF
7425/* confdefs.h. */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h. */
7430$ac_includes_default
7431
7432#include <$ac_header>
7433_ACEOF
7434rm -f conftest.$ac_objext
7435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436 (eval $ac_compile) 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try='test -z "$ac_c_werror_flag"
7444 || test ! -s conftest.err'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 (eval $ac_try) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 eval "$as_ac_Header=yes"
7457else
7458 echo "$as_me: failed program was:" >&5
7459sed 's/^/| /' conftest.$ac_ext >&5
7460
7461eval "$as_ac_Header=no"
7462fi
7463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7464fi
7465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7467if test `eval echo '${'$as_ac_Header'}'` = yes; then
7468 cat >>confdefs.h <<_ACEOF
7469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7470_ACEOF
7471
7472fi
7473
7474done
7475
7476
7477
7478# Set options
7479
7480
7481
7482 enable_dlopen=no
7483
7484
7485 enable_win32_dll=no
7486
7487
7488 # Check whether --enable-shared or --disable-shared was given.
7489if test "${enable_shared+set}" = set; then
7490 enableval="$enable_shared"
7491 p=${PACKAGE-default}
7492 case $enableval in
7493 yes) enable_shared=yes ;;
7494 no) enable_shared=no ;;
7495 *)
7496 enable_shared=no
7497 # Look at the argument we got. We use all the common list separators.
7498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7499 for pkg in $enableval; do
7500 IFS="$lt_save_ifs"
7501 if test "X$pkg" = "X$p"; then
7502 enable_shared=yes
7503 fi
7504 done
7505 IFS="$lt_save_ifs"
7506 ;;
7507 esac
7508else
7509 enable_shared=yes
7510fi;
7511
7512
7513
7514
7515
7516
7517
7518
7519 # Check whether --enable-static or --disable-static was given.
7520if test "${enable_static+set}" = set; then
7521 enableval="$enable_static"
7522 p=${PACKAGE-default}
7523 case $enableval in
7524 yes) enable_static=yes ;;
7525 no) enable_static=no ;;
7526 *)
7527 enable_static=no
7528 # Look at the argument we got. We use all the common list separators.
7529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7530 for pkg in $enableval; do
7531 IFS="$lt_save_ifs"
7532 if test "X$pkg" = "X$p"; then
7533 enable_static=yes
7534 fi
7535 done
7536 IFS="$lt_save_ifs"
7537 ;;
7538 esac
7539else
7540 enable_static=yes
7541fi;
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551# Check whether --with-pic or --without-pic was given.
7552if test "${with_pic+set}" = set; then
7553 withval="$with_pic"
7554 pic_mode="$withval"
7555else
7556 pic_mode=default
7557fi;
7558
7559test -z "$pic_mode" && pic_mode=default
7560
7561
7562
7563
7564
7565
7566
7567 # Check whether --enable-fast-install or --disable-fast-install was given.
7568if test "${enable_fast_install+set}" = set; then
7569 enableval="$enable_fast_install"
7570 p=${PACKAGE-default}
7571 case $enableval in
7572 yes) enable_fast_install=yes ;;
7573 no) enable_fast_install=no ;;
7574 *)
7575 enable_fast_install=no
7576 # Look at the argument we got. We use all the common list separators.
7577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7578 for pkg in $enableval; do
7579 IFS="$lt_save_ifs"
7580 if test "X$pkg" = "X$p"; then
7581 enable_fast_install=yes
7582 fi
7583 done
7584 IFS="$lt_save_ifs"
7357c5b6
AM
7585 ;;
7586 esac
718a6fd8
SE
7587else
7588 enable_fast_install=yes
7589fi;
20e95c23 7590
20e95c23
DJ
7591
7592
42ecbf5e 7593
d7040cdb 7594
20e95c23 7595
d7040cdb 7596
d7040cdb
SE
7597
7598
7599
7600# This can be used to rebuild libtool when needed
7601LIBTOOL_DEPS="$ltmain"
7602
7603# Always use our own libtool.
7604LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630test -z "$LN_S" && LN_S="ln -s"
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645if test -n "${ZSH_VERSION+set}" ; then
7646 setopt NO_GLOB_SUBST
7647fi
7648
7649echo "$as_me:$LINENO: checking for objdir" >&5
7650echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7651if test "${lt_cv_objdir+set}" = set; then
20e95c23
DJ
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
d7040cdb
SE
7654 rm -f .libs 2>/dev/null
7655mkdir .libs 2>/dev/null
7656if test -d .libs; then
7657 lt_cv_objdir=.libs
42ecbf5e 7658else
d7040cdb
SE
7659 # MS-DOS does not allow filenames that begin with a dot.
7660 lt_cv_objdir=_libs
7661fi
7662rmdir .libs 2>/dev/null
42ecbf5e 7663fi
d7040cdb
SE
7664echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7665echo "${ECHO_T}$lt_cv_objdir" >&6
7666objdir=$lt_cv_objdir
42ecbf5e 7667
d7040cdb
SE
7668
7669
7670
7671
7672cat >>confdefs.h <<_ACEOF
7673#define LT_OBJDIR "$lt_cv_objdir/"
7674_ACEOF
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692case $host_os in
7693aix3*)
7694 # AIX sometimes has problems with the GCC collect2 program. For some
7695 # reason, if we set the COLLECT_NAMES environment variable, the problems
7696 # vanish in a puff of smoke.
7697 if test "X${COLLECT_NAMES+set}" != Xset; then
7698 COLLECT_NAMES=
7699 export COLLECT_NAMES
7700 fi
7701 ;;
7702esac
7703
7704# Sed substitution that helps us do robust quoting. It backslashifies
7705# metacharacters that are still active within double-quoted strings.
7706sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7707
7708# Same as above, but do not quote variable references.
7709double_quote_subst='s/\(["`\\]\)/\\\1/g'
7710
7711# Sed substitution to delay expansion of an escaped shell variable in a
7712# double_quote_subst'ed string.
7713delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7714
7715# Sed substitution to delay expansion of an escaped single quote.
7716delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7717
7718# Sed substitution to avoid accidental globbing in evaled expressions
7719no_glob_subst='s/\*/\\\*/g'
7720
7721# Global variables:
7722ofile=libtool
7723can_build_shared=yes
7724
7725# All known linkers require a `.a' archive for static linking (except MSVC,
7726# which needs '.lib').
7727libext=a
7728
7729with_gnu_ld="$lt_cv_prog_gnu_ld"
7730
7731old_CC="$CC"
7732old_CFLAGS="$CFLAGS"
7733
7734# Set sane defaults for various variables
7735test -z "$CC" && CC=cc
7736test -z "$LTCC" && LTCC=$CC
7737test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7738test -z "$LD" && LD=ld
7739test -z "$ac_objext" && ac_objext=o
7740
7741for cc_temp in $compiler""; do
7742 case $cc_temp in
7743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7745 \-*) ;;
7746 *) break;;
7747 esac
7748done
7749cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7750
7751
7752# Only perform the check for file, if the check method requires it
7753test -z "$MAGIC_CMD" && MAGIC_CMD=file
7754case $deplibs_check_method in
7755file_magic*)
7756 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7757 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7758echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7759if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761else
d7040cdb
SE
7762 case $MAGIC_CMD in
7763[\\/*] | ?:[\\/]*)
7764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7765 ;;
d7040cdb
SE
7766*)
7767 lt_save_MAGIC_CMD="$MAGIC_CMD"
7768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7769 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7770 for ac_dir in $ac_dummy; do
7771 IFS="$lt_save_ifs"
7772 test -z "$ac_dir" && ac_dir=.
7773 if test -f $ac_dir/${ac_tool_prefix}file; then
7774 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7775 if test -n "$file_magic_test_file"; then
7776 case $deplibs_check_method in
7777 "file_magic "*)
7778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7781 $EGREP "$file_magic_regex" > /dev/null; then
7782 :
7783 else
7784 cat <<_LT_EOF 1>&2
42ecbf5e 7785
d7040cdb
SE
7786*** Warning: the command libtool uses to detect shared libraries,
7787*** $file_magic_cmd, produces output that libtool cannot recognize.
7788*** The result is that libtool may fail to recognize shared libraries
7789*** as such. This will affect the creation of libtool libraries that
7790*** depend on shared libraries, but programs linked with such libtool
7791*** libraries will work regardless of this problem. Nevertheless, you
7792*** may want to report the problem to your system manager and/or to
7793*** bug-libtool@gnu.org
7794
7795_LT_EOF
7796 fi ;;
7797 esac
7798 fi
7799 break
7800 fi
7801 done
7802 IFS="$lt_save_ifs"
7803 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
7804 ;;
7805esac
42ecbf5e 7806fi
20e95c23 7807
d7040cdb
SE
7808MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809if test -n "$MAGIC_CMD"; then
7810 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7811echo "${ECHO_T}$MAGIC_CMD" >&6
42ecbf5e
DJ
7812else
7813 echo "$as_me:$LINENO: result: no" >&5
7814echo "${ECHO_T}no" >&6
7815fi
7816
20e95c23
DJ
7817
7818
42ecbf5e 7819
20e95c23 7820
d7040cdb
SE
7821if test -z "$lt_cv_path_MAGIC_CMD"; then
7822 if test -n "$ac_tool_prefix"; then
7823 echo "$as_me:$LINENO: checking for file" >&5
7824echo $ECHO_N "checking for file... $ECHO_C" >&6
7825if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
d7040cdb
SE
7828 case $MAGIC_CMD in
7829[\\/*] | ?:[\\/]*)
7830 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7831 ;;
7832*)
7833 lt_save_MAGIC_CMD="$MAGIC_CMD"
7834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7835 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7836 for ac_dir in $ac_dummy; do
7837 IFS="$lt_save_ifs"
7838 test -z "$ac_dir" && ac_dir=.
7839 if test -f $ac_dir/file; then
7840 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7841 if test -n "$file_magic_test_file"; then
7842 case $deplibs_check_method in
7843 "file_magic "*)
7844 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7846 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7847 $EGREP "$file_magic_regex" > /dev/null; then
7848 :
7849 else
7850 cat <<_LT_EOF 1>&2
7851
7852*** Warning: the command libtool uses to detect shared libraries,
7853*** $file_magic_cmd, produces output that libtool cannot recognize.
7854*** The result is that libtool may fail to recognize shared libraries
7855*** as such. This will affect the creation of libtool libraries that
7856*** depend on shared libraries, but programs linked with such libtool
7857*** libraries will work regardless of this problem. Nevertheless, you
7858*** may want to report the problem to your system manager and/or to
7859*** bug-libtool@gnu.org
7860
7861_LT_EOF
7862 fi ;;
7863 esac
7864 fi
7865 break
7866 fi
7867 done
7868 IFS="$lt_save_ifs"
7869 MAGIC_CMD="$lt_save_MAGIC_CMD"
7870 ;;
20e95c23
DJ
7871esac
7872fi
d7040cdb
SE
7873
7874MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7875if test -n "$MAGIC_CMD"; then
7876 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7877echo "${ECHO_T}$MAGIC_CMD" >&6
20e95c23
DJ
7878else
7879 echo "$as_me:$LINENO: result: no" >&5
7880echo "${ECHO_T}no" >&6
7881fi
7882
20e95c23 7883
42ecbf5e 7884 else
d7040cdb 7885 MAGIC_CMD=:
42ecbf5e 7886 fi
42ecbf5e 7887fi
42ecbf5e 7888
20e95c23 7889 fi
d7040cdb
SE
7890 ;;
7891esac
42ecbf5e 7892
d7040cdb 7893# Use C for the default configuration in the libtool script
42ecbf5e 7894
d7040cdb
SE
7895lt_save_CC="$CC"
7896ac_ext=c
7897ac_cpp='$CPP $CPPFLAGS'
7898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 7901
42ecbf5e 7902
d7040cdb
SE
7903# Source file extension for C test sources.
7904ac_ext=c
42ecbf5e 7905
d7040cdb
SE
7906# Object file extension for compiled C test sources.
7907objext=o
7908objext=$objext
42ecbf5e 7909
d7040cdb
SE
7910# Code to be used in simple compile tests
7911lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 7912
d7040cdb
SE
7913# Code to be used in simple link tests
7914lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 7915
ac48eca1 7916
42ecbf5e 7917
42ecbf5e 7918
d5fbea21 7919
d5fbea21
DJ
7920
7921
d7040cdb
SE
7922# If no C compiler was specified, use CC.
7923LTCC=${LTCC-"$CC"}
20e95c23 7924
d7040cdb
SE
7925# If no C compiler flags were specified, use CFLAGS.
7926LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 7927
d7040cdb
SE
7928# Allow CC to be a program name with arguments.
7929compiler=$CC
252b5132 7930
d7040cdb
SE
7931# Save the default compiler, since it gets overwritten when the other
7932# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7933compiler_DEFAULT=$CC
42ecbf5e 7934
d7040cdb
SE
7935# save warnings/boilerplate of simple test code
7936ac_outfile=conftest.$ac_objext
7937echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7938eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7939_lt_compiler_boilerplate=`cat conftest.err`
7940$RM conftest*
252b5132 7941
d7040cdb
SE
7942ac_outfile=conftest.$ac_objext
7943echo "$lt_simple_link_test_code" >conftest.$ac_ext
7944eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7945_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7946$RM -r conftest*
252b5132 7947
42ecbf5e 7948
d7040cdb
SE
7949## CAVEAT EMPTOR:
7950## There is no encapsulation within the following macros, do not change
7951## the running order or otherwise move them around unless you know exactly
7952## what you are doing...
7953if test -n "$compiler"; then
252b5132 7954
d7040cdb 7955lt_prog_compiler_no_builtin_flag=
252b5132 7956
d7040cdb
SE
7957if test "$GCC" = yes; then
7958 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d15b04bd 7959
d7040cdb
SE
7960 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7961echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7962if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23 7963 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7964else
d7040cdb
SE
7965 lt_cv_prog_compiler_rtti_exceptions=no
7966 ac_outfile=conftest.$ac_objext
7967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7968 lt_compiler_flag="-fno-rtti -fno-exceptions"
7969 # Insert the option either (1) after the last *FLAGS variable, or
7970 # (2) before a word containing "conftest.", or (3) at the end.
7971 # Note that $ac_compile itself does not contain backslashes and begins
7972 # with a dollar sign (not a hyphen), so the echo should work correctly.
7973 # The option is referenced via a variable to avoid confusing sed.
7974 lt_compile=`echo "$ac_compile" | $SED \
7975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7977 -e 's:$: $lt_compiler_flag:'`
718a6fd8 7978 (eval echo "\"\$as_me:7978: $lt_compile\"" >&5)
d7040cdb
SE
7979 (eval "$lt_compile" 2>conftest.err)
7980 ac_status=$?
7981 cat conftest.err >&5
718a6fd8 7982 echo "$as_me:7982: \$? = $ac_status" >&5
d7040cdb
SE
7983 if (exit $ac_status) && test -s "$ac_outfile"; then
7984 # The compiler can only warn and ignore the option if not recognized
7985 # So say no if there are warnings other than the usual output.
7986 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7989 lt_cv_prog_compiler_rtti_exceptions=yes
7990 fi
7991 fi
7992 $RM conftest*
42ecbf5e 7993
252b5132 7994fi
d7040cdb
SE
7995echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7996echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7997
7998if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7999 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 8000else
d7040cdb 8001 :
252b5132 8002fi
252b5132
RH
8003
8004fi
d7040cdb
SE
8005
8006
8007
8008
8009
8010
8011 lt_prog_compiler_wl=
8012lt_prog_compiler_pic=
8013lt_prog_compiler_static=
8014
8015echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8016echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8017
8018 if test "$GCC" = yes; then
8019 lt_prog_compiler_wl='-Wl,'
8020 lt_prog_compiler_static='-static'
8021
8022 case $host_os in
8023 aix*)
8024 # All AIX code is PIC.
8025 if test "$host_cpu" = ia64; then
8026 # AIX 5 now supports IA64 processor
8027 lt_prog_compiler_static='-Bstatic'
8028 fi
8029 ;;
8030
8031 amigaos*)
718a6fd8
SE
8032 case $host_cpu in
8033 powerpc)
8034 # see comment about AmigaOS4 .so support
8035 lt_prog_compiler_pic='-fPIC'
8036 ;;
8037 m68k)
8038 # FIXME: we need at least 68020 code to build shared libraries, but
8039 # adding the `-m68020' flag to GCC prevents building anything better,
8040 # like `-m68040'.
8041 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8042 ;;
8043 esac
d7040cdb
SE
8044 ;;
8045
8046 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8047 # PIC is the default for these OSes.
8048 ;;
8049
718a6fd8 8050 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8051 # This hack is so that the source file can tell whether it is being
8052 # built for inclusion in a dll (and should export symbols for example).
8053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8054 # (--disable-auto-import) libraries
8055 lt_prog_compiler_pic='-DDLL_EXPORT'
8056 ;;
8057
8058 darwin* | rhapsody*)
8059 # PIC is the default on this platform
8060 # Common symbols not allowed in MH_DYLIB files
8061 lt_prog_compiler_pic='-fno-common'
8062 ;;
8063
8064 hpux*)
718a6fd8
SE
8065 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8066 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8067 # sets the default TLS model and affects inlining.
d7040cdb 8068 case $host_cpu in
718a6fd8 8069 hppa*64*)
d7040cdb
SE
8070 # +Z the default
8071 ;;
8072 *)
8073 lt_prog_compiler_pic='-fPIC'
8074 ;;
8075 esac
8076 ;;
8077
8078 interix[3-9]*)
8079 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8080 # Instead, we relocate shared libraries at runtime.
8081 ;;
8082
8083 msdosdjgpp*)
8084 # Just because we use GCC doesn't mean we suddenly get shared libraries
8085 # on systems that don't support them.
8086 lt_prog_compiler_can_build_shared=no
8087 enable_shared=no
8088 ;;
8089
8090 *nto* | *qnx*)
8091 # QNX uses GNU C++, but need to define -shared option too, otherwise
8092 # it will coredump.
8093 lt_prog_compiler_pic='-fPIC -shared'
8094 ;;
8095
8096 sysv4*MP*)
8097 if test -d /usr/nec; then
8098 lt_prog_compiler_pic=-Kconform_pic
8099 fi
8100 ;;
8101
8102 *)
8103 lt_prog_compiler_pic='-fPIC'
8104 ;;
8105 esac
8106 else
8107 # PORTME Check for flag to pass linker flags through the system compiler.
8108 case $host_os in
8109 aix*)
8110 lt_prog_compiler_wl='-Wl,'
8111 if test "$host_cpu" = ia64; then
8112 # AIX 5 now supports IA64 processor
8113 lt_prog_compiler_static='-Bstatic'
8114 else
8115 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8116 fi
8117 ;;
d7040cdb 8118
718a6fd8 8119 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8120 # This hack is so that the source file can tell whether it is being
8121 # built for inclusion in a dll (and should export symbols for example).
8122 lt_prog_compiler_pic='-DDLL_EXPORT'
8123 ;;
8124
8125 hpux9* | hpux10* | hpux11*)
8126 lt_prog_compiler_wl='-Wl,'
8127 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8128 # not for PA HP-UX.
8129 case $host_cpu in
8130 hppa*64*|ia64*)
8131 # +Z the default
8132 ;;
8133 *)
8134 lt_prog_compiler_pic='+Z'
8135 ;;
8136 esac
8137 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8138 lt_prog_compiler_static='${wl}-a ${wl}archive'
8139 ;;
8140
8141 irix5* | irix6* | nonstopux*)
8142 lt_prog_compiler_wl='-Wl,'
8143 # PIC (with -KPIC) is the default.
8144 lt_prog_compiler_static='-non_shared'
8145 ;;
8146
8147 linux* | k*bsd*-gnu)
8148 case $cc_basename in
718a6fd8
SE
8149 # old Intel for x86_64 which still supported -KPIC.
8150 ecc*)
d7040cdb
SE
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_pic='-KPIC'
8153 lt_prog_compiler_static='-static'
8154 ;;
718a6fd8
SE
8155 # icc used to be incompatible with GCC.
8156 # ICC 10 doesn't accept -KPIC any more.
8157 icc* | ifort*)
8158 lt_prog_compiler_wl='-Wl,'
8159 lt_prog_compiler_pic='-fPIC'
8160 lt_prog_compiler_static='-static'
8161 ;;
8162 # Lahey Fortran 8.1.
8163 lf95*)
8164 lt_prog_compiler_wl='-Wl,'
8165 lt_prog_compiler_pic='--shared'
8166 lt_prog_compiler_static='--static'
8167 ;;
d7040cdb
SE
8168 pgcc* | pgf77* | pgf90* | pgf95*)
8169 # Portland Group compilers (*not* the Pentium gcc compiler,
8170 # which looks to be a dead project)
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_pic='-fpic'
8173 lt_prog_compiler_static='-Bstatic'
8174 ;;
8175 ccc*)
8176 lt_prog_compiler_wl='-Wl,'
8177 # All Alpha code is PIC.
8178 lt_prog_compiler_static='-non_shared'
8179 ;;
718a6fd8
SE
8180 xl*)
8181 # IBM XL C 8.0/Fortran 10.1 on PPC
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-qpic'
8184 lt_prog_compiler_static='-qstaticlink'
8185 ;;
d7040cdb
SE
8186 *)
8187 case `$CC -V 2>&1 | sed 5q` in
8188 *Sun\ C*)
8189 # Sun C 5.9
8190 lt_prog_compiler_pic='-KPIC'
8191 lt_prog_compiler_static='-Bstatic'
8192 lt_prog_compiler_wl='-Wl,'
8193 ;;
8194 *Sun\ F*)
8195 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8196 lt_prog_compiler_pic='-KPIC'
8197 lt_prog_compiler_static='-Bstatic'
8198 lt_prog_compiler_wl=''
8199 ;;
8200 esac
8201 ;;
8202 esac
8203 ;;
8204
8205 newsos6)
8206 lt_prog_compiler_pic='-KPIC'
8207 lt_prog_compiler_static='-Bstatic'
8208 ;;
8209
8210 *nto* | *qnx*)
8211 # QNX uses GNU C++, but need to define -shared option too, otherwise
8212 # it will coredump.
8213 lt_prog_compiler_pic='-fPIC -shared'
8214 ;;
8215
8216 osf3* | osf4* | osf5*)
8217 lt_prog_compiler_wl='-Wl,'
8218 # All OSF/1 code is PIC.
8219 lt_prog_compiler_static='-non_shared'
8220 ;;
8221
8222 rdos*)
8223 lt_prog_compiler_static='-non_shared'
8224 ;;
8225
8226 solaris*)
8227 lt_prog_compiler_pic='-KPIC'
8228 lt_prog_compiler_static='-Bstatic'
8229 case $cc_basename in
8230 f77* | f90* | f95*)
8231 lt_prog_compiler_wl='-Qoption ld ';;
8232 *)
8233 lt_prog_compiler_wl='-Wl,';;
8234 esac
8235 ;;
8236
8237 sunos4*)
8238 lt_prog_compiler_wl='-Qoption ld '
8239 lt_prog_compiler_pic='-PIC'
8240 lt_prog_compiler_static='-Bstatic'
8241 ;;
8242
8243 sysv4 | sysv4.2uw2* | sysv4.3*)
8244 lt_prog_compiler_wl='-Wl,'
8245 lt_prog_compiler_pic='-KPIC'
8246 lt_prog_compiler_static='-Bstatic'
8247 ;;
8248
8249 sysv4*MP*)
8250 if test -d /usr/nec ;then
8251 lt_prog_compiler_pic='-Kconform_pic'
8252 lt_prog_compiler_static='-Bstatic'
8253 fi
8254 ;;
8255
8256 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8257 lt_prog_compiler_wl='-Wl,'
8258 lt_prog_compiler_pic='-KPIC'
8259 lt_prog_compiler_static='-Bstatic'
8260 ;;
8261
8262 unicos*)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_can_build_shared=no
8265 ;;
8266
8267 uts4*)
8268 lt_prog_compiler_pic='-pic'
8269 lt_prog_compiler_static='-Bstatic'
8270 ;;
8271
8272 *)
8273 lt_prog_compiler_can_build_shared=no
8274 ;;
8275 esac
8276 fi
8277
8278case $host_os in
8279 # For platforms which do not support PIC, -DPIC is meaningless:
8280 *djgpp*)
8281 lt_prog_compiler_pic=
8282 ;;
8283 *)
8284 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8285 ;;
8286esac
8287echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8288echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8289
8290
8291
8292
8293
8294
8295#
8296# Check to make sure the PIC flag actually works.
8297#
8298if test -n "$lt_prog_compiler_pic"; then
8299 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8300echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
718a6fd8 8301if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
42ecbf5e
DJ
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
718a6fd8 8304 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8305 ac_outfile=conftest.$ac_objext
8306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8307 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8308 # Insert the option either (1) after the last *FLAGS variable, or
8309 # (2) before a word containing "conftest.", or (3) at the end.
8310 # Note that $ac_compile itself does not contain backslashes and begins
8311 # with a dollar sign (not a hyphen), so the echo should work correctly.
8312 # The option is referenced via a variable to avoid confusing sed.
8313 lt_compile=`echo "$ac_compile" | $SED \
8314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8316 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8317 (eval echo "\"\$as_me:8317: $lt_compile\"" >&5)
d7040cdb
SE
8318 (eval "$lt_compile" 2>conftest.err)
8319 ac_status=$?
8320 cat conftest.err >&5
718a6fd8 8321 echo "$as_me:8321: \$? = $ac_status" >&5
d7040cdb
SE
8322 if (exit $ac_status) && test -s "$ac_outfile"; then
8323 # The compiler can only warn and ignore the option if not recognized
8324 # So say no if there are warnings other than the usual output.
8325 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8328 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8329 fi
8330 fi
8331 $RM conftest*
42ecbf5e 8332
252b5132 8333fi
718a6fd8
SE
8334echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8335echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8336
718a6fd8 8337if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8338 case $lt_prog_compiler_pic in
8339 "" | " "*) ;;
8340 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8341 esac
252b5132 8342else
d7040cdb
SE
8343 lt_prog_compiler_pic=
8344 lt_prog_compiler_can_build_shared=no
252b5132 8345fi
252b5132
RH
8346
8347fi
42ecbf5e 8348
d7040cdb
SE
8349
8350
8351
8352
8353
8354#
8355# Check to make sure the static flag actually works.
8356#
8357wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8358echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8359echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
718a6fd8 8360if test "${lt_cv_prog_compiler_static_works+set}" = set; then
20e95c23 8361 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 8362else
718a6fd8 8363 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8364 save_LDFLAGS="$LDFLAGS"
8365 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8366 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8367 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8368 # The linker can only warn and ignore the option if not recognized
8369 # So say no if there are warnings
8370 if test -s conftest.err; then
8371 # Append any errors to the config.log.
8372 cat conftest.err 1>&5
8373 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8375 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8376 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8377 fi
8378 else
718a6fd8 8379 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8380 fi
8381 fi
718a6fd8 8382 $RM -r conftest*
d7040cdb 8383 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8384
42ecbf5e 8385fi
718a6fd8
SE
8386echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8387echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8388
718a6fd8 8389if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8390 :
8391else
8392 lt_prog_compiler_static=
42ecbf5e 8393fi
42ecbf5e 8394
252b5132 8395
252b5132 8396
42ecbf5e 8397
252b5132 8398
20e95c23 8399
d7040cdb
SE
8400
8401 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8402echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8403if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e 8404 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8405else
d7040cdb
SE
8406 lt_cv_prog_compiler_c_o=no
8407 $RM -r conftest 2>/dev/null
8408 mkdir conftest
8409 cd conftest
8410 mkdir out
8411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8412
8413 lt_compiler_flag="-o out/conftest2.$ac_objext"
8414 # Insert the option either (1) after the last *FLAGS variable, or
8415 # (2) before a word containing "conftest.", or (3) at the end.
8416 # Note that $ac_compile itself does not contain backslashes and begins
8417 # with a dollar sign (not a hyphen), so the echo should work correctly.
8418 lt_compile=`echo "$ac_compile" | $SED \
8419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8421 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8422 (eval echo "\"\$as_me:8422: $lt_compile\"" >&5)
d7040cdb
SE
8423 (eval "$lt_compile" 2>out/conftest.err)
8424 ac_status=$?
8425 cat out/conftest.err >&5
718a6fd8 8426 echo "$as_me:8426: \$? = $ac_status" >&5
d7040cdb
SE
8427 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8428 then
8429 # The compiler can only warn and ignore the option if not recognized
8430 # So say no if there are warnings
8431 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8432 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8433 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8434 lt_cv_prog_compiler_c_o=yes
8435 fi
8436 fi
8437 chmod u+w . 2>&5
8438 $RM conftest*
8439 # SGI C++ compiler will create directory out/ii_files/ for
8440 # template instantiation
8441 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8442 $RM out/* && rmdir out
8443 cd ..
8444 $RM -r conftest
8445 $RM conftest*
8446
252b5132 8447fi
d7040cdb
SE
8448echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8449echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
42ecbf5e 8450
20e95c23 8451
20e95c23
DJ
8452
8453
d7040cdb
SE
8454
8455
8456 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8457echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8458if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e
DJ
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460else
d7040cdb
SE
8461 lt_cv_prog_compiler_c_o=no
8462 $RM -r conftest 2>/dev/null
8463 mkdir conftest
8464 cd conftest
8465 mkdir out
8466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8467
8468 lt_compiler_flag="-o out/conftest2.$ac_objext"
8469 # Insert the option either (1) after the last *FLAGS variable, or
8470 # (2) before a word containing "conftest.", or (3) at the end.
8471 # Note that $ac_compile itself does not contain backslashes and begins
8472 # with a dollar sign (not a hyphen), so the echo should work correctly.
8473 lt_compile=`echo "$ac_compile" | $SED \
8474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8476 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8477 (eval echo "\"\$as_me:8477: $lt_compile\"" >&5)
d7040cdb
SE
8478 (eval "$lt_compile" 2>out/conftest.err)
8479 ac_status=$?
8480 cat out/conftest.err >&5
718a6fd8 8481 echo "$as_me:8481: \$? = $ac_status" >&5
d7040cdb
SE
8482 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8483 then
8484 # The compiler can only warn and ignore the option if not recognized
8485 # So say no if there are warnings
8486 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8489 lt_cv_prog_compiler_c_o=yes
8490 fi
8491 fi
8492 chmod u+w . 2>&5
8493 $RM conftest*
8494 # SGI C++ compiler will create directory out/ii_files/ for
8495 # template instantiation
8496 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8497 $RM out/* && rmdir out
8498 cd ..
8499 $RM -r conftest
8500 $RM conftest*
8501
8502fi
8503echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8504echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8505
8506
8507
8508
8509hard_links="nottested"
8510if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8511 # do not overwrite the value of need_locks provided by the user
8512 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8513echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8514 hard_links=yes
8515 $RM conftest*
8516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8517 touch conftest.a
8518 ln conftest.a conftest.b 2>&5 || hard_links=no
8519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8520 echo "$as_me:$LINENO: result: $hard_links" >&5
8521echo "${ECHO_T}$hard_links" >&6
8522 if test "$hard_links" = no; then
8523 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8524echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8525 need_locks=warn
8526 fi
8527else
8528 need_locks=no
8529fi
8530
8531
8532
8533
8534
8535
8536 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8537echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8538
8539 runpath_var=
8540 allow_undefined_flag=
8541 always_export_symbols=no
8542 archive_cmds=
8543 archive_expsym_cmds=
8544 compiler_needs_object=no
8545 enable_shared_with_static_runtimes=no
8546 export_dynamic_flag_spec=
8547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8548 hardcode_automatic=no
8549 hardcode_direct=no
8550 hardcode_direct_absolute=no
8551 hardcode_libdir_flag_spec=
8552 hardcode_libdir_flag_spec_ld=
8553 hardcode_libdir_separator=
8554 hardcode_minus_L=no
8555 hardcode_shlibpath_var=unsupported
8556 inherit_rpath=no
8557 link_all_deplibs=unknown
8558 module_cmds=
8559 module_expsym_cmds=
8560 old_archive_from_new_cmds=
8561 old_archive_from_expsyms_cmds=
8562 thread_safe_flag_spec=
8563 whole_archive_flag_spec=
8564 # include_expsyms should be a list of space-separated symbols to be *always*
8565 # included in the symbol list
8566 include_expsyms=
8567 # exclude_expsyms can be an extended regexp of symbols to exclude
8568 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8570 # as well as any symbol that contains `d'.
718a6fd8 8571 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8573 # platforms (ab)use it in PIC code, but their linkers get confused if
8574 # the symbol is explicitly referenced. Since portable code cannot
8575 # rely on this symbol name, it's probably fine to never include it in
8576 # preloaded symbol tables.
718a6fd8 8577 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8578 extract_expsyms_cmds=
8579
8580 case $host_os in
718a6fd8 8581 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8582 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8583 # When not using gcc, we currently assume that we are using
8584 # Microsoft Visual C++.
8585 if test "$GCC" != yes; then
8586 with_gnu_ld=no
8587 fi
8588 ;;
8589 interix*)
8590 # we just hope/assume this is gcc and not c89 (= MSVC++)
8591 with_gnu_ld=yes
8592 ;;
8593 openbsd*)
8594 with_gnu_ld=no
8595 ;;
8596 esac
8597
8598 ld_shlibs=yes
8599 if test "$with_gnu_ld" = yes; then
8600 # If archive_cmds runs LD, not CC, wlarc should be empty
8601 wlarc='${wl}'
8602
8603 # Set some defaults for GNU ld with shared library support. These
8604 # are reset later if shared libraries are not supported. Putting them
8605 # here allows them to be overridden if necessary.
8606 runpath_var=LD_RUN_PATH
8607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8608 export_dynamic_flag_spec='${wl}--export-dynamic'
8609 # ancient GNU ld didn't support --whole-archive et. al.
8610 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8611 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8612 else
8613 whole_archive_flag_spec=
8614 fi
8615 supports_anon_versioning=no
8616 case `$LD -v 2>&1` in
8617 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8618 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8619 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8620 *\ 2.11.*) ;; # other 2.11 versions
8621 *) supports_anon_versioning=yes ;;
8622 esac
8623
8624 # See if GNU ld supports shared libraries.
8625 case $host_os in
50e7d84b 8626 aix[3-9]*)
d7040cdb
SE
8627 # On AIX/PPC, the GNU linker is very broken
8628 if test "$host_cpu" != ia64; then
8629 ld_shlibs=no
8630 cat <<_LT_EOF 1>&2
8631
8632*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8633*** to be unable to reliably create shared libraries on AIX.
8634*** Therefore, libtool is disabling shared libraries support. If you
8635*** really care for shared libraries, you may want to modify your PATH
8636*** so that a non-GNU linker is found, and then restart.
8637
8638_LT_EOF
8639 fi
8640 ;;
8641
8642 amigaos*)
718a6fd8
SE
8643 case $host_cpu in
8644 powerpc)
8645 # see comment about AmigaOS4 .so support
8646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8647 archive_expsym_cmds=''
8648 ;;
8649 m68k)
8650 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)'
8651 hardcode_libdir_flag_spec='-L$libdir'
8652 hardcode_minus_L=yes
8653 ;;
8654 esac
d7040cdb
SE
8655 ;;
8656
8657 beos*)
8658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8659 allow_undefined_flag=unsupported
8660 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8661 # support --undefined. This deserves some investigation. FIXME
8662 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663 else
8664 ld_shlibs=no
8665 fi
8666 ;;
8667
718a6fd8 8668 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8669 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8670 # as there is no search path for DLLs.
8671 hardcode_libdir_flag_spec='-L$libdir'
8672 allow_undefined_flag=unsupported
8673 always_export_symbols=no
8674 enable_shared_with_static_runtimes=yes
8675 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8676
8677 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8679 # If the export-symbols file already is a .def file (1st line
8680 # is EXPORTS), use it as is; otherwise, prepend...
8681 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8682 cp $export_symbols $output_objdir/$soname.def;
8683 else
8684 echo EXPORTS > $output_objdir/$soname.def;
8685 cat $export_symbols >> $output_objdir/$soname.def;
8686 fi~
8687 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8688 else
8689 ld_shlibs=no
8690 fi
8691 ;;
8692
8693 interix[3-9]*)
8694 hardcode_direct=no
8695 hardcode_shlibpath_var=no
8696 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8697 export_dynamic_flag_spec='${wl}-E'
8698 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8699 # Instead, shared libraries are loaded at an image base (0x10000000 by
8700 # default) and relocated if they conflict, which is a slow very memory
8701 # consuming and fragmenting process. To avoid this, we pick a random,
8702 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8703 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8704 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8705 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'
8706 ;;
8707
8708 gnu* | linux* | tpf* | k*bsd*-gnu)
8709 tmp_diet=no
8710 if test "$host_os" = linux-dietlibc; then
8711 case $cc_basename in
8712 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8713 esac
8714 fi
8715 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8716 && test "$tmp_diet" = no
8717 then
8718 tmp_addflag=
718a6fd8 8719 tmp_sharedflag='-shared'
d7040cdb
SE
8720 case $cc_basename,$host_cpu in
8721 pgcc*) # Portland Group C compiler
8722 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'
8723 tmp_addflag=' $pic_flag'
8724 ;;
8725 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8726 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'
8727 tmp_addflag=' $pic_flag -Mnomain' ;;
8728 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8729 tmp_addflag=' -i_dynamic' ;;
8730 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8731 tmp_addflag=' -i_dynamic -nofor_main' ;;
8732 ifc* | ifort*) # Intel Fortran compiler
8733 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8734 lf95*) # Lahey Fortran 8.1
8735 whole_archive_flag_spec=
8736 tmp_sharedflag='--shared' ;;
8737 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8738 tmp_sharedflag='-qmkshrobj'
8739 tmp_addflag= ;;
d7040cdb
SE
8740 esac
8741 case `$CC -V 2>&1 | sed 5q` in
8742 *Sun\ C*) # Sun C 5.9
8743 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'
8744 compiler_needs_object=yes
8745 tmp_sharedflag='-G' ;;
8746 *Sun\ F*) # Sun Fortran 8.3
8747 tmp_sharedflag='-G' ;;
d7040cdb
SE
8748 esac
8749 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8750
8751 if test "x$supports_anon_versioning" = xyes; then
8752 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8753 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8754 echo "local: *; };" >> $output_objdir/$libname.ver~
8755 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8756 fi
718a6fd8
SE
8757
8758 case $cc_basename in
8759 xlf*)
8760 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8761 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8762 hardcode_libdir_flag_spec=
8763 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8764 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8765 if test "x$supports_anon_versioning" = xyes; then
8766 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8768 echo "local: *; };" >> $output_objdir/$libname.ver~
8769 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8770 fi
8771 ;;
8772 esac
d7040cdb
SE
8773 else
8774 ld_shlibs=no
8775 fi
8776 ;;
8777
8778 netbsd*)
8779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8780 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8781 wlarc=
8782 else
8783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8785 fi
8786 ;;
8787
8788 solaris*)
8789 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8790 ld_shlibs=no
8791 cat <<_LT_EOF 1>&2
8792
8793*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8794*** create shared libraries on Solaris systems. Therefore, libtool
8795*** is disabling shared libraries support. We urge you to upgrade GNU
8796*** binutils to release 2.9.1 or newer. Another option is to modify
8797*** your PATH or compiler configuration so that the native linker is
8798*** used, and then restart.
8799
8800_LT_EOF
8801 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8804 else
8805 ld_shlibs=no
8806 fi
8807 ;;
8808
8809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8810 case `$LD -v 2>&1` in
8811 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8812 ld_shlibs=no
8813 cat <<_LT_EOF 1>&2
8814
8815*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8816*** reliably create shared libraries on SCO systems. Therefore, libtool
8817*** is disabling shared libraries support. We urge you to upgrade GNU
8818*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8819*** your PATH or compiler configuration so that the native linker is
8820*** used, and then restart.
8821
8822_LT_EOF
8823 ;;
8824 *)
8825 # For security reasons, it is highly recommended that you always
8826 # use absolute paths for naming shared libraries, and exclude the
8827 # DT_RUNPATH tag from executables and libraries. But doing so
8828 # requires that you compile everything twice, which is a pain.
8829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8833 else
8834 ld_shlibs=no
8835 fi
8836 ;;
8837 esac
8838 ;;
8839
8840 sunos4*)
8841 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8842 wlarc=
8843 hardcode_direct=yes
8844 hardcode_shlibpath_var=no
8845 ;;
8846
8847 *)
8848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8851 else
8852 ld_shlibs=no
8853 fi
8854 ;;
8855 esac
8856
8857 if test "$ld_shlibs" = no; then
8858 runpath_var=
8859 hardcode_libdir_flag_spec=
8860 export_dynamic_flag_spec=
8861 whole_archive_flag_spec=
8862 fi
8863 else
8864 # PORTME fill in a description of your system's linker (not GNU ld)
8865 case $host_os in
8866 aix3*)
8867 allow_undefined_flag=unsupported
8868 always_export_symbols=yes
8869 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'
8870 # Note: this linker hardcodes the directories in LIBPATH if there
8871 # are no directories specified by -L.
8872 hardcode_minus_L=yes
8873 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8874 # Neither direct hardcoding nor static linking is supported with a
8875 # broken collect2.
8876 hardcode_direct=unsupported
8877 fi
8878 ;;
8879
50e7d84b 8880 aix[4-9]*)
d7040cdb
SE
8881 if test "$host_cpu" = ia64; then
8882 # On IA64, the linker does run time linking by default, so we don't
8883 # have to do anything special.
8884 aix_use_runtimelinking=no
8885 exp_sym_flag='-Bexport'
8886 no_entry_flag=""
8887 else
8888 # If we're using GNU nm, then we don't want the "-C" option.
8889 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8890 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8891 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'
8892 else
8893 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'
8894 fi
8895 aix_use_runtimelinking=no
8896
8897 # Test if we are trying to use run time linking or normal
8898 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8899 # need to do runtime linking.
50e7d84b 8900 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8901 for ld_flag in $LDFLAGS; do
8902 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8903 aix_use_runtimelinking=yes
8904 break
8905 fi
8906 done
8907 ;;
8908 esac
8909
8910 exp_sym_flag='-bexport'
8911 no_entry_flag='-bnoentry'
8912 fi
8913
8914 # When large executables or shared objects are built, AIX ld can
8915 # have problems creating the table of contents. If linking a library
8916 # or program results in "error TOC overflow" add -mminimal-toc to
8917 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8918 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8919
8920 archive_cmds=''
8921 hardcode_direct=yes
8922 hardcode_direct_absolute=yes
8923 hardcode_libdir_separator=':'
8924 link_all_deplibs=yes
8925 file_list_spec='${wl}-f,'
8926
8927 if test "$GCC" = yes; then
8928 case $host_os in aix4.[012]|aix4.[012].*)
8929 # We only want to do this on AIX 4.2 and lower, the check
8930 # below for broken collect2 doesn't work under 4.3+
8931 collect2name=`${CC} -print-prog-name=collect2`
8932 if test -f "$collect2name" &&
8933 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8934 then
8935 # We have reworked collect2
8936 :
8937 else
8938 # We have old collect2
8939 hardcode_direct=unsupported
8940 # It fails to find uninstalled libraries when the uninstalled
8941 # path is not listed in the libpath. Setting hardcode_minus_L
8942 # to unsupported forces relinking
8943 hardcode_minus_L=yes
8944 hardcode_libdir_flag_spec='-L$libdir'
8945 hardcode_libdir_separator=
8946 fi
8947 ;;
8948 esac
8949 shared_flag='-shared'
8950 if test "$aix_use_runtimelinking" = yes; then
8951 shared_flag="$shared_flag "'${wl}-G'
8952 fi
8953 else
8954 # not using gcc
8955 if test "$host_cpu" = ia64; then
8956 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8957 # chokes on -Wl,-G. The following line is correct:
8958 shared_flag='-G'
8959 else
8960 if test "$aix_use_runtimelinking" = yes; then
8961 shared_flag='${wl}-G'
8962 else
8963 shared_flag='${wl}-bM:SRE'
8964 fi
8965 fi
8966 fi
8967
718a6fd8 8968 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
8969 # It seems that -bexpall does not export symbols beginning with
8970 # underscore (_), so it is better to generate a list of symbols to export.
8971 always_export_symbols=yes
8972 if test "$aix_use_runtimelinking" = yes; then
8973 # Warning - without using the other runtime loading flags (-brtl),
8974 # -berok will link without error, but may produce a broken library.
8975 allow_undefined_flag='-berok'
8976 # Determine the default libpath from the value encoded in an
8977 # empty executable.
8978 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
d7040cdb
SE
8984
8985int
8986main ()
8987{
8988
8989 ;
8990 return 0;
8991}
42ecbf5e 8992_ACEOF
d7040cdb
SE
8993rm -f conftest.$ac_objext conftest$ac_exeext
8994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 9001 (exit $ac_status); } &&
7357c5b6
AM
9002 { ac_try='test -z "$ac_c_werror_flag"
9003 || test ! -s conftest.err'
d7040cdb
SE
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015
9016lt_aix_libpath_sed='
9017 /Import File Strings/,/^$/ {
9018 /^0/ {
9019 s/^0 *\(.*\)$/\1/
9020 p
9021 }
9022 }'
9023aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9024# Check for a 64-bit object if we didn't find anything.
9025if test -z "$aix_libpath"; then
9026 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 9027fi
252b5132 9028else
20e95c23
DJ
9029 echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
252b5132 9032fi
d7040cdb
SE
9033rm -f conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
9035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 9036
d7040cdb
SE
9037 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9038 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"
9039 else
9040 if test "$host_cpu" = ia64; then
9041 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9042 allow_undefined_flag="-z nodefs"
9043 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"
9044 else
9045 # Determine the default libpath from the value encoded in an
9046 # empty executable.
9047 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
9048/* confdefs.h. */
9049_ACEOF
9050cat confdefs.h >>conftest.$ac_ext
9051cat >>conftest.$ac_ext <<_ACEOF
9052/* end confdefs.h. */
d7040cdb
SE
9053
9054int
9055main ()
9056{
9057
9058 ;
9059 return 0;
9060}
42ecbf5e 9061_ACEOF
d7040cdb
SE
9062rm -f conftest.$ac_objext conftest$ac_exeext
9063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
9065 ac_status=$?
9066 grep -v '^ *+' conftest.er1 >conftest.err
9067 rm -f conftest.er1
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 9070 (exit $ac_status); } &&
7357c5b6
AM
9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
d7040cdb
SE
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest$ac_exeext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084
9085lt_aix_libpath_sed='
9086 /Import File Strings/,/^$/ {
9087 /^0/ {
9088 s/^0 *\(.*\)$/\1/
9089 p
9090 }
9091 }'
9092aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9093# Check for a 64-bit object if we didn't find anything.
9094if test -z "$aix_libpath"; then
9095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 9096fi
252b5132 9097else
42ecbf5e
DJ
9098 echo "$as_me: failed program was:" >&5
9099sed 's/^/| /' conftest.$ac_ext >&5
9100
252b5132 9101fi
d7040cdb
SE
9102rm -f conftest.err conftest.$ac_objext \
9103 conftest$ac_exeext conftest.$ac_ext
9104if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9105
9106 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9107 # Warning - without using the other run time loading flags,
9108 # -berok will link without error, but may produce a broken library.
9109 no_undefined_flag=' ${wl}-bernotok'
9110 allow_undefined_flag=' ${wl}-berok'
9111 # Exported symbols can be pulled into shared objects from archives
9112 whole_archive_flag_spec='$convenience'
9113 archive_cmds_need_lc=yes
9114 # This is similar to how AIX traditionally builds its shared libraries.
9115 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'
9116 fi
9117 fi
9118 ;;
42ecbf5e 9119
d7040cdb 9120 amigaos*)
718a6fd8
SE
9121 case $host_cpu in
9122 powerpc)
9123 # see comment about AmigaOS4 .so support
9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125 archive_expsym_cmds=''
9126 ;;
9127 m68k)
9128 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)'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_minus_L=yes
9131 ;;
9132 esac
d7040cdb 9133 ;;
252b5132 9134
d7040cdb
SE
9135 bsdi[45]*)
9136 export_dynamic_flag_spec=-rdynamic
9137 ;;
252b5132 9138
718a6fd8 9139 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9140 # When not using gcc, we currently assume that we are using
9141 # Microsoft Visual C++.
9142 # hardcode_libdir_flag_spec is actually meaningless, as there is
9143 # no search path for DLLs.
9144 hardcode_libdir_flag_spec=' '
9145 allow_undefined_flag=unsupported
9146 # Tell ltmain to make .lib files, not .a files.
9147 libext=lib
9148 # Tell ltmain to make .dll files, not .so files.
9149 shrext_cmds=".dll"
9150 # FIXME: Setting linknames here is a bad hack.
9151 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9152 # The linker will automatically build a .lib file if we build a DLL.
9153 old_archive_from_new_cmds='true'
9154 # FIXME: Should let the user specify the lib program.
9155 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9156 fix_srcfile_path='`cygpath -w "$srcfile"`'
9157 enable_shared_with_static_runtimes=yes
9158 ;;
252b5132 9159
d7040cdb 9160 darwin* | rhapsody*)
c46f8c51 9161
718a6fd8
SE
9162
9163 archive_cmds_need_lc=no
9164 hardcode_direct=no
9165 hardcode_automatic=yes
9166 hardcode_shlibpath_var=unsupported
9167 whole_archive_flag_spec=''
9168 link_all_deplibs=yes
9169 allow_undefined_flag="$_lt_dar_allow_undefined"
9170 case $cc_basename in
9171 ifort*) _lt_dar_can_shared=yes ;;
9172 *) _lt_dar_can_shared=$GCC ;;
9173 esac
9174 if test "$_lt_dar_can_shared" = "yes"; then
9175 output_verbose_link_cmd=echo
9176 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9177 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9178 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9179 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9180
9181 else
9182 ld_shlibs=no
9183 fi
9184
d7040cdb 9185 ;;
42ecbf5e 9186
d7040cdb
SE
9187 dgux*)
9188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9189 hardcode_libdir_flag_spec='-L$libdir'
9190 hardcode_shlibpath_var=no
9191 ;;
252b5132 9192
d7040cdb
SE
9193 freebsd1*)
9194 ld_shlibs=no
9195 ;;
252b5132 9196
d7040cdb
SE
9197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9198 # support. Future versions do this automatically, but an explicit c++rt0.o
9199 # does not break anything, and helps significantly (at the cost of a little
9200 # extra space).
9201 freebsd2.2*)
9202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9203 hardcode_libdir_flag_spec='-R$libdir'
9204 hardcode_direct=yes
9205 hardcode_shlibpath_var=no
9206 ;;
252b5132 9207
d7040cdb
SE
9208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9209 freebsd2*)
9210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9211 hardcode_direct=yes
9212 hardcode_minus_L=yes
9213 hardcode_shlibpath_var=no
9214 ;;
42ecbf5e 9215
d7040cdb
SE
9216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9217 freebsd* | dragonfly*)
9218 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9219 hardcode_libdir_flag_spec='-R$libdir'
9220 hardcode_direct=yes
9221 hardcode_shlibpath_var=no
9222 ;;
252b5132 9223
d7040cdb
SE
9224 hpux9*)
9225 if test "$GCC" = yes; then
9226 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'
9227 else
9228 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'
9229 fi
9230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9231 hardcode_libdir_separator=:
9232 hardcode_direct=yes
9233
9234 # hardcode_minus_L: Not really in the search PATH,
9235 # but as the default location of the library.
9236 hardcode_minus_L=yes
9237 export_dynamic_flag_spec='${wl}-E'
9238 ;;
20e95c23 9239
d7040cdb
SE
9240 hpux10*)
9241 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9243 else
9244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9245 fi
9246 if test "$with_gnu_ld" = no; then
9247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9248 hardcode_libdir_flag_spec_ld='+b $libdir'
9249 hardcode_libdir_separator=:
9250 hardcode_direct=yes
9251 hardcode_direct_absolute=yes
9252 export_dynamic_flag_spec='${wl}-E'
9253 # hardcode_minus_L: Not really in the search PATH,
9254 # but as the default location of the library.
9255 hardcode_minus_L=yes
9256 fi
9257 ;;
20e95c23 9258
d7040cdb
SE
9259 hpux11*)
9260 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9261 case $host_cpu in
9262 hppa*64*)
9263 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264 ;;
9265 ia64*)
718a6fd8 9266 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9267 ;;
9268 *)
9269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9270 ;;
9271 esac
9272 else
9273 case $host_cpu in
9274 hppa*64*)
9275 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9276 ;;
9277 ia64*)
9278 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9279 ;;
9280 *)
9281 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9282 ;;
9283 esac
9284 fi
9285 if test "$with_gnu_ld" = no; then
9286 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9287 hardcode_libdir_separator=:
9288
9289 case $host_cpu in
9290 hppa*64*|ia64*)
9291 hardcode_direct=no
9292 hardcode_shlibpath_var=no
9293 ;;
9294 *)
9295 hardcode_direct=yes
9296 hardcode_direct_absolute=yes
9297 export_dynamic_flag_spec='${wl}-E'
9298
9299 # hardcode_minus_L: Not really in the search PATH,
9300 # but as the default location of the library.
9301 hardcode_minus_L=yes
9302 ;;
9303 esac
9304 fi
9305 ;;
9306
9307 irix5* | irix6* | nonstopux*)
9308 if test "$GCC" = yes; then
9309 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'
9310 # Try to use the -exported_symbol ld option, if it does not
9311 # work, assume that -exports_file does not work either and
9312 # implicitly export all symbols.
9313 save_LDFLAGS="$LDFLAGS"
9314 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9315 cat >conftest.$ac_ext <<_ACEOF
9316int foo(void) {}
42ecbf5e 9317_ACEOF
d7040cdb
SE
9318rm -f conftest.$ac_objext conftest$ac_exeext
9319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
7357c5b6
AM
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
42ecbf5e
DJ
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
d7040cdb 9334 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
d7040cdb
SE
9340 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'
9341
42ecbf5e
DJ
9342else
9343 echo "$as_me: failed program was:" >&5
9344sed 's/^/| /' conftest.$ac_ext >&5
9345
42ecbf5e 9346fi
d7040cdb
SE
9347rm -f conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 LDFLAGS="$save_LDFLAGS"
9350 else
9351 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'
9352 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'
9353 fi
9354 archive_cmds_need_lc='no'
9355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9356 hardcode_libdir_separator=:
9357 inherit_rpath=yes
9358 link_all_deplibs=yes
9359 ;;
42ecbf5e 9360
d7040cdb
SE
9361 netbsd*)
9362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9364 else
9365 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9366 fi
9367 hardcode_libdir_flag_spec='-R$libdir'
9368 hardcode_direct=yes
9369 hardcode_shlibpath_var=no
9370 ;;
42ecbf5e 9371
d7040cdb
SE
9372 newsos6)
9373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_direct=yes
9375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9376 hardcode_libdir_separator=:
9377 hardcode_shlibpath_var=no
9378 ;;
42ecbf5e 9379
d7040cdb
SE
9380 *nto* | *qnx*)
9381 ;;
252b5132 9382
d7040cdb 9383 openbsd*)
718a6fd8
SE
9384 if test -f /usr/libexec/ld.so; then
9385 hardcode_direct=yes
9386 hardcode_shlibpath_var=no
9387 hardcode_direct_absolute=yes
9388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9390 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9392 export_dynamic_flag_spec='${wl}-E'
9393 else
9394 case $host_os in
9395 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_libdir_flag_spec='-R$libdir'
9398 ;;
9399 *)
9400 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9401 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9402 ;;
9403 esac
9404 fi
9405 else
9406 ld_shlibs=no
d7040cdb
SE
9407 fi
9408 ;;
252b5132 9409
d7040cdb
SE
9410 os2*)
9411 hardcode_libdir_flag_spec='-L$libdir'
9412 hardcode_minus_L=yes
9413 allow_undefined_flag=unsupported
9414 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'
9415 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9416 ;;
2481e6a2 9417
d7040cdb
SE
9418 osf3*)
9419 if test "$GCC" = yes; then
9420 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9421 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'
9422 else
9423 allow_undefined_flag=' -expect_unresolved \*'
9424 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'
9425 fi
9426 archive_cmds_need_lc='no'
9427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9428 hardcode_libdir_separator=:
9429 ;;
42ecbf5e 9430
d7040cdb
SE
9431 osf4* | osf5*) # as osf3* with the addition of -msym flag
9432 if test "$GCC" = yes; then
9433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9434 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'
9435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9436 else
9437 allow_undefined_flag=' -expect_unresolved \*'
9438 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'
9439 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~
9440 $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'
42ecbf5e 9441
d7040cdb
SE
9442 # Both c and cxx compiler support -rpath directly
9443 hardcode_libdir_flag_spec='-rpath $libdir'
9444 fi
9445 archive_cmds_need_lc='no'
9446 hardcode_libdir_separator=:
9447 ;;
9448
9449 solaris*)
9450 no_undefined_flag=' -z defs'
9451 if test "$GCC" = yes; then
9452 wlarc='${wl}'
9453 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9455 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9456 else
9457 case `$CC -V 2>&1` in
9458 *"Compilers 5.0"*)
9459 wlarc=''
9460 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9462 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9463 ;;
9464 *)
9465 wlarc='${wl}'
9466 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9468 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9469 ;;
9470 esac
9471 fi
9472 hardcode_libdir_flag_spec='-R$libdir'
9473 hardcode_shlibpath_var=no
9474 case $host_os in
9475 solaris2.[0-5] | solaris2.[0-5].*) ;;
9476 *)
9477 # The compiler driver will combine and reorder linker options,
9478 # but understands `-z linker_flag'. GCC discards it without `$wl',
9479 # but is careful enough not to reorder.
9480 # Supported since Solaris 2.6 (maybe 2.5.1?)
9481 if test "$GCC" = yes; then
9482 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9483 else
9484 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9485 fi
9486 ;;
9487 esac
9488 link_all_deplibs=yes
9489 ;;
9490
9491 sunos4*)
9492 if test "x$host_vendor" = xsequent; then
9493 # Use $CC to link under sequent, because it throws in some extra .o
9494 # files that make .init and .fini sections work.
9495 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9496 else
9497 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9498 fi
9499 hardcode_libdir_flag_spec='-L$libdir'
9500 hardcode_direct=yes
9501 hardcode_minus_L=yes
9502 hardcode_shlibpath_var=no
9503 ;;
9504
9505 sysv4)
9506 case $host_vendor in
9507 sni)
9508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9509 hardcode_direct=yes # is this really true???
9510 ;;
9511 siemens)
9512 ## LD is ld it makes a PLAMLIB
9513 ## CC just makes a GrossModule.
9514 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9515 reload_cmds='$CC -r -o $output$reload_objs'
9516 hardcode_direct=no
9517 ;;
9518 motorola)
9519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9520 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9521 ;;
9522 esac
9523 runpath_var='LD_RUN_PATH'
9524 hardcode_shlibpath_var=no
9525 ;;
9526
9527 sysv4.3*)
9528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529 hardcode_shlibpath_var=no
9530 export_dynamic_flag_spec='-Bexport'
9531 ;;
9532
9533 sysv4*MP*)
9534 if test -d /usr/nec; then
9535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_shlibpath_var=no
9537 runpath_var=LD_RUN_PATH
9538 hardcode_runpath_var=yes
9539 ld_shlibs=yes
9540 fi
9541 ;;
9542
9543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9544 no_undefined_flag='${wl}-z,text'
9545 archive_cmds_need_lc=no
9546 hardcode_shlibpath_var=no
9547 runpath_var='LD_RUN_PATH'
9548
9549 if test "$GCC" = yes; then
9550 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9551 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 else
9553 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 fi
9556 ;;
9557
9558 sysv5* | sco3.2v5* | sco5v6*)
9559 # Note: We can NOT use -z defs as we might desire, because we do not
9560 # link with -lc, and that would cause any symbols used from libc to
9561 # always be unresolved, which means just about no library would
9562 # ever link correctly. If we're not using GNU ld we use -z text
9563 # though, which does catch some bad symbols but isn't as heavy-handed
9564 # as -z defs.
9565 no_undefined_flag='${wl}-z,text'
9566 allow_undefined_flag='${wl}-z,nodefs'
9567 archive_cmds_need_lc=no
9568 hardcode_shlibpath_var=no
9569 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9570 hardcode_libdir_separator=':'
9571 link_all_deplibs=yes
9572 export_dynamic_flag_spec='${wl}-Bexport'
9573 runpath_var='LD_RUN_PATH'
9574
9575 if test "$GCC" = yes; then
9576 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9578 else
9579 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581 fi
9582 ;;
9583
9584 uts4*)
9585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_libdir_flag_spec='-L$libdir'
9587 hardcode_shlibpath_var=no
9588 ;;
9589
9590 *)
9591 ld_shlibs=no
9592 ;;
9593 esac
9594
9595 if test x$host_vendor = xsni; then
9596 case $host in
9597 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9598 export_dynamic_flag_spec='${wl}-Blargedynsym'
9599 ;;
9600 esac
9601 fi
9602 fi
9603
9604echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9605echo "${ECHO_T}$ld_shlibs" >&6
9606test "$ld_shlibs" = no && can_build_shared=no
9607
9608with_gnu_ld=$with_gnu_ld
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624#
9625# Do we need to explicitly link libc?
9626#
9627case "x$archive_cmds_need_lc" in
9628x|xyes)
9629 # Assume -lc should be added
9630 archive_cmds_need_lc=yes
9631
9632 if test "$enable_shared" = yes && test "$GCC" = yes; then
9633 case $archive_cmds in
9634 *'~'*)
9635 # FIXME: we may have to deal with multi-command sequences.
9636 ;;
9637 '$CC '*)
9638 # Test whether the compiler implicitly links with -lc since on some
9639 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9640 # to ld, don't add -lc before -lgcc.
9641 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9642echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9643 $RM conftest*
9644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9645
9646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9647 (eval $ac_compile) 2>&5
20e95c23
DJ
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
9650 (exit $ac_status); } 2>conftest.err; then
9651 soname=conftest
9652 lib=conftest
9653 libobjs=conftest.$ac_objext
9654 deplibs=
9655 wl=$lt_prog_compiler_wl
9656 pic_flag=$lt_prog_compiler_pic
9657 compiler_flags=-v
9658 linker_flags=-v
9659 verstring=
9660 output_objdir=.
9661 libname=conftest
9662 lt_save_allow_undefined_flag=$allow_undefined_flag
9663 allow_undefined_flag=
9664 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9665 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23
DJ
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
9668 (exit $ac_status); }
9669 then
9670 archive_cmds_need_lc=no
9671 else
9672 archive_cmds_need_lc=yes
9673 fi
9674 allow_undefined_flag=$lt_save_allow_undefined_flag
9675 else
9676 cat conftest.err 1>&5
9677 fi
9678 $RM conftest*
9679 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9680echo "${ECHO_T}$archive_cmds_need_lc" >&6
9681 ;;
9682 esac
9683 fi
9684 ;;
9685esac
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9844echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
718a6fd8
SE
9845
9846if test "$GCC" = yes; then
d7040cdb
SE
9847 case $host_os in
9848 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9849 *) lt_awk_arg="/^libraries:/" ;;
9850 esac
9851 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9852 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9853 # if the path contains ";" then we assume it to be the separator
9854 # otherwise default to the standard path separator (i.e. ":") - it is
9855 # assumed that no part of a normal pathname contains ";" but that should
9856 # okay in the real world where ";" in dirpaths is itself problematic.
9857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9858 else
9859 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9860 fi
9861 # Ok, now we have the path, separated by spaces, we can step through it
9862 # and add multilib dir if necessary.
9863 lt_tmp_lt_search_path_spec=
9864 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9865 for lt_sys_path in $lt_search_path_spec; do
9866 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9867 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9868 else
9869 test -d "$lt_sys_path" && \
9870 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9871 fi
9872 done
9873 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9874BEGIN {RS=" "; FS="/|\n";} {
9875 lt_foo="";
9876 lt_count=0;
9877 for (lt_i = NF; lt_i > 0; lt_i--) {
9878 if ($lt_i != "" && $lt_i != ".") {
9879 if ($lt_i == "..") {
9880 lt_count++;
9881 } else {
9882 if (lt_count == 0) {
9883 lt_foo="/" $lt_i lt_foo;
9884 } else {
9885 lt_count--;
9886 }
9887 }
9888 }
9889 }
9890 if (lt_foo != "") { lt_freq[lt_foo]++; }
9891 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9892}'`
9893 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9894else
9895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9896fi
9897library_names_spec=
9898libname_spec='lib$name'
9899soname_spec=
9900shrext_cmds=".so"
9901postinstall_cmds=
9902postuninstall_cmds=
9903finish_cmds=
9904finish_eval=
9905shlibpath_var=
9906shlibpath_overrides_runpath=unknown
9907version_type=none
9908dynamic_linker="$host_os ld.so"
9909sys_lib_dlsearch_path_spec="/lib /usr/lib"
9910need_lib_prefix=unknown
9911hardcode_into_libs=no
9912
9913# when you set need_version to no, make sure it does not cause -set_version
9914# flags to be left without arguments
9915need_version=unknown
9916
9917case $host_os in
9918aix3*)
9919 version_type=linux
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9921 shlibpath_var=LIBPATH
9922
9923 # AIX 3 has no versioning support, so we append a major version to the name.
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 ;;
9926
50e7d84b 9927aix[4-9]*)
d7040cdb
SE
9928 version_type=linux
9929 need_lib_prefix=no
9930 need_version=no
9931 hardcode_into_libs=yes
9932 if test "$host_cpu" = ia64; then
9933 # AIX 5 supports IA64
9934 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 else
9937 # With GCC up to 2.95.x, collect2 would create an import file
9938 # for dependence libraries. The import file would start with
9939 # the line `#! .'. This would cause the generated library to
9940 # depend on `.', always an invalid library. This was fixed in
9941 # development snapshots of GCC prior to 3.0.
9942 case $host_os in
9943 aix4 | aix4.[01] | aix4.[01].*)
9944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9945 echo ' yes '
9946 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9947 :
9948 else
9949 can_build_shared=no
9950 fi
9951 ;;
9952 esac
9953 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9954 # soname into executable. Probably we can add versioning support to
9955 # collect2, so additional links can be useful in future.
9956 if test "$aix_use_runtimelinking" = yes; then
9957 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9958 # instead of lib<name>.a to let people know that these are not
9959 # typical AIX shared libraries.
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 else
9962 # We preserve .a as extension for shared libraries through AIX4.2
9963 # and later when we are not doing run time linking.
9964 library_names_spec='${libname}${release}.a $libname.a'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 fi
9967 shlibpath_var=LIBPATH
9968 fi
9969 ;;
9970
9971amigaos*)
718a6fd8
SE
9972 case $host_cpu in
9973 powerpc)
9974 # Since July 2007 AmigaOS4 officially supports .so libraries.
9975 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9977 ;;
9978 m68k)
d7040cdb
SE
9979 library_names_spec='$libname.ixlibrary $libname.a'
9980 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9981 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'
718a6fd8
SE
9982 ;;
9983 esac
d7040cdb
SE
9984 ;;
9985
9986beos*)
9987 library_names_spec='${libname}${shared_ext}'
9988 dynamic_linker="$host_os ld.so"
9989 shlibpath_var=LIBRARY_PATH
9990 ;;
9991
9992bsdi[45]*)
9993 version_type=linux
9994 need_version=no
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9998 shlibpath_var=LD_LIBRARY_PATH
9999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10001 # the default ld.so.conf also contains /usr/contrib/lib and
10002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10003 # libtool to hard-code these into programs
10004 ;;
10005
718a6fd8 10006cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10007 version_type=windows
10008 shrext_cmds=".dll"
10009 need_version=no
10010 need_lib_prefix=no
10011
718a6fd8
SE
10012 case $GCC,$host_os in
10013 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10014 library_names_spec='$libname.dll.a'
10015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10016 postinstall_cmds='base_file=`basename \${file}`~
10017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10018 dldir=$destdir/`dirname \$dlpath`~
10019 test -d \$dldir || mkdir -p \$dldir~
10020 $install_prog $dir/$dlname \$dldir/$dlname~
10021 chmod a+x \$dldir/$dlname~
10022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10023 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10024 fi'
10025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10026 dlpath=$dir/\$dldll~
10027 $RM \$dlpath'
10028 shlibpath_overrides_runpath=yes
10029
10030 case $host_os in
10031 cygwin*)
10032 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10033 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10034 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10035 ;;
718a6fd8 10036 mingw* | cegcc*)
d7040cdb
SE
10037 # MinGW DLLs use traditional 'lib' prefix
10038 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10039 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10040 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10041 # It is most probably a Windows format PATH printed by
10042 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10043 # path with ; separators, and with drive letters. We can handle the
10044 # drive letters (cygwin fileutils understands them), so leave them,
10045 # especially as we might pass files found there to a mingw objdump,
10046 # which wouldn't understand a cygwinified path. Ahh.
10047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10048 else
10049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10050 fi
10051 ;;
10052 pw32*)
10053 # pw32 DLLs use 'pw' prefix rather than 'lib'
10054 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10055 ;;
10056 esac
10057 ;;
10058
10059 *)
10060 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10061 ;;
10062 esac
10063 dynamic_linker='Win32 ld.exe'
10064 # FIXME: first we should search . and the directory the executable is in
10065 shlibpath_var=PATH
10066 ;;
10067
10068darwin* | rhapsody*)
10069 dynamic_linker="$host_os dyld"
10070 version_type=darwin
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10074 soname_spec='${libname}${release}${major}$shared_ext'
10075 shlibpath_overrides_runpath=yes
10076 shlibpath_var=DYLD_LIBRARY_PATH
10077 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10078
10079 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10080 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10081 ;;
10082
10083dgux*)
10084 version_type=linux
10085 need_lib_prefix=no
10086 need_version=no
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10088 soname_spec='${libname}${release}${shared_ext}$major'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 ;;
10091
10092freebsd1*)
10093 dynamic_linker=no
10094 ;;
10095
10096freebsd* | dragonfly*)
10097 # DragonFly does not have aout. When/if they implement a new
10098 # versioning mechanism, adjust this.
10099 if test -x /usr/bin/objformat; then
10100 objformat=`/usr/bin/objformat`
10101 else
10102 case $host_os in
10103 freebsd[123]*) objformat=aout ;;
10104 *) objformat=elf ;;
10105 esac
10106 fi
10107 version_type=freebsd-$objformat
10108 case $version_type in
10109 freebsd-elf*)
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10111 need_version=no
10112 need_lib_prefix=no
10113 ;;
10114 freebsd-*)
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10116 need_version=yes
10117 ;;
10118 esac
10119 shlibpath_var=LD_LIBRARY_PATH
10120 case $host_os in
10121 freebsd2*)
10122 shlibpath_overrides_runpath=yes
10123 ;;
10124 freebsd3.[01]* | freebsdelf3.[01]*)
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10127 ;;
10128 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10129 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10130 shlibpath_overrides_runpath=no
10131 hardcode_into_libs=yes
10132 ;;
10133 *) # from 4.6 on, and DragonFly
10134 shlibpath_overrides_runpath=yes
10135 hardcode_into_libs=yes
10136 ;;
10137 esac
10138 ;;
10139
10140gnu*)
10141 version_type=linux
10142 need_lib_prefix=no
10143 need_version=no
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 hardcode_into_libs=yes
10148 ;;
10149
10150hpux9* | hpux10* | hpux11*)
10151 # Give a soname corresponding to the major version so that dld.sl refuses to
10152 # link against other versions.
10153 version_type=sunos
10154 need_lib_prefix=no
10155 need_version=no
10156 case $host_cpu in
10157 ia64*)
10158 shrext_cmds='.so'
10159 hardcode_into_libs=yes
10160 dynamic_linker="$host_os dld.so"
10161 shlibpath_var=LD_LIBRARY_PATH
10162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 if test "X$HPUX_IA64_MODE" = X32; then
10166 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10167 else
10168 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10169 fi
10170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10171 ;;
10172 hppa*64*)
10173 shrext_cmds='.sl'
10174 hardcode_into_libs=yes
10175 dynamic_linker="$host_os dld.sl"
10176 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 soname_spec='${libname}${release}${shared_ext}$major'
10180 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10182 ;;
10183 *)
10184 shrext_cmds='.sl'
10185 dynamic_linker="$host_os dld.sl"
10186 shlibpath_var=SHLIB_PATH
10187 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 ;;
10191 esac
10192 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10193 postinstall_cmds='chmod 555 $lib'
10194 ;;
10195
10196interix[3-9]*)
10197 version_type=linux
10198 need_lib_prefix=no
10199 need_version=no
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=no
10205 hardcode_into_libs=yes
10206 ;;
10207
10208irix5* | irix6* | nonstopux*)
10209 case $host_os in
10210 nonstopux*) version_type=nonstopux ;;
10211 *)
10212 if test "$lt_cv_prog_gnu_ld" = yes; then
10213 version_type=linux
10214 else
10215 version_type=irix
10216 fi ;;
10217 esac
10218 need_lib_prefix=no
10219 need_version=no
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10222 case $host_os in
10223 irix5* | nonstopux*)
10224 libsuff= shlibsuff=
10225 ;;
10226 *)
10227 case $LD in # libtool.m4 will add one of these switches to LD
10228 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10229 libsuff= shlibsuff= libmagic=32-bit;;
10230 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10231 libsuff=32 shlibsuff=N32 libmagic=N32;;
10232 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10233 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10234 *) libsuff= shlibsuff= libmagic=never-match;;
10235 esac
10236 ;;
10237 esac
10238 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10239 shlibpath_overrides_runpath=no
10240 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10241 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10242 hardcode_into_libs=yes
10243 ;;
10244
10245# No shared lib support for Linux oldld, aout, or coff.
10246linux*oldld* | linux*aout* | linux*coff*)
10247 dynamic_linker=no
10248 ;;
10249
10250# This must be Linux ELF.
10251linux* | k*bsd*-gnu)
10252 version_type=linux
10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=no
10260 # Some binutils ld are patched to set DT_RUNPATH
10261 save_LDFLAGS=$LDFLAGS
10262 save_libdir=$libdir
10263 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10264 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10265 cat >conftest.$ac_ext <<_ACEOF
10266/* confdefs.h. */
10267_ACEOF
10268cat confdefs.h >>conftest.$ac_ext
10269cat >>conftest.$ac_ext <<_ACEOF
10270/* end confdefs.h. */
10271
10272int
10273main ()
10274{
10275
10276 ;
10277 return 0;
10278}
10279_ACEOF
10280rm -f conftest.$ac_objext conftest$ac_exeext
10281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10282 (eval $ac_link) 2>conftest.er1
10283 ac_status=$?
10284 grep -v '^ *+' conftest.er1 >conftest.err
10285 rm -f conftest.er1
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } &&
7357c5b6
AM
10289 { ac_try='test -z "$ac_c_werror_flag"
10290 || test ! -s conftest.err'
d7040cdb
SE
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; } &&
10296 { ac_try='test -s conftest$ac_exeext'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
718a6fd8 10302 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
d7040cdb
SE
10303 shlibpath_overrides_runpath=yes
10304fi
10305
10306else
10307 echo "$as_me: failed program was:" >&5
10308sed 's/^/| /' conftest.$ac_ext >&5
10309
10310fi
10311rm -f conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10313 LDFLAGS=$save_LDFLAGS
10314 libdir=$save_libdir
10315
10316 # This implies no fast_install, which is unacceptable.
10317 # Some rework will be needed to allow for fast_install
10318 # before this can be enabled.
10319 hardcode_into_libs=yes
10320
10321 # Append ld.so.conf contents to the search path
10322 if test -f /etc/ld.so.conf; then
718a6fd8 10323 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d7040cdb
SE
10324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10325 fi
10326
10327 # We used to test for /lib/ld.so.1 and disable shared libraries on
10328 # powerpc, because MkLinux only supported shared libraries with the
10329 # GNU dynamic linker. Since this was broken with cross compilers,
10330 # most powerpc-linux boxes support dynamic linking these days and
10331 # people can always --disable-shared, the test was removed, and we
10332 # assume the GNU/Linux dynamic linker is in use.
10333 dynamic_linker='GNU/Linux ld.so'
10334 ;;
10335
10336netbsd*)
10337 version_type=sunos
10338 need_lib_prefix=no
10339 need_version=no
10340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10343 dynamic_linker='NetBSD (a.out) ld.so'
10344 else
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 dynamic_linker='NetBSD ld.elf_so'
10348 fi
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=yes
10351 hardcode_into_libs=yes
10352 ;;
10353
10354newsos6)
10355 version_type=linux
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 shlibpath_overrides_runpath=yes
10359 ;;
10360
10361*nto* | *qnx*)
10362 version_type=qnx
10363 need_lib_prefix=no
10364 need_version=no
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=no
10369 hardcode_into_libs=yes
10370 dynamic_linker='ldqnx.so'
10371 ;;
10372
10373openbsd*)
10374 version_type=sunos
10375 sys_lib_dlsearch_path_spec="/usr/lib"
10376 need_lib_prefix=no
10377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10378 case $host_os in
10379 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10380 *) need_version=no ;;
10381 esac
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10386 case $host_os in
10387 openbsd2.[89] | openbsd2.[89].*)
10388 shlibpath_overrides_runpath=no
10389 ;;
10390 *)
10391 shlibpath_overrides_runpath=yes
10392 ;;
10393 esac
10394 else
10395 shlibpath_overrides_runpath=yes
10396 fi
10397 ;;
10398
10399os2*)
10400 libname_spec='$name'
10401 shrext_cmds=".dll"
10402 need_lib_prefix=no
10403 library_names_spec='$libname${shared_ext} $libname.a'
10404 dynamic_linker='OS/2 ld.exe'
10405 shlibpath_var=LIBPATH
10406 ;;
10407
10408osf3* | osf4* | osf5*)
10409 version_type=osf
10410 need_lib_prefix=no
10411 need_version=no
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10417 ;;
10418
10419rdos*)
10420 dynamic_linker=no
10421 ;;
10422
10423solaris*)
10424 version_type=linux
10425 need_lib_prefix=no
10426 need_version=no
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=yes
10431 hardcode_into_libs=yes
10432 # ldd complains unless libraries are executable
10433 postinstall_cmds='chmod +x $lib'
10434 ;;
10435
10436sunos4*)
10437 version_type=sunos
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=yes
10442 if test "$with_gnu_ld" = yes; then
10443 need_lib_prefix=no
10444 fi
10445 need_version=yes
10446 ;;
10447
10448sysv4 | sysv4.3*)
10449 version_type=linux
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 case $host_vendor in
10454 sni)
10455 shlibpath_overrides_runpath=no
10456 need_lib_prefix=no
10457 runpath_var=LD_RUN_PATH
10458 ;;
10459 siemens)
10460 need_lib_prefix=no
10461 ;;
10462 motorola)
10463 need_lib_prefix=no
10464 need_version=no
10465 shlibpath_overrides_runpath=no
10466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10467 ;;
10468 esac
10469 ;;
10470
10471sysv4*MP*)
10472 if test -d /usr/nec ;then
10473 version_type=linux
10474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10475 soname_spec='$libname${shared_ext}.$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 fi
10478 ;;
10479
10480sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10481 version_type=freebsd-elf
10482 need_lib_prefix=no
10483 need_version=no
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10485 soname_spec='${libname}${release}${shared_ext}$major'
10486 shlibpath_var=LD_LIBRARY_PATH
10487 shlibpath_overrides_runpath=yes
10488 hardcode_into_libs=yes
10489 if test "$with_gnu_ld" = yes; then
10490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10491 else
10492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10493 case $host_os in
10494 sco3.2v5*)
10495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10496 ;;
10497 esac
10498 fi
10499 sys_lib_dlsearch_path_spec='/usr/lib'
10500 ;;
10501
10502tpf*)
10503 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10504 version_type=linux
10505 need_lib_prefix=no
10506 need_version=no
718a6fd8 10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10508 shlibpath_var=LD_LIBRARY_PATH
10509 shlibpath_overrides_runpath=no
10510 hardcode_into_libs=yes
10511 ;;
10512
10513uts4*)
10514 version_type=linux
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 ;;
10519
10520*)
10521 dynamic_linker=no
10522 ;;
10523esac
10524echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10525echo "${ECHO_T}$dynamic_linker" >&6
10526test "$dynamic_linker" = no && can_build_shared=no
10527
10528variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10529if test "$GCC" = yes; then
10530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10531fi
10532
718a6fd8
SE
10533if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10534 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10535fi
10536if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10537 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10538fi
10539
d7040cdb
SE
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10627echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10628hardcode_action=
10629if test -n "$hardcode_libdir_flag_spec" ||
10630 test -n "$runpath_var" ||
10631 test "X$hardcode_automatic" = "Xyes" ; then
10632
10633 # We can hardcode non-existent directories.
10634 if test "$hardcode_direct" != no &&
10635 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10636 # have to relink, otherwise we might link with an installed library
10637 # when we should be linking with a yet-to-be-installed one
10638 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10639 test "$hardcode_minus_L" != no; then
10640 # Linking always hardcodes the temporary library directory.
10641 hardcode_action=relink
10642 else
10643 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10644 hardcode_action=immediate
10645 fi
10646else
10647 # We cannot hardcode anything, or else we can only hardcode existing
10648 # directories.
10649 hardcode_action=unsupported
10650fi
10651echo "$as_me:$LINENO: result: $hardcode_action" >&5
10652echo "${ECHO_T}$hardcode_action" >&6
10653
10654if test "$hardcode_action" = relink ||
10655 test "$inherit_rpath" = yes; then
10656 # Fast installation is not supported
10657 enable_fast_install=no
10658elif test "$shlibpath_overrides_runpath" = yes ||
10659 test "$enable_shared" = no; then
10660 # Fast installation is not necessary
10661 enable_fast_install=needless
10662fi
10663
10664
10665
10666
10667
10668
10669 if test "x$enable_dlopen" != xyes; then
10670 enable_dlopen=unknown
10671 enable_dlopen_self=unknown
10672 enable_dlopen_self_static=unknown
10673else
10674 lt_cv_dlopen=no
10675 lt_cv_dlopen_libs=
10676
10677 case $host_os in
10678 beos*)
10679 lt_cv_dlopen="load_add_on"
10680 lt_cv_dlopen_libs=
10681 lt_cv_dlopen_self=yes
10682 ;;
10683
718a6fd8 10684 mingw* | pw32* | cegcc*)
d7040cdb
SE
10685 lt_cv_dlopen="LoadLibrary"
10686 lt_cv_dlopen_libs=
10687 ;;
10688
10689 cygwin*)
10690 lt_cv_dlopen="dlopen"
10691 lt_cv_dlopen_libs=
10692 ;;
10693
10694 darwin*)
10695 # if libdl is installed we need to link against it
10696 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10697echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10698if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700else
10701 ac_check_lib_save_LIBS=$LIBS
10702LIBS="-ldl $LIBS"
10703cat >conftest.$ac_ext <<_ACEOF
10704/* confdefs.h. */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h. */
10709
10710/* Override any gcc2 internal prototype to avoid an error. */
10711#ifdef __cplusplus
10712extern "C"
10713#endif
10714/* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10716char dlopen ();
10717int
10718main ()
10719{
10720dlopen ();
10721 ;
10722 return 0;
10723}
10724_ACEOF
10725rm -f conftest.$ac_objext conftest$ac_exeext
10726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } &&
7357c5b6
AM
10734 { ac_try='test -z "$ac_c_werror_flag"
10735 || test ! -s conftest.err'
d7040cdb
SE
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest$ac_exeext'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 ac_cv_lib_dl_dlopen=yes
10748else
10749 echo "$as_me: failed program was:" >&5
10750sed 's/^/| /' conftest.$ac_ext >&5
10751
10752ac_cv_lib_dl_dlopen=no
10753fi
10754rm -f conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756LIBS=$ac_check_lib_save_LIBS
10757fi
10758echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10759echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10760if test $ac_cv_lib_dl_dlopen = yes; then
10761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10762else
10763
10764 lt_cv_dlopen="dyld"
10765 lt_cv_dlopen_libs=
10766 lt_cv_dlopen_self=yes
10767
10768fi
10769
10770 ;;
10771
10772 *)
10773 echo "$as_me:$LINENO: checking for shl_load" >&5
10774echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10775if test "${ac_cv_func_shl_load+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 cat >conftest.$ac_ext <<_ACEOF
10779/* confdefs.h. */
10780_ACEOF
10781cat confdefs.h >>conftest.$ac_ext
10782cat >>conftest.$ac_ext <<_ACEOF
10783/* end confdefs.h. */
10784/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10786#define shl_load innocuous_shl_load
10787
10788/* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char shl_load (); below.
10790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 <limits.h> exists even on freestanding compilers. */
10792
10793#ifdef __STDC__
10794# include <limits.h>
10795#else
10796# include <assert.h>
10797#endif
10798
10799#undef shl_load
10800
10801/* Override any gcc2 internal prototype to avoid an error. */
10802#ifdef __cplusplus
10803extern "C"
10804{
10805#endif
10806/* We use char because int might match the return type of a gcc2
10807 builtin and then its argument prototype would still apply. */
10808char shl_load ();
10809/* The GNU C library defines this for functions which it implements
10810 to always fail with ENOSYS. Some functions are actually named
10811 something starting with __ and the normal name is an alias. */
10812#if defined (__stub_shl_load) || defined (__stub___shl_load)
10813choke me
10814#else
10815char (*f) () = shl_load;
10816#endif
10817#ifdef __cplusplus
10818}
10819#endif
10820
10821int
10822main ()
10823{
10824return f != shl_load;
10825 ;
10826 return 0;
10827}
10828_ACEOF
10829rm -f conftest.$ac_objext conftest$ac_exeext
10830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831 (eval $ac_link) 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
7357c5b6
AM
10838 { ac_try='test -z "$ac_c_werror_flag"
10839 || test ! -s conftest.err'
d7040cdb
SE
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; } &&
10845 { ac_try='test -s conftest$ac_exeext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_func_shl_load=yes
10852else
10853 echo "$as_me: failed program was:" >&5
10854sed 's/^/| /' conftest.$ac_ext >&5
10855
10856ac_cv_func_shl_load=no
10857fi
10858rm -f conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860fi
10861echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10862echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10863if test $ac_cv_func_shl_load = yes; then
10864 lt_cv_dlopen="shl_load"
10865else
10866 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10867echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10868if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 ac_check_lib_save_LIBS=$LIBS
10872LIBS="-ldld $LIBS"
10873cat >conftest.$ac_ext <<_ACEOF
10874/* confdefs.h. */
10875_ACEOF
10876cat confdefs.h >>conftest.$ac_ext
10877cat >>conftest.$ac_ext <<_ACEOF
10878/* end confdefs.h. */
10879
10880/* Override any gcc2 internal prototype to avoid an error. */
10881#ifdef __cplusplus
10882extern "C"
10883#endif
10884/* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10886char shl_load ();
10887int
10888main ()
10889{
10890shl_load ();
10891 ;
10892 return 0;
10893}
10894_ACEOF
10895rm -f conftest.$ac_objext conftest$ac_exeext
10896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10897 (eval $ac_link) 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
7357c5b6
AM
10904 { ac_try='test -z "$ac_c_werror_flag"
10905 || test ! -s conftest.err'
d7040cdb
SE
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest$ac_exeext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 ac_cv_lib_dld_shl_load=yes
10918else
10919 echo "$as_me: failed program was:" >&5
10920sed 's/^/| /' conftest.$ac_ext >&5
10921
10922ac_cv_lib_dld_shl_load=no
10923fi
10924rm -f conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10926LIBS=$ac_check_lib_save_LIBS
10927fi
10928echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10929echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10930if test $ac_cv_lib_dld_shl_load = yes; then
718a6fd8 10931 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10932else
10933 echo "$as_me:$LINENO: checking for dlopen" >&5
10934echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10935if test "${ac_cv_func_dlopen+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937else
10938 cat >conftest.$ac_ext <<_ACEOF
10939/* confdefs.h. */
10940_ACEOF
10941cat confdefs.h >>conftest.$ac_ext
10942cat >>conftest.$ac_ext <<_ACEOF
10943/* end confdefs.h. */
10944/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10946#define dlopen innocuous_dlopen
10947
10948/* System header to define __stub macros and hopefully few prototypes,
10949 which can conflict with char dlopen (); below.
10950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10951 <limits.h> exists even on freestanding compilers. */
10952
10953#ifdef __STDC__
10954# include <limits.h>
10955#else
10956# include <assert.h>
10957#endif
10958
10959#undef dlopen
10960
10961/* Override any gcc2 internal prototype to avoid an error. */
10962#ifdef __cplusplus
10963extern "C"
10964{
10965#endif
10966/* We use char because int might match the return type of a gcc2
10967 builtin and then its argument prototype would still apply. */
10968char dlopen ();
10969/* The GNU C library defines this for functions which it implements
10970 to always fail with ENOSYS. Some functions are actually named
10971 something starting with __ and the normal name is an alias. */
10972#if defined (__stub_dlopen) || defined (__stub___dlopen)
10973choke me
10974#else
10975char (*f) () = dlopen;
10976#endif
10977#ifdef __cplusplus
10978}
10979#endif
10980
10981int
10982main ()
10983{
10984return f != dlopen;
10985 ;
10986 return 0;
10987}
10988_ACEOF
10989rm -f conftest.$ac_objext conftest$ac_exeext
10990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
7357c5b6
AM
10998 { ac_try='test -z "$ac_c_werror_flag"
10999 || test ! -s conftest.err'
d7040cdb
SE
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest$ac_exeext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 ac_cv_func_dlopen=yes
11012else
11013 echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
11016ac_cv_func_dlopen=no
11017fi
11018rm -f conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020fi
11021echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11022echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11023if test $ac_cv_func_dlopen = yes; then
11024 lt_cv_dlopen="dlopen"
11025else
11026 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11027echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11028if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11030else
11031 ac_check_lib_save_LIBS=$LIBS
11032LIBS="-ldl $LIBS"
11033cat >conftest.$ac_ext <<_ACEOF
11034/* confdefs.h. */
11035_ACEOF
11036cat confdefs.h >>conftest.$ac_ext
11037cat >>conftest.$ac_ext <<_ACEOF
11038/* end confdefs.h. */
11039
11040/* Override any gcc2 internal prototype to avoid an error. */
11041#ifdef __cplusplus
11042extern "C"
11043#endif
11044/* We use char because int might match the return type of a gcc2
11045 builtin and then its argument prototype would still apply. */
11046char dlopen ();
11047int
11048main ()
11049{
11050dlopen ();
11051 ;
11052 return 0;
11053}
11054_ACEOF
11055rm -f conftest.$ac_objext conftest$ac_exeext
11056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057 (eval $ac_link) 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
7357c5b6
AM
11064 { ac_try='test -z "$ac_c_werror_flag"
11065 || test ! -s conftest.err'
d7040cdb
SE
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest$ac_exeext'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_cv_lib_dl_dlopen=yes
11078else
11079 echo "$as_me: failed program was:" >&5
11080sed 's/^/| /' conftest.$ac_ext >&5
11081
11082ac_cv_lib_dl_dlopen=no
11083fi
11084rm -f conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086LIBS=$ac_check_lib_save_LIBS
11087fi
11088echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11089echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11090if test $ac_cv_lib_dl_dlopen = yes; then
11091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11092else
11093 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11094echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11095if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097else
11098 ac_check_lib_save_LIBS=$LIBS
11099LIBS="-lsvld $LIBS"
11100cat >conftest.$ac_ext <<_ACEOF
11101/* confdefs.h. */
11102_ACEOF
11103cat confdefs.h >>conftest.$ac_ext
11104cat >>conftest.$ac_ext <<_ACEOF
11105/* end confdefs.h. */
11106
11107/* Override any gcc2 internal prototype to avoid an error. */
11108#ifdef __cplusplus
11109extern "C"
11110#endif
11111/* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11113char dlopen ();
11114int
11115main ()
11116{
11117dlopen ();
11118 ;
11119 return 0;
11120}
11121_ACEOF
11122rm -f conftest.$ac_objext conftest$ac_exeext
11123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11124 (eval $ac_link) 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
7357c5b6
AM
11131 { ac_try='test -z "$ac_c_werror_flag"
11132 || test ! -s conftest.err'
d7040cdb
SE
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest$ac_exeext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_lib_svld_dlopen=yes
11145else
11146 echo "$as_me: failed program was:" >&5
11147sed 's/^/| /' conftest.$ac_ext >&5
11148
11149ac_cv_lib_svld_dlopen=no
11150fi
11151rm -f conftest.err conftest.$ac_objext \
11152 conftest$ac_exeext conftest.$ac_ext
11153LIBS=$ac_check_lib_save_LIBS
11154fi
11155echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11156echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11157if test $ac_cv_lib_svld_dlopen = yes; then
11158 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11159else
11160 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11161echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11162if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164else
11165 ac_check_lib_save_LIBS=$LIBS
11166LIBS="-ldld $LIBS"
11167cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
11173
11174/* Override any gcc2 internal prototype to avoid an error. */
11175#ifdef __cplusplus
11176extern "C"
11177#endif
11178/* We use char because int might match the return type of a gcc2
11179 builtin and then its argument prototype would still apply. */
11180char dld_link ();
11181int
11182main ()
11183{
11184dld_link ();
11185 ;
11186 return 0;
11187}
11188_ACEOF
11189rm -f conftest.$ac_objext conftest$ac_exeext
11190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
7357c5b6
AM
11198 { ac_try='test -z "$ac_c_werror_flag"
11199 || test ! -s conftest.err'
d7040cdb
SE
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest$ac_exeext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 ac_cv_lib_dld_dld_link=yes
11212else
11213 echo "$as_me: failed program was:" >&5
11214sed 's/^/| /' conftest.$ac_ext >&5
11215
11216ac_cv_lib_dld_dld_link=no
11217fi
11218rm -f conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11220LIBS=$ac_check_lib_save_LIBS
11221fi
11222echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11223echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11224if test $ac_cv_lib_dld_dld_link = yes; then
718a6fd8 11225 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11226fi
11227
11228
11229fi
11230
11231
11232fi
11233
11234
11235fi
11236
11237
11238fi
11239
11240
11241fi
11242
11243 ;;
11244 esac
11245
11246 if test "x$lt_cv_dlopen" != xno; then
11247 enable_dlopen=yes
11248 else
11249 enable_dlopen=no
11250 fi
11251
11252 case $lt_cv_dlopen in
11253 dlopen)
11254 save_CPPFLAGS="$CPPFLAGS"
11255 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11256
11257 save_LDFLAGS="$LDFLAGS"
11258 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11259
11260 save_LIBS="$LIBS"
11261 LIBS="$lt_cv_dlopen_libs $LIBS"
11262
11263 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11264echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11265if test "${lt_cv_dlopen_self+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267else
11268 if test "$cross_compiling" = yes; then :
11269 lt_cv_dlopen_self=cross
11270else
11271 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11272 lt_status=$lt_dlunknown
11273 cat > conftest.$ac_ext <<_LT_EOF
718a6fd8 11274#line 11274 "configure"
d7040cdb
SE
11275#include "confdefs.h"
11276
11277#if HAVE_DLFCN_H
11278#include <dlfcn.h>
11279#endif
11280
11281#include <stdio.h>
11282
11283#ifdef RTLD_GLOBAL
11284# define LT_DLGLOBAL RTLD_GLOBAL
11285#else
11286# ifdef DL_GLOBAL
11287# define LT_DLGLOBAL DL_GLOBAL
11288# else
11289# define LT_DLGLOBAL 0
11290# endif
11291#endif
11292
11293/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11294 find out it does not work in some platform. */
11295#ifndef LT_DLLAZY_OR_NOW
11296# ifdef RTLD_LAZY
11297# define LT_DLLAZY_OR_NOW RTLD_LAZY
11298# else
11299# ifdef DL_LAZY
11300# define LT_DLLAZY_OR_NOW DL_LAZY
11301# else
11302# ifdef RTLD_NOW
11303# define LT_DLLAZY_OR_NOW RTLD_NOW
11304# else
11305# ifdef DL_NOW
11306# define LT_DLLAZY_OR_NOW DL_NOW
11307# else
11308# define LT_DLLAZY_OR_NOW 0
11309# endif
11310# endif
11311# endif
11312# endif
11313#endif
11314
d7040cdb
SE
11315void fnord() { int i=42;}
11316int main ()
11317{
11318 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11319 int status = $lt_dlunknown;
11320
11321 if (self)
11322 {
11323 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11324 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11325 /* dlclose (self); */
11326 }
11327 else
11328 puts (dlerror ());
11329
718a6fd8 11330 return status;
d7040cdb
SE
11331}
11332_LT_EOF
11333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11334 (eval $ac_link) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11338 (./conftest; exit; ) >&5 2>/dev/null
11339 lt_status=$?
11340 case x$lt_status in
11341 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11342 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11343 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11344 esac
11345 else :
11346 # compilation failed
11347 lt_cv_dlopen_self=no
11348 fi
11349fi
11350rm -fr conftest*
11351
11352
11353fi
11354echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11355echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11356
11357 if test "x$lt_cv_dlopen_self" = xyes; then
11358 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11359 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11360echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11361if test "${lt_cv_dlopen_self_static+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363else
11364 if test "$cross_compiling" = yes; then :
11365 lt_cv_dlopen_self_static=cross
11366else
11367 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11368 lt_status=$lt_dlunknown
11369 cat > conftest.$ac_ext <<_LT_EOF
718a6fd8 11370#line 11370 "configure"
d7040cdb
SE
11371#include "confdefs.h"
11372
11373#if HAVE_DLFCN_H
11374#include <dlfcn.h>
11375#endif
11376
11377#include <stdio.h>
11378
11379#ifdef RTLD_GLOBAL
11380# define LT_DLGLOBAL RTLD_GLOBAL
11381#else
11382# ifdef DL_GLOBAL
11383# define LT_DLGLOBAL DL_GLOBAL
11384# else
11385# define LT_DLGLOBAL 0
11386# endif
11387#endif
11388
11389/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11390 find out it does not work in some platform. */
11391#ifndef LT_DLLAZY_OR_NOW
11392# ifdef RTLD_LAZY
11393# define LT_DLLAZY_OR_NOW RTLD_LAZY
11394# else
11395# ifdef DL_LAZY
11396# define LT_DLLAZY_OR_NOW DL_LAZY
11397# else
11398# ifdef RTLD_NOW
11399# define LT_DLLAZY_OR_NOW RTLD_NOW
11400# else
11401# ifdef DL_NOW
11402# define LT_DLLAZY_OR_NOW DL_NOW
11403# else
11404# define LT_DLLAZY_OR_NOW 0
11405# endif
11406# endif
11407# endif
11408# endif
11409#endif
11410
d7040cdb
SE
11411void fnord() { int i=42;}
11412int main ()
11413{
11414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11415 int status = $lt_dlunknown;
11416
11417 if (self)
11418 {
11419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11420 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11421 /* dlclose (self); */
11422 }
11423 else
11424 puts (dlerror ());
11425
718a6fd8 11426 return status;
d7040cdb
SE
11427}
11428_LT_EOF
11429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430 (eval $ac_link) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11434 (./conftest; exit; ) >&5 2>/dev/null
11435 lt_status=$?
11436 case x$lt_status in
11437 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11438 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11439 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11440 esac
11441 else :
11442 # compilation failed
11443 lt_cv_dlopen_self_static=no
11444 fi
11445fi
11446rm -fr conftest*
11447
11448
11449fi
11450echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11451echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11452 fi
11453
11454 CPPFLAGS="$save_CPPFLAGS"
11455 LDFLAGS="$save_LDFLAGS"
11456 LIBS="$save_LIBS"
11457 ;;
11458 esac
11459
11460 case $lt_cv_dlopen_self in
11461 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11462 *) enable_dlopen_self=unknown ;;
11463 esac
11464
11465 case $lt_cv_dlopen_self_static in
11466 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11467 *) enable_dlopen_self_static=unknown ;;
11468 esac
11469fi
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487striplib=
11488old_striplib=
11489echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11490echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11491if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11492 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11493 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11494 echo "$as_me:$LINENO: result: yes" >&5
11495echo "${ECHO_T}yes" >&6
11496else
11497# FIXME - insert some real tests, host_os isn't really good enough
11498 case $host_os in
11499 darwin*)
11500 if test -n "$STRIP" ; then
11501 striplib="$STRIP -x"
11502 old_striplib="$STRIP -S"
11503 echo "$as_me:$LINENO: result: yes" >&5
11504echo "${ECHO_T}yes" >&6
11505 else
11506 echo "$as_me:$LINENO: result: no" >&5
11507echo "${ECHO_T}no" >&6
11508 fi
11509 ;;
11510 *)
11511 echo "$as_me:$LINENO: result: no" >&5
11512echo "${ECHO_T}no" >&6
11513 ;;
11514 esac
11515fi
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528 # Report which library types will actually be built
11529 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11530echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11531 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11532echo "${ECHO_T}$can_build_shared" >&6
11533
11534 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11535echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11536 test "$can_build_shared" = "no" && enable_shared=no
11537
11538 # On AIX, shared libraries and static libraries use the same namespace, and
11539 # are all built from PIC.
11540 case $host_os in
11541 aix3*)
11542 test "$enable_shared" = yes && enable_static=no
11543 if test -n "$RANLIB"; then
11544 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11545 postinstall_cmds='$RANLIB $lib'
11546 fi
11547 ;;
11548
50e7d84b 11549 aix[4-9]*)
d7040cdb
SE
11550 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11551 test "$enable_shared" = yes && enable_static=no
11552 fi
11553 ;;
11554 esac
11555 echo "$as_me:$LINENO: result: $enable_shared" >&5
11556echo "${ECHO_T}$enable_shared" >&6
11557
11558 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11559echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11560 # Make sure either enable_shared or enable_static is yes.
11561 test "$enable_shared" = yes || enable_static=yes
11562 echo "$as_me:$LINENO: result: $enable_static" >&5
11563echo "${ECHO_T}$enable_static" >&6
11564
11565
11566
11567
11568fi
11569ac_ext=c
11570ac_cpp='$CPP $CPPFLAGS'
11571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11573ac_compiler_gnu=$ac_cv_c_compiler_gnu
11574
11575CC="$lt_save_CC"
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589 ac_config_commands="$ac_config_commands libtool"
11590
11591
11592
11593
11594# Only expand once:
11595
11596
11597
11598# Check whether --enable-targets or --disable-targets was given.
11599if test "${enable_targets+set}" = set; then
11600 enableval="$enable_targets"
11601 case "${enableval}" in
11602 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11603echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11604 { (exit 1); exit 1; }; }
11605 ;;
11606 no) enable_targets= ;;
11607 *) enable_targets=$enableval ;;
11608esac
11609fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11610if test "${enable_commonbfdlib+set}" = set; then
11611 enableval="$enable_commonbfdlib"
11612 case "${enableval}" in
11613 yes) commonbfdlib=true ;;
11614 no) commonbfdlib=false ;;
11615 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11616echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11617 { (exit 1); exit 1; }; } ;;
11618esac
11619fi;
11620
11621GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11622
11623# Check whether --enable-werror or --disable-werror was given.
11624if test "${enable_werror+set}" = set; then
11625 enableval="$enable_werror"
11626 case "${enableval}" in
11627 yes | y) ERROR_ON_WARNING="yes" ;;
11628 no | n) ERROR_ON_WARNING="no" ;;
11629 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11630echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11631 { (exit 1); exit 1; }; } ;;
11632 esac
11633fi;
11634
bb8541b9
L
11635# Enable -Wno-format by default when using gcc on mingw
11636case "${host}" in
11637 *-*-mingw32*)
11638 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11639 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11640 fi
11641 ;;
11642 *) ;;
11643esac
11644
d7040cdb
SE
11645# Enable -Werror by default when using gcc
11646if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11647 ERROR_ON_WARNING=yes
11648fi
11649
11650NO_WERROR=
11651if test "${ERROR_ON_WARNING}" = yes ; then
11652 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11653 NO_WERROR="-Wno-error"
11654fi
11655
11656if test "${GCC}" = yes ; then
11657 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11658fi
11659
11660# Check whether --enable-build-warnings or --disable-build-warnings was given.
11661if test "${enable_build_warnings+set}" = set; then
11662 enableval="$enable_build_warnings"
11663 case "${enableval}" in
11664 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11665 no) if test "${GCC}" = yes ; then
11666 WARN_CFLAGS="-w"
11667 fi;;
11668 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11669 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11670 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11671 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11672 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11673esac
11674fi;
11675
11676if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11677 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11678fi
11679
11680
11681
11682
11683
11684 ac_config_headers="$ac_config_headers config.h:config.in"
11685
11686
11687if test -z "$target" ; then
11688 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11689echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11690 { (exit 1); exit 1; }; }
11691fi
11692if test -z "$host" ; then
11693 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
11694echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
11695 { (exit 1); exit 1; }; }
11696fi
11697
11698for ac_prog in 'bison -y' byacc
11699do
11700 # Extract the first word of "$ac_prog", so it can be a program name with args.
11701set dummy $ac_prog; ac_word=$2
11702echo "$as_me:$LINENO: checking for $ac_word" >&5
11703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11704if test "${ac_cv_prog_YACC+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11706else
11707 if test -n "$YACC"; then
11708 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11709else
11710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711for as_dir in $PATH
11712do
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11717 ac_cv_prog_YACC="$ac_prog"
11718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11719 break 2
11720 fi
11721done
11722done
11723
11724fi
11725fi
11726YACC=$ac_cv_prog_YACC
11727if test -n "$YACC"; then
11728 echo "$as_me:$LINENO: result: $YACC" >&5
11729echo "${ECHO_T}$YACC" >&6
11730else
11731 echo "$as_me:$LINENO: result: no" >&5
11732echo "${ECHO_T}no" >&6
11733fi
11734
11735 test -n "$YACC" && break
11736done
11737test -n "$YACC" || YACC="yacc"
11738
11739for ac_prog in flex lex
11740do
11741 # Extract the first word of "$ac_prog", so it can be a program name with args.
11742set dummy $ac_prog; ac_word=$2
11743echo "$as_me:$LINENO: checking for $ac_word" >&5
11744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11745if test "${ac_cv_prog_LEX+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 if test -n "$LEX"; then
11749 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11750else
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758 ac_cv_prog_LEX="$ac_prog"
11759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11761 fi
11762done
11763done
11764
11765fi
11766fi
11767LEX=$ac_cv_prog_LEX
11768if test -n "$LEX"; then
11769 echo "$as_me:$LINENO: result: $LEX" >&5
11770echo "${ECHO_T}$LEX" >&6
11771else
11772 echo "$as_me:$LINENO: result: no" >&5
11773echo "${ECHO_T}no" >&6
11774fi
11775
11776 test -n "$LEX" && break
11777done
11778test -n "$LEX" || LEX=":"
11779
11780if test -z "$LEXLIB"
11781then
11782 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11783echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11784if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11786else
11787 ac_check_lib_save_LIBS=$LIBS
11788LIBS="-lfl $LIBS"
11789cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795
11796/* Override any gcc2 internal prototype to avoid an error. */
11797#ifdef __cplusplus
11798extern "C"
11799#endif
11800/* We use char because int might match the return type of a gcc2
11801 builtin and then its argument prototype would still apply. */
11802char yywrap ();
11803int
11804main ()
11805{
11806yywrap ();
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext conftest$ac_exeext
11812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11813 (eval $ac_link) 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
7357c5b6
AM
11820 { ac_try='test -z "$ac_c_werror_flag"
11821 || test ! -s conftest.err'
d7040cdb
SE
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; } &&
11827 { ac_try='test -s conftest$ac_exeext'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 ac_cv_lib_fl_yywrap=yes
11834else
11835 echo "$as_me: failed program was:" >&5
11836sed 's/^/| /' conftest.$ac_ext >&5
11837
11838ac_cv_lib_fl_yywrap=no
11839fi
11840rm -f conftest.err conftest.$ac_objext \
11841 conftest$ac_exeext conftest.$ac_ext
11842LIBS=$ac_check_lib_save_LIBS
11843fi
11844echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11845echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11846if test $ac_cv_lib_fl_yywrap = yes; then
11847 LEXLIB="-lfl"
11848else
11849 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11850echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11851if test "${ac_cv_lib_l_yywrap+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853else
11854 ac_check_lib_save_LIBS=$LIBS
11855LIBS="-ll $LIBS"
11856cat >conftest.$ac_ext <<_ACEOF
11857/* confdefs.h. */
11858_ACEOF
11859cat confdefs.h >>conftest.$ac_ext
11860cat >>conftest.$ac_ext <<_ACEOF
11861/* end confdefs.h. */
11862
11863/* Override any gcc2 internal prototype to avoid an error. */
11864#ifdef __cplusplus
11865extern "C"
11866#endif
11867/* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11869char yywrap ();
11870int
11871main ()
11872{
11873yywrap ();
11874 ;
11875 return 0;
11876}
11877_ACEOF
11878rm -f conftest.$ac_objext conftest$ac_exeext
11879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
7357c5b6
AM
11887 { ac_try='test -z "$ac_c_werror_flag"
11888 || test ! -s conftest.err'
d7040cdb
SE
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 ac_cv_lib_l_yywrap=yes
11901else
11902 echo "$as_me: failed program was:" >&5
11903sed 's/^/| /' conftest.$ac_ext >&5
11904
11905ac_cv_lib_l_yywrap=no
11906fi
11907rm -f conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909LIBS=$ac_check_lib_save_LIBS
11910fi
11911echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11912echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11913if test $ac_cv_lib_l_yywrap = yes; then
11914 LEXLIB="-ll"
11915fi
11916
11917fi
11918
11919fi
11920
11921if test "x$LEX" != "x:"; then
11922 echo "$as_me:$LINENO: checking lex output file root" >&5
11923echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11924if test "${ac_cv_prog_lex_root+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11926else
11927 # The minimal lex program is just a single line: %%. But some broken lexes
11928# (Solaris, I think it was) want two %% lines, so accommodate them.
11929cat >conftest.l <<_ACEOF
11930%%
11931%%
11932_ACEOF
11933{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11934 (eval $LEX conftest.l) 2>&5
11935 ac_status=$?
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }
11938if test -f lex.yy.c; then
11939 ac_cv_prog_lex_root=lex.yy
11940elif test -f lexyy.c; then
11941 ac_cv_prog_lex_root=lexyy
11942else
11943 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11944echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11945 { (exit 1); exit 1; }; }
11946fi
11947fi
11948echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11949echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11950rm -f conftest.l
11951LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11952
11953echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11954echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11955if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957else
11958 # POSIX says lex can declare yytext either as a pointer or an array; the
11959# default is implementation-dependent. Figure out which it is, since
11960# not all implementations provide the %pointer and %array declarations.
11961ac_cv_prog_lex_yytext_pointer=no
11962echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11963ac_save_LIBS=$LIBS
11964LIBS="$LIBS $LEXLIB"
11965cat >conftest.$ac_ext <<_ACEOF
11966`cat $LEX_OUTPUT_ROOT.c`
11967_ACEOF
11968rm -f conftest.$ac_objext conftest$ac_exeext
11969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
7357c5b6
AM
11977 { ac_try='test -z "$ac_c_werror_flag"
11978 || test ! -s conftest.err'
d7040cdb
SE
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try='test -s conftest$ac_exeext'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 ac_cv_prog_lex_yytext_pointer=yes
11991else
11992 echo "$as_me: failed program was:" >&5
11993sed 's/^/| /' conftest.$ac_ext >&5
11994
11995fi
11996rm -f conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998LIBS=$ac_save_LIBS
11999rm -f "${LEX_OUTPUT_ROOT}.c"
12000
12001fi
12002echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12003echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
12004if test $ac_cv_prog_lex_yytext_pointer = yes; then
12005
12006cat >>confdefs.h <<\_ACEOF
12007#define YYTEXT_POINTER 1
12008_ACEOF
12009
12010fi
12011
12012fi
12013if test "$LEX" = :; then
12014 LEX=${am_missing_run}flex
12015fi
12016
ac5d747e 12017ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
12018# If we haven't got the data from the intl directory,
12019# assume NLS is disabled.
12020USE_NLS=no
12021LIBINTL=
12022LIBINTL_DEP=
12023INCINTL=
12024XGETTEXT=
12025GMSGFMT=
12026POSUB=
12027
12028if test -f ../intl/config.intl; then
12029 . ../intl/config.intl
12030fi
12031echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12032echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12033if test x"$USE_NLS" != xyes; then
12034 echo "$as_me:$LINENO: result: no" >&5
12035echo "${ECHO_T}no" >&6
12036else
12037 echo "$as_me:$LINENO: result: yes" >&5
12038echo "${ECHO_T}yes" >&6
12039
12040cat >>confdefs.h <<\_ACEOF
12041#define ENABLE_NLS 1
12042_ACEOF
12043
12044
12045 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12046echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12047 # Look for .po and .gmo files in the source directory.
12048 CATALOGS=
12049 XLINGUAS=
12050 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12051 # If there aren't any .gmo files the shell will give us the
12052 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12053 # weeded out.
12054 case "$cat" in *\**)
12055 continue;;
12056 esac
12057 # The quadruple backslash is collapsed to a double backslash
12058 # by the backticks, then collapsed again by the double quotes,
12059 # leaving us with one backslash in the sed expression (right
12060 # before the dot that mustn't act as a wildcard).
12061 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12062 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12063 # The user is allowed to set LINGUAS to a list of languages to
12064 # install catalogs for. If it's empty that means "all of them."
12065 if test "x$LINGUAS" = x; then
12066 CATALOGS="$CATALOGS $cat"
12067 XLINGUAS="$XLINGUAS $lang"
12068 else
12069 case "$LINGUAS" in *$lang*)
12070 CATALOGS="$CATALOGS $cat"
12071 XLINGUAS="$XLINGUAS $lang"
12072 ;;
12073 esac
12074 fi
12075 done
12076 LINGUAS="$XLINGUAS"
12077 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12078echo "${ECHO_T}$LINGUAS" >&6
12079
12080
12081 DATADIRNAME=share
12082
12083 INSTOBJEXT=.mo
12084
12085 GENCAT=gencat
12086
12087 CATOBJEXT=.gmo
12088
12089fi
12090
12091 MKINSTALLDIRS=
12092 if test -n "$ac_aux_dir"; then
12093 case "$ac_aux_dir" in
12094 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12095 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12096 esac
12097 fi
12098 if test -z "$MKINSTALLDIRS"; then
12099 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12100 fi
12101
12102
12103
12104 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12105echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12106 # Check whether --enable-nls or --disable-nls was given.
12107if test "${enable_nls+set}" = set; then
12108 enableval="$enable_nls"
12109 USE_NLS=$enableval
12110else
12111 USE_NLS=yes
12112fi;
12113 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12114echo "${ECHO_T}$USE_NLS" >&6
12115
12116
12117
12118
12119
12120
12121# Prepare PATH_SEPARATOR.
12122# The user is always right.
12123if test "${PATH_SEPARATOR+set}" != set; then
12124 echo "#! /bin/sh" >conf$$.sh
12125 echo "exit 0" >>conf$$.sh
12126 chmod +x conf$$.sh
12127 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12128 PATH_SEPARATOR=';'
12129 else
12130 PATH_SEPARATOR=:
12131 fi
12132 rm -f conf$$.sh
12133fi
12134
12135# Find out how to test for executable files. Don't use a zero-byte file,
12136# as systems may use methods other than mode bits to determine executability.
12137cat >conf$$.file <<_ASEOF
12138#! /bin/sh
12139exit 0
12140_ASEOF
12141chmod +x conf$$.file
12142if test -x conf$$.file >/dev/null 2>&1; then
12143 ac_executable_p="test -x"
12144else
12145 ac_executable_p="test -f"
12146fi
12147rm -f conf$$.file
12148
12149# Extract the first word of "msgfmt", so it can be a program name with args.
12150set dummy msgfmt; ac_word=$2
12151echo "$as_me:$LINENO: checking for $ac_word" >&5
12152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12153if test "${ac_cv_path_MSGFMT+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155else
12156 case "$MSGFMT" in
12157 [\\/]* | ?:[\\/]*)
12158 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12159 ;;
12160 *)
12161 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12162 for ac_dir in $PATH; do
12163 IFS="$ac_save_IFS"
12164 test -z "$ac_dir" && ac_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12167 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12168 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12169 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12170 break 2
12171 fi
12172 fi
12173 done
12174 done
12175 IFS="$ac_save_IFS"
12176 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12177 ;;
12178esac
12179fi
12180MSGFMT="$ac_cv_path_MSGFMT"
12181if test "$MSGFMT" != ":"; then
12182 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12183echo "${ECHO_T}$MSGFMT" >&6
12184else
12185 echo "$as_me:$LINENO: result: no" >&5
12186echo "${ECHO_T}no" >&6
12187fi
12188
12189 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12190set dummy gmsgfmt; ac_word=$2
12191echo "$as_me:$LINENO: checking for $ac_word" >&5
12192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12193if test "${ac_cv_path_GMSGFMT+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196 case $GMSGFMT in
12197 [\\/]* | ?:[\\/]*)
12198 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12199 ;;
12200 *)
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202for as_dir in $PATH
12203do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12211 fi
12212done
12213done
12214
12215 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12216 ;;
12217esac
12218fi
12219GMSGFMT=$ac_cv_path_GMSGFMT
12220
12221if test -n "$GMSGFMT"; then
12222 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12223echo "${ECHO_T}$GMSGFMT" >&6
12224else
12225 echo "$as_me:$LINENO: result: no" >&5
12226echo "${ECHO_T}no" >&6
12227fi
12228
12229
12230
12231# Prepare PATH_SEPARATOR.
12232# The user is always right.
12233if test "${PATH_SEPARATOR+set}" != set; then
12234 echo "#! /bin/sh" >conf$$.sh
12235 echo "exit 0" >>conf$$.sh
12236 chmod +x conf$$.sh
12237 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12238 PATH_SEPARATOR=';'
12239 else
12240 PATH_SEPARATOR=:
12241 fi
12242 rm -f conf$$.sh
12243fi
12244
12245# Find out how to test for executable files. Don't use a zero-byte file,
12246# as systems may use methods other than mode bits to determine executability.
12247cat >conf$$.file <<_ASEOF
12248#! /bin/sh
12249exit 0
12250_ASEOF
12251chmod +x conf$$.file
12252if test -x conf$$.file >/dev/null 2>&1; then
12253 ac_executable_p="test -x"
12254else
12255 ac_executable_p="test -f"
12256fi
12257rm -f conf$$.file
12258
12259# Extract the first word of "xgettext", so it can be a program name with args.
12260set dummy xgettext; ac_word=$2
12261echo "$as_me:$LINENO: checking for $ac_word" >&5
12262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12263if test "${ac_cv_path_XGETTEXT+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265else
12266 case "$XGETTEXT" in
12267 [\\/]* | ?:[\\/]*)
12268 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12269 ;;
12270 *)
12271 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12272 for ac_dir in $PATH; do
12273 IFS="$ac_save_IFS"
12274 test -z "$ac_dir" && ac_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12277 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12278 (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
12279 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12280 break 2
12281 fi
12282 fi
12283 done
12284 done
12285 IFS="$ac_save_IFS"
12286 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12287 ;;
12288esac
12289fi
12290XGETTEXT="$ac_cv_path_XGETTEXT"
12291if test "$XGETTEXT" != ":"; then
12292 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12293echo "${ECHO_T}$XGETTEXT" >&6
12294else
12295 echo "$as_me:$LINENO: result: no" >&5
12296echo "${ECHO_T}no" >&6
12297fi
12298
12299 rm -f messages.po
12300
12301
12302# Prepare PATH_SEPARATOR.
12303# The user is always right.
12304if test "${PATH_SEPARATOR+set}" != set; then
12305 echo "#! /bin/sh" >conf$$.sh
12306 echo "exit 0" >>conf$$.sh
12307 chmod +x conf$$.sh
12308 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12309 PATH_SEPARATOR=';'
12310 else
12311 PATH_SEPARATOR=:
12312 fi
12313 rm -f conf$$.sh
12314fi
12315
12316# Find out how to test for executable files. Don't use a zero-byte file,
12317# as systems may use methods other than mode bits to determine executability.
12318cat >conf$$.file <<_ASEOF
12319#! /bin/sh
12320exit 0
12321_ASEOF
12322chmod +x conf$$.file
12323if test -x conf$$.file >/dev/null 2>&1; then
12324 ac_executable_p="test -x"
12325else
12326 ac_executable_p="test -f"
12327fi
12328rm -f conf$$.file
12329
12330# Extract the first word of "msgmerge", so it can be a program name with args.
12331set dummy msgmerge; ac_word=$2
12332echo "$as_me:$LINENO: checking for $ac_word" >&5
12333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12334if test "${ac_cv_path_MSGMERGE+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336else
12337 case "$MSGMERGE" in
12338 [\\/]* | ?:[\\/]*)
12339 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12340 ;;
12341 *)
12342 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12343 for ac_dir in $PATH; do
12344 IFS="$ac_save_IFS"
12345 test -z "$ac_dir" && ac_dir=.
12346 for ac_exec_ext in '' $ac_executable_extensions; do
12347 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12348 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12349 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12350 break 2
12351 fi
12352 fi
12353 done
12354 done
12355 IFS="$ac_save_IFS"
12356 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12357 ;;
12358esac
12359fi
12360MSGMERGE="$ac_cv_path_MSGMERGE"
12361if test "$MSGMERGE" != ":"; then
12362 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12363echo "${ECHO_T}$MSGMERGE" >&6
12364else
12365 echo "$as_me:$LINENO: result: no" >&5
12366echo "${ECHO_T}no" >&6
12367fi
12368
12369
12370 if test "$GMSGFMT" != ":"; then
12371 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12372 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12373 : ;
12374 else
12375 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12376 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12377echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12378 GMSGFMT=":"
12379 fi
12380 fi
12381
12382 if test "$XGETTEXT" != ":"; then
12383 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12384 (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
12385 : ;
12386 else
12387 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12388echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12389 XGETTEXT=":"
12390 fi
12391 rm -f messages.po
12392 fi
12393
12394 ac_config_commands="$ac_config_commands default-1"
12395
12396
12397
12398echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12399echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12400 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12401if test "${enable_maintainer_mode+set}" = set; then
12402 enableval="$enable_maintainer_mode"
12403 USE_MAINTAINER_MODE=$enableval
42ecbf5e 12404else
d7040cdb
SE
12405 USE_MAINTAINER_MODE=no
12406fi;
12407 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12408echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 12409
d7040cdb
SE
12410
12411if test $USE_MAINTAINER_MODE = yes; then
12412 MAINTAINER_MODE_TRUE=
12413 MAINTAINER_MODE_FALSE='#'
12414else
12415 MAINTAINER_MODE_TRUE='#'
12416 MAINTAINER_MODE_FALSE=
42ecbf5e 12417fi
d7040cdb
SE
12418
12419 MAINT=$MAINTAINER_MODE_TRUE
12420
12421
12422
12423
12424if false; then
12425 GENINSRC_NEVER_TRUE=
12426 GENINSRC_NEVER_FALSE='#'
12427else
12428 GENINSRC_NEVER_TRUE='#'
12429 GENINSRC_NEVER_FALSE=
42ecbf5e 12430fi
d7040cdb
SE
12431
12432
12433if test -n "$EXEEXT"; then
20e95c23
DJ
12434
12435cat >>confdefs.h <<\_ACEOF
d7040cdb 12436#define HAVE_EXECUTABLE_SUFFIX 1
20e95c23 12437_ACEOF
42ecbf5e 12438
252b5132
RH
12439fi
12440
d7040cdb
SE
12441cat >>confdefs.h <<_ACEOF
12442#define EXECUTABLE_SUFFIX "${EXEEXT}"
12443_ACEOF
42ecbf5e 12444
252b5132 12445
d7040cdb 12446# host-specific stuff:
252b5132 12447
d7040cdb 12448HDEFINES=
252b5132 12449
d7040cdb 12450. ${srcdir}/../bfd/configure.host
252b5132 12451
252b5132 12452
d7040cdb 12453AR=${AR-ar}
252b5132 12454
d7040cdb
SE
12455if test -n "$ac_tool_prefix"; then
12456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12457set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12458echo "$as_me:$LINENO: checking for $ac_word" >&5
12459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12460if test "${ac_cv_prog_RANLIB+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12462else
12463 if test -n "$RANLIB"; then
12464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12465else
12466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $PATH
12468do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12475 break 2
12476 fi
12477done
12478done
252b5132 12479
d7040cdb
SE
12480fi
12481fi
12482RANLIB=$ac_cv_prog_RANLIB
12483if test -n "$RANLIB"; then
12484 echo "$as_me:$LINENO: result: $RANLIB" >&5
12485echo "${ECHO_T}$RANLIB" >&6
12486else
12487 echo "$as_me:$LINENO: result: no" >&5
12488echo "${ECHO_T}no" >&6
12489fi
20e95c23 12490
d7040cdb
SE
12491fi
12492if test -z "$ac_cv_prog_RANLIB"; then
12493 ac_ct_RANLIB=$RANLIB
12494 # Extract the first word of "ranlib", so it can be a program name with args.
12495set dummy ranlib; ac_word=$2
12496echo "$as_me:$LINENO: checking for $ac_word" >&5
12497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12498if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e 12499 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12500else
d7040cdb
SE
12501 if test -n "$ac_ct_RANLIB"; then
12502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12511 ac_cv_prog_ac_ct_RANLIB="ranlib"
12512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516done
20e95c23 12517
d7040cdb
SE
12518 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12519fi
12520fi
12521ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12522if test -n "$ac_ct_RANLIB"; then
12523 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12524echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23 12525else
d7040cdb
SE
12526 echo "$as_me:$LINENO: result: no" >&5
12527echo "${ECHO_T}no" >&6
12528fi
12529
12530 RANLIB=$ac_ct_RANLIB
12531else
12532 RANLIB="$ac_cv_prog_RANLIB"
12533fi
12534
12535# Find a good install program. We prefer a C program (faster),
12536# so one script is as good as another. But avoid the broken or
12537# incompatible versions:
12538# SysV /etc/install, /usr/sbin/install
12539# SunOS /usr/etc/install
12540# IRIX /sbin/install
12541# AIX /bin/install
12542# AmigaOS /C/install, which installs bootblocks on floppy discs
12543# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12544# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12545# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12546# OS/2's system install, which has a completely different semantic
12547# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 12548# Reject install programs that cannot install multiple files.
d7040cdb
SE
12549echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12550echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12551if test -z "$INSTALL"; then
12552if test "${ac_cv_path_install+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554else
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 # Account for people who put trailing slashes in PATH elements.
12561case $as_dir/ in
12562 ./ | .// | /cC/* | \
12563 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12564 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12565 /usr/ucb/* ) ;;
12566 *)
12567 # OSF1 and SCO ODT 3.0 have their own names for install.
12568 # Don't use installbsd from OSF since it installs stuff as root
12569 # by default.
12570 for ac_prog in ginstall scoinst install; do
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12573 if test $ac_prog = install &&
12574 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12575 # AIX install. It has an incompatible calling convention.
12576 :
12577 elif test $ac_prog = install &&
12578 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12579 # program-specific install script used by HP pwplus--don't use.
12580 :
12581 else
58c85be7
RW
12582 rm -rf conftest.one conftest.two conftest.dir
12583 echo one > conftest.one
12584 echo two > conftest.two
12585 mkdir conftest.dir
12586 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12587 test -s conftest.one && test -s conftest.two &&
12588 test -s conftest.dir/conftest.one &&
12589 test -s conftest.dir/conftest.two
12590 then
12591 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12592 break 3
12593 fi
d7040cdb
SE
12594 fi
12595 fi
12596 done
12597 done
12598 ;;
12599esac
12600done
12601
58c85be7 12602rm -rf conftest.one conftest.two conftest.dir
d7040cdb
SE
12603
12604fi
12605 if test "${ac_cv_path_install+set}" = set; then
12606 INSTALL=$ac_cv_path_install
12607 else
58c85be7
RW
12608 # As a last resort, use the slow shell script. Don't cache a
12609 # value for INSTALL within a source directory, because that will
d7040cdb 12610 # break other packages using the cache if that directory is
58c85be7 12611 # removed, or if the value is a relative name.
d7040cdb
SE
12612 INSTALL=$ac_install_sh
12613 fi
12614fi
12615echo "$as_me:$LINENO: result: $INSTALL" >&5
12616echo "${ECHO_T}$INSTALL" >&6
12617
12618# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12619# It thinks the first close brace ends the variable substitution.
12620test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12621
12622test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12623
12624test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12625
12626
12627# Put a plausible default for CC_FOR_BUILD in Makefile.
12628if test -z "$CC_FOR_BUILD"; then
12629 if test "x$cross_compiling" = "xno"; then
12630 CC_FOR_BUILD='$(CC)'
12631 else
12632 CC_FOR_BUILD=gcc
12633 fi
12634fi
20e95c23 12635
d7040cdb
SE
12636# Also set EXEEXT_FOR_BUILD.
12637if test "x$cross_compiling" = "xno"; then
12638 EXEEXT_FOR_BUILD='$(EXEEXT)'
12639else
12640 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12641echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12642if test "${bfd_cv_build_exeext+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644else
12645 rm -f conftest*
12646 echo 'int main () { return 0; }' > conftest.c
12647 bfd_cv_build_exeext=
12648 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12649 for file in conftest.*; do
12650 case $file in
12651 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12652 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12653 esac
12654 done
12655 rm -f conftest*
12656 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 12657fi
d7040cdb
SE
12658echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12659echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12660 EXEEXT_FOR_BUILD=""
12661 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
12662fi
12663
12664
d7040cdb
SE
12665DEMANGLER_NAME=c++filt
12666case "${host}" in
12667 *-*-go32* | *-*-msdos*)
12668 DEMANGLER_NAME=cxxfilt
12669esac
8a965946
ILT
12670
12671
42ecbf5e
DJ
12672
12673
12674
12675
12676
12677
f8eae8b2
L
12678
12679
12680for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
252b5132 12681do
42ecbf5e
DJ
12682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12683if eval "test \"\${$as_ac_Header+set}\" = set"; then
12684 echo "$as_me:$LINENO: checking for $ac_header" >&5
12685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12686if eval "test \"\${$as_ac_Header+set}\" = set"; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688fi
12689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12691else
12692 # Is the header compilable?
12693echo "$as_me:$LINENO: checking $ac_header usability" >&5
12694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12695cat >conftest.$ac_ext <<_ACEOF
12696/* confdefs.h. */
12697_ACEOF
12698cat confdefs.h >>conftest.$ac_ext
12699cat >>conftest.$ac_ext <<_ACEOF
12700/* end confdefs.h. */
12701$ac_includes_default
12702#include <$ac_header>
12703_ACEOF
12704rm -f conftest.$ac_objext
12705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12706 (eval $ac_compile) 2>conftest.er1
12707 ac_status=$?
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
7357c5b6
AM
12713 { ac_try='test -z "$ac_c_werror_flag"
12714 || test ! -s conftest.err'
42ecbf5e
DJ
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try='test -s conftest.$ac_objext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 ac_header_compiler=yes
12727else
12728 echo "$as_me: failed program was:" >&5
12729sed 's/^/| /' conftest.$ac_ext >&5
12730
12731ac_header_compiler=no
12732fi
12733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12735echo "${ECHO_T}$ac_header_compiler" >&6
12736
12737# Is the header present?
12738echo "$as_me:$LINENO: checking $ac_header presence" >&5
12739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12740cat >conftest.$ac_ext <<_ACEOF
12741/* confdefs.h. */
12742_ACEOF
12743cat confdefs.h >>conftest.$ac_ext
12744cat >>conftest.$ac_ext <<_ACEOF
12745/* end confdefs.h. */
12746#include <$ac_header>
12747_ACEOF
12748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12750 ac_status=$?
12751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } >/dev/null; then
12756 if test -s conftest.err; then
12757 ac_cpp_err=$ac_c_preproc_warn_flag
12758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12759 else
12760 ac_cpp_err=
12761 fi
252b5132 12762else
42ecbf5e 12763 ac_cpp_err=yes
252b5132 12764fi
42ecbf5e
DJ
12765if test -z "$ac_cpp_err"; then
12766 ac_header_preproc=yes
12767else
12768 echo "$as_me: failed program was:" >&5
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
12771 ac_header_preproc=no
252b5132 12772fi
42ecbf5e
DJ
12773rm -f conftest.err conftest.$ac_ext
12774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12775echo "${ECHO_T}$ac_header_preproc" >&6
12776
12777# So? What about this header?
12778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12779 yes:no: )
12780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12784 ac_header_preproc=yes
12785 ;;
12786 no:yes:* )
12787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12794echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12799 (
12800 cat <<\_ASBOX
12801## ------------------------------------------ ##
12802## Report this to the AC_PACKAGE_NAME lists. ##
12803## ------------------------------------------ ##
12804_ASBOX
12805 ) |
12806 sed "s/^/$as_me: WARNING: /" >&2
12807 ;;
12808esac
12809echo "$as_me:$LINENO: checking for $ac_header" >&5
12810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12811if eval "test \"\${$as_ac_Header+set}\" = set"; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12813else
42ecbf5e
DJ
12814 eval "$as_ac_Header=\$ac_header_preproc"
12815fi
12816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12818
252b5132 12819fi
42ecbf5e
DJ
12820if test `eval echo '${'$as_ac_Header'}'` = yes; then
12821 cat >>confdefs.h <<_ACEOF
12822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12823_ACEOF
12824
12825fi
12826
252b5132
RH
12827done
12828
42ecbf5e
DJ
12829echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12830echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12831if test "${ac_cv_header_sys_wait_h+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833else
12834 cat >conftest.$ac_ext <<_ACEOF
12835/* confdefs.h. */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h. */
252b5132
RH
12840#include <sys/types.h>
12841#include <sys/wait.h>
12842#ifndef WEXITSTATUS
42ecbf5e 12843# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
12844#endif
12845#ifndef WIFEXITED
42ecbf5e 12846# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 12847#endif
42ecbf5e
DJ
12848
12849int
12850main ()
12851{
12852 int s;
12853 wait (&s);
12854 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12855 ;
12856 return 0;
12857}
12858_ACEOF
12859rm -f conftest.$ac_objext
12860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12861 (eval $ac_compile) 2>conftest.er1
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } &&
7357c5b6
AM
12868 { ac_try='test -z "$ac_c_werror_flag"
12869 || test ! -s conftest.err'
42ecbf5e
DJ
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; } &&
12875 { ac_try='test -s conftest.$ac_objext'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
252b5132
RH
12881 ac_cv_header_sys_wait_h=yes
12882else
42ecbf5e
DJ
12883 echo "$as_me: failed program was:" >&5
12884sed 's/^/| /' conftest.$ac_ext >&5
12885
12886ac_cv_header_sys_wait_h=no
252b5132 12887fi
42ecbf5e 12888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12889fi
42ecbf5e
DJ
12890echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12891echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 12892if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
12893
12894cat >>confdefs.h <<\_ACEOF
252b5132 12895#define HAVE_SYS_WAIT_H 1
42ecbf5e 12896_ACEOF
252b5132
RH
12897
12898fi
12899
12900# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12901# for constant arguments. Useless!
42ecbf5e
DJ
12902echo "$as_me:$LINENO: checking for working alloca.h" >&5
12903echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12904if test "${ac_cv_working_alloca_h+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12906else
12907 cat >conftest.$ac_ext <<_ACEOF
12908/* confdefs.h. */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h. */
252b5132 12913#include <alloca.h>
42ecbf5e
DJ
12914int
12915main ()
12916{
12917char *p = (char *) alloca (2 * sizeof (int));
12918 ;
12919 return 0;
12920}
12921_ACEOF
12922rm -f conftest.$ac_objext conftest$ac_exeext
12923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
7357c5b6
AM
12931 { ac_try='test -z "$ac_c_werror_flag"
12932 || test ! -s conftest.err'
42ecbf5e
DJ
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest$ac_exeext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_working_alloca_h=yes
12945else
12946 echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
12949ac_cv_working_alloca_h=no
12950fi
12951rm -f conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953fi
12954echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12955echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12956if test $ac_cv_working_alloca_h = yes; then
12957
12958cat >>confdefs.h <<\_ACEOF
252b5132 12959#define HAVE_ALLOCA_H 1
42ecbf5e 12960_ACEOF
252b5132
RH
12961
12962fi
12963
42ecbf5e
DJ
12964echo "$as_me:$LINENO: checking for alloca" >&5
12965echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12966if test "${ac_cv_func_alloca_works+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12968else
42ecbf5e
DJ
12969 cat >conftest.$ac_ext <<_ACEOF
12970/* confdefs.h. */
12971_ACEOF
12972cat confdefs.h >>conftest.$ac_ext
12973cat >>conftest.$ac_ext <<_ACEOF
12974/* end confdefs.h. */
252b5132
RH
12975#ifdef __GNUC__
12976# define alloca __builtin_alloca
12977#else
12978# ifdef _MSC_VER
12979# include <malloc.h>
12980# define alloca _alloca
12981# else
12982# if HAVE_ALLOCA_H
12983# include <alloca.h>
12984# else
12985# ifdef _AIX
12986 #pragma alloca
12987# else
12988# ifndef alloca /* predefined by HP cc +Olibcalls */
12989char *alloca ();
12990# endif
12991# endif
12992# endif
12993# endif
12994#endif
12995
42ecbf5e
DJ
12996int
12997main ()
12998{
12999char *p = (char *) alloca (1);
13000 ;
13001 return 0;
13002}
13003_ACEOF
13004rm -f conftest.$ac_objext conftest$ac_exeext
13005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13006 (eval $ac_link) 2>conftest.er1
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
7357c5b6
AM
13013 { ac_try='test -z "$ac_c_werror_flag"
13014 || test ! -s conftest.err'
42ecbf5e
DJ
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest$ac_exeext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
252b5132
RH
13026 ac_cv_func_alloca_works=yes
13027else
42ecbf5e
DJ
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
13031ac_cv_func_alloca_works=no
252b5132 13032fi
42ecbf5e
DJ
13033rm -f conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
252b5132 13035fi
42ecbf5e
DJ
13036echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13037echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 13038
252b5132 13039if test $ac_cv_func_alloca_works = yes; then
e5a52504 13040
42ecbf5e
DJ
13041cat >>confdefs.h <<\_ACEOF
13042#define HAVE_ALLOCA 1
13043_ACEOF
e5a52504 13044
42ecbf5e 13045else
d15b04bd 13046 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
13047# that cause trouble. Some versions do not even contain alloca or
13048# contain a buggy version. If you still want to use their alloca,
13049# use ar to extract alloca.o from them instead of compiling alloca.c.
13050
13051ALLOCA=alloca.$ac_objext
13052
13053cat >>confdefs.h <<\_ACEOF
252b5132 13054#define C_ALLOCA 1
42ecbf5e 13055_ACEOF
252b5132
RH
13056
13057
42ecbf5e
DJ
13058echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13059echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13060if test "${ac_cv_os_cray+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13062else
42ecbf5e
DJ
13063 cat >conftest.$ac_ext <<_ACEOF
13064/* confdefs.h. */
13065_ACEOF
13066cat confdefs.h >>conftest.$ac_ext
13067cat >>conftest.$ac_ext <<_ACEOF
13068/* end confdefs.h. */
252b5132
RH
13069#if defined(CRAY) && ! defined(CRAY2)
13070webecray
13071#else
13072wenotbecray
13073#endif
13074
42ecbf5e 13075_ACEOF
252b5132 13076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 13077 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
13078 ac_cv_os_cray=yes
13079else
252b5132
RH
13080 ac_cv_os_cray=no
13081fi
13082rm -f conftest*
13083
13084fi
42ecbf5e
DJ
13085echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13086echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 13087if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
13088 for ac_func in _getb67 GETB67 getb67; do
13089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13090echo "$as_me:$LINENO: checking for $ac_func" >&5
13091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13092if eval "test \"\${$as_ac_var+set}\" = set"; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094else
13095 cat >conftest.$ac_ext <<_ACEOF
13096/* confdefs.h. */
13097_ACEOF
13098cat confdefs.h >>conftest.$ac_ext
13099cat >>conftest.$ac_ext <<_ACEOF
13100/* end confdefs.h. */
13101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13103#define $ac_func innocuous_$ac_func
13104
252b5132 13105/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
13106 which can conflict with char $ac_func (); below.
13107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13108 <limits.h> exists even on freestanding compilers. */
13109
13110#ifdef __STDC__
13111# include <limits.h>
13112#else
13113# include <assert.h>
13114#endif
d15b04bd 13115
42ecbf5e 13116#undef $ac_func
d15b04bd 13117
42ecbf5e
DJ
13118/* Override any gcc2 internal prototype to avoid an error. */
13119#ifdef __cplusplus
13120extern "C"
13121{
13122#endif
13123/* We use char because int might match the return type of a gcc2
13124 builtin and then its argument prototype would still apply. */
13125char $ac_func ();
252b5132
RH
13126/* The GNU C library defines this for functions which it implements
13127 to always fail with ENOSYS. Some functions are actually named
13128 something starting with __ and the normal name is an alias. */
13129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13130choke me
13131#else
42ecbf5e
DJ
13132char (*f) () = $ac_func;
13133#endif
13134#ifdef __cplusplus
13135}
252b5132
RH
13136#endif
13137
42ecbf5e
DJ
13138int
13139main ()
13140{
13141return f != $ac_func;
13142 ;
13143 return 0;
13144}
13145_ACEOF
13146rm -f conftest.$ac_objext conftest$ac_exeext
13147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148 (eval $ac_link) 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
7357c5b6
AM
13155 { ac_try='test -z "$ac_c_werror_flag"
13156 || test ! -s conftest.err'
42ecbf5e
DJ
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest$ac_exeext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 eval "$as_ac_var=yes"
13169else
13170 echo "$as_me: failed program was:" >&5
13171sed 's/^/| /' conftest.$ac_ext >&5
13172
13173eval "$as_ac_var=no"
13174fi
13175rm -f conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177fi
13178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13180if test `eval echo '${'$as_ac_var'}'` = yes; then
13181
13182cat >>confdefs.h <<_ACEOF
252b5132 13183#define CRAY_STACKSEG_END $ac_func
42ecbf5e 13184_ACEOF
252b5132 13185
42ecbf5e 13186 break
252b5132
RH
13187fi
13188
42ecbf5e 13189 done
252b5132
RH
13190fi
13191
42ecbf5e
DJ
13192echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13193echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13194if test "${ac_cv_c_stack_direction+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
13196else
13197 if test "$cross_compiling" = yes; then
13198 ac_cv_c_stack_direction=0
13199else
42ecbf5e
DJ
13200 cat >conftest.$ac_ext <<_ACEOF
13201/* confdefs.h. */
13202_ACEOF
13203cat confdefs.h >>conftest.$ac_ext
13204cat >>conftest.$ac_ext <<_ACEOF
13205/* end confdefs.h. */
13206int
252b5132
RH
13207find_stack_direction ()
13208{
13209 static char *addr = 0;
13210 auto char dummy;
13211 if (addr == 0)
13212 {
13213 addr = &dummy;
13214 return find_stack_direction ();
13215 }
13216 else
13217 return (&dummy > addr) ? 1 : -1;
13218}
42ecbf5e
DJ
13219
13220int
252b5132
RH
13221main ()
13222{
42ecbf5e 13223 exit (find_stack_direction () < 0);
252b5132 13224}
42ecbf5e
DJ
13225_ACEOF
13226rm -f conftest$ac_exeext
13227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13228 (eval $ac_link) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
252b5132
RH
13237 ac_cv_c_stack_direction=1
13238else
42ecbf5e
DJ
13239 echo "$as_me: program exited with status $ac_status" >&5
13240echo "$as_me: failed program was:" >&5
13241sed 's/^/| /' conftest.$ac_ext >&5
13242
13243( exit $ac_status )
13244ac_cv_c_stack_direction=-1
252b5132 13245fi
42ecbf5e 13246rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 13247fi
252b5132 13248fi
42ecbf5e
DJ
13249echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13250echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 13251
42ecbf5e 13252cat >>confdefs.h <<_ACEOF
252b5132 13253#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
13254_ACEOF
13255
252b5132
RH
13256
13257fi
13258
42ecbf5e
DJ
13259
13260
13261
13262
13263
9710509e 13264for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 13265do
42ecbf5e
DJ
13266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13267echo "$as_me:$LINENO: checking for $ac_func" >&5
13268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13269if eval "test \"\${$as_ac_var+set}\" = set"; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13271else
13272 cat >conftest.$ac_ext <<_ACEOF
13273/* confdefs.h. */
13274_ACEOF
13275cat confdefs.h >>conftest.$ac_ext
13276cat >>conftest.$ac_ext <<_ACEOF
13277/* end confdefs.h. */
13278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13280#define $ac_func innocuous_$ac_func
13281
252b5132 13282/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
13283 which can conflict with char $ac_func (); below.
13284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13285 <limits.h> exists even on freestanding compilers. */
13286
13287#ifdef __STDC__
13288# include <limits.h>
13289#else
13290# include <assert.h>
13291#endif
d15b04bd 13292
42ecbf5e 13293#undef $ac_func
d15b04bd 13294
42ecbf5e
DJ
13295/* Override any gcc2 internal prototype to avoid an error. */
13296#ifdef __cplusplus
13297extern "C"
13298{
13299#endif
13300/* We use char because int might match the return type of a gcc2
13301 builtin and then its argument prototype would still apply. */
13302char $ac_func ();
252b5132
RH
13303/* The GNU C library defines this for functions which it implements
13304 to always fail with ENOSYS. Some functions are actually named
13305 something starting with __ and the normal name is an alias. */
13306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13307choke me
13308#else
42ecbf5e
DJ
13309char (*f) () = $ac_func;
13310#endif
13311#ifdef __cplusplus
13312}
252b5132
RH
13313#endif
13314
42ecbf5e
DJ
13315int
13316main ()
13317{
13318return f != $ac_func;
13319 ;
13320 return 0;
13321}
13322_ACEOF
13323rm -f conftest.$ac_objext conftest$ac_exeext
13324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325 (eval $ac_link) 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
7357c5b6
AM
13332 { ac_try='test -z "$ac_c_werror_flag"
13333 || test ! -s conftest.err'
42ecbf5e
DJ
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest$ac_exeext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345 eval "$as_ac_var=yes"
13346else
13347 echo "$as_me: failed program was:" >&5
13348sed 's/^/| /' conftest.$ac_ext >&5
13349
13350eval "$as_ac_var=no"
13351fi
13352rm -f conftest.err conftest.$ac_objext \
13353 conftest$ac_exeext conftest.$ac_ext
13354fi
13355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13357if test `eval echo '${'$as_ac_var'}'` = yes; then
13358 cat >>confdefs.h <<_ACEOF
13359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13360_ACEOF
252b5132 13361
252b5132
RH
13362fi
13363done
13364
f9c026a8
NC
13365echo "$as_me:$LINENO: checking for mkstemp" >&5
13366echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
13367if test "${ac_cv_func_mkstemp+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369else
13370 cat >conftest.$ac_ext <<_ACEOF
13371/* confdefs.h. */
13372_ACEOF
13373cat confdefs.h >>conftest.$ac_ext
13374cat >>conftest.$ac_ext <<_ACEOF
13375/* end confdefs.h. */
13376/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
13377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13378#define mkstemp innocuous_mkstemp
13379
13380/* System header to define __stub macros and hopefully few prototypes,
13381 which can conflict with char mkstemp (); below.
13382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13383 <limits.h> exists even on freestanding compilers. */
13384
13385#ifdef __STDC__
13386# include <limits.h>
13387#else
13388# include <assert.h>
13389#endif
13390
13391#undef mkstemp
13392
13393/* Override any gcc2 internal prototype to avoid an error. */
13394#ifdef __cplusplus
13395extern "C"
13396{
13397#endif
13398/* We use char because int might match the return type of a gcc2
13399 builtin and then its argument prototype would still apply. */
13400char mkstemp ();
13401/* The GNU C library defines this for functions which it implements
13402 to always fail with ENOSYS. Some functions are actually named
13403 something starting with __ and the normal name is an alias. */
13404#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
13405choke me
13406#else
13407char (*f) () = mkstemp;
13408#endif
13409#ifdef __cplusplus
13410}
13411#endif
13412
13413int
13414main ()
13415{
13416return f != mkstemp;
13417 ;
13418 return 0;
13419}
13420_ACEOF
13421rm -f conftest.$ac_objext conftest$ac_exeext
13422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13423 (eval $ac_link) 2>conftest.er1
13424 ac_status=$?
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
7357c5b6
AM
13430 { ac_try='test -z "$ac_c_werror_flag"
13431 || test ! -s conftest.err'
f9c026a8
NC
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest$ac_exeext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 ac_cv_func_mkstemp=yes
13444else
13445 echo "$as_me: failed program was:" >&5
13446sed 's/^/| /' conftest.$ac_ext >&5
13447
13448ac_cv_func_mkstemp=no
13449fi
13450rm -f conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452fi
13453echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
13454echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
13455if test $ac_cv_func_mkstemp = yes; then
13456
13457cat >>confdefs.h <<\_ACEOF
13458#define HAVE_MKSTEMP 1
13459_ACEOF
13460
13461fi
13462
13463echo "$as_me:$LINENO: checking for mkdtemp" >&5
13464echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
13465if test "${ac_cv_func_mkdtemp+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467else
13468 cat >conftest.$ac_ext <<_ACEOF
13469/* confdefs.h. */
13470_ACEOF
13471cat confdefs.h >>conftest.$ac_ext
13472cat >>conftest.$ac_ext <<_ACEOF
13473/* end confdefs.h. */
13474/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
13475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13476#define mkdtemp innocuous_mkdtemp
13477
13478/* System header to define __stub macros and hopefully few prototypes,
13479 which can conflict with char mkdtemp (); below.
13480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13481 <limits.h> exists even on freestanding compilers. */
13482
13483#ifdef __STDC__
13484# include <limits.h>
13485#else
13486# include <assert.h>
13487#endif
13488
13489#undef mkdtemp
13490
13491/* Override any gcc2 internal prototype to avoid an error. */
13492#ifdef __cplusplus
13493extern "C"
13494{
13495#endif
13496/* We use char because int might match the return type of a gcc2
13497 builtin and then its argument prototype would still apply. */
13498char mkdtemp ();
13499/* The GNU C library defines this for functions which it implements
13500 to always fail with ENOSYS. Some functions are actually named
13501 something starting with __ and the normal name is an alias. */
13502#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
13503choke me
13504#else
13505char (*f) () = mkdtemp;
13506#endif
13507#ifdef __cplusplus
13508}
13509#endif
13510
13511int
13512main ()
13513{
13514return f != mkdtemp;
13515 ;
13516 return 0;
13517}
13518_ACEOF
13519rm -f conftest.$ac_objext conftest$ac_exeext
13520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13521 (eval $ac_link) 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
7357c5b6
AM
13528 { ac_try='test -z "$ac_c_werror_flag"
13529 || test ! -s conftest.err'
f9c026a8
NC
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; } &&
13535 { ac_try='test -s conftest$ac_exeext'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
13541 ac_cv_func_mkdtemp=yes
13542else
13543 echo "$as_me: failed program was:" >&5
13544sed 's/^/| /' conftest.$ac_ext >&5
13545
13546ac_cv_func_mkdtemp=no
13547fi
13548rm -f conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13550fi
13551echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
13552echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
13553if test $ac_cv_func_mkdtemp = yes; then
13554
13555cat >>confdefs.h <<\_ACEOF
13556#define HAVE_MKDTEMP 1
13557_ACEOF
13558
13559fi
13560
252b5132 13561
cedd9a58
JJ
13562# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
13563# needs to be defined for it
42ecbf5e
DJ
13564echo "$as_me:$LINENO: checking for fopen64" >&5
13565echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
13566if test "${bu_cv_have_fopen64+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13568else
13569 cat >conftest.$ac_ext <<_ACEOF
13570/* confdefs.h. */
13571_ACEOF
13572cat confdefs.h >>conftest.$ac_ext
13573cat >>conftest.$ac_ext <<_ACEOF
13574/* end confdefs.h. */
cedd9a58 13575#include <stdio.h>
42ecbf5e
DJ
13576int
13577main ()
13578{
cedd9a58 13579FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
13580 ;
13581 return 0;
13582}
13583_ACEOF
13584rm -f conftest.$ac_objext conftest$ac_exeext
13585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13586 (eval $ac_link) 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
7357c5b6
AM
13593 { ac_try='test -z "$ac_c_werror_flag"
13594 || test ! -s conftest.err'
42ecbf5e
DJ
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; } &&
13600 { ac_try='test -s conftest$ac_exeext'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
cedd9a58
JJ
13606 bu_cv_have_fopen64=yes
13607else
42ecbf5e
DJ
13608 echo "$as_me: failed program was:" >&5
13609sed 's/^/| /' conftest.$ac_ext >&5
13610
13611saved_CPPFLAGS=$CPPFLAGS
cedd9a58 13612 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
13613 cat >conftest.$ac_ext <<_ACEOF
13614/* confdefs.h. */
13615_ACEOF
13616cat confdefs.h >>conftest.$ac_ext
13617cat >>conftest.$ac_ext <<_ACEOF
13618/* end confdefs.h. */
cedd9a58 13619#include <stdio.h>
42ecbf5e
DJ
13620int
13621main ()
13622{
cedd9a58 13623FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
13624 ;
13625 return 0;
13626}
13627_ACEOF
13628rm -f conftest.$ac_objext conftest$ac_exeext
13629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13630 (eval $ac_link) 2>conftest.er1
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
7357c5b6
AM
13637 { ac_try='test -z "$ac_c_werror_flag"
13638 || test ! -s conftest.err'
42ecbf5e
DJ
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
cedd9a58
JJ
13650 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
13651else
42ecbf5e
DJ
13652 echo "$as_me: failed program was:" >&5
13653sed 's/^/| /' conftest.$ac_ext >&5
13654
13655bu_cv_have_fopen64=no
cedd9a58 13656fi
42ecbf5e
DJ
13657rm -f conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 13659 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 13660fi
42ecbf5e
DJ
13661rm -f conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
cedd9a58 13663fi
cedd9a58 13664
42ecbf5e
DJ
13665echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
13666echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 13667if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
13668
13669cat >>confdefs.h <<\_ACEOF
cedd9a58 13670#define HAVE_FOPEN64 1
42ecbf5e 13671_ACEOF
cedd9a58 13672
fb5b5478 13673fi
42ecbf5e
DJ
13674echo "$as_me:$LINENO: checking for stat64" >&5
13675echo $ECHO_N "checking for stat64... $ECHO_C" >&6
13676if test "${bu_cv_have_stat64+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 13678else
42ecbf5e
DJ
13679 cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
fb5b5478 13685#include <sys/stat.h>
42ecbf5e
DJ
13686int
13687main ()
13688{
fb5b5478 13689struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
13690 ;
13691 return 0;
13692}
13693_ACEOF
13694rm -f conftest.$ac_objext conftest$ac_exeext
13695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13696 (eval $ac_link) 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
7357c5b6
AM
13703 { ac_try='test -z "$ac_c_werror_flag"
13704 || test ! -s conftest.err'
42ecbf5e
DJ
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; } &&
13710 { ac_try='test -s conftest$ac_exeext'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
fb5b5478
JJ
13716 bu_cv_have_stat64=yes
13717else
42ecbf5e
DJ
13718 echo "$as_me: failed program was:" >&5
13719sed 's/^/| /' conftest.$ac_ext >&5
13720
13721saved_CPPFLAGS=$CPPFLAGS
fb5b5478 13722 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
13723 cat >conftest.$ac_ext <<_ACEOF
13724/* confdefs.h. */
13725_ACEOF
13726cat confdefs.h >>conftest.$ac_ext
13727cat >>conftest.$ac_ext <<_ACEOF
13728/* end confdefs.h. */
fb5b5478 13729#include <sys/stat.h>
42ecbf5e
DJ
13730int
13731main ()
13732{
fb5b5478 13733struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
13734 ;
13735 return 0;
13736}
13737_ACEOF
13738rm -f conftest.$ac_objext conftest$ac_exeext
13739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
7357c5b6
AM
13747 { ac_try='test -z "$ac_c_werror_flag"
13748 || test ! -s conftest.err'
42ecbf5e
DJ
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
fb5b5478
JJ
13760 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
13761else
42ecbf5e
DJ
13762 echo "$as_me: failed program was:" >&5
13763sed 's/^/| /' conftest.$ac_ext >&5
13764
13765bu_cv_have_stat64=no
fb5b5478 13766fi
42ecbf5e
DJ
13767rm -f conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
13769 CPPFLAGS=$saved_CPPFLAGS
13770fi
42ecbf5e
DJ
13771rm -f conftest.err conftest.$ac_objext \
13772 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
13773fi
13774
42ecbf5e
DJ
13775echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
13776echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 13777if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
13778
13779cat >>confdefs.h <<\_ACEOF
fb5b5478 13780#define HAVE_STAT64 1
42ecbf5e 13781_ACEOF
fb5b5478
JJ
13782
13783fi
13784if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
13785 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
13786
13787cat >>confdefs.h <<\_ACEOF
cedd9a58 13788#define _LARGEFILE64_SOURCE 1
42ecbf5e 13789_ACEOF
cedd9a58 13790
fb5b5478 13791 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
13792fi
13793
f353eb8a 13794# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
13795echo "$as_me:$LINENO: checking for library containing frexp" >&5
13796echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
13797if test "${ac_cv_search_frexp+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13799else
13800 ac_func_search_save_LIBS=$LIBS
13801ac_cv_search_frexp=no
13802cat >conftest.$ac_ext <<_ACEOF
13803/* confdefs.h. */
13804_ACEOF
13805cat confdefs.h >>conftest.$ac_ext
13806cat >>conftest.$ac_ext <<_ACEOF
13807/* end confdefs.h. */
f353eb8a 13808
f353eb8a 13809/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
13810#ifdef __cplusplus
13811extern "C"
13812#endif
f353eb8a 13813/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
13814 builtin and then its argument prototype would still apply. */
13815char frexp ();
13816int
13817main ()
13818{
13819frexp ();
13820 ;
13821 return 0;
13822}
13823_ACEOF
13824rm -f conftest.$ac_objext conftest$ac_exeext
13825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13826 (eval $ac_link) 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
7357c5b6
AM
13833 { ac_try='test -z "$ac_c_werror_flag"
13834 || test ! -s conftest.err'
42ecbf5e
DJ
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; } &&
13840 { ac_try='test -s conftest$ac_exeext'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
f353eb8a
ILT
13846 ac_cv_search_frexp="none required"
13847else
42ecbf5e
DJ
13848 echo "$as_me: failed program was:" >&5
13849sed 's/^/| /' conftest.$ac_ext >&5
13850
f353eb8a 13851fi
42ecbf5e
DJ
13852rm -f conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854if test "$ac_cv_search_frexp" = no; then
13855 for ac_lib in m; do
13856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13857 cat >conftest.$ac_ext <<_ACEOF
13858/* confdefs.h. */
13859_ACEOF
13860cat confdefs.h >>conftest.$ac_ext
13861cat >>conftest.$ac_ext <<_ACEOF
13862/* end confdefs.h. */
13863
f353eb8a 13864/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
13865#ifdef __cplusplus
13866extern "C"
13867#endif
f353eb8a 13868/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
13869 builtin and then its argument prototype would still apply. */
13870char frexp ();
13871int
13872main ()
13873{
13874frexp ();
13875 ;
13876 return 0;
13877}
13878_ACEOF
13879rm -f conftest.$ac_objext conftest$ac_exeext
13880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13881 (eval $ac_link) 2>conftest.er1
13882 ac_status=$?
13883 grep -v '^ *+' conftest.er1 >conftest.err
13884 rm -f conftest.er1
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
7357c5b6
AM
13888 { ac_try='test -z "$ac_c_werror_flag"
13889 || test ! -s conftest.err'
42ecbf5e
DJ
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; } &&
13895 { ac_try='test -s conftest$ac_exeext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
13902break
13903else
42ecbf5e
DJ
13904 echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
f353eb8a 13907fi
42ecbf5e
DJ
13908rm -f conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 done
e5a52504 13911fi
42ecbf5e
DJ
13912LIBS=$ac_func_search_save_LIBS
13913fi
13914echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
13915echo "${ECHO_T}$ac_cv_search_frexp" >&6
13916if test "$ac_cv_search_frexp" != no; then
d15b04bd 13917 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 13918
f353eb8a
ILT
13919fi
13920
42ecbf5e
DJ
13921
13922echo "$as_me:$LINENO: checking for time_t in time.h" >&5
13923echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
13924if test "${bu_cv_decl_time_t_time_h+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13926else
42ecbf5e
DJ
13927 cat >conftest.$ac_ext <<_ACEOF
13928/* confdefs.h. */
13929_ACEOF
13930cat confdefs.h >>conftest.$ac_ext
13931cat >>conftest.$ac_ext <<_ACEOF
13932/* end confdefs.h. */
252b5132 13933#include <time.h>
42ecbf5e
DJ
13934int
13935main ()
13936{
252b5132 13937time_t i;
42ecbf5e
DJ
13938 ;
13939 return 0;
13940}
13941_ACEOF
13942rm -f conftest.$ac_objext
13943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944 (eval $ac_compile) 2>conftest.er1
13945 ac_status=$?
13946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
7357c5b6
AM
13951 { ac_try='test -z "$ac_c_werror_flag"
13952 || test ! -s conftest.err'
42ecbf5e
DJ
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest.$ac_objext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
252b5132
RH
13964 bu_cv_decl_time_t_time_h=yes
13965else
42ecbf5e
DJ
13966 echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969bu_cv_decl_time_t_time_h=no
252b5132 13970fi
42ecbf5e 13971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13972fi
13973
42ecbf5e
DJ
13974echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
13975echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 13976if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
13977
13978cat >>confdefs.h <<\_ACEOF
252b5132 13979#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 13980_ACEOF
252b5132
RH
13981
13982fi
13983
42ecbf5e
DJ
13984echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
13985echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
13986if test "${bu_cv_decl_time_t_types_h+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13988else
42ecbf5e
DJ
13989 cat >conftest.$ac_ext <<_ACEOF
13990/* confdefs.h. */
13991_ACEOF
13992cat confdefs.h >>conftest.$ac_ext
13993cat >>conftest.$ac_ext <<_ACEOF
13994/* end confdefs.h. */
252b5132 13995#include <sys/types.h>
42ecbf5e
DJ
13996int
13997main ()
13998{
252b5132 13999time_t i;
42ecbf5e
DJ
14000 ;
14001 return 0;
14002}
14003_ACEOF
14004rm -f conftest.$ac_objext
14005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>conftest.er1
14007 ac_status=$?
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
7357c5b6
AM
14013 { ac_try='test -z "$ac_c_werror_flag"
14014 || test ! -s conftest.err'
42ecbf5e
DJ
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest.$ac_objext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14023 ac_status=$?
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
252b5132
RH
14026 bu_cv_decl_time_t_types_h=yes
14027else
42ecbf5e
DJ
14028 echo "$as_me: failed program was:" >&5
14029sed 's/^/| /' conftest.$ac_ext >&5
14030
14031bu_cv_decl_time_t_types_h=no
252b5132 14032fi
42ecbf5e 14033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
14034fi
14035
42ecbf5e
DJ
14036echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
14037echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 14038if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
14039
14040cat >>confdefs.h <<\_ACEOF
252b5132 14041#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 14042_ACEOF
252b5132
RH
14043
14044fi
14045
42ecbf5e
DJ
14046echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
14047echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
14048if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 14050else
42ecbf5e
DJ
14051 cat >conftest.$ac_ext <<_ACEOF
14052/* confdefs.h. */
14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
14056/* end confdefs.h. */
e46eba98 14057#include <unistd.h>
42ecbf5e
DJ
14058int
14059main ()
14060{
e46eba98 14061extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
14062 ;
14063 return 0;
14064}
14065_ACEOF
14066rm -f conftest.$ac_objext
14067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068 (eval $ac_compile) 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } &&
7357c5b6
AM
14075 { ac_try='test -z "$ac_c_werror_flag"
14076 || test ! -s conftest.err'
42ecbf5e
DJ
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest.$ac_objext'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
e46eba98
NC
14088 bu_cv_decl_getopt_unistd_h=yes
14089else
42ecbf5e
DJ
14090 echo "$as_me: failed program was:" >&5
14091sed 's/^/| /' conftest.$ac_ext >&5
14092
14093bu_cv_decl_getopt_unistd_h=no
e46eba98 14094fi
42ecbf5e 14095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
14096fi
14097
42ecbf5e
DJ
14098echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
14099echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 14100if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
14101
14102cat >>confdefs.h <<\_ACEOF
e46eba98 14103#define HAVE_DECL_GETOPT 1
42ecbf5e 14104_ACEOF
e46eba98
NC
14105
14106fi
14107
252b5132
RH
14108# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
14109# by default.
42ecbf5e
DJ
14110echo "$as_me:$LINENO: checking for utime.h" >&5
14111echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14112if test "${bu_cv_header_utime_h+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114else
14115 cat >conftest.$ac_ext <<_ACEOF
14116/* confdefs.h. */
14117_ACEOF
14118cat confdefs.h >>conftest.$ac_ext
14119cat >>conftest.$ac_ext <<_ACEOF
14120/* end confdefs.h. */
252b5132
RH
14121#include <sys/types.h>
14122#ifdef HAVE_TIME_H
14123#include <time.h>
14124#endif
14125#include <utime.h>
42ecbf5e
DJ
14126int
14127main ()
14128{
252b5132 14129struct utimbuf s;
42ecbf5e
DJ
14130 ;
14131 return 0;
14132}
14133_ACEOF
14134rm -f conftest.$ac_objext
14135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14136 (eval $ac_compile) 2>conftest.er1
14137 ac_status=$?
14138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -f conftest.er1
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
7357c5b6
AM
14143 { ac_try='test -z "$ac_c_werror_flag"
14144 || test ! -s conftest.err'
42ecbf5e
DJ
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest.$ac_objext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
252b5132
RH
14156 bu_cv_header_utime_h=yes
14157else
42ecbf5e
DJ
14158 echo "$as_me: failed program was:" >&5
14159sed 's/^/| /' conftest.$ac_ext >&5
14160
14161bu_cv_header_utime_h=no
252b5132 14162fi
42ecbf5e 14163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
14164fi
14165
42ecbf5e
DJ
14166echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
14167echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 14168if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
14169
14170cat >>confdefs.h <<\_ACEOF
252b5132 14171#define HAVE_GOOD_UTIME_H 1
42ecbf5e 14172_ACEOF
252b5132
RH
14173
14174fi
14175
398ee8f1
SE
14176echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
14177echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
14178if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 14179 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14180else
42ecbf5e
DJ
14181 cat >conftest.$ac_ext <<_ACEOF
14182/* confdefs.h. */
14183_ACEOF
14184cat confdefs.h >>conftest.$ac_ext
14185cat >>conftest.$ac_ext <<_ACEOF
14186/* end confdefs.h. */
398ee8f1 14187$ac_includes_default
42ecbf5e
DJ
14188int
14189main ()
14190{
398ee8f1
SE
14191#ifndef fprintf
14192 char *p = (char *) fprintf;
14193#endif
14194
42ecbf5e
DJ
14195 ;
14196 return 0;
14197}
14198_ACEOF
14199rm -f conftest.$ac_objext
14200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14201 (eval $ac_compile) 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
7357c5b6
AM
14208 { ac_try='test -z "$ac_c_werror_flag"
14209 || test ! -s conftest.err'
42ecbf5e
DJ
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; } &&
14215 { ac_try='test -s conftest.$ac_objext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
398ee8f1 14221 ac_cv_have_decl_fprintf=yes
252b5132 14222else
42ecbf5e
DJ
14223 echo "$as_me: failed program was:" >&5
14224sed 's/^/| /' conftest.$ac_ext >&5
14225
398ee8f1 14226ac_cv_have_decl_fprintf=no
252b5132 14227fi
42ecbf5e 14228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14229fi
398ee8f1
SE
14230echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
14231echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
14232if test $ac_cv_have_decl_fprintf = yes; then
252b5132 14233
398ee8f1
SE
14234cat >>confdefs.h <<_ACEOF
14235#define HAVE_DECL_FPRINTF 1
14236_ACEOF
42ecbf5e 14237
398ee8f1
SE
14238
14239else
14240 cat >>confdefs.h <<_ACEOF
14241#define HAVE_DECL_FPRINTF 0
42ecbf5e 14242_ACEOF
252b5132 14243
252b5132 14244
3e321448
L
14245fi
14246echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
14247echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
14248if test "${ac_cv_have_decl_stpcpy+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250else
14251 cat >conftest.$ac_ext <<_ACEOF
14252/* confdefs.h. */
14253_ACEOF
14254cat confdefs.h >>conftest.$ac_ext
14255cat >>conftest.$ac_ext <<_ACEOF
14256/* end confdefs.h. */
14257$ac_includes_default
14258int
14259main ()
14260{
14261#ifndef stpcpy
14262 char *p = (char *) stpcpy;
14263#endif
14264
14265 ;
14266 return 0;
14267}
14268_ACEOF
14269rm -f conftest.$ac_objext
14270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14271 (eval $ac_compile) 2>conftest.er1
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
7357c5b6
AM
14278 { ac_try='test -z "$ac_c_werror_flag"
14279 || test ! -s conftest.err'
3e321448
L
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest.$ac_objext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 ac_cv_have_decl_stpcpy=yes
14292else
14293 echo "$as_me: failed program was:" >&5
14294sed 's/^/| /' conftest.$ac_ext >&5
14295
14296ac_cv_have_decl_stpcpy=no
14297fi
14298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14299fi
14300echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
14301echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
14302if test $ac_cv_have_decl_stpcpy = yes; then
14303
14304cat >>confdefs.h <<_ACEOF
14305#define HAVE_DECL_STPCPY 1
14306_ACEOF
14307
14308
14309else
14310 cat >>confdefs.h <<_ACEOF
14311#define HAVE_DECL_STPCPY 0
14312_ACEOF
14313
14314
398ee8f1
SE
14315fi
14316echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14317echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14318if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 14319 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14320else
42ecbf5e
DJ
14321 cat >conftest.$ac_ext <<_ACEOF
14322/* confdefs.h. */
14323_ACEOF
14324cat confdefs.h >>conftest.$ac_ext
14325cat >>conftest.$ac_ext <<_ACEOF
14326/* end confdefs.h. */
398ee8f1 14327$ac_includes_default
42ecbf5e
DJ
14328int
14329main ()
14330{
398ee8f1
SE
14331#ifndef strstr
14332 char *p = (char *) strstr;
14333#endif
14334
42ecbf5e
DJ
14335 ;
14336 return 0;
14337}
14338_ACEOF
14339rm -f conftest.$ac_objext
14340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14341 (eval $ac_compile) 2>conftest.er1
14342 ac_status=$?
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
7357c5b6
AM
14348 { ac_try='test -z "$ac_c_werror_flag"
14349 || test ! -s conftest.err'
42ecbf5e
DJ
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest.$ac_objext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
398ee8f1 14361 ac_cv_have_decl_strstr=yes
252b5132 14362else
42ecbf5e
DJ
14363 echo "$as_me: failed program was:" >&5
14364sed 's/^/| /' conftest.$ac_ext >&5
14365
398ee8f1 14366ac_cv_have_decl_strstr=no
252b5132 14367fi
42ecbf5e 14368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14369fi
398ee8f1
SE
14370echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14371echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14372if test $ac_cv_have_decl_strstr = yes; then
252b5132 14373
398ee8f1
SE
14374cat >>confdefs.h <<_ACEOF
14375#define HAVE_DECL_STRSTR 1
14376_ACEOF
42ecbf5e 14377
398ee8f1
SE
14378
14379else
14380 cat >>confdefs.h <<_ACEOF
14381#define HAVE_DECL_STRSTR 0
42ecbf5e 14382_ACEOF
252b5132 14383
252b5132 14384
398ee8f1
SE
14385fi
14386echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14387echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
14388if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 14389 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14390else
42ecbf5e
DJ
14391 cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
398ee8f1 14397$ac_includes_default
42ecbf5e
DJ
14398int
14399main ()
14400{
398ee8f1
SE
14401#ifndef sbrk
14402 char *p = (char *) sbrk;
14403#endif
14404
42ecbf5e
DJ
14405 ;
14406 return 0;
14407}
14408_ACEOF
14409rm -f conftest.$ac_objext
14410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
7357c5b6
AM
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
42ecbf5e
DJ
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
398ee8f1 14431 ac_cv_have_decl_sbrk=yes
252b5132 14432else
42ecbf5e
DJ
14433 echo "$as_me: failed program was:" >&5
14434sed 's/^/| /' conftest.$ac_ext >&5
14435
398ee8f1 14436ac_cv_have_decl_sbrk=no
252b5132 14437fi
42ecbf5e 14438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14439fi
398ee8f1
SE
14440echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14441echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
14442if test $ac_cv_have_decl_sbrk = yes; then
252b5132 14443
398ee8f1
SE
14444cat >>confdefs.h <<_ACEOF
14445#define HAVE_DECL_SBRK 1
14446_ACEOF
42ecbf5e 14447
398ee8f1
SE
14448
14449else
14450 cat >>confdefs.h <<_ACEOF
14451#define HAVE_DECL_SBRK 0
42ecbf5e 14452_ACEOF
252b5132 14453
252b5132 14454
398ee8f1
SE
14455fi
14456echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14457echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14458if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 14459 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14460else
42ecbf5e
DJ
14461 cat >conftest.$ac_ext <<_ACEOF
14462/* confdefs.h. */
14463_ACEOF
14464cat confdefs.h >>conftest.$ac_ext
14465cat >>conftest.$ac_ext <<_ACEOF
14466/* end confdefs.h. */
398ee8f1 14467$ac_includes_default
42ecbf5e
DJ
14468int
14469main ()
14470{
398ee8f1
SE
14471#ifndef getenv
14472 char *p = (char *) getenv;
14473#endif
14474
42ecbf5e
DJ
14475 ;
14476 return 0;
14477}
14478_ACEOF
14479rm -f conftest.$ac_objext
14480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481 (eval $ac_compile) 2>conftest.er1
14482 ac_status=$?
14483 grep -v '^ *+' conftest.er1 >conftest.err
14484 rm -f conftest.er1
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } &&
7357c5b6
AM
14488 { ac_try='test -z "$ac_c_werror_flag"
14489 || test ! -s conftest.err'
42ecbf5e
DJ
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try='test -s conftest.$ac_objext'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
398ee8f1 14501 ac_cv_have_decl_getenv=yes
252b5132 14502else
42ecbf5e
DJ
14503 echo "$as_me: failed program was:" >&5
14504sed 's/^/| /' conftest.$ac_ext >&5
14505
398ee8f1 14506ac_cv_have_decl_getenv=no
252b5132 14507fi
42ecbf5e 14508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14509fi
398ee8f1
SE
14510echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14511echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14512if test $ac_cv_have_decl_getenv = yes; then
252b5132 14513
398ee8f1
SE
14514cat >>confdefs.h <<_ACEOF
14515#define HAVE_DECL_GETENV 1
14516_ACEOF
42ecbf5e 14517
398ee8f1
SE
14518
14519else
14520 cat >>confdefs.h <<_ACEOF
14521#define HAVE_DECL_GETENV 0
42ecbf5e 14522_ACEOF
252b5132 14523
252b5132 14524
398ee8f1
SE
14525fi
14526echo "$as_me:$LINENO: checking whether environ is declared" >&5
14527echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
14528if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 14529 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14530else
42ecbf5e
DJ
14531 cat >conftest.$ac_ext <<_ACEOF
14532/* confdefs.h. */
14533_ACEOF
14534cat confdefs.h >>conftest.$ac_ext
14535cat >>conftest.$ac_ext <<_ACEOF
14536/* end confdefs.h. */
398ee8f1 14537$ac_includes_default
42ecbf5e
DJ
14538int
14539main ()
14540{
398ee8f1
SE
14541#ifndef environ
14542 char *p = (char *) environ;
14543#endif
14544
42ecbf5e
DJ
14545 ;
14546 return 0;
14547}
14548_ACEOF
14549rm -f conftest.$ac_objext
14550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14551 (eval $ac_compile) 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
7357c5b6
AM
14558 { ac_try='test -z "$ac_c_werror_flag"
14559 || test ! -s conftest.err'
42ecbf5e
DJ
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest.$ac_objext'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
398ee8f1 14571 ac_cv_have_decl_environ=yes
252b5132 14572else
42ecbf5e
DJ
14573 echo "$as_me: failed program was:" >&5
14574sed 's/^/| /' conftest.$ac_ext >&5
14575
398ee8f1 14576ac_cv_have_decl_environ=no
252b5132 14577fi
42ecbf5e 14578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14579fi
398ee8f1
SE
14580echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
14581echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
14582if test $ac_cv_have_decl_environ = yes; then
252b5132 14583
398ee8f1
SE
14584cat >>confdefs.h <<_ACEOF
14585#define HAVE_DECL_ENVIRON 1
14586_ACEOF
42ecbf5e 14587
398ee8f1
SE
14588
14589else
14590 cat >>confdefs.h <<_ACEOF
14591#define HAVE_DECL_ENVIRON 0
42ecbf5e 14592_ACEOF
252b5132 14593
252b5132 14594
398ee8f1 14595fi
b7d4af3a
JW
14596echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
14597echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
14598if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600else
14601 cat >conftest.$ac_ext <<_ACEOF
14602/* confdefs.h. */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
14606/* end confdefs.h. */
14607$ac_includes_default
14608int
14609main ()
14610{
14611#ifndef getc_unlocked
14612 char *p = (char *) getc_unlocked;
14613#endif
14614
14615 ;
14616 return 0;
14617}
14618_ACEOF
14619rm -f conftest.$ac_objext
14620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621 (eval $ac_compile) 2>conftest.er1
14622 ac_status=$?
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } &&
7357c5b6
AM
14628 { ac_try='test -z "$ac_c_werror_flag"
14629 || test ! -s conftest.err'
b7d4af3a
JW
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; } &&
14635 { ac_try='test -s conftest.$ac_objext'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 ac_cv_have_decl_getc_unlocked=yes
14642else
14643 echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
14645
14646ac_cv_have_decl_getc_unlocked=no
14647fi
14648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14649fi
14650echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
14651echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
14652if test $ac_cv_have_decl_getc_unlocked = yes; then
14653
14654cat >>confdefs.h <<_ACEOF
14655#define HAVE_DECL_GETC_UNLOCKED 1
14656_ACEOF
14657
14658
14659else
14660 cat >>confdefs.h <<_ACEOF
14661#define HAVE_DECL_GETC_UNLOCKED 0
14662_ACEOF
14663
14664
db50c840
EB
14665fi
14666echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14667echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14668if test "${ac_cv_have_decl_snprintf+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14670else
14671 cat >conftest.$ac_ext <<_ACEOF
14672/* confdefs.h. */
14673_ACEOF
14674cat confdefs.h >>conftest.$ac_ext
14675cat >>conftest.$ac_ext <<_ACEOF
14676/* end confdefs.h. */
14677$ac_includes_default
14678int
14679main ()
14680{
14681#ifndef snprintf
14682 char *p = (char *) snprintf;
14683#endif
14684
14685 ;
14686 return 0;
14687}
14688_ACEOF
14689rm -f conftest.$ac_objext
14690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691 (eval $ac_compile) 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
7357c5b6
AM
14698 { ac_try='test -z "$ac_c_werror_flag"
14699 || test ! -s conftest.err'
db50c840
EB
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest.$ac_objext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14708 ac_status=$?
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_cv_have_decl_snprintf=yes
14712else
14713 echo "$as_me: failed program was:" >&5
14714sed 's/^/| /' conftest.$ac_ext >&5
14715
14716ac_cv_have_decl_snprintf=no
14717fi
14718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14719fi
14720echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14721echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14722if test $ac_cv_have_decl_snprintf = yes; then
14723
14724cat >>confdefs.h <<_ACEOF
14725#define HAVE_DECL_SNPRINTF 1
14726_ACEOF
14727
14728
14729else
14730 cat >>confdefs.h <<_ACEOF
14731#define HAVE_DECL_SNPRINTF 0
14732_ACEOF
14733
14734
14735fi
14736echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14737echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14738if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14740else
14741 cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h. */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h. */
14747$ac_includes_default
14748int
14749main ()
14750{
14751#ifndef vsnprintf
14752 char *p = (char *) vsnprintf;
14753#endif
14754
14755 ;
14756 return 0;
14757}
14758_ACEOF
14759rm -f conftest.$ac_objext
14760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14761 (eval $ac_compile) 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
7357c5b6
AM
14768 { ac_try='test -z "$ac_c_werror_flag"
14769 || test ! -s conftest.err'
db50c840
EB
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest.$ac_objext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_cv_have_decl_vsnprintf=yes
14782else
14783 echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5
14785
14786ac_cv_have_decl_vsnprintf=no
14787fi
14788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14789fi
14790echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14791echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14792if test $ac_cv_have_decl_vsnprintf = yes; then
14793
14794cat >>confdefs.h <<_ACEOF
14795#define HAVE_DECL_VSNPRINTF 1
14796_ACEOF
14797
14798
14799else
14800 cat >>confdefs.h <<_ACEOF
14801#define HAVE_DECL_VSNPRINTF 0
14802_ACEOF
14803
14804
b7d4af3a
JW
14805fi
14806
14807
252b5132 14808
1b315056
CS
14809# Link in zlib if we can. This allows us to read compressed debug
14810# sections. This is used only by readelf.c (objdump uses bfd for
14811# reading compressed sections).
14812echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
14813echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
14814if test "${ac_cv_search_zlibVersion+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816else
14817 ac_func_search_save_LIBS=$LIBS
14818ac_cv_search_zlibVersion=no
14819cat >conftest.$ac_ext <<_ACEOF
14820/* confdefs.h. */
14821_ACEOF
14822cat confdefs.h >>conftest.$ac_ext
14823cat >>conftest.$ac_ext <<_ACEOF
14824/* end confdefs.h. */
14825
14826/* Override any gcc2 internal prototype to avoid an error. */
14827#ifdef __cplusplus
14828extern "C"
14829#endif
14830/* We use char because int might match the return type of a gcc2
14831 builtin and then its argument prototype would still apply. */
14832char zlibVersion ();
14833int
14834main ()
14835{
14836zlibVersion ();
14837 ;
14838 return 0;
14839}
14840_ACEOF
14841rm -f conftest.$ac_objext conftest$ac_exeext
14842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14843 (eval $ac_link) 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
7357c5b6
AM
14850 { ac_try='test -z "$ac_c_werror_flag"
14851 || test ! -s conftest.err'
1b315056
CS
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest$ac_exeext'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 ac_cv_search_zlibVersion="none required"
14864else
14865 echo "$as_me: failed program was:" >&5
14866sed 's/^/| /' conftest.$ac_ext >&5
14867
14868fi
14869rm -f conftest.err conftest.$ac_objext \
14870 conftest$ac_exeext conftest.$ac_ext
14871if test "$ac_cv_search_zlibVersion" = no; then
14872 for ac_lib in z; do
14873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14874 cat >conftest.$ac_ext <<_ACEOF
14875/* confdefs.h. */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
14879/* end confdefs.h. */
14880
14881/* Override any gcc2 internal prototype to avoid an error. */
14882#ifdef __cplusplus
14883extern "C"
14884#endif
14885/* We use char because int might match the return type of a gcc2
14886 builtin and then its argument prototype would still apply. */
14887char zlibVersion ();
14888int
14889main ()
14890{
14891zlibVersion ();
14892 ;
14893 return 0;
14894}
14895_ACEOF
14896rm -f conftest.$ac_objext conftest$ac_exeext
14897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14898 (eval $ac_link) 2>conftest.er1
14899 ac_status=$?
14900 grep -v '^ *+' conftest.er1 >conftest.err
14901 rm -f conftest.er1
14902 cat conftest.err >&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } &&
7357c5b6
AM
14905 { ac_try='test -z "$ac_c_werror_flag"
14906 || test ! -s conftest.err'
1b315056
CS
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_cv_search_zlibVersion="-l$ac_lib"
14919break
14920else
14921 echo "$as_me: failed program was:" >&5
14922sed 's/^/| /' conftest.$ac_ext >&5
14923
14924fi
14925rm -f conftest.err conftest.$ac_objext \
14926 conftest$ac_exeext conftest.$ac_ext
14927 done
14928fi
14929LIBS=$ac_func_search_save_LIBS
14930fi
14931echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
14932echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
14933if test "$ac_cv_search_zlibVersion" != no; then
14934 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
14935
14936for ac_header in zlib.h
14937do
14938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14939if eval "test \"\${$as_ac_Header+set}\" = set"; then
14940 echo "$as_me:$LINENO: checking for $ac_header" >&5
14941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14942if eval "test \"\${$as_ac_Header+set}\" = set"; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14944fi
14945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14947else
14948 # Is the header compilable?
14949echo "$as_me:$LINENO: checking $ac_header usability" >&5
14950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14951cat >conftest.$ac_ext <<_ACEOF
14952/* confdefs.h. */
14953_ACEOF
14954cat confdefs.h >>conftest.$ac_ext
14955cat >>conftest.$ac_ext <<_ACEOF
14956/* end confdefs.h. */
14957$ac_includes_default
14958#include <$ac_header>
14959_ACEOF
14960rm -f conftest.$ac_objext
14961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14962 (eval $ac_compile) 2>conftest.er1
14963 ac_status=$?
14964 grep -v '^ *+' conftest.er1 >conftest.err
14965 rm -f conftest.er1
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
7357c5b6
AM
14969 { ac_try='test -z "$ac_c_werror_flag"
14970 || test ! -s conftest.err'
1b315056
CS
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; } &&
14976 { ac_try='test -s conftest.$ac_objext'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 ac_header_compiler=yes
14983else
14984 echo "$as_me: failed program was:" >&5
14985sed 's/^/| /' conftest.$ac_ext >&5
14986
14987ac_header_compiler=no
14988fi
14989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14991echo "${ECHO_T}$ac_header_compiler" >&6
14992
14993# Is the header present?
14994echo "$as_me:$LINENO: checking $ac_header presence" >&5
14995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14996cat >conftest.$ac_ext <<_ACEOF
14997/* confdefs.h. */
14998_ACEOF
14999cat confdefs.h >>conftest.$ac_ext
15000cat >>conftest.$ac_ext <<_ACEOF
15001/* end confdefs.h. */
15002#include <$ac_header>
15003_ACEOF
15004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15006 ac_status=$?
15007 grep -v '^ *+' conftest.er1 >conftest.err
15008 rm -f conftest.er1
15009 cat conftest.err >&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } >/dev/null; then
15012 if test -s conftest.err; then
15013 ac_cpp_err=$ac_c_preproc_warn_flag
15014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15015 else
15016 ac_cpp_err=
15017 fi
15018else
15019 ac_cpp_err=yes
15020fi
15021if test -z "$ac_cpp_err"; then
15022 ac_header_preproc=yes
15023else
15024 echo "$as_me: failed program was:" >&5
15025sed 's/^/| /' conftest.$ac_ext >&5
15026
15027 ac_header_preproc=no
15028fi
15029rm -f conftest.err conftest.$ac_ext
15030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15031echo "${ECHO_T}$ac_header_preproc" >&6
15032
15033# So? What about this header?
15034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15035 yes:no: )
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15040 ac_header_preproc=yes
15041 ;;
15042 no:yes:* )
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15055 (
15056 cat <<\_ASBOX
15057## ------------------------------------------ ##
15058## Report this to the AC_PACKAGE_NAME lists. ##
15059## ------------------------------------------ ##
15060_ASBOX
15061 ) |
15062 sed "s/^/$as_me: WARNING: /" >&2
15063 ;;
15064esac
15065echo "$as_me:$LINENO: checking for $ac_header" >&5
15066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15067if eval "test \"\${$as_ac_Header+set}\" = set"; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069else
15070 eval "$as_ac_Header=\$ac_header_preproc"
15071fi
15072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15074
15075fi
15076if test `eval echo '${'$as_ac_Header'}'` = yes; then
15077 cat >>confdefs.h <<_ACEOF
15078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15079_ACEOF
15080
15081fi
15082
15083done
15084
15085fi
15086
15087
252b5132
RH
15088
15089case "${host}" in
8a965946 15090*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
15091
15092cat >>confdefs.h <<\_ACEOF
252b5132 15093#define USE_BINARY_FOPEN 1
42ecbf5e 15094_ACEOF
252b5132
RH
15095 ;;
15096esac
15097
15098# target-specific stuff:
15099
15100# Canonicalize the secondary target names.
15101if test -n "$enable_targets"; then
15102 for targ in `echo $enable_targets | sed 's/,/ /g'`
15103 do
6d83c84b 15104 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
15105 if test -n "$result"; then
15106 canon_targets="$canon_targets $result"
15107 else
15108 # Allow targets that config.sub doesn't recognize, like "all".
15109 canon_targets="$canon_targets $targ"
15110 fi
15111 done
15112fi
15113
5ba684e2
NC
15114if test "${ac_cv_header_iconv_h+set}" = set; then
15115 echo "$as_me:$LINENO: checking for iconv.h" >&5
15116echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15117if test "${ac_cv_header_iconv_h+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15119fi
15120echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15121echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15122else
15123 # Is the header compilable?
15124echo "$as_me:$LINENO: checking iconv.h usability" >&5
15125echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
15126cat >conftest.$ac_ext <<_ACEOF
15127/* confdefs.h. */
15128_ACEOF
15129cat confdefs.h >>conftest.$ac_ext
15130cat >>conftest.$ac_ext <<_ACEOF
15131/* end confdefs.h. */
15132$ac_includes_default
15133#include <iconv.h>
15134_ACEOF
15135rm -f conftest.$ac_objext
15136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137 (eval $ac_compile) 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
7357c5b6
AM
15144 { ac_try='test -z "$ac_c_werror_flag"
15145 || test ! -s conftest.err'
5ba684e2
NC
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; } &&
15151 { ac_try='test -s conftest.$ac_objext'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15157 ac_header_compiler=yes
15158else
15159 echo "$as_me: failed program was:" >&5
15160sed 's/^/| /' conftest.$ac_ext >&5
15161
15162ac_header_compiler=no
15163fi
15164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15166echo "${ECHO_T}$ac_header_compiler" >&6
15167
15168# Is the header present?
15169echo "$as_me:$LINENO: checking iconv.h presence" >&5
15170echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
15171cat >conftest.$ac_ext <<_ACEOF
15172/* confdefs.h. */
15173_ACEOF
15174cat confdefs.h >>conftest.$ac_ext
15175cat >>conftest.$ac_ext <<_ACEOF
15176/* end confdefs.h. */
15177#include <iconv.h>
15178_ACEOF
15179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15181 ac_status=$?
15182 grep -v '^ *+' conftest.er1 >conftest.err
15183 rm -f conftest.er1
15184 cat conftest.err >&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } >/dev/null; then
15187 if test -s conftest.err; then
15188 ac_cpp_err=$ac_c_preproc_warn_flag
15189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15190 else
15191 ac_cpp_err=
15192 fi
15193else
15194 ac_cpp_err=yes
15195fi
15196if test -z "$ac_cpp_err"; then
15197 ac_header_preproc=yes
15198else
15199 echo "$as_me: failed program was:" >&5
15200sed 's/^/| /' conftest.$ac_ext >&5
15201
15202 ac_header_preproc=no
15203fi
15204rm -f conftest.err conftest.$ac_ext
15205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15206echo "${ECHO_T}$ac_header_preproc" >&6
15207
15208# So? What about this header?
15209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15210 yes:no: )
15211 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
15212echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
15214echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
15215 ac_header_preproc=yes
15216 ;;
15217 no:yes:* )
15218 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
15219echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
15221echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
15222 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
15223echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
15224 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
15225echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
15226 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
15227echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
15229echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
15230 (
15231 cat <<\_ASBOX
15232## ------------------------------------------ ##
15233## Report this to the AC_PACKAGE_NAME lists. ##
15234## ------------------------------------------ ##
15235_ASBOX
15236 ) |
15237 sed "s/^/$as_me: WARNING: /" >&2
15238 ;;
15239esac
15240echo "$as_me:$LINENO: checking for iconv.h" >&5
15241echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15242if test "${ac_cv_header_iconv_h+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244else
15245 ac_cv_header_iconv_h=$ac_header_preproc
15246fi
15247echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15248echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15249
15250fi
15251
15252
15253
15254 if test "X$prefix" = "XNONE"; then
15255 acl_final_prefix="$ac_default_prefix"
15256 else
15257 acl_final_prefix="$prefix"
15258 fi
15259 if test "X$exec_prefix" = "XNONE"; then
15260 acl_final_exec_prefix='${prefix}'
15261 else
15262 acl_final_exec_prefix="$exec_prefix"
15263 fi
15264 acl_save_prefix="$prefix"
15265 prefix="$acl_final_prefix"
15266 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15267 prefix="$acl_save_prefix"
15268
15269
15270# Check whether --with-gnu-ld or --without-gnu-ld was given.
15271if test "${with_gnu_ld+set}" = set; then
15272 withval="$with_gnu_ld"
15273 test "$withval" = no || with_gnu_ld=yes
15274else
15275 with_gnu_ld=no
15276fi;
15277# Prepare PATH_SEPARATOR.
15278# The user is always right.
15279if test "${PATH_SEPARATOR+set}" != set; then
15280 echo "#! /bin/sh" >conf$$.sh
15281 echo "exit 0" >>conf$$.sh
15282 chmod +x conf$$.sh
15283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15284 PATH_SEPARATOR=';'
15285 else
15286 PATH_SEPARATOR=:
15287 fi
15288 rm -f conf$$.sh
15289fi
15290ac_prog=ld
15291if test "$GCC" = yes; then
15292 # Check if gcc -print-prog-name=ld gives a path.
15293 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15294echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15295 case $host in
15296 *-*-mingw*)
15297 # gcc leaves a trailing carriage return which upsets mingw
15298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15299 *)
15300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15301 esac
15302 case $ac_prog in
15303 # Accept absolute paths.
15304 [\\/]* | [A-Za-z]:[\\/]*)
15305 re_direlt='/[^/][^/]*/\.\./'
15306 # Canonicalize the path of ld
15307 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15308 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15309 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15310 done
15311 test -z "$LD" && LD="$ac_prog"
15312 ;;
15313 "")
15314 # If it fails, then pretend we aren't using GCC.
15315 ac_prog=ld
15316 ;;
15317 *)
15318 # If it is relative, then search for the first ld in PATH.
15319 with_gnu_ld=unknown
15320 ;;
15321 esac
15322elif test "$with_gnu_ld" = yes; then
15323 echo "$as_me:$LINENO: checking for GNU ld" >&5
15324echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15325else
15326 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15327echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15328fi
15329if test "${acl_cv_path_LD+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331else
15332 if test -z "$LD"; then
15333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15334 for ac_dir in $PATH; do
15335 test -z "$ac_dir" && ac_dir=.
15336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15337 acl_cv_path_LD="$ac_dir/$ac_prog"
15338 # Check to see if the program is GNU ld. I'd rather use --version,
15339 # but apparently some GNU ld's only accept -v.
15340 # Break only if it was the GNU/non-GNU ld that we prefer.
15341 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15342 test "$with_gnu_ld" != no && break
15343 else
15344 test "$with_gnu_ld" != yes && break
15345 fi
15346 fi
15347 done
15348 IFS="$ac_save_ifs"
15349else
15350 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15351fi
15352fi
15353
15354LD="$acl_cv_path_LD"
15355if test -n "$LD"; then
15356 echo "$as_me:$LINENO: result: $LD" >&5
15357echo "${ECHO_T}$LD" >&6
15358else
15359 echo "$as_me:$LINENO: result: no" >&5
15360echo "${ECHO_T}no" >&6
15361fi
15362test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15363echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15364 { (exit 1); exit 1; }; }
15365echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15366echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15367if test "${acl_cv_prog_gnu_ld+set}" = set; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15369else
15370 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15371if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15372 acl_cv_prog_gnu_ld=yes
15373else
15374 acl_cv_prog_gnu_ld=no
15375fi
15376fi
15377echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15378echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15379with_gnu_ld=$acl_cv_prog_gnu_ld
15380
15381
15382
15383 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15384echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15385if test "${acl_cv_rpath+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387else
15388
15389 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15390 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15391 . ./conftest.sh
15392 rm -f ./conftest.sh
15393 acl_cv_rpath=done
15394
15395fi
15396echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15397echo "${ECHO_T}$acl_cv_rpath" >&6
15398 wl="$acl_cv_wl"
15399 libext="$acl_cv_libext"
15400 shlibext="$acl_cv_shlibext"
15401 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15402 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15403 hardcode_direct="$acl_cv_hardcode_direct"
15404 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15405 # Check whether --enable-rpath or --disable-rpath was given.
15406if test "${enable_rpath+set}" = set; then
15407 enableval="$enable_rpath"
15408 :
15409else
15410 enable_rpath=yes
15411fi;
15412
15413
15414
15415
15416
15417
15418
15419 use_additional=yes
15420
15421 acl_save_prefix="$prefix"
15422 prefix="$acl_final_prefix"
15423 acl_save_exec_prefix="$exec_prefix"
15424 exec_prefix="$acl_final_exec_prefix"
15425
15426 eval additional_includedir=\"$includedir\"
15427 eval additional_libdir=\"$libdir\"
15428
15429 exec_prefix="$acl_save_exec_prefix"
15430 prefix="$acl_save_prefix"
15431
15432
15433# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15434if test "${with_libiconv_prefix+set}" = set; then
15435 withval="$with_libiconv_prefix"
15436
15437 if test "X$withval" = "Xno"; then
15438 use_additional=no
15439 else
15440 if test "X$withval" = "X"; then
15441
15442 acl_save_prefix="$prefix"
15443 prefix="$acl_final_prefix"
15444 acl_save_exec_prefix="$exec_prefix"
15445 exec_prefix="$acl_final_exec_prefix"
15446
15447 eval additional_includedir=\"$includedir\"
15448 eval additional_libdir=\"$libdir\"
15449
15450 exec_prefix="$acl_save_exec_prefix"
15451 prefix="$acl_save_prefix"
15452
15453 else
15454 additional_includedir="$withval/include"
15455 additional_libdir="$withval/lib"
15456 fi
15457 fi
15458
15459fi;
15460 LIBICONV=
15461 LTLIBICONV=
15462 INCICONV=
15463 rpathdirs=
15464 ltrpathdirs=
15465 names_already_handled=
15466 names_next_round='iconv '
15467 while test -n "$names_next_round"; do
15468 names_this_round="$names_next_round"
15469 names_next_round=
15470 for name in $names_this_round; do
15471 already_handled=
15472 for n in $names_already_handled; do
15473 if test "$n" = "$name"; then
15474 already_handled=yes
15475 break
15476 fi
15477 done
15478 if test -z "$already_handled"; then
15479 names_already_handled="$names_already_handled $name"
15480 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15481 eval value=\"\$HAVE_LIB$uppername\"
15482 if test -n "$value"; then
15483 if test "$value" = yes; then
15484 eval value=\"\$LIB$uppername\"
15485 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15486 eval value=\"\$LTLIB$uppername\"
15487 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15488 else
15489 :
15490 fi
15491 else
15492 found_dir=
15493 found_la=
15494 found_so=
15495 found_a=
15496 if test $use_additional = yes; then
15497 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15498 found_dir="$additional_libdir"
15499 found_so="$additional_libdir/lib$name.$shlibext"
15500 if test -f "$additional_libdir/lib$name.la"; then
15501 found_la="$additional_libdir/lib$name.la"
15502 fi
15503 else
15504 if test -f "$additional_libdir/lib$name.$libext"; then
15505 found_dir="$additional_libdir"
15506 found_a="$additional_libdir/lib$name.$libext"
15507 if test -f "$additional_libdir/lib$name.la"; then
15508 found_la="$additional_libdir/lib$name.la"
15509 fi
15510 fi
15511 fi
15512 fi
15513 if test "X$found_dir" = "X"; then
15514 for x in $LDFLAGS $LTLIBICONV; do
15515
15516 acl_save_prefix="$prefix"
15517 prefix="$acl_final_prefix"
15518 acl_save_exec_prefix="$exec_prefix"
15519 exec_prefix="$acl_final_exec_prefix"
15520 eval x=\"$x\"
15521 exec_prefix="$acl_save_exec_prefix"
15522 prefix="$acl_save_prefix"
15523
15524 case "$x" in
15525 -L*)
15526 dir=`echo "X$x" | sed -e 's/^X-L//'`
15527 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15528 found_dir="$dir"
15529 found_so="$dir/lib$name.$shlibext"
15530 if test -f "$dir/lib$name.la"; then
15531 found_la="$dir/lib$name.la"
15532 fi
15533 else
15534 if test -f "$dir/lib$name.$libext"; then
15535 found_dir="$dir"
15536 found_a="$dir/lib$name.$libext"
15537 if test -f "$dir/lib$name.la"; then
15538 found_la="$dir/lib$name.la"
15539 fi
15540 fi
15541 fi
15542 ;;
15543 esac
15544 if test "X$found_dir" != "X"; then
15545 break
15546 fi
15547 done
15548 fi
15549 if test "X$found_dir" != "X"; then
15550 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15551 if test "X$found_so" != "X"; then
15552 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15553 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15554 else
15555 haveit=
15556 for x in $ltrpathdirs; do
15557 if test "X$x" = "X$found_dir"; then
15558 haveit=yes
15559 break
15560 fi
15561 done
15562 if test -z "$haveit"; then
15563 ltrpathdirs="$ltrpathdirs $found_dir"
15564 fi
15565 if test "$hardcode_direct" = yes; then
15566 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15567 else
15568 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15569 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15570 haveit=
15571 for x in $rpathdirs; do
15572 if test "X$x" = "X$found_dir"; then
15573 haveit=yes
15574 break
15575 fi
15576 done
15577 if test -z "$haveit"; then
15578 rpathdirs="$rpathdirs $found_dir"
15579 fi
15580 else
15581 haveit=
15582 for x in $LDFLAGS $LIBICONV; do
15583
15584 acl_save_prefix="$prefix"
15585 prefix="$acl_final_prefix"
15586 acl_save_exec_prefix="$exec_prefix"
15587 exec_prefix="$acl_final_exec_prefix"
15588 eval x=\"$x\"
15589 exec_prefix="$acl_save_exec_prefix"
15590 prefix="$acl_save_prefix"
15591
15592 if test "X$x" = "X-L$found_dir"; then
15593 haveit=yes
15594 break
15595 fi
15596 done
15597 if test -z "$haveit"; then
15598 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15599 fi
15600 if test "$hardcode_minus_L" != no; then
15601 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15602 else
15603 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15604 fi
15605 fi
15606 fi
15607 fi
15608 else
15609 if test "X$found_a" != "X"; then
15610 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15611 else
15612 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15613 fi
15614 fi
15615 additional_includedir=
15616 case "$found_dir" in
15617 */lib | */lib/)
15618 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15619 additional_includedir="$basedir/include"
15620 ;;
15621 esac
15622 if test "X$additional_includedir" != "X"; then
15623 if test "X$additional_includedir" != "X/usr/include"; then
15624 haveit=
15625 if test "X$additional_includedir" = "X/usr/local/include"; then
15626 if test -n "$GCC"; then
15627 case $host_os in
15628 linux*) haveit=yes;;
15629 esac
15630 fi
15631 fi
15632 if test -z "$haveit"; then
15633 for x in $CPPFLAGS $INCICONV; do
15634
15635 acl_save_prefix="$prefix"
15636 prefix="$acl_final_prefix"
15637 acl_save_exec_prefix="$exec_prefix"
15638 exec_prefix="$acl_final_exec_prefix"
15639 eval x=\"$x\"
15640 exec_prefix="$acl_save_exec_prefix"
15641 prefix="$acl_save_prefix"
15642
15643 if test "X$x" = "X-I$additional_includedir"; then
15644 haveit=yes
15645 break
15646 fi
15647 done
15648 if test -z "$haveit"; then
15649 if test -d "$additional_includedir"; then
15650 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15651 fi
15652 fi
15653 fi
15654 fi
15655 fi
15656 if test -n "$found_la"; then
15657 save_libdir="$libdir"
15658 case "$found_la" in
15659 */* | *\\*) . "$found_la" ;;
15660 *) . "./$found_la" ;;
15661 esac
15662 libdir="$save_libdir"
15663 for dep in $dependency_libs; do
15664 case "$dep" in
15665 -L*)
15666 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15667 if test "X$additional_libdir" != "X/usr/lib"; then
15668 haveit=
15669 if test "X$additional_libdir" = "X/usr/local/lib"; then
15670 if test -n "$GCC"; then
15671 case $host_os in
15672 linux*) haveit=yes;;
15673 esac
15674 fi
15675 fi
15676 if test -z "$haveit"; then
15677 haveit=
15678 for x in $LDFLAGS $LIBICONV; do
15679
15680 acl_save_prefix="$prefix"
15681 prefix="$acl_final_prefix"
15682 acl_save_exec_prefix="$exec_prefix"
15683 exec_prefix="$acl_final_exec_prefix"
15684 eval x=\"$x\"
15685 exec_prefix="$acl_save_exec_prefix"
15686 prefix="$acl_save_prefix"
15687
15688 if test "X$x" = "X-L$additional_libdir"; then
15689 haveit=yes
15690 break
15691 fi
15692 done
15693 if test -z "$haveit"; then
15694 if test -d "$additional_libdir"; then
15695 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15696 fi
15697 fi
15698 haveit=
15699 for x in $LDFLAGS $LTLIBICONV; do
15700
15701 acl_save_prefix="$prefix"
15702 prefix="$acl_final_prefix"
15703 acl_save_exec_prefix="$exec_prefix"
15704 exec_prefix="$acl_final_exec_prefix"
15705 eval x=\"$x\"
15706 exec_prefix="$acl_save_exec_prefix"
15707 prefix="$acl_save_prefix"
15708
15709 if test "X$x" = "X-L$additional_libdir"; then
15710 haveit=yes
15711 break
15712 fi
15713 done
15714 if test -z "$haveit"; then
15715 if test -d "$additional_libdir"; then
15716 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15717 fi
15718 fi
15719 fi
15720 fi
15721 ;;
15722 -R*)
15723 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15724 if test "$enable_rpath" != no; then
15725 haveit=
15726 for x in $rpathdirs; do
15727 if test "X$x" = "X$dir"; then
15728 haveit=yes
15729 break
15730 fi
15731 done
15732 if test -z "$haveit"; then
15733 rpathdirs="$rpathdirs $dir"
15734 fi
15735 haveit=
15736 for x in $ltrpathdirs; do
15737 if test "X$x" = "X$dir"; then
15738 haveit=yes
15739 break
15740 fi
15741 done
15742 if test -z "$haveit"; then
15743 ltrpathdirs="$ltrpathdirs $dir"
15744 fi
15745 fi
15746 ;;
15747 -l*)
15748 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15749 ;;
15750 *.la)
15751 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15752 ;;
15753 *)
15754 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15755 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15756 ;;
15757 esac
15758 done
15759 fi
15760 else
15761 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15763 fi
15764 fi
15765 fi
15766 done
15767 done
15768 if test "X$rpathdirs" != "X"; then
15769 if test -n "$hardcode_libdir_separator"; then
15770 alldirs=
15771 for found_dir in $rpathdirs; do
15772 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15773 done
15774 acl_save_libdir="$libdir"
15775 libdir="$alldirs"
15776 eval flag=\"$hardcode_libdir_flag_spec\"
15777 libdir="$acl_save_libdir"
15778 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15779 else
15780 for found_dir in $rpathdirs; do
15781 acl_save_libdir="$libdir"
15782 libdir="$found_dir"
15783 eval flag=\"$hardcode_libdir_flag_spec\"
15784 libdir="$acl_save_libdir"
15785 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15786 done
15787 fi
15788 fi
15789 if test "X$ltrpathdirs" != "X"; then
15790 for found_dir in $ltrpathdirs; do
15791 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15792 done
15793 fi
15794
15795
15796
15797
15798
15799
15800
15801 am_save_CPPFLAGS="$CPPFLAGS"
15802
15803 for element in $INCICONV; do
15804 haveit=
15805 for x in $CPPFLAGS; do
15806
15807 acl_save_prefix="$prefix"
15808 prefix="$acl_final_prefix"
15809 acl_save_exec_prefix="$exec_prefix"
15810 exec_prefix="$acl_final_exec_prefix"
15811 eval x=\"$x\"
15812 exec_prefix="$acl_save_exec_prefix"
15813 prefix="$acl_save_prefix"
15814
15815 if test "X$x" = "X$element"; then
15816 haveit=yes
15817 break
15818 fi
15819 done
15820 if test -z "$haveit"; then
15821 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15822 fi
15823 done
15824
15825
15826 echo "$as_me:$LINENO: checking for iconv" >&5
15827echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15828if test "${am_cv_func_iconv+set}" = set; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15830else
15831
15832 am_cv_func_iconv="no, consider installing GNU libiconv"
15833 am_cv_lib_iconv=no
15834 cat >conftest.$ac_ext <<_ACEOF
15835/* confdefs.h. */
15836_ACEOF
15837cat confdefs.h >>conftest.$ac_ext
15838cat >>conftest.$ac_ext <<_ACEOF
15839/* end confdefs.h. */
15840#include <stdlib.h>
15841#include <iconv.h>
15842int
15843main ()
15844{
15845iconv_t cd = iconv_open("","");
15846 iconv(cd,NULL,NULL,NULL,NULL);
15847 iconv_close(cd);
15848 ;
15849 return 0;
15850}
15851_ACEOF
15852rm -f conftest.$ac_objext conftest$ac_exeext
15853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15854 (eval $ac_link) 2>conftest.er1
15855 ac_status=$?
15856 grep -v '^ *+' conftest.er1 >conftest.err
15857 rm -f conftest.er1
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } &&
7357c5b6
AM
15861 { ac_try='test -z "$ac_c_werror_flag"
15862 || test ! -s conftest.err'
5ba684e2
NC
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; } &&
15868 { ac_try='test -s conftest$ac_exeext'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15871 ac_status=$?
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 am_cv_func_iconv=yes
15875else
15876 echo "$as_me: failed program was:" >&5
15877sed 's/^/| /' conftest.$ac_ext >&5
15878
15879fi
15880rm -f conftest.err conftest.$ac_objext \
15881 conftest$ac_exeext conftest.$ac_ext
15882 if test "$am_cv_func_iconv" != yes; then
15883 am_save_LIBS="$LIBS"
15884 LIBS="$LIBS $LIBICONV"
15885 cat >conftest.$ac_ext <<_ACEOF
15886/* confdefs.h. */
15887_ACEOF
15888cat confdefs.h >>conftest.$ac_ext
15889cat >>conftest.$ac_ext <<_ACEOF
15890/* end confdefs.h. */
15891#include <stdlib.h>
15892#include <iconv.h>
15893int
15894main ()
15895{
15896iconv_t cd = iconv_open("","");
15897 iconv(cd,NULL,NULL,NULL,NULL);
15898 iconv_close(cd);
15899 ;
15900 return 0;
15901}
15902_ACEOF
15903rm -f conftest.$ac_objext conftest$ac_exeext
15904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15905 (eval $ac_link) 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
7357c5b6
AM
15912 { ac_try='test -z "$ac_c_werror_flag"
15913 || test ! -s conftest.err'
5ba684e2
NC
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; } &&
15919 { ac_try='test -s conftest$ac_exeext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 am_cv_lib_iconv=yes
15926 am_cv_func_iconv=yes
15927else
15928 echo "$as_me: failed program was:" >&5
15929sed 's/^/| /' conftest.$ac_ext >&5
15930
15931fi
15932rm -f conftest.err conftest.$ac_objext \
15933 conftest$ac_exeext conftest.$ac_ext
15934 LIBS="$am_save_LIBS"
15935 fi
15936
15937fi
15938echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15939echo "${ECHO_T}$am_cv_func_iconv" >&6
15940 if test "$am_cv_func_iconv" = yes; then
15941
15942cat >>confdefs.h <<\_ACEOF
15943#define HAVE_ICONV 1
15944_ACEOF
15945
15946 fi
15947 if test "$am_cv_lib_iconv" = yes; then
15948 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15949echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
15950 echo "$as_me:$LINENO: result: $LIBICONV" >&5
15951echo "${ECHO_T}$LIBICONV" >&6
15952 else
15953 CPPFLAGS="$am_save_CPPFLAGS"
15954 LIBICONV=
15955 LTLIBICONV=
15956 fi
15957
15958
15959
15960 if test "$am_cv_func_iconv" = yes; then
15961 echo "$as_me:$LINENO: checking for iconv declaration" >&5
15962echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15963 if test "${am_cv_proto_iconv+set}" = set; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15965else
15966
15967 cat >conftest.$ac_ext <<_ACEOF
15968/* confdefs.h. */
15969_ACEOF
15970cat confdefs.h >>conftest.$ac_ext
15971cat >>conftest.$ac_ext <<_ACEOF
15972/* end confdefs.h. */
15973
15974#include <stdlib.h>
15975#include <iconv.h>
15976extern
15977#ifdef __cplusplus
15978"C"
15979#endif
15980#if defined(__STDC__) || defined(__cplusplus)
15981size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15982#else
15983size_t iconv();
15984#endif
15985
15986int
15987main ()
15988{
15989
15990 ;
15991 return 0;
15992}
15993_ACEOF
15994rm -f conftest.$ac_objext
15995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15996 (eval $ac_compile) 2>conftest.er1
15997 ac_status=$?
15998 grep -v '^ *+' conftest.er1 >conftest.err
15999 rm -f conftest.er1
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } &&
7357c5b6
AM
16003 { ac_try='test -z "$ac_c_werror_flag"
16004 || test ! -s conftest.err'
5ba684e2
NC
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; } &&
16010 { ac_try='test -s conftest.$ac_objext'
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016 am_cv_proto_iconv_arg1=""
16017else
16018 echo "$as_me: failed program was:" >&5
16019sed 's/^/| /' conftest.$ac_ext >&5
16020
16021am_cv_proto_iconv_arg1="const"
16022fi
16023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16024 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16025fi
16026
16027 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16028 echo "$as_me:$LINENO: result: ${ac_t:-
16029 }$am_cv_proto_iconv" >&5
16030echo "${ECHO_T}${ac_t:-
16031 }$am_cv_proto_iconv" >&6
16032
16033cat >>confdefs.h <<_ACEOF
16034#define ICONV_CONST $am_cv_proto_iconv_arg1
16035_ACEOF
16036
16037 fi
16038
16039
252b5132
RH
16040all_targets=false
16041BUILD_NLMCONV=
16042NLMCONV_DEFS=
16043BUILD_SRCONV=
16044BUILD_DLLTOOL=
16045DLLTOOL_DEFS=
7aad4c3d 16046DLLTOOL_DEFAULT=
252b5132 16047BUILD_WINDRES=
692ed3e7 16048BUILD_WINDMC=
252b5132
RH
16049BUILD_DLLWRAP=
16050BUILD_MISC=
1d97d67f 16051BUILD_INSTALL_MISC=
8b1e6df3 16052OBJDUMP_DEFS=
252b5132
RH
16053
16054for targ in $target $canon_targets
16055do
16056 if test "x$targ" = "xall"; then
16057 all_targets=true
16058 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16059 BUILD_SRCONV='$(SRCONV_PROG)'
16060 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 16061 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
16062 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16063 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16064 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16065 if test -z "$DLLTOOL_DEFAULT"; then
16066 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16067 fi
16068 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16069 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
16070 else
16071 case $targ in
42ecbf5e 16072 i[3-7]86*-*-netware*)
252b5132
RH
16073 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16074 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
16075 ;;
16076 alpha*-*-netware*)
16077 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16078 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
16079 ;;
16080 powerpc*-*-netware*)
16081 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16082 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
16083 ;;
16084 sparc*-*-netware*)
16085 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16086 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
16087 ;;
16088 esac
16089 case $targ in
16090 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
16091 esac
16092 case $targ in
a8c548cb
NC
16093 arm-epoc-pe*)
16094 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16095 if test -z "$DLLTOOL_DEFAULT"; then
16096 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
16097 fi
a8c548cb
NC
16098 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
16099 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16100 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 16101 ;;
7148cc28
NC
16102 arm-wince-pe* | arm-*-wince)
16103 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16104 if test -z "$DLLTOOL_DEFAULT"; then
16105 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
16106 fi
7148cc28
NC
16107 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
16108 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16109 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
16110 ;;
16111 arm-*-pe*)
252b5132 16112 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16113 if test -z "$DLLTOOL_DEFAULT"; then
16114 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16115 fi
252b5132
RH
16116 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16117 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16118 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16119 ;;
27a710e5 16120 thumb-*-pe*)
252b5132 16121 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16122 if test -z "$DLLTOOL_DEFAULT"; then
16123 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16124 fi
252b5132
RH
16125 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16126 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16127 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16128 ;;
42037fe5 16129 x86_64-*-mingw*)
99ad8390 16130 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16131 if test -z "$DLLTOOL_DEFAULT"; then
16132 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
16133 fi
99ad8390
NC
16134 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
16135 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16136 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
16137 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16138 ;;
80c7c40a 16139 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 16140 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16141 if test -z "$DLLTOOL_DEFAULT"; then
16142 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16143 fi
252b5132
RH
16144 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16145 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16146 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 16147 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 16148 ;;
80c7c40a 16149 i[3-7]86-*-interix)
7a7b06ef 16150 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
16151 if test -z "$DLLTOOL_DEFAULT"; then
16152 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16153 fi
7a7b06ef
ILT
16154 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16155 ;;
f0660b73
NC
16156 powerpc*-aix5.[01])
16157 ;;
16158 powerpc*-aix5.*)
16159 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
16160 ;;
e1d5b1e7 16161 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 16162 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16163 if test -z "$DLLTOOL_DEFAULT"; then
16164 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
16165 fi
252b5132
RH
16166 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
16167 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16168 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 16169 ;;
59678365 16170 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 16171 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 16172 ;;
e1d5b1e7 16173 sh*-*-pe)
8a0e0f38 16174 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16175 if test -z "$DLLTOOL_DEFAULT"; then
16176 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
16177 fi
8a0e0f38
NC
16178 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
16179 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16180 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 16181 ;;
cd14b966 16182 spu-*-*)
1d97d67f 16183 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 16184 ;;
e1d5b1e7 16185 mips*-*-pe)
8a0e0f38 16186 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16187 if test -z "$DLLTOOL_DEFAULT"; then
16188 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
16189 fi
8a0e0f38
NC
16190 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
16191 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16192 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16193 ;;
27a710e5 16194 mcore-*-pe)
661016bb 16195 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16196 if test -z "$DLLTOOL_DEFAULT"; then
16197 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
16198 fi
661016bb
NC
16199 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
16200 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16201 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16202 ;;
27a710e5 16203 mcore-*-elf)
661016bb 16204 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16205 if test -z "$DLLTOOL_DEFAULT"; then
16206 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
16207 fi
661016bb 16208 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 16209 ;;
15ab5209
DB
16210 mep-*)
16211 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
16212 ;;
252b5132
RH
16213 esac
16214 fi
16215done
16216
7aad4c3d
L
16217DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
16218
42ecbf5e
DJ
16219if test "${with_windres+set}" = set; then
16220 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16221fi
16222
692ed3e7
NC
16223if test "${with_windmc+set}" = set; then
16224 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16225fi
16226
16227
42ecbf5e
DJ
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
1d97d67f 16239
42ecbf5e
DJ
16240cat >>confdefs.h <<_ACEOF
16241#define TARGET "${target}"
16242_ACEOF
16243
16244
16245targ=$target
16246. $srcdir/../bfd/config.bfd
16247if test "x$targ_underscore" = "xyes"; then
16248 UNDERSCORE=1
16249else
16250 UNDERSCORE=0
16251fi
16252
16253cat >>confdefs.h <<_ACEOF
16254#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
16255_ACEOF
16256
16257
16258# Emulation
16259for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16260do
16261 # Canonicalize the secondary target names.
16262 result=`$ac_config_sub $targ_alias 2>/dev/null`
16263 if test -n "$result"; then
16264 targ=$result
16265 else
16266 targ=$targ_alias
16267 fi
16268
16269 . ${srcdir}/configure.tgt
16270
16271 EMULATION=$targ_emul
16272 EMULATION_VECTOR=$targ_emul_vector
16273done
16274
16275
16276
16277
108a6f8e
CD
16278# Required for html and install-html
16279
16280
16281
16282
42ecbf5e 16283 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 16284
42ecbf5e
DJ
16285cat >confcache <<\_ACEOF
16286# This file is a shell script that caches the results of configure
16287# tests run on this system so they can be shared between configure
16288# scripts and configure runs, see configure's option --config-cache.
16289# It is not useful on other systems. If it contains results you don't
16290# want to keep, you may remove or edit it.
16291#
16292# config.status only pays attention to the cache file if you give it
16293# the --recheck option to rerun configure.
16294#
16295# `ac_cv_env_foo' variables (set or unset) will be overridden when
16296# loading this file, other *unset* `ac_cv_foo' will be assigned the
16297# following values.
16298
16299_ACEOF
16300
16301# The following way of writing the cache mishandles newlines in values,
16302# but we know of no workaround that is simple, portable, and efficient.
16303# So, don't put newlines in cache variables' values.
16304# Ultrix sh set writes to stderr and can't be redirected directly,
16305# and sets the high bit in the cache file unless we assign to the vars.
16306{
16307 (set) 2>&1 |
16308 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16309 *ac_space=\ *)
16310 # `set' does not quote correctly, so add quotes (double-quote
16311 # substitution turns \\\\ into \\, and sed turns \\ into \).
16312 sed -n \
16313 "s/'/'\\\\''/g;
16314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16315 ;;
16316 *)
16317 # `set' quotes correctly as required by POSIX, so do not add quotes.
16318 sed -n \
16319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16320 ;;
16321 esac;
16322} |
16323 sed '
16324 t clear
16325 : clear
16326 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16327 t end
16328 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16329 : end' >>confcache
16330if diff $cache_file confcache >/dev/null 2>&1; then :; else
16331 if test -w $cache_file; then
16332 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16333 cat confcache >$cache_file
16334 else
16335 echo "not updating unwritable cache $cache_file"
16336 fi
16337fi
16338rm -f confcache
16339
16340test "x$prefix" = xNONE && prefix=$ac_default_prefix
16341# Let make expand exec_prefix.
16342test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16343
16344# VPATH may cause trouble with some makes, so we remove $(srcdir),
16345# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16346# trailing colons and then remove the whole line if VPATH becomes empty
16347# (actually we leave an empty line to preserve line numbers).
16348if test "x$srcdir" = x.; then
16349 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16350s/:*\$(srcdir):*/:/;
16351s/:*\${srcdir}:*/:/;
16352s/:*@srcdir@:*/:/;
16353s/^\([^=]*=[ ]*\):*/\1/;
16354s/:*$//;
16355s/^[^=]*=[ ]*$//;
16356}'
16357fi
16358
16359DEFS=-DHAVE_CONFIG_H
16360
16361ac_libobjs=
16362ac_ltlibobjs=
16363for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16364 # 1. Remove the extension, and $U if already installed.
16365 ac_i=`echo "$ac_i" |
16366 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16367 # 2. Add them.
16368 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16369 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16370done
16371LIBOBJS=$ac_libobjs
16372
16373LTLIBOBJS=$ac_ltlibobjs
16374
16375
16376if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16377 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16378Usually this means the macro was only invoked conditionally." >&5
16379echo "$as_me: error: conditional \"AMDEP\" was never defined.
16380Usually this means the macro was only invoked conditionally." >&2;}
16381 { (exit 1); exit 1; }; }
16382fi
16383if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16384 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16385Usually this means the macro was only invoked conditionally." >&5
16386echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16387Usually this means the macro was only invoked conditionally." >&2;}
16388 { (exit 1); exit 1; }; }
16389fi
16390if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16391 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16392Usually this means the macro was only invoked conditionally." >&5
16393echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16394Usually this means the macro was only invoked conditionally." >&2;}
16395 { (exit 1); exit 1; }; }
16396fi
d5fbea21
DJ
16397if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16398 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
16399Usually this means the macro was only invoked conditionally." >&5
16400echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
16401Usually this means the macro was only invoked conditionally." >&2;}
16402 { (exit 1); exit 1; }; }
16403fi
42ecbf5e
DJ
16404
16405: ${CONFIG_STATUS=./config.status}
16406ac_clean_files_save=$ac_clean_files
16407ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16408{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16409echo "$as_me: creating $CONFIG_STATUS" >&6;}
16410cat >$CONFIG_STATUS <<_ACEOF
16411#! $SHELL
16412# Generated by $as_me.
16413# Run this file to recreate the current configuration.
16414# Compiler output produced by configure, useful for debugging
16415# configure, is in config.log if it exists.
16416
16417debug=false
16418ac_cs_recheck=false
16419ac_cs_silent=false
16420SHELL=\${CONFIG_SHELL-$SHELL}
16421_ACEOF
252b5132 16422
42ecbf5e
DJ
16423cat >>$CONFIG_STATUS <<\_ACEOF
16424## --------------------- ##
16425## M4sh Initialization. ##
16426## --------------------- ##
252b5132 16427
42ecbf5e
DJ
16428# Be Bourne compatible
16429if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16430 emulate sh
16431 NULLCMD=:
16432 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16433 # is contrary to our usage. Disable this feature.
16434 alias -g '${1+"$@"}'='"$@"'
16435elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16436 set -o posix
16437fi
16438DUALCASE=1; export DUALCASE # for MKS sh
252b5132 16439
42ecbf5e
DJ
16440# Support unset when possible.
16441if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16442 as_unset=unset
16443else
16444 as_unset=false
16445fi
252b5132
RH
16446
16447
42ecbf5e
DJ
16448# Work around bugs in pre-3.0 UWIN ksh.
16449$as_unset ENV MAIL MAILPATH
16450PS1='$ '
16451PS2='> '
16452PS4='+ '
252b5132 16453
42ecbf5e
DJ
16454# NLS nuisances.
16455for as_var in \
16456 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16457 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16458 LC_TELEPHONE LC_TIME
16459do
16460 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16461 eval $as_var=C; export $as_var
16462 else
16463 $as_unset $as_var
16464 fi
16465done
252b5132 16466
42ecbf5e
DJ
16467# Required to use basename.
16468if expr a : '\(a\)' >/dev/null 2>&1; then
16469 as_expr=expr
16470else
16471 as_expr=false
16472fi
252b5132 16473
42ecbf5e
DJ
16474if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16475 as_basename=basename
16476else
16477 as_basename=false
16478fi
252b5132 16479
8b1e6df3 16480
42ecbf5e
DJ
16481# Name of the executable.
16482as_me=`$as_basename "$0" ||
16483$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16484 X"$0" : 'X\(//\)$' \| \
16485 X"$0" : 'X\(/\)$' \| \
16486 . : '\(.\)' 2>/dev/null ||
16487echo X/"$0" |
16488 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16489 /^X\/\(\/\/\)$/{ s//\1/; q; }
16490 /^X\/\(\/\).*/{ s//\1/; q; }
16491 s/.*/./; q'`
0218d1e4 16492
252b5132 16493
42ecbf5e
DJ
16494# PATH needs CR, and LINENO needs CR and PATH.
16495# Avoid depending upon Character Ranges.
16496as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16497as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16498as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16499as_cr_digits='0123456789'
16500as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 16501
42ecbf5e
DJ
16502# The user is always right.
16503if test "${PATH_SEPARATOR+set}" != set; then
16504 echo "#! /bin/sh" >conf$$.sh
16505 echo "exit 0" >>conf$$.sh
16506 chmod +x conf$$.sh
16507 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16508 PATH_SEPARATOR=';'
16509 else
16510 PATH_SEPARATOR=:
16511 fi
16512 rm -f conf$$.sh
252b5132
RH
16513fi
16514
16515
42ecbf5e
DJ
16516 as_lineno_1=$LINENO
16517 as_lineno_2=$LINENO
16518 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16519 test "x$as_lineno_1" != "x$as_lineno_2" &&
16520 test "x$as_lineno_3" = "x$as_lineno_2" || {
16521 # Find who we are. Look in the path if we contain no path at all
16522 # relative or not.
16523 case $0 in
16524 *[\\/]* ) as_myself=$0 ;;
16525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16526for as_dir in $PATH
eb1e0e80 16527do
42ecbf5e
DJ
16528 IFS=$as_save_IFS
16529 test -z "$as_dir" && as_dir=.
16530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16531done
eb1e0e80 16532
42ecbf5e
DJ
16533 ;;
16534 esac
16535 # We did not find ourselves, most probably we were run as `sh COMMAND'
16536 # in which case we are not to be found in the path.
16537 if test "x$as_myself" = x; then
16538 as_myself=$0
16539 fi
16540 if test ! -f "$as_myself"; then
16541 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16542echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16543 { (exit 1); exit 1; }; }
16544 fi
16545 case $CONFIG_SHELL in
16546 '')
16547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16548for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16549do
16550 IFS=$as_save_IFS
16551 test -z "$as_dir" && as_dir=.
16552 for as_base in sh bash ksh sh5; do
16553 case $as_dir in
16554 /*)
16555 if ("$as_dir/$as_base" -c '
16556 as_lineno_1=$LINENO
16557 as_lineno_2=$LINENO
16558 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16559 test "x$as_lineno_1" != "x$as_lineno_2" &&
16560 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16561 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16562 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16563 CONFIG_SHELL=$as_dir/$as_base
16564 export CONFIG_SHELL
16565 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16566 fi;;
16567 esac
16568 done
eb1e0e80 16569done
42ecbf5e
DJ
16570;;
16571 esac
eb1e0e80 16572
42ecbf5e
DJ
16573 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16574 # uniformly replaced by the line number. The first 'sed' inserts a
16575 # line-number line before each line; the second 'sed' does the real
16576 # work. The second script uses 'N' to pair each line-number line
16577 # with the numbered line, and appends trailing '-' during
16578 # substitution so that $LINENO is not a special case at line end.
16579 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16580 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16581 sed '=' <$as_myself |
16582 sed '
16583 N
16584 s,$,-,
16585 : loop
16586 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16587 t loop
16588 s,-$,,
16589 s,^['$as_cr_digits']*\n,,
16590 ' >$as_me.lineno &&
16591 chmod +x $as_me.lineno ||
16592 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16593echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16594 { (exit 1); exit 1; }; }
16595
16596 # Don't try to exec as it changes $[0], causing all sort of problems
16597 # (the dirname of $[0] is not the place where we might find the
16598 # original and so on. Autoconf is especially sensible to this).
16599 . ./$as_me.lineno
16600 # Exit status is that of the last command.
16601 exit
16602}
eb1e0e80
NC
16603
16604
42ecbf5e
DJ
16605case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16606 *c*,-n*) ECHO_N= ECHO_C='
16607' ECHO_T=' ' ;;
16608 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16609 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16610esac
eb1e0e80 16611
42ecbf5e
DJ
16612if expr a : '\(a\)' >/dev/null 2>&1; then
16613 as_expr=expr
d15b04bd 16614else
42ecbf5e
DJ
16615 as_expr=false
16616fi
16617
16618rm -f conf$$ conf$$.exe conf$$.file
16619echo >conf$$.file
16620if ln -s conf$$.file conf$$ 2>/dev/null; then
16621 # We could just check for DJGPP; but this test a) works b) is more generic
16622 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16623 if test -f conf$$.exe; then
16624 # Don't use ln at all; we don't have any links
16625 as_ln_s='cp -p'
252b5132 16626 else
42ecbf5e 16627 as_ln_s='ln -s'
252b5132 16628 fi
42ecbf5e
DJ
16629elif ln conf$$.file conf$$ 2>/dev/null; then
16630 as_ln_s=ln
16631else
16632 as_ln_s='cp -p'
252b5132 16633fi
42ecbf5e 16634rm -f conf$$ conf$$.exe conf$$.file
252b5132 16635
42ecbf5e
DJ
16636if mkdir -p . 2>/dev/null; then
16637 as_mkdir_p=:
16638else
16639 test -d ./-p && rmdir ./-p
16640 as_mkdir_p=false
16641fi
d15b04bd 16642
42ecbf5e 16643as_executable_p="test -f"
252b5132 16644
42ecbf5e
DJ
16645# Sed expression to map a string onto a valid CPP name.
16646as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16647
16648# Sed expression to map a string onto a valid variable name.
16649as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16650
16651
16652# IFS
16653# We need space, tab and new line, in precisely that order.
16654as_nl='
16655'
16656IFS=" $as_nl"
16657
16658# CDPATH.
16659$as_unset CDPATH
16660
16661exec 6>&1
16662
16663# Open the log real soon, to keep \$[0] and so on meaningful, and to
16664# report actual input values of CONFIG_FILES etc. instead of their
16665# values after options handling. Logging --version etc. is OK.
16666exec 5>>config.log
16667{
16668 echo
16669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16670## Running $as_me. ##
16671_ASBOX
16672} >&5
16673cat >&5 <<_CSEOF
16674
16675This file was extended by $as_me, which was
16676generated by GNU Autoconf 2.59. Invocation command line was
16677
16678 CONFIG_FILES = $CONFIG_FILES
16679 CONFIG_HEADERS = $CONFIG_HEADERS
16680 CONFIG_LINKS = $CONFIG_LINKS
16681 CONFIG_COMMANDS = $CONFIG_COMMANDS
16682 $ $0 $@
16683
16684_CSEOF
16685echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16686echo >&5
16687_ACEOF
16688
16689# Files that config.status was made for.
16690if test -n "$ac_config_files"; then
16691 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
16692fi
16693
42ecbf5e
DJ
16694if test -n "$ac_config_headers"; then
16695 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16696fi
e5a52504 16697
42ecbf5e
DJ
16698if test -n "$ac_config_links"; then
16699 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16700fi
e5a52504 16701
42ecbf5e
DJ
16702if test -n "$ac_config_commands"; then
16703 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16704fi
d15b04bd 16705
42ecbf5e
DJ
16706cat >>$CONFIG_STATUS <<\_ACEOF
16707
16708ac_cs_usage="\
16709\`$as_me' instantiates files from templates according to the
16710current configuration.
16711
16712Usage: $0 [OPTIONS] [FILE]...
16713
16714 -h, --help print this help, then exit
16715 -V, --version print version number, then exit
16716 -q, --quiet do not print progress messages
16717 -d, --debug don't remove temporary files
16718 --recheck update $as_me by reconfiguring in the same conditions
16719 --file=FILE[:TEMPLATE]
16720 instantiate the configuration file FILE
16721 --header=FILE[:TEMPLATE]
16722 instantiate the configuration header FILE
16723
16724Configuration files:
16725$config_files
16726
16727Configuration headers:
16728$config_headers
16729
16730Configuration commands:
16731$config_commands
16732
16733Report bugs to <bug-autoconf@gnu.org>."
16734_ACEOF
16735
16736cat >>$CONFIG_STATUS <<_ACEOF
16737ac_cs_version="\\
16738config.status
16739configured by $0, generated by GNU Autoconf 2.59,
16740 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16741
16742Copyright (C) 2003 Free Software Foundation, Inc.
16743This config.status script is free software; the Free Software Foundation
16744gives unlimited permission to copy, distribute and modify it."
16745srcdir=$srcdir
16746INSTALL="$INSTALL"
16747_ACEOF
16748
16749cat >>$CONFIG_STATUS <<\_ACEOF
16750# If no file are specified by the user, then we need to provide default
16751# value. By we need to know if files were specified by the user.
16752ac_need_defaults=:
16753while test $# != 0
16754do
16755 case $1 in
16756 --*=*)
16757 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16758 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16759 ac_shift=:
16760 ;;
16761 -*)
16762 ac_option=$1
16763 ac_optarg=$2
16764 ac_shift=shift
16765 ;;
16766 *) # This is not an option, so the user has probably given explicit
16767 # arguments.
16768 ac_option=$1
16769 ac_need_defaults=false;;
16770 esac
16771
16772 case $ac_option in
16773 # Handling of the options.
16774_ACEOF
16775cat >>$CONFIG_STATUS <<\_ACEOF
16776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16777 ac_cs_recheck=: ;;
16778 --version | --vers* | -V )
16779 echo "$ac_cs_version"; exit 0 ;;
16780 --he | --h)
16781 # Conflict between --help and --header
16782 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16783Try \`$0 --help' for more information." >&5
16784echo "$as_me: error: ambiguous option: $1
16785Try \`$0 --help' for more information." >&2;}
16786 { (exit 1); exit 1; }; };;
16787 --help | --hel | -h )
16788 echo "$ac_cs_usage"; exit 0 ;;
16789 --debug | --d* | -d )
16790 debug=: ;;
16791 --file | --fil | --fi | --f )
16792 $ac_shift
16793 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16794 ac_need_defaults=false;;
16795 --header | --heade | --head | --hea )
16796 $ac_shift
16797 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16798 ac_need_defaults=false;;
16799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16801 ac_cs_silent=: ;;
16802
16803 # This is an error.
16804 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16805Try \`$0 --help' for more information." >&5
16806echo "$as_me: error: unrecognized option: $1
16807Try \`$0 --help' for more information." >&2;}
16808 { (exit 1); exit 1; }; } ;;
16809
16810 *) ac_config_targets="$ac_config_targets $1" ;;
16811
16812 esac
16813 shift
16814done
16815
16816ac_configure_extra_args=
16817
16818if $ac_cs_silent; then
16819 exec 6>/dev/null
16820 ac_configure_extra_args="$ac_configure_extra_args --silent"
16821fi
16822
16823_ACEOF
16824cat >>$CONFIG_STATUS <<_ACEOF
16825if \$ac_cs_recheck; then
16826 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16827 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16828fi
16829
16830_ACEOF
16831
16832cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 16833#
42ecbf5e 16834# INIT-COMMANDS section.
d15b04bd 16835#
e5a52504 16836
42ecbf5e 16837AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16838
16839
16840# The HP-UX ksh and POSIX shell print the target directory to stdout
16841# if CDPATH is set.
16842(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16843
16844sed_quote_subst='$sed_quote_subst'
16845double_quote_subst='$double_quote_subst'
16846delay_variable_subst='$delay_variable_subst'
16847macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16848macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16849enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16850enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16851pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16852enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16853host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16854host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16855host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16856build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16857build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16858build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16859SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16860Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16861GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16862EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16863FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16864LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16865NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16866LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16867max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16868ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16869exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16870lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16871lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16872lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16873reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16874reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 16875OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16876deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16877file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16878AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16879AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16880STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16881RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16882old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16883old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16884old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16885CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16886CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16887compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16888GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16889lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16890lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16891lt_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"`'
718a6fd8 16892lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16893objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16894SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16895ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16896MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16897lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16898lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16899lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16900lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16901lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16902need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
16903DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16904NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16905LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16906OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16907OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16908libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16909shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16910extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16911archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16912enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16913export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16914whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16915compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16916old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16917old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16918archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16919archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16920module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16921module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16922with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16923allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16924no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16925hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16926hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16927hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16928hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16929hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16930hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16931hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16932hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16933inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16934link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16935fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16936always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16937export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16938exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16939include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16940prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16941file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16942variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16943need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16944need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16945version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16946runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16947shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16948shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16949libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16950library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16951soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16952postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16953postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16954finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16955finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16956hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16957sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16958sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16959hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16960enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16961enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16962enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16963old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16964striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16965
16966LTCC='$LTCC'
16967LTCFLAGS='$LTCFLAGS'
16968compiler='$compiler_DEFAULT'
16969
16970# Quote evaled strings.
16971for var in SED \
16972GREP \
16973EGREP \
16974FGREP \
16975LD \
16976NM \
16977LN_S \
16978lt_SP2NL \
16979lt_NL2SP \
16980reload_flag \
718a6fd8 16981OBJDUMP \
d7040cdb
SE
16982deplibs_check_method \
16983file_magic_cmd \
16984AR \
16985AR_FLAGS \
16986STRIP \
16987RANLIB \
16988CC \
16989CFLAGS \
16990compiler \
16991lt_cv_sys_global_symbol_pipe \
16992lt_cv_sys_global_symbol_to_cdecl \
16993lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 16994lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
16995SHELL \
16996ECHO \
16997lt_prog_compiler_no_builtin_flag \
16998lt_prog_compiler_wl \
16999lt_prog_compiler_pic \
17000lt_prog_compiler_static \
17001lt_cv_prog_compiler_c_o \
17002need_locks \
718a6fd8
SE
17003DSYMUTIL \
17004NMEDIT \
17005LIPO \
17006OTOOL \
17007OTOOL64 \
d7040cdb
SE
17008shrext_cmds \
17009export_dynamic_flag_spec \
17010whole_archive_flag_spec \
17011compiler_needs_object \
17012with_gnu_ld \
17013allow_undefined_flag \
17014no_undefined_flag \
17015hardcode_libdir_flag_spec \
17016hardcode_libdir_flag_spec_ld \
17017hardcode_libdir_separator \
17018fix_srcfile_path \
17019exclude_expsyms \
17020include_expsyms \
17021file_list_spec \
17022variables_saved_for_relink \
17023libname_spec \
17024library_names_spec \
17025soname_spec \
17026finish_eval \
17027old_striplib \
17028striplib; do
17029 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17030 *[\\\\\\\`\\"\\\$]*)
17031 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17032 ;;
17033 *)
17034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17035 ;;
17036 esac
17037done
17038
17039# Double-quote double-evaled strings.
17040for var in reload_cmds \
17041old_postinstall_cmds \
17042old_postuninstall_cmds \
17043old_archive_cmds \
17044extract_expsyms_cmds \
17045old_archive_from_new_cmds \
17046old_archive_from_expsyms_cmds \
17047archive_cmds \
17048archive_expsym_cmds \
17049module_cmds \
17050module_expsym_cmds \
17051export_symbols_cmds \
17052prelink_cmds \
17053postinstall_cmds \
17054postuninstall_cmds \
17055finish_cmds \
17056sys_lib_search_path_spec \
17057sys_lib_dlsearch_path_spec; do
17058 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17059 *[\\\\\\\`\\"\\\$]*)
17060 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17061 ;;
17062 *)
17063 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17064 ;;
17065 esac
17066done
17067
17068# Fix-up fallback echo if it was mangled by the above quoting rules.
17069case \$lt_ECHO in
17070*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17071 ;;
17072esac
17073
17074ac_aux_dir='$ac_aux_dir'
17075xsi_shell='$xsi_shell'
17076lt_shell_append='$lt_shell_append'
17077
17078# See if we are running on zsh, and set the options which allow our
17079# commands through without removal of \ escapes INIT.
17080if test -n "\${ZSH_VERSION+set}" ; then
17081 setopt NO_GLOB_SUBST
17082fi
17083
17084
17085 PACKAGE='$PACKAGE'
17086 VERSION='$VERSION'
17087 TIMESTAMP='$TIMESTAMP'
17088 RM='$RM'
17089 ofile='$ofile'
17090
17091
17092
20e95c23
DJ
17093# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17094 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17095 # from automake.
17096 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17097 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17098 LINGUAS="${LINGUAS-%UNSET%}"
17099
42ecbf5e
DJ
17100
17101_ACEOF
17102
17103
17104
17105cat >>$CONFIG_STATUS <<\_ACEOF
17106for ac_config_target in $ac_config_targets
252b5132 17107do
42ecbf5e
DJ
17108 case "$ac_config_target" in
17109 # Handling of arguments.
17110 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17111 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17112 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17113 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 17114 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 17115 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
17116 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17117 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17118echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17119 { (exit 1); exit 1; }; };;
d15b04bd 17120 esac
252b5132
RH
17121done
17122
42ecbf5e
DJ
17123# If the user did not use the arguments to specify the items to instantiate,
17124# then the envvar interface is used. Set only those that are not.
17125# We use the long form for the default assignment because of an extremely
17126# bizarre bug on SunOS 4.1.3.
17127if $ac_need_defaults; then
17128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17131fi
17132
17133# Have a temporary directory for convenience. Make it in the build tree
17134# simply because there is no reason to put it here, and in addition,
17135# creating and moving files from /tmp can sometimes cause problems.
17136# Create a temporary directory, and hook for its removal unless debugging.
17137$debug ||
17138{
17139 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17140 trap '{ (exit 1); exit 1; }' 1 2 13 15
17141}
252b5132 17142
42ecbf5e 17143# Create a (secure) tmp directory for tmp files.
e5a52504 17144
42ecbf5e
DJ
17145{
17146 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17147 test -n "$tmp" && test -d "$tmp"
17148} ||
17149{
17150 tmp=./confstat$$-$RANDOM
17151 (umask 077 && mkdir $tmp)
17152} ||
17153{
17154 echo "$me: cannot create a temporary directory in ." >&2
17155 { (exit 1); exit 1; }
17156}
17157
17158_ACEOF
17159
17160cat >>$CONFIG_STATUS <<_ACEOF
17161
17162#
17163# CONFIG_FILES section.
17164#
e5a52504 17165
42ecbf5e
DJ
17166# No need to generate the scripts if there are no CONFIG_FILES.
17167# This happens for instance when ./config.status config.h
17168if test -n "\$CONFIG_FILES"; then
17169 # Protect against being on the right side of a sed subst in config.status.
17170 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17171 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17172s,@SHELL@,$SHELL,;t t
17173s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17174s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17175s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17176s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17177s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17178s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17179s,@exec_prefix@,$exec_prefix,;t t
17180s,@prefix@,$prefix,;t t
17181s,@program_transform_name@,$program_transform_name,;t t
17182s,@bindir@,$bindir,;t t
17183s,@sbindir@,$sbindir,;t t
17184s,@libexecdir@,$libexecdir,;t t
17185s,@datadir@,$datadir,;t t
17186s,@sysconfdir@,$sysconfdir,;t t
17187s,@sharedstatedir@,$sharedstatedir,;t t
17188s,@localstatedir@,$localstatedir,;t t
17189s,@libdir@,$libdir,;t t
17190s,@includedir@,$includedir,;t t
17191s,@oldincludedir@,$oldincludedir,;t t
17192s,@infodir@,$infodir,;t t
17193s,@mandir@,$mandir,;t t
17194s,@build_alias@,$build_alias,;t t
17195s,@host_alias@,$host_alias,;t t
17196s,@target_alias@,$target_alias,;t t
17197s,@DEFS@,$DEFS,;t t
17198s,@ECHO_C@,$ECHO_C,;t t
17199s,@ECHO_N@,$ECHO_N,;t t
17200s,@ECHO_T@,$ECHO_T,;t t
17201s,@LIBS@,$LIBS,;t t
17202s,@build@,$build,;t t
17203s,@build_cpu@,$build_cpu,;t t
17204s,@build_vendor@,$build_vendor,;t t
17205s,@build_os@,$build_os,;t t
17206s,@host@,$host,;t t
17207s,@host_cpu@,$host_cpu,;t t
17208s,@host_vendor@,$host_vendor,;t t
17209s,@host_os@,$host_os,;t t
17210s,@target@,$target,;t t
17211s,@target_cpu@,$target_cpu,;t t
17212s,@target_vendor@,$target_vendor,;t t
17213s,@target_os@,$target_os,;t t
17214s,@CC@,$CC,;t t
17215s,@CFLAGS@,$CFLAGS,;t t
17216s,@LDFLAGS@,$LDFLAGS,;t t
17217s,@CPPFLAGS@,$CPPFLAGS,;t t
17218s,@ac_ct_CC@,$ac_ct_CC,;t t
17219s,@EXEEXT@,$EXEEXT,;t t
17220s,@OBJEXT@,$OBJEXT,;t t
17221s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17222s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17223s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17224s,@CYGPATH_W@,$CYGPATH_W,;t t
17225s,@PACKAGE@,$PACKAGE,;t t
17226s,@VERSION@,$VERSION,;t t
17227s,@ACLOCAL@,$ACLOCAL,;t t
17228s,@AUTOCONF@,$AUTOCONF,;t t
17229s,@AUTOMAKE@,$AUTOMAKE,;t t
17230s,@AUTOHEADER@,$AUTOHEADER,;t t
17231s,@MAKEINFO@,$MAKEINFO,;t t
17232s,@install_sh@,$install_sh,;t t
17233s,@STRIP@,$STRIP,;t t
17234s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17235s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17236s,@mkdir_p@,$mkdir_p,;t t
17237s,@AWK@,$AWK,;t t
17238s,@SET_MAKE@,$SET_MAKE,;t t
17239s,@am__leading_dot@,$am__leading_dot,;t t
17240s,@AMTAR@,$AMTAR,;t t
17241s,@am__tar@,$am__tar,;t t
17242s,@am__untar@,$am__untar,;t t
17243s,@DEPDIR@,$DEPDIR,;t t
17244s,@am__include@,$am__include,;t t
17245s,@am__quote@,$am__quote,;t t
17246s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17247s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17248s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17249s,@CCDEPMODE@,$CCDEPMODE,;t t
17250s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17251s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7357c5b6
AM
17252s,@CPP@,$CPP,;t t
17253s,@EGREP@,$EGREP,;t t
d7040cdb
SE
17254s,@LIBTOOL@,$LIBTOOL,;t t
17255s,@SED@,$SED,;t t
d7040cdb
SE
17256s,@FGREP@,$FGREP,;t t
17257s,@GREP@,$GREP,;t t
17258s,@LD@,$LD,;t t
17259s,@DUMPBIN@,$DUMPBIN,;t t
17260s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17261s,@NM@,$NM,;t t
42ecbf5e 17262s,@LN_S@,$LN_S,;t t
718a6fd8
SE
17263s,@OBJDUMP@,$OBJDUMP,;t t
17264s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb
SE
17265s,@AR@,$AR,;t t
17266s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
17267s,@RANLIB@,$RANLIB,;t t
17268s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 17269s,@lt_ECHO@,$lt_ECHO,;t t
718a6fd8
SE
17270s,@DSYMUTIL@,$DSYMUTIL,;t t
17271s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17272s,@NMEDIT@,$NMEDIT,;t t
17273s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17274s,@LIPO@,$LIPO,;t t
17275s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17276s,@OTOOL@,$OTOOL,;t t
17277s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17278s,@OTOOL64@,$OTOOL64,;t t
17279s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
42ecbf5e
DJ
17280s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
17281s,@NO_WERROR@,$NO_WERROR,;t t
17282s,@YACC@,$YACC,;t t
17283s,@LEX@,$LEX,;t t
17284s,@LEXLIB@,$LEXLIB,;t t
17285s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 17286s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
17287s,@LIBINTL@,$LIBINTL,;t t
17288s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17289s,@INCINTL@,$INCINTL,;t t
42ecbf5e 17290s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
17291s,@GMSGFMT@,$GMSGFMT,;t t
17292s,@POSUB@,$POSUB,;t t
42ecbf5e 17293s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 17294s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 17295s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
17296s,@GENCAT@,$GENCAT,;t t
17297s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 17298s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
17299s,@MSGFMT@,$MSGFMT,;t t
17300s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
17301s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17302s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17303s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
17304s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
17305s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e 17306s,@HDEFINES@,$HDEFINES,;t t
42ecbf5e
DJ
17307s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17308s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
17309s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23 17310s,@ALLOCA@,$ALLOCA,;t t
5ba684e2
NC
17311s,@LIBICONV@,$LIBICONV,;t t
17312s,@LTLIBICONV@,$LTLIBICONV,;t t
42ecbf5e
DJ
17313s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
17314s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
17315s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
17316s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
17317s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
17318s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
692ed3e7 17319s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
42ecbf5e
DJ
17320s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
17321s,@BUILD_MISC@,$BUILD_MISC,;t t
1d97d67f 17322s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
42ecbf5e
DJ
17323s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
17324s,@EMULATION@,$EMULATION,;t t
17325s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
17326s,@datarootdir@,$datarootdir,;t t
17327s,@docdir@,$docdir,;t t
17328s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
17329s,@LIBOBJS@,$LIBOBJS,;t t
17330s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 17331CEOF
252b5132 17332
42ecbf5e
DJ
17333_ACEOF
17334
17335 cat >>$CONFIG_STATUS <<\_ACEOF
17336 # Split the substitutions into bite-sized pieces for seds with
17337 # small command number limits, like on Digital OSF/1 and HP-UX.
17338 ac_max_sed_lines=48
17339 ac_sed_frag=1 # Number of current file.
17340 ac_beg=1 # First line for current file.
17341 ac_end=$ac_max_sed_lines # Line after last line for current file.
17342 ac_more_lines=:
17343 ac_sed_cmds=
17344 while $ac_more_lines; do
17345 if test $ac_beg -gt 1; then
17346 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17347 else
17348 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17349 fi
17350 if test ! -s $tmp/subs.frag; then
17351 ac_more_lines=false
d15b04bd 17352 else
42ecbf5e
DJ
17353 # The purpose of the label and of the branching condition is to
17354 # speed up the sed processing (if there are no `@' at all, there
17355 # is no need to browse any of the substitutions).
17356 # These are the two extra sed commands mentioned above.
17357 (echo ':t
17358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17359 if test -z "$ac_sed_cmds"; then
17360 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17361 else
17362 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17363 fi
17364 ac_sed_frag=`expr $ac_sed_frag + 1`
17365 ac_beg=$ac_end
17366 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 17367 fi
42ecbf5e
DJ
17368 done
17369 if test -z "$ac_sed_cmds"; then
17370 ac_sed_cmds=cat
252b5132 17371 fi
42ecbf5e 17372fi # test -n "$CONFIG_FILES"
252b5132 17373
42ecbf5e
DJ
17374_ACEOF
17375cat >>$CONFIG_STATUS <<\_ACEOF
17376for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 17377 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
17378 case $ac_file in
17379 - | *:- | *:-:* ) # input from stdin
17380 cat >$tmp/stdin
17381 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17382 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17383 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17384 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17385 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
17386 esac
17387
42ecbf5e
DJ
17388 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17389 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17390$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17391 X"$ac_file" : 'X\(//\)[^/]' \| \
17392 X"$ac_file" : 'X\(//\)$' \| \
17393 X"$ac_file" : 'X\(/\)' \| \
17394 . : '\(.\)' 2>/dev/null ||
17395echo X"$ac_file" |
17396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17398 /^X\(\/\/\)$/{ s//\1/; q; }
17399 /^X\(\/\).*/{ s//\1/; q; }
17400 s/.*/./; q'`
17401 { if $as_mkdir_p; then
17402 mkdir -p "$ac_dir"
d15b04bd 17403 else
42ecbf5e
DJ
17404 as_dir="$ac_dir"
17405 as_dirs=
17406 while test ! -d "$as_dir"; do
17407 as_dirs="$as_dir $as_dirs"
17408 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17409$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17410 X"$as_dir" : 'X\(//\)[^/]' \| \
17411 X"$as_dir" : 'X\(//\)$' \| \
17412 X"$as_dir" : 'X\(/\)' \| \
17413 . : '\(.\)' 2>/dev/null ||
17414echo X"$as_dir" |
17415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17417 /^X\(\/\/\)$/{ s//\1/; q; }
17418 /^X\(\/\).*/{ s//\1/; q; }
17419 s/.*/./; q'`
17420 done
17421 test ! -n "$as_dirs" || mkdir $as_dirs
17422 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17423echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17424 { (exit 1); exit 1; }; }; }
17425
17426 ac_builddir=.
e5a52504 17427
42ecbf5e
DJ
17428if test "$ac_dir" != .; then
17429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17430 # A "../" for each directory in $ac_dir_suffix.
17431 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17432else
17433 ac_dir_suffix= ac_top_builddir=
17434fi
17435
17436case $srcdir in
17437 .) # No --srcdir option. We are building in place.
17438 ac_srcdir=.
17439 if test -z "$ac_top_builddir"; then
17440 ac_top_srcdir=.
17441 else
17442 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17443 fi ;;
17444 [\\/]* | ?:[\\/]* ) # Absolute path.
17445 ac_srcdir=$srcdir$ac_dir_suffix;
17446 ac_top_srcdir=$srcdir ;;
e5a52504 17447 *) # Relative path.
42ecbf5e
DJ
17448 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17449 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17450esac
252b5132 17451
42ecbf5e
DJ
17452# Do not use `cd foo && pwd` to compute absolute paths, because
17453# the directories may not exist.
17454case `pwd` in
17455.) ac_abs_builddir="$ac_dir";;
17456*)
17457 case "$ac_dir" in
17458 .) ac_abs_builddir=`pwd`;;
17459 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17460 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17461 esac;;
17462esac
17463case $ac_abs_builddir in
17464.) ac_abs_top_builddir=${ac_top_builddir}.;;
17465*)
17466 case ${ac_top_builddir}. in
17467 .) ac_abs_top_builddir=$ac_abs_builddir;;
17468 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17469 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17470 esac;;
17471esac
17472case $ac_abs_builddir in
17473.) ac_abs_srcdir=$ac_srcdir;;
17474*)
17475 case $ac_srcdir in
17476 .) ac_abs_srcdir=$ac_abs_builddir;;
17477 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17478 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17479 esac;;
17480esac
17481case $ac_abs_builddir in
17482.) ac_abs_top_srcdir=$ac_top_srcdir;;
17483*)
17484 case $ac_top_srcdir in
17485 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17486 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17487 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17488 esac;;
17489esac
e5a52504 17490
42ecbf5e
DJ
17491
17492 case $INSTALL in
17493 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17494 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 17495 esac
e5a52504 17496
7357c5b6
AM
17497 if test x"$ac_file" != x-; then
17498 { echo "$as_me:$LINENO: creating $ac_file" >&5
17499echo "$as_me: creating $ac_file" >&6;}
17500 rm -f "$ac_file"
17501 fi
42ecbf5e
DJ
17502 # Let's still pretend it is `configure' which instantiates (i.e., don't
17503 # use $as_me), people would be surprised to read:
17504 # /* config.h. Generated by config.status. */
17505 if test x"$ac_file" = x-; then
17506 configure_input=
17507 else
17508 configure_input="$ac_file. "
17509 fi
17510 configure_input=$configure_input"Generated from `echo $ac_file_in |
17511 sed 's,.*/,,'` by configure."
17512
17513 # First look for the input files in the build tree, otherwise in the
17514 # src tree.
17515 ac_file_inputs=`IFS=:
17516 for f in $ac_file_in; do
17517 case $f in
17518 -) echo $tmp/stdin ;;
17519 [\\/$]*)
17520 # Absolute (can't be DOS-style, as IFS=:)
17521 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17522echo "$as_me: error: cannot find input file: $f" >&2;}
17523 { (exit 1); exit 1; }; }
17524 echo "$f";;
17525 *) # Relative
17526 if test -f "$f"; then
17527 # Build tree
17528 echo "$f"
17529 elif test -f "$srcdir/$f"; then
17530 # Source tree
17531 echo "$srcdir/$f"
17532 else
17533 # /dev/null tree
17534 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17535echo "$as_me: error: cannot find input file: $f" >&2;}
17536 { (exit 1); exit 1; }; }
17537 fi;;
17538 esac
17539 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
17540_ACEOF
17541cat >>$CONFIG_STATUS <<_ACEOF
17542 sed "$ac_vpsub
17543$extrasub
17544_ACEOF
17545cat >>$CONFIG_STATUS <<\_ACEOF
17546:t
17547/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17548s,@configure_input@,$configure_input,;t t
17549s,@srcdir@,$ac_srcdir,;t t
17550s,@abs_srcdir@,$ac_abs_srcdir,;t t
17551s,@top_srcdir@,$ac_top_srcdir,;t t
17552s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17553s,@builddir@,$ac_builddir,;t t
17554s,@abs_builddir@,$ac_abs_builddir,;t t
17555s,@top_builddir@,$ac_top_builddir,;t t
17556s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17557s,@INSTALL@,$ac_INSTALL,;t t
17558" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17559 rm -f $tmp/stdin
17560 if test x"$ac_file" != x-; then
17561 mv $tmp/out $ac_file
17562 else
17563 cat $tmp/out
17564 rm -f $tmp/out
17565 fi
17566
17567done
17568_ACEOF
17569cat >>$CONFIG_STATUS <<\_ACEOF
17570
17571#
17572# CONFIG_HEADER section.
17573#
252b5132
RH
17574
17575# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17576# NAME is the cpp macro being defined and VALUE is the value it is being given.
17577#
17578# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
17579ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17580ac_dB='[ ].*$,\1#\2'
17581ac_dC=' '
17582ac_dD=',;t'
17583# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17584ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17585ac_uB='$,\1#\2define\3'
252b5132 17586ac_uC=' '
42ecbf5e
DJ
17587ac_uD=',;t'
17588
17589for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 17590 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
17591 case $ac_file in
17592 - | *:- | *:-:* ) # input from stdin
17593 cat >$tmp/stdin
17594 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17596 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17597 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17598 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
17599 esac
17600
42ecbf5e
DJ
17601 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17602echo "$as_me: creating $ac_file" >&6;}
17603
17604 # First look for the input files in the build tree, otherwise in the
17605 # src tree.
17606 ac_file_inputs=`IFS=:
17607 for f in $ac_file_in; do
17608 case $f in
17609 -) echo $tmp/stdin ;;
17610 [\\/$]*)
17611 # Absolute (can't be DOS-style, as IFS=:)
17612 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17613echo "$as_me: error: cannot find input file: $f" >&2;}
17614 { (exit 1); exit 1; }; }
17615 # Do quote $f, to prevent DOS paths from being IFS'd.
17616 echo "$f";;
17617 *) # Relative
17618 if test -f "$f"; then
17619 # Build tree
17620 echo "$f"
17621 elif test -f "$srcdir/$f"; then
17622 # Source tree
17623 echo "$srcdir/$f"
17624 else
17625 # /dev/null tree
17626 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17627echo "$as_me: error: cannot find input file: $f" >&2;}
17628 { (exit 1); exit 1; }; }
17629 fi;;
17630 esac
17631 done` || { (exit 1); exit 1; }
17632 # Remove the trailing spaces.
17633 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17634
17635_ACEOF
17636
17637# Transform confdefs.h into two sed scripts, `conftest.defines' and
17638# `conftest.undefs', that substitutes the proper values into
17639# config.h.in to produce config.h. The first handles `#define'
17640# templates, and the second `#undef' templates.
17641# And first: Protect against being on the right side of a sed subst in
17642# config.status. Protect against being in an unquoted here document
17643# in config.status.
17644rm -f conftest.defines conftest.undefs
17645# Using a here document instead of a string reduces the quoting nightmare.
17646# Putting comments in sed scripts is not portable.
17647#
17648# `end' is used to avoid that the second main sed command (meant for
17649# 0-ary CPP macros) applies to n-ary macro definitions.
17650# See the Autoconf documentation for `clear'.
17651cat >confdef2sed.sed <<\_ACEOF
17652s/[\\&,]/\\&/g
17653s,[\\$`],\\&,g
17654t clear
17655: clear
17656s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17657t end
17658s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17659: end
17660_ACEOF
17661# If some macros were called several times there might be several times
17662# the same #defines, which is useless. Nevertheless, we may not want to
17663# sort them, since we want the *last* AC-DEFINE to be honored.
17664uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17665sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17666rm -f confdef2sed.sed
252b5132
RH
17667
17668# This sed command replaces #undef with comments. This is necessary, for
17669# example, in the case of _POSIX_SOURCE, which is predefined and required
17670# on some systems where configure will not decide to define it.
42ecbf5e
DJ
17671cat >>conftest.undefs <<\_ACEOF
17672s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17673_ACEOF
17674
17675# Break up conftest.defines because some shells have a limit on the size
17676# of here documents, and old seds have small limits too (100 cmds).
17677echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17678echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17679echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17680echo ' :' >>$CONFIG_STATUS
17681rm -f conftest.tail
17682while grep . conftest.defines >/dev/null
17683do
17684 # Write a limited-size here document to $tmp/defines.sed.
17685 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17686 # Speed up: don't consider the non `#define' lines.
17687 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17688 # Work around the forget-to-reset-the-flag bug.
17689 echo 't clr' >>$CONFIG_STATUS
17690 echo ': clr' >>$CONFIG_STATUS
17691 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17692 echo 'CEOF
17693 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17694 rm -f $tmp/in
17695 mv $tmp/out $tmp/in
17696' >>$CONFIG_STATUS
17697 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17698 rm -f conftest.defines
17699 mv conftest.tail conftest.defines
17700done
17701rm -f conftest.defines
17702echo ' fi # grep' >>$CONFIG_STATUS
17703echo >>$CONFIG_STATUS
252b5132 17704
42ecbf5e
DJ
17705# Break up conftest.undefs because some shells have a limit on the size
17706# of here documents, and old seds have small limits too (100 cmds).
17707echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 17708rm -f conftest.tail
42ecbf5e 17709while grep . conftest.undefs >/dev/null
252b5132 17710do
42ecbf5e
DJ
17711 # Write a limited-size here document to $tmp/undefs.sed.
17712 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17713 # Speed up: don't consider the non `#undef'
17714 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17715 # Work around the forget-to-reset-the-flag bug.
17716 echo 't clr' >>$CONFIG_STATUS
17717 echo ': clr' >>$CONFIG_STATUS
17718 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 17719 echo 'CEOF
42ecbf5e
DJ
17720 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17721 rm -f $tmp/in
17722 mv $tmp/out $tmp/in
17723' >>$CONFIG_STATUS
17724 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17725 rm -f conftest.undefs
17726 mv conftest.tail conftest.undefs
252b5132 17727done
42ecbf5e
DJ
17728rm -f conftest.undefs
17729
17730cat >>$CONFIG_STATUS <<\_ACEOF
17731 # Let's still pretend it is `configure' which instantiates (i.e., don't
17732 # use $as_me), people would be surprised to read:
17733 # /* config.h. Generated by config.status. */
17734 if test x"$ac_file" = x-; then
17735 echo "/* Generated by configure. */" >$tmp/config.h
17736 else
17737 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17738 fi
17739 cat $tmp/in >>$tmp/config.h
17740 rm -f $tmp/in
17741 if test x"$ac_file" != x-; then
17742 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17743 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17744echo "$as_me: $ac_file is unchanged" >&6;}
17745 else
17746 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17747$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17748 X"$ac_file" : 'X\(//\)[^/]' \| \
17749 X"$ac_file" : 'X\(//\)$' \| \
17750 X"$ac_file" : 'X\(/\)' \| \
17751 . : '\(.\)' 2>/dev/null ||
17752echo X"$ac_file" |
17753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17755 /^X\(\/\/\)$/{ s//\1/; q; }
17756 /^X\(\/\).*/{ s//\1/; q; }
17757 s/.*/./; q'`
17758 { if $as_mkdir_p; then
17759 mkdir -p "$ac_dir"
252b5132 17760 else
42ecbf5e
DJ
17761 as_dir="$ac_dir"
17762 as_dirs=
17763 while test ! -d "$as_dir"; do
17764 as_dirs="$as_dir $as_dirs"
17765 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17766$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17767 X"$as_dir" : 'X\(//\)[^/]' \| \
17768 X"$as_dir" : 'X\(//\)$' \| \
17769 X"$as_dir" : 'X\(/\)' \| \
17770 . : '\(.\)' 2>/dev/null ||
17771echo X"$as_dir" |
17772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17774 /^X\(\/\/\)$/{ s//\1/; q; }
17775 /^X\(\/\).*/{ s//\1/; q; }
17776 s/.*/./; q'`
17777 done
17778 test ! -n "$as_dirs" || mkdir $as_dirs
17779 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17780echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17781 { (exit 1); exit 1; }; }; }
17782
17783 rm -f $ac_file
17784 mv $tmp/config.h $ac_file
252b5132 17785 fi
42ecbf5e
DJ
17786 else
17787 cat $tmp/config.h
17788 rm -f $tmp/config.h
252b5132 17789 fi
42ecbf5e
DJ
17790# Compute $ac_file's index in $config_headers.
17791_am_stamp_count=1
17792for _am_header in $config_headers :; do
17793 case $_am_header in
17794 $ac_file | $ac_file:* )
17795 break ;;
17796 * )
17797 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17798 esac
17799done
17800echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17801$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17802 X$ac_file : 'X\(//\)[^/]' \| \
17803 X$ac_file : 'X\(//\)$' \| \
17804 X$ac_file : 'X\(/\)' \| \
17805 . : '\(.\)' 2>/dev/null ||
17806echo X$ac_file |
17807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17809 /^X\(\/\/\)$/{ s//\1/; q; }
17810 /^X\(\/\).*/{ s//\1/; q; }
17811 s/.*/./; q'`/stamp-h$_am_stamp_count
17812done
17813_ACEOF
17814cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 17815
42ecbf5e
DJ
17816#
17817# CONFIG_COMMANDS section.
17818#
17819for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17820 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17821 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17822 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17823$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17824 X"$ac_dest" : 'X\(//\)[^/]' \| \
17825 X"$ac_dest" : 'X\(//\)$' \| \
17826 X"$ac_dest" : 'X\(/\)' \| \
17827 . : '\(.\)' 2>/dev/null ||
17828echo X"$ac_dest" |
17829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17831 /^X\(\/\/\)$/{ s//\1/; q; }
17832 /^X\(\/\).*/{ s//\1/; q; }
17833 s/.*/./; q'`
17834 { if $as_mkdir_p; then
17835 mkdir -p "$ac_dir"
17836 else
17837 as_dir="$ac_dir"
17838 as_dirs=
17839 while test ! -d "$as_dir"; do
17840 as_dirs="$as_dir $as_dirs"
17841 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17842$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17843 X"$as_dir" : 'X\(//\)[^/]' \| \
17844 X"$as_dir" : 'X\(//\)$' \| \
17845 X"$as_dir" : 'X\(/\)' \| \
17846 . : '\(.\)' 2>/dev/null ||
17847echo X"$as_dir" |
17848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17850 /^X\(\/\/\)$/{ s//\1/; q; }
17851 /^X\(\/\).*/{ s//\1/; q; }
17852 s/.*/./; q'`
17853 done
17854 test ! -n "$as_dirs" || mkdir $as_dirs
17855 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17856echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17857 { (exit 1); exit 1; }; }; }
252b5132 17858
42ecbf5e 17859 ac_builddir=.
e5a52504 17860
42ecbf5e
DJ
17861if test "$ac_dir" != .; then
17862 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17863 # A "../" for each directory in $ac_dir_suffix.
17864 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17865else
17866 ac_dir_suffix= ac_top_builddir=
17867fi
17868
17869case $srcdir in
17870 .) # No --srcdir option. We are building in place.
17871 ac_srcdir=.
17872 if test -z "$ac_top_builddir"; then
17873 ac_top_srcdir=.
17874 else
17875 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17876 fi ;;
17877 [\\/]* | ?:[\\/]* ) # Absolute path.
17878 ac_srcdir=$srcdir$ac_dir_suffix;
17879 ac_top_srcdir=$srcdir ;;
17880 *) # Relative path.
17881 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17882 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17883esac
17884
17885# Do not use `cd foo && pwd` to compute absolute paths, because
17886# the directories may not exist.
17887case `pwd` in
17888.) ac_abs_builddir="$ac_dir";;
17889*)
17890 case "$ac_dir" in
17891 .) ac_abs_builddir=`pwd`;;
17892 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17893 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17894 esac;;
17895esac
17896case $ac_abs_builddir in
17897.) ac_abs_top_builddir=${ac_top_builddir}.;;
17898*)
17899 case ${ac_top_builddir}. in
17900 .) ac_abs_top_builddir=$ac_abs_builddir;;
17901 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17902 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17903 esac;;
17904esac
17905case $ac_abs_builddir in
17906.) ac_abs_srcdir=$ac_srcdir;;
17907*)
17908 case $ac_srcdir in
17909 .) ac_abs_srcdir=$ac_abs_builddir;;
17910 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17911 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17912 esac;;
17913esac
17914case $ac_abs_builddir in
17915.) ac_abs_top_srcdir=$ac_top_srcdir;;
17916*)
17917 case $ac_top_srcdir in
17918 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17919 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17920 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17921 esac;;
17922esac
e5a52504 17923
42ecbf5e
DJ
17924
17925 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17926echo "$as_me: executing $ac_dest commands" >&6;}
17927 case $ac_dest in
17928 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17929 # Strip MF so we end up with the name of the file.
17930 mf=`echo "$mf" | sed -e 's/:.*$//'`
17931 # Check whether this is an Automake generated Makefile or not.
17932 # We used to match only the files named `Makefile.in', but
17933 # some people rename them; so instead we look at the file content.
17934 # Grep'ing the first line is not enough: some people post-process
17935 # each Makefile.in and add a new line on top of each file to say so.
17936 # So let's grep whole file.
17937 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17938 dirpart=`(dirname "$mf") 2>/dev/null ||
17939$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17940 X"$mf" : 'X\(//\)[^/]' \| \
17941 X"$mf" : 'X\(//\)$' \| \
17942 X"$mf" : 'X\(/\)' \| \
17943 . : '\(.\)' 2>/dev/null ||
17944echo X"$mf" |
17945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17947 /^X\(\/\/\)$/{ s//\1/; q; }
17948 /^X\(\/\).*/{ s//\1/; q; }
17949 s/.*/./; q'`
17950 else
17951 continue
17952 fi
17953 # Extract the definition of DEPDIR, am__include, and am__quote
17954 # from the Makefile without running `make'.
17955 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17956 test -z "$DEPDIR" && continue
17957 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17958 test -z "am__include" && continue
17959 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17960 # When using ansi2knr, U may be empty or an underscore; expand it
17961 U=`sed -n 's/^U = //p' < "$mf"`
17962 # Find all dependency output files, they are included files with
17963 # $(DEPDIR) in their names. We invoke sed twice because it is the
17964 # simplest approach to changing $(DEPDIR) to its actual value in the
17965 # expansion.
17966 for file in `sed -n "
17967 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17968 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17969 # Make sure the directory exists.
17970 test -f "$dirpart/$file" && continue
17971 fdir=`(dirname "$file") 2>/dev/null ||
17972$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17973 X"$file" : 'X\(//\)[^/]' \| \
17974 X"$file" : 'X\(//\)$' \| \
17975 X"$file" : 'X\(/\)' \| \
17976 . : '\(.\)' 2>/dev/null ||
17977echo X"$file" |
17978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17980 /^X\(\/\/\)$/{ s//\1/; q; }
17981 /^X\(\/\).*/{ s//\1/; q; }
17982 s/.*/./; q'`
17983 { if $as_mkdir_p; then
17984 mkdir -p $dirpart/$fdir
17985 else
17986 as_dir=$dirpart/$fdir
17987 as_dirs=
17988 while test ! -d "$as_dir"; do
17989 as_dirs="$as_dir $as_dirs"
17990 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17991$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17992 X"$as_dir" : 'X\(//\)[^/]' \| \
17993 X"$as_dir" : 'X\(//\)$' \| \
17994 X"$as_dir" : 'X\(/\)' \| \
17995 . : '\(.\)' 2>/dev/null ||
17996echo X"$as_dir" |
17997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17999 /^X\(\/\/\)$/{ s//\1/; q; }
18000 /^X\(\/\).*/{ s//\1/; q; }
18001 s/.*/./; q'`
18002 done
18003 test ! -n "$as_dirs" || mkdir $as_dirs
18004 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18005echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18006 { (exit 1); exit 1; }; }; }
18007
18008 # echo "creating $dirpart/$file"
18009 echo '# dummy' > "$dirpart/$file"
18010 done
18011done
d7040cdb
SE
18012 ;;
18013 libtool )
18014
18015 # See if we are running on zsh, and set the options which allow our
18016 # commands through without removal of \ escapes.
18017 if test -n "${ZSH_VERSION+set}" ; then
18018 setopt NO_GLOB_SUBST
18019 fi
18020
18021 cfgfile="${ofile}T"
18022 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18023 $RM "$cfgfile"
18024
18025 cat <<_LT_EOF >> "$cfgfile"
18026#! $SHELL
18027
18028# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 18029# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
18030# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18031# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18032#
718a6fd8
SE
18033# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18034# 2006, 2007, 2008 Free Software Foundation, Inc.
18035# Written by Gordon Matzigkeit, 1996
d7040cdb 18036#
718a6fd8 18037# This file is part of GNU Libtool.
d7040cdb 18038#
718a6fd8
SE
18039# GNU Libtool is free software; you can redistribute it and/or
18040# modify it under the terms of the GNU General Public License as
18041# published by the Free Software Foundation; either version 2 of
18042# the License, or (at your option) any later version.
d7040cdb 18043#
718a6fd8
SE
18044# As a special exception to the GNU General Public License,
18045# if you distribute this file as part of a program or library that
18046# is built using GNU Libtool, you may include this file under the
18047# same distribution terms that you use for the rest of that program.
d7040cdb 18048#
718a6fd8
SE
18049# GNU Libtool is distributed in the hope that it will be useful,
18050# but WITHOUT ANY WARRANTY; without even the implied warranty of
18051# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18052# GNU General Public License for more details.
d7040cdb 18053#
718a6fd8
SE
18054# You should have received a copy of the GNU General Public License
18055# along with GNU Libtool; see the file COPYING. If not, a copy
18056# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18057# obtained by writing to the Free Software Foundation, Inc.,
18058# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
18059
18060
18061# The names of the tagged configurations supported by this script.
18062available_tags=""
18063
18064# ### BEGIN LIBTOOL CONFIG
18065
18066# Which release of libtool.m4 was used?
18067macro_version=$macro_version
18068macro_revision=$macro_revision
18069
18070# Whether or not to build shared libraries.
18071build_libtool_libs=$enable_shared
18072
18073# Whether or not to build static libraries.
18074build_old_libs=$enable_static
18075
18076# What type of objects to build.
18077pic_mode=$pic_mode
18078
18079# Whether or not to optimize for fast installation.
18080fast_install=$enable_fast_install
18081
18082# The host system.
18083host_alias=$host_alias
18084host=$host
18085host_os=$host_os
18086
18087# The build system.
18088build_alias=$build_alias
18089build=$build
18090build_os=$build_os
18091
18092# A sed program that does not truncate output.
18093SED=$lt_SED
18094
18095# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18096Xsed="\$SED -e 1s/^X//"
18097
18098# A grep program that handles long lines.
18099GREP=$lt_GREP
18100
18101# An ERE matcher.
18102EGREP=$lt_EGREP
18103
18104# A literal string matcher.
18105FGREP=$lt_FGREP
18106
18107# A BSD- or MS-compatible name lister.
18108NM=$lt_NM
18109
18110# Whether we need soft or hard links.
18111LN_S=$lt_LN_S
18112
18113# What is the maximum length of a command?
18114max_cmd_len=$max_cmd_len
18115
18116# Object file suffix (normally "o").
18117objext=$ac_objext
18118
18119# Executable file suffix (normally "").
18120exeext=$exeext
18121
18122# whether the shell understands "unset".
18123lt_unset=$lt_unset
18124
18125# turn spaces into newlines.
18126SP2NL=$lt_lt_SP2NL
18127
18128# turn newlines into spaces.
18129NL2SP=$lt_lt_NL2SP
18130
18131# How to create reloadable object files.
18132reload_flag=$lt_reload_flag
18133reload_cmds=$lt_reload_cmds
18134
718a6fd8
SE
18135# An object symbol dumper.
18136OBJDUMP=$lt_OBJDUMP
18137
d7040cdb
SE
18138# Method to check whether dependent libraries are shared objects.
18139deplibs_check_method=$lt_deplibs_check_method
18140
18141# Command to use when deplibs_check_method == "file_magic".
18142file_magic_cmd=$lt_file_magic_cmd
18143
18144# The archiver.
18145AR=$lt_AR
18146AR_FLAGS=$lt_AR_FLAGS
18147
18148# A symbol stripping program.
18149STRIP=$lt_STRIP
18150
18151# Commands used to install an old-style archive.
18152RANLIB=$lt_RANLIB
18153old_postinstall_cmds=$lt_old_postinstall_cmds
18154old_postuninstall_cmds=$lt_old_postuninstall_cmds
18155
18156# A C compiler.
18157LTCC=$lt_CC
18158
18159# LTCC compiler flags.
18160LTCFLAGS=$lt_CFLAGS
18161
18162# Take the output of nm and produce a listing of raw symbols and C names.
18163global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18164
18165# Transform the output of nm in a proper C declaration.
18166global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18167
18168# Transform the output of nm in a C name address pair.
18169global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18170
718a6fd8
SE
18171# Transform the output of nm in a C name address pair when lib prefix is needed.
18172global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18173
d7040cdb
SE
18174# The name of the directory that contains temporary libtool files.
18175objdir=$objdir
18176
18177# Shell to use when invoking shell scripts.
18178SHELL=$lt_SHELL
18179
18180# An echo program that does not interpret backslashes.
18181ECHO=$lt_ECHO
18182
18183# Used to examine libraries when file_magic_cmd begins with "file".
18184MAGIC_CMD=$MAGIC_CMD
18185
18186# Must we lock files when doing compilation?
18187need_locks=$lt_need_locks
18188
718a6fd8
SE
18189# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18190DSYMUTIL=$lt_DSYMUTIL
18191
18192# Tool to change global to local symbols on Mac OS X.
18193NMEDIT=$lt_NMEDIT
18194
18195# Tool to manipulate fat objects and archives on Mac OS X.
18196LIPO=$lt_LIPO
18197
18198# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18199OTOOL=$lt_OTOOL
18200
18201# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18202OTOOL64=$lt_OTOOL64
18203
d7040cdb
SE
18204# Old archive suffix (normally "a").
18205libext=$libext
18206
18207# Shared library suffix (normally ".so").
18208shrext_cmds=$lt_shrext_cmds
18209
18210# The commands to extract the exported symbol list from a shared archive.
18211extract_expsyms_cmds=$lt_extract_expsyms_cmds
18212
18213# Variables whose values should be saved in libtool wrapper scripts and
18214# restored at link time.
18215variables_saved_for_relink=$lt_variables_saved_for_relink
18216
18217# Do we need the "lib" prefix for modules?
18218need_lib_prefix=$need_lib_prefix
18219
18220# Do we need a version for libraries?
18221need_version=$need_version
18222
18223# Library versioning type.
18224version_type=$version_type
18225
18226# Shared library runtime path variable.
18227runpath_var=$runpath_var
18228
18229# Shared library path variable.
18230shlibpath_var=$shlibpath_var
18231
18232# Is shlibpath searched before the hard-coded library search path?
18233shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18234
18235# Format of library name prefix.
18236libname_spec=$lt_libname_spec
18237
18238# List of archive names. First name is the real one, the rest are links.
18239# The last name is the one that the linker finds with -lNAME
18240library_names_spec=$lt_library_names_spec
18241
18242# The coded name of the library, if different from the real name.
18243soname_spec=$lt_soname_spec
18244
18245# Command to use after installation of a shared archive.
18246postinstall_cmds=$lt_postinstall_cmds
18247
18248# Command to use after uninstallation of a shared archive.
18249postuninstall_cmds=$lt_postuninstall_cmds
18250
18251# Commands used to finish a libtool library installation in a directory.
18252finish_cmds=$lt_finish_cmds
18253
18254# As "finish_cmds", except a single script fragment to be evaled but
18255# not shown.
18256finish_eval=$lt_finish_eval
18257
18258# Whether we should hardcode library paths into libraries.
18259hardcode_into_libs=$hardcode_into_libs
18260
18261# Compile-time system search path for libraries.
18262sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18263
18264# Run-time system search path for libraries.
18265sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18266
18267# Whether dlopen is supported.
18268dlopen_support=$enable_dlopen
18269
18270# Whether dlopen of programs is supported.
18271dlopen_self=$enable_dlopen_self
18272
18273# Whether dlopen of statically linked programs is supported.
18274dlopen_self_static=$enable_dlopen_self_static
18275
18276# Commands to strip libraries.
18277old_striplib=$lt_old_striplib
18278striplib=$lt_striplib
18279
18280
18281# The linker used to build libraries.
18282LD=$lt_LD
18283
18284# Commands used to build an old-style archive.
18285old_archive_cmds=$lt_old_archive_cmds
18286
18287# A language specific compiler.
18288CC=$lt_compiler
18289
18290# Is the compiler the GNU compiler?
18291with_gcc=$GCC
18292
18293# Compiler flag to turn off builtin functions.
18294no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18295
18296# How to pass a linker flag through the compiler.
18297wl=$lt_lt_prog_compiler_wl
18298
18299# Additional compiler flags for building library objects.
18300pic_flag=$lt_lt_prog_compiler_pic
18301
18302# Compiler flag to prevent dynamic linking.
18303link_static_flag=$lt_lt_prog_compiler_static
18304
18305# Does compiler simultaneously support -c and -o options?
18306compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18307
18308# Whether or not to add -lc for building shared libraries.
18309build_libtool_need_lc=$archive_cmds_need_lc
18310
18311# Whether or not to disallow shared libs when runtime libs are static.
18312allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18313
18314# Compiler flag to allow reflexive dlopens.
18315export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18316
18317# Compiler flag to generate shared objects directly from archives.
18318whole_archive_flag_spec=$lt_whole_archive_flag_spec
18319
18320# Whether the compiler copes with passing no objects directly.
18321compiler_needs_object=$lt_compiler_needs_object
18322
18323# Create an old-style archive from a shared archive.
18324old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18325
18326# Create a temporary old-style archive to link instead of a shared archive.
18327old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18328
18329# Commands used to build a shared archive.
18330archive_cmds=$lt_archive_cmds
18331archive_expsym_cmds=$lt_archive_expsym_cmds
18332
18333# Commands used to build a loadable module if different from building
18334# a shared archive.
18335module_cmds=$lt_module_cmds
18336module_expsym_cmds=$lt_module_expsym_cmds
18337
18338# Whether we are building with GNU ld or not.
18339with_gnu_ld=$lt_with_gnu_ld
18340
18341# Flag that allows shared libraries with undefined symbols to be built.
18342allow_undefined_flag=$lt_allow_undefined_flag
18343
18344# Flag that enforces no undefined symbols.
18345no_undefined_flag=$lt_no_undefined_flag
18346
18347# Flag to hardcode \$libdir into a binary during linking.
18348# This must work even if \$libdir does not exist
18349hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18350
18351# If ld is used when linking, flag to hardcode \$libdir into a binary
18352# during linking. This must work even if \$libdir does not exist.
18353hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18354
18355# Whether we need a single "-rpath" flag with a separated argument.
18356hardcode_libdir_separator=$lt_hardcode_libdir_separator
18357
18358# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18359# DIR into the resulting binary.
18360hardcode_direct=$hardcode_direct
18361
18362# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18363# DIR into the resulting binary and the resulting library dependency is
18364# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18365# library is relocated.
18366hardcode_direct_absolute=$hardcode_direct_absolute
18367
18368# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18369# into the resulting binary.
18370hardcode_minus_L=$hardcode_minus_L
18371
18372# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18373# into the resulting binary.
18374hardcode_shlibpath_var=$hardcode_shlibpath_var
18375
18376# Set to "yes" if building a shared library automatically hardcodes DIR
18377# into the library and all subsequent libraries and executables linked
18378# against it.
18379hardcode_automatic=$hardcode_automatic
18380
18381# Set to yes if linker adds runtime paths of dependent libraries
18382# to runtime path list.
18383inherit_rpath=$inherit_rpath
18384
18385# Whether libtool must link a program against all its dependency libraries.
18386link_all_deplibs=$link_all_deplibs
18387
18388# Fix the shell variable \$srcfile for the compiler.
18389fix_srcfile_path=$lt_fix_srcfile_path
18390
18391# Set to "yes" if exported symbols are required.
18392always_export_symbols=$always_export_symbols
18393
18394# The commands to list exported symbols.
18395export_symbols_cmds=$lt_export_symbols_cmds
18396
18397# Symbols that should not be listed in the preloaded symbols.
18398exclude_expsyms=$lt_exclude_expsyms
18399
18400# Symbols that must always be exported.
18401include_expsyms=$lt_include_expsyms
18402
18403# Commands necessary for linking programs (against libraries) with templates.
18404prelink_cmds=$lt_prelink_cmds
18405
18406# Specify filename containing input files.
18407file_list_spec=$lt_file_list_spec
18408
18409# How to hardcode a shared library path into an executable.
18410hardcode_action=$hardcode_action
18411
18412# ### END LIBTOOL CONFIG
18413
18414_LT_EOF
18415
18416 case $host_os in
18417 aix3*)
18418 cat <<\_LT_EOF >> "$cfgfile"
18419# AIX sometimes has problems with the GCC collect2 program. For some
18420# reason, if we set the COLLECT_NAMES environment variable, the problems
18421# vanish in a puff of smoke.
18422if test "X${COLLECT_NAMES+set}" != Xset; then
18423 COLLECT_NAMES=
18424 export COLLECT_NAMES
18425fi
18426_LT_EOF
18427 ;;
18428 esac
18429
18430
18431ltmain="$ac_aux_dir/ltmain.sh"
18432
18433
18434 # We use sed instead of cat because bash on DJGPP gets confused if
18435 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18436 # text mode, it properly converts lines to CR/LF. This bash problem
18437 # is reportedly fixed, but why not run on old versions too?
18438 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18439 || (rm -f "$cfgfile"; exit 1)
18440
18441 case $xsi_shell in
18442 yes)
18443 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18444
d7040cdb
SE
18445# func_dirname file append nondir_replacement
18446# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18447# otherwise set result to NONDIR_REPLACEMENT.
18448func_dirname ()
18449{
18450 case ${1} in
18451 */*) func_dirname_result="${1%/*}${2}" ;;
18452 * ) func_dirname_result="${3}" ;;
18453 esac
18454}
18455
18456# func_basename file
18457func_basename ()
18458{
18459 func_basename_result="${1##*/}"
18460}
18461
718a6fd8
SE
18462# func_dirname_and_basename file append nondir_replacement
18463# perform func_basename and func_dirname in a single function
18464# call:
18465# dirname: Compute the dirname of FILE. If nonempty,
18466# add APPEND to the result, otherwise set result
18467# to NONDIR_REPLACEMENT.
18468# value returned in "$func_dirname_result"
18469# basename: Compute filename of FILE.
18470# value retuned in "$func_basename_result"
18471# Implementation must be kept synchronized with func_dirname
18472# and func_basename. For efficiency, we do not delegate to
18473# those functions but instead duplicate the functionality here.
18474func_dirname_and_basename ()
18475{
18476 case ${1} in
18477 */*) func_dirname_result="${1%/*}${2}" ;;
18478 * ) func_dirname_result="${3}" ;;
18479 esac
18480 func_basename_result="${1##*/}"
18481}
18482
d7040cdb
SE
18483# func_stripname prefix suffix name
18484# strip PREFIX and SUFFIX off of NAME.
18485# PREFIX and SUFFIX must not contain globbing or regex special
18486# characters, hashes, percent signs, but SUFFIX may contain a leading
18487# dot (in which case that matches only a dot).
18488func_stripname ()
18489{
18490 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18491 # positional parameters, so assign one to ordinary parameter first.
18492 func_stripname_result=${3}
18493 func_stripname_result=${func_stripname_result#"${1}"}
18494 func_stripname_result=${func_stripname_result%"${2}"}
18495}
18496
18497# func_opt_split
18498func_opt_split ()
18499{
18500 func_opt_split_opt=${1%%=*}
18501 func_opt_split_arg=${1#*=}
18502}
18503
18504# func_lo2o object
18505func_lo2o ()
18506{
18507 case ${1} in
18508 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18509 *) func_lo2o_result=${1} ;;
18510 esac
18511}
718a6fd8
SE
18512
18513# func_xform libobj-or-source
18514func_xform ()
18515{
18516 func_xform_result=${1%.*}.lo
18517}
18518
18519# func_arith arithmetic-term...
18520func_arith ()
18521{
18522 func_arith_result=$(( $* ))
18523}
18524
18525# func_len string
18526# STRING may not start with a hyphen.
18527func_len ()
18528{
18529 func_len_result=${#1}
18530}
18531
d7040cdb
SE
18532_LT_EOF
18533 ;;
18534 *) # Bourne compatible functions.
18535 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18536
d7040cdb
SE
18537# func_dirname file append nondir_replacement
18538# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18539# otherwise set result to NONDIR_REPLACEMENT.
18540func_dirname ()
18541{
18542 # Extract subdirectory from the argument.
18543 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18544 if test "X$func_dirname_result" = "X${1}"; then
18545 func_dirname_result="${3}"
18546 else
18547 func_dirname_result="$func_dirname_result${2}"
18548 fi
18549}
18550
18551# func_basename file
18552func_basename ()
18553{
18554 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18555}
18556
718a6fd8 18557
d7040cdb
SE
18558# func_stripname prefix suffix name
18559# strip PREFIX and SUFFIX off of NAME.
18560# PREFIX and SUFFIX must not contain globbing or regex special
18561# characters, hashes, percent signs, but SUFFIX may contain a leading
18562# dot (in which case that matches only a dot).
18563# func_strip_suffix prefix name
18564func_stripname ()
18565{
18566 case ${2} in
18567 .*) func_stripname_result=`$ECHO "X${3}" \
18568 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18569 *) func_stripname_result=`$ECHO "X${3}" \
18570 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18571 esac
18572}
18573
18574# sed scripts:
18575my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18576my_sed_long_arg='1s/^-[^=]*=//'
18577
18578# func_opt_split
18579func_opt_split ()
18580{
18581 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18582 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18583}
18584
18585# func_lo2o object
18586func_lo2o ()
18587{
18588 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18589}
718a6fd8
SE
18590
18591# func_xform libobj-or-source
18592func_xform ()
18593{
18594 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18595}
18596
18597# func_arith arithmetic-term...
18598func_arith ()
18599{
18600 func_arith_result=`expr "$@"`
18601}
18602
18603# func_len string
18604# STRING may not start with a hyphen.
18605func_len ()
18606{
18607 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18608}
18609
d7040cdb
SE
18610_LT_EOF
18611esac
18612
18613case $lt_shell_append in
18614 yes)
18615 cat << \_LT_EOF >> "$cfgfile"
18616
18617# func_append var value
18618# Append VALUE to the end of shell variable VAR.
18619func_append ()
18620{
18621 eval "$1+=\$2"
18622}
18623_LT_EOF
18624 ;;
18625 *)
18626 cat << \_LT_EOF >> "$cfgfile"
18627
18628# func_append var value
18629# Append VALUE to the end of shell variable VAR.
18630func_append ()
18631{
18632 eval "$1=\$$1\$2"
18633}
718a6fd8 18634
d7040cdb
SE
18635_LT_EOF
18636 ;;
18637 esac
18638
18639
18640 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18641 || (rm -f "$cfgfile"; exit 1)
18642
18643 mv -f "$cfgfile" "$ofile" ||
18644 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18645 chmod +x "$ofile"
18646
42ecbf5e 18647 ;;
20e95c23
DJ
18648 default-1 )
18649 for ac_file in $CONFIG_FILES; do
18650 # Support "outfile[:infile[:infile...]]"
18651 case "$ac_file" in
18652 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18653 esac
18654 # PO directories have a Makefile.in generated from Makefile.in.in.
18655 case "$ac_file" in */Makefile.in)
18656 # Adjust a relative srcdir.
18657 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18658 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18659 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18660 # In autoconf-2.13 it is called $ac_given_srcdir.
18661 # In autoconf-2.50 it is called $srcdir.
18662 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18663 case "$ac_given_srcdir" in
18664 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18665 /*) top_srcdir="$ac_given_srcdir" ;;
18666 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18667 esac
18668 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18669 rm -f "$ac_dir/POTFILES"
18670 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18671 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18672 POMAKEFILEDEPS="POTFILES.in"
18673 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18674 # on $ac_dir but don't depend on user-specified configuration
18675 # parameters.
18676 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18677 # The LINGUAS file contains the set of available languages.
18678 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18679 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18680 fi
18681 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18682 # Hide the ALL_LINGUAS assigment from automake.
18683 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18684 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18685 else
18686 # The set of available languages was given in configure.in.
18687 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18688 fi
18689 case "$ac_given_srcdir" in
18690 .) srcdirpre= ;;
18691 *) srcdirpre='$(srcdir)/' ;;
18692 esac
18693 POFILES=
18694 GMOFILES=
18695 UPDATEPOFILES=
18696 DUMMYPOFILES=
18697 for lang in $ALL_LINGUAS; do
18698 POFILES="$POFILES $srcdirpre$lang.po"
18699 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18700 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18701 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18702 done
18703 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18704 # environment variable.
18705 INST_LINGUAS=
18706 if test -n "$ALL_LINGUAS"; then
18707 for presentlang in $ALL_LINGUAS; do
18708 useit=no
18709 if test "%UNSET%" != "$LINGUAS"; then
18710 desiredlanguages="$LINGUAS"
18711 else
18712 desiredlanguages="$ALL_LINGUAS"
18713 fi
18714 for desiredlang in $desiredlanguages; do
18715 # Use the presentlang catalog if desiredlang is
18716 # a. equal to presentlang, or
18717 # b. a variant of presentlang (because in this case,
18718 # presentlang can be used as a fallback for messages
18719 # which are not translated in the desiredlang catalog).
18720 case "$desiredlang" in
18721 "$presentlang"*) useit=yes;;
18722 esac
18723 done
18724 if test $useit = yes; then
18725 INST_LINGUAS="$INST_LINGUAS $presentlang"
18726 fi
18727 done
18728 fi
18729 CATALOGS=
18730 if test -n "$INST_LINGUAS"; then
18731 for lang in $INST_LINGUAS; do
18732 CATALOGS="$CATALOGS $lang.gmo"
18733 done
18734 fi
18735 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18736 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"
18737 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18738 if test -f "$f"; then
18739 case "$f" in
18740 *.orig | *.bak | *~) ;;
18741 *) cat "$f" >> "$ac_dir/Makefile" ;;
18742 esac
18743 fi
18744 done
18745 fi
18746 ;;
18747 esac
18748 done ;;
42ecbf5e
DJ
18749 esac
18750done
18751_ACEOF
e5a52504 18752
42ecbf5e
DJ
18753cat >>$CONFIG_STATUS <<\_ACEOF
18754
18755{ (exit 0); exit 0; }
18756_ACEOF
252b5132 18757chmod +x $CONFIG_STATUS
42ecbf5e
DJ
18758ac_clean_files=$ac_clean_files_save
18759
18760
18761# configure is writing to config.log, and then calls config.status.
18762# config.status does its own redirection, appending to config.log.
18763# Unfortunately, on DOS this fails, as config.log is still kept open
18764# by configure, so config.status won't be able to write to it; its
18765# output is simply discarded. So we exec the FD to /dev/null,
18766# effectively closing config.log, so it can be properly (re)opened and
18767# appended to by config.status. When coming back to configure, we
18768# need to make the FD available again.
18769if test "$no_create" != yes; then
18770 ac_cs_success=:
18771 ac_config_status_args=
18772 test "$silent" = yes &&
18773 ac_config_status_args="$ac_config_status_args --quiet"
18774 exec 5>/dev/null
18775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18776 exec 5>>config.log
18777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18778 # would make configure fail if this is the last instruction.
18779 $ac_cs_success || { (exit 1); exit 1; }
18780fi
252b5132 18781
This page took 1.30176 seconds and 4 git commands to generate.