* regenerated files from updating libtool.
[deliverable/binutils-gdb.git] / ld / 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="ldmain.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
d7040cdb 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files='TDIRS'
252b5132
RH
463
464# Initialize some variables set by options.
42ecbf5e
DJ
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
42ecbf5e 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
42ecbf5e
DJ
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
42ecbf5e 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
42ecbf5e 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
42ecbf5e 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
42ecbf5e 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
42ecbf5e 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
42ecbf5e 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
42ecbf5e 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
42ecbf5e 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
42ecbf5e
DJ
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
42ecbf5e 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
42ecbf5e 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
42ecbf5e 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
42ecbf5e 710 site=$ac_optarg ;;
85fbca6a 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
42ecbf5e
DJ
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
42ecbf5e 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
42ecbf5e 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
42ecbf5e 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 773 x_libraries=$ac_optarg ;;
252b5132 774
42ecbf5e
DJ
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
42ecbf5e
DJ
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
252b5132 790 *)
42ecbf5e
DJ
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
42ecbf5e
DJ
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
252b5132 805fi
252b5132 806
42ecbf5e
DJ
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
252b5132 817
42ecbf5e
DJ
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
42ecbf5e
DJ
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
42ecbf5e
DJ
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
e5a52504 847
42ecbf5e
DJ
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
42ecbf5e
DJ
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
42ecbf5e
DJ
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
252b5132 922
42ecbf5e
DJ
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
252b5132 931
42ecbf5e 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
42ecbf5e
DJ
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 936
42ecbf5e 937Defaults for the options are specified in brackets.
ac48eca1 938
42ecbf5e
DJ
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
ac48eca1 958
42ecbf5e
DJ
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
ac48eca1 963
42ecbf5e 964For better control, use the options below.
ac48eca1 965
42ecbf5e
DJ
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
ac48eca1 980
42ecbf5e 981 cat <<\_ACEOF
252b5132 982
42ecbf5e
DJ
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 987
42ecbf5e
DJ
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
252b5132 993fi
252b5132 994
42ecbf5e 995if test -n "$ac_init_help"; then
252b5132 996
42ecbf5e 997 cat <<\_ACEOF
e5a52504 998
42ecbf5e
DJ
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
42ecbf5e
DJ
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-targets alternative target configurations
1012 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
241a6c40
AM
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1015 --disable-nls do not use Native Language Support
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
1018
1019Optional Packages:
1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1022 --with-pic try to use only PIC/non-PIC objects [default=use
1023 both]
1024 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1025 --with-lib-path=dir1:dir2... set default LIB_PATH
1026 --with-sysroot=DIR Search for usr/lib et al within DIR.
42ecbf5e
DJ
1027
1028Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1036
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040_ACEOF
1041fi
1042
1043if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054else
1055 ac_dir_suffix= ac_top_builddir=
1056fi
1057
1058case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1072esac
1073
42ecbf5e
DJ
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084esac
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111esac
a2d91340 1112
42ecbf5e
DJ
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
502bdb00 1128 cd $ac_popdir
42ecbf5e 1129 done
a2d91340
AC
1130fi
1131
42ecbf5e
DJ
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
a2d91340 1135
42ecbf5e
DJ
1136Copyright (C) 2003 Free Software Foundation, Inc.
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
a2d91340 1146
42ecbf5e
DJ
1147It was created by $as_me, which was
1148generated by GNU Autoconf 2.59. Invocation command line was
a2d91340 1149
42ecbf5e 1150 $ $0 $@
a2d91340 1151
42ecbf5e
DJ
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
252b5132 1185
42ecbf5e 1186} >&5
5d64ca4e 1187
42ecbf5e 1188cat >&5 <<_ACEOF
5d64ca4e 1189
5d64ca4e 1190
42ecbf5e
DJ
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
5d64ca4e 1194
42ecbf5e 1195_ACEOF
2469cfa2 1196
42ecbf5e
DJ
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
1200# Strip out --silent because we don't want to record it for future runs.
1201# Also quote any args containing shell meta-characters.
1202# Make two passes to allow for proper duplicate-argument suppression.
1203ac_configure_args=
1204ac_configure_args0=
1205ac_configure_args1=
1206ac_sep=
1207ac_must_keep_next=false
1208for ac_pass in 1 2
1209do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
1245done
1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log. We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279}
1280 echo
1281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1428 fi;;
1429 esac
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1432 case $ac_new_val in
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1436 esac
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440 esac
1441 fi
1442done
1443if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1449fi
1450
1451ac_ext=c
1452ac_cpp='$CPP $CPPFLAGS'
1453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476ac_aux_dir=
1477for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1478 if test -f $ac_dir/install-sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install-sh -c"
1481 break
1482 elif test -f $ac_dir/install.sh; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/install.sh -c"
1485 break
1486 elif test -f $ac_dir/shtool; then
1487 ac_aux_dir=$ac_dir
1488 ac_install_sh="$ac_aux_dir/shtool install -c"
1489 break
1490 fi
1491done
1492if test -z "$ac_aux_dir"; then
1493 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1494echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1495 { (exit 1); exit 1; }; }
1496fi
1497ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1498ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1499ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1500
1501# Make sure we can run config.sub.
1502$ac_config_sub sun4 >/dev/null 2>&1 ||
1503 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1504echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1505 { (exit 1); exit 1; }; }
1506
1507echo "$as_me:$LINENO: checking build system type" >&5
1508echo $ECHO_N "checking build system type... $ECHO_C" >&6
1509if test "${ac_cv_build+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1511else
1512 ac_cv_build_alias=$build_alias
1513test -z "$ac_cv_build_alias" &&
1514 ac_cv_build_alias=`$ac_config_guess`
1515test -z "$ac_cv_build_alias" &&
1516 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1517echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1518 { (exit 1); exit 1; }; }
1519ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1520 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1521echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524fi
1525echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1526echo "${ECHO_T}$ac_cv_build" >&6
1527build=$ac_cv_build
1528build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1529build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1530build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1531
1532
1533echo "$as_me:$LINENO: checking host system type" >&5
1534echo $ECHO_N "checking host system type... $ECHO_C" >&6
1535if test "${ac_cv_host+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 ac_cv_host_alias=$host_alias
1539test -z "$ac_cv_host_alias" &&
1540 ac_cv_host_alias=$ac_cv_build_alias
1541ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1542 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1543echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1544 { (exit 1); exit 1; }; }
1545
1546fi
1547echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1548echo "${ECHO_T}$ac_cv_host" >&6
1549host=$ac_cv_host
1550host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1551host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1552host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1553
1554
1555echo "$as_me:$LINENO: checking target system type" >&5
1556echo $ECHO_N "checking target system type... $ECHO_C" >&6
1557if test "${ac_cv_target+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 ac_cv_target_alias=$target_alias
1561test "x$ac_cv_target_alias" = "x" &&
1562 ac_cv_target_alias=$ac_cv_host_alias
1563ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1565echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1567
1568fi
1569echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1570echo "${ECHO_T}$ac_cv_target" >&6
1571target=$ac_cv_target
1572target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575
1576
1577# The aliases save the names the user supplied, while $host etc.
1578# will get canonicalized.
1579test -n "$target_alias" &&
1580 test "$program_prefix$program_suffix$program_transform_name" = \
1581 NONENONEs,x,x, &&
1582 program_prefix=${target_alias}-
1583ac_ext=c
1584ac_cpp='$CPP $CPPFLAGS'
1585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588if test -n "$ac_tool_prefix"; then
1589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1590set dummy ${ac_tool_prefix}gcc; ac_word=$2
1591echo "$as_me:$LINENO: checking for $ac_word" >&5
1592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598else
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
1611done
1612
1613fi
1614fi
1615CC=$ac_cv_prog_CC
1616if test -n "$CC"; then
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618echo "${ECHO_T}$CC" >&6
1619else
1620 echo "$as_me:$LINENO: result: no" >&5
1621echo "${ECHO_T}no" >&6
1622fi
1623
1624fi
1625if test -z "$ac_cv_prog_CC"; then
1626 ac_ct_CC=$CC
1627 # Extract the first word of "gcc", so it can be a program name with args.
1628set dummy gcc; ac_word=$2
1629echo "$as_me:$LINENO: checking for $ac_word" >&5
1630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634 if test -n "$ac_ct_CC"; then
1635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1636else
1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_ac_ct_CC="gcc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1647 fi
1648done
1649done
1650
1651fi
1652fi
1653ac_ct_CC=$ac_cv_prog_ac_ct_CC
1654if test -n "$ac_ct_CC"; then
1655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1656echo "${ECHO_T}$ac_ct_CC" >&6
1657else
1658 echo "$as_me:$LINENO: result: no" >&5
1659echo "${ECHO_T}no" >&6
1660fi
1661
1662 CC=$ac_ct_CC
1663else
1664 CC="$ac_cv_prog_CC"
1665fi
1666
1667if test -z "$CC"; then
1668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1670set dummy ${ac_tool_prefix}cc; ac_word=$2
1671echo "$as_me:$LINENO: checking for $ac_word" >&5
1672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673if test "${ac_cv_prog_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC="$CC" # Let the user override the test.
1678else
1679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680for as_dir in $PATH
1681do
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_CC="${ac_tool_prefix}cc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1689 fi
1690done
1691done
1692
1693fi
1694fi
1695CC=$ac_cv_prog_CC
1696if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698echo "${ECHO_T}$CC" >&6
1699else
1700 echo "$as_me:$LINENO: result: no" >&5
1701echo "${ECHO_T}no" >&6
1702fi
1703
1704fi
1705if test -z "$ac_cv_prog_CC"; then
1706 ac_ct_CC=$CC
1707 # Extract the first word of "cc", so it can be a program name with args.
1708set dummy cc; ac_word=$2
1709echo "$as_me:$LINENO: checking for $ac_word" >&5
1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714 if test -n "$ac_ct_CC"; then
1715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1716else
1717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718for as_dir in $PATH
1719do
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_CC="cc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1727 fi
1728done
1729done
1730
1731fi
1732fi
1733ac_ct_CC=$ac_cv_prog_ac_ct_CC
1734if test -n "$ac_ct_CC"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736echo "${ECHO_T}$ac_ct_CC" >&6
1737else
1738 echo "$as_me:$LINENO: result: no" >&5
1739echo "${ECHO_T}no" >&6
1740fi
1741
1742 CC=$ac_ct_CC
1743else
1744 CC="$ac_cv_prog_CC"
1745fi
1746
1747fi
1748if test -z "$CC"; then
1749 # Extract the first word of "cc", so it can be a program name with args.
1750set dummy cc; ac_word=$2
1751echo "$as_me:$LINENO: checking for $ac_word" >&5
1752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC="$CC" # Let the user override the test.
1758else
1759 ac_prog_rejected=no
1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1768 ac_prog_rejected=yes
1769 continue
1770 fi
1771 ac_cv_prog_CC="cc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 break 2
1774 fi
1775done
1776done
1777
1778if test $ac_prog_rejected = yes; then
1779 # We found a bogon in the path, so make sure we never use it.
1780 set dummy $ac_cv_prog_CC
1781 shift
1782 if test $# != 0; then
1783 # We chose a different compiler from the bogus one.
1784 # However, it has the same basename, so the bogon will be chosen
1785 # first if we set CC to just the basename; use the full file name.
1786 shift
1787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1788 fi
1789fi
1790fi
1791fi
1792CC=$ac_cv_prog_CC
1793if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795echo "${ECHO_T}$CC" >&6
1796else
1797 echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801fi
1802if test -z "$CC"; then
1803 if test -n "$ac_tool_prefix"; then
1804 for ac_prog in cl
1805 do
1806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827done
1828done
1829
1830fi
1831fi
1832CC=$ac_cv_prog_CC
1833if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835echo "${ECHO_T}$CC" >&6
1836else
1837 echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841 test -n "$CC" && break
1842 done
1843fi
1844if test -z "$CC"; then
1845 ac_ct_CC=$CC
1846 for ac_prog in cl
1847do
1848 # Extract the first word of "$ac_prog", so it can be a program name with args.
1849set dummy $ac_prog; ac_word=$2
1850echo "$as_me:$LINENO: checking for $ac_word" >&5
1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857else
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="$ac_prog"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1868 fi
1869done
1870done
1871
1872fi
1873fi
1874ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877echo "${ECHO_T}$ac_ct_CC" >&6
1878else
1879 echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
1882
1883 test -n "$ac_ct_CC" && break
1884done
1885
1886 CC=$ac_ct_CC
1887fi
1888
1889fi
1890
1891
1892test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1893See \`config.log' for more details." >&5
1894echo "$as_me: error: no acceptable C compiler found in \$PATH
1895See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
1897
1898# Provide some information about the compiler.
1899echo "$as_me:$LINENO:" \
1900 "checking for C compiler version" >&5
1901ac_compiler=`set X $ac_compile; echo $2`
1902{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1903 (eval $ac_compiler --version </dev/null >&5) 2>&5
1904 ac_status=$?
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }
1907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1908 (eval $ac_compiler -v </dev/null >&5) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }
1912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1913 (eval $ac_compiler -V </dev/null >&5) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1917
1918cat >conftest.$ac_ext <<_ACEOF
1919/* confdefs.h. */
1920_ACEOF
1921cat confdefs.h >>conftest.$ac_ext
1922cat >>conftest.$ac_ext <<_ACEOF
1923/* end confdefs.h. */
1924
1925int
1926main ()
1927{
1928
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933ac_clean_files_save=$ac_clean_files
1934ac_clean_files="$ac_clean_files a.out a.exe b.out"
1935# Try to create an executable without -o first, disregard a.out.
1936# It will help us diagnose broken compilers, and finding out an intuition
1937# of exeext.
1938echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1939echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1940ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1941if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1942 (eval $ac_link_default) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 # Find the output, starting from the most likely. This scheme is
1947# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1948# resort.
1949
1950# Be careful to initialize this variable, since it used to be cached.
1951# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1952ac_cv_exeext=
1953# b.out is created by i960 compilers.
1954for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1955do
1956 test -f "$ac_file" || continue
1957 case $ac_file in
1958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1959 ;;
1960 conftest.$ac_ext )
1961 # This is the source file.
1962 ;;
1963 [ab].out )
1964 # We found the default executable, but exeext='' is most
1965 # certainly right.
1966 break;;
1967 *.* )
1968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1969 # FIXME: I believe we export ac_cv_exeext for Libtool,
1970 # but it would be cool to find out if it's true. Does anybody
1971 # maintain Libtool? --akim.
1972 export ac_cv_exeext
1973 break;;
1974 * )
1975 break;;
1976 esac
1977done
1978else
1979 echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1983See \`config.log' for more details." >&5
1984echo "$as_me: error: C compiler cannot create executables
1985See \`config.log' for more details." >&2;}
1986 { (exit 77); exit 77; }; }
1987fi
1988
1989ac_exeext=$ac_cv_exeext
1990echo "$as_me:$LINENO: result: $ac_file" >&5
1991echo "${ECHO_T}$ac_file" >&6
1992
1993# Check the compiler produces executables we can run. If not, either
1994# the compiler is broken, or we cross compile.
1995echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1996echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1997# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1998# If not cross compiling, check that we can run a simple program.
1999if test "$cross_compiling" != yes; then
2000 if { ac_try='./$ac_file'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2006 cross_compiling=no
2007 else
2008 if test "$cross_compiling" = maybe; then
2009 cross_compiling=yes
2010 else
2011 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2012If you meant to cross compile, use \`--host'.
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: cannot run C compiled programs.
2015If you meant to cross compile, use \`--host'.
2016See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
2018 fi
2019 fi
2020fi
2021echo "$as_me:$LINENO: result: yes" >&5
2022echo "${ECHO_T}yes" >&6
2023
2024rm -f a.out a.exe conftest$ac_cv_exeext b.out
2025ac_clean_files=$ac_clean_files_save
2026# Check the compiler produces executables we can run. If not, either
2027# the compiler is broken, or we cross compile.
2028echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2029echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2030echo "$as_me:$LINENO: result: $cross_compiling" >&5
2031echo "${ECHO_T}$cross_compiling" >&6
2032
2033echo "$as_me:$LINENO: checking for suffix of executables" >&5
2034echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2036 (eval $ac_link) 2>&5
2037 ac_status=$?
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; then
2040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2041# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2042# work properly (i.e., refer to `conftest.exe'), while it won't with
2043# `rm'.
2044for ac_file in conftest.exe conftest conftest.*; do
2045 test -f "$ac_file" || continue
2046 case $ac_file in
2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049 export ac_cv_exeext
2050 break;;
2051 * ) break;;
2052 esac
2053done
2054else
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2056See \`config.log' for more details." >&5
2057echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2058See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2060fi
2061
2062rm -f conftest$ac_cv_exeext
2063echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2064echo "${ECHO_T}$ac_cv_exeext" >&6
2065
2066rm -f conftest.$ac_ext
2067EXEEXT=$ac_cv_exeext
2068ac_exeext=$EXEEXT
2069echo "$as_me:$LINENO: checking for suffix of object files" >&5
2070echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2071if test "${ac_cv_objext+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074 cat >conftest.$ac_ext <<_ACEOF
2075/* confdefs.h. */
2076_ACEOF
2077cat confdefs.h >>conftest.$ac_ext
2078cat >>conftest.$ac_ext <<_ACEOF
2079/* end confdefs.h. */
2080
2081int
2082main ()
2083{
2084
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089rm -f conftest.o conftest.obj
2090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2096 case $ac_file in
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2099 break;;
2100 esac
2101done
2102else
2103 echo "$as_me: failed program was:" >&5
2104sed 's/^/| /' conftest.$ac_ext >&5
2105
2106{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2107See \`config.log' for more details." >&5
2108echo "$as_me: error: cannot compute suffix of object files: cannot compile
2109See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2111fi
2112
2113rm -f conftest.$ac_cv_objext conftest.$ac_ext
2114fi
2115echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2116echo "${ECHO_T}$ac_cv_objext" >&6
2117OBJEXT=$ac_cv_objext
2118ac_objext=$OBJEXT
2119echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2120echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2121if test "${ac_cv_c_compiler_gnu+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124 cat >conftest.$ac_ext <<_ACEOF
2125/* confdefs.h. */
2126_ACEOF
2127cat confdefs.h >>conftest.$ac_ext
2128cat >>conftest.$ac_ext <<_ACEOF
2129/* end confdefs.h. */
2130
2131int
2132main ()
2133{
2134#ifndef __GNUC__
2135 choke me
2136#endif
2137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
502bdb00
JW
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
42ecbf5e
DJ
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_compiler_gnu=yes
2165else
2166 echo "$as_me: failed program was:" >&5
2167sed 's/^/| /' conftest.$ac_ext >&5
2168
2169ac_compiler_gnu=no
2170fi
2171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172ac_cv_c_compiler_gnu=$ac_compiler_gnu
2173
2174fi
2175echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2176echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2177GCC=`test $ac_compiler_gnu = yes && echo yes`
2178ac_test_CFLAGS=${CFLAGS+set}
2179ac_save_CFLAGS=$CFLAGS
2180CFLAGS="-g"
2181echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2182echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2183if test "${ac_cv_prog_cc_g+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185else
2186 cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h. */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
2191/* end confdefs.h. */
2192
2193int
2194main ()
2195{
2196
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201rm -f conftest.$ac_objext
2202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>conftest.er1
2204 ac_status=$?
2205 grep -v '^ *+' conftest.er1 >conftest.err
2206 rm -f conftest.er1
2207 cat conftest.err >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
502bdb00
JW
2210 { ac_try='test -z "$ac_c_werror_flag"
2211 || test ! -s conftest.err'
42ecbf5e
DJ
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; } &&
2217 { ac_try='test -s conftest.$ac_objext'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2223 ac_cv_prog_cc_g=yes
2224else
2225 echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228ac_cv_prog_cc_g=no
2229fi
2230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2231fi
2232echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2234if test "$ac_test_CFLAGS" = set; then
2235 CFLAGS=$ac_save_CFLAGS
2236elif test $ac_cv_prog_cc_g = yes; then
2237 if test "$GCC" = yes; then
2238 CFLAGS="-g -O2"
2239 else
2240 CFLAGS="-g"
2241 fi
2242else
2243 if test "$GCC" = yes; then
2244 CFLAGS="-O2"
2245 else
2246 CFLAGS=
2247 fi
2248fi
2249echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2250echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2251if test "${ac_cv_prog_cc_stdc+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 ac_cv_prog_cc_stdc=no
2255ac_save_CC=$CC
2256cat >conftest.$ac_ext <<_ACEOF
2257/* confdefs.h. */
2258_ACEOF
2259cat confdefs.h >>conftest.$ac_ext
2260cat >>conftest.$ac_ext <<_ACEOF
2261/* end confdefs.h. */
2262#include <stdarg.h>
2263#include <stdio.h>
2264#include <sys/types.h>
2265#include <sys/stat.h>
2266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2267struct buf { int x; };
2268FILE * (*rcsopen) (struct buf *, struct stat *, int);
2269static char *e (p, i)
2270 char **p;
2271 int i;
2272{
2273 return p[i];
2274}
2275static char *f (char * (*g) (char **, int), char **p, ...)
2276{
2277 char *s;
2278 va_list v;
2279 va_start (v,p);
2280 s = g (p, va_arg (v,int));
2281 va_end (v);
2282 return s;
2283}
2284
2285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2286 function prototypes and stuff, but not '\xHH' hex character constants.
2287 These don't provoke an error unfortunately, instead are silently treated
2288 as 'x'. The following induces an error, until -std1 is added to get
2289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2290 array size at least. It's necessary to write '\x00'==0 to get something
2291 that's true only with -std1. */
2292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2293
2294int test (int i, double x);
2295struct s1 {int (*f) (int a);};
2296struct s2 {int (*f) (double a);};
2297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2298int argc;
2299char **argv;
2300int
2301main ()
2302{
2303return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2304 ;
2305 return 0;
2306}
2307_ACEOF
2308# Don't try gcc -ansi; that turns off useful extensions and
2309# breaks some systems' header files.
2310# AIX -qlanglvl=ansi
2311# Ultrix and OSF/1 -std1
2312# HP-UX 10.20 and later -Ae
2313# HP-UX older versions -Aa -D_HPUX_SOURCE
2314# SVR4 -Xc -D__EXTENSIONS__
2315for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2316do
2317 CC="$ac_save_CC $ac_arg"
2318 rm -f conftest.$ac_objext
2319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>conftest.er1
2321 ac_status=$?
2322 grep -v '^ *+' conftest.er1 >conftest.err
2323 rm -f conftest.er1
2324 cat conftest.err >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
502bdb00
JW
2327 { ac_try='test -z "$ac_c_werror_flag"
2328 || test ! -s conftest.err'
42ecbf5e
DJ
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2340 ac_cv_prog_cc_stdc=$ac_arg
2341break
2342else
2343 echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346fi
2347rm -f conftest.err conftest.$ac_objext
2348done
2349rm -f conftest.$ac_ext conftest.$ac_objext
2350CC=$ac_save_CC
2351
2352fi
2353
2354case "x$ac_cv_prog_cc_stdc" in
2355 x|xno)
2356 echo "$as_me:$LINENO: result: none needed" >&5
2357echo "${ECHO_T}none needed" >&6 ;;
2358 *)
2359 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2360echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2361 CC="$CC $ac_cv_prog_cc_stdc" ;;
2362esac
2363
2364# Some people use a C++ compiler to compile C. Since we use `exit',
2365# in C++ we need to declare it. In case someone uses the same compiler
2366# for both compiling C and C++ we need to have the C++ compiler decide
2367# the declaration of exit, since it's the most demanding environment.
2368cat >conftest.$ac_ext <<_ACEOF
2369#ifndef __cplusplus
2370 choke me
2371#endif
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2376 ac_status=$?
2377 grep -v '^ *+' conftest.er1 >conftest.err
2378 rm -f conftest.er1
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
502bdb00
JW
2382 { ac_try='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
42ecbf5e
DJ
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2395 for ac_declaration in \
2396 '' \
2397 'extern "C" void std::exit (int) throw (); using std::exit;' \
2398 'extern "C" void std::exit (int); using std::exit;' \
2399 'extern "C" void exit (int) throw ();' \
2400 'extern "C" void exit (int);' \
2401 'void exit (int);'
2402do
2403 cat >conftest.$ac_ext <<_ACEOF
2404/* confdefs.h. */
2405_ACEOF
2406cat confdefs.h >>conftest.$ac_ext
2407cat >>conftest.$ac_ext <<_ACEOF
2408/* end confdefs.h. */
2409$ac_declaration
2410#include <stdlib.h>
2411int
2412main ()
2413{
2414exit (42);
2415 ;
2416 return 0;
2417}
2418_ACEOF
2419rm -f conftest.$ac_objext
2420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
502bdb00
JW
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
42ecbf5e
DJ
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 :
2442else
2443 echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446continue
2447fi
2448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 cat >conftest.$ac_ext <<_ACEOF
2450/* confdefs.h. */
2451_ACEOF
2452cat confdefs.h >>conftest.$ac_ext
2453cat >>conftest.$ac_ext <<_ACEOF
2454/* end confdefs.h. */
2455$ac_declaration
2456int
2457main ()
2458{
2459exit (42);
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>conftest.er1
2467 ac_status=$?
2468 grep -v '^ *+' conftest.er1 >conftest.err
2469 rm -f conftest.er1
2470 cat conftest.err >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
502bdb00
JW
2473 { ac_try='test -z "$ac_c_werror_flag"
2474 || test ! -s conftest.err'
42ecbf5e
DJ
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 break
2487else
2488 echo "$as_me: failed program was:" >&5
2489sed 's/^/| /' conftest.$ac_ext >&5
2490
2491fi
2492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493done
2494rm -f conftest*
2495if test -n "$ac_declaration"; then
2496 echo '#ifdef __cplusplus' >>confdefs.h
2497 echo $ac_declaration >>confdefs.h
2498 echo '#endif' >>confdefs.h
2499fi
2500
2501else
2502 echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505fi
2506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2507ac_ext=c
2508ac_cpp='$CPP $CPPFLAGS'
2509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512
2513
2514echo "$as_me:$LINENO: checking for library containing strerror" >&5
2515echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2516if test "${ac_cv_search_strerror+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519 ac_func_search_save_LIBS=$LIBS
2520ac_cv_search_strerror=no
2521cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h. */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h. */
2527
2528/* Override any gcc2 internal prototype to avoid an error. */
2529#ifdef __cplusplus
2530extern "C"
2531#endif
2532/* We use char because int might match the return type of a gcc2
2533 builtin and then its argument prototype would still apply. */
2534char strerror ();
2535int
2536main ()
2537{
2538strerror ();
2539 ;
2540 return 0;
2541}
2542_ACEOF
2543rm -f conftest.$ac_objext conftest$ac_exeext
2544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2545 (eval $ac_link) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
502bdb00
JW
2552 { ac_try='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
42ecbf5e
DJ
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest$ac_exeext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2565 ac_cv_search_strerror="none required"
2566else
2567 echo "$as_me: failed program was:" >&5
2568sed 's/^/| /' conftest.$ac_ext >&5
2569
2570fi
2571rm -f conftest.err conftest.$ac_objext \
2572 conftest$ac_exeext conftest.$ac_ext
2573if test "$ac_cv_search_strerror" = no; then
2574 for ac_lib in cposix; do
2575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2576 cat >conftest.$ac_ext <<_ACEOF
2577/* confdefs.h. */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
2581/* end confdefs.h. */
2582
2583/* Override any gcc2 internal prototype to avoid an error. */
2584#ifdef __cplusplus
2585extern "C"
2586#endif
2587/* We use char because int might match the return type of a gcc2
2588 builtin and then its argument prototype would still apply. */
2589char strerror ();
2590int
2591main ()
2592{
2593strerror ();
2594 ;
2595 return 0;
2596}
2597_ACEOF
2598rm -f conftest.$ac_objext conftest$ac_exeext
2599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2600 (eval $ac_link) 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
502bdb00
JW
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
42ecbf5e
DJ
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest$ac_exeext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 ac_cv_search_strerror="-l$ac_lib"
2621break
2622else
2623 echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626fi
2627rm -f conftest.err conftest.$ac_objext \
2628 conftest$ac_exeext conftest.$ac_ext
2629 done
2630fi
2631LIBS=$ac_func_search_save_LIBS
2632fi
2633echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2634echo "${ECHO_T}$ac_cv_search_strerror" >&6
2635if test "$ac_cv_search_strerror" != no; then
2636 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2637
2638fi
e5a52504
MM
2639
2640
2641BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
42ecbf5e 2642am__api_version="1.9"
e5a52504
MM
2643# Find a good install program. We prefer a C program (faster),
2644# so one script is as good as another. But avoid the broken or
2645# incompatible versions:
2646# SysV /etc/install, /usr/sbin/install
2647# SunOS /usr/etc/install
2648# IRIX /sbin/install
2649# AIX /bin/install
42ecbf5e 2650# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
2651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2652# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 2654# OS/2's system install, which has a completely different semantic
e5a52504 2655# ./install, which can be erroneously created by make from ./install.sh.
42ecbf5e
DJ
2656echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2657echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5a52504 2658if test -z "$INSTALL"; then
42ecbf5e
DJ
2659if test "${ac_cv_path_install+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 2661else
42ecbf5e
DJ
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 # Account for people who put trailing slashes in PATH elements.
2668case $as_dir/ in
2669 ./ | .// | /cC/* | \
2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2671 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2672 /usr/ucb/* ) ;;
2673 *)
2674 # OSF1 and SCO ODT 3.0 have their own names for install.
2675 # Don't use installbsd from OSF since it installs stuff as root
2676 # by default.
2677 for ac_prog in ginstall scoinst install; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2680 if test $ac_prog = install &&
42ecbf5e 2681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2682 # AIX install. It has an incompatible calling convention.
2683 :
42ecbf5e
DJ
2684 elif test $ac_prog = install &&
2685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # program-specific install script used by HP pwplus--don't use.
2687 :
252b5132 2688 else
42ecbf5e
DJ
2689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690 break 3
252b5132
RH
2691 fi
2692 fi
2693 done
42ecbf5e
DJ
2694 done
2695 ;;
2696esac
2697done
2698
252b5132
RH
2699
2700fi
2701 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2702 INSTALL=$ac_cv_path_install
252b5132
RH
2703 else
2704 # As a last resort, use the slow shell script. We don't cache a
2705 # path for INSTALL within a source directory, because that will
2706 # break other packages using the cache if that directory is
2707 # removed, or if the path is relative.
42ecbf5e 2708 INSTALL=$ac_install_sh
252b5132
RH
2709 fi
2710fi
42ecbf5e
DJ
2711echo "$as_me:$LINENO: result: $INSTALL" >&5
2712echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2713
2714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2715# It thinks the first close brace ends the variable substitution.
2716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2717
42ecbf5e 2718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2719
2720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2721
42ecbf5e
DJ
2722echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2723echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2724# Just in case
2725sleep 1
42ecbf5e 2726echo timestamp > conftest.file
252b5132
RH
2727# Do `set' in a subshell so we don't clobber the current shell's
2728# arguments. Must try -L first in case configure is actually a
2729# symlink; some systems play weird games with the mod time of symlinks
2730# (eg FreeBSD returns the mod time of the symlink's containing
2731# directory).
2732if (
42ecbf5e 2733 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2734 if test "$*" = "X"; then
2735 # -L didn't work.
42ecbf5e 2736 set X `ls -t $srcdir/configure conftest.file`
252b5132 2737 fi
42ecbf5e
DJ
2738 rm -f conftest.file
2739 if test "$*" != "X $srcdir/configure conftest.file" \
2740 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2741
2742 # If neither matched, then we have a broken ls. This can happen
2743 # if, for instance, CONFIG_SHELL is bash and it inherits a
2744 # broken ls alias from the environment. This has actually
2745 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2746 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2747alias in your environment" >&5
2748echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2749alias in your environment" >&2;}
2750 { (exit 1); exit 1; }; }
252b5132
RH
2751 fi
2752
42ecbf5e 2753 test "$2" = conftest.file
252b5132
RH
2754 )
2755then
2756 # Ok.
2757 :
2758else
42ecbf5e
DJ
2759 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2760Check your system clock" >&5
2761echo "$as_me: error: newly created file is older than distributed files!
2762Check your system clock" >&2;}
2763 { (exit 1); exit 1; }; }
252b5132 2764fi
42ecbf5e
DJ
2765echo "$as_me:$LINENO: result: yes" >&5
2766echo "${ECHO_T}yes" >&6
252b5132 2767test "$program_prefix" != NONE &&
42ecbf5e 2768 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2769# Use a double $ so make ignores it.
2770test "$program_suffix" != NONE &&
42ecbf5e
DJ
2771 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2772# Double any \ or $. echo might interpret backslashes.
2773# By default was `s,x,x', remove it if useless.
2774cat <<\_ACEOF >conftest.sed
2775s/[\\$]/&&/g;s/;s,x,x,$//
2776_ACEOF
2777program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2778rm conftest.sed
2779
2780# expand $ac_aux_dir to an absolute path
2781am_aux_dir=`cd $ac_aux_dir && pwd`
2782
2783test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2784# Use eval to expand $SHELL
2785if eval "$MISSING --run true"; then
2786 am_missing_run="$MISSING --run "
2787else
2788 am_missing_run=
2789 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2790echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2791fi
2792
2793if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2794 # We used to keeping the `.' as first argument, in order to
2795 # allow $(mkdir_p) to be used without argument. As in
2796 # $(mkdir_p) $(somedir)
2797 # where $(somedir) is conditionally defined. However this is wrong
2798 # for two reasons:
2799 # 1. if the package is installed by a user who cannot write `.'
2800 # make install will fail,
2801 # 2. the above comment should most certainly read
2802 # $(mkdir_p) $(DESTDIR)$(somedir)
2803 # so it does not work when $(somedir) is undefined and
2804 # $(DESTDIR) is not.
2805 # To support the latter case, we have to write
2806 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2807 # so the `.' trick is pointless.
2808 mkdir_p='mkdir -p --'
2809else
2810 # On NextStep and OpenStep, the `mkdir' command does not
2811 # recognize any option. It will interpret all options as
2812 # directories to create, and then abort because `.' already
2813 # exists.
2814 for d in ./-p ./--version;
2815 do
2816 test -d $d && rmdir $d
2817 done
2818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2819 if test -f "$ac_aux_dir/mkinstalldirs"; then
2820 mkdir_p='$(mkinstalldirs)'
2821 else
2822 mkdir_p='$(install_sh) -d'
2823 fi
2824fi
2825
2826for ac_prog in gawk mawk nawk awk
2827do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829set dummy $ac_prog; ac_word=$2
2830echo "$as_me:$LINENO: checking for $ac_word" >&5
2831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832if test "${ac_cv_prog_AWK+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834else
2835 if test -n "$AWK"; then
2836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_AWK="$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849done
2850done
2851
2852fi
2853fi
2854AWK=$ac_cv_prog_AWK
2855if test -n "$AWK"; then
2856 echo "$as_me:$LINENO: result: $AWK" >&5
2857echo "${ECHO_T}$AWK" >&6
2858else
2859 echo "$as_me:$LINENO: result: no" >&5
2860echo "${ECHO_T}no" >&6
2861fi
252b5132 2862
42ecbf5e
DJ
2863 test -n "$AWK" && break
2864done
252b5132 2865
42ecbf5e
DJ
2866echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2868set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2869if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2871else
42ecbf5e 2872 cat >conftest.make <<\_ACEOF
252b5132 2873all:
42ecbf5e
DJ
2874 @echo 'ac_maketemp="$(MAKE)"'
2875_ACEOF
252b5132 2876# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42ecbf5e 2877eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2878if test -n "$ac_maketemp"; then
2879 eval ac_cv_prog_make_${ac_make}_set=yes
2880else
2881 eval ac_cv_prog_make_${ac_make}_set=no
2882fi
42ecbf5e 2883rm -f conftest.make
252b5132
RH
2884fi
2885if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42ecbf5e
DJ
2886 echo "$as_me:$LINENO: result: yes" >&5
2887echo "${ECHO_T}yes" >&6
252b5132
RH
2888 SET_MAKE=
2889else
42ecbf5e
DJ
2890 echo "$as_me:$LINENO: result: no" >&5
2891echo "${ECHO_T}no" >&6
252b5132
RH
2892 SET_MAKE="MAKE=${MAKE-make}"
2893fi
2894
42ecbf5e
DJ
2895rm -rf .tst 2>/dev/null
2896mkdir .tst 2>/dev/null
2897if test -d .tst; then
2898 am__leading_dot=.
2899else
2900 am__leading_dot=_
2901fi
2902rmdir .tst 2>/dev/null
2903
2904DEPDIR="${am__leading_dot}deps"
2905
2906 ac_config_commands="$ac_config_commands depfiles"
2907
2908
2909am_make=${MAKE-make}
2910cat > confinc << 'END'
2911am__doit:
2912 @echo done
2913.PHONY: am__doit
2914END
2915# If we don't find an include directive, just comment out the code.
2916echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2917echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2918am__include="#"
2919am__quote=
2920_am_result=none
2921# First try GNU make style include.
2922echo "include confinc" > confmf
2923# We grep out `Entering directory' and `Leaving directory'
2924# messages which can occur if `w' ends up in MAKEFLAGS.
2925# In particular we don't look at `^make:' because GNU make might
2926# be invoked under some other name (usually "gmake"), in which
2927# case it prints its new name instead of `make'.
2928if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2929 am__include=include
2930 am__quote=
2931 _am_result=GNU
2932fi
2933# Now try BSD make style include.
2934if test "$am__include" = "#"; then
2935 echo '.include "confinc"' > confmf
2936 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2937 am__include=.include
2938 am__quote="\""
2939 _am_result=BSD
2940 fi
2941fi
2942
2943
2944echo "$as_me:$LINENO: result: $_am_result" >&5
2945echo "${ECHO_T}$_am_result" >&6
2946rm -f confinc confmf
2947
2948# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2949if test "${enable_dependency_tracking+set}" = set; then
2950 enableval="$enable_dependency_tracking"
2951
2952fi;
2953if test "x$enable_dependency_tracking" != xno; then
2954 am_depcomp="$ac_aux_dir/depcomp"
2955 AMDEPBACKSLASH='\'
2956fi
2957
2958
2959if test "x$enable_dependency_tracking" != xno; then
2960 AMDEP_TRUE=
2961 AMDEP_FALSE='#'
2962else
2963 AMDEP_TRUE='#'
2964 AMDEP_FALSE=
2965fi
2966
e5a52504
MM
2967
2968
42ecbf5e
DJ
2969# test to see if srcdir already configured
2970if test "`cd $srcdir && pwd`" != "`pwd`" &&
2971 test -f $srcdir/config.status; then
2972 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2973echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2974 { (exit 1); exit 1; }; }
2975fi
252b5132 2976
42ecbf5e
DJ
2977# test whether we have cygpath
2978if test -z "$CYGPATH_W"; then
2979 if (cygpath --version) >/dev/null 2>/dev/null; then
2980 CYGPATH_W='cygpath -w'
2981 else
2982 CYGPATH_W=echo
2983 fi
252b5132 2984fi
42ecbf5e
DJ
2985
2986
2987# Define the identity of the package.
2988 PACKAGE=ld
2989 VERSION=${BFD_VERSION}
2990
2991
2992cat >>confdefs.h <<_ACEOF
e5a52504 2993#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
2994_ACEOF
2995
252b5132 2996
42ecbf5e 2997cat >>confdefs.h <<_ACEOF
e5a52504 2998#define VERSION "$VERSION"
42ecbf5e
DJ
2999_ACEOF
3000
3001# Some tools Automake needs.
3002
3003ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3004
3005
3006AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3007
3008
3009AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3010
3011
3012AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3013
e5a52504 3014
42ecbf5e 3015MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3016
42ecbf5e 3017install_sh=${install_sh-"$am_aux_dir/install-sh"}
e5a52504 3018
42ecbf5e
DJ
3019# Installed binaries are usually stripped using `strip' when the user
3020# run `make install-strip'. However `strip' might not be the right
3021# tool to use in cross-compilation environments, therefore Automake
3022# will honor the `STRIP' environment variable to overrule this program.
3023if test "$cross_compiling" != no; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3026set dummy ${ac_tool_prefix}strip; ac_word=$2
3027echo "$as_me:$LINENO: checking for $ac_word" >&5
3028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3029if test "${ac_cv_prog_STRIP+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032 if test -n "$STRIP"; then
3033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046done
3047done
3048
3049fi
3050fi
3051STRIP=$ac_cv_prog_STRIP
3052if test -n "$STRIP"; then
3053 echo "$as_me:$LINENO: result: $STRIP" >&5
3054echo "${ECHO_T}$STRIP" >&6
2469cfa2 3055else
42ecbf5e
DJ
3056 echo "$as_me:$LINENO: result: no" >&5
3057echo "${ECHO_T}no" >&6
3058fi
3059
e5a52504 3060fi
42ecbf5e
DJ
3061if test -z "$ac_cv_prog_STRIP"; then
3062 ac_ct_STRIP=$STRIP
3063 # Extract the first word of "strip", so it can be a program name with args.
3064set dummy strip; ac_word=$2
3065echo "$as_me:$LINENO: checking for $ac_word" >&5
3066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070 if test -n "$ac_ct_STRIP"; then
3071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_ac_ct_STRIP="strip"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084done
3085done
e5a52504 3086
42ecbf5e
DJ
3087 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3088fi
3089fi
3090ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3091if test -n "$ac_ct_STRIP"; then
3092 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3093echo "${ECHO_T}$ac_ct_STRIP" >&6
2469cfa2 3094else
42ecbf5e
DJ
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
2469cfa2
NC
3097fi
3098
42ecbf5e 3099 STRIP=$ac_ct_STRIP
2469cfa2 3100else
42ecbf5e
DJ
3101 STRIP="$ac_cv_prog_STRIP"
3102fi
3103
2469cfa2 3104fi
42ecbf5e
DJ
3105INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3106
3107# We need awk for the "check" target. The system "awk" is bad on
3108# some platforms.
3109# Always define AMTAR for backward compatibility.
3110
3111AMTAR=${AMTAR-"${am_missing_run}tar"}
3112
3113am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3114
3115
3116
3117
3118depcc="$CC" am_compiler_list=
3119
3120echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3121echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3122if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3126 # We make a subdir and do the tests there. Otherwise we can end up
3127 # making bogus files that we don't know about and never remove. For
3128 # instance it was reported that on HP-UX the gcc test will end up
3129 # making a dummy file named `D' -- because `-MD' means `put the output
3130 # in D'.
3131 mkdir conftest.dir
3132 # Copy depcomp to subdir because otherwise we won't find it if we're
3133 # using a relative directory.
3134 cp "$am_depcomp" conftest.dir
3135 cd conftest.dir
3136 # We will build objects and dependencies in a subdirectory because
3137 # it helps to detect inapplicable dependency modes. For instance
3138 # both Tru64's cc and ICC support -MD to output dependencies as a
3139 # side effect of compilation, but ICC will put the dependencies in
3140 # the current directory while Tru64 will put them in the object
3141 # directory.
3142 mkdir sub
3143
3144 am_cv_CC_dependencies_compiler_type=none
3145 if test "$am_compiler_list" = ""; then
3146 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3147 fi
3148 for depmode in $am_compiler_list; do
3149 # Setup a source with many dependencies, because some compilers
3150 # like to wrap large dependency lists on column 80 (with \), and
3151 # we should not choose a depcomp mode which is confused by this.
3152 #
3153 # We need to recreate these files for each test, as the compiler may
3154 # overwrite some of them when testing with obscure command lines.
3155 # This happens at least with the AIX C compiler.
3156 : > sub/conftest.c
3157 for i in 1 2 3 4 5 6; do
3158 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3159 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3160 # Solaris 8's {/usr,}/bin/sh.
3161 touch sub/conftst$i.h
3162 done
3163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3164
3165 case $depmode in
3166 nosideeffect)
3167 # after this tag, mechanisms are not by side-effect, so they'll
3168 # only be used when explicitly requested
3169 if test "x$enable_dependency_tracking" = xyes; then
3170 continue
3171 else
3172 break
3173 fi
3174 ;;
3175 none) break ;;
3176 esac
3177 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3178 # mode. It turns out that the SunPro C++ compiler does not properly
3179 # handle `-M -o', and we need to detect this.
3180 if depmode=$depmode \
3181 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3183 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3184 >/dev/null 2>conftest.err &&
3185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3186 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3188 # icc doesn't choke on unknown options, it will just issue warnings
3189 # or remarks (even with -Werror). So we grep stderr for any message
3190 # that says an option was ignored or not supported.
3191 # When given -MP, icc 7.0 and 7.1 complain thusly:
3192 # icc: Command line warning: ignoring option '-M'; no argument required
3193 # The diagnosis changed in icc 8.0:
3194 # icc: Command line remark: option '-MP' not supported
3195 if (grep 'ignoring option' conftest.err ||
3196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3197 am_cv_CC_dependencies_compiler_type=$depmode
3198 break
3199 fi
3200 fi
3201 done
2469cfa2 3202
42ecbf5e
DJ
3203 cd ..
3204 rm -rf conftest.dir
2469cfa2 3205else
42ecbf5e
DJ
3206 am_cv_CC_dependencies_compiler_type=none
3207fi
3208
2469cfa2 3209fi
42ecbf5e
DJ
3210echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3211echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3212CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3213
2469cfa2 3214
42ecbf5e
DJ
3215
3216if
3217 test "x$enable_dependency_tracking" != xno \
3218 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3219 am__fastdepCC_TRUE=
3220 am__fastdepCC_FALSE='#'
2469cfa2 3221else
42ecbf5e
DJ
3222 am__fastdepCC_TRUE='#'
3223 am__fastdepCC_FALSE=
2469cfa2 3224fi
2469cfa2 3225
2469cfa2 3226
e5a52504 3227
42ecbf5e 3228
d7040cdb
SE
3229
3230
3231macro_version='2.1a'
3232macro_revision='1.2435'
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245ltmain="$ac_aux_dir/ltmain.sh"
3246
3247# Set options
3248
3249enable_dlopen=no
3250
3251
3252enable_win32_dll=no
3253
3254
e5a52504
MM
3255# Check whether --enable-shared or --disable-shared was given.
3256if test "${enable_shared+set}" = set; then
3257 enableval="$enable_shared"
3258 p=${PACKAGE-default}
d7040cdb
SE
3259 case $enableval in
3260 yes) enable_shared=yes ;;
3261 no) enable_shared=no ;;
3262 *)
3263 enable_shared=no
3264 # Look at the argument we got. We use all the common list separators.
3265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3266 for pkg in $enableval; do
3267 IFS="$lt_save_ifs"
3268 if test "X$pkg" = "X$p"; then
3269 enable_shared=yes
3270 fi
3271 done
3272 IFS="$lt_save_ifs"
3273 ;;
3274 esac
2469cfa2 3275else
e5a52504 3276 enable_shared=yes
42ecbf5e 3277fi;
d7040cdb
SE
3278
3279
3280
3281
3282
3283
3284
3285
e5a52504
MM
3286# Check whether --enable-static or --disable-static was given.
3287if test "${enable_static+set}" = set; then
3288 enableval="$enable_static"
3289 p=${PACKAGE-default}
d7040cdb
SE
3290 case $enableval in
3291 yes) enable_static=yes ;;
3292 no) enable_static=no ;;
3293 *)
3294 enable_static=no
3295 # Look at the argument we got. We use all the common list separators.
3296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3297 for pkg in $enableval; do
3298 IFS="$lt_save_ifs"
3299 if test "X$pkg" = "X$p"; then
3300 enable_static=yes
3301 fi
3302 done
3303 IFS="$lt_save_ifs"
3304 ;;
3305 esac
e5a52504 3306else
42ecbf5e
DJ
3307 enable_static=yes
3308fi;
d7040cdb
SE
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318# Check whether --with-pic or --without-pic was given.
3319if test "${with_pic+set}" = set; then
3320 withval="$with_pic"
3321 pic_mode="$withval"
3322else
3323 pic_mode=default
3324fi;
3325
3326test -z "$pic_mode" && pic_mode=default
3327
3328
3329
3330
3331
3332
3333
42ecbf5e
DJ
3334# Check whether --enable-fast-install or --disable-fast-install was given.
3335if test "${enable_fast_install+set}" = set; then
3336 enableval="$enable_fast_install"
3337 p=${PACKAGE-default}
d7040cdb
SE
3338 case $enableval in
3339 yes) enable_fast_install=yes ;;
3340 no) enable_fast_install=no ;;
3341 *)
3342 enable_fast_install=no
3343 # Look at the argument we got. We use all the common list separators.
3344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3345 for pkg in $enableval; do
3346 IFS="$lt_save_ifs"
3347 if test "X$pkg" = "X$p"; then
3348 enable_fast_install=yes
3349 fi
3350 done
3351 IFS="$lt_save_ifs"
3352 ;;
3353 esac
d15b04bd 3354else
42ecbf5e
DJ
3355 enable_fast_install=yes
3356fi;
2469cfa2 3357
d7040cdb
SE
3358
3359
3360
3361
3362
3363
3364
3365echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3366echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3367if test "${lt_cv_path_SED+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370 # Loop through the user's path and test for sed and gsed.
3371# Then use that list of sed's as ones to test for truncation.
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for lt_ac_prog in sed gsed; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3380 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3381 fi
3382 done
3383 done
3384done
3385IFS=$as_save_IFS
3386lt_ac_max=0
3387lt_ac_count=0
3388# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3389# along with /bin/sed that truncates output.
3390for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3391 test ! -f $lt_ac_sed && continue
3392 cat /dev/null > conftest.in
3393 lt_ac_count=0
3394 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3395 # Check for GNU sed and select it if it is found.
3396 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3397 lt_cv_path_SED=$lt_ac_sed
3398 break
3399 fi
3400 while true; do
3401 cat conftest.in conftest.in >conftest.tmp
3402 mv conftest.tmp conftest.in
3403 cp conftest.in conftest.nl
3404 echo >>conftest.nl
3405 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3406 cmp -s conftest.out conftest.nl || break
3407 # 10000 chars as input seems more than enough
3408 test $lt_ac_count -gt 10 && break
3409 lt_ac_count=`expr $lt_ac_count + 1`
3410 if test $lt_ac_count -gt $lt_ac_max; then
3411 lt_ac_max=$lt_ac_count
3412 lt_cv_path_SED=$lt_ac_sed
3413 fi
3414 done
3415done
3416
3417fi
3418
3419SED=$lt_cv_path_SED
3420
3421echo "$as_me:$LINENO: result: $SED" >&5
3422echo "${ECHO_T}$SED" >&6
3423
3424test -z "$SED" && SED=sed
3425Xsed="$SED -e 1s/^X//"
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437echo "$as_me:$LINENO: checking for egrep" >&5
3438echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3439if test "${ac_cv_prog_egrep+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3443 then ac_cv_prog_egrep='grep -E'
3444 else ac_cv_prog_egrep='egrep'
3445 fi
3446fi
3447echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3448echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3449 EGREP=$ac_cv_prog_egrep
3450
3451
3452echo "$as_me:$LINENO: checking for fgrep" >&5
3453echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3454if test "${ac_cv_prog_fgrep+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456else
3457 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3458 then ac_cv_prog_fgrep='grep -F'
3459 else ac_cv_prog_fgrep='fgrep'
3460 fi
3461fi
3462echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3463echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3464 FGREP=$ac_cv_prog_fgrep
3465
3466
3467test -z "$GREP" && GREP=grep
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
252b5132
RH
3487# Check whether --with-gnu-ld or --without-gnu-ld was given.
3488if test "${with_gnu_ld+set}" = set; then
3489 withval="$with_gnu_ld"
3490 test "$withval" = no || with_gnu_ld=yes
3491else
3492 with_gnu_ld=no
42ecbf5e 3493fi;
252b5132 3494ac_prog=ld
c7e40348 3495if test "$GCC" = yes; then
252b5132 3496 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
3497 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3498echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
ac48eca1
AO
3499 case $host in
3500 *-*-mingw*)
3501 # gcc leaves a trailing carriage return which upsets mingw
3502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3503 *)
3504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3505 esac
c7e40348 3506 case $ac_prog in
252b5132 3507 # Accept absolute paths.
d7040cdb 3508 [\\/]* | ?:[\\/]*)
252b5132 3509 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
3510 # Canonicalize the pathname of ld
3511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
252b5132
RH
3514 done
3515 test -z "$LD" && LD="$ac_prog"
3516 ;;
3517 "")
3518 # If it fails, then pretend we aren't using GCC.
3519 ac_prog=ld
3520 ;;
3521 *)
3522 # If it is relative, then search for the first ld in PATH.
3523 with_gnu_ld=unknown
3524 ;;
3525 esac
3526elif test "$with_gnu_ld" = yes; then
42ecbf5e
DJ
3527 echo "$as_me:$LINENO: checking for GNU ld" >&5
3528echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3529else
42ecbf5e
DJ
3530 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3531echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3532fi
42ecbf5e
DJ
3533if test "${lt_cv_path_LD+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3535else
3536 if test -z "$LD"; then
d7040cdb 3537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
252b5132 3538 for ac_dir in $PATH; do
d7040cdb 3539 IFS="$lt_save_ifs"
252b5132 3540 test -z "$ac_dir" && ac_dir=.
a74801ba 3541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c7e40348 3542 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132 3543 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 3544 # but apparently some variants of GNU ld only accept -v.
252b5132 3545 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
3546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3547 *GNU* | *'with BFD'*)
252b5132 3548 test "$with_gnu_ld" != no && break
d7040cdb
SE
3549 ;;
3550 *)
252b5132 3551 test "$with_gnu_ld" != yes && break
d7040cdb
SE
3552 ;;
3553 esac
252b5132
RH
3554 fi
3555 done
d7040cdb 3556 IFS="$lt_save_ifs"
252b5132 3557else
c7e40348 3558 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3559fi
3560fi
3561
c7e40348 3562LD="$lt_cv_path_LD"
252b5132 3563if test -n "$LD"; then
42ecbf5e
DJ
3564 echo "$as_me:$LINENO: result: $LD" >&5
3565echo "${ECHO_T}$LD" >&6
252b5132 3566else
42ecbf5e
DJ
3567 echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6
252b5132 3569fi
42ecbf5e
DJ
3570test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3571echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3572 { (exit 1); exit 1; }; }
3573echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3574echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3575if test "${lt_cv_prog_gnu_ld+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3577else
d7040cdb
SE
3578 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3579case `$LD -v 2>&1 </dev/null` in
3580*GNU* | *'with BFD'*)
c7e40348 3581 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
3582 ;;
3583*)
c7e40348 3584 lt_cv_prog_gnu_ld=no
d7040cdb
SE
3585 ;;
3586esac
252b5132 3587fi
42ecbf5e
DJ
3588echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3589echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
c7e40348 3590with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132
RH
3591
3592
ac48eca1 3593
d7040cdb
SE
3594
3595
3596
3597
3598
3599
3600
3601echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3602echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
42ecbf5e
DJ
3603if test "${lt_cv_path_NM+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3605else
3606 if test -n "$NM"; then
3607 # Let the user override the test.
c7e40348 3608 lt_cv_path_NM="$NM"
252b5132 3609else
d7040cdb
SE
3610 lt_nm_to_check="${ac_tool_prefix}nm"
3611 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3612 lt_nm_to_check="$lt_nm_to_check nm"
3613 fi
3614 for lt_tmp_nm in $lt_nm_to_check; do
3615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3616 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3617 IFS="$lt_save_ifs"
3618 test -z "$ac_dir" && ac_dir=.
3619 tmp_nm="$ac_dir/$lt_tmp_nm"
3620 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3621 # Check to see if the nm accepts a BSD-compat flag.
3622 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3623 # nm: unknown option "B" ignored
3624 # Tru64's nm complains that /dev/null is an invalid object file
3625 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3626 */dev/null* | *'Invalid file or object type'*)
3627 lt_cv_path_NM="$tmp_nm -B"
3628 break
3629 ;;
3630 *)
3631 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3632 */dev/null*)
3633 lt_cv_path_NM="$tmp_nm -p"
3634 break
3635 ;;
3636 *)
3637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3638 continue # so that we can try to find one that supports BSD flags
3639 ;;
3640 esac
3641 ;;
3642 esac
252b5132 3643 fi
d7040cdb
SE
3644 done
3645 IFS="$lt_save_ifs"
252b5132 3646 done
d7040cdb 3647 : ${lt_cv_path_NM=no}
252b5132
RH
3648fi
3649fi
d7040cdb
SE
3650echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3651echo "${ECHO_T}$lt_cv_path_NM" >&6
3652if test "$lt_cv_path_NM" != "no"; then
3653 NM="$lt_cv_path_NM"
d15b04bd 3654else
d7040cdb
SE
3655 # Didn't find any BSD compatible name lister, look for dumpbin.
3656 if test -n "$ac_tool_prefix"; then
3657 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3658 do
3659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3661echo "$as_me:$LINENO: checking for $ac_word" >&5
3662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666 if test -n "$DUMPBIN"; then
3667 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3668else
3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH
3671do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3679 fi
3680done
3681done
3682
3683fi
3684fi
3685DUMPBIN=$ac_cv_prog_DUMPBIN
3686if test -n "$DUMPBIN"; then
3687 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3688echo "${ECHO_T}$DUMPBIN" >&6
3689else
3690 echo "$as_me:$LINENO: result: no" >&5
3691echo "${ECHO_T}no" >&6
3692fi
3693
3694 test -n "$DUMPBIN" && break
3695 done
3696fi
3697if test -z "$DUMPBIN"; then
3698 ac_ct_DUMPBIN=$DUMPBIN
3699 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3700do
3701 # Extract the first word of "$ac_prog", so it can be a program name with args.
3702set dummy $ac_prog; ac_word=$2
3703echo "$as_me:$LINENO: checking for $ac_word" >&5
3704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708 if test -n "$ac_ct_DUMPBIN"; then
3709 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3710else
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722done
3723done
3724
3725fi
3726fi
3727ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3728if test -n "$ac_ct_DUMPBIN"; then
3729 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3730echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3731else
3732 echo "$as_me:$LINENO: result: no" >&5
3733echo "${ECHO_T}no" >&6
3734fi
3735
3736 test -n "$ac_ct_DUMPBIN" && break
3737done
3738test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3739
3740 DUMPBIN=$ac_ct_DUMPBIN
3741fi
3742
3743
3744 if test "$DUMPBIN" != ":"; then
3745 NM="$DUMPBIN"
3746 fi
3747fi
3748test -z "$NM" && NM=nm
3749
3750
3751
3752
3753
3754
3755echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3756echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3757if test "${lt_cv_nm_interface+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759else
3760 lt_cv_nm_interface="BSD nm"
3761 echo "int some_variable = 0;" > conftest.$ac_ext
3762 (eval echo "\"\$as_me:3762: $ac_compile\"" >&5)
3763 (eval "$ac_compile" 2>conftest.err)
3764 cat conftest.err >&5
3765 (eval echo "\"\$as_me:3765: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3766 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3767 cat conftest.err >&5
3768 (eval echo "\"\$as_me:3768: output\"" >&5)
3769 cat conftest.out >&5
3770 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3771 lt_cv_nm_interface="MS dumpbin"
3772 fi
3773 rm -f conftest*
3774fi
3775echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3776echo "${ECHO_T}$lt_cv_nm_interface" >&6
3777
3778echo "$as_me:$LINENO: checking whether ln -s works" >&5
3779echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3780LN_S=$as_ln_s
3781if test "$LN_S" = "ln -s"; then
3782 echo "$as_me:$LINENO: result: yes" >&5
3783echo "${ECHO_T}yes" >&6
3784else
3785 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3786echo "${ECHO_T}no, using $LN_S" >&6
3787fi
3788
3789# find the maximum length of command line arguments
3790echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3791echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3792if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 i=0
3796 teststring="ABCD"
3797
3798 case $build_os in
3799 msdosdjgpp*)
3800 # On DJGPP, this test can blow up pretty badly due to problems in libc
3801 # (any single argument exceeding 2000 bytes causes a buffer overrun
3802 # during glob expansion). Even if it were fixed, the result of this
3803 # check would be larger than it should be.
3804 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3805 ;;
3806
3807 gnu*)
3808 # Under GNU Hurd, this test is not required because there is
3809 # no limit to the length of command line arguments.
3810 # Libtool will interpret -1 as no limit whatsoever
3811 lt_cv_sys_max_cmd_len=-1;
3812 ;;
3813
3814 cygwin* | mingw*)
3815 # On Win9x/ME, this test blows up -- it succeeds, but takes
3816 # about 5 minutes as the teststring grows exponentially.
3817 # Worse, since 9x/ME are not pre-emptively multitasking,
3818 # you end up with a "frozen" computer, even though with patience
3819 # the test eventually succeeds (with a max line length of 256k).
3820 # Instead, let's just punt: use the minimum linelength reported by
3821 # all of the supported platforms: 8192 (on NT/2K/XP).
3822 lt_cv_sys_max_cmd_len=8192;
3823 ;;
3824
3825 amigaos*)
3826 # On AmigaOS with pdksh, this test takes hours, literally.
3827 # So we just punt and use a minimum line length of 8192.
3828 lt_cv_sys_max_cmd_len=8192;
3829 ;;
3830
3831 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3832 # This has been around since 386BSD, at least. Likely further.
3833 if test -x /sbin/sysctl; then
3834 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3835 elif test -x /usr/sbin/sysctl; then
3836 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3837 else
3838 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3839 fi
3840 # And add a safety zone
3841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3843 ;;
3844
3845 interix*)
3846 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3847 lt_cv_sys_max_cmd_len=196608
3848 ;;
3849
3850 osf*)
3851 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3852 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3853 # nice to cause kernel panics so lets avoid the loop below.
3854 # First set a reasonable default.
3855 lt_cv_sys_max_cmd_len=16384
3856 #
3857 if test -x /sbin/sysconfig; then
3858 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3859 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3860 esac
3861 fi
3862 ;;
3863 sco3.2v5*)
3864 lt_cv_sys_max_cmd_len=102400
3865 ;;
3866 sysv5* | sco5v6* | sysv4.2uw2*)
3867 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3868 if test -n "$kargmax"; then
3869 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3870 else
3871 lt_cv_sys_max_cmd_len=32768
3872 fi
3873 ;;
3874 *)
3875 # Make teststring a little bigger before we do anything with it.
3876 # a 1K string should be a reasonable start.
3877 for i in 1 2 3 4 5 6 7 8 ; do
3878 teststring=$teststring$teststring
3879 done
3880 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3881 # If test is not a shell built-in, we'll probably end up computing a
3882 # maximum length that is only half of the actual maximum length, but
3883 # we can't tell.
3884 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3885 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3886 test $i != 17 # 1/2 MB should be enough
3887 do
3888 i=`expr $i + 1`
3889 teststring=$teststring$teststring
3890 done
3891 # Only check the string length outside the loop.
3892 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3893 teststring=
3894 # Add a significant safety factor because C++ compilers can tack on massive
3895 # amounts of additional arguments before passing them to the linker.
3896 # It appears as though 1/2 is a usable value.
3897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3898 ;;
3899 esac
3900
3901fi
3902
3903if test -n $lt_cv_sys_max_cmd_len ; then
3904 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3905echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3906else
3907 echo "$as_me:$LINENO: result: none" >&5
3908echo "${ECHO_T}none" >&6
3909fi
3910max_cmd_len=$lt_cv_sys_max_cmd_len
3911
3912
3913
3914
3915
3916
3917
3918: ${CP="cp -f"}
3919: ${MV="mv -f"}
3920: ${RM="rm -f"}
3921
3922echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3923echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3924# Try some XSI features
3925xsi_shell=no
3926( _lt_dummy="a/b/c"
3927 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3928 = c,a/b,, ) >/dev/null 2>&1 \
3929 && xsi_shell=yes
3930echo "$as_me:$LINENO: result: $xsi_shell" >&5
3931echo "${ECHO_T}$xsi_shell" >&6
3932
3933
3934echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3935echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3936lt_shell_append=no
3937( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3938 >/dev/null 2>&1 \
3939 && lt_shell_append=yes
3940echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3941echo "${ECHO_T}$lt_shell_append" >&6
3942
3943
3944if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3945 lt_unset=unset
3946else
3947 lt_unset=false
3948fi
3949
3950
3951
3952
3953
3954# test EBCDIC or ASCII
3955case `echo X|tr X '\101'` in
3956 A) # ASCII based system
3957 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3958 lt_SP2NL='tr \040 \012'
3959 lt_NL2SP='tr \015\012 \040\040'
3960 ;;
3961 *) # EBCDIC based system
3962 lt_SP2NL='tr \100 \n'
3963 lt_NL2SP='tr \r\n \100\100'
3964 ;;
3965esac
3966
3967
3968
3969
252b5132 3970
d7040cdb
SE
3971
3972
3973
3974
3975echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3976echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3977if test "${lt_cv_ld_reload_flag+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980 lt_cv_ld_reload_flag='-r'
3981fi
3982echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3983echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3984reload_flag=$lt_cv_ld_reload_flag
3985case $reload_flag in
3986"" | " "*) ;;
3987*) reload_flag=" $reload_flag" ;;
3988esac
3989reload_cmds='$LD$reload_flag -o $output$reload_objs'
3990case $host_os in
3991 darwin*)
3992 if test "$GCC" = yes; then
3993 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3994 else
3995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3996 fi
3997 ;;
3998esac
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4010echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
42ecbf5e
DJ
4011if test "${lt_cv_deplibs_check_method+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4013else
d64552c5 4014 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
4015lt_cv_file_magic_test_file=
4016lt_cv_deplibs_check_method='unknown'
4017# Need to set the preceding variable on all platforms that support
4018# interlibrary dependencies.
4019# 'none' -- dependencies not supported.
4020# `unknown' -- same as none, but documents that we really don't know.
4021# 'pass_all' -- all dependencies passed with no checks.
4022# 'test_compile' -- check by making test program.
d7040cdb
SE
4023# 'file_magic [[regex]]' -- check by looking for files in library path
4024# which responds to the $file_magic_cmd with a given extended regex.
ac48eca1
AO
4025# If you have `file' or equivalent on your system and you're not sure
4026# whether `pass_all' will *always* work, you probably want this one.
4027
c7e40348 4028case $host_os in
d7040cdb 4029aix4* | aix5*)
ac48eca1
AO
4030 lt_cv_deplibs_check_method=pass_all
4031 ;;
4032
4033beos*)
4034 lt_cv_deplibs_check_method=pass_all
4035 ;;
4036
d7040cdb 4037bsdi[45]*)
c7e40348
NC
4038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4039 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
4040 lt_cv_file_magic_test_file=/shlib/libc.so
4041 ;;
4042
d7040cdb
SE
4043cygwin*)
4044 # func_win32_libid is a shell function defined in ltmain.sh
4045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4046 lt_cv_file_magic_cmd='func_win32_libid'
4047 ;;
4048
4049mingw* | pw32*)
4050 # Base MSYS/MinGW do not provide the 'file' command needed by
4051 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4052 # unless we find 'file', for example because we are cross-compiling.
4053 if ( file / ) >/dev/null 2>&1; then
4054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4055 lt_cv_file_magic_cmd='func_win32_libid'
4056 else
4057 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4058 lt_cv_file_magic_cmd='$OBJDUMP -f'
4059 fi
ac48eca1
AO
4060 ;;
4061
c7e40348 4062darwin* | rhapsody*)
32fba81d 4063 lt_cv_deplibs_check_method=pass_all
c7e40348
NC
4064 ;;
4065
d7040cdb
SE
4066freebsd* | dragonfly*)
4067 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
c7e40348 4068 case $host_cpu in
ac48eca1 4069 i*86 )
58cccadb
AO
4070 # Not sure whether the presence of OpenBSD here was a mistake.
4071 # Let's accept both of them until this is cleared up.
d7040cdb 4072 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
c7e40348 4073 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
4074 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4075 ;;
4076 esac
4077 else
4078 lt_cv_deplibs_check_method=pass_all
4079 fi
4080 ;;
4081
4082gnu*)
4083 lt_cv_deplibs_check_method=pass_all
4084 ;;
4085
d7040cdb
SE
4086hpux10.20* | hpux11*)
4087 lt_cv_file_magic_cmd=/usr/bin/file
4867be41 4088 case $host_cpu in
4867be41
DJ
4089 ia64*)
4090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4867be41
DJ
4091 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4092 ;;
d7040cdb
SE
4093 hppa*64*)
4094 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]'
4095 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
ac48eca1
AO
4096 ;;
4097 *)
d7040cdb
SE
4098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4099 lt_cv_file_magic_test_file=/usr/lib/libc.sl
c7e40348 4100 ;;
ac48eca1 4101 esac
d7040cdb
SE
4102 ;;
4103
4104interix[3-9]*)
4105 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4107 ;;
4108
4109irix5* | irix6* | nonstopux*)
4110 case $LD in
4111 *-32|*"-32 ") libmagic=32-bit;;
4112 *-n32|*"-n32 ") libmagic=N32;;
4113 *-64|*"-64 ") libmagic=64-bit;;
4114 *) libmagic=never-match;;
4115 esac
ac48eca1
AO
4116 lt_cv_deplibs_check_method=pass_all
4117 ;;
4118
4119# This must be Linux ELF.
d7040cdb 4120linux* | k*bsd*-gnu)
32fba81d 4121 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
4122 ;;
4123
d7040cdb
SE
4124netbsd*)
4125 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ac48eca1 4127 else
d7040cdb 4128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ac48eca1
AO
4129 fi
4130 ;;
4131
d7040cdb 4132newos6*)
c7e40348
NC
4133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4134 lt_cv_file_magic_cmd=/usr/bin/file
4135 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4136 ;;
4137
d7040cdb 4138*nto* | *qnx*)
ac48eca1
AO
4139 lt_cv_deplibs_check_method=pass_all
4140 ;;
4141
d7040cdb
SE
4142openbsd*)
4143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4145 else
4146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4147 fi
ac48eca1
AO
4148 ;;
4149
d7040cdb 4150osf3* | osf4* | osf5*)
ac48eca1 4151 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
4152 ;;
4153
d7040cdb 4154rdos*)
6be7c12c
AO
4155 lt_cv_deplibs_check_method=pass_all
4156 ;;
4157
d7040cdb
SE
4158solaris*)
4159 lt_cv_deplibs_check_method=pass_all
4160 ;;
4161
4162sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4163 lt_cv_deplibs_check_method=pass_all
4164 ;;
4165
4166sysv4 | sysv4.3*)
c7e40348 4167 case $host_vendor in
ac48eca1 4168 motorola)
c7e40348
NC
4169 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]'
4170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1 4171 ;;
d7040cdb
SE
4172 ncr)
4173 lt_cv_deplibs_check_method=pass_all
4174 ;;
4175 sequent)
4176 lt_cv_file_magic_cmd='/bin/file'
4177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4178 ;;
4179 sni)
4180 lt_cv_file_magic_cmd='/bin/file'
4181 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4182 lt_cv_file_magic_test_file=/lib/libc.so
4183 ;;
4184 siemens)
4185 lt_cv_deplibs_check_method=pass_all
4186 ;;
4187 pc)
4188 lt_cv_deplibs_check_method=pass_all
4189 ;;
ac48eca1
AO
4190 esac
4191 ;;
d7040cdb
SE
4192
4193tpf*)
4194 lt_cv_deplibs_check_method=pass_all
4195 ;;
ac48eca1
AO
4196esac
4197
4198fi
42ecbf5e
DJ
4199echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4200echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
4201file_magic_cmd=$lt_cv_file_magic_cmd
4202deplibs_check_method=$lt_cv_deplibs_check_method
d7040cdb 4203test -z "$deplibs_check_method" && deplibs_check_method=unknown
ac48eca1 4204
d15b04bd
L
4205
4206
ac48eca1 4207
ac48eca1 4208
ac48eca1 4209
ac48eca1 4210
ac48eca1 4211
ac48eca1 4212
ac48eca1 4213
252b5132
RH
4214
4215
42ecbf5e 4216if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4217 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4218set dummy ${ac_tool_prefix}ar; ac_word=$2
42ecbf5e
DJ
4219echo "$as_me:$LINENO: checking for $ac_word" >&5
4220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4221if test "${ac_cv_prog_AR+set}" = set; then
42ecbf5e 4222 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4223else
d7040cdb
SE
4224 if test -n "$AR"; then
4225 ac_cv_prog_AR="$AR" # Let the user override the test.
ac48eca1 4226else
42ecbf5e
DJ
4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4234 ac_cv_prog_AR="${ac_tool_prefix}ar"
42ecbf5e
DJ
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4237 fi
4238done
4239done
4240
ac48eca1
AO
4241fi
4242fi
d7040cdb
SE
4243AR=$ac_cv_prog_AR
4244if test -n "$AR"; then
4245 echo "$as_me:$LINENO: result: $AR" >&5
4246echo "${ECHO_T}$AR" >&6
ac48eca1 4247else
42ecbf5e
DJ
4248 echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
ac48eca1
AO
4250fi
4251
42ecbf5e 4252fi
d7040cdb
SE
4253if test -z "$ac_cv_prog_AR"; then
4254 ac_ct_AR=$AR
4255 # Extract the first word of "ar", so it can be a program name with args.
4256set dummy ar; ac_word=$2
42ecbf5e
DJ
4257echo "$as_me:$LINENO: checking for $ac_word" >&5
4258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4259if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42ecbf5e 4260 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4261else
d7040cdb
SE
4262 if test -n "$ac_ct_AR"; then
4263 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
ac48eca1 4264else
42ecbf5e
DJ
4265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4272 ac_cv_prog_ac_ct_AR="ar"
42ecbf5e
DJ
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276done
4277done
4278
d7040cdb 4279 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
ac48eca1
AO
4280fi
4281fi
d7040cdb
SE
4282ac_ct_AR=$ac_cv_prog_ac_ct_AR
4283if test -n "$ac_ct_AR"; then
4284 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4285echo "${ECHO_T}$ac_ct_AR" >&6
ac48eca1 4286else
42ecbf5e
DJ
4287 echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
ac48eca1
AO
4289fi
4290
d7040cdb 4291 AR=$ac_ct_AR
ac48eca1 4292else
d7040cdb 4293 AR="$ac_cv_prog_AR"
ac48eca1
AO
4294fi
4295
d7040cdb
SE
4296test -z "$AR" && AR=ar
4297test -z "$AR_FLAGS" && AR_FLAGS=cru
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
42ecbf5e
DJ
4309if test -n "$ac_tool_prefix"; then
4310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 4311set dummy ${ac_tool_prefix}strip; ac_word=$2
42ecbf5e
DJ
4312echo "$as_me:$LINENO: checking for $ac_word" >&5
4313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4314if test "${ac_cv_prog_STRIP+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
4316else
4317 if test -n "$STRIP"; then
4318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4319else
42ecbf5e
DJ
4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4330 fi
4331done
4332done
4333
ac48eca1
AO
4334fi
4335fi
42ecbf5e 4336STRIP=$ac_cv_prog_STRIP
ac48eca1 4337if test -n "$STRIP"; then
42ecbf5e
DJ
4338 echo "$as_me:$LINENO: result: $STRIP" >&5
4339echo "${ECHO_T}$STRIP" >&6
ac48eca1 4340else
42ecbf5e
DJ
4341 echo "$as_me:$LINENO: result: no" >&5
4342echo "${ECHO_T}no" >&6
ac48eca1
AO
4343fi
4344
42ecbf5e 4345fi
ac48eca1 4346if test -z "$ac_cv_prog_STRIP"; then
42ecbf5e 4347 ac_ct_STRIP=$STRIP
ac48eca1
AO
4348 # Extract the first word of "strip", so it can be a program name with args.
4349set dummy strip; ac_word=$2
42ecbf5e
DJ
4350echo "$as_me:$LINENO: checking for $ac_word" >&5
4351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4354else
42ecbf5e
DJ
4355 if test -n "$ac_ct_STRIP"; then
4356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 4357else
42ecbf5e
DJ
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_ac_ct_STRIP="strip"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4368 fi
4369done
4370done
4371
4372 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
4373fi
4374fi
42ecbf5e
DJ
4375ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4376if test -n "$ac_ct_STRIP"; then
4377 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4378echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 4379else
42ecbf5e
DJ
4380 echo "$as_me:$LINENO: result: no" >&5
4381echo "${ECHO_T}no" >&6
ac48eca1
AO
4382fi
4383
42ecbf5e 4384 STRIP=$ac_ct_STRIP
ac48eca1 4385else
42ecbf5e 4386 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
4387fi
4388
d7040cdb 4389test -z "$STRIP" && STRIP=:
ac48eca1 4390
252b5132 4391
a74801ba 4392
a74801ba 4393
a74801ba 4394
42ecbf5e 4395
d7040cdb
SE
4396if test -n "$ac_tool_prefix"; then
4397 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4398set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4399echo "$as_me:$LINENO: checking for $ac_word" >&5
4400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401if test "${ac_cv_prog_RANLIB+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4403else
d7040cdb
SE
4404 if test -n "$RANLIB"; then
4405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
252b5132 4417 fi
d7040cdb
SE
4418done
4419done
252b5132 4420
d7040cdb
SE
4421fi
4422fi
4423RANLIB=$ac_cv_prog_RANLIB
4424if test -n "$RANLIB"; then
4425 echo "$as_me:$LINENO: result: $RANLIB" >&5
4426echo "${ECHO_T}$RANLIB" >&6
4427else
4428 echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6
4430fi
4867be41 4431
d7040cdb
SE
4432fi
4433if test -z "$ac_cv_prog_RANLIB"; then
4434 ac_ct_RANLIB=$RANLIB
4435 # Extract the first word of "ranlib", so it can be a program name with args.
4436set dummy ranlib; ac_word=$2
4437echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442 if test -n "$ac_ct_RANLIB"; then
4443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4444else
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_ac_ct_RANLIB="ranlib"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
32fba81d 4455 fi
d7040cdb
SE
4456done
4457done
32fba81d 4458
d7040cdb
SE
4459 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4460fi
4461fi
4462ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4463if test -n "$ac_ct_RANLIB"; then
4464 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4465echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 4466else
d7040cdb
SE
4467 echo "$as_me:$LINENO: result: no" >&5
4468echo "${ECHO_T}no" >&6
4469fi
42ecbf5e 4470
d7040cdb
SE
4471 RANLIB=$ac_ct_RANLIB
4472else
4473 RANLIB="$ac_cv_prog_RANLIB"
4474fi
42ecbf5e 4475
d7040cdb 4476test -z "$RANLIB" && RANLIB=:
ac48eca1 4477
252b5132 4478
252b5132 4479
42ecbf5e 4480
ac48eca1 4481
d7040cdb
SE
4482
4483# Determine commands to create old-style static archives.
4484old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4485old_postinstall_cmds='chmod 644 $oldlib'
4486old_postuninstall_cmds=
4487
4488if test -n "$RANLIB"; then
4489 case $host_os in
4490 openbsd*)
4491 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4492 ;;
4493 *)
4494 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4495 ;;
4496 esac
4497 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
252b5132 4498fi
252b5132 4499
252b5132 4500
252b5132 4501
252b5132 4502
42ecbf5e 4503
42ecbf5e 4504
252b5132 4505
252b5132 4506
252b5132
RH
4507
4508
252b5132 4509
252b5132 4510
252b5132 4511
ac48eca1 4512
42ecbf5e
DJ
4513
4514
4515
4516
4517
ac48eca1 4518
252b5132 4519
42ecbf5e 4520
9c8ebd6a 4521
9c8ebd6a 4522
9c8ebd6a 4523
42ecbf5e 4524
9c8ebd6a 4525
9c8ebd6a
DJ
4526
4527
4528
4529
ad22bfe8 4530
1ad12f97 4531
1ad12f97 4532
d7040cdb
SE
4533# If no C compiler was specified, use CC.
4534LTCC=${LTCC-"$CC"}
569acd2c 4535
d7040cdb
SE
4536# If no C compiler flags were specified, use CFLAGS.
4537LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 4538
d7040cdb
SE
4539# Allow CC to be a program name with arguments.
4540compiler=$CC
a541e3ce 4541
9e9b66a9 4542
d7040cdb
SE
4543# Check for command to grab the raw symbol name followed by C symbol from nm.
4544echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4545echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4546if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
9e9b66a9 4549
d7040cdb
SE
4550# These are sane defaults that work on at least a few old systems.
4551# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9e9b66a9 4552
d7040cdb
SE
4553# Character class describing NM global symbol codes.
4554symcode='[BCDEGRST]'
a2d91340 4555
d7040cdb
SE
4556# Regexp to match symbols that can be accessed directly from C.
4557sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
a2d91340 4558
d7040cdb
SE
4559# Define system-specific variables.
4560case $host_os in
4561aix*)
4562 symcode='[BCDT]'
4563 ;;
4564cygwin* | mingw* | pw32*)
4565 symcode='[ABCDGISTW]'
4566 ;;
4567hpux*)
4568 if test "$host_cpu" = ia64; then
4569 symcode='[ABCDEGRST]'
4570 fi
4571 ;;
4572irix* | nonstopux*)
4573 symcode='[BCDEGRST]'
4574 ;;
4575osf*)
4576 symcode='[BCDEGQRST]'
4577 ;;
4578solaris*)
4579 symcode='[BDRT]'
4580 ;;
4581sco3.2v5*)
4582 symcode='[DT]'
4583 ;;
4584sysv4.2uw2*)
4585 symcode='[DT]'
4586 ;;
4587sysv5* | sco5v6* | unixware* | OpenUNIX*)
4588 symcode='[ABDT]'
4589 ;;
4590sysv4)
4591 symcode='[DFNSTU]'
4592 ;;
4593esac
502bdb00 4594
d7040cdb
SE
4595# If we're using GNU nm, then use its standard symbol codes.
4596case `$NM -V 2>&1` in
4597*GNU* | *'with BFD'*)
4598 symcode='[ABCDGIRSTW]' ;;
4599esac
42ecbf5e 4600
d7040cdb
SE
4601# Transform an extracted symbol line into a proper C declaration.
4602# Some systems (esp. on ia64) link data and code symbols differently,
4603# so use this general approach.
4604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
252b5132 4605
d7040cdb
SE
4606# Transform an extracted symbol line into symbol name and symbol address
4607lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
42ecbf5e 4608
d7040cdb
SE
4609# Handle CRLF in mingw tool chain
4610opt_cr=
4611case $build_os in
4612mingw*)
4613 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4614 ;;
4615esac
42ecbf5e 4616
d7040cdb
SE
4617# Try without a prefix underscore, then with it.
4618for ac_symprfx in "" "_"; do
4619
4620 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4621 symxfrm="\\1 $ac_symprfx\\2 \\2"
4622
4623 # Write the raw and C identifiers.
4624 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4625 # Fake it for dumpbin and say T for any non-static function
4626 # and D for any global variable.
4627 # Also find C++ and __fastcall symbols from MSVC++,
4628 # which start with @ or ?.
4629 lt_cv_sys_global_symbol_pipe="$AWK '"\
4630" {last_section=section; section=\$ 3};"\
4631" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4632" \$ 0!~/External *\|/{next};"\
4633" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4634" {if(hide[section]) next};"\
4635" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4636" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4637" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4638" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4639" ' prfx=^$ac_symprfx"
4640 else
4641 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
42ecbf5e 4642 fi
252b5132 4643
d7040cdb
SE
4644 # Check to see that the pipe works correctly.
4645 pipe_works=no
e5a52504 4646
d7040cdb
SE
4647 rm -f conftest*
4648 cat > conftest.$ac_ext <<_LT_EOF
4649#ifdef __cplusplus
4650extern "C" {
4651#endif
4652char nm_test_var;
4653void nm_test_func(void);
4654void nm_test_func(void){}
4655#ifdef __cplusplus
4656}
4657#endif
4658int main(){nm_test_var='a';nm_test_func();return(0);}
4659_LT_EOF
4660
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; then
4666 # Now try to grab the symbols.
4667 nlist=conftest.nm
4668 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4669 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } && test -s "$nlist"; then
4673 # Try sorting and uniquifying the output.
4674 if sort "$nlist" | uniq > "$nlist"T; then
4675 mv -f "$nlist"T "$nlist"
4676 else
4677 rm -f "$nlist"T
4678 fi
4679
4680 # Make sure that we snagged all the symbols we need.
4681 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4682 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4683 cat <<_LT_EOF > conftest.$ac_ext
4684#ifdef __cplusplus
4685extern "C" {
4686#endif
4687
4688_LT_EOF
4689 # Now generate the symbol file.
4690 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4691
4692 cat <<_LT_EOF >> conftest.$ac_ext
4693
4694/* The mapping between symbol names and symbols. */
4695const struct {
4696 const char *name;
4697 void *address;
4698}
4699lt__PROGRAM__LTX_preloaded_symbols[] =
4700{
4701 { "@PROGRAM@", (void *) 0 },
4702_LT_EOF
4703 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4704 cat <<\_LT_EOF >> conftest.$ac_ext
4705 {0, (void *) 0}
4706};
4707
4708/* This works around a problem in FreeBSD linker */
4709#ifdef FREEBSD_WORKAROUND
4710static const void *lt_preloaded_setup() {
4711 return lt__PROGRAM__LTX_preloaded_symbols;
4712}
4713#endif
4714
4715#ifdef __cplusplus
4716}
4717#endif
4718_LT_EOF
4719 # Now try linking the two files.
4720 mv conftest.$ac_objext conftstm.$ac_objext
4721 lt_save_LIBS="$LIBS"
4722 lt_save_CFLAGS="$CFLAGS"
4723 LIBS="conftstm.$ac_objext"
4724 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4726 (eval $ac_link) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4730 pipe_works=yes
4731 fi
4732 LIBS="$lt_save_LIBS"
4733 CFLAGS="$lt_save_CFLAGS"
4734 else
4735 echo "cannot find nm_test_func in $nlist" >&5
4736 fi
4737 else
4738 echo "cannot find nm_test_var in $nlist" >&5
4739 fi
4740 else
4741 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4742 fi
4743 else
4744 echo "$progname: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 fi
4747 rm -f conftest* conftst*
4748
4749 # Do not use the global_symbol_pipe unless it works.
4750 if test "$pipe_works" = yes; then
4751 break
4752 else
4753 lt_cv_sys_global_symbol_pipe=
42ecbf5e 4754 fi
42ecbf5e 4755done
d15b04bd 4756
252b5132 4757fi
d7040cdb
SE
4758
4759if test -z "$lt_cv_sys_global_symbol_pipe"; then
4760 lt_cv_sys_global_symbol_to_cdecl=
42ecbf5e 4761fi
d7040cdb
SE
4762if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4763 echo "$as_me:$LINENO: result: failed" >&5
4764echo "${ECHO_T}failed" >&6
42ecbf5e 4765else
d7040cdb
SE
4766 echo "$as_me:$LINENO: result: ok" >&5
4767echo "${ECHO_T}ok" >&6
e5a52504
MM
4768fi
4769
d15b04bd 4770
42ecbf5e 4771
42ecbf5e 4772
42ecbf5e 4773
252b5132 4774
42ecbf5e 4775
42ecbf5e 4776
252b5132 4777
42ecbf5e 4778
d15b04bd 4779
42ecbf5e 4780
252b5132 4781
e5a52504 4782
42ecbf5e 4783
42ecbf5e
DJ
4784
4785
d7040cdb
SE
4786# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4787if test "${enable_libtool_lock+set}" = set; then
4788 enableval="$enable_libtool_lock"
42ecbf5e 4789
d7040cdb
SE
4790fi;
4791test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4792
4793# Some flags need to be propagated to the compiler or linker for good
4794# libtool support.
4795case $host in
4796ia64-*-hpux*)
4797 # Find out which ABI we are using.
4798 echo 'int i;' > conftest.$ac_ext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>&5
42ecbf5e
DJ
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4803 (exit $ac_status); }; then
4804 case `/usr/bin/file conftest.$ac_objext` in
4805 *ELF-32*)
4806 HPUX_IA64_MODE="32"
4807 ;;
4808 *ELF-64*)
4809 HPUX_IA64_MODE="64"
4810 ;;
4811 esac
4812 fi
4813 rm -rf conftest*
4814 ;;
4815*-*-irix6*)
4816 # Find out which ABI we are using.
4817 echo '#line 4817 "configure"' > conftest.$ac_ext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>&5
42ecbf5e
DJ
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4822 (exit $ac_status); }; then
4823 if test "$lt_cv_prog_gnu_ld" = yes; then
4824 case `/usr/bin/file conftest.$ac_objext` in
4825 *32-bit*)
4826 LD="${LD-ld} -melf32bsmip"
4827 ;;
4828 *N32*)
4829 LD="${LD-ld} -melf32bmipn32"
4830 ;;
4831 *64-bit*)
4832 LD="${LD-ld} -melf64bmip"
4833 ;;
4834 esac
4835 else
4836 case `/usr/bin/file conftest.$ac_objext` in
4837 *32-bit*)
4838 LD="${LD-ld} -32"
4839 ;;
4840 *N32*)
4841 LD="${LD-ld} -n32"
4842 ;;
4843 *64-bit*)
4844 LD="${LD-ld} -64"
4845 ;;
4846 esac
4847 fi
4848 fi
4849 rm -rf conftest*
4850 ;;
4851
4852x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4853s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4854 # Find out which ABI we are using.
4855 echo 'int i;' > conftest.$ac_ext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; then
4861 case `/usr/bin/file conftest.o` in
4862 *32-bit*)
4863 case $host in
4864 x86_64-*kfreebsd*-gnu)
4865 LD="${LD-ld} -m elf_i386_fbsd"
4866 ;;
4867 x86_64-*linux*)
4868 LD="${LD-ld} -m elf_i386"
4869 ;;
4870 ppc64-*linux*|powerpc64-*linux*)
4871 LD="${LD-ld} -m elf32ppclinux"
4872 ;;
4873 s390x-*linux*)
4874 LD="${LD-ld} -m elf_s390"
4875 ;;
4876 sparc64-*linux*)
4877 LD="${LD-ld} -m elf32_sparc"
4878 ;;
4879 esac
4880 ;;
4881 *64-bit*)
4882 case $host in
4883 x86_64-*kfreebsd*-gnu)
4884 LD="${LD-ld} -m elf_x86_64_fbsd"
4885 ;;
4886 x86_64-*linux*)
4887 LD="${LD-ld} -m elf_x86_64"
4888 ;;
4889 ppc*-*linux*|powerpc*-*linux*)
4890 LD="${LD-ld} -m elf64ppc"
4891 ;;
4892 s390*-*linux*|s390*-*tpf*)
4893 LD="${LD-ld} -m elf64_s390"
4894 ;;
4895 sparc*-*linux*)
4896 LD="${LD-ld} -m elf64_sparc"
4897 ;;
4898 esac
4899 ;;
4900 esac
4901 fi
4902 rm -rf conftest*
4903 ;;
4904
4905*-*-sco3.2v5*)
4906 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4907 SAVE_CFLAGS="$CFLAGS"
4908 CFLAGS="$CFLAGS -belf"
4909 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4910echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4911if test "${lt_cv_cc_needs_belf+set}" = set; then
42ecbf5e
DJ
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4913else
d7040cdb
SE
4914 ac_ext=c
4915ac_cpp='$CPP $CPPFLAGS'
4916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918ac_compiler_gnu=$ac_cv_c_compiler_gnu
4919
4920 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
4921/* confdefs.h. */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h. */
4926
4927int
4928main ()
4929{
252b5132 4930
42ecbf5e
DJ
4931 ;
4932 return 0;
4933}
4934_ACEOF
d7040cdb
SE
4935rm -f conftest.$ac_objext conftest$ac_exeext
4936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
502bdb00
JW
4944 { ac_try='test -z "$ac_c_werror_flag"
4945 || test ! -s conftest.err'
42ecbf5e
DJ
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 (eval $ac_try) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
d7040cdb 4951 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
d7040cdb 4957 lt_cv_cc_needs_belf=yes
42ecbf5e
DJ
4958else
4959 echo "$as_me: failed program was:" >&5
4960sed 's/^/| /' conftest.$ac_ext >&5
4961
d7040cdb 4962lt_cv_cc_needs_belf=no
42ecbf5e 4963fi
d7040cdb
SE
4964rm -f conftest.err conftest.$ac_objext \
4965 conftest$ac_exeext conftest.$ac_ext
4966 ac_ext=c
4967ac_cpp='$CPP $CPPFLAGS'
4968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
4971
4972fi
d7040cdb
SE
4973echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4974echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4975 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4976 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4977 CFLAGS="$SAVE_CFLAGS"
4978 fi
4979 ;;
4980sparc*-*solaris*)
4981 # Find out which ABI we are using.
4982 echo 'int i;' > conftest.$ac_ext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; then
4988 case `/usr/bin/file conftest.o` in
4989 *64-bit*)
4990 case $lt_cv_prog_gnu_ld in
4991 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4992 *) LD="${LD-ld} -64" ;;
4993 esac
4994 ;;
4995 esac
4996 fi
4997 rm -rf conftest*
4998 ;;
4999esac
5000
5001need_locks="$enable_libtool_lock"
5002
5003ac_ext=c
5004ac_cpp='$CPP $CPPFLAGS'
5005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5009echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5010# On Suns, sometimes $CPP names a directory.
5011if test -n "$CPP" && test -d "$CPP"; then
5012 CPP=
5013fi
5014if test -z "$CPP"; then
5015 if test "${ac_cv_prog_CPP+set}" = set; then
42ecbf5e
DJ
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017else
d7040cdb
SE
5018 # Double quotes because CPP needs to be expanded
5019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5020 do
5021 ac_preproc_ok=false
5022for ac_c_preproc_warn_flag in '' yes
5023do
5024 # Use a header file that comes with gcc, so configuring glibc
5025 # with a fresh cross-compiler works.
5026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027 # <limits.h> exists even on freestanding compilers.
5028 # On the NeXT, cc -E runs the code through the compiler's parser,
5029 # not just through cpp. "Syntax error" is here to catch this case.
42ecbf5e
DJ
5030 cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h. */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h. */
d7040cdb
SE
5036#ifdef __STDC__
5037# include <limits.h>
5038#else
5039# include <assert.h>
5040#endif
5041 Syntax error
42ecbf5e 5042_ACEOF
d7040cdb
SE
5043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e
DJ
5045 ac_status=$?
5046 grep -v '^ *+' conftest.er1 >conftest.err
5047 rm -f conftest.er1
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5050 (exit $ac_status); } >/dev/null; then
5051 if test -s conftest.err; then
5052 ac_cpp_err=$ac_c_preproc_warn_flag
5053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
252b5132 5054 else
d7040cdb 5055 ac_cpp_err=
252b5132
RH
5056 fi
5057else
d7040cdb 5058 ac_cpp_err=yes
252b5132 5059fi
d7040cdb
SE
5060if test -z "$ac_cpp_err"; then
5061 :
42ecbf5e 5062else
d7040cdb
SE
5063 echo "$as_me: failed program was:" >&5
5064sed 's/^/| /' conftest.$ac_ext >&5
5065
5066 # Broken: fails on valid input.
5067continue
5068fi
5069rm -f conftest.err conftest.$ac_ext
5070
5071 # OK, works on sane cases. Now check whether non-existent headers
5072 # can be detected and how.
5073 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
5074/* confdefs.h. */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h. */
d7040cdb 5079#include <ac_nonexistent.h>
42ecbf5e 5080_ACEOF
d7040cdb
SE
5081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e
DJ
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_c_preproc_warn_flag
5091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092 else
5093 ac_cpp_err=
5094 fi
5095else
5096 ac_cpp_err=yes
5097fi
5098if test -z "$ac_cpp_err"; then
5099 # Broken: success on invalid input.
5100continue
42ecbf5e
DJ
5101else
5102 echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
d7040cdb
SE
5105 # Passes both tests.
5106ac_preproc_ok=:
5107break
42ecbf5e 5108fi
d7040cdb 5109rm -f conftest.err conftest.$ac_ext
42ecbf5e 5110
d7040cdb
SE
5111done
5112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113rm -f conftest.err conftest.$ac_ext
5114if $ac_preproc_ok; then
5115 break
42ecbf5e
DJ
5116fi
5117
d7040cdb
SE
5118 done
5119 ac_cv_prog_CPP=$CPP
42ecbf5e 5120
d7040cdb
SE
5121fi
5122 CPP=$ac_cv_prog_CPP
5123else
5124 ac_cv_prog_CPP=$CPP
5125fi
5126echo "$as_me:$LINENO: result: $CPP" >&5
5127echo "${ECHO_T}$CPP" >&6
5128ac_preproc_ok=false
5129for ac_c_preproc_warn_flag in '' yes
5130do
5131 # Use a header file that comes with gcc, so configuring glibc
5132 # with a fresh cross-compiler works.
5133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134 # <limits.h> exists even on freestanding compilers.
5135 # On the NeXT, cc -E runs the code through the compiler's parser,
5136 # not just through cpp. "Syntax error" is here to catch this case.
5137 cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h. */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h. */
5143#ifdef __STDC__
5144# include <limits.h>
5145#else
5146# include <assert.h>
42ecbf5e 5147#endif
d7040cdb 5148 Syntax error
42ecbf5e 5149_ACEOF
d7040cdb
SE
5150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e
DJ
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5157 (exit $ac_status); } >/dev/null; then
5158 if test -s conftest.err; then
5159 ac_cpp_err=$ac_c_preproc_warn_flag
5160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5161 else
5162 ac_cpp_err=
5163 fi
5164else
5165 ac_cpp_err=yes
5166fi
5167if test -z "$ac_cpp_err"; then
5168 :
5169else
5170 echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 # Broken: fails on valid input.
5174continue
5175fi
5176rm -f conftest.err conftest.$ac_ext
5177
5178 # OK, works on sane cases. Now check whether non-existent headers
5179 # can be detected and how.
42ecbf5e
DJ
5180 cat >conftest.$ac_ext <<_ACEOF
5181/* confdefs.h. */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h. */
d7040cdb 5186#include <ac_nonexistent.h>
42ecbf5e 5187_ACEOF
d7040cdb
SE
5188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e
DJ
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5195 (exit $ac_status); } >/dev/null; then
5196 if test -s conftest.err; then
5197 ac_cpp_err=$ac_c_preproc_warn_flag
5198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5199 else
5200 ac_cpp_err=
5201 fi
5202else
5203 ac_cpp_err=yes
5204fi
5205if test -z "$ac_cpp_err"; then
5206 # Broken: success on invalid input.
5207continue
42ecbf5e
DJ
5208else
5209 echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
d7040cdb
SE
5212 # Passes both tests.
5213ac_preproc_ok=:
5214break
42ecbf5e 5215fi
d7040cdb
SE
5216rm -f conftest.err conftest.$ac_ext
5217
5218done
5219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5220rm -f conftest.err conftest.$ac_ext
5221if $ac_preproc_ok; then
5222 :
5223else
5224 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5225See \`config.log' for more details." >&5
5226echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5227See \`config.log' for more details." >&2;}
5228 { (exit 1); exit 1; }; }
5229fi
5230
5231ac_ext=c
5232ac_cpp='$CPP $CPPFLAGS'
5233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235ac_compiler_gnu=$ac_cv_c_compiler_gnu
5236
5237
5238echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5239echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5240if test "${ac_cv_header_stdc+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242else
42ecbf5e
DJ
5243 cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h. */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h. */
d7040cdb
SE
5249#include <stdlib.h>
5250#include <stdarg.h>
5251#include <string.h>
5252#include <float.h>
5253
42ecbf5e
DJ
5254int
5255main ()
5256{
d7040cdb 5257
42ecbf5e
DJ
5258 ;
5259 return 0;
5260}
5261_ACEOF
5262rm -f conftest.$ac_objext
5263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264 (eval $ac_compile) 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
502bdb00
JW
5271 { ac_try='test -z "$ac_c_werror_flag"
5272 || test ! -s conftest.err'
42ecbf5e
DJ
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } &&
5278 { ac_try='test -s conftest.$ac_objext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
d7040cdb 5284 ac_cv_header_stdc=yes
42ecbf5e
DJ
5285else
5286 echo "$as_me: failed program was:" >&5
5287sed 's/^/| /' conftest.$ac_ext >&5
5288
d7040cdb 5289ac_cv_header_stdc=no
42ecbf5e
DJ
5290fi
5291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 5292
d7040cdb
SE
5293if test $ac_cv_header_stdc = yes; then
5294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5295 cat >conftest.$ac_ext <<_ACEOF
5296/* confdefs.h. */
5297_ACEOF
5298cat confdefs.h >>conftest.$ac_ext
5299cat >>conftest.$ac_ext <<_ACEOF
5300/* end confdefs.h. */
5301#include <string.h>
252b5132 5302
d7040cdb
SE
5303_ACEOF
5304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5305 $EGREP "memchr" >/dev/null 2>&1; then
5306 :
252b5132 5307else
d7040cdb 5308 ac_cv_header_stdc=no
252b5132 5309fi
d7040cdb
SE
5310rm -f conftest*
5311
252b5132 5312fi
252b5132 5313
d7040cdb
SE
5314if test $ac_cv_header_stdc = yes; then
5315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */
5322#include <stdlib.h>
252b5132 5323
d7040cdb
SE
5324_ACEOF
5325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5326 $EGREP "free" >/dev/null 2>&1; then
5327 :
5328else
5329 ac_cv_header_stdc=no
5330fi
5331rm -f conftest*
252b5132 5332
d7040cdb 5333fi
252b5132 5334
d7040cdb
SE
5335if test $ac_cv_header_stdc = yes; then
5336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5337 if test "$cross_compiling" = yes; then
5338 :
5339else
5340 cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h. */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h. */
5346#include <ctype.h>
5347#if ((' ' & 0x0FF) == 0x020)
5348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5350#else
5351# define ISLOWER(c) \
5352 (('a' <= (c) && (c) <= 'i') \
5353 || ('j' <= (c) && (c) <= 'r') \
5354 || ('s' <= (c) && (c) <= 'z'))
5355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5356#endif
252b5132 5357
d7040cdb
SE
5358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5359int
5360main ()
5361{
5362 int i;
5363 for (i = 0; i < 256; i++)
5364 if (XOR (islower (i), ISLOWER (i))
5365 || toupper (i) != TOUPPER (i))
5366 exit(2);
5367 exit (0);
5368}
5369_ACEOF
5370rm -f conftest$ac_exeext
5371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5372 (eval $ac_link) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 :
5382else
5383 echo "$as_me: program exited with status $ac_status" >&5
5384echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
b83ef3ee 5386
d7040cdb
SE
5387( exit $ac_status )
5388ac_cv_header_stdc=no
20e95c23 5389fi
d7040cdb
SE
5390rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5391fi
5392fi
5393fi
5394echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5395echo "${ECHO_T}$ac_cv_header_stdc" >&6
5396if test $ac_cv_header_stdc = yes; then
20e95c23
DJ
5397
5398cat >>confdefs.h <<\_ACEOF
d7040cdb 5399#define STDC_HEADERS 1
20e95c23
DJ
5400_ACEOF
5401
d7040cdb 5402fi
20e95c23 5403
d7040cdb 5404# On IRIX 5.3, sys/types and inttypes.h are conflicting.
20e95c23 5405
20e95c23 5406
20e95c23 5407
20e95c23 5408
20e95c23 5409
20e95c23 5410
20e95c23
DJ
5411
5412
5413
d7040cdb
SE
5414for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5415 inttypes.h stdint.h unistd.h
5416do
5417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5418echo "$as_me:$LINENO: checking for $ac_header" >&5
5419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5420if eval "test \"\${$as_ac_Header+set}\" = set"; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423 cat >conftest.$ac_ext <<_ACEOF
5424/* confdefs.h. */
5425_ACEOF
5426cat confdefs.h >>conftest.$ac_ext
5427cat >>conftest.$ac_ext <<_ACEOF
5428/* end confdefs.h. */
5429$ac_includes_default
20e95c23 5430
d7040cdb
SE
5431#include <$ac_header>
5432_ACEOF
5433rm -f conftest.$ac_objext
5434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag"
5443 || test ! -s conftest.err'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 (eval $ac_try) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 eval "$as_ac_Header=yes"
5456else
5457 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 5459
d7040cdb
SE
5460eval "$as_ac_Header=no"
5461fi
5462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463fi
5464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5466if test `eval echo '${'$as_ac_Header'}'` = yes; then
5467 cat >>confdefs.h <<_ACEOF
5468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5469_ACEOF
20e95c23 5470
d7040cdb 5471fi
20e95c23 5472
d7040cdb 5473done
20e95c23
DJ
5474
5475
20e95c23 5476
d7040cdb
SE
5477for ac_header in dlfcn.h
5478do
5479as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5480echo "$as_me:$LINENO: checking for $ac_header" >&5
5481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5482if eval "test \"\${$as_ac_Header+set}\" = set"; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 5484else
d7040cdb
SE
5485 cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h. */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h. */
5491$ac_includes_default
20e95c23 5492
d7040cdb
SE
5493#include <$ac_header>
5494_ACEOF
5495rm -f conftest.$ac_objext
5496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5497 (eval $ac_compile) 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -z "$ac_c_werror_flag"
5505 || test ! -s conftest.err'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; } &&
5511 { ac_try='test -s conftest.$ac_objext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 eval "$as_ac_Header=yes"
42ecbf5e 5518else
d7040cdb
SE
5519 echo "$as_me: failed program was:" >&5
5520sed 's/^/| /' conftest.$ac_ext >&5
5521
5522eval "$as_ac_Header=no"
20e95c23 5523fi
d7040cdb
SE
5524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5525fi
5526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5528if test `eval echo '${'$as_ac_Header'}'` = yes; then
5529 cat >>confdefs.h <<_ACEOF
5530#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5531_ACEOF
5532
20e95c23
DJ
5533fi
5534
42ecbf5e
DJ
5535done
5536
d7040cdb
SE
5537
5538
5539# This can be used to rebuild libtool when needed
5540LIBTOOL_DEPS="$ltmain"
5541
5542# Always use our own libtool.
5543LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569test -z "$LN_S" && LN_S="ln -s"
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584if test -n "${ZSH_VERSION+set}" ; then
5585 setopt NO_GLOB_SUBST
42ecbf5e 5586fi
20e95c23 5587
d7040cdb
SE
5588echo "$as_me:$LINENO: checking for objdir" >&5
5589echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5590if test "${lt_cv_objdir+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 5592else
d7040cdb
SE
5593 rm -f .libs 2>/dev/null
5594mkdir .libs 2>/dev/null
5595if test -d .libs; then
5596 lt_cv_objdir=.libs
5597else
5598 # MS-DOS does not allow filenames that begin with a dot.
5599 lt_cv_objdir=_libs
5600fi
5601rmdir .libs 2>/dev/null
42ecbf5e 5602fi
d7040cdb
SE
5603echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5604echo "${ECHO_T}$lt_cv_objdir" >&6
5605objdir=$lt_cv_objdir
20e95c23
DJ
5606
5607
5608
d7040cdb
SE
5609
5610
5611cat >>confdefs.h <<_ACEOF
5612#define LT_OBJDIR "$lt_cv_objdir/"
5613_ACEOF
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631case $host_os in
5632aix3*)
5633 # AIX sometimes has problems with the GCC collect2 program. For some
5634 # reason, if we set the COLLECT_NAMES environment variable, the problems
5635 # vanish in a puff of smoke.
5636 if test "X${COLLECT_NAMES+set}" != Xset; then
5637 COLLECT_NAMES=
5638 export COLLECT_NAMES
20e95c23 5639 fi
d7040cdb
SE
5640 ;;
5641esac
20e95c23 5642
d7040cdb
SE
5643# Sed substitution that helps us do robust quoting. It backslashifies
5644# metacharacters that are still active within double-quoted strings.
5645sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
20e95c23 5646
d7040cdb
SE
5647# Same as above, but do not quote variable references.
5648double_quote_subst='s/\(["`\\]\)/\\\1/g'
5649
5650# Sed substitution to delay expansion of an escaped shell variable in a
5651# double_quote_subst'ed string.
5652delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5653
5654# Sed substitution to delay expansion of an escaped single quote.
5655delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5656
5657# Sed substitution to avoid accidental globbing in evaled expressions
5658no_glob_subst='s/\*/\\\*/g'
5659
5660# Global variables:
5661ofile=libtool
5662can_build_shared=yes
5663
5664# All known linkers require a `.a' archive for static linking (except MSVC,
5665# which needs '.lib').
5666libext=a
5667
5668with_gnu_ld="$lt_cv_prog_gnu_ld"
5669
5670old_CC="$CC"
5671old_CFLAGS="$CFLAGS"
5672
5673# Set sane defaults for various variables
5674test -z "$CC" && CC=cc
5675test -z "$LTCC" && LTCC=$CC
5676test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5677test -z "$LD" && LD=ld
5678test -z "$ac_objext" && ac_objext=o
5679
5680for cc_temp in $compiler""; do
5681 case $cc_temp in
5682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5684 \-*) ;;
5685 *) break;;
5686 esac
5687done
5688cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5689
5690
5691# Only perform the check for file, if the check method requires it
5692test -z "$MAGIC_CMD" && MAGIC_CMD=file
5693case $deplibs_check_method in
5694file_magic*)
5695 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5696 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5697echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5698if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
20e95c23
DJ
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
d7040cdb
SE
5701 case $MAGIC_CMD in
5702[\\/*] | ?:[\\/]*)
5703 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5704 ;;
5705*)
5706 lt_save_MAGIC_CMD="$MAGIC_CMD"
5707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5709 for ac_dir in $ac_dummy; do
5710 IFS="$lt_save_ifs"
5711 test -z "$ac_dir" && ac_dir=.
5712 if test -f $ac_dir/${ac_tool_prefix}file; then
5713 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5714 if test -n "$file_magic_test_file"; then
5715 case $deplibs_check_method in
5716 "file_magic "*)
5717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5720 $EGREP "$file_magic_regex" > /dev/null; then
5721 :
5722 else
5723 cat <<_LT_EOF 1>&2
5724
5725*** Warning: the command libtool uses to detect shared libraries,
5726*** $file_magic_cmd, produces output that libtool cannot recognize.
5727*** The result is that libtool may fail to recognize shared libraries
5728*** as such. This will affect the creation of libtool libraries that
5729*** depend on shared libraries, but programs linked with such libtool
5730*** libraries will work regardless of this problem. Nevertheless, you
5731*** may want to report the problem to your system manager and/or to
5732*** bug-libtool@gnu.org
5733
5734_LT_EOF
5735 fi ;;
5736 esac
5737 fi
5738 break
5739 fi
5740 done
5741 IFS="$lt_save_ifs"
5742 MAGIC_CMD="$lt_save_MAGIC_CMD"
5743 ;;
20e95c23
DJ
5744esac
5745fi
d7040cdb
SE
5746
5747MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5748if test -n "$MAGIC_CMD"; then
5749 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5750echo "${ECHO_T}$MAGIC_CMD" >&6
42ecbf5e
DJ
5751else
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754fi
5755
20e95c23
DJ
5756
5757
20e95c23 5758
20e95c23 5759
d7040cdb
SE
5760if test -z "$lt_cv_path_MAGIC_CMD"; then
5761 if test -n "$ac_tool_prefix"; then
5762 echo "$as_me:$LINENO: checking for file" >&5
5763echo $ECHO_N "checking for file... $ECHO_C" >&6
5764if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
d7040cdb
SE
5767 case $MAGIC_CMD in
5768[\\/*] | ?:[\\/]*)
5769 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5770 ;;
5771*)
5772 lt_save_MAGIC_CMD="$MAGIC_CMD"
5773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5774 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5775 for ac_dir in $ac_dummy; do
5776 IFS="$lt_save_ifs"
5777 test -z "$ac_dir" && ac_dir=.
5778 if test -f $ac_dir/file; then
5779 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5780 if test -n "$file_magic_test_file"; then
5781 case $deplibs_check_method in
5782 "file_magic "*)
5783 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5784 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5786 $EGREP "$file_magic_regex" > /dev/null; then
5787 :
5788 else
5789 cat <<_LT_EOF 1>&2
5790
5791*** Warning: the command libtool uses to detect shared libraries,
5792*** $file_magic_cmd, produces output that libtool cannot recognize.
5793*** The result is that libtool may fail to recognize shared libraries
5794*** as such. This will affect the creation of libtool libraries that
5795*** depend on shared libraries, but programs linked with such libtool
5796*** libraries will work regardless of this problem. Nevertheless, you
5797*** may want to report the problem to your system manager and/or to
5798*** bug-libtool@gnu.org
5799
5800_LT_EOF
5801 fi ;;
5802 esac
5803 fi
5804 break
5805 fi
5806 done
5807 IFS="$lt_save_ifs"
5808 MAGIC_CMD="$lt_save_MAGIC_CMD"
5809 ;;
20e95c23
DJ
5810esac
5811fi
d7040cdb
SE
5812
5813MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5814if test -n "$MAGIC_CMD"; then
5815 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5816echo "${ECHO_T}$MAGIC_CMD" >&6
20e95c23
DJ
5817else
5818 echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
5820fi
5821
5822
d7040cdb
SE
5823 else
5824 MAGIC_CMD=:
20e95c23 5825 fi
d7040cdb 5826fi
20e95c23 5827
20e95c23 5828 fi
d7040cdb
SE
5829 ;;
5830esac
20e95c23 5831
d7040cdb 5832# Use C for the default configuration in the libtool script
20e95c23 5833
d7040cdb
SE
5834lt_save_CC="$CC"
5835ac_ext=c
5836ac_cpp='$CPP $CPPFLAGS'
5837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23
DJ
5840
5841
d7040cdb
SE
5842# Source file extension for C test sources.
5843ac_ext=c
20e95c23 5844
d7040cdb
SE
5845# Object file extension for compiled C test sources.
5846objext=o
5847objext=$objext
5848
5849# Code to be used in simple compile tests
5850lt_simple_compile_test_code="int some_variable = 0;"
5851
5852# Code to be used in simple link tests
5853lt_simple_link_test_code='int main(){return(0);}'
5854
5855
5856
5857
5858
5859
5860
5861# If no C compiler was specified, use CC.
5862LTCC=${LTCC-"$CC"}
5863
5864# If no C compiler flags were specified, use CFLAGS.
5865LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5866
5867# Allow CC to be a program name with arguments.
5868compiler=$CC
5869
5870# Save the default compiler, since it gets overwritten when the other
5871# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5872compiler_DEFAULT=$CC
5873
5874# save warnings/boilerplate of simple test code
5875ac_outfile=conftest.$ac_objext
5876echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5877eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5878_lt_compiler_boilerplate=`cat conftest.err`
5879$RM conftest*
5880
5881ac_outfile=conftest.$ac_objext
5882echo "$lt_simple_link_test_code" >conftest.$ac_ext
5883eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5884_lt_linker_boilerplate=`cat conftest.err`
5885$RM conftest*
5886
5887
5888## CAVEAT EMPTOR:
5889## There is no encapsulation within the following macros, do not change
5890## the running order or otherwise move them around unless you know exactly
5891## what you are doing...
5892if test -n "$compiler"; then
5893
5894lt_prog_compiler_no_builtin_flag=
5895
5896if test "$GCC" = yes; then
5897 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5898
5899 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5900echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5901if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23
DJ
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903else
d7040cdb
SE
5904 lt_cv_prog_compiler_rtti_exceptions=no
5905 ac_outfile=conftest.$ac_objext
5906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5907 lt_compiler_flag="-fno-rtti -fno-exceptions"
5908 # Insert the option either (1) after the last *FLAGS variable, or
5909 # (2) before a word containing "conftest.", or (3) at the end.
5910 # Note that $ac_compile itself does not contain backslashes and begins
5911 # with a dollar sign (not a hyphen), so the echo should work correctly.
5912 # The option is referenced via a variable to avoid confusing sed.
5913 lt_compile=`echo "$ac_compile" | $SED \
5914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5916 -e 's:$: $lt_compiler_flag:'`
5917 (eval echo "\"\$as_me:5917: $lt_compile\"" >&5)
5918 (eval "$lt_compile" 2>conftest.err)
5919 ac_status=$?
5920 cat conftest.err >&5
5921 echo "$as_me:5921: \$? = $ac_status" >&5
5922 if (exit $ac_status) && test -s "$ac_outfile"; then
5923 # The compiler can only warn and ignore the option if not recognized
5924 # So say no if there are warnings other than the usual output.
5925 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5928 lt_cv_prog_compiler_rtti_exceptions=yes
5929 fi
5930 fi
5931 $RM conftest*
5932
5933fi
5934echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5935echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5936
5937if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5938 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
42ecbf5e 5939else
d7040cdb
SE
5940 :
5941fi
42ecbf5e 5942
42ecbf5e 5943fi
d7040cdb
SE
5944
5945
5946
5947
5948
5949
5950 lt_prog_compiler_wl=
5951lt_prog_compiler_pic=
5952lt_prog_compiler_static=
5953
5954echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5955echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5956
5957 if test "$GCC" = yes; then
5958 lt_prog_compiler_wl='-Wl,'
5959 lt_prog_compiler_static='-static'
5960
5961 case $host_os in
5962 aix*)
5963 # All AIX code is PIC.
5964 if test "$host_cpu" = ia64; then
5965 # AIX 5 now supports IA64 processor
5966 lt_prog_compiler_static='-Bstatic'
5967 fi
5968 ;;
5969
5970 amigaos*)
5971 if test "$host_cpu" = m68k; then
5972 # FIXME: we need at least 68020 code to build shared libraries, but
5973 # adding the `-m68020' flag to GCC prevents building anything better,
5974 # like `-m68040'.
5975 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5976 fi
5977 ;;
5978
5979 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5980 # PIC is the default for these OSes.
5981 ;;
5982
5983 mingw* | cygwin* | pw32* | os2*)
5984 # This hack is so that the source file can tell whether it is being
5985 # built for inclusion in a dll (and should export symbols for example).
5986 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5987 # (--disable-auto-import) libraries
5988 lt_prog_compiler_pic='-DDLL_EXPORT'
5989 ;;
5990
5991 darwin* | rhapsody*)
5992 # PIC is the default on this platform
5993 # Common symbols not allowed in MH_DYLIB files
5994 lt_prog_compiler_pic='-fno-common'
5995 ;;
5996
5997 hpux*)
5998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5999 # not for PA HP-UX.
6000 case $host_cpu in
6001 hppa*64*|ia64*)
6002 # +Z the default
6003 ;;
6004 *)
6005 lt_prog_compiler_pic='-fPIC'
6006 ;;
6007 esac
6008 ;;
6009
6010 interix[3-9]*)
6011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6012 # Instead, we relocate shared libraries at runtime.
6013 ;;
6014
6015 msdosdjgpp*)
6016 # Just because we use GCC doesn't mean we suddenly get shared libraries
6017 # on systems that don't support them.
6018 lt_prog_compiler_can_build_shared=no
6019 enable_shared=no
6020 ;;
6021
6022 *nto* | *qnx*)
6023 # QNX uses GNU C++, but need to define -shared option too, otherwise
6024 # it will coredump.
6025 lt_prog_compiler_pic='-fPIC -shared'
6026 ;;
6027
6028 sysv4*MP*)
6029 if test -d /usr/nec; then
6030 lt_prog_compiler_pic=-Kconform_pic
6031 fi
6032 ;;
6033
6034 *)
6035 lt_prog_compiler_pic='-fPIC'
6036 ;;
6037 esac
6038 else
6039 # PORTME Check for flag to pass linker flags through the system compiler.
6040 case $host_os in
6041 aix*)
6042 lt_prog_compiler_wl='-Wl,'
6043 if test "$host_cpu" = ia64; then
6044 # AIX 5 now supports IA64 processor
6045 lt_prog_compiler_static='-Bstatic'
6046 else
6047 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6048 fi
6049 ;;
6050 darwin*)
6051 # PIC is the default on this platform
6052 # Common symbols not allowed in MH_DYLIB files
6053 case $cc_basename in
6054 xlc*)
6055 lt_prog_compiler_pic='-qnocommon'
6056 lt_prog_compiler_wl='-Wl,'
6057 ;;
6058 esac
6059 ;;
6060
6061 mingw* | cygwin* | pw32* | os2*)
6062 # This hack is so that the source file can tell whether it is being
6063 # built for inclusion in a dll (and should export symbols for example).
6064 lt_prog_compiler_pic='-DDLL_EXPORT'
6065 ;;
6066
6067 hpux9* | hpux10* | hpux11*)
6068 lt_prog_compiler_wl='-Wl,'
6069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6070 # not for PA HP-UX.
6071 case $host_cpu in
6072 hppa*64*|ia64*)
6073 # +Z the default
6074 ;;
6075 *)
6076 lt_prog_compiler_pic='+Z'
6077 ;;
6078 esac
6079 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6080 lt_prog_compiler_static='${wl}-a ${wl}archive'
6081 ;;
6082
6083 irix5* | irix6* | nonstopux*)
6084 lt_prog_compiler_wl='-Wl,'
6085 # PIC (with -KPIC) is the default.
6086 lt_prog_compiler_static='-non_shared'
6087 ;;
6088
6089 linux* | k*bsd*-gnu)
6090 case $cc_basename in
6091 icc* | ecc*)
6092 lt_prog_compiler_wl='-Wl,'
6093 lt_prog_compiler_pic='-KPIC'
6094 lt_prog_compiler_static='-static'
6095 ;;
6096 pgcc* | pgf77* | pgf90* | pgf95*)
6097 # Portland Group compilers (*not* the Pentium gcc compiler,
6098 # which looks to be a dead project)
6099 lt_prog_compiler_wl='-Wl,'
6100 lt_prog_compiler_pic='-fpic'
6101 lt_prog_compiler_static='-Bstatic'
6102 ;;
6103 ccc*)
6104 lt_prog_compiler_wl='-Wl,'
6105 # All Alpha code is PIC.
6106 lt_prog_compiler_static='-non_shared'
6107 ;;
6108 *)
6109 case `$CC -V 2>&1 | sed 5q` in
6110 *Sun\ C*)
6111 # Sun C 5.9
6112 lt_prog_compiler_pic='-KPIC'
6113 lt_prog_compiler_static='-Bstatic'
6114 lt_prog_compiler_wl='-Wl,'
6115 ;;
6116 *Sun\ F*)
6117 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6118 lt_prog_compiler_pic='-KPIC'
6119 lt_prog_compiler_static='-Bstatic'
6120 lt_prog_compiler_wl=''
6121 ;;
6122 esac
6123 ;;
6124 esac
6125 ;;
6126
6127 newsos6)
6128 lt_prog_compiler_pic='-KPIC'
6129 lt_prog_compiler_static='-Bstatic'
6130 ;;
6131
6132 *nto* | *qnx*)
6133 # QNX uses GNU C++, but need to define -shared option too, otherwise
6134 # it will coredump.
6135 lt_prog_compiler_pic='-fPIC -shared'
6136 ;;
6137
6138 osf3* | osf4* | osf5*)
6139 lt_prog_compiler_wl='-Wl,'
6140 # All OSF/1 code is PIC.
6141 lt_prog_compiler_static='-non_shared'
6142 ;;
6143
6144 rdos*)
6145 lt_prog_compiler_static='-non_shared'
6146 ;;
6147
6148 solaris*)
6149 lt_prog_compiler_pic='-KPIC'
6150 lt_prog_compiler_static='-Bstatic'
6151 case $cc_basename in
6152 f77* | f90* | f95*)
6153 lt_prog_compiler_wl='-Qoption ld ';;
6154 *)
6155 lt_prog_compiler_wl='-Wl,';;
6156 esac
6157 ;;
6158
6159 sunos4*)
6160 lt_prog_compiler_wl='-Qoption ld '
6161 lt_prog_compiler_pic='-PIC'
6162 lt_prog_compiler_static='-Bstatic'
6163 ;;
6164
6165 sysv4 | sysv4.2uw2* | sysv4.3*)
6166 lt_prog_compiler_wl='-Wl,'
6167 lt_prog_compiler_pic='-KPIC'
6168 lt_prog_compiler_static='-Bstatic'
6169 ;;
6170
6171 sysv4*MP*)
6172 if test -d /usr/nec ;then
6173 lt_prog_compiler_pic='-Kconform_pic'
6174 lt_prog_compiler_static='-Bstatic'
6175 fi
6176 ;;
6177
6178 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6179 lt_prog_compiler_wl='-Wl,'
6180 lt_prog_compiler_pic='-KPIC'
6181 lt_prog_compiler_static='-Bstatic'
6182 ;;
6183
6184 unicos*)
6185 lt_prog_compiler_wl='-Wl,'
6186 lt_prog_compiler_can_build_shared=no
6187 ;;
6188
6189 uts4*)
6190 lt_prog_compiler_pic='-pic'
6191 lt_prog_compiler_static='-Bstatic'
6192 ;;
6193
6194 *)
6195 lt_prog_compiler_can_build_shared=no
6196 ;;
6197 esac
6198 fi
6199
6200case $host_os in
6201 # For platforms which do not support PIC, -DPIC is meaningless:
6202 *djgpp*)
6203 lt_prog_compiler_pic=
6204 ;;
6205 *)
6206 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6207 ;;
6208esac
6209echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6210echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6211
6212
6213
6214
6215
6216
6217#
6218# Check to make sure the PIC flag actually works.
6219#
6220if test -n "$lt_prog_compiler_pic"; then
6221 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6222echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6223if test "${lt_prog_compiler_pic_works+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226 lt_prog_compiler_pic_works=no
6227 ac_outfile=conftest.$ac_objext
6228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6229 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6230 # Insert the option either (1) after the last *FLAGS variable, or
6231 # (2) before a word containing "conftest.", or (3) at the end.
6232 # Note that $ac_compile itself does not contain backslashes and begins
6233 # with a dollar sign (not a hyphen), so the echo should work correctly.
6234 # The option is referenced via a variable to avoid confusing sed.
6235 lt_compile=`echo "$ac_compile" | $SED \
6236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6238 -e 's:$: $lt_compiler_flag:'`
6239 (eval echo "\"\$as_me:6239: $lt_compile\"" >&5)
6240 (eval "$lt_compile" 2>conftest.err)
6241 ac_status=$?
6242 cat conftest.err >&5
6243 echo "$as_me:6243: \$? = $ac_status" >&5
6244 if (exit $ac_status) && test -s "$ac_outfile"; then
6245 # The compiler can only warn and ignore the option if not recognized
6246 # So say no if there are warnings other than the usual output.
6247 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6250 lt_prog_compiler_pic_works=yes
6251 fi
6252 fi
6253 $RM conftest*
6254
42ecbf5e 6255fi
d7040cdb
SE
6256echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6257echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6258
6259if test x"$lt_prog_compiler_pic_works" = xyes; then
6260 case $lt_prog_compiler_pic in
6261 "" | " "*) ;;
6262 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6263 esac
42ecbf5e 6264else
d7040cdb
SE
6265 lt_prog_compiler_pic=
6266 lt_prog_compiler_can_build_shared=no
42ecbf5e
DJ
6267fi
6268
d7040cdb 6269fi
42ecbf5e 6270
d7040cdb
SE
6271
6272
6273
6274
6275
6276#
6277# Check to make sure the static flag actually works.
6278#
6279wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6280echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6281echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6282if test "${lt_prog_compiler_static_works+set}" = set; then
42ecbf5e
DJ
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
d7040cdb
SE
6285 lt_prog_compiler_static_works=no
6286 save_LDFLAGS="$LDFLAGS"
6287 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6288 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6290 # The linker can only warn and ignore the option if not recognized
6291 # So say no if there are warnings
6292 if test -s conftest.err; then
6293 # Append any errors to the config.log.
6294 cat conftest.err 1>&5
6295 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6297 if diff conftest.exp conftest.er2 >/dev/null; then
6298 lt_prog_compiler_static_works=yes
6299 fi
6300 else
6301 lt_prog_compiler_static_works=yes
6302 fi
6303 fi
6304 $RM conftest*
6305 LDFLAGS="$save_LDFLAGS"
20e95c23 6306
42ecbf5e 6307fi
d7040cdb
SE
6308echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6309echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6310
6311if test x"$lt_prog_compiler_static_works" = xyes; then
6312 :
6313else
6314 lt_prog_compiler_static=
20e95c23 6315fi
d7040cdb
SE
6316
6317
6318
6319
6320
6321
6322
6323 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6324echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6325if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 6327else
d7040cdb
SE
6328 lt_cv_prog_compiler_c_o=no
6329 $RM -r conftest 2>/dev/null
6330 mkdir conftest
6331 cd conftest
6332 mkdir out
6333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6334
6335 lt_compiler_flag="-o out/conftest2.$ac_objext"
6336 # Insert the option either (1) after the last *FLAGS variable, or
6337 # (2) before a word containing "conftest.", or (3) at the end.
6338 # Note that $ac_compile itself does not contain backslashes and begins
6339 # with a dollar sign (not a hyphen), so the echo should work correctly.
6340 lt_compile=`echo "$ac_compile" | $SED \
6341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6343 -e 's:$: $lt_compiler_flag:'`
6344 (eval echo "\"\$as_me:6344: $lt_compile\"" >&5)
6345 (eval "$lt_compile" 2>out/conftest.err)
6346 ac_status=$?
6347 cat out/conftest.err >&5
6348 echo "$as_me:6348: \$? = $ac_status" >&5
6349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6350 then
6351 # The compiler can only warn and ignore the option if not recognized
6352 # So say no if there are warnings
6353 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6356 lt_cv_prog_compiler_c_o=yes
6357 fi
6358 fi
6359 chmod u+w . 2>&5
6360 $RM conftest*
6361 # SGI C++ compiler will create directory out/ii_files/ for
6362 # template instantiation
6363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6364 $RM out/* && rmdir out
6365 cd ..
6366 $RM -r conftest
6367 $RM conftest*
6368
42ecbf5e 6369fi
d7040cdb
SE
6370echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6371echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
42ecbf5e 6372
20e95c23 6373
d7040cdb
SE
6374
6375
6376
6377
6378 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6379echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6380if test "${lt_cv_prog_compiler_c_o+set}" = set; then
20e95c23
DJ
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
d7040cdb
SE
6383 lt_cv_prog_compiler_c_o=no
6384 $RM -r conftest 2>/dev/null
6385 mkdir conftest
6386 cd conftest
6387 mkdir out
6388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6389
6390 lt_compiler_flag="-o out/conftest2.$ac_objext"
6391 # Insert the option either (1) after the last *FLAGS variable, or
6392 # (2) before a word containing "conftest.", or (3) at the end.
6393 # Note that $ac_compile itself does not contain backslashes and begins
6394 # with a dollar sign (not a hyphen), so the echo should work correctly.
6395 lt_compile=`echo "$ac_compile" | $SED \
6396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6398 -e 's:$: $lt_compiler_flag:'`
6399 (eval echo "\"\$as_me:6399: $lt_compile\"" >&5)
6400 (eval "$lt_compile" 2>out/conftest.err)
6401 ac_status=$?
6402 cat out/conftest.err >&5
6403 echo "$as_me:6403: \$? = $ac_status" >&5
6404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6405 then
6406 # The compiler can only warn and ignore the option if not recognized
6407 # So say no if there are warnings
6408 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6411 lt_cv_prog_compiler_c_o=yes
6412 fi
6413 fi
6414 chmod u+w . 2>&5
6415 $RM conftest*
6416 # SGI C++ compiler will create directory out/ii_files/ for
6417 # template instantiation
6418 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6419 $RM out/* && rmdir out
6420 cd ..
6421 $RM -r conftest
6422 $RM conftest*
6423
6424fi
6425echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6426echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6427
6428
6429
6430
6431hard_links="nottested"
6432if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6433 # do not overwrite the value of need_locks provided by the user
6434 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6435echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6436 hard_links=yes
6437 $RM conftest*
6438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6439 touch conftest.a
6440 ln conftest.a conftest.b 2>&5 || hard_links=no
6441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6442 echo "$as_me:$LINENO: result: $hard_links" >&5
6443echo "${ECHO_T}$hard_links" >&6
6444 if test "$hard_links" = no; then
6445 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6446echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6447 need_locks=warn
6448 fi
6449else
6450 need_locks=no
6451fi
6452
6453
6454
6455
6456
6457
6458 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6459echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6460
6461 runpath_var=
6462 allow_undefined_flag=
6463 always_export_symbols=no
6464 archive_cmds=
6465 archive_expsym_cmds=
6466 compiler_needs_object=no
6467 enable_shared_with_static_runtimes=no
6468 export_dynamic_flag_spec=
6469 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6470 hardcode_automatic=no
6471 hardcode_direct=no
6472 hardcode_direct_absolute=no
6473 hardcode_libdir_flag_spec=
6474 hardcode_libdir_flag_spec_ld=
6475 hardcode_libdir_separator=
6476 hardcode_minus_L=no
6477 hardcode_shlibpath_var=unsupported
6478 inherit_rpath=no
6479 link_all_deplibs=unknown
6480 module_cmds=
6481 module_expsym_cmds=
6482 old_archive_from_new_cmds=
6483 old_archive_from_expsyms_cmds=
6484 thread_safe_flag_spec=
6485 whole_archive_flag_spec=
6486 # include_expsyms should be a list of space-separated symbols to be *always*
6487 # included in the symbol list
6488 include_expsyms=
6489 # exclude_expsyms can be an extended regexp of symbols to exclude
6490 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6491 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6492 # as well as any symbol that contains `d'.
6493 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6494 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6495 # platforms (ab)use it in PIC code, but their linkers get confused if
6496 # the symbol is explicitly referenced. Since portable code cannot
6497 # rely on this symbol name, it's probably fine to never include it in
6498 # preloaded symbol tables.
6499 extract_expsyms_cmds=
6500
6501 case $host_os in
6502 cygwin* | mingw* | pw32*)
6503 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6504 # When not using gcc, we currently assume that we are using
6505 # Microsoft Visual C++.
6506 if test "$GCC" != yes; then
6507 with_gnu_ld=no
6508 fi
6509 ;;
6510 interix*)
6511 # we just hope/assume this is gcc and not c89 (= MSVC++)
6512 with_gnu_ld=yes
6513 ;;
6514 openbsd*)
6515 with_gnu_ld=no
6516 ;;
6517 esac
6518
6519 ld_shlibs=yes
6520 if test "$with_gnu_ld" = yes; then
6521 # If archive_cmds runs LD, not CC, wlarc should be empty
6522 wlarc='${wl}'
6523
6524 # Set some defaults for GNU ld with shared library support. These
6525 # are reset later if shared libraries are not supported. Putting them
6526 # here allows them to be overridden if necessary.
6527 runpath_var=LD_RUN_PATH
6528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6529 export_dynamic_flag_spec='${wl}--export-dynamic'
6530 # ancient GNU ld didn't support --whole-archive et. al.
6531 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6532 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6533 else
6534 whole_archive_flag_spec=
6535 fi
6536 supports_anon_versioning=no
6537 case `$LD -v 2>&1` in
6538 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6539 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6540 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6541 *\ 2.11.*) ;; # other 2.11 versions
6542 *) supports_anon_versioning=yes ;;
6543 esac
6544
6545 # See if GNU ld supports shared libraries.
6546 case $host_os in
6547 aix3* | aix4* | aix5*)
6548 # On AIX/PPC, the GNU linker is very broken
6549 if test "$host_cpu" != ia64; then
6550 ld_shlibs=no
6551 cat <<_LT_EOF 1>&2
6552
6553*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6554*** to be unable to reliably create shared libraries on AIX.
6555*** Therefore, libtool is disabling shared libraries support. If you
6556*** really care for shared libraries, you may want to modify your PATH
6557*** so that a non-GNU linker is found, and then restart.
6558
6559_LT_EOF
6560 fi
6561 ;;
6562
6563 amigaos*)
6564 if test "$host_cpu" = m68k; then
6565 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)'
6566 hardcode_libdir_flag_spec='-L$libdir'
6567 hardcode_minus_L=yes
6568 fi
6569
6570 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6571 # that the semantics of dynamic libraries on AmigaOS, at least up
6572 # to version 4, is to share data among multiple programs linked
6573 # with the same dynamic library. Since this doesn't match the
6574 # behavior of shared libraries on other platforms, we can't use
6575 # them.
6576 ld_shlibs=no
6577 ;;
6578
6579 beos*)
6580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6581 allow_undefined_flag=unsupported
6582 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6583 # support --undefined. This deserves some investigation. FIXME
6584 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6585 else
6586 ld_shlibs=no
6587 fi
6588 ;;
6589
6590 cygwin* | mingw* | pw32*)
6591 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6592 # as there is no search path for DLLs.
6593 hardcode_libdir_flag_spec='-L$libdir'
6594 allow_undefined_flag=unsupported
6595 always_export_symbols=no
6596 enable_shared_with_static_runtimes=yes
6597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6598
6599 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6601 # If the export-symbols file already is a .def file (1st line
6602 # is EXPORTS), use it as is; otherwise, prepend...
6603 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6604 cp $export_symbols $output_objdir/$soname.def;
6605 else
6606 echo EXPORTS > $output_objdir/$soname.def;
6607 cat $export_symbols >> $output_objdir/$soname.def;
6608 fi~
6609 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6610 else
6611 ld_shlibs=no
6612 fi
6613 ;;
6614
6615 interix[3-9]*)
6616 hardcode_direct=no
6617 hardcode_shlibpath_var=no
6618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6619 export_dynamic_flag_spec='${wl}-E'
6620 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6621 # Instead, shared libraries are loaded at an image base (0x10000000 by
6622 # default) and relocated if they conflict, which is a slow very memory
6623 # consuming and fragmenting process. To avoid this, we pick a random,
6624 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6625 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6626 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6627 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'
6628 ;;
6629
6630 gnu* | linux* | tpf* | k*bsd*-gnu)
6631 tmp_diet=no
6632 if test "$host_os" = linux-dietlibc; then
6633 case $cc_basename in
6634 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6635 esac
6636 fi
6637 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6638 && test "$tmp_diet" = no
6639 then
6640 tmp_addflag=
6641 case $cc_basename,$host_cpu in
6642 pgcc*) # Portland Group C compiler
6643 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'
6644 tmp_addflag=' $pic_flag'
6645 ;;
6646 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6647 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'
6648 tmp_addflag=' $pic_flag -Mnomain' ;;
6649 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6650 tmp_addflag=' -i_dynamic' ;;
6651 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6652 tmp_addflag=' -i_dynamic -nofor_main' ;;
6653 ifc* | ifort*) # Intel Fortran compiler
6654 tmp_addflag=' -nofor_main' ;;
6655 esac
6656 case `$CC -V 2>&1 | sed 5q` in
6657 *Sun\ C*) # Sun C 5.9
6658 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'
6659 compiler_needs_object=yes
6660 tmp_sharedflag='-G' ;;
6661 *Sun\ F*) # Sun Fortran 8.3
6662 tmp_sharedflag='-G' ;;
6663 *)
6664 tmp_sharedflag='-shared' ;;
6665 esac
6666 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6667
6668 if test "x$supports_anon_versioning" = xyes; then
6669 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6670 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6671 echo "local: *; };" >> $output_objdir/$libname.ver~
6672 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6673 fi
6674 else
6675 ld_shlibs=no
6676 fi
6677 ;;
6678
6679 netbsd*)
6680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6681 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6682 wlarc=
6683 else
6684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6686 fi
6687 ;;
6688
6689 solaris*)
6690 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6691 ld_shlibs=no
6692 cat <<_LT_EOF 1>&2
6693
6694*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6695*** create shared libraries on Solaris systems. Therefore, libtool
6696*** is disabling shared libraries support. We urge you to upgrade GNU
6697*** binutils to release 2.9.1 or newer. Another option is to modify
6698*** your PATH or compiler configuration so that the native linker is
6699*** used, and then restart.
6700
6701_LT_EOF
6702 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6705 else
6706 ld_shlibs=no
6707 fi
6708 ;;
6709
6710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6711 case `$LD -v 2>&1` in
6712 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6713 ld_shlibs=no
6714 cat <<_LT_EOF 1>&2
6715
6716*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6717*** reliably create shared libraries on SCO systems. Therefore, libtool
6718*** is disabling shared libraries support. We urge you to upgrade GNU
6719*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6720*** your PATH or compiler configuration so that the native linker is
6721*** used, and then restart.
6722
6723_LT_EOF
6724 ;;
6725 *)
6726 # For security reasons, it is highly recommended that you always
6727 # use absolute paths for naming shared libraries, and exclude the
6728 # DT_RUNPATH tag from executables and libraries. But doing so
6729 # requires that you compile everything twice, which is a pain.
6730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6734 else
6735 ld_shlibs=no
6736 fi
6737 ;;
6738 esac
6739 ;;
6740
6741 sunos4*)
6742 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6743 wlarc=
6744 hardcode_direct=yes
6745 hardcode_shlibpath_var=no
6746 ;;
6747
6748 *)
6749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6752 else
6753 ld_shlibs=no
6754 fi
6755 ;;
6756 esac
6757
6758 if test "$ld_shlibs" = no; then
6759 runpath_var=
6760 hardcode_libdir_flag_spec=
6761 export_dynamic_flag_spec=
6762 whole_archive_flag_spec=
6763 fi
6764 else
6765 # PORTME fill in a description of your system's linker (not GNU ld)
6766 case $host_os in
6767 aix3*)
6768 allow_undefined_flag=unsupported
6769 always_export_symbols=yes
6770 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'
6771 # Note: this linker hardcodes the directories in LIBPATH if there
6772 # are no directories specified by -L.
6773 hardcode_minus_L=yes
6774 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6775 # Neither direct hardcoding nor static linking is supported with a
6776 # broken collect2.
6777 hardcode_direct=unsupported
6778 fi
6779 ;;
6780
6781 aix4* | aix5*)
6782 if test "$host_cpu" = ia64; then
6783 # On IA64, the linker does run time linking by default, so we don't
6784 # have to do anything special.
6785 aix_use_runtimelinking=no
6786 exp_sym_flag='-Bexport'
6787 no_entry_flag=""
6788 else
6789 # If we're using GNU nm, then we don't want the "-C" option.
6790 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6791 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6792 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'
6793 else
6794 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'
6795 fi
6796 aix_use_runtimelinking=no
6797
6798 # Test if we are trying to use run time linking or normal
6799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6800 # need to do runtime linking.
6801 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6802 for ld_flag in $LDFLAGS; do
6803 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6804 aix_use_runtimelinking=yes
6805 break
6806 fi
6807 done
6808 ;;
6809 esac
6810
6811 exp_sym_flag='-bexport'
6812 no_entry_flag='-bnoentry'
6813 fi
6814
6815 # When large executables or shared objects are built, AIX ld can
6816 # have problems creating the table of contents. If linking a library
6817 # or program results in "error TOC overflow" add -mminimal-toc to
6818 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6819 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6820
6821 archive_cmds=''
6822 hardcode_direct=yes
6823 hardcode_direct_absolute=yes
6824 hardcode_libdir_separator=':'
6825 link_all_deplibs=yes
6826 file_list_spec='${wl}-f,'
6827
6828 if test "$GCC" = yes; then
6829 case $host_os in aix4.[012]|aix4.[012].*)
6830 # We only want to do this on AIX 4.2 and lower, the check
6831 # below for broken collect2 doesn't work under 4.3+
6832 collect2name=`${CC} -print-prog-name=collect2`
6833 if test -f "$collect2name" &&
6834 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6835 then
6836 # We have reworked collect2
6837 :
6838 else
6839 # We have old collect2
6840 hardcode_direct=unsupported
6841 # It fails to find uninstalled libraries when the uninstalled
6842 # path is not listed in the libpath. Setting hardcode_minus_L
6843 # to unsupported forces relinking
6844 hardcode_minus_L=yes
6845 hardcode_libdir_flag_spec='-L$libdir'
6846 hardcode_libdir_separator=
6847 fi
6848 ;;
6849 esac
6850 shared_flag='-shared'
6851 if test "$aix_use_runtimelinking" = yes; then
6852 shared_flag="$shared_flag "'${wl}-G'
6853 fi
6854 else
6855 # not using gcc
6856 if test "$host_cpu" = ia64; then
6857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6858 # chokes on -Wl,-G. The following line is correct:
6859 shared_flag='-G'
6860 else
6861 if test "$aix_use_runtimelinking" = yes; then
6862 shared_flag='${wl}-G'
6863 else
6864 shared_flag='${wl}-bM:SRE'
6865 fi
6866 fi
6867 fi
6868
6869 # It seems that -bexpall does not export symbols beginning with
6870 # underscore (_), so it is better to generate a list of symbols to export.
6871 always_export_symbols=yes
6872 if test "$aix_use_runtimelinking" = yes; then
6873 # Warning - without using the other runtime loading flags (-brtl),
6874 # -berok will link without error, but may produce a broken library.
6875 allow_undefined_flag='-berok'
6876 # Determine the default libpath from the value encoded in an
6877 # empty executable.
6878 cat >conftest.$ac_ext <<_ACEOF
6879/* confdefs.h. */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>conftest.$ac_ext <<_ACEOF
6883/* end confdefs.h. */
20e95c23 6884
20e95c23
DJ
6885int
6886main ()
6887{
d7040cdb 6888
20e95c23
DJ
6889 ;
6890 return 0;
6891}
42ecbf5e 6892_ACEOF
20e95c23
DJ
6893rm -f conftest.$ac_objext conftest$ac_exeext
6894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest$ac_exeext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
d7040cdb
SE
6915
6916lt_aix_libpath_sed='
6917 /Import File Strings/,/^$/ {
6918 /^0/ {
6919 s/^0 *\(.*\)$/\1/
6920 p
6921 }
6922 }'
6923aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6924# Check for a 64-bit object if we didn't find anything.
6925if test -z "$aix_libpath"; then
6926 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6927fi
42ecbf5e
DJ
6928else
6929 echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
42ecbf5e 6932fi
20e95c23
DJ
6933rm -f conftest.err conftest.$ac_objext \
6934 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
6935if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6936
6937 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6938 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"
6939 else
6940 if test "$host_cpu" = ia64; then
6941 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6942 allow_undefined_flag="-z nodefs"
6943 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"
6944 else
6945 # Determine the default libpath from the value encoded in an
6946 # empty executable.
6947 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6948/* confdefs.h. */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h. */
20e95c23 6953
20e95c23
DJ
6954int
6955main ()
6956{
d7040cdb 6957
20e95c23
DJ
6958 ;
6959 return 0;
6960}
42ecbf5e 6961_ACEOF
20e95c23
DJ
6962rm -f conftest.$ac_objext conftest$ac_exeext
6963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
6965 ac_status=$?
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6970 (exit $ac_status); } &&
6971 { ac_try='test -z "$ac_c_werror_flag"
6972 || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
d7040cdb
SE
6984
6985lt_aix_libpath_sed='
6986 /Import File Strings/,/^$/ {
6987 /^0/ {
6988 s/^0 *\(.*\)$/\1/
6989 p
6990 }
6991 }'
6992aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6993# Check for a 64-bit object if we didn't find anything.
6994if test -z "$aix_libpath"; then
6995 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6996fi
252b5132 6997else
42ecbf5e
DJ
6998 echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
20e95c23
DJ
7001fi
7002rm -f conftest.err conftest.$ac_objext \
7003 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
7004if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7005
7006 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7007 # Warning - without using the other run time loading flags,
7008 # -berok will link without error, but may produce a broken library.
7009 no_undefined_flag=' ${wl}-bernotok'
7010 allow_undefined_flag=' ${wl}-berok'
7011 # Exported symbols can be pulled into shared objects from archives
7012 whole_archive_flag_spec='$convenience'
7013 archive_cmds_need_lc=yes
7014 # This is similar to how AIX traditionally builds its shared libraries.
7015 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'
7016 fi
7017 fi
7018 ;;
42ecbf5e 7019
d7040cdb
SE
7020 amigaos*)
7021 if test "$host_cpu" = m68k; then
7022 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)'
7023 hardcode_libdir_flag_spec='-L$libdir'
7024 hardcode_minus_L=yes
7025 fi
7026 # see comment about different semantics on the GNU ld section
7027 ld_shlibs=no
7028 ;;
42ecbf5e 7029
d7040cdb
SE
7030 bsdi[45]*)
7031 export_dynamic_flag_spec=-rdynamic
7032 ;;
e5a52504 7033
d7040cdb
SE
7034 cygwin* | mingw* | pw32*)
7035 # When not using gcc, we currently assume that we are using
7036 # Microsoft Visual C++.
7037 # hardcode_libdir_flag_spec is actually meaningless, as there is
7038 # no search path for DLLs.
7039 hardcode_libdir_flag_spec=' '
7040 allow_undefined_flag=unsupported
7041 # Tell ltmain to make .lib files, not .a files.
7042 libext=lib
7043 # Tell ltmain to make .dll files, not .so files.
7044 shrext_cmds=".dll"
7045 # FIXME: Setting linknames here is a bad hack.
7046 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7047 # The linker will automatically build a .lib file if we build a DLL.
7048 old_archive_from_new_cmds='true'
7049 # FIXME: Should let the user specify the lib program.
7050 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7051 fix_srcfile_path='`cygpath -w "$srcfile"`'
7052 enable_shared_with_static_runtimes=yes
7053 ;;
7054
7055 darwin* | rhapsody*)
7056 case $host_os in
7057 rhapsody* | darwin1.[012])
7058 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7059 ;;
7060 *) # Darwin 1.3 on
7061 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7062 10.[012])
7063 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7064 ;;
7065 10.*)
7066 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7067 ;;
7068 esac
7069 ;;
7070 esac
7071 archive_cmds_need_lc=no
7072 hardcode_direct=no
7073 hardcode_automatic=yes
7074 hardcode_shlibpath_var=unsupported
7075 whole_archive_flag_spec=''
7076 link_all_deplibs=yes
7077 if test "$GCC" = yes ; then
7078 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
20e95c23 7079 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 7080else
d7040cdb
SE
7081 lt_cv_apple_cc_single_mod=no
7082 if test -z "${LT_MULTI_MODULE}"; then
7083 # By default we will add the -single_module flag. You can override
7084 # by either setting the environment variable LT_MULTI_MODULE
7085 # non-empty at configure time, or by adding -multi-module to the
7086 # link flags.
7087 echo "int foo(void){return 1;}" > conftest.c
7088 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7089 -dynamiclib ${wl}-single_module conftest.c
7090 if test -f libconftest.dylib; then
7091 lt_cv_apple_cc_single_mod=yes
7092 rm libconftest.dylib
7093 fi
7094 rm conftest.$ac_ext
7095 fi
ac48eca1 7096fi
e5a52504 7097
d7040cdb
SE
7098 output_verbose_link_cmd=echo
7099 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7100 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7101 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7102 else
7103 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7104 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7105 fi
7106 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7107 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7108 else
7109 case $cc_basename in
7110 xlc*)
7111 output_verbose_link_cmd=echo
7112 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7113 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7115 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7116 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7117 ;;
7118 *)
7119 ld_shlibs=no
7120 ;;
7121 esac
7122 fi
7123 ;;
7124
7125 dgux*)
7126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7127 hardcode_libdir_flag_spec='-L$libdir'
7128 hardcode_shlibpath_var=no
7129 ;;
7130
7131 freebsd1*)
7132 ld_shlibs=no
7133 ;;
7134
7135 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7136 # support. Future versions do this automatically, but an explicit c++rt0.o
7137 # does not break anything, and helps significantly (at the cost of a little
7138 # extra space).
7139 freebsd2.2*)
7140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7141 hardcode_libdir_flag_spec='-R$libdir'
7142 hardcode_direct=yes
7143 hardcode_shlibpath_var=no
7144 ;;
7145
7146 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7147 freebsd2*)
7148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7149 hardcode_direct=yes
7150 hardcode_minus_L=yes
7151 hardcode_shlibpath_var=no
7152 ;;
7153
7154 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7155 freebsd* | dragonfly*)
7156 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7157 hardcode_libdir_flag_spec='-R$libdir'
7158 hardcode_direct=yes
7159 hardcode_shlibpath_var=no
7160 ;;
7161
7162 hpux9*)
7163 if test "$GCC" = yes; then
7164 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'
7165 else
7166 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'
7167 fi
7168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7169 hardcode_libdir_separator=:
7170 hardcode_direct=yes
7171
7172 # hardcode_minus_L: Not really in the search PATH,
7173 # but as the default location of the library.
7174 hardcode_minus_L=yes
7175 export_dynamic_flag_spec='${wl}-E'
7176 ;;
7177
7178 hpux10*)
7179 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7180 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7181 else
7182 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7183 fi
7184 if test "$with_gnu_ld" = no; then
7185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7186 hardcode_libdir_flag_spec_ld='+b $libdir'
7187 hardcode_libdir_separator=:
7188 hardcode_direct=yes
7189 hardcode_direct_absolute=yes
7190 export_dynamic_flag_spec='${wl}-E'
7191 # hardcode_minus_L: Not really in the search PATH,
7192 # but as the default location of the library.
7193 hardcode_minus_L=yes
7194 fi
7195 ;;
7196
7197 hpux11*)
7198 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7199 case $host_cpu in
7200 hppa*64*)
7201 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7202 ;;
7203 ia64*)
7204 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7205 ;;
7206 *)
7207 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7208 ;;
7209 esac
7210 else
7211 case $host_cpu in
7212 hppa*64*)
7213 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7214 ;;
7215 ia64*)
7216 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7217 ;;
7218 *)
7219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7220 ;;
7221 esac
7222 fi
7223 if test "$with_gnu_ld" = no; then
7224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225 hardcode_libdir_separator=:
7226
7227 case $host_cpu in
7228 hppa*64*|ia64*)
7229 hardcode_direct=no
7230 hardcode_shlibpath_var=no
7231 ;;
7232 *)
7233 hardcode_direct=yes
7234 hardcode_direct_absolute=yes
7235 export_dynamic_flag_spec='${wl}-E'
7236
7237 # hardcode_minus_L: Not really in the search PATH,
7238 # but as the default location of the library.
7239 hardcode_minus_L=yes
7240 ;;
7241 esac
7242 fi
7243 ;;
7244
7245 irix5* | irix6* | nonstopux*)
7246 if test "$GCC" = yes; then
7247 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'
7248 # Try to use the -exported_symbol ld option, if it does not
7249 # work, assume that -exports_file does not work either and
7250 # implicitly export all symbols.
7251 save_LDFLAGS="$LDFLAGS"
7252 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7253 cat >conftest.$ac_ext <<_ACEOF
7254int foo(void) {}
42ecbf5e 7255_ACEOF
20e95c23
DJ
7256rm -f conftest.$ac_objext conftest$ac_exeext
7257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7258 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
502bdb00
JW
7265 { ac_try='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
42ecbf5e
DJ
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
20e95c23 7272 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
d7040cdb
SE
7278 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'
7279
252b5132 7280else
42ecbf5e
DJ
7281 echo "$as_me: failed program was:" >&5
7282sed 's/^/| /' conftest.$ac_ext >&5
7283
252b5132 7284fi
d7040cdb
SE
7285rm -f conftest.err conftest.$ac_objext \
7286 conftest$ac_exeext conftest.$ac_ext
7287 LDFLAGS="$save_LDFLAGS"
7288 else
7289 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'
7290 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'
7291 fi
7292 archive_cmds_need_lc='no'
7293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7294 hardcode_libdir_separator=:
7295 inherit_rpath=yes
7296 link_all_deplibs=yes
7297 ;;
7298
7299 netbsd*)
7300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7302 else
7303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7304 fi
7305 hardcode_libdir_flag_spec='-R$libdir'
7306 hardcode_direct=yes
7307 hardcode_shlibpath_var=no
7308 ;;
7309
7310 newsos6)
7311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7312 hardcode_direct=yes
7313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314 hardcode_libdir_separator=:
7315 hardcode_shlibpath_var=no
7316 ;;
7317
7318 *nto* | *qnx*)
7319 ;;
7320
7321 openbsd*)
7322 hardcode_direct=yes
7323 hardcode_shlibpath_var=no
7324 hardcode_direct_absolute=yes
7325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7329 export_dynamic_flag_spec='${wl}-E'
7330 else
7331 case $host_os in
7332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7334 hardcode_libdir_flag_spec='-R$libdir'
7335 ;;
7336 *)
7337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7339 ;;
7340 esac
7341 fi
7342 ;;
7343
7344 os2*)
7345 hardcode_libdir_flag_spec='-L$libdir'
7346 hardcode_minus_L=yes
7347 allow_undefined_flag=unsupported
7348 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'
7349 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7350 ;;
7351
7352 osf3*)
7353 if test "$GCC" = yes; then
7354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7355 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'
7356 else
7357 allow_undefined_flag=' -expect_unresolved \*'
7358 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'
7359 fi
7360 archive_cmds_need_lc='no'
7361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7362 hardcode_libdir_separator=:
7363 ;;
7364
7365 osf4* | osf5*) # as osf3* with the addition of -msym flag
7366 if test "$GCC" = yes; then
7367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7368 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'
7369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7370 else
7371 allow_undefined_flag=' -expect_unresolved \*'
7372 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'
7373 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~
7374 $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'
7375
7376 # Both c and cxx compiler support -rpath directly
7377 hardcode_libdir_flag_spec='-rpath $libdir'
7378 fi
7379 archive_cmds_need_lc='no'
7380 hardcode_libdir_separator=:
7381 ;;
7382
7383 solaris*)
7384 no_undefined_flag=' -z defs'
7385 if test "$GCC" = yes; then
7386 wlarc='${wl}'
7387 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7389 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7390 else
7391 case `$CC -V 2>&1` in
7392 *"Compilers 5.0"*)
7393 wlarc=''
7394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7397 ;;
7398 *)
7399 wlarc='${wl}'
7400 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7402 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7403 ;;
7404 esac
7405 fi
7406 hardcode_libdir_flag_spec='-R$libdir'
7407 hardcode_shlibpath_var=no
7408 case $host_os in
7409 solaris2.[0-5] | solaris2.[0-5].*) ;;
7410 *)
7411 # The compiler driver will combine and reorder linker options,
7412 # but understands `-z linker_flag'. GCC discards it without `$wl',
7413 # but is careful enough not to reorder.
7414 # Supported since Solaris 2.6 (maybe 2.5.1?)
7415 if test "$GCC" = yes; then
7416 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7417 else
7418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7419 fi
7420 ;;
7421 esac
7422 link_all_deplibs=yes
7423 ;;
7424
7425 sunos4*)
7426 if test "x$host_vendor" = xsequent; then
7427 # Use $CC to link under sequent, because it throws in some extra .o
7428 # files that make .init and .fini sections work.
7429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7430 else
7431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7432 fi
7433 hardcode_libdir_flag_spec='-L$libdir'
7434 hardcode_direct=yes
7435 hardcode_minus_L=yes
7436 hardcode_shlibpath_var=no
7437 ;;
7438
7439 sysv4)
7440 case $host_vendor in
7441 sni)
7442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7443 hardcode_direct=yes # is this really true???
7444 ;;
7445 siemens)
7446 ## LD is ld it makes a PLAMLIB
7447 ## CC just makes a GrossModule.
7448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7449 reload_cmds='$CC -r -o $output$reload_objs'
7450 hardcode_direct=no
7451 ;;
7452 motorola)
7453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7455 ;;
7456 esac
7457 runpath_var='LD_RUN_PATH'
7458 hardcode_shlibpath_var=no
7459 ;;
7460
7461 sysv4.3*)
7462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7463 hardcode_shlibpath_var=no
7464 export_dynamic_flag_spec='-Bexport'
7465 ;;
7466
7467 sysv4*MP*)
7468 if test -d /usr/nec; then
7469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7470 hardcode_shlibpath_var=no
7471 runpath_var=LD_RUN_PATH
7472 hardcode_runpath_var=yes
7473 ld_shlibs=yes
7474 fi
7475 ;;
7476
7477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7478 no_undefined_flag='${wl}-z,text'
7479 archive_cmds_need_lc=no
7480 hardcode_shlibpath_var=no
7481 runpath_var='LD_RUN_PATH'
7482
7483 if test "$GCC" = yes; then
7484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7486 else
7487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7489 fi
7490 ;;
7491
7492 sysv5* | sco3.2v5* | sco5v6*)
7493 # Note: We can NOT use -z defs as we might desire, because we do not
7494 # link with -lc, and that would cause any symbols used from libc to
7495 # always be unresolved, which means just about no library would
7496 # ever link correctly. If we're not using GNU ld we use -z text
7497 # though, which does catch some bad symbols but isn't as heavy-handed
7498 # as -z defs.
7499 no_undefined_flag='${wl}-z,text'
7500 allow_undefined_flag='${wl}-z,nodefs'
7501 archive_cmds_need_lc=no
7502 hardcode_shlibpath_var=no
7503 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7504 hardcode_libdir_separator=':'
7505 link_all_deplibs=yes
7506 export_dynamic_flag_spec='${wl}-Bexport'
7507 runpath_var='LD_RUN_PATH'
7508
7509 if test "$GCC" = yes; then
7510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7512 else
7513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7515 fi
7516 ;;
7517
7518 uts4*)
7519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7520 hardcode_libdir_flag_spec='-L$libdir'
7521 hardcode_shlibpath_var=no
7522 ;;
7523
7524 *)
7525 ld_shlibs=no
7526 ;;
7527 esac
7528
7529 if test x$host_vendor = xsni; then
7530 case $host in
7531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7532 export_dynamic_flag_spec='${wl}-Blargedynsym'
7533 ;;
7534 esac
7535 fi
7536 fi
7537
7538echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7539echo "${ECHO_T}$ld_shlibs" >&6
7540test "$ld_shlibs" = no && can_build_shared=no
7541
7542with_gnu_ld=$with_gnu_ld
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558#
7559# Do we need to explicitly link libc?
7560#
7561case "x$archive_cmds_need_lc" in
7562x|xyes)
7563 # Assume -lc should be added
7564 archive_cmds_need_lc=yes
7565
7566 if test "$enable_shared" = yes && test "$GCC" = yes; then
7567 case $archive_cmds in
7568 *'~'*)
7569 # FIXME: we may have to deal with multi-command sequences.
7570 ;;
7571 '$CC '*)
7572 # Test whether the compiler implicitly links with -lc since on some
7573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7574 # to ld, don't add -lc before -lgcc.
7575 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7576echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7577 $RM conftest*
7578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7579
7580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7581 (eval $ac_compile) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } 2>conftest.err; then
7585 soname=conftest
7586 lib=conftest
7587 libobjs=conftest.$ac_objext
7588 deplibs=
7589 wl=$lt_prog_compiler_wl
7590 pic_flag=$lt_prog_compiler_pic
7591 compiler_flags=-v
7592 linker_flags=-v
7593 verstring=
7594 output_objdir=.
7595 libname=conftest
7596 lt_save_allow_undefined_flag=$allow_undefined_flag
7597 allow_undefined_flag=
7598 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7599 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }
7603 then
7604 archive_cmds_need_lc=no
7605 else
7606 archive_cmds_need_lc=yes
7607 fi
7608 allow_undefined_flag=$lt_save_allow_undefined_flag
7609 else
7610 cat conftest.err 1>&5
7611 fi
7612 $RM conftest*
7613 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7614echo "${ECHO_T}$archive_cmds_need_lc" >&6
7615 ;;
7616 esac
7617 fi
7618 ;;
7619esac
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7778echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7779withGCC=$GCC
7780if test "$withGCC" = yes; then
7781 case $host_os in
7782 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7783 *) lt_awk_arg="/^libraries:/" ;;
7784 esac
7785 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7786 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7787 # if the path contains ";" then we assume it to be the separator
7788 # otherwise default to the standard path separator (i.e. ":") - it is
7789 # assumed that no part of a normal pathname contains ";" but that should
7790 # okay in the real world where ";" in dirpaths is itself problematic.
7791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7792 else
7793 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7794 fi
7795 # Ok, now we have the path, separated by spaces, we can step through it
7796 # and add multilib dir if necessary.
7797 lt_tmp_lt_search_path_spec=
7798 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7799 for lt_sys_path in $lt_search_path_spec; do
7800 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7802 else
7803 test -d "$lt_sys_path" && \
7804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7805 fi
7806 done
7807 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7808BEGIN {RS=" "; FS="/|\n";} {
7809 lt_foo="";
7810 lt_count=0;
7811 for (lt_i = NF; lt_i > 0; lt_i--) {
7812 if ($lt_i != "" && $lt_i != ".") {
7813 if ($lt_i == "..") {
7814 lt_count++;
7815 } else {
7816 if (lt_count == 0) {
7817 lt_foo="/" $lt_i lt_foo;
7818 } else {
7819 lt_count--;
7820 }
7821 }
7822 }
7823 }
7824 if (lt_foo != "") { lt_freq[lt_foo]++; }
7825 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7826}'`
7827 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7828else
7829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7830fi
7831library_names_spec=
7832libname_spec='lib$name'
7833soname_spec=
7834shrext_cmds=".so"
7835postinstall_cmds=
7836postuninstall_cmds=
7837finish_cmds=
7838finish_eval=
7839shlibpath_var=
7840shlibpath_overrides_runpath=unknown
7841version_type=none
7842dynamic_linker="$host_os ld.so"
7843sys_lib_dlsearch_path_spec="/lib /usr/lib"
7844need_lib_prefix=unknown
7845hardcode_into_libs=no
7846
7847# when you set need_version to no, make sure it does not cause -set_version
7848# flags to be left without arguments
7849need_version=unknown
7850
7851case $host_os in
7852aix3*)
7853 version_type=linux
7854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7855 shlibpath_var=LIBPATH
7856
7857 # AIX 3 has no versioning support, so we append a major version to the name.
7858 soname_spec='${libname}${release}${shared_ext}$major'
7859 ;;
7860
7861aix4* | aix5*)
7862 version_type=linux
7863 need_lib_prefix=no
7864 need_version=no
7865 hardcode_into_libs=yes
7866 if test "$host_cpu" = ia64; then
7867 # AIX 5 supports IA64
7868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7869 shlibpath_var=LD_LIBRARY_PATH
7870 else
7871 # With GCC up to 2.95.x, collect2 would create an import file
7872 # for dependence libraries. The import file would start with
7873 # the line `#! .'. This would cause the generated library to
7874 # depend on `.', always an invalid library. This was fixed in
7875 # development snapshots of GCC prior to 3.0.
7876 case $host_os in
7877 aix4 | aix4.[01] | aix4.[01].*)
7878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7879 echo ' yes '
7880 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7881 :
7882 else
7883 can_build_shared=no
7884 fi
7885 ;;
7886 esac
7887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7888 # soname into executable. Probably we can add versioning support to
7889 # collect2, so additional links can be useful in future.
7890 if test "$aix_use_runtimelinking" = yes; then
7891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7892 # instead of lib<name>.a to let people know that these are not
7893 # typical AIX shared libraries.
7894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7895 else
7896 # We preserve .a as extension for shared libraries through AIX4.2
7897 # and later when we are not doing run time linking.
7898 library_names_spec='${libname}${release}.a $libname.a'
7899 soname_spec='${libname}${release}${shared_ext}$major'
7900 fi
7901 shlibpath_var=LIBPATH
7902 fi
7903 ;;
7904
7905amigaos*)
7906 if test "$host_cpu" = m68k; then
7907 library_names_spec='$libname.ixlibrary $libname.a'
7908 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7909 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'
7910 else
7911 dynamic_linker=no
7912 fi
7913 ;;
7914
7915beos*)
7916 library_names_spec='${libname}${shared_ext}'
7917 dynamic_linker="$host_os ld.so"
7918 shlibpath_var=LIBRARY_PATH
7919 ;;
7920
7921bsdi[45]*)
7922 version_type=linux
7923 need_version=no
7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925 soname_spec='${libname}${release}${shared_ext}$major'
7926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7927 shlibpath_var=LD_LIBRARY_PATH
7928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7930 # the default ld.so.conf also contains /usr/contrib/lib and
7931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7932 # libtool to hard-code these into programs
7933 ;;
7934
7935cygwin* | mingw* | pw32*)
7936 version_type=windows
7937 shrext_cmds=".dll"
7938 need_version=no
7939 need_lib_prefix=no
7940
7941 case $withGCC,$host_os in
7942 yes,cygwin* | yes,mingw* | yes,pw32*)
7943 library_names_spec='$libname.dll.a'
7944 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7945 postinstall_cmds='base_file=`basename \${file}`~
7946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7947 dldir=$destdir/`dirname \$dlpath`~
7948 test -d \$dldir || mkdir -p \$dldir~
7949 $install_prog $dir/$dlname \$dldir/$dlname~
7950 chmod a+x \$dldir/$dlname~
7951 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7952 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7953 fi'
7954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7955 dlpath=$dir/\$dldll~
7956 $RM \$dlpath'
7957 shlibpath_overrides_runpath=yes
7958
7959 case $host_os in
7960 cygwin*)
7961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7964 ;;
7965 mingw*)
7966 # MinGW DLLs use traditional 'lib' prefix
7967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7968 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7969 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7970 # It is most probably a Windows format PATH printed by
7971 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7972 # path with ; separators, and with drive letters. We can handle the
7973 # drive letters (cygwin fileutils understands them), so leave them,
7974 # especially as we might pass files found there to a mingw objdump,
7975 # which wouldn't understand a cygwinified path. Ahh.
7976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7977 else
7978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7979 fi
7980 ;;
7981 pw32*)
7982 # pw32 DLLs use 'pw' prefix rather than 'lib'
7983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7984 ;;
7985 esac
7986 ;;
7987
7988 *)
7989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7990 ;;
7991 esac
7992 dynamic_linker='Win32 ld.exe'
7993 # FIXME: first we should search . and the directory the executable is in
7994 shlibpath_var=PATH
7995 ;;
7996
7997darwin* | rhapsody*)
7998 dynamic_linker="$host_os dyld"
7999 version_type=darwin
8000 need_lib_prefix=no
8001 need_version=no
8002 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8003 soname_spec='${libname}${release}${major}$shared_ext'
8004 shlibpath_overrides_runpath=yes
8005 shlibpath_var=DYLD_LIBRARY_PATH
8006 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8007
8008 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8010 ;;
8011
8012dgux*)
8013 version_type=linux
8014 need_lib_prefix=no
8015 need_version=no
8016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8017 soname_spec='${libname}${release}${shared_ext}$major'
8018 shlibpath_var=LD_LIBRARY_PATH
8019 ;;
8020
8021freebsd1*)
8022 dynamic_linker=no
8023 ;;
8024
8025freebsd* | dragonfly*)
8026 # DragonFly does not have aout. When/if they implement a new
8027 # versioning mechanism, adjust this.
8028 if test -x /usr/bin/objformat; then
8029 objformat=`/usr/bin/objformat`
8030 else
8031 case $host_os in
8032 freebsd[123]*) objformat=aout ;;
8033 *) objformat=elf ;;
8034 esac
8035 fi
8036 version_type=freebsd-$objformat
8037 case $version_type in
8038 freebsd-elf*)
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8040 need_version=no
8041 need_lib_prefix=no
8042 ;;
8043 freebsd-*)
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8045 need_version=yes
8046 ;;
8047 esac
8048 shlibpath_var=LD_LIBRARY_PATH
8049 case $host_os in
8050 freebsd2*)
8051 shlibpath_overrides_runpath=yes
8052 ;;
8053 freebsd3.[01]* | freebsdelf3.[01]*)
8054 shlibpath_overrides_runpath=yes
8055 hardcode_into_libs=yes
8056 ;;
8057 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8058 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8059 shlibpath_overrides_runpath=no
8060 hardcode_into_libs=yes
8061 ;;
8062 *) # from 4.6 on, and DragonFly
8063 shlibpath_overrides_runpath=yes
8064 hardcode_into_libs=yes
8065 ;;
8066 esac
8067 ;;
8068
8069gnu*)
8070 version_type=linux
8071 need_lib_prefix=no
8072 need_version=no
8073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8074 soname_spec='${libname}${release}${shared_ext}$major'
8075 shlibpath_var=LD_LIBRARY_PATH
8076 hardcode_into_libs=yes
8077 ;;
8078
8079hpux9* | hpux10* | hpux11*)
8080 # Give a soname corresponding to the major version so that dld.sl refuses to
8081 # link against other versions.
8082 version_type=sunos
8083 need_lib_prefix=no
8084 need_version=no
8085 case $host_cpu in
8086 ia64*)
8087 shrext_cmds='.so'
8088 hardcode_into_libs=yes
8089 dynamic_linker="$host_os dld.so"
8090 shlibpath_var=LD_LIBRARY_PATH
8091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8093 soname_spec='${libname}${release}${shared_ext}$major'
8094 if test "X$HPUX_IA64_MODE" = X32; then
8095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8096 else
8097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8098 fi
8099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8100 ;;
8101 hppa*64*)
8102 shrext_cmds='.sl'
8103 hardcode_into_libs=yes
8104 dynamic_linker="$host_os dld.sl"
8105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8108 soname_spec='${libname}${release}${shared_ext}$major'
8109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8111 ;;
8112 *)
8113 shrext_cmds='.sl'
8114 dynamic_linker="$host_os dld.sl"
8115 shlibpath_var=SHLIB_PATH
8116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8118 soname_spec='${libname}${release}${shared_ext}$major'
8119 ;;
8120 esac
8121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8122 postinstall_cmds='chmod 555 $lib'
8123 ;;
8124
8125interix[3-9]*)
8126 version_type=linux
8127 need_lib_prefix=no
8128 need_version=no
8129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8130 soname_spec='${libname}${release}${shared_ext}$major'
8131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8132 shlibpath_var=LD_LIBRARY_PATH
8133 shlibpath_overrides_runpath=no
8134 hardcode_into_libs=yes
8135 ;;
8136
8137irix5* | irix6* | nonstopux*)
8138 case $host_os in
8139 nonstopux*) version_type=nonstopux ;;
8140 *)
8141 if test "$lt_cv_prog_gnu_ld" = yes; then
8142 version_type=linux
8143 else
8144 version_type=irix
8145 fi ;;
8146 esac
8147 need_lib_prefix=no
8148 need_version=no
8149 soname_spec='${libname}${release}${shared_ext}$major'
8150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8151 case $host_os in
8152 irix5* | nonstopux*)
8153 libsuff= shlibsuff=
8154 ;;
8155 *)
8156 case $LD in # libtool.m4 will add one of these switches to LD
8157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8158 libsuff= shlibsuff= libmagic=32-bit;;
8159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8160 libsuff=32 shlibsuff=N32 libmagic=N32;;
8161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8163 *) libsuff= shlibsuff= libmagic=never-match;;
8164 esac
8165 ;;
8166 esac
8167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8168 shlibpath_overrides_runpath=no
8169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8171 hardcode_into_libs=yes
8172 ;;
8173
8174# No shared lib support for Linux oldld, aout, or coff.
8175linux*oldld* | linux*aout* | linux*coff*)
8176 dynamic_linker=no
8177 ;;
8178
8179# This must be Linux ELF.
8180linux* | k*bsd*-gnu)
8181 version_type=linux
8182 need_lib_prefix=no
8183 need_version=no
8184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8185 soname_spec='${libname}${release}${shared_ext}$major'
8186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8187 shlibpath_var=LD_LIBRARY_PATH
8188 shlibpath_overrides_runpath=no
8189 # Some binutils ld are patched to set DT_RUNPATH
8190 save_LDFLAGS=$LDFLAGS
8191 save_libdir=$libdir
8192 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8193 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8194 cat >conftest.$ac_ext <<_ACEOF
8195/* confdefs.h. */
8196_ACEOF
8197cat confdefs.h >>conftest.$ac_ext
8198cat >>conftest.$ac_ext <<_ACEOF
8199/* end confdefs.h. */
8200
8201int
8202main ()
8203{
8204
8205 ;
8206 return 0;
8207}
8208_ACEOF
8209rm -f conftest.$ac_objext conftest$ac_exeext
8210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211 (eval $ac_link) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag"
8219 || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest$ac_exeext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8232 shlibpath_overrides_runpath=yes
8233fi
8234
8235else
8236 echo "$as_me: failed program was:" >&5
8237sed 's/^/| /' conftest.$ac_ext >&5
8238
8239fi
8240rm -f conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 LDFLAGS=$save_LDFLAGS
8243 libdir=$save_libdir
8244
8245 # This implies no fast_install, which is unacceptable.
8246 # Some rework will be needed to allow for fast_install
8247 # before this can be enabled.
8248 hardcode_into_libs=yes
8249
8250 # Append ld.so.conf contents to the search path
8251 if test -f /etc/ld.so.conf; then
8252 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8253 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8254 fi
8255
8256 # We used to test for /lib/ld.so.1 and disable shared libraries on
8257 # powerpc, because MkLinux only supported shared libraries with the
8258 # GNU dynamic linker. Since this was broken with cross compilers,
8259 # most powerpc-linux boxes support dynamic linking these days and
8260 # people can always --disable-shared, the test was removed, and we
8261 # assume the GNU/Linux dynamic linker is in use.
8262 dynamic_linker='GNU/Linux ld.so'
8263 ;;
8264
8265netbsd*)
8266 version_type=sunos
8267 need_lib_prefix=no
8268 need_version=no
8269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8272 dynamic_linker='NetBSD (a.out) ld.so'
8273 else
8274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8275 soname_spec='${libname}${release}${shared_ext}$major'
8276 dynamic_linker='NetBSD ld.elf_so'
8277 fi
8278 shlibpath_var=LD_LIBRARY_PATH
8279 shlibpath_overrides_runpath=yes
8280 hardcode_into_libs=yes
8281 ;;
8282
8283newsos6)
8284 version_type=linux
8285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8286 shlibpath_var=LD_LIBRARY_PATH
8287 shlibpath_overrides_runpath=yes
8288 ;;
8289
8290*nto* | *qnx*)
8291 version_type=qnx
8292 need_lib_prefix=no
8293 need_version=no
8294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295 soname_spec='${libname}${release}${shared_ext}$major'
8296 shlibpath_var=LD_LIBRARY_PATH
8297 shlibpath_overrides_runpath=no
8298 hardcode_into_libs=yes
8299 dynamic_linker='ldqnx.so'
8300 ;;
8301
8302openbsd*)
8303 version_type=sunos
8304 sys_lib_dlsearch_path_spec="/usr/lib"
8305 need_lib_prefix=no
8306 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8307 case $host_os in
8308 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8309 *) need_version=no ;;
8310 esac
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8315 case $host_os in
8316 openbsd2.[89] | openbsd2.[89].*)
8317 shlibpath_overrides_runpath=no
8318 ;;
8319 *)
8320 shlibpath_overrides_runpath=yes
8321 ;;
8322 esac
8323 else
8324 shlibpath_overrides_runpath=yes
8325 fi
8326 ;;
8327
8328os2*)
8329 libname_spec='$name'
8330 shrext_cmds=".dll"
8331 need_lib_prefix=no
8332 library_names_spec='$libname${shared_ext} $libname.a'
8333 dynamic_linker='OS/2 ld.exe'
8334 shlibpath_var=LIBPATH
8335 ;;
8336
8337osf3* | osf4* | osf5*)
8338 version_type=osf
8339 need_lib_prefix=no
8340 need_version=no
8341 soname_spec='${libname}${release}${shared_ext}$major'
8342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8343 shlibpath_var=LD_LIBRARY_PATH
8344 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8345 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8346 ;;
8347
8348rdos*)
8349 dynamic_linker=no
8350 ;;
8351
8352solaris*)
8353 version_type=linux
8354 need_lib_prefix=no
8355 need_version=no
8356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8357 soname_spec='${libname}${release}${shared_ext}$major'
8358 shlibpath_var=LD_LIBRARY_PATH
8359 shlibpath_overrides_runpath=yes
8360 hardcode_into_libs=yes
8361 # ldd complains unless libraries are executable
8362 postinstall_cmds='chmod +x $lib'
8363 ;;
8364
8365sunos4*)
8366 version_type=sunos
8367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8368 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 shlibpath_overrides_runpath=yes
8371 if test "$with_gnu_ld" = yes; then
8372 need_lib_prefix=no
8373 fi
8374 need_version=yes
8375 ;;
8376
8377sysv4 | sysv4.3*)
8378 version_type=linux
8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8380 soname_spec='${libname}${release}${shared_ext}$major'
8381 shlibpath_var=LD_LIBRARY_PATH
8382 case $host_vendor in
8383 sni)
8384 shlibpath_overrides_runpath=no
8385 need_lib_prefix=no
8386 runpath_var=LD_RUN_PATH
8387 ;;
8388 siemens)
8389 need_lib_prefix=no
8390 ;;
8391 motorola)
8392 need_lib_prefix=no
8393 need_version=no
8394 shlibpath_overrides_runpath=no
8395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8396 ;;
8397 esac
8398 ;;
8399
8400sysv4*MP*)
8401 if test -d /usr/nec ;then
8402 version_type=linux
8403 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8404 soname_spec='$libname${shared_ext}.$major'
8405 shlibpath_var=LD_LIBRARY_PATH
8406 fi
8407 ;;
8408
8409sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8410 version_type=freebsd-elf
8411 need_lib_prefix=no
8412 need_version=no
8413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8414 soname_spec='${libname}${release}${shared_ext}$major'
8415 shlibpath_var=LD_LIBRARY_PATH
8416 shlibpath_overrides_runpath=yes
8417 hardcode_into_libs=yes
8418 if test "$with_gnu_ld" = yes; then
8419 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8420 else
8421 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8422 case $host_os in
8423 sco3.2v5*)
8424 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8425 ;;
8426 esac
8427 fi
8428 sys_lib_dlsearch_path_spec='/usr/lib'
8429 ;;
8430
8431tpf*)
8432 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8433 version_type=linux
8434 need_lib_prefix=no
8435 need_version=no
8436 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8437 shlibpath_var=LD_LIBRARY_PATH
8438 shlibpath_overrides_runpath=no
8439 hardcode_into_libs=yes
8440 ;;
8441
8442uts4*)
8443 version_type=linux
8444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8445 soname_spec='${libname}${release}${shared_ext}$major'
8446 shlibpath_var=LD_LIBRARY_PATH
8447 ;;
8448
8449*)
8450 dynamic_linker=no
8451 ;;
8452esac
8453echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8454echo "${ECHO_T}$dynamic_linker" >&6
8455test "$dynamic_linker" = no && can_build_shared=no
8456
8457variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8458if test "$GCC" = yes; then
8459 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8460fi
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8549echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8550hardcode_action=
8551if test -n "$hardcode_libdir_flag_spec" ||
8552 test -n "$runpath_var" ||
8553 test "X$hardcode_automatic" = "Xyes" ; then
8554
8555 # We can hardcode non-existent directories.
8556 if test "$hardcode_direct" != no &&
8557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8558 # have to relink, otherwise we might link with an installed library
8559 # when we should be linking with a yet-to-be-installed one
8560 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8561 test "$hardcode_minus_L" != no; then
8562 # Linking always hardcodes the temporary library directory.
8563 hardcode_action=relink
8564 else
8565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8566 hardcode_action=immediate
8567 fi
8568else
8569 # We cannot hardcode anything, or else we can only hardcode existing
8570 # directories.
8571 hardcode_action=unsupported
8572fi
8573echo "$as_me:$LINENO: result: $hardcode_action" >&5
8574echo "${ECHO_T}$hardcode_action" >&6
8575
8576if test "$hardcode_action" = relink ||
8577 test "$inherit_rpath" = yes; then
8578 # Fast installation is not supported
8579 enable_fast_install=no
8580elif test "$shlibpath_overrides_runpath" = yes ||
8581 test "$enable_shared" = no; then
8582 # Fast installation is not necessary
8583 enable_fast_install=needless
8584fi
8585
8586
8587
8588
8589
8590
8591 if test "x$enable_dlopen" != xyes; then
8592 enable_dlopen=unknown
8593 enable_dlopen_self=unknown
8594 enable_dlopen_self_static=unknown
8595else
8596 lt_cv_dlopen=no
8597 lt_cv_dlopen_libs=
8598
8599 case $host_os in
8600 beos*)
8601 lt_cv_dlopen="load_add_on"
8602 lt_cv_dlopen_libs=
8603 lt_cv_dlopen_self=yes
8604 ;;
8605
8606 mingw* | pw32*)
8607 lt_cv_dlopen="LoadLibrary"
8608 lt_cv_dlopen_libs=
8609 ;;
8610
8611 cygwin*)
8612 lt_cv_dlopen="dlopen"
8613 lt_cv_dlopen_libs=
8614 ;;
8615
8616 darwin*)
8617 # if libdl is installed we need to link against it
8618 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8619echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8620if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622else
8623 ac_check_lib_save_LIBS=$LIBS
8624LIBS="-ldl $LIBS"
8625cat >conftest.$ac_ext <<_ACEOF
8626/* confdefs.h. */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h. */
8631
8632/* Override any gcc2 internal prototype to avoid an error. */
8633#ifdef __cplusplus
8634extern "C"
8635#endif
8636/* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638char dlopen ();
8639int
8640main ()
8641{
8642dlopen ();
8643 ;
8644 return 0;
8645}
8646_ACEOF
8647rm -f conftest.$ac_objext conftest$ac_exeext
8648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 (eval $ac_try) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_dl_dlopen=yes
8670else
8671 echo "$as_me: failed program was:" >&5
8672sed 's/^/| /' conftest.$ac_ext >&5
8673
8674ac_cv_lib_dl_dlopen=no
8675fi
8676rm -f conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678LIBS=$ac_check_lib_save_LIBS
8679fi
8680echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8681echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8682if test $ac_cv_lib_dl_dlopen = yes; then
8683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8684else
8685
8686 lt_cv_dlopen="dyld"
8687 lt_cv_dlopen_libs=
8688 lt_cv_dlopen_self=yes
8689
8690fi
8691
8692 ;;
8693
8694 *)
8695 echo "$as_me:$LINENO: checking for shl_load" >&5
8696echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8697if test "${ac_cv_func_shl_load+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699else
8700 cat >conftest.$ac_ext <<_ACEOF
8701/* confdefs.h. */
8702_ACEOF
8703cat confdefs.h >>conftest.$ac_ext
8704cat >>conftest.$ac_ext <<_ACEOF
8705/* end confdefs.h. */
8706/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8708#define shl_load innocuous_shl_load
8709
8710/* System header to define __stub macros and hopefully few prototypes,
8711 which can conflict with char shl_load (); below.
8712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713 <limits.h> exists even on freestanding compilers. */
8714
8715#ifdef __STDC__
8716# include <limits.h>
8717#else
8718# include <assert.h>
8719#endif
8720
8721#undef shl_load
8722
8723/* Override any gcc2 internal prototype to avoid an error. */
8724#ifdef __cplusplus
8725extern "C"
8726{
8727#endif
8728/* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8730char shl_load ();
8731/* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734#if defined (__stub_shl_load) || defined (__stub___shl_load)
8735choke me
8736#else
8737char (*f) () = shl_load;
8738#endif
8739#ifdef __cplusplus
8740}
8741#endif
8742
8743int
8744main ()
8745{
8746return f != shl_load;
8747 ;
8748 return 0;
8749}
8750_ACEOF
8751rm -f conftest.$ac_objext conftest$ac_exeext
8752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag"
8761 || test ! -s conftest.err'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 ac_cv_func_shl_load=yes
8774else
8775 echo "$as_me: failed program was:" >&5
8776sed 's/^/| /' conftest.$ac_ext >&5
8777
8778ac_cv_func_shl_load=no
8779fi
8780rm -f conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8782fi
8783echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8784echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8785if test $ac_cv_func_shl_load = yes; then
8786 lt_cv_dlopen="shl_load"
8787else
8788 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8789echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8790if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793 ac_check_lib_save_LIBS=$LIBS
8794LIBS="-ldld $LIBS"
8795cat >conftest.$ac_ext <<_ACEOF
8796/* confdefs.h. */
8797_ACEOF
8798cat confdefs.h >>conftest.$ac_ext
8799cat >>conftest.$ac_ext <<_ACEOF
8800/* end confdefs.h. */
8801
8802/* Override any gcc2 internal prototype to avoid an error. */
8803#ifdef __cplusplus
8804extern "C"
8805#endif
8806/* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8808char shl_load ();
8809int
8810main ()
8811{
8812shl_load ();
8813 ;
8814 return 0;
8815}
8816_ACEOF
8817rm -f conftest.$ac_objext conftest$ac_exeext
8818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag"
8827 || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest$ac_exeext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 ac_cv_lib_dld_shl_load=yes
8840else
8841 echo "$as_me: failed program was:" >&5
8842sed 's/^/| /' conftest.$ac_ext >&5
8843
8844ac_cv_lib_dld_shl_load=no
8845fi
8846rm -f conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848LIBS=$ac_check_lib_save_LIBS
8849fi
8850echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8851echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8852if test $ac_cv_lib_dld_shl_load = yes; then
8853 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8854else
8855 echo "$as_me:$LINENO: checking for dlopen" >&5
8856echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8857if test "${ac_cv_func_dlopen+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860 cat >conftest.$ac_ext <<_ACEOF
8861/* confdefs.h. */
8862_ACEOF
8863cat confdefs.h >>conftest.$ac_ext
8864cat >>conftest.$ac_ext <<_ACEOF
8865/* end confdefs.h. */
8866/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8868#define dlopen innocuous_dlopen
8869
8870/* System header to define __stub macros and hopefully few prototypes,
8871 which can conflict with char dlopen (); below.
8872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8873 <limits.h> exists even on freestanding compilers. */
8874
8875#ifdef __STDC__
8876# include <limits.h>
8877#else
8878# include <assert.h>
8879#endif
8880
8881#undef dlopen
8882
8883/* Override any gcc2 internal prototype to avoid an error. */
8884#ifdef __cplusplus
8885extern "C"
8886{
8887#endif
8888/* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8890char dlopen ();
8891/* The GNU C library defines this for functions which it implements
8892 to always fail with ENOSYS. Some functions are actually named
8893 something starting with __ and the normal name is an alias. */
8894#if defined (__stub_dlopen) || defined (__stub___dlopen)
8895choke me
8896#else
8897char (*f) () = dlopen;
8898#endif
8899#ifdef __cplusplus
8900}
8901#endif
8902
8903int
8904main ()
8905{
8906return f != dlopen;
8907 ;
8908 return 0;
8909}
8910_ACEOF
8911rm -f conftest.$ac_objext conftest$ac_exeext
8912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913 (eval $ac_link) 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -z "$ac_c_werror_flag"
8921 || test ! -s conftest.err'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 (eval $ac_try) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; } &&
8927 { ac_try='test -s conftest$ac_exeext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_cv_func_dlopen=yes
8934else
8935 echo "$as_me: failed program was:" >&5
8936sed 's/^/| /' conftest.$ac_ext >&5
8937
8938ac_cv_func_dlopen=no
8939fi
8940rm -f conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext conftest.$ac_ext
8942fi
8943echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8944echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8945if test $ac_cv_func_dlopen = yes; then
8946 lt_cv_dlopen="dlopen"
8947else
8948 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8949echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8950if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952else
8953 ac_check_lib_save_LIBS=$LIBS
8954LIBS="-ldl $LIBS"
8955cat >conftest.$ac_ext <<_ACEOF
8956/* confdefs.h. */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h. */
8961
8962/* Override any gcc2 internal prototype to avoid an error. */
8963#ifdef __cplusplus
8964extern "C"
8965#endif
8966/* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8968char dlopen ();
8969int
8970main ()
8971{
8972dlopen ();
8973 ;
8974 return 0;
8975}
8976_ACEOF
8977rm -f conftest.$ac_objext conftest$ac_exeext
8978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8979 (eval $ac_link) 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_cv_lib_dl_dlopen=yes
9000else
9001 echo "$as_me: failed program was:" >&5
9002sed 's/^/| /' conftest.$ac_ext >&5
9003
9004ac_cv_lib_dl_dlopen=no
9005fi
9006rm -f conftest.err conftest.$ac_objext \
9007 conftest$ac_exeext conftest.$ac_ext
9008LIBS=$ac_check_lib_save_LIBS
9009fi
9010echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9011echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9012if test $ac_cv_lib_dl_dlopen = yes; then
9013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9014else
9015 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9016echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9017if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019else
9020 ac_check_lib_save_LIBS=$LIBS
9021LIBS="-lsvld $LIBS"
9022cat >conftest.$ac_ext <<_ACEOF
9023/* confdefs.h. */
9024_ACEOF
9025cat confdefs.h >>conftest.$ac_ext
9026cat >>conftest.$ac_ext <<_ACEOF
9027/* end confdefs.h. */
9028
9029/* Override any gcc2 internal prototype to avoid an error. */
9030#ifdef __cplusplus
9031extern "C"
9032#endif
9033/* We use char because int might match the return type of a gcc2
9034 builtin and then its argument prototype would still apply. */
9035char dlopen ();
9036int
9037main ()
9038{
9039dlopen ();
9040 ;
9041 return 0;
9042}
9043_ACEOF
9044rm -f conftest.$ac_objext conftest$ac_exeext
9045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046 (eval $ac_link) 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_lib_svld_dlopen=yes
9067else
9068 echo "$as_me: failed program was:" >&5
9069sed 's/^/| /' conftest.$ac_ext >&5
9070
9071ac_cv_lib_svld_dlopen=no
9072fi
9073rm -f conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9075LIBS=$ac_check_lib_save_LIBS
9076fi
9077echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9078echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9079if test $ac_cv_lib_svld_dlopen = yes; then
9080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9081else
9082 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9083echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9084if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086else
9087 ac_check_lib_save_LIBS=$LIBS
9088LIBS="-ldld $LIBS"
9089cat >conftest.$ac_ext <<_ACEOF
9090/* confdefs.h. */
9091_ACEOF
9092cat confdefs.h >>conftest.$ac_ext
9093cat >>conftest.$ac_ext <<_ACEOF
9094/* end confdefs.h. */
9095
9096/* Override any gcc2 internal prototype to avoid an error. */
9097#ifdef __cplusplus
9098extern "C"
9099#endif
9100/* We use char because int might match the return type of a gcc2
9101 builtin and then its argument prototype would still apply. */
9102char dld_link ();
9103int
9104main ()
9105{
9106dld_link ();
9107 ;
9108 return 0;
9109}
9110_ACEOF
9111rm -f conftest.$ac_objext conftest$ac_exeext
9112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag"
9121 || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_lib_dld_dld_link=yes
9134else
9135 echo "$as_me: failed program was:" >&5
9136sed 's/^/| /' conftest.$ac_ext >&5
9137
9138ac_cv_lib_dld_dld_link=no
9139fi
9140rm -f conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142LIBS=$ac_check_lib_save_LIBS
9143fi
9144echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9145echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9146if test $ac_cv_lib_dld_dld_link = yes; then
9147 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9148fi
9149
9150
9151fi
9152
9153
9154fi
9155
9156
9157fi
9158
9159
9160fi
9161
9162
9163fi
9164
9165 ;;
9166 esac
9167
9168 if test "x$lt_cv_dlopen" != xno; then
9169 enable_dlopen=yes
9170 else
9171 enable_dlopen=no
9172 fi
9173
9174 case $lt_cv_dlopen in
9175 dlopen)
9176 save_CPPFLAGS="$CPPFLAGS"
9177 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9178
9179 save_LDFLAGS="$LDFLAGS"
9180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9181
9182 save_LIBS="$LIBS"
9183 LIBS="$lt_cv_dlopen_libs $LIBS"
9184
9185 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9186echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9187if test "${lt_cv_dlopen_self+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189else
9190 if test "$cross_compiling" = yes; then :
9191 lt_cv_dlopen_self=cross
9192else
9193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9194 lt_status=$lt_dlunknown
9195 cat > conftest.$ac_ext <<_LT_EOF
9196#line 9196 "configure"
9197#include "confdefs.h"
9198
9199#if HAVE_DLFCN_H
9200#include <dlfcn.h>
9201#endif
9202
9203#include <stdio.h>
9204
9205#ifdef RTLD_GLOBAL
9206# define LT_DLGLOBAL RTLD_GLOBAL
9207#else
9208# ifdef DL_GLOBAL
9209# define LT_DLGLOBAL DL_GLOBAL
9210# else
9211# define LT_DLGLOBAL 0
9212# endif
9213#endif
9214
9215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9216 find out it does not work in some platform. */
9217#ifndef LT_DLLAZY_OR_NOW
9218# ifdef RTLD_LAZY
9219# define LT_DLLAZY_OR_NOW RTLD_LAZY
9220# else
9221# ifdef DL_LAZY
9222# define LT_DLLAZY_OR_NOW DL_LAZY
9223# else
9224# ifdef RTLD_NOW
9225# define LT_DLLAZY_OR_NOW RTLD_NOW
9226# else
9227# ifdef DL_NOW
9228# define LT_DLLAZY_OR_NOW DL_NOW
9229# else
9230# define LT_DLLAZY_OR_NOW 0
9231# endif
9232# endif
9233# endif
9234# endif
9235#endif
9236
9237#ifdef __cplusplus
9238extern "C" void exit (int);
9239#endif
9240
9241void fnord() { int i=42;}
9242int main ()
9243{
9244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9245 int status = $lt_dlunknown;
9246
9247 if (self)
9248 {
9249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9251 /* dlclose (self); */
9252 }
9253 else
9254 puts (dlerror ());
9255
9256 exit (status);
9257}
9258_LT_EOF
9259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9260 (eval $ac_link) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9264 (./conftest; exit; ) >&5 2>/dev/null
9265 lt_status=$?
9266 case x$lt_status in
9267 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9268 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9269 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9270 esac
9271 else :
9272 # compilation failed
9273 lt_cv_dlopen_self=no
9274 fi
9275fi
9276rm -fr conftest*
9277
9278
9279fi
9280echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9281echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9282
9283 if test "x$lt_cv_dlopen_self" = xyes; then
9284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9285 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9286echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9287if test "${lt_cv_dlopen_self_static+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289else
9290 if test "$cross_compiling" = yes; then :
9291 lt_cv_dlopen_self_static=cross
9292else
9293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9294 lt_status=$lt_dlunknown
9295 cat > conftest.$ac_ext <<_LT_EOF
9296#line 9296 "configure"
9297#include "confdefs.h"
9298
9299#if HAVE_DLFCN_H
9300#include <dlfcn.h>
9301#endif
9302
9303#include <stdio.h>
9304
9305#ifdef RTLD_GLOBAL
9306# define LT_DLGLOBAL RTLD_GLOBAL
9307#else
9308# ifdef DL_GLOBAL
9309# define LT_DLGLOBAL DL_GLOBAL
9310# else
9311# define LT_DLGLOBAL 0
9312# endif
9313#endif
9314
9315/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9316 find out it does not work in some platform. */
9317#ifndef LT_DLLAZY_OR_NOW
9318# ifdef RTLD_LAZY
9319# define LT_DLLAZY_OR_NOW RTLD_LAZY
9320# else
9321# ifdef DL_LAZY
9322# define LT_DLLAZY_OR_NOW DL_LAZY
9323# else
9324# ifdef RTLD_NOW
9325# define LT_DLLAZY_OR_NOW RTLD_NOW
9326# else
9327# ifdef DL_NOW
9328# define LT_DLLAZY_OR_NOW DL_NOW
9329# else
9330# define LT_DLLAZY_OR_NOW 0
9331# endif
9332# endif
9333# endif
9334# endif
9335#endif
9336
9337#ifdef __cplusplus
9338extern "C" void exit (int);
9339#endif
9340
9341void fnord() { int i=42;}
9342int main ()
9343{
9344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9345 int status = $lt_dlunknown;
9346
9347 if (self)
9348 {
9349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9350 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9351 /* dlclose (self); */
9352 }
9353 else
9354 puts (dlerror ());
9355
9356 exit (status);
9357}
9358_LT_EOF
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9364 (./conftest; exit; ) >&5 2>/dev/null
9365 lt_status=$?
9366 case x$lt_status in
9367 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9368 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9369 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9370 esac
9371 else :
9372 # compilation failed
9373 lt_cv_dlopen_self_static=no
9374 fi
9375fi
9376rm -fr conftest*
9377
9378
9379fi
9380echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9381echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9382 fi
9383
9384 CPPFLAGS="$save_CPPFLAGS"
9385 LDFLAGS="$save_LDFLAGS"
9386 LIBS="$save_LIBS"
9387 ;;
9388 esac
9389
9390 case $lt_cv_dlopen_self in
9391 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9392 *) enable_dlopen_self=unknown ;;
9393 esac
9394
9395 case $lt_cv_dlopen_self_static in
9396 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9397 *) enable_dlopen_self_static=unknown ;;
9398 esac
9399fi
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417striplib=
9418old_striplib=
9419echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9420echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9421if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9422 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9423 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9424 echo "$as_me:$LINENO: result: yes" >&5
9425echo "${ECHO_T}yes" >&6
9426else
9427# FIXME - insert some real tests, host_os isn't really good enough
9428 case $host_os in
9429 darwin*)
9430 if test -n "$STRIP" ; then
9431 striplib="$STRIP -x"
9432 old_striplib="$STRIP -S"
9433 echo "$as_me:$LINENO: result: yes" >&5
9434echo "${ECHO_T}yes" >&6
9435 else
9436 echo "$as_me:$LINENO: result: no" >&5
9437echo "${ECHO_T}no" >&6
9438 fi
9439 ;;
9440 *)
9441 echo "$as_me:$LINENO: result: no" >&5
9442echo "${ECHO_T}no" >&6
9443 ;;
9444 esac
9445fi
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458 # Report which library types will actually be built
9459 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9460echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9461 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9462echo "${ECHO_T}$can_build_shared" >&6
9463
9464 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9465echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9466 test "$can_build_shared" = "no" && enable_shared=no
9467
9468 # On AIX, shared libraries and static libraries use the same namespace, and
9469 # are all built from PIC.
9470 case $host_os in
9471 aix3*)
9472 test "$enable_shared" = yes && enable_static=no
9473 if test -n "$RANLIB"; then
9474 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9475 postinstall_cmds='$RANLIB $lib'
9476 fi
9477 ;;
9478
9479 aix4* | aix5*)
9480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9481 test "$enable_shared" = yes && enable_static=no
9482 fi
9483 ;;
9484 esac
9485 echo "$as_me:$LINENO: result: $enable_shared" >&5
9486echo "${ECHO_T}$enable_shared" >&6
9487
9488 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9489echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9490 # Make sure either enable_shared or enable_static is yes.
9491 test "$enable_shared" = yes || enable_static=yes
9492 echo "$as_me:$LINENO: result: $enable_static" >&5
9493echo "${ECHO_T}$enable_static" >&6
9494
9495
9496
9497
9498fi
9499ac_ext=c
9500ac_cpp='$CPP $CPPFLAGS'
9501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9503ac_compiler_gnu=$ac_cv_c_compiler_gnu
9504
9505CC="$lt_save_CC"
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519 ac_config_commands="$ac_config_commands libtool"
9520
9521
9522
9523
9524# Only expand once:
9525
9526
9527
9528
9529# Check whether --with-lib-path or --without-lib-path was given.
9530if test "${with_lib_path+set}" = set; then
9531 withval="$with_lib_path"
9532 LIB_PATH=$withval
9533fi;
9534# Check whether --enable-targets or --disable-targets was given.
9535if test "${enable_targets+set}" = set; then
9536 enableval="$enable_targets"
9537 case "${enableval}" in
9538 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
9539echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
9540 { (exit 1); exit 1; }; }
9541 ;;
9542 no) enable_targets= ;;
9543 *) enable_targets=$enableval ;;
9544esac
9545fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
9546if test "${enable_64_bit_bfd+set}" = set; then
9547 enableval="$enable_64_bit_bfd"
9548 case "${enableval}" in
9549 yes) want64=true ;;
9550 no) want64=false ;;
9551 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
9552echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
9553 { (exit 1); exit 1; }; } ;;
9554esac
9555else
9556 want64=false
9557fi;
9558
9559# Check whether --with-sysroot or --without-sysroot was given.
9560if test "${with_sysroot+set}" = set; then
9561 withval="$with_sysroot"
9562
9563 case ${with_sysroot} in
9564 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
9565 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
9566 esac
9567
9568 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9569 use_sysroot=yes
9570
9571 if test "x$prefix" = xNONE; then
9572 test_prefix=/usr/local
9573 else
9574 test_prefix=$prefix
9575 fi
9576 if test "x$exec_prefix" = xNONE; then
9577 test_exec_prefix=$test_prefix
9578 else
9579 test_exec_prefix=$exec_prefix
9580 fi
9581 case ${TARGET_SYSTEM_ROOT} in
9582 "${test_prefix}"|"${test_prefix}/"*|\
9583 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
9584 '${prefix}'|'${prefix}/'*|\
9585 '${exec_prefix}'|'${exec_prefix}/'*)
9586 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9587 TARGET_SYSTEM_ROOT_DEFINE="$t"
9588 ;;
9589 esac
9590
9591else
9592
9593 use_sysroot=no
9594 TARGET_SYSTEM_ROOT=
9595 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
9596
9597fi;
9598
9599
9600
9601
9602
9603GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9604
9605# Check whether --enable-werror or --disable-werror was given.
9606if test "${enable_werror+set}" = set; then
9607 enableval="$enable_werror"
9608 case "${enableval}" in
9609 yes | y) ERROR_ON_WARNING="yes" ;;
9610 no | n) ERROR_ON_WARNING="no" ;;
9611 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
9612echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
9613 { (exit 1); exit 1; }; } ;;
9614 esac
9615fi;
9616
9617# Enable -Werror by default when using gcc
9618if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9619 ERROR_ON_WARNING=yes
9620fi
9621
9622NO_WERROR=
9623if test "${ERROR_ON_WARNING}" = yes ; then
9624 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9625 NO_WERROR="-Wno-error"
9626fi
9627
9628if test "${GCC}" = yes ; then
9629 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9630fi
9631
9632# Check whether --enable-build-warnings or --disable-build-warnings was given.
9633if test "${enable_build_warnings+set}" = set; then
9634 enableval="$enable_build_warnings"
9635 case "${enableval}" in
9636 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
9637 no) if test "${GCC}" = yes ; then
9638 WARN_CFLAGS="-w"
9639 fi;;
9640 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9641 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
9642 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9643 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9644 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9645esac
9646fi;
9647
9648if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9649 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9650fi
9651
9652
9653
9654
9655
9656 ac_config_headers="$ac_config_headers config.h:config.in"
9657
9658
9659if test -z "$target" ; then
9660 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
9661echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
9662 { (exit 1); exit 1; }; }
9663fi
9664if test -z "$host" ; then
9665 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
9666echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
9667 { (exit 1); exit 1; }; }
9668fi
9669
9670# host-specific stuff:
9671
9672ac_ext=c
9673ac_cpp='$CPP $CPPFLAGS'
9674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676ac_compiler_gnu=$ac_cv_c_compiler_gnu
9677if test -n "$ac_tool_prefix"; then
9678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9679set dummy ${ac_tool_prefix}gcc; ac_word=$2
9680echo "$as_me:$LINENO: checking for $ac_word" >&5
9681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9682if test "${ac_cv_prog_CC+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684else
9685 if test -n "$CC"; then
9686 ac_cv_prog_CC="$CC" # Let the user override the test.
9687else
9688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689for as_dir in $PATH
9690do
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 break 2
9698 fi
9699done
9700done
9701
9702fi
9703fi
9704CC=$ac_cv_prog_CC
9705if test -n "$CC"; then
9706 echo "$as_me:$LINENO: result: $CC" >&5
9707echo "${ECHO_T}$CC" >&6
9708else
9709 echo "$as_me:$LINENO: result: no" >&5
9710echo "${ECHO_T}no" >&6
9711fi
9712
9713fi
9714if test -z "$ac_cv_prog_CC"; then
9715 ac_ct_CC=$CC
9716 # Extract the first word of "gcc", so it can be a program name with args.
9717set dummy gcc; ac_word=$2
9718echo "$as_me:$LINENO: checking for $ac_word" >&5
9719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9720if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722else
9723 if test -n "$ac_ct_CC"; then
9724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9725else
9726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727for as_dir in $PATH
9728do
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9733 ac_cv_prog_ac_ct_CC="gcc"
9734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9736 fi
9737done
9738done
9739
9740fi
9741fi
9742ac_ct_CC=$ac_cv_prog_ac_ct_CC
9743if test -n "$ac_ct_CC"; then
9744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9745echo "${ECHO_T}$ac_ct_CC" >&6
9746else
9747 echo "$as_me:$LINENO: result: no" >&5
9748echo "${ECHO_T}no" >&6
9749fi
9750
9751 CC=$ac_ct_CC
9752else
9753 CC="$ac_cv_prog_CC"
9754fi
9755
9756if test -z "$CC"; then
9757 if test -n "$ac_tool_prefix"; then
9758 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9759set dummy ${ac_tool_prefix}cc; ac_word=$2
9760echo "$as_me:$LINENO: checking for $ac_word" >&5
9761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9762if test "${ac_cv_prog_CC+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764else
9765 if test -n "$CC"; then
9766 ac_cv_prog_CC="$CC" # Let the user override the test.
9767else
9768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769for as_dir in $PATH
9770do
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9775 ac_cv_prog_CC="${ac_tool_prefix}cc"
9776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 break 2
9778 fi
9779done
9780done
9781
9782fi
9783fi
9784CC=$ac_cv_prog_CC
9785if test -n "$CC"; then
9786 echo "$as_me:$LINENO: result: $CC" >&5
9787echo "${ECHO_T}$CC" >&6
9788else
9789 echo "$as_me:$LINENO: result: no" >&5
9790echo "${ECHO_T}no" >&6
9791fi
9792
9793fi
9794if test -z "$ac_cv_prog_CC"; then
9795 ac_ct_CC=$CC
9796 # Extract the first word of "cc", so it can be a program name with args.
9797set dummy cc; ac_word=$2
9798echo "$as_me:$LINENO: checking for $ac_word" >&5
9799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9800if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802else
9803 if test -n "$ac_ct_CC"; then
9804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9805else
9806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $PATH
9808do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9813 ac_cv_prog_ac_ct_CC="cc"
9814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 break 2
9816 fi
9817done
9818done
9819
9820fi
9821fi
9822ac_ct_CC=$ac_cv_prog_ac_ct_CC
9823if test -n "$ac_ct_CC"; then
9824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9825echo "${ECHO_T}$ac_ct_CC" >&6
9826else
9827 echo "$as_me:$LINENO: result: no" >&5
9828echo "${ECHO_T}no" >&6
9829fi
9830
9831 CC=$ac_ct_CC
9832else
9833 CC="$ac_cv_prog_CC"
9834fi
9835
9836fi
9837if test -z "$CC"; then
9838 # Extract the first word of "cc", so it can be a program name with args.
9839set dummy cc; ac_word=$2
9840echo "$as_me:$LINENO: checking for $ac_word" >&5
9841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9842if test "${ac_cv_prog_CC+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
9845 if test -n "$CC"; then
9846 ac_cv_prog_CC="$CC" # Let the user override the test.
9847else
9848 ac_prog_rejected=no
9849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850for as_dir in $PATH
9851do
9852 IFS=$as_save_IFS
9853 test -z "$as_dir" && as_dir=.
9854 for ac_exec_ext in '' $ac_executable_extensions; do
9855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9857 ac_prog_rejected=yes
9858 continue
9859 fi
9860 ac_cv_prog_CC="cc"
9861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9863 fi
9864done
9865done
9866
9867if test $ac_prog_rejected = yes; then
9868 # We found a bogon in the path, so make sure we never use it.
9869 set dummy $ac_cv_prog_CC
9870 shift
9871 if test $# != 0; then
9872 # We chose a different compiler from the bogus one.
9873 # However, it has the same basename, so the bogon will be chosen
9874 # first if we set CC to just the basename; use the full file name.
9875 shift
9876 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9877 fi
9878fi
9879fi
9880fi
9881CC=$ac_cv_prog_CC
9882if test -n "$CC"; then
9883 echo "$as_me:$LINENO: result: $CC" >&5
9884echo "${ECHO_T}$CC" >&6
9885else
9886 echo "$as_me:$LINENO: result: no" >&5
9887echo "${ECHO_T}no" >&6
9888fi
9889
9890fi
9891if test -z "$CC"; then
9892 if test -n "$ac_tool_prefix"; then
9893 for ac_prog in cl
9894 do
9895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9896set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9897echo "$as_me:$LINENO: checking for $ac_word" >&5
9898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9899if test "${ac_cv_prog_CC+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9901else
9902 if test -n "$CC"; then
9903 ac_cv_prog_CC="$CC" # Let the user override the test.
9904else
9905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906for as_dir in $PATH
9907do
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9914 break 2
9915 fi
9916done
9917done
9918
9919fi
9920fi
9921CC=$ac_cv_prog_CC
9922if test -n "$CC"; then
9923 echo "$as_me:$LINENO: result: $CC" >&5
9924echo "${ECHO_T}$CC" >&6
9925else
9926 echo "$as_me:$LINENO: result: no" >&5
9927echo "${ECHO_T}no" >&6
9928fi
9929
9930 test -n "$CC" && break
9931 done
9932fi
9933if test -z "$CC"; then
9934 ac_ct_CC=$CC
9935 for ac_prog in cl
9936do
9937 # Extract the first word of "$ac_prog", so it can be a program name with args.
9938set dummy $ac_prog; ac_word=$2
9939echo "$as_me:$LINENO: checking for $ac_word" >&5
9940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9941if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943else
9944 if test -n "$ac_ct_CC"; then
9945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9946else
9947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948for as_dir in $PATH
9949do
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954 ac_cv_prog_ac_ct_CC="$ac_prog"
9955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 break 2
9957 fi
9958done
9959done
9960
9961fi
9962fi
9963ac_ct_CC=$ac_cv_prog_ac_ct_CC
9964if test -n "$ac_ct_CC"; then
9965 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9966echo "${ECHO_T}$ac_ct_CC" >&6
9967else
9968 echo "$as_me:$LINENO: result: no" >&5
9969echo "${ECHO_T}no" >&6
9970fi
9971
9972 test -n "$ac_ct_CC" && break
9973done
9974
9975 CC=$ac_ct_CC
9976fi
9977
9978fi
9979
9980
9981test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9982See \`config.log' for more details." >&5
9983echo "$as_me: error: no acceptable C compiler found in \$PATH
9984See \`config.log' for more details." >&2;}
9985 { (exit 1); exit 1; }; }
9986
9987# Provide some information about the compiler.
9988echo "$as_me:$LINENO:" \
9989 "checking for C compiler version" >&5
9990ac_compiler=`set X $ac_compile; echo $2`
9991{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9992 (eval $ac_compiler --version </dev/null >&5) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }
9996{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9997 (eval $ac_compiler -v </dev/null >&5) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }
10001{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10002 (eval $ac_compiler -V </dev/null >&5) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }
10006
10007echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10008echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10009if test "${ac_cv_c_compiler_gnu+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10011else
10012 cat >conftest.$ac_ext <<_ACEOF
10013/* confdefs.h. */
10014_ACEOF
10015cat confdefs.h >>conftest.$ac_ext
10016cat >>conftest.$ac_ext <<_ACEOF
10017/* end confdefs.h. */
10018
10019int
10020main ()
10021{
10022#ifndef __GNUC__
10023 choke me
10024#endif
10025
10026 ;
10027 return 0;
10028}
10029_ACEOF
10030rm -f conftest.$ac_objext
10031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10032 (eval $ac_compile) 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -z "$ac_c_werror_flag"
10040 || test ! -s conftest.err'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest.$ac_objext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_compiler_gnu=yes
10053else
10054 echo "$as_me: failed program was:" >&5
10055sed 's/^/| /' conftest.$ac_ext >&5
10056
10057ac_compiler_gnu=no
10058fi
10059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10060ac_cv_c_compiler_gnu=$ac_compiler_gnu
10061
10062fi
10063echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10064echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10065GCC=`test $ac_compiler_gnu = yes && echo yes`
10066ac_test_CFLAGS=${CFLAGS+set}
10067ac_save_CFLAGS=$CFLAGS
10068CFLAGS="-g"
10069echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10070echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10071if test "${ac_cv_prog_cc_g+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073else
10074 cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h. */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h. */
10080
10081int
10082main ()
10083{
10084
10085 ;
10086 return 0;
10087}
10088_ACEOF
10089rm -f conftest.$ac_objext
10090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10091 (eval $ac_compile) 2>conftest.er1
10092 ac_status=$?
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag"
10099 || test ! -s conftest.err'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest.$ac_objext'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_prog_cc_g=yes
10112else
10113 echo "$as_me: failed program was:" >&5
10114sed 's/^/| /' conftest.$ac_ext >&5
10115
10116ac_cv_prog_cc_g=no
10117fi
10118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10119fi
10120echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10121echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10122if test "$ac_test_CFLAGS" = set; then
10123 CFLAGS=$ac_save_CFLAGS
10124elif test $ac_cv_prog_cc_g = yes; then
10125 if test "$GCC" = yes; then
10126 CFLAGS="-g -O2"
10127 else
10128 CFLAGS="-g"
10129 fi
10130else
10131 if test "$GCC" = yes; then
10132 CFLAGS="-O2"
10133 else
10134 CFLAGS=
10135 fi
10136fi
10137echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10138echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10139if test "${ac_cv_prog_cc_stdc+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141else
10142 ac_cv_prog_cc_stdc=no
10143ac_save_CC=$CC
10144cat >conftest.$ac_ext <<_ACEOF
10145/* confdefs.h. */
10146_ACEOF
10147cat confdefs.h >>conftest.$ac_ext
10148cat >>conftest.$ac_ext <<_ACEOF
10149/* end confdefs.h. */
10150#include <stdarg.h>
10151#include <stdio.h>
10152#include <sys/types.h>
10153#include <sys/stat.h>
10154/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10155struct buf { int x; };
10156FILE * (*rcsopen) (struct buf *, struct stat *, int);
10157static char *e (p, i)
10158 char **p;
10159 int i;
10160{
10161 return p[i];
10162}
10163static char *f (char * (*g) (char **, int), char **p, ...)
10164{
10165 char *s;
10166 va_list v;
10167 va_start (v,p);
10168 s = g (p, va_arg (v,int));
10169 va_end (v);
10170 return s;
10171}
10172
10173/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10174 function prototypes and stuff, but not '\xHH' hex character constants.
10175 These don't provoke an error unfortunately, instead are silently treated
10176 as 'x'. The following induces an error, until -std1 is added to get
10177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10178 array size at least. It's necessary to write '\x00'==0 to get something
10179 that's true only with -std1. */
10180int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10181
10182int test (int i, double x);
10183struct s1 {int (*f) (int a);};
10184struct s2 {int (*f) (double a);};
10185int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10186int argc;
10187char **argv;
10188int
10189main ()
10190{
10191return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196# Don't try gcc -ansi; that turns off useful extensions and
10197# breaks some systems' header files.
10198# AIX -qlanglvl=ansi
10199# Ultrix and OSF/1 -std1
10200# HP-UX 10.20 and later -Ae
10201# HP-UX older versions -Aa -D_HPUX_SOURCE
10202# SVR4 -Xc -D__EXTENSIONS__
10203for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10204do
10205 CC="$ac_save_CC $ac_arg"
10206 rm -f conftest.$ac_objext
10207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>conftest.er1
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_c_werror_flag"
10216 || test ! -s conftest.err'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_prog_cc_stdc=$ac_arg
10229break
10230else
10231 echo "$as_me: failed program was:" >&5
10232sed 's/^/| /' conftest.$ac_ext >&5
10233
10234fi
10235rm -f conftest.err conftest.$ac_objext
10236done
10237rm -f conftest.$ac_ext conftest.$ac_objext
10238CC=$ac_save_CC
10239
10240fi
10241
10242case "x$ac_cv_prog_cc_stdc" in
10243 x|xno)
10244 echo "$as_me:$LINENO: result: none needed" >&5
10245echo "${ECHO_T}none needed" >&6 ;;
10246 *)
10247 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10248echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10249 CC="$CC $ac_cv_prog_cc_stdc" ;;
10250esac
10251
10252# Some people use a C++ compiler to compile C. Since we use `exit',
10253# in C++ we need to declare it. In case someone uses the same compiler
10254# for both compiling C and C++ we need to have the C++ compiler decide
10255# the declaration of exit, since it's the most demanding environment.
10256cat >conftest.$ac_ext <<_ACEOF
10257#ifndef __cplusplus
10258 choke me
10259#endif
10260_ACEOF
10261rm -f conftest.$ac_objext
10262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 for ac_declaration in \
10284 '' \
10285 'extern "C" void std::exit (int) throw (); using std::exit;' \
10286 'extern "C" void std::exit (int); using std::exit;' \
10287 'extern "C" void exit (int) throw ();' \
10288 'extern "C" void exit (int);' \
10289 'void exit (int);'
10290do
10291 cat >conftest.$ac_ext <<_ACEOF
10292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
10297$ac_declaration
10298#include <stdlib.h>
10299int
10300main ()
10301{
10302exit (42);
10303 ;
10304 return 0;
10305}
10306_ACEOF
10307rm -f conftest.$ac_objext
10308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 :
10330else
10331 echo "$as_me: failed program was:" >&5
10332sed 's/^/| /' conftest.$ac_ext >&5
10333
10334continue
10335fi
10336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10337 cat >conftest.$ac_ext <<_ACEOF
10338/* confdefs.h. */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h. */
10343$ac_declaration
10344int
10345main ()
10346{
10347exit (42);
10348 ;
10349 return 0;
10350}
10351_ACEOF
10352rm -f conftest.$ac_objext
10353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -z "$ac_c_werror_flag"
10362 || test ! -s conftest.err'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest.$ac_objext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 break
10375else
10376 echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
10379fi
10380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10381done
10382rm -f conftest*
10383if test -n "$ac_declaration"; then
10384 echo '#ifdef __cplusplus' >>confdefs.h
10385 echo $ac_declaration >>confdefs.h
10386 echo '#endif' >>confdefs.h
10387fi
10388
10389else
10390 echo "$as_me: failed program was:" >&5
10391sed 's/^/| /' conftest.$ac_ext >&5
10392
10393fi
10394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10395ac_ext=c
10396ac_cpp='$CPP $CPPFLAGS'
10397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10399ac_compiler_gnu=$ac_cv_c_compiler_gnu
10400
10401# Find a good install program. We prefer a C program (faster),
10402# so one script is as good as another. But avoid the broken or
10403# incompatible versions:
10404# SysV /etc/install, /usr/sbin/install
10405# SunOS /usr/etc/install
10406# IRIX /sbin/install
10407# AIX /bin/install
10408# AmigaOS /C/install, which installs bootblocks on floppy discs
10409# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10410# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10411# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10412# OS/2's system install, which has a completely different semantic
10413# ./install, which can be erroneously created by make from ./install.sh.
10414echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10415echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10416if test -z "$INSTALL"; then
10417if test "${ac_cv_path_install+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421for as_dir in $PATH
10422do
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 # Account for people who put trailing slashes in PATH elements.
10426case $as_dir/ in
10427 ./ | .// | /cC/* | \
10428 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10429 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10430 /usr/ucb/* ) ;;
10431 *)
10432 # OSF1 and SCO ODT 3.0 have their own names for install.
10433 # Don't use installbsd from OSF since it installs stuff as root
10434 # by default.
10435 for ac_prog in ginstall scoinst install; do
10436 for ac_exec_ext in '' $ac_executable_extensions; do
10437 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10438 if test $ac_prog = install &&
10439 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10440 # AIX install. It has an incompatible calling convention.
10441 :
10442 elif test $ac_prog = install &&
10443 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10444 # program-specific install script used by HP pwplus--don't use.
10445 :
10446 else
10447 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10448 break 3
10449 fi
10450 fi
10451 done
10452 done
10453 ;;
10454esac
10455done
10456
10457
10458fi
10459 if test "${ac_cv_path_install+set}" = set; then
10460 INSTALL=$ac_cv_path_install
10461 else
10462 # As a last resort, use the slow shell script. We don't cache a
10463 # path for INSTALL within a source directory, because that will
10464 # break other packages using the cache if that directory is
10465 # removed, or if the path is relative.
10466 INSTALL=$ac_install_sh
10467 fi
10468fi
10469echo "$as_me:$LINENO: result: $INSTALL" >&5
10470echo "${ECHO_T}$INSTALL" >&6
10471
10472# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10473# It thinks the first close brace ends the variable substitution.
10474test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10475
10476test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10477
10478test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10479
10480
10481ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga"
10482# If we haven't got the data from the intl directory,
10483# assume NLS is disabled.
10484USE_NLS=no
10485LIBINTL=
10486LIBINTL_DEP=
10487INCINTL=
10488XGETTEXT=
10489GMSGFMT=
10490POSUB=
10491
10492if test -f ../intl/config.intl; then
10493 . ../intl/config.intl
10494fi
10495echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10496echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10497if test x"$USE_NLS" != xyes; then
10498 echo "$as_me:$LINENO: result: no" >&5
10499echo "${ECHO_T}no" >&6
10500else
10501 echo "$as_me:$LINENO: result: yes" >&5
10502echo "${ECHO_T}yes" >&6
10503
10504cat >>confdefs.h <<\_ACEOF
10505#define ENABLE_NLS 1
10506_ACEOF
10507
10508
10509 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10510echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10511 # Look for .po and .gmo files in the source directory.
10512 CATALOGS=
10513 XLINGUAS=
10514 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10515 # If there aren't any .gmo files the shell will give us the
10516 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10517 # weeded out.
10518 case "$cat" in *\**)
10519 continue;;
10520 esac
10521 # The quadruple backslash is collapsed to a double backslash
10522 # by the backticks, then collapsed again by the double quotes,
10523 # leaving us with one backslash in the sed expression (right
10524 # before the dot that mustn't act as a wildcard).
10525 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10526 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10527 # The user is allowed to set LINGUAS to a list of languages to
10528 # install catalogs for. If it's empty that means "all of them."
10529 if test "x$LINGUAS" = x; then
10530 CATALOGS="$CATALOGS $cat"
10531 XLINGUAS="$XLINGUAS $lang"
10532 else
10533 case "$LINGUAS" in *$lang*)
10534 CATALOGS="$CATALOGS $cat"
10535 XLINGUAS="$XLINGUAS $lang"
10536 ;;
10537 esac
10538 fi
10539 done
10540 LINGUAS="$XLINGUAS"
10541 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10542echo "${ECHO_T}$LINGUAS" >&6
10543
10544
10545 DATADIRNAME=share
10546
10547 INSTOBJEXT=.mo
10548
10549 GENCAT=gencat
10550
10551 CATOBJEXT=.gmo
10552
10553fi
10554
10555 MKINSTALLDIRS=
10556 if test -n "$ac_aux_dir"; then
10557 case "$ac_aux_dir" in
10558 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10559 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10560 esac
10561 fi
10562 if test -z "$MKINSTALLDIRS"; then
10563 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10564 fi
10565
10566
10567
10568 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10569echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10570 # Check whether --enable-nls or --disable-nls was given.
10571if test "${enable_nls+set}" = set; then
10572 enableval="$enable_nls"
10573 USE_NLS=$enableval
10574else
10575 USE_NLS=yes
10576fi;
10577 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10578echo "${ECHO_T}$USE_NLS" >&6
10579
10580
10581
10582
10583
10584
10585# Prepare PATH_SEPARATOR.
10586# The user is always right.
10587if test "${PATH_SEPARATOR+set}" != set; then
10588 echo "#! /bin/sh" >conf$$.sh
10589 echo "exit 0" >>conf$$.sh
10590 chmod +x conf$$.sh
10591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10592 PATH_SEPARATOR=';'
10593 else
10594 PATH_SEPARATOR=:
10595 fi
10596 rm -f conf$$.sh
10597fi
10598
10599# Find out how to test for executable files. Don't use a zero-byte file,
10600# as systems may use methods other than mode bits to determine executability.
10601cat >conf$$.file <<_ASEOF
10602#! /bin/sh
10603exit 0
10604_ASEOF
10605chmod +x conf$$.file
10606if test -x conf$$.file >/dev/null 2>&1; then
10607 ac_executable_p="test -x"
10608else
10609 ac_executable_p="test -f"
10610fi
10611rm -f conf$$.file
10612
10613# Extract the first word of "msgfmt", so it can be a program name with args.
10614set dummy msgfmt; ac_word=$2
10615echo "$as_me:$LINENO: checking for $ac_word" >&5
10616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10617if test "${ac_cv_path_MSGFMT+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619else
10620 case "$MSGFMT" in
10621 [\\/]* | ?:[\\/]*)
10622 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10623 ;;
10624 *)
10625 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10626 for ac_dir in $PATH; do
10627 IFS="$ac_save_IFS"
10628 test -z "$ac_dir" && ac_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10631 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10632 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10633 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10634 break 2
10635 fi
10636 fi
10637 done
10638 done
10639 IFS="$ac_save_IFS"
10640 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10641 ;;
10642esac
10643fi
10644MSGFMT="$ac_cv_path_MSGFMT"
10645if test "$MSGFMT" != ":"; then
10646 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10647echo "${ECHO_T}$MSGFMT" >&6
10648else
10649 echo "$as_me:$LINENO: result: no" >&5
10650echo "${ECHO_T}no" >&6
10651fi
10652
10653 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10654set dummy gmsgfmt; ac_word=$2
10655echo "$as_me:$LINENO: checking for $ac_word" >&5
10656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10657if test "${ac_cv_path_GMSGFMT+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660 case $GMSGFMT in
10661 [\\/]* | ?:[\\/]*)
10662 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10663 ;;
10664 *)
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666for as_dir in $PATH
10667do
10668 IFS=$as_save_IFS
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10672 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 break 2
10675 fi
10676done
10677done
10678
10679 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10680 ;;
10681esac
10682fi
10683GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 10684
d7040cdb
SE
10685if test -n "$GMSGFMT"; then
10686 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10687echo "${ECHO_T}$GMSGFMT" >&6
10688else
10689 echo "$as_me:$LINENO: result: no" >&5
10690echo "${ECHO_T}no" >&6
20e95c23 10691fi
42ecbf5e 10692
20e95c23 10693
252b5132 10694
d7040cdb
SE
10695# Prepare PATH_SEPARATOR.
10696# The user is always right.
10697if test "${PATH_SEPARATOR+set}" != set; then
10698 echo "#! /bin/sh" >conf$$.sh
10699 echo "exit 0" >>conf$$.sh
10700 chmod +x conf$$.sh
10701 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10702 PATH_SEPARATOR=';'
10703 else
10704 PATH_SEPARATOR=:
10705 fi
10706 rm -f conf$$.sh
20e95c23 10707fi
252b5132 10708
d7040cdb
SE
10709# Find out how to test for executable files. Don't use a zero-byte file,
10710# as systems may use methods other than mode bits to determine executability.
10711cat >conf$$.file <<_ASEOF
10712#! /bin/sh
10713exit 0
10714_ASEOF
10715chmod +x conf$$.file
10716if test -x conf$$.file >/dev/null 2>&1; then
10717 ac_executable_p="test -x"
20e95c23 10718else
d7040cdb
SE
10719 ac_executable_p="test -f"
10720fi
10721rm -f conf$$.file
20e95c23 10722
d7040cdb
SE
10723# Extract the first word of "xgettext", so it can be a program name with args.
10724set dummy xgettext; ac_word=$2
10725echo "$as_me:$LINENO: checking for $ac_word" >&5
10726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10727if test "${ac_cv_path_XGETTEXT+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10729else
d7040cdb
SE
10730 case "$XGETTEXT" in
10731 [\\/]* | ?:[\\/]*)
10732 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10733 ;;
10734 *)
10735 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10736 for ac_dir in $PATH; do
10737 IFS="$ac_save_IFS"
10738 test -z "$ac_dir" && ac_dir=.
10739 for ac_exec_ext in '' $ac_executable_extensions; do
10740 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10741 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10742 (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
10743 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10744 break 2
10745 fi
10746 fi
10747 done
10748 done
10749 IFS="$ac_save_IFS"
10750 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10751 ;;
10752esac
252b5132 10753fi
d7040cdb
SE
10754XGETTEXT="$ac_cv_path_XGETTEXT"
10755if test "$XGETTEXT" != ":"; then
10756 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10757echo "${ECHO_T}$XGETTEXT" >&6
d5fbea21 10758else
d7040cdb
SE
10759 echo "$as_me:$LINENO: result: no" >&5
10760echo "${ECHO_T}no" >&6
d5fbea21
DJ
10761fi
10762
d7040cdb 10763 rm -f messages.po
d5fbea21 10764
20e95c23 10765
d7040cdb
SE
10766# Prepare PATH_SEPARATOR.
10767# The user is always right.
10768if test "${PATH_SEPARATOR+set}" != set; then
10769 echo "#! /bin/sh" >conf$$.sh
10770 echo "exit 0" >>conf$$.sh
10771 chmod +x conf$$.sh
10772 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10773 PATH_SEPARATOR=';'
10774 else
10775 PATH_SEPARATOR=:
10776 fi
10777 rm -f conf$$.sh
10778fi
20e95c23 10779
d7040cdb
SE
10780# Find out how to test for executable files. Don't use a zero-byte file,
10781# as systems may use methods other than mode bits to determine executability.
10782cat >conf$$.file <<_ASEOF
10783#! /bin/sh
10784exit 0
10785_ASEOF
10786chmod +x conf$$.file
10787if test -x conf$$.file >/dev/null 2>&1; then
10788 ac_executable_p="test -x"
10789else
10790 ac_executable_p="test -f"
10791fi
10792rm -f conf$$.file
20e95c23 10793
d7040cdb
SE
10794# Extract the first word of "msgmerge", so it can be a program name with args.
10795set dummy msgmerge; ac_word=$2
10796echo "$as_me:$LINENO: checking for $ac_word" >&5
10797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10798if test "${ac_cv_path_MSGMERGE+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800else
10801 case "$MSGMERGE" in
10802 [\\/]* | ?:[\\/]*)
10803 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10804 ;;
10805 *)
10806 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10807 for ac_dir in $PATH; do
10808 IFS="$ac_save_IFS"
10809 test -z "$ac_dir" && ac_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10812 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10813 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10814 break 2
10815 fi
10816 fi
10817 done
10818 done
10819 IFS="$ac_save_IFS"
10820 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10821 ;;
10822esac
10823fi
10824MSGMERGE="$ac_cv_path_MSGMERGE"
10825if test "$MSGMERGE" != ":"; then
10826 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10827echo "${ECHO_T}$MSGMERGE" >&6
10828else
10829 echo "$as_me:$LINENO: result: no" >&5
10830echo "${ECHO_T}no" >&6
10831fi
20e95c23
DJ
10832
10833
d7040cdb
SE
10834 if test "$GMSGFMT" != ":"; then
10835 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10836 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10837 : ;
10838 else
10839 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10840 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10841echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10842 GMSGFMT=":"
10843 fi
10844 fi
20e95c23 10845
d7040cdb
SE
10846 if test "$XGETTEXT" != ":"; then
10847 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10848 (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
10849 : ;
10850 else
10851 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10852echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10853 XGETTEXT=":"
10854 fi
10855 rm -f messages.po
20e95c23 10856 fi
42ecbf5e 10857
d7040cdb 10858 ac_config_commands="$ac_config_commands default-1"
252b5132 10859
42ecbf5e 10860
252b5132 10861
42ecbf5e
DJ
10862
10863
d7040cdb 10864for ac_prog in 'bison -y' byacc
20e95c23 10865do
d7040cdb
SE
10866 # Extract the first word of "$ac_prog", so it can be a program name with args.
10867set dummy $ac_prog; ac_word=$2
10868echo "$as_me:$LINENO: checking for $ac_word" >&5
10869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10870if test "${ac_cv_prog_YACC+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10872else
d7040cdb
SE
10873 if test -n "$YACC"; then
10874 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 10875else
d7040cdb
SE
10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10883 ac_cv_prog_YACC="$ac_prog"
10884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10886 fi
10887done
10888done
42ecbf5e 10889
42ecbf5e 10890fi
e5a52504 10891fi
d7040cdb
SE
10892YACC=$ac_cv_prog_YACC
10893if test -n "$YACC"; then
10894 echo "$as_me:$LINENO: result: $YACC" >&5
10895echo "${ECHO_T}$YACC" >&6
42ecbf5e 10896else
d7040cdb
SE
10897 echo "$as_me:$LINENO: result: no" >&5
10898echo "${ECHO_T}no" >&6
42ecbf5e 10899fi
252b5132 10900
d7040cdb 10901 test -n "$YACC" && break
42ecbf5e 10902done
d7040cdb 10903test -n "$YACC" || YACC="yacc"
d15b04bd 10904
d7040cdb
SE
10905for ac_prog in flex lex
10906do
10907 # Extract the first word of "$ac_prog", so it can be a program name with args.
10908set dummy $ac_prog; ac_word=$2
10909echo "$as_me:$LINENO: checking for $ac_word" >&5
10910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10911if test "${ac_cv_prog_LEX+set}" = set; then
20e95c23 10912 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 10913else
d7040cdb
SE
10914 if test -n "$LEX"; then
10915 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10916else
10917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10918for as_dir in $PATH
10919do
10920 IFS=$as_save_IFS
10921 test -z "$as_dir" && as_dir=.
10922 for ac_exec_ext in '' $ac_executable_extensions; do
10923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10924 ac_cv_prog_LEX="$ac_prog"
10925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 break 2
10927 fi
10928done
10929done
10930
10931fi
10932fi
10933LEX=$ac_cv_prog_LEX
10934if test -n "$LEX"; then
10935 echo "$as_me:$LINENO: result: $LEX" >&5
10936echo "${ECHO_T}$LEX" >&6
10937else
10938 echo "$as_me:$LINENO: result: no" >&5
10939echo "${ECHO_T}no" >&6
d15b04bd 10940fi
e5a52504 10941
d7040cdb
SE
10942 test -n "$LEX" && break
10943done
10944test -n "$LEX" || LEX=":"
42ecbf5e 10945
d7040cdb
SE
10946if test -z "$LEXLIB"
10947then
10948 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10949echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10950if test "${ac_cv_lib_fl_yywrap+set}" = set; then
42ecbf5e
DJ
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952else
d7040cdb
SE
10953 ac_check_lib_save_LIBS=$LIBS
10954LIBS="-lfl $LIBS"
10955cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
10956/* confdefs.h. */
10957_ACEOF
10958cat confdefs.h >>conftest.$ac_ext
10959cat >>conftest.$ac_ext <<_ACEOF
10960/* end confdefs.h. */
10961
d7040cdb
SE
10962/* Override any gcc2 internal prototype to avoid an error. */
10963#ifdef __cplusplus
10964extern "C"
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 yywrap ();
42ecbf5e
DJ
10969int
10970main ()
10971{
d7040cdb 10972yywrap ();
42ecbf5e
DJ
10973 ;
10974 return 0;
10975}
10976_ACEOF
d7040cdb
SE
10977rm -f conftest.$ac_objext conftest$ac_exeext
10978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10979 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
502bdb00
JW
10986 { ac_try='test -z "$ac_c_werror_flag"
10987 || test ! -s conftest.err'
42ecbf5e
DJ
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
d7040cdb 10993 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
d7040cdb 10999 ac_cv_lib_fl_yywrap=yes
42ecbf5e
DJ
11000else
11001 echo "$as_me: failed program was:" >&5
11002sed 's/^/| /' conftest.$ac_ext >&5
11003
d7040cdb 11004ac_cv_lib_fl_yywrap=no
42ecbf5e 11005fi
d7040cdb
SE
11006rm -f conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008LIBS=$ac_check_lib_save_LIBS
42ecbf5e 11009fi
d7040cdb
SE
11010echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11011echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11012if test $ac_cv_lib_fl_yywrap = yes; then
11013 LEXLIB="-lfl"
20e95c23 11014else
d7040cdb
SE
11015 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11016echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11017if test "${ac_cv_lib_l_yywrap+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11019else
d7040cdb
SE
11020 ac_check_lib_save_LIBS=$LIBS
11021LIBS="-ll $LIBS"
11022cat >conftest.$ac_ext <<_ACEOF
20e95c23 11023/* confdefs.h. */
42ecbf5e 11024_ACEOF
20e95c23
DJ
11025cat confdefs.h >>conftest.$ac_ext
11026cat >>conftest.$ac_ext <<_ACEOF
11027/* end confdefs.h. */
20e95c23 11028
d7040cdb
SE
11029/* Override any gcc2 internal prototype to avoid an error. */
11030#ifdef __cplusplus
11031extern "C"
11032#endif
11033/* We use char because int might match the return type of a gcc2
11034 builtin and then its argument prototype would still apply. */
11035char yywrap ();
20e95c23
DJ
11036int
11037main ()
11038{
d7040cdb
SE
11039yywrap ();
11040 ;
11041 return 0;
20e95c23
DJ
11042}
11043_ACEOF
d7040cdb 11044rm -f conftest.$ac_objext conftest$ac_exeext
20e95c23 11045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb 11046 (eval $ac_link) 2>conftest.er1
42ecbf5e 11047 ac_status=$?
d7040cdb
SE
11048 grep -v '^ *+' conftest.er1 >conftest.err
11049 rm -f conftest.er1
11050 cat conftest.err >&5
42ecbf5e 11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11052 (exit $ac_status); } &&
11053 { ac_try='test -z "$ac_c_werror_flag"
11054 || test ! -s conftest.err'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11063 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; }; then
d7040cdb 11066 ac_cv_lib_l_yywrap=yes
252b5132 11067else
d7040cdb 11068 echo "$as_me: failed program was:" >&5
20e95c23
DJ
11069sed 's/^/| /' conftest.$ac_ext >&5
11070
d7040cdb 11071ac_cv_lib_l_yywrap=no
252b5132 11072fi
d7040cdb
SE
11073rm -f conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
11075LIBS=$ac_check_lib_save_LIBS
20e95c23 11076fi
d7040cdb
SE
11077echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11078echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11079if test $ac_cv_lib_l_yywrap = yes; then
11080 LEXLIB="-ll"
20e95c23 11081fi
20e95c23
DJ
11082
11083fi
11084
d7040cdb 11085fi
20e95c23 11086
d7040cdb
SE
11087if test "x$LEX" != "x:"; then
11088 echo "$as_me:$LINENO: checking lex output file root" >&5
11089echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11090if test "${ac_cv_prog_lex_root+set}" = set; then
42ecbf5e 11091 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11092else
d7040cdb
SE
11093 # The minimal lex program is just a single line: %%. But some broken lexes
11094# (Solaris, I think it was) want two %% lines, so accommodate them.
11095cat >conftest.l <<_ACEOF
11096%%
11097%%
42ecbf5e 11098_ACEOF
d7040cdb
SE
11099{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11100 (eval $LEX conftest.l) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }
11104if test -f lex.yy.c; then
11105 ac_cv_prog_lex_root=lex.yy
11106elif test -f lexyy.c; then
11107 ac_cv_prog_lex_root=lexyy
11108else
11109 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11110echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11111 { (exit 1); exit 1; }; }
11112fi
11113fi
11114echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11115echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11116rm -f conftest.l
11117LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 11118
d7040cdb
SE
11119echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11120echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11121if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123else
11124 # POSIX says lex can declare yytext either as a pointer or an array; the
11125# default is implementation-dependent. Figure out which it is, since
11126# not all implementations provide the %pointer and %array declarations.
11127ac_cv_prog_lex_yytext_pointer=no
11128echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11129ac_save_LIBS=$LIBS
11130LIBS="$LIBS $LEXLIB"
11131cat >conftest.$ac_ext <<_ACEOF
11132`cat $LEX_OUTPUT_ROOT.c`
20e95c23 11133_ACEOF
d7040cdb
SE
11134rm -f conftest.$ac_objext conftest$ac_exeext
11135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
502bdb00
JW
11143 { ac_try='test -z "$ac_c_werror_flag"
11144 || test ! -s conftest.err'
42ecbf5e
DJ
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; } &&
d7040cdb 11150 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; }; then
d7040cdb
SE
11156 ac_cv_prog_lex_yytext_pointer=yes
11157else
11158 echo "$as_me: failed program was:" >&5
11159sed 's/^/| /' conftest.$ac_ext >&5
11160
11161fi
11162rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164LIBS=$ac_save_LIBS
11165rm -f "${LEX_OUTPUT_ROOT}.c"
11166
11167fi
11168echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11169echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11170if test $ac_cv_prog_lex_yytext_pointer = yes; then
11171
11172cat >>confdefs.h <<\_ACEOF
11173#define YYTEXT_POINTER 1
11174_ACEOF
11175
11176fi
11177
11178fi
11179if test "$LEX" = :; then
11180 LEX=${am_missing_run}flex
11181fi
11182
11183echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11184echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11185 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11186if test "${enable_maintainer_mode+set}" = set; then
11187 enableval="$enable_maintainer_mode"
11188 USE_MAINTAINER_MODE=$enableval
252b5132 11189else
d7040cdb
SE
11190 USE_MAINTAINER_MODE=no
11191fi;
11192 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11193echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11194
d7040cdb
SE
11195
11196if test $USE_MAINTAINER_MODE = yes; then
11197 MAINTAINER_MODE_TRUE=
11198 MAINTAINER_MODE_FALSE='#'
11199else
11200 MAINTAINER_MODE_TRUE='#'
11201 MAINTAINER_MODE_FALSE=
252b5132 11202fi
252b5132 11203
d7040cdb
SE
11204 MAINT=$MAINTAINER_MODE_TRUE
11205
11206
11207
11208
11209if false; then
11210 GENINSRC_NEVER_TRUE=
11211 GENINSRC_NEVER_FALSE='#'
11212else
11213 GENINSRC_NEVER_TRUE='#'
11214 GENINSRC_NEVER_FALSE=
252b5132
RH
11215fi
11216
d7040cdb
SE
11217
11218. ${srcdir}/configure.host
11219
11220
11221
11222
252b5132
RH
11223
11224
42ecbf5e
DJ
11225
11226
11227
11228
ebe1fac1 11229
a3ffa599
L
11230
11231
11232for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
252b5132 11233do
42ecbf5e
DJ
11234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11235if eval "test \"\${$as_ac_Header+set}\" = set"; then
11236 echo "$as_me:$LINENO: checking for $ac_header" >&5
11237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11238if eval "test \"\${$as_ac_Header+set}\" = set"; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240fi
11241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11243else
11244 # Is the header compilable?
11245echo "$as_me:$LINENO: checking $ac_header usability" >&5
11246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11247cat >conftest.$ac_ext <<_ACEOF
11248/* confdefs.h. */
11249_ACEOF
11250cat confdefs.h >>conftest.$ac_ext
11251cat >>conftest.$ac_ext <<_ACEOF
11252/* end confdefs.h. */
11253$ac_includes_default
11254#include <$ac_header>
11255_ACEOF
11256rm -f conftest.$ac_objext
11257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11258 (eval $ac_compile) 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
502bdb00
JW
11265 { ac_try='test -z "$ac_c_werror_flag"
11266 || test ! -s conftest.err'
42ecbf5e
DJ
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; } &&
11272 { ac_try='test -s conftest.$ac_objext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_header_compiler=yes
11279else
11280 echo "$as_me: failed program was:" >&5
11281sed 's/^/| /' conftest.$ac_ext >&5
11282
11283ac_header_compiler=no
11284fi
11285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11286echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11287echo "${ECHO_T}$ac_header_compiler" >&6
11288
11289# Is the header present?
11290echo "$as_me:$LINENO: checking $ac_header presence" >&5
11291echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11292cat >conftest.$ac_ext <<_ACEOF
11293/* confdefs.h. */
11294_ACEOF
11295cat confdefs.h >>conftest.$ac_ext
11296cat >>conftest.$ac_ext <<_ACEOF
11297/* end confdefs.h. */
11298#include <$ac_header>
11299_ACEOF
11300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } >/dev/null; then
11308 if test -s conftest.err; then
11309 ac_cpp_err=$ac_c_preproc_warn_flag
11310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11311 else
11312 ac_cpp_err=
11313 fi
252b5132 11314else
42ecbf5e 11315 ac_cpp_err=yes
252b5132 11316fi
42ecbf5e
DJ
11317if test -z "$ac_cpp_err"; then
11318 ac_header_preproc=yes
11319else
11320 echo "$as_me: failed program was:" >&5
11321sed 's/^/| /' conftest.$ac_ext >&5
11322
11323 ac_header_preproc=no
252b5132 11324fi
42ecbf5e
DJ
11325rm -f conftest.err conftest.$ac_ext
11326echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11327echo "${ECHO_T}$ac_header_preproc" >&6
11328
11329# So? What about this header?
11330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11331 yes:no: )
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11333echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11335echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11336 ac_header_preproc=yes
11337 ;;
11338 no:yes:* )
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11342echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11344echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11346echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11350echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11351 (
11352 cat <<\_ASBOX
11353## ------------------------------------------ ##
11354## Report this to the AC_PACKAGE_NAME lists. ##
11355## ------------------------------------------ ##
11356_ASBOX
11357 ) |
11358 sed "s/^/$as_me: WARNING: /" >&2
11359 ;;
11360esac
11361echo "$as_me:$LINENO: checking for $ac_header" >&5
11362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11363if eval "test \"\${$as_ac_Header+set}\" = set"; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11365else
42ecbf5e
DJ
11366 eval "$as_ac_Header=\$ac_header_preproc"
11367fi
11368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11370
252b5132 11371fi
42ecbf5e
DJ
11372if test `eval echo '${'$as_ac_Header'}'` = yes; then
11373 cat >>confdefs.h <<_ACEOF
11374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11375_ACEOF
11376
11377fi
11378
252b5132
RH
11379done
11380
42ecbf5e
DJ
11381
11382
11383
dc27aea4
AM
11384
11385
11386for ac_func in glob mkstemp realpath sbrk waitpid
252b5132 11387do
42ecbf5e
DJ
11388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11389echo "$as_me:$LINENO: checking for $ac_func" >&5
11390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11391if eval "test \"\${$as_ac_var+set}\" = set"; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393else
11394 cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
11400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11402#define $ac_func innocuous_$ac_func
11403
252b5132 11404/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11405 which can conflict with char $ac_func (); below.
11406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407 <limits.h> exists even on freestanding compilers. */
11408
11409#ifdef __STDC__
11410# include <limits.h>
11411#else
11412# include <assert.h>
11413#endif
d15b04bd 11414
42ecbf5e 11415#undef $ac_func
d15b04bd 11416
42ecbf5e
DJ
11417/* Override any gcc2 internal prototype to avoid an error. */
11418#ifdef __cplusplus
11419extern "C"
11420{
11421#endif
11422/* We use char because int might match the return type of a gcc2
11423 builtin and then its argument prototype would still apply. */
11424char $ac_func ();
252b5132
RH
11425/* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
11428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11429choke me
11430#else
42ecbf5e
DJ
11431char (*f) () = $ac_func;
11432#endif
11433#ifdef __cplusplus
11434}
252b5132
RH
11435#endif
11436
42ecbf5e
DJ
11437int
11438main ()
11439{
11440return f != $ac_func;
11441 ;
11442 return 0;
11443}
11444_ACEOF
11445rm -f conftest.$ac_objext conftest$ac_exeext
11446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11447 (eval $ac_link) 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
502bdb00
JW
11454 { ac_try='test -z "$ac_c_werror_flag"
11455 || test ! -s conftest.err'
42ecbf5e
DJ
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try='test -s conftest$ac_exeext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 eval "$as_ac_var=yes"
11468else
11469 echo "$as_me: failed program was:" >&5
11470sed 's/^/| /' conftest.$ac_ext >&5
11471
11472eval "$as_ac_var=no"
11473fi
11474rm -f conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476fi
11477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11479if test `eval echo '${'$as_ac_var'}'` = yes; then
11480 cat >>confdefs.h <<_ACEOF
11481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11482_ACEOF
252b5132 11483
252b5132
RH
11484fi
11485done
11486
42ecbf5e
DJ
11487
11488
11489
11490
11491
252b5132 11492ac_header_dirent=no
42ecbf5e
DJ
11493for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11494 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11495echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11496echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11497if eval "test \"\${$as_ac_Header+set}\" = set"; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499else
11500 cat >conftest.$ac_ext <<_ACEOF
11501/* confdefs.h. */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h. */
252b5132
RH
11506#include <sys/types.h>
11507#include <$ac_hdr>
42ecbf5e
DJ
11508
11509int
11510main ()
11511{
11512if ((DIR *) 0)
11513return 0;
11514 ;
11515 return 0;
11516}
11517_ACEOF
11518rm -f conftest.$ac_objext
11519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520 (eval $ac_compile) 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
502bdb00
JW
11527 { ac_try='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
42ecbf5e
DJ
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest.$ac_objext'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 eval "$as_ac_Header=yes"
11541else
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545eval "$as_ac_Header=no"
11546fi
11547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11548fi
11549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11551if test `eval echo '${'$as_ac_Header'}'` = yes; then
11552 cat >>confdefs.h <<_ACEOF
11553#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11554_ACEOF
11555
11556ac_header_dirent=$ac_hdr; break
d15b04bd 11557fi
42ecbf5e 11558
d15b04bd
L
11559done
11560# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11561if test $ac_header_dirent = dirent.h; then
42ecbf5e
DJ
11562 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11563echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11564if test "${ac_cv_search_opendir+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566else
11567 ac_func_search_save_LIBS=$LIBS
11568ac_cv_search_opendir=no
11569cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
11575
e5a52504 11576/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11577#ifdef __cplusplus
11578extern "C"
11579#endif
e5a52504 11580/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11581 builtin and then its argument prototype would still apply. */
11582char opendir ();
11583int
11584main ()
11585{
11586opendir ();
11587 ;
11588 return 0;
11589}
11590_ACEOF
11591rm -f conftest.$ac_objext conftest$ac_exeext
11592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
502bdb00
JW
11600 { ac_try='test -z "$ac_c_werror_flag"
11601 || test ! -s conftest.err'
42ecbf5e
DJ
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 ac_cv_search_opendir="none required"
11614else
11615 echo "$as_me: failed program was:" >&5
11616sed 's/^/| /' conftest.$ac_ext >&5
11617
11618fi
11619rm -f conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621if test "$ac_cv_search_opendir" = no; then
11622 for ac_lib in dir; do
11623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11624 cat >conftest.$ac_ext <<_ACEOF
11625/* confdefs.h. */
11626_ACEOF
11627cat confdefs.h >>conftest.$ac_ext
11628cat >>conftest.$ac_ext <<_ACEOF
11629/* end confdefs.h. */
e5a52504 11630
42ecbf5e
DJ
11631/* Override any gcc2 internal prototype to avoid an error. */
11632#ifdef __cplusplus
11633extern "C"
11634#endif
11635/* We use char because int might match the return type of a gcc2
11636 builtin and then its argument prototype would still apply. */
11637char opendir ();
11638int
11639main ()
11640{
11641opendir ();
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext conftest$ac_exeext
11647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
502bdb00
JW
11655 { ac_try='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
42ecbf5e
DJ
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_search_opendir="-l$ac_lib"
11669break
11670else
11671 echo "$as_me: failed program was:" >&5
11672sed 's/^/| /' conftest.$ac_ext >&5
11673
11674fi
11675rm -f conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677 done
252b5132 11678fi
42ecbf5e
DJ
11679LIBS=$ac_func_search_save_LIBS
11680fi
11681echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11682echo "${ECHO_T}$ac_cv_search_opendir" >&6
11683if test "$ac_cv_search_opendir" != no; then
11684 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11685
d15b04bd 11686fi
252b5132
RH
11687
11688else
42ecbf5e
DJ
11689 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11690echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11691if test "${ac_cv_search_opendir+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11693else
42ecbf5e
DJ
11694 ac_func_search_save_LIBS=$LIBS
11695ac_cv_search_opendir=no
11696cat >conftest.$ac_ext <<_ACEOF
11697/* confdefs.h. */
11698_ACEOF
11699cat confdefs.h >>conftest.$ac_ext
11700cat >>conftest.$ac_ext <<_ACEOF
11701/* end confdefs.h. */
11702
252b5132 11703/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11704#ifdef __cplusplus
11705extern "C"
11706#endif
252b5132 11707/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11708 builtin and then its argument prototype would still apply. */
11709char opendir ();
11710int
11711main ()
11712{
11713opendir ();
11714 ;
11715 return 0;
11716}
11717_ACEOF
11718rm -f conftest.$ac_objext conftest$ac_exeext
11719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
502bdb00
JW
11727 { ac_try='test -z "$ac_c_werror_flag"
11728 || test ! -s conftest.err'
42ecbf5e
DJ
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest$ac_exeext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_cv_search_opendir="none required"
11741else
11742 echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745fi
11746rm -f conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11748if test "$ac_cv_search_opendir" = no; then
11749 for ac_lib in x; do
11750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11751 cat >conftest.$ac_ext <<_ACEOF
11752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
252b5132 11757
42ecbf5e
DJ
11758/* Override any gcc2 internal prototype to avoid an error. */
11759#ifdef __cplusplus
11760extern "C"
11761#endif
11762/* We use char because int might match the return type of a gcc2
11763 builtin and then its argument prototype would still apply. */
11764char opendir ();
11765int
11766main ()
11767{
11768opendir ();
11769 ;
11770 return 0;
11771}
11772_ACEOF
11773rm -f conftest.$ac_objext conftest$ac_exeext
11774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11775 (eval $ac_link) 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
502bdb00
JW
11782 { ac_try='test -z "$ac_c_werror_flag"
11783 || test ! -s conftest.err'
42ecbf5e
DJ
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_search_opendir="-l$ac_lib"
11796break
11797else
11798 echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801fi
11802rm -f conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804 done
252b5132 11805fi
42ecbf5e 11806LIBS=$ac_func_search_save_LIBS
252b5132 11807fi
42ecbf5e
DJ
11808echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11809echo "${ECHO_T}$ac_cv_search_opendir" >&6
11810if test "$ac_cv_search_opendir" != no; then
11811 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11812
d15b04bd 11813fi
252b5132
RH
11814
11815fi
11816
11817
42ecbf5e
DJ
11818echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11819echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11820if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
34875e64 11822else
42ecbf5e
DJ
11823 cat >conftest.$ac_ext <<_ACEOF
11824/* confdefs.h. */
11825_ACEOF
11826cat confdefs.h >>conftest.$ac_ext
11827cat >>conftest.$ac_ext <<_ACEOF
11828/* end confdefs.h. */
34875e64 11829#include <unistd.h>
42ecbf5e
DJ
11830int
11831main ()
11832{
34875e64 11833extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
11834 ;
11835 return 0;
11836}
11837_ACEOF
11838rm -f conftest.$ac_objext
11839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11840 (eval $ac_compile) 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
502bdb00
JW
11847 { ac_try='test -z "$ac_c_werror_flag"
11848 || test ! -s conftest.err'
42ecbf5e
DJ
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; } &&
11854 { ac_try='test -s conftest.$ac_objext'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
34875e64
NC
11860 ld_cv_decl_getopt_unistd_h=yes
11861else
42ecbf5e
DJ
11862 echo "$as_me: failed program was:" >&5
11863sed 's/^/| /' conftest.$ac_ext >&5
11864
11865ld_cv_decl_getopt_unistd_h=no
34875e64 11866fi
42ecbf5e 11867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11868fi
11869
42ecbf5e
DJ
11870echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11871echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
34875e64 11872if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
11873
11874cat >>confdefs.h <<\_ACEOF
34875e64 11875#define HAVE_DECL_GETOPT 1
42ecbf5e 11876_ACEOF
34875e64
NC
11877
11878fi
42ecbf5e 11879
252b5132
RH
11880
11881case "${host}" in
a8100d5b 11882*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
11883
11884cat >>confdefs.h <<\_ACEOF
252b5132 11885#define USE_BINARY_FOPEN 1
42ecbf5e 11886_ACEOF
252b5132
RH
11887 ;;
11888esac
11889
502bdb00
JW
11890echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11891echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11892if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 11893 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11894else
42ecbf5e
DJ
11895 cat >conftest.$ac_ext <<_ACEOF
11896/* confdefs.h. */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h. */
502bdb00 11901$ac_includes_default
42ecbf5e
DJ
11902int
11903main ()
11904{
502bdb00
JW
11905#ifndef strstr
11906 char *p = (char *) strstr;
11907#endif
11908
42ecbf5e
DJ
11909 ;
11910 return 0;
11911}
11912_ACEOF
11913rm -f conftest.$ac_objext
11914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11915 (eval $ac_compile) 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
502bdb00
JW
11922 { ac_try='test -z "$ac_c_werror_flag"
11923 || test ! -s conftest.err'
42ecbf5e
DJ
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest.$ac_objext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
502bdb00 11935 ac_cv_have_decl_strstr=yes
252b5132 11936else
42ecbf5e
DJ
11937 echo "$as_me: failed program was:" >&5
11938sed 's/^/| /' conftest.$ac_ext >&5
11939
502bdb00 11940ac_cv_have_decl_strstr=no
252b5132 11941fi
42ecbf5e 11942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11943fi
502bdb00
JW
11944echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11945echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11946if test $ac_cv_have_decl_strstr = yes; then
252b5132 11947
502bdb00
JW
11948cat >>confdefs.h <<_ACEOF
11949#define HAVE_DECL_STRSTR 1
11950_ACEOF
42ecbf5e 11951
502bdb00
JW
11952
11953else
11954 cat >>confdefs.h <<_ACEOF
11955#define HAVE_DECL_STRSTR 0
42ecbf5e 11956_ACEOF
252b5132 11957
252b5132 11958
502bdb00
JW
11959fi
11960echo "$as_me:$LINENO: checking whether free is declared" >&5
11961echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
11962if test "${ac_cv_have_decl_free+set}" = set; then
42ecbf5e 11963 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11964else
42ecbf5e
DJ
11965 cat >conftest.$ac_ext <<_ACEOF
11966/* confdefs.h. */
11967_ACEOF
11968cat confdefs.h >>conftest.$ac_ext
11969cat >>conftest.$ac_ext <<_ACEOF
11970/* end confdefs.h. */
502bdb00 11971$ac_includes_default
42ecbf5e
DJ
11972int
11973main ()
11974{
502bdb00
JW
11975#ifndef free
11976 char *p = (char *) free;
11977#endif
11978
42ecbf5e
DJ
11979 ;
11980 return 0;
11981}
11982_ACEOF
11983rm -f conftest.$ac_objext
11984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
502bdb00
JW
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
42ecbf5e
DJ
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
502bdb00 12005 ac_cv_have_decl_free=yes
252b5132 12006else
42ecbf5e
DJ
12007 echo "$as_me: failed program was:" >&5
12008sed 's/^/| /' conftest.$ac_ext >&5
12009
502bdb00 12010ac_cv_have_decl_free=no
252b5132 12011fi
42ecbf5e 12012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12013fi
502bdb00
JW
12014echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12015echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12016if test $ac_cv_have_decl_free = yes; then
252b5132 12017
502bdb00
JW
12018cat >>confdefs.h <<_ACEOF
12019#define HAVE_DECL_FREE 1
12020_ACEOF
42ecbf5e 12021
502bdb00
JW
12022
12023else
12024 cat >>confdefs.h <<_ACEOF
12025#define HAVE_DECL_FREE 0
42ecbf5e 12026_ACEOF
252b5132 12027
252b5132 12028
502bdb00
JW
12029fi
12030echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12031echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12032if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 12033 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12034else
42ecbf5e
DJ
12035 cat >conftest.$ac_ext <<_ACEOF
12036/* confdefs.h. */
12037_ACEOF
12038cat confdefs.h >>conftest.$ac_ext
12039cat >>conftest.$ac_ext <<_ACEOF
12040/* end confdefs.h. */
502bdb00 12041$ac_includes_default
42ecbf5e
DJ
12042int
12043main ()
12044{
502bdb00
JW
12045#ifndef sbrk
12046 char *p = (char *) sbrk;
12047#endif
12048
42ecbf5e
DJ
12049 ;
12050 return 0;
12051}
12052_ACEOF
12053rm -f conftest.$ac_objext
12054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12055 (eval $ac_compile) 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
502bdb00
JW
12062 { ac_try='test -z "$ac_c_werror_flag"
12063 || test ! -s conftest.err'
42ecbf5e
DJ
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; } &&
12069 { ac_try='test -s conftest.$ac_objext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
502bdb00 12075 ac_cv_have_decl_sbrk=yes
252b5132 12076else
42ecbf5e
DJ
12077 echo "$as_me: failed program was:" >&5
12078sed 's/^/| /' conftest.$ac_ext >&5
12079
502bdb00 12080ac_cv_have_decl_sbrk=no
252b5132 12081fi
42ecbf5e 12082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12083fi
502bdb00
JW
12084echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12085echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12086if test $ac_cv_have_decl_sbrk = yes; then
12087
12088cat >>confdefs.h <<_ACEOF
12089#define HAVE_DECL_SBRK 1
12090_ACEOF
252b5132 12091
42ecbf5e 12092
502bdb00
JW
12093else
12094 cat >>confdefs.h <<_ACEOF
12095#define HAVE_DECL_SBRK 0
42ecbf5e 12096_ACEOF
252b5132 12097
252b5132 12098
502bdb00
JW
12099fi
12100echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12101echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12102if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 12103 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12104else
42ecbf5e
DJ
12105 cat >conftest.$ac_ext <<_ACEOF
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
502bdb00 12111$ac_includes_default
42ecbf5e
DJ
12112int
12113main ()
12114{
502bdb00
JW
12115#ifndef getenv
12116 char *p = (char *) getenv;
12117#endif
12118
42ecbf5e
DJ
12119 ;
12120 return 0;
12121}
12122_ACEOF
12123rm -f conftest.$ac_objext
12124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
502bdb00
JW
12132 { ac_try='test -z "$ac_c_werror_flag"
12133 || test ! -s conftest.err'
42ecbf5e
DJ
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
502bdb00 12145 ac_cv_have_decl_getenv=yes
252b5132 12146else
42ecbf5e
DJ
12147 echo "$as_me: failed program was:" >&5
12148sed 's/^/| /' conftest.$ac_ext >&5
12149
502bdb00 12150ac_cv_have_decl_getenv=no
252b5132 12151fi
42ecbf5e 12152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12153fi
502bdb00
JW
12154echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12155echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12156if test $ac_cv_have_decl_getenv = yes; then
252b5132 12157
502bdb00
JW
12158cat >>confdefs.h <<_ACEOF
12159#define HAVE_DECL_GETENV 1
12160_ACEOF
42ecbf5e 12161
502bdb00
JW
12162
12163else
12164 cat >>confdefs.h <<_ACEOF
12165#define HAVE_DECL_GETENV 0
42ecbf5e 12166_ACEOF
252b5132 12167
252b5132 12168
502bdb00
JW
12169fi
12170echo "$as_me:$LINENO: checking whether environ is declared" >&5
12171echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12172if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 12173 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12174else
42ecbf5e
DJ
12175 cat >conftest.$ac_ext <<_ACEOF
12176/* confdefs.h. */
12177_ACEOF
12178cat confdefs.h >>conftest.$ac_ext
12179cat >>conftest.$ac_ext <<_ACEOF
12180/* end confdefs.h. */
502bdb00 12181$ac_includes_default
42ecbf5e
DJ
12182int
12183main ()
12184{
502bdb00
JW
12185#ifndef environ
12186 char *p = (char *) environ;
12187#endif
12188
42ecbf5e
DJ
12189 ;
12190 return 0;
12191}
12192_ACEOF
12193rm -f conftest.$ac_objext
12194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
502bdb00
JW
12202 { ac_try='test -z "$ac_c_werror_flag"
12203 || test ! -s conftest.err'
42ecbf5e
DJ
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest.$ac_objext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
502bdb00 12215 ac_cv_have_decl_environ=yes
252b5132 12216else
42ecbf5e
DJ
12217 echo "$as_me: failed program was:" >&5
12218sed 's/^/| /' conftest.$ac_ext >&5
12219
502bdb00 12220ac_cv_have_decl_environ=no
252b5132 12221fi
42ecbf5e 12222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12223fi
502bdb00
JW
12224echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12225echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12226if test $ac_cv_have_decl_environ = yes; then
252b5132 12227
502bdb00
JW
12228cat >>confdefs.h <<_ACEOF
12229#define HAVE_DECL_ENVIRON 1
12230_ACEOF
42ecbf5e 12231
502bdb00
JW
12232
12233else
12234 cat >>confdefs.h <<_ACEOF
12235#define HAVE_DECL_ENVIRON 0
42ecbf5e 12236_ACEOF
252b5132 12237
502bdb00 12238
252b5132
RH
12239fi
12240
12241
502bdb00 12242
597e2591
ILT
12243# When converting linker scripts into strings for use in emulation
12244# files, use astring.sed if the compiler supports ANSI string
12245# concatenation, or ostring.sed otherwise. This is to support the
12246# broken Microsoft MSVC compiler, which limits the length of string
12247# constants, while still supporting pre-ANSI compilers which do not
12248# support string concatenation.
42ecbf5e
DJ
12249echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12250echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12251if test "${ld_cv_string_concatenation+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 cat >conftest.$ac_ext <<_ACEOF
12255/* confdefs.h. */
12256_ACEOF
12257cat confdefs.h >>conftest.$ac_ext
12258cat >>conftest.$ac_ext <<_ACEOF
12259/* end confdefs.h. */
597e2591 12260
42ecbf5e
DJ
12261int
12262main ()
12263{
597e2591 12264char *a = "a" "a";
42ecbf5e
DJ
12265 ;
12266 return 0;
12267}
12268_ACEOF
12269rm -f conftest.$ac_objext
12270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12271 (eval $ac_compile) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
502bdb00
JW
12278 { ac_try='test -z "$ac_c_werror_flag"
12279 || test ! -s conftest.err'
42ecbf5e
DJ
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest.$ac_objext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
e4dabd0e 12291 ld_cv_string_concatenation=yes
597e2591 12292else
42ecbf5e
DJ
12293 echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
12296ld_cv_string_concatenation=no
597e2591 12297fi
42ecbf5e 12298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
12299fi
12300
42ecbf5e
DJ
12301echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12302echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 12303if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
12304 STRINGIFY=astring.sed
12305else
12306 STRINGIFY=ostring.sed
12307fi
12308
12309
252b5132
RH
12310# target-specific stuff:
12311
12312all_targets=
12313EMUL=
12314all_emuls=
12315all_emul_extras=
ba2be581 12316all_libpath=
252b5132
RH
12317
12318rm -f tdirs
12319
12320for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12321do
12322 if test "$targ_alias" = "all"; then
12323 all_targets=true
12324 else
12325 # Canonicalize the secondary target names.
42ecbf5e 12326 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
12327 if test -n "$result"; then
12328 targ=$result
12329 else
12330 targ=$targ_alias
12331 fi
12332
12333 . ${srcdir}/configure.tgt
12334
12335 if test "$targ" = "$target"; then
12336 EMUL=$targ_emul
12337 fi
12338
314e9a4e
L
12339 if test x${want64} = xfalse; then
12340 . ${srcdir}/../bfd/config.bfd
12341 fi
12342
534d3119
L
12343 if test x${want64} = xtrue; then
12344 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12345 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12346 fi
12347
3336653a 12348 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
12349 case " $all_emuls " in
12350 *" e${i}.o "*) ;;
12351 *)
12352 all_emuls="$all_emuls e${i}.o"
12353 eval result=\$tdir_$i
12354 test -z "$result" && result=$targ_alias
12355 echo tdir_$i=$result >> tdirs
12356 ;;
d15b04bd
L
12357 esac
12358 done
3336653a 12359
42ecbf5e
DJ
12360 for i in $targ_emul $targ_extra_libpath; do
12361 case " $all_libpath " in
12362 *" ${i} "*) ;;
12363 *)
12364 if test -z "$all_libpath"; then
12365 all_libpath=${i}
12366 else
12367 all_libpath="$all_libpath ${i}"
12368 fi
12369 ;;
12370 esac
12371 done
12372
12373 for i in $targ_extra_ofiles; do
12374 case " $all_emul_extras " in
12375 *" ${i} "*) ;;
12376 *)
12377 all_emul_extras="$all_emul_extras ${i}"
12378 ;;
12379 esac
12380 done
12381 fi
12382done
12383
12384
12385
12386TDIRS=tdirs
12387
12388
12389if test x${all_targets} = xtrue; then
314e9a4e
L
12390 if test x${want64} = xfalse; then
12391 echo "$as_me:$LINENO: checking for long" >&5
12392echo $ECHO_N "checking for long... $ECHO_C" >&6
12393if test "${ac_cv_type_long+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395else
12396 cat >conftest.$ac_ext <<_ACEOF
12397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h. */
12402$ac_includes_default
12403int
12404main ()
12405{
12406if ((long *) 0)
12407 return 0;
12408if (sizeof (long))
12409 return 0;
12410 ;
12411 return 0;
12412}
12413_ACEOF
12414rm -f conftest.$ac_objext
12415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12416 (eval $ac_compile) 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -z "$ac_c_werror_flag"
12424 || test ! -s conftest.err'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try='test -s conftest.$ac_objext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_cv_type_long=yes
12437else
12438 echo "$as_me: failed program was:" >&5
12439sed 's/^/| /' conftest.$ac_ext >&5
12440
12441ac_cv_type_long=no
12442fi
12443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12444fi
12445echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12446echo "${ECHO_T}$ac_cv_type_long" >&6
12447
12448echo "$as_me:$LINENO: checking size of long" >&5
12449echo $ECHO_N "checking size of long... $ECHO_C" >&6
12450if test "${ac_cv_sizeof_long+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12452else
12453 if test "$ac_cv_type_long" = yes; then
12454 # The cast to unsigned long works around a bug in the HP C Compiler
12455 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12456 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12457 # This bug is HP SR number 8606223364.
12458 if test "$cross_compiling" = yes; then
12459 # Depending upon the size, compute the lo and hi bounds.
12460cat >conftest.$ac_ext <<_ACEOF
12461/* confdefs.h. */
12462_ACEOF
12463cat confdefs.h >>conftest.$ac_ext
12464cat >>conftest.$ac_ext <<_ACEOF
12465/* end confdefs.h. */
12466$ac_includes_default
12467int
12468main ()
12469{
12470static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12471test_array [0] = 0
12472
12473 ;
12474 return 0;
12475}
12476_ACEOF
12477rm -f conftest.$ac_objext
12478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag"
12487 || test ! -s conftest.err'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest.$ac_objext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_lo=0 ac_mid=0
12500 while :; do
12501 cat >conftest.$ac_ext <<_ACEOF
12502/* confdefs.h. */
12503_ACEOF
12504cat confdefs.h >>conftest.$ac_ext
12505cat >>conftest.$ac_ext <<_ACEOF
12506/* end confdefs.h. */
12507$ac_includes_default
12508int
12509main ()
12510{
12511static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12512test_array [0] = 0
12513
12514 ;
12515 return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext
12519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520 (eval $ac_compile) 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag"
12528 || test ! -s conftest.err'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; } &&
12534 { ac_try='test -s conftest.$ac_objext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_hi=$ac_mid; break
12541else
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545ac_lo=`expr $ac_mid + 1`
12546 if test $ac_lo -le $ac_mid; then
12547 ac_lo= ac_hi=
12548 break
12549 fi
12550 ac_mid=`expr 2 '*' $ac_mid + 1`
12551fi
12552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12553 done
12554else
12555 echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558cat >conftest.$ac_ext <<_ACEOF
12559/* confdefs.h. */
12560_ACEOF
12561cat confdefs.h >>conftest.$ac_ext
12562cat >>conftest.$ac_ext <<_ACEOF
12563/* end confdefs.h. */
12564$ac_includes_default
12565int
12566main ()
12567{
12568static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12569test_array [0] = 0
12570
12571 ;
12572 return 0;
12573}
12574_ACEOF
12575rm -f conftest.$ac_objext
12576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12577 (eval $ac_compile) 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -z "$ac_c_werror_flag"
12585 || test ! -s conftest.err'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; } &&
12591 { ac_try='test -s conftest.$ac_objext'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_hi=-1 ac_mid=-1
12598 while :; do
12599 cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
12605$ac_includes_default
12606int
12607main ()
12608{
12609static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12610test_array [0] = 0
12611
12612 ;
12613 return 0;
12614}
12615_ACEOF
12616rm -f conftest.$ac_objext
12617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_lo=$ac_mid; break
12639else
12640 echo "$as_me: failed program was:" >&5
12641sed 's/^/| /' conftest.$ac_ext >&5
12642
12643ac_hi=`expr '(' $ac_mid ')' - 1`
12644 if test $ac_mid -le $ac_hi; then
12645 ac_lo= ac_hi=
12646 break
12647 fi
12648 ac_mid=`expr 2 '*' $ac_mid`
12649fi
12650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12651 done
12652else
12653 echo "$as_me: failed program was:" >&5
12654sed 's/^/| /' conftest.$ac_ext >&5
12655
12656ac_lo= ac_hi=
12657fi
12658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12659fi
12660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12661# Binary search between lo and hi bounds.
12662while test "x$ac_lo" != "x$ac_hi"; do
12663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12664 cat >conftest.$ac_ext <<_ACEOF
12665/* confdefs.h. */
12666_ACEOF
12667cat confdefs.h >>conftest.$ac_ext
12668cat >>conftest.$ac_ext <<_ACEOF
12669/* end confdefs.h. */
12670$ac_includes_default
12671int
12672main ()
12673{
12674static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12675test_array [0] = 0
12676
12677 ;
12678 return 0;
12679}
12680_ACEOF
12681rm -f conftest.$ac_objext
12682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>conftest.er1
12684 ac_status=$?
12685 grep -v '^ *+' conftest.er1 >conftest.err
12686 rm -f conftest.er1
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -z "$ac_c_werror_flag"
12691 || test ! -s conftest.err'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_hi=$ac_mid
12704else
12705 echo "$as_me: failed program was:" >&5
12706sed 's/^/| /' conftest.$ac_ext >&5
12707
12708ac_lo=`expr '(' $ac_mid ')' + 1`
12709fi
12710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711done
12712case $ac_lo in
12713?*) ac_cv_sizeof_long=$ac_lo;;
12714'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12715See \`config.log' for more details." >&5
12716echo "$as_me: error: cannot compute sizeof (long), 77
12717See \`config.log' for more details." >&2;}
12718 { (exit 1); exit 1; }; } ;;
12719esac
12720else
12721 if test "$cross_compiling" = yes; then
12722 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12723See \`config.log' for more details." >&5
12724echo "$as_me: error: cannot run test program while cross compiling
12725See \`config.log' for more details." >&2;}
12726 { (exit 1); exit 1; }; }
12727else
12728 cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
12734$ac_includes_default
12735long longval () { return (long) (sizeof (long)); }
12736unsigned long ulongval () { return (long) (sizeof (long)); }
12737#include <stdio.h>
12738#include <stdlib.h>
12739int
12740main ()
12741{
12742
12743 FILE *f = fopen ("conftest.val", "w");
12744 if (! f)
12745 exit (1);
12746 if (((long) (sizeof (long))) < 0)
12747 {
12748 long i = longval ();
12749 if (i != ((long) (sizeof (long))))
12750 exit (1);
12751 fprintf (f, "%ld\n", i);
12752 }
12753 else
12754 {
12755 unsigned long i = ulongval ();
12756 if (i != ((long) (sizeof (long))))
12757 exit (1);
12758 fprintf (f, "%lu\n", i);
12759 }
12760 exit (ferror (f) || fclose (f) != 0);
12761
12762 ;
12763 return 0;
12764}
12765_ACEOF
12766rm -f conftest$ac_exeext
12767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_cv_sizeof_long=`cat conftest.val`
12778else
12779 echo "$as_me: program exited with status $ac_status" >&5
12780echo "$as_me: failed program was:" >&5
12781sed 's/^/| /' conftest.$ac_ext >&5
12782
12783( exit $ac_status )
12784{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12785See \`config.log' for more details." >&5
12786echo "$as_me: error: cannot compute sizeof (long), 77
12787See \`config.log' for more details." >&2;}
12788 { (exit 1); exit 1; }; }
12789fi
12790rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12791fi
12792fi
12793rm -f conftest.val
12794else
12795 ac_cv_sizeof_long=0
12796fi
12797fi
12798echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12799echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12800cat >>confdefs.h <<_ACEOF
12801#define SIZEOF_LONG $ac_cv_sizeof_long
12802_ACEOF
12803
12804
12805 if test "x${ac_cv_sizeof_long}" = "x8"; then
12806 want64=true
12807 fi
12808 fi
42ecbf5e
DJ
12809 if test x${want64} = xtrue; then
12810 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12811 else
12812 EMULATION_OFILES='$(ALL_EMULATIONS)'
12813 fi
12814 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12815else
12816 EMULATION_OFILES=$all_emuls
12817 EMUL_EXTRA_OFILES=$all_emul_extras
12818fi
12819
12820
12821
12822
12823EMULATION_LIBPATH=$all_libpath
12824
12825
12826if test x${enable_static} = xno; then
12827 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12828else
12829 TESTBFDLIB="../bfd/.libs/libbfd.a"
12830fi
12831
12832
12833target_vendor=${target_vendor=$host_vendor}
12834case "$target_vendor" in
12835 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12836 *) EXTRA_SHLIB_EXTENSION= ;;
12837esac
12838
12839case "$target_os" in
12840 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12841esac
12842
12843if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12844
12845cat >>confdefs.h <<_ACEOF
12846#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12847_ACEOF
12848
12849fi
12850
108a6f8e
CD
12851
12852
12853
12854
42ecbf5e 12855 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
12856cat >confcache <<\_ACEOF
12857# This file is a shell script that caches the results of configure
12858# tests run on this system so they can be shared between configure
12859# scripts and configure runs, see configure's option --config-cache.
12860# It is not useful on other systems. If it contains results you don't
12861# want to keep, you may remove or edit it.
12862#
12863# config.status only pays attention to the cache file if you give it
12864# the --recheck option to rerun configure.
12865#
12866# `ac_cv_env_foo' variables (set or unset) will be overridden when
12867# loading this file, other *unset* `ac_cv_foo' will be assigned the
12868# following values.
12869
12870_ACEOF
12871
12872# The following way of writing the cache mishandles newlines in values,
12873# but we know of no workaround that is simple, portable, and efficient.
12874# So, don't put newlines in cache variables' values.
12875# Ultrix sh set writes to stderr and can't be redirected directly,
12876# and sets the high bit in the cache file unless we assign to the vars.
12877{
12878 (set) 2>&1 |
12879 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12880 *ac_space=\ *)
12881 # `set' does not quote correctly, so add quotes (double-quote
12882 # substitution turns \\\\ into \\, and sed turns \\ into \).
12883 sed -n \
12884 "s/'/'\\\\''/g;
12885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12886 ;;
12887 *)
12888 # `set' quotes correctly as required by POSIX, so do not add quotes.
12889 sed -n \
12890 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12891 ;;
12892 esac;
12893} |
12894 sed '
12895 t clear
12896 : clear
12897 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12898 t end
12899 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12900 : end' >>confcache
12901if diff $cache_file confcache >/dev/null 2>&1; then :; else
12902 if test -w $cache_file; then
12903 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12904 cat confcache >$cache_file
12905 else
12906 echo "not updating unwritable cache $cache_file"
12907 fi
12908fi
12909rm -f confcache
12910
12911test "x$prefix" = xNONE && prefix=$ac_default_prefix
12912# Let make expand exec_prefix.
12913test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12914
12915# VPATH may cause trouble with some makes, so we remove $(srcdir),
12916# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12917# trailing colons and then remove the whole line if VPATH becomes empty
12918# (actually we leave an empty line to preserve line numbers).
12919if test "x$srcdir" = x.; then
12920 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12921s/:*\$(srcdir):*/:/;
12922s/:*\${srcdir}:*/:/;
12923s/:*@srcdir@:*/:/;
12924s/^\([^=]*=[ ]*\):*/\1/;
12925s/:*$//;
12926s/^[^=]*=[ ]*$//;
12927}'
12928fi
12929
12930DEFS=-DHAVE_CONFIG_H
12931
12932ac_libobjs=
12933ac_ltlibobjs=
12934for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12935 # 1. Remove the extension, and $U if already installed.
12936 ac_i=`echo "$ac_i" |
12937 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12938 # 2. Add them.
12939 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12940 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12941done
12942LIBOBJS=$ac_libobjs
12943
12944LTLIBOBJS=$ac_ltlibobjs
12945
12946
12947if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12948 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12949Usually this means the macro was only invoked conditionally." >&5
12950echo "$as_me: error: conditional \"AMDEP\" was never defined.
12951Usually this means the macro was only invoked conditionally." >&2;}
12952 { (exit 1); exit 1; }; }
12953fi
12954if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12955 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12956Usually this means the macro was only invoked conditionally." >&5
12957echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12958Usually this means the macro was only invoked conditionally." >&2;}
12959 { (exit 1); exit 1; }; }
12960fi
12961if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12962 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12963Usually this means the macro was only invoked conditionally." >&5
12964echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12965Usually this means the macro was only invoked conditionally." >&2;}
12966 { (exit 1); exit 1; }; }
12967fi
d5fbea21
DJ
12968if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12969 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12970Usually this means the macro was only invoked conditionally." >&5
12971echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12972Usually this means the macro was only invoked conditionally." >&2;}
12973 { (exit 1); exit 1; }; }
12974fi
42ecbf5e
DJ
12975
12976: ${CONFIG_STATUS=./config.status}
12977ac_clean_files_save=$ac_clean_files
12978ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12979{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12980echo "$as_me: creating $CONFIG_STATUS" >&6;}
12981cat >$CONFIG_STATUS <<_ACEOF
12982#! $SHELL
12983# Generated by $as_me.
12984# Run this file to recreate the current configuration.
12985# Compiler output produced by configure, useful for debugging
12986# configure, is in config.log if it exists.
12987
12988debug=false
12989ac_cs_recheck=false
12990ac_cs_silent=false
12991SHELL=\${CONFIG_SHELL-$SHELL}
12992_ACEOF
12993
12994cat >>$CONFIG_STATUS <<\_ACEOF
12995## --------------------- ##
12996## M4sh Initialization. ##
12997## --------------------- ##
12998
12999# Be Bourne compatible
13000if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13001 emulate sh
13002 NULLCMD=:
13003 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13004 # is contrary to our usage. Disable this feature.
13005 alias -g '${1+"$@"}'='"$@"'
13006elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13007 set -o posix
13008fi
13009DUALCASE=1; export DUALCASE # for MKS sh
13010
13011# Support unset when possible.
13012if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13013 as_unset=unset
13014else
13015 as_unset=false
13016fi
13017
13018
13019# Work around bugs in pre-3.0 UWIN ksh.
13020$as_unset ENV MAIL MAILPATH
13021PS1='$ '
13022PS2='> '
13023PS4='+ '
13024
13025# NLS nuisances.
13026for as_var in \
13027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13029 LC_TELEPHONE LC_TIME
13030do
13031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13032 eval $as_var=C; export $as_var
13033 else
13034 $as_unset $as_var
13035 fi
13036done
13037
13038# Required to use basename.
13039if expr a : '\(a\)' >/dev/null 2>&1; then
13040 as_expr=expr
13041else
13042 as_expr=false
13043fi
13044
13045if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13046 as_basename=basename
13047else
13048 as_basename=false
13049fi
13050
13051
13052# Name of the executable.
13053as_me=`$as_basename "$0" ||
13054$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13055 X"$0" : 'X\(//\)$' \| \
13056 X"$0" : 'X\(/\)$' \| \
13057 . : '\(.\)' 2>/dev/null ||
13058echo X/"$0" |
13059 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13060 /^X\/\(\/\/\)$/{ s//\1/; q; }
13061 /^X\/\(\/\).*/{ s//\1/; q; }
13062 s/.*/./; q'`
13063
13064
13065# PATH needs CR, and LINENO needs CR and PATH.
13066# Avoid depending upon Character Ranges.
13067as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13068as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13069as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13070as_cr_digits='0123456789'
13071as_cr_alnum=$as_cr_Letters$as_cr_digits
13072
13073# The user is always right.
13074if test "${PATH_SEPARATOR+set}" != set; then
13075 echo "#! /bin/sh" >conf$$.sh
13076 echo "exit 0" >>conf$$.sh
13077 chmod +x conf$$.sh
13078 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13079 PATH_SEPARATOR=';'
13080 else
13081 PATH_SEPARATOR=:
13082 fi
13083 rm -f conf$$.sh
13084fi
13085
e5a52504 13086
42ecbf5e
DJ
13087 as_lineno_1=$LINENO
13088 as_lineno_2=$LINENO
13089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13090 test "x$as_lineno_1" != "x$as_lineno_2" &&
13091 test "x$as_lineno_3" = "x$as_lineno_2" || {
13092 # Find who we are. Look in the path if we contain no path at all
13093 # relative or not.
13094 case $0 in
13095 *[\\/]* ) as_myself=$0 ;;
13096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097for as_dir in $PATH
13098do
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13102done
13103
13104 ;;
13105 esac
13106 # We did not find ourselves, most probably we were run as `sh COMMAND'
13107 # in which case we are not to be found in the path.
13108 if test "x$as_myself" = x; then
13109 as_myself=$0
13110 fi
13111 if test ! -f "$as_myself"; then
13112 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13113echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13114 { (exit 1); exit 1; }; }
252b5132 13115 fi
42ecbf5e
DJ
13116 case $CONFIG_SHELL in
13117 '')
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13120do
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for as_base in sh bash ksh sh5; do
13124 case $as_dir in
13125 /*)
13126 if ("$as_dir/$as_base" -c '
13127 as_lineno_1=$LINENO
13128 as_lineno_2=$LINENO
13129 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13130 test "x$as_lineno_1" != "x$as_lineno_2" &&
13131 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13132 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13133 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13134 CONFIG_SHELL=$as_dir/$as_base
13135 export CONFIG_SHELL
13136 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13137 fi;;
13138 esac
13139 done
252b5132 13140done
42ecbf5e
DJ
13141;;
13142 esac
252b5132 13143
42ecbf5e
DJ
13144 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13145 # uniformly replaced by the line number. The first 'sed' inserts a
13146 # line-number line before each line; the second 'sed' does the real
13147 # work. The second script uses 'N' to pair each line-number line
13148 # with the numbered line, and appends trailing '-' during
13149 # substitution so that $LINENO is not a special case at line end.
13150 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13151 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13152 sed '=' <$as_myself |
13153 sed '
13154 N
13155 s,$,-,
13156 : loop
13157 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13158 t loop
13159 s,-$,,
13160 s,^['$as_cr_digits']*\n,,
13161 ' >$as_me.lineno &&
13162 chmod +x $as_me.lineno ||
13163 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13164echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13165 { (exit 1); exit 1; }; }
13166
13167 # Don't try to exec as it changes $[0], causing all sort of problems
13168 # (the dirname of $[0] is not the place where we might find the
13169 # original and so on. Autoconf is especially sensible to this).
13170 . ./$as_me.lineno
13171 # Exit status is that of the last command.
13172 exit
13173}
252b5132
RH
13174
13175
42ecbf5e
DJ
13176case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13177 *c*,-n*) ECHO_N= ECHO_C='
13178' ECHO_T=' ' ;;
13179 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13180 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13181esac
252b5132 13182
42ecbf5e
DJ
13183if expr a : '\(a\)' >/dev/null 2>&1; then
13184 as_expr=expr
13185else
13186 as_expr=false
13187fi
252b5132 13188
42ecbf5e
DJ
13189rm -f conf$$ conf$$.exe conf$$.file
13190echo >conf$$.file
13191if ln -s conf$$.file conf$$ 2>/dev/null; then
13192 # We could just check for DJGPP; but this test a) works b) is more generic
13193 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13194 if test -f conf$$.exe; then
13195 # Don't use ln at all; we don't have any links
13196 as_ln_s='cp -p'
252b5132 13197 else
42ecbf5e 13198 as_ln_s='ln -s'
252b5132 13199 fi
42ecbf5e
DJ
13200elif ln conf$$.file conf$$ 2>/dev/null; then
13201 as_ln_s=ln
e5a52504 13202else
42ecbf5e 13203 as_ln_s='cp -p'
e5a52504 13204fi
42ecbf5e 13205rm -f conf$$ conf$$.exe conf$$.file
252b5132 13206
42ecbf5e
DJ
13207if mkdir -p . 2>/dev/null; then
13208 as_mkdir_p=:
13209else
13210 test -d ./-p && rmdir ./-p
13211 as_mkdir_p=false
13212fi
252b5132 13213
42ecbf5e 13214as_executable_p="test -f"
252b5132 13215
42ecbf5e
DJ
13216# Sed expression to map a string onto a valid CPP name.
13217as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13218
42ecbf5e
DJ
13219# Sed expression to map a string onto a valid variable name.
13220as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13221
e5a52504 13222
42ecbf5e
DJ
13223# IFS
13224# We need space, tab and new line, in precisely that order.
13225as_nl='
13226'
13227IFS=" $as_nl"
e5a52504 13228
42ecbf5e
DJ
13229# CDPATH.
13230$as_unset CDPATH
e5a52504 13231
42ecbf5e 13232exec 6>&1
e5a52504 13233
42ecbf5e
DJ
13234# Open the log real soon, to keep \$[0] and so on meaningful, and to
13235# report actual input values of CONFIG_FILES etc. instead of their
13236# values after options handling. Logging --version etc. is OK.
13237exec 5>>config.log
13238{
13239 echo
13240 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13241## Running $as_me. ##
13242_ASBOX
13243} >&5
13244cat >&5 <<_CSEOF
e5a52504 13245
42ecbf5e
DJ
13246This file was extended by $as_me, which was
13247generated by GNU Autoconf 2.59. Invocation command line was
13248
13249 CONFIG_FILES = $CONFIG_FILES
13250 CONFIG_HEADERS = $CONFIG_HEADERS
13251 CONFIG_LINKS = $CONFIG_LINKS
13252 CONFIG_COMMANDS = $CONFIG_COMMANDS
13253 $ $0 $@
e5a52504 13254
42ecbf5e
DJ
13255_CSEOF
13256echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13257echo >&5
13258_ACEOF
13259
13260# Files that config.status was made for.
13261if test -n "$ac_config_files"; then
13262 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
d15b04bd 13263fi
e5a52504 13264
42ecbf5e
DJ
13265if test -n "$ac_config_headers"; then
13266 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13267fi
13268
13269if test -n "$ac_config_links"; then
13270 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13271fi
13272
13273if test -n "$ac_config_commands"; then
13274 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13275fi
13276
13277cat >>$CONFIG_STATUS <<\_ACEOF
13278
13279ac_cs_usage="\
13280\`$as_me' instantiates files from templates according to the
13281current configuration.
13282
13283Usage: $0 [OPTIONS] [FILE]...
13284
13285 -h, --help print this help, then exit
13286 -V, --version print version number, then exit
13287 -q, --quiet do not print progress messages
13288 -d, --debug don't remove temporary files
13289 --recheck update $as_me by reconfiguring in the same conditions
13290 --file=FILE[:TEMPLATE]
13291 instantiate the configuration file FILE
13292 --header=FILE[:TEMPLATE]
13293 instantiate the configuration header FILE
13294
13295Configuration files:
13296$config_files
13297
13298Configuration headers:
13299$config_headers
13300
13301Configuration commands:
13302$config_commands
13303
13304Report bugs to <bug-autoconf@gnu.org>."
13305_ACEOF
13306
13307cat >>$CONFIG_STATUS <<_ACEOF
13308ac_cs_version="\\
13309config.status
13310configured by $0, generated by GNU Autoconf 2.59,
13311 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13312
13313Copyright (C) 2003 Free Software Foundation, Inc.
13314This config.status script is free software; the Free Software Foundation
13315gives unlimited permission to copy, distribute and modify it."
13316srcdir=$srcdir
13317INSTALL="$INSTALL"
13318_ACEOF
13319
13320cat >>$CONFIG_STATUS <<\_ACEOF
13321# If no file are specified by the user, then we need to provide default
13322# value. By we need to know if files were specified by the user.
13323ac_need_defaults=:
13324while test $# != 0
13325do
13326 case $1 in
13327 --*=*)
13328 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13329 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13330 ac_shift=:
252b5132 13331 ;;
42ecbf5e
DJ
13332 -*)
13333 ac_option=$1
13334 ac_optarg=$2
13335 ac_shift=shift
252b5132 13336 ;;
42ecbf5e
DJ
13337 *) # This is not an option, so the user has probably given explicit
13338 # arguments.
13339 ac_option=$1
13340 ac_need_defaults=false;;
13341 esac
252b5132 13342
42ecbf5e
DJ
13343 case $ac_option in
13344 # Handling of the options.
13345_ACEOF
13346cat >>$CONFIG_STATUS <<\_ACEOF
13347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13348 ac_cs_recheck=: ;;
13349 --version | --vers* | -V )
13350 echo "$ac_cs_version"; exit 0 ;;
13351 --he | --h)
13352 # Conflict between --help and --header
13353 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13354Try \`$0 --help' for more information." >&5
13355echo "$as_me: error: ambiguous option: $1
13356Try \`$0 --help' for more information." >&2;}
13357 { (exit 1); exit 1; }; };;
13358 --help | --hel | -h )
13359 echo "$ac_cs_usage"; exit 0 ;;
13360 --debug | --d* | -d )
13361 debug=: ;;
13362 --file | --fil | --fi | --f )
13363 $ac_shift
13364 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13365 ac_need_defaults=false;;
13366 --header | --heade | --head | --hea )
13367 $ac_shift
13368 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13369 ac_need_defaults=false;;
13370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13372 ac_cs_silent=: ;;
252b5132 13373
42ecbf5e
DJ
13374 # This is an error.
13375 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13376Try \`$0 --help' for more information." >&5
13377echo "$as_me: error: unrecognized option: $1
13378Try \`$0 --help' for more information." >&2;}
13379 { (exit 1); exit 1; }; } ;;
252b5132 13380
42ecbf5e 13381 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13382
42ecbf5e
DJ
13383 esac
13384 shift
13385done
d15b04bd 13386
42ecbf5e 13387ac_configure_extra_args=
e5a52504 13388
42ecbf5e
DJ
13389if $ac_cs_silent; then
13390 exec 6>/dev/null
13391 ac_configure_extra_args="$ac_configure_extra_args --silent"
13392fi
e5a52504 13393
42ecbf5e
DJ
13394_ACEOF
13395cat >>$CONFIG_STATUS <<_ACEOF
13396if \$ac_cs_recheck; then
13397 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13398 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13399fi
13400
13401_ACEOF
13402
13403cat >>$CONFIG_STATUS <<_ACEOF
252b5132 13404#
42ecbf5e 13405# INIT-COMMANDS section.
252b5132 13406#
252b5132 13407
42ecbf5e 13408AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13409
13410
13411# The HP-UX ksh and POSIX shell print the target directory to stdout
13412# if CDPATH is set.
13413(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13414
13415sed_quote_subst='$sed_quote_subst'
13416double_quote_subst='$double_quote_subst'
13417delay_variable_subst='$delay_variable_subst'
13418macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13419macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13420enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13421enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13422pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13423enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13424host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13425host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13426host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13427build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13428build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13429build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13430SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13431Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13432GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13433EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13434FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13435LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13436NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13437LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13438max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13439ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13440exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13441lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13442lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13443lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13444reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13445reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13446deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13447file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13448AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13449AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13450STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13451RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13452old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13453old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13454old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13455CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13456CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13457compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13458GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13459lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13460lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13461lt_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"`'
13462objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13463SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13464ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13465MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13466lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13467lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13468lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13469lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13470lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13471need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13472libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13473shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13474extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13475archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13476enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13477export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13478whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13479compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13480old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13481old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13482archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13483archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13484module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13485module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13486with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13487allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13488no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13489hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13490hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13491hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13492hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13493hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13494hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13495hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13496hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13497inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13498link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13499fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13500always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13501export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13502exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13503include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13504prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13505file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13506variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13507need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13508need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13509version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13510runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13511shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13512shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13513libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13514library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13515soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13516postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13517postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13518finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13519finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13520hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13521sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13522sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13523hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13524enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13525enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13526enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13527old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13528striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13529
13530LTCC='$LTCC'
13531LTCFLAGS='$LTCFLAGS'
13532compiler='$compiler_DEFAULT'
13533
13534# Quote evaled strings.
13535for var in SED \
13536GREP \
13537EGREP \
13538FGREP \
13539LD \
13540NM \
13541LN_S \
13542lt_SP2NL \
13543lt_NL2SP \
13544reload_flag \
13545deplibs_check_method \
13546file_magic_cmd \
13547AR \
13548AR_FLAGS \
13549STRIP \
13550RANLIB \
13551CC \
13552CFLAGS \
13553compiler \
13554lt_cv_sys_global_symbol_pipe \
13555lt_cv_sys_global_symbol_to_cdecl \
13556lt_cv_sys_global_symbol_to_c_name_address \
13557SHELL \
13558ECHO \
13559lt_prog_compiler_no_builtin_flag \
13560lt_prog_compiler_wl \
13561lt_prog_compiler_pic \
13562lt_prog_compiler_static \
13563lt_cv_prog_compiler_c_o \
13564need_locks \
13565shrext_cmds \
13566export_dynamic_flag_spec \
13567whole_archive_flag_spec \
13568compiler_needs_object \
13569with_gnu_ld \
13570allow_undefined_flag \
13571no_undefined_flag \
13572hardcode_libdir_flag_spec \
13573hardcode_libdir_flag_spec_ld \
13574hardcode_libdir_separator \
13575fix_srcfile_path \
13576exclude_expsyms \
13577include_expsyms \
13578file_list_spec \
13579variables_saved_for_relink \
13580libname_spec \
13581library_names_spec \
13582soname_spec \
13583finish_eval \
13584old_striplib \
13585striplib; do
13586 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13587 *[\\\\\\\`\\"\\\$]*)
13588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13589 ;;
13590 *)
13591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13592 ;;
13593 esac
13594done
13595
13596# Double-quote double-evaled strings.
13597for var in reload_cmds \
13598old_postinstall_cmds \
13599old_postuninstall_cmds \
13600old_archive_cmds \
13601extract_expsyms_cmds \
13602old_archive_from_new_cmds \
13603old_archive_from_expsyms_cmds \
13604archive_cmds \
13605archive_expsym_cmds \
13606module_cmds \
13607module_expsym_cmds \
13608export_symbols_cmds \
13609prelink_cmds \
13610postinstall_cmds \
13611postuninstall_cmds \
13612finish_cmds \
13613sys_lib_search_path_spec \
13614sys_lib_dlsearch_path_spec; do
13615 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13616 *[\\\\\\\`\\"\\\$]*)
13617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13618 ;;
13619 *)
13620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13621 ;;
13622 esac
13623done
13624
13625# Fix-up fallback echo if it was mangled by the above quoting rules.
13626case \$lt_ECHO in
13627*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13628 ;;
13629esac
13630
13631ac_aux_dir='$ac_aux_dir'
13632xsi_shell='$xsi_shell'
13633lt_shell_append='$lt_shell_append'
13634
13635# See if we are running on zsh, and set the options which allow our
13636# commands through without removal of \ escapes INIT.
13637if test -n "\${ZSH_VERSION+set}" ; then
13638 setopt NO_GLOB_SUBST
13639fi
13640
13641
13642 PACKAGE='$PACKAGE'
13643 VERSION='$VERSION'
13644 TIMESTAMP='$TIMESTAMP'
13645 RM='$RM'
13646 ofile='$ofile'
13647
13648
13649
20e95c23
DJ
13650# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13651 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13652 # from automake.
13653 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13654 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13655 LINGUAS="${LINGUAS-%UNSET%}"
13656
42ecbf5e
DJ
13657
13658_ACEOF
13659
13660
13661
13662cat >>$CONFIG_STATUS <<\_ACEOF
13663for ac_config_target in $ac_config_targets
252b5132 13664do
42ecbf5e
DJ
13665 case "$ac_config_target" in
13666 # Handling of arguments.
13667 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13668 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13669 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 13670 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 13671 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
13672 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13673 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13674echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13675 { (exit 1); exit 1; }; };;
252b5132
RH
13676 esac
13677done
13678
42ecbf5e
DJ
13679# If the user did not use the arguments to specify the items to instantiate,
13680# then the envvar interface is used. Set only those that are not.
13681# We use the long form for the default assignment because of an extremely
13682# bizarre bug on SunOS 4.1.3.
13683if $ac_need_defaults; then
13684 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13685 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13686 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13687fi
13688
13689# Have a temporary directory for convenience. Make it in the build tree
13690# simply because there is no reason to put it here, and in addition,
13691# creating and moving files from /tmp can sometimes cause problems.
13692# Create a temporary directory, and hook for its removal unless debugging.
13693$debug ||
13694{
13695 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13696 trap '{ (exit 1); exit 1; }' 1 2 13 15
13697}
13698
13699# Create a (secure) tmp directory for tmp files.
e5a52504 13700
42ecbf5e
DJ
13701{
13702 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13703 test -n "$tmp" && test -d "$tmp"
13704} ||
13705{
13706 tmp=./confstat$$-$RANDOM
13707 (umask 077 && mkdir $tmp)
13708} ||
13709{
13710 echo "$me: cannot create a temporary directory in ." >&2
13711 { (exit 1); exit 1; }
13712}
e5a52504 13713
42ecbf5e 13714_ACEOF
d15b04bd 13715
42ecbf5e
DJ
13716cat >>$CONFIG_STATUS <<_ACEOF
13717
13718#
13719# CONFIG_FILES section.
13720#
13721
13722# No need to generate the scripts if there are no CONFIG_FILES.
13723# This happens for instance when ./config.status config.h
13724if test -n "\$CONFIG_FILES"; then
13725 # Protect against being on the right side of a sed subst in config.status.
13726 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13727 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13728s,@SHELL@,$SHELL,;t t
13729s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13730s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13731s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13732s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13733s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13734s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13735s,@exec_prefix@,$exec_prefix,;t t
13736s,@prefix@,$prefix,;t t
13737s,@program_transform_name@,$program_transform_name,;t t
13738s,@bindir@,$bindir,;t t
13739s,@sbindir@,$sbindir,;t t
13740s,@libexecdir@,$libexecdir,;t t
13741s,@datadir@,$datadir,;t t
13742s,@sysconfdir@,$sysconfdir,;t t
13743s,@sharedstatedir@,$sharedstatedir,;t t
13744s,@localstatedir@,$localstatedir,;t t
13745s,@libdir@,$libdir,;t t
13746s,@includedir@,$includedir,;t t
13747s,@oldincludedir@,$oldincludedir,;t t
13748s,@infodir@,$infodir,;t t
13749s,@mandir@,$mandir,;t t
13750s,@build_alias@,$build_alias,;t t
13751s,@host_alias@,$host_alias,;t t
13752s,@target_alias@,$target_alias,;t t
13753s,@DEFS@,$DEFS,;t t
13754s,@ECHO_C@,$ECHO_C,;t t
13755s,@ECHO_N@,$ECHO_N,;t t
13756s,@ECHO_T@,$ECHO_T,;t t
13757s,@LIBS@,$LIBS,;t t
13758s,@build@,$build,;t t
13759s,@build_cpu@,$build_cpu,;t t
13760s,@build_vendor@,$build_vendor,;t t
13761s,@build_os@,$build_os,;t t
13762s,@host@,$host,;t t
13763s,@host_cpu@,$host_cpu,;t t
13764s,@host_vendor@,$host_vendor,;t t
13765s,@host_os@,$host_os,;t t
13766s,@target@,$target,;t t
13767s,@target_cpu@,$target_cpu,;t t
13768s,@target_vendor@,$target_vendor,;t t
13769s,@target_os@,$target_os,;t t
13770s,@CC@,$CC,;t t
13771s,@CFLAGS@,$CFLAGS,;t t
13772s,@LDFLAGS@,$LDFLAGS,;t t
13773s,@CPPFLAGS@,$CPPFLAGS,;t t
13774s,@ac_ct_CC@,$ac_ct_CC,;t t
13775s,@EXEEXT@,$EXEEXT,;t t
13776s,@OBJEXT@,$OBJEXT,;t t
13777s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13778s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13779s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13780s,@CYGPATH_W@,$CYGPATH_W,;t t
13781s,@PACKAGE@,$PACKAGE,;t t
13782s,@VERSION@,$VERSION,;t t
13783s,@ACLOCAL@,$ACLOCAL,;t t
13784s,@AUTOCONF@,$AUTOCONF,;t t
13785s,@AUTOMAKE@,$AUTOMAKE,;t t
13786s,@AUTOHEADER@,$AUTOHEADER,;t t
13787s,@MAKEINFO@,$MAKEINFO,;t t
13788s,@install_sh@,$install_sh,;t t
13789s,@STRIP@,$STRIP,;t t
13790s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13791s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13792s,@mkdir_p@,$mkdir_p,;t t
13793s,@AWK@,$AWK,;t t
13794s,@SET_MAKE@,$SET_MAKE,;t t
13795s,@am__leading_dot@,$am__leading_dot,;t t
13796s,@AMTAR@,$AMTAR,;t t
13797s,@am__tar@,$am__tar,;t t
13798s,@am__untar@,$am__untar,;t t
13799s,@DEPDIR@,$DEPDIR,;t t
13800s,@am__include@,$am__include,;t t
13801s,@am__quote@,$am__quote,;t t
13802s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13803s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13804s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13805s,@CCDEPMODE@,$CCDEPMODE,;t t
13806s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13807s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
13808s,@LIBTOOL@,$LIBTOOL,;t t
13809s,@SED@,$SED,;t t
13810s,@EGREP@,$EGREP,;t t
13811s,@FGREP@,$FGREP,;t t
13812s,@GREP@,$GREP,;t t
13813s,@LD@,$LD,;t t
13814s,@DUMPBIN@,$DUMPBIN,;t t
13815s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13816s,@NM@,$NM,;t t
42ecbf5e 13817s,@LN_S@,$LN_S,;t t
d7040cdb
SE
13818s,@AR@,$AR,;t t
13819s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
13820s,@RANLIB@,$RANLIB,;t t
13821s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
13822s,@lt_ECHO@,$lt_ECHO,;t t
13823s,@CPP@,$CPP,;t t
42ecbf5e
DJ
13824s,@use_sysroot@,$use_sysroot,;t t
13825s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13826s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13827s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13828s,@NO_WERROR@,$NO_WERROR,;t t
42ecbf5e 13829s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13830s,@LIBINTL@,$LIBINTL,;t t
13831s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13832s,@INCINTL@,$INCINTL,;t t
42ecbf5e 13833s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13834s,@GMSGFMT@,$GMSGFMT,;t t
13835s,@POSUB@,$POSUB,;t t
42ecbf5e 13836s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 13837s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 13838s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13839s,@GENCAT@,$GENCAT,;t t
13840s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 13841s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13842s,@MSGFMT@,$MSGFMT,;t t
13843s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
13844s,@YACC@,$YACC,;t t
13845s,@LEX@,$LEX,;t t
13846s,@LEXLIB@,$LEXLIB,;t t
13847s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13848s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13849s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13850s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
13851s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13852s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e
DJ
13853s,@HDEFINES@,$HDEFINES,;t t
13854s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
13855s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
13856s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
13857s,@STRINGIFY@,$STRINGIFY,;t t
13858s,@EMUL@,$EMUL,;t t
13859s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
13860s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
13861s,@LIB_PATH@,$LIB_PATH,;t t
13862s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
13863s,@TESTBFDLIB@,$TESTBFDLIB,;t t
108a6f8e
CD
13864s,@datarootdir@,$datarootdir,;t t
13865s,@docdir@,$docdir,;t t
13866s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
13867s,@LIBOBJS@,$LIBOBJS,;t t
13868s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13869/@TDIRS@/r $TDIRS
13870s,@TDIRS@,,;t t
252b5132 13871CEOF
252b5132 13872
42ecbf5e
DJ
13873_ACEOF
13874
13875 cat >>$CONFIG_STATUS <<\_ACEOF
13876 # Split the substitutions into bite-sized pieces for seds with
13877 # small command number limits, like on Digital OSF/1 and HP-UX.
13878 ac_max_sed_lines=48
13879 ac_sed_frag=1 # Number of current file.
13880 ac_beg=1 # First line for current file.
13881 ac_end=$ac_max_sed_lines # Line after last line for current file.
13882 ac_more_lines=:
13883 ac_sed_cmds=
13884 while $ac_more_lines; do
13885 if test $ac_beg -gt 1; then
13886 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13887 else
13888 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13889 fi
13890 if test ! -s $tmp/subs.frag; then
13891 ac_more_lines=false
252b5132 13892 else
42ecbf5e
DJ
13893 # The purpose of the label and of the branching condition is to
13894 # speed up the sed processing (if there are no `@' at all, there
13895 # is no need to browse any of the substitutions).
13896 # These are the two extra sed commands mentioned above.
13897 (echo ':t
13898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13899 if test -z "$ac_sed_cmds"; then
13900 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13901 else
13902 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13903 fi
13904 ac_sed_frag=`expr $ac_sed_frag + 1`
13905 ac_beg=$ac_end
13906 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13907 fi
42ecbf5e
DJ
13908 done
13909 if test -z "$ac_sed_cmds"; then
13910 ac_sed_cmds=cat
252b5132 13911 fi
42ecbf5e 13912fi # test -n "$CONFIG_FILES"
252b5132 13913
42ecbf5e
DJ
13914_ACEOF
13915cat >>$CONFIG_STATUS <<\_ACEOF
13916for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
13918 case $ac_file in
13919 - | *:- | *:-:* ) # input from stdin
13920 cat >$tmp/stdin
13921 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13923 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13925 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13926 esac
13927
42ecbf5e
DJ
13928 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13929 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13930$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13931 X"$ac_file" : 'X\(//\)[^/]' \| \
13932 X"$ac_file" : 'X\(//\)$' \| \
13933 X"$ac_file" : 'X\(/\)' \| \
13934 . : '\(.\)' 2>/dev/null ||
13935echo X"$ac_file" |
13936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13938 /^X\(\/\/\)$/{ s//\1/; q; }
13939 /^X\(\/\).*/{ s//\1/; q; }
13940 s/.*/./; q'`
13941 { if $as_mkdir_p; then
13942 mkdir -p "$ac_dir"
d15b04bd 13943 else
42ecbf5e
DJ
13944 as_dir="$ac_dir"
13945 as_dirs=
13946 while test ! -d "$as_dir"; do
13947 as_dirs="$as_dir $as_dirs"
13948 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13949$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13950 X"$as_dir" : 'X\(//\)[^/]' \| \
13951 X"$as_dir" : 'X\(//\)$' \| \
13952 X"$as_dir" : 'X\(/\)' \| \
13953 . : '\(.\)' 2>/dev/null ||
13954echo X"$as_dir" |
13955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13957 /^X\(\/\/\)$/{ s//\1/; q; }
13958 /^X\(\/\).*/{ s//\1/; q; }
13959 s/.*/./; q'`
13960 done
13961 test ! -n "$as_dirs" || mkdir $as_dirs
13962 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13963echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13964 { (exit 1); exit 1; }; }; }
13965
13966 ac_builddir=.
13967
13968if test "$ac_dir" != .; then
13969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13970 # A "../" for each directory in $ac_dir_suffix.
13971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13972else
13973 ac_dir_suffix= ac_top_builddir=
13974fi
252b5132 13975
42ecbf5e
DJ
13976case $srcdir in
13977 .) # No --srcdir option. We are building in place.
13978 ac_srcdir=.
13979 if test -z "$ac_top_builddir"; then
13980 ac_top_srcdir=.
13981 else
13982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13983 fi ;;
13984 [\\/]* | ?:[\\/]* ) # Absolute path.
13985 ac_srcdir=$srcdir$ac_dir_suffix;
13986 ac_top_srcdir=$srcdir ;;
252b5132 13987 *) # Relative path.
42ecbf5e
DJ
13988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13990esac
13991
13992# Do not use `cd foo && pwd` to compute absolute paths, because
13993# the directories may not exist.
13994case `pwd` in
13995.) ac_abs_builddir="$ac_dir";;
13996*)
13997 case "$ac_dir" in
13998 .) ac_abs_builddir=`pwd`;;
13999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14001 esac;;
14002esac
14003case $ac_abs_builddir in
14004.) ac_abs_top_builddir=${ac_top_builddir}.;;
14005*)
14006 case ${ac_top_builddir}. in
14007 .) ac_abs_top_builddir=$ac_abs_builddir;;
14008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14010 esac;;
14011esac
14012case $ac_abs_builddir in
14013.) ac_abs_srcdir=$ac_srcdir;;
14014*)
14015 case $ac_srcdir in
14016 .) ac_abs_srcdir=$ac_abs_builddir;;
14017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14019 esac;;
14020esac
14021case $ac_abs_builddir in
14022.) ac_abs_top_srcdir=$ac_top_srcdir;;
14023*)
14024 case $ac_top_srcdir in
14025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14028 esac;;
14029esac
252b5132 14030
e5a52504 14031
42ecbf5e
DJ
14032 case $INSTALL in
14033 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14034 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 14035 esac
e5a52504 14036
502bdb00
JW
14037 if test x"$ac_file" != x-; then
14038 { echo "$as_me:$LINENO: creating $ac_file" >&5
14039echo "$as_me: creating $ac_file" >&6;}
14040 rm -f "$ac_file"
14041 fi
42ecbf5e
DJ
14042 # Let's still pretend it is `configure' which instantiates (i.e., don't
14043 # use $as_me), people would be surprised to read:
14044 # /* config.h. Generated by config.status. */
14045 if test x"$ac_file" = x-; then
14046 configure_input=
14047 else
14048 configure_input="$ac_file. "
14049 fi
14050 configure_input=$configure_input"Generated from `echo $ac_file_in |
14051 sed 's,.*/,,'` by configure."
14052
14053 # First look for the input files in the build tree, otherwise in the
14054 # src tree.
14055 ac_file_inputs=`IFS=:
14056 for f in $ac_file_in; do
14057 case $f in
14058 -) echo $tmp/stdin ;;
14059 [\\/$]*)
14060 # Absolute (can't be DOS-style, as IFS=:)
14061 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14062echo "$as_me: error: cannot find input file: $f" >&2;}
14063 { (exit 1); exit 1; }; }
14064 echo "$f";;
14065 *) # Relative
14066 if test -f "$f"; then
14067 # Build tree
14068 echo "$f"
14069 elif test -f "$srcdir/$f"; then
14070 # Source tree
14071 echo "$srcdir/$f"
14072 else
14073 # /dev/null tree
14074 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14075echo "$as_me: error: cannot find input file: $f" >&2;}
14076 { (exit 1); exit 1; }; }
14077 fi;;
14078 esac
14079 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
14080_ACEOF
14081cat >>$CONFIG_STATUS <<_ACEOF
14082 sed "$ac_vpsub
14083$extrasub
14084_ACEOF
14085cat >>$CONFIG_STATUS <<\_ACEOF
14086:t
14087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14088s,@configure_input@,$configure_input,;t t
14089s,@srcdir@,$ac_srcdir,;t t
14090s,@abs_srcdir@,$ac_abs_srcdir,;t t
14091s,@top_srcdir@,$ac_top_srcdir,;t t
14092s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14093s,@builddir@,$ac_builddir,;t t
14094s,@abs_builddir@,$ac_abs_builddir,;t t
14095s,@top_builddir@,$ac_top_builddir,;t t
14096s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14097s,@INSTALL@,$ac_INSTALL,;t t
14098" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14099 rm -f $tmp/stdin
14100 if test x"$ac_file" != x-; then
14101 mv $tmp/out $ac_file
14102 else
14103 cat $tmp/out
14104 rm -f $tmp/out
14105 fi
14106
14107done
14108_ACEOF
14109cat >>$CONFIG_STATUS <<\_ACEOF
14110
14111#
14112# CONFIG_HEADER section.
14113#
252b5132
RH
14114
14115# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14116# NAME is the cpp macro being defined and VALUE is the value it is being given.
14117#
14118# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
14119ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14120ac_dB='[ ].*$,\1#\2'
14121ac_dC=' '
14122ac_dD=',;t'
14123# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14124ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14125ac_uB='$,\1#\2define\3'
252b5132 14126ac_uC=' '
42ecbf5e
DJ
14127ac_uD=',;t'
14128
14129for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 14130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14131 case $ac_file in
14132 - | *:- | *:-:* ) # input from stdin
14133 cat >$tmp/stdin
14134 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14136 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14138 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14139 esac
14140
42ecbf5e
DJ
14141 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14142echo "$as_me: creating $ac_file" >&6;}
14143
14144 # First look for the input files in the build tree, otherwise in the
14145 # src tree.
14146 ac_file_inputs=`IFS=:
14147 for f in $ac_file_in; do
14148 case $f in
14149 -) echo $tmp/stdin ;;
14150 [\\/$]*)
14151 # Absolute (can't be DOS-style, as IFS=:)
14152 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14153echo "$as_me: error: cannot find input file: $f" >&2;}
14154 { (exit 1); exit 1; }; }
14155 # Do quote $f, to prevent DOS paths from being IFS'd.
14156 echo "$f";;
14157 *) # Relative
14158 if test -f "$f"; then
14159 # Build tree
14160 echo "$f"
14161 elif test -f "$srcdir/$f"; then
14162 # Source tree
14163 echo "$srcdir/$f"
14164 else
14165 # /dev/null tree
14166 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14167echo "$as_me: error: cannot find input file: $f" >&2;}
14168 { (exit 1); exit 1; }; }
14169 fi;;
14170 esac
14171 done` || { (exit 1); exit 1; }
14172 # Remove the trailing spaces.
14173 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14174
14175_ACEOF
14176
14177# Transform confdefs.h into two sed scripts, `conftest.defines' and
14178# `conftest.undefs', that substitutes the proper values into
14179# config.h.in to produce config.h. The first handles `#define'
14180# templates, and the second `#undef' templates.
14181# And first: Protect against being on the right side of a sed subst in
14182# config.status. Protect against being in an unquoted here document
14183# in config.status.
14184rm -f conftest.defines conftest.undefs
14185# Using a here document instead of a string reduces the quoting nightmare.
14186# Putting comments in sed scripts is not portable.
14187#
14188# `end' is used to avoid that the second main sed command (meant for
14189# 0-ary CPP macros) applies to n-ary macro definitions.
14190# See the Autoconf documentation for `clear'.
14191cat >confdef2sed.sed <<\_ACEOF
14192s/[\\&,]/\\&/g
14193s,[\\$`],\\&,g
14194t clear
14195: clear
14196s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14197t end
14198s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14199: end
14200_ACEOF
14201# If some macros were called several times there might be several times
14202# the same #defines, which is useless. Nevertheless, we may not want to
14203# sort them, since we want the *last* AC-DEFINE to be honored.
14204uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14205sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14206rm -f confdef2sed.sed
252b5132
RH
14207
14208# This sed command replaces #undef with comments. This is necessary, for
14209# example, in the case of _POSIX_SOURCE, which is predefined and required
14210# on some systems where configure will not decide to define it.
42ecbf5e
DJ
14211cat >>conftest.undefs <<\_ACEOF
14212s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14213_ACEOF
14214
14215# Break up conftest.defines because some shells have a limit on the size
14216# of here documents, and old seds have small limits too (100 cmds).
14217echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14218echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14219echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14220echo ' :' >>$CONFIG_STATUS
14221rm -f conftest.tail
14222while grep . conftest.defines >/dev/null
14223do
14224 # Write a limited-size here document to $tmp/defines.sed.
14225 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14226 # Speed up: don't consider the non `#define' lines.
14227 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14228 # Work around the forget-to-reset-the-flag bug.
14229 echo 't clr' >>$CONFIG_STATUS
14230 echo ': clr' >>$CONFIG_STATUS
14231 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14232 echo 'CEOF
14233 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14234 rm -f $tmp/in
14235 mv $tmp/out $tmp/in
14236' >>$CONFIG_STATUS
14237 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14238 rm -f conftest.defines
14239 mv conftest.tail conftest.defines
14240done
14241rm -f conftest.defines
14242echo ' fi # grep' >>$CONFIG_STATUS
14243echo >>$CONFIG_STATUS
252b5132 14244
42ecbf5e
DJ
14245# Break up conftest.undefs because some shells have a limit on the size
14246# of here documents, and old seds have small limits too (100 cmds).
14247echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14248rm -f conftest.tail
42ecbf5e 14249while grep . conftest.undefs >/dev/null
252b5132 14250do
42ecbf5e
DJ
14251 # Write a limited-size here document to $tmp/undefs.sed.
14252 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14253 # Speed up: don't consider the non `#undef'
14254 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14255 # Work around the forget-to-reset-the-flag bug.
14256 echo 't clr' >>$CONFIG_STATUS
14257 echo ': clr' >>$CONFIG_STATUS
14258 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14259 echo 'CEOF
42ecbf5e
DJ
14260 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14261 rm -f $tmp/in
14262 mv $tmp/out $tmp/in
14263' >>$CONFIG_STATUS
14264 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14265 rm -f conftest.undefs
14266 mv conftest.tail conftest.undefs
252b5132 14267done
42ecbf5e
DJ
14268rm -f conftest.undefs
14269
14270cat >>$CONFIG_STATUS <<\_ACEOF
14271 # Let's still pretend it is `configure' which instantiates (i.e., don't
14272 # use $as_me), people would be surprised to read:
14273 # /* config.h. Generated by config.status. */
14274 if test x"$ac_file" = x-; then
14275 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 14276 else
42ecbf5e
DJ
14277 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14278 fi
14279 cat $tmp/in >>$tmp/config.h
14280 rm -f $tmp/in
14281 if test x"$ac_file" != x-; then
14282 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14283 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14284echo "$as_me: $ac_file is unchanged" >&6;}
14285 else
14286 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14287$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14288 X"$ac_file" : 'X\(//\)[^/]' \| \
14289 X"$ac_file" : 'X\(//\)$' \| \
14290 X"$ac_file" : 'X\(/\)' \| \
14291 . : '\(.\)' 2>/dev/null ||
14292echo X"$ac_file" |
14293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14295 /^X\(\/\/\)$/{ s//\1/; q; }
14296 /^X\(\/\).*/{ s//\1/; q; }
14297 s/.*/./; q'`
14298 { if $as_mkdir_p; then
14299 mkdir -p "$ac_dir"
14300 else
14301 as_dir="$ac_dir"
14302 as_dirs=
14303 while test ! -d "$as_dir"; do
14304 as_dirs="$as_dir $as_dirs"
14305 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14307 X"$as_dir" : 'X\(//\)[^/]' \| \
14308 X"$as_dir" : 'X\(//\)$' \| \
14309 X"$as_dir" : 'X\(/\)' \| \
14310 . : '\(.\)' 2>/dev/null ||
14311echo X"$as_dir" |
14312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14314 /^X\(\/\/\)$/{ s//\1/; q; }
14315 /^X\(\/\).*/{ s//\1/; q; }
14316 s/.*/./; q'`
14317 done
14318 test ! -n "$as_dirs" || mkdir $as_dirs
14319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14320echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14321 { (exit 1); exit 1; }; }; }
14322
14323 rm -f $ac_file
14324 mv $tmp/config.h $ac_file
252b5132 14325 fi
42ecbf5e
DJ
14326 else
14327 cat $tmp/config.h
14328 rm -f $tmp/config.h
e5a52504 14329 fi
42ecbf5e
DJ
14330# Compute $ac_file's index in $config_headers.
14331_am_stamp_count=1
14332for _am_header in $config_headers :; do
14333 case $_am_header in
14334 $ac_file | $ac_file:* )
14335 break ;;
14336 * )
14337 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14338 esac
14339done
14340echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14341$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14342 X$ac_file : 'X\(//\)[^/]' \| \
14343 X$ac_file : 'X\(//\)$' \| \
14344 X$ac_file : 'X\(/\)' \| \
14345 . : '\(.\)' 2>/dev/null ||
14346echo X$ac_file |
14347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14349 /^X\(\/\/\)$/{ s//\1/; q; }
14350 /^X\(\/\).*/{ s//\1/; q; }
14351 s/.*/./; q'`/stamp-h$_am_stamp_count
14352done
14353_ACEOF
14354cat >>$CONFIG_STATUS <<\_ACEOF
e5a52504 14355
42ecbf5e
DJ
14356#
14357# CONFIG_COMMANDS section.
14358#
14359for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14360 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14361 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14362 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14363$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14364 X"$ac_dest" : 'X\(//\)[^/]' \| \
14365 X"$ac_dest" : 'X\(//\)$' \| \
14366 X"$ac_dest" : 'X\(/\)' \| \
14367 . : '\(.\)' 2>/dev/null ||
14368echo X"$ac_dest" |
14369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14371 /^X\(\/\/\)$/{ s//\1/; q; }
14372 /^X\(\/\).*/{ s//\1/; q; }
14373 s/.*/./; q'`
14374 { if $as_mkdir_p; then
14375 mkdir -p "$ac_dir"
14376 else
14377 as_dir="$ac_dir"
14378 as_dirs=
14379 while test ! -d "$as_dir"; do
14380 as_dirs="$as_dir $as_dirs"
14381 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14382$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14383 X"$as_dir" : 'X\(//\)[^/]' \| \
14384 X"$as_dir" : 'X\(//\)$' \| \
14385 X"$as_dir" : 'X\(/\)' \| \
14386 . : '\(.\)' 2>/dev/null ||
14387echo X"$as_dir" |
14388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14390 /^X\(\/\/\)$/{ s//\1/; q; }
14391 /^X\(\/\).*/{ s//\1/; q; }
14392 s/.*/./; q'`
14393 done
14394 test ! -n "$as_dirs" || mkdir $as_dirs
14395 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14396echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14397 { (exit 1); exit 1; }; }; }
e5a52504 14398
42ecbf5e 14399 ac_builddir=.
e5a52504 14400
42ecbf5e
DJ
14401if test "$ac_dir" != .; then
14402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14403 # A "../" for each directory in $ac_dir_suffix.
14404 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14405else
14406 ac_dir_suffix= ac_top_builddir=
14407fi
14408
14409case $srcdir in
14410 .) # No --srcdir option. We are building in place.
14411 ac_srcdir=.
14412 if test -z "$ac_top_builddir"; then
14413 ac_top_srcdir=.
14414 else
14415 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14416 fi ;;
14417 [\\/]* | ?:[\\/]* ) # Absolute path.
14418 ac_srcdir=$srcdir$ac_dir_suffix;
14419 ac_top_srcdir=$srcdir ;;
14420 *) # Relative path.
14421 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14422 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14423esac
14424
14425# Do not use `cd foo && pwd` to compute absolute paths, because
14426# the directories may not exist.
14427case `pwd` in
14428.) ac_abs_builddir="$ac_dir";;
14429*)
14430 case "$ac_dir" in
14431 .) ac_abs_builddir=`pwd`;;
14432 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14433 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14434 esac;;
14435esac
14436case $ac_abs_builddir in
14437.) ac_abs_top_builddir=${ac_top_builddir}.;;
14438*)
14439 case ${ac_top_builddir}. in
14440 .) ac_abs_top_builddir=$ac_abs_builddir;;
14441 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14442 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14443 esac;;
14444esac
14445case $ac_abs_builddir in
14446.) ac_abs_srcdir=$ac_srcdir;;
14447*)
14448 case $ac_srcdir in
14449 .) ac_abs_srcdir=$ac_abs_builddir;;
14450 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14451 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14452 esac;;
14453esac
14454case $ac_abs_builddir in
14455.) ac_abs_top_srcdir=$ac_top_srcdir;;
14456*)
14457 case $ac_top_srcdir in
14458 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14459 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14460 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14461 esac;;
14462esac
14463
14464
14465 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14466echo "$as_me: executing $ac_dest commands" >&6;}
14467 case $ac_dest in
14468 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14469 # Strip MF so we end up with the name of the file.
14470 mf=`echo "$mf" | sed -e 's/:.*$//'`
14471 # Check whether this is an Automake generated Makefile or not.
14472 # We used to match only the files named `Makefile.in', but
14473 # some people rename them; so instead we look at the file content.
14474 # Grep'ing the first line is not enough: some people post-process
14475 # each Makefile.in and add a new line on top of each file to say so.
14476 # So let's grep whole file.
14477 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14478 dirpart=`(dirname "$mf") 2>/dev/null ||
14479$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14480 X"$mf" : 'X\(//\)[^/]' \| \
14481 X"$mf" : 'X\(//\)$' \| \
14482 X"$mf" : 'X\(/\)' \| \
14483 . : '\(.\)' 2>/dev/null ||
14484echo X"$mf" |
14485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14486 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14487 /^X\(\/\/\)$/{ s//\1/; q; }
14488 /^X\(\/\).*/{ s//\1/; q; }
14489 s/.*/./; q'`
14490 else
14491 continue
14492 fi
14493 # Extract the definition of DEPDIR, am__include, and am__quote
14494 # from the Makefile without running `make'.
14495 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14496 test -z "$DEPDIR" && continue
14497 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14498 test -z "am__include" && continue
14499 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14500 # When using ansi2knr, U may be empty or an underscore; expand it
14501 U=`sed -n 's/^U = //p' < "$mf"`
14502 # Find all dependency output files, they are included files with
14503 # $(DEPDIR) in their names. We invoke sed twice because it is the
14504 # simplest approach to changing $(DEPDIR) to its actual value in the
14505 # expansion.
14506 for file in `sed -n "
14507 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14508 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14509 # Make sure the directory exists.
14510 test -f "$dirpart/$file" && continue
14511 fdir=`(dirname "$file") 2>/dev/null ||
14512$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14513 X"$file" : 'X\(//\)[^/]' \| \
14514 X"$file" : 'X\(//\)$' \| \
14515 X"$file" : 'X\(/\)' \| \
14516 . : '\(.\)' 2>/dev/null ||
14517echo X"$file" |
14518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14520 /^X\(\/\/\)$/{ s//\1/; q; }
14521 /^X\(\/\).*/{ s//\1/; q; }
14522 s/.*/./; q'`
14523 { if $as_mkdir_p; then
14524 mkdir -p $dirpart/$fdir
14525 else
14526 as_dir=$dirpart/$fdir
14527 as_dirs=
14528 while test ! -d "$as_dir"; do
14529 as_dirs="$as_dir $as_dirs"
14530 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14532 X"$as_dir" : 'X\(//\)[^/]' \| \
14533 X"$as_dir" : 'X\(//\)$' \| \
14534 X"$as_dir" : 'X\(/\)' \| \
14535 . : '\(.\)' 2>/dev/null ||
14536echo X"$as_dir" |
14537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14539 /^X\(\/\/\)$/{ s//\1/; q; }
14540 /^X\(\/\).*/{ s//\1/; q; }
14541 s/.*/./; q'`
14542 done
14543 test ! -n "$as_dirs" || mkdir $as_dirs
14544 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14545echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14546 { (exit 1); exit 1; }; }; }
14547
14548 # echo "creating $dirpart/$file"
14549 echo '# dummy' > "$dirpart/$file"
14550 done
14551done
d7040cdb
SE
14552 ;;
14553 libtool )
14554
14555 # See if we are running on zsh, and set the options which allow our
14556 # commands through without removal of \ escapes.
14557 if test -n "${ZSH_VERSION+set}" ; then
14558 setopt NO_GLOB_SUBST
14559 fi
14560
14561 cfgfile="${ofile}T"
14562 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14563 $RM "$cfgfile"
14564
14565 cat <<_LT_EOF >> "$cfgfile"
14566#! $SHELL
14567
14568# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14569# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14570# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14571# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14572#
14573# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14574# 2006, 2007 Free Software Foundation, Inc.
14575#
14576# This file is part of GNU Libtool:
14577# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14578#
14579# This program is free software; you can redistribute it and/or modify
14580# it under the terms of the GNU General Public License as published by
14581# the Free Software Foundation; either version 2 of the License, or
14582# (at your option) any later version.
14583#
14584# This program is distributed in the hope that it will be useful, but
14585# WITHOUT ANY WARRANTY; without even the implied warranty of
14586# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14587# General Public License for more details.
14588#
14589# You should have received a copy of the GNU General Public License
14590# along with this program; if not, a copy can be downloaded from
14591# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14592# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14593# MA 02110-1301, USA.
14594#
14595# As a special exception to the GNU General Public License, if you
14596# distribute this file as part of a program that contains a
14597# configuration script generated by Autoconf, you may include it under
14598# the same distribution terms that you use for the rest of that program.
14599
14600
14601# The names of the tagged configurations supported by this script.
14602available_tags=""
14603
14604# ### BEGIN LIBTOOL CONFIG
14605
14606# Which release of libtool.m4 was used?
14607macro_version=$macro_version
14608macro_revision=$macro_revision
14609
14610# Whether or not to build shared libraries.
14611build_libtool_libs=$enable_shared
14612
14613# Whether or not to build static libraries.
14614build_old_libs=$enable_static
14615
14616# What type of objects to build.
14617pic_mode=$pic_mode
14618
14619# Whether or not to optimize for fast installation.
14620fast_install=$enable_fast_install
14621
14622# The host system.
14623host_alias=$host_alias
14624host=$host
14625host_os=$host_os
14626
14627# The build system.
14628build_alias=$build_alias
14629build=$build
14630build_os=$build_os
14631
14632# A sed program that does not truncate output.
14633SED=$lt_SED
14634
14635# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14636Xsed="\$SED -e 1s/^X//"
14637
14638# A grep program that handles long lines.
14639GREP=$lt_GREP
14640
14641# An ERE matcher.
14642EGREP=$lt_EGREP
14643
14644# A literal string matcher.
14645FGREP=$lt_FGREP
14646
14647# A BSD- or MS-compatible name lister.
14648NM=$lt_NM
14649
14650# Whether we need soft or hard links.
14651LN_S=$lt_LN_S
14652
14653# What is the maximum length of a command?
14654max_cmd_len=$max_cmd_len
14655
14656# Object file suffix (normally "o").
14657objext=$ac_objext
14658
14659# Executable file suffix (normally "").
14660exeext=$exeext
14661
14662# whether the shell understands "unset".
14663lt_unset=$lt_unset
14664
14665# turn spaces into newlines.
14666SP2NL=$lt_lt_SP2NL
14667
14668# turn newlines into spaces.
14669NL2SP=$lt_lt_NL2SP
14670
14671# How to create reloadable object files.
14672reload_flag=$lt_reload_flag
14673reload_cmds=$lt_reload_cmds
14674
14675# Method to check whether dependent libraries are shared objects.
14676deplibs_check_method=$lt_deplibs_check_method
14677
14678# Command to use when deplibs_check_method == "file_magic".
14679file_magic_cmd=$lt_file_magic_cmd
14680
14681# The archiver.
14682AR=$lt_AR
14683AR_FLAGS=$lt_AR_FLAGS
14684
14685# A symbol stripping program.
14686STRIP=$lt_STRIP
14687
14688# Commands used to install an old-style archive.
14689RANLIB=$lt_RANLIB
14690old_postinstall_cmds=$lt_old_postinstall_cmds
14691old_postuninstall_cmds=$lt_old_postuninstall_cmds
14692
14693# A C compiler.
14694LTCC=$lt_CC
14695
14696# LTCC compiler flags.
14697LTCFLAGS=$lt_CFLAGS
14698
14699# Take the output of nm and produce a listing of raw symbols and C names.
14700global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14701
14702# Transform the output of nm in a proper C declaration.
14703global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14704
14705# Transform the output of nm in a C name address pair.
14706global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14707
14708# The name of the directory that contains temporary libtool files.
14709objdir=$objdir
14710
14711# Shell to use when invoking shell scripts.
14712SHELL=$lt_SHELL
14713
14714# An echo program that does not interpret backslashes.
14715ECHO=$lt_ECHO
14716
14717# Used to examine libraries when file_magic_cmd begins with "file".
14718MAGIC_CMD=$MAGIC_CMD
14719
14720# Must we lock files when doing compilation?
14721need_locks=$lt_need_locks
14722
14723# Old archive suffix (normally "a").
14724libext=$libext
14725
14726# Shared library suffix (normally ".so").
14727shrext_cmds=$lt_shrext_cmds
14728
14729# The commands to extract the exported symbol list from a shared archive.
14730extract_expsyms_cmds=$lt_extract_expsyms_cmds
14731
14732# Variables whose values should be saved in libtool wrapper scripts and
14733# restored at link time.
14734variables_saved_for_relink=$lt_variables_saved_for_relink
14735
14736# Do we need the "lib" prefix for modules?
14737need_lib_prefix=$need_lib_prefix
14738
14739# Do we need a version for libraries?
14740need_version=$need_version
14741
14742# Library versioning type.
14743version_type=$version_type
14744
14745# Shared library runtime path variable.
14746runpath_var=$runpath_var
14747
14748# Shared library path variable.
14749shlibpath_var=$shlibpath_var
14750
14751# Is shlibpath searched before the hard-coded library search path?
14752shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14753
14754# Format of library name prefix.
14755libname_spec=$lt_libname_spec
14756
14757# List of archive names. First name is the real one, the rest are links.
14758# The last name is the one that the linker finds with -lNAME
14759library_names_spec=$lt_library_names_spec
14760
14761# The coded name of the library, if different from the real name.
14762soname_spec=$lt_soname_spec
14763
14764# Command to use after installation of a shared archive.
14765postinstall_cmds=$lt_postinstall_cmds
14766
14767# Command to use after uninstallation of a shared archive.
14768postuninstall_cmds=$lt_postuninstall_cmds
14769
14770# Commands used to finish a libtool library installation in a directory.
14771finish_cmds=$lt_finish_cmds
14772
14773# As "finish_cmds", except a single script fragment to be evaled but
14774# not shown.
14775finish_eval=$lt_finish_eval
14776
14777# Whether we should hardcode library paths into libraries.
14778hardcode_into_libs=$hardcode_into_libs
14779
14780# Compile-time system search path for libraries.
14781sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14782
14783# Run-time system search path for libraries.
14784sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14785
14786# Whether dlopen is supported.
14787dlopen_support=$enable_dlopen
14788
14789# Whether dlopen of programs is supported.
14790dlopen_self=$enable_dlopen_self
14791
14792# Whether dlopen of statically linked programs is supported.
14793dlopen_self_static=$enable_dlopen_self_static
14794
14795# Commands to strip libraries.
14796old_striplib=$lt_old_striplib
14797striplib=$lt_striplib
14798
14799
14800# The linker used to build libraries.
14801LD=$lt_LD
14802
14803# Commands used to build an old-style archive.
14804old_archive_cmds=$lt_old_archive_cmds
14805
14806# A language specific compiler.
14807CC=$lt_compiler
14808
14809# Is the compiler the GNU compiler?
14810with_gcc=$GCC
14811
14812# Compiler flag to turn off builtin functions.
14813no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14814
14815# How to pass a linker flag through the compiler.
14816wl=$lt_lt_prog_compiler_wl
14817
14818# Additional compiler flags for building library objects.
14819pic_flag=$lt_lt_prog_compiler_pic
14820
14821# Compiler flag to prevent dynamic linking.
14822link_static_flag=$lt_lt_prog_compiler_static
14823
14824# Does compiler simultaneously support -c and -o options?
14825compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14826
14827# Whether or not to add -lc for building shared libraries.
14828build_libtool_need_lc=$archive_cmds_need_lc
14829
14830# Whether or not to disallow shared libs when runtime libs are static.
14831allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14832
14833# Compiler flag to allow reflexive dlopens.
14834export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14835
14836# Compiler flag to generate shared objects directly from archives.
14837whole_archive_flag_spec=$lt_whole_archive_flag_spec
14838
14839# Whether the compiler copes with passing no objects directly.
14840compiler_needs_object=$lt_compiler_needs_object
14841
14842# Create an old-style archive from a shared archive.
14843old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14844
14845# Create a temporary old-style archive to link instead of a shared archive.
14846old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14847
14848# Commands used to build a shared archive.
14849archive_cmds=$lt_archive_cmds
14850archive_expsym_cmds=$lt_archive_expsym_cmds
14851
14852# Commands used to build a loadable module if different from building
14853# a shared archive.
14854module_cmds=$lt_module_cmds
14855module_expsym_cmds=$lt_module_expsym_cmds
14856
14857# Whether we are building with GNU ld or not.
14858with_gnu_ld=$lt_with_gnu_ld
14859
14860# Flag that allows shared libraries with undefined symbols to be built.
14861allow_undefined_flag=$lt_allow_undefined_flag
14862
14863# Flag that enforces no undefined symbols.
14864no_undefined_flag=$lt_no_undefined_flag
14865
14866# Flag to hardcode \$libdir into a binary during linking.
14867# This must work even if \$libdir does not exist
14868hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14869
14870# If ld is used when linking, flag to hardcode \$libdir into a binary
14871# during linking. This must work even if \$libdir does not exist.
14872hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14873
14874# Whether we need a single "-rpath" flag with a separated argument.
14875hardcode_libdir_separator=$lt_hardcode_libdir_separator
14876
14877# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14878# DIR into the resulting binary.
14879hardcode_direct=$hardcode_direct
14880
14881# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14882# DIR into the resulting binary and the resulting library dependency is
14883# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14884# library is relocated.
14885hardcode_direct_absolute=$hardcode_direct_absolute
14886
14887# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14888# into the resulting binary.
14889hardcode_minus_L=$hardcode_minus_L
14890
14891# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14892# into the resulting binary.
14893hardcode_shlibpath_var=$hardcode_shlibpath_var
14894
14895# Set to "yes" if building a shared library automatically hardcodes DIR
14896# into the library and all subsequent libraries and executables linked
14897# against it.
14898hardcode_automatic=$hardcode_automatic
14899
14900# Set to yes if linker adds runtime paths of dependent libraries
14901# to runtime path list.
14902inherit_rpath=$inherit_rpath
14903
14904# Whether libtool must link a program against all its dependency libraries.
14905link_all_deplibs=$link_all_deplibs
14906
14907# Fix the shell variable \$srcfile for the compiler.
14908fix_srcfile_path=$lt_fix_srcfile_path
14909
14910# Set to "yes" if exported symbols are required.
14911always_export_symbols=$always_export_symbols
14912
14913# The commands to list exported symbols.
14914export_symbols_cmds=$lt_export_symbols_cmds
14915
14916# Symbols that should not be listed in the preloaded symbols.
14917exclude_expsyms=$lt_exclude_expsyms
14918
14919# Symbols that must always be exported.
14920include_expsyms=$lt_include_expsyms
14921
14922# Commands necessary for linking programs (against libraries) with templates.
14923prelink_cmds=$lt_prelink_cmds
14924
14925# Specify filename containing input files.
14926file_list_spec=$lt_file_list_spec
14927
14928# How to hardcode a shared library path into an executable.
14929hardcode_action=$hardcode_action
14930
14931# ### END LIBTOOL CONFIG
14932
14933_LT_EOF
14934
14935 case $host_os in
14936 aix3*)
14937 cat <<\_LT_EOF >> "$cfgfile"
14938# AIX sometimes has problems with the GCC collect2 program. For some
14939# reason, if we set the COLLECT_NAMES environment variable, the problems
14940# vanish in a puff of smoke.
14941if test "X${COLLECT_NAMES+set}" != Xset; then
14942 COLLECT_NAMES=
14943 export COLLECT_NAMES
14944fi
14945_LT_EOF
14946 ;;
14947 esac
14948
14949
14950ltmain="$ac_aux_dir/ltmain.sh"
14951
14952
14953 # We use sed instead of cat because bash on DJGPP gets confused if
14954 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14955 # text mode, it properly converts lines to CR/LF. This bash problem
14956 # is reportedly fixed, but why not run on old versions too?
14957 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14958 || (rm -f "$cfgfile"; exit 1)
14959
14960 case $xsi_shell in
14961 yes)
14962 cat << \_LT_EOF >> "$cfgfile"
14963# func_dirname file append nondir_replacement
14964# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14965# otherwise set result to NONDIR_REPLACEMENT.
14966func_dirname ()
14967{
14968 case ${1} in
14969 */*) func_dirname_result="${1%/*}${2}" ;;
14970 * ) func_dirname_result="${3}" ;;
14971 esac
14972}
14973
14974# func_basename file
14975func_basename ()
14976{
14977 func_basename_result="${1##*/}"
14978}
14979
14980# func_stripname prefix suffix name
14981# strip PREFIX and SUFFIX off of NAME.
14982# PREFIX and SUFFIX must not contain globbing or regex special
14983# characters, hashes, percent signs, but SUFFIX may contain a leading
14984# dot (in which case that matches only a dot).
14985func_stripname ()
14986{
14987 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14988 # positional parameters, so assign one to ordinary parameter first.
14989 func_stripname_result=${3}
14990 func_stripname_result=${func_stripname_result#"${1}"}
14991 func_stripname_result=${func_stripname_result%"${2}"}
14992}
14993
14994# func_opt_split
14995func_opt_split ()
14996{
14997 func_opt_split_opt=${1%%=*}
14998 func_opt_split_arg=${1#*=}
14999}
15000
15001# func_lo2o object
15002func_lo2o ()
15003{
15004 case ${1} in
15005 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15006 *) func_lo2o_result=${1} ;;
15007 esac
15008}
15009_LT_EOF
15010 ;;
15011 *) # Bourne compatible functions.
15012 cat << \_LT_EOF >> "$cfgfile"
15013# func_dirname file append nondir_replacement
15014# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15015# otherwise set result to NONDIR_REPLACEMENT.
15016func_dirname ()
15017{
15018 # Extract subdirectory from the argument.
15019 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15020 if test "X$func_dirname_result" = "X${1}"; then
15021 func_dirname_result="${3}"
15022 else
15023 func_dirname_result="$func_dirname_result${2}"
15024 fi
15025}
15026
15027# func_basename file
15028func_basename ()
15029{
15030 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15031}
15032
15033# func_stripname prefix suffix name
15034# strip PREFIX and SUFFIX off of NAME.
15035# PREFIX and SUFFIX must not contain globbing or regex special
15036# characters, hashes, percent signs, but SUFFIX may contain a leading
15037# dot (in which case that matches only a dot).
15038# func_strip_suffix prefix name
15039func_stripname ()
15040{
15041 case ${2} in
15042 .*) func_stripname_result=`$ECHO "X${3}" \
15043 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15044 *) func_stripname_result=`$ECHO "X${3}" \
15045 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15046 esac
15047}
15048
15049# sed scripts:
15050my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15051my_sed_long_arg='1s/^-[^=]*=//'
15052
15053# func_opt_split
15054func_opt_split ()
15055{
15056 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15057 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15058}
15059
15060# func_lo2o object
15061func_lo2o ()
15062{
15063 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15064}
15065_LT_EOF
15066esac
15067
15068case $lt_shell_append in
15069 yes)
15070 cat << \_LT_EOF >> "$cfgfile"
15071
15072# func_append var value
15073# Append VALUE to the end of shell variable VAR.
15074func_append ()
15075{
15076 eval "$1+=\$2"
15077}
15078_LT_EOF
15079 ;;
15080 *)
15081 cat << \_LT_EOF >> "$cfgfile"
15082
15083# func_append var value
15084# Append VALUE to the end of shell variable VAR.
15085func_append ()
15086{
15087 eval "$1=\$$1\$2"
15088}
15089_LT_EOF
15090 ;;
15091 esac
15092
15093
15094 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15095 || (rm -f "$cfgfile"; exit 1)
15096
15097 mv -f "$cfgfile" "$ofile" ||
15098 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15099 chmod +x "$ofile"
15100
42ecbf5e 15101 ;;
20e95c23
DJ
15102 default-1 )
15103 for ac_file in $CONFIG_FILES; do
15104 # Support "outfile[:infile[:infile...]]"
15105 case "$ac_file" in
15106 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15107 esac
15108 # PO directories have a Makefile.in generated from Makefile.in.in.
15109 case "$ac_file" in */Makefile.in)
15110 # Adjust a relative srcdir.
15111 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15112 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15113 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15114 # In autoconf-2.13 it is called $ac_given_srcdir.
15115 # In autoconf-2.50 it is called $srcdir.
15116 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15117 case "$ac_given_srcdir" in
15118 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15119 /*) top_srcdir="$ac_given_srcdir" ;;
15120 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15121 esac
15122 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15123 rm -f "$ac_dir/POTFILES"
15124 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15125 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15126 POMAKEFILEDEPS="POTFILES.in"
15127 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15128 # on $ac_dir but don't depend on user-specified configuration
15129 # parameters.
15130 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15131 # The LINGUAS file contains the set of available languages.
15132 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15133 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15134 fi
15135 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15136 # Hide the ALL_LINGUAS assigment from automake.
15137 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15138 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15139 else
15140 # The set of available languages was given in configure.in.
15141 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15142 fi
15143 case "$ac_given_srcdir" in
15144 .) srcdirpre= ;;
15145 *) srcdirpre='$(srcdir)/' ;;
15146 esac
15147 POFILES=
15148 GMOFILES=
15149 UPDATEPOFILES=
15150 DUMMYPOFILES=
15151 for lang in $ALL_LINGUAS; do
15152 POFILES="$POFILES $srcdirpre$lang.po"
15153 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15154 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15155 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15156 done
15157 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15158 # environment variable.
15159 INST_LINGUAS=
15160 if test -n "$ALL_LINGUAS"; then
15161 for presentlang in $ALL_LINGUAS; do
15162 useit=no
15163 if test "%UNSET%" != "$LINGUAS"; then
15164 desiredlanguages="$LINGUAS"
15165 else
15166 desiredlanguages="$ALL_LINGUAS"
15167 fi
15168 for desiredlang in $desiredlanguages; do
15169 # Use the presentlang catalog if desiredlang is
15170 # a. equal to presentlang, or
15171 # b. a variant of presentlang (because in this case,
15172 # presentlang can be used as a fallback for messages
15173 # which are not translated in the desiredlang catalog).
15174 case "$desiredlang" in
15175 "$presentlang"*) useit=yes;;
15176 esac
15177 done
15178 if test $useit = yes; then
15179 INST_LINGUAS="$INST_LINGUAS $presentlang"
15180 fi
15181 done
15182 fi
15183 CATALOGS=
15184 if test -n "$INST_LINGUAS"; then
15185 for lang in $INST_LINGUAS; do
15186 CATALOGS="$CATALOGS $lang.gmo"
15187 done
15188 fi
15189 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15190 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"
15191 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15192 if test -f "$f"; then
15193 case "$f" in
15194 *.orig | *.bak | *~) ;;
15195 *) cat "$f" >> "$ac_dir/Makefile" ;;
15196 esac
15197 fi
15198 done
15199 fi
15200 ;;
15201 esac
15202 done ;;
42ecbf5e
DJ
15203 esac
15204done
15205_ACEOF
15206
15207cat >>$CONFIG_STATUS <<\_ACEOF
15208
15209{ (exit 0); exit 0; }
15210_ACEOF
252b5132 15211chmod +x $CONFIG_STATUS
42ecbf5e
DJ
15212ac_clean_files=$ac_clean_files_save
15213
15214
15215# configure is writing to config.log, and then calls config.status.
15216# config.status does its own redirection, appending to config.log.
15217# Unfortunately, on DOS this fails, as config.log is still kept open
15218# by configure, so config.status won't be able to write to it; its
15219# output is simply discarded. So we exec the FD to /dev/null,
15220# effectively closing config.log, so it can be properly (re)opened and
15221# appended to by config.status. When coming back to configure, we
15222# need to make the FD available again.
15223if test "$no_create" != yes; then
15224 ac_cs_success=:
15225 ac_config_status_args=
15226 test "$silent" = yes &&
15227 ac_config_status_args="$ac_config_status_args --quiet"
15228 exec 5>/dev/null
15229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15230 exec 5>>config.log
15231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15232 # would make configure fail if this is the last instruction.
15233 $ac_cs_success || { (exit 1); exit 1; }
15234fi
252b5132 15235
This page took 1.296078 seconds and 4 git commands to generate.