]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
optc-gen.awk: No need to duplicate option flags twice.
[thirdparty/gcc.git] / zlib / configure
CommitLineData
dfac8a13 1#! /bin/sh
dfac8a13 2# Guess values for system-dependent variables and create Makefiles.
a8aea176 3# Generated by GNU Autoconf 2.59.
c45f211e 4#
a8aea176 5# Copyright (C) 2003 Free Software Foundation, Inc.
dfac8a13
TT
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
a8aea176
NN
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}
dfac8a13 185
a8aea176
NN
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
1cf3d07d
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
a8aea176
NN
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`
397
398exec 6>&1
399
400#
401# Initializations.
402#
dfac8a13 403ac_default_prefix=/usr/local
a8aea176
NN
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="zlib.h"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
18d98188 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT COMPPATH CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
a8aea176 462ac_subst_files=''
18c04407 463ac_pwd=`pwd`
dfac8a13
TT
464
465# Initialize some variables set by options.
a8aea176
NN
466ac_init_help=
467ac_init_version=false
dfac8a13
TT
468# The variables have the same names as the options, with
469# dashes changed to underlines.
a8aea176 470cache_file=/dev/null
dfac8a13 471exec_prefix=NONE
dfac8a13 472no_create=
dfac8a13
TT
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
dfac8a13
TT
481verbose=
482x_includes=NONE
483x_libraries=NONE
a8aea176
NN
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
dfac8a13
TT
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
dfac8a13
TT
503ac_prev=
504for ac_option
505do
dfac8a13
TT
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
a8aea176 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
dfac8a13
TT
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
a8aea176 517 case $ac_option in
dfac8a13
TT
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a8aea176 522 bindir=$ac_optarg ;;
dfac8a13
TT
523
524 -build | --build | --buil | --bui | --bu)
a8aea176 525 ac_prev=build_alias ;;
dfac8a13 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a8aea176 527 build_alias=$ac_optarg ;;
dfac8a13
TT
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a8aea176
NN
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
dfac8a13
TT
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
a8aea176 543 datadir=$ac_optarg ;;
dfac8a13
TT
544
545 -disable-* | --disable-*)
a8aea176 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
dfac8a13 547 # Reject names that are not valid shell variable names.
a8aea176
NN
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
dfac8a13
TT
553
554 -enable-* | --enable-*)
a8aea176 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
dfac8a13 556 # Reject names that are not valid shell variable names.
a8aea176
NN
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
dfac8a13
TT
563 *) ac_optarg=yes ;;
564 esac
a8aea176 565 eval "enable_$ac_feature='$ac_optarg'" ;;
dfac8a13
TT
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
a8aea176 574 exec_prefix=$ac_optarg ;;
dfac8a13
TT
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
a8aea176
NN
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
dfac8a13
TT
586
587 -host | --host | --hos | --ho)
a8aea176 588 ac_prev=host_alias ;;
dfac8a13 589 -host=* | --host=* | --hos=* | --ho=*)
a8aea176 590 host_alias=$ac_optarg ;;
dfac8a13
TT
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
a8aea176 597 includedir=$ac_optarg ;;
dfac8a13
TT
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a8aea176 602 infodir=$ac_optarg ;;
dfac8a13
TT
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a8aea176 607 libdir=$ac_optarg ;;
dfac8a13
TT
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
a8aea176 614 libexecdir=$ac_optarg ;;
dfac8a13
TT
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a8aea176 623 localstatedir=$ac_optarg ;;
dfac8a13
TT
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a8aea176 628 mandir=$ac_optarg ;;
dfac8a13
TT
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a8aea176 635 | --no-cr | --no-c | -n)
dfac8a13
TT
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a8aea176 649 oldincludedir=$ac_optarg ;;
dfac8a13
TT
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a8aea176 654 prefix=$ac_optarg ;;
dfac8a13
TT
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a8aea176 661 program_prefix=$ac_optarg ;;
dfac8a13
TT
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a8aea176 668 program_suffix=$ac_optarg ;;
dfac8a13
TT
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
a8aea176 685 program_transform_name=$ac_optarg ;;
dfac8a13
TT
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
a8aea176 695 sbindir=$ac_optarg ;;
dfac8a13
TT
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
a8aea176 706 sharedstatedir=$ac_optarg ;;
dfac8a13
TT
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
a8aea176 711 site=$ac_optarg ;;
dfac8a13
TT
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a8aea176 716 srcdir=$ac_optarg ;;
dfac8a13
TT
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a8aea176 723 sysconfdir=$ac_optarg ;;
dfac8a13
TT
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
a8aea176 726 ac_prev=target_alias ;;
dfac8a13 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a8aea176 728 target_alias=$ac_optarg ;;
dfac8a13
TT
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
a8aea176
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
dfac8a13
TT
735
736 -with-* | --with-*)
a8aea176 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
dfac8a13 738 # Reject names that are not valid shell variable names.
a8aea176
NN
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
dfac8a13 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
a8aea176
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
dfac8a13
TT
745 *) ac_optarg=yes ;;
746 esac
a8aea176 747 eval "with_$ac_package='$ac_optarg'" ;;
dfac8a13
TT
748
749 -without-* | --without-*)
a8aea176 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
dfac8a13 751 # Reject names that are not valid shell variable names.
a8aea176
NN
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
dfac8a13
TT
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a8aea176 767 x_includes=$ac_optarg ;;
dfac8a13
TT
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a8aea176 774 x_libraries=$ac_optarg ;;
dfac8a13 775
a8aea176
NN
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
dfac8a13
TT
779 ;;
780
a8aea176
NN
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
dfac8a13 791 *)
a8aea176
NN
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
dfac8a13
TT
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
a8aea176
NN
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
dfac8a13 806fi
dfac8a13 807
a8aea176
NN
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
dfac8a13 818
a8aea176
NN
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
c45f211e 822do
a8aea176
NN
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
dfac8a13
TT
828 esac
829done
830
a8aea176
NN
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
dfac8a13 848
a8aea176
NN
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
dfac8a13 853
dfac8a13
TT
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
a8aea176
NN
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
dfac8a13
TT
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
a8aea176
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
dfac8a13 882 else
a8aea176
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
dfac8a13
TT
885 fi
886fi
a8aea176
NN
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
a8aea176
NN
903ac_env_CPP_set=${CPP+set}
904ac_env_CPP_value=$CPP
905ac_cv_env_CPP_set=${CPP+set}
906ac_cv_env_CPP_value=$CPP
076e5443
PB
907ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_env_CPPFLAGS_value=$CPPFLAGS
909ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910ac_cv_env_CPPFLAGS_value=$CPPFLAGS
a8aea176
NN
911
912#
913# Report the --help message.
914#
915if test "$ac_init_help" = "long"; then
916 # Omit some internal or obsolete options to make the list less imposing.
917 # This message is too long to be a string in the A/UX 3.1 sh.
918 cat <<_ACEOF
919\`configure' configures this package to adapt to many kinds of systems.
920
921Usage: $0 [OPTION]... [VAR=VALUE]...
922
923To assign environment variables (e.g., CC, CFLAGS...), specify them as
924VAR=VALUE. See below for descriptions of some of the useful variables.
925
926Defaults for the options are specified in brackets.
927
928Configuration:
929 -h, --help display this help and exit
930 --help=short display options specific to this package
931 --help=recursive display the short help of all the included packages
932 -V, --version display version information and exit
933 -q, --quiet, --silent do not print \`checking...' messages
934 --cache-file=FILE cache test results in FILE [disabled]
935 -C, --config-cache alias for \`--cache-file=config.cache'
936 -n, --no-create do not create output files
937 --srcdir=DIR find the sources in DIR [configure dir or \`..']
938
939_ACEOF
940
941 cat <<_ACEOF
942Installation directories:
943 --prefix=PREFIX install architecture-independent files in PREFIX
944 [$ac_default_prefix]
945 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
946 [PREFIX]
947
948By default, \`make install' will install all the files in
949\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
950an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951for instance \`--prefix=\$HOME'.
952
953For better control, use the options below.
954
955Fine tuning of the installation directories:
956 --bindir=DIR user executables [EPREFIX/bin]
957 --sbindir=DIR system admin executables [EPREFIX/sbin]
958 --libexecdir=DIR program executables [EPREFIX/libexec]
959 --datadir=DIR read-only architecture-independent data [PREFIX/share]
960 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
961 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
962 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
963 --libdir=DIR object code libraries [EPREFIX/lib]
964 --includedir=DIR C header files [PREFIX/include]
965 --oldincludedir=DIR C header files for non-gcc [/usr/include]
966 --infodir=DIR info documentation [PREFIX/info]
967 --mandir=DIR man documentation [PREFIX/man]
968_ACEOF
969
970 cat <<\_ACEOF
971
972Program names:
973 --program-prefix=PREFIX prepend PREFIX to installed program names
974 --program-suffix=SUFFIX append SUFFIX to installed program names
975 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
976
977System types:
978 --build=BUILD configure for building on BUILD [guessed]
979 --host=HOST cross-compile to build programs to run on HOST [BUILD]
980 --target=TARGET configure for building compilers for TARGET [HOST]
981_ACEOF
982fi
983
984if test -n "$ac_init_help"; then
985
986 cat <<\_ACEOF
987
988Optional Features:
989 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
990 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a8aea176 991 --enable-multilib build many library versions (default)
076e5443
PB
992 --enable-maintainer-mode enable make rules and dependencies not useful
993 (and sometimes confusing) to the casual installer
994 --disable-dependency-tracking speeds up one-time build
995 --enable-dependency-tracking do not reject slow dependency extractors
1cf3d07d
SE
996 --enable-shared[=PKGS]
997 build shared libraries [default=yes]
998 --enable-static[=PKGS]
999 build static libraries [default=yes]
1000 --enable-fast-install[=PKGS]
1001 optimize for fast installation [default=yes]
a8aea176
NN
1002 --disable-libtool-lock avoid locking (might break parallel builds)
1003
1004Optional Packages:
1005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1007 --with-target-subdir=SUBDIR
1008 configuring in a subdirectory
1009 --with-cross-host=HOST configuring with a cross compiler
1010 --with-system-zlib use installed libz
1cf3d07d
SE
1011 --with-pic try to use only PIC/non-PIC objects [default=use
1012 both]
1013 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
a8aea176
NN
1014
1015Some influential environment variables:
1016 CC C compiler command
1017 CFLAGS C compiler flags
1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1019 nonstandard directory <lib dir>
1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021 headers in a nonstandard directory <include dir>
1022 CPP C preprocessor
1023
1024Use these variables to override the choices made by `configure' or to help
1025it to find libraries and programs with nonstandard names/locations.
1026
1027_ACEOF
1028fi
1029
1030if test "$ac_init_help" = "recursive"; then
1031 # If there are subdirs, report their specific --help.
1032 ac_popdir=`pwd`
1033 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034 test -d $ac_dir || continue
1035 ac_builddir=.
1036
1037if test "$ac_dir" != .; then
1038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039 # A "../" for each directory in $ac_dir_suffix.
1040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041else
1042 ac_dir_suffix= ac_top_builddir=
1043fi
1044
1045case $srcdir in
1046 .) # No --srcdir option. We are building in place.
1047 ac_srcdir=.
1048 if test -z "$ac_top_builddir"; then
1049 ac_top_srcdir=.
1050 else
1051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052 fi ;;
1053 [\\/]* | ?:[\\/]* ) # Absolute path.
1054 ac_srcdir=$srcdir$ac_dir_suffix;
1055 ac_top_srcdir=$srcdir ;;
1056 *) # Relative path.
1057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059esac
1060
1061# Do not use `cd foo && pwd` to compute absolute paths, because
1062# the directories may not exist.
1063case `pwd` in
1064.) ac_abs_builddir="$ac_dir";;
1065*)
1066 case "$ac_dir" in
1067 .) ac_abs_builddir=`pwd`;;
1068 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070 esac;;
1071esac
1072case $ac_abs_builddir in
1073.) ac_abs_top_builddir=${ac_top_builddir}.;;
1074*)
1075 case ${ac_top_builddir}. in
1076 .) ac_abs_top_builddir=$ac_abs_builddir;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079 esac;;
1080esac
1081case $ac_abs_builddir in
1082.) ac_abs_srcdir=$ac_srcdir;;
1083*)
1084 case $ac_srcdir in
1085 .) ac_abs_srcdir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088 esac;;
1089esac
1090case $ac_abs_builddir in
1091.) ac_abs_top_srcdir=$ac_top_srcdir;;
1092*)
1093 case $ac_top_srcdir in
1094 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097 esac;;
1098esac
1099
1100 cd $ac_dir
1101 # Check for guested configure; otherwise get Cygnus style configure.
1102 if test -f $ac_srcdir/configure.gnu; then
1103 echo
1104 $SHELL $ac_srcdir/configure.gnu --help=recursive
1105 elif test -f $ac_srcdir/configure; then
1106 echo
1107 $SHELL $ac_srcdir/configure --help=recursive
1108 elif test -f $ac_srcdir/configure.ac ||
1109 test -f $ac_srcdir/configure.in; then
1110 echo
1111 $ac_configure --help
1112 else
1113 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114 fi
17210dff 1115 cd $ac_popdir
a8aea176
NN
1116 done
1117fi
1118
1119test -n "$ac_init_help" && exit 0
1120if $ac_init_version; then
1121 cat <<\_ACEOF
1122
1123Copyright (C) 2003 Free Software Foundation, Inc.
1124This configure script is free software; the Free Software Foundation
1125gives unlimited permission to copy, distribute and modify it.
1126_ACEOF
1127 exit 0
1128fi
1129exec 5>config.log
1130cat >&5 <<_ACEOF
1131This file contains any messages produced by compilers while
1132running configure, to aid debugging if configure makes a mistake.
1133
1134It was created by $as_me, which was
1135generated by GNU Autoconf 2.59. Invocation command line was
1136
1137 $ $0 $@
1138
1139_ACEOF
1140{
1141cat <<_ASUNAME
1142## --------- ##
1143## Platform. ##
1144## --------- ##
1145
1146hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1147uname -m = `(uname -m) 2>/dev/null || echo unknown`
1148uname -r = `(uname -r) 2>/dev/null || echo unknown`
1149uname -s = `(uname -s) 2>/dev/null || echo unknown`
1150uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151
1152/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1153/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1154
1155/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1156/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1157/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1158hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1159/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1160/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1161/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1162
1163_ASUNAME
1164
1165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1166for as_dir in $PATH
1167do
1168 IFS=$as_save_IFS
1169 test -z "$as_dir" && as_dir=.
1170 echo "PATH: $as_dir"
1171done
1172
1173} >&5
1174
1175cat >&5 <<_ACEOF
1176
1177
1178## ----------- ##
1179## Core tests. ##
1180## ----------- ##
1181
1182_ACEOF
1183
1184
1185# Keep a trace of the command line.
1186# Strip out --no-create and --no-recursion so they do not pile up.
1187# Strip out --silent because we don't want to record it for future runs.
1188# Also quote any args containing shell meta-characters.
1189# Make two passes to allow for proper duplicate-argument suppression.
1190ac_configure_args=
1191ac_configure_args0=
1192ac_configure_args1=
1193ac_sep=
1194ac_must_keep_next=false
1195for ac_pass in 1 2
1196do
1197 for ac_arg
1198 do
1199 case $ac_arg in
1200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 continue ;;
1204 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1206 esac
1207 case $ac_pass in
1208 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1209 2)
1210 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1211 if test $ac_must_keep_next = true; then
1212 ac_must_keep_next=false # Got value, back to normal.
1213 else
1214 case $ac_arg in
1215 *=* | --config-cache | -C | -disable-* | --disable-* \
1216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1218 | -with-* | --with-* | -without-* | --without-* | --x)
1219 case "$ac_configure_args0 " in
1220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1221 esac
1222 ;;
1223 -* ) ac_must_keep_next=true ;;
1224 esac
1225 fi
1226 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1227 # Get rid of the leading space.
1228 ac_sep=" "
1229 ;;
1230 esac
1231 done
1232done
1233$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1234$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1235
1236# When interrupted or exit'd, cleanup temporary files, and complete
1237# config.log. We remove comments because anyway the quotes in there
1238# would cause problems or look ugly.
1239# WARNING: Be sure not to use single quotes in there, as some shells,
1240# such as our DU 5.0 friend, will then `close' the trap.
1241trap 'exit_status=$?
1242 # Save into config.log some information that might help in debugging.
1243 {
1244 echo
1245
1246 cat <<\_ASBOX
1247## ---------------- ##
1248## Cache variables. ##
1249## ---------------- ##
1250_ASBOX
1251 echo
1252 # The following way of writing the cache mishandles newlines in values,
1253{
1254 (set) 2>&1 |
1255 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1256 *ac_space=\ *)
1257 sed -n \
1258 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1260 ;;
1261 *)
1262 sed -n \
1263 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1264 ;;
1265 esac;
1266}
1267 echo
1268
1269 cat <<\_ASBOX
1270## ----------------- ##
1271## Output variables. ##
1272## ----------------- ##
1273_ASBOX
1274 echo
1275 for ac_var in $ac_subst_vars
1276 do
1277 eval ac_val=$`echo $ac_var`
1278 echo "$ac_var='"'"'$ac_val'"'"'"
1279 done | sort
1280 echo
1281
1282 if test -n "$ac_subst_files"; then
1283 cat <<\_ASBOX
1284## ------------- ##
1285## Output files. ##
1286## ------------- ##
1287_ASBOX
1288 echo
1289 for ac_var in $ac_subst_files
1290 do
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1293 done | sort
1294 echo
1295 fi
1296
1297 if test -s confdefs.h; then
1298 cat <<\_ASBOX
1299## ----------- ##
1300## confdefs.h. ##
1301## ----------- ##
1302_ASBOX
1303 echo
1304 sed "/^$/d" confdefs.h | sort
1305 echo
1306 fi
1307 test "$ac_signal" != 0 &&
1308 echo "$as_me: caught signal $ac_signal"
1309 echo "$as_me: exit $exit_status"
1310 } >&5
1311 rm -f core *.core &&
1312 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1313 exit $exit_status
1314 ' 0
1315for ac_signal in 1 2 13 15; do
1316 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1317done
1318ac_signal=0
dfac8a13 1319
a8aea176
NN
1320# confdefs.h avoids OS command line length limits that DEFS can exceed.
1321rm -rf conftest* confdefs.h
1322# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1323echo >confdefs.h
1324
1325# Predefined preprocessor variables.
1326
1327cat >>confdefs.h <<_ACEOF
1328#define PACKAGE_NAME "$PACKAGE_NAME"
1329_ACEOF
1330
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_VERSION "$PACKAGE_VERSION"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_STRING "$PACKAGE_STRING"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1349_ACEOF
1350
1351
1352# Let the site file select an alternate cache file if it wants to.
dfac8a13 1353# Prefer explicitly selected file to automatically selected ones.
0ccf2c33
AO
1354if test -z "$CONFIG_SITE"; then
1355 if test "x$prefix" != xNONE; then
1356 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357 else
1358 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
dfac8a13
TT
1359 fi
1360fi
1361for ac_site_file in $CONFIG_SITE; do
1362 if test -r "$ac_site_file"; then
a8aea176
NN
1363 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1364echo "$as_me: loading site script $ac_site_file" >&6;}
1365 sed 's/^/| /' "$ac_site_file" >&5
dfac8a13
TT
1366 . "$ac_site_file"
1367 fi
1368done
1369
1370if test -r "$cache_file"; then
a8aea176
NN
1371 # Some versions of bash will fail to source /dev/null (special
1372 # files actually), so we avoid doing that.
1373 if test -f "$cache_file"; then
1374 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1375echo "$as_me: loading cache $cache_file" >&6;}
1376 case $cache_file in
1377 [\\/]* | ?:[\\/]* ) . $cache_file;;
1378 *) . ./$cache_file;;
1379 esac
1380 fi
dfac8a13 1381else
a8aea176
NN
1382 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1383echo "$as_me: creating cache $cache_file" >&6;}
1384 >$cache_file
1385fi
1386
1387# Check that the precious variables saved in the cache have kept the same
1388# value.
1389ac_cache_corrupted=false
1390for ac_var in `(set) 2>&1 |
1391 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1393 eval ac_new_set=\$ac_env_${ac_var}_set
1394 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1395 eval ac_new_val="\$ac_env_${ac_var}_value"
1396 case $ac_old_set,$ac_new_set in
1397 set,)
1398 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1399echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1400 ac_cache_corrupted=: ;;
1401 ,set)
1402 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1403echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1404 ac_cache_corrupted=: ;;
1405 ,);;
1406 *)
1407 if test "x$ac_old_val" != "x$ac_new_val"; then
deb984e6
PB
1408 # differences in whitespace do not lead to failure.
1409 ac_old_val_w=`echo x $ac_old_val`
1410 ac_new_val_w=`echo x $ac_new_val`
1411 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1412 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a8aea176 1413echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
1414 ac_cache_corrupted=:
1415 else
1416 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1417echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1418 eval $ac_var=\$ac_old_val
1419 fi
1420 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1421echo "$as_me: former value: \`$ac_old_val'" >&2;}
1422 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1423echo "$as_me: current value: \`$ac_new_val'" >&2;}
a8aea176
NN
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1437 fi
1438done
1439if $ac_cache_corrupted; then
18c04407
RW
1440 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1441echo "$as_me: error: in \`$ac_pwd':" >&2;}
a8aea176
NN
1442 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1443echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1444 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1445echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1446 { (exit 1); exit 1; }; }
dfac8a13
TT
1447fi
1448
1449ac_ext=c
dfac8a13 1450ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
1451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1453ac_compiler_gnu=$ac_cv_c_compiler_gnu
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
18c04407
RW
1471
1472
1473
a8aea176 1474
dfac8a13
TT
1475
1476
0fd91e0a 1477
076e5443
PB
1478# Default to --enable-multilib
1479# Check whether --enable-multilib or --disable-multilib was given.
1480if test "${enable_multilib+set}" = set; then
1481 enableval="$enable_multilib"
1482 case "$enableval" in
1483 yes) multilib=yes ;;
1484 no) multilib=no ;;
1485 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1486echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1487 { (exit 1); exit 1; }; } ;;
1488 esac
1489else
1490 multilib=yes
1491fi;
6706f116 1492
076e5443
PB
1493# We may get other options which we leave undocumented:
1494# --with-target-subdir, --with-multisrctop, --with-multisubdir
1495# See config-ml.in if you want the gory details.
0fd91e0a 1496
076e5443
PB
1497if test "$srcdir" = "."; then
1498 if test "$with_target_subdir" != "."; then
1499 multi_basedir="$srcdir/$with_multisrctop../.."
0fd91e0a 1500 else
076e5443 1501 multi_basedir="$srcdir/$with_multisrctop.."
0fd91e0a
AO
1502 fi
1503else
076e5443 1504 multi_basedir="$srcdir/.."
0fd91e0a
AO
1505fi
1506
dfac8a13 1507
8a489465
JH
1508# Even if the default multilib is not a cross compilation,
1509# it may be that some of the other multilibs are.
1510if test $cross_compiling = no && test $multilib = yes \
1511 && test "x${with_multisubdir}" != x ; then
1512 cross_compiling=maybe
1513fi
1514
076e5443
PB
1515 ac_config_commands="$ac_config_commands default-1"
1516
1517
1518ac_aux_dir=
1519for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
0fd91e0a
AO
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
a8aea176
NN
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
1532 fi
0fd91e0a
AO
1533done
1534if test -z "$ac_aux_dir"; then
076e5443
PB
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
a8aea176 1537 { (exit 1); exit 1; }; }
0fd91e0a 1538fi
a8aea176
NN
1539ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
0fd91e0a 1542
dfac8a13 1543# Make sure we can run config.sub.
a8aea176
NN
1544$ac_config_sub sun4 >/dev/null 2>&1 ||
1545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549echo "$as_me:$LINENO: checking build system type" >&5
1550echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551if test "${ac_cv_build+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 ac_cv_build_alias=$build_alias
1555test -z "$ac_cv_build_alias" &&
1556 ac_cv_build_alias=`$ac_config_guess`
1557test -z "$ac_cv_build_alias" &&
1558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560 { (exit 1); exit 1; }; }
1561ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566fi
1567echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568echo "${ECHO_T}$ac_cv_build" >&6
1569build=$ac_cv_build
1570build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573
1574
1575echo "$as_me:$LINENO: checking host system type" >&5
1576echo $ECHO_N "checking host system type... $ECHO_C" >&6
1577if test "${ac_cv_host+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_host_alias=$host_alias
1581test -z "$ac_cv_host_alias" &&
1582 ac_cv_host_alias=$ac_cv_build_alias
1583ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1585echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588fi
1589echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1590echo "${ECHO_T}$ac_cv_host" >&6
1591host=$ac_cv_host
1592host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597echo "$as_me:$LINENO: checking target system type" >&5
1598echo $ECHO_N "checking target system type... $ECHO_C" >&6
1599if test "${ac_cv_target+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 ac_cv_target_alias=$target_alias
1603test "x$ac_cv_target_alias" = "x" &&
1604 ac_cv_target_alias=$ac_cv_host_alias
1605ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1607echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
dfac8a13 1609
a8aea176
NN
1610fi
1611echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1612echo "${ECHO_T}$ac_cv_target" >&6
1613target=$ac_cv_target
1614target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
dfac8a13 1617
dfac8a13 1618
a8aea176
NN
1619# The aliases save the names the user supplied, while $host etc.
1620# will get canonicalized.
1621test -n "$target_alias" &&
dfac8a13
TT
1622 test "$program_prefix$program_suffix$program_transform_name" = \
1623 NONENONEs,x,x, &&
1624 program_prefix=${target_alias}-
1625
8b55628e 1626# This works around an automake problem.
1e6347d8 1627mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
8b55628e
TT
1628
1629
17210dff 1630am__api_version="1.9"
dfac8a13
TT
1631# Find a good install program. We prefer a C program (faster),
1632# so one script is as good as another. But avoid the broken or
1633# incompatible versions:
1634# SysV /etc/install, /usr/sbin/install
1635# SunOS /usr/etc/install
1636# IRIX /sbin/install
1637# AIX /bin/install
a8aea176 1638# AmigaOS /C/install, which installs bootblocks on floppy discs
dfac8a13
TT
1639# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1640# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1641# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a8aea176 1642# OS/2's system install, which has a completely different semantic
dfac8a13 1643# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1644# Reject install programs that cannot install multiple files.
a8aea176
NN
1645echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1646echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
dfac8a13 1647if test -z "$INSTALL"; then
a8aea176
NN
1648if test "${ac_cv_path_install+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1650else
a8aea176
NN
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 # Account for people who put trailing slashes in PATH elements.
1657case $as_dir/ in
1658 ./ | .// | /cC/* | \
1659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1660 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1661 /usr/ucb/* ) ;;
1662 *)
1663 # OSF1 and SCO ODT 3.0 have their own names for install.
1664 # Don't use installbsd from OSF since it installs stuff as root
1665 # by default.
1666 for ac_prog in ginstall scoinst install; do
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
dfac8a13 1669 if test $ac_prog = install &&
a8aea176 1670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
dfac8a13
TT
1671 # AIX install. It has an incompatible calling convention.
1672 :
a8aea176
NN
1673 elif test $ac_prog = install &&
1674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675 # program-specific install script used by HP pwplus--don't use.
1676 :
dfac8a13 1677 else
38d24731
RW
1678 rm -rf conftest.one conftest.two conftest.dir
1679 echo one > conftest.one
1680 echo two > conftest.two
1681 mkdir conftest.dir
1682 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1683 test -s conftest.one && test -s conftest.two &&
1684 test -s conftest.dir/conftest.one &&
1685 test -s conftest.dir/conftest.two
1686 then
1687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1688 break 3
1689 fi
dfac8a13
TT
1690 fi
1691 fi
1692 done
a8aea176
NN
1693 done
1694 ;;
1695esac
1696done
1697
38d24731 1698rm -rf conftest.one conftest.two conftest.dir
dfac8a13
TT
1699
1700fi
1701 if test "${ac_cv_path_install+set}" = set; then
a8aea176 1702 INSTALL=$ac_cv_path_install
dfac8a13 1703 else
38d24731
RW
1704 # As a last resort, use the slow shell script. Don't cache a
1705 # value for INSTALL within a source directory, because that will
dfac8a13 1706 # break other packages using the cache if that directory is
38d24731 1707 # removed, or if the value is a relative name.
a8aea176 1708 INSTALL=$ac_install_sh
dfac8a13
TT
1709 fi
1710fi
a8aea176
NN
1711echo "$as_me:$LINENO: result: $INSTALL" >&5
1712echo "${ECHO_T}$INSTALL" >&6
dfac8a13
TT
1713
1714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1715# It thinks the first close brace ends the variable substitution.
1716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1717
a8aea176 1718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
dfac8a13
TT
1719
1720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1721
a8aea176
NN
1722echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1723echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
dfac8a13
TT
1724# Just in case
1725sleep 1
9fabf579 1726echo timestamp > conftest.file
dfac8a13
TT
1727# Do `set' in a subshell so we don't clobber the current shell's
1728# arguments. Must try -L first in case configure is actually a
1729# symlink; some systems play weird games with the mod time of symlinks
1730# (eg FreeBSD returns the mod time of the symlink's containing
1731# directory).
1732if (
9fabf579 1733 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
dfac8a13
TT
1734 if test "$*" = "X"; then
1735 # -L didn't work.
9fabf579 1736 set X `ls -t $srcdir/configure conftest.file`
dfac8a13 1737 fi
9fabf579
KC
1738 rm -f conftest.file
1739 if test "$*" != "X $srcdir/configure conftest.file" \
1740 && test "$*" != "X conftest.file $srcdir/configure"; then
dfac8a13
TT
1741
1742 # If neither matched, then we have a broken ls. This can happen
1743 # if, for instance, CONFIG_SHELL is bash and it inherits a
1744 # broken ls alias from the environment. This has actually
1745 # happened. Such a system could not be considered "sane".
a8aea176
NN
1746 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1747alias in your environment" >&5
1748echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1749alias in your environment" >&2;}
1750 { (exit 1); exit 1; }; }
dfac8a13
TT
1751 fi
1752
9fabf579 1753 test "$2" = conftest.file
dfac8a13
TT
1754 )
1755then
1756 # Ok.
1757 :
1758else
a8aea176
NN
1759 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1760Check your system clock" >&5
1761echo "$as_me: error: newly created file is older than distributed files!
1762Check your system clock" >&2;}
1763 { (exit 1); exit 1; }; }
dfac8a13 1764fi
a8aea176
NN
1765echo "$as_me:$LINENO: result: yes" >&5
1766echo "${ECHO_T}yes" >&6
dfac8a13 1767test "$program_prefix" != NONE &&
a8aea176 1768 program_transform_name="s,^,$program_prefix,;$program_transform_name"
dfac8a13
TT
1769# Use a double $ so make ignores it.
1770test "$program_suffix" != NONE &&
a8aea176
NN
1771 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1772# Double any \ or $. echo might interpret backslashes.
1773# By default was `s,x,x', remove it if useless.
1774cat <<\_ACEOF >conftest.sed
1775s/[\\$]/&&/g;s/;s,x,x,$//
1776_ACEOF
1777program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1778rm conftest.sed
1779
9fabf579
KC
1780# expand $ac_aux_dir to an absolute path
1781am_aux_dir=`cd $ac_aux_dir && pwd`
1782
1783test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1784# Use eval to expand $SHELL
1785if eval "$MISSING --run true"; then
1786 am_missing_run="$MISSING --run "
1787else
1788 am_missing_run=
1789 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1790echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1791fi
1792
076e5443 1793if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
17210dff
TT
1794 # We used to keeping the `.' as first argument, in order to
1795 # allow $(mkdir_p) to be used without argument. As in
076e5443 1796 # $(mkdir_p) $(somedir)
17210dff
TT
1797 # where $(somedir) is conditionally defined. However this is wrong
1798 # for two reasons:
1799 # 1. if the package is installed by a user who cannot write `.'
1800 # make install will fail,
1801 # 2. the above comment should most certainly read
1802 # $(mkdir_p) $(DESTDIR)$(somedir)
1803 # so it does not work when $(somedir) is undefined and
1804 # $(DESTDIR) is not.
1805 # To support the latter case, we have to write
1806 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1807 # so the `.' trick is pointless.
1808 mkdir_p='mkdir -p --'
076e5443
PB
1809else
1810 # On NextStep and OpenStep, the `mkdir' command does not
1811 # recognize any option. It will interpret all options as
1812 # directories to create, and then abort because `.' already
1813 # exists.
1814 for d in ./-p ./--version;
1815 do
1816 test -d $d && rmdir $d
1817 done
1818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1819 if test -f "$ac_aux_dir/mkinstalldirs"; then
1820 mkdir_p='$(mkinstalldirs)'
1821 else
1822 mkdir_p='$(install_sh) -d'
1823 fi
1824fi
1825
9fabf579
KC
1826for ac_prog in gawk mawk nawk awk
1827do
1828 # Extract the first word of "$ac_prog", so it can be a program name with args.
1829set dummy $ac_prog; ac_word=$2
1830echo "$as_me:$LINENO: checking for $ac_word" >&5
1831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832if test "${ac_cv_prog_AWK+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834else
1835 if test -n "$AWK"; then
1836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1837else
1838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839for as_dir in $PATH
1840do
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_AWK="$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1848 fi
1849done
1850done
1851
1852fi
1853fi
1854AWK=$ac_cv_prog_AWK
1855if test -n "$AWK"; then
1856 echo "$as_me:$LINENO: result: $AWK" >&5
1857echo "${ECHO_T}$AWK" >&6
1858else
1859 echo "$as_me:$LINENO: result: no" >&5
1860echo "${ECHO_T}no" >&6
1861fi
1862
1863 test -n "$AWK" && break
1864done
1865
a8aea176
NN
1866echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1867echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1868set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1869if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1871else
a8aea176 1872 cat >conftest.make <<\_ACEOF
dfac8a13 1873all:
a8aea176
NN
1874 @echo 'ac_maketemp="$(MAKE)"'
1875_ACEOF
dfac8a13 1876# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8aea176 1877eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
dfac8a13
TT
1878if test -n "$ac_maketemp"; then
1879 eval ac_cv_prog_make_${ac_make}_set=yes
1880else
1881 eval ac_cv_prog_make_${ac_make}_set=no
1882fi
a8aea176 1883rm -f conftest.make
dfac8a13
TT
1884fi
1885if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a8aea176
NN
1886 echo "$as_me:$LINENO: result: yes" >&5
1887echo "${ECHO_T}yes" >&6
dfac8a13
TT
1888 SET_MAKE=
1889else
a8aea176
NN
1890 echo "$as_me:$LINENO: result: no" >&5
1891echo "${ECHO_T}no" >&6
dfac8a13
TT
1892 SET_MAKE="MAKE=${MAKE-make}"
1893fi
1894
9fabf579
KC
1895rm -rf .tst 2>/dev/null
1896mkdir .tst 2>/dev/null
1897if test -d .tst; then
1898 am__leading_dot=.
1899else
1900 am__leading_dot=_
1901fi
1902rmdir .tst 2>/dev/null
dfac8a13 1903
076e5443 1904# test to see if srcdir already configured
9fabf579
KC
1905if test "`cd $srcdir && pwd`" != "`pwd`" &&
1906 test -f $srcdir/config.status; then
a8aea176
NN
1907 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1908echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1909 { (exit 1); exit 1; }; }
dfac8a13 1910fi
a8aea176 1911
9fabf579
KC
1912# test whether we have cygpath
1913if test -z "$CYGPATH_W"; then
1914 if (cygpath --version) >/dev/null 2>/dev/null; then
1915 CYGPATH_W='cygpath -w'
1916 else
1917 CYGPATH_W=echo
1918 fi
1919fi
1920
1921
1922# Define the identity of the package.
1923 PACKAGE=zlib
1924 VERSION=1.1.4
1925
1926
a8aea176 1927cat >>confdefs.h <<_ACEOF
dfac8a13 1928#define PACKAGE "$PACKAGE"
a8aea176 1929_ACEOF
dfac8a13 1930
a8aea176
NN
1931
1932cat >>confdefs.h <<_ACEOF
dfac8a13 1933#define VERSION "$VERSION"
a8aea176 1934_ACEOF
dfac8a13 1935
9fabf579
KC
1936# Some tools Automake needs.
1937
1938ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1939
1940
1941AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1942
1943
1944AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
dfac8a13
TT
1945
1946
9fabf579
KC
1947AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1948
1949
1950MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1951
9fabf579
KC
1952install_sh=${install_sh-"$am_aux_dir/install-sh"}
1953
1954# Installed binaries are usually stripped using `strip' when the user
1955# run `make install-strip'. However `strip' might not be the right
1956# tool to use in cross-compilation environments, therefore Automake
1957# will honor the `STRIP' environment variable to overrule this program.
1958if test "$cross_compiling" != no; then
1959 if test -n "$ac_tool_prefix"; then
1960 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1961set dummy ${ac_tool_prefix}strip; ac_word=$2
1962echo "$as_me:$LINENO: checking for $ac_word" >&5
1963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964if test "${ac_cv_prog_STRIP+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1966else
9fabf579
KC
1967 if test -n "$STRIP"; then
1968 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1969else
1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971for as_dir in $PATH
1972do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 break 2
1980 fi
1981done
1982done
dfac8a13 1983
9fabf579
KC
1984fi
1985fi
1986STRIP=$ac_cv_prog_STRIP
1987if test -n "$STRIP"; then
1988 echo "$as_me:$LINENO: result: $STRIP" >&5
1989echo "${ECHO_T}$STRIP" >&6
dfac8a13 1990else
9fabf579
KC
1991 echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6
dfac8a13
TT
1993fi
1994
dfac8a13 1995fi
9fabf579
KC
1996if test -z "$ac_cv_prog_STRIP"; then
1997 ac_ct_STRIP=$STRIP
1998 # Extract the first word of "strip", so it can be a program name with args.
1999set dummy strip; ac_word=$2
2000echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005 if test -n "$ac_ct_STRIP"; then
2006 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_ac_ct_STRIP="strip"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2018 fi
2019done
2020done
dfac8a13 2021
9fabf579
KC
2022 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2023fi
2024fi
2025ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2026if test -n "$ac_ct_STRIP"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2028echo "${ECHO_T}$ac_ct_STRIP" >&6
dfac8a13 2029else
9fabf579
KC
2030 echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6
dfac8a13
TT
2032fi
2033
9fabf579 2034 STRIP=$ac_ct_STRIP
dfac8a13 2035else
9fabf579
KC
2036 STRIP="$ac_cv_prog_STRIP"
2037fi
2038
dfac8a13 2039fi
9fabf579
KC
2040INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2041
2042# We need awk for the "check" target. The system "awk" is bad on
2043# some platforms.
17210dff
TT
2044# Always define AMTAR for backward compatibility.
2045
2046AMTAR=${AMTAR-"${am_missing_run}tar"}
2047
2048am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2049
2050
9fabf579 2051
dfac8a13
TT
2052
2053
2054
a8aea176
NN
2055echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2056echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
e093c992
AG
2057 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2058if test "${enable_maintainer_mode+set}" = set; then
2059 enableval="$enable_maintainer_mode"
2060 USE_MAINTAINER_MODE=$enableval
2061else
2062 USE_MAINTAINER_MODE=no
a8aea176
NN
2063fi;
2064 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2065echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
e093c992 2066
e093c992
AG
2067
2068if test $USE_MAINTAINER_MODE = yes; then
2069 MAINTAINER_MODE_TRUE=
2070 MAINTAINER_MODE_FALSE='#'
2071else
2072 MAINTAINER_MODE_TRUE='#'
2073 MAINTAINER_MODE_FALSE=
2074fi
9fabf579 2075
e093c992 2076 MAINT=$MAINTAINER_MODE_TRUE
a8aea176
NN
2077
2078
e093c992
AG
2079
2080
dfac8a13
TT
2081# Check whether --with-target-subdir or --without-target-subdir was given.
2082if test "${with_target_subdir+set}" = set; then
2083 withval="$with_target_subdir"
a8aea176
NN
2084
2085fi;
2086
2087if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2088 COMPPATH=.
2089else
2090 COMPPATH=..
dfac8a13
TT
2091fi
2092
a8aea176
NN
2093
2094
dfac8a13
TT
2095# Check whether --with-cross-host or --without-cross-host was given.
2096if test "${with_cross_host+set}" = set; then
2097 withval="$with_cross_host"
dfac8a13 2098
a8aea176 2099fi;
dfac8a13
TT
2100
2101# Check whether --enable-multilib or --disable-multilib was given.
2102if test "${enable_multilib+set}" = set; then
2103 enableval="$enable_multilib"
2104 case "${enableval}" in
2105 yes) multilib=yes ;;
2106 no) multilib=no ;;
a8aea176
NN
2107 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2108echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2109 { (exit 1); exit 1; }; } ;;
dfac8a13
TT
2110 esac
2111else
67d08194 2112 test -z "$with_target_subdir" && multilib=no || multilib=yes
a8aea176 2113fi;
dfac8a13 2114
79a9a529
TT
2115# Check whether --with-system-zlib or --without-system-zlib was given.
2116if test "${with_system_zlib+set}" = set; then
2117 withval="$with_system_zlib"
79a9a529 2118
a8aea176
NN
2119fi;
2120
2121# Make sure we don't test executables when making cross-tools.
2122
2123
076e5443
PB
2124# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2125# We must force CC to /not/ be precious variables; otherwise
2126# the wrong, non-multilib-adjusted value will be used in multilibs.
2127# As a side effect, we have to subst CFLAGS ourselves.
2128
2129
2130
a8aea176
NN
2131ac_ext=c
2132ac_cpp='$CPP $CPPFLAGS'
2133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135ac_compiler_gnu=$ac_cv_c_compiler_gnu
2136if test -n "$ac_tool_prefix"; then
2137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2138set dummy ${ac_tool_prefix}gcc; ac_word=$2
2139echo "$as_me:$LINENO: checking for $ac_word" >&5
2140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2141if test "${ac_cv_prog_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144 if test -n "$CC"; then
2145 ac_cv_prog_CC="$CC" # Let the user override the test.
2146else
2147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148for as_dir in $PATH
2149do
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 break 2
2157 fi
2158done
2159done
79a9a529 2160
a8aea176
NN
2161fi
2162fi
2163CC=$ac_cv_prog_CC
2164if test -n "$CC"; then
2165 echo "$as_me:$LINENO: result: $CC" >&5
2166echo "${ECHO_T}$CC" >&6
2167else
2168 echo "$as_me:$LINENO: result: no" >&5
2169echo "${ECHO_T}no" >&6
2170fi
025fd00e 2171
a8aea176
NN
2172fi
2173if test -z "$ac_cv_prog_CC"; then
2174 ac_ct_CC=$CC
2175 # Extract the first word of "gcc", so it can be a program name with args.
dfac8a13 2176set dummy gcc; ac_word=$2
a8aea176
NN
2177echo "$as_me:$LINENO: checking for $ac_word" >&5
2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 if test -n "$ac_ct_CC"; then
2183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184else
2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192 ac_cv_prog_ac_ct_CC="gcc"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196done
2197done
2198
2199fi
2200fi
2201ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202if test -n "$ac_ct_CC"; then
2203 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204echo "${ECHO_T}$ac_ct_CC" >&6
2205else
2206 echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6
2208fi
2209
2210 CC=$ac_ct_CC
2211else
2212 CC="$ac_cv_prog_CC"
2213fi
2214
2215if test -z "$CC"; then
2216 if test -n "$ac_tool_prefix"; then
2217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2218set dummy ${ac_tool_prefix}cc; ac_word=$2
2219echo "$as_me:$LINENO: checking for $ac_word" >&5
2220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221if test "${ac_cv_prog_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2223else
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2226else
a8aea176
NN
2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_CC="${ac_tool_prefix}cc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2237 fi
2238done
2239done
2240
dfac8a13
TT
2241fi
2242fi
a8aea176 2243CC=$ac_cv_prog_CC
dfac8a13 2244if test -n "$CC"; then
a8aea176
NN
2245 echo "$as_me:$LINENO: result: $CC" >&5
2246echo "${ECHO_T}$CC" >&6
2247else
2248 echo "$as_me:$LINENO: result: no" >&5
2249echo "${ECHO_T}no" >&6
2250fi
2251
2252fi
2253if test -z "$ac_cv_prog_CC"; then
2254 ac_ct_CC=$CC
2255 # Extract the first word of "cc", so it can be a program name with args.
2256set dummy cc; ac_word=$2
2257echo "$as_me:$LINENO: checking for $ac_word" >&5
2258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262 if test -n "$ac_ct_CC"; then
2263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264else
2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_ac_ct_CC="cc"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2275 fi
2276done
2277done
2278
2279fi
2280fi
2281ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282if test -n "$ac_ct_CC"; then
2283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284echo "${ECHO_T}$ac_ct_CC" >&6
dfac8a13 2285else
a8aea176
NN
2286 echo "$as_me:$LINENO: result: no" >&5
2287echo "${ECHO_T}no" >&6
dfac8a13
TT
2288fi
2289
a8aea176
NN
2290 CC=$ac_ct_CC
2291else
2292 CC="$ac_cv_prog_CC"
2293fi
2294
2295fi
dfac8a13
TT
2296if test -z "$CC"; then
2297 # Extract the first word of "cc", so it can be a program name with args.
2298set dummy cc; ac_word=$2
a8aea176
NN
2299echo "$as_me:$LINENO: checking for $ac_word" >&5
2300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301if test "${ac_cv_prog_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2303else
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC="$CC" # Let the user override the test.
2306else
dfac8a13 2307 ac_prog_rejected=no
a8aea176
NN
2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2316 ac_prog_rejected=yes
2317 continue
2318 fi
2319 ac_cv_prog_CC="cc"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323done
2324done
2325
dfac8a13
TT
2326if test $ac_prog_rejected = yes; then
2327 # We found a bogon in the path, so make sure we never use it.
2328 set dummy $ac_cv_prog_CC
2329 shift
a8aea176 2330 if test $# != 0; then
dfac8a13
TT
2331 # We chose a different compiler from the bogus one.
2332 # However, it has the same basename, so the bogon will be chosen
2333 # first if we set CC to just the basename; use the full file name.
2334 shift
a8aea176 2335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
dfac8a13
TT
2336 fi
2337fi
2338fi
2339fi
a8aea176 2340CC=$ac_cv_prog_CC
dfac8a13 2341if test -n "$CC"; then
a8aea176
NN
2342 echo "$as_me:$LINENO: result: $CC" >&5
2343echo "${ECHO_T}$CC" >&6
dfac8a13 2344else
a8aea176
NN
2345 echo "$as_me:$LINENO: result: no" >&5
2346echo "${ECHO_T}no" >&6
dfac8a13
TT
2347fi
2348
dfac8a13 2349fi
a8aea176
NN
2350if test -z "$CC"; then
2351 if test -n "$ac_tool_prefix"; then
2352 for ac_prog in cl
2353 do
2354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2355set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2356echo "$as_me:$LINENO: checking for $ac_word" >&5
2357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358if test "${ac_cv_prog_CC+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 2360else
a8aea176
NN
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
dfac8a13 2363else
a8aea176
NN
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375done
2376done
2377
dfac8a13 2378fi
a8aea176
NN
2379fi
2380CC=$ac_cv_prog_CC
2381if test -n "$CC"; then
2382 echo "$as_me:$LINENO: result: $CC" >&5
2383echo "${ECHO_T}$CC" >&6
2384else
2385 echo "$as_me:$LINENO: result: no" >&5
2386echo "${ECHO_T}no" >&6
dfac8a13
TT
2387fi
2388
a8aea176
NN
2389 test -n "$CC" && break
2390 done
2391fi
2392if test -z "$CC"; then
2393 ac_ct_CC=$CC
2394 for ac_prog in cl
2395do
2396 # Extract the first word of "$ac_prog", so it can be a program name with args.
2397set dummy $ac_prog; ac_word=$2
2398echo "$as_me:$LINENO: checking for $ac_word" >&5
2399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 2402else
a8aea176
NN
2403 if test -n "$ac_ct_CC"; then
2404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2405else
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_ac_ct_CC="$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2416 fi
2417done
2418done
2419
2420fi
2421fi
2422ac_ct_CC=$ac_cv_prog_ac_ct_CC
2423if test -n "$ac_ct_CC"; then
2424 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2425echo "${ECHO_T}$ac_ct_CC" >&6
dfac8a13 2426else
a8aea176
NN
2427 echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6
dfac8a13 2429fi
dfac8a13 2430
a8aea176
NN
2431 test -n "$ac_ct_CC" && break
2432done
2433
2434 CC=$ac_ct_CC
2435fi
2436
2437fi
2438
2439
18c04407
RW
2440test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2441echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
a8aea176
NN
2443See \`config.log' for more details." >&5
2444echo "$as_me: error: no acceptable C compiler found in \$PATH
2445See \`config.log' for more details." >&2;}
18c04407 2446 { (exit 1); exit 1; }; }; }
a8aea176
NN
2447
2448# Provide some information about the compiler.
2449echo "$as_me:$LINENO:" \
2450 "checking for C compiler version" >&5
2451ac_compiler=`set X $ac_compile; echo $2`
2452{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2453 (eval $ac_compiler --version </dev/null >&5) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2458 (eval $ac_compiler -v </dev/null >&5) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }
2462{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2463 (eval $ac_compiler -V </dev/null >&5) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }
2467
2468cat >conftest.$ac_ext <<_ACEOF
2469/* confdefs.h. */
2470_ACEOF
2471cat confdefs.h >>conftest.$ac_ext
2472cat >>conftest.$ac_ext <<_ACEOF
2473/* end confdefs.h. */
2474
2475int
2476main ()
2477{
2478
2479 ;
2480 return 0;
2481}
2482_ACEOF
2483# FIXME: Cleanup?
2484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2485 (eval $ac_link) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; then
2489 gcc_no_link=no
2490else
2491 gcc_no_link=yes
dfac8a13
TT
2492fi
2493
a8aea176
NN
2494if test x$gcc_no_link = xyes; then
2495 # Setting cross_compile will disable run tests; it will
2496 # also disable AC_CHECK_FILE but that's generally
2497 # correct if we can't link.
2498 cross_compiling=yes
2499 EXEEXT=
2500else
2501 cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h. */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h. */
2507
2508int
2509main ()
2510{
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516ac_clean_files_save=$ac_clean_files
2517ac_clean_files="$ac_clean_files a.out a.exe b.out"
2518# Try to create an executable without -o first, disregard a.out.
2519# It will help us diagnose broken compilers, and finding out an intuition
2520# of exeext.
2521echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2522echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2523ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2524if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2525 (eval $ac_link_default) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; then
2529 # Find the output, starting from the most likely. This scheme is
2530# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2531# resort.
2532
2533# Be careful to initialize this variable, since it used to be cached.
2534# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2535ac_cv_exeext=
2536# b.out is created by i960 compilers.
2537for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2538do
2539 test -f "$ac_file" || continue
2540 case $ac_file in
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2542 ;;
2543 conftest.$ac_ext )
2544 # This is the source file.
2545 ;;
2546 [ab].out )
2547 # We found the default executable, but exeext='' is most
2548 # certainly right.
2549 break;;
2550 *.* )
2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # FIXME: I believe we export ac_cv_exeext for Libtool,
2553 # but it would be cool to find out if it's true. Does anybody
2554 # maintain Libtool? --akim.
2555 export ac_cv_exeext
2556 break;;
2557 * )
2558 break;;
2559 esac
2560done
2561else
2562 echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
18c04407
RW
2565{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566echo "$as_me: error: in \`$ac_pwd':" >&2;}
a8aea176
NN
2567{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: C compiler cannot create executables
2570See \`config.log' for more details." >&2;}
18c04407 2571 { (exit 77); exit 77; }; }; }
a8aea176
NN
2572fi
2573
2574ac_exeext=$ac_cv_exeext
2575echo "$as_me:$LINENO: result: $ac_file" >&5
2576echo "${ECHO_T}$ac_file" >&6
2577
2578# Check the compiler produces executables we can run. If not, either
2579# the compiler is broken, or we cross compile.
2580echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2581echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2582# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2583# If not cross compiling, check that we can run a simple program.
2584if test "$cross_compiling" != yes; then
2585 if { ac_try='./$ac_file'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 cross_compiling=no
dfac8a13 2592 else
a8aea176
NN
2593 if test "$cross_compiling" = maybe; then
2594 cross_compiling=yes
2595 else
18c04407
RW
2596 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2597echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
a8aea176
NN
2599If you meant to cross compile, use \`--host'.
2600See \`config.log' for more details." >&5
2601echo "$as_me: error: cannot run C compiled programs.
2602If you meant to cross compile, use \`--host'.
2603See \`config.log' for more details." >&2;}
18c04407 2604 { (exit 1); exit 1; }; }; }
a8aea176 2605 fi
dfac8a13 2606 fi
a8aea176
NN
2607fi
2608echo "$as_me:$LINENO: result: yes" >&5
2609echo "${ECHO_T}yes" >&6
2610
2611rm -f a.out a.exe conftest$ac_cv_exeext b.out
2612ac_clean_files=$ac_clean_files_save
2613# Check the compiler produces executables we can run. If not, either
2614# the compiler is broken, or we cross compile.
2615echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2616echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2617echo "$as_me:$LINENO: result: $cross_compiling" >&5
2618echo "${ECHO_T}$cross_compiling" >&6
2619
2620echo "$as_me:$LINENO: checking for suffix of executables" >&5
2621echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623 (eval $ac_link) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; then
2627 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2628# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2629# work properly (i.e., refer to `conftest.exe'), while it won't with
2630# `rm'.
2631for ac_file in conftest.exe conftest conftest.*; do
2632 test -f "$ac_file" || continue
2633 case $ac_file in
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636 export ac_cv_exeext
2637 break;;
2638 * ) break;;
2639 esac
2640done
dfac8a13 2641else
18c04407
RW
2642 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2643echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
a8aea176
NN
2645See \`config.log' for more details." >&5
2646echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2647See \`config.log' for more details." >&2;}
18c04407 2648 { (exit 1); exit 1; }; }; }
a8aea176
NN
2649fi
2650
2651rm -f conftest$ac_cv_exeext
2652echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2653echo "${ECHO_T}$ac_cv_exeext" >&6
2654
2655rm -f conftest.$ac_ext
2656EXEEXT=$ac_cv_exeext
2657ac_exeext=$EXEEXT
2658fi
2659echo "$as_me:$LINENO: checking for suffix of object files" >&5
2660echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2661if test "${ac_cv_objext+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
5d836b57 2663else
a8aea176
NN
2664 cat >conftest.$ac_ext <<_ACEOF
2665/* confdefs.h. */
2666_ACEOF
2667cat confdefs.h >>conftest.$ac_ext
2668cat >>conftest.$ac_ext <<_ACEOF
2669/* end confdefs.h. */
5d836b57 2670
a8aea176
NN
2671int
2672main ()
2673{
5d836b57 2674
a8aea176
NN
2675 ;
2676 return 0;
2677}
2678_ACEOF
2679rm -f conftest.o conftest.obj
2680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; then
2685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2686 case $ac_file in
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689 break;;
2690 esac
2691done
5d836b57 2692else
a8aea176
NN
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
2695
18c04407
RW
2696{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2697echo "$as_me: error: in \`$ac_pwd':" >&2;}
a8aea176
NN
2698{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2699See \`config.log' for more details." >&5
2700echo "$as_me: error: cannot compute suffix of object files: cannot compile
2701See \`config.log' for more details." >&2;}
18c04407 2702 { (exit 1); exit 1; }; }; }
5d836b57
TT
2703fi
2704
a8aea176
NN
2705rm -f conftest.$ac_cv_objext conftest.$ac_ext
2706fi
2707echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2708echo "${ECHO_T}$ac_cv_objext" >&6
2709OBJEXT=$ac_cv_objext
2710ac_objext=$OBJEXT
2711echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2712echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2713if test "${ac_cv_c_compiler_gnu+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
5d836b57 2715else
a8aea176
NN
2716 cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
5d836b57 2722
a8aea176
NN
2723int
2724main ()
2725{
2726#ifndef __GNUC__
2727 choke me
2728#endif
2729
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
17210dff
TT
2743 { ac_try='test -z "$ac_c_werror_flag"
2744 || test ! -s conftest.err'
a8aea176
NN
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 ac_compiler_gnu=yes
5d836b57 2757else
a8aea176
NN
2758 echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761ac_compiler_gnu=no
5d836b57 2762fi
a8aea176
NN
2763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764ac_cv_c_compiler_gnu=$ac_compiler_gnu
5d836b57 2765
a8aea176
NN
2766fi
2767echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2768echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2769GCC=`test $ac_compiler_gnu = yes && echo yes`
2770ac_test_CFLAGS=${CFLAGS+set}
2771ac_save_CFLAGS=$CFLAGS
2772CFLAGS="-g"
2773echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2775if test "${ac_cv_prog_cc_g+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778 cat >conftest.$ac_ext <<_ACEOF
2779/* confdefs.h. */
2780_ACEOF
2781cat confdefs.h >>conftest.$ac_ext
2782cat >>conftest.$ac_ext <<_ACEOF
2783/* end confdefs.h. */
5d836b57 2784
a8aea176
NN
2785int
2786main ()
2787{
5d836b57 2788
a8aea176
NN
2789 ;
2790 return 0;
2791}
2792_ACEOF
2793rm -f conftest.$ac_objext
2794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
17210dff
TT
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
a8aea176
NN
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_prog_cc_g=yes
5d836b57 2816else
a8aea176
NN
2817 echo "$as_me: failed program was:" >&5
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
2820ac_cv_prog_cc_g=no
2821fi
2822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823fi
2824echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2825echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2826if test "$ac_test_CFLAGS" = set; then
2827 CFLAGS=$ac_save_CFLAGS
2828elif test $ac_cv_prog_cc_g = yes; then
2829 if test "$GCC" = yes; then
2830 CFLAGS="-g -O2"
2831 else
2832 CFLAGS="-g"
2833 fi
5d836b57 2834else
a8aea176
NN
2835 if test "$GCC" = yes; then
2836 CFLAGS="-O2"
5d836b57 2837 else
a8aea176 2838 CFLAGS=
5d836b57 2839 fi
5d836b57 2840fi
a8aea176
NN
2841echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2842echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2843if test "${ac_cv_prog_cc_stdc+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846 ac_cv_prog_cc_stdc=no
2847ac_save_CC=$CC
2848cat >conftest.$ac_ext <<_ACEOF
2849/* confdefs.h. */
2850_ACEOF
2851cat confdefs.h >>conftest.$ac_ext
2852cat >>conftest.$ac_ext <<_ACEOF
2853/* end confdefs.h. */
2854#include <stdarg.h>
2855#include <stdio.h>
2856#include <sys/types.h>
2857#include <sys/stat.h>
2858/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2859struct buf { int x; };
2860FILE * (*rcsopen) (struct buf *, struct stat *, int);
2861static char *e (p, i)
2862 char **p;
2863 int i;
2864{
2865 return p[i];
2866}
2867static char *f (char * (*g) (char **, int), char **p, ...)
2868{
2869 char *s;
2870 va_list v;
2871 va_start (v,p);
2872 s = g (p, va_arg (v,int));
2873 va_end (v);
2874 return s;
2875}
5d836b57 2876
a8aea176
NN
2877/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2878 function prototypes and stuff, but not '\xHH' hex character constants.
2879 These don't provoke an error unfortunately, instead are silently treated
2880 as 'x'. The following induces an error, until -std1 is added to get
2881 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2882 array size at least. It's necessary to write '\x00'==0 to get something
2883 that's true only with -std1. */
2884int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2885
2886int test (int i, double x);
2887struct s1 {int (*f) (int a);};
2888struct s2 {int (*f) (double a);};
2889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890int argc;
2891char **argv;
2892int
2893main ()
2894{
2895return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900# Don't try gcc -ansi; that turns off useful extensions and
2901# breaks some systems' header files.
2902# AIX -qlanglvl=ansi
2903# Ultrix and OSF/1 -std1
2904# HP-UX 10.20 and later -Ae
2905# HP-UX older versions -Aa -D_HPUX_SOURCE
2906# SVR4 -Xc -D__EXTENSIONS__
2907for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2908do
2909 CC="$ac_save_CC $ac_arg"
2910 rm -f conftest.$ac_objext
2911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
17210dff
TT
2919 { ac_try='test -z "$ac_c_werror_flag"
2920 || test ! -s conftest.err'
a8aea176
NN
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_prog_cc_stdc=$ac_arg
2933break
2934else
2935 echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938fi
2939rm -f conftest.err conftest.$ac_objext
2940done
2941rm -f conftest.$ac_ext conftest.$ac_objext
2942CC=$ac_save_CC
2943
2944fi
2945
2946case "x$ac_cv_prog_cc_stdc" in
2947 x|xno)
2948 echo "$as_me:$LINENO: result: none needed" >&5
2949echo "${ECHO_T}none needed" >&6 ;;
2950 *)
2951 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2952echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2953 CC="$CC $ac_cv_prog_cc_stdc" ;;
2954esac
2955
2956# Some people use a C++ compiler to compile C. Since we use `exit',
2957# in C++ we need to declare it. In case someone uses the same compiler
2958# for both compiling C and C++ we need to have the C++ compiler decide
2959# the declaration of exit, since it's the most demanding environment.
2960cat >conftest.$ac_ext <<_ACEOF
2961#ifndef __cplusplus
2962 choke me
2963#endif
2964_ACEOF
2965rm -f conftest.$ac_objext
2966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
17210dff
TT
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
a8aea176
NN
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 for ac_declaration in \
2988 '' \
2989 'extern "C" void std::exit (int) throw (); using std::exit;' \
2990 'extern "C" void std::exit (int); using std::exit;' \
2991 'extern "C" void exit (int) throw ();' \
2992 'extern "C" void exit (int);' \
2993 'void exit (int);'
2994do
2995 cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001$ac_declaration
3002#include <stdlib.h>
3003int
3004main ()
3005{
3006exit (42);
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
17210dff
TT
3020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
a8aea176
NN
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 :
3034else
3035 echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038continue
3039fi
3040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041 cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h. */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h. */
3047$ac_declaration
3048int
3049main ()
3050{
3051exit (42);
3052 ;
3053 return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext
3057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058 (eval $ac_compile) 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
17210dff
TT
3065 { ac_try='test -z "$ac_c_werror_flag"
3066 || test ! -s conftest.err'
a8aea176
NN
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 break
3079else
3080 echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083fi
3084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085done
3086rm -f conftest*
3087if test -n "$ac_declaration"; then
3088 echo '#ifdef __cplusplus' >>confdefs.h
3089 echo $ac_declaration >>confdefs.h
3090 echo '#endif' >>confdefs.h
3091fi
3092
3093else
3094 echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
5d836b57 3096
5d836b57 3097fi
a8aea176
NN
3098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3099ac_ext=c
3100ac_cpp='$CPP $CPPFLAGS'
3101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103ac_compiler_gnu=$ac_cv_c_compiler_gnu
9fabf579
KC
3104DEPDIR="${am__leading_dot}deps"
3105
3106 ac_config_commands="$ac_config_commands depfiles"
3107
3108
3109am_make=${MAKE-make}
3110cat > confinc << 'END'
3111am__doit:
3112 @echo done
3113.PHONY: am__doit
3114END
3115# If we don't find an include directive, just comment out the code.
3116echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3117echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3118am__include="#"
3119am__quote=
3120_am_result=none
3121# First try GNU make style include.
3122echo "include confinc" > confmf
3123# We grep out `Entering directory' and `Leaving directory'
3124# messages which can occur if `w' ends up in MAKEFLAGS.
3125# In particular we don't look at `^make:' because GNU make might
3126# be invoked under some other name (usually "gmake"), in which
3127# case it prints its new name instead of `make'.
3128if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3129 am__include=include
3130 am__quote=
3131 _am_result=GNU
3132fi
3133# Now try BSD make style include.
3134if test "$am__include" = "#"; then
3135 echo '.include "confinc"' > confmf
3136 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3137 am__include=.include
3138 am__quote="\""
3139 _am_result=BSD
3140 fi
3141fi
3142
3143
3144echo "$as_me:$LINENO: result: $_am_result" >&5
3145echo "${ECHO_T}$_am_result" >&6
3146rm -f confinc confmf
3147
3148# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3149if test "${enable_dependency_tracking+set}" = set; then
3150 enableval="$enable_dependency_tracking"
3151
3152fi;
3153if test "x$enable_dependency_tracking" != xno; then
3154 am_depcomp="$ac_aux_dir/depcomp"
3155 AMDEPBACKSLASH='\'
3156fi
3157
3158
3159if test "x$enable_dependency_tracking" != xno; then
3160 AMDEP_TRUE=
3161 AMDEP_FALSE='#'
3162else
3163 AMDEP_TRUE='#'
3164 AMDEP_FALSE=
3165fi
3166
3167
3168
3169
3170depcc="$CC" am_compiler_list=
3171
3172echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3173echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3174if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3178 # We make a subdir and do the tests there. Otherwise we can end up
3179 # making bogus files that we don't know about and never remove. For
3180 # instance it was reported that on HP-UX the gcc test will end up
3181 # making a dummy file named `D' -- because `-MD' means `put the output
3182 # in D'.
3183 mkdir conftest.dir
3184 # Copy depcomp to subdir because otherwise we won't find it if we're
3185 # using a relative directory.
3186 cp "$am_depcomp" conftest.dir
3187 cd conftest.dir
3188 # We will build objects and dependencies in a subdirectory because
3189 # it helps to detect inapplicable dependency modes. For instance
3190 # both Tru64's cc and ICC support -MD to output dependencies as a
3191 # side effect of compilation, but ICC will put the dependencies in
3192 # the current directory while Tru64 will put them in the object
3193 # directory.
3194 mkdir sub
3195
3196 am_cv_CC_dependencies_compiler_type=none
3197 if test "$am_compiler_list" = ""; then
3198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3199 fi
3200 for depmode in $am_compiler_list; do
3201 # Setup a source with many dependencies, because some compilers
3202 # like to wrap large dependency lists on column 80 (with \), and
3203 # we should not choose a depcomp mode which is confused by this.
3204 #
3205 # We need to recreate these files for each test, as the compiler may
3206 # overwrite some of them when testing with obscure command lines.
3207 # This happens at least with the AIX C compiler.
3208 : > sub/conftest.c
3209 for i in 1 2 3 4 5 6; do
3210 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
3211 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3212 # Solaris 8's {/usr,}/bin/sh.
3213 touch sub/conftst$i.h
9fabf579
KC
3214 done
3215 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3216
3217 case $depmode in
3218 nosideeffect)
3219 # after this tag, mechanisms are not by side-effect, so they'll
3220 # only be used when explicitly requested
3221 if test "x$enable_dependency_tracking" = xyes; then
3222 continue
3223 else
3224 break
3225 fi
3226 ;;
3227 none) break ;;
3228 esac
3229 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3230 # mode. It turns out that the SunPro C++ compiler does not properly
3231 # handle `-M -o', and we need to detect this.
3232 if depmode=$depmode \
3233 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3235 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3236 >/dev/null 2>conftest.err &&
3237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3238 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3240 # icc doesn't choke on unknown options, it will just issue warnings
076e5443
PB
3241 # or remarks (even with -Werror). So we grep stderr for any message
3242 # that says an option was ignored or not supported.
3243 # When given -MP, icc 7.0 and 7.1 complain thusly:
3244 # icc: Command line warning: ignoring option '-M'; no argument required
3245 # The diagnosis changed in icc 8.0:
3246 # icc: Command line remark: option '-MP' not supported
3247 if (grep 'ignoring option' conftest.err ||
3248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9fabf579
KC
3249 am_cv_CC_dependencies_compiler_type=$depmode
3250 break
3251 fi
3252 fi
3253 done
3254
3255 cd ..
3256 rm -rf conftest.dir
3257else
3258 am_cv_CC_dependencies_compiler_type=none
3259fi
3260
3261fi
3262echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3263echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3264CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3265
3266
3267
3268if
3269 test "x$enable_dependency_tracking" != xno \
3270 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3271 am__fastdepCC_TRUE=
3272 am__fastdepCC_FALSE='#'
3273else
3274 am__fastdepCC_TRUE='#'
3275 am__fastdepCC_FALSE=
3276fi
3277
a8aea176
NN
3278
3279
076e5443
PB
3280
3281
3282
18d98188
PG
3283case `pwd` in
3284 *\ * | *\ *)
3285 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3286echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3287esac
1cf3d07d
SE
3288
3289
1cf3d07d 3290
18d98188
PG
3291macro_version='2.2.6'
3292macro_revision='1.3012'
1cf3d07d
SE
3293
3294
3295
3296
3297
3298
dfac8a13 3299
1cf3d07d
SE
3300
3301
3302
3303
3304
3305
18d98188 3306ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d
SE
3307
3308echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3309echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3310if test "${lt_cv_path_SED+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
3313 # Loop through the user's path and test for sed and gsed.
3314# Then use that list of sed's as ones to test for truncation.
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for lt_ac_prog in sed gsed; do
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3323 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3324 fi
3325 done
3326 done
3327done
3328IFS=$as_save_IFS
3329lt_ac_max=0
3330lt_ac_count=0
3331# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3332# along with /bin/sed that truncates output.
3333for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3334 test ! -f $lt_ac_sed && continue
3335 cat /dev/null > conftest.in
3336 lt_ac_count=0
3337 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3338 # Check for GNU sed and select it if it is found.
3339 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3340 lt_cv_path_SED=$lt_ac_sed
3341 break
3342 fi
3343 while true; do
3344 cat conftest.in conftest.in >conftest.tmp
3345 mv conftest.tmp conftest.in
3346 cp conftest.in conftest.nl
3347 echo >>conftest.nl
3348 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3349 cmp -s conftest.out conftest.nl || break
3350 # 10000 chars as input seems more than enough
3351 test $lt_ac_count -gt 10 && break
3352 lt_ac_count=`expr $lt_ac_count + 1`
3353 if test $lt_ac_count -gt $lt_ac_max; then
3354 lt_ac_max=$lt_ac_count
3355 lt_cv_path_SED=$lt_ac_sed
3356 fi
3357 done
3358done
3359
3360fi
3361
3362SED=$lt_cv_path_SED
3363
3364echo "$as_me:$LINENO: result: $SED" >&5
3365echo "${ECHO_T}$SED" >&6
3366
3367test -z "$SED" && SED=sed
3368Xsed="$SED -e 1s/^X//"
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380echo "$as_me:$LINENO: checking for egrep" >&5
3381echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3382if test "${ac_cv_prog_egrep+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384else
3385 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3386 then ac_cv_prog_egrep='grep -E'
3387 else ac_cv_prog_egrep='egrep'
3388 fi
3389fi
3390echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3391echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3392 EGREP=$ac_cv_prog_egrep
3393
3394
3395echo "$as_me:$LINENO: checking for fgrep" >&5
3396echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3397if test "${ac_cv_prog_fgrep+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3401 then ac_cv_prog_fgrep='grep -F'
3402 else ac_cv_prog_fgrep='fgrep'
3403 fi
3404fi
3405echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3406echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3407 FGREP=$ac_cv_prog_fgrep
3408
3409
3410test -z "$GREP" && GREP=grep
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
dfac8a13
TT
3430# Check whether --with-gnu-ld or --without-gnu-ld was given.
3431if test "${with_gnu_ld+set}" = set; then
3432 withval="$with_gnu_ld"
3433 test "$withval" = no || with_gnu_ld=yes
3434else
3435 with_gnu_ld=no
a8aea176 3436fi;
dfac8a13 3437ac_prog=ld
0fd91e0a 3438if test "$GCC" = yes; then
dfac8a13 3439 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
3440 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3441echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
0fd91e0a
AO
3442 case $host in
3443 *-*-mingw*)
3444 # gcc leaves a trailing carriage return which upsets mingw
3445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3446 *)
3447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3448 esac
3449 case $ac_prog in
dfac8a13 3450 # Accept absolute paths.
1cf3d07d 3451 [\\/]* | ?:[\\/]*)
dfac8a13 3452 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
3453 # Canonicalize the pathname of ld
3454 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3455 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3456 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
dfac8a13
TT
3457 done
3458 test -z "$LD" && LD="$ac_prog"
3459 ;;
3460 "")
3461 # If it fails, then pretend we aren't using GCC.
3462 ac_prog=ld
3463 ;;
3464 *)
3465 # If it is relative, then search for the first ld in PATH.
3466 with_gnu_ld=unknown
3467 ;;
3468 esac
3469elif test "$with_gnu_ld" = yes; then
a8aea176
NN
3470 echo "$as_me:$LINENO: checking for GNU ld" >&5
3471echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
dfac8a13 3472else
a8aea176
NN
3473 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3474echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
dfac8a13 3475fi
a8aea176
NN
3476if test "${lt_cv_path_LD+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
3478else
3479 if test -z "$LD"; then
1cf3d07d 3480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
dfac8a13 3481 for ac_dir in $PATH; do
1cf3d07d 3482 IFS="$lt_save_ifs"
dfac8a13 3483 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
3484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3485 lt_cv_path_LD="$ac_dir/$ac_prog"
dfac8a13 3486 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 3487 # but apparently some variants of GNU ld only accept -v.
dfac8a13 3488 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
3489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3490 *GNU* | *'with BFD'*)
dfac8a13 3491 test "$with_gnu_ld" != no && break
1cf3d07d
SE
3492 ;;
3493 *)
dfac8a13 3494 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
3495 ;;
3496 esac
dfac8a13
TT
3497 fi
3498 done
1cf3d07d 3499 IFS="$lt_save_ifs"
dfac8a13 3500else
0fd91e0a 3501 lt_cv_path_LD="$LD" # Let the user override the test with a path.
dfac8a13
TT
3502fi
3503fi
3504
0fd91e0a 3505LD="$lt_cv_path_LD"
dfac8a13 3506if test -n "$LD"; then
a8aea176
NN
3507 echo "$as_me:$LINENO: result: $LD" >&5
3508echo "${ECHO_T}$LD" >&6
dfac8a13 3509else
a8aea176
NN
3510 echo "$as_me:$LINENO: result: no" >&5
3511echo "${ECHO_T}no" >&6
3512fi
3513test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3514echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3515 { (exit 1); exit 1; }; }
3516echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3517echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3518if test "${lt_cv_prog_gnu_ld+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 3520else
1cf3d07d
SE
3521 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3522case `$LD -v 2>&1 </dev/null` in
3523*GNU* | *'with BFD'*)
0fd91e0a 3524 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
3525 ;;
3526*)
0fd91e0a 3527 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
3528 ;;
3529esac
dfac8a13 3530fi
a8aea176
NN
3531echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3532echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
0fd91e0a 3533with_gnu_ld=$lt_cv_prog_gnu_ld
dfac8a13
TT
3534
3535
0fd91e0a 3536
1cf3d07d
SE
3537
3538
3539
3540
3541
3542
1cf3d07d
SE
3543echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3544echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
a8aea176
NN
3545if test "${lt_cv_path_NM+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
3547else
3548 if test -n "$NM"; then
3549 # Let the user override the test.
0fd91e0a 3550 lt_cv_path_NM="$NM"
dfac8a13 3551else
1cf3d07d
SE
3552 lt_nm_to_check="${ac_tool_prefix}nm"
3553 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3554 lt_nm_to_check="$lt_nm_to_check nm"
3555 fi
3556 for lt_tmp_nm in $lt_nm_to_check; do
3557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3558 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3559 IFS="$lt_save_ifs"
3560 test -z "$ac_dir" && ac_dir=.
3561 tmp_nm="$ac_dir/$lt_tmp_nm"
3562 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3563 # Check to see if the nm accepts a BSD-compat flag.
3564 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3565 # nm: unknown option "B" ignored
3566 # Tru64's nm complains that /dev/null is an invalid object file
3567 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3568 */dev/null* | *'Invalid file or object type'*)
3569 lt_cv_path_NM="$tmp_nm -B"
3570 break
3571 ;;
3572 *)
3573 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3574 */dev/null*)
3575 lt_cv_path_NM="$tmp_nm -p"
3576 break
3577 ;;
3578 *)
3579 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3580 continue # so that we can try to find one that supports BSD flags
3581 ;;
3582 esac
3583 ;;
3584 esac
dfac8a13 3585 fi
1cf3d07d
SE
3586 done
3587 IFS="$lt_save_ifs"
dfac8a13 3588 done
1cf3d07d 3589 : ${lt_cv_path_NM=no}
dfac8a13
TT
3590fi
3591fi
1cf3d07d
SE
3592echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3593echo "${ECHO_T}$lt_cv_path_NM" >&6
3594if test "$lt_cv_path_NM" != "no"; then
3595 NM="$lt_cv_path_NM"
0fd91e0a 3596else
1cf3d07d
SE
3597 # Didn't find any BSD compatible name lister, look for dumpbin.
3598 if test -n "$ac_tool_prefix"; then
3599 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3600 do
3601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3603echo "$as_me:$LINENO: checking for $ac_word" >&5
3604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608 if test -n "$DUMPBIN"; then
3609 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3610else
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622done
3623done
025fd00e 3624
1cf3d07d
SE
3625fi
3626fi
3627DUMPBIN=$ac_cv_prog_DUMPBIN
3628if test -n "$DUMPBIN"; then
3629 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3630echo "${ECHO_T}$DUMPBIN" >&6
3631else
3632 echo "$as_me:$LINENO: result: no" >&5
3633echo "${ECHO_T}no" >&6
3634fi
025fd00e 3635
1cf3d07d
SE
3636 test -n "$DUMPBIN" && break
3637 done
3638fi
3639if test -z "$DUMPBIN"; then
3640 ac_ct_DUMPBIN=$DUMPBIN
3641 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3642do
3643 # Extract the first word of "$ac_prog", so it can be a program name with args.
3644set dummy $ac_prog; ac_word=$2
3645echo "$as_me:$LINENO: checking for $ac_word" >&5
3646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649else
3650 if test -n "$ac_ct_DUMPBIN"; then
3651 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3652else
3653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654for as_dir in $PATH
3655do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
0fd91e0a 3663 fi
1cf3d07d
SE
3664done
3665done
025fd00e 3666
1cf3d07d
SE
3667fi
3668fi
3669ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3670if test -n "$ac_ct_DUMPBIN"; then
3671 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3672echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3673else
3674 echo "$as_me:$LINENO: result: no" >&5
3675echo "${ECHO_T}no" >&6
3676fi
025fd00e 3677
1cf3d07d
SE
3678 test -n "$ac_ct_DUMPBIN" && break
3679done
3680test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
025fd00e 3681
1cf3d07d
SE
3682 DUMPBIN=$ac_ct_DUMPBIN
3683fi
025fd00e 3684
025fd00e 3685
1cf3d07d
SE
3686 if test "$DUMPBIN" != ":"; then
3687 NM="$DUMPBIN"
025fd00e 3688 fi
1cf3d07d
SE
3689fi
3690test -z "$NM" && NM=nm
025fd00e 3691
025fd00e
TT
3692
3693
025fd00e 3694
33456445 3695
025fd00e 3696
1cf3d07d
SE
3697echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3698echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3699if test "${lt_cv_nm_interface+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 lt_cv_nm_interface="BSD nm"
3703 echo "int some_variable = 0;" > conftest.$ac_ext
18d98188 3704 (eval echo "\"\$as_me:3704: $ac_compile\"" >&5)
1cf3d07d
SE
3705 (eval "$ac_compile" 2>conftest.err)
3706 cat conftest.err >&5
18d98188 3707 (eval echo "\"\$as_me:3707: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
3708 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3709 cat conftest.err >&5
18d98188 3710 (eval echo "\"\$as_me:3710: output\"" >&5)
1cf3d07d
SE
3711 cat conftest.out >&5
3712 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3713 lt_cv_nm_interface="MS dumpbin"
3714 fi
3715 rm -f conftest*
025fd00e 3716fi
1cf3d07d
SE
3717echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3718echo "${ECHO_T}$lt_cv_nm_interface" >&6
a8aea176 3719
1cf3d07d
SE
3720echo "$as_me:$LINENO: checking whether ln -s works" >&5
3721echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3722LN_S=$as_ln_s
3723if test "$LN_S" = "ln -s"; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725echo "${ECHO_T}yes" >&6
3726else
3727 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3728echo "${ECHO_T}no, using $LN_S" >&6
3729fi
dfac8a13 3730
6dab073b
MS
3731# find the maximum length of command line arguments
3732echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3733echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3734if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737 i=0
3738 teststring="ABCD"
3739
3740 case $build_os in
3741 msdosdjgpp*)
3742 # On DJGPP, this test can blow up pretty badly due to problems in libc
3743 # (any single argument exceeding 2000 bytes causes a buffer overrun
3744 # during glob expansion). Even if it were fixed, the result of this
3745 # check would be larger than it should be.
3746 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3747 ;;
3748
1cf3d07d
SE
3749 gnu*)
3750 # Under GNU Hurd, this test is not required because there is
3751 # no limit to the length of command line arguments.
3752 # Libtool will interpret -1 as no limit whatsoever
3753 lt_cv_sys_max_cmd_len=-1;
3754 ;;
3755
18d98188 3756 cygwin* | mingw* | cegcc*)
6dab073b
MS
3757 # On Win9x/ME, this test blows up -- it succeeds, but takes
3758 # about 5 minutes as the teststring grows exponentially.
3759 # Worse, since 9x/ME are not pre-emptively multitasking,
3760 # you end up with a "frozen" computer, even though with patience
3761 # the test eventually succeeds (with a max line length of 256k).
3762 # Instead, let's just punt: use the minimum linelength reported by
3763 # all of the supported platforms: 8192 (on NT/2K/XP).
3764 lt_cv_sys_max_cmd_len=8192;
3765 ;;
3766
3767 amigaos*)
3768 # On AmigaOS with pdksh, this test takes hours, literally.
3769 # So we just punt and use a minimum line length of 8192.
3770 lt_cv_sys_max_cmd_len=8192;
3771 ;;
3772
3773 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3774 # This has been around since 386BSD, at least. Likely further.
3775 if test -x /sbin/sysctl; then
3776 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3777 elif test -x /usr/sbin/sysctl; then
3778 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3779 else
1cf3d07d 3780 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
3781 fi
3782 # And add a safety zone
3783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3785 ;;
1cf3d07d
SE
3786
3787 interix*)
3788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3789 lt_cv_sys_max_cmd_len=196608
3790 ;;
3791
3792 osf*)
3793 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3794 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3795 # nice to cause kernel panics so lets avoid the loop below.
3796 # First set a reasonable default.
3797 lt_cv_sys_max_cmd_len=16384
3798 #
3799 if test -x /sbin/sysconfig; then
3800 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3801 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3802 esac
3803 fi
3804 ;;
3805 sco3.2v5*)
3806 lt_cv_sys_max_cmd_len=102400
3807 ;;
3808 sysv5* | sco5v6* | sysv4.2uw2*)
3809 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3810 if test -n "$kargmax"; then
3811 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3812 else
3813 lt_cv_sys_max_cmd_len=32768
3814 fi
3815 ;;
3816 *)
18d98188
PG
3817 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3818 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
3819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3821 else
3822 # Make teststring a little bigger before we do anything with it.
3823 # a 1K string should be a reasonable start.
3824 for i in 1 2 3 4 5 6 7 8 ; do
3825 teststring=$teststring$teststring
3826 done
3827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3828 # If test is not a shell built-in, we'll probably end up computing a
3829 # maximum length that is only half of the actual maximum length, but
3830 # we can't tell.
3831 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3832 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3833 test $i != 17 # 1/2 MB should be enough
3834 do
3835 i=`expr $i + 1`
3836 teststring=$teststring$teststring
3837 done
3838 # Only check the string length outside the loop.
3839 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3840 teststring=
3841 # Add a significant safety factor because C++ compilers can tack on
3842 # massive amounts of additional arguments before passing them to the
3843 # linker. It appears as though 1/2 is a usable value.
3844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3845 fi
1cf3d07d 3846 ;;
6dab073b
MS
3847 esac
3848
3849fi
3850
1cf3d07d 3851if test -n $lt_cv_sys_max_cmd_len ; then
6dab073b
MS
3852 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3853echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3854else
3855 echo "$as_me:$LINENO: result: none" >&5
3856echo "${ECHO_T}none" >&6
3857fi
1cf3d07d 3858max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
3859
3860
dfac8a13 3861
0fd91e0a 3862
dfac8a13 3863
1cf3d07d 3864
1cf3d07d
SE
3865: ${CP="cp -f"}
3866: ${MV="mv -f"}
3867: ${RM="rm -f"}
3868
3869echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3870echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3871# Try some XSI features
3872xsi_shell=no
3873( _lt_dummy="a/b/c"
3874 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
18d98188
PG
3875 = c,a/b,, \
3876 && eval 'test $(( 1 + 1 )) -eq 2 \
3877 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d
SE
3878 && xsi_shell=yes
3879echo "$as_me:$LINENO: result: $xsi_shell" >&5
3880echo "${ECHO_T}$xsi_shell" >&6
3881
3882
3883echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3884echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3885lt_shell_append=no
3886( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3887 >/dev/null 2>&1 \
3888 && lt_shell_append=yes
3889echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3890echo "${ECHO_T}$lt_shell_append" >&6
3891
3892
3893if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3894 lt_unset=unset
0fd91e0a 3895else
1cf3d07d 3896 lt_unset=false
0fd91e0a
AO
3897fi
3898
1cf3d07d
SE
3899
3900
3901
3902
3903# test EBCDIC or ASCII
3904case `echo X|tr X '\101'` in
3905 A) # ASCII based system
3906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3907 lt_SP2NL='tr \040 \012'
3908 lt_NL2SP='tr \015\012 \040\040'
3909 ;;
3910 *) # EBCDIC based system
3911 lt_SP2NL='tr \100 \n'
3912 lt_NL2SP='tr \r\n \100\100'
3913 ;;
3914esac
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3925echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3926if test "${lt_cv_ld_reload_flag+set}" = set; then
a8aea176 3927 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 3928else
1cf3d07d
SE
3929 lt_cv_ld_reload_flag='-r'
3930fi
3931echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3932echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3933reload_flag=$lt_cv_ld_reload_flag
3934case $reload_flag in
3935"" | " "*) ;;
3936*) reload_flag=" $reload_flag" ;;
3937esac
3938reload_cmds='$LD$reload_flag -o $output$reload_objs'
3939case $host_os in
3940 darwin*)
3941 if test "$GCC" = yes; then
3942 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3943 else
3944 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3945 fi
3946 ;;
3947esac
3948
3949
3950
3951
3952
3953
3954
3955
3956
18d98188
PG
3957if test -n "$ac_tool_prefix"; then
3958 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3959set dummy ${ac_tool_prefix}objdump; ac_word=$2
3960echo "$as_me:$LINENO: checking for $ac_word" >&5
3961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965 if test -n "$OBJDUMP"; then
3966 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3967else
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979done
3980done
3981
3982fi
3983fi
3984OBJDUMP=$ac_cv_prog_OBJDUMP
3985if test -n "$OBJDUMP"; then
3986 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3987echo "${ECHO_T}$OBJDUMP" >&6
3988else
3989 echo "$as_me:$LINENO: result: no" >&5
3990echo "${ECHO_T}no" >&6
3991fi
3992
3993fi
3994if test -z "$ac_cv_prog_OBJDUMP"; then
3995 ac_ct_OBJDUMP=$OBJDUMP
3996 # Extract the first word of "objdump", so it can be a program name with args.
3997set dummy objdump; ac_word=$2
3998echo "$as_me:$LINENO: checking for $ac_word" >&5
3999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4000if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003 if test -n "$ac_ct_OBJDUMP"; then
4004 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017done
4018done
4019
4020 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4021fi
4022fi
4023ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4024if test -n "$ac_ct_OBJDUMP"; then
4025 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4026echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4027else
4028 echo "$as_me:$LINENO: result: no" >&5
4029echo "${ECHO_T}no" >&6
4030fi
4031
4032 OBJDUMP=$ac_ct_OBJDUMP
4033else
4034 OBJDUMP="$ac_cv_prog_OBJDUMP"
4035fi
4036
4037test -z "$OBJDUMP" && OBJDUMP=objdump
4038
4039
4040
4041
4042
4043
4044
4045
1cf3d07d
SE
4046
4047echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4048echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4049if test "${lt_cv_deplibs_check_method+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052 lt_cv_file_magic_cmd='$MAGIC_CMD'
4053lt_cv_file_magic_test_file=
4054lt_cv_deplibs_check_method='unknown'
4055# Need to set the preceding variable on all platforms that support
4056# interlibrary dependencies.
4057# 'none' -- dependencies not supported.
4058# `unknown' -- same as none, but documents that we really don't know.
4059# 'pass_all' -- all dependencies passed with no checks.
4060# 'test_compile' -- check by making test program.
4061# 'file_magic [[regex]]' -- check by looking for files in library path
4062# which responds to the $file_magic_cmd with a given extended regex.
4063# If you have `file' or equivalent on your system and you're not sure
4064# whether `pass_all' will *always* work, you probably want this one.
4065
4066case $host_os in
3e7b7e2b 4067aix[4-9]*)
1cf3d07d
SE
4068 lt_cv_deplibs_check_method=pass_all
4069 ;;
4070
4071beos*)
4072 lt_cv_deplibs_check_method=pass_all
4073 ;;
4074
4075bsdi[45]*)
4076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4077 lt_cv_file_magic_cmd='/usr/bin/file -L'
4078 lt_cv_file_magic_test_file=/shlib/libc.so
4079 ;;
4080
4081cygwin*)
4082 # func_win32_libid is a shell function defined in ltmain.sh
4083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4084 lt_cv_file_magic_cmd='func_win32_libid'
4085 ;;
4086
4087mingw* | pw32*)
4088 # Base MSYS/MinGW do not provide the 'file' command needed by
4089 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4090 # unless we find 'file', for example because we are cross-compiling.
4091 if ( file / ) >/dev/null 2>&1; then
4092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4093 lt_cv_file_magic_cmd='func_win32_libid'
4094 else
4095 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4096 lt_cv_file_magic_cmd='$OBJDUMP -f'
4097 fi
4098 ;;
4099
18d98188
PG
4100cegcc)
4101 # use the weaker test based on 'objdump'. See mingw*.
4102 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4103 lt_cv_file_magic_cmd='$OBJDUMP -f'
4104 ;;
4105
1cf3d07d
SE
4106darwin* | rhapsody*)
4107 lt_cv_deplibs_check_method=pass_all
0fd91e0a 4108 ;;
1cf3d07d
SE
4109
4110freebsd* | dragonfly*)
4111 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4112 case $host_cpu in
4113 i*86 )
4114 # Not sure whether the presence of OpenBSD here was a mistake.
4115 # Let's accept both of them until this is cleared up.
4116 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4117 lt_cv_file_magic_cmd=/usr/bin/file
4118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4119 ;;
4120 esac
4121 else
4122 lt_cv_deplibs_check_method=pass_all
4123 fi
4124 ;;
4125
4126gnu*)
4127 lt_cv_deplibs_check_method=pass_all
0fd91e0a 4128 ;;
1cf3d07d
SE
4129
4130hpux10.20* | hpux11*)
4131 lt_cv_file_magic_cmd=/usr/bin/file
4132 case $host_cpu in
4133 ia64*)
4134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4135 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4136 ;;
4137 hppa*64*)
4138 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]'
4139 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4140 ;;
0fd91e0a 4141 *)
1cf3d07d
SE
4142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4143 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4144 ;;
4145 esac
4146 ;;
c45f211e 4147
1cf3d07d
SE
4148interix[3-9]*)
4149 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4151 ;;
dfac8a13 4152
1cf3d07d
SE
4153irix5* | irix6* | nonstopux*)
4154 case $LD in
4155 *-32|*"-32 ") libmagic=32-bit;;
4156 *-n32|*"-n32 ") libmagic=N32;;
4157 *-64|*"-64 ") libmagic=64-bit;;
4158 *) libmagic=never-match;;
4159 esac
4160 lt_cv_deplibs_check_method=pass_all
0fd91e0a 4161 ;;
0fd91e0a 4162
1cf3d07d
SE
4163# This must be Linux ELF.
4164linux* | k*bsd*-gnu)
4165 lt_cv_deplibs_check_method=pass_all
4166 ;;
0fd91e0a 4167
1cf3d07d
SE
4168netbsd*)
4169 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
0fd91e0a 4171 else
1cf3d07d 4172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
0fd91e0a 4173 fi
1cf3d07d
SE
4174 ;;
4175
4176newos6*)
4177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4178 lt_cv_file_magic_cmd=/usr/bin/file
4179 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4180 ;;
4181
4182*nto* | *qnx*)
4183 lt_cv_deplibs_check_method=pass_all
4184 ;;
dfac8a13 4185
1cf3d07d
SE
4186openbsd*)
4187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4189 else
4190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
dfac8a13
TT
4191 fi
4192 ;;
1cf3d07d
SE
4193
4194osf3* | osf4* | osf5*)
4195 lt_cv_deplibs_check_method=pass_all
4196 ;;
4197
4198rdos*)
4199 lt_cv_deplibs_check_method=pass_all
4200 ;;
4201
4202solaris*)
4203 lt_cv_deplibs_check_method=pass_all
4204 ;;
4205
4206sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4207 lt_cv_deplibs_check_method=pass_all
4208 ;;
4209
4210sysv4 | sysv4.3*)
4211 case $host_vendor in
4212 motorola)
4213 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]'
4214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4215 ;;
4216 ncr)
4217 lt_cv_deplibs_check_method=pass_all
4218 ;;
4219 sequent)
4220 lt_cv_file_magic_cmd='/bin/file'
4221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4222 ;;
4223 sni)
4224 lt_cv_file_magic_cmd='/bin/file'
4225 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4226 lt_cv_file_magic_test_file=/lib/libc.so
4227 ;;
4228 siemens)
4229 lt_cv_deplibs_check_method=pass_all
4230 ;;
4231 pc)
4232 lt_cv_deplibs_check_method=pass_all
4233 ;;
4234 esac
4235 ;;
4236
4237tpf*)
4238 lt_cv_deplibs_check_method=pass_all
4239 ;;
0fd91e0a 4240esac
dfac8a13 4241
1cf3d07d
SE
4242fi
4243echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4244echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4245file_magic_cmd=$lt_cv_file_magic_cmd
4246deplibs_check_method=$lt_cv_deplibs_check_method
4247test -z "$deplibs_check_method" && deplibs_check_method=unknown
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
a8aea176 4260if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
4261 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4262set dummy ${ac_tool_prefix}ar; ac_word=$2
a8aea176
NN
4263echo "$as_me:$LINENO: checking for $ac_word" >&5
4264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4265if test "${ac_cv_prog_AR+set}" = set; then
a8aea176 4266 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4267else
1cf3d07d
SE
4268 if test -n "$AR"; then
4269 ac_cv_prog_AR="$AR" # Let the user override the test.
025fd00e 4270else
a8aea176
NN
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4278 ac_cv_prog_AR="${ac_tool_prefix}ar"
a8aea176
NN
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282done
4283done
4284
025fd00e
TT
4285fi
4286fi
1cf3d07d
SE
4287AR=$ac_cv_prog_AR
4288if test -n "$AR"; then
4289 echo "$as_me:$LINENO: result: $AR" >&5
4290echo "${ECHO_T}$AR" >&6
025fd00e 4291else
a8aea176
NN
4292 echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
025fd00e
TT
4294fi
4295
a8aea176 4296fi
1cf3d07d
SE
4297if test -z "$ac_cv_prog_AR"; then
4298 ac_ct_AR=$AR
4299 # Extract the first word of "ar", so it can be a program name with args.
4300set dummy ar; ac_word=$2
a8aea176
NN
4301echo "$as_me:$LINENO: checking for $ac_word" >&5
4302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4303if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
a8aea176 4304 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4305else
1cf3d07d
SE
4306 if test -n "$ac_ct_AR"; then
4307 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
025fd00e 4308else
a8aea176
NN
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4316 ac_cv_prog_ac_ct_AR="ar"
a8aea176
NN
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320done
4321done
4322
1cf3d07d 4323 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
025fd00e
TT
4324fi
4325fi
1cf3d07d
SE
4326ac_ct_AR=$ac_cv_prog_ac_ct_AR
4327if test -n "$ac_ct_AR"; then
4328 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4329echo "${ECHO_T}$ac_ct_AR" >&6
025fd00e 4330else
a8aea176
NN
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
025fd00e
TT
4333fi
4334
1cf3d07d 4335 AR=$ac_ct_AR
025fd00e 4336else
1cf3d07d 4337 AR="$ac_cv_prog_AR"
025fd00e
TT
4338fi
4339
1cf3d07d
SE
4340test -z "$AR" && AR=ar
4341test -z "$AR_FLAGS" && AR_FLAGS=cru
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
a8aea176
NN
4353if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
0fd91e0a 4355set dummy ${ac_tool_prefix}strip; ac_word=$2
a8aea176
NN
4356echo "$as_me:$LINENO: checking for $ac_word" >&5
4357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358if test "${ac_cv_prog_STRIP+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4360else
0fd91e0a
AO
4361 if test -n "$STRIP"; then
4362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e 4363else
a8aea176
NN
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375done
4376done
4377
025fd00e
TT
4378fi
4379fi
a8aea176 4380STRIP=$ac_cv_prog_STRIP
0fd91e0a 4381if test -n "$STRIP"; then
a8aea176
NN
4382 echo "$as_me:$LINENO: result: $STRIP" >&5
4383echo "${ECHO_T}$STRIP" >&6
025fd00e 4384else
a8aea176
NN
4385 echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6
025fd00e
TT
4387fi
4388
a8aea176 4389fi
0fd91e0a 4390if test -z "$ac_cv_prog_STRIP"; then
a8aea176 4391 ac_ct_STRIP=$STRIP
0fd91e0a
AO
4392 # Extract the first word of "strip", so it can be a program name with args.
4393set dummy strip; ac_word=$2
a8aea176
NN
4394echo "$as_me:$LINENO: checking for $ac_word" >&5
4395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4398else
a8aea176
NN
4399 if test -n "$ac_ct_STRIP"; then
4400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
025fd00e 4401else
a8aea176
NN
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_ac_ct_STRIP="strip"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413done
4414done
4415
4416 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
025fd00e
TT
4417fi
4418fi
a8aea176
NN
4419ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4420if test -n "$ac_ct_STRIP"; then
4421 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4422echo "${ECHO_T}$ac_ct_STRIP" >&6
025fd00e 4423else
a8aea176
NN
4424 echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
025fd00e
TT
4426fi
4427
a8aea176 4428 STRIP=$ac_ct_STRIP
025fd00e 4429else
a8aea176 4430 STRIP="$ac_cv_prog_STRIP"
025fd00e
TT
4431fi
4432
1cf3d07d 4433test -z "$STRIP" && STRIP=:
025fd00e 4434
c45f211e 4435
025fd00e 4436
0fd91e0a 4437
0fd91e0a 4438
a8aea176 4439
1cf3d07d
SE
4440if test -n "$ac_tool_prefix"; then
4441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4442set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4443echo "$as_me:$LINENO: checking for $ac_word" >&5
4444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445if test "${ac_cv_prog_RANLIB+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 4447else
1cf3d07d
SE
4448 if test -n "$RANLIB"; then
4449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462done
4463done
0fd91e0a 4464
1cf3d07d
SE
4465fi
4466fi
4467RANLIB=$ac_cv_prog_RANLIB
4468if test -n "$RANLIB"; then
4469 echo "$as_me:$LINENO: result: $RANLIB" >&5
4470echo "${ECHO_T}$RANLIB" >&6
4471else
4472 echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6
4474fi
4475
4476fi
4477if test -z "$ac_cv_prog_RANLIB"; then
4478 ac_ct_RANLIB=$RANLIB
4479 # Extract the first word of "ranlib", so it can be a program name with args.
4480set dummy ranlib; ac_word=$2
4481echo "$as_me:$LINENO: checking for $ac_word" >&5
4482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486 if test -n "$ac_ct_RANLIB"; then
4487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4488else
4489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496 ac_cv_prog_ac_ct_RANLIB="ranlib"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
0fd91e0a 4499 fi
1cf3d07d
SE
4500done
4501done
025fd00e 4502
1cf3d07d
SE
4503 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4504fi
4505fi
4506ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4507if test -n "$ac_ct_RANLIB"; then
4508 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4509echo "${ECHO_T}$ac_ct_RANLIB" >&6
4510else
4511 echo "$as_me:$LINENO: result: no" >&5
4512echo "${ECHO_T}no" >&6
4513fi
4514
4515 RANLIB=$ac_ct_RANLIB
4516else
4517 RANLIB="$ac_cv_prog_RANLIB"
4518fi
4519
4520test -z "$RANLIB" && RANLIB=:
4521
4522
4523
4524
4525
4526
4527# Determine commands to create old-style static archives.
18d98188 4528old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
4529old_postinstall_cmds='chmod 644 $oldlib'
4530old_postuninstall_cmds=
4531
4532if test -n "$RANLIB"; then
4533 case $host_os in
4534 openbsd*)
4535 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4536 ;;
4537 *)
4538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4539 ;;
4540 esac
4541 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4542fi
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577# If no C compiler was specified, use CC.
4578LTCC=${LTCC-"$CC"}
4579
4580# If no C compiler flags were specified, use CFLAGS.
4581LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4582
4583# Allow CC to be a program name with arguments.
4584compiler=$CC
4585
4586
4587# Check for command to grab the raw symbol name followed by C symbol from nm.
4588echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4589echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4590if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592else
4593
4594# These are sane defaults that work on at least a few old systems.
4595# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4596
4597# Character class describing NM global symbol codes.
4598symcode='[BCDEGRST]'
4599
4600# Regexp to match symbols that can be accessed directly from C.
4601sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4602
4603# Define system-specific variables.
4604case $host_os in
4605aix*)
4606 symcode='[BCDT]'
4607 ;;
18d98188 4608cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
4609 symcode='[ABCDGISTW]'
4610 ;;
4611hpux*)
4612 if test "$host_cpu" = ia64; then
4613 symcode='[ABCDEGRST]'
f5cc59a7 4614 fi
f5cc59a7 4615 ;;
1cf3d07d
SE
4616irix* | nonstopux*)
4617 symcode='[BCDEGRST]'
4618 ;;
4619osf*)
4620 symcode='[BCDEGQRST]'
4621 ;;
4622solaris*)
4623 symcode='[BDRT]'
4624 ;;
4625sco3.2v5*)
4626 symcode='[DT]'
4627 ;;
4628sysv4.2uw2*)
4629 symcode='[DT]'
4630 ;;
4631sysv5* | sco5v6* | unixware* | OpenUNIX*)
4632 symcode='[ABDT]'
4633 ;;
4634sysv4)
4635 symcode='[DFNSTU]'
4636 ;;
4637esac
4638
4639# If we're using GNU nm, then use its standard symbol codes.
4640case `$NM -V 2>&1` in
4641*GNU* | *'with BFD'*)
4642 symcode='[ABCDGIRSTW]' ;;
4643esac
4644
4645# Transform an extracted symbol line into a proper C declaration.
4646# Some systems (esp. on ia64) link data and code symbols differently,
4647# so use this general approach.
4648lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4649
4650# Transform an extracted symbol line into symbol name and symbol address
4651lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18d98188 4652lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1cf3d07d
SE
4653
4654# Handle CRLF in mingw tool chain
4655opt_cr=
4656case $build_os in
4657mingw*)
4658 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4659 ;;
4660esac
4661
4662# Try without a prefix underscore, then with it.
4663for ac_symprfx in "" "_"; do
4664
4665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4666 symxfrm="\\1 $ac_symprfx\\2 \\2"
4667
4668 # Write the raw and C identifiers.
4669 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4670 # Fake it for dumpbin and say T for any non-static function
4671 # and D for any global variable.
4672 # Also find C++ and __fastcall symbols from MSVC++,
4673 # which start with @ or ?.
4674 lt_cv_sys_global_symbol_pipe="$AWK '"\
4675" {last_section=section; section=\$ 3};"\
4676" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4677" \$ 0!~/External *\|/{next};"\
4678" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4679" {if(hide[section]) next};"\
4680" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4681" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4682" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4683" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4684" ' prfx=^$ac_symprfx"
4685 else
4686 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4687 fi
4688
4689 # Check to see that the pipe works correctly.
4690 pipe_works=no
4691
4692 rm -f conftest*
4693 cat > conftest.$ac_ext <<_LT_EOF
4694#ifdef __cplusplus
4695extern "C" {
4696#endif
4697char nm_test_var;
4698void nm_test_func(void);
4699void nm_test_func(void){}
4700#ifdef __cplusplus
4701}
4702#endif
4703int main(){nm_test_var='a';nm_test_func();return(0);}
4704_LT_EOF
f5cc59a7 4705
a8aea176
NN
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; then
1cf3d07d
SE
4711 # Now try to grab the symbols.
4712 nlist=conftest.nm
4713 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4714 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && test -s "$nlist"; then
4718 # Try sorting and uniquifying the output.
4719 if sort "$nlist" | uniq > "$nlist"T; then
4720 mv -f "$nlist"T "$nlist"
4721 else
4722 rm -f "$nlist"T
4723 fi
0ccf2c33 4724
1cf3d07d
SE
4725 # Make sure that we snagged all the symbols we need.
4726 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4727 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4728 cat <<_LT_EOF > conftest.$ac_ext
4729#ifdef __cplusplus
4730extern "C" {
4731#endif
a8aea176 4732
1cf3d07d
SE
4733_LT_EOF
4734 # Now generate the symbol file.
4735 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
a8aea176 4736
1cf3d07d 4737 cat <<_LT_EOF >> conftest.$ac_ext
a8aea176 4738
1cf3d07d
SE
4739/* The mapping between symbol names and symbols. */
4740const struct {
4741 const char *name;
4742 void *address;
4743}
4744lt__PROGRAM__LTX_preloaded_symbols[] =
4745{
4746 { "@PROGRAM@", (void *) 0 },
4747_LT_EOF
4748 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4749 cat <<\_LT_EOF >> conftest.$ac_ext
4750 {0, (void *) 0}
4751};
4752
4753/* This works around a problem in FreeBSD linker */
4754#ifdef FREEBSD_WORKAROUND
4755static const void *lt_preloaded_setup() {
4756 return lt__PROGRAM__LTX_preloaded_symbols;
4757}
4758#endif
4759
4760#ifdef __cplusplus
4761}
4762#endif
4763_LT_EOF
4764 # Now try linking the two files.
4765 mv conftest.$ac_objext conftstm.$ac_objext
4766 lt_save_LIBS="$LIBS"
4767 lt_save_CFLAGS="$CFLAGS"
4768 LIBS="conftstm.$ac_objext"
4769 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771 (eval $ac_link) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4775 pipe_works=yes
4776 fi
4777 LIBS="$lt_save_LIBS"
4778 CFLAGS="$lt_save_CFLAGS"
4779 else
4780 echo "cannot find nm_test_func in $nlist" >&5
4781 fi
4782 else
4783 echo "cannot find nm_test_var in $nlist" >&5
4784 fi
4785 else
4786 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4787 fi
4788 else
4789 echo "$progname: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 fi
18d98188 4792 rm -rf conftest* conftst*
1cf3d07d
SE
4793
4794 # Do not use the global_symbol_pipe unless it works.
4795 if test "$pipe_works" = yes; then
4796 break
4797 else
4798 lt_cv_sys_global_symbol_pipe=
4799 fi
4800done
4801
4802fi
4803
4804if test -z "$lt_cv_sys_global_symbol_pipe"; then
4805 lt_cv_sys_global_symbol_to_cdecl=
4806fi
4807if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4808 echo "$as_me:$LINENO: result: failed" >&5
4809echo "${ECHO_T}failed" >&6
4810else
4811 echo "$as_me:$LINENO: result: ok" >&5
4812echo "${ECHO_T}ok" >&6
4813fi
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
18d98188
PG
4829
4830
4831
4832
4833
1cf3d07d
SE
4834
4835
4836
4837# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4838if test "${enable_libtool_lock+set}" = set; then
4839 enableval="$enable_libtool_lock"
4840
4841fi;
4842test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4843
4844# Some flags need to be propagated to the compiler or linker for good
4845# libtool support.
4846case $host in
4847ia64-*-hpux*)
4848 # Find out which ABI we are using.
4849 echo 'int i;' > conftest.$ac_ext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851 (eval $ac_compile) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; then
4855 case `/usr/bin/file conftest.$ac_objext` in
4856 *ELF-32*)
4857 HPUX_IA64_MODE="32"
4858 ;;
4859 *ELF-64*)
4860 HPUX_IA64_MODE="64"
4861 ;;
4862 esac
4863 fi
4864 rm -rf conftest*
4865 ;;
4866*-*-irix6*)
4867 # Find out which ABI we are using.
18d98188 4868 echo '#line 4868 "configure"' > conftest.$ac_ext
1cf3d07d
SE
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; then
4874 if test "$lt_cv_prog_gnu_ld" = yes; then
4875 case `/usr/bin/file conftest.$ac_objext` in
4876 *32-bit*)
4877 LD="${LD-ld} -melf32bsmip"
4878 ;;
4879 *N32*)
4880 LD="${LD-ld} -melf32bmipn32"
4881 ;;
4882 *64-bit*)
4883 LD="${LD-ld} -melf64bmip"
4884 ;;
4885 esac
4886 else
4887 case `/usr/bin/file conftest.$ac_objext` in
4888 *32-bit*)
4889 LD="${LD-ld} -32"
4890 ;;
4891 *N32*)
4892 LD="${LD-ld} -n32"
4893 ;;
4894 *64-bit*)
4895 LD="${LD-ld} -64"
4896 ;;
4897 esac
4898 fi
4899 fi
4900 rm -rf conftest*
4901 ;;
4902
4903x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4904s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4905 # Find out which ABI we are using.
4906 echo 'int i;' > conftest.$ac_ext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; then
4912 case `/usr/bin/file conftest.o` in
4913 *32-bit*)
4914 case $host in
4915 x86_64-*kfreebsd*-gnu)
4916 LD="${LD-ld} -m elf_i386_fbsd"
4917 ;;
4918 x86_64-*linux*)
4919 LD="${LD-ld} -m elf_i386"
4920 ;;
4921 ppc64-*linux*|powerpc64-*linux*)
4922 LD="${LD-ld} -m elf32ppclinux"
4923 ;;
4924 s390x-*linux*)
4925 LD="${LD-ld} -m elf_s390"
4926 ;;
4927 sparc64-*linux*)
4928 LD="${LD-ld} -m elf32_sparc"
4929 ;;
4930 esac
4931 ;;
4932 *64-bit*)
4933 case $host in
4934 x86_64-*kfreebsd*-gnu)
4935 LD="${LD-ld} -m elf_x86_64_fbsd"
4936 ;;
4937 x86_64-*linux*)
4938 LD="${LD-ld} -m elf_x86_64"
4939 ;;
4940 ppc*-*linux*|powerpc*-*linux*)
4941 LD="${LD-ld} -m elf64ppc"
4942 ;;
4943 s390*-*linux*|s390*-*tpf*)
4944 LD="${LD-ld} -m elf64_s390"
4945 ;;
4946 sparc*-*linux*)
4947 LD="${LD-ld} -m elf64_sparc"
4948 ;;
4949 esac
4950 ;;
4951 esac
4952 fi
4953 rm -rf conftest*
4954 ;;
4955
4956*-*-sco3.2v5*)
4957 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4958 SAVE_CFLAGS="$CFLAGS"
4959 CFLAGS="$CFLAGS -belf"
4960 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4961echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4962if test "${lt_cv_cc_needs_belf+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965 ac_ext=c
4966ac_cpp='$CPP $CPPFLAGS'
4967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970
4971 if test x$gcc_no_link = xyes; then
4972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4973echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4974 { (exit 1); exit 1; }; }
4975fi
4976cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
4982
4983int
4984main ()
4985{
4986
4987 ;
4988 return 0;
4989}
4990_ACEOF
4991rm -f conftest.$ac_objext conftest$ac_exeext
4992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_c_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest$ac_exeext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 lt_cv_cc_needs_belf=yes
5014else
5015 echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018lt_cv_cc_needs_belf=no
5019fi
5020rm -f conftest.err conftest.$ac_objext \
5021 conftest$ac_exeext conftest.$ac_ext
5022 ac_ext=c
5023ac_cpp='$CPP $CPPFLAGS'
5024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027
5028fi
5029echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5030echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5031 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5032 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5033 CFLAGS="$SAVE_CFLAGS"
5034 fi
5035 ;;
5036sparc*-*solaris*)
5037 # Find out which ABI we are using.
5038 echo 'int i;' > conftest.$ac_ext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; then
5044 case `/usr/bin/file conftest.o` in
5045 *64-bit*)
5046 case $lt_cv_prog_gnu_ld in
5047 yes*) LD="${LD-ld} -m elf64_sparc" ;;
18d98188
PG
5048 *)
5049 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5050 LD="${LD-ld} -64"
5051 fi
5052 ;;
1cf3d07d
SE
5053 esac
5054 ;;
5055 esac
5056 fi
5057 rm -rf conftest*
5058 ;;
5059esac
5060
5061need_locks="$enable_libtool_lock"
5062
18d98188
PG
5063
5064 case $host_os in
5065 rhapsody* | darwin*)
5066 if test -n "$ac_tool_prefix"; then
5067 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5068set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5069echo "$as_me:$LINENO: checking for $ac_word" >&5
5070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5071if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
1cf3d07d
SE
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073else
18d98188
PG
5074 if test -n "$DSYMUTIL"; then
5075 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5076else
5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
1cf3d07d 5079do
18d98188
PG
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
1cf3d07d 5087 fi
18d98188
PG
5088done
5089done
5090
5091fi
5092fi
5093DSYMUTIL=$ac_cv_prog_DSYMUTIL
5094if test -n "$DSYMUTIL"; then
5095 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5096echo "${ECHO_T}$DSYMUTIL" >&6
5097else
5098 echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6
5100fi
5101
5102fi
5103if test -z "$ac_cv_prog_DSYMUTIL"; then
5104 ac_ct_DSYMUTIL=$DSYMUTIL
5105 # Extract the first word of "dsymutil", so it can be a program name with args.
5106set dummy dsymutil; ac_word=$2
5107echo "$as_me:$LINENO: checking for $ac_word" >&5
5108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111else
5112 if test -n "$ac_ct_DSYMUTIL"; then
5113 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126done
5127done
5128
5129 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5130fi
5131fi
5132ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5133if test -n "$ac_ct_DSYMUTIL"; then
5134 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5135echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5136else
5137 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139fi
5140
5141 DSYMUTIL=$ac_ct_DSYMUTIL
5142else
5143 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5144fi
5145
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5149echo "$as_me:$LINENO: checking for $ac_word" >&5
5150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5151if test "${ac_cv_prog_NMEDIT+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154 if test -n "$NMEDIT"; then
5155 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168done
5169done
5170
5171fi
5172fi
5173NMEDIT=$ac_cv_prog_NMEDIT
5174if test -n "$NMEDIT"; then
5175 echo "$as_me:$LINENO: result: $NMEDIT" >&5
5176echo "${ECHO_T}$NMEDIT" >&6
5177else
5178 echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180fi
5181
5182fi
5183if test -z "$ac_cv_prog_NMEDIT"; then
5184 ac_ct_NMEDIT=$NMEDIT
5185 # Extract the first word of "nmedit", so it can be a program name with args.
5186set dummy nmedit; ac_word=$2
5187echo "$as_me:$LINENO: checking for $ac_word" >&5
5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192 if test -n "$ac_ct_NMEDIT"; then
5193 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206done
5207done
5208
5209 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5210fi
5211fi
5212ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5213if test -n "$ac_ct_NMEDIT"; then
5214 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5215echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5216else
5217 echo "$as_me:$LINENO: result: no" >&5
5218echo "${ECHO_T}no" >&6
5219fi
5220
5221 NMEDIT=$ac_ct_NMEDIT
5222else
5223 NMEDIT="$ac_cv_prog_NMEDIT"
5224fi
5225
5226 if test -n "$ac_tool_prefix"; then
5227 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5228set dummy ${ac_tool_prefix}lipo; ac_word=$2
5229echo "$as_me:$LINENO: checking for $ac_word" >&5
5230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5231if test "${ac_cv_prog_LIPO+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233else
5234 if test -n "$LIPO"; then
5235 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248done
5249done
5250
5251fi
5252fi
5253LIPO=$ac_cv_prog_LIPO
5254if test -n "$LIPO"; then
5255 echo "$as_me:$LINENO: result: $LIPO" >&5
5256echo "${ECHO_T}$LIPO" >&6
5257else
5258 echo "$as_me:$LINENO: result: no" >&5
5259echo "${ECHO_T}no" >&6
5260fi
5261
5262fi
5263if test -z "$ac_cv_prog_LIPO"; then
5264 ac_ct_LIPO=$LIPO
5265 # Extract the first word of "lipo", so it can be a program name with args.
5266set dummy lipo; ac_word=$2
5267echo "$as_me:$LINENO: checking for $ac_word" >&5
5268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272 if test -n "$ac_ct_LIPO"; then
5273 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5274else
5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_ac_ct_LIPO="lipo"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286done
5287done
5288
5289 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5290fi
5291fi
5292ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5293if test -n "$ac_ct_LIPO"; then
5294 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5295echo "${ECHO_T}$ac_ct_LIPO" >&6
5296else
5297 echo "$as_me:$LINENO: result: no" >&5
5298echo "${ECHO_T}no" >&6
5299fi
5300
5301 LIPO=$ac_ct_LIPO
5302else
5303 LIPO="$ac_cv_prog_LIPO"
5304fi
5305
5306 if test -n "$ac_tool_prefix"; then
5307 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5308set dummy ${ac_tool_prefix}otool; ac_word=$2
5309echo "$as_me:$LINENO: checking for $ac_word" >&5
5310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5311if test "${ac_cv_prog_OTOOL+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314 if test -n "$OTOOL"; then
5315 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5316else
5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5327 fi
5328done
5329done
5330
5331fi
5332fi
5333OTOOL=$ac_cv_prog_OTOOL
5334if test -n "$OTOOL"; then
5335 echo "$as_me:$LINENO: result: $OTOOL" >&5
5336echo "${ECHO_T}$OTOOL" >&6
5337else
5338 echo "$as_me:$LINENO: result: no" >&5
5339echo "${ECHO_T}no" >&6
5340fi
5341
5342fi
5343if test -z "$ac_cv_prog_OTOOL"; then
5344 ac_ct_OTOOL=$OTOOL
5345 # Extract the first word of "otool", so it can be a program name with args.
5346set dummy otool; ac_word=$2
5347echo "$as_me:$LINENO: checking for $ac_word" >&5
5348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352 if test -n "$ac_ct_OTOOL"; then
5353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5354else
5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_ac_ct_OTOOL="otool"
5363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366done
5367done
5368
5369 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5370fi
5371fi
5372ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5373if test -n "$ac_ct_OTOOL"; then
5374 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5375echo "${ECHO_T}$ac_ct_OTOOL" >&6
5376else
5377 echo "$as_me:$LINENO: result: no" >&5
5378echo "${ECHO_T}no" >&6
5379fi
5380
5381 OTOOL=$ac_ct_OTOOL
5382else
5383 OTOOL="$ac_cv_prog_OTOOL"
5384fi
5385
5386 if test -n "$ac_tool_prefix"; then
5387 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5388set dummy ${ac_tool_prefix}otool64; ac_word=$2
5389echo "$as_me:$LINENO: checking for $ac_word" >&5
5390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5391if test "${ac_cv_prog_OTOOL64+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394 if test -n "$OTOOL64"; then
5395 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5396else
5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5407 fi
5408done
5409done
5410
5411fi
5412fi
5413OTOOL64=$ac_cv_prog_OTOOL64
5414if test -n "$OTOOL64"; then
5415 echo "$as_me:$LINENO: result: $OTOOL64" >&5
5416echo "${ECHO_T}$OTOOL64" >&6
5417else
5418 echo "$as_me:$LINENO: result: no" >&5
5419echo "${ECHO_T}no" >&6
5420fi
5421
5422fi
5423if test -z "$ac_cv_prog_OTOOL64"; then
5424 ac_ct_OTOOL64=$OTOOL64
5425 # Extract the first word of "otool64", so it can be a program name with args.
5426set dummy otool64; ac_word=$2
5427echo "$as_me:$LINENO: checking for $ac_word" >&5
5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432 if test -n "$ac_ct_OTOOL64"; then
5433 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_prog_ac_ct_OTOOL64="otool64"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446done
5447done
5448
5449 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5450fi
5451fi
5452ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5453if test -n "$ac_ct_OTOOL64"; then
5454 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5455echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5456else
5457 echo "$as_me:$LINENO: result: no" >&5
5458echo "${ECHO_T}no" >&6
5459fi
5460
5461 OTOOL64=$ac_ct_OTOOL64
5462else
5463 OTOOL64="$ac_cv_prog_OTOOL64"
5464fi
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5493echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
5494if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496else
5497 lt_cv_apple_cc_single_mod=no
5498 if test -z "${LT_MULTI_MODULE}"; then
5499 # By default we will add the -single_module flag. You can override
5500 # by either setting the environment variable LT_MULTI_MODULE
5501 # non-empty at configure time, or by adding -multi_module to the
5502 # link flags.
5503 rm -rf libconftest.dylib*
5504 echo "int foo(void){return 1;}" > conftest.c
5505 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5506-dynamiclib -Wl,-single_module conftest.c" >&5
5507 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5508 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5509 _lt_result=$?
5510 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5511 lt_cv_apple_cc_single_mod=yes
5512 else
5513 cat conftest.err >&5
5514 fi
5515 rm -rf libconftest.dylib*
5516 rm -f conftest.*
5517 fi
5518fi
5519echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5520echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5521 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5522echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
5523if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526 lt_cv_ld_exported_symbols_list=no
5527 save_LDFLAGS=$LDFLAGS
5528 echo "_main" > conftest.sym
5529 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5530 if test x$gcc_no_link = xyes; then
5531 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5532echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5533 { (exit 1); exit 1; }; }
5534fi
5535cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
5541
5542int
5543main ()
5544{
5545
5546 ;
5547 return 0;
5548}
5549_ACEOF
5550rm -f conftest.$ac_objext conftest$ac_exeext
5551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 lt_cv_ld_exported_symbols_list=yes
5573else
5574 echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
5577lt_cv_ld_exported_symbols_list=no
5578fi
5579rm -f conftest.err conftest.$ac_objext \
5580 conftest$ac_exeext conftest.$ac_ext
5581 LDFLAGS="$save_LDFLAGS"
5582
5583fi
5584echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5585echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
5586 case $host_os in
5587 rhapsody* | darwin1.[012])
5588 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5589 darwin1.*)
5590 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5591 darwin*) # darwin 5.x on
5592 # if running on 10.5 or later, the deployment target defaults
5593 # to the OS version, if on x86, and 10.4, the deployment
5594 # target defaults to 10.4. Don't you love it?
5595 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5596 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5598 10.[012]*)
5599 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5600 10.*)
5601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5602 esac
5603 ;;
5604 esac
5605 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5606 _lt_dar_single_mod='$single_module'
5607 fi
5608 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5609 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5610 else
5611 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5612 fi
5613 if test "$DSYMUTIL" != ":"; then
5614 _lt_dsymutil='~$DSYMUTIL $lib || :'
5615 else
5616 _lt_dsymutil=
5617 fi
5618 ;;
5619 esac
5620
5621ac_ext=c
5622ac_cpp='$CPP $CPPFLAGS'
5623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5627echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5628# On Suns, sometimes $CPP names a directory.
5629if test -n "$CPP" && test -d "$CPP"; then
5630 CPP=
5631fi
5632if test -z "$CPP"; then
5633 if test "${ac_cv_prog_CPP+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636 # Double quotes because CPP needs to be expanded
5637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5638 do
5639 ac_preproc_ok=false
5640for ac_c_preproc_warn_flag in '' yes
5641do
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat >conftest.$ac_ext <<_ACEOF
5649/* confdefs.h. */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h. */
5654#ifdef __STDC__
5655# include <limits.h>
5656#else
5657# include <assert.h>
5658#endif
5659 Syntax error
5660_ACEOF
5661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } >/dev/null; then
5669 if test -s conftest.err; then
5670 ac_cpp_err=$ac_c_preproc_warn_flag
5671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5672 else
5673 ac_cpp_err=
5674 fi
5675else
5676 ac_cpp_err=yes
1cf3d07d
SE
5677fi
5678if test -z "$ac_cpp_err"; then
5679 :
5680else
5681 echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 # Broken: fails on valid input.
5685continue
5686fi
5687rm -f conftest.err conftest.$ac_ext
5688
5689 # OK, works on sane cases. Now check whether non-existent headers
5690 # can be detected and how.
5691 cat >conftest.$ac_ext <<_ACEOF
5692/* confdefs.h. */
5693_ACEOF
5694cat confdefs.h >>conftest.$ac_ext
5695cat >>conftest.$ac_ext <<_ACEOF
5696/* end confdefs.h. */
5697#include <ac_nonexistent.h>
5698_ACEOF
5699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } >/dev/null; then
5707 if test -s conftest.err; then
5708 ac_cpp_err=$ac_c_preproc_warn_flag
5709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5710 else
5711 ac_cpp_err=
5712 fi
5713else
5714 ac_cpp_err=yes
5715fi
5716if test -z "$ac_cpp_err"; then
5717 # Broken: success on invalid input.
5718continue
5719else
5720 echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 # Passes both tests.
5724ac_preproc_ok=:
5725break
5726fi
5727rm -f conftest.err conftest.$ac_ext
5728
5729done
5730# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5731rm -f conftest.err conftest.$ac_ext
5732if $ac_preproc_ok; then
5733 break
5734fi
5735
5736 done
5737 ac_cv_prog_CPP=$CPP
5738
5739fi
5740 CPP=$ac_cv_prog_CPP
5741else
5742 ac_cv_prog_CPP=$CPP
5743fi
5744echo "$as_me:$LINENO: result: $CPP" >&5
5745echo "${ECHO_T}$CPP" >&6
5746ac_preproc_ok=false
5747for ac_c_preproc_warn_flag in '' yes
5748do
5749 # Use a header file that comes with gcc, so configuring glibc
5750 # with a fresh cross-compiler works.
5751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5752 # <limits.h> exists even on freestanding compilers.
5753 # On the NeXT, cc -E runs the code through the compiler's parser,
5754 # not just through cpp. "Syntax error" is here to catch this case.
5755 cat >conftest.$ac_ext <<_ACEOF
5756/* confdefs.h. */
5757_ACEOF
5758cat confdefs.h >>conftest.$ac_ext
5759cat >>conftest.$ac_ext <<_ACEOF
5760/* end confdefs.h. */
5761#ifdef __STDC__
5762# include <limits.h>
5763#else
5764# include <assert.h>
5765#endif
5766 Syntax error
5767_ACEOF
5768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } >/dev/null; then
5776 if test -s conftest.err; then
5777 ac_cpp_err=$ac_c_preproc_warn_flag
5778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5779 else
5780 ac_cpp_err=
5781 fi
5782else
5783 ac_cpp_err=yes
5784fi
5785if test -z "$ac_cpp_err"; then
5786 :
5787else
5788 echo "$as_me: failed program was:" >&5
5789sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 # Broken: fails on valid input.
5792continue
5793fi
5794rm -f conftest.err conftest.$ac_ext
5795
5796 # OK, works on sane cases. Now check whether non-existent headers
5797 # can be detected and how.
5798 cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h. */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h. */
5804#include <ac_nonexistent.h>
5805_ACEOF
5806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } >/dev/null; then
5814 if test -s conftest.err; then
5815 ac_cpp_err=$ac_c_preproc_warn_flag
5816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5817 else
5818 ac_cpp_err=
5819 fi
5820else
5821 ac_cpp_err=yes
5822fi
5823if test -z "$ac_cpp_err"; then
5824 # Broken: success on invalid input.
5825continue
5826else
5827 echo "$as_me: failed program was:" >&5
5828sed 's/^/| /' conftest.$ac_ext >&5
5829
5830 # Passes both tests.
5831ac_preproc_ok=:
5832break
5833fi
5834rm -f conftest.err conftest.$ac_ext
5835
5836done
5837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838rm -f conftest.err conftest.$ac_ext
5839if $ac_preproc_ok; then
5840 :
5841else
18c04407
RW
5842 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5843echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1cf3d07d
SE
5845See \`config.log' for more details." >&5
5846echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5847See \`config.log' for more details." >&2;}
18c04407 5848 { (exit 1); exit 1; }; }; }
1cf3d07d
SE
5849fi
5850
5851ac_ext=c
5852ac_cpp='$CPP $CPPFLAGS'
5853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856
5857
5858echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5859echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5860if test "${ac_cv_header_stdc+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862else
5863 cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h. */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h. */
5869#include <stdlib.h>
5870#include <stdarg.h>
5871#include <string.h>
5872#include <float.h>
5873
5874int
5875main ()
5876{
5877
5878 ;
5879 return 0;
5880}
5881_ACEOF
5882rm -f conftest.$ac_objext
5883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag"
5892 || test ! -s conftest.err'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 (eval $ac_try) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_header_stdc=yes
5905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909ac_cv_header_stdc=no
5910fi
5911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912
5913if test $ac_cv_header_stdc = yes; then
5914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5915 cat >conftest.$ac_ext <<_ACEOF
5916/* confdefs.h. */
5917_ACEOF
5918cat confdefs.h >>conftest.$ac_ext
5919cat >>conftest.$ac_ext <<_ACEOF
5920/* end confdefs.h. */
5921#include <string.h>
5922
5923_ACEOF
5924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "memchr" >/dev/null 2>&1; then
5926 :
5927else
5928 ac_cv_header_stdc=no
5929fi
5930rm -f conftest*
5931
5932fi
5933
5934if test $ac_cv_header_stdc = yes; then
5935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5936 cat >conftest.$ac_ext <<_ACEOF
5937/* confdefs.h. */
5938_ACEOF
5939cat confdefs.h >>conftest.$ac_ext
5940cat >>conftest.$ac_ext <<_ACEOF
5941/* end confdefs.h. */
5942#include <stdlib.h>
5943
5944_ACEOF
5945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 $EGREP "free" >/dev/null 2>&1; then
5947 :
5948else
5949 ac_cv_header_stdc=no
5950fi
5951rm -f conftest*
5952
5953fi
5954
5955if test $ac_cv_header_stdc = yes; then
5956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5957 if test "$cross_compiling" = yes; then
5958 :
5959else
5960 cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h. */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h. */
5966#include <ctype.h>
5967#if ((' ' & 0x0FF) == 0x020)
5968# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5969# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5970#else
5971# define ISLOWER(c) \
5972 (('a' <= (c) && (c) <= 'i') \
5973 || ('j' <= (c) && (c) <= 'r') \
5974 || ('s' <= (c) && (c) <= 'z'))
5975# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5976#endif
5977
5978#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5979int
5980main ()
5981{
5982 int i;
5983 for (i = 0; i < 256; i++)
5984 if (XOR (islower (i), ISLOWER (i))
5985 || toupper (i) != TOUPPER (i))
5986 exit(2);
5987 exit (0);
5988}
5989_ACEOF
5990rm -f conftest$ac_exeext
5991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992 (eval $ac_link) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 :
6002else
6003 echo "$as_me: program exited with status $ac_status" >&5
6004echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007( exit $ac_status )
6008ac_cv_header_stdc=no
6009fi
6010rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6011fi
6012fi
6013fi
6014echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6015echo "${ECHO_T}$ac_cv_header_stdc" >&6
6016if test $ac_cv_header_stdc = yes; then
6017
6018cat >>confdefs.h <<\_ACEOF
6019#define STDC_HEADERS 1
6020_ACEOF
6021
6022fi
6023
6024# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6035 inttypes.h stdint.h unistd.h
6036do
6037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6038echo "$as_me:$LINENO: checking for $ac_header" >&5
6039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6040if eval "test \"\${$as_ac_Header+set}\" = set"; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043 cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
6049$ac_includes_default
6050
6051#include <$ac_header>
6052_ACEOF
6053rm -f conftest.$ac_objext
6054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_c_werror_flag"
6063 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 eval "$as_ac_Header=yes"
6076else
18d98188
PG
6077 echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080eval "$as_ac_Header=no"
6081fi
6082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6083fi
6084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6086if test `eval echo '${'$as_ac_Header'}'` = yes; then
6087 cat >>confdefs.h <<_ACEOF
6088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089_ACEOF
6090
6091fi
6092
6093done
6094
6095
6096
6097for ac_header in dlfcn.h
6098do
6099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100echo "$as_me:$LINENO: checking for $ac_header" >&5
6101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6102if eval "test \"\${$as_ac_Header+set}\" = set"; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105 cat >conftest.$ac_ext <<_ACEOF
6106/* confdefs.h. */
6107_ACEOF
6108cat confdefs.h >>conftest.$ac_ext
6109cat >>conftest.$ac_ext <<_ACEOF
6110/* end confdefs.h. */
6111$ac_includes_default
6112
6113#include <$ac_header>
6114_ACEOF
6115rm -f conftest.$ac_objext
6116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 eval "$as_ac_Header=yes"
6138else
6139 echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
6141
6142eval "$as_ac_Header=no"
6143fi
6144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145fi
6146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6148if test `eval echo '${'$as_ac_Header'}'` = yes; then
6149 cat >>confdefs.h <<_ACEOF
6150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6151_ACEOF
6152
6153fi
6154
6155done
6156
6157
6158
6159# Set options
6160
6161
6162
6163 enable_dlopen=no
6164
6165
6166 enable_win32_dll=no
6167
6168
6169 # Check whether --enable-shared or --disable-shared was given.
6170if test "${enable_shared+set}" = set; then
6171 enableval="$enable_shared"
6172 p=${PACKAGE-default}
6173 case $enableval in
6174 yes) enable_shared=yes ;;
6175 no) enable_shared=no ;;
6176 *)
6177 enable_shared=no
6178 # Look at the argument we got. We use all the common list separators.
6179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6180 for pkg in $enableval; do
6181 IFS="$lt_save_ifs"
6182 if test "X$pkg" = "X$p"; then
6183 enable_shared=yes
6184 fi
6185 done
6186 IFS="$lt_save_ifs"
6187 ;;
6188 esac
6189else
6190 enable_shared=yes
6191fi;
6192
6193
6194
6195
6196
6197
6198
6199
6200 # Check whether --enable-static or --disable-static was given.
6201if test "${enable_static+set}" = set; then
6202 enableval="$enable_static"
6203 p=${PACKAGE-default}
6204 case $enableval in
6205 yes) enable_static=yes ;;
6206 no) enable_static=no ;;
6207 *)
6208 enable_static=no
6209 # Look at the argument we got. We use all the common list separators.
6210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6211 for pkg in $enableval; do
6212 IFS="$lt_save_ifs"
6213 if test "X$pkg" = "X$p"; then
6214 enable_static=yes
6215 fi
6216 done
6217 IFS="$lt_save_ifs"
6218 ;;
6219 esac
6220else
6221 enable_static=yes
6222fi;
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232# Check whether --with-pic or --without-pic was given.
6233if test "${with_pic+set}" = set; then
6234 withval="$with_pic"
6235 pic_mode="$withval"
6236else
6237 pic_mode=default
6238fi;
1cf3d07d 6239
18d98188 6240test -z "$pic_mode" && pic_mode=default
1cf3d07d 6241
1cf3d07d 6242
1cf3d07d
SE
6243
6244
6245
1cf3d07d 6246
18d98188
PG
6247
6248 # Check whether --enable-fast-install or --disable-fast-install was given.
6249if test "${enable_fast_install+set}" = set; then
6250 enableval="$enable_fast_install"
6251 p=${PACKAGE-default}
6252 case $enableval in
6253 yes) enable_fast_install=yes ;;
6254 no) enable_fast_install=no ;;
6255 *)
6256 enable_fast_install=no
6257 # Look at the argument we got. We use all the common list separators.
6258 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6259 for pkg in $enableval; do
6260 IFS="$lt_save_ifs"
6261 if test "X$pkg" = "X$p"; then
6262 enable_fast_install=yes
6263 fi
6264 done
6265 IFS="$lt_save_ifs"
6266 ;;
6267 esac
1cf3d07d 6268else
18d98188
PG
6269 enable_fast_install=yes
6270fi;
6271
6272
6273
6274
1cf3d07d 6275
1cf3d07d 6276
1cf3d07d 6277
1cf3d07d
SE
6278
6279
6280
6281# This can be used to rebuild libtool when needed
6282LIBTOOL_DEPS="$ltmain"
6283
6284# Always use our own libtool.
6285LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311test -z "$LN_S" && LN_S="ln -s"
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326if test -n "${ZSH_VERSION+set}" ; then
6327 setopt NO_GLOB_SUBST
6328fi
6329
6330echo "$as_me:$LINENO: checking for objdir" >&5
6331echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6332if test "${lt_cv_objdir+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335 rm -f .libs 2>/dev/null
6336mkdir .libs 2>/dev/null
6337if test -d .libs; then
6338 lt_cv_objdir=.libs
6339else
6340 # MS-DOS does not allow filenames that begin with a dot.
6341 lt_cv_objdir=_libs
6342fi
6343rmdir .libs 2>/dev/null
6344fi
6345echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6346echo "${ECHO_T}$lt_cv_objdir" >&6
6347objdir=$lt_cv_objdir
6348
6349
6350
6351
6352
6353cat >>confdefs.h <<_ACEOF
6354#define LT_OBJDIR "$lt_cv_objdir/"
6355_ACEOF
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373case $host_os in
6374aix3*)
6375 # AIX sometimes has problems with the GCC collect2 program. For some
6376 # reason, if we set the COLLECT_NAMES environment variable, the problems
6377 # vanish in a puff of smoke.
6378 if test "X${COLLECT_NAMES+set}" != Xset; then
6379 COLLECT_NAMES=
6380 export COLLECT_NAMES
6381 fi
6382 ;;
6383esac
6384
6385# Sed substitution that helps us do robust quoting. It backslashifies
6386# metacharacters that are still active within double-quoted strings.
6387sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6388
6389# Same as above, but do not quote variable references.
6390double_quote_subst='s/\(["`\\]\)/\\\1/g'
6391
6392# Sed substitution to delay expansion of an escaped shell variable in a
6393# double_quote_subst'ed string.
6394delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6395
6396# Sed substitution to delay expansion of an escaped single quote.
6397delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6398
6399# Sed substitution to avoid accidental globbing in evaled expressions
6400no_glob_subst='s/\*/\\\*/g'
6401
6402# Global variables:
6403ofile=libtool
6404can_build_shared=yes
6405
6406# All known linkers require a `.a' archive for static linking (except MSVC,
6407# which needs '.lib').
6408libext=a
6409
6410with_gnu_ld="$lt_cv_prog_gnu_ld"
6411
6412old_CC="$CC"
6413old_CFLAGS="$CFLAGS"
6414
6415# Set sane defaults for various variables
6416test -z "$CC" && CC=cc
6417test -z "$LTCC" && LTCC=$CC
6418test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6419test -z "$LD" && LD=ld
6420test -z "$ac_objext" && ac_objext=o
6421
6422for cc_temp in $compiler""; do
6423 case $cc_temp in
6424 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6425 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6426 \-*) ;;
6427 *) break;;
6428 esac
6429done
6430cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6431
6432
6433# Only perform the check for file, if the check method requires it
6434test -z "$MAGIC_CMD" && MAGIC_CMD=file
6435case $deplibs_check_method in
6436file_magic*)
6437 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6438 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6439echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6440if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443 case $MAGIC_CMD in
6444[\\/*] | ?:[\\/]*)
6445 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6446 ;;
6447*)
6448 lt_save_MAGIC_CMD="$MAGIC_CMD"
6449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6451 for ac_dir in $ac_dummy; do
6452 IFS="$lt_save_ifs"
6453 test -z "$ac_dir" && ac_dir=.
6454 if test -f $ac_dir/${ac_tool_prefix}file; then
6455 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6456 if test -n "$file_magic_test_file"; then
6457 case $deplibs_check_method in
6458 "file_magic "*)
6459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6462 $EGREP "$file_magic_regex" > /dev/null; then
6463 :
6464 else
6465 cat <<_LT_EOF 1>&2
6466
6467*** Warning: the command libtool uses to detect shared libraries,
6468*** $file_magic_cmd, produces output that libtool cannot recognize.
6469*** The result is that libtool may fail to recognize shared libraries
6470*** as such. This will affect the creation of libtool libraries that
6471*** depend on shared libraries, but programs linked with such libtool
6472*** libraries will work regardless of this problem. Nevertheless, you
6473*** may want to report the problem to your system manager and/or to
6474*** bug-libtool@gnu.org
6475
6476_LT_EOF
6477 fi ;;
6478 esac
6479 fi
6480 break
6481 fi
6482 done
6483 IFS="$lt_save_ifs"
6484 MAGIC_CMD="$lt_save_MAGIC_CMD"
6485 ;;
6486esac
6487fi
6488
6489MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6490if test -n "$MAGIC_CMD"; then
6491 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6492echo "${ECHO_T}$MAGIC_CMD" >&6
6493else
6494 echo "$as_me:$LINENO: result: no" >&5
6495echo "${ECHO_T}no" >&6
6496fi
6497
6498
6499
6500
6501
6502if test -z "$lt_cv_path_MAGIC_CMD"; then
6503 if test -n "$ac_tool_prefix"; then
6504 echo "$as_me:$LINENO: checking for file" >&5
6505echo $ECHO_N "checking for file... $ECHO_C" >&6
6506if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 case $MAGIC_CMD in
6510[\\/*] | ?:[\\/]*)
6511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6512 ;;
6513*)
6514 lt_save_MAGIC_CMD="$MAGIC_CMD"
6515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6517 for ac_dir in $ac_dummy; do
6518 IFS="$lt_save_ifs"
6519 test -z "$ac_dir" && ac_dir=.
6520 if test -f $ac_dir/file; then
6521 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6522 if test -n "$file_magic_test_file"; then
6523 case $deplibs_check_method in
6524 "file_magic "*)
6525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6528 $EGREP "$file_magic_regex" > /dev/null; then
6529 :
6530 else
6531 cat <<_LT_EOF 1>&2
6532
6533*** Warning: the command libtool uses to detect shared libraries,
6534*** $file_magic_cmd, produces output that libtool cannot recognize.
6535*** The result is that libtool may fail to recognize shared libraries
6536*** as such. This will affect the creation of libtool libraries that
6537*** depend on shared libraries, but programs linked with such libtool
6538*** libraries will work regardless of this problem. Nevertheless, you
6539*** may want to report the problem to your system manager and/or to
6540*** bug-libtool@gnu.org
6541
6542_LT_EOF
6543 fi ;;
6544 esac
6545 fi
6546 break
6547 fi
6548 done
6549 IFS="$lt_save_ifs"
6550 MAGIC_CMD="$lt_save_MAGIC_CMD"
6551 ;;
6552esac
6553fi
6554
6555MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6556if test -n "$MAGIC_CMD"; then
6557 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6558echo "${ECHO_T}$MAGIC_CMD" >&6
6559else
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
6562fi
6563
6564
6565 else
6566 MAGIC_CMD=:
6567 fi
6568fi
6569
6570 fi
6571 ;;
6572esac
6573
6574# Use C for the default configuration in the libtool script
6575
6576lt_save_CC="$CC"
6577ac_ext=c
6578ac_cpp='$CPP $CPPFLAGS'
6579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581ac_compiler_gnu=$ac_cv_c_compiler_gnu
6582
6583
6584# Source file extension for C test sources.
6585ac_ext=c
6586
6587# Object file extension for compiled C test sources.
6588objext=o
6589objext=$objext
6590
6591# Code to be used in simple compile tests
6592lt_simple_compile_test_code="int some_variable = 0;"
6593
6594# Code to be used in simple link tests
6595lt_simple_link_test_code='int main(){return(0);}'
6596
6597
6598
6599
6600
6601
6602
6603# If no C compiler was specified, use CC.
6604LTCC=${LTCC-"$CC"}
6605
6606# If no C compiler flags were specified, use CFLAGS.
6607LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6608
6609# Allow CC to be a program name with arguments.
6610compiler=$CC
6611
6612# Save the default compiler, since it gets overwritten when the other
6613# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6614compiler_DEFAULT=$CC
6615
6616# save warnings/boilerplate of simple test code
6617ac_outfile=conftest.$ac_objext
6618echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6619eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6620_lt_compiler_boilerplate=`cat conftest.err`
6621$RM conftest*
6622
6623ac_outfile=conftest.$ac_objext
6624echo "$lt_simple_link_test_code" >conftest.$ac_ext
6625eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6626_lt_linker_boilerplate=`cat conftest.err`
18d98188 6627$RM -r conftest*
1cf3d07d
SE
6628
6629
6630## CAVEAT EMPTOR:
6631## There is no encapsulation within the following macros, do not change
6632## the running order or otherwise move them around unless you know exactly
6633## what you are doing...
6634if test -n "$compiler"; then
6635
6636lt_prog_compiler_no_builtin_flag=
6637
6638if test "$GCC" = yes; then
6639 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6640
6641 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6642echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6643if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646 lt_cv_prog_compiler_rtti_exceptions=no
6647 ac_outfile=conftest.$ac_objext
6648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6649 lt_compiler_flag="-fno-rtti -fno-exceptions"
6650 # Insert the option either (1) after the last *FLAGS variable, or
6651 # (2) before a word containing "conftest.", or (3) at the end.
6652 # Note that $ac_compile itself does not contain backslashes and begins
6653 # with a dollar sign (not a hyphen), so the echo should work correctly.
6654 # The option is referenced via a variable to avoid confusing sed.
6655 lt_compile=`echo "$ac_compile" | $SED \
6656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6658 -e 's:$: $lt_compiler_flag:'`
18d98188 6659 (eval echo "\"\$as_me:6659: $lt_compile\"" >&5)
1cf3d07d
SE
6660 (eval "$lt_compile" 2>conftest.err)
6661 ac_status=$?
6662 cat conftest.err >&5
18d98188 6663 echo "$as_me:6663: \$? = $ac_status" >&5
1cf3d07d
SE
6664 if (exit $ac_status) && test -s "$ac_outfile"; then
6665 # The compiler can only warn and ignore the option if not recognized
6666 # So say no if there are warnings other than the usual output.
6667 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6670 lt_cv_prog_compiler_rtti_exceptions=yes
6671 fi
6672 fi
6673 $RM conftest*
6674
6675fi
6676echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6677echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6678
6679if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6680 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6681else
6682 :
6683fi
6684
6685fi
6686
6687
6688
6689
6690
6691
6692 lt_prog_compiler_wl=
6693lt_prog_compiler_pic=
6694lt_prog_compiler_static=
6695
6696echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6697echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6698
6699 if test "$GCC" = yes; then
6700 lt_prog_compiler_wl='-Wl,'
6701 lt_prog_compiler_static='-static'
6702
6703 case $host_os in
6704 aix*)
6705 # All AIX code is PIC.
6706 if test "$host_cpu" = ia64; then
6707 # AIX 5 now supports IA64 processor
6708 lt_prog_compiler_static='-Bstatic'
6709 fi
6710 ;;
6711
6712 amigaos*)
18d98188
PG
6713 case $host_cpu in
6714 powerpc)
6715 # see comment about AmigaOS4 .so support
6716 lt_prog_compiler_pic='-fPIC'
6717 ;;
6718 m68k)
6719 # FIXME: we need at least 68020 code to build shared libraries, but
6720 # adding the `-m68020' flag to GCC prevents building anything better,
6721 # like `-m68040'.
6722 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6723 ;;
6724 esac
1cf3d07d
SE
6725 ;;
6726
6727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6728 # PIC is the default for these OSes.
6729 ;;
6730
18d98188 6731 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
6732 # This hack is so that the source file can tell whether it is being
6733 # built for inclusion in a dll (and should export symbols for example).
6734 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6735 # (--disable-auto-import) libraries
6736 lt_prog_compiler_pic='-DDLL_EXPORT'
6737 ;;
6738
6739 darwin* | rhapsody*)
6740 # PIC is the default on this platform
6741 # Common symbols not allowed in MH_DYLIB files
6742 lt_prog_compiler_pic='-fno-common'
6743 ;;
6744
6745 hpux*)
18d98188
PG
6746 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6747 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6748 # sets the default TLS model and affects inlining.
1cf3d07d 6749 case $host_cpu in
18d98188 6750 hppa*64*)
1cf3d07d
SE
6751 # +Z the default
6752 ;;
6753 *)
6754 lt_prog_compiler_pic='-fPIC'
6755 ;;
6756 esac
6757 ;;
6758
6759 interix[3-9]*)
6760 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6761 # Instead, we relocate shared libraries at runtime.
6762 ;;
6763
6764 msdosdjgpp*)
6765 # Just because we use GCC doesn't mean we suddenly get shared libraries
6766 # on systems that don't support them.
6767 lt_prog_compiler_can_build_shared=no
6768 enable_shared=no
6769 ;;
6770
6771 *nto* | *qnx*)
6772 # QNX uses GNU C++, but need to define -shared option too, otherwise
6773 # it will coredump.
6774 lt_prog_compiler_pic='-fPIC -shared'
6775 ;;
6776
6777 sysv4*MP*)
6778 if test -d /usr/nec; then
6779 lt_prog_compiler_pic=-Kconform_pic
6780 fi
6781 ;;
6782
6783 *)
6784 lt_prog_compiler_pic='-fPIC'
6785 ;;
6786 esac
6787 else
6788 # PORTME Check for flag to pass linker flags through the system compiler.
6789 case $host_os in
6790 aix*)
6791 lt_prog_compiler_wl='-Wl,'
6792 if test "$host_cpu" = ia64; then
6793 # AIX 5 now supports IA64 processor
6794 lt_prog_compiler_static='-Bstatic'
6795 else
6796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6797 fi
6798 ;;
1cf3d07d 6799
18d98188 6800 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
6801 # This hack is so that the source file can tell whether it is being
6802 # built for inclusion in a dll (and should export symbols for example).
6803 lt_prog_compiler_pic='-DDLL_EXPORT'
6804 ;;
6805
6806 hpux9* | hpux10* | hpux11*)
6807 lt_prog_compiler_wl='-Wl,'
6808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6809 # not for PA HP-UX.
6810 case $host_cpu in
6811 hppa*64*|ia64*)
6812 # +Z the default
6813 ;;
6814 *)
6815 lt_prog_compiler_pic='+Z'
6816 ;;
6817 esac
6818 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6819 lt_prog_compiler_static='${wl}-a ${wl}archive'
6820 ;;
6821
6822 irix5* | irix6* | nonstopux*)
6823 lt_prog_compiler_wl='-Wl,'
6824 # PIC (with -KPIC) is the default.
6825 lt_prog_compiler_static='-non_shared'
6826 ;;
6827
6828 linux* | k*bsd*-gnu)
6829 case $cc_basename in
18d98188
PG
6830 # old Intel for x86_64 which still supported -KPIC.
6831 ecc*)
1cf3d07d
SE
6832 lt_prog_compiler_wl='-Wl,'
6833 lt_prog_compiler_pic='-KPIC'
6834 lt_prog_compiler_static='-static'
6835 ;;
18d98188
PG
6836 # icc used to be incompatible with GCC.
6837 # ICC 10 doesn't accept -KPIC any more.
6838 icc* | ifort*)
6839 lt_prog_compiler_wl='-Wl,'
6840 lt_prog_compiler_pic='-fPIC'
6841 lt_prog_compiler_static='-static'
6842 ;;
6843 # Lahey Fortran 8.1.
6844 lf95*)
6845 lt_prog_compiler_wl='-Wl,'
6846 lt_prog_compiler_pic='--shared'
6847 lt_prog_compiler_static='--static'
6848 ;;
1cf3d07d
SE
6849 pgcc* | pgf77* | pgf90* | pgf95*)
6850 # Portland Group compilers (*not* the Pentium gcc compiler,
6851 # which looks to be a dead project)
6852 lt_prog_compiler_wl='-Wl,'
6853 lt_prog_compiler_pic='-fpic'
6854 lt_prog_compiler_static='-Bstatic'
6855 ;;
6856 ccc*)
6857 lt_prog_compiler_wl='-Wl,'
6858 # All Alpha code is PIC.
6859 lt_prog_compiler_static='-non_shared'
6860 ;;
18d98188
PG
6861 xl*)
6862 # IBM XL C 8.0/Fortran 10.1 on PPC
6863 lt_prog_compiler_wl='-Wl,'
6864 lt_prog_compiler_pic='-qpic'
6865 lt_prog_compiler_static='-qstaticlink'
6866 ;;
1cf3d07d
SE
6867 *)
6868 case `$CC -V 2>&1 | sed 5q` in
6869 *Sun\ C*)
6870 # Sun C 5.9
6871 lt_prog_compiler_pic='-KPIC'
6872 lt_prog_compiler_static='-Bstatic'
6873 lt_prog_compiler_wl='-Wl,'
6874 ;;
6875 *Sun\ F*)
6876 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6877 lt_prog_compiler_pic='-KPIC'
6878 lt_prog_compiler_static='-Bstatic'
6879 lt_prog_compiler_wl=''
6880 ;;
6881 esac
6882 ;;
6883 esac
6884 ;;
6885
6886 newsos6)
6887 lt_prog_compiler_pic='-KPIC'
6888 lt_prog_compiler_static='-Bstatic'
6889 ;;
6890
6891 *nto* | *qnx*)
6892 # QNX uses GNU C++, but need to define -shared option too, otherwise
6893 # it will coredump.
6894 lt_prog_compiler_pic='-fPIC -shared'
6895 ;;
6896
6897 osf3* | osf4* | osf5*)
6898 lt_prog_compiler_wl='-Wl,'
6899 # All OSF/1 code is PIC.
6900 lt_prog_compiler_static='-non_shared'
6901 ;;
6902
6903 rdos*)
6904 lt_prog_compiler_static='-non_shared'
6905 ;;
6906
6907 solaris*)
6908 lt_prog_compiler_pic='-KPIC'
6909 lt_prog_compiler_static='-Bstatic'
6910 case $cc_basename in
6911 f77* | f90* | f95*)
6912 lt_prog_compiler_wl='-Qoption ld ';;
6913 *)
6914 lt_prog_compiler_wl='-Wl,';;
6915 esac
6916 ;;
6917
6918 sunos4*)
6919 lt_prog_compiler_wl='-Qoption ld '
6920 lt_prog_compiler_pic='-PIC'
6921 lt_prog_compiler_static='-Bstatic'
6922 ;;
6923
6924 sysv4 | sysv4.2uw2* | sysv4.3*)
6925 lt_prog_compiler_wl='-Wl,'
6926 lt_prog_compiler_pic='-KPIC'
6927 lt_prog_compiler_static='-Bstatic'
6928 ;;
6929
6930 sysv4*MP*)
6931 if test -d /usr/nec ;then
6932 lt_prog_compiler_pic='-Kconform_pic'
6933 lt_prog_compiler_static='-Bstatic'
6934 fi
6935 ;;
6936
6937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6938 lt_prog_compiler_wl='-Wl,'
6939 lt_prog_compiler_pic='-KPIC'
6940 lt_prog_compiler_static='-Bstatic'
6941 ;;
6942
6943 unicos*)
6944 lt_prog_compiler_wl='-Wl,'
6945 lt_prog_compiler_can_build_shared=no
6946 ;;
6947
6948 uts4*)
6949 lt_prog_compiler_pic='-pic'
6950 lt_prog_compiler_static='-Bstatic'
6951 ;;
6952
6953 *)
6954 lt_prog_compiler_can_build_shared=no
6955 ;;
6956 esac
6957 fi
6958
6959case $host_os in
6960 # For platforms which do not support PIC, -DPIC is meaningless:
6961 *djgpp*)
6962 lt_prog_compiler_pic=
6963 ;;
6964 *)
6965 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6966 ;;
6967esac
6968echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6969echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6970
6971
6972
6973
6974
6975
6976#
6977# Check to make sure the PIC flag actually works.
6978#
6979if test -n "$lt_prog_compiler_pic"; then
6980 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6981echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
18d98188 6982if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1cf3d07d
SE
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
18d98188 6985 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
6986 ac_outfile=conftest.$ac_objext
6987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6988 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6989 # Insert the option either (1) after the last *FLAGS variable, or
6990 # (2) before a word containing "conftest.", or (3) at the end.
6991 # Note that $ac_compile itself does not contain backslashes and begins
6992 # with a dollar sign (not a hyphen), so the echo should work correctly.
6993 # The option is referenced via a variable to avoid confusing sed.
6994 lt_compile=`echo "$ac_compile" | $SED \
6995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6997 -e 's:$: $lt_compiler_flag:'`
18d98188 6998 (eval echo "\"\$as_me:6998: $lt_compile\"" >&5)
1cf3d07d
SE
6999 (eval "$lt_compile" 2>conftest.err)
7000 ac_status=$?
7001 cat conftest.err >&5
18d98188 7002 echo "$as_me:7002: \$? = $ac_status" >&5
1cf3d07d
SE
7003 if (exit $ac_status) && test -s "$ac_outfile"; then
7004 # The compiler can only warn and ignore the option if not recognized
7005 # So say no if there are warnings other than the usual output.
7006 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18d98188 7009 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
7010 fi
7011 fi
7012 $RM conftest*
7013
7014fi
18d98188
PG
7015echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7016echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1cf3d07d 7017
18d98188 7018if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
7019 case $lt_prog_compiler_pic in
7020 "" | " "*) ;;
7021 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7022 esac
7023else
7024 lt_prog_compiler_pic=
7025 lt_prog_compiler_can_build_shared=no
7026fi
7027
7028fi
7029
7030
7031
7032
7033
7034
7035#
7036# Check to make sure the static flag actually works.
7037#
7038wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7039echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7040echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18d98188 7041if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1cf3d07d
SE
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
18d98188 7044 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
7045 save_LDFLAGS="$LDFLAGS"
7046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7047 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7049 # The linker can only warn and ignore the option if not recognized
7050 # So say no if there are warnings
7051 if test -s conftest.err; then
7052 # Append any errors to the config.log.
7053 cat conftest.err 1>&5
7054 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7056 if diff conftest.exp conftest.er2 >/dev/null; then
18d98188 7057 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7058 fi
7059 else
18d98188 7060 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7061 fi
7062 fi
18d98188 7063 $RM -r conftest*
1cf3d07d
SE
7064 LDFLAGS="$save_LDFLAGS"
7065
7066fi
18d98188
PG
7067echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7068echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1cf3d07d 7069
18d98188 7070if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
7071 :
7072else
7073 lt_prog_compiler_static=
7074fi
7075
7076
7077
7078
7079
7080
7081
7082 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7083echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7084if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087 lt_cv_prog_compiler_c_o=no
7088 $RM -r conftest 2>/dev/null
7089 mkdir conftest
7090 cd conftest
7091 mkdir out
7092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7093
7094 lt_compiler_flag="-o out/conftest2.$ac_objext"
7095 # Insert the option either (1) after the last *FLAGS variable, or
7096 # (2) before a word containing "conftest.", or (3) at the end.
7097 # Note that $ac_compile itself does not contain backslashes and begins
7098 # with a dollar sign (not a hyphen), so the echo should work correctly.
7099 lt_compile=`echo "$ac_compile" | $SED \
7100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7102 -e 's:$: $lt_compiler_flag:'`
18d98188 7103 (eval echo "\"\$as_me:7103: $lt_compile\"" >&5)
1cf3d07d
SE
7104 (eval "$lt_compile" 2>out/conftest.err)
7105 ac_status=$?
7106 cat out/conftest.err >&5
18d98188 7107 echo "$as_me:7107: \$? = $ac_status" >&5
1cf3d07d
SE
7108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7109 then
7110 # The compiler can only warn and ignore the option if not recognized
7111 # So say no if there are warnings
7112 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7115 lt_cv_prog_compiler_c_o=yes
7116 fi
7117 fi
7118 chmod u+w . 2>&5
7119 $RM conftest*
7120 # SGI C++ compiler will create directory out/ii_files/ for
7121 # template instantiation
7122 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7123 $RM out/* && rmdir out
7124 cd ..
7125 $RM -r conftest
7126 $RM conftest*
7127
7128fi
7129echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7130echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7131
7132
7133
7134
7135
7136
7137 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7138echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7139if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142 lt_cv_prog_compiler_c_o=no
7143 $RM -r conftest 2>/dev/null
7144 mkdir conftest
7145 cd conftest
7146 mkdir out
7147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7148
7149 lt_compiler_flag="-o out/conftest2.$ac_objext"
7150 # Insert the option either (1) after the last *FLAGS variable, or
7151 # (2) before a word containing "conftest.", or (3) at the end.
7152 # Note that $ac_compile itself does not contain backslashes and begins
7153 # with a dollar sign (not a hyphen), so the echo should work correctly.
7154 lt_compile=`echo "$ac_compile" | $SED \
7155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7157 -e 's:$: $lt_compiler_flag:'`
18d98188 7158 (eval echo "\"\$as_me:7158: $lt_compile\"" >&5)
1cf3d07d
SE
7159 (eval "$lt_compile" 2>out/conftest.err)
7160 ac_status=$?
7161 cat out/conftest.err >&5
18d98188 7162 echo "$as_me:7162: \$? = $ac_status" >&5
1cf3d07d
SE
7163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7164 then
7165 # The compiler can only warn and ignore the option if not recognized
7166 # So say no if there are warnings
7167 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7170 lt_cv_prog_compiler_c_o=yes
7171 fi
7172 fi
7173 chmod u+w . 2>&5
7174 $RM conftest*
7175 # SGI C++ compiler will create directory out/ii_files/ for
7176 # template instantiation
7177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7178 $RM out/* && rmdir out
7179 cd ..
7180 $RM -r conftest
7181 $RM conftest*
7182
7183fi
7184echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7185echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7186
7187
7188
7189
7190hard_links="nottested"
7191if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7192 # do not overwrite the value of need_locks provided by the user
7193 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7194echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7195 hard_links=yes
7196 $RM conftest*
7197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7198 touch conftest.a
7199 ln conftest.a conftest.b 2>&5 || hard_links=no
7200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7201 echo "$as_me:$LINENO: result: $hard_links" >&5
7202echo "${ECHO_T}$hard_links" >&6
7203 if test "$hard_links" = no; then
7204 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7205echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7206 need_locks=warn
7207 fi
7208else
7209 need_locks=no
7210fi
7211
7212
7213
7214
7215
7216
7217 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7218echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7219
7220 runpath_var=
7221 allow_undefined_flag=
7222 always_export_symbols=no
7223 archive_cmds=
7224 archive_expsym_cmds=
7225 compiler_needs_object=no
7226 enable_shared_with_static_runtimes=no
7227 export_dynamic_flag_spec=
7228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7229 hardcode_automatic=no
7230 hardcode_direct=no
7231 hardcode_direct_absolute=no
7232 hardcode_libdir_flag_spec=
7233 hardcode_libdir_flag_spec_ld=
7234 hardcode_libdir_separator=
7235 hardcode_minus_L=no
7236 hardcode_shlibpath_var=unsupported
7237 inherit_rpath=no
7238 link_all_deplibs=unknown
7239 module_cmds=
7240 module_expsym_cmds=
7241 old_archive_from_new_cmds=
7242 old_archive_from_expsyms_cmds=
7243 thread_safe_flag_spec=
7244 whole_archive_flag_spec=
7245 # include_expsyms should be a list of space-separated symbols to be *always*
7246 # included in the symbol list
7247 include_expsyms=
7248 # exclude_expsyms can be an extended regexp of symbols to exclude
7249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7251 # as well as any symbol that contains `d'.
18d98188 7252 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
7253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7254 # platforms (ab)use it in PIC code, but their linkers get confused if
7255 # the symbol is explicitly referenced. Since portable code cannot
7256 # rely on this symbol name, it's probably fine to never include it in
7257 # preloaded symbol tables.
18d98188 7258 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
7259 extract_expsyms_cmds=
7260
7261 case $host_os in
18d98188 7262 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7263 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7264 # When not using gcc, we currently assume that we are using
7265 # Microsoft Visual C++.
7266 if test "$GCC" != yes; then
7267 with_gnu_ld=no
7268 fi
7269 ;;
7270 interix*)
7271 # we just hope/assume this is gcc and not c89 (= MSVC++)
7272 with_gnu_ld=yes
7273 ;;
7274 openbsd*)
7275 with_gnu_ld=no
7276 ;;
7277 esac
7278
7279 ld_shlibs=yes
7280 if test "$with_gnu_ld" = yes; then
7281 # If archive_cmds runs LD, not CC, wlarc should be empty
7282 wlarc='${wl}'
7283
7284 # Set some defaults for GNU ld with shared library support. These
7285 # are reset later if shared libraries are not supported. Putting them
7286 # here allows them to be overridden if necessary.
7287 runpath_var=LD_RUN_PATH
7288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7289 export_dynamic_flag_spec='${wl}--export-dynamic'
7290 # ancient GNU ld didn't support --whole-archive et. al.
7291 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7292 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7293 else
7294 whole_archive_flag_spec=
7295 fi
7296 supports_anon_versioning=no
7297 case `$LD -v 2>&1` in
7298 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7299 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7300 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7301 *\ 2.11.*) ;; # other 2.11 versions
7302 *) supports_anon_versioning=yes ;;
7303 esac
7304
7305 # See if GNU ld supports shared libraries.
7306 case $host_os in
3e7b7e2b 7307 aix[3-9]*)
1cf3d07d
SE
7308 # On AIX/PPC, the GNU linker is very broken
7309 if test "$host_cpu" != ia64; then
7310 ld_shlibs=no
7311 cat <<_LT_EOF 1>&2
7312
7313*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7314*** to be unable to reliably create shared libraries on AIX.
7315*** Therefore, libtool is disabling shared libraries support. If you
7316*** really care for shared libraries, you may want to modify your PATH
7317*** so that a non-GNU linker is found, and then restart.
7318
7319_LT_EOF
7320 fi
7321 ;;
7322
7323 amigaos*)
18d98188
PG
7324 case $host_cpu in
7325 powerpc)
7326 # see comment about AmigaOS4 .so support
7327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7328 archive_expsym_cmds=''
7329 ;;
7330 m68k)
7331 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)'
7332 hardcode_libdir_flag_spec='-L$libdir'
7333 hardcode_minus_L=yes
7334 ;;
7335 esac
1cf3d07d
SE
7336 ;;
7337
7338 beos*)
7339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7340 allow_undefined_flag=unsupported
7341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7342 # support --undefined. This deserves some investigation. FIXME
7343 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7344 else
7345 ld_shlibs=no
7346 fi
7347 ;;
7348
18d98188 7349 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7350 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7351 # as there is no search path for DLLs.
7352 hardcode_libdir_flag_spec='-L$libdir'
7353 allow_undefined_flag=unsupported
7354 always_export_symbols=no
7355 enable_shared_with_static_runtimes=yes
7356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7357
7358 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7360 # If the export-symbols file already is a .def file (1st line
7361 # is EXPORTS), use it as is; otherwise, prepend...
7362 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7363 cp $export_symbols $output_objdir/$soname.def;
7364 else
7365 echo EXPORTS > $output_objdir/$soname.def;
7366 cat $export_symbols >> $output_objdir/$soname.def;
7367 fi~
7368 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7369 else
7370 ld_shlibs=no
7371 fi
7372 ;;
7373
7374 interix[3-9]*)
7375 hardcode_direct=no
7376 hardcode_shlibpath_var=no
7377 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7378 export_dynamic_flag_spec='${wl}-E'
7379 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7380 # Instead, shared libraries are loaded at an image base (0x10000000 by
7381 # default) and relocated if they conflict, which is a slow very memory
7382 # consuming and fragmenting process. To avoid this, we pick a random,
7383 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7384 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7385 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7386 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'
7387 ;;
7388
7389 gnu* | linux* | tpf* | k*bsd*-gnu)
7390 tmp_diet=no
7391 if test "$host_os" = linux-dietlibc; then
7392 case $cc_basename in
7393 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7394 esac
7395 fi
7396 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7397 && test "$tmp_diet" = no
7398 then
7399 tmp_addflag=
18d98188 7400 tmp_sharedflag='-shared'
1cf3d07d
SE
7401 case $cc_basename,$host_cpu in
7402 pgcc*) # Portland Group C compiler
7403 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'
7404 tmp_addflag=' $pic_flag'
7405 ;;
7406 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7407 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'
7408 tmp_addflag=' $pic_flag -Mnomain' ;;
7409 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7410 tmp_addflag=' -i_dynamic' ;;
7411 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7412 tmp_addflag=' -i_dynamic -nofor_main' ;;
7413 ifc* | ifort*) # Intel Fortran compiler
7414 tmp_addflag=' -nofor_main' ;;
18d98188
PG
7415 lf95*) # Lahey Fortran 8.1
7416 whole_archive_flag_spec=
7417 tmp_sharedflag='--shared' ;;
7418 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7419 tmp_sharedflag='-qmkshrobj'
7420 tmp_addflag= ;;
1cf3d07d
SE
7421 esac
7422 case `$CC -V 2>&1 | sed 5q` in
7423 *Sun\ C*) # Sun C 5.9
7424 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'
7425 compiler_needs_object=yes
7426 tmp_sharedflag='-G' ;;
7427 *Sun\ F*) # Sun Fortran 8.3
7428 tmp_sharedflag='-G' ;;
1cf3d07d
SE
7429 esac
7430 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7431
7432 if test "x$supports_anon_versioning" = xyes; then
7433 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7435 echo "local: *; };" >> $output_objdir/$libname.ver~
7436 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7437 fi
18d98188
PG
7438
7439 case $cc_basename in
7440 xlf*)
7441 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7442 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7443 hardcode_libdir_flag_spec=
7444 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7445 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7446 if test "x$supports_anon_versioning" = xyes; then
7447 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7449 echo "local: *; };" >> $output_objdir/$libname.ver~
7450 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7451 fi
7452 ;;
7453 esac
1cf3d07d
SE
7454 else
7455 ld_shlibs=no
7456 fi
7457 ;;
7458
7459 netbsd*)
7460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7461 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7462 wlarc=
7463 else
7464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7466 fi
7467 ;;
7468
7469 solaris*)
7470 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7471 ld_shlibs=no
7472 cat <<_LT_EOF 1>&2
7473
7474*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7475*** create shared libraries on Solaris systems. Therefore, libtool
7476*** is disabling shared libraries support. We urge you to upgrade GNU
7477*** binutils to release 2.9.1 or newer. Another option is to modify
7478*** your PATH or compiler configuration so that the native linker is
7479*** used, and then restart.
7480
7481_LT_EOF
7482 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7485 else
7486 ld_shlibs=no
7487 fi
7488 ;;
7489
7490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7491 case `$LD -v 2>&1` in
7492 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7493 ld_shlibs=no
7494 cat <<_LT_EOF 1>&2
7495
7496*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7497*** reliably create shared libraries on SCO systems. Therefore, libtool
7498*** is disabling shared libraries support. We urge you to upgrade GNU
7499*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7500*** your PATH or compiler configuration so that the native linker is
7501*** used, and then restart.
7502
7503_LT_EOF
7504 ;;
7505 *)
7506 # For security reasons, it is highly recommended that you always
7507 # use absolute paths for naming shared libraries, and exclude the
7508 # DT_RUNPATH tag from executables and libraries. But doing so
7509 # requires that you compile everything twice, which is a pain.
7510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7514 else
7515 ld_shlibs=no
7516 fi
7517 ;;
7518 esac
7519 ;;
7520
7521 sunos4*)
7522 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7523 wlarc=
7524 hardcode_direct=yes
7525 hardcode_shlibpath_var=no
7526 ;;
7527
7528 *)
7529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7532 else
7533 ld_shlibs=no
7534 fi
7535 ;;
7536 esac
7537
7538 if test "$ld_shlibs" = no; then
7539 runpath_var=
7540 hardcode_libdir_flag_spec=
7541 export_dynamic_flag_spec=
7542 whole_archive_flag_spec=
7543 fi
7544 else
7545 # PORTME fill in a description of your system's linker (not GNU ld)
7546 case $host_os in
7547 aix3*)
7548 allow_undefined_flag=unsupported
7549 always_export_symbols=yes
7550 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'
7551 # Note: this linker hardcodes the directories in LIBPATH if there
7552 # are no directories specified by -L.
7553 hardcode_minus_L=yes
7554 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7555 # Neither direct hardcoding nor static linking is supported with a
7556 # broken collect2.
7557 hardcode_direct=unsupported
7558 fi
7559 ;;
7560
3e7b7e2b 7561 aix[4-9]*)
1cf3d07d
SE
7562 if test "$host_cpu" = ia64; then
7563 # On IA64, the linker does run time linking by default, so we don't
7564 # have to do anything special.
7565 aix_use_runtimelinking=no
7566 exp_sym_flag='-Bexport'
7567 no_entry_flag=""
7568 else
7569 # If we're using GNU nm, then we don't want the "-C" option.
7570 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7571 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7572 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'
7573 else
7574 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'
7575 fi
7576 aix_use_runtimelinking=no
7577
7578 # Test if we are trying to use run time linking or normal
7579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7580 # need to do runtime linking.
3e7b7e2b 7581 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
7582 for ld_flag in $LDFLAGS; do
7583 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7584 aix_use_runtimelinking=yes
7585 break
7586 fi
7587 done
7588 ;;
7589 esac
7590
7591 exp_sym_flag='-bexport'
7592 no_entry_flag='-bnoentry'
7593 fi
7594
7595 # When large executables or shared objects are built, AIX ld can
7596 # have problems creating the table of contents. If linking a library
7597 # or program results in "error TOC overflow" add -mminimal-toc to
7598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7600
7601 archive_cmds=''
7602 hardcode_direct=yes
7603 hardcode_direct_absolute=yes
7604 hardcode_libdir_separator=':'
7605 link_all_deplibs=yes
7606 file_list_spec='${wl}-f,'
7607
7608 if test "$GCC" = yes; then
7609 case $host_os in aix4.[012]|aix4.[012].*)
7610 # We only want to do this on AIX 4.2 and lower, the check
7611 # below for broken collect2 doesn't work under 4.3+
7612 collect2name=`${CC} -print-prog-name=collect2`
7613 if test -f "$collect2name" &&
7614 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7615 then
7616 # We have reworked collect2
7617 :
7618 else
7619 # We have old collect2
7620 hardcode_direct=unsupported
7621 # It fails to find uninstalled libraries when the uninstalled
7622 # path is not listed in the libpath. Setting hardcode_minus_L
7623 # to unsupported forces relinking
7624 hardcode_minus_L=yes
7625 hardcode_libdir_flag_spec='-L$libdir'
7626 hardcode_libdir_separator=
7627 fi
7628 ;;
7629 esac
7630 shared_flag='-shared'
7631 if test "$aix_use_runtimelinking" = yes; then
7632 shared_flag="$shared_flag "'${wl}-G'
7633 fi
7634 else
7635 # not using gcc
7636 if test "$host_cpu" = ia64; then
7637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7638 # chokes on -Wl,-G. The following line is correct:
7639 shared_flag='-G'
7640 else
7641 if test "$aix_use_runtimelinking" = yes; then
7642 shared_flag='${wl}-G'
7643 else
7644 shared_flag='${wl}-bM:SRE'
7645 fi
7646 fi
7647 fi
7648
18d98188 7649 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
7650 # It seems that -bexpall does not export symbols beginning with
7651 # underscore (_), so it is better to generate a list of symbols to export.
7652 always_export_symbols=yes
7653 if test "$aix_use_runtimelinking" = yes; then
7654 # Warning - without using the other runtime loading flags (-brtl),
7655 # -berok will link without error, but may produce a broken library.
7656 allow_undefined_flag='-berok'
7657 # Determine the default libpath from the value encoded in an
7658 # empty executable.
7659 if test x$gcc_no_link = xyes; then
7660 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7661echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7662 { (exit 1); exit 1; }; }
7663fi
7664cat >conftest.$ac_ext <<_ACEOF
7665/* confdefs.h. */
7666_ACEOF
7667cat confdefs.h >>conftest.$ac_ext
7668cat >>conftest.$ac_ext <<_ACEOF
7669/* end confdefs.h. */
7670
7671int
7672main ()
7673{
7674
7675 ;
7676 return 0;
7677}
7678_ACEOF
7679rm -f conftest.$ac_objext conftest$ac_exeext
7680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681 (eval $ac_link) 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
7688 { ac_try='test -z "$ac_c_werror_flag"
7689 || test ! -s conftest.err'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 (eval $ac_try) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; } &&
7695 { ac_try='test -s conftest$ac_exeext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701
7702lt_aix_libpath_sed='
7703 /Import File Strings/,/^$/ {
7704 /^0/ {
7705 s/^0 *\(.*\)$/\1/
7706 p
7707 }
7708 }'
7709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7710# Check for a 64-bit object if we didn't find anything.
7711if test -z "$aix_libpath"; then
7712 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7713fi
7714else
7715 echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
7717
7718fi
7719rm -f conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7722
7723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7724 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"
7725 else
7726 if test "$host_cpu" = ia64; then
7727 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7728 allow_undefined_flag="-z nodefs"
7729 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"
7730 else
7731 # Determine the default libpath from the value encoded in an
7732 # empty executable.
7733 if test x$gcc_no_link = xyes; then
7734 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7735echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7736 { (exit 1); exit 1; }; }
7737fi
7738cat >conftest.$ac_ext <<_ACEOF
7739/* confdefs.h. */
7740_ACEOF
7741cat confdefs.h >>conftest.$ac_ext
7742cat >>conftest.$ac_ext <<_ACEOF
7743/* end confdefs.h. */
7744
7745int
7746main ()
7747{
7748
7749 ;
7750 return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext conftest$ac_exeext
7754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest$ac_exeext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775
7776lt_aix_libpath_sed='
7777 /Import File Strings/,/^$/ {
7778 /^0/ {
7779 s/^0 *\(.*\)$/\1/
7780 p
7781 }
7782 }'
7783aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7784# Check for a 64-bit object if we didn't find anything.
7785if test -z "$aix_libpath"; then
7786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7787fi
7788else
7789 echo "$as_me: failed program was:" >&5
7790sed 's/^/| /' conftest.$ac_ext >&5
7791
7792fi
7793rm -f conftest.err conftest.$ac_objext \
7794 conftest$ac_exeext conftest.$ac_ext
7795if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7796
7797 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7798 # Warning - without using the other run time loading flags,
7799 # -berok will link without error, but may produce a broken library.
7800 no_undefined_flag=' ${wl}-bernotok'
7801 allow_undefined_flag=' ${wl}-berok'
7802 # Exported symbols can be pulled into shared objects from archives
7803 whole_archive_flag_spec='$convenience'
7804 archive_cmds_need_lc=yes
7805 # This is similar to how AIX traditionally builds its shared libraries.
7806 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'
7807 fi
7808 fi
7809 ;;
7810
7811 amigaos*)
18d98188
PG
7812 case $host_cpu in
7813 powerpc)
7814 # see comment about AmigaOS4 .so support
7815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816 archive_expsym_cmds=''
7817 ;;
7818 m68k)
7819 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)'
7820 hardcode_libdir_flag_spec='-L$libdir'
7821 hardcode_minus_L=yes
7822 ;;
7823 esac
1cf3d07d
SE
7824 ;;
7825
7826 bsdi[45]*)
7827 export_dynamic_flag_spec=-rdynamic
7828 ;;
7829
18d98188 7830 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7831 # When not using gcc, we currently assume that we are using
7832 # Microsoft Visual C++.
7833 # hardcode_libdir_flag_spec is actually meaningless, as there is
7834 # no search path for DLLs.
7835 hardcode_libdir_flag_spec=' '
7836 allow_undefined_flag=unsupported
7837 # Tell ltmain to make .lib files, not .a files.
7838 libext=lib
7839 # Tell ltmain to make .dll files, not .so files.
7840 shrext_cmds=".dll"
7841 # FIXME: Setting linknames here is a bad hack.
7842 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7843 # The linker will automatically build a .lib file if we build a DLL.
7844 old_archive_from_new_cmds='true'
7845 # FIXME: Should let the user specify the lib program.
7846 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7847 fix_srcfile_path='`cygpath -w "$srcfile"`'
7848 enable_shared_with_static_runtimes=yes
7849 ;;
7850
7851 darwin* | rhapsody*)
1cf3d07d 7852
18d98188
PG
7853
7854 archive_cmds_need_lc=no
7855 hardcode_direct=no
7856 hardcode_automatic=yes
7857 hardcode_shlibpath_var=unsupported
7858 whole_archive_flag_spec=''
7859 link_all_deplibs=yes
7860 allow_undefined_flag="$_lt_dar_allow_undefined"
7861 case $cc_basename in
7862 ifort*) _lt_dar_can_shared=yes ;;
7863 *) _lt_dar_can_shared=$GCC ;;
7864 esac
7865 if test "$_lt_dar_can_shared" = "yes"; then
7866 output_verbose_link_cmd=echo
7867 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7868 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7869 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7870 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7871
7872 else
7873 ld_shlibs=no
7874 fi
7875
1cf3d07d
SE
7876 ;;
7877
7878 dgux*)
7879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7880 hardcode_libdir_flag_spec='-L$libdir'
7881 hardcode_shlibpath_var=no
7882 ;;
7883
7884 freebsd1*)
7885 ld_shlibs=no
7886 ;;
7887
7888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7889 # support. Future versions do this automatically, but an explicit c++rt0.o
7890 # does not break anything, and helps significantly (at the cost of a little
7891 # extra space).
7892 freebsd2.2*)
7893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7894 hardcode_libdir_flag_spec='-R$libdir'
7895 hardcode_direct=yes
7896 hardcode_shlibpath_var=no
7897 ;;
7898
7899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7900 freebsd2*)
7901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7902 hardcode_direct=yes
7903 hardcode_minus_L=yes
7904 hardcode_shlibpath_var=no
7905 ;;
7906
7907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7908 freebsd* | dragonfly*)
7909 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7910 hardcode_libdir_flag_spec='-R$libdir'
7911 hardcode_direct=yes
7912 hardcode_shlibpath_var=no
7913 ;;
7914
7915 hpux9*)
7916 if test "$GCC" = yes; then
7917 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'
7918 else
7919 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'
7920 fi
7921 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7922 hardcode_libdir_separator=:
7923 hardcode_direct=yes
7924
7925 # hardcode_minus_L: Not really in the search PATH,
7926 # but as the default location of the library.
7927 hardcode_minus_L=yes
7928 export_dynamic_flag_spec='${wl}-E'
7929 ;;
7930
7931 hpux10*)
7932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7933 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7934 else
7935 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7936 fi
7937 if test "$with_gnu_ld" = no; then
7938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7939 hardcode_libdir_flag_spec_ld='+b $libdir'
7940 hardcode_libdir_separator=:
7941 hardcode_direct=yes
7942 hardcode_direct_absolute=yes
7943 export_dynamic_flag_spec='${wl}-E'
7944 # hardcode_minus_L: Not really in the search PATH,
7945 # but as the default location of the library.
7946 hardcode_minus_L=yes
7947 fi
7948 ;;
7949
7950 hpux11*)
7951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7952 case $host_cpu in
7953 hppa*64*)
7954 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7955 ;;
7956 ia64*)
18d98188 7957 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
7958 ;;
7959 *)
7960 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7961 ;;
7962 esac
7963 else
7964 case $host_cpu in
7965 hppa*64*)
7966 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7967 ;;
7968 ia64*)
7969 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7970 ;;
7971 *)
7972 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7973 ;;
7974 esac
7975 fi
7976 if test "$with_gnu_ld" = no; then
7977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7978 hardcode_libdir_separator=:
7979
7980 case $host_cpu in
7981 hppa*64*|ia64*)
7982 hardcode_direct=no
7983 hardcode_shlibpath_var=no
7984 ;;
7985 *)
7986 hardcode_direct=yes
7987 hardcode_direct_absolute=yes
7988 export_dynamic_flag_spec='${wl}-E'
7989
7990 # hardcode_minus_L: Not really in the search PATH,
7991 # but as the default location of the library.
7992 hardcode_minus_L=yes
7993 ;;
7994 esac
7995 fi
7996 ;;
7997
7998 irix5* | irix6* | nonstopux*)
7999 if test "$GCC" = yes; then
8000 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'
8001 # Try to use the -exported_symbol ld option, if it does not
8002 # work, assume that -exports_file does not work either and
8003 # implicitly export all symbols.
8004 save_LDFLAGS="$LDFLAGS"
8005 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8006 if test x$gcc_no_link = xyes; then
8007 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8008echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8009 { (exit 1); exit 1; }; }
8010fi
8011cat >conftest.$ac_ext <<_ACEOF
8012int foo(void) {}
8013_ACEOF
8014rm -f conftest.$ac_objext conftest$ac_exeext
8015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016 (eval $ac_link) 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
8023 { ac_try='test -z "$ac_c_werror_flag"
8024 || test ! -s conftest.err'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest$ac_exeext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 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'
8037
8038else
8039 echo "$as_me: failed program was:" >&5
8040sed 's/^/| /' conftest.$ac_ext >&5
8041
8042fi
8043rm -f conftest.err conftest.$ac_objext \
8044 conftest$ac_exeext conftest.$ac_ext
8045 LDFLAGS="$save_LDFLAGS"
8046 else
8047 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'
8048 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'
8049 fi
8050 archive_cmds_need_lc='no'
8051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8052 hardcode_libdir_separator=:
8053 inherit_rpath=yes
8054 link_all_deplibs=yes
8055 ;;
8056
8057 netbsd*)
8058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8060 else
8061 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8062 fi
8063 hardcode_libdir_flag_spec='-R$libdir'
8064 hardcode_direct=yes
8065 hardcode_shlibpath_var=no
8066 ;;
8067
8068 newsos6)
8069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8070 hardcode_direct=yes
8071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8072 hardcode_libdir_separator=:
8073 hardcode_shlibpath_var=no
8074 ;;
8075
8076 *nto* | *qnx*)
8077 ;;
8078
8079 openbsd*)
18d98188
PG
8080 if test -f /usr/libexec/ld.so; then
8081 hardcode_direct=yes
8082 hardcode_shlibpath_var=no
8083 hardcode_direct_absolute=yes
8084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 8085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18d98188 8086 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 8087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18d98188
PG
8088 export_dynamic_flag_spec='${wl}-E'
8089 else
8090 case $host_os in
8091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8093 hardcode_libdir_flag_spec='-R$libdir'
8094 ;;
8095 *)
8096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8097 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8098 ;;
8099 esac
8100 fi
8101 else
8102 ld_shlibs=no
1cf3d07d
SE
8103 fi
8104 ;;
8105
8106 os2*)
8107 hardcode_libdir_flag_spec='-L$libdir'
8108 hardcode_minus_L=yes
8109 allow_undefined_flag=unsupported
8110 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'
8111 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8112 ;;
8113
8114 osf3*)
8115 if test "$GCC" = yes; then
8116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8117 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'
8118 else
8119 allow_undefined_flag=' -expect_unresolved \*'
8120 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'
8121 fi
8122 archive_cmds_need_lc='no'
8123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8124 hardcode_libdir_separator=:
8125 ;;
8126
8127 osf4* | osf5*) # as osf3* with the addition of -msym flag
8128 if test "$GCC" = yes; then
8129 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8130 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'
8131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8132 else
8133 allow_undefined_flag=' -expect_unresolved \*'
8134 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'
8135 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~
8136 $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'
8137
8138 # Both c and cxx compiler support -rpath directly
8139 hardcode_libdir_flag_spec='-rpath $libdir'
8140 fi
8141 archive_cmds_need_lc='no'
8142 hardcode_libdir_separator=:
8143 ;;
8144
8145 solaris*)
8146 no_undefined_flag=' -z defs'
8147 if test "$GCC" = yes; then
8148 wlarc='${wl}'
8149 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8151 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8152 else
8153 case `$CC -V 2>&1` in
8154 *"Compilers 5.0"*)
8155 wlarc=''
8156 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8159 ;;
8160 *)
8161 wlarc='${wl}'
8162 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8164 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8165 ;;
8166 esac
8167 fi
8168 hardcode_libdir_flag_spec='-R$libdir'
8169 hardcode_shlibpath_var=no
8170 case $host_os in
8171 solaris2.[0-5] | solaris2.[0-5].*) ;;
8172 *)
8173 # The compiler driver will combine and reorder linker options,
8174 # but understands `-z linker_flag'. GCC discards it without `$wl',
8175 # but is careful enough not to reorder.
8176 # Supported since Solaris 2.6 (maybe 2.5.1?)
8177 if test "$GCC" = yes; then
8178 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8179 else
8180 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8181 fi
8182 ;;
8183 esac
8184 link_all_deplibs=yes
8185 ;;
8186
8187 sunos4*)
8188 if test "x$host_vendor" = xsequent; then
8189 # Use $CC to link under sequent, because it throws in some extra .o
8190 # files that make .init and .fini sections work.
8191 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8192 else
8193 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8194 fi
8195 hardcode_libdir_flag_spec='-L$libdir'
8196 hardcode_direct=yes
8197 hardcode_minus_L=yes
8198 hardcode_shlibpath_var=no
8199 ;;
8200
8201 sysv4)
8202 case $host_vendor in
8203 sni)
8204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8205 hardcode_direct=yes # is this really true???
8206 ;;
8207 siemens)
8208 ## LD is ld it makes a PLAMLIB
8209 ## CC just makes a GrossModule.
8210 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8211 reload_cmds='$CC -r -o $output$reload_objs'
8212 hardcode_direct=no
8213 ;;
8214 motorola)
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8217 ;;
8218 esac
8219 runpath_var='LD_RUN_PATH'
8220 hardcode_shlibpath_var=no
8221 ;;
8222
8223 sysv4.3*)
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_shlibpath_var=no
8226 export_dynamic_flag_spec='-Bexport'
8227 ;;
8228
8229 sysv4*MP*)
8230 if test -d /usr/nec; then
8231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8232 hardcode_shlibpath_var=no
8233 runpath_var=LD_RUN_PATH
8234 hardcode_runpath_var=yes
8235 ld_shlibs=yes
8236 fi
8237 ;;
8238
8239 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8240 no_undefined_flag='${wl}-z,text'
8241 archive_cmds_need_lc=no
8242 hardcode_shlibpath_var=no
8243 runpath_var='LD_RUN_PATH'
8244
8245 if test "$GCC" = yes; then
8246 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8247 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8248 else
8249 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8250 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8251 fi
8252 ;;
8253
8254 sysv5* | sco3.2v5* | sco5v6*)
8255 # Note: We can NOT use -z defs as we might desire, because we do not
8256 # link with -lc, and that would cause any symbols used from libc to
8257 # always be unresolved, which means just about no library would
8258 # ever link correctly. If we're not using GNU ld we use -z text
8259 # though, which does catch some bad symbols but isn't as heavy-handed
8260 # as -z defs.
8261 no_undefined_flag='${wl}-z,text'
8262 allow_undefined_flag='${wl}-z,nodefs'
8263 archive_cmds_need_lc=no
8264 hardcode_shlibpath_var=no
8265 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8266 hardcode_libdir_separator=':'
8267 link_all_deplibs=yes
8268 export_dynamic_flag_spec='${wl}-Bexport'
8269 runpath_var='LD_RUN_PATH'
8270
8271 if test "$GCC" = yes; then
8272 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8273 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8274 else
8275 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8276 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8277 fi
8278 ;;
8279
8280 uts4*)
8281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8282 hardcode_libdir_flag_spec='-L$libdir'
8283 hardcode_shlibpath_var=no
8284 ;;
8285
8286 *)
8287 ld_shlibs=no
8288 ;;
8289 esac
8290
8291 if test x$host_vendor = xsni; then
8292 case $host in
8293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8294 export_dynamic_flag_spec='${wl}-Blargedynsym'
8295 ;;
8296 esac
8297 fi
8298 fi
8299
8300echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8301echo "${ECHO_T}$ld_shlibs" >&6
8302test "$ld_shlibs" = no && can_build_shared=no
8303
8304with_gnu_ld=$with_gnu_ld
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320#
8321# Do we need to explicitly link libc?
8322#
8323case "x$archive_cmds_need_lc" in
8324x|xyes)
8325 # Assume -lc should be added
8326 archive_cmds_need_lc=yes
8327
8328 if test "$enable_shared" = yes && test "$GCC" = yes; then
8329 case $archive_cmds in
8330 *'~'*)
8331 # FIXME: we may have to deal with multi-command sequences.
8332 ;;
8333 '$CC '*)
8334 # Test whether the compiler implicitly links with -lc since on some
8335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8336 # to ld, don't add -lc before -lgcc.
8337 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8338echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
baafc534
RW
8339if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 $RM conftest*
8343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 8344
baafc534 8345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1cf3d07d
SE
8346 (eval $ac_compile) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } 2>conftest.err; then
baafc534
RW
8350 soname=conftest
8351 lib=conftest
8352 libobjs=conftest.$ac_objext
8353 deplibs=
8354 wl=$lt_prog_compiler_wl
8355 pic_flag=$lt_prog_compiler_pic
8356 compiler_flags=-v
8357 linker_flags=-v
8358 verstring=
8359 output_objdir=.
8360 libname=conftest
8361 lt_save_allow_undefined_flag=$allow_undefined_flag
8362 allow_undefined_flag=
8363 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1cf3d07d
SE
8364 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }
baafc534
RW
8368 then
8369 lt_cv_archive_cmds_need_lc=no
8370 else
8371 lt_cv_archive_cmds_need_lc=yes
8372 fi
8373 allow_undefined_flag=$lt_save_allow_undefined_flag
8374 else
8375 cat conftest.err 1>&5
8376 fi
8377 $RM conftest*
8378
8379fi
8380echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8381echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8382 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
8383 ;;
8384 esac
8385 fi
8386 ;;
8387esac
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8546echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18d98188
PG
8547
8548if test "$GCC" = yes; then
1cf3d07d
SE
8549 case $host_os in
8550 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8551 *) lt_awk_arg="/^libraries:/" ;;
8552 esac
8553 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8554 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8555 # if the path contains ";" then we assume it to be the separator
8556 # otherwise default to the standard path separator (i.e. ":") - it is
8557 # assumed that no part of a normal pathname contains ";" but that should
8558 # okay in the real world where ";" in dirpaths is itself problematic.
8559 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8560 else
8561 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8562 fi
8563 # Ok, now we have the path, separated by spaces, we can step through it
8564 # and add multilib dir if necessary.
8565 lt_tmp_lt_search_path_spec=
8566 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8567 for lt_sys_path in $lt_search_path_spec; do
8568 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8569 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8570 else
8571 test -d "$lt_sys_path" && \
8572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8573 fi
8574 done
8575 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8576BEGIN {RS=" "; FS="/|\n";} {
8577 lt_foo="";
8578 lt_count=0;
8579 for (lt_i = NF; lt_i > 0; lt_i--) {
8580 if ($lt_i != "" && $lt_i != ".") {
8581 if ($lt_i == "..") {
8582 lt_count++;
8583 } else {
8584 if (lt_count == 0) {
8585 lt_foo="/" $lt_i lt_foo;
8586 } else {
8587 lt_count--;
8588 }
8589 }
8590 }
8591 }
8592 if (lt_foo != "") { lt_freq[lt_foo]++; }
8593 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8594}'`
8595 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8596else
8597 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8598fi
8599library_names_spec=
8600libname_spec='lib$name'
8601soname_spec=
8602shrext_cmds=".so"
8603postinstall_cmds=
8604postuninstall_cmds=
8605finish_cmds=
8606finish_eval=
8607shlibpath_var=
8608shlibpath_overrides_runpath=unknown
8609version_type=none
8610dynamic_linker="$host_os ld.so"
8611sys_lib_dlsearch_path_spec="/lib /usr/lib"
8612need_lib_prefix=unknown
8613hardcode_into_libs=no
8614
8615# when you set need_version to no, make sure it does not cause -set_version
8616# flags to be left without arguments
8617need_version=unknown
8618
8619case $host_os in
8620aix3*)
8621 version_type=linux
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8623 shlibpath_var=LIBPATH
8624
8625 # AIX 3 has no versioning support, so we append a major version to the name.
8626 soname_spec='${libname}${release}${shared_ext}$major'
8627 ;;
8628
3e7b7e2b 8629aix[4-9]*)
1cf3d07d
SE
8630 version_type=linux
8631 need_lib_prefix=no
8632 need_version=no
8633 hardcode_into_libs=yes
8634 if test "$host_cpu" = ia64; then
8635 # AIX 5 supports IA64
8636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8637 shlibpath_var=LD_LIBRARY_PATH
8638 else
8639 # With GCC up to 2.95.x, collect2 would create an import file
8640 # for dependence libraries. The import file would start with
8641 # the line `#! .'. This would cause the generated library to
8642 # depend on `.', always an invalid library. This was fixed in
8643 # development snapshots of GCC prior to 3.0.
8644 case $host_os in
8645 aix4 | aix4.[01] | aix4.[01].*)
8646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8647 echo ' yes '
8648 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8649 :
8650 else
8651 can_build_shared=no
8652 fi
8653 ;;
8654 esac
8655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8656 # soname into executable. Probably we can add versioning support to
8657 # collect2, so additional links can be useful in future.
8658 if test "$aix_use_runtimelinking" = yes; then
8659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8660 # instead of lib<name>.a to let people know that these are not
8661 # typical AIX shared libraries.
8662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8663 else
8664 # We preserve .a as extension for shared libraries through AIX4.2
8665 # and later when we are not doing run time linking.
8666 library_names_spec='${libname}${release}.a $libname.a'
8667 soname_spec='${libname}${release}${shared_ext}$major'
8668 fi
8669 shlibpath_var=LIBPATH
8670 fi
8671 ;;
8672
8673amigaos*)
18d98188
PG
8674 case $host_cpu in
8675 powerpc)
8676 # Since July 2007 AmigaOS4 officially supports .so libraries.
8677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8679 ;;
8680 m68k)
1cf3d07d
SE
8681 library_names_spec='$libname.ixlibrary $libname.a'
8682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8683 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'
18d98188
PG
8684 ;;
8685 esac
1cf3d07d
SE
8686 ;;
8687
8688beos*)
8689 library_names_spec='${libname}${shared_ext}'
8690 dynamic_linker="$host_os ld.so"
8691 shlibpath_var=LIBRARY_PATH
8692 ;;
8693
8694bsdi[45]*)
8695 version_type=linux
8696 need_version=no
8697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8698 soname_spec='${libname}${release}${shared_ext}$major'
8699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8700 shlibpath_var=LD_LIBRARY_PATH
8701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8703 # the default ld.so.conf also contains /usr/contrib/lib and
8704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8705 # libtool to hard-code these into programs
8706 ;;
8707
18d98188 8708cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8709 version_type=windows
8710 shrext_cmds=".dll"
8711 need_version=no
8712 need_lib_prefix=no
8713
18d98188
PG
8714 case $GCC,$host_os in
8715 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
8716 library_names_spec='$libname.dll.a'
8717 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8718 postinstall_cmds='base_file=`basename \${file}`~
8719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8720 dldir=$destdir/`dirname \$dlpath`~
8721 test -d \$dldir || mkdir -p \$dldir~
8722 $install_prog $dir/$dlname \$dldir/$dlname~
8723 chmod a+x \$dldir/$dlname~
8724 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8725 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8726 fi'
8727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8728 dlpath=$dir/\$dldll~
8729 $RM \$dlpath'
8730 shlibpath_overrides_runpath=yes
8731
8732 case $host_os in
8733 cygwin*)
8734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8736 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8737 ;;
18d98188 8738 mingw* | cegcc*)
1cf3d07d
SE
8739 # MinGW DLLs use traditional 'lib' prefix
8740 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8741 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8742 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8743 # It is most probably a Windows format PATH printed by
8744 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8745 # path with ; separators, and with drive letters. We can handle the
8746 # drive letters (cygwin fileutils understands them), so leave them,
8747 # especially as we might pass files found there to a mingw objdump,
8748 # which wouldn't understand a cygwinified path. Ahh.
8749 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8750 else
8751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8752 fi
8753 ;;
8754 pw32*)
8755 # pw32 DLLs use 'pw' prefix rather than 'lib'
8756 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757 ;;
8758 esac
8759 ;;
8760
8761 *)
8762 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8763 ;;
8764 esac
8765 dynamic_linker='Win32 ld.exe'
8766 # FIXME: first we should search . and the directory the executable is in
8767 shlibpath_var=PATH
8768 ;;
8769
8770darwin* | rhapsody*)
8771 dynamic_linker="$host_os dyld"
8772 version_type=darwin
8773 need_lib_prefix=no
8774 need_version=no
8775 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8776 soname_spec='${libname}${release}${major}$shared_ext'
8777 shlibpath_overrides_runpath=yes
8778 shlibpath_var=DYLD_LIBRARY_PATH
8779 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8780
8781 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8782 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8783 ;;
8784
8785dgux*)
8786 version_type=linux
8787 need_lib_prefix=no
8788 need_version=no
8789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8790 soname_spec='${libname}${release}${shared_ext}$major'
8791 shlibpath_var=LD_LIBRARY_PATH
8792 ;;
8793
8794freebsd1*)
8795 dynamic_linker=no
8796 ;;
8797
8798freebsd* | dragonfly*)
8799 # DragonFly does not have aout. When/if they implement a new
8800 # versioning mechanism, adjust this.
8801 if test -x /usr/bin/objformat; then
8802 objformat=`/usr/bin/objformat`
8803 else
8804 case $host_os in
8805 freebsd[123]*) objformat=aout ;;
8806 *) objformat=elf ;;
8807 esac
8808 fi
8809 version_type=freebsd-$objformat
8810 case $version_type in
8811 freebsd-elf*)
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8813 need_version=no
8814 need_lib_prefix=no
8815 ;;
8816 freebsd-*)
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8818 need_version=yes
8819 ;;
8820 esac
8821 shlibpath_var=LD_LIBRARY_PATH
8822 case $host_os in
8823 freebsd2*)
8824 shlibpath_overrides_runpath=yes
8825 ;;
8826 freebsd3.[01]* | freebsdelf3.[01]*)
8827 shlibpath_overrides_runpath=yes
8828 hardcode_into_libs=yes
8829 ;;
8830 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8831 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8832 shlibpath_overrides_runpath=no
8833 hardcode_into_libs=yes
8834 ;;
8835 *) # from 4.6 on, and DragonFly
8836 shlibpath_overrides_runpath=yes
8837 hardcode_into_libs=yes
8838 ;;
8839 esac
8840 ;;
8841
8842gnu*)
8843 version_type=linux
8844 need_lib_prefix=no
8845 need_version=no
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 shlibpath_var=LD_LIBRARY_PATH
8849 hardcode_into_libs=yes
8850 ;;
8851
8852hpux9* | hpux10* | hpux11*)
8853 # Give a soname corresponding to the major version so that dld.sl refuses to
8854 # link against other versions.
8855 version_type=sunos
8856 need_lib_prefix=no
8857 need_version=no
8858 case $host_cpu in
8859 ia64*)
8860 shrext_cmds='.so'
8861 hardcode_into_libs=yes
8862 dynamic_linker="$host_os dld.so"
8863 shlibpath_var=LD_LIBRARY_PATH
8864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 if test "X$HPUX_IA64_MODE" = X32; then
8868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8869 else
8870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8871 fi
8872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8873 ;;
8874 hppa*64*)
8875 shrext_cmds='.sl'
8876 hardcode_into_libs=yes
8877 dynamic_linker="$host_os dld.sl"
8878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8884 ;;
8885 *)
8886 shrext_cmds='.sl'
8887 dynamic_linker="$host_os dld.sl"
8888 shlibpath_var=SHLIB_PATH
8889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 ;;
8893 esac
8894 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8895 postinstall_cmds='chmod 555 $lib'
8896 ;;
8897
8898interix[3-9]*)
8899 version_type=linux
8900 need_lib_prefix=no
8901 need_version=no
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8905 shlibpath_var=LD_LIBRARY_PATH
8906 shlibpath_overrides_runpath=no
8907 hardcode_into_libs=yes
8908 ;;
8909
8910irix5* | irix6* | nonstopux*)
8911 case $host_os in
8912 nonstopux*) version_type=nonstopux ;;
8913 *)
8914 if test "$lt_cv_prog_gnu_ld" = yes; then
8915 version_type=linux
8916 else
8917 version_type=irix
8918 fi ;;
8919 esac
8920 need_lib_prefix=no
8921 need_version=no
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8924 case $host_os in
8925 irix5* | nonstopux*)
8926 libsuff= shlibsuff=
8927 ;;
8928 *)
8929 case $LD in # libtool.m4 will add one of these switches to LD
8930 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8931 libsuff= shlibsuff= libmagic=32-bit;;
8932 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8933 libsuff=32 shlibsuff=N32 libmagic=N32;;
8934 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8935 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8936 *) libsuff= shlibsuff= libmagic=never-match;;
8937 esac
8938 ;;
8939 esac
8940 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8941 shlibpath_overrides_runpath=no
8942 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8943 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8944 hardcode_into_libs=yes
8945 ;;
8946
8947# No shared lib support for Linux oldld, aout, or coff.
8948linux*oldld* | linux*aout* | linux*coff*)
8949 dynamic_linker=no
8950 ;;
8951
8952# This must be Linux ELF.
8953linux* | k*bsd*-gnu)
8954 version_type=linux
8955 need_lib_prefix=no
8956 need_version=no
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=no
baafc534 8962
1cf3d07d 8963 # Some binutils ld are patched to set DT_RUNPATH
baafc534
RW
8964 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8966else
8967 lt_cv_shlibpath_overrides_runpath=no
8968 save_LDFLAGS=$LDFLAGS
8969 save_libdir=$libdir
8970 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8971 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8972 if test x$gcc_no_link = xyes; then
1cf3d07d
SE
8973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8974echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8975 { (exit 1); exit 1; }; }
8976fi
8977cat >conftest.$ac_ext <<_ACEOF
8978/* confdefs.h. */
8979_ACEOF
8980cat confdefs.h >>conftest.$ac_ext
8981cat >>conftest.$ac_ext <<_ACEOF
8982/* end confdefs.h. */
8983
8984int
8985main ()
8986{
8987
8988 ;
8989 return 0;
8990}
8991_ACEOF
8992rm -f conftest.$ac_objext conftest$ac_exeext
8993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try='test -z "$ac_c_werror_flag"
9002 || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
18d98188 9014 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
baafc534 9015 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d
SE
9016fi
9017
9018else
9019 echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022fi
9023rm -f conftest.err conftest.$ac_objext \
9024 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
9025 LDFLAGS=$save_LDFLAGS
9026 libdir=$save_libdir
9027
9028fi
9029
9030 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
9031
9032 # This implies no fast_install, which is unacceptable.
9033 # Some rework will be needed to allow for fast_install
9034 # before this can be enabled.
9035 hardcode_into_libs=yes
9036
9037 # Append ld.so.conf contents to the search path
9038 if test -f /etc/ld.so.conf; then
18d98188 9039 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
9040 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9041 fi
9042
9043 # We used to test for /lib/ld.so.1 and disable shared libraries on
9044 # powerpc, because MkLinux only supported shared libraries with the
9045 # GNU dynamic linker. Since this was broken with cross compilers,
9046 # most powerpc-linux boxes support dynamic linking these days and
9047 # people can always --disable-shared, the test was removed, and we
9048 # assume the GNU/Linux dynamic linker is in use.
9049 dynamic_linker='GNU/Linux ld.so'
9050 ;;
9051
9052netbsd*)
9053 version_type=sunos
9054 need_lib_prefix=no
9055 need_version=no
9056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9059 dynamic_linker='NetBSD (a.out) ld.so'
9060 else
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 dynamic_linker='NetBSD ld.elf_so'
9064 fi
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9067 hardcode_into_libs=yes
9068 ;;
9069
9070newsos6)
9071 version_type=linux
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes
9075 ;;
9076
9077*nto* | *qnx*)
9078 version_type=qnx
9079 need_lib_prefix=no
9080 need_version=no
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=no
9085 hardcode_into_libs=yes
9086 dynamic_linker='ldqnx.so'
9087 ;;
9088
9089openbsd*)
9090 version_type=sunos
9091 sys_lib_dlsearch_path_spec="/usr/lib"
9092 need_lib_prefix=no
9093 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9094 case $host_os in
9095 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9096 *) need_version=no ;;
9097 esac
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9102 case $host_os in
9103 openbsd2.[89] | openbsd2.[89].*)
9104 shlibpath_overrides_runpath=no
9105 ;;
9106 *)
9107 shlibpath_overrides_runpath=yes
9108 ;;
9109 esac
9110 else
9111 shlibpath_overrides_runpath=yes
9112 fi
9113 ;;
9114
9115os2*)
9116 libname_spec='$name'
9117 shrext_cmds=".dll"
9118 need_lib_prefix=no
9119 library_names_spec='$libname${shared_ext} $libname.a'
9120 dynamic_linker='OS/2 ld.exe'
9121 shlibpath_var=LIBPATH
9122 ;;
9123
9124osf3* | osf4* | osf5*)
9125 version_type=osf
9126 need_lib_prefix=no
9127 need_version=no
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9132 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9133 ;;
9134
9135rdos*)
9136 dynamic_linker=no
9137 ;;
9138
9139solaris*)
9140 version_type=linux
9141 need_lib_prefix=no
9142 need_version=no
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 shlibpath_overrides_runpath=yes
9147 hardcode_into_libs=yes
9148 # ldd complains unless libraries are executable
9149 postinstall_cmds='chmod +x $lib'
9150 ;;
9151
9152sunos4*)
9153 version_type=sunos
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=yes
9158 if test "$with_gnu_ld" = yes; then
9159 need_lib_prefix=no
9160 fi
9161 need_version=yes
9162 ;;
9163
9164sysv4 | sysv4.3*)
9165 version_type=linux
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 case $host_vendor in
9170 sni)
9171 shlibpath_overrides_runpath=no
9172 need_lib_prefix=no
9173 runpath_var=LD_RUN_PATH
9174 ;;
9175 siemens)
9176 need_lib_prefix=no
9177 ;;
9178 motorola)
9179 need_lib_prefix=no
9180 need_version=no
9181 shlibpath_overrides_runpath=no
9182 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9183 ;;
9184 esac
9185 ;;
9186
9187sysv4*MP*)
9188 if test -d /usr/nec ;then
9189 version_type=linux
9190 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9191 soname_spec='$libname${shared_ext}.$major'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 fi
9194 ;;
9195
9196sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9197 version_type=freebsd-elf
9198 need_lib_prefix=no
9199 need_version=no
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=yes
9204 hardcode_into_libs=yes
9205 if test "$with_gnu_ld" = yes; then
9206 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9207 else
9208 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9209 case $host_os in
9210 sco3.2v5*)
9211 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9212 ;;
9213 esac
9214 fi
9215 sys_lib_dlsearch_path_spec='/usr/lib'
9216 ;;
9217
9218tpf*)
9219 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9220 version_type=linux
9221 need_lib_prefix=no
9222 need_version=no
18d98188 9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=no
9226 hardcode_into_libs=yes
9227 ;;
9228
9229uts4*)
9230 version_type=linux
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232 soname_spec='${libname}${release}${shared_ext}$major'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 ;;
9235
9236*)
9237 dynamic_linker=no
9238 ;;
9239esac
9240echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9241echo "${ECHO_T}$dynamic_linker" >&6
9242test "$dynamic_linker" = no && can_build_shared=no
9243
9244variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9245if test "$GCC" = yes; then
9246 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9247fi
9248
18d98188
PG
9249if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9250 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9251fi
9252if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9253 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9254fi
9255
1cf3d07d
SE
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9343echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9344hardcode_action=
9345if test -n "$hardcode_libdir_flag_spec" ||
9346 test -n "$runpath_var" ||
9347 test "X$hardcode_automatic" = "Xyes" ; then
9348
9349 # We can hardcode non-existent directories.
9350 if test "$hardcode_direct" != no &&
9351 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9352 # have to relink, otherwise we might link with an installed library
9353 # when we should be linking with a yet-to-be-installed one
9354 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9355 test "$hardcode_minus_L" != no; then
9356 # Linking always hardcodes the temporary library directory.
9357 hardcode_action=relink
9358 else
9359 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9360 hardcode_action=immediate
9361 fi
9362else
9363 # We cannot hardcode anything, or else we can only hardcode existing
9364 # directories.
9365 hardcode_action=unsupported
9366fi
9367echo "$as_me:$LINENO: result: $hardcode_action" >&5
9368echo "${ECHO_T}$hardcode_action" >&6
9369
9370if test "$hardcode_action" = relink ||
9371 test "$inherit_rpath" = yes; then
9372 # Fast installation is not supported
9373 enable_fast_install=no
9374elif test "$shlibpath_overrides_runpath" = yes ||
9375 test "$enable_shared" = no; then
9376 # Fast installation is not necessary
9377 enable_fast_install=needless
9378fi
9379
9380
9381
9382
9383
9384
9385 if test "x$enable_dlopen" != xyes; then
9386 enable_dlopen=unknown
9387 enable_dlopen_self=unknown
9388 enable_dlopen_self_static=unknown
9389else
9390 lt_cv_dlopen=no
9391 lt_cv_dlopen_libs=
9392
9393 case $host_os in
9394 beos*)
9395 lt_cv_dlopen="load_add_on"
9396 lt_cv_dlopen_libs=
9397 lt_cv_dlopen_self=yes
9398 ;;
9399
18d98188 9400 mingw* | pw32* | cegcc*)
1cf3d07d
SE
9401 lt_cv_dlopen="LoadLibrary"
9402 lt_cv_dlopen_libs=
9403 ;;
9404
9405 cygwin*)
9406 lt_cv_dlopen="dlopen"
9407 lt_cv_dlopen_libs=
9408 ;;
9409
9410 darwin*)
9411 # if libdl is installed we need to link against it
9412 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9413echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9414if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416else
9417 ac_check_lib_save_LIBS=$LIBS
9418LIBS="-ldl $LIBS"
9419if test x$gcc_no_link = xyes; then
9420 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9421echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9422 { (exit 1); exit 1; }; }
9423fi
9424cat >conftest.$ac_ext <<_ACEOF
9425/* confdefs.h. */
9426_ACEOF
9427cat confdefs.h >>conftest.$ac_ext
9428cat >>conftest.$ac_ext <<_ACEOF
9429/* end confdefs.h. */
9430
9431/* Override any gcc2 internal prototype to avoid an error. */
9432#ifdef __cplusplus
9433extern "C"
9434#endif
9435/* We use char because int might match the return type of a gcc2
9436 builtin and then its argument prototype would still apply. */
9437char dlopen ();
9438int
9439main ()
9440{
9441dlopen ();
9442 ;
9443 return 0;
9444}
9445_ACEOF
9446rm -f conftest.$ac_objext conftest$ac_exeext
9447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>conftest.er1
9449 ac_status=$?
9450 grep -v '^ *+' conftest.er1 >conftest.err
9451 rm -f conftest.er1
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try='test -z "$ac_c_werror_flag"
9456 || test ! -s conftest.err'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; } &&
9462 { ac_try='test -s conftest$ac_exeext'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 (eval $ac_try) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 ac_cv_lib_dl_dlopen=yes
9469else
9470 echo "$as_me: failed program was:" >&5
9471sed 's/^/| /' conftest.$ac_ext >&5
9472
9473ac_cv_lib_dl_dlopen=no
9474fi
9475rm -f conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477LIBS=$ac_check_lib_save_LIBS
9478fi
9479echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9480echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9481if test $ac_cv_lib_dl_dlopen = yes; then
9482 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9483else
9484
9485 lt_cv_dlopen="dyld"
9486 lt_cv_dlopen_libs=
9487 lt_cv_dlopen_self=yes
9488
9489fi
9490
9491 ;;
9492
9493 *)
9494 echo "$as_me:$LINENO: checking for shl_load" >&5
9495echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9496if test "${ac_cv_func_shl_load+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498else
9499 if test x$gcc_no_link = xyes; then
9500 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9501echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9502 { (exit 1); exit 1; }; }
9503fi
9504cat >conftest.$ac_ext <<_ACEOF
9505/* confdefs.h. */
9506_ACEOF
9507cat confdefs.h >>conftest.$ac_ext
9508cat >>conftest.$ac_ext <<_ACEOF
9509/* end confdefs.h. */
9510/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9512#define shl_load innocuous_shl_load
9513
9514/* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char shl_load (); below.
9516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 <limits.h> exists even on freestanding compilers. */
9518
9519#ifdef __STDC__
9520# include <limits.h>
9521#else
9522# include <assert.h>
9523#endif
9524
9525#undef shl_load
9526
9527/* Override any gcc2 internal prototype to avoid an error. */
9528#ifdef __cplusplus
9529extern "C"
9530{
9531#endif
9532/* We use char because int might match the return type of a gcc2
9533 builtin and then its argument prototype would still apply. */
9534char shl_load ();
9535/* The GNU C library defines this for functions which it implements
9536 to always fail with ENOSYS. Some functions are actually named
9537 something starting with __ and the normal name is an alias. */
9538#if defined (__stub_shl_load) || defined (__stub___shl_load)
9539choke me
9540#else
9541char (*f) () = shl_load;
9542#endif
9543#ifdef __cplusplus
9544}
9545#endif
9546
9547int
9548main ()
9549{
9550return f != shl_load;
9551 ;
9552 return 0;
9553}
9554_ACEOF
9555rm -f conftest.$ac_objext conftest$ac_exeext
9556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_func_shl_load=yes
9578else
9579 echo "$as_me: failed program was:" >&5
9580sed 's/^/| /' conftest.$ac_ext >&5
9581
9582ac_cv_func_shl_load=no
9583fi
9584rm -f conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586fi
9587echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9588echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9589if test $ac_cv_func_shl_load = yes; then
9590 lt_cv_dlopen="shl_load"
9591else
9592 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9593echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9594if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596else
9597 ac_check_lib_save_LIBS=$LIBS
9598LIBS="-ldld $LIBS"
9599if test x$gcc_no_link = xyes; then
9600 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9601echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9602 { (exit 1); exit 1; }; }
9603fi
9604cat >conftest.$ac_ext <<_ACEOF
9605/* confdefs.h. */
9606_ACEOF
9607cat confdefs.h >>conftest.$ac_ext
9608cat >>conftest.$ac_ext <<_ACEOF
9609/* end confdefs.h. */
9610
9611/* Override any gcc2 internal prototype to avoid an error. */
9612#ifdef __cplusplus
9613extern "C"
9614#endif
9615/* We use char because int might match the return type of a gcc2
9616 builtin and then its argument prototype would still apply. */
9617char shl_load ();
9618int
9619main ()
9620{
9621shl_load ();
9622 ;
9623 return 0;
9624}
9625_ACEOF
9626rm -f conftest.$ac_objext conftest$ac_exeext
9627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628 (eval $ac_link) 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -z "$ac_c_werror_flag"
9636 || test ! -s conftest.err'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 (eval $ac_try) 2>&5
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 (eval $ac_try) 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_cv_lib_dld_shl_load=yes
9649else
9650 echo "$as_me: failed program was:" >&5
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
9653ac_cv_lib_dld_shl_load=no
9654fi
9655rm -f conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657LIBS=$ac_check_lib_save_LIBS
9658fi
9659echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9660echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9661if test $ac_cv_lib_dld_shl_load = yes; then
18d98188 9662 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
9663else
9664 echo "$as_me:$LINENO: checking for dlopen" >&5
9665echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9666if test "${ac_cv_func_dlopen+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9668else
9669 if test x$gcc_no_link = xyes; then
9670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9671echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9672 { (exit 1); exit 1; }; }
9673fi
9674cat >conftest.$ac_ext <<_ACEOF
9675/* confdefs.h. */
9676_ACEOF
9677cat confdefs.h >>conftest.$ac_ext
9678cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h. */
9680/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9682#define dlopen innocuous_dlopen
9683
9684/* System header to define __stub macros and hopefully few prototypes,
9685 which can conflict with char dlopen (); below.
9686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9687 <limits.h> exists even on freestanding compilers. */
9688
9689#ifdef __STDC__
9690# include <limits.h>
9691#else
9692# include <assert.h>
9693#endif
9694
9695#undef dlopen
9696
9697/* Override any gcc2 internal prototype to avoid an error. */
9698#ifdef __cplusplus
9699extern "C"
9700{
9701#endif
9702/* We use char because int might match the return type of a gcc2
9703 builtin and then its argument prototype would still apply. */
9704char dlopen ();
9705/* The GNU C library defines this for functions which it implements
9706 to always fail with ENOSYS. Some functions are actually named
9707 something starting with __ and the normal name is an alias. */
9708#if defined (__stub_dlopen) || defined (__stub___dlopen)
9709choke me
9710#else
9711char (*f) () = dlopen;
9712#endif
9713#ifdef __cplusplus
9714}
9715#endif
9716
9717int
9718main ()
9719{
9720return f != dlopen;
9721 ;
9722 return 0;
9723}
9724_ACEOF
9725rm -f conftest.$ac_objext conftest$ac_exeext
9726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727 (eval $ac_link) 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag"
9735 || test ! -s conftest.err'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 (eval $ac_try) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_func_dlopen=yes
9748else
9749 echo "$as_me: failed program was:" >&5
9750sed 's/^/| /' conftest.$ac_ext >&5
9751
9752ac_cv_func_dlopen=no
9753fi
9754rm -f conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9756fi
9757echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9758echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9759if test $ac_cv_func_dlopen = yes; then
9760 lt_cv_dlopen="dlopen"
9761else
9762 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9763echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9764if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766else
9767 ac_check_lib_save_LIBS=$LIBS
9768LIBS="-ldl $LIBS"
9769if test x$gcc_no_link = xyes; then
9770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9771echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9772 { (exit 1); exit 1; }; }
9773fi
9774cat >conftest.$ac_ext <<_ACEOF
9775/* confdefs.h. */
9776_ACEOF
9777cat confdefs.h >>conftest.$ac_ext
9778cat >>conftest.$ac_ext <<_ACEOF
9779/* end confdefs.h. */
9780
9781/* Override any gcc2 internal prototype to avoid an error. */
9782#ifdef __cplusplus
9783extern "C"
9784#endif
9785/* We use char because int might match the return type of a gcc2
9786 builtin and then its argument prototype would still apply. */
9787char dlopen ();
9788int
9789main ()
9790{
9791dlopen ();
9792 ;
9793 return 0;
9794}
9795_ACEOF
9796rm -f conftest.$ac_objext conftest$ac_exeext
9797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798 (eval $ac_link) 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_c_werror_flag"
9806 || test ! -s conftest.err'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; } &&
9812 { ac_try='test -s conftest$ac_exeext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 (eval $ac_try) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_lib_dl_dlopen=yes
9819else
9820 echo "$as_me: failed program was:" >&5
9821sed 's/^/| /' conftest.$ac_ext >&5
9822
9823ac_cv_lib_dl_dlopen=no
9824fi
9825rm -f conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9827LIBS=$ac_check_lib_save_LIBS
9828fi
9829echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9830echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9831if test $ac_cv_lib_dl_dlopen = yes; then
9832 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9833else
9834 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9835echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9836if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838else
9839 ac_check_lib_save_LIBS=$LIBS
9840LIBS="-lsvld $LIBS"
9841if test x$gcc_no_link = xyes; then
9842 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9843echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9844 { (exit 1); exit 1; }; }
9845fi
9846cat >conftest.$ac_ext <<_ACEOF
9847/* confdefs.h. */
9848_ACEOF
9849cat confdefs.h >>conftest.$ac_ext
9850cat >>conftest.$ac_ext <<_ACEOF
9851/* end confdefs.h. */
9852
9853/* Override any gcc2 internal prototype to avoid an error. */
9854#ifdef __cplusplus
9855extern "C"
9856#endif
9857/* We use char because int might match the return type of a gcc2
9858 builtin and then its argument prototype would still apply. */
9859char dlopen ();
9860int
9861main ()
9862{
9863dlopen ();
9864 ;
9865 return 0;
9866}
9867_ACEOF
9868rm -f conftest.$ac_objext conftest$ac_exeext
9869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870 (eval $ac_link) 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag"
9878 || test ! -s conftest.err'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; } &&
9884 { ac_try='test -s conftest$ac_exeext'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 (eval $ac_try) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 ac_cv_lib_svld_dlopen=yes
9891else
9892 echo "$as_me: failed program was:" >&5
9893sed 's/^/| /' conftest.$ac_ext >&5
9894
9895ac_cv_lib_svld_dlopen=no
9896fi
9897rm -f conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899LIBS=$ac_check_lib_save_LIBS
9900fi
9901echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9902echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9903if test $ac_cv_lib_svld_dlopen = yes; then
9904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9905else
9906 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9907echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9908if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910else
9911 ac_check_lib_save_LIBS=$LIBS
9912LIBS="-ldld $LIBS"
9913if test x$gcc_no_link = xyes; then
a8aea176
NN
9914 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9915echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9916 { (exit 1); exit 1; }; }
9917fi
9918cat >conftest.$ac_ext <<_ACEOF
9919/* confdefs.h. */
9920_ACEOF
9921cat confdefs.h >>conftest.$ac_ext
9922cat >>conftest.$ac_ext <<_ACEOF
9923/* end confdefs.h. */
0fd91e0a 9924
1cf3d07d
SE
9925/* Override any gcc2 internal prototype to avoid an error. */
9926#ifdef __cplusplus
9927extern "C"
9928#endif
9929/* We use char because int might match the return type of a gcc2
9930 builtin and then its argument prototype would still apply. */
9931char dld_link ();
a8aea176
NN
9932int
9933main ()
9934{
1cf3d07d 9935dld_link ();
a8aea176
NN
9936 ;
9937 return 0;
9938}
9939_ACEOF
9940rm -f conftest.$ac_objext conftest$ac_exeext
9941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
17210dff
TT
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
a8aea176
NN
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
1cf3d07d 9962 ac_cv_lib_dld_dld_link=yes
0fd91e0a 9963else
a8aea176
NN
9964 echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
1cf3d07d 9967ac_cv_lib_dld_dld_link=no
025fd00e 9968fi
a8aea176
NN
9969rm -f conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9971LIBS=$ac_check_lib_save_LIBS
9972fi
9973echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9974echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9975if test $ac_cv_lib_dld_dld_link = yes; then
18d98188 9976 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
0fd91e0a 9977fi
025fd00e 9978
dfac8a13 9979
1cf3d07d 9980fi
a8aea176 9981
a8aea176 9982
c45f211e 9983fi
dfac8a13 9984
dfac8a13 9985
dfac8a13
TT
9986fi
9987
9988
1cf3d07d 9989fi
dfac8a13 9990
dfac8a13 9991
1cf3d07d 9992fi
0fd91e0a 9993
1cf3d07d
SE
9994 ;;
9995 esac
dfac8a13 9996
1cf3d07d
SE
9997 if test "x$lt_cv_dlopen" != xno; then
9998 enable_dlopen=yes
9999 else
10000 enable_dlopen=no
10001 fi
a8aea176 10002
1cf3d07d
SE
10003 case $lt_cv_dlopen in
10004 dlopen)
10005 save_CPPFLAGS="$CPPFLAGS"
10006 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
a8aea176 10007
1cf3d07d
SE
10008 save_LDFLAGS="$LDFLAGS"
10009 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
dfac8a13 10010
1cf3d07d
SE
10011 save_LIBS="$LIBS"
10012 LIBS="$lt_cv_dlopen_libs $LIBS"
dfac8a13 10013
1cf3d07d
SE
10014 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10015echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10016if test "${lt_cv_dlopen_self+set}" = set; then
a8aea176 10017 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 10018else
1cf3d07d
SE
10019 if test "$cross_compiling" = yes; then :
10020 lt_cv_dlopen_self=cross
a8aea176 10021else
1cf3d07d
SE
10022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10023 lt_status=$lt_dlunknown
10024 cat > conftest.$ac_ext <<_LT_EOF
baafc534 10025#line 10025 "configure"
1cf3d07d 10026#include "confdefs.h"
a8aea176 10027
1cf3d07d
SE
10028#if HAVE_DLFCN_H
10029#include <dlfcn.h>
10030#endif
a8aea176 10031
1cf3d07d 10032#include <stdio.h>
a8aea176 10033
1cf3d07d
SE
10034#ifdef RTLD_GLOBAL
10035# define LT_DLGLOBAL RTLD_GLOBAL
a8aea176 10036#else
1cf3d07d
SE
10037# ifdef DL_GLOBAL
10038# define LT_DLGLOBAL DL_GLOBAL
10039# else
10040# define LT_DLGLOBAL 0
10041# endif
10042#endif
10043
10044/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10045 find out it does not work in some platform. */
10046#ifndef LT_DLLAZY_OR_NOW
10047# ifdef RTLD_LAZY
10048# define LT_DLLAZY_OR_NOW RTLD_LAZY
10049# else
10050# ifdef DL_LAZY
10051# define LT_DLLAZY_OR_NOW DL_LAZY
10052# else
10053# ifdef RTLD_NOW
10054# define LT_DLLAZY_OR_NOW RTLD_NOW
10055# else
10056# ifdef DL_NOW
10057# define LT_DLLAZY_OR_NOW DL_NOW
10058# else
10059# define LT_DLLAZY_OR_NOW 0
10060# endif
10061# endif
10062# endif
10063# endif
10064#endif
10065
1cf3d07d
SE
10066void fnord() { int i=42;}
10067int main ()
10068{
10069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10070 int status = $lt_dlunknown;
10071
10072 if (self)
10073 {
10074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10075 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10076 /* dlclose (self); */
10077 }
10078 else
10079 puts (dlerror ());
10080
18d98188 10081 return status;
1cf3d07d
SE
10082}
10083_LT_EOF
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>&5
a8aea176 10086 ac_status=$?
a8aea176 10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10088 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10089 (./conftest; exit; ) >&5 2>/dev/null
10090 lt_status=$?
10091 case x$lt_status in
10092 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10093 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10094 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10095 esac
10096 else :
10097 # compilation failed
10098 lt_cv_dlopen_self=no
a8aea176 10099 fi
a8aea176 10100fi
1cf3d07d
SE
10101rm -fr conftest*
10102
a8aea176 10103
a8aea176 10104fi
1cf3d07d
SE
10105echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10106echo "${ECHO_T}$lt_cv_dlopen_self" >&6
a8aea176 10107
1cf3d07d
SE
10108 if test "x$lt_cv_dlopen_self" = xyes; then
10109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10110 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10111echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10112if test "${lt_cv_dlopen_self_static+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114else
10115 if test "$cross_compiling" = yes; then :
10116 lt_cv_dlopen_self_static=cross
10117else
10118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10119 lt_status=$lt_dlunknown
10120 cat > conftest.$ac_ext <<_LT_EOF
baafc534 10121#line 10121 "configure"
1cf3d07d
SE
10122#include "confdefs.h"
10123
10124#if HAVE_DLFCN_H
10125#include <dlfcn.h>
10126#endif
10127
10128#include <stdio.h>
10129
10130#ifdef RTLD_GLOBAL
10131# define LT_DLGLOBAL RTLD_GLOBAL
10132#else
10133# ifdef DL_GLOBAL
10134# define LT_DLGLOBAL DL_GLOBAL
10135# else
10136# define LT_DLGLOBAL 0
10137# endif
10138#endif
10139
10140/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10141 find out it does not work in some platform. */
10142#ifndef LT_DLLAZY_OR_NOW
10143# ifdef RTLD_LAZY
10144# define LT_DLLAZY_OR_NOW RTLD_LAZY
10145# else
10146# ifdef DL_LAZY
10147# define LT_DLLAZY_OR_NOW DL_LAZY
10148# else
10149# ifdef RTLD_NOW
10150# define LT_DLLAZY_OR_NOW RTLD_NOW
10151# else
10152# ifdef DL_NOW
10153# define LT_DLLAZY_OR_NOW DL_NOW
10154# else
10155# define LT_DLLAZY_OR_NOW 0
10156# endif
10157# endif
10158# endif
10159# endif
10160#endif
10161
1cf3d07d
SE
10162void fnord() { int i=42;}
10163int main ()
10164{
10165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10166 int status = $lt_dlunknown;
10167
10168 if (self)
10169 {
10170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10171 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10172 /* dlclose (self); */
10173 }
10174 else
10175 puts (dlerror ());
10176
18d98188 10177 return status;
1cf3d07d
SE
10178}
10179_LT_EOF
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>&5
a8aea176 10182 ac_status=$?
a8aea176 10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10184 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10185 (./conftest; exit; ) >&5 2>/dev/null
10186 lt_status=$?
10187 case x$lt_status in
10188 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10189 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10190 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10191 esac
10192 else :
10193 # compilation failed
10194 lt_cv_dlopen_self_static=no
a8aea176 10195 fi
a8aea176 10196fi
1cf3d07d
SE
10197rm -fr conftest*
10198
a8aea176 10199
dfac8a13 10200fi
1cf3d07d
SE
10201echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10202echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10203 fi
a8aea176 10204
1cf3d07d
SE
10205 CPPFLAGS="$save_CPPFLAGS"
10206 LDFLAGS="$save_LDFLAGS"
10207 LIBS="$save_LIBS"
10208 ;;
10209 esac
10210
10211 case $lt_cv_dlopen_self in
10212 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10213 *) enable_dlopen_self=unknown ;;
10214 esac
10215
10216 case $lt_cv_dlopen_self_static in
10217 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10218 *) enable_dlopen_self_static=unknown ;;
10219 esac
10220fi
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238striplib=
10239old_striplib=
10240echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10241echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10242if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10243 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10244 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10245 echo "$as_me:$LINENO: result: yes" >&5
10246echo "${ECHO_T}yes" >&6
dfac8a13 10247else
1cf3d07d
SE
10248# FIXME - insert some real tests, host_os isn't really good enough
10249 case $host_os in
10250 darwin*)
10251 if test -n "$STRIP" ; then
10252 striplib="$STRIP -x"
10253 old_striplib="$STRIP -S"
10254 echo "$as_me:$LINENO: result: yes" >&5
10255echo "${ECHO_T}yes" >&6
10256 else
10257 echo "$as_me:$LINENO: result: no" >&5
10258echo "${ECHO_T}no" >&6
10259 fi
10260 ;;
10261 *)
10262 echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
10264 ;;
10265 esac
dfac8a13 10266fi
a8aea176 10267
1cf3d07d
SE
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279 # Report which library types will actually be built
10280 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10281echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10282 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10283echo "${ECHO_T}$can_build_shared" >&6
10284
10285 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10286echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10287 test "$can_build_shared" = "no" && enable_shared=no
10288
10289 # On AIX, shared libraries and static libraries use the same namespace, and
10290 # are all built from PIC.
10291 case $host_os in
10292 aix3*)
10293 test "$enable_shared" = yes && enable_static=no
10294 if test -n "$RANLIB"; then
10295 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10296 postinstall_cmds='$RANLIB $lib'
10297 fi
10298 ;;
10299
3e7b7e2b 10300 aix[4-9]*)
1cf3d07d
SE
10301 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10302 test "$enable_shared" = yes && enable_static=no
10303 fi
10304 ;;
10305 esac
10306 echo "$as_me:$LINENO: result: $enable_shared" >&5
10307echo "${ECHO_T}$enable_shared" >&6
10308
10309 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10310echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10311 # Make sure either enable_shared or enable_static is yes.
10312 test "$enable_shared" = yes || enable_static=yes
10313 echo "$as_me:$LINENO: result: $enable_static" >&5
10314echo "${ECHO_T}$enable_static" >&6
10315
10316
10317
10318
10319fi
a8aea176
NN
10320ac_ext=c
10321ac_cpp='$CPP $CPPFLAGS'
10322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10324ac_compiler_gnu=$ac_cv_c_compiler_gnu
dfac8a13 10325
1cf3d07d 10326CC="$lt_save_CC"
35241f18 10327
35241f18 10328
35241f18 10329
35241f18
CD
10330
10331
a8aea176 10332
dfac8a13 10333
dfac8a13 10334
1cf3d07d
SE
10335
10336
10337
10338
10339
10340 ac_config_commands="$ac_config_commands libtool"
10341
10342
10343
10344
10345# Only expand once:
10346
10347
10348
10349# Find CPP now so that any conditional tests below won't do it and
10350# thereby make the resulting definitions conditional.
10351ac_ext=c
10352ac_cpp='$CPP $CPPFLAGS'
10353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10355ac_compiler_gnu=$ac_cv_c_compiler_gnu
10356echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10357echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10358# On Suns, sometimes $CPP names a directory.
10359if test -n "$CPP" && test -d "$CPP"; then
10360 CPP=
10361fi
10362if test -z "$CPP"; then
10363 if test "${ac_cv_prog_CPP+set}" = set; then
a8aea176
NN
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365else
1cf3d07d
SE
10366 # Double quotes because CPP needs to be expanded
10367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10368 do
10369 ac_preproc_ok=false
10370for ac_c_preproc_warn_flag in '' yes
10371do
10372 # Use a header file that comes with gcc, so configuring glibc
10373 # with a fresh cross-compiler works.
10374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10375 # <limits.h> exists even on freestanding compilers.
10376 # On the NeXT, cc -E runs the code through the compiler's parser,
10377 # not just through cpp. "Syntax error" is here to catch this case.
a8aea176
NN
10378 cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h. */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h. */
1cf3d07d
SE
10384#ifdef __STDC__
10385# include <limits.h>
10386#else
10387# include <assert.h>
10388#endif
10389 Syntax error
a8aea176 10390_ACEOF
1cf3d07d
SE
10391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a8aea176
NN
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10398 (exit $ac_status); } >/dev/null; then
10399 if test -s conftest.err; then
10400 ac_cpp_err=$ac_c_preproc_warn_flag
10401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10402 else
10403 ac_cpp_err=
10404 fi
10405else
10406 ac_cpp_err=yes
10407fi
10408if test -z "$ac_cpp_err"; then
10409 :
c45f211e 10410else
a8aea176
NN
10411 echo "$as_me: failed program was:" >&5
10412sed 's/^/| /' conftest.$ac_ext >&5
10413
1cf3d07d
SE
10414 # Broken: fails on valid input.
10415continue
a8aea176 10416fi
1cf3d07d 10417rm -f conftest.err conftest.$ac_ext
a8aea176 10418
1cf3d07d
SE
10419 # OK, works on sane cases. Now check whether non-existent headers
10420 # can be detected and how.
a8aea176
NN
10421 cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h. */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h. */
1cf3d07d 10427#include <ac_nonexistent.h>
a8aea176 10428_ACEOF
1cf3d07d
SE
10429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } >/dev/null; then
10437 if test -s conftest.err; then
10438 ac_cpp_err=$ac_c_preproc_warn_flag
10439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10440 else
10441 ac_cpp_err=
10442 fi
a8aea176 10443else
1cf3d07d 10444 ac_cpp_err=yes
dfac8a13 10445fi
1cf3d07d
SE
10446if test -z "$ac_cpp_err"; then
10447 # Broken: success on invalid input.
10448continue
10449else
10450 echo "$as_me: failed program was:" >&5
10451sed 's/^/| /' conftest.$ac_ext >&5
a8aea176 10452
1cf3d07d
SE
10453 # Passes both tests.
10454ac_preproc_ok=:
10455break
c45f211e 10456fi
1cf3d07d 10457rm -f conftest.err conftest.$ac_ext
c45f211e 10458
1cf3d07d
SE
10459done
10460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10461rm -f conftest.err conftest.$ac_ext
10462if $ac_preproc_ok; then
10463 break
c45f211e 10464fi
a8aea176 10465
1cf3d07d
SE
10466 done
10467 ac_cv_prog_CPP=$CPP
a8aea176 10468
1cf3d07d
SE
10469fi
10470 CPP=$ac_cv_prog_CPP
a8aea176 10471else
1cf3d07d
SE
10472 ac_cv_prog_CPP=$CPP
10473fi
10474echo "$as_me:$LINENO: result: $CPP" >&5
10475echo "${ECHO_T}$CPP" >&6
10476ac_preproc_ok=false
10477for ac_c_preproc_warn_flag in '' yes
10478do
10479 # Use a header file that comes with gcc, so configuring glibc
10480 # with a fresh cross-compiler works.
10481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10482 # <limits.h> exists even on freestanding compilers.
10483 # On the NeXT, cc -E runs the code through the compiler's parser,
10484 # not just through cpp. "Syntax error" is here to catch this case.
a8aea176
NN
10485 cat >conftest.$ac_ext <<_ACEOF
10486/* confdefs.h. */
10487_ACEOF
10488cat confdefs.h >>conftest.$ac_ext
10489cat >>conftest.$ac_ext <<_ACEOF
10490/* end confdefs.h. */
1cf3d07d
SE
10491#ifdef __STDC__
10492# include <limits.h>
a8aea176 10493#else
1cf3d07d 10494# include <assert.h>
a8aea176 10495#endif
1cf3d07d 10496 Syntax error
a8aea176 10497_ACEOF
1cf3d07d
SE
10498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a8aea176 10500 ac_status=$?
1cf3d07d
SE
10501 grep -v '^ *+' conftest.er1 >conftest.err
10502 rm -f conftest.er1
10503 cat conftest.err >&5
a8aea176 10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10505 (exit $ac_status); } >/dev/null; then
10506 if test -s conftest.err; then
10507 ac_cpp_err=$ac_c_preproc_warn_flag
10508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10509 else
10510 ac_cpp_err=
10511 fi
10512else
10513 ac_cpp_err=yes
10514fi
10515if test -z "$ac_cpp_err"; then
a8aea176
NN
10516 :
10517else
1cf3d07d 10518 echo "$as_me: failed program was:" >&5
a8aea176
NN
10519sed 's/^/| /' conftest.$ac_ext >&5
10520
1cf3d07d
SE
10521 # Broken: fails on valid input.
10522continue
a8aea176 10523fi
1cf3d07d 10524rm -f conftest.err conftest.$ac_ext
a8aea176 10525
1cf3d07d
SE
10526 # OK, works on sane cases. Now check whether non-existent headers
10527 # can be detected and how.
a8aea176
NN
10528 cat >conftest.$ac_ext <<_ACEOF
10529/* confdefs.h. */
10530_ACEOF
10531cat confdefs.h >>conftest.$ac_ext
10532cat >>conftest.$ac_ext <<_ACEOF
10533/* end confdefs.h. */
1cf3d07d 10534#include <ac_nonexistent.h>
a8aea176 10535_ACEOF
1cf3d07d
SE
10536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a8aea176
NN
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10543 (exit $ac_status); } >/dev/null; then
10544 if test -s conftest.err; then
10545 ac_cpp_err=$ac_c_preproc_warn_flag
10546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10547 else
10548 ac_cpp_err=
10549 fi
a8aea176 10550else
1cf3d07d 10551 ac_cpp_err=yes
a8aea176 10552fi
1cf3d07d
SE
10553if test -z "$ac_cpp_err"; then
10554 # Broken: success on invalid input.
10555continue
10556else
10557 echo "$as_me: failed program was:" >&5
10558sed 's/^/| /' conftest.$ac_ext >&5
a8aea176 10559
1cf3d07d
SE
10560 # Passes both tests.
10561ac_preproc_ok=:
10562break
a8aea176 10563fi
1cf3d07d 10564rm -f conftest.err conftest.$ac_ext
a8aea176
NN
10565
10566done
1cf3d07d
SE
10567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10568rm -f conftest.err conftest.$ac_ext
10569if $ac_preproc_ok; then
10570 :
10571else
18c04407
RW
10572 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10573echo "$as_me: error: in \`$ac_pwd':" >&2;}
10574{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1cf3d07d
SE
10575See \`config.log' for more details." >&5
10576echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10577See \`config.log' for more details." >&2;}
18c04407 10578 { (exit 1); exit 1; }; }; }
1cf3d07d
SE
10579fi
10580
10581ac_ext=c
10582ac_cpp='$CPP $CPPFLAGS'
10583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586
10587
10588if test -n "$with_cross_host"; then
10589 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
10590 # may not work correctly, because the compiler may not be able to
10591 # link executables.
10592
10593 # We assume newlib. This lets us hard-code the functions we know
10594 # we'll have.
10595 cat >>confdefs.h <<\_ACEOF
10596#define HAVE_MEMCPY 1
10597_ACEOF
10598
10599 cat >>confdefs.h <<\_ACEOF
10600#define HAVE_STRERROR 1
10601_ACEOF
a8aea176
NN
10602
10603
1cf3d07d
SE
10604 # We ignore --with-system-zlib in this case.
10605 target_all=libzgcj.la
10606else
10607 if test x$gcc_no_link = xyes; then
10608 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
10609 ac_cv_func_mmap_fixed_mapped=no
10610 fi
10611fi
10612if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
a8aea176
NN
10613
10614
10615for ac_header in stdlib.h unistd.h
10616do
10617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10618if eval "test \"\${$as_ac_Header+set}\" = set"; then
10619 echo "$as_me:$LINENO: checking for $ac_header" >&5
10620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10621if eval "test \"\${$as_ac_Header+set}\" = set"; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623fi
10624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10626else
10627 # Is the header compilable?
10628echo "$as_me:$LINENO: checking $ac_header usability" >&5
10629echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10630cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636$ac_includes_default
10637#include <$ac_header>
10638_ACEOF
10639rm -f conftest.$ac_objext
10640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10641 (eval $ac_compile) 2>conftest.er1
10642 ac_status=$?
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
17210dff
TT
10648 { ac_try='test -z "$ac_c_werror_flag"
10649 || test ! -s conftest.err'
a8aea176
NN
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; } &&
10655 { ac_try='test -s conftest.$ac_objext'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }; then
10661 ac_header_compiler=yes
10662else
10663 echo "$as_me: failed program was:" >&5
10664sed 's/^/| /' conftest.$ac_ext >&5
10665
10666ac_header_compiler=no
10667fi
10668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10669echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10670echo "${ECHO_T}$ac_header_compiler" >&6
10671
10672# Is the header present?
10673echo "$as_me:$LINENO: checking $ac_header presence" >&5
10674echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10675cat >conftest.$ac_ext <<_ACEOF
10676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
10681#include <$ac_header>
10682_ACEOF
10683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } >/dev/null; then
10691 if test -s conftest.err; then
10692 ac_cpp_err=$ac_c_preproc_warn_flag
10693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10694 else
10695 ac_cpp_err=
10696 fi
10697else
10698 ac_cpp_err=yes
10699fi
10700if test -z "$ac_cpp_err"; then
10701 ac_header_preproc=yes
10702else
10703 echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&5
10705
10706 ac_header_preproc=no
10707fi
10708rm -f conftest.err conftest.$ac_ext
10709echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10710echo "${ECHO_T}$ac_header_preproc" >&6
10711
10712# So? What about this header?
10713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10714 yes:no: )
10715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10719 ac_header_preproc=yes
10720 ;;
10721 no:yes:* )
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10734 (
10735 cat <<\_ASBOX
10736## ------------------------------------------ ##
10737## Report this to the AC_PACKAGE_NAME lists. ##
10738## ------------------------------------------ ##
10739_ASBOX
10740 ) |
10741 sed "s/^/$as_me: WARNING: /" >&2
10742 ;;
10743esac
10744echo "$as_me:$LINENO: checking for $ac_header" >&5
10745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10746if eval "test \"\${$as_ac_Header+set}\" = set"; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748else
10749 eval "$as_ac_Header=\$ac_header_preproc"
10750fi
10751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10753
10754fi
10755if test `eval echo '${'$as_ac_Header'}'` = yes; then
10756 cat >>confdefs.h <<_ACEOF
10757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10758_ACEOF
10759
10760fi
10761
10762done
10763
10764
10765for ac_func in getpagesize
10766do
10767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10768echo "$as_me:$LINENO: checking for $ac_func" >&5
10769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10770if eval "test \"\${$as_ac_var+set}\" = set"; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772else
10773 if test x$gcc_no_link = xyes; then
10774 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10775echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10776 { (exit 1); exit 1; }; }
10777fi
10778cat >conftest.$ac_ext <<_ACEOF
10779/* confdefs.h. */
10780_ACEOF
10781cat confdefs.h >>conftest.$ac_ext
10782cat >>conftest.$ac_ext <<_ACEOF
10783/* end confdefs.h. */
10784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10786#define $ac_func innocuous_$ac_func
10787
10788/* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char $ac_func (); below.
10790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 <limits.h> exists even on freestanding compilers. */
10792
10793#ifdef __STDC__
10794# include <limits.h>
10795#else
10796# include <assert.h>
10797#endif
10798
10799#undef $ac_func
10800
10801/* Override any gcc2 internal prototype to avoid an error. */
10802#ifdef __cplusplus
10803extern "C"
10804{
10805#endif
10806/* We use char because int might match the return type of a gcc2
10807 builtin and then its argument prototype would still apply. */
10808char $ac_func ();
10809/* The GNU C library defines this for functions which it implements
10810 to always fail with ENOSYS. Some functions are actually named
10811 something starting with __ and the normal name is an alias. */
10812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10813choke me
10814#else
10815char (*f) () = $ac_func;
10816#endif
10817#ifdef __cplusplus
10818}
10819#endif
10820
10821int
10822main ()
10823{
10824return f != $ac_func;
10825 ;
10826 return 0;
10827}
10828_ACEOF
10829rm -f conftest.$ac_objext conftest$ac_exeext
10830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831 (eval $ac_link) 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
17210dff
TT
10838 { ac_try='test -z "$ac_c_werror_flag"
10839 || test ! -s conftest.err'
a8aea176
NN
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; } &&
10845 { ac_try='test -s conftest$ac_exeext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 eval "$as_ac_var=yes"
10852else
10853 echo "$as_me: failed program was:" >&5
10854sed 's/^/| /' conftest.$ac_ext >&5
10855
10856eval "$as_ac_var=no"
10857fi
10858rm -f conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860fi
10861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10863if test `eval echo '${'$as_ac_var'}'` = yes; then
10864 cat >>confdefs.h <<_ACEOF
10865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10866_ACEOF
10867
10868fi
10869done
10870
10871echo "$as_me:$LINENO: checking for working mmap" >&5
10872echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10873if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
10875else
10876 if test "$cross_compiling" = yes; then
10877 ac_cv_func_mmap_fixed_mapped=no
10878else
a8aea176
NN
10879 cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
10885$ac_includes_default
10886/* malloc might have been renamed as rpl_malloc. */
10887#undef malloc
dfac8a13
TT
10888
10889/* Thanks to Mike Haertel and Jim Avera for this test.
10890 Here is a matrix of mmap possibilities:
10891 mmap private not fixed
10892 mmap private fixed at somewhere currently unmapped
10893 mmap private fixed at somewhere already mapped
10894 mmap shared not fixed
10895 mmap shared fixed at somewhere currently unmapped
10896 mmap shared fixed at somewhere already mapped
10897 For private mappings, we should verify that changes cannot be read()
10898 back from the file, nor mmap's back from the file at a different
10899 address. (There have been systems where private was not correctly
10900 implemented like the infamous i386 svr4.0, and systems where the
a8aea176 10901 VM page cache was not coherent with the file system buffer cache
dfac8a13
TT
10902 like early versions of FreeBSD and possibly contemporary NetBSD.)
10903 For shared mappings, we should conversely verify that changes get
a8aea176 10904 propagated back to all the places they're supposed to be.
c45f211e 10905
dfac8a13
TT
10906 Grep wants private fixed already mapped.
10907 The main things grep needs to know about mmap are:
10908 * does it exist and is it safe to write into the mmap'd area
10909 * how to use it (BSD variants) */
a8aea176 10910
dfac8a13 10911#include <fcntl.h>
c45f211e 10912#include <sys/mman.h>
dfac8a13 10913
a8aea176
NN
10914#if !STDC_HEADERS && !HAVE_STDLIB_H
10915char *malloc ();
10916#endif
dfac8a13 10917
a8aea176
NN
10918/* This mess was copied from the GNU getpagesize.h. */
10919#if !HAVE_GETPAGESIZE
dfac8a13 10920/* Assume that all systems that can run configure have sys/param.h. */
a8aea176 10921# if !HAVE_SYS_PARAM_H
dfac8a13
TT
10922# define HAVE_SYS_PARAM_H 1
10923# endif
10924
10925# ifdef _SC_PAGESIZE
10926# define getpagesize() sysconf(_SC_PAGESIZE)
10927# else /* no _SC_PAGESIZE */
a8aea176 10928# if HAVE_SYS_PARAM_H
dfac8a13
TT
10929# include <sys/param.h>
10930# ifdef EXEC_PAGESIZE
10931# define getpagesize() EXEC_PAGESIZE
10932# else /* no EXEC_PAGESIZE */
10933# ifdef NBPG
10934# define getpagesize() NBPG * CLSIZE
10935# ifndef CLSIZE
10936# define CLSIZE 1
10937# endif /* no CLSIZE */
10938# else /* no NBPG */
10939# ifdef NBPC
10940# define getpagesize() NBPC
10941# else /* no NBPC */
10942# ifdef PAGESIZE
10943# define getpagesize() PAGESIZE
10944# endif /* PAGESIZE */
10945# endif /* no NBPC */
10946# endif /* no NBPG */
10947# endif /* no EXEC_PAGESIZE */
10948# else /* no HAVE_SYS_PARAM_H */
10949# define getpagesize() 8192 /* punt totally */
10950# endif /* no HAVE_SYS_PARAM_H */
10951# endif /* no _SC_PAGESIZE */
10952
10953#endif /* no HAVE_GETPAGESIZE */
10954
dfac8a13 10955int
a8aea176 10956main ()
dfac8a13 10957{
a8aea176
NN
10958 char *data, *data2, *data3;
10959 int i, pagesize;
10960 int fd;
10961
10962 pagesize = getpagesize ();
10963
10964 /* First, make a file with some known garbage in it. */
10965 data = (char *) malloc (pagesize);
10966 if (!data)
10967 exit (1);
10968 for (i = 0; i < pagesize; ++i)
10969 *(data + i) = rand ();
10970 umask (0);
10971 fd = creat ("conftest.mmap", 0600);
10972 if (fd < 0)
10973 exit (1);
10974 if (write (fd, data, pagesize) != pagesize)
10975 exit (1);
10976 close (fd);
10977
10978 /* Next, try to mmap the file at a fixed address which already has
10979 something else allocated at it. If we can, also make sure that
10980 we see the same garbage. */
10981 fd = open ("conftest.mmap", O_RDWR);
10982 if (fd < 0)
10983 exit (1);
10984 data2 = (char *) malloc (2 * pagesize);
10985 if (!data2)
10986 exit (1);
10987 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10988 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10989 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10990 exit (1);
10991 for (i = 0; i < pagesize; ++i)
10992 if (*(data + i) != *(data2 + i))
10993 exit (1);
10994
10995 /* Finally, make sure that changes to the mapped area do not
10996 percolate back to the file as seen by read(). (This is a bug on
10997 some variants of i386 svr4.0.) */
10998 for (i = 0; i < pagesize; ++i)
10999 *(data2 + i) = *(data2 + i) + 1;
11000 data3 = (char *) malloc (pagesize);
11001 if (!data3)
11002 exit (1);
11003 if (read (fd, data3, pagesize) != pagesize)
11004 exit (1);
11005 for (i = 0; i < pagesize; ++i)
11006 if (*(data + i) != *(data3 + i))
11007 exit (1);
11008 close (fd);
11009 exit (0);
c45f211e 11010}
a8aea176
NN
11011_ACEOF
11012rm -f conftest$ac_exeext
11013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11014 (eval $ac_link) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
dfac8a13
TT
11023 ac_cv_func_mmap_fixed_mapped=yes
11024else
a8aea176
NN
11025 echo "$as_me: program exited with status $ac_status" >&5
11026echo "$as_me: failed program was:" >&5
11027sed 's/^/| /' conftest.$ac_ext >&5
11028
11029( exit $ac_status )
11030ac_cv_func_mmap_fixed_mapped=no
dfac8a13 11031fi
a8aea176 11032rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
dfac8a13 11033fi
dfac8a13 11034fi
a8aea176
NN
11035echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11036echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
dfac8a13 11037if test $ac_cv_func_mmap_fixed_mapped = yes; then
a8aea176
NN
11038
11039cat >>confdefs.h <<\_ACEOF
dfac8a13 11040#define HAVE_MMAP 1
a8aea176 11041_ACEOF
dfac8a13
TT
11042
11043fi
a8aea176 11044rm -f conftest.mmap
dfac8a13 11045
a8aea176
NN
11046fi
11047
11048
11049for ac_func in memcpy strerror
dfac8a13 11050do
a8aea176
NN
11051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11052echo "$as_me:$LINENO: checking for $ac_func" >&5
11053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11054if eval "test \"\${$as_ac_var+set}\" = set"; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056else
11057 if test x$gcc_no_link = xyes; then
11058 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11059echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11060 { (exit 1); exit 1; }; }
11061fi
11062cat >conftest.$ac_ext <<_ACEOF
11063/* confdefs.h. */
11064_ACEOF
11065cat confdefs.h >>conftest.$ac_ext
11066cat >>conftest.$ac_ext <<_ACEOF
11067/* end confdefs.h. */
11068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11070#define $ac_func innocuous_$ac_func
11071
dfac8a13 11072/* System header to define __stub macros and hopefully few prototypes,
a8aea176
NN
11073 which can conflict with char $ac_func (); below.
11074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11075 <limits.h> exists even on freestanding compilers. */
11076
11077#ifdef __STDC__
11078# include <limits.h>
11079#else
11080# include <assert.h>
11081#endif
dfac8a13 11082
a8aea176 11083#undef $ac_func
dfac8a13 11084
a8aea176
NN
11085/* Override any gcc2 internal prototype to avoid an error. */
11086#ifdef __cplusplus
11087extern "C"
11088{
11089#endif
11090/* We use char because int might match the return type of a gcc2
11091 builtin and then its argument prototype would still apply. */
11092char $ac_func ();
dfac8a13
TT
11093/* The GNU C library defines this for functions which it implements
11094 to always fail with ENOSYS. Some functions are actually named
11095 something starting with __ and the normal name is an alias. */
11096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11097choke me
11098#else
a8aea176
NN
11099char (*f) () = $ac_func;
11100#endif
11101#ifdef __cplusplus
11102}
dfac8a13
TT
11103#endif
11104
a8aea176
NN
11105int
11106main ()
11107{
11108return f != $ac_func;
11109 ;
11110 return 0;
11111}
11112_ACEOF
11113rm -f conftest.$ac_objext conftest$ac_exeext
11114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115 (eval $ac_link) 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
17210dff
TT
11122 { ac_try='test -z "$ac_c_werror_flag"
11123 || test ! -s conftest.err'
a8aea176
NN
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest$ac_exeext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 eval "$as_ac_var=yes"
dfac8a13 11136else
a8aea176
NN
11137 echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
11140eval "$as_ac_var=no"
dfac8a13 11141fi
a8aea176
NN
11142rm -f conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext conftest.$ac_ext
dfac8a13 11144fi
a8aea176
NN
11145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11147if test `eval echo '${'$as_ac_var'}'` = yes; then
11148 cat >>confdefs.h <<_ACEOF
11149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11150_ACEOF
dfac8a13 11151
dfac8a13
TT
11152fi
11153done
11154
79a9a529
TT
11155
11156 if test "$with_system_zlib" = yes; then
a8aea176
NN
11157 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
11158echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
11159if test "${ac_cv_lib_z_deflate+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
79a9a529 11161else
a8aea176 11162 ac_check_lib_save_LIBS=$LIBS
79a9a529 11163LIBS="-lz $LIBS"
a8aea176
NN
11164if test x$gcc_no_link = xyes; then
11165 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11166echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11167 { (exit 1); exit 1; }; }
11168fi
11169cat >conftest.$ac_ext <<_ACEOF
11170/* confdefs.h. */
11171_ACEOF
11172cat confdefs.h >>conftest.$ac_ext
11173cat >>conftest.$ac_ext <<_ACEOF
11174/* end confdefs.h. */
11175
79a9a529 11176/* Override any gcc2 internal prototype to avoid an error. */
a8aea176
NN
11177#ifdef __cplusplus
11178extern "C"
11179#endif
79a9a529 11180/* We use char because int might match the return type of a gcc2
a8aea176
NN
11181 builtin and then its argument prototype would still apply. */
11182char deflate ();
11183int
11184main ()
11185{
11186deflate ();
11187 ;
11188 return 0;
11189}
11190_ACEOF
11191rm -f conftest.$ac_objext conftest$ac_exeext
11192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11193 (eval $ac_link) 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
17210dff
TT
11200 { ac_try='test -z "$ac_c_werror_flag"
11201 || test ! -s conftest.err'
a8aea176
NN
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; } &&
11207 { ac_try='test -s conftest$ac_exeext'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
11213 ac_cv_lib_z_deflate=yes
79a9a529 11214else
a8aea176
NN
11215 echo "$as_me: failed program was:" >&5
11216sed 's/^/| /' conftest.$ac_ext >&5
79a9a529 11217
a8aea176
NN
11218ac_cv_lib_z_deflate=no
11219fi
11220rm -f conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext conftest.$ac_ext
11222LIBS=$ac_check_lib_save_LIBS
79a9a529 11223fi
a8aea176
NN
11224echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
11225echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
11226if test $ac_cv_lib_z_deflate = yes; then
79a9a529
TT
11227 target_all=
11228else
a8aea176 11229 target_all=libzgcj.la
79a9a529
TT
11230fi
11231
11232 else
11233 target_all=libzgcj.la
11234 fi
11235fi
11236
11237
dfac8a13 11238
a8aea176
NN
11239
11240for ac_header in unistd.h
dfac8a13 11241do
a8aea176
NN
11242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11243if eval "test \"\${$as_ac_Header+set}\" = set"; then
11244 echo "$as_me:$LINENO: checking for $ac_header" >&5
11245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11246if eval "test \"\${$as_ac_Header+set}\" = set"; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248fi
11249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
dfac8a13 11251else
a8aea176
NN
11252 # Is the header compilable?
11253echo "$as_me:$LINENO: checking $ac_header usability" >&5
11254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11255cat >conftest.$ac_ext <<_ACEOF
11256/* confdefs.h. */
11257_ACEOF
11258cat confdefs.h >>conftest.$ac_ext
11259cat >>conftest.$ac_ext <<_ACEOF
11260/* end confdefs.h. */
11261$ac_includes_default
11262#include <$ac_header>
11263_ACEOF
11264rm -f conftest.$ac_objext
11265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11266 (eval $ac_compile) 2>conftest.er1
11267 ac_status=$?
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
17210dff
TT
11273 { ac_try='test -z "$ac_c_werror_flag"
11274 || test ! -s conftest.err'
a8aea176
NN
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; } &&
11280 { ac_try='test -s conftest.$ac_objext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_header_compiler=yes
11287else
11288 echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291ac_header_compiler=no
11292fi
11293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11294echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295echo "${ECHO_T}$ac_header_compiler" >&6
11296
11297# Is the header present?
11298echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11300cat >conftest.$ac_ext <<_ACEOF
11301/* confdefs.h. */
11302_ACEOF
11303cat confdefs.h >>conftest.$ac_ext
11304cat >>conftest.$ac_ext <<_ACEOF
11305/* end confdefs.h. */
11306#include <$ac_header>
11307_ACEOF
11308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } >/dev/null; then
11316 if test -s conftest.err; then
11317 ac_cpp_err=$ac_c_preproc_warn_flag
11318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11319 else
11320 ac_cpp_err=
11321 fi
11322else
11323 ac_cpp_err=yes
dfac8a13 11324fi
a8aea176
NN
11325if test -z "$ac_cpp_err"; then
11326 ac_header_preproc=yes
11327else
11328 echo "$as_me: failed program was:" >&5
11329sed 's/^/| /' conftest.$ac_ext >&5
11330
11331 ac_header_preproc=no
11332fi
11333rm -f conftest.err conftest.$ac_ext
11334echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11335echo "${ECHO_T}$ac_header_preproc" >&6
11336
11337# So? What about this header?
11338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11339 yes:no: )
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11341echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11343echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11344 ac_header_preproc=yes
11345 ;;
11346 no:yes:* )
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11350echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11352echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11354echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11358echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11359 (
11360 cat <<\_ASBOX
11361## ------------------------------------------ ##
11362## Report this to the AC_PACKAGE_NAME lists. ##
11363## ------------------------------------------ ##
11364_ASBOX
11365 ) |
11366 sed "s/^/$as_me: WARNING: /" >&2
11367 ;;
11368esac
11369echo "$as_me:$LINENO: checking for $ac_header" >&5
11370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11371if eval "test \"\${$as_ac_Header+set}\" = set"; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 11373else
a8aea176 11374 eval "$as_ac_Header=\$ac_header_preproc"
dfac8a13 11375fi
a8aea176
NN
11376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11378
11379fi
11380if test `eval echo '${'$as_ac_Header'}'` = yes; then
11381 cat >>confdefs.h <<_ACEOF
11382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11383_ACEOF
11384
11385fi
11386
dfac8a13
TT
11387done
11388
11389
0ccf2c33
AO
11390if test -n "$with_cross_host" &&
11391 test x"$with_cross_host" != x"no"; then
11392 toolexecdir='$(exec_prefix)/$(target_alias)'
11393 toolexeclibdir='$(toolexecdir)/lib'
b48ed568 11394else
0ccf2c33
AO
11395 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11396 toolexeclibdir='$(libdir)'
b48ed568 11397fi
905280ac
AO
11398if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11399 multiosdir=/`$CC -print-multi-os-directory`
ff8b9ca8
AS
11400 case $multiosdir in
11401 /.) multiosdir= ;; # Avoid trailing /.
11402 esac
905280ac
AO
11403else
11404 multiosdir=
11405fi
11406toolexeclibdir=${toolexeclibdir}${multiosdir}
0ccf2c33
AO
11407
11408
11409
b48ed568 11410
e093c992
AG
11411
11412if test -n "$with_target_subdir"; then
11413 TARGET_LIBRARY_TRUE=
11414 TARGET_LIBRARY_FALSE='#'
11415else
11416 TARGET_LIBRARY_TRUE='#'
11417 TARGET_LIBRARY_FALSE=
11418fi
11419
9fabf579 11420
dfac8a13
TT
11421if test "${multilib}" = "yes"; then
11422 multilib_arg="--enable-multilib"
11423else
11424 multilib_arg=
11425fi
11426
a8aea176
NN
11427 ac_config_files="$ac_config_files Makefile"
11428
a8aea176 11429cat >confcache <<\_ACEOF
dfac8a13
TT
11430# This file is a shell script that caches the results of configure
11431# tests run on this system so they can be shared between configure
a8aea176
NN
11432# scripts and configure runs, see configure's option --config-cache.
11433# It is not useful on other systems. If it contains results you don't
11434# want to keep, you may remove or edit it.
dfac8a13 11435#
a8aea176
NN
11436# config.status only pays attention to the cache file if you give it
11437# the --recheck option to rerun configure.
dfac8a13 11438#
a8aea176
NN
11439# `ac_cv_env_foo' variables (set or unset) will be overridden when
11440# loading this file, other *unset* `ac_cv_foo' will be assigned the
11441# following values.
11442
11443_ACEOF
11444
dfac8a13
TT
11445# The following way of writing the cache mishandles newlines in values,
11446# but we know of no workaround that is simple, portable, and efficient.
11447# So, don't put newlines in cache variables' values.
11448# Ultrix sh set writes to stderr and can't be redirected directly,
11449# and sets the high bit in the cache file unless we assign to the vars.
a8aea176
NN
11450{
11451 (set) 2>&1 |
11452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11453 *ac_space=\ *)
11454 # `set' does not quote correctly, so add quotes (double-quote
11455 # substitution turns \\\\ into \\, and sed turns \\ into \).
11456 sed -n \
11457 "s/'/'\\\\''/g;
11458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11459 ;;
11460 *)
11461 # `set' quotes correctly as required by POSIX, so do not add quotes.
11462 sed -n \
11463 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11464 ;;
11465 esac;
11466} |
11467 sed '
11468 t clear
11469 : clear
11470 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11471 t end
11472 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11473 : end' >>confcache
11474if diff $cache_file confcache >/dev/null 2>&1; then :; else
dfac8a13 11475 if test -w $cache_file; then
a8aea176
NN
11476 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11477 cat confcache >$cache_file
dfac8a13
TT
11478 else
11479 echo "not updating unwritable cache $cache_file"
11480 fi
11481fi
11482rm -f confcache
11483
dfac8a13
TT
11484test "x$prefix" = xNONE && prefix=$ac_default_prefix
11485# Let make expand exec_prefix.
11486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11487
a8aea176
NN
11488# VPATH may cause trouble with some makes, so we remove $(srcdir),
11489# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11490# trailing colons and then remove the whole line if VPATH becomes empty
11491# (actually we leave an empty line to preserve line numbers).
dfac8a13 11492if test "x$srcdir" = x.; then
a8aea176
NN
11493 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11494s/:*\$(srcdir):*/:/;
11495s/:*\${srcdir}:*/:/;
11496s/:*@srcdir@:*/:/;
11497s/^\([^=]*=[ ]*\):*/\1/;
11498s/:*$//;
11499s/^[^=]*=[ ]*$//;
11500}'
c45f211e
TT
11501fi
11502
dfac8a13
TT
11503# Transform confdefs.h into DEFS.
11504# Protect against shell expansion while executing Makefile rules.
11505# Protect against Makefile macro expansion.
a8aea176
NN
11506#
11507# If the first sed substitution is executed (which looks for macros that
11508# take arguments), then we branch to the quote section. Otherwise,
11509# look for a macro that doesn't take arguments.
11510cat >confdef2opt.sed <<\_ACEOF
11511t clear
11512: clear
11513s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11514t quote
11515s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11516t quote
11517d
11518: quote
11519s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11520s,\[,\\&,g
11521s,\],\\&,g
11522s,\$,$$,g
11523p
11524_ACEOF
11525# We use echo to avoid assuming a particular line-breaking character.
11526# The extra dot is to prevent the shell from consuming trailing
11527# line-breaks from the sub-command output. A line-break within
11528# single-quotes doesn't work because, if this script is created in a
11529# platform that uses two characters for line-breaks (e.g., DOS), tr
11530# would break.
11531ac_LF_and_DOT=`echo; echo .`
11532DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11533rm -f confdef2opt.sed
11534
11535
11536ac_libobjs=
11537ac_ltlibobjs=
11538for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11539 # 1. Remove the extension, and $U if already installed.
11540 ac_i=`echo "$ac_i" |
11541 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11542 # 2. Add them.
11543 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11544 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11545done
11546LIBOBJS=$ac_libobjs
dfac8a13 11547
a8aea176 11548LTLIBOBJS=$ac_ltlibobjs
dfac8a13 11549
dfac8a13 11550
9fabf579
KC
11551if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11552 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11553Usually this means the macro was only invoked conditionally." >&5
11554echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11555Usually this means the macro was only invoked conditionally." >&2;}
11556 { (exit 1); exit 1; }; }
11557fi
11558if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11559 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11560Usually this means the macro was only invoked conditionally." >&5
11561echo "$as_me: error: conditional \"AMDEP\" was never defined.
11562Usually this means the macro was only invoked conditionally." >&2;}
11563 { (exit 1); exit 1; }; }
11564fi
11565if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11566 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11567Usually this means the macro was only invoked conditionally." >&5
11568echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11569Usually this means the macro was only invoked conditionally." >&2;}
11570 { (exit 1); exit 1; }; }
11571fi
11572if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
11573 { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
11574Usually this means the macro was only invoked conditionally." >&5
11575echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
11576Usually this means the macro was only invoked conditionally." >&2;}
11577 { (exit 1); exit 1; }; }
11578fi
a8aea176
NN
11579
11580: ${CONFIG_STATUS=./config.status}
11581ac_clean_files_save=$ac_clean_files
11582ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11583{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11584echo "$as_me: creating $CONFIG_STATUS" >&6;}
11585cat >$CONFIG_STATUS <<_ACEOF
11586#! $SHELL
11587# Generated by $as_me.
dfac8a13 11588# Run this file to recreate the current configuration.
dfac8a13 11589# Compiler output produced by configure, useful for debugging
a8aea176
NN
11590# configure, is in config.log if it exists.
11591
11592debug=false
11593ac_cs_recheck=false
11594ac_cs_silent=false
11595SHELL=\${CONFIG_SHELL-$SHELL}
11596_ACEOF
11597
11598cat >>$CONFIG_STATUS <<\_ACEOF
11599## --------------------- ##
11600## M4sh Initialization. ##
11601## --------------------- ##
11602
11603# Be Bourne compatible
11604if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11605 emulate sh
11606 NULLCMD=:
11607 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11608 # is contrary to our usage. Disable this feature.
11609 alias -g '${1+"$@"}'='"$@"'
11610elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11611 set -o posix
11612fi
11613DUALCASE=1; export DUALCASE # for MKS sh
11614
11615# Support unset when possible.
11616if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11617 as_unset=unset
11618else
11619 as_unset=false
11620fi
dfac8a13 11621
a8aea176
NN
11622
11623# Work around bugs in pre-3.0 UWIN ksh.
11624$as_unset ENV MAIL MAILPATH
11625PS1='$ '
11626PS2='> '
11627PS4='+ '
11628
11629# NLS nuisances.
11630for as_var in \
11631 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11632 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11633 LC_TELEPHONE LC_TIME
dfac8a13 11634do
a8aea176
NN
11635 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11636 eval $as_var=C; export $as_var
11637 else
11638 $as_unset $as_var
11639 fi
dfac8a13
TT
11640done
11641
a8aea176
NN
11642# Required to use basename.
11643if expr a : '\(a\)' >/dev/null 2>&1; then
11644 as_expr=expr
11645else
11646 as_expr=false
11647fi
dfac8a13 11648
a8aea176
NN
11649if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11650 as_basename=basename
11651else
11652 as_basename=false
11653fi
11654
11655
11656# Name of the executable.
11657as_me=`$as_basename "$0" ||
11658$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11659 X"$0" : 'X\(//\)$' \| \
11660 X"$0" : 'X\(/\)$' \| \
11661 . : '\(.\)' 2>/dev/null ||
11662echo X/"$0" |
11663 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11664 /^X\/\(\/\/\)$/{ s//\1/; q; }
11665 /^X\/\(\/\).*/{ s//\1/; q; }
11666 s/.*/./; q'`
11667
11668
11669# PATH needs CR, and LINENO needs CR and PATH.
11670# Avoid depending upon Character Ranges.
11671as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11672as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11673as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11674as_cr_digits='0123456789'
11675as_cr_alnum=$as_cr_Letters$as_cr_digits
11676
11677# The user is always right.
11678if test "${PATH_SEPARATOR+set}" != set; then
11679 echo "#! /bin/sh" >conf$$.sh
11680 echo "exit 0" >>conf$$.sh
11681 chmod +x conf$$.sh
11682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11683 PATH_SEPARATOR=';'
11684 else
11685 PATH_SEPARATOR=:
11686 fi
11687 rm -f conf$$.sh
11688fi
dfac8a13 11689
dfac8a13 11690
a8aea176
NN
11691 as_lineno_1=$LINENO
11692 as_lineno_2=$LINENO
11693 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11694 test "x$as_lineno_1" != "x$as_lineno_2" &&
11695 test "x$as_lineno_3" = "x$as_lineno_2" || {
11696 # Find who we are. Look in the path if we contain no path at all
11697 # relative or not.
11698 case $0 in
11699 *[\\/]* ) as_myself=$0 ;;
11700 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11706done
dfac8a13 11707
a8aea176
NN
11708 ;;
11709 esac
11710 # We did not find ourselves, most probably we were run as `sh COMMAND'
11711 # in which case we are not to be found in the path.
11712 if test "x$as_myself" = x; then
11713 as_myself=$0
dfac8a13 11714 fi
a8aea176
NN
11715 if test ! -f "$as_myself"; then
11716 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11717echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11718 { (exit 1); exit 1; }; }
dfac8a13 11719 fi
a8aea176
NN
11720 case $CONFIG_SHELL in
11721 '')
11722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11724do
11725 IFS=$as_save_IFS
11726 test -z "$as_dir" && as_dir=.
11727 for as_base in sh bash ksh sh5; do
11728 case $as_dir in
11729 /*)
11730 if ("$as_dir/$as_base" -c '
11731 as_lineno_1=$LINENO
11732 as_lineno_2=$LINENO
11733 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11734 test "x$as_lineno_1" != "x$as_lineno_2" &&
11735 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11736 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11737 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11738 CONFIG_SHELL=$as_dir/$as_base
11739 export CONFIG_SHELL
11740 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11741 fi;;
11742 esac
11743 done
dfac8a13 11744done
a8aea176
NN
11745;;
11746 esac
dfac8a13 11747
a8aea176
NN
11748 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11749 # uniformly replaced by the line number. The first 'sed' inserts a
11750 # line-number line before each line; the second 'sed' does the real
11751 # work. The second script uses 'N' to pair each line-number line
11752 # with the numbered line, and appends trailing '-' during
11753 # substitution so that $LINENO is not a special case at line end.
11754 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11755 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11756 sed '=' <$as_myself |
11757 sed '
11758 N
11759 s,$,-,
11760 : loop
11761 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11762 t loop
11763 s,-$,,
11764 s,^['$as_cr_digits']*\n,,
11765 ' >$as_me.lineno &&
11766 chmod +x $as_me.lineno ||
11767 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11768echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11769 { (exit 1); exit 1; }; }
11770
11771 # Don't try to exec as it changes $[0], causing all sort of problems
11772 # (the dirname of $[0] is not the place where we might find the
11773 # original and so on. Autoconf is especially sensible to this).
11774 . ./$as_me.lineno
11775 # Exit status is that of the last command.
11776 exit
11777}
dfac8a13 11778
dfac8a13 11779
a8aea176
NN
11780case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11781 *c*,-n*) ECHO_N= ECHO_C='
11782' ECHO_T=' ' ;;
11783 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11784 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11785esac
dfac8a13 11786
a8aea176
NN
11787if expr a : '\(a\)' >/dev/null 2>&1; then
11788 as_expr=expr
11789else
11790 as_expr=false
11791fi
11792
11793rm -f conf$$ conf$$.exe conf$$.file
11794echo >conf$$.file
11795if ln -s conf$$.file conf$$ 2>/dev/null; then
11796 # We could just check for DJGPP; but this test a) works b) is more generic
11797 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11798 if test -f conf$$.exe; then
11799 # Don't use ln at all; we don't have any links
11800 as_ln_s='cp -p'
dfac8a13 11801 else
a8aea176 11802 as_ln_s='ln -s'
dfac8a13 11803 fi
a8aea176
NN
11804elif ln conf$$.file conf$$ 2>/dev/null; then
11805 as_ln_s=ln
11806else
11807 as_ln_s='cp -p'
11808fi
11809rm -f conf$$ conf$$.exe conf$$.file
dfac8a13 11810
a8aea176
NN
11811if mkdir -p . 2>/dev/null; then
11812 as_mkdir_p=:
11813else
11814 test -d ./-p && rmdir ./-p
11815 as_mkdir_p=false
11816fi
11817
11818as_executable_p="test -f"
dfac8a13 11819
a8aea176
NN
11820# Sed expression to map a string onto a valid CPP name.
11821as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11822
11823# Sed expression to map a string onto a valid variable name.
11824as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11825
11826
11827# IFS
11828# We need space, tab and new line, in precisely that order.
11829as_nl='
11830'
11831IFS=" $as_nl"
11832
11833# CDPATH.
11834$as_unset CDPATH
11835
11836exec 6>&1
11837
11838# Open the log real soon, to keep \$[0] and so on meaningful, and to
11839# report actual input values of CONFIG_FILES etc. instead of their
11840# values after options handling. Logging --version etc. is OK.
11841exec 5>>config.log
11842{
11843 echo
11844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11845## Running $as_me. ##
11846_ASBOX
11847} >&5
11848cat >&5 <<_CSEOF
11849
11850This file was extended by $as_me, which was
11851generated by GNU Autoconf 2.59. Invocation command line was
11852
11853 CONFIG_FILES = $CONFIG_FILES
11854 CONFIG_HEADERS = $CONFIG_HEADERS
11855 CONFIG_LINKS = $CONFIG_LINKS
11856 CONFIG_COMMANDS = $CONFIG_COMMANDS
11857 $ $0 $@
11858
11859_CSEOF
11860echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11861echo >&5
11862_ACEOF
11863
11864# Files that config.status was made for.
11865if test -n "$ac_config_files"; then
11866 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11867fi
11868
11869if test -n "$ac_config_headers"; then
11870 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11871fi
11872
11873if test -n "$ac_config_links"; then
11874 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11875fi
11876
11877if test -n "$ac_config_commands"; then
11878 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11879fi
11880
11881cat >>$CONFIG_STATUS <<\_ACEOF
11882
11883ac_cs_usage="\
11884\`$as_me' instantiates files from templates according to the
11885current configuration.
11886
11887Usage: $0 [OPTIONS] [FILE]...
11888
11889 -h, --help print this help, then exit
11890 -V, --version print version number, then exit
11891 -q, --quiet do not print progress messages
11892 -d, --debug don't remove temporary files
11893 --recheck update $as_me by reconfiguring in the same conditions
11894 --file=FILE[:TEMPLATE]
11895 instantiate the configuration file FILE
11896
11897Configuration files:
11898$config_files
11899
11900Configuration commands:
11901$config_commands
11902
11903Report bugs to <bug-autoconf@gnu.org>."
11904_ACEOF
11905
11906cat >>$CONFIG_STATUS <<_ACEOF
11907ac_cs_version="\\
11908config.status
11909configured by $0, generated by GNU Autoconf 2.59,
11910 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11911
11912Copyright (C) 2003 Free Software Foundation, Inc.
11913This config.status script is free software; the Free Software Foundation
11914gives unlimited permission to copy, distribute and modify it."
11915srcdir=$srcdir
11916INSTALL="$INSTALL"
11917_ACEOF
11918
11919cat >>$CONFIG_STATUS <<\_ACEOF
11920# If no file are specified by the user, then we need to provide default
11921# value. By we need to know if files were specified by the user.
11922ac_need_defaults=:
11923while test $# != 0
11924do
11925 case $1 in
11926 --*=*)
11927 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11928 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11929 ac_shift=:
11930 ;;
11931 -*)
11932 ac_option=$1
11933 ac_optarg=$2
11934 ac_shift=shift
11935 ;;
11936 *) # This is not an option, so the user has probably given explicit
11937 # arguments.
11938 ac_option=$1
11939 ac_need_defaults=false;;
dfac8a13
TT
11940 esac
11941
a8aea176
NN
11942 case $ac_option in
11943 # Handling of the options.
11944_ACEOF
11945cat >>$CONFIG_STATUS <<\_ACEOF
11946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11947 ac_cs_recheck=: ;;
11948 --version | --vers* | -V )
11949 echo "$ac_cs_version"; exit 0 ;;
11950 --he | --h)
11951 # Conflict between --help and --header
11952 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11953Try \`$0 --help' for more information." >&5
11954echo "$as_me: error: ambiguous option: $1
11955Try \`$0 --help' for more information." >&2;}
11956 { (exit 1); exit 1; }; };;
11957 --help | --hel | -h )
11958 echo "$ac_cs_usage"; exit 0 ;;
11959 --debug | --d* | -d )
11960 debug=: ;;
11961 --file | --fil | --fi | --f )
11962 $ac_shift
11963 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11964 ac_need_defaults=false;;
11965 --header | --heade | --head | --hea )
11966 $ac_shift
11967 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11968 ac_need_defaults=false;;
11969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11970 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11971 ac_cs_silent=: ;;
11972
11973 # This is an error.
11974 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11975Try \`$0 --help' for more information." >&5
11976echo "$as_me: error: unrecognized option: $1
11977Try \`$0 --help' for more information." >&2;}
11978 { (exit 1); exit 1; }; } ;;
11979
11980 *) ac_config_targets="$ac_config_targets $1" ;;
11981
dfac8a13 11982 esac
a8aea176
NN
11983 shift
11984done
dfac8a13 11985
a8aea176
NN
11986ac_configure_extra_args=
11987
11988if $ac_cs_silent; then
11989 exec 6>/dev/null
11990 ac_configure_extra_args="$ac_configure_extra_args --silent"
11991fi
11992
11993_ACEOF
11994cat >>$CONFIG_STATUS <<_ACEOF
11995if \$ac_cs_recheck; then
11996 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11997 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11998fi
11999
12000_ACEOF
12001
12002cat >>$CONFIG_STATUS <<_ACEOF
12003#
12004# INIT-COMMANDS section.
12005#
dfac8a13 12006
076e5443
PB
12007
12008srcdir="$srcdir"
12009host="$host"
12010target="$target"
12011with_multisubdir="$with_multisubdir"
12012with_multisrctop="$with_multisrctop"
12013with_target_subdir="$with_target_subdir"
dfac8a13 12014ac_configure_args="${multilib_arg} ${ac_configure_args}"
076e5443 12015multi_basedir="$multi_basedir"
dfac8a13 12016CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
076e5443
PB
12017CC="$CC"
12018AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
a8aea176 12019
1cf3d07d
SE
12020
12021# The HP-UX ksh and POSIX shell print the target directory to stdout
12022# if CDPATH is set.
12023(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12024
12025sed_quote_subst='$sed_quote_subst'
12026double_quote_subst='$double_quote_subst'
12027delay_variable_subst='$delay_variable_subst'
12028macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12029macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12030enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12031enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12032pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12033enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12034host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12035host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12036host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12037build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12038build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12039build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12040SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12041Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12042GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12043EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12044FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12045LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12046NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12047LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12048max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12049ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12050exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12051lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12052lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12053lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12054reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12055reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18d98188 12056OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
12057deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12058file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12059AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12060AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12061STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12062RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12063old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12064old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12065old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12066CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12067CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12068compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12069GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12070lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12071lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12072lt_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"`'
18d98188 12073lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
12074objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12075SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12076ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12077MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12078lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12079lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12080lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12081lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12082lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12083need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18d98188
PG
12084DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12085NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12086LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12087OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12088OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
12089libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12090shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12091extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12092archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12093enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12094export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12095whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12096compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12097old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12098old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12099archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12100archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12101module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12102module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12103with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12104allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12105no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12106hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12107hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12108hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12109hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12110hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12111hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12112hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12113hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12114inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12115link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12116fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12117always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12118export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12119exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12120include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12121prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12122file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12123variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12124need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12125need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12126version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12127runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12128shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12129shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12130libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12131library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12132soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12133postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12134postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12135finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12136finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12137hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12138sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12139sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12140hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12141enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12142enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12143enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12144old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12145striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12146
12147LTCC='$LTCC'
12148LTCFLAGS='$LTCFLAGS'
12149compiler='$compiler_DEFAULT'
12150
12151# Quote evaled strings.
12152for var in SED \
12153GREP \
12154EGREP \
12155FGREP \
12156LD \
12157NM \
12158LN_S \
12159lt_SP2NL \
12160lt_NL2SP \
12161reload_flag \
18d98188 12162OBJDUMP \
1cf3d07d
SE
12163deplibs_check_method \
12164file_magic_cmd \
12165AR \
12166AR_FLAGS \
12167STRIP \
12168RANLIB \
12169CC \
12170CFLAGS \
12171compiler \
12172lt_cv_sys_global_symbol_pipe \
12173lt_cv_sys_global_symbol_to_cdecl \
12174lt_cv_sys_global_symbol_to_c_name_address \
18d98188 12175lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
12176SHELL \
12177ECHO \
12178lt_prog_compiler_no_builtin_flag \
12179lt_prog_compiler_wl \
12180lt_prog_compiler_pic \
12181lt_prog_compiler_static \
12182lt_cv_prog_compiler_c_o \
12183need_locks \
18d98188
PG
12184DSYMUTIL \
12185NMEDIT \
12186LIPO \
12187OTOOL \
12188OTOOL64 \
1cf3d07d
SE
12189shrext_cmds \
12190export_dynamic_flag_spec \
12191whole_archive_flag_spec \
12192compiler_needs_object \
12193with_gnu_ld \
12194allow_undefined_flag \
12195no_undefined_flag \
12196hardcode_libdir_flag_spec \
12197hardcode_libdir_flag_spec_ld \
12198hardcode_libdir_separator \
12199fix_srcfile_path \
12200exclude_expsyms \
12201include_expsyms \
12202file_list_spec \
12203variables_saved_for_relink \
12204libname_spec \
12205library_names_spec \
12206soname_spec \
12207finish_eval \
12208old_striplib \
12209striplib; do
12210 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12211 *[\\\\\\\`\\"\\\$]*)
12212 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12213 ;;
12214 *)
12215 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12216 ;;
12217 esac
12218done
12219
12220# Double-quote double-evaled strings.
12221for var in reload_cmds \
12222old_postinstall_cmds \
12223old_postuninstall_cmds \
12224old_archive_cmds \
12225extract_expsyms_cmds \
12226old_archive_from_new_cmds \
12227old_archive_from_expsyms_cmds \
12228archive_cmds \
12229archive_expsym_cmds \
12230module_cmds \
12231module_expsym_cmds \
12232export_symbols_cmds \
12233prelink_cmds \
12234postinstall_cmds \
12235postuninstall_cmds \
12236finish_cmds \
12237sys_lib_search_path_spec \
12238sys_lib_dlsearch_path_spec; do
12239 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12240 *[\\\\\\\`\\"\\\$]*)
12241 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12242 ;;
12243 *)
12244 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12245 ;;
12246 esac
12247done
12248
12249# Fix-up fallback echo if it was mangled by the above quoting rules.
12250case \$lt_ECHO in
12251*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12252 ;;
12253esac
12254
12255ac_aux_dir='$ac_aux_dir'
12256xsi_shell='$xsi_shell'
12257lt_shell_append='$lt_shell_append'
12258
12259# See if we are running on zsh, and set the options which allow our
12260# commands through without removal of \ escapes INIT.
12261if test -n "\${ZSH_VERSION+set}" ; then
12262 setopt NO_GLOB_SUBST
12263fi
12264
12265
12266 PACKAGE='$PACKAGE'
12267 VERSION='$VERSION'
12268 TIMESTAMP='$TIMESTAMP'
12269 RM='$RM'
12270 ofile='$ofile'
12271
12272
12273
12274
a8aea176
NN
12275_ACEOF
12276
12277
12278
12279cat >>$CONFIG_STATUS <<\_ACEOF
12280for ac_config_target in $ac_config_targets
12281do
12282 case "$ac_config_target" in
12283 # Handling of arguments.
12284 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
076e5443 12285 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9fabf579 12286 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 12287 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
a8aea176
NN
12288 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12289echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12290 { (exit 1); exit 1; }; };;
12291 esac
12292done
12293
12294# If the user did not use the arguments to specify the items to instantiate,
12295# then the envvar interface is used. Set only those that are not.
12296# We use the long form for the default assignment because of an extremely
12297# bizarre bug on SunOS 4.1.3.
12298if $ac_need_defaults; then
12299 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12300 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12301fi
12302
12303# Have a temporary directory for convenience. Make it in the build tree
12304# simply because there is no reason to put it here, and in addition,
12305# creating and moving files from /tmp can sometimes cause problems.
12306# Create a temporary directory, and hook for its removal unless debugging.
12307$debug ||
12308{
12309 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12310 trap '{ (exit 1); exit 1; }' 1 2 13 15
12311}
12312
12313# Create a (secure) tmp directory for tmp files.
12314
12315{
12316 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12317 test -n "$tmp" && test -d "$tmp"
12318} ||
12319{
12320 tmp=./confstat$$-$RANDOM
12321 (umask 077 && mkdir $tmp)
12322} ||
12323{
12324 echo "$me: cannot create a temporary directory in ." >&2
12325 { (exit 1); exit 1; }
12326}
12327
12328_ACEOF
12329
12330cat >>$CONFIG_STATUS <<_ACEOF
12331
12332#
12333# CONFIG_FILES section.
12334#
12335
12336# No need to generate the scripts if there are no CONFIG_FILES.
12337# This happens for instance when ./config.status config.h
12338if test -n "\$CONFIG_FILES"; then
12339 # Protect against being on the right side of a sed subst in config.status.
12340 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12341 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12342s,@SHELL@,$SHELL,;t t
12343s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12344s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12345s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12346s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12347s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12348s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12349s,@exec_prefix@,$exec_prefix,;t t
12350s,@prefix@,$prefix,;t t
12351s,@program_transform_name@,$program_transform_name,;t t
12352s,@bindir@,$bindir,;t t
12353s,@sbindir@,$sbindir,;t t
12354s,@libexecdir@,$libexecdir,;t t
12355s,@datadir@,$datadir,;t t
12356s,@sysconfdir@,$sysconfdir,;t t
12357s,@sharedstatedir@,$sharedstatedir,;t t
12358s,@localstatedir@,$localstatedir,;t t
12359s,@libdir@,$libdir,;t t
12360s,@includedir@,$includedir,;t t
12361s,@oldincludedir@,$oldincludedir,;t t
12362s,@infodir@,$infodir,;t t
12363s,@mandir@,$mandir,;t t
12364s,@build_alias@,$build_alias,;t t
12365s,@host_alias@,$host_alias,;t t
12366s,@target_alias@,$target_alias,;t t
12367s,@DEFS@,$DEFS,;t t
12368s,@ECHO_C@,$ECHO_C,;t t
12369s,@ECHO_N@,$ECHO_N,;t t
12370s,@ECHO_T@,$ECHO_T,;t t
12371s,@LIBS@,$LIBS,;t t
076e5443 12372s,@multi_basedir@,$multi_basedir,;t t
a8aea176
NN
12373s,@build@,$build,;t t
12374s,@build_cpu@,$build_cpu,;t t
12375s,@build_vendor@,$build_vendor,;t t
12376s,@build_os@,$build_os,;t t
12377s,@host@,$host,;t t
12378s,@host_cpu@,$host_cpu,;t t
12379s,@host_vendor@,$host_vendor,;t t
12380s,@host_os@,$host_os,;t t
12381s,@target@,$target,;t t
12382s,@target_cpu@,$target_cpu,;t t
12383s,@target_vendor@,$target_vendor,;t t
12384s,@target_os@,$target_os,;t t
12385s,@mkinstalldirs@,$mkinstalldirs,;t t
12386s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12387s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12388s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9fabf579 12389s,@CYGPATH_W@,$CYGPATH_W,;t t
a8aea176
NN
12390s,@PACKAGE@,$PACKAGE,;t t
12391s,@VERSION@,$VERSION,;t t
12392s,@ACLOCAL@,$ACLOCAL,;t t
12393s,@AUTOCONF@,$AUTOCONF,;t t
12394s,@AUTOMAKE@,$AUTOMAKE,;t t
12395s,@AUTOHEADER@,$AUTOHEADER,;t t
12396s,@MAKEINFO@,$MAKEINFO,;t t
9fabf579
KC
12397s,@install_sh@,$install_sh,;t t
12398s,@STRIP@,$STRIP,;t t
12399s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12400s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
076e5443 12401s,@mkdir_p@,$mkdir_p,;t t
9fabf579 12402s,@AWK@,$AWK,;t t
a8aea176 12403s,@SET_MAKE@,$SET_MAKE,;t t
9fabf579 12404s,@am__leading_dot@,$am__leading_dot,;t t
17210dff
TT
12405s,@AMTAR@,$AMTAR,;t t
12406s,@am__tar@,$am__tar,;t t
12407s,@am__untar@,$am__untar,;t t
a8aea176
NN
12408s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12409s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12410s,@MAINT@,$MAINT,;t t
12411s,@COMPPATH@,$COMPPATH,;t t
12412s,@CC@,$CC,;t t
a8aea176
NN
12413s,@ac_ct_CC@,$ac_ct_CC,;t t
12414s,@EXEEXT@,$EXEEXT,;t t
12415s,@OBJEXT@,$OBJEXT,;t t
9fabf579
KC
12416s,@DEPDIR@,$DEPDIR,;t t
12417s,@am__include@,$am__include,;t t
12418s,@am__quote@,$am__quote,;t t
12419s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12420s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12421s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12422s,@CCDEPMODE@,$CCDEPMODE,;t t
12423s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12424s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
076e5443 12425s,@CFLAGS@,$CFLAGS,;t t
1cf3d07d
SE
12426s,@LIBTOOL@,$LIBTOOL,;t t
12427s,@SED@,$SED,;t t
12428s,@EGREP@,$EGREP,;t t
12429s,@FGREP@,$FGREP,;t t
12430s,@GREP@,$GREP,;t t
12431s,@LD@,$LD,;t t
12432s,@DUMPBIN@,$DUMPBIN,;t t
12433s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12434s,@NM@,$NM,;t t
a8aea176 12435s,@LN_S@,$LN_S,;t t
18d98188
PG
12436s,@OBJDUMP@,$OBJDUMP,;t t
12437s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1cf3d07d
SE
12438s,@AR@,$AR,;t t
12439s,@ac_ct_AR@,$ac_ct_AR,;t t
a8aea176
NN
12440s,@RANLIB@,$RANLIB,;t t
12441s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1cf3d07d 12442s,@lt_ECHO@,$lt_ECHO,;t t
18d98188
PG
12443s,@DSYMUTIL@,$DSYMUTIL,;t t
12444s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12445s,@NMEDIT@,$NMEDIT,;t t
12446s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12447s,@LIPO@,$LIPO,;t t
12448s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12449s,@OTOOL@,$OTOOL,;t t
12450s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12451s,@OTOOL64@,$OTOOL64,;t t
12452s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
a8aea176 12453s,@CPP@,$CPP,;t t
076e5443 12454s,@CPPFLAGS@,$CPPFLAGS,;t t
a8aea176
NN
12455s,@target_all@,$target_all,;t t
12456s,@toolexecdir@,$toolexecdir,;t t
12457s,@toolexeclibdir@,$toolexeclibdir,;t t
12458s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
12459s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
12460s,@LIBOBJS@,$LIBOBJS,;t t
12461s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12462CEOF
12463
12464_ACEOF
12465
12466 cat >>$CONFIG_STATUS <<\_ACEOF
12467 # Split the substitutions into bite-sized pieces for seds with
12468 # small command number limits, like on Digital OSF/1 and HP-UX.
12469 ac_max_sed_lines=48
12470 ac_sed_frag=1 # Number of current file.
12471 ac_beg=1 # First line for current file.
12472 ac_end=$ac_max_sed_lines # Line after last line for current file.
12473 ac_more_lines=:
12474 ac_sed_cmds=
12475 while $ac_more_lines; do
12476 if test $ac_beg -gt 1; then
12477 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12478 else
12479 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12480 fi
12481 if test ! -s $tmp/subs.frag; then
12482 ac_more_lines=false
12483 else
12484 # The purpose of the label and of the branching condition is to
12485 # speed up the sed processing (if there are no `@' at all, there
12486 # is no need to browse any of the substitutions).
12487 # These are the two extra sed commands mentioned above.
12488 (echo ':t
12489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12490 if test -z "$ac_sed_cmds"; then
12491 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12492 else
12493 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12494 fi
12495 ac_sed_frag=`expr $ac_sed_frag + 1`
12496 ac_beg=$ac_end
12497 ac_end=`expr $ac_end + $ac_max_sed_lines`
12498 fi
12499 done
12500 if test -z "$ac_sed_cmds"; then
12501 ac_sed_cmds=cat
12502 fi
12503fi # test -n "$CONFIG_FILES"
12504
12505_ACEOF
12506cat >>$CONFIG_STATUS <<\_ACEOF
12507for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12508 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12509 case $ac_file in
12510 - | *:- | *:-:* ) # input from stdin
12511 cat >$tmp/stdin
12512 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12513 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12514 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12516 * ) ac_file_in=$ac_file.in ;;
12517 esac
12518
12519 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12520 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12521$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12522 X"$ac_file" : 'X\(//\)[^/]' \| \
12523 X"$ac_file" : 'X\(//\)$' \| \
12524 X"$ac_file" : 'X\(/\)' \| \
12525 . : '\(.\)' 2>/dev/null ||
12526echo X"$ac_file" |
12527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12529 /^X\(\/\/\)$/{ s//\1/; q; }
12530 /^X\(\/\).*/{ s//\1/; q; }
12531 s/.*/./; q'`
12532 { if $as_mkdir_p; then
12533 mkdir -p "$ac_dir"
12534 else
12535 as_dir="$ac_dir"
12536 as_dirs=
12537 while test ! -d "$as_dir"; do
12538 as_dirs="$as_dir $as_dirs"
12539 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12541 X"$as_dir" : 'X\(//\)[^/]' \| \
12542 X"$as_dir" : 'X\(//\)$' \| \
12543 X"$as_dir" : 'X\(/\)' \| \
12544 . : '\(.\)' 2>/dev/null ||
12545echo X"$as_dir" |
12546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12547 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12548 /^X\(\/\/\)$/{ s//\1/; q; }
12549 /^X\(\/\).*/{ s//\1/; q; }
12550 s/.*/./; q'`
12551 done
12552 test ! -n "$as_dirs" || mkdir $as_dirs
12553 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12554echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12555 { (exit 1); exit 1; }; }; }
12556
12557 ac_builddir=.
12558
12559if test "$ac_dir" != .; then
12560 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12561 # A "../" for each directory in $ac_dir_suffix.
12562 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12563else
12564 ac_dir_suffix= ac_top_builddir=
12565fi
12566
12567case $srcdir in
12568 .) # No --srcdir option. We are building in place.
12569 ac_srcdir=.
12570 if test -z "$ac_top_builddir"; then
12571 ac_top_srcdir=.
12572 else
12573 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12574 fi ;;
12575 [\\/]* | ?:[\\/]* ) # Absolute path.
12576 ac_srcdir=$srcdir$ac_dir_suffix;
12577 ac_top_srcdir=$srcdir ;;
12578 *) # Relative path.
12579 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12580 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12581esac
12582
12583# Do not use `cd foo && pwd` to compute absolute paths, because
12584# the directories may not exist.
12585case `pwd` in
12586.) ac_abs_builddir="$ac_dir";;
12587*)
12588 case "$ac_dir" in
12589 .) ac_abs_builddir=`pwd`;;
12590 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12591 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12592 esac;;
12593esac
12594case $ac_abs_builddir in
12595.) ac_abs_top_builddir=${ac_top_builddir}.;;
12596*)
12597 case ${ac_top_builddir}. in
12598 .) ac_abs_top_builddir=$ac_abs_builddir;;
12599 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12600 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12601 esac;;
12602esac
12603case $ac_abs_builddir in
12604.) ac_abs_srcdir=$ac_srcdir;;
12605*)
12606 case $ac_srcdir in
12607 .) ac_abs_srcdir=$ac_abs_builddir;;
12608 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12609 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12610 esac;;
12611esac
12612case $ac_abs_builddir in
12613.) ac_abs_top_srcdir=$ac_top_srcdir;;
12614*)
12615 case $ac_top_srcdir in
12616 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12617 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12618 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12619 esac;;
12620esac
12621
12622
12623 case $INSTALL in
12624 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12625 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12626 esac
12627
17210dff
TT
12628 if test x"$ac_file" != x-; then
12629 { echo "$as_me:$LINENO: creating $ac_file" >&5
12630echo "$as_me: creating $ac_file" >&6;}
12631 rm -f "$ac_file"
12632 fi
a8aea176
NN
12633 # Let's still pretend it is `configure' which instantiates (i.e., don't
12634 # use $as_me), people would be surprised to read:
12635 # /* config.h. Generated by config.status. */
12636 if test x"$ac_file" = x-; then
12637 configure_input=
12638 else
12639 configure_input="$ac_file. "
12640 fi
12641 configure_input=$configure_input"Generated from `echo $ac_file_in |
12642 sed 's,.*/,,'` by configure."
12643
12644 # First look for the input files in the build tree, otherwise in the
12645 # src tree.
12646 ac_file_inputs=`IFS=:
12647 for f in $ac_file_in; do
12648 case $f in
12649 -) echo $tmp/stdin ;;
12650 [\\/$]*)
12651 # Absolute (can't be DOS-style, as IFS=:)
12652 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12653echo "$as_me: error: cannot find input file: $f" >&2;}
12654 { (exit 1); exit 1; }; }
12655 echo "$f";;
12656 *) # Relative
12657 if test -f "$f"; then
12658 # Build tree
12659 echo "$f"
12660 elif test -f "$srcdir/$f"; then
12661 # Source tree
12662 echo "$srcdir/$f"
12663 else
12664 # /dev/null tree
12665 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12666echo "$as_me: error: cannot find input file: $f" >&2;}
12667 { (exit 1); exit 1; }; }
12668 fi;;
12669 esac
12670 done` || { (exit 1); exit 1; }
a8aea176
NN
12671_ACEOF
12672cat >>$CONFIG_STATUS <<_ACEOF
12673 sed "$ac_vpsub
12674$extrasub
12675_ACEOF
12676cat >>$CONFIG_STATUS <<\_ACEOF
12677:t
12678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12679s,@configure_input@,$configure_input,;t t
12680s,@srcdir@,$ac_srcdir,;t t
12681s,@abs_srcdir@,$ac_abs_srcdir,;t t
12682s,@top_srcdir@,$ac_top_srcdir,;t t
12683s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12684s,@builddir@,$ac_builddir,;t t
12685s,@abs_builddir@,$ac_abs_builddir,;t t
12686s,@top_builddir@,$ac_top_builddir,;t t
12687s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12688s,@INSTALL@,$ac_INSTALL,;t t
12689" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12690 rm -f $tmp/stdin
12691 if test x"$ac_file" != x-; then
12692 mv $tmp/out $ac_file
12693 else
12694 cat $tmp/out
12695 rm -f $tmp/out
12696 fi
12697
12698done
12699_ACEOF
12700cat >>$CONFIG_STATUS <<\_ACEOF
12701
12702#
12703# CONFIG_COMMANDS section.
12704#
12705for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12706 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12707 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12708 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12709$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12710 X"$ac_dest" : 'X\(//\)[^/]' \| \
12711 X"$ac_dest" : 'X\(//\)$' \| \
12712 X"$ac_dest" : 'X\(/\)' \| \
12713 . : '\(.\)' 2>/dev/null ||
12714echo X"$ac_dest" |
12715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12717 /^X\(\/\/\)$/{ s//\1/; q; }
12718 /^X\(\/\).*/{ s//\1/; q; }
12719 s/.*/./; q'`
12720 { if $as_mkdir_p; then
12721 mkdir -p "$ac_dir"
12722 else
12723 as_dir="$ac_dir"
12724 as_dirs=
12725 while test ! -d "$as_dir"; do
12726 as_dirs="$as_dir $as_dirs"
12727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12729 X"$as_dir" : 'X\(//\)[^/]' \| \
12730 X"$as_dir" : 'X\(//\)$' \| \
12731 X"$as_dir" : 'X\(/\)' \| \
12732 . : '\(.\)' 2>/dev/null ||
12733echo X"$as_dir" |
12734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12736 /^X\(\/\/\)$/{ s//\1/; q; }
12737 /^X\(\/\).*/{ s//\1/; q; }
12738 s/.*/./; q'`
12739 done
12740 test ! -n "$as_dirs" || mkdir $as_dirs
12741 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12742echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12743 { (exit 1); exit 1; }; }; }
12744
12745 ac_builddir=.
12746
12747if test "$ac_dir" != .; then
12748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12749 # A "../" for each directory in $ac_dir_suffix.
12750 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12751else
12752 ac_dir_suffix= ac_top_builddir=
12753fi
12754
12755case $srcdir in
12756 .) # No --srcdir option. We are building in place.
12757 ac_srcdir=.
12758 if test -z "$ac_top_builddir"; then
12759 ac_top_srcdir=.
12760 else
12761 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12762 fi ;;
12763 [\\/]* | ?:[\\/]* ) # Absolute path.
12764 ac_srcdir=$srcdir$ac_dir_suffix;
12765 ac_top_srcdir=$srcdir ;;
12766 *) # Relative path.
12767 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12768 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12769esac
12770
12771# Do not use `cd foo && pwd` to compute absolute paths, because
12772# the directories may not exist.
12773case `pwd` in
12774.) ac_abs_builddir="$ac_dir";;
12775*)
12776 case "$ac_dir" in
12777 .) ac_abs_builddir=`pwd`;;
12778 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12779 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12780 esac;;
12781esac
12782case $ac_abs_builddir in
12783.) ac_abs_top_builddir=${ac_top_builddir}.;;
12784*)
12785 case ${ac_top_builddir}. in
12786 .) ac_abs_top_builddir=$ac_abs_builddir;;
12787 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12788 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12789 esac;;
12790esac
12791case $ac_abs_builddir in
12792.) ac_abs_srcdir=$ac_srcdir;;
12793*)
12794 case $ac_srcdir in
12795 .) ac_abs_srcdir=$ac_abs_builddir;;
12796 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12797 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12798 esac;;
12799esac
12800case $ac_abs_builddir in
12801.) ac_abs_top_srcdir=$ac_top_srcdir;;
12802*)
12803 case $ac_top_srcdir in
12804 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12805 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12806 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12807 esac;;
12808esac
12809
12810
12811 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12812echo "$as_me: executing $ac_dest commands" >&6;}
12813 case $ac_dest in
076e5443
PB
12814 default-1 )
12815# Only add multilib support code if we just rebuilt the top-level
12816# Makefile.
12817case " $CONFIG_FILES " in
12818 *" Makefile "*)
12819 ac_file=Makefile . ${multi_basedir}/config-ml.in
12820 ;;
12821esac ;;
9fabf579
KC
12822 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12823 # Strip MF so we end up with the name of the file.
12824 mf=`echo "$mf" | sed -e 's/:.*$//'`
12825 # Check whether this is an Automake generated Makefile or not.
12826 # We used to match only the files named `Makefile.in', but
12827 # some people rename them; so instead we look at the file content.
12828 # Grep'ing the first line is not enough: some people post-process
12829 # each Makefile.in and add a new line on top of each file to say so.
12830 # So let's grep whole file.
12831 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12832 dirpart=`(dirname "$mf") 2>/dev/null ||
12833$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12834 X"$mf" : 'X\(//\)[^/]' \| \
12835 X"$mf" : 'X\(//\)$' \| \
12836 X"$mf" : 'X\(/\)' \| \
12837 . : '\(.\)' 2>/dev/null ||
12838echo X"$mf" |
12839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12841 /^X\(\/\/\)$/{ s//\1/; q; }
12842 /^X\(\/\).*/{ s//\1/; q; }
12843 s/.*/./; q'`
12844 else
12845 continue
12846 fi
17210dff
TT
12847 # Extract the definition of DEPDIR, am__include, and am__quote
12848 # from the Makefile without running `make'.
076e5443 12849 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9fabf579 12850 test -z "$DEPDIR" && continue
17210dff
TT
12851 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12852 test -z "am__include" && continue
12853 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9fabf579 12854 # When using ansi2knr, U may be empty or an underscore; expand it
076e5443 12855 U=`sed -n 's/^U = //p' < "$mf"`
17210dff
TT
12856 # Find all dependency output files, they are included files with
12857 # $(DEPDIR) in their names. We invoke sed twice because it is the
12858 # simplest approach to changing $(DEPDIR) to its actual value in the
12859 # expansion.
12860 for file in `sed -n "
12861 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9fabf579
KC
12862 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12863 # Make sure the directory exists.
12864 test -f "$dirpart/$file" && continue
12865 fdir=`(dirname "$file") 2>/dev/null ||
12866$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12867 X"$file" : 'X\(//\)[^/]' \| \
12868 X"$file" : 'X\(//\)$' \| \
12869 X"$file" : 'X\(/\)' \| \
12870 . : '\(.\)' 2>/dev/null ||
12871echo X"$file" |
12872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12874 /^X\(\/\/\)$/{ s//\1/; q; }
12875 /^X\(\/\).*/{ s//\1/; q; }
12876 s/.*/./; q'`
12877 { if $as_mkdir_p; then
12878 mkdir -p $dirpart/$fdir
12879 else
12880 as_dir=$dirpart/$fdir
12881 as_dirs=
12882 while test ! -d "$as_dir"; do
12883 as_dirs="$as_dir $as_dirs"
12884 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12885$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12886 X"$as_dir" : 'X\(//\)[^/]' \| \
12887 X"$as_dir" : 'X\(//\)$' \| \
12888 X"$as_dir" : 'X\(/\)' \| \
12889 . : '\(.\)' 2>/dev/null ||
12890echo X"$as_dir" |
12891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12893 /^X\(\/\/\)$/{ s//\1/; q; }
12894 /^X\(\/\).*/{ s//\1/; q; }
12895 s/.*/./; q'`
12896 done
12897 test ! -n "$as_dirs" || mkdir $as_dirs
12898 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12899echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12900 { (exit 1); exit 1; }; }; }
12901
12902 # echo "creating $dirpart/$file"
12903 echo '# dummy' > "$dirpart/$file"
12904 done
12905done
1cf3d07d
SE
12906 ;;
12907 libtool )
12908
12909 # See if we are running on zsh, and set the options which allow our
12910 # commands through without removal of \ escapes.
12911 if test -n "${ZSH_VERSION+set}" ; then
12912 setopt NO_GLOB_SUBST
12913 fi
12914
12915 cfgfile="${ofile}T"
12916 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12917 $RM "$cfgfile"
12918
12919 cat <<_LT_EOF >> "$cfgfile"
12920#! $SHELL
12921
12922# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18d98188 12923# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
12924# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12925# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12926#
18d98188
PG
12927# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12928# 2006, 2007, 2008 Free Software Foundation, Inc.
12929# Written by Gordon Matzigkeit, 1996
1cf3d07d 12930#
18d98188 12931# This file is part of GNU Libtool.
1cf3d07d 12932#
18d98188
PG
12933# GNU Libtool is free software; you can redistribute it and/or
12934# modify it under the terms of the GNU General Public License as
12935# published by the Free Software Foundation; either version 2 of
12936# the License, or (at your option) any later version.
1cf3d07d 12937#
18d98188
PG
12938# As a special exception to the GNU General Public License,
12939# if you distribute this file as part of a program or library that
12940# is built using GNU Libtool, you may include this file under the
12941# same distribution terms that you use for the rest of that program.
1cf3d07d 12942#
18d98188
PG
12943# GNU Libtool is distributed in the hope that it will be useful,
12944# but WITHOUT ANY WARRANTY; without even the implied warranty of
12945# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12946# GNU General Public License for more details.
1cf3d07d 12947#
18d98188
PG
12948# You should have received a copy of the GNU General Public License
12949# along with GNU Libtool; see the file COPYING. If not, a copy
12950# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12951# obtained by writing to the Free Software Foundation, Inc.,
12952# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
12953
12954
12955# The names of the tagged configurations supported by this script.
12956available_tags=""
12957
12958# ### BEGIN LIBTOOL CONFIG
12959
12960# Which release of libtool.m4 was used?
12961macro_version=$macro_version
12962macro_revision=$macro_revision
12963
12964# Whether or not to build shared libraries.
12965build_libtool_libs=$enable_shared
12966
12967# Whether or not to build static libraries.
12968build_old_libs=$enable_static
12969
12970# What type of objects to build.
12971pic_mode=$pic_mode
12972
12973# Whether or not to optimize for fast installation.
12974fast_install=$enable_fast_install
12975
12976# The host system.
12977host_alias=$host_alias
12978host=$host
12979host_os=$host_os
12980
12981# The build system.
12982build_alias=$build_alias
12983build=$build
12984build_os=$build_os
12985
12986# A sed program that does not truncate output.
12987SED=$lt_SED
12988
12989# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12990Xsed="\$SED -e 1s/^X//"
12991
12992# A grep program that handles long lines.
12993GREP=$lt_GREP
12994
12995# An ERE matcher.
12996EGREP=$lt_EGREP
12997
12998# A literal string matcher.
12999FGREP=$lt_FGREP
13000
13001# A BSD- or MS-compatible name lister.
13002NM=$lt_NM
13003
13004# Whether we need soft or hard links.
13005LN_S=$lt_LN_S
13006
13007# What is the maximum length of a command?
13008max_cmd_len=$max_cmd_len
13009
13010# Object file suffix (normally "o").
13011objext=$ac_objext
13012
13013# Executable file suffix (normally "").
13014exeext=$exeext
13015
13016# whether the shell understands "unset".
13017lt_unset=$lt_unset
13018
13019# turn spaces into newlines.
13020SP2NL=$lt_lt_SP2NL
13021
13022# turn newlines into spaces.
13023NL2SP=$lt_lt_NL2SP
13024
13025# How to create reloadable object files.
13026reload_flag=$lt_reload_flag
13027reload_cmds=$lt_reload_cmds
13028
18d98188
PG
13029# An object symbol dumper.
13030OBJDUMP=$lt_OBJDUMP
13031
1cf3d07d
SE
13032# Method to check whether dependent libraries are shared objects.
13033deplibs_check_method=$lt_deplibs_check_method
13034
13035# Command to use when deplibs_check_method == "file_magic".
13036file_magic_cmd=$lt_file_magic_cmd
13037
13038# The archiver.
13039AR=$lt_AR
13040AR_FLAGS=$lt_AR_FLAGS
13041
13042# A symbol stripping program.
13043STRIP=$lt_STRIP
13044
13045# Commands used to install an old-style archive.
13046RANLIB=$lt_RANLIB
13047old_postinstall_cmds=$lt_old_postinstall_cmds
13048old_postuninstall_cmds=$lt_old_postuninstall_cmds
13049
13050# A C compiler.
13051LTCC=$lt_CC
13052
13053# LTCC compiler flags.
13054LTCFLAGS=$lt_CFLAGS
13055
13056# Take the output of nm and produce a listing of raw symbols and C names.
13057global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13058
13059# Transform the output of nm in a proper C declaration.
13060global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13061
13062# Transform the output of nm in a C name address pair.
13063global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13064
18d98188
PG
13065# Transform the output of nm in a C name address pair when lib prefix is needed.
13066global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13067
1cf3d07d
SE
13068# The name of the directory that contains temporary libtool files.
13069objdir=$objdir
13070
13071# Shell to use when invoking shell scripts.
13072SHELL=$lt_SHELL
13073
13074# An echo program that does not interpret backslashes.
13075ECHO=$lt_ECHO
13076
13077# Used to examine libraries when file_magic_cmd begins with "file".
13078MAGIC_CMD=$MAGIC_CMD
13079
13080# Must we lock files when doing compilation?
13081need_locks=$lt_need_locks
13082
18d98188
PG
13083# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13084DSYMUTIL=$lt_DSYMUTIL
13085
13086# Tool to change global to local symbols on Mac OS X.
13087NMEDIT=$lt_NMEDIT
13088
13089# Tool to manipulate fat objects and archives on Mac OS X.
13090LIPO=$lt_LIPO
13091
13092# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13093OTOOL=$lt_OTOOL
13094
13095# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13096OTOOL64=$lt_OTOOL64
13097
1cf3d07d
SE
13098# Old archive suffix (normally "a").
13099libext=$libext
13100
13101# Shared library suffix (normally ".so").
13102shrext_cmds=$lt_shrext_cmds
13103
13104# The commands to extract the exported symbol list from a shared archive.
13105extract_expsyms_cmds=$lt_extract_expsyms_cmds
13106
13107# Variables whose values should be saved in libtool wrapper scripts and
13108# restored at link time.
13109variables_saved_for_relink=$lt_variables_saved_for_relink
13110
13111# Do we need the "lib" prefix for modules?
13112need_lib_prefix=$need_lib_prefix
13113
13114# Do we need a version for libraries?
13115need_version=$need_version
13116
13117# Library versioning type.
13118version_type=$version_type
13119
13120# Shared library runtime path variable.
13121runpath_var=$runpath_var
13122
13123# Shared library path variable.
13124shlibpath_var=$shlibpath_var
13125
13126# Is shlibpath searched before the hard-coded library search path?
13127shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13128
13129# Format of library name prefix.
13130libname_spec=$lt_libname_spec
13131
13132# List of archive names. First name is the real one, the rest are links.
13133# The last name is the one that the linker finds with -lNAME
13134library_names_spec=$lt_library_names_spec
13135
13136# The coded name of the library, if different from the real name.
13137soname_spec=$lt_soname_spec
13138
13139# Command to use after installation of a shared archive.
13140postinstall_cmds=$lt_postinstall_cmds
13141
13142# Command to use after uninstallation of a shared archive.
13143postuninstall_cmds=$lt_postuninstall_cmds
13144
13145# Commands used to finish a libtool library installation in a directory.
13146finish_cmds=$lt_finish_cmds
13147
13148# As "finish_cmds", except a single script fragment to be evaled but
13149# not shown.
13150finish_eval=$lt_finish_eval
13151
13152# Whether we should hardcode library paths into libraries.
13153hardcode_into_libs=$hardcode_into_libs
13154
13155# Compile-time system search path for libraries.
13156sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13157
13158# Run-time system search path for libraries.
13159sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13160
13161# Whether dlopen is supported.
13162dlopen_support=$enable_dlopen
13163
13164# Whether dlopen of programs is supported.
13165dlopen_self=$enable_dlopen_self
13166
13167# Whether dlopen of statically linked programs is supported.
13168dlopen_self_static=$enable_dlopen_self_static
13169
13170# Commands to strip libraries.
13171old_striplib=$lt_old_striplib
13172striplib=$lt_striplib
13173
13174
13175# The linker used to build libraries.
13176LD=$lt_LD
13177
13178# Commands used to build an old-style archive.
13179old_archive_cmds=$lt_old_archive_cmds
13180
13181# A language specific compiler.
13182CC=$lt_compiler
13183
13184# Is the compiler the GNU compiler?
13185with_gcc=$GCC
13186
13187# Compiler flag to turn off builtin functions.
13188no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13189
13190# How to pass a linker flag through the compiler.
13191wl=$lt_lt_prog_compiler_wl
13192
13193# Additional compiler flags for building library objects.
13194pic_flag=$lt_lt_prog_compiler_pic
13195
13196# Compiler flag to prevent dynamic linking.
13197link_static_flag=$lt_lt_prog_compiler_static
13198
13199# Does compiler simultaneously support -c and -o options?
13200compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13201
13202# Whether or not to add -lc for building shared libraries.
13203build_libtool_need_lc=$archive_cmds_need_lc
13204
13205# Whether or not to disallow shared libs when runtime libs are static.
13206allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13207
13208# Compiler flag to allow reflexive dlopens.
13209export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13210
13211# Compiler flag to generate shared objects directly from archives.
13212whole_archive_flag_spec=$lt_whole_archive_flag_spec
13213
13214# Whether the compiler copes with passing no objects directly.
13215compiler_needs_object=$lt_compiler_needs_object
13216
13217# Create an old-style archive from a shared archive.
13218old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13219
13220# Create a temporary old-style archive to link instead of a shared archive.
13221old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13222
13223# Commands used to build a shared archive.
13224archive_cmds=$lt_archive_cmds
13225archive_expsym_cmds=$lt_archive_expsym_cmds
13226
13227# Commands used to build a loadable module if different from building
13228# a shared archive.
13229module_cmds=$lt_module_cmds
13230module_expsym_cmds=$lt_module_expsym_cmds
13231
13232# Whether we are building with GNU ld or not.
13233with_gnu_ld=$lt_with_gnu_ld
13234
13235# Flag that allows shared libraries with undefined symbols to be built.
13236allow_undefined_flag=$lt_allow_undefined_flag
13237
13238# Flag that enforces no undefined symbols.
13239no_undefined_flag=$lt_no_undefined_flag
13240
13241# Flag to hardcode \$libdir into a binary during linking.
13242# This must work even if \$libdir does not exist
13243hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13244
13245# If ld is used when linking, flag to hardcode \$libdir into a binary
13246# during linking. This must work even if \$libdir does not exist.
13247hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13248
13249# Whether we need a single "-rpath" flag with a separated argument.
13250hardcode_libdir_separator=$lt_hardcode_libdir_separator
13251
13252# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13253# DIR into the resulting binary.
13254hardcode_direct=$hardcode_direct
13255
13256# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13257# DIR into the resulting binary and the resulting library dependency is
13258# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13259# library is relocated.
13260hardcode_direct_absolute=$hardcode_direct_absolute
13261
13262# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13263# into the resulting binary.
13264hardcode_minus_L=$hardcode_minus_L
13265
13266# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13267# into the resulting binary.
13268hardcode_shlibpath_var=$hardcode_shlibpath_var
13269
13270# Set to "yes" if building a shared library automatically hardcodes DIR
13271# into the library and all subsequent libraries and executables linked
13272# against it.
13273hardcode_automatic=$hardcode_automatic
13274
13275# Set to yes if linker adds runtime paths of dependent libraries
13276# to runtime path list.
13277inherit_rpath=$inherit_rpath
13278
13279# Whether libtool must link a program against all its dependency libraries.
13280link_all_deplibs=$link_all_deplibs
13281
13282# Fix the shell variable \$srcfile for the compiler.
13283fix_srcfile_path=$lt_fix_srcfile_path
13284
13285# Set to "yes" if exported symbols are required.
13286always_export_symbols=$always_export_symbols
13287
13288# The commands to list exported symbols.
13289export_symbols_cmds=$lt_export_symbols_cmds
13290
13291# Symbols that should not be listed in the preloaded symbols.
13292exclude_expsyms=$lt_exclude_expsyms
13293
13294# Symbols that must always be exported.
13295include_expsyms=$lt_include_expsyms
13296
13297# Commands necessary for linking programs (against libraries) with templates.
13298prelink_cmds=$lt_prelink_cmds
13299
13300# Specify filename containing input files.
13301file_list_spec=$lt_file_list_spec
13302
13303# How to hardcode a shared library path into an executable.
13304hardcode_action=$hardcode_action
13305
13306# ### END LIBTOOL CONFIG
13307
13308_LT_EOF
13309
13310 case $host_os in
13311 aix3*)
13312 cat <<\_LT_EOF >> "$cfgfile"
13313# AIX sometimes has problems with the GCC collect2 program. For some
13314# reason, if we set the COLLECT_NAMES environment variable, the problems
13315# vanish in a puff of smoke.
13316if test "X${COLLECT_NAMES+set}" != Xset; then
13317 COLLECT_NAMES=
13318 export COLLECT_NAMES
13319fi
13320_LT_EOF
13321 ;;
13322 esac
13323
13324
13325ltmain="$ac_aux_dir/ltmain.sh"
13326
13327
13328 # We use sed instead of cat because bash on DJGPP gets confused if
13329 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13330 # text mode, it properly converts lines to CR/LF. This bash problem
13331 # is reportedly fixed, but why not run on old versions too?
13332 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13333 || (rm -f "$cfgfile"; exit 1)
13334
13335 case $xsi_shell in
13336 yes)
13337 cat << \_LT_EOF >> "$cfgfile"
18d98188 13338
1cf3d07d
SE
13339# func_dirname file append nondir_replacement
13340# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13341# otherwise set result to NONDIR_REPLACEMENT.
13342func_dirname ()
13343{
13344 case ${1} in
13345 */*) func_dirname_result="${1%/*}${2}" ;;
13346 * ) func_dirname_result="${3}" ;;
13347 esac
13348}
13349
13350# func_basename file
13351func_basename ()
13352{
13353 func_basename_result="${1##*/}"
13354}
13355
18d98188
PG
13356# func_dirname_and_basename file append nondir_replacement
13357# perform func_basename and func_dirname in a single function
13358# call:
13359# dirname: Compute the dirname of FILE. If nonempty,
13360# add APPEND to the result, otherwise set result
13361# to NONDIR_REPLACEMENT.
13362# value returned in "$func_dirname_result"
13363# basename: Compute filename of FILE.
13364# value retuned in "$func_basename_result"
13365# Implementation must be kept synchronized with func_dirname
13366# and func_basename. For efficiency, we do not delegate to
13367# those functions but instead duplicate the functionality here.
13368func_dirname_and_basename ()
13369{
13370 case ${1} in
13371 */*) func_dirname_result="${1%/*}${2}" ;;
13372 * ) func_dirname_result="${3}" ;;
13373 esac
13374 func_basename_result="${1##*/}"
13375}
13376
1cf3d07d
SE
13377# func_stripname prefix suffix name
13378# strip PREFIX and SUFFIX off of NAME.
13379# PREFIX and SUFFIX must not contain globbing or regex special
13380# characters, hashes, percent signs, but SUFFIX may contain a leading
13381# dot (in which case that matches only a dot).
13382func_stripname ()
13383{
13384 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13385 # positional parameters, so assign one to ordinary parameter first.
13386 func_stripname_result=${3}
13387 func_stripname_result=${func_stripname_result#"${1}"}
13388 func_stripname_result=${func_stripname_result%"${2}"}
13389}
13390
13391# func_opt_split
13392func_opt_split ()
13393{
13394 func_opt_split_opt=${1%%=*}
13395 func_opt_split_arg=${1#*=}
13396}
13397
13398# func_lo2o object
13399func_lo2o ()
13400{
13401 case ${1} in
13402 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13403 *) func_lo2o_result=${1} ;;
13404 esac
13405}
18d98188
PG
13406
13407# func_xform libobj-or-source
13408func_xform ()
13409{
13410 func_xform_result=${1%.*}.lo
13411}
13412
13413# func_arith arithmetic-term...
13414func_arith ()
13415{
13416 func_arith_result=$(( $* ))
13417}
13418
13419# func_len string
13420# STRING may not start with a hyphen.
13421func_len ()
13422{
13423 func_len_result=${#1}
13424}
13425
1cf3d07d
SE
13426_LT_EOF
13427 ;;
13428 *) # Bourne compatible functions.
13429 cat << \_LT_EOF >> "$cfgfile"
18d98188 13430
1cf3d07d
SE
13431# func_dirname file append nondir_replacement
13432# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13433# otherwise set result to NONDIR_REPLACEMENT.
13434func_dirname ()
13435{
13436 # Extract subdirectory from the argument.
13437 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13438 if test "X$func_dirname_result" = "X${1}"; then
13439 func_dirname_result="${3}"
13440 else
13441 func_dirname_result="$func_dirname_result${2}"
13442 fi
13443}
13444
13445# func_basename file
13446func_basename ()
13447{
13448 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13449}
13450
18d98188 13451
1cf3d07d
SE
13452# func_stripname prefix suffix name
13453# strip PREFIX and SUFFIX off of NAME.
13454# PREFIX and SUFFIX must not contain globbing or regex special
13455# characters, hashes, percent signs, but SUFFIX may contain a leading
13456# dot (in which case that matches only a dot).
13457# func_strip_suffix prefix name
13458func_stripname ()
13459{
13460 case ${2} in
13461 .*) func_stripname_result=`$ECHO "X${3}" \
13462 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13463 *) func_stripname_result=`$ECHO "X${3}" \
13464 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13465 esac
13466}
13467
13468# sed scripts:
13469my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13470my_sed_long_arg='1s/^-[^=]*=//'
13471
13472# func_opt_split
13473func_opt_split ()
13474{
13475 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13476 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13477}
13478
13479# func_lo2o object
13480func_lo2o ()
13481{
13482 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13483}
18d98188
PG
13484
13485# func_xform libobj-or-source
13486func_xform ()
13487{
13488 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13489}
13490
13491# func_arith arithmetic-term...
13492func_arith ()
13493{
13494 func_arith_result=`expr "$@"`
13495}
13496
13497# func_len string
13498# STRING may not start with a hyphen.
13499func_len ()
13500{
13501 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13502}
13503
1cf3d07d
SE
13504_LT_EOF
13505esac
13506
13507case $lt_shell_append in
13508 yes)
13509 cat << \_LT_EOF >> "$cfgfile"
13510
13511# func_append var value
13512# Append VALUE to the end of shell variable VAR.
13513func_append ()
13514{
13515 eval "$1+=\$2"
13516}
13517_LT_EOF
13518 ;;
13519 *)
13520 cat << \_LT_EOF >> "$cfgfile"
13521
13522# func_append var value
13523# Append VALUE to the end of shell variable VAR.
13524func_append ()
13525{
13526 eval "$1=\$$1\$2"
13527}
18d98188 13528
1cf3d07d
SE
13529_LT_EOF
13530 ;;
13531 esac
13532
13533
13534 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13535 || (rm -f "$cfgfile"; exit 1)
13536
13537 mv -f "$cfgfile" "$ofile" ||
13538 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13539 chmod +x "$ofile"
13540
9fabf579 13541 ;;
a8aea176
NN
13542 esac
13543done
13544_ACEOF
13545
13546cat >>$CONFIG_STATUS <<\_ACEOF
13547
13548{ (exit 0); exit 0; }
13549_ACEOF
dfac8a13 13550chmod +x $CONFIG_STATUS
a8aea176
NN
13551ac_clean_files=$ac_clean_files_save
13552
13553
13554# configure is writing to config.log, and then calls config.status.
13555# config.status does its own redirection, appending to config.log.
13556# Unfortunately, on DOS this fails, as config.log is still kept open
13557# by configure, so config.status won't be able to write to it; its
13558# output is simply discarded. So we exec the FD to /dev/null,
13559# effectively closing config.log, so it can be properly (re)opened and
13560# appended to by config.status. When coming back to configure, we
13561# need to make the FD available again.
13562if test "$no_create" != yes; then
13563 ac_cs_success=:
13564 ac_config_status_args=
13565 test "$silent" = yes &&
13566 ac_config_status_args="$ac_config_status_args --quiet"
13567 exec 5>/dev/null
13568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13569 exec 5>>config.log
13570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13571 # would make configure fail if this is the last instruction.
13572 $ac_cs_success || { (exit 1); exit 1; }
13573fi
c45f211e 13574