bfd/
[deliverable/binutils-gdb.git] / gprof / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
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
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#
403ac_default_prefix=/usr/local
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="gprof.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE WARN_CFLAGS NO_WERROR datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS'
462ac_subst_files=''
463ac_pwd=`pwd`
464
465# Initialize some variables set by options.
466ac_init_help=
467ac_init_version=false
468# The variables have the same names as the options, with
469# dashes changed to underlines.
470cache_file=/dev/null
471exec_prefix=NONE
472no_create=
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
481verbose=
482x_includes=NONE
483x_libraries=NONE
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.
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
503ac_prev=
504for ac_option
505do
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
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
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=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
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" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
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"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
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 ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
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=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
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=*)
614 libexecdir=$ac_optarg ;;
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=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
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 \
635 | --no-cr | --no-c | -n)
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=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
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=*)
661 program_prefix=$ac_optarg ;;
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=*)
668 program_suffix=$ac_optarg ;;
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=*)
685 program_transform_name=$ac_optarg ;;
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=*)
695 sbindir=$ac_optarg ;;
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=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
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=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
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; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
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" ;;
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=*)
767 x_includes=$ac_optarg ;;
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=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
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
791 *)
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}
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
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; }; }
806fi
807
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
818
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822do
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; }; };;
828 esac
829done
830
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
848
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
853
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.
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'`
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
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886fi
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
923
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
932
933Usage: $0 [OPTION]... [VAR=VALUE]...
934
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
937
938Defaults for the options are specified in brackets.
939
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
959
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
964
965For better control, use the options below.
966
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
981
982 cat <<\_ACEOF
983
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
988
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
994fi
995
996if test -n "$ac_init_help"; then
997
998 cat <<\_ACEOF
999
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --disable-largefile omit support for large files
1006 --enable-shared[=PKGS]
1007 build shared libraries [default=yes]
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --disable-nls do not use Native Language Support
1014 --enable-maintainer-mode enable make rules and dependencies not useful
1015 (and sometimes confusing) to the casual installer
1016 --enable-werror treat compile warnings as errors
1017 --enable-build-warnings enable build-time compiler warnings
1018
1019Optional Packages:
1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1022 --with-pic try to use only PIC/non-PIC objects [default=use
1023 both]
1024 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1025
1026Some influential environment variables:
1027 CC C compiler command
1028 CFLAGS C compiler flags
1029 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1030 nonstandard directory <lib dir>
1031 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1032 headers in a nonstandard directory <include dir>
1033 CPP C preprocessor
1034
1035Use these variables to override the choices made by `configure' or to help
1036it to find libraries and programs with nonstandard names/locations.
1037
1038_ACEOF
1039fi
1040
1041if test "$ac_init_help" = "recursive"; then
1042 # If there are subdirs, report their specific --help.
1043 ac_popdir=`pwd`
1044 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1045 test -d $ac_dir || continue
1046 ac_builddir=.
1047
1048if test "$ac_dir" != .; then
1049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1050 # A "../" for each directory in $ac_dir_suffix.
1051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1052else
1053 ac_dir_suffix= ac_top_builddir=
1054fi
1055
1056case $srcdir in
1057 .) # No --srcdir option. We are building in place.
1058 ac_srcdir=.
1059 if test -z "$ac_top_builddir"; then
1060 ac_top_srcdir=.
1061 else
1062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1063 fi ;;
1064 [\\/]* | ?:[\\/]* ) # Absolute path.
1065 ac_srcdir=$srcdir$ac_dir_suffix;
1066 ac_top_srcdir=$srcdir ;;
1067 *) # Relative path.
1068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1070esac
1071
1072# Do not use `cd foo && pwd` to compute absolute paths, because
1073# the directories may not exist.
1074case `pwd` in
1075.) ac_abs_builddir="$ac_dir";;
1076*)
1077 case "$ac_dir" in
1078 .) ac_abs_builddir=`pwd`;;
1079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1081 esac;;
1082esac
1083case $ac_abs_builddir in
1084.) ac_abs_top_builddir=${ac_top_builddir}.;;
1085*)
1086 case ${ac_top_builddir}. in
1087 .) ac_abs_top_builddir=$ac_abs_builddir;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1090 esac;;
1091esac
1092case $ac_abs_builddir in
1093.) ac_abs_srcdir=$ac_srcdir;;
1094*)
1095 case $ac_srcdir in
1096 .) ac_abs_srcdir=$ac_abs_builddir;;
1097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1099 esac;;
1100esac
1101case $ac_abs_builddir in
1102.) ac_abs_top_srcdir=$ac_top_srcdir;;
1103*)
1104 case $ac_top_srcdir in
1105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1108 esac;;
1109esac
1110
1111 cd $ac_dir
1112 # Check for guested configure; otherwise get Cygnus style configure.
1113 if test -f $ac_srcdir/configure.gnu; then
1114 echo
1115 $SHELL $ac_srcdir/configure.gnu --help=recursive
1116 elif test -f $ac_srcdir/configure; then
1117 echo
1118 $SHELL $ac_srcdir/configure --help=recursive
1119 elif test -f $ac_srcdir/configure.ac ||
1120 test -f $ac_srcdir/configure.in; then
1121 echo
1122 $ac_configure --help
1123 else
1124 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125 fi
1126 cd $ac_popdir
1127 done
1128fi
1129
1130test -n "$ac_init_help" && exit 0
1131if $ac_init_version; then
1132 cat <<\_ACEOF
1133
1134Copyright (C) 2003 Free Software Foundation, Inc.
1135This configure script is free software; the Free Software Foundation
1136gives unlimited permission to copy, distribute and modify it.
1137_ACEOF
1138 exit 0
1139fi
1140exec 5>config.log
1141cat >&5 <<_ACEOF
1142This file contains any messages produced by compilers while
1143running configure, to aid debugging if configure makes a mistake.
1144
1145It was created by $as_me, which was
1146generated by GNU Autoconf 2.59. Invocation command line was
1147
1148 $ $0 $@
1149
1150_ACEOF
1151{
1152cat <<_ASUNAME
1153## --------- ##
1154## Platform. ##
1155## --------- ##
1156
1157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1158uname -m = `(uname -m) 2>/dev/null || echo unknown`
1159uname -r = `(uname -r) 2>/dev/null || echo unknown`
1160uname -s = `(uname -s) 2>/dev/null || echo unknown`
1161uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162
1163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1164/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165
1166/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1167/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1169hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1170/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1171/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1172/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1173
1174_ASUNAME
1175
1176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1177for as_dir in $PATH
1178do
1179 IFS=$as_save_IFS
1180 test -z "$as_dir" && as_dir=.
1181 echo "PATH: $as_dir"
1182done
1183
1184} >&5
1185
1186cat >&5 <<_ACEOF
1187
1188
1189## ----------- ##
1190## Core tests. ##
1191## ----------- ##
1192
1193_ACEOF
1194
1195
1196# Keep a trace of the command line.
1197# Strip out --no-create and --no-recursion so they do not pile up.
1198# Strip out --silent because we don't want to record it for future runs.
1199# Also quote any args containing shell meta-characters.
1200# Make two passes to allow for proper duplicate-argument suppression.
1201ac_configure_args=
1202ac_configure_args0=
1203ac_configure_args1=
1204ac_sep=
1205ac_must_keep_next=false
1206for ac_pass in 1 2
1207do
1208 for ac_arg
1209 do
1210 case $ac_arg in
1211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 continue ;;
1215 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1216 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1217 esac
1218 case $ac_pass in
1219 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220 2)
1221 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1222 if test $ac_must_keep_next = true; then
1223 ac_must_keep_next=false # Got value, back to normal.
1224 else
1225 case $ac_arg in
1226 *=* | --config-cache | -C | -disable-* | --disable-* \
1227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1229 | -with-* | --with-* | -without-* | --without-* | --x)
1230 case "$ac_configure_args0 " in
1231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1232 esac
1233 ;;
1234 -* ) ac_must_keep_next=true ;;
1235 esac
1236 fi
1237 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1238 # Get rid of the leading space.
1239 ac_sep=" "
1240 ;;
1241 esac
1242 done
1243done
1244$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1245$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246
1247# When interrupted or exit'd, cleanup temporary files, and complete
1248# config.log. We remove comments because anyway the quotes in there
1249# would cause problems or look ugly.
1250# WARNING: Be sure not to use single quotes in there, as some shells,
1251# such as our DU 5.0 friend, will then `close' the trap.
1252trap 'exit_status=$?
1253 # Save into config.log some information that might help in debugging.
1254 {
1255 echo
1256
1257 cat <<\_ASBOX
1258## ---------------- ##
1259## Cache variables. ##
1260## ---------------- ##
1261_ASBOX
1262 echo
1263 # The following way of writing the cache mishandles newlines in values,
1264{
1265 (set) 2>&1 |
1266 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1267 *ac_space=\ *)
1268 sed -n \
1269 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1271 ;;
1272 *)
1273 sed -n \
1274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1275 ;;
1276 esac;
1277}
1278 echo
1279
1280 cat <<\_ASBOX
1281## ----------------- ##
1282## Output variables. ##
1283## ----------------- ##
1284_ASBOX
1285 echo
1286 for ac_var in $ac_subst_vars
1287 do
1288 eval ac_val=$`echo $ac_var`
1289 echo "$ac_var='"'"'$ac_val'"'"'"
1290 done | sort
1291 echo
1292
1293 if test -n "$ac_subst_files"; then
1294 cat <<\_ASBOX
1295## ------------- ##
1296## Output files. ##
1297## ------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_files
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306 fi
1307
1308 if test -s confdefs.h; then
1309 cat <<\_ASBOX
1310## ----------- ##
1311## confdefs.h. ##
1312## ----------- ##
1313_ASBOX
1314 echo
1315 sed "/^$/d" confdefs.h | sort
1316 echo
1317 fi
1318 test "$ac_signal" != 0 &&
1319 echo "$as_me: caught signal $ac_signal"
1320 echo "$as_me: exit $exit_status"
1321 } >&5
1322 rm -f core *.core &&
1323 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1324 exit $exit_status
1325 ' 0
1326for ac_signal in 1 2 13 15; do
1327 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1328done
1329ac_signal=0
1330
1331# confdefs.h avoids OS command line length limits that DEFS can exceed.
1332rm -rf conftest* confdefs.h
1333# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1334echo >confdefs.h
1335
1336# Predefined preprocessor variables.
1337
1338cat >>confdefs.h <<_ACEOF
1339#define PACKAGE_NAME "$PACKAGE_NAME"
1340_ACEOF
1341
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_VERSION "$PACKAGE_VERSION"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_STRING "$PACKAGE_STRING"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1360_ACEOF
1361
1362
1363# Let the site file select an alternate cache file if it wants to.
1364# Prefer explicitly selected file to automatically selected ones.
1365if test -z "$CONFIG_SITE"; then
1366 if test "x$prefix" != xNONE; then
1367 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1368 else
1369 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1370 fi
1371fi
1372for ac_site_file in $CONFIG_SITE; do
1373 if test -r "$ac_site_file"; then
1374 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1375echo "$as_me: loading site script $ac_site_file" >&6;}
1376 sed 's/^/| /' "$ac_site_file" >&5
1377 . "$ac_site_file"
1378 fi
1379done
1380
1381if test -r "$cache_file"; then
1382 # Some versions of bash will fail to source /dev/null (special
1383 # files actually), so we avoid doing that.
1384 if test -f "$cache_file"; then
1385 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1386echo "$as_me: loading cache $cache_file" >&6;}
1387 case $cache_file in
1388 [\\/]* | ?:[\\/]* ) . $cache_file;;
1389 *) . ./$cache_file;;
1390 esac
1391 fi
1392else
1393 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1394echo "$as_me: creating cache $cache_file" >&6;}
1395 >$cache_file
1396fi
1397
1398# Check that the precious variables saved in the cache have kept the same
1399# value.
1400ac_cache_corrupted=false
1401for ac_var in `(set) 2>&1 |
1402 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1404 eval ac_new_set=\$ac_env_${ac_var}_set
1405 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1406 eval ac_new_val="\$ac_env_${ac_var}_value"
1407 case $ac_old_set,$ac_new_set in
1408 set,)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,set)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,);;
1417 *)
1418 if test "x$ac_old_val" != "x$ac_new_val"; then
1419 # differences in whitespace do not lead to failure.
1420 ac_old_val_w=`echo x $ac_old_val`
1421 ac_new_val_w=`echo x $ac_new_val`
1422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 ac_cache_corrupted=:
1426 else
1427 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1428echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1429 eval $ac_var=\$ac_old_val
1430 fi
1431 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1432echo "$as_me: former value: \`$ac_old_val'" >&2;}
1433 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1434echo "$as_me: current value: \`$ac_new_val'" >&2;}
1435 fi;;
1436 esac
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 esac
1448 fi
1449done
1450if $ac_cache_corrupted; then
1451 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1452echo "$as_me: error: in \`$ac_pwd':" >&2;}
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
1458fi
1459
1460ac_ext=c
1461ac_cpp='$CPP $CPPFLAGS'
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489ac_aux_dir=
1490for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1491 if test -f $ac_dir/install-sh; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/install-sh -c"
1494 break
1495 elif test -f $ac_dir/install.sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install.sh -c"
1498 break
1499 elif test -f $ac_dir/shtool; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 break
1503 fi
1504done
1505if test -z "$ac_aux_dir"; then
1506 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1507echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1511ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1512ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513
1514# Make sure we can run config.sub.
1515$ac_config_sub sun4 >/dev/null 2>&1 ||
1516 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520echo "$as_me:$LINENO: checking build system type" >&5
1521echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522if test "${ac_cv_build+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 ac_cv_build_alias=$build_alias
1526test -z "$ac_cv_build_alias" &&
1527 ac_cv_build_alias=`$ac_config_guess`
1528test -z "$ac_cv_build_alias" &&
1529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531 { (exit 1); exit 1; }; }
1532ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1536
1537fi
1538echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539echo "${ECHO_T}$ac_cv_build" >&6
1540build=$ac_cv_build
1541build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544
1545
1546echo "$as_me:$LINENO: checking host system type" >&5
1547echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548if test "${ac_cv_host+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551 ac_cv_host_alias=$host_alias
1552test -z "$ac_cv_host_alias" &&
1553 ac_cv_host_alias=$ac_cv_build_alias
1554ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1558
1559fi
1560echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561echo "${ECHO_T}$ac_cv_host" >&6
1562host=$ac_cv_host
1563host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566
1567
1568echo "$as_me:$LINENO: checking target system type" >&5
1569echo $ECHO_N "checking target system type... $ECHO_C" >&6
1570if test "${ac_cv_target+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1572else
1573 ac_cv_target_alias=$target_alias
1574test "x$ac_cv_target_alias" = "x" &&
1575 ac_cv_target_alias=$ac_cv_host_alias
1576ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1578echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1580
1581fi
1582echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1583echo "${ECHO_T}$ac_cv_target" >&6
1584target=$ac_cv_target
1585target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
1589
1590# The aliases save the names the user supplied, while $host etc.
1591# will get canonicalized.
1592test -n "$target_alias" &&
1593 test "$program_prefix$program_suffix$program_transform_name" = \
1594 NONENONEs,x,x, &&
1595 program_prefix=${target_alias}-
1596ac_ext=c
1597ac_cpp='$CPP $CPPFLAGS'
1598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1600ac_compiler_gnu=$ac_cv_c_compiler_gnu
1601if test -n "$ac_tool_prefix"; then
1602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1603set dummy ${ac_tool_prefix}gcc; ac_word=$2
1604echo "$as_me:$LINENO: checking for $ac_word" >&5
1605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608else
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1611else
1612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613for as_dir in $PATH
1614do
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621 break 2
1622 fi
1623done
1624done
1625
1626fi
1627fi
1628CC=$ac_cv_prog_CC
1629if test -n "$CC"; then
1630 echo "$as_me:$LINENO: result: $CC" >&5
1631echo "${ECHO_T}$CC" >&6
1632else
1633 echo "$as_me:$LINENO: result: no" >&5
1634echo "${ECHO_T}no" >&6
1635fi
1636
1637fi
1638if test -z "$ac_cv_prog_CC"; then
1639 ac_ct_CC=$CC
1640 # Extract the first word of "gcc", so it can be a program name with args.
1641set dummy gcc; ac_word=$2
1642echo "$as_me:$LINENO: checking for $ac_word" >&5
1643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646else
1647 if test -n "$ac_ct_CC"; then
1648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1649else
1650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651for as_dir in $PATH
1652do
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_ac_ct_CC="gcc"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 break 2
1660 fi
1661done
1662done
1663
1664fi
1665fi
1666ac_ct_CC=$ac_cv_prog_ac_ct_CC
1667if test -n "$ac_ct_CC"; then
1668 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1669echo "${ECHO_T}$ac_ct_CC" >&6
1670else
1671 echo "$as_me:$LINENO: result: no" >&5
1672echo "${ECHO_T}no" >&6
1673fi
1674
1675 CC=$ac_ct_CC
1676else
1677 CC="$ac_cv_prog_CC"
1678fi
1679
1680if test -z "$CC"; then
1681 if test -n "$ac_tool_prefix"; then
1682 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1683set dummy ${ac_tool_prefix}cc; ac_word=$2
1684echo "$as_me:$LINENO: checking for $ac_word" >&5
1685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686if test "${ac_cv_prog_CC+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688else
1689 if test -n "$CC"; then
1690 ac_cv_prog_CC="$CC" # Let the user override the test.
1691else
1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_CC="${ac_tool_prefix}cc"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 break 2
1702 fi
1703done
1704done
1705
1706fi
1707fi
1708CC=$ac_cv_prog_CC
1709if test -n "$CC"; then
1710 echo "$as_me:$LINENO: result: $CC" >&5
1711echo "${ECHO_T}$CC" >&6
1712else
1713 echo "$as_me:$LINENO: result: no" >&5
1714echo "${ECHO_T}no" >&6
1715fi
1716
1717fi
1718if test -z "$ac_cv_prog_CC"; then
1719 ac_ct_CC=$CC
1720 # Extract the first word of "cc", so it can be a program name with args.
1721set dummy cc; ac_word=$2
1722echo "$as_me:$LINENO: checking for $ac_word" >&5
1723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727 if test -n "$ac_ct_CC"; then
1728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1729else
1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_ac_ct_CC="cc"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1740 fi
1741done
1742done
1743
1744fi
1745fi
1746ac_ct_CC=$ac_cv_prog_ac_ct_CC
1747if test -n "$ac_ct_CC"; then
1748 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1749echo "${ECHO_T}$ac_ct_CC" >&6
1750else
1751 echo "$as_me:$LINENO: result: no" >&5
1752echo "${ECHO_T}no" >&6
1753fi
1754
1755 CC=$ac_ct_CC
1756else
1757 CC="$ac_cv_prog_CC"
1758fi
1759
1760fi
1761if test -z "$CC"; then
1762 # Extract the first word of "cc", so it can be a program name with args.
1763set dummy cc; ac_word=$2
1764echo "$as_me:$LINENO: checking for $ac_word" >&5
1765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766if test "${ac_cv_prog_CC+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1768else
1769 if test -n "$CC"; then
1770 ac_cv_prog_CC="$CC" # Let the user override the test.
1771else
1772 ac_prog_rejected=no
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776 IFS=$as_save_IFS
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1781 ac_prog_rejected=yes
1782 continue
1783 fi
1784 ac_cv_prog_CC="cc"
1785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786 break 2
1787 fi
1788done
1789done
1790
1791if test $ac_prog_rejected = yes; then
1792 # We found a bogon in the path, so make sure we never use it.
1793 set dummy $ac_cv_prog_CC
1794 shift
1795 if test $# != 0; then
1796 # We chose a different compiler from the bogus one.
1797 # However, it has the same basename, so the bogon will be chosen
1798 # first if we set CC to just the basename; use the full file name.
1799 shift
1800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1801 fi
1802fi
1803fi
1804fi
1805CC=$ac_cv_prog_CC
1806if test -n "$CC"; then
1807 echo "$as_me:$LINENO: result: $CC" >&5
1808echo "${ECHO_T}$CC" >&6
1809else
1810 echo "$as_me:$LINENO: result: no" >&5
1811echo "${ECHO_T}no" >&6
1812fi
1813
1814fi
1815if test -z "$CC"; then
1816 if test -n "$ac_tool_prefix"; then
1817 for ac_prog in cl
1818 do
1819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1820set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1821echo "$as_me:$LINENO: checking for $ac_word" >&5
1822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823if test "${ac_cv_prog_CC+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1825else
1826 if test -n "$CC"; then
1827 ac_cv_prog_CC="$CC" # Let the user override the test.
1828else
1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830for as_dir in $PATH
1831do
1832 IFS=$as_save_IFS
1833 test -z "$as_dir" && as_dir=.
1834 for ac_exec_ext in '' $ac_executable_extensions; do
1835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838 break 2
1839 fi
1840done
1841done
1842
1843fi
1844fi
1845CC=$ac_cv_prog_CC
1846if test -n "$CC"; then
1847 echo "$as_me:$LINENO: result: $CC" >&5
1848echo "${ECHO_T}$CC" >&6
1849else
1850 echo "$as_me:$LINENO: result: no" >&5
1851echo "${ECHO_T}no" >&6
1852fi
1853
1854 test -n "$CC" && break
1855 done
1856fi
1857if test -z "$CC"; then
1858 ac_ct_CC=$CC
1859 for ac_prog in cl
1860do
1861 # Extract the first word of "$ac_prog", so it can be a program name with args.
1862set dummy $ac_prog; ac_word=$2
1863echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868 if test -n "$ac_ct_CC"; then
1869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870else
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_ac_ct_CC="$ac_prog"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 break 2
1881 fi
1882done
1883done
1884
1885fi
1886fi
1887ac_ct_CC=$ac_cv_prog_ac_ct_CC
1888if test -n "$ac_ct_CC"; then
1889 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1890echo "${ECHO_T}$ac_ct_CC" >&6
1891else
1892 echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6
1894fi
1895
1896 test -n "$ac_ct_CC" && break
1897done
1898
1899 CC=$ac_ct_CC
1900fi
1901
1902fi
1903
1904
1905test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1906echo "$as_me: error: in \`$ac_pwd':" >&2;}
1907{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1908See \`config.log' for more details." >&5
1909echo "$as_me: error: no acceptable C compiler found in \$PATH
1910See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }; }
1912
1913# Provide some information about the compiler.
1914echo "$as_me:$LINENO:" \
1915 "checking for C compiler version" >&5
1916ac_compiler=`set X $ac_compile; echo $2`
1917{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1918 (eval $ac_compiler --version </dev/null >&5) 2>&5
1919 ac_status=$?
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }
1922{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1923 (eval $ac_compiler -v </dev/null >&5) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1928 (eval $ac_compiler -V </dev/null >&5) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932
1933cat >conftest.$ac_ext <<_ACEOF
1934/* confdefs.h. */
1935_ACEOF
1936cat confdefs.h >>conftest.$ac_ext
1937cat >>conftest.$ac_ext <<_ACEOF
1938/* end confdefs.h. */
1939
1940int
1941main ()
1942{
1943
1944 ;
1945 return 0;
1946}
1947_ACEOF
1948ac_clean_files_save=$ac_clean_files
1949ac_clean_files="$ac_clean_files a.out a.exe b.out"
1950# Try to create an executable without -o first, disregard a.out.
1951# It will help us diagnose broken compilers, and finding out an intuition
1952# of exeext.
1953echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1954echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1955ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1956if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1957 (eval $ac_link_default) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; then
1961 # Find the output, starting from the most likely. This scheme is
1962# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1963# resort.
1964
1965# Be careful to initialize this variable, since it used to be cached.
1966# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1967ac_cv_exeext=
1968# b.out is created by i960 compilers.
1969for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1970do
1971 test -f "$ac_file" || continue
1972 case $ac_file in
1973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1974 ;;
1975 conftest.$ac_ext )
1976 # This is the source file.
1977 ;;
1978 [ab].out )
1979 # We found the default executable, but exeext='' is most
1980 # certainly right.
1981 break;;
1982 *.* )
1983 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1984 # FIXME: I believe we export ac_cv_exeext for Libtool,
1985 # but it would be cool to find out if it's true. Does anybody
1986 # maintain Libtool? --akim.
1987 export ac_cv_exeext
1988 break;;
1989 * )
1990 break;;
1991 esac
1992done
1993else
1994 echo "$as_me: failed program was:" >&5
1995sed 's/^/| /' conftest.$ac_ext >&5
1996
1997{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1998echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2000See \`config.log' for more details." >&5
2001echo "$as_me: error: C compiler cannot create executables
2002See \`config.log' for more details." >&2;}
2003 { (exit 77); exit 77; }; }; }
2004fi
2005
2006ac_exeext=$ac_cv_exeext
2007echo "$as_me:$LINENO: result: $ac_file" >&5
2008echo "${ECHO_T}$ac_file" >&6
2009
2010# Check the compiler produces executables we can run. If not, either
2011# the compiler is broken, or we cross compile.
2012echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2013echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2014# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2015# If not cross compiling, check that we can run a simple program.
2016if test "$cross_compiling" != yes; then
2017 if { ac_try='./$ac_file'
2018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019 (eval $ac_try) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; }; then
2023 cross_compiling=no
2024 else
2025 if test "$cross_compiling" = maybe; then
2026 cross_compiling=yes
2027 else
2028 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2029echo "$as_me: error: in \`$ac_pwd':" >&2;}
2030{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2031If you meant to cross compile, use \`--host'.
2032See \`config.log' for more details." >&5
2033echo "$as_me: error: cannot run C compiled programs.
2034If you meant to cross compile, use \`--host'.
2035See \`config.log' for more details." >&2;}
2036 { (exit 1); exit 1; }; }; }
2037 fi
2038 fi
2039fi
2040echo "$as_me:$LINENO: result: yes" >&5
2041echo "${ECHO_T}yes" >&6
2042
2043rm -f a.out a.exe conftest$ac_cv_exeext b.out
2044ac_clean_files=$ac_clean_files_save
2045# Check the compiler produces executables we can run. If not, either
2046# the compiler is broken, or we cross compile.
2047echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2048echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2049echo "$as_me:$LINENO: result: $cross_compiling" >&5
2050echo "${ECHO_T}$cross_compiling" >&6
2051
2052echo "$as_me:$LINENO: checking for suffix of executables" >&5
2053echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2055 (eval $ac_link) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2060# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2061# work properly (i.e., refer to `conftest.exe'), while it won't with
2062# `rm'.
2063for ac_file in conftest.exe conftest conftest.*; do
2064 test -f "$ac_file" || continue
2065 case $ac_file in
2066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068 export ac_cv_exeext
2069 break;;
2070 * ) break;;
2071 esac
2072done
2073else
2074 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2075echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2077See \`config.log' for more details." >&5
2078echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2079See \`config.log' for more details." >&2;}
2080 { (exit 1); exit 1; }; }; }
2081fi
2082
2083rm -f conftest$ac_cv_exeext
2084echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2085echo "${ECHO_T}$ac_cv_exeext" >&6
2086
2087rm -f conftest.$ac_ext
2088EXEEXT=$ac_cv_exeext
2089ac_exeext=$EXEEXT
2090echo "$as_me:$LINENO: checking for suffix of object files" >&5
2091echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2092if test "${ac_cv_objext+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095 cat >conftest.$ac_ext <<_ACEOF
2096/* confdefs.h. */
2097_ACEOF
2098cat confdefs.h >>conftest.$ac_ext
2099cat >>conftest.$ac_ext <<_ACEOF
2100/* end confdefs.h. */
2101
2102int
2103main ()
2104{
2105
2106 ;
2107 return 0;
2108}
2109_ACEOF
2110rm -f conftest.o conftest.obj
2111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; then
2116 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2117 case $ac_file in
2118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2119 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2120 break;;
2121 esac
2122done
2123else
2124 echo "$as_me: failed program was:" >&5
2125sed 's/^/| /' conftest.$ac_ext >&5
2126
2127{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2128echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2130See \`config.log' for more details." >&5
2131echo "$as_me: error: cannot compute suffix of object files: cannot compile
2132See \`config.log' for more details." >&2;}
2133 { (exit 1); exit 1; }; }; }
2134fi
2135
2136rm -f conftest.$ac_cv_objext conftest.$ac_ext
2137fi
2138echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2139echo "${ECHO_T}$ac_cv_objext" >&6
2140OBJEXT=$ac_cv_objext
2141ac_objext=$OBJEXT
2142echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2143echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2144if test "${ac_cv_c_compiler_gnu+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
2147 cat >conftest.$ac_ext <<_ACEOF
2148/* confdefs.h. */
2149_ACEOF
2150cat confdefs.h >>conftest.$ac_ext
2151cat >>conftest.$ac_ext <<_ACEOF
2152/* end confdefs.h. */
2153
2154int
2155main ()
2156{
2157#ifndef __GNUC__
2158 choke me
2159#endif
2160
2161 ;
2162 return 0;
2163}
2164_ACEOF
2165rm -f conftest.$ac_objext
2166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_compiler_gnu=yes
2188else
2189 echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192ac_compiler_gnu=no
2193fi
2194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2195ac_cv_c_compiler_gnu=$ac_compiler_gnu
2196
2197fi
2198echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2199echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2200GCC=`test $ac_compiler_gnu = yes && echo yes`
2201ac_test_CFLAGS=${CFLAGS+set}
2202ac_save_CFLAGS=$CFLAGS
2203CFLAGS="-g"
2204echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2205echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2206if test "${ac_cv_prog_cc_g+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else
2209 cat >conftest.$ac_ext <<_ACEOF
2210/* confdefs.h. */
2211_ACEOF
2212cat confdefs.h >>conftest.$ac_ext
2213cat >>conftest.$ac_ext <<_ACEOF
2214/* end confdefs.h. */
2215
2216int
2217main ()
2218{
2219
2220 ;
2221 return 0;
2222}
2223_ACEOF
2224rm -f conftest.$ac_objext
2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2227 ac_status=$?
2228 grep -v '^ *+' conftest.er1 >conftest.err
2229 rm -f conftest.er1
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 ac_cv_prog_cc_g=yes
2247else
2248 echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251ac_cv_prog_cc_g=no
2252fi
2253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2254fi
2255echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2256echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257if test "$ac_test_CFLAGS" = set; then
2258 CFLAGS=$ac_save_CFLAGS
2259elif test $ac_cv_prog_cc_g = yes; then
2260 if test "$GCC" = yes; then
2261 CFLAGS="-g -O2"
2262 else
2263 CFLAGS="-g"
2264 fi
2265else
2266 if test "$GCC" = yes; then
2267 CFLAGS="-O2"
2268 else
2269 CFLAGS=
2270 fi
2271fi
2272echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2273echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2274if test "${ac_cv_prog_cc_stdc+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277 ac_cv_prog_cc_stdc=no
2278ac_save_CC=$CC
2279cat >conftest.$ac_ext <<_ACEOF
2280/* confdefs.h. */
2281_ACEOF
2282cat confdefs.h >>conftest.$ac_ext
2283cat >>conftest.$ac_ext <<_ACEOF
2284/* end confdefs.h. */
2285#include <stdarg.h>
2286#include <stdio.h>
2287#include <sys/types.h>
2288#include <sys/stat.h>
2289/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2290struct buf { int x; };
2291FILE * (*rcsopen) (struct buf *, struct stat *, int);
2292static char *e (p, i)
2293 char **p;
2294 int i;
2295{
2296 return p[i];
2297}
2298static char *f (char * (*g) (char **, int), char **p, ...)
2299{
2300 char *s;
2301 va_list v;
2302 va_start (v,p);
2303 s = g (p, va_arg (v,int));
2304 va_end (v);
2305 return s;
2306}
2307
2308/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2309 function prototypes and stuff, but not '\xHH' hex character constants.
2310 These don't provoke an error unfortunately, instead are silently treated
2311 as 'x'. The following induces an error, until -std1 is added to get
2312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2313 array size at least. It's necessary to write '\x00'==0 to get something
2314 that's true only with -std1. */
2315int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2316
2317int test (int i, double x);
2318struct s1 {int (*f) (int a);};
2319struct s2 {int (*f) (double a);};
2320int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2321int argc;
2322char **argv;
2323int
2324main ()
2325{
2326return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2327 ;
2328 return 0;
2329}
2330_ACEOF
2331# Don't try gcc -ansi; that turns off useful extensions and
2332# breaks some systems' header files.
2333# AIX -qlanglvl=ansi
2334# Ultrix and OSF/1 -std1
2335# HP-UX 10.20 and later -Ae
2336# HP-UX older versions -Aa -D_HPUX_SOURCE
2337# SVR4 -Xc -D__EXTENSIONS__
2338for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2339do
2340 CC="$ac_save_CC $ac_arg"
2341 rm -f conftest.$ac_objext
2342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2344 ac_status=$?
2345 grep -v '^ *+' conftest.er1 >conftest.err
2346 rm -f conftest.er1
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 ac_cv_prog_cc_stdc=$ac_arg
2364break
2365else
2366 echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369fi
2370rm -f conftest.err conftest.$ac_objext
2371done
2372rm -f conftest.$ac_ext conftest.$ac_objext
2373CC=$ac_save_CC
2374
2375fi
2376
2377case "x$ac_cv_prog_cc_stdc" in
2378 x|xno)
2379 echo "$as_me:$LINENO: result: none needed" >&5
2380echo "${ECHO_T}none needed" >&6 ;;
2381 *)
2382 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2383echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2384 CC="$CC $ac_cv_prog_cc_stdc" ;;
2385esac
2386
2387# Some people use a C++ compiler to compile C. Since we use `exit',
2388# in C++ we need to declare it. In case someone uses the same compiler
2389# for both compiling C and C++ we need to have the C++ compiler decide
2390# the declaration of exit, since it's the most demanding environment.
2391cat >conftest.$ac_ext <<_ACEOF
2392#ifndef __cplusplus
2393 choke me
2394#endif
2395_ACEOF
2396rm -f conftest.$ac_objext
2397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 for ac_declaration in \
2419 '' \
2420 'extern "C" void std::exit (int) throw (); using std::exit;' \
2421 'extern "C" void std::exit (int); using std::exit;' \
2422 'extern "C" void exit (int) throw ();' \
2423 'extern "C" void exit (int);' \
2424 'void exit (int);'
2425do
2426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h. */
2432$ac_declaration
2433#include <stdlib.h>
2434int
2435main ()
2436{
2437exit (42);
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 :
2465else
2466 echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469continue
2470fi
2471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2472 cat >conftest.$ac_ext <<_ACEOF
2473/* confdefs.h. */
2474_ACEOF
2475cat confdefs.h >>conftest.$ac_ext
2476cat >>conftest.$ac_ext <<_ACEOF
2477/* end confdefs.h. */
2478$ac_declaration
2479int
2480main ()
2481{
2482exit (42);
2483 ;
2484 return 0;
2485}
2486_ACEOF
2487rm -f conftest.$ac_objext
2488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_c_werror_flag"
2497 || test ! -s conftest.err'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 break
2510else
2511 echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
2513
2514fi
2515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516done
2517rm -f conftest*
2518if test -n "$ac_declaration"; then
2519 echo '#ifdef __cplusplus' >>confdefs.h
2520 echo $ac_declaration >>confdefs.h
2521 echo '#endif' >>confdefs.h
2522fi
2523
2524else
2525 echo "$as_me: failed program was:" >&5
2526sed 's/^/| /' conftest.$ac_ext >&5
2527
2528fi
2529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530ac_ext=c
2531ac_cpp='$CPP $CPPFLAGS'
2532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535
2536
2537echo "$as_me:$LINENO: checking for library containing strerror" >&5
2538echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2539if test "${ac_cv_search_strerror+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542 ac_func_search_save_LIBS=$LIBS
2543ac_cv_search_strerror=no
2544cat >conftest.$ac_ext <<_ACEOF
2545/* confdefs.h. */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h. */
2550
2551/* Override any gcc2 internal prototype to avoid an error. */
2552#ifdef __cplusplus
2553extern "C"
2554#endif
2555/* We use char because int might match the return type of a gcc2
2556 builtin and then its argument prototype would still apply. */
2557char strerror ();
2558int
2559main ()
2560{
2561strerror ();
2562 ;
2563 return 0;
2564}
2565_ACEOF
2566rm -f conftest.$ac_objext conftest$ac_exeext
2567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2568 (eval $ac_link) 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag"
2576 || test ! -s conftest.err'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest$ac_exeext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 ac_cv_search_strerror="none required"
2589else
2590 echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593fi
2594rm -f conftest.err conftest.$ac_objext \
2595 conftest$ac_exeext conftest.$ac_ext
2596if test "$ac_cv_search_strerror" = no; then
2597 for ac_lib in cposix; do
2598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2599 cat >conftest.$ac_ext <<_ACEOF
2600/* confdefs.h. */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h. */
2605
2606/* Override any gcc2 internal prototype to avoid an error. */
2607#ifdef __cplusplus
2608extern "C"
2609#endif
2610/* We use char because int might match the return type of a gcc2
2611 builtin and then its argument prototype would still apply. */
2612char strerror ();
2613int
2614main ()
2615{
2616strerror ();
2617 ;
2618 return 0;
2619}
2620_ACEOF
2621rm -f conftest.$ac_objext conftest$ac_exeext
2622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623 (eval $ac_link) 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest$ac_exeext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 ac_cv_search_strerror="-l$ac_lib"
2644break
2645else
2646 echo "$as_me: failed program was:" >&5
2647sed 's/^/| /' conftest.$ac_ext >&5
2648
2649fi
2650rm -f conftest.err conftest.$ac_objext \
2651 conftest$ac_exeext conftest.$ac_ext
2652 done
2653fi
2654LIBS=$ac_func_search_save_LIBS
2655fi
2656echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2657echo "${ECHO_T}$ac_cv_search_strerror" >&6
2658if test "$ac_cv_search_strerror" != no; then
2659 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2660
2661fi
2662
2663
2664BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2665am__api_version="1.9"
2666# Find a good install program. We prefer a C program (faster),
2667# so one script is as good as another. But avoid the broken or
2668# incompatible versions:
2669# SysV /etc/install, /usr/sbin/install
2670# SunOS /usr/etc/install
2671# IRIX /sbin/install
2672# AIX /bin/install
2673# AmigaOS /C/install, which installs bootblocks on floppy discs
2674# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2675# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2676# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2677# OS/2's system install, which has a completely different semantic
2678# ./install, which can be erroneously created by make from ./install.sh.
2679# Reject install programs that cannot install multiple files.
2680echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2681echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2682if test -z "$INSTALL"; then
2683if test "${ac_cv_path_install+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 # Account for people who put trailing slashes in PATH elements.
2692case $as_dir/ in
2693 ./ | .// | /cC/* | \
2694 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2695 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2696 /usr/ucb/* ) ;;
2697 *)
2698 # OSF1 and SCO ODT 3.0 have their own names for install.
2699 # Don't use installbsd from OSF since it installs stuff as root
2700 # by default.
2701 for ac_prog in ginstall scoinst install; do
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2704 if test $ac_prog = install &&
2705 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # AIX install. It has an incompatible calling convention.
2707 :
2708 elif test $ac_prog = install &&
2709 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # program-specific install script used by HP pwplus--don't use.
2711 :
2712 else
2713 rm -rf conftest.one conftest.two conftest.dir
2714 echo one > conftest.one
2715 echo two > conftest.two
2716 mkdir conftest.dir
2717 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2718 test -s conftest.one && test -s conftest.two &&
2719 test -s conftest.dir/conftest.one &&
2720 test -s conftest.dir/conftest.two
2721 then
2722 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2723 break 3
2724 fi
2725 fi
2726 fi
2727 done
2728 done
2729 ;;
2730esac
2731done
2732
2733rm -rf conftest.one conftest.two conftest.dir
2734
2735fi
2736 if test "${ac_cv_path_install+set}" = set; then
2737 INSTALL=$ac_cv_path_install
2738 else
2739 # As a last resort, use the slow shell script. Don't cache a
2740 # value for INSTALL within a source directory, because that will
2741 # break other packages using the cache if that directory is
2742 # removed, or if the value is a relative name.
2743 INSTALL=$ac_install_sh
2744 fi
2745fi
2746echo "$as_me:$LINENO: result: $INSTALL" >&5
2747echo "${ECHO_T}$INSTALL" >&6
2748
2749# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2750# It thinks the first close brace ends the variable substitution.
2751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2752
2753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2754
2755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2756
2757echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2758echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2759# Just in case
2760sleep 1
2761echo timestamp > conftest.file
2762# Do `set' in a subshell so we don't clobber the current shell's
2763# arguments. Must try -L first in case configure is actually a
2764# symlink; some systems play weird games with the mod time of symlinks
2765# (eg FreeBSD returns the mod time of the symlink's containing
2766# directory).
2767if (
2768 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2769 if test "$*" = "X"; then
2770 # -L didn't work.
2771 set X `ls -t $srcdir/configure conftest.file`
2772 fi
2773 rm -f conftest.file
2774 if test "$*" != "X $srcdir/configure conftest.file" \
2775 && test "$*" != "X conftest.file $srcdir/configure"; then
2776
2777 # If neither matched, then we have a broken ls. This can happen
2778 # if, for instance, CONFIG_SHELL is bash and it inherits a
2779 # broken ls alias from the environment. This has actually
2780 # happened. Such a system could not be considered "sane".
2781 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2782alias in your environment" >&5
2783echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2784alias in your environment" >&2;}
2785 { (exit 1); exit 1; }; }
2786 fi
2787
2788 test "$2" = conftest.file
2789 )
2790then
2791 # Ok.
2792 :
2793else
2794 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2795Check your system clock" >&5
2796echo "$as_me: error: newly created file is older than distributed files!
2797Check your system clock" >&2;}
2798 { (exit 1); exit 1; }; }
2799fi
2800echo "$as_me:$LINENO: result: yes" >&5
2801echo "${ECHO_T}yes" >&6
2802test "$program_prefix" != NONE &&
2803 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2804# Use a double $ so make ignores it.
2805test "$program_suffix" != NONE &&
2806 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2807# Double any \ or $. echo might interpret backslashes.
2808# By default was `s,x,x', remove it if useless.
2809cat <<\_ACEOF >conftest.sed
2810s/[\\$]/&&/g;s/;s,x,x,$//
2811_ACEOF
2812program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2813rm conftest.sed
2814
2815# expand $ac_aux_dir to an absolute path
2816am_aux_dir=`cd $ac_aux_dir && pwd`
2817
2818test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2819# Use eval to expand $SHELL
2820if eval "$MISSING --run true"; then
2821 am_missing_run="$MISSING --run "
2822else
2823 am_missing_run=
2824 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2825echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2826fi
2827
2828if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2829 # We used to keeping the `.' as first argument, in order to
2830 # allow $(mkdir_p) to be used without argument. As in
2831 # $(mkdir_p) $(somedir)
2832 # where $(somedir) is conditionally defined. However this is wrong
2833 # for two reasons:
2834 # 1. if the package is installed by a user who cannot write `.'
2835 # make install will fail,
2836 # 2. the above comment should most certainly read
2837 # $(mkdir_p) $(DESTDIR)$(somedir)
2838 # so it does not work when $(somedir) is undefined and
2839 # $(DESTDIR) is not.
2840 # To support the latter case, we have to write
2841 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2842 # so the `.' trick is pointless.
2843 mkdir_p='mkdir -p --'
2844else
2845 # On NextStep and OpenStep, the `mkdir' command does not
2846 # recognize any option. It will interpret all options as
2847 # directories to create, and then abort because `.' already
2848 # exists.
2849 for d in ./-p ./--version;
2850 do
2851 test -d $d && rmdir $d
2852 done
2853 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2854 if test -f "$ac_aux_dir/mkinstalldirs"; then
2855 mkdir_p='$(mkinstalldirs)'
2856 else
2857 mkdir_p='$(install_sh) -d'
2858 fi
2859fi
2860
2861for ac_prog in gawk mawk nawk awk
2862do
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864set dummy $ac_prog; ac_word=$2
2865echo "$as_me:$LINENO: checking for $ac_word" >&5
2866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867if test "${ac_cv_prog_AWK+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869else
2870 if test -n "$AWK"; then
2871 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_AWK="$ac_prog"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885done
2886
2887fi
2888fi
2889AWK=$ac_cv_prog_AWK
2890if test -n "$AWK"; then
2891 echo "$as_me:$LINENO: result: $AWK" >&5
2892echo "${ECHO_T}$AWK" >&6
2893else
2894 echo "$as_me:$LINENO: result: no" >&5
2895echo "${ECHO_T}no" >&6
2896fi
2897
2898 test -n "$AWK" && break
2899done
2900
2901echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2902echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2903set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2904if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906else
2907 cat >conftest.make <<\_ACEOF
2908all:
2909 @echo 'ac_maketemp="$(MAKE)"'
2910_ACEOF
2911# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2912eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2913if test -n "$ac_maketemp"; then
2914 eval ac_cv_prog_make_${ac_make}_set=yes
2915else
2916 eval ac_cv_prog_make_${ac_make}_set=no
2917fi
2918rm -f conftest.make
2919fi
2920if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2921 echo "$as_me:$LINENO: result: yes" >&5
2922echo "${ECHO_T}yes" >&6
2923 SET_MAKE=
2924else
2925 echo "$as_me:$LINENO: result: no" >&5
2926echo "${ECHO_T}no" >&6
2927 SET_MAKE="MAKE=${MAKE-make}"
2928fi
2929
2930rm -rf .tst 2>/dev/null
2931mkdir .tst 2>/dev/null
2932if test -d .tst; then
2933 am__leading_dot=.
2934else
2935 am__leading_dot=_
2936fi
2937rmdir .tst 2>/dev/null
2938
2939DEPDIR="${am__leading_dot}deps"
2940
2941 ac_config_commands="$ac_config_commands depfiles"
2942
2943
2944am_make=${MAKE-make}
2945cat > confinc << 'END'
2946am__doit:
2947 @echo done
2948.PHONY: am__doit
2949END
2950# If we don't find an include directive, just comment out the code.
2951echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2952echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2953am__include="#"
2954am__quote=
2955_am_result=none
2956# First try GNU make style include.
2957echo "include confinc" > confmf
2958# We grep out `Entering directory' and `Leaving directory'
2959# messages which can occur if `w' ends up in MAKEFLAGS.
2960# In particular we don't look at `^make:' because GNU make might
2961# be invoked under some other name (usually "gmake"), in which
2962# case it prints its new name instead of `make'.
2963if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2964 am__include=include
2965 am__quote=
2966 _am_result=GNU
2967fi
2968# Now try BSD make style include.
2969if test "$am__include" = "#"; then
2970 echo '.include "confinc"' > confmf
2971 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2972 am__include=.include
2973 am__quote="\""
2974 _am_result=BSD
2975 fi
2976fi
2977
2978
2979echo "$as_me:$LINENO: result: $_am_result" >&5
2980echo "${ECHO_T}$_am_result" >&6
2981rm -f confinc confmf
2982
2983# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2984if test "${enable_dependency_tracking+set}" = set; then
2985 enableval="$enable_dependency_tracking"
2986
2987fi;
2988if test "x$enable_dependency_tracking" != xno; then
2989 am_depcomp="$ac_aux_dir/depcomp"
2990 AMDEPBACKSLASH='\'
2991fi
2992
2993
2994if test "x$enable_dependency_tracking" != xno; then
2995 AMDEP_TRUE=
2996 AMDEP_FALSE='#'
2997else
2998 AMDEP_TRUE='#'
2999 AMDEP_FALSE=
3000fi
3001
3002
3003
3004# test to see if srcdir already configured
3005if test "`cd $srcdir && pwd`" != "`pwd`" &&
3006 test -f $srcdir/config.status; then
3007 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3008echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3009 { (exit 1); exit 1; }; }
3010fi
3011
3012# test whether we have cygpath
3013if test -z "$CYGPATH_W"; then
3014 if (cygpath --version) >/dev/null 2>/dev/null; then
3015 CYGPATH_W='cygpath -w'
3016 else
3017 CYGPATH_W=echo
3018 fi
3019fi
3020
3021
3022# Define the identity of the package.
3023 PACKAGE=gprof
3024 VERSION=${BFD_VERSION}
3025
3026
3027cat >>confdefs.h <<_ACEOF
3028#define PACKAGE "$PACKAGE"
3029_ACEOF
3030
3031
3032cat >>confdefs.h <<_ACEOF
3033#define VERSION "$VERSION"
3034_ACEOF
3035
3036# Some tools Automake needs.
3037
3038ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3039
3040
3041AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3042
3043
3044AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3045
3046
3047AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3048
3049
3050MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3051
3052install_sh=${install_sh-"$am_aux_dir/install-sh"}
3053
3054# Installed binaries are usually stripped using `strip' when the user
3055# run `make install-strip'. However `strip' might not be the right
3056# tool to use in cross-compilation environments, therefore Automake
3057# will honor the `STRIP' environment variable to overrule this program.
3058if test "$cross_compiling" != no; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3061set dummy ${ac_tool_prefix}strip; ac_word=$2
3062echo "$as_me:$LINENO: checking for $ac_word" >&5
3063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064if test "${ac_cv_prog_STRIP+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
3067 if test -n "$STRIP"; then
3068 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081done
3082done
3083
3084fi
3085fi
3086STRIP=$ac_cv_prog_STRIP
3087if test -n "$STRIP"; then
3088 echo "$as_me:$LINENO: result: $STRIP" >&5
3089echo "${ECHO_T}$STRIP" >&6
3090else
3091 echo "$as_me:$LINENO: result: no" >&5
3092echo "${ECHO_T}no" >&6
3093fi
3094
3095fi
3096if test -z "$ac_cv_prog_STRIP"; then
3097 ac_ct_STRIP=$STRIP
3098 # Extract the first word of "strip", so it can be a program name with args.
3099set dummy strip; ac_word=$2
3100echo "$as_me:$LINENO: checking for $ac_word" >&5
3101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3102if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104else
3105 if test -n "$ac_ct_STRIP"; then
3106 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3107else
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_ac_ct_STRIP="strip"
3116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119done
3120done
3121
3122 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3123fi
3124fi
3125ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3126if test -n "$ac_ct_STRIP"; then
3127 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3128echo "${ECHO_T}$ac_ct_STRIP" >&6
3129else
3130 echo "$as_me:$LINENO: result: no" >&5
3131echo "${ECHO_T}no" >&6
3132fi
3133
3134 STRIP=$ac_ct_STRIP
3135else
3136 STRIP="$ac_cv_prog_STRIP"
3137fi
3138
3139fi
3140INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3141
3142# We need awk for the "check" target. The system "awk" is bad on
3143# some platforms.
3144# Always define AMTAR for backward compatibility.
3145
3146AMTAR=${AMTAR-"${am_missing_run}tar"}
3147
3148am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3149
3150
3151
3152
3153depcc="$CC" am_compiler_list=
3154
3155echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3156echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3157if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
3160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3161 # We make a subdir and do the tests there. Otherwise we can end up
3162 # making bogus files that we don't know about and never remove. For
3163 # instance it was reported that on HP-UX the gcc test will end up
3164 # making a dummy file named `D' -- because `-MD' means `put the output
3165 # in D'.
3166 mkdir conftest.dir
3167 # Copy depcomp to subdir because otherwise we won't find it if we're
3168 # using a relative directory.
3169 cp "$am_depcomp" conftest.dir
3170 cd conftest.dir
3171 # We will build objects and dependencies in a subdirectory because
3172 # it helps to detect inapplicable dependency modes. For instance
3173 # both Tru64's cc and ICC support -MD to output dependencies as a
3174 # side effect of compilation, but ICC will put the dependencies in
3175 # the current directory while Tru64 will put them in the object
3176 # directory.
3177 mkdir sub
3178
3179 am_cv_CC_dependencies_compiler_type=none
3180 if test "$am_compiler_list" = ""; then
3181 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3182 fi
3183 for depmode in $am_compiler_list; do
3184 # Setup a source with many dependencies, because some compilers
3185 # like to wrap large dependency lists on column 80 (with \), and
3186 # we should not choose a depcomp mode which is confused by this.
3187 #
3188 # We need to recreate these files for each test, as the compiler may
3189 # overwrite some of them when testing with obscure command lines.
3190 # This happens at least with the AIX C compiler.
3191 : > sub/conftest.c
3192 for i in 1 2 3 4 5 6; do
3193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3195 # Solaris 8's {/usr,}/bin/sh.
3196 touch sub/conftst$i.h
3197 done
3198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3199
3200 case $depmode in
3201 nosideeffect)
3202 # after this tag, mechanisms are not by side-effect, so they'll
3203 # only be used when explicitly requested
3204 if test "x$enable_dependency_tracking" = xyes; then
3205 continue
3206 else
3207 break
3208 fi
3209 ;;
3210 none) break ;;
3211 esac
3212 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3213 # mode. It turns out that the SunPro C++ compiler does not properly
3214 # handle `-M -o', and we need to detect this.
3215 if depmode=$depmode \
3216 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3218 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3219 >/dev/null 2>conftest.err &&
3220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3221 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3223 # icc doesn't choke on unknown options, it will just issue warnings
3224 # or remarks (even with -Werror). So we grep stderr for any message
3225 # that says an option was ignored or not supported.
3226 # When given -MP, icc 7.0 and 7.1 complain thusly:
3227 # icc: Command line warning: ignoring option '-M'; no argument required
3228 # The diagnosis changed in icc 8.0:
3229 # icc: Command line remark: option '-MP' not supported
3230 if (grep 'ignoring option' conftest.err ||
3231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3232 am_cv_CC_dependencies_compiler_type=$depmode
3233 break
3234 fi
3235 fi
3236 done
3237
3238 cd ..
3239 rm -rf conftest.dir
3240else
3241 am_cv_CC_dependencies_compiler_type=none
3242fi
3243
3244fi
3245echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3246echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3247CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3248
3249
3250
3251if
3252 test "x$enable_dependency_tracking" != xno \
3253 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3254 am__fastdepCC_TRUE=
3255 am__fastdepCC_FALSE='#'
3256else
3257 am__fastdepCC_TRUE='#'
3258 am__fastdepCC_FALSE=
3259fi
3260
3261
3262
3263
3264 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
3265
3266
3267ac_ext=c
3268ac_cpp='$CPP $CPPFLAGS'
3269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274set dummy ${ac_tool_prefix}gcc; ac_word=$2
3275echo "$as_me:$LINENO: checking for $ac_word" >&5
3276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277if test "${ac_cv_prog_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294done
3295done
3296
3297fi
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
3301 echo "$as_me:$LINENO: result: $CC" >&5
3302echo "${ECHO_T}$CC" >&6
3303else
3304 echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306fi
3307
3308fi
3309if test -z "$ac_cv_prog_CC"; then
3310 ac_ct_CC=$CC
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312set dummy gcc; ac_word=$2
3313echo "$as_me:$LINENO: checking for $ac_word" >&5
3314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317else
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_ac_ct_CC="gcc"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332done
3333done
3334
3335fi
3336fi
3337ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338if test -n "$ac_ct_CC"; then
3339 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3340echo "${ECHO_T}$ac_ct_CC" >&6
3341else
3342 echo "$as_me:$LINENO: result: no" >&5
3343echo "${ECHO_T}no" >&6
3344fi
3345
3346 CC=$ac_ct_CC
3347else
3348 CC="$ac_cv_prog_CC"
3349fi
3350
3351if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3354set dummy ${ac_tool_prefix}cc; ac_word=$2
3355echo "$as_me:$LINENO: checking for $ac_word" >&5
3356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3357if test "${ac_cv_prog_CC+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3362else
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_CC="${ac_tool_prefix}cc"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374done
3375done
3376
3377fi
3378fi
3379CC=$ac_cv_prog_CC
3380if test -n "$CC"; then
3381 echo "$as_me:$LINENO: result: $CC" >&5
3382echo "${ECHO_T}$CC" >&6
3383else
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
3386fi
3387
3388fi
3389if test -z "$ac_cv_prog_CC"; then
3390 ac_ct_CC=$CC
3391 # Extract the first word of "cc", so it can be a program name with args.
3392set dummy cc; ac_word=$2
3393echo "$as_me:$LINENO: checking for $ac_word" >&5
3394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397else
3398 if test -n "$ac_ct_CC"; then
3399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3400else
3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402for as_dir in $PATH
3403do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_ac_ct_CC="cc"
3409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412done
3413done
3414
3415fi
3416fi
3417ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418if test -n "$ac_ct_CC"; then
3419 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3420echo "${ECHO_T}$ac_ct_CC" >&6
3421else
3422 echo "$as_me:$LINENO: result: no" >&5
3423echo "${ECHO_T}no" >&6
3424fi
3425
3426 CC=$ac_ct_CC
3427else
3428 CC="$ac_cv_prog_CC"
3429fi
3430
3431fi
3432if test -z "$CC"; then
3433 # Extract the first word of "cc", so it can be a program name with args.
3434set dummy cc; ac_word=$2
3435echo "$as_me:$LINENO: checking for $ac_word" >&5
3436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437if test "${ac_cv_prog_CC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442else
3443 ac_prog_rejected=no
3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH
3446do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3452 ac_prog_rejected=yes
3453 continue
3454 fi
3455 ac_cv_prog_CC="cc"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459done
3460done
3461
3462if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy $ac_cv_prog_CC
3465 shift
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3470 shift
3471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3472 fi
3473fi
3474fi
3475fi
3476CC=$ac_cv_prog_CC
3477if test -n "$CC"; then
3478 echo "$as_me:$LINENO: result: $CC" >&5
3479echo "${ECHO_T}$CC" >&6
3480else
3481 echo "$as_me:$LINENO: result: no" >&5
3482echo "${ECHO_T}no" >&6
3483fi
3484
3485fi
3486if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in cl
3489 do
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492echo "$as_me:$LINENO: checking for $ac_word" >&5
3493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494if test "${ac_cv_prog_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511done
3512done
3513
3514fi
3515fi
3516CC=$ac_cv_prog_CC
3517if test -n "$CC"; then
3518 echo "$as_me:$LINENO: result: $CC" >&5
3519echo "${ECHO_T}$CC" >&6
3520else
3521 echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523fi
3524
3525 test -n "$CC" && break
3526 done
3527fi
3528if test -z "$CC"; then
3529 ac_ct_CC=$CC
3530 for ac_prog in cl
3531do
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533set dummy $ac_prog; ac_word=$2
3534echo "$as_me:$LINENO: checking for $ac_word" >&5
3535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3536if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541else
3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543for as_dir in $PATH
3544do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_ac_ct_CC="$ac_prog"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553done
3554done
3555
3556fi
3557fi
3558ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559if test -n "$ac_ct_CC"; then
3560 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3561echo "${ECHO_T}$ac_ct_CC" >&6
3562else
3563 echo "$as_me:$LINENO: result: no" >&5
3564echo "${ECHO_T}no" >&6
3565fi
3566
3567 test -n "$ac_ct_CC" && break
3568done
3569
3570 CC=$ac_ct_CC
3571fi
3572
3573fi
3574
3575
3576test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3579See \`config.log' for more details." >&5
3580echo "$as_me: error: no acceptable C compiler found in \$PATH
3581See \`config.log' for more details." >&2;}
3582 { (exit 1); exit 1; }; }; }
3583
3584# Provide some information about the compiler.
3585echo "$as_me:$LINENO:" \
3586 "checking for C compiler version" >&5
3587ac_compiler=`set X $ac_compile; echo $2`
3588{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3589 (eval $ac_compiler --version </dev/null >&5) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }
3593{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3594 (eval $ac_compiler -v </dev/null >&5) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }
3598{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3599 (eval $ac_compiler -V </dev/null >&5) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }
3603
3604echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3605echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3606if test "${ac_cv_c_compiler_gnu+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 cat >conftest.$ac_ext <<_ACEOF
3610/* confdefs.h. */
3611_ACEOF
3612cat confdefs.h >>conftest.$ac_ext
3613cat >>conftest.$ac_ext <<_ACEOF
3614/* end confdefs.h. */
3615
3616int
3617main ()
3618{
3619#ifndef __GNUC__
3620 choke me
3621#endif
3622
3623 ;
3624 return 0;
3625}
3626_ACEOF
3627rm -f conftest.$ac_objext
3628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629 (eval $ac_compile) 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_c_werror_flag"
3637 || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_compiler_gnu=yes
3650else
3651 echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654ac_compiler_gnu=no
3655fi
3656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3657ac_cv_c_compiler_gnu=$ac_compiler_gnu
3658
3659fi
3660echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3661echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3662GCC=`test $ac_compiler_gnu = yes && echo yes`
3663ac_test_CFLAGS=${CFLAGS+set}
3664ac_save_CFLAGS=$CFLAGS
3665CFLAGS="-g"
3666echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3667echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3668if test "${ac_cv_prog_cc_g+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671 cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h. */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h. */
3677
3678int
3679main ()
3680{
3681
3682 ;
3683 return 0;
3684}
3685_ACEOF
3686rm -f conftest.$ac_objext
3687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688 (eval $ac_compile) 2>conftest.er1
3689 ac_status=$?
3690 grep -v '^ *+' conftest.er1 >conftest.err
3691 rm -f conftest.er1
3692 cat conftest.err >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } &&
3695 { ac_try='test -z "$ac_c_werror_flag"
3696 || test ! -s conftest.err'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 (eval $ac_try) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try='test -s conftest.$ac_objext'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_cv_prog_cc_g=yes
3709else
3710 echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713ac_cv_prog_cc_g=no
3714fi
3715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716fi
3717echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3718echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3719if test "$ac_test_CFLAGS" = set; then
3720 CFLAGS=$ac_save_CFLAGS
3721elif test $ac_cv_prog_cc_g = yes; then
3722 if test "$GCC" = yes; then
3723 CFLAGS="-g -O2"
3724 else
3725 CFLAGS="-g"
3726 fi
3727else
3728 if test "$GCC" = yes; then
3729 CFLAGS="-O2"
3730 else
3731 CFLAGS=
3732 fi
3733fi
3734echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3735echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3736if test "${ac_cv_prog_cc_stdc+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 ac_cv_prog_cc_stdc=no
3740ac_save_CC=$CC
3741cat >conftest.$ac_ext <<_ACEOF
3742/* confdefs.h. */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h. */
3747#include <stdarg.h>
3748#include <stdio.h>
3749#include <sys/types.h>
3750#include <sys/stat.h>
3751/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3752struct buf { int x; };
3753FILE * (*rcsopen) (struct buf *, struct stat *, int);
3754static char *e (p, i)
3755 char **p;
3756 int i;
3757{
3758 return p[i];
3759}
3760static char *f (char * (*g) (char **, int), char **p, ...)
3761{
3762 char *s;
3763 va_list v;
3764 va_start (v,p);
3765 s = g (p, va_arg (v,int));
3766 va_end (v);
3767 return s;
3768}
3769
3770/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3771 function prototypes and stuff, but not '\xHH' hex character constants.
3772 These don't provoke an error unfortunately, instead are silently treated
3773 as 'x'. The following induces an error, until -std1 is added to get
3774 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3775 array size at least. It's necessary to write '\x00'==0 to get something
3776 that's true only with -std1. */
3777int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778
3779int test (int i, double x);
3780struct s1 {int (*f) (int a);};
3781struct s2 {int (*f) (double a);};
3782int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783int argc;
3784char **argv;
3785int
3786main ()
3787{
3788return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 ;
3790 return 0;
3791}
3792_ACEOF
3793# Don't try gcc -ansi; that turns off useful extensions and
3794# breaks some systems' header files.
3795# AIX -qlanglvl=ansi
3796# Ultrix and OSF/1 -std1
3797# HP-UX 10.20 and later -Ae
3798# HP-UX older versions -Aa -D_HPUX_SOURCE
3799# SVR4 -Xc -D__EXTENSIONS__
3800for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3801do
3802 CC="$ac_save_CC $ac_arg"
3803 rm -f conftest.$ac_objext
3804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>conftest.er1
3806 ac_status=$?
3807 grep -v '^ *+' conftest.er1 >conftest.err
3808 rm -f conftest.er1
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } &&
3812 { ac_try='test -z "$ac_c_werror_flag"
3813 || test ! -s conftest.err'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; } &&
3819 { ac_try='test -s conftest.$ac_objext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 (eval $ac_try) 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 ac_cv_prog_cc_stdc=$ac_arg
3826break
3827else
3828 echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831fi
3832rm -f conftest.err conftest.$ac_objext
3833done
3834rm -f conftest.$ac_ext conftest.$ac_objext
3835CC=$ac_save_CC
3836
3837fi
3838
3839case "x$ac_cv_prog_cc_stdc" in
3840 x|xno)
3841 echo "$as_me:$LINENO: result: none needed" >&5
3842echo "${ECHO_T}none needed" >&6 ;;
3843 *)
3844 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3845echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3846 CC="$CC $ac_cv_prog_cc_stdc" ;;
3847esac
3848
3849# Some people use a C++ compiler to compile C. Since we use `exit',
3850# in C++ we need to declare it. In case someone uses the same compiler
3851# for both compiling C and C++ we need to have the C++ compiler decide
3852# the declaration of exit, since it's the most demanding environment.
3853cat >conftest.$ac_ext <<_ACEOF
3854#ifndef __cplusplus
3855 choke me
3856#endif
3857_ACEOF
3858rm -f conftest.$ac_objext
3859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 for ac_declaration in \
3881 '' \
3882 'extern "C" void std::exit (int) throw (); using std::exit;' \
3883 'extern "C" void std::exit (int); using std::exit;' \
3884 'extern "C" void exit (int) throw ();' \
3885 'extern "C" void exit (int);' \
3886 'void exit (int);'
3887do
3888 cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h. */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h. */
3894$ac_declaration
3895#include <stdlib.h>
3896int
3897main ()
3898{
3899exit (42);
3900 ;
3901 return 0;
3902}
3903_ACEOF
3904rm -f conftest.$ac_objext
3905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -z "$ac_c_werror_flag"
3914 || test ! -s conftest.err'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 :
3927else
3928 echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931continue
3932fi
3933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3934 cat >conftest.$ac_ext <<_ACEOF
3935/* confdefs.h. */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h. */
3940$ac_declaration
3941int
3942main ()
3943{
3944exit (42);
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext
3950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_c_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest.$ac_objext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 break
3972else
3973 echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976fi
3977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978done
3979rm -f conftest*
3980if test -n "$ac_declaration"; then
3981 echo '#ifdef __cplusplus' >>confdefs.h
3982 echo $ac_declaration >>confdefs.h
3983 echo '#endif' >>confdefs.h
3984fi
3985
3986else
3987 echo "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
3990fi
3991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3992ac_ext=c
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998
3999cat >>confdefs.h <<\_ACEOF
4000#define _GNU_SOURCE 1
4001_ACEOF
4002
4003
4004ac_ext=c
4005ac_cpp='$CPP $CPPFLAGS'
4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4010echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4011# On Suns, sometimes $CPP names a directory.
4012if test -n "$CPP" && test -d "$CPP"; then
4013 CPP=
4014fi
4015if test -z "$CPP"; then
4016 if test "${ac_cv_prog_CPP+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 # Double quotes because CPP needs to be expanded
4020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4021 do
4022 ac_preproc_ok=false
4023for ac_c_preproc_warn_flag in '' yes
4024do
4025 # Use a header file that comes with gcc, so configuring glibc
4026 # with a fresh cross-compiler works.
4027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028 # <limits.h> exists even on freestanding compilers.
4029 # On the NeXT, cc -E runs the code through the compiler's parser,
4030 # not just through cpp. "Syntax error" is here to catch this case.
4031 cat >conftest.$ac_ext <<_ACEOF
4032/* confdefs.h. */
4033_ACEOF
4034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h. */
4037#ifdef __STDC__
4038# include <limits.h>
4039#else
4040# include <assert.h>
4041#endif
4042 Syntax error
4043_ACEOF
4044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } >/dev/null; then
4052 if test -s conftest.err; then
4053 ac_cpp_err=$ac_c_preproc_warn_flag
4054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4055 else
4056 ac_cpp_err=
4057 fi
4058else
4059 ac_cpp_err=yes
4060fi
4061if test -z "$ac_cpp_err"; then
4062 :
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 # Broken: fails on valid input.
4068continue
4069fi
4070rm -f conftest.err conftest.$ac_ext
4071
4072 # OK, works on sane cases. Now check whether non-existent headers
4073 # can be detected and how.
4074 cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h. */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h. */
4080#include <ac_nonexistent.h>
4081_ACEOF
4082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } >/dev/null; then
4090 if test -s conftest.err; then
4091 ac_cpp_err=$ac_c_preproc_warn_flag
4092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4093 else
4094 ac_cpp_err=
4095 fi
4096else
4097 ac_cpp_err=yes
4098fi
4099if test -z "$ac_cpp_err"; then
4100 # Broken: success on invalid input.
4101continue
4102else
4103 echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 # Passes both tests.
4107ac_preproc_ok=:
4108break
4109fi
4110rm -f conftest.err conftest.$ac_ext
4111
4112done
4113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4114rm -f conftest.err conftest.$ac_ext
4115if $ac_preproc_ok; then
4116 break
4117fi
4118
4119 done
4120 ac_cv_prog_CPP=$CPP
4121
4122fi
4123 CPP=$ac_cv_prog_CPP
4124else
4125 ac_cv_prog_CPP=$CPP
4126fi
4127echo "$as_me:$LINENO: result: $CPP" >&5
4128echo "${ECHO_T}$CPP" >&6
4129ac_preproc_ok=false
4130for ac_c_preproc_warn_flag in '' yes
4131do
4132 # Use a header file that comes with gcc, so configuring glibc
4133 # with a fresh cross-compiler works.
4134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4135 # <limits.h> exists even on freestanding compilers.
4136 # On the NeXT, cc -E runs the code through the compiler's parser,
4137 # not just through cpp. "Syntax error" is here to catch this case.
4138 cat >conftest.$ac_ext <<_ACEOF
4139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4143/* end confdefs.h. */
4144#ifdef __STDC__
4145# include <limits.h>
4146#else
4147# include <assert.h>
4148#endif
4149 Syntax error
4150_ACEOF
4151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } >/dev/null; then
4159 if test -s conftest.err; then
4160 ac_cpp_err=$ac_c_preproc_warn_flag
4161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4162 else
4163 ac_cpp_err=
4164 fi
4165else
4166 ac_cpp_err=yes
4167fi
4168if test -z "$ac_cpp_err"; then
4169 :
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 # Broken: fails on valid input.
4175continue
4176fi
4177rm -f conftest.err conftest.$ac_ext
4178
4179 # OK, works on sane cases. Now check whether non-existent headers
4180 # can be detected and how.
4181 cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h. */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h. */
4187#include <ac_nonexistent.h>
4188_ACEOF
4189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } >/dev/null; then
4197 if test -s conftest.err; then
4198 ac_cpp_err=$ac_c_preproc_warn_flag
4199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4200 else
4201 ac_cpp_err=
4202 fi
4203else
4204 ac_cpp_err=yes
4205fi
4206if test -z "$ac_cpp_err"; then
4207 # Broken: success on invalid input.
4208continue
4209else
4210 echo "$as_me: failed program was:" >&5
4211sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 # Passes both tests.
4214ac_preproc_ok=:
4215break
4216fi
4217rm -f conftest.err conftest.$ac_ext
4218
4219done
4220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4221rm -f conftest.err conftest.$ac_ext
4222if $ac_preproc_ok; then
4223 :
4224else
4225 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4226echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4228See \`config.log' for more details." >&5
4229echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4230See \`config.log' for more details." >&2;}
4231 { (exit 1); exit 1; }; }; }
4232fi
4233
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241echo "$as_me:$LINENO: checking for egrep" >&5
4242echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4243if test "${ac_cv_prog_egrep+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4247 then ac_cv_prog_egrep='grep -E'
4248 else ac_cv_prog_egrep='egrep'
4249 fi
4250fi
4251echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4252echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4253 EGREP=$ac_cv_prog_egrep
4254
4255
4256echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4257echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4258if test "${ac_cv_header_stdc+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260else
4261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267#include <stdlib.h>
4268#include <stdarg.h>
4269#include <string.h>
4270#include <float.h>
4271
4272int
4273main ()
4274{
4275
4276 ;
4277 return 0;
4278}
4279_ACEOF
4280rm -f conftest.$ac_objext
4281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>conftest.er1
4283 ac_status=$?
4284 grep -v '^ *+' conftest.er1 >conftest.err
4285 rm -f conftest.er1
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -z "$ac_c_werror_flag"
4290 || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 (eval $ac_try) 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 ac_cv_header_stdc=yes
4303else
4304 echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307ac_cv_header_stdc=no
4308fi
4309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4310
4311if test $ac_cv_header_stdc = yes; then
4312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4313 cat >conftest.$ac_ext <<_ACEOF
4314/* confdefs.h. */
4315_ACEOF
4316cat confdefs.h >>conftest.$ac_ext
4317cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h. */
4319#include <string.h>
4320
4321_ACEOF
4322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323 $EGREP "memchr" >/dev/null 2>&1; then
4324 :
4325else
4326 ac_cv_header_stdc=no
4327fi
4328rm -f conftest*
4329
4330fi
4331
4332if test $ac_cv_header_stdc = yes; then
4333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340#include <stdlib.h>
4341
4342_ACEOF
4343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4344 $EGREP "free" >/dev/null 2>&1; then
4345 :
4346else
4347 ac_cv_header_stdc=no
4348fi
4349rm -f conftest*
4350
4351fi
4352
4353if test $ac_cv_header_stdc = yes; then
4354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4355 if test "$cross_compiling" = yes; then
4356 :
4357else
4358 cat >conftest.$ac_ext <<_ACEOF
4359/* confdefs.h. */
4360_ACEOF
4361cat confdefs.h >>conftest.$ac_ext
4362cat >>conftest.$ac_ext <<_ACEOF
4363/* end confdefs.h. */
4364#include <ctype.h>
4365#if ((' ' & 0x0FF) == 0x020)
4366# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4367# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4368#else
4369# define ISLOWER(c) \
4370 (('a' <= (c) && (c) <= 'i') \
4371 || ('j' <= (c) && (c) <= 'r') \
4372 || ('s' <= (c) && (c) <= 'z'))
4373# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4374#endif
4375
4376#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4377int
4378main ()
4379{
4380 int i;
4381 for (i = 0; i < 256; i++)
4382 if (XOR (islower (i), ISLOWER (i))
4383 || toupper (i) != TOUPPER (i))
4384 exit(2);
4385 exit (0);
4386}
4387_ACEOF
4388rm -f conftest$ac_exeext
4389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4390 (eval $ac_link) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 :
4400else
4401 echo "$as_me: program exited with status $ac_status" >&5
4402echo "$as_me: failed program was:" >&5
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
4405( exit $ac_status )
4406ac_cv_header_stdc=no
4407fi
4408rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4409fi
4410fi
4411fi
4412echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4413echo "${ECHO_T}$ac_cv_header_stdc" >&6
4414if test $ac_cv_header_stdc = yes; then
4415
4416cat >>confdefs.h <<\_ACEOF
4417#define STDC_HEADERS 1
4418_ACEOF
4419
4420fi
4421
4422# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4433 inttypes.h stdint.h unistd.h
4434do
4435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436echo "$as_me:$LINENO: checking for $ac_header" >&5
4437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4438if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 cat >conftest.$ac_ext <<_ACEOF
4442/* confdefs.h. */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h. */
4447$ac_includes_default
4448
4449#include <$ac_header>
4450_ACEOF
4451rm -f conftest.$ac_objext
4452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag"
4461 || test ! -s conftest.err'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 eval "$as_ac_Header=yes"
4474else
4475 echo "$as_me: failed program was:" >&5
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
4478eval "$as_ac_Header=no"
4479fi
4480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481fi
4482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484if test `eval echo '${'$as_ac_Header'}'` = yes; then
4485 cat >>confdefs.h <<_ACEOF
4486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487_ACEOF
4488
4489fi
4490
4491done
4492
4493
4494
4495 if test "${ac_cv_header_minix_config_h+set}" = set; then
4496 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4497echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4498if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500fi
4501echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4502echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4503else
4504 # Is the header compilable?
4505echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4506echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4507cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h. */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h. */
4513$ac_includes_default
4514#include <minix/config.h>
4515_ACEOF
4516rm -f conftest.$ac_objext
4517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_header_compiler=yes
4539else
4540 echo "$as_me: failed program was:" >&5
4541sed 's/^/| /' conftest.$ac_ext >&5
4542
4543ac_header_compiler=no
4544fi
4545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4547echo "${ECHO_T}$ac_header_compiler" >&6
4548
4549# Is the header present?
4550echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4551echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4552cat >conftest.$ac_ext <<_ACEOF
4553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
4558#include <minix/config.h>
4559_ACEOF
4560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } >/dev/null; then
4568 if test -s conftest.err; then
4569 ac_cpp_err=$ac_c_preproc_warn_flag
4570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4571 else
4572 ac_cpp_err=
4573 fi
4574else
4575 ac_cpp_err=yes
4576fi
4577if test -z "$ac_cpp_err"; then
4578 ac_header_preproc=yes
4579else
4580 echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 ac_header_preproc=no
4584fi
4585rm -f conftest.err conftest.$ac_ext
4586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4587echo "${ECHO_T}$ac_header_preproc" >&6
4588
4589# So? What about this header?
4590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4591 yes:no: )
4592 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4593echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4595echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4596 ac_header_preproc=yes
4597 ;;
4598 no:yes:* )
4599 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4600echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4602echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4604echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4606echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4608echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4609 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4610echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4611 (
4612 cat <<\_ASBOX
4613## ------------------------------------------ ##
4614## Report this to the AC_PACKAGE_NAME lists. ##
4615## ------------------------------------------ ##
4616_ASBOX
4617 ) |
4618 sed "s/^/$as_me: WARNING: /" >&2
4619 ;;
4620esac
4621echo "$as_me:$LINENO: checking for minix/config.h" >&5
4622echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4623if test "${ac_cv_header_minix_config_h+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626 ac_cv_header_minix_config_h=$ac_header_preproc
4627fi
4628echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4629echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4630
4631fi
4632if test $ac_cv_header_minix_config_h = yes; then
4633 MINIX=yes
4634else
4635 MINIX=
4636fi
4637
4638
4639 if test "$MINIX" = yes; then
4640
4641cat >>confdefs.h <<\_ACEOF
4642#define _POSIX_SOURCE 1
4643_ACEOF
4644
4645
4646cat >>confdefs.h <<\_ACEOF
4647#define _POSIX_1_SOURCE 2
4648_ACEOF
4649
4650
4651cat >>confdefs.h <<\_ACEOF
4652#define _MINIX 1
4653_ACEOF
4654
4655 fi
4656
4657
4658
4659 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4660echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4661if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664 cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h. */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h. */
4670
4671# define __EXTENSIONS__ 1
4672 $ac_includes_default
4673int
4674main ()
4675{
4676
4677 ;
4678 return 0;
4679}
4680_ACEOF
4681rm -f conftest.$ac_objext
4682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4683 (eval $ac_compile) 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -z "$ac_c_werror_flag"
4691 || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest.$ac_objext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_safe_to_define___extensions__=yes
4704else
4705 echo "$as_me: failed program was:" >&5
4706sed 's/^/| /' conftest.$ac_ext >&5
4707
4708ac_cv_safe_to_define___extensions__=no
4709fi
4710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4711fi
4712echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4713echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4714 test $ac_cv_safe_to_define___extensions__ = yes &&
4715 cat >>confdefs.h <<\_ACEOF
4716#define __EXTENSIONS__ 1
4717_ACEOF
4718
4719 cat >>confdefs.h <<\_ACEOF
4720#define _ALL_SOURCE 1
4721_ACEOF
4722
4723 cat >>confdefs.h <<\_ACEOF
4724#define _GNU_SOURCE 1
4725_ACEOF
4726
4727 cat >>confdefs.h <<\_ACEOF
4728#define _POSIX_PTHREAD_SEMANTICS 1
4729_ACEOF
4730
4731 cat >>confdefs.h <<\_ACEOF
4732#define _TANDEM_SOURCE 1
4733_ACEOF
4734
4735
4736# Check whether --enable-largefile or --disable-largefile was given.
4737if test "${enable_largefile+set}" = set; then
4738 enableval="$enable_largefile"
4739
4740fi;
4741if test "$enable_largefile" != no; then
4742
4743 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4744echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4745if test "${ac_cv_sys_largefile_CC+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748 ac_cv_sys_largefile_CC=no
4749 if test "$GCC" != yes; then
4750 ac_save_CC=$CC
4751 while :; do
4752 # IRIX 6.2 and later do not support large files by default,
4753 # so use the C compiler's -n32 option if that helps.
4754 cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h. */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h. */
4760#include <sys/types.h>
4761 /* Check that off_t can represent 2**63 - 1 correctly.
4762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4763 since some C++ compilers masquerading as C compilers
4764 incorrectly reject 9223372036854775807. */
4765#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4767 && LARGE_OFF_T % 2147483647 == 1)
4768 ? 1 : -1];
4769int
4770main ()
4771{
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777 rm -f conftest.$ac_objext
4778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>conftest.er1
4780 ac_status=$?
4781 grep -v '^ *+' conftest.er1 >conftest.err
4782 rm -f conftest.er1
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -z "$ac_c_werror_flag"
4787 || test ! -s conftest.err'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; } &&
4793 { ac_try='test -s conftest.$ac_objext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4799 break
4800else
4801 echo "$as_me: failed program was:" >&5
4802sed 's/^/| /' conftest.$ac_ext >&5
4803
4804fi
4805rm -f conftest.err conftest.$ac_objext
4806 CC="$CC -n32"
4807 rm -f conftest.$ac_objext
4808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_sys_largefile_CC=' -n32'; break
4830else
4831 echo "$as_me: failed program was:" >&5
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
4834fi
4835rm -f conftest.err conftest.$ac_objext
4836 break
4837 done
4838 CC=$ac_save_CC
4839 rm -f conftest.$ac_ext
4840 fi
4841fi
4842echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4843echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4844 if test "$ac_cv_sys_largefile_CC" != no; then
4845 CC=$CC$ac_cv_sys_largefile_CC
4846 fi
4847
4848 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4849echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4850if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 while :; do
4854 ac_cv_sys_file_offset_bits=no
4855 cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h. */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h. */
4861#include <sys/types.h>
4862 /* Check that off_t can represent 2**63 - 1 correctly.
4863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4864 since some C++ compilers masquerading as C compilers
4865 incorrectly reject 9223372036854775807. */
4866#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4868 && LARGE_OFF_T % 2147483647 == 1)
4869 ? 1 : -1];
4870int
4871main ()
4872{
4873
4874 ;
4875 return 0;
4876}
4877_ACEOF
4878rm -f conftest.$ac_objext
4879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 break
4901else
4902 echo "$as_me: failed program was:" >&5
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
4905fi
4906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4907 cat >conftest.$ac_ext <<_ACEOF
4908/* confdefs.h. */
4909_ACEOF
4910cat confdefs.h >>conftest.$ac_ext
4911cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h. */
4913#define _FILE_OFFSET_BITS 64
4914#include <sys/types.h>
4915 /* Check that off_t can represent 2**63 - 1 correctly.
4916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4917 since some C++ compilers masquerading as C compilers
4918 incorrectly reject 9223372036854775807. */
4919#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4921 && LARGE_OFF_T % 2147483647 == 1)
4922 ? 1 : -1];
4923int
4924main ()
4925{
4926
4927 ;
4928 return 0;
4929}
4930_ACEOF
4931rm -f conftest.$ac_objext
4932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -z "$ac_c_werror_flag"
4941 || test ! -s conftest.err'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 (eval $ac_try) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; } &&
4947 { ac_try='test -s conftest.$ac_objext'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 (eval $ac_try) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 ac_cv_sys_file_offset_bits=64; break
4954else
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958fi
4959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960 break
4961done
4962fi
4963echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4964echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4965if test "$ac_cv_sys_file_offset_bits" != no; then
4966
4967cat >>confdefs.h <<_ACEOF
4968#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4969_ACEOF
4970
4971fi
4972rm -f conftest*
4973 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4974echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4975if test "${ac_cv_sys_large_files+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978 while :; do
4979 ac_cv_sys_large_files=no
4980 cat >conftest.$ac_ext <<_ACEOF
4981/* confdefs.h. */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h. */
4986#include <sys/types.h>
4987 /* Check that off_t can represent 2**63 - 1 correctly.
4988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4989 since some C++ compilers masquerading as C compilers
4990 incorrectly reject 9223372036854775807. */
4991#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4993 && LARGE_OFF_T % 2147483647 == 1)
4994 ? 1 : -1];
4995int
4996main ()
4997{
4998
4999 ;
5000 return 0;
5001}
5002_ACEOF
5003rm -f conftest.$ac_objext
5004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 break
5026else
5027 echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030fi
5031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h. */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h. */
5038#define _LARGE_FILES 1
5039#include <sys/types.h>
5040 /* Check that off_t can represent 2**63 - 1 correctly.
5041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5042 since some C++ compilers masquerading as C compilers
5043 incorrectly reject 9223372036854775807. */
5044#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5046 && LARGE_OFF_T % 2147483647 == 1)
5047 ? 1 : -1];
5048int
5049main ()
5050{
5051
5052 ;
5053 return 0;
5054}
5055_ACEOF
5056rm -f conftest.$ac_objext
5057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -z "$ac_c_werror_flag"
5066 || test ! -s conftest.err'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; } &&
5072 { ac_try='test -s conftest.$ac_objext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 ac_cv_sys_large_files=1; break
5079else
5080 echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083fi
5084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5085 break
5086done
5087fi
5088echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5089echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5090if test "$ac_cv_sys_large_files" != no; then
5091
5092cat >>confdefs.h <<_ACEOF
5093#define _LARGE_FILES $ac_cv_sys_large_files
5094_ACEOF
5095
5096fi
5097rm -f conftest*
5098fi
5099
5100# Find a good install program. We prefer a C program (faster),
5101# so one script is as good as another. But avoid the broken or
5102# incompatible versions:
5103# SysV /etc/install, /usr/sbin/install
5104# SunOS /usr/etc/install
5105# IRIX /sbin/install
5106# AIX /bin/install
5107# AmigaOS /C/install, which installs bootblocks on floppy discs
5108# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5109# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5110# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5111# OS/2's system install, which has a completely different semantic
5112# ./install, which can be erroneously created by make from ./install.sh.
5113# Reject install programs that cannot install multiple files.
5114echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5115echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5116if test -z "$INSTALL"; then
5117if test "${ac_cv_path_install+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 # Account for people who put trailing slashes in PATH elements.
5126case $as_dir/ in
5127 ./ | .// | /cC/* | \
5128 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5129 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5130 /usr/ucb/* ) ;;
5131 *)
5132 # OSF1 and SCO ODT 3.0 have their own names for install.
5133 # Don't use installbsd from OSF since it installs stuff as root
5134 # by default.
5135 for ac_prog in ginstall scoinst install; do
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5138 if test $ac_prog = install &&
5139 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5140 # AIX install. It has an incompatible calling convention.
5141 :
5142 elif test $ac_prog = install &&
5143 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5144 # program-specific install script used by HP pwplus--don't use.
5145 :
5146 else
5147 rm -rf conftest.one conftest.two conftest.dir
5148 echo one > conftest.one
5149 echo two > conftest.two
5150 mkdir conftest.dir
5151 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5152 test -s conftest.one && test -s conftest.two &&
5153 test -s conftest.dir/conftest.one &&
5154 test -s conftest.dir/conftest.two
5155 then
5156 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5157 break 3
5158 fi
5159 fi
5160 fi
5161 done
5162 done
5163 ;;
5164esac
5165done
5166
5167rm -rf conftest.one conftest.two conftest.dir
5168
5169fi
5170 if test "${ac_cv_path_install+set}" = set; then
5171 INSTALL=$ac_cv_path_install
5172 else
5173 # As a last resort, use the slow shell script. Don't cache a
5174 # value for INSTALL within a source directory, because that will
5175 # break other packages using the cache if that directory is
5176 # removed, or if the value is a relative name.
5177 INSTALL=$ac_install_sh
5178 fi
5179fi
5180echo "$as_me:$LINENO: result: $INSTALL" >&5
5181echo "${ECHO_T}$INSTALL" >&6
5182
5183# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5184# It thinks the first close brace ends the variable substitution.
5185test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5186
5187test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5188
5189test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5190
5191
5192case `pwd` in
5193 *\ * | *\ *)
5194 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5195echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5196esac
5197
5198
5199
5200macro_version='2.2.6'
5201macro_revision='1.3012'
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215ltmain="$ac_aux_dir/ltmain.sh"
5216
5217echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5218echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5219if test "${lt_cv_path_SED+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222 # Loop through the user's path and test for sed and gsed.
5223# Then use that list of sed's as ones to test for truncation.
5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH
5226do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for lt_ac_prog in sed gsed; do
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5232 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5233 fi
5234 done
5235 done
5236done
5237IFS=$as_save_IFS
5238lt_ac_max=0
5239lt_ac_count=0
5240# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5241# along with /bin/sed that truncates output.
5242for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5243 test ! -f $lt_ac_sed && continue
5244 cat /dev/null > conftest.in
5245 lt_ac_count=0
5246 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5247 # Check for GNU sed and select it if it is found.
5248 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5249 lt_cv_path_SED=$lt_ac_sed
5250 break
5251 fi
5252 while true; do
5253 cat conftest.in conftest.in >conftest.tmp
5254 mv conftest.tmp conftest.in
5255 cp conftest.in conftest.nl
5256 echo >>conftest.nl
5257 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5258 cmp -s conftest.out conftest.nl || break
5259 # 10000 chars as input seems more than enough
5260 test $lt_ac_count -gt 10 && break
5261 lt_ac_count=`expr $lt_ac_count + 1`
5262 if test $lt_ac_count -gt $lt_ac_max; then
5263 lt_ac_max=$lt_ac_count
5264 lt_cv_path_SED=$lt_ac_sed
5265 fi
5266 done
5267done
5268
5269fi
5270
5271SED=$lt_cv_path_SED
5272
5273echo "$as_me:$LINENO: result: $SED" >&5
5274echo "${ECHO_T}$SED" >&6
5275
5276test -z "$SED" && SED=sed
5277Xsed="$SED -e 1s/^X//"
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289echo "$as_me:$LINENO: checking for fgrep" >&5
5290echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5291if test "${ac_cv_prog_fgrep+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293else
5294 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5295 then ac_cv_prog_fgrep='grep -F'
5296 else ac_cv_prog_fgrep='fgrep'
5297 fi
5298fi
5299echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5300echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5301 FGREP=$ac_cv_prog_fgrep
5302
5303
5304test -z "$GREP" && GREP=grep
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324# Check whether --with-gnu-ld or --without-gnu-ld was given.
5325if test "${with_gnu_ld+set}" = set; then
5326 withval="$with_gnu_ld"
5327 test "$withval" = no || with_gnu_ld=yes
5328else
5329 with_gnu_ld=no
5330fi;
5331ac_prog=ld
5332if test "$GCC" = yes; then
5333 # Check if gcc -print-prog-name=ld gives a path.
5334 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5335echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5336 case $host in
5337 *-*-mingw*)
5338 # gcc leaves a trailing carriage return which upsets mingw
5339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5340 *)
5341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5342 esac
5343 case $ac_prog in
5344 # Accept absolute paths.
5345 [\\/]* | ?:[\\/]*)
5346 re_direlt='/[^/][^/]*/\.\./'
5347 # Canonicalize the pathname of ld
5348 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5349 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5350 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5351 done
5352 test -z "$LD" && LD="$ac_prog"
5353 ;;
5354 "")
5355 # If it fails, then pretend we aren't using GCC.
5356 ac_prog=ld
5357 ;;
5358 *)
5359 # If it is relative, then search for the first ld in PATH.
5360 with_gnu_ld=unknown
5361 ;;
5362 esac
5363elif test "$with_gnu_ld" = yes; then
5364 echo "$as_me:$LINENO: checking for GNU ld" >&5
5365echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5366else
5367 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5368echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5369fi
5370if test "${lt_cv_path_LD+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373 if test -z "$LD"; then
5374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5375 for ac_dir in $PATH; do
5376 IFS="$lt_save_ifs"
5377 test -z "$ac_dir" && ac_dir=.
5378 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5379 lt_cv_path_LD="$ac_dir/$ac_prog"
5380 # Check to see if the program is GNU ld. I'd rather use --version,
5381 # but apparently some variants of GNU ld only accept -v.
5382 # Break only if it was the GNU/non-GNU ld that we prefer.
5383 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5384 *GNU* | *'with BFD'*)
5385 test "$with_gnu_ld" != no && break
5386 ;;
5387 *)
5388 test "$with_gnu_ld" != yes && break
5389 ;;
5390 esac
5391 fi
5392 done
5393 IFS="$lt_save_ifs"
5394else
5395 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5396fi
5397fi
5398
5399LD="$lt_cv_path_LD"
5400if test -n "$LD"; then
5401 echo "$as_me:$LINENO: result: $LD" >&5
5402echo "${ECHO_T}$LD" >&6
5403else
5404 echo "$as_me:$LINENO: result: no" >&5
5405echo "${ECHO_T}no" >&6
5406fi
5407test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5408echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5409 { (exit 1); exit 1; }; }
5410echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5411echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5412if test "${lt_cv_prog_gnu_ld+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414else
5415 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5416case `$LD -v 2>&1 </dev/null` in
5417*GNU* | *'with BFD'*)
5418 lt_cv_prog_gnu_ld=yes
5419 ;;
5420*)
5421 lt_cv_prog_gnu_ld=no
5422 ;;
5423esac
5424fi
5425echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5426echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5427with_gnu_ld=$lt_cv_prog_gnu_ld
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5438echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5439if test "${lt_cv_path_NM+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442 if test -n "$NM"; then
5443 # Let the user override the test.
5444 lt_cv_path_NM="$NM"
5445else
5446 lt_nm_to_check="${ac_tool_prefix}nm"
5447 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5448 lt_nm_to_check="$lt_nm_to_check nm"
5449 fi
5450 for lt_tmp_nm in $lt_nm_to_check; do
5451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5452 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5453 IFS="$lt_save_ifs"
5454 test -z "$ac_dir" && ac_dir=.
5455 tmp_nm="$ac_dir/$lt_tmp_nm"
5456 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5457 # Check to see if the nm accepts a BSD-compat flag.
5458 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5459 # nm: unknown option "B" ignored
5460 # Tru64's nm complains that /dev/null is an invalid object file
5461 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5462 */dev/null* | *'Invalid file or object type'*)
5463 lt_cv_path_NM="$tmp_nm -B"
5464 break
5465 ;;
5466 *)
5467 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5468 */dev/null*)
5469 lt_cv_path_NM="$tmp_nm -p"
5470 break
5471 ;;
5472 *)
5473 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5474 continue # so that we can try to find one that supports BSD flags
5475 ;;
5476 esac
5477 ;;
5478 esac
5479 fi
5480 done
5481 IFS="$lt_save_ifs"
5482 done
5483 : ${lt_cv_path_NM=no}
5484fi
5485fi
5486echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5487echo "${ECHO_T}$lt_cv_path_NM" >&6
5488if test "$lt_cv_path_NM" != "no"; then
5489 NM="$lt_cv_path_NM"
5490else
5491 # Didn't find any BSD compatible name lister, look for dumpbin.
5492 if test -n "$ac_tool_prefix"; then
5493 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5494 do
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497echo "$as_me:$LINENO: checking for $ac_word" >&5
5498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5499if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502 if test -n "$DUMPBIN"; then
5503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516done
5517done
5518
5519fi
5520fi
5521DUMPBIN=$ac_cv_prog_DUMPBIN
5522if test -n "$DUMPBIN"; then
5523 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5524echo "${ECHO_T}$DUMPBIN" >&6
5525else
5526 echo "$as_me:$LINENO: result: no" >&5
5527echo "${ECHO_T}no" >&6
5528fi
5529
5530 test -n "$DUMPBIN" && break
5531 done
5532fi
5533if test -z "$DUMPBIN"; then
5534 ac_ct_DUMPBIN=$DUMPBIN
5535 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5536do
5537 # Extract the first word of "$ac_prog", so it can be a program name with args.
5538set dummy $ac_prog; ac_word=$2
5539echo "$as_me:$LINENO: checking for $ac_word" >&5
5540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544 if test -n "$ac_ct_DUMPBIN"; then
5545 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5546else
5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558done
5559done
5560
5561fi
5562fi
5563ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5564if test -n "$ac_ct_DUMPBIN"; then
5565 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5566echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5567else
5568 echo "$as_me:$LINENO: result: no" >&5
5569echo "${ECHO_T}no" >&6
5570fi
5571
5572 test -n "$ac_ct_DUMPBIN" && break
5573done
5574test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5575
5576 DUMPBIN=$ac_ct_DUMPBIN
5577fi
5578
5579
5580 if test "$DUMPBIN" != ":"; then
5581 NM="$DUMPBIN"
5582 fi
5583fi
5584test -z "$NM" && NM=nm
5585
5586
5587
5588
5589
5590
5591echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5592echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5593if test "${lt_cv_nm_interface+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596 lt_cv_nm_interface="BSD nm"
5597 echo "int some_variable = 0;" > conftest.$ac_ext
5598 (eval echo "\"\$as_me:5598: $ac_compile\"" >&5)
5599 (eval "$ac_compile" 2>conftest.err)
5600 cat conftest.err >&5
5601 (eval echo "\"\$as_me:5601: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5602 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5603 cat conftest.err >&5
5604 (eval echo "\"\$as_me:5604: output\"" >&5)
5605 cat conftest.out >&5
5606 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5607 lt_cv_nm_interface="MS dumpbin"
5608 fi
5609 rm -f conftest*
5610fi
5611echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5612echo "${ECHO_T}$lt_cv_nm_interface" >&6
5613
5614echo "$as_me:$LINENO: checking whether ln -s works" >&5
5615echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5616LN_S=$as_ln_s
5617if test "$LN_S" = "ln -s"; then
5618 echo "$as_me:$LINENO: result: yes" >&5
5619echo "${ECHO_T}yes" >&6
5620else
5621 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5622echo "${ECHO_T}no, using $LN_S" >&6
5623fi
5624
5625# find the maximum length of command line arguments
5626echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5627echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5628if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631 i=0
5632 teststring="ABCD"
5633
5634 case $build_os in
5635 msdosdjgpp*)
5636 # On DJGPP, this test can blow up pretty badly due to problems in libc
5637 # (any single argument exceeding 2000 bytes causes a buffer overrun
5638 # during glob expansion). Even if it were fixed, the result of this
5639 # check would be larger than it should be.
5640 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5641 ;;
5642
5643 gnu*)
5644 # Under GNU Hurd, this test is not required because there is
5645 # no limit to the length of command line arguments.
5646 # Libtool will interpret -1 as no limit whatsoever
5647 lt_cv_sys_max_cmd_len=-1;
5648 ;;
5649
5650 cygwin* | mingw* | cegcc*)
5651 # On Win9x/ME, this test blows up -- it succeeds, but takes
5652 # about 5 minutes as the teststring grows exponentially.
5653 # Worse, since 9x/ME are not pre-emptively multitasking,
5654 # you end up with a "frozen" computer, even though with patience
5655 # the test eventually succeeds (with a max line length of 256k).
5656 # Instead, let's just punt: use the minimum linelength reported by
5657 # all of the supported platforms: 8192 (on NT/2K/XP).
5658 lt_cv_sys_max_cmd_len=8192;
5659 ;;
5660
5661 amigaos*)
5662 # On AmigaOS with pdksh, this test takes hours, literally.
5663 # So we just punt and use a minimum line length of 8192.
5664 lt_cv_sys_max_cmd_len=8192;
5665 ;;
5666
5667 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5668 # This has been around since 386BSD, at least. Likely further.
5669 if test -x /sbin/sysctl; then
5670 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5671 elif test -x /usr/sbin/sysctl; then
5672 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5673 else
5674 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5675 fi
5676 # And add a safety zone
5677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5679 ;;
5680
5681 interix*)
5682 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5683 lt_cv_sys_max_cmd_len=196608
5684 ;;
5685
5686 osf*)
5687 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5688 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5689 # nice to cause kernel panics so lets avoid the loop below.
5690 # First set a reasonable default.
5691 lt_cv_sys_max_cmd_len=16384
5692 #
5693 if test -x /sbin/sysconfig; then
5694 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5695 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5696 esac
5697 fi
5698 ;;
5699 sco3.2v5*)
5700 lt_cv_sys_max_cmd_len=102400
5701 ;;
5702 sysv5* | sco5v6* | sysv4.2uw2*)
5703 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5704 if test -n "$kargmax"; then
5705 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5706 else
5707 lt_cv_sys_max_cmd_len=32768
5708 fi
5709 ;;
5710 *)
5711 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5712 if test -n "$lt_cv_sys_max_cmd_len"; then
5713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5715 else
5716 # Make teststring a little bigger before we do anything with it.
5717 # a 1K string should be a reasonable start.
5718 for i in 1 2 3 4 5 6 7 8 ; do
5719 teststring=$teststring$teststring
5720 done
5721 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5722 # If test is not a shell built-in, we'll probably end up computing a
5723 # maximum length that is only half of the actual maximum length, but
5724 # we can't tell.
5725 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5726 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5727 test $i != 17 # 1/2 MB should be enough
5728 do
5729 i=`expr $i + 1`
5730 teststring=$teststring$teststring
5731 done
5732 # Only check the string length outside the loop.
5733 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5734 teststring=
5735 # Add a significant safety factor because C++ compilers can tack on
5736 # massive amounts of additional arguments before passing them to the
5737 # linker. It appears as though 1/2 is a usable value.
5738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5739 fi
5740 ;;
5741 esac
5742
5743fi
5744
5745if test -n $lt_cv_sys_max_cmd_len ; then
5746 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5747echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5748else
5749 echo "$as_me:$LINENO: result: none" >&5
5750echo "${ECHO_T}none" >&6
5751fi
5752max_cmd_len=$lt_cv_sys_max_cmd_len
5753
5754
5755
5756
5757
5758
5759: ${CP="cp -f"}
5760: ${MV="mv -f"}
5761: ${RM="rm -f"}
5762
5763echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5764echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5765# Try some XSI features
5766xsi_shell=no
5767( _lt_dummy="a/b/c"
5768 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5769 = c,a/b,, \
5770 && eval 'test $(( 1 + 1 )) -eq 2 \
5771 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5772 && xsi_shell=yes
5773echo "$as_me:$LINENO: result: $xsi_shell" >&5
5774echo "${ECHO_T}$xsi_shell" >&6
5775
5776
5777echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5778echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5779lt_shell_append=no
5780( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5781 >/dev/null 2>&1 \
5782 && lt_shell_append=yes
5783echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5784echo "${ECHO_T}$lt_shell_append" >&6
5785
5786
5787if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5788 lt_unset=unset
5789else
5790 lt_unset=false
5791fi
5792
5793
5794
5795
5796
5797# test EBCDIC or ASCII
5798case `echo X|tr X '\101'` in
5799 A) # ASCII based system
5800 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5801 lt_SP2NL='tr \040 \012'
5802 lt_NL2SP='tr \015\012 \040\040'
5803 ;;
5804 *) # EBCDIC based system
5805 lt_SP2NL='tr \100 \n'
5806 lt_NL2SP='tr \r\n \100\100'
5807 ;;
5808esac
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5819echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5820if test "${lt_cv_ld_reload_flag+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823 lt_cv_ld_reload_flag='-r'
5824fi
5825echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5826echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5827reload_flag=$lt_cv_ld_reload_flag
5828case $reload_flag in
5829"" | " "*) ;;
5830*) reload_flag=" $reload_flag" ;;
5831esac
5832reload_cmds='$LD$reload_flag -o $output$reload_objs'
5833case $host_os in
5834 darwin*)
5835 if test "$GCC" = yes; then
5836 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5837 else
5838 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5839 fi
5840 ;;
5841esac
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851if test -n "$ac_tool_prefix"; then
5852 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5853set dummy ${ac_tool_prefix}objdump; ac_word=$2
5854echo "$as_me:$LINENO: checking for $ac_word" >&5
5855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5856if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859 if test -n "$OBJDUMP"; then
5860 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873done
5874done
5875
5876fi
5877fi
5878OBJDUMP=$ac_cv_prog_OBJDUMP
5879if test -n "$OBJDUMP"; then
5880 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5881echo "${ECHO_T}$OBJDUMP" >&6
5882else
5883 echo "$as_me:$LINENO: result: no" >&5
5884echo "${ECHO_T}no" >&6
5885fi
5886
5887fi
5888if test -z "$ac_cv_prog_OBJDUMP"; then
5889 ac_ct_OBJDUMP=$OBJDUMP
5890 # Extract the first word of "objdump", so it can be a program name with args.
5891set dummy objdump; ac_word=$2
5892echo "$as_me:$LINENO: checking for $ac_word" >&5
5893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896else
5897 if test -n "$ac_ct_OBJDUMP"; then
5898 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5899else
5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901for as_dir in $PATH
5902do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911done
5912done
5913
5914 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5915fi
5916fi
5917ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5918if test -n "$ac_ct_OBJDUMP"; then
5919 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5920echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5921else
5922 echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6
5924fi
5925
5926 OBJDUMP=$ac_ct_OBJDUMP
5927else
5928 OBJDUMP="$ac_cv_prog_OBJDUMP"
5929fi
5930
5931test -z "$OBJDUMP" && OBJDUMP=objdump
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5942echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5943if test "${lt_cv_deplibs_check_method+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945else
5946 lt_cv_file_magic_cmd='$MAGIC_CMD'
5947lt_cv_file_magic_test_file=
5948lt_cv_deplibs_check_method='unknown'
5949# Need to set the preceding variable on all platforms that support
5950# interlibrary dependencies.
5951# 'none' -- dependencies not supported.
5952# `unknown' -- same as none, but documents that we really don't know.
5953# 'pass_all' -- all dependencies passed with no checks.
5954# 'test_compile' -- check by making test program.
5955# 'file_magic [[regex]]' -- check by looking for files in library path
5956# which responds to the $file_magic_cmd with a given extended regex.
5957# If you have `file' or equivalent on your system and you're not sure
5958# whether `pass_all' will *always* work, you probably want this one.
5959
5960case $host_os in
5961aix[4-9]*)
5962 lt_cv_deplibs_check_method=pass_all
5963 ;;
5964
5965beos*)
5966 lt_cv_deplibs_check_method=pass_all
5967 ;;
5968
5969bsdi[45]*)
5970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5971 lt_cv_file_magic_cmd='/usr/bin/file -L'
5972 lt_cv_file_magic_test_file=/shlib/libc.so
5973 ;;
5974
5975cygwin*)
5976 # func_win32_libid is a shell function defined in ltmain.sh
5977 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5978 lt_cv_file_magic_cmd='func_win32_libid'
5979 ;;
5980
5981mingw* | pw32*)
5982 # Base MSYS/MinGW do not provide the 'file' command needed by
5983 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5984 # unless we find 'file', for example because we are cross-compiling.
5985 if ( file / ) >/dev/null 2>&1; then
5986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5987 lt_cv_file_magic_cmd='func_win32_libid'
5988 else
5989 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5990 lt_cv_file_magic_cmd='$OBJDUMP -f'
5991 fi
5992 ;;
5993
5994cegcc)
5995 # use the weaker test based on 'objdump'. See mingw*.
5996 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5997 lt_cv_file_magic_cmd='$OBJDUMP -f'
5998 ;;
5999
6000darwin* | rhapsody*)
6001 lt_cv_deplibs_check_method=pass_all
6002 ;;
6003
6004freebsd* | dragonfly*)
6005 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6006 case $host_cpu in
6007 i*86 )
6008 # Not sure whether the presence of OpenBSD here was a mistake.
6009 # Let's accept both of them until this is cleared up.
6010 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6011 lt_cv_file_magic_cmd=/usr/bin/file
6012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6013 ;;
6014 esac
6015 else
6016 lt_cv_deplibs_check_method=pass_all
6017 fi
6018 ;;
6019
6020gnu*)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023
6024hpux10.20* | hpux11*)
6025 lt_cv_file_magic_cmd=/usr/bin/file
6026 case $host_cpu in
6027 ia64*)
6028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6029 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6030 ;;
6031 hppa*64*)
6032 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]'
6033 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6034 ;;
6035 *)
6036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6037 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6038 ;;
6039 esac
6040 ;;
6041
6042interix[3-9]*)
6043 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6045 ;;
6046
6047irix5* | irix6* | nonstopux*)
6048 case $LD in
6049 *-32|*"-32 ") libmagic=32-bit;;
6050 *-n32|*"-n32 ") libmagic=N32;;
6051 *-64|*"-64 ") libmagic=64-bit;;
6052 *) libmagic=never-match;;
6053 esac
6054 lt_cv_deplibs_check_method=pass_all
6055 ;;
6056
6057# This must be Linux ELF.
6058linux* | k*bsd*-gnu | kopensolaris*-gnu)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061
6062netbsd*)
6063 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6065 else
6066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6067 fi
6068 ;;
6069
6070newos6*)
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6072 lt_cv_file_magic_cmd=/usr/bin/file
6073 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6074 ;;
6075
6076*nto* | *qnx*)
6077 lt_cv_deplibs_check_method=pass_all
6078 ;;
6079
6080openbsd*)
6081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6083 else
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6085 fi
6086 ;;
6087
6088osf3* | osf4* | osf5*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
6092rdos*)
6093 lt_cv_deplibs_check_method=pass_all
6094 ;;
6095
6096solaris*)
6097 lt_cv_deplibs_check_method=pass_all
6098 ;;
6099
6100sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6101 lt_cv_deplibs_check_method=pass_all
6102 ;;
6103
6104sysv4 | sysv4.3*)
6105 case $host_vendor in
6106 motorola)
6107 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]'
6108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6109 ;;
6110 ncr)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113 sequent)
6114 lt_cv_file_magic_cmd='/bin/file'
6115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6116 ;;
6117 sni)
6118 lt_cv_file_magic_cmd='/bin/file'
6119 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6120 lt_cv_file_magic_test_file=/lib/libc.so
6121 ;;
6122 siemens)
6123 lt_cv_deplibs_check_method=pass_all
6124 ;;
6125 pc)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128 esac
6129 ;;
6130
6131tpf*)
6132 lt_cv_deplibs_check_method=pass_all
6133 ;;
6134esac
6135
6136fi
6137echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6138echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6139file_magic_cmd=$lt_cv_file_magic_cmd
6140deplibs_check_method=$lt_cv_deplibs_check_method
6141test -z "$deplibs_check_method" && deplibs_check_method=unknown
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6156set dummy ${ac_tool_prefix}ar; ac_word=$2
6157echo "$as_me:$LINENO: checking for $ac_word" >&5
6158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6159if test "${ac_cv_prog_AR+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162 if test -n "$AR"; then
6163 ac_cv_prog_AR="$AR" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_AR="${ac_tool_prefix}ar"
6173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176done
6177done
6178
6179fi
6180fi
6181AR=$ac_cv_prog_AR
6182if test -n "$AR"; then
6183 echo "$as_me:$LINENO: result: $AR" >&5
6184echo "${ECHO_T}$AR" >&6
6185else
6186 echo "$as_me:$LINENO: result: no" >&5
6187echo "${ECHO_T}no" >&6
6188fi
6189
6190fi
6191if test -z "$ac_cv_prog_AR"; then
6192 ac_ct_AR=$AR
6193 # Extract the first word of "ar", so it can be a program name with args.
6194set dummy ar; ac_word=$2
6195echo "$as_me:$LINENO: checking for $ac_word" >&5
6196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6197if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 if test -n "$ac_ct_AR"; then
6201 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_ac_ct_AR="ar"
6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214done
6215done
6216
6217 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6218fi
6219fi
6220ac_ct_AR=$ac_cv_prog_ac_ct_AR
6221if test -n "$ac_ct_AR"; then
6222 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6223echo "${ECHO_T}$ac_ct_AR" >&6
6224else
6225 echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6
6227fi
6228
6229 AR=$ac_ct_AR
6230else
6231 AR="$ac_cv_prog_AR"
6232fi
6233
6234test -z "$AR" && AR=ar
6235test -z "$AR_FLAGS" && AR_FLAGS=cru
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6249set dummy ${ac_tool_prefix}strip; ac_word=$2
6250echo "$as_me:$LINENO: checking for $ac_word" >&5
6251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252if test "${ac_cv_prog_STRIP+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
6255 if test -n "$STRIP"; then
6256 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269done
6270done
6271
6272fi
6273fi
6274STRIP=$ac_cv_prog_STRIP
6275if test -n "$STRIP"; then
6276 echo "$as_me:$LINENO: result: $STRIP" >&5
6277echo "${ECHO_T}$STRIP" >&6
6278else
6279 echo "$as_me:$LINENO: result: no" >&5
6280echo "${ECHO_T}no" >&6
6281fi
6282
6283fi
6284if test -z "$ac_cv_prog_STRIP"; then
6285 ac_ct_STRIP=$STRIP
6286 # Extract the first word of "strip", so it can be a program name with args.
6287set dummy strip; ac_word=$2
6288echo "$as_me:$LINENO: checking for $ac_word" >&5
6289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6290if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293 if test -n "$ac_ct_STRIP"; then
6294 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6295else
6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297for as_dir in $PATH
6298do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_ac_ct_STRIP="strip"
6304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307done
6308done
6309
6310 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6311fi
6312fi
6313ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6314if test -n "$ac_ct_STRIP"; then
6315 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6316echo "${ECHO_T}$ac_ct_STRIP" >&6
6317else
6318 echo "$as_me:$LINENO: result: no" >&5
6319echo "${ECHO_T}no" >&6
6320fi
6321
6322 STRIP=$ac_ct_STRIP
6323else
6324 STRIP="$ac_cv_prog_STRIP"
6325fi
6326
6327test -z "$STRIP" && STRIP=:
6328
6329
6330
6331
6332
6333
6334if test -n "$ac_tool_prefix"; then
6335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6336set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6337echo "$as_me:$LINENO: checking for $ac_word" >&5
6338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6339if test "${ac_cv_prog_RANLIB+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6341else
6342 if test -n "$RANLIB"; then
6343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6344else
6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346for as_dir in $PATH
6347do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356done
6357done
6358
6359fi
6360fi
6361RANLIB=$ac_cv_prog_RANLIB
6362if test -n "$RANLIB"; then
6363 echo "$as_me:$LINENO: result: $RANLIB" >&5
6364echo "${ECHO_T}$RANLIB" >&6
6365else
6366 echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6
6368fi
6369
6370fi
6371if test -z "$ac_cv_prog_RANLIB"; then
6372 ac_ct_RANLIB=$RANLIB
6373 # Extract the first word of "ranlib", so it can be a program name with args.
6374set dummy ranlib; ac_word=$2
6375echo "$as_me:$LINENO: checking for $ac_word" >&5
6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6377if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380 if test -n "$ac_ct_RANLIB"; then
6381 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_ac_ct_RANLIB="ranlib"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394done
6395done
6396
6397 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6398fi
6399fi
6400ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6401if test -n "$ac_ct_RANLIB"; then
6402 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6403echo "${ECHO_T}$ac_ct_RANLIB" >&6
6404else
6405 echo "$as_me:$LINENO: result: no" >&5
6406echo "${ECHO_T}no" >&6
6407fi
6408
6409 RANLIB=$ac_ct_RANLIB
6410else
6411 RANLIB="$ac_cv_prog_RANLIB"
6412fi
6413
6414test -z "$RANLIB" && RANLIB=:
6415
6416
6417
6418
6419
6420
6421# Determine commands to create old-style static archives.
6422old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6423old_postinstall_cmds='chmod 644 $oldlib'
6424old_postuninstall_cmds=
6425
6426if test -n "$RANLIB"; then
6427 case $host_os in
6428 openbsd*)
6429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6430 ;;
6431 *)
6432 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6433 ;;
6434 esac
6435 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6436fi
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471# If no C compiler was specified, use CC.
6472LTCC=${LTCC-"$CC"}
6473
6474# If no C compiler flags were specified, use CFLAGS.
6475LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6476
6477# Allow CC to be a program name with arguments.
6478compiler=$CC
6479
6480
6481# Check for command to grab the raw symbol name followed by C symbol from nm.
6482echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6483echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6484if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486else
6487
6488# These are sane defaults that work on at least a few old systems.
6489# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6490
6491# Character class describing NM global symbol codes.
6492symcode='[BCDEGRST]'
6493
6494# Regexp to match symbols that can be accessed directly from C.
6495sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6496
6497# Define system-specific variables.
6498case $host_os in
6499aix*)
6500 symcode='[BCDT]'
6501 ;;
6502cygwin* | mingw* | pw32* | cegcc*)
6503 symcode='[ABCDGISTW]'
6504 ;;
6505hpux*)
6506 if test "$host_cpu" = ia64; then
6507 symcode='[ABCDEGRST]'
6508 fi
6509 ;;
6510irix* | nonstopux*)
6511 symcode='[BCDEGRST]'
6512 ;;
6513osf*)
6514 symcode='[BCDEGQRST]'
6515 ;;
6516solaris*)
6517 symcode='[BDRT]'
6518 ;;
6519sco3.2v5*)
6520 symcode='[DT]'
6521 ;;
6522sysv4.2uw2*)
6523 symcode='[DT]'
6524 ;;
6525sysv5* | sco5v6* | unixware* | OpenUNIX*)
6526 symcode='[ABDT]'
6527 ;;
6528sysv4)
6529 symcode='[DFNSTU]'
6530 ;;
6531esac
6532
6533# If we're using GNU nm, then use its standard symbol codes.
6534case `$NM -V 2>&1` in
6535*GNU* | *'with BFD'*)
6536 symcode='[ABCDGIRSTW]' ;;
6537esac
6538
6539# Transform an extracted symbol line into a proper C declaration.
6540# Some systems (esp. on ia64) link data and code symbols differently,
6541# so use this general approach.
6542lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6543
6544# Transform an extracted symbol line into symbol name and symbol address
6545lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6546lt_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'"
6547
6548# Handle CRLF in mingw tool chain
6549opt_cr=
6550case $build_os in
6551mingw*)
6552 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6553 ;;
6554esac
6555
6556# Try without a prefix underscore, then with it.
6557for ac_symprfx in "" "_"; do
6558
6559 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6560 symxfrm="\\1 $ac_symprfx\\2 \\2"
6561
6562 # Write the raw and C identifiers.
6563 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6564 # Fake it for dumpbin and say T for any non-static function
6565 # and D for any global variable.
6566 # Also find C++ and __fastcall symbols from MSVC++,
6567 # which start with @ or ?.
6568 lt_cv_sys_global_symbol_pipe="$AWK '"\
6569" {last_section=section; section=\$ 3};"\
6570" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6571" \$ 0!~/External *\|/{next};"\
6572" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6573" {if(hide[section]) next};"\
6574" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6575" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6576" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6577" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6578" ' prfx=^$ac_symprfx"
6579 else
6580 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6581 fi
6582
6583 # Check to see that the pipe works correctly.
6584 pipe_works=no
6585
6586 rm -f conftest*
6587 cat > conftest.$ac_ext <<_LT_EOF
6588#ifdef __cplusplus
6589extern "C" {
6590#endif
6591char nm_test_var;
6592void nm_test_func(void);
6593void nm_test_func(void){}
6594#ifdef __cplusplus
6595}
6596#endif
6597int main(){nm_test_var='a';nm_test_func();return(0);}
6598_LT_EOF
6599
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; then
6605 # Now try to grab the symbols.
6606 nlist=conftest.nm
6607 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6608 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } && test -s "$nlist"; then
6612 # Try sorting and uniquifying the output.
6613 if sort "$nlist" | uniq > "$nlist"T; then
6614 mv -f "$nlist"T "$nlist"
6615 else
6616 rm -f "$nlist"T
6617 fi
6618
6619 # Make sure that we snagged all the symbols we need.
6620 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6621 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6622 cat <<_LT_EOF > conftest.$ac_ext
6623#ifdef __cplusplus
6624extern "C" {
6625#endif
6626
6627_LT_EOF
6628 # Now generate the symbol file.
6629 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6630
6631 cat <<_LT_EOF >> conftest.$ac_ext
6632
6633/* The mapping between symbol names and symbols. */
6634const struct {
6635 const char *name;
6636 void *address;
6637}
6638lt__PROGRAM__LTX_preloaded_symbols[] =
6639{
6640 { "@PROGRAM@", (void *) 0 },
6641_LT_EOF
6642 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6643 cat <<\_LT_EOF >> conftest.$ac_ext
6644 {0, (void *) 0}
6645};
6646
6647/* This works around a problem in FreeBSD linker */
6648#ifdef FREEBSD_WORKAROUND
6649static const void *lt_preloaded_setup() {
6650 return lt__PROGRAM__LTX_preloaded_symbols;
6651}
6652#endif
6653
6654#ifdef __cplusplus
6655}
6656#endif
6657_LT_EOF
6658 # Now try linking the two files.
6659 mv conftest.$ac_objext conftstm.$ac_objext
6660 lt_save_LIBS="$LIBS"
6661 lt_save_CFLAGS="$CFLAGS"
6662 LIBS="conftstm.$ac_objext"
6663 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6665 (eval $ac_link) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6669 pipe_works=yes
6670 fi
6671 LIBS="$lt_save_LIBS"
6672 CFLAGS="$lt_save_CFLAGS"
6673 else
6674 echo "cannot find nm_test_func in $nlist" >&5
6675 fi
6676 else
6677 echo "cannot find nm_test_var in $nlist" >&5
6678 fi
6679 else
6680 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6681 fi
6682 else
6683 echo "$progname: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6685 fi
6686 rm -rf conftest* conftst*
6687
6688 # Do not use the global_symbol_pipe unless it works.
6689 if test "$pipe_works" = yes; then
6690 break
6691 else
6692 lt_cv_sys_global_symbol_pipe=
6693 fi
6694done
6695
6696fi
6697
6698if test -z "$lt_cv_sys_global_symbol_pipe"; then
6699 lt_cv_sys_global_symbol_to_cdecl=
6700fi
6701if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6702 echo "$as_me:$LINENO: result: failed" >&5
6703echo "${ECHO_T}failed" >&6
6704else
6705 echo "$as_me:$LINENO: result: ok" >&5
6706echo "${ECHO_T}ok" >&6
6707fi
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6731if test "${enable_libtool_lock+set}" = set; then
6732 enableval="$enable_libtool_lock"
6733
6734fi;
6735test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6736
6737# Some flags need to be propagated to the compiler or linker for good
6738# libtool support.
6739case $host in
6740ia64-*-hpux*)
6741 # Find out which ABI we are using.
6742 echo 'int i;' > conftest.$ac_ext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; then
6748 case `/usr/bin/file conftest.$ac_objext` in
6749 *ELF-32*)
6750 HPUX_IA64_MODE="32"
6751 ;;
6752 *ELF-64*)
6753 HPUX_IA64_MODE="64"
6754 ;;
6755 esac
6756 fi
6757 rm -rf conftest*
6758 ;;
6759*-*-irix6*)
6760 # Find out which ABI we are using.
6761 echo '#line 6761 "configure"' > conftest.$ac_ext
6762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6763 (eval $ac_compile) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; then
6767 if test "$lt_cv_prog_gnu_ld" = yes; then
6768 case `/usr/bin/file conftest.$ac_objext` in
6769 *32-bit*)
6770 LD="${LD-ld} -melf32bsmip"
6771 ;;
6772 *N32*)
6773 LD="${LD-ld} -melf32bmipn32"
6774 ;;
6775 *64-bit*)
6776 LD="${LD-ld} -melf64bmip"
6777 ;;
6778 esac
6779 else
6780 case `/usr/bin/file conftest.$ac_objext` in
6781 *32-bit*)
6782 LD="${LD-ld} -32"
6783 ;;
6784 *N32*)
6785 LD="${LD-ld} -n32"
6786 ;;
6787 *64-bit*)
6788 LD="${LD-ld} -64"
6789 ;;
6790 esac
6791 fi
6792 fi
6793 rm -rf conftest*
6794 ;;
6795
6796x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6797s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6798 # Find out which ABI we are using.
6799 echo 'int i;' > conftest.$ac_ext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 (eval $ac_compile) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; then
6805 case `/usr/bin/file conftest.o` in
6806 *32-bit*)
6807 case $host in
6808 x86_64-*kfreebsd*-gnu)
6809 LD="${LD-ld} -m elf_i386_fbsd"
6810 ;;
6811 x86_64-*linux*)
6812 LD="${LD-ld} -m elf_i386"
6813 ;;
6814 ppc64-*linux*|powerpc64-*linux*)
6815 LD="${LD-ld} -m elf32ppclinux"
6816 ;;
6817 s390x-*linux*)
6818 LD="${LD-ld} -m elf_s390"
6819 ;;
6820 sparc64-*linux*)
6821 LD="${LD-ld} -m elf32_sparc"
6822 ;;
6823 esac
6824 ;;
6825 *64-bit*)
6826 case $host in
6827 x86_64-*kfreebsd*-gnu)
6828 LD="${LD-ld} -m elf_x86_64_fbsd"
6829 ;;
6830 x86_64-*linux*)
6831 LD="${LD-ld} -m elf_x86_64"
6832 ;;
6833 ppc*-*linux*|powerpc*-*linux*)
6834 LD="${LD-ld} -m elf64ppc"
6835 ;;
6836 s390*-*linux*|s390*-*tpf*)
6837 LD="${LD-ld} -m elf64_s390"
6838 ;;
6839 sparc*-*linux*)
6840 LD="${LD-ld} -m elf64_sparc"
6841 ;;
6842 esac
6843 ;;
6844 esac
6845 fi
6846 rm -rf conftest*
6847 ;;
6848
6849*-*-sco3.2v5*)
6850 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6851 SAVE_CFLAGS="$CFLAGS"
6852 CFLAGS="$CFLAGS -belf"
6853 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6854echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6855if test "${lt_cv_cc_needs_belf+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858 ac_ext=c
6859ac_cpp='$CPP $CPPFLAGS'
6860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6862ac_compiler_gnu=$ac_cv_c_compiler_gnu
6863
6864 cat >conftest.$ac_ext <<_ACEOF
6865/* confdefs.h. */
6866_ACEOF
6867cat confdefs.h >>conftest.$ac_ext
6868cat >>conftest.$ac_ext <<_ACEOF
6869/* end confdefs.h. */
6870
6871int
6872main ()
6873{
6874
6875 ;
6876 return 0;
6877}
6878_ACEOF
6879rm -f conftest.$ac_objext conftest$ac_exeext
6880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6881 (eval $ac_link) 2>conftest.er1
6882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -z "$ac_c_werror_flag"
6889 || test ! -s conftest.err'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest$ac_exeext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 lt_cv_cc_needs_belf=yes
6902else
6903 echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
6905
6906lt_cv_cc_needs_belf=no
6907fi
6908rm -f conftest.err conftest.$ac_objext \
6909 conftest$ac_exeext conftest.$ac_ext
6910 ac_ext=c
6911ac_cpp='$CPP $CPPFLAGS'
6912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915
6916fi
6917echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6918echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6919 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6920 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6921 CFLAGS="$SAVE_CFLAGS"
6922 fi
6923 ;;
6924sparc*-*solaris*)
6925 # Find out which ABI we are using.
6926 echo 'int i;' > conftest.$ac_ext
6927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6928 (eval $ac_compile) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; then
6932 case `/usr/bin/file conftest.o` in
6933 *64-bit*)
6934 case $lt_cv_prog_gnu_ld in
6935 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6936 *)
6937 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6938 LD="${LD-ld} -64"
6939 fi
6940 ;;
6941 esac
6942 ;;
6943 esac
6944 fi
6945 rm -rf conftest*
6946 ;;
6947esac
6948
6949need_locks="$enable_libtool_lock"
6950
6951
6952 case $host_os in
6953 rhapsody* | darwin*)
6954 if test -n "$ac_tool_prefix"; then
6955 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6956set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6957echo "$as_me:$LINENO: checking for $ac_word" >&5
6958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6959if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961else
6962 if test -n "$DSYMUTIL"; then
6963 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6964else
6965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966for as_dir in $PATH
6967do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976done
6977done
6978
6979fi
6980fi
6981DSYMUTIL=$ac_cv_prog_DSYMUTIL
6982if test -n "$DSYMUTIL"; then
6983 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6984echo "${ECHO_T}$DSYMUTIL" >&6
6985else
6986 echo "$as_me:$LINENO: result: no" >&5
6987echo "${ECHO_T}no" >&6
6988fi
6989
6990fi
6991if test -z "$ac_cv_prog_DSYMUTIL"; then
6992 ac_ct_DSYMUTIL=$DSYMUTIL
6993 # Extract the first word of "dsymutil", so it can be a program name with args.
6994set dummy dsymutil; ac_word=$2
6995echo "$as_me:$LINENO: checking for $ac_word" >&5
6996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6997if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000 if test -n "$ac_ct_DSYMUTIL"; then
7001 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014done
7015done
7016
7017 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7018fi
7019fi
7020ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7021if test -n "$ac_ct_DSYMUTIL"; then
7022 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7023echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7024else
7025 echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6
7027fi
7028
7029 DSYMUTIL=$ac_ct_DSYMUTIL
7030else
7031 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7032fi
7033
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7036set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7037echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7039if test "${ac_cv_prog_NMEDIT+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042 if test -n "$NMEDIT"; then
7043 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057done
7058
7059fi
7060fi
7061NMEDIT=$ac_cv_prog_NMEDIT
7062if test -n "$NMEDIT"; then
7063 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7064echo "${ECHO_T}$NMEDIT" >&6
7065else
7066 echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6
7068fi
7069
7070fi
7071if test -z "$ac_cv_prog_NMEDIT"; then
7072 ac_ct_NMEDIT=$NMEDIT
7073 # Extract the first word of "nmedit", so it can be a program name with args.
7074set dummy nmedit; ac_word=$2
7075echo "$as_me:$LINENO: checking for $ac_word" >&5
7076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7077if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079else
7080 if test -n "$ac_ct_NMEDIT"; then
7081 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094done
7095done
7096
7097 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7098fi
7099fi
7100ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7101if test -n "$ac_ct_NMEDIT"; then
7102 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7103echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7104else
7105 echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6
7107fi
7108
7109 NMEDIT=$ac_ct_NMEDIT
7110else
7111 NMEDIT="$ac_cv_prog_NMEDIT"
7112fi
7113
7114 if test -n "$ac_tool_prefix"; then
7115 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7116set dummy ${ac_tool_prefix}lipo; ac_word=$2
7117echo "$as_me:$LINENO: checking for $ac_word" >&5
7118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7119if test "${ac_cv_prog_LIPO+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121else
7122 if test -n "$LIPO"; then
7123 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7124else
7125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126for as_dir in $PATH
7127do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7135 fi
7136done
7137done
7138
7139fi
7140fi
7141LIPO=$ac_cv_prog_LIPO
7142if test -n "$LIPO"; then
7143 echo "$as_me:$LINENO: result: $LIPO" >&5
7144echo "${ECHO_T}$LIPO" >&6
7145else
7146 echo "$as_me:$LINENO: result: no" >&5
7147echo "${ECHO_T}no" >&6
7148fi
7149
7150fi
7151if test -z "$ac_cv_prog_LIPO"; then
7152 ac_ct_LIPO=$LIPO
7153 # Extract the first word of "lipo", so it can be a program name with args.
7154set dummy lipo; ac_word=$2
7155echo "$as_me:$LINENO: checking for $ac_word" >&5
7156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7157if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160 if test -n "$ac_ct_LIPO"; then
7161 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_ac_ct_LIPO="lipo"
7171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7173 fi
7174done
7175done
7176
7177 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7178fi
7179fi
7180ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7181if test -n "$ac_ct_LIPO"; then
7182 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7183echo "${ECHO_T}$ac_ct_LIPO" >&6
7184else
7185 echo "$as_me:$LINENO: result: no" >&5
7186echo "${ECHO_T}no" >&6
7187fi
7188
7189 LIPO=$ac_ct_LIPO
7190else
7191 LIPO="$ac_cv_prog_LIPO"
7192fi
7193
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7196set dummy ${ac_tool_prefix}otool; ac_word=$2
7197echo "$as_me:$LINENO: checking for $ac_word" >&5
7198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7199if test "${ac_cv_prog_OTOOL+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202 if test -n "$OTOOL"; then
7203 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7204else
7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216done
7217done
7218
7219fi
7220fi
7221OTOOL=$ac_cv_prog_OTOOL
7222if test -n "$OTOOL"; then
7223 echo "$as_me:$LINENO: result: $OTOOL" >&5
7224echo "${ECHO_T}$OTOOL" >&6
7225else
7226 echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6
7228fi
7229
7230fi
7231if test -z "$ac_cv_prog_OTOOL"; then
7232 ac_ct_OTOOL=$OTOOL
7233 # Extract the first word of "otool", so it can be a program name with args.
7234set dummy otool; ac_word=$2
7235echo "$as_me:$LINENO: checking for $ac_word" >&5
7236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7237if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239else
7240 if test -n "$ac_ct_OTOOL"; then
7241 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250 ac_cv_prog_ac_ct_OTOOL="otool"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7253 fi
7254done
7255done
7256
7257 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7258fi
7259fi
7260ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7261if test -n "$ac_ct_OTOOL"; then
7262 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7263echo "${ECHO_T}$ac_ct_OTOOL" >&6
7264else
7265 echo "$as_me:$LINENO: result: no" >&5
7266echo "${ECHO_T}no" >&6
7267fi
7268
7269 OTOOL=$ac_ct_OTOOL
7270else
7271 OTOOL="$ac_cv_prog_OTOOL"
7272fi
7273
7274 if test -n "$ac_tool_prefix"; then
7275 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7276set dummy ${ac_tool_prefix}otool64; ac_word=$2
7277echo "$as_me:$LINENO: checking for $ac_word" >&5
7278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7279if test "${ac_cv_prog_OTOOL64+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281else
7282 if test -n "$OTOOL64"; then
7283 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7295 fi
7296done
7297done
7298
7299fi
7300fi
7301OTOOL64=$ac_cv_prog_OTOOL64
7302if test -n "$OTOOL64"; then
7303 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7304echo "${ECHO_T}$OTOOL64" >&6
7305else
7306 echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6
7308fi
7309
7310fi
7311if test -z "$ac_cv_prog_OTOOL64"; then
7312 ac_ct_OTOOL64=$OTOOL64
7313 # Extract the first word of "otool64", so it can be a program name with args.
7314set dummy otool64; ac_word=$2
7315echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7317if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320 if test -n "$ac_ct_OTOOL64"; then
7321 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7322else
7323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330 ac_cv_prog_ac_ct_OTOOL64="otool64"
7331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334done
7335done
7336
7337 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7338fi
7339fi
7340ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7341if test -n "$ac_ct_OTOOL64"; then
7342 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7343echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7344else
7345 echo "$as_me:$LINENO: result: no" >&5
7346echo "${ECHO_T}no" >&6
7347fi
7348
7349 OTOOL64=$ac_ct_OTOOL64
7350else
7351 OTOOL64="$ac_cv_prog_OTOOL64"
7352fi
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7381echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7382if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384else
7385 lt_cv_apple_cc_single_mod=no
7386 if test -z "${LT_MULTI_MODULE}"; then
7387 # By default we will add the -single_module flag. You can override
7388 # by either setting the environment variable LT_MULTI_MODULE
7389 # non-empty at configure time, or by adding -multi_module to the
7390 # link flags.
7391 rm -rf libconftest.dylib*
7392 echo "int foo(void){return 1;}" > conftest.c
7393 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7394-dynamiclib -Wl,-single_module conftest.c" >&5
7395 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7396 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7397 _lt_result=$?
7398 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7399 lt_cv_apple_cc_single_mod=yes
7400 else
7401 cat conftest.err >&5
7402 fi
7403 rm -rf libconftest.dylib*
7404 rm -f conftest.*
7405 fi
7406fi
7407echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7408echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7409 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7410echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7411if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413else
7414 lt_cv_ld_exported_symbols_list=no
7415 save_LDFLAGS=$LDFLAGS
7416 echo "_main" > conftest.sym
7417 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7418 cat >conftest.$ac_ext <<_ACEOF
7419/* confdefs.h. */
7420_ACEOF
7421cat confdefs.h >>conftest.$ac_ext
7422cat >>conftest.$ac_ext <<_ACEOF
7423/* end confdefs.h. */
7424
7425int
7426main ()
7427{
7428
7429 ;
7430 return 0;
7431}
7432_ACEOF
7433rm -f conftest.$ac_objext conftest$ac_exeext
7434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435 (eval $ac_link) 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
7442 { ac_try='test -z "$ac_c_werror_flag"
7443 || test ! -s conftest.err'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; } &&
7449 { ac_try='test -s conftest$ac_exeext'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 lt_cv_ld_exported_symbols_list=yes
7456else
7457 echo "$as_me: failed program was:" >&5
7458sed 's/^/| /' conftest.$ac_ext >&5
7459
7460lt_cv_ld_exported_symbols_list=no
7461fi
7462rm -f conftest.err conftest.$ac_objext \
7463 conftest$ac_exeext conftest.$ac_ext
7464 LDFLAGS="$save_LDFLAGS"
7465
7466fi
7467echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7468echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7469 case $host_os in
7470 rhapsody* | darwin1.[012])
7471 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7472 darwin1.*)
7473 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7474 darwin*) # darwin 5.x on
7475 # if running on 10.5 or later, the deployment target defaults
7476 # to the OS version, if on x86, and 10.4, the deployment
7477 # target defaults to 10.4. Don't you love it?
7478 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7479 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7480 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7481 10.[012]*)
7482 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7483 10.*)
7484 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7485 esac
7486 ;;
7487 esac
7488 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7489 _lt_dar_single_mod='$single_module'
7490 fi
7491 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7492 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7493 else
7494 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7495 fi
7496 if test "$DSYMUTIL" != ":"; then
7497 _lt_dsymutil='~$DSYMUTIL $lib || :'
7498 else
7499 _lt_dsymutil=
7500 fi
7501 ;;
7502 esac
7503
7504
7505for ac_header in dlfcn.h
7506do
7507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7508echo "$as_me:$LINENO: checking for $ac_header" >&5
7509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7510if eval "test \"\${$as_ac_Header+set}\" = set"; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513 cat >conftest.$ac_ext <<_ACEOF
7514/* confdefs.h. */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h. */
7519$ac_includes_default
7520
7521#include <$ac_header>
7522_ACEOF
7523rm -f conftest.$ac_objext
7524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525 (eval $ac_compile) 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag"
7533 || test ! -s conftest.err'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 eval "$as_ac_Header=yes"
7546else
7547 echo "$as_me: failed program was:" >&5
7548sed 's/^/| /' conftest.$ac_ext >&5
7549
7550eval "$as_ac_Header=no"
7551fi
7552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7553fi
7554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7556if test `eval echo '${'$as_ac_Header'}'` = yes; then
7557 cat >>confdefs.h <<_ACEOF
7558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7559_ACEOF
7560
7561fi
7562
7563done
7564
7565
7566
7567# Set options
7568
7569
7570
7571 enable_dlopen=no
7572
7573
7574 enable_win32_dll=no
7575
7576
7577 # Check whether --enable-shared or --disable-shared was given.
7578if test "${enable_shared+set}" = set; then
7579 enableval="$enable_shared"
7580 p=${PACKAGE-default}
7581 case $enableval in
7582 yes) enable_shared=yes ;;
7583 no) enable_shared=no ;;
7584 *)
7585 enable_shared=no
7586 # Look at the argument we got. We use all the common list separators.
7587 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7588 for pkg in $enableval; do
7589 IFS="$lt_save_ifs"
7590 if test "X$pkg" = "X$p"; then
7591 enable_shared=yes
7592 fi
7593 done
7594 IFS="$lt_save_ifs"
7595 ;;
7596 esac
7597else
7598 enable_shared=yes
7599fi;
7600
7601
7602
7603
7604
7605
7606
7607
7608 # Check whether --enable-static or --disable-static was given.
7609if test "${enable_static+set}" = set; then
7610 enableval="$enable_static"
7611 p=${PACKAGE-default}
7612 case $enableval in
7613 yes) enable_static=yes ;;
7614 no) enable_static=no ;;
7615 *)
7616 enable_static=no
7617 # Look at the argument we got. We use all the common list separators.
7618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7619 for pkg in $enableval; do
7620 IFS="$lt_save_ifs"
7621 if test "X$pkg" = "X$p"; then
7622 enable_static=yes
7623 fi
7624 done
7625 IFS="$lt_save_ifs"
7626 ;;
7627 esac
7628else
7629 enable_static=yes
7630fi;
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640# Check whether --with-pic or --without-pic was given.
7641if test "${with_pic+set}" = set; then
7642 withval="$with_pic"
7643 pic_mode="$withval"
7644else
7645 pic_mode=default
7646fi;
7647
7648test -z "$pic_mode" && pic_mode=default
7649
7650
7651
7652
7653
7654
7655
7656 # Check whether --enable-fast-install or --disable-fast-install was given.
7657if test "${enable_fast_install+set}" = set; then
7658 enableval="$enable_fast_install"
7659 p=${PACKAGE-default}
7660 case $enableval in
7661 yes) enable_fast_install=yes ;;
7662 no) enable_fast_install=no ;;
7663 *)
7664 enable_fast_install=no
7665 # Look at the argument we got. We use all the common list separators.
7666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7667 for pkg in $enableval; do
7668 IFS="$lt_save_ifs"
7669 if test "X$pkg" = "X$p"; then
7670 enable_fast_install=yes
7671 fi
7672 done
7673 IFS="$lt_save_ifs"
7674 ;;
7675 esac
7676else
7677 enable_fast_install=yes
7678fi;
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689# This can be used to rebuild libtool when needed
7690LIBTOOL_DEPS="$ltmain"
7691
7692# Always use our own libtool.
7693LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719test -z "$LN_S" && LN_S="ln -s"
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734if test -n "${ZSH_VERSION+set}" ; then
7735 setopt NO_GLOB_SUBST
7736fi
7737
7738echo "$as_me:$LINENO: checking for objdir" >&5
7739echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7740if test "${lt_cv_objdir+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743 rm -f .libs 2>/dev/null
7744mkdir .libs 2>/dev/null
7745if test -d .libs; then
7746 lt_cv_objdir=.libs
7747else
7748 # MS-DOS does not allow filenames that begin with a dot.
7749 lt_cv_objdir=_libs
7750fi
7751rmdir .libs 2>/dev/null
7752fi
7753echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7754echo "${ECHO_T}$lt_cv_objdir" >&6
7755objdir=$lt_cv_objdir
7756
7757
7758
7759
7760
7761cat >>confdefs.h <<_ACEOF
7762#define LT_OBJDIR "$lt_cv_objdir/"
7763_ACEOF
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781case $host_os in
7782aix3*)
7783 # AIX sometimes has problems with the GCC collect2 program. For some
7784 # reason, if we set the COLLECT_NAMES environment variable, the problems
7785 # vanish in a puff of smoke.
7786 if test "X${COLLECT_NAMES+set}" != Xset; then
7787 COLLECT_NAMES=
7788 export COLLECT_NAMES
7789 fi
7790 ;;
7791esac
7792
7793# Sed substitution that helps us do robust quoting. It backslashifies
7794# metacharacters that are still active within double-quoted strings.
7795sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7796
7797# Same as above, but do not quote variable references.
7798double_quote_subst='s/\(["`\\]\)/\\\1/g'
7799
7800# Sed substitution to delay expansion of an escaped shell variable in a
7801# double_quote_subst'ed string.
7802delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7803
7804# Sed substitution to delay expansion of an escaped single quote.
7805delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7806
7807# Sed substitution to avoid accidental globbing in evaled expressions
7808no_glob_subst='s/\*/\\\*/g'
7809
7810# Global variables:
7811ofile=libtool
7812can_build_shared=yes
7813
7814# All known linkers require a `.a' archive for static linking (except MSVC,
7815# which needs '.lib').
7816libext=a
7817
7818with_gnu_ld="$lt_cv_prog_gnu_ld"
7819
7820old_CC="$CC"
7821old_CFLAGS="$CFLAGS"
7822
7823# Set sane defaults for various variables
7824test -z "$CC" && CC=cc
7825test -z "$LTCC" && LTCC=$CC
7826test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7827test -z "$LD" && LD=ld
7828test -z "$ac_objext" && ac_objext=o
7829
7830for cc_temp in $compiler""; do
7831 case $cc_temp in
7832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7834 \-*) ;;
7835 *) break;;
7836 esac
7837done
7838cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7839
7840
7841# Only perform the check for file, if the check method requires it
7842test -z "$MAGIC_CMD" && MAGIC_CMD=file
7843case $deplibs_check_method in
7844file_magic*)
7845 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7846 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7847echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7848if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7850else
7851 case $MAGIC_CMD in
7852[\\/*] | ?:[\\/]*)
7853 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7854 ;;
7855*)
7856 lt_save_MAGIC_CMD="$MAGIC_CMD"
7857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7858 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7859 for ac_dir in $ac_dummy; do
7860 IFS="$lt_save_ifs"
7861 test -z "$ac_dir" && ac_dir=.
7862 if test -f $ac_dir/${ac_tool_prefix}file; then
7863 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7864 if test -n "$file_magic_test_file"; then
7865 case $deplibs_check_method in
7866 "file_magic "*)
7867 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7869 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7870 $EGREP "$file_magic_regex" > /dev/null; then
7871 :
7872 else
7873 cat <<_LT_EOF 1>&2
7874
7875*** Warning: the command libtool uses to detect shared libraries,
7876*** $file_magic_cmd, produces output that libtool cannot recognize.
7877*** The result is that libtool may fail to recognize shared libraries
7878*** as such. This will affect the creation of libtool libraries that
7879*** depend on shared libraries, but programs linked with such libtool
7880*** libraries will work regardless of this problem. Nevertheless, you
7881*** may want to report the problem to your system manager and/or to
7882*** bug-libtool@gnu.org
7883
7884_LT_EOF
7885 fi ;;
7886 esac
7887 fi
7888 break
7889 fi
7890 done
7891 IFS="$lt_save_ifs"
7892 MAGIC_CMD="$lt_save_MAGIC_CMD"
7893 ;;
7894esac
7895fi
7896
7897MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7898if test -n "$MAGIC_CMD"; then
7899 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7900echo "${ECHO_T}$MAGIC_CMD" >&6
7901else
7902 echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904fi
7905
7906
7907
7908
7909
7910if test -z "$lt_cv_path_MAGIC_CMD"; then
7911 if test -n "$ac_tool_prefix"; then
7912 echo "$as_me:$LINENO: checking for file" >&5
7913echo $ECHO_N "checking for file... $ECHO_C" >&6
7914if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916else
7917 case $MAGIC_CMD in
7918[\\/*] | ?:[\\/]*)
7919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7920 ;;
7921*)
7922 lt_save_MAGIC_CMD="$MAGIC_CMD"
7923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7925 for ac_dir in $ac_dummy; do
7926 IFS="$lt_save_ifs"
7927 test -z "$ac_dir" && ac_dir=.
7928 if test -f $ac_dir/file; then
7929 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7930 if test -n "$file_magic_test_file"; then
7931 case $deplibs_check_method in
7932 "file_magic "*)
7933 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7936 $EGREP "$file_magic_regex" > /dev/null; then
7937 :
7938 else
7939 cat <<_LT_EOF 1>&2
7940
7941*** Warning: the command libtool uses to detect shared libraries,
7942*** $file_magic_cmd, produces output that libtool cannot recognize.
7943*** The result is that libtool may fail to recognize shared libraries
7944*** as such. This will affect the creation of libtool libraries that
7945*** depend on shared libraries, but programs linked with such libtool
7946*** libraries will work regardless of this problem. Nevertheless, you
7947*** may want to report the problem to your system manager and/or to
7948*** bug-libtool@gnu.org
7949
7950_LT_EOF
7951 fi ;;
7952 esac
7953 fi
7954 break
7955 fi
7956 done
7957 IFS="$lt_save_ifs"
7958 MAGIC_CMD="$lt_save_MAGIC_CMD"
7959 ;;
7960esac
7961fi
7962
7963MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7964if test -n "$MAGIC_CMD"; then
7965 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7966echo "${ECHO_T}$MAGIC_CMD" >&6
7967else
7968 echo "$as_me:$LINENO: result: no" >&5
7969echo "${ECHO_T}no" >&6
7970fi
7971
7972
7973 else
7974 MAGIC_CMD=:
7975 fi
7976fi
7977
7978 fi
7979 ;;
7980esac
7981
7982# Use C for the default configuration in the libtool script
7983
7984lt_save_CC="$CC"
7985ac_ext=c
7986ac_cpp='$CPP $CPPFLAGS'
7987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7989ac_compiler_gnu=$ac_cv_c_compiler_gnu
7990
7991
7992# Source file extension for C test sources.
7993ac_ext=c
7994
7995# Object file extension for compiled C test sources.
7996objext=o
7997objext=$objext
7998
7999# Code to be used in simple compile tests
8000lt_simple_compile_test_code="int some_variable = 0;"
8001
8002# Code to be used in simple link tests
8003lt_simple_link_test_code='int main(){return(0);}'
8004
8005
8006
8007
8008
8009
8010
8011# If no C compiler was specified, use CC.
8012LTCC=${LTCC-"$CC"}
8013
8014# If no C compiler flags were specified, use CFLAGS.
8015LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8016
8017# Allow CC to be a program name with arguments.
8018compiler=$CC
8019
8020# Save the default compiler, since it gets overwritten when the other
8021# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8022compiler_DEFAULT=$CC
8023
8024# save warnings/boilerplate of simple test code
8025ac_outfile=conftest.$ac_objext
8026echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8027eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8028_lt_compiler_boilerplate=`cat conftest.err`
8029$RM conftest*
8030
8031ac_outfile=conftest.$ac_objext
8032echo "$lt_simple_link_test_code" >conftest.$ac_ext
8033eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8034_lt_linker_boilerplate=`cat conftest.err`
8035$RM -r conftest*
8036
8037
8038## CAVEAT EMPTOR:
8039## There is no encapsulation within the following macros, do not change
8040## the running order or otherwise move them around unless you know exactly
8041## what you are doing...
8042if test -n "$compiler"; then
8043
8044lt_prog_compiler_no_builtin_flag=
8045
8046if test "$GCC" = yes; then
8047 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8048
8049 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8050echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8051if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 lt_cv_prog_compiler_rtti_exceptions=no
8055 ac_outfile=conftest.$ac_objext
8056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8057 lt_compiler_flag="-fno-rtti -fno-exceptions"
8058 # Insert the option either (1) after the last *FLAGS variable, or
8059 # (2) before a word containing "conftest.", or (3) at the end.
8060 # Note that $ac_compile itself does not contain backslashes and begins
8061 # with a dollar sign (not a hyphen), so the echo should work correctly.
8062 # The option is referenced via a variable to avoid confusing sed.
8063 lt_compile=`echo "$ac_compile" | $SED \
8064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8066 -e 's:$: $lt_compiler_flag:'`
8067 (eval echo "\"\$as_me:8067: $lt_compile\"" >&5)
8068 (eval "$lt_compile" 2>conftest.err)
8069 ac_status=$?
8070 cat conftest.err >&5
8071 echo "$as_me:8071: \$? = $ac_status" >&5
8072 if (exit $ac_status) && test -s "$ac_outfile"; then
8073 # The compiler can only warn and ignore the option if not recognized
8074 # So say no if there are warnings other than the usual output.
8075 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8078 lt_cv_prog_compiler_rtti_exceptions=yes
8079 fi
8080 fi
8081 $RM conftest*
8082
8083fi
8084echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8085echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8086
8087if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8088 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8089else
8090 :
8091fi
8092
8093fi
8094
8095
8096
8097
8098
8099
8100 lt_prog_compiler_wl=
8101lt_prog_compiler_pic=
8102lt_prog_compiler_static=
8103
8104echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8105echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8106
8107 if test "$GCC" = yes; then
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_static='-static'
8110
8111 case $host_os in
8112 aix*)
8113 # All AIX code is PIC.
8114 if test "$host_cpu" = ia64; then
8115 # AIX 5 now supports IA64 processor
8116 lt_prog_compiler_static='-Bstatic'
8117 fi
8118 ;;
8119
8120 amigaos*)
8121 case $host_cpu in
8122 powerpc)
8123 # see comment about AmigaOS4 .so support
8124 lt_prog_compiler_pic='-fPIC'
8125 ;;
8126 m68k)
8127 # FIXME: we need at least 68020 code to build shared libraries, but
8128 # adding the `-m68020' flag to GCC prevents building anything better,
8129 # like `-m68040'.
8130 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8131 ;;
8132 esac
8133 ;;
8134
8135 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8136 # PIC is the default for these OSes.
8137 ;;
8138
8139 mingw* | cygwin* | pw32* | os2* | cegcc*)
8140 # This hack is so that the source file can tell whether it is being
8141 # built for inclusion in a dll (and should export symbols for example).
8142 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8143 # (--disable-auto-import) libraries
8144 lt_prog_compiler_pic='-DDLL_EXPORT'
8145 ;;
8146
8147 darwin* | rhapsody*)
8148 # PIC is the default on this platform
8149 # Common symbols not allowed in MH_DYLIB files
8150 lt_prog_compiler_pic='-fno-common'
8151 ;;
8152
8153 hpux*)
8154 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8155 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8156 # sets the default TLS model and affects inlining.
8157 case $host_cpu in
8158 hppa*64*)
8159 # +Z the default
8160 ;;
8161 *)
8162 lt_prog_compiler_pic='-fPIC'
8163 ;;
8164 esac
8165 ;;
8166
8167 interix[3-9]*)
8168 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8169 # Instead, we relocate shared libraries at runtime.
8170 ;;
8171
8172 msdosdjgpp*)
8173 # Just because we use GCC doesn't mean we suddenly get shared libraries
8174 # on systems that don't support them.
8175 lt_prog_compiler_can_build_shared=no
8176 enable_shared=no
8177 ;;
8178
8179 *nto* | *qnx*)
8180 # QNX uses GNU C++, but need to define -shared option too, otherwise
8181 # it will coredump.
8182 lt_prog_compiler_pic='-fPIC -shared'
8183 ;;
8184
8185 sysv4*MP*)
8186 if test -d /usr/nec; then
8187 lt_prog_compiler_pic=-Kconform_pic
8188 fi
8189 ;;
8190
8191 *)
8192 lt_prog_compiler_pic='-fPIC'
8193 ;;
8194 esac
8195 else
8196 # PORTME Check for flag to pass linker flags through the system compiler.
8197 case $host_os in
8198 aix*)
8199 lt_prog_compiler_wl='-Wl,'
8200 if test "$host_cpu" = ia64; then
8201 # AIX 5 now supports IA64 processor
8202 lt_prog_compiler_static='-Bstatic'
8203 else
8204 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8205 fi
8206 ;;
8207
8208 mingw* | cygwin* | pw32* | os2* | cegcc*)
8209 # This hack is so that the source file can tell whether it is being
8210 # built for inclusion in a dll (and should export symbols for example).
8211 lt_prog_compiler_pic='-DDLL_EXPORT'
8212 ;;
8213
8214 hpux9* | hpux10* | hpux11*)
8215 lt_prog_compiler_wl='-Wl,'
8216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8217 # not for PA HP-UX.
8218 case $host_cpu in
8219 hppa*64*|ia64*)
8220 # +Z the default
8221 ;;
8222 *)
8223 lt_prog_compiler_pic='+Z'
8224 ;;
8225 esac
8226 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8227 lt_prog_compiler_static='${wl}-a ${wl}archive'
8228 ;;
8229
8230 irix5* | irix6* | nonstopux*)
8231 lt_prog_compiler_wl='-Wl,'
8232 # PIC (with -KPIC) is the default.
8233 lt_prog_compiler_static='-non_shared'
8234 ;;
8235
8236 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8237 case $cc_basename in
8238 # old Intel for x86_64 which still supported -KPIC.
8239 ecc*)
8240 lt_prog_compiler_wl='-Wl,'
8241 lt_prog_compiler_pic='-KPIC'
8242 lt_prog_compiler_static='-static'
8243 ;;
8244 # icc used to be incompatible with GCC.
8245 # ICC 10 doesn't accept -KPIC any more.
8246 icc* | ifort*)
8247 lt_prog_compiler_wl='-Wl,'
8248 lt_prog_compiler_pic='-fPIC'
8249 lt_prog_compiler_static='-static'
8250 ;;
8251 # Lahey Fortran 8.1.
8252 lf95*)
8253 lt_prog_compiler_wl='-Wl,'
8254 lt_prog_compiler_pic='--shared'
8255 lt_prog_compiler_static='--static'
8256 ;;
8257 pgcc* | pgf77* | pgf90* | pgf95*)
8258 # Portland Group compilers (*not* the Pentium gcc compiler,
8259 # which looks to be a dead project)
8260 lt_prog_compiler_wl='-Wl,'
8261 lt_prog_compiler_pic='-fpic'
8262 lt_prog_compiler_static='-Bstatic'
8263 ;;
8264 ccc*)
8265 lt_prog_compiler_wl='-Wl,'
8266 # All Alpha code is PIC.
8267 lt_prog_compiler_static='-non_shared'
8268 ;;
8269 xl*)
8270 # IBM XL C 8.0/Fortran 10.1 on PPC
8271 lt_prog_compiler_wl='-Wl,'
8272 lt_prog_compiler_pic='-qpic'
8273 lt_prog_compiler_static='-qstaticlink'
8274 ;;
8275 *)
8276 case `$CC -V 2>&1 | sed 5q` in
8277 *Sun\ C*)
8278 # Sun C 5.9
8279 lt_prog_compiler_pic='-KPIC'
8280 lt_prog_compiler_static='-Bstatic'
8281 lt_prog_compiler_wl='-Wl,'
8282 ;;
8283 *Sun\ F*)
8284 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8285 lt_prog_compiler_pic='-KPIC'
8286 lt_prog_compiler_static='-Bstatic'
8287 lt_prog_compiler_wl=''
8288 ;;
8289 esac
8290 ;;
8291 esac
8292 ;;
8293
8294 newsos6)
8295 lt_prog_compiler_pic='-KPIC'
8296 lt_prog_compiler_static='-Bstatic'
8297 ;;
8298
8299 *nto* | *qnx*)
8300 # QNX uses GNU C++, but need to define -shared option too, otherwise
8301 # it will coredump.
8302 lt_prog_compiler_pic='-fPIC -shared'
8303 ;;
8304
8305 osf3* | osf4* | osf5*)
8306 lt_prog_compiler_wl='-Wl,'
8307 # All OSF/1 code is PIC.
8308 lt_prog_compiler_static='-non_shared'
8309 ;;
8310
8311 rdos*)
8312 lt_prog_compiler_static='-non_shared'
8313 ;;
8314
8315 solaris*)
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-Bstatic'
8318 case $cc_basename in
8319 f77* | f90* | f95*)
8320 lt_prog_compiler_wl='-Qoption ld ';;
8321 *)
8322 lt_prog_compiler_wl='-Wl,';;
8323 esac
8324 ;;
8325
8326 sunos4*)
8327 lt_prog_compiler_wl='-Qoption ld '
8328 lt_prog_compiler_pic='-PIC'
8329 lt_prog_compiler_static='-Bstatic'
8330 ;;
8331
8332 sysv4 | sysv4.2uw2* | sysv4.3*)
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='-KPIC'
8335 lt_prog_compiler_static='-Bstatic'
8336 ;;
8337
8338 sysv4*MP*)
8339 if test -d /usr/nec ;then
8340 lt_prog_compiler_pic='-Kconform_pic'
8341 lt_prog_compiler_static='-Bstatic'
8342 fi
8343 ;;
8344
8345 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8346 lt_prog_compiler_wl='-Wl,'
8347 lt_prog_compiler_pic='-KPIC'
8348 lt_prog_compiler_static='-Bstatic'
8349 ;;
8350
8351 unicos*)
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_can_build_shared=no
8354 ;;
8355
8356 uts4*)
8357 lt_prog_compiler_pic='-pic'
8358 lt_prog_compiler_static='-Bstatic'
8359 ;;
8360
8361 *)
8362 lt_prog_compiler_can_build_shared=no
8363 ;;
8364 esac
8365 fi
8366
8367case $host_os in
8368 # For platforms which do not support PIC, -DPIC is meaningless:
8369 *djgpp*)
8370 lt_prog_compiler_pic=
8371 ;;
8372 *)
8373 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8374 ;;
8375esac
8376echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8377echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8378
8379
8380
8381
8382
8383
8384#
8385# Check to make sure the PIC flag actually works.
8386#
8387if test -n "$lt_prog_compiler_pic"; then
8388 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8389echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8390if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8392else
8393 lt_cv_prog_compiler_pic_works=no
8394 ac_outfile=conftest.$ac_objext
8395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8396 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8397 # Insert the option either (1) after the last *FLAGS variable, or
8398 # (2) before a word containing "conftest.", or (3) at the end.
8399 # Note that $ac_compile itself does not contain backslashes and begins
8400 # with a dollar sign (not a hyphen), so the echo should work correctly.
8401 # The option is referenced via a variable to avoid confusing sed.
8402 lt_compile=`echo "$ac_compile" | $SED \
8403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8405 -e 's:$: $lt_compiler_flag:'`
8406 (eval echo "\"\$as_me:8406: $lt_compile\"" >&5)
8407 (eval "$lt_compile" 2>conftest.err)
8408 ac_status=$?
8409 cat conftest.err >&5
8410 echo "$as_me:8410: \$? = $ac_status" >&5
8411 if (exit $ac_status) && test -s "$ac_outfile"; then
8412 # The compiler can only warn and ignore the option if not recognized
8413 # So say no if there are warnings other than the usual output.
8414 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8417 lt_cv_prog_compiler_pic_works=yes
8418 fi
8419 fi
8420 $RM conftest*
8421
8422fi
8423echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8424echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8425
8426if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8427 case $lt_prog_compiler_pic in
8428 "" | " "*) ;;
8429 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8430 esac
8431else
8432 lt_prog_compiler_pic=
8433 lt_prog_compiler_can_build_shared=no
8434fi
8435
8436fi
8437
8438
8439
8440
8441
8442
8443#
8444# Check to make sure the static flag actually works.
8445#
8446wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8447echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8448echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8449if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8451else
8452 lt_cv_prog_compiler_static_works=no
8453 save_LDFLAGS="$LDFLAGS"
8454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8455 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8457 # The linker can only warn and ignore the option if not recognized
8458 # So say no if there are warnings
8459 if test -s conftest.err; then
8460 # Append any errors to the config.log.
8461 cat conftest.err 1>&5
8462 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8464 if diff conftest.exp conftest.er2 >/dev/null; then
8465 lt_cv_prog_compiler_static_works=yes
8466 fi
8467 else
8468 lt_cv_prog_compiler_static_works=yes
8469 fi
8470 fi
8471 $RM -r conftest*
8472 LDFLAGS="$save_LDFLAGS"
8473
8474fi
8475echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8476echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8477
8478if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8479 :
8480else
8481 lt_prog_compiler_static=
8482fi
8483
8484
8485
8486
8487
8488
8489
8490 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8491echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8492if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494else
8495 lt_cv_prog_compiler_c_o=no
8496 $RM -r conftest 2>/dev/null
8497 mkdir conftest
8498 cd conftest
8499 mkdir out
8500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8501
8502 lt_compiler_flag="-o out/conftest2.$ac_objext"
8503 # Insert the option either (1) after the last *FLAGS variable, or
8504 # (2) before a word containing "conftest.", or (3) at the end.
8505 # Note that $ac_compile itself does not contain backslashes and begins
8506 # with a dollar sign (not a hyphen), so the echo should work correctly.
8507 lt_compile=`echo "$ac_compile" | $SED \
8508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8510 -e 's:$: $lt_compiler_flag:'`
8511 (eval echo "\"\$as_me:8511: $lt_compile\"" >&5)
8512 (eval "$lt_compile" 2>out/conftest.err)
8513 ac_status=$?
8514 cat out/conftest.err >&5
8515 echo "$as_me:8515: \$? = $ac_status" >&5
8516 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8517 then
8518 # The compiler can only warn and ignore the option if not recognized
8519 # So say no if there are warnings
8520 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8521 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8522 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8523 lt_cv_prog_compiler_c_o=yes
8524 fi
8525 fi
8526 chmod u+w . 2>&5
8527 $RM conftest*
8528 # SGI C++ compiler will create directory out/ii_files/ for
8529 # template instantiation
8530 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8531 $RM out/* && rmdir out
8532 cd ..
8533 $RM -r conftest
8534 $RM conftest*
8535
8536fi
8537echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8538echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8539
8540
8541
8542
8543
8544
8545 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8546echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8547if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8549else
8550 lt_cv_prog_compiler_c_o=no
8551 $RM -r conftest 2>/dev/null
8552 mkdir conftest
8553 cd conftest
8554 mkdir out
8555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8556
8557 lt_compiler_flag="-o out/conftest2.$ac_objext"
8558 # Insert the option either (1) after the last *FLAGS variable, or
8559 # (2) before a word containing "conftest.", or (3) at the end.
8560 # Note that $ac_compile itself does not contain backslashes and begins
8561 # with a dollar sign (not a hyphen), so the echo should work correctly.
8562 lt_compile=`echo "$ac_compile" | $SED \
8563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565 -e 's:$: $lt_compiler_flag:'`
8566 (eval echo "\"\$as_me:8566: $lt_compile\"" >&5)
8567 (eval "$lt_compile" 2>out/conftest.err)
8568 ac_status=$?
8569 cat out/conftest.err >&5
8570 echo "$as_me:8570: \$? = $ac_status" >&5
8571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8572 then
8573 # The compiler can only warn and ignore the option if not recognized
8574 # So say no if there are warnings
8575 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8578 lt_cv_prog_compiler_c_o=yes
8579 fi
8580 fi
8581 chmod u+w . 2>&5
8582 $RM conftest*
8583 # SGI C++ compiler will create directory out/ii_files/ for
8584 # template instantiation
8585 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8586 $RM out/* && rmdir out
8587 cd ..
8588 $RM -r conftest
8589 $RM conftest*
8590
8591fi
8592echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8593echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8594
8595
8596
8597
8598hard_links="nottested"
8599if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8600 # do not overwrite the value of need_locks provided by the user
8601 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8602echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8603 hard_links=yes
8604 $RM conftest*
8605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8606 touch conftest.a
8607 ln conftest.a conftest.b 2>&5 || hard_links=no
8608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8609 echo "$as_me:$LINENO: result: $hard_links" >&5
8610echo "${ECHO_T}$hard_links" >&6
8611 if test "$hard_links" = no; then
8612 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8613echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8614 need_locks=warn
8615 fi
8616else
8617 need_locks=no
8618fi
8619
8620
8621
8622
8623
8624
8625 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8626echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8627
8628 runpath_var=
8629 allow_undefined_flag=
8630 always_export_symbols=no
8631 archive_cmds=
8632 archive_expsym_cmds=
8633 compiler_needs_object=no
8634 enable_shared_with_static_runtimes=no
8635 export_dynamic_flag_spec=
8636 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8637 hardcode_automatic=no
8638 hardcode_direct=no
8639 hardcode_direct_absolute=no
8640 hardcode_libdir_flag_spec=
8641 hardcode_libdir_flag_spec_ld=
8642 hardcode_libdir_separator=
8643 hardcode_minus_L=no
8644 hardcode_shlibpath_var=unsupported
8645 inherit_rpath=no
8646 link_all_deplibs=unknown
8647 module_cmds=
8648 module_expsym_cmds=
8649 old_archive_from_new_cmds=
8650 old_archive_from_expsyms_cmds=
8651 thread_safe_flag_spec=
8652 whole_archive_flag_spec=
8653 # include_expsyms should be a list of space-separated symbols to be *always*
8654 # included in the symbol list
8655 include_expsyms=
8656 # exclude_expsyms can be an extended regexp of symbols to exclude
8657 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8659 # as well as any symbol that contains `d'.
8660 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8662 # platforms (ab)use it in PIC code, but their linkers get confused if
8663 # the symbol is explicitly referenced. Since portable code cannot
8664 # rely on this symbol name, it's probably fine to never include it in
8665 # preloaded symbol tables.
8666 # Exclude shared library initialization/finalization symbols.
8667 extract_expsyms_cmds=
8668
8669 case $host_os in
8670 cygwin* | mingw* | pw32* | cegcc*)
8671 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8672 # When not using gcc, we currently assume that we are using
8673 # Microsoft Visual C++.
8674 if test "$GCC" != yes; then
8675 with_gnu_ld=no
8676 fi
8677 ;;
8678 interix*)
8679 # we just hope/assume this is gcc and not c89 (= MSVC++)
8680 with_gnu_ld=yes
8681 ;;
8682 openbsd*)
8683 with_gnu_ld=no
8684 ;;
8685 esac
8686
8687 ld_shlibs=yes
8688 if test "$with_gnu_ld" = yes; then
8689 # If archive_cmds runs LD, not CC, wlarc should be empty
8690 wlarc='${wl}'
8691
8692 # Set some defaults for GNU ld with shared library support. These
8693 # are reset later if shared libraries are not supported. Putting them
8694 # here allows them to be overridden if necessary.
8695 runpath_var=LD_RUN_PATH
8696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8697 export_dynamic_flag_spec='${wl}--export-dynamic'
8698 # ancient GNU ld didn't support --whole-archive et. al.
8699 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8700 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8701 else
8702 whole_archive_flag_spec=
8703 fi
8704 supports_anon_versioning=no
8705 case `$LD -v 2>&1` in
8706 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8707 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8708 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8709 *\ 2.11.*) ;; # other 2.11 versions
8710 *) supports_anon_versioning=yes ;;
8711 esac
8712
8713 # See if GNU ld supports shared libraries.
8714 case $host_os in
8715 aix[3-9]*)
8716 # On AIX/PPC, the GNU linker is very broken
8717 if test "$host_cpu" != ia64; then
8718 ld_shlibs=no
8719 cat <<_LT_EOF 1>&2
8720
8721*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8722*** to be unable to reliably create shared libraries on AIX.
8723*** Therefore, libtool is disabling shared libraries support. If you
8724*** really care for shared libraries, you may want to modify your PATH
8725*** so that a non-GNU linker is found, and then restart.
8726
8727_LT_EOF
8728 fi
8729 ;;
8730
8731 amigaos*)
8732 case $host_cpu in
8733 powerpc)
8734 # see comment about AmigaOS4 .so support
8735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8736 archive_expsym_cmds=''
8737 ;;
8738 m68k)
8739 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)'
8740 hardcode_libdir_flag_spec='-L$libdir'
8741 hardcode_minus_L=yes
8742 ;;
8743 esac
8744 ;;
8745
8746 beos*)
8747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8748 allow_undefined_flag=unsupported
8749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8750 # support --undefined. This deserves some investigation. FIXME
8751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752 else
8753 ld_shlibs=no
8754 fi
8755 ;;
8756
8757 cygwin* | mingw* | pw32* | cegcc*)
8758 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8759 # as there is no search path for DLLs.
8760 hardcode_libdir_flag_spec='-L$libdir'
8761 allow_undefined_flag=unsupported
8762 always_export_symbols=no
8763 enable_shared_with_static_runtimes=yes
8764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8765
8766 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8768 # If the export-symbols file already is a .def file (1st line
8769 # is EXPORTS), use it as is; otherwise, prepend...
8770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8771 cp $export_symbols $output_objdir/$soname.def;
8772 else
8773 echo EXPORTS > $output_objdir/$soname.def;
8774 cat $export_symbols >> $output_objdir/$soname.def;
8775 fi~
8776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8777 else
8778 ld_shlibs=no
8779 fi
8780 ;;
8781
8782 interix[3-9]*)
8783 hardcode_direct=no
8784 hardcode_shlibpath_var=no
8785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8786 export_dynamic_flag_spec='${wl}-E'
8787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8788 # Instead, shared libraries are loaded at an image base (0x10000000 by
8789 # default) and relocated if they conflict, which is a slow very memory
8790 # consuming and fragmenting process. To avoid this, we pick a random,
8791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8793 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8794 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'
8795 ;;
8796
8797 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8798 tmp_diet=no
8799 if test "$host_os" = linux-dietlibc; then
8800 case $cc_basename in
8801 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8802 esac
8803 fi
8804 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8805 && test "$tmp_diet" = no
8806 then
8807 tmp_addflag=
8808 tmp_sharedflag='-shared'
8809 case $cc_basename,$host_cpu in
8810 pgcc*) # Portland Group C compiler
8811 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'
8812 tmp_addflag=' $pic_flag'
8813 ;;
8814 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8815 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'
8816 tmp_addflag=' $pic_flag -Mnomain' ;;
8817 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8818 tmp_addflag=' -i_dynamic' ;;
8819 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8820 tmp_addflag=' -i_dynamic -nofor_main' ;;
8821 ifc* | ifort*) # Intel Fortran compiler
8822 tmp_addflag=' -nofor_main' ;;
8823 lf95*) # Lahey Fortran 8.1
8824 whole_archive_flag_spec=
8825 tmp_sharedflag='--shared' ;;
8826 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8827 tmp_sharedflag='-qmkshrobj'
8828 tmp_addflag= ;;
8829 esac
8830 case `$CC -V 2>&1 | sed 5q` in
8831 *Sun\ C*) # Sun C 5.9
8832 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'
8833 compiler_needs_object=yes
8834 tmp_sharedflag='-G' ;;
8835 *Sun\ F*) # Sun Fortran 8.3
8836 tmp_sharedflag='-G' ;;
8837 esac
8838 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839
8840 if test "x$supports_anon_versioning" = xyes; then
8841 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8843 echo "local: *; };" >> $output_objdir/$libname.ver~
8844 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8845 fi
8846
8847 case $cc_basename in
8848 xlf*)
8849 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8850 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8851 hardcode_libdir_flag_spec=
8852 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8853 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8854 if test "x$supports_anon_versioning" = xyes; then
8855 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8857 echo "local: *; };" >> $output_objdir/$libname.ver~
8858 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8859 fi
8860 ;;
8861 esac
8862 else
8863 ld_shlibs=no
8864 fi
8865 ;;
8866
8867 netbsd*)
8868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8869 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8870 wlarc=
8871 else
8872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8874 fi
8875 ;;
8876
8877 solaris*)
8878 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8879 ld_shlibs=no
8880 cat <<_LT_EOF 1>&2
8881
8882*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8883*** create shared libraries on Solaris systems. Therefore, libtool
8884*** is disabling shared libraries support. We urge you to upgrade GNU
8885*** binutils to release 2.9.1 or newer. Another option is to modify
8886*** your PATH or compiler configuration so that the native linker is
8887*** used, and then restart.
8888
8889_LT_EOF
8890 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8893 else
8894 ld_shlibs=no
8895 fi
8896 ;;
8897
8898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8899 case `$LD -v 2>&1` in
8900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8901 ld_shlibs=no
8902 cat <<_LT_EOF 1>&2
8903
8904*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8905*** reliably create shared libraries on SCO systems. Therefore, libtool
8906*** is disabling shared libraries support. We urge you to upgrade GNU
8907*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8908*** your PATH or compiler configuration so that the native linker is
8909*** used, and then restart.
8910
8911_LT_EOF
8912 ;;
8913 *)
8914 # For security reasons, it is highly recommended that you always
8915 # use absolute paths for naming shared libraries, and exclude the
8916 # DT_RUNPATH tag from executables and libraries. But doing so
8917 # requires that you compile everything twice, which is a pain.
8918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8922 else
8923 ld_shlibs=no
8924 fi
8925 ;;
8926 esac
8927 ;;
8928
8929 sunos4*)
8930 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8931 wlarc=
8932 hardcode_direct=yes
8933 hardcode_shlibpath_var=no
8934 ;;
8935
8936 *)
8937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8940 else
8941 ld_shlibs=no
8942 fi
8943 ;;
8944 esac
8945
8946 if test "$ld_shlibs" = no; then
8947 runpath_var=
8948 hardcode_libdir_flag_spec=
8949 export_dynamic_flag_spec=
8950 whole_archive_flag_spec=
8951 fi
8952 else
8953 # PORTME fill in a description of your system's linker (not GNU ld)
8954 case $host_os in
8955 aix3*)
8956 allow_undefined_flag=unsupported
8957 always_export_symbols=yes
8958 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'
8959 # Note: this linker hardcodes the directories in LIBPATH if there
8960 # are no directories specified by -L.
8961 hardcode_minus_L=yes
8962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8963 # Neither direct hardcoding nor static linking is supported with a
8964 # broken collect2.
8965 hardcode_direct=unsupported
8966 fi
8967 ;;
8968
8969 aix[4-9]*)
8970 if test "$host_cpu" = ia64; then
8971 # On IA64, the linker does run time linking by default, so we don't
8972 # have to do anything special.
8973 aix_use_runtimelinking=no
8974 exp_sym_flag='-Bexport'
8975 no_entry_flag=""
8976 else
8977 # If we're using GNU nm, then we don't want the "-C" option.
8978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8979 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8980 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'
8981 else
8982 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'
8983 fi
8984 aix_use_runtimelinking=no
8985
8986 # Test if we are trying to use run time linking or normal
8987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8988 # need to do runtime linking.
8989 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8990 for ld_flag in $LDFLAGS; do
8991 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8992 aix_use_runtimelinking=yes
8993 break
8994 fi
8995 done
8996 ;;
8997 esac
8998
8999 exp_sym_flag='-bexport'
9000 no_entry_flag='-bnoentry'
9001 fi
9002
9003 # When large executables or shared objects are built, AIX ld can
9004 # have problems creating the table of contents. If linking a library
9005 # or program results in "error TOC overflow" add -mminimal-toc to
9006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9008
9009 archive_cmds=''
9010 hardcode_direct=yes
9011 hardcode_direct_absolute=yes
9012 hardcode_libdir_separator=':'
9013 link_all_deplibs=yes
9014 file_list_spec='${wl}-f,'
9015
9016 if test "$GCC" = yes; then
9017 case $host_os in aix4.[012]|aix4.[012].*)
9018 # We only want to do this on AIX 4.2 and lower, the check
9019 # below for broken collect2 doesn't work under 4.3+
9020 collect2name=`${CC} -print-prog-name=collect2`
9021 if test -f "$collect2name" &&
9022 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9023 then
9024 # We have reworked collect2
9025 :
9026 else
9027 # We have old collect2
9028 hardcode_direct=unsupported
9029 # It fails to find uninstalled libraries when the uninstalled
9030 # path is not listed in the libpath. Setting hardcode_minus_L
9031 # to unsupported forces relinking
9032 hardcode_minus_L=yes
9033 hardcode_libdir_flag_spec='-L$libdir'
9034 hardcode_libdir_separator=
9035 fi
9036 ;;
9037 esac
9038 shared_flag='-shared'
9039 if test "$aix_use_runtimelinking" = yes; then
9040 shared_flag="$shared_flag "'${wl}-G'
9041 fi
9042 else
9043 # not using gcc
9044 if test "$host_cpu" = ia64; then
9045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9046 # chokes on -Wl,-G. The following line is correct:
9047 shared_flag='-G'
9048 else
9049 if test "$aix_use_runtimelinking" = yes; then
9050 shared_flag='${wl}-G'
9051 else
9052 shared_flag='${wl}-bM:SRE'
9053 fi
9054 fi
9055 fi
9056
9057 export_dynamic_flag_spec='${wl}-bexpall'
9058 # It seems that -bexpall does not export symbols beginning with
9059 # underscore (_), so it is better to generate a list of symbols to export.
9060 always_export_symbols=yes
9061 if test "$aix_use_runtimelinking" = yes; then
9062 # Warning - without using the other runtime loading flags (-brtl),
9063 # -berok will link without error, but may produce a broken library.
9064 allow_undefined_flag='-berok'
9065 # Determine the default libpath from the value encoded in an
9066 # empty executable.
9067 cat >conftest.$ac_ext <<_ACEOF
9068/* confdefs.h. */
9069_ACEOF
9070cat confdefs.h >>conftest.$ac_ext
9071cat >>conftest.$ac_ext <<_ACEOF
9072/* end confdefs.h. */
9073
9074int
9075main ()
9076{
9077
9078 ;
9079 return 0;
9080}
9081_ACEOF
9082rm -f conftest.$ac_objext conftest$ac_exeext
9083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084 (eval $ac_link) 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
9091 { ac_try='test -z "$ac_c_werror_flag"
9092 || test ! -s conftest.err'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; } &&
9098 { ac_try='test -s conftest$ac_exeext'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104
9105lt_aix_libpath_sed='
9106 /Import File Strings/,/^$/ {
9107 /^0/ {
9108 s/^0 *\(.*\)$/\1/
9109 p
9110 }
9111 }'
9112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9113# Check for a 64-bit object if we didn't find anything.
9114if test -z "$aix_libpath"; then
9115 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9116fi
9117else
9118 echo "$as_me: failed program was:" >&5
9119sed 's/^/| /' conftest.$ac_ext >&5
9120
9121fi
9122rm -f conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9125
9126 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9127 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"
9128 else
9129 if test "$host_cpu" = ia64; then
9130 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9131 allow_undefined_flag="-z nodefs"
9132 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"
9133 else
9134 # Determine the default libpath from the value encoded in an
9135 # empty executable.
9136 cat >conftest.$ac_ext <<_ACEOF
9137/* confdefs.h. */
9138_ACEOF
9139cat confdefs.h >>conftest.$ac_ext
9140cat >>conftest.$ac_ext <<_ACEOF
9141/* end confdefs.h. */
9142
9143int
9144main ()
9145{
9146
9147 ;
9148 return 0;
9149}
9150_ACEOF
9151rm -f conftest.$ac_objext conftest$ac_exeext
9152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153 (eval $ac_link) 2>conftest.er1
9154 ac_status=$?
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -z "$ac_c_werror_flag"
9161 || test ! -s conftest.err'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; } &&
9167 { ac_try='test -s conftest$ac_exeext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173
9174lt_aix_libpath_sed='
9175 /Import File Strings/,/^$/ {
9176 /^0/ {
9177 s/^0 *\(.*\)$/\1/
9178 p
9179 }
9180 }'
9181aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9182# Check for a 64-bit object if we didn't find anything.
9183if test -z "$aix_libpath"; then
9184 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185fi
9186else
9187 echo "$as_me: failed program was:" >&5
9188sed 's/^/| /' conftest.$ac_ext >&5
9189
9190fi
9191rm -f conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
9193if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9194
9195 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9196 # Warning - without using the other run time loading flags,
9197 # -berok will link without error, but may produce a broken library.
9198 no_undefined_flag=' ${wl}-bernotok'
9199 allow_undefined_flag=' ${wl}-berok'
9200 # Exported symbols can be pulled into shared objects from archives
9201 whole_archive_flag_spec='$convenience'
9202 archive_cmds_need_lc=yes
9203 # This is similar to how AIX traditionally builds its shared libraries.
9204 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'
9205 fi
9206 fi
9207 ;;
9208
9209 amigaos*)
9210 case $host_cpu in
9211 powerpc)
9212 # see comment about AmigaOS4 .so support
9213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds=''
9215 ;;
9216 m68k)
9217 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)'
9218 hardcode_libdir_flag_spec='-L$libdir'
9219 hardcode_minus_L=yes
9220 ;;
9221 esac
9222 ;;
9223
9224 bsdi[45]*)
9225 export_dynamic_flag_spec=-rdynamic
9226 ;;
9227
9228 cygwin* | mingw* | pw32* | cegcc*)
9229 # When not using gcc, we currently assume that we are using
9230 # Microsoft Visual C++.
9231 # hardcode_libdir_flag_spec is actually meaningless, as there is
9232 # no search path for DLLs.
9233 hardcode_libdir_flag_spec=' '
9234 allow_undefined_flag=unsupported
9235 # Tell ltmain to make .lib files, not .a files.
9236 libext=lib
9237 # Tell ltmain to make .dll files, not .so files.
9238 shrext_cmds=".dll"
9239 # FIXME: Setting linknames here is a bad hack.
9240 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9241 # The linker will automatically build a .lib file if we build a DLL.
9242 old_archive_from_new_cmds='true'
9243 # FIXME: Should let the user specify the lib program.
9244 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9245 fix_srcfile_path='`cygpath -w "$srcfile"`'
9246 enable_shared_with_static_runtimes=yes
9247 ;;
9248
9249 darwin* | rhapsody*)
9250
9251
9252 archive_cmds_need_lc=no
9253 hardcode_direct=no
9254 hardcode_automatic=yes
9255 hardcode_shlibpath_var=unsupported
9256 whole_archive_flag_spec=''
9257 link_all_deplibs=yes
9258 allow_undefined_flag="$_lt_dar_allow_undefined"
9259 case $cc_basename in
9260 ifort*) _lt_dar_can_shared=yes ;;
9261 *) _lt_dar_can_shared=$GCC ;;
9262 esac
9263 if test "$_lt_dar_can_shared" = "yes"; then
9264 output_verbose_link_cmd=echo
9265 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9266 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9267 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}"
9268 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}"
9269
9270 else
9271 ld_shlibs=no
9272 fi
9273
9274 ;;
9275
9276 dgux*)
9277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_shlibpath_var=no
9280 ;;
9281
9282 freebsd1*)
9283 ld_shlibs=no
9284 ;;
9285
9286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9287 # support. Future versions do this automatically, but an explicit c++rt0.o
9288 # does not break anything, and helps significantly (at the cost of a little
9289 # extra space).
9290 freebsd2.2*)
9291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9292 hardcode_libdir_flag_spec='-R$libdir'
9293 hardcode_direct=yes
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9298 freebsd2*)
9299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9300 hardcode_direct=yes
9301 hardcode_minus_L=yes
9302 hardcode_shlibpath_var=no
9303 ;;
9304
9305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9306 freebsd* | dragonfly*)
9307 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9308 hardcode_libdir_flag_spec='-R$libdir'
9309 hardcode_direct=yes
9310 hardcode_shlibpath_var=no
9311 ;;
9312
9313 hpux9*)
9314 if test "$GCC" = yes; then
9315 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'
9316 else
9317 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'
9318 fi
9319 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9320 hardcode_libdir_separator=:
9321 hardcode_direct=yes
9322
9323 # hardcode_minus_L: Not really in the search PATH,
9324 # but as the default location of the library.
9325 hardcode_minus_L=yes
9326 export_dynamic_flag_spec='${wl}-E'
9327 ;;
9328
9329 hpux10*)
9330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9331 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9332 else
9333 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9334 fi
9335 if test "$with_gnu_ld" = no; then
9336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9337 hardcode_libdir_flag_spec_ld='+b $libdir'
9338 hardcode_libdir_separator=:
9339 hardcode_direct=yes
9340 hardcode_direct_absolute=yes
9341 export_dynamic_flag_spec='${wl}-E'
9342 # hardcode_minus_L: Not really in the search PATH,
9343 # but as the default location of the library.
9344 hardcode_minus_L=yes
9345 fi
9346 ;;
9347
9348 hpux11*)
9349 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9350 case $host_cpu in
9351 hppa*64*)
9352 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 ;;
9354 ia64*)
9355 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9356 ;;
9357 *)
9358 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359 ;;
9360 esac
9361 else
9362 case $host_cpu in
9363 hppa*64*)
9364 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 ;;
9366 ia64*)
9367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9368 ;;
9369 *)
9370 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9371 ;;
9372 esac
9373 fi
9374 if test "$with_gnu_ld" = no; then
9375 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9376 hardcode_libdir_separator=:
9377
9378 case $host_cpu in
9379 hppa*64*|ia64*)
9380 hardcode_direct=no
9381 hardcode_shlibpath_var=no
9382 ;;
9383 *)
9384 hardcode_direct=yes
9385 hardcode_direct_absolute=yes
9386 export_dynamic_flag_spec='${wl}-E'
9387
9388 # hardcode_minus_L: Not really in the search PATH,
9389 # but as the default location of the library.
9390 hardcode_minus_L=yes
9391 ;;
9392 esac
9393 fi
9394 ;;
9395
9396 irix5* | irix6* | nonstopux*)
9397 if test "$GCC" = yes; then
9398 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'
9399 # Try to use the -exported_symbol ld option, if it does not
9400 # work, assume that -exports_file does not work either and
9401 # implicitly export all symbols.
9402 save_LDFLAGS="$LDFLAGS"
9403 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9404 cat >conftest.$ac_ext <<_ACEOF
9405int foo(void) {}
9406_ACEOF
9407rm -f conftest.$ac_objext conftest$ac_exeext
9408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -z "$ac_c_werror_flag"
9417 || test ! -s conftest.err'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 (eval $ac_try) 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; } &&
9423 { ac_try='test -s conftest$ac_exeext'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 (eval $ac_try) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9429 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'
9430
9431else
9432 echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435fi
9436rm -f conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 LDFLAGS="$save_LDFLAGS"
9439 else
9440 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'
9441 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'
9442 fi
9443 archive_cmds_need_lc='no'
9444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445 hardcode_libdir_separator=:
9446 inherit_rpath=yes
9447 link_all_deplibs=yes
9448 ;;
9449
9450 netbsd*)
9451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9453 else
9454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9455 fi
9456 hardcode_libdir_flag_spec='-R$libdir'
9457 hardcode_direct=yes
9458 hardcode_shlibpath_var=no
9459 ;;
9460
9461 newsos6)
9462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463 hardcode_direct=yes
9464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465 hardcode_libdir_separator=:
9466 hardcode_shlibpath_var=no
9467 ;;
9468
9469 *nto* | *qnx*)
9470 ;;
9471
9472 openbsd*)
9473 if test -f /usr/libexec/ld.so; then
9474 hardcode_direct=yes
9475 hardcode_shlibpath_var=no
9476 hardcode_direct_absolute=yes
9477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481 export_dynamic_flag_spec='${wl}-E'
9482 else
9483 case $host_os in
9484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_libdir_flag_spec='-R$libdir'
9487 ;;
9488 *)
9489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9491 ;;
9492 esac
9493 fi
9494 else
9495 ld_shlibs=no
9496 fi
9497 ;;
9498
9499 os2*)
9500 hardcode_libdir_flag_spec='-L$libdir'
9501 hardcode_minus_L=yes
9502 allow_undefined_flag=unsupported
9503 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'
9504 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9505 ;;
9506
9507 osf3*)
9508 if test "$GCC" = yes; then
9509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9510 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'
9511 else
9512 allow_undefined_flag=' -expect_unresolved \*'
9513 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'
9514 fi
9515 archive_cmds_need_lc='no'
9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9517 hardcode_libdir_separator=:
9518 ;;
9519
9520 osf4* | osf5*) # as osf3* with the addition of -msym flag
9521 if test "$GCC" = yes; then
9522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9523 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'
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525 else
9526 allow_undefined_flag=' -expect_unresolved \*'
9527 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'
9528 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~
9529 $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'
9530
9531 # Both c and cxx compiler support -rpath directly
9532 hardcode_libdir_flag_spec='-rpath $libdir'
9533 fi
9534 archive_cmds_need_lc='no'
9535 hardcode_libdir_separator=:
9536 ;;
9537
9538 solaris*)
9539 no_undefined_flag=' -z defs'
9540 if test "$GCC" = yes; then
9541 wlarc='${wl}'
9542 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9543 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9544 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9545 else
9546 case `$CC -V 2>&1` in
9547 *"Compilers 5.0"*)
9548 wlarc=''
9549 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9552 ;;
9553 *)
9554 wlarc='${wl}'
9555 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9557 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9558 ;;
9559 esac
9560 fi
9561 hardcode_libdir_flag_spec='-R$libdir'
9562 hardcode_shlibpath_var=no
9563 case $host_os in
9564 solaris2.[0-5] | solaris2.[0-5].*) ;;
9565 *)
9566 # The compiler driver will combine and reorder linker options,
9567 # but understands `-z linker_flag'. GCC discards it without `$wl',
9568 # but is careful enough not to reorder.
9569 # Supported since Solaris 2.6 (maybe 2.5.1?)
9570 if test "$GCC" = yes; then
9571 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9572 else
9573 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9574 fi
9575 ;;
9576 esac
9577 link_all_deplibs=yes
9578 ;;
9579
9580 sunos4*)
9581 if test "x$host_vendor" = xsequent; then
9582 # Use $CC to link under sequent, because it throws in some extra .o
9583 # files that make .init and .fini sections work.
9584 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9585 else
9586 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9587 fi
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_direct=yes
9590 hardcode_minus_L=yes
9591 hardcode_shlibpath_var=no
9592 ;;
9593
9594 sysv4)
9595 case $host_vendor in
9596 sni)
9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_direct=yes # is this really true???
9599 ;;
9600 siemens)
9601 ## LD is ld it makes a PLAMLIB
9602 ## CC just makes a GrossModule.
9603 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9604 reload_cmds='$CC -r -o $output$reload_objs'
9605 hardcode_direct=no
9606 ;;
9607 motorola)
9608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9610 ;;
9611 esac
9612 runpath_var='LD_RUN_PATH'
9613 hardcode_shlibpath_var=no
9614 ;;
9615
9616 sysv4.3*)
9617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618 hardcode_shlibpath_var=no
9619 export_dynamic_flag_spec='-Bexport'
9620 ;;
9621
9622 sysv4*MP*)
9623 if test -d /usr/nec; then
9624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9625 hardcode_shlibpath_var=no
9626 runpath_var=LD_RUN_PATH
9627 hardcode_runpath_var=yes
9628 ld_shlibs=yes
9629 fi
9630 ;;
9631
9632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9633 no_undefined_flag='${wl}-z,text'
9634 archive_cmds_need_lc=no
9635 hardcode_shlibpath_var=no
9636 runpath_var='LD_RUN_PATH'
9637
9638 if test "$GCC" = yes; then
9639 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9641 else
9642 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9644 fi
9645 ;;
9646
9647 sysv5* | sco3.2v5* | sco5v6*)
9648 # Note: We can NOT use -z defs as we might desire, because we do not
9649 # link with -lc, and that would cause any symbols used from libc to
9650 # always be unresolved, which means just about no library would
9651 # ever link correctly. If we're not using GNU ld we use -z text
9652 # though, which does catch some bad symbols but isn't as heavy-handed
9653 # as -z defs.
9654 no_undefined_flag='${wl}-z,text'
9655 allow_undefined_flag='${wl}-z,nodefs'
9656 archive_cmds_need_lc=no
9657 hardcode_shlibpath_var=no
9658 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9659 hardcode_libdir_separator=':'
9660 link_all_deplibs=yes
9661 export_dynamic_flag_spec='${wl}-Bexport'
9662 runpath_var='LD_RUN_PATH'
9663
9664 if test "$GCC" = yes; then
9665 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 else
9668 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9670 fi
9671 ;;
9672
9673 uts4*)
9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_shlibpath_var=no
9677 ;;
9678
9679 *)
9680 ld_shlibs=no
9681 ;;
9682 esac
9683
9684 if test x$host_vendor = xsni; then
9685 case $host in
9686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9687 export_dynamic_flag_spec='${wl}-Blargedynsym'
9688 ;;
9689 esac
9690 fi
9691 fi
9692
9693echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9694echo "${ECHO_T}$ld_shlibs" >&6
9695test "$ld_shlibs" = no && can_build_shared=no
9696
9697with_gnu_ld=$with_gnu_ld
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713#
9714# Do we need to explicitly link libc?
9715#
9716case "x$archive_cmds_need_lc" in
9717x|xyes)
9718 # Assume -lc should be added
9719 archive_cmds_need_lc=yes
9720
9721 if test "$enable_shared" = yes && test "$GCC" = yes; then
9722 case $archive_cmds in
9723 *'~'*)
9724 # FIXME: we may have to deal with multi-command sequences.
9725 ;;
9726 '$CC '*)
9727 # Test whether the compiler implicitly links with -lc since on some
9728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9729 # to ld, don't add -lc before -lgcc.
9730 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9731echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9732if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734else
9735 $RM conftest*
9736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9737
9738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9739 (eval $ac_compile) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } 2>conftest.err; then
9743 soname=conftest
9744 lib=conftest
9745 libobjs=conftest.$ac_objext
9746 deplibs=
9747 wl=$lt_prog_compiler_wl
9748 pic_flag=$lt_prog_compiler_pic
9749 compiler_flags=-v
9750 linker_flags=-v
9751 verstring=
9752 output_objdir=.
9753 libname=conftest
9754 lt_save_allow_undefined_flag=$allow_undefined_flag
9755 allow_undefined_flag=
9756 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9757 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }
9761 then
9762 lt_cv_archive_cmds_need_lc=no
9763 else
9764 lt_cv_archive_cmds_need_lc=yes
9765 fi
9766 allow_undefined_flag=$lt_save_allow_undefined_flag
9767 else
9768 cat conftest.err 1>&5
9769 fi
9770 $RM conftest*
9771
9772fi
9773echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9774echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9775 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9776 ;;
9777 esac
9778 fi
9779 ;;
9780esac
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9939echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9940
9941if test "$GCC" = yes; then
9942 case $host_os in
9943 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9944 *) lt_awk_arg="/^libraries:/" ;;
9945 esac
9946 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9947 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9948 # if the path contains ";" then we assume it to be the separator
9949 # otherwise default to the standard path separator (i.e. ":") - it is
9950 # assumed that no part of a normal pathname contains ";" but that should
9951 # okay in the real world where ";" in dirpaths is itself problematic.
9952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9953 else
9954 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9955 fi
9956 # Ok, now we have the path, separated by spaces, we can step through it
9957 # and add multilib dir if necessary.
9958 lt_tmp_lt_search_path_spec=
9959 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9960 for lt_sys_path in $lt_search_path_spec; do
9961 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9962 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9963 else
9964 test -d "$lt_sys_path" && \
9965 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9966 fi
9967 done
9968 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9969BEGIN {RS=" "; FS="/|\n";} {
9970 lt_foo="";
9971 lt_count=0;
9972 for (lt_i = NF; lt_i > 0; lt_i--) {
9973 if ($lt_i != "" && $lt_i != ".") {
9974 if ($lt_i == "..") {
9975 lt_count++;
9976 } else {
9977 if (lt_count == 0) {
9978 lt_foo="/" $lt_i lt_foo;
9979 } else {
9980 lt_count--;
9981 }
9982 }
9983 }
9984 }
9985 if (lt_foo != "") { lt_freq[lt_foo]++; }
9986 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9987}'`
9988 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9989else
9990 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9991fi
9992library_names_spec=
9993libname_spec='lib$name'
9994soname_spec=
9995shrext_cmds=".so"
9996postinstall_cmds=
9997postuninstall_cmds=
9998finish_cmds=
9999finish_eval=
10000shlibpath_var=
10001shlibpath_overrides_runpath=unknown
10002version_type=none
10003dynamic_linker="$host_os ld.so"
10004sys_lib_dlsearch_path_spec="/lib /usr/lib"
10005need_lib_prefix=unknown
10006hardcode_into_libs=no
10007
10008# when you set need_version to no, make sure it does not cause -set_version
10009# flags to be left without arguments
10010need_version=unknown
10011
10012case $host_os in
10013aix3*)
10014 version_type=linux
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10016 shlibpath_var=LIBPATH
10017
10018 # AIX 3 has no versioning support, so we append a major version to the name.
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 ;;
10021
10022aix[4-9]*)
10023 version_type=linux
10024 need_lib_prefix=no
10025 need_version=no
10026 hardcode_into_libs=yes
10027 if test "$host_cpu" = ia64; then
10028 # AIX 5 supports IA64
10029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 else
10032 # With GCC up to 2.95.x, collect2 would create an import file
10033 # for dependence libraries. The import file would start with
10034 # the line `#! .'. This would cause the generated library to
10035 # depend on `.', always an invalid library. This was fixed in
10036 # development snapshots of GCC prior to 3.0.
10037 case $host_os in
10038 aix4 | aix4.[01] | aix4.[01].*)
10039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10040 echo ' yes '
10041 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10042 :
10043 else
10044 can_build_shared=no
10045 fi
10046 ;;
10047 esac
10048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10049 # soname into executable. Probably we can add versioning support to
10050 # collect2, so additional links can be useful in future.
10051 if test "$aix_use_runtimelinking" = yes; then
10052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10053 # instead of lib<name>.a to let people know that these are not
10054 # typical AIX shared libraries.
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056 else
10057 # We preserve .a as extension for shared libraries through AIX4.2
10058 # and later when we are not doing run time linking.
10059 library_names_spec='${libname}${release}.a $libname.a'
10060 soname_spec='${libname}${release}${shared_ext}$major'
10061 fi
10062 shlibpath_var=LIBPATH
10063 fi
10064 ;;
10065
10066amigaos*)
10067 case $host_cpu in
10068 powerpc)
10069 # Since July 2007 AmigaOS4 officially supports .so libraries.
10070 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072 ;;
10073 m68k)
10074 library_names_spec='$libname.ixlibrary $libname.a'
10075 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10076 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'
10077 ;;
10078 esac
10079 ;;
10080
10081beos*)
10082 library_names_spec='${libname}${shared_ext}'
10083 dynamic_linker="$host_os ld.so"
10084 shlibpath_var=LIBRARY_PATH
10085 ;;
10086
10087bsdi[45]*)
10088 version_type=linux
10089 need_version=no
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10095 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10096 # the default ld.so.conf also contains /usr/contrib/lib and
10097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10098 # libtool to hard-code these into programs
10099 ;;
10100
10101cygwin* | mingw* | pw32* | cegcc*)
10102 version_type=windows
10103 shrext_cmds=".dll"
10104 need_version=no
10105 need_lib_prefix=no
10106
10107 case $GCC,$host_os in
10108 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10109 library_names_spec='$libname.dll.a'
10110 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10111 postinstall_cmds='base_file=`basename \${file}`~
10112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10113 dldir=$destdir/`dirname \$dlpath`~
10114 test -d \$dldir || mkdir -p \$dldir~
10115 $install_prog $dir/$dlname \$dldir/$dlname~
10116 chmod a+x \$dldir/$dlname~
10117 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10118 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10119 fi'
10120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10121 dlpath=$dir/\$dldll~
10122 $RM \$dlpath'
10123 shlibpath_overrides_runpath=yes
10124
10125 case $host_os in
10126 cygwin*)
10127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10130 ;;
10131 mingw* | cegcc*)
10132 # MinGW DLLs use traditional 'lib' prefix
10133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10134 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10135 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10136 # It is most probably a Windows format PATH printed by
10137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10138 # path with ; separators, and with drive letters. We can handle the
10139 # drive letters (cygwin fileutils understands them), so leave them,
10140 # especially as we might pass files found there to a mingw objdump,
10141 # which wouldn't understand a cygwinified path. Ahh.
10142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10143 else
10144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10145 fi
10146 ;;
10147 pw32*)
10148 # pw32 DLLs use 'pw' prefix rather than 'lib'
10149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10150 ;;
10151 esac
10152 ;;
10153
10154 *)
10155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10156 ;;
10157 esac
10158 dynamic_linker='Win32 ld.exe'
10159 # FIXME: first we should search . and the directory the executable is in
10160 shlibpath_var=PATH
10161 ;;
10162
10163darwin* | rhapsody*)
10164 dynamic_linker="$host_os dyld"
10165 version_type=darwin
10166 need_lib_prefix=no
10167 need_version=no
10168 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10169 soname_spec='${libname}${release}${major}$shared_ext'
10170 shlibpath_overrides_runpath=yes
10171 shlibpath_var=DYLD_LIBRARY_PATH
10172 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10173
10174 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10175 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10176 ;;
10177
10178dgux*)
10179 version_type=linux
10180 need_lib_prefix=no
10181 need_version=no
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 ;;
10186
10187freebsd1*)
10188 dynamic_linker=no
10189 ;;
10190
10191freebsd* | dragonfly*)
10192 # DragonFly does not have aout. When/if they implement a new
10193 # versioning mechanism, adjust this.
10194 if test -x /usr/bin/objformat; then
10195 objformat=`/usr/bin/objformat`
10196 else
10197 case $host_os in
10198 freebsd[123]*) objformat=aout ;;
10199 *) objformat=elf ;;
10200 esac
10201 fi
10202 version_type=freebsd-$objformat
10203 case $version_type in
10204 freebsd-elf*)
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10206 need_version=no
10207 need_lib_prefix=no
10208 ;;
10209 freebsd-*)
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10211 need_version=yes
10212 ;;
10213 esac
10214 shlibpath_var=LD_LIBRARY_PATH
10215 case $host_os in
10216 freebsd2*)
10217 shlibpath_overrides_runpath=yes
10218 ;;
10219 freebsd3.[01]* | freebsdelf3.[01]*)
10220 shlibpath_overrides_runpath=yes
10221 hardcode_into_libs=yes
10222 ;;
10223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10225 shlibpath_overrides_runpath=no
10226 hardcode_into_libs=yes
10227 ;;
10228 *) # from 4.6 on, and DragonFly
10229 shlibpath_overrides_runpath=yes
10230 hardcode_into_libs=yes
10231 ;;
10232 esac
10233 ;;
10234
10235gnu*)
10236 version_type=linux
10237 need_lib_prefix=no
10238 need_version=no
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 hardcode_into_libs=yes
10243 ;;
10244
10245hpux9* | hpux10* | hpux11*)
10246 # Give a soname corresponding to the major version so that dld.sl refuses to
10247 # link against other versions.
10248 version_type=sunos
10249 need_lib_prefix=no
10250 need_version=no
10251 case $host_cpu in
10252 ia64*)
10253 shrext_cmds='.so'
10254 hardcode_into_libs=yes
10255 dynamic_linker="$host_os dld.so"
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 if test "X$HPUX_IA64_MODE" = X32; then
10261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10262 else
10263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10264 fi
10265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10266 ;;
10267 hppa*64*)
10268 shrext_cmds='.sl'
10269 hardcode_into_libs=yes
10270 dynamic_linker="$host_os dld.sl"
10271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10277 ;;
10278 *)
10279 shrext_cmds='.sl'
10280 dynamic_linker="$host_os dld.sl"
10281 shlibpath_var=SHLIB_PATH
10282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 ;;
10286 esac
10287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10288 postinstall_cmds='chmod 555 $lib'
10289 ;;
10290
10291interix[3-9]*)
10292 version_type=linux
10293 need_lib_prefix=no
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 shlibpath_overrides_runpath=no
10300 hardcode_into_libs=yes
10301 ;;
10302
10303irix5* | irix6* | nonstopux*)
10304 case $host_os in
10305 nonstopux*) version_type=nonstopux ;;
10306 *)
10307 if test "$lt_cv_prog_gnu_ld" = yes; then
10308 version_type=linux
10309 else
10310 version_type=irix
10311 fi ;;
10312 esac
10313 need_lib_prefix=no
10314 need_version=no
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10317 case $host_os in
10318 irix5* | nonstopux*)
10319 libsuff= shlibsuff=
10320 ;;
10321 *)
10322 case $LD in # libtool.m4 will add one of these switches to LD
10323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10324 libsuff= shlibsuff= libmagic=32-bit;;
10325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10326 libsuff=32 shlibsuff=N32 libmagic=N32;;
10327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10329 *) libsuff= shlibsuff= libmagic=never-match;;
10330 esac
10331 ;;
10332 esac
10333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10334 shlibpath_overrides_runpath=no
10335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10337 hardcode_into_libs=yes
10338 ;;
10339
10340# No shared lib support for Linux oldld, aout, or coff.
10341linux*oldld* | linux*aout* | linux*coff*)
10342 dynamic_linker=no
10343 ;;
10344
10345# This must be Linux ELF.
10346linux* | k*bsd*-gnu | kopensolaris*-gnu)
10347 version_type=linux
10348 need_lib_prefix=no
10349 need_version=no
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 shlibpath_overrides_runpath=no
10355
10356 # Some binutils ld are patched to set DT_RUNPATH
10357 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359else
10360 lt_cv_shlibpath_overrides_runpath=no
10361 save_LDFLAGS=$LDFLAGS
10362 save_libdir=$libdir
10363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10365 cat >conftest.$ac_ext <<_ACEOF
10366/* confdefs.h. */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h. */
10371
10372int
10373main ()
10374{
10375
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext conftest$ac_exeext
10381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382 (eval $ac_link) 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag"
10390 || test ! -s conftest.err'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try='test -s conftest$ac_exeext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10403 lt_cv_shlibpath_overrides_runpath=yes
10404fi
10405
10406else
10407 echo "$as_me: failed program was:" >&5
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
10410fi
10411rm -f conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LDFLAGS=$save_LDFLAGS
10414 libdir=$save_libdir
10415
10416fi
10417
10418 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10419
10420 # This implies no fast_install, which is unacceptable.
10421 # Some rework will be needed to allow for fast_install
10422 # before this can be enabled.
10423 hardcode_into_libs=yes
10424
10425 # Append ld.so.conf contents to the search path
10426 if test -f /etc/ld.so.conf; then
10427 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' ' '`
10428 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10429 fi
10430
10431 # We used to test for /lib/ld.so.1 and disable shared libraries on
10432 # powerpc, because MkLinux only supported shared libraries with the
10433 # GNU dynamic linker. Since this was broken with cross compilers,
10434 # most powerpc-linux boxes support dynamic linking these days and
10435 # people can always --disable-shared, the test was removed, and we
10436 # assume the GNU/Linux dynamic linker is in use.
10437 dynamic_linker='GNU/Linux ld.so'
10438 ;;
10439
10440netbsd*)
10441 version_type=sunos
10442 need_lib_prefix=no
10443 need_version=no
10444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10447 dynamic_linker='NetBSD (a.out) ld.so'
10448 else
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 dynamic_linker='NetBSD ld.elf_so'
10452 fi
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=yes
10455 hardcode_into_libs=yes
10456 ;;
10457
10458newsos6)
10459 version_type=linux
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=yes
10463 ;;
10464
10465*nto* | *qnx*)
10466 version_type=qnx
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=no
10473 hardcode_into_libs=yes
10474 dynamic_linker='ldqnx.so'
10475 ;;
10476
10477openbsd*)
10478 version_type=sunos
10479 sys_lib_dlsearch_path_spec="/usr/lib"
10480 need_lib_prefix=no
10481 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10482 case $host_os in
10483 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10484 *) need_version=no ;;
10485 esac
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10490 case $host_os in
10491 openbsd2.[89] | openbsd2.[89].*)
10492 shlibpath_overrides_runpath=no
10493 ;;
10494 *)
10495 shlibpath_overrides_runpath=yes
10496 ;;
10497 esac
10498 else
10499 shlibpath_overrides_runpath=yes
10500 fi
10501 ;;
10502
10503os2*)
10504 libname_spec='$name'
10505 shrext_cmds=".dll"
10506 need_lib_prefix=no
10507 library_names_spec='$libname${shared_ext} $libname.a'
10508 dynamic_linker='OS/2 ld.exe'
10509 shlibpath_var=LIBPATH
10510 ;;
10511
10512osf3* | osf4* | osf5*)
10513 version_type=osf
10514 need_lib_prefix=no
10515 need_version=no
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10521 ;;
10522
10523rdos*)
10524 dynamic_linker=no
10525 ;;
10526
10527solaris*)
10528 version_type=linux
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=yes
10535 hardcode_into_libs=yes
10536 # ldd complains unless libraries are executable
10537 postinstall_cmds='chmod +x $lib'
10538 ;;
10539
10540sunos4*)
10541 version_type=sunos
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=yes
10546 if test "$with_gnu_ld" = yes; then
10547 need_lib_prefix=no
10548 fi
10549 need_version=yes
10550 ;;
10551
10552sysv4 | sysv4.3*)
10553 version_type=linux
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 case $host_vendor in
10558 sni)
10559 shlibpath_overrides_runpath=no
10560 need_lib_prefix=no
10561 runpath_var=LD_RUN_PATH
10562 ;;
10563 siemens)
10564 need_lib_prefix=no
10565 ;;
10566 motorola)
10567 need_lib_prefix=no
10568 need_version=no
10569 shlibpath_overrides_runpath=no
10570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10571 ;;
10572 esac
10573 ;;
10574
10575sysv4*MP*)
10576 if test -d /usr/nec ;then
10577 version_type=linux
10578 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10579 soname_spec='$libname${shared_ext}.$major'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 fi
10582 ;;
10583
10584sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10585 version_type=freebsd-elf
10586 need_lib_prefix=no
10587 need_version=no
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10589 soname_spec='${libname}${release}${shared_ext}$major'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 shlibpath_overrides_runpath=yes
10592 hardcode_into_libs=yes
10593 if test "$with_gnu_ld" = yes; then
10594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10595 else
10596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10597 case $host_os in
10598 sco3.2v5*)
10599 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10600 ;;
10601 esac
10602 fi
10603 sys_lib_dlsearch_path_spec='/usr/lib'
10604 ;;
10605
10606tpf*)
10607 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10608 version_type=linux
10609 need_lib_prefix=no
10610 need_version=no
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=no
10614 hardcode_into_libs=yes
10615 ;;
10616
10617uts4*)
10618 version_type=linux
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 ;;
10623
10624*)
10625 dynamic_linker=no
10626 ;;
10627esac
10628echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10629echo "${ECHO_T}$dynamic_linker" >&6
10630test "$dynamic_linker" = no && can_build_shared=no
10631
10632variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10633if test "$GCC" = yes; then
10634 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10635fi
10636
10637if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10638 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10639fi
10640if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10641 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10642fi
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10731echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10732hardcode_action=
10733if test -n "$hardcode_libdir_flag_spec" ||
10734 test -n "$runpath_var" ||
10735 test "X$hardcode_automatic" = "Xyes" ; then
10736
10737 # We can hardcode non-existent directories.
10738 if test "$hardcode_direct" != no &&
10739 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10740 # have to relink, otherwise we might link with an installed library
10741 # when we should be linking with a yet-to-be-installed one
10742 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10743 test "$hardcode_minus_L" != no; then
10744 # Linking always hardcodes the temporary library directory.
10745 hardcode_action=relink
10746 else
10747 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10748 hardcode_action=immediate
10749 fi
10750else
10751 # We cannot hardcode anything, or else we can only hardcode existing
10752 # directories.
10753 hardcode_action=unsupported
10754fi
10755echo "$as_me:$LINENO: result: $hardcode_action" >&5
10756echo "${ECHO_T}$hardcode_action" >&6
10757
10758if test "$hardcode_action" = relink ||
10759 test "$inherit_rpath" = yes; then
10760 # Fast installation is not supported
10761 enable_fast_install=no
10762elif test "$shlibpath_overrides_runpath" = yes ||
10763 test "$enable_shared" = no; then
10764 # Fast installation is not necessary
10765 enable_fast_install=needless
10766fi
10767
10768
10769
10770
10771
10772
10773 if test "x$enable_dlopen" != xyes; then
10774 enable_dlopen=unknown
10775 enable_dlopen_self=unknown
10776 enable_dlopen_self_static=unknown
10777else
10778 lt_cv_dlopen=no
10779 lt_cv_dlopen_libs=
10780
10781 case $host_os in
10782 beos*)
10783 lt_cv_dlopen="load_add_on"
10784 lt_cv_dlopen_libs=
10785 lt_cv_dlopen_self=yes
10786 ;;
10787
10788 mingw* | pw32* | cegcc*)
10789 lt_cv_dlopen="LoadLibrary"
10790 lt_cv_dlopen_libs=
10791 ;;
10792
10793 cygwin*)
10794 lt_cv_dlopen="dlopen"
10795 lt_cv_dlopen_libs=
10796 ;;
10797
10798 darwin*)
10799 # if libdl is installed we need to link against it
10800 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10801echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10802if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 ac_check_lib_save_LIBS=$LIBS
10806LIBS="-ldl $LIBS"
10807cat >conftest.$ac_ext <<_ACEOF
10808/* confdefs.h. */
10809_ACEOF
10810cat confdefs.h >>conftest.$ac_ext
10811cat >>conftest.$ac_ext <<_ACEOF
10812/* end confdefs.h. */
10813
10814/* Override any gcc2 internal prototype to avoid an error. */
10815#ifdef __cplusplus
10816extern "C"
10817#endif
10818/* We use char because int might match the return type of a gcc2
10819 builtin and then its argument prototype would still apply. */
10820char dlopen ();
10821int
10822main ()
10823{
10824dlopen ();
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); } &&
10838 { ac_try='test -z "$ac_c_werror_flag"
10839 || test ! -s conftest.err'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; } &&
10845 { ac_try='test -s conftest$ac_exeext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_lib_dl_dlopen=yes
10852else
10853 echo "$as_me: failed program was:" >&5
10854sed 's/^/| /' conftest.$ac_ext >&5
10855
10856ac_cv_lib_dl_dlopen=no
10857fi
10858rm -f conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860LIBS=$ac_check_lib_save_LIBS
10861fi
10862echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10863echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10864if test $ac_cv_lib_dl_dlopen = yes; then
10865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10866else
10867
10868 lt_cv_dlopen="dyld"
10869 lt_cv_dlopen_libs=
10870 lt_cv_dlopen_self=yes
10871
10872fi
10873
10874 ;;
10875
10876 *)
10877 echo "$as_me:$LINENO: checking for shl_load" >&5
10878echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10879if test "${ac_cv_func_shl_load+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10881else
10882 cat >conftest.$ac_ext <<_ACEOF
10883/* confdefs.h. */
10884_ACEOF
10885cat confdefs.h >>conftest.$ac_ext
10886cat >>conftest.$ac_ext <<_ACEOF
10887/* end confdefs.h. */
10888/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10890#define shl_load innocuous_shl_load
10891
10892/* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char shl_load (); below.
10894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895 <limits.h> exists even on freestanding compilers. */
10896
10897#ifdef __STDC__
10898# include <limits.h>
10899#else
10900# include <assert.h>
10901#endif
10902
10903#undef shl_load
10904
10905/* Override any gcc2 internal prototype to avoid an error. */
10906#ifdef __cplusplus
10907extern "C"
10908{
10909#endif
10910/* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10912char shl_load ();
10913/* The GNU C library defines this for functions which it implements
10914 to always fail with ENOSYS. Some functions are actually named
10915 something starting with __ and the normal name is an alias. */
10916#if defined (__stub_shl_load) || defined (__stub___shl_load)
10917choke me
10918#else
10919char (*f) () = shl_load;
10920#endif
10921#ifdef __cplusplus
10922}
10923#endif
10924
10925int
10926main ()
10927{
10928return f != shl_load;
10929 ;
10930 return 0;
10931}
10932_ACEOF
10933rm -f conftest.$ac_objext conftest$ac_exeext
10934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_c_werror_flag"
10943 || test ! -s conftest.err'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest$ac_exeext'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; }; then
10955 ac_cv_func_shl_load=yes
10956else
10957 echo "$as_me: failed program was:" >&5
10958sed 's/^/| /' conftest.$ac_ext >&5
10959
10960ac_cv_func_shl_load=no
10961fi
10962rm -f conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964fi
10965echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10966echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10967if test $ac_cv_func_shl_load = yes; then
10968 lt_cv_dlopen="shl_load"
10969else
10970 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10971echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10972if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974else
10975 ac_check_lib_save_LIBS=$LIBS
10976LIBS="-ldld $LIBS"
10977cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
10982/* end confdefs.h. */
10983
10984/* Override any gcc2 internal prototype to avoid an error. */
10985#ifdef __cplusplus
10986extern "C"
10987#endif
10988/* We use char because int might match the return type of a gcc2
10989 builtin and then its argument prototype would still apply. */
10990char shl_load ();
10991int
10992main ()
10993{
10994shl_load ();
10995 ;
10996 return 0;
10997}
10998_ACEOF
10999rm -f conftest.$ac_objext conftest$ac_exeext
11000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -z "$ac_c_werror_flag"
11009 || test ! -s conftest.err'
11010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_cv_lib_dld_shl_load=yes
11022else
11023 echo "$as_me: failed program was:" >&5
11024sed 's/^/| /' conftest.$ac_ext >&5
11025
11026ac_cv_lib_dld_shl_load=no
11027fi
11028rm -f conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11030LIBS=$ac_check_lib_save_LIBS
11031fi
11032echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11033echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11034if test $ac_cv_lib_dld_shl_load = yes; then
11035 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11036else
11037 echo "$as_me:$LINENO: checking for dlopen" >&5
11038echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11039if test "${ac_cv_func_dlopen+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041else
11042 cat >conftest.$ac_ext <<_ACEOF
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11050#define dlopen innocuous_dlopen
11051
11052/* System header to define __stub macros and hopefully few prototypes,
11053 which can conflict with char dlopen (); below.
11054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055 <limits.h> exists even on freestanding compilers. */
11056
11057#ifdef __STDC__
11058# include <limits.h>
11059#else
11060# include <assert.h>
11061#endif
11062
11063#undef dlopen
11064
11065/* Override any gcc2 internal prototype to avoid an error. */
11066#ifdef __cplusplus
11067extern "C"
11068{
11069#endif
11070/* We use char because int might match the return type of a gcc2
11071 builtin and then its argument prototype would still apply. */
11072char dlopen ();
11073/* The GNU C library defines this for functions which it implements
11074 to always fail with ENOSYS. Some functions are actually named
11075 something starting with __ and the normal name is an alias. */
11076#if defined (__stub_dlopen) || defined (__stub___dlopen)
11077choke me
11078#else
11079char (*f) () = dlopen;
11080#endif
11081#ifdef __cplusplus
11082}
11083#endif
11084
11085int
11086main ()
11087{
11088return f != dlopen;
11089 ;
11090 return 0;
11091}
11092_ACEOF
11093rm -f conftest.$ac_objext conftest$ac_exeext
11094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11095 (eval $ac_link) 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -z "$ac_c_werror_flag"
11103 || test ! -s conftest.err'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_func_dlopen=yes
11116else
11117 echo "$as_me: failed program was:" >&5
11118sed 's/^/| /' conftest.$ac_ext >&5
11119
11120ac_cv_func_dlopen=no
11121fi
11122rm -f conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11124fi
11125echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11126echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11127if test $ac_cv_func_dlopen = yes; then
11128 lt_cv_dlopen="dlopen"
11129else
11130 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11131echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11132if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134else
11135 ac_check_lib_save_LIBS=$LIBS
11136LIBS="-ldl $LIBS"
11137cat >conftest.$ac_ext <<_ACEOF
11138/* confdefs.h. */
11139_ACEOF
11140cat confdefs.h >>conftest.$ac_ext
11141cat >>conftest.$ac_ext <<_ACEOF
11142/* end confdefs.h. */
11143
11144/* Override any gcc2 internal prototype to avoid an error. */
11145#ifdef __cplusplus
11146extern "C"
11147#endif
11148/* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11150char dlopen ();
11151int
11152main ()
11153{
11154dlopen ();
11155 ;
11156 return 0;
11157}
11158_ACEOF
11159rm -f conftest.$ac_objext conftest$ac_exeext
11160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161 (eval $ac_link) 2>conftest.er1
11162 ac_status=$?
11163 grep -v '^ *+' conftest.er1 >conftest.err
11164 rm -f conftest.er1
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } &&
11168 { ac_try='test -z "$ac_c_werror_flag"
11169 || test ! -s conftest.err'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try='test -s conftest$ac_exeext'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11181 ac_cv_lib_dl_dlopen=yes
11182else
11183 echo "$as_me: failed program was:" >&5
11184sed 's/^/| /' conftest.$ac_ext >&5
11185
11186ac_cv_lib_dl_dlopen=no
11187fi
11188rm -f conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11190LIBS=$ac_check_lib_save_LIBS
11191fi
11192echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11193echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11194if test $ac_cv_lib_dl_dlopen = yes; then
11195 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11196else
11197 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11198echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11199if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201else
11202 ac_check_lib_save_LIBS=$LIBS
11203LIBS="-lsvld $LIBS"
11204cat >conftest.$ac_ext <<_ACEOF
11205/* confdefs.h. */
11206_ACEOF
11207cat confdefs.h >>conftest.$ac_ext
11208cat >>conftest.$ac_ext <<_ACEOF
11209/* end confdefs.h. */
11210
11211/* Override any gcc2 internal prototype to avoid an error. */
11212#ifdef __cplusplus
11213extern "C"
11214#endif
11215/* We use char because int might match the return type of a gcc2
11216 builtin and then its argument prototype would still apply. */
11217char dlopen ();
11218int
11219main ()
11220{
11221dlopen ();
11222 ;
11223 return 0;
11224}
11225_ACEOF
11226rm -f conftest.$ac_objext conftest$ac_exeext
11227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11228 (eval $ac_link) 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try='test -z "$ac_c_werror_flag"
11236 || test ! -s conftest.err'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; } &&
11242 { ac_try='test -s conftest$ac_exeext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_lib_svld_dlopen=yes
11249else
11250 echo "$as_me: failed program was:" >&5
11251sed 's/^/| /' conftest.$ac_ext >&5
11252
11253ac_cv_lib_svld_dlopen=no
11254fi
11255rm -f conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257LIBS=$ac_check_lib_save_LIBS
11258fi
11259echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11260echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11261if test $ac_cv_lib_svld_dlopen = yes; then
11262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11263else
11264 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11265echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11266if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268else
11269 ac_check_lib_save_LIBS=$LIBS
11270LIBS="-ldld $LIBS"
11271cat >conftest.$ac_ext <<_ACEOF
11272/* confdefs.h. */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h. */
11277
11278/* Override any gcc2 internal prototype to avoid an error. */
11279#ifdef __cplusplus
11280extern "C"
11281#endif
11282/* We use char because int might match the return type of a gcc2
11283 builtin and then its argument prototype would still apply. */
11284char dld_link ();
11285int
11286main ()
11287{
11288dld_link ();
11289 ;
11290 return 0;
11291}
11292_ACEOF
11293rm -f conftest.$ac_objext conftest$ac_exeext
11294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11295 (eval $ac_link) 2>conftest.er1
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -z "$ac_c_werror_flag"
11303 || test ! -s conftest.err'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest$ac_exeext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11315 ac_cv_lib_dld_dld_link=yes
11316else
11317 echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
11320ac_cv_lib_dld_dld_link=no
11321fi
11322rm -f conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext conftest.$ac_ext
11324LIBS=$ac_check_lib_save_LIBS
11325fi
11326echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11327echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11328if test $ac_cv_lib_dld_dld_link = yes; then
11329 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11330fi
11331
11332
11333fi
11334
11335
11336fi
11337
11338
11339fi
11340
11341
11342fi
11343
11344
11345fi
11346
11347 ;;
11348 esac
11349
11350 if test "x$lt_cv_dlopen" != xno; then
11351 enable_dlopen=yes
11352 else
11353 enable_dlopen=no
11354 fi
11355
11356 case $lt_cv_dlopen in
11357 dlopen)
11358 save_CPPFLAGS="$CPPFLAGS"
11359 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11360
11361 save_LDFLAGS="$LDFLAGS"
11362 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11363
11364 save_LIBS="$LIBS"
11365 LIBS="$lt_cv_dlopen_libs $LIBS"
11366
11367 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11368echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11369if test "${lt_cv_dlopen_self+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371else
11372 if test "$cross_compiling" = yes; then :
11373 lt_cv_dlopen_self=cross
11374else
11375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11376 lt_status=$lt_dlunknown
11377 cat > conftest.$ac_ext <<_LT_EOF
11378#line 11378 "configure"
11379#include "confdefs.h"
11380
11381#if HAVE_DLFCN_H
11382#include <dlfcn.h>
11383#endif
11384
11385#include <stdio.h>
11386
11387#ifdef RTLD_GLOBAL
11388# define LT_DLGLOBAL RTLD_GLOBAL
11389#else
11390# ifdef DL_GLOBAL
11391# define LT_DLGLOBAL DL_GLOBAL
11392# else
11393# define LT_DLGLOBAL 0
11394# endif
11395#endif
11396
11397/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11398 find out it does not work in some platform. */
11399#ifndef LT_DLLAZY_OR_NOW
11400# ifdef RTLD_LAZY
11401# define LT_DLLAZY_OR_NOW RTLD_LAZY
11402# else
11403# ifdef DL_LAZY
11404# define LT_DLLAZY_OR_NOW DL_LAZY
11405# else
11406# ifdef RTLD_NOW
11407# define LT_DLLAZY_OR_NOW RTLD_NOW
11408# else
11409# ifdef DL_NOW
11410# define LT_DLLAZY_OR_NOW DL_NOW
11411# else
11412# define LT_DLLAZY_OR_NOW 0
11413# endif
11414# endif
11415# endif
11416# endif
11417#endif
11418
11419void fnord() { int i=42;}
11420int main ()
11421{
11422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11423 int status = $lt_dlunknown;
11424
11425 if (self)
11426 {
11427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11428 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11429 /* dlclose (self); */
11430 }
11431 else
11432 puts (dlerror ());
11433
11434 return status;
11435}
11436_LT_EOF
11437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11438 (eval $ac_link) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11442 (./conftest; exit; ) >&5 2>/dev/null
11443 lt_status=$?
11444 case x$lt_status in
11445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11447 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11448 esac
11449 else :
11450 # compilation failed
11451 lt_cv_dlopen_self=no
11452 fi
11453fi
11454rm -fr conftest*
11455
11456
11457fi
11458echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11459echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11460
11461 if test "x$lt_cv_dlopen_self" = xyes; then
11462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11463 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11464echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11465if test "${lt_cv_dlopen_self_static+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11467else
11468 if test "$cross_compiling" = yes; then :
11469 lt_cv_dlopen_self_static=cross
11470else
11471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11472 lt_status=$lt_dlunknown
11473 cat > conftest.$ac_ext <<_LT_EOF
11474#line 11474 "configure"
11475#include "confdefs.h"
11476
11477#if HAVE_DLFCN_H
11478#include <dlfcn.h>
11479#endif
11480
11481#include <stdio.h>
11482
11483#ifdef RTLD_GLOBAL
11484# define LT_DLGLOBAL RTLD_GLOBAL
11485#else
11486# ifdef DL_GLOBAL
11487# define LT_DLGLOBAL DL_GLOBAL
11488# else
11489# define LT_DLGLOBAL 0
11490# endif
11491#endif
11492
11493/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11494 find out it does not work in some platform. */
11495#ifndef LT_DLLAZY_OR_NOW
11496# ifdef RTLD_LAZY
11497# define LT_DLLAZY_OR_NOW RTLD_LAZY
11498# else
11499# ifdef DL_LAZY
11500# define LT_DLLAZY_OR_NOW DL_LAZY
11501# else
11502# ifdef RTLD_NOW
11503# define LT_DLLAZY_OR_NOW RTLD_NOW
11504# else
11505# ifdef DL_NOW
11506# define LT_DLLAZY_OR_NOW DL_NOW
11507# else
11508# define LT_DLLAZY_OR_NOW 0
11509# endif
11510# endif
11511# endif
11512# endif
11513#endif
11514
11515void fnord() { int i=42;}
11516int main ()
11517{
11518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11519 int status = $lt_dlunknown;
11520
11521 if (self)
11522 {
11523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11525 /* dlclose (self); */
11526 }
11527 else
11528 puts (dlerror ());
11529
11530 return status;
11531}
11532_LT_EOF
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534 (eval $ac_link) 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11538 (./conftest; exit; ) >&5 2>/dev/null
11539 lt_status=$?
11540 case x$lt_status in
11541 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11542 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11543 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11544 esac
11545 else :
11546 # compilation failed
11547 lt_cv_dlopen_self_static=no
11548 fi
11549fi
11550rm -fr conftest*
11551
11552
11553fi
11554echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11555echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11556 fi
11557
11558 CPPFLAGS="$save_CPPFLAGS"
11559 LDFLAGS="$save_LDFLAGS"
11560 LIBS="$save_LIBS"
11561 ;;
11562 esac
11563
11564 case $lt_cv_dlopen_self in
11565 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11566 *) enable_dlopen_self=unknown ;;
11567 esac
11568
11569 case $lt_cv_dlopen_self_static in
11570 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11571 *) enable_dlopen_self_static=unknown ;;
11572 esac
11573fi
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591striplib=
11592old_striplib=
11593echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11594echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11595if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11597 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11598 echo "$as_me:$LINENO: result: yes" >&5
11599echo "${ECHO_T}yes" >&6
11600else
11601# FIXME - insert some real tests, host_os isn't really good enough
11602 case $host_os in
11603 darwin*)
11604 if test -n "$STRIP" ; then
11605 striplib="$STRIP -x"
11606 old_striplib="$STRIP -S"
11607 echo "$as_me:$LINENO: result: yes" >&5
11608echo "${ECHO_T}yes" >&6
11609 else
11610 echo "$as_me:$LINENO: result: no" >&5
11611echo "${ECHO_T}no" >&6
11612 fi
11613 ;;
11614 *)
11615 echo "$as_me:$LINENO: result: no" >&5
11616echo "${ECHO_T}no" >&6
11617 ;;
11618 esac
11619fi
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632 # Report which library types will actually be built
11633 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11634echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11635 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11636echo "${ECHO_T}$can_build_shared" >&6
11637
11638 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11639echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11640 test "$can_build_shared" = "no" && enable_shared=no
11641
11642 # On AIX, shared libraries and static libraries use the same namespace, and
11643 # are all built from PIC.
11644 case $host_os in
11645 aix3*)
11646 test "$enable_shared" = yes && enable_static=no
11647 if test -n "$RANLIB"; then
11648 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11649 postinstall_cmds='$RANLIB $lib'
11650 fi
11651 ;;
11652
11653 aix[4-9]*)
11654 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11655 test "$enable_shared" = yes && enable_static=no
11656 fi
11657 ;;
11658 esac
11659 echo "$as_me:$LINENO: result: $enable_shared" >&5
11660echo "${ECHO_T}$enable_shared" >&6
11661
11662 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11663echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11664 # Make sure either enable_shared or enable_static is yes.
11665 test "$enable_shared" = yes || enable_static=yes
11666 echo "$as_me:$LINENO: result: $enable_static" >&5
11667echo "${ECHO_T}$enable_static" >&6
11668
11669
11670
11671
11672fi
11673ac_ext=c
11674ac_cpp='$CPP $CPPFLAGS'
11675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11677ac_compiler_gnu=$ac_cv_c_compiler_gnu
11678
11679CC="$lt_save_CC"
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693 ac_config_commands="$ac_config_commands libtool"
11694
11695
11696
11697
11698# Only expand once:
11699
11700
11701
11702
11703for ac_func in setmode
11704do
11705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706echo "$as_me:$LINENO: checking for $ac_func" >&5
11707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11708if eval "test \"\${$as_ac_var+set}\" = set"; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11719#define $ac_func innocuous_$ac_func
11720
11721/* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11725
11726#ifdef __STDC__
11727# include <limits.h>
11728#else
11729# include <assert.h>
11730#endif
11731
11732#undef $ac_func
11733
11734/* Override any gcc2 internal prototype to avoid an error. */
11735#ifdef __cplusplus
11736extern "C"
11737{
11738#endif
11739/* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11741char $ac_func ();
11742/* The GNU C library defines this for functions which it implements
11743 to always fail with ENOSYS. Some functions are actually named
11744 something starting with __ and the normal name is an alias. */
11745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11746choke me
11747#else
11748char (*f) () = $ac_func;
11749#endif
11750#ifdef __cplusplus
11751}
11752#endif
11753
11754int
11755main ()
11756{
11757return f != $ac_func;
11758 ;
11759 return 0;
11760}
11761_ACEOF
11762rm -f conftest.$ac_objext conftest$ac_exeext
11763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764 (eval $ac_link) 2>conftest.er1
11765 ac_status=$?
11766 grep -v '^ *+' conftest.er1 >conftest.err
11767 rm -f conftest.er1
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -z "$ac_c_werror_flag"
11772 || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 eval "$as_ac_var=yes"
11785else
11786 echo "$as_me: failed program was:" >&5
11787sed 's/^/| /' conftest.$ac_ext >&5
11788
11789eval "$as_ac_var=no"
11790fi
11791rm -f conftest.err conftest.$ac_objext \
11792 conftest$ac_exeext conftest.$ac_ext
11793fi
11794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11796if test `eval echo '${'$as_ac_var'}'` = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799_ACEOF
11800
11801fi
11802done
11803
11804
11805ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl"
11806# If we haven't got the data from the intl directory,
11807# assume NLS is disabled.
11808USE_NLS=no
11809LIBINTL=
11810LIBINTL_DEP=
11811INCINTL=
11812XGETTEXT=
11813GMSGFMT=
11814POSUB=
11815
11816if test -f ../intl/config.intl; then
11817 . ../intl/config.intl
11818fi
11819echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11820echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11821if test x"$USE_NLS" != xyes; then
11822 echo "$as_me:$LINENO: result: no" >&5
11823echo "${ECHO_T}no" >&6
11824else
11825 echo "$as_me:$LINENO: result: yes" >&5
11826echo "${ECHO_T}yes" >&6
11827
11828cat >>confdefs.h <<\_ACEOF
11829#define ENABLE_NLS 1
11830_ACEOF
11831
11832
11833 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11834echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11835 # Look for .po and .gmo files in the source directory.
11836 CATALOGS=
11837 XLINGUAS=
11838 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11839 # If there aren't any .gmo files the shell will give us the
11840 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11841 # weeded out.
11842 case "$cat" in *\**)
11843 continue;;
11844 esac
11845 # The quadruple backslash is collapsed to a double backslash
11846 # by the backticks, then collapsed again by the double quotes,
11847 # leaving us with one backslash in the sed expression (right
11848 # before the dot that mustn't act as a wildcard).
11849 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11850 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11851 # The user is allowed to set LINGUAS to a list of languages to
11852 # install catalogs for. If it's empty that means "all of them."
11853 if test "x$LINGUAS" = x; then
11854 CATALOGS="$CATALOGS $cat"
11855 XLINGUAS="$XLINGUAS $lang"
11856 else
11857 case "$LINGUAS" in *$lang*)
11858 CATALOGS="$CATALOGS $cat"
11859 XLINGUAS="$XLINGUAS $lang"
11860 ;;
11861 esac
11862 fi
11863 done
11864 LINGUAS="$XLINGUAS"
11865 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11866echo "${ECHO_T}$LINGUAS" >&6
11867
11868
11869 DATADIRNAME=share
11870
11871 INSTOBJEXT=.mo
11872
11873 GENCAT=gencat
11874
11875 CATOBJEXT=.gmo
11876
11877fi
11878
11879 MKINSTALLDIRS=
11880 if test -n "$ac_aux_dir"; then
11881 case "$ac_aux_dir" in
11882 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11883 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11884 esac
11885 fi
11886 if test -z "$MKINSTALLDIRS"; then
11887 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11888 fi
11889
11890
11891
11892 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11893echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11894 # Check whether --enable-nls or --disable-nls was given.
11895if test "${enable_nls+set}" = set; then
11896 enableval="$enable_nls"
11897 USE_NLS=$enableval
11898else
11899 USE_NLS=yes
11900fi;
11901 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11902echo "${ECHO_T}$USE_NLS" >&6
11903
11904
11905
11906
11907
11908
11909# Prepare PATH_SEPARATOR.
11910# The user is always right.
11911if test "${PATH_SEPARATOR+set}" != set; then
11912 echo "#! /bin/sh" >conf$$.sh
11913 echo "exit 0" >>conf$$.sh
11914 chmod +x conf$$.sh
11915 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11916 PATH_SEPARATOR=';'
11917 else
11918 PATH_SEPARATOR=:
11919 fi
11920 rm -f conf$$.sh
11921fi
11922
11923# Find out how to test for executable files. Don't use a zero-byte file,
11924# as systems may use methods other than mode bits to determine executability.
11925cat >conf$$.file <<_ASEOF
11926#! /bin/sh
11927exit 0
11928_ASEOF
11929chmod +x conf$$.file
11930if test -x conf$$.file >/dev/null 2>&1; then
11931 ac_executable_p="test -x"
11932else
11933 ac_executable_p="test -f"
11934fi
11935rm -f conf$$.file
11936
11937# Extract the first word of "msgfmt", so it can be a program name with args.
11938set dummy msgfmt; ac_word=$2
11939echo "$as_me:$LINENO: checking for $ac_word" >&5
11940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11941if test "${ac_cv_path_MSGFMT+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943else
11944 case "$MSGFMT" in
11945 [\\/]* | ?:[\\/]*)
11946 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11947 ;;
11948 *)
11949 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11950 for ac_dir in $PATH; do
11951 IFS="$ac_save_IFS"
11952 test -z "$ac_dir" && ac_dir=.
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11955 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11956 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11957 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11958 break 2
11959 fi
11960 fi
11961 done
11962 done
11963 IFS="$ac_save_IFS"
11964 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11965 ;;
11966esac
11967fi
11968MSGFMT="$ac_cv_path_MSGFMT"
11969if test "$MSGFMT" != ":"; then
11970 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11971echo "${ECHO_T}$MSGFMT" >&6
11972else
11973 echo "$as_me:$LINENO: result: no" >&5
11974echo "${ECHO_T}no" >&6
11975fi
11976
11977 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11978set dummy gmsgfmt; ac_word=$2
11979echo "$as_me:$LINENO: checking for $ac_word" >&5
11980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11981if test "${ac_cv_path_GMSGFMT+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11983else
11984 case $GMSGFMT in
11985 [\\/]* | ?:[\\/]*)
11986 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11987 ;;
11988 *)
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990for as_dir in $PATH
11991do
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
11999 fi
12000done
12001done
12002
12003 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12004 ;;
12005esac
12006fi
12007GMSGFMT=$ac_cv_path_GMSGFMT
12008
12009if test -n "$GMSGFMT"; then
12010 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12011echo "${ECHO_T}$GMSGFMT" >&6
12012else
12013 echo "$as_me:$LINENO: result: no" >&5
12014echo "${ECHO_T}no" >&6
12015fi
12016
12017
12018
12019# Prepare PATH_SEPARATOR.
12020# The user is always right.
12021if test "${PATH_SEPARATOR+set}" != set; then
12022 echo "#! /bin/sh" >conf$$.sh
12023 echo "exit 0" >>conf$$.sh
12024 chmod +x conf$$.sh
12025 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12026 PATH_SEPARATOR=';'
12027 else
12028 PATH_SEPARATOR=:
12029 fi
12030 rm -f conf$$.sh
12031fi
12032
12033# Find out how to test for executable files. Don't use a zero-byte file,
12034# as systems may use methods other than mode bits to determine executability.
12035cat >conf$$.file <<_ASEOF
12036#! /bin/sh
12037exit 0
12038_ASEOF
12039chmod +x conf$$.file
12040if test -x conf$$.file >/dev/null 2>&1; then
12041 ac_executable_p="test -x"
12042else
12043 ac_executable_p="test -f"
12044fi
12045rm -f conf$$.file
12046
12047# Extract the first word of "xgettext", so it can be a program name with args.
12048set dummy xgettext; ac_word=$2
12049echo "$as_me:$LINENO: checking for $ac_word" >&5
12050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12051if test "${ac_cv_path_XGETTEXT+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054 case "$XGETTEXT" in
12055 [\\/]* | ?:[\\/]*)
12056 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12057 ;;
12058 *)
12059 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12060 for ac_dir in $PATH; do
12061 IFS="$ac_save_IFS"
12062 test -z "$ac_dir" && ac_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12065 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12066 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12067 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12068 break 2
12069 fi
12070 fi
12071 done
12072 done
12073 IFS="$ac_save_IFS"
12074 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12075 ;;
12076esac
12077fi
12078XGETTEXT="$ac_cv_path_XGETTEXT"
12079if test "$XGETTEXT" != ":"; then
12080 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12081echo "${ECHO_T}$XGETTEXT" >&6
12082else
12083 echo "$as_me:$LINENO: result: no" >&5
12084echo "${ECHO_T}no" >&6
12085fi
12086
12087 rm -f messages.po
12088
12089
12090# Prepare PATH_SEPARATOR.
12091# The user is always right.
12092if test "${PATH_SEPARATOR+set}" != set; then
12093 echo "#! /bin/sh" >conf$$.sh
12094 echo "exit 0" >>conf$$.sh
12095 chmod +x conf$$.sh
12096 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12097 PATH_SEPARATOR=';'
12098 else
12099 PATH_SEPARATOR=:
12100 fi
12101 rm -f conf$$.sh
12102fi
12103
12104# Find out how to test for executable files. Don't use a zero-byte file,
12105# as systems may use methods other than mode bits to determine executability.
12106cat >conf$$.file <<_ASEOF
12107#! /bin/sh
12108exit 0
12109_ASEOF
12110chmod +x conf$$.file
12111if test -x conf$$.file >/dev/null 2>&1; then
12112 ac_executable_p="test -x"
12113else
12114 ac_executable_p="test -f"
12115fi
12116rm -f conf$$.file
12117
12118# Extract the first word of "msgmerge", so it can be a program name with args.
12119set dummy msgmerge; ac_word=$2
12120echo "$as_me:$LINENO: checking for $ac_word" >&5
12121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12122if test "${ac_cv_path_MSGMERGE+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124else
12125 case "$MSGMERGE" in
12126 [\\/]* | ?:[\\/]*)
12127 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12128 ;;
12129 *)
12130 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12131 for ac_dir in $PATH; do
12132 IFS="$ac_save_IFS"
12133 test -z "$ac_dir" && ac_dir=.
12134 for ac_exec_ext in '' $ac_executable_extensions; do
12135 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12136 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12137 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12138 break 2
12139 fi
12140 fi
12141 done
12142 done
12143 IFS="$ac_save_IFS"
12144 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12145 ;;
12146esac
12147fi
12148MSGMERGE="$ac_cv_path_MSGMERGE"
12149if test "$MSGMERGE" != ":"; then
12150 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12151echo "${ECHO_T}$MSGMERGE" >&6
12152else
12153 echo "$as_me:$LINENO: result: no" >&5
12154echo "${ECHO_T}no" >&6
12155fi
12156
12157
12158 if test "$GMSGFMT" != ":"; then
12159 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12160 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12161 : ;
12162 else
12163 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12164 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12165echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12166 GMSGFMT=":"
12167 fi
12168 fi
12169
12170 if test "$XGETTEXT" != ":"; then
12171 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12172 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12173 : ;
12174 else
12175 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12176echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12177 XGETTEXT=":"
12178 fi
12179 rm -f messages.po
12180 fi
12181
12182 ac_config_commands="$ac_config_commands default-1"
12183
12184
12185
12186echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12187echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12188 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12189if test "${enable_maintainer_mode+set}" = set; then
12190 enableval="$enable_maintainer_mode"
12191 USE_MAINTAINER_MODE=$enableval
12192else
12193 USE_MAINTAINER_MODE=no
12194fi;
12195 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12196echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12197
12198
12199if test $USE_MAINTAINER_MODE = yes; then
12200 MAINTAINER_MODE_TRUE=
12201 MAINTAINER_MODE_FALSE='#'
12202else
12203 MAINTAINER_MODE_TRUE='#'
12204 MAINTAINER_MODE_FALSE=
12205fi
12206
12207 MAINT=$MAINTAINER_MODE_TRUE
12208
12209
12210
12211
12212if false; then
12213 GENINSRC_NEVER_TRUE=
12214 GENINSRC_NEVER_FALSE='#'
12215else
12216 GENINSRC_NEVER_TRUE='#'
12217 GENINSRC_NEVER_FALSE=
12218fi
12219
12220
12221
12222
12223for ac_header in sys/gmon_out.h
12224do
12225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12226if eval "test \"\${$as_ac_Header+set}\" = set"; then
12227 echo "$as_me:$LINENO: checking for $ac_header" >&5
12228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12229if eval "test \"\${$as_ac_Header+set}\" = set"; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231fi
12232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12234else
12235 # Is the header compilable?
12236echo "$as_me:$LINENO: checking $ac_header usability" >&5
12237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12238cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */
12244$ac_includes_default
12245#include <$ac_header>
12246_ACEOF
12247rm -f conftest.$ac_objext
12248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12249 (eval $ac_compile) 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -z "$ac_c_werror_flag"
12257 || test ! -s conftest.err'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try='test -s conftest.$ac_objext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_header_compiler=yes
12270else
12271 echo "$as_me: failed program was:" >&5
12272sed 's/^/| /' conftest.$ac_ext >&5
12273
12274ac_header_compiler=no
12275fi
12276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12277echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12278echo "${ECHO_T}$ac_header_compiler" >&6
12279
12280# Is the header present?
12281echo "$as_me:$LINENO: checking $ac_header presence" >&5
12282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12283cat >conftest.$ac_ext <<_ACEOF
12284/* confdefs.h. */
12285_ACEOF
12286cat confdefs.h >>conftest.$ac_ext
12287cat >>conftest.$ac_ext <<_ACEOF
12288/* end confdefs.h. */
12289#include <$ac_header>
12290_ACEOF
12291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12293 ac_status=$?
12294 grep -v '^ *+' conftest.er1 >conftest.err
12295 rm -f conftest.er1
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } >/dev/null; then
12299 if test -s conftest.err; then
12300 ac_cpp_err=$ac_c_preproc_warn_flag
12301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12302 else
12303 ac_cpp_err=
12304 fi
12305else
12306 ac_cpp_err=yes
12307fi
12308if test -z "$ac_cpp_err"; then
12309 ac_header_preproc=yes
12310else
12311 echo "$as_me: failed program was:" >&5
12312sed 's/^/| /' conftest.$ac_ext >&5
12313
12314 ac_header_preproc=no
12315fi
12316rm -f conftest.err conftest.$ac_ext
12317echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12318echo "${ECHO_T}$ac_header_preproc" >&6
12319
12320# So? What about this header?
12321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12322 yes:no: )
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12326echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12327 ac_header_preproc=yes
12328 ;;
12329 no:yes:* )
12330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12331echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12333echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12335echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12337echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12341echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12342 (
12343 cat <<\_ASBOX
12344## ------------------------------------------ ##
12345## Report this to the AC_PACKAGE_NAME lists. ##
12346## ------------------------------------------ ##
12347_ASBOX
12348 ) |
12349 sed "s/^/$as_me: WARNING: /" >&2
12350 ;;
12351esac
12352echo "$as_me:$LINENO: checking for $ac_header" >&5
12353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12354if eval "test \"\${$as_ac_Header+set}\" = set"; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12356else
12357 eval "$as_ac_Header=\$ac_header_preproc"
12358fi
12359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12361
12362fi
12363if test `eval echo '${'$as_ac_Header'}'` = yes; then
12364 cat >>confdefs.h <<_ACEOF
12365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12366_ACEOF
12367
12368fi
12369
12370done
12371
12372
12373echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12374echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12375if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
12378 cat >conftest.$ac_ext <<_ACEOF
12379/* confdefs.h. */
12380_ACEOF
12381cat confdefs.h >>conftest.$ac_ext
12382cat >>conftest.$ac_ext <<_ACEOF
12383/* end confdefs.h. */
12384#include <unistd.h>
12385int
12386main ()
12387{
12388extern int getopt (int, char *const*, const char *);
12389 ;
12390 return 0;
12391}
12392_ACEOF
12393rm -f conftest.$ac_objext
12394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12395 (eval $ac_compile) 2>conftest.er1
12396 ac_status=$?
12397 grep -v '^ *+' conftest.er1 >conftest.err
12398 rm -f conftest.er1
12399 cat conftest.err >&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } &&
12402 { ac_try='test -z "$ac_c_werror_flag"
12403 || test ! -s conftest.err'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; } &&
12409 { ac_try='test -s conftest.$ac_objext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 gprof_cv_decl_getopt_unistd_h=yes
12416else
12417 echo "$as_me: failed program was:" >&5
12418sed 's/^/| /' conftest.$ac_ext >&5
12419
12420gprof_cv_decl_getopt_unistd_h=no
12421fi
12422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12423fi
12424
12425echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
12426echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
12427if test $gprof_cv_decl_getopt_unistd_h = yes; then
12428
12429cat >>confdefs.h <<\_ACEOF
12430#define HAVE_DECL_GETOPT 1
12431_ACEOF
12432
12433fi
12434
12435# Some systems have fabs only in -lm, not in -lc.
12436echo "$as_me:$LINENO: checking for library containing fabs" >&5
12437echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6
12438if test "${ac_cv_search_fabs+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12440else
12441 ac_func_search_save_LIBS=$LIBS
12442ac_cv_search_fabs=no
12443cat >conftest.$ac_ext <<_ACEOF
12444/* confdefs.h. */
12445_ACEOF
12446cat confdefs.h >>conftest.$ac_ext
12447cat >>conftest.$ac_ext <<_ACEOF
12448/* end confdefs.h. */
12449
12450/* Override any gcc2 internal prototype to avoid an error. */
12451#ifdef __cplusplus
12452extern "C"
12453#endif
12454/* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456char fabs ();
12457int
12458main ()
12459{
12460fabs ();
12461 ;
12462 return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext conftest$ac_exeext
12466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467 (eval $ac_link) 2>conftest.er1
12468 ac_status=$?
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try='test -z "$ac_c_werror_flag"
12475 || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest$ac_exeext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_cv_search_fabs="none required"
12488else
12489 echo "$as_me: failed program was:" >&5
12490sed 's/^/| /' conftest.$ac_ext >&5
12491
12492fi
12493rm -f conftest.err conftest.$ac_objext \
12494 conftest$ac_exeext conftest.$ac_ext
12495if test "$ac_cv_search_fabs" = no; then
12496 for ac_lib in m; do
12497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12498 cat >conftest.$ac_ext <<_ACEOF
12499/* confdefs.h. */
12500_ACEOF
12501cat confdefs.h >>conftest.$ac_ext
12502cat >>conftest.$ac_ext <<_ACEOF
12503/* end confdefs.h. */
12504
12505/* Override any gcc2 internal prototype to avoid an error. */
12506#ifdef __cplusplus
12507extern "C"
12508#endif
12509/* We use char because int might match the return type of a gcc2
12510 builtin and then its argument prototype would still apply. */
12511char fabs ();
12512int
12513main ()
12514{
12515fabs ();
12516 ;
12517 return 0;
12518}
12519_ACEOF
12520rm -f conftest.$ac_objext conftest$ac_exeext
12521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12522 (eval $ac_link) 2>conftest.er1
12523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
12529 { ac_try='test -z "$ac_c_werror_flag"
12530 || test ! -s conftest.err'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest$ac_exeext'
12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; }; then
12542 ac_cv_search_fabs="-l$ac_lib"
12543break
12544else
12545 echo "$as_me: failed program was:" >&5
12546sed 's/^/| /' conftest.$ac_ext >&5
12547
12548fi
12549rm -f conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 done
12552fi
12553LIBS=$ac_func_search_save_LIBS
12554fi
12555echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5
12556echo "${ECHO_T}$ac_cv_search_fabs" >&6
12557if test "$ac_cv_search_fabs" != no; then
12558 test "$ac_cv_search_fabs" = "none required" || LIBS="$ac_cv_search_fabs $LIBS"
12559
12560fi
12561
12562
12563
12564GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12565
12566# Check whether --enable-werror or --disable-werror was given.
12567if test "${enable_werror+set}" = set; then
12568 enableval="$enable_werror"
12569 case "${enableval}" in
12570 yes | y) ERROR_ON_WARNING="yes" ;;
12571 no | n) ERROR_ON_WARNING="no" ;;
12572 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
12573echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
12574 { (exit 1); exit 1; }; } ;;
12575 esac
12576fi;
12577
12578# Enable -Wno-format by default when using gcc on mingw
12579case "${host}" in
12580 *-*-mingw32*)
12581 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12582 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12583 fi
12584 ;;
12585 *) ;;
12586esac
12587
12588# Enable -Werror by default when using gcc
12589if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12590 ERROR_ON_WARNING=yes
12591fi
12592
12593NO_WERROR=
12594if test "${ERROR_ON_WARNING}" = yes ; then
12595 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12596 NO_WERROR="-Wno-error"
12597fi
12598
12599if test "${GCC}" = yes ; then
12600 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12601fi
12602
12603# Check whether --enable-build-warnings or --disable-build-warnings was given.
12604if test "${enable_build_warnings+set}" = set; then
12605 enableval="$enable_build_warnings"
12606 case "${enableval}" in
12607 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12608 no) if test "${GCC}" = yes ; then
12609 WARN_CFLAGS="-w"
12610 fi;;
12611 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12612 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12613 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12614 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12615 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12616esac
12617fi;
12618
12619if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12620 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12621fi
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12633
12634cat >confcache <<\_ACEOF
12635# This file is a shell script that caches the results of configure
12636# tests run on this system so they can be shared between configure
12637# scripts and configure runs, see configure's option --config-cache.
12638# It is not useful on other systems. If it contains results you don't
12639# want to keep, you may remove or edit it.
12640#
12641# config.status only pays attention to the cache file if you give it
12642# the --recheck option to rerun configure.
12643#
12644# `ac_cv_env_foo' variables (set or unset) will be overridden when
12645# loading this file, other *unset* `ac_cv_foo' will be assigned the
12646# following values.
12647
12648_ACEOF
12649
12650# The following way of writing the cache mishandles newlines in values,
12651# but we know of no workaround that is simple, portable, and efficient.
12652# So, don't put newlines in cache variables' values.
12653# Ultrix sh set writes to stderr and can't be redirected directly,
12654# and sets the high bit in the cache file unless we assign to the vars.
12655{
12656 (set) 2>&1 |
12657 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12658 *ac_space=\ *)
12659 # `set' does not quote correctly, so add quotes (double-quote
12660 # substitution turns \\\\ into \\, and sed turns \\ into \).
12661 sed -n \
12662 "s/'/'\\\\''/g;
12663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12664 ;;
12665 *)
12666 # `set' quotes correctly as required by POSIX, so do not add quotes.
12667 sed -n \
12668 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12669 ;;
12670 esac;
12671} |
12672 sed '
12673 t clear
12674 : clear
12675 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12676 t end
12677 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12678 : end' >>confcache
12679if diff $cache_file confcache >/dev/null 2>&1; then :; else
12680 if test -w $cache_file; then
12681 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12682 cat confcache >$cache_file
12683 else
12684 echo "not updating unwritable cache $cache_file"
12685 fi
12686fi
12687rm -f confcache
12688
12689test "x$prefix" = xNONE && prefix=$ac_default_prefix
12690# Let make expand exec_prefix.
12691test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12692
12693# VPATH may cause trouble with some makes, so we remove $(srcdir),
12694# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12695# trailing colons and then remove the whole line if VPATH becomes empty
12696# (actually we leave an empty line to preserve line numbers).
12697if test "x$srcdir" = x.; then
12698 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12699s/:*\$(srcdir):*/:/;
12700s/:*\${srcdir}:*/:/;
12701s/:*@srcdir@:*/:/;
12702s/^\([^=]*=[ ]*\):*/\1/;
12703s/:*$//;
12704s/^[^=]*=[ ]*$//;
12705}'
12706fi
12707
12708DEFS=-DHAVE_CONFIG_H
12709
12710ac_libobjs=
12711ac_ltlibobjs=
12712for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12713 # 1. Remove the extension, and $U if already installed.
12714 ac_i=`echo "$ac_i" |
12715 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12716 # 2. Add them.
12717 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12718 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12719done
12720LIBOBJS=$ac_libobjs
12721
12722LTLIBOBJS=$ac_ltlibobjs
12723
12724
12725if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12726 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12727Usually this means the macro was only invoked conditionally." >&5
12728echo "$as_me: error: conditional \"AMDEP\" was never defined.
12729Usually this means the macro was only invoked conditionally." >&2;}
12730 { (exit 1); exit 1; }; }
12731fi
12732if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12733 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12734Usually this means the macro was only invoked conditionally." >&5
12735echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12736Usually this means the macro was only invoked conditionally." >&2;}
12737 { (exit 1); exit 1; }; }
12738fi
12739if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12740 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12741Usually this means the macro was only invoked conditionally." >&5
12742echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12743Usually this means the macro was only invoked conditionally." >&2;}
12744 { (exit 1); exit 1; }; }
12745fi
12746if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12747 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12748Usually this means the macro was only invoked conditionally." >&5
12749echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12750Usually this means the macro was only invoked conditionally." >&2;}
12751 { (exit 1); exit 1; }; }
12752fi
12753
12754: ${CONFIG_STATUS=./config.status}
12755ac_clean_files_save=$ac_clean_files
12756ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12757{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12758echo "$as_me: creating $CONFIG_STATUS" >&6;}
12759cat >$CONFIG_STATUS <<_ACEOF
12760#! $SHELL
12761# Generated by $as_me.
12762# Run this file to recreate the current configuration.
12763# Compiler output produced by configure, useful for debugging
12764# configure, is in config.log if it exists.
12765
12766debug=false
12767ac_cs_recheck=false
12768ac_cs_silent=false
12769SHELL=\${CONFIG_SHELL-$SHELL}
12770_ACEOF
12771
12772cat >>$CONFIG_STATUS <<\_ACEOF
12773## --------------------- ##
12774## M4sh Initialization. ##
12775## --------------------- ##
12776
12777# Be Bourne compatible
12778if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12779 emulate sh
12780 NULLCMD=:
12781 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12782 # is contrary to our usage. Disable this feature.
12783 alias -g '${1+"$@"}'='"$@"'
12784elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12785 set -o posix
12786fi
12787DUALCASE=1; export DUALCASE # for MKS sh
12788
12789# Support unset when possible.
12790if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12791 as_unset=unset
12792else
12793 as_unset=false
12794fi
12795
12796
12797# Work around bugs in pre-3.0 UWIN ksh.
12798$as_unset ENV MAIL MAILPATH
12799PS1='$ '
12800PS2='> '
12801PS4='+ '
12802
12803# NLS nuisances.
12804for as_var in \
12805 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12806 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12807 LC_TELEPHONE LC_TIME
12808do
12809 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12810 eval $as_var=C; export $as_var
12811 else
12812 $as_unset $as_var
12813 fi
12814done
12815
12816# Required to use basename.
12817if expr a : '\(a\)' >/dev/null 2>&1; then
12818 as_expr=expr
12819else
12820 as_expr=false
12821fi
12822
12823if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12824 as_basename=basename
12825else
12826 as_basename=false
12827fi
12828
12829
12830# Name of the executable.
12831as_me=`$as_basename "$0" ||
12832$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12833 X"$0" : 'X\(//\)$' \| \
12834 X"$0" : 'X\(/\)$' \| \
12835 . : '\(.\)' 2>/dev/null ||
12836echo X/"$0" |
12837 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12838 /^X\/\(\/\/\)$/{ s//\1/; q; }
12839 /^X\/\(\/\).*/{ s//\1/; q; }
12840 s/.*/./; q'`
12841
12842
12843# PATH needs CR, and LINENO needs CR and PATH.
12844# Avoid depending upon Character Ranges.
12845as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12846as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12847as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12848as_cr_digits='0123456789'
12849as_cr_alnum=$as_cr_Letters$as_cr_digits
12850
12851# The user is always right.
12852if test "${PATH_SEPARATOR+set}" != set; then
12853 echo "#! /bin/sh" >conf$$.sh
12854 echo "exit 0" >>conf$$.sh
12855 chmod +x conf$$.sh
12856 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12857 PATH_SEPARATOR=';'
12858 else
12859 PATH_SEPARATOR=:
12860 fi
12861 rm -f conf$$.sh
12862fi
12863
12864
12865 as_lineno_1=$LINENO
12866 as_lineno_2=$LINENO
12867 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12868 test "x$as_lineno_1" != "x$as_lineno_2" &&
12869 test "x$as_lineno_3" = "x$as_lineno_2" || {
12870 # Find who we are. Look in the path if we contain no path at all
12871 # relative or not.
12872 case $0 in
12873 *[\\/]* ) as_myself=$0 ;;
12874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875for as_dir in $PATH
12876do
12877 IFS=$as_save_IFS
12878 test -z "$as_dir" && as_dir=.
12879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12880done
12881
12882 ;;
12883 esac
12884 # We did not find ourselves, most probably we were run as `sh COMMAND'
12885 # in which case we are not to be found in the path.
12886 if test "x$as_myself" = x; then
12887 as_myself=$0
12888 fi
12889 if test ! -f "$as_myself"; then
12890 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12891echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12892 { (exit 1); exit 1; }; }
12893 fi
12894 case $CONFIG_SHELL in
12895 '')
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12898do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for as_base in sh bash ksh sh5; do
12902 case $as_dir in
12903 /*)
12904 if ("$as_dir/$as_base" -c '
12905 as_lineno_1=$LINENO
12906 as_lineno_2=$LINENO
12907 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12908 test "x$as_lineno_1" != "x$as_lineno_2" &&
12909 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12910 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12911 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12912 CONFIG_SHELL=$as_dir/$as_base
12913 export CONFIG_SHELL
12914 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12915 fi;;
12916 esac
12917 done
12918done
12919;;
12920 esac
12921
12922 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12923 # uniformly replaced by the line number. The first 'sed' inserts a
12924 # line-number line before each line; the second 'sed' does the real
12925 # work. The second script uses 'N' to pair each line-number line
12926 # with the numbered line, and appends trailing '-' during
12927 # substitution so that $LINENO is not a special case at line end.
12928 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12929 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12930 sed '=' <$as_myself |
12931 sed '
12932 N
12933 s,$,-,
12934 : loop
12935 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12936 t loop
12937 s,-$,,
12938 s,^['$as_cr_digits']*\n,,
12939 ' >$as_me.lineno &&
12940 chmod +x $as_me.lineno ||
12941 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12942echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12943 { (exit 1); exit 1; }; }
12944
12945 # Don't try to exec as it changes $[0], causing all sort of problems
12946 # (the dirname of $[0] is not the place where we might find the
12947 # original and so on. Autoconf is especially sensible to this).
12948 . ./$as_me.lineno
12949 # Exit status is that of the last command.
12950 exit
12951}
12952
12953
12954case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12955 *c*,-n*) ECHO_N= ECHO_C='
12956' ECHO_T=' ' ;;
12957 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12958 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12959esac
12960
12961if expr a : '\(a\)' >/dev/null 2>&1; then
12962 as_expr=expr
12963else
12964 as_expr=false
12965fi
12966
12967rm -f conf$$ conf$$.exe conf$$.file
12968echo >conf$$.file
12969if ln -s conf$$.file conf$$ 2>/dev/null; then
12970 # We could just check for DJGPP; but this test a) works b) is more generic
12971 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12972 if test -f conf$$.exe; then
12973 # Don't use ln at all; we don't have any links
12974 as_ln_s='cp -p'
12975 else
12976 as_ln_s='ln -s'
12977 fi
12978elif ln conf$$.file conf$$ 2>/dev/null; then
12979 as_ln_s=ln
12980else
12981 as_ln_s='cp -p'
12982fi
12983rm -f conf$$ conf$$.exe conf$$.file
12984
12985if mkdir -p . 2>/dev/null; then
12986 as_mkdir_p=:
12987else
12988 test -d ./-p && rmdir ./-p
12989 as_mkdir_p=false
12990fi
12991
12992as_executable_p="test -f"
12993
12994# Sed expression to map a string onto a valid CPP name.
12995as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12996
12997# Sed expression to map a string onto a valid variable name.
12998as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12999
13000
13001# IFS
13002# We need space, tab and new line, in precisely that order.
13003as_nl='
13004'
13005IFS=" $as_nl"
13006
13007# CDPATH.
13008$as_unset CDPATH
13009
13010exec 6>&1
13011
13012# Open the log real soon, to keep \$[0] and so on meaningful, and to
13013# report actual input values of CONFIG_FILES etc. instead of their
13014# values after options handling. Logging --version etc. is OK.
13015exec 5>>config.log
13016{
13017 echo
13018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13019## Running $as_me. ##
13020_ASBOX
13021} >&5
13022cat >&5 <<_CSEOF
13023
13024This file was extended by $as_me, which was
13025generated by GNU Autoconf 2.59. Invocation command line was
13026
13027 CONFIG_FILES = $CONFIG_FILES
13028 CONFIG_HEADERS = $CONFIG_HEADERS
13029 CONFIG_LINKS = $CONFIG_LINKS
13030 CONFIG_COMMANDS = $CONFIG_COMMANDS
13031 $ $0 $@
13032
13033_CSEOF
13034echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13035echo >&5
13036_ACEOF
13037
13038# Files that config.status was made for.
13039if test -n "$ac_config_files"; then
13040 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13041fi
13042
13043if test -n "$ac_config_headers"; then
13044 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13045fi
13046
13047if test -n "$ac_config_links"; then
13048 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13049fi
13050
13051if test -n "$ac_config_commands"; then
13052 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13053fi
13054
13055cat >>$CONFIG_STATUS <<\_ACEOF
13056
13057ac_cs_usage="\
13058\`$as_me' instantiates files from templates according to the
13059current configuration.
13060
13061Usage: $0 [OPTIONS] [FILE]...
13062
13063 -h, --help print this help, then exit
13064 -V, --version print version number, then exit
13065 -q, --quiet do not print progress messages
13066 -d, --debug don't remove temporary files
13067 --recheck update $as_me by reconfiguring in the same conditions
13068 --file=FILE[:TEMPLATE]
13069 instantiate the configuration file FILE
13070 --header=FILE[:TEMPLATE]
13071 instantiate the configuration header FILE
13072
13073Configuration files:
13074$config_files
13075
13076Configuration headers:
13077$config_headers
13078
13079Configuration commands:
13080$config_commands
13081
13082Report bugs to <bug-autoconf@gnu.org>."
13083_ACEOF
13084
13085cat >>$CONFIG_STATUS <<_ACEOF
13086ac_cs_version="\\
13087config.status
13088configured by $0, generated by GNU Autoconf 2.59,
13089 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13090
13091Copyright (C) 2003 Free Software Foundation, Inc.
13092This config.status script is free software; the Free Software Foundation
13093gives unlimited permission to copy, distribute and modify it."
13094srcdir=$srcdir
13095INSTALL="$INSTALL"
13096_ACEOF
13097
13098cat >>$CONFIG_STATUS <<\_ACEOF
13099# If no file are specified by the user, then we need to provide default
13100# value. By we need to know if files were specified by the user.
13101ac_need_defaults=:
13102while test $# != 0
13103do
13104 case $1 in
13105 --*=*)
13106 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13107 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13108 ac_shift=:
13109 ;;
13110 -*)
13111 ac_option=$1
13112 ac_optarg=$2
13113 ac_shift=shift
13114 ;;
13115 *) # This is not an option, so the user has probably given explicit
13116 # arguments.
13117 ac_option=$1
13118 ac_need_defaults=false;;
13119 esac
13120
13121 case $ac_option in
13122 # Handling of the options.
13123_ACEOF
13124cat >>$CONFIG_STATUS <<\_ACEOF
13125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13126 ac_cs_recheck=: ;;
13127 --version | --vers* | -V )
13128 echo "$ac_cs_version"; exit 0 ;;
13129 --he | --h)
13130 # Conflict between --help and --header
13131 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13132Try \`$0 --help' for more information." >&5
13133echo "$as_me: error: ambiguous option: $1
13134Try \`$0 --help' for more information." >&2;}
13135 { (exit 1); exit 1; }; };;
13136 --help | --hel | -h )
13137 echo "$ac_cs_usage"; exit 0 ;;
13138 --debug | --d* | -d )
13139 debug=: ;;
13140 --file | --fil | --fi | --f )
13141 $ac_shift
13142 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13143 ac_need_defaults=false;;
13144 --header | --heade | --head | --hea )
13145 $ac_shift
13146 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13147 ac_need_defaults=false;;
13148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13150 ac_cs_silent=: ;;
13151
13152 # This is an error.
13153 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13154Try \`$0 --help' for more information." >&5
13155echo "$as_me: error: unrecognized option: $1
13156Try \`$0 --help' for more information." >&2;}
13157 { (exit 1); exit 1; }; } ;;
13158
13159 *) ac_config_targets="$ac_config_targets $1" ;;
13160
13161 esac
13162 shift
13163done
13164
13165ac_configure_extra_args=
13166
13167if $ac_cs_silent; then
13168 exec 6>/dev/null
13169 ac_configure_extra_args="$ac_configure_extra_args --silent"
13170fi
13171
13172_ACEOF
13173cat >>$CONFIG_STATUS <<_ACEOF
13174if \$ac_cs_recheck; then
13175 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13176 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13177fi
13178
13179_ACEOF
13180
13181cat >>$CONFIG_STATUS <<_ACEOF
13182#
13183# INIT-COMMANDS section.
13184#
13185
13186AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13187
13188
13189# The HP-UX ksh and POSIX shell print the target directory to stdout
13190# if CDPATH is set.
13191(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13192
13193sed_quote_subst='$sed_quote_subst'
13194double_quote_subst='$double_quote_subst'
13195delay_variable_subst='$delay_variable_subst'
13196macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13197macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13198enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13199enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13200pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13201enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13202host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13203host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13204host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13205build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13206build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13207build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13208SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13209Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13210GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13211EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13212FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13213LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13214NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13215LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13216max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13217ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13218exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13219lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13220lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13221lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13222reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13223reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13224OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13225deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13226file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13227AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13228AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13229STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13230RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13231old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13232old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13233old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13234CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13235CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13236compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13237GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13238lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13239lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13240lt_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"`'
13241lt_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"`'
13242objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13243SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13244ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13245MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13246lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13247lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13248lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13249lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13250lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13251need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13252DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13253NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13254LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13255OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13256OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13257libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13258shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13259extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13260archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13261enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13262export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13263whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13264compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13265old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13266old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13267archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13268archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13269module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13270module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13271with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13272allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13273no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13274hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13275hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13276hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13277hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13278hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13279hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13280hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13281hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13282inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13283link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13284fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13285always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13286export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13287exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13288include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13289prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13290file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13291variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13292need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13293need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13294version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13295runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13296shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13297shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13298libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13299library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13300soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13301postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13302postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13303finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13304finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13305hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13306sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13307sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13308hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13309enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13310enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13311enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13312old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13313striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13314
13315LTCC='$LTCC'
13316LTCFLAGS='$LTCFLAGS'
13317compiler='$compiler_DEFAULT'
13318
13319# Quote evaled strings.
13320for var in SED \
13321GREP \
13322EGREP \
13323FGREP \
13324LD \
13325NM \
13326LN_S \
13327lt_SP2NL \
13328lt_NL2SP \
13329reload_flag \
13330OBJDUMP \
13331deplibs_check_method \
13332file_magic_cmd \
13333AR \
13334AR_FLAGS \
13335STRIP \
13336RANLIB \
13337CC \
13338CFLAGS \
13339compiler \
13340lt_cv_sys_global_symbol_pipe \
13341lt_cv_sys_global_symbol_to_cdecl \
13342lt_cv_sys_global_symbol_to_c_name_address \
13343lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13344SHELL \
13345ECHO \
13346lt_prog_compiler_no_builtin_flag \
13347lt_prog_compiler_wl \
13348lt_prog_compiler_pic \
13349lt_prog_compiler_static \
13350lt_cv_prog_compiler_c_o \
13351need_locks \
13352DSYMUTIL \
13353NMEDIT \
13354LIPO \
13355OTOOL \
13356OTOOL64 \
13357shrext_cmds \
13358export_dynamic_flag_spec \
13359whole_archive_flag_spec \
13360compiler_needs_object \
13361with_gnu_ld \
13362allow_undefined_flag \
13363no_undefined_flag \
13364hardcode_libdir_flag_spec \
13365hardcode_libdir_flag_spec_ld \
13366hardcode_libdir_separator \
13367fix_srcfile_path \
13368exclude_expsyms \
13369include_expsyms \
13370file_list_spec \
13371variables_saved_for_relink \
13372libname_spec \
13373library_names_spec \
13374soname_spec \
13375finish_eval \
13376old_striplib \
13377striplib; do
13378 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13379 *[\\\\\\\`\\"\\\$]*)
13380 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13381 ;;
13382 *)
13383 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13384 ;;
13385 esac
13386done
13387
13388# Double-quote double-evaled strings.
13389for var in reload_cmds \
13390old_postinstall_cmds \
13391old_postuninstall_cmds \
13392old_archive_cmds \
13393extract_expsyms_cmds \
13394old_archive_from_new_cmds \
13395old_archive_from_expsyms_cmds \
13396archive_cmds \
13397archive_expsym_cmds \
13398module_cmds \
13399module_expsym_cmds \
13400export_symbols_cmds \
13401prelink_cmds \
13402postinstall_cmds \
13403postuninstall_cmds \
13404finish_cmds \
13405sys_lib_search_path_spec \
13406sys_lib_dlsearch_path_spec; do
13407 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13408 *[\\\\\\\`\\"\\\$]*)
13409 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13410 ;;
13411 *)
13412 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13413 ;;
13414 esac
13415done
13416
13417# Fix-up fallback echo if it was mangled by the above quoting rules.
13418case \$lt_ECHO in
13419*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13420 ;;
13421esac
13422
13423ac_aux_dir='$ac_aux_dir'
13424xsi_shell='$xsi_shell'
13425lt_shell_append='$lt_shell_append'
13426
13427# See if we are running on zsh, and set the options which allow our
13428# commands through without removal of \ escapes INIT.
13429if test -n "\${ZSH_VERSION+set}" ; then
13430 setopt NO_GLOB_SUBST
13431fi
13432
13433
13434 PACKAGE='$PACKAGE'
13435 VERSION='$VERSION'
13436 TIMESTAMP='$TIMESTAMP'
13437 RM='$RM'
13438 ofile='$ofile'
13439
13440
13441
13442# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13443 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13444 # from automake.
13445 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13446 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13447 LINGUAS="${LINGUAS-%UNSET%}"
13448
13449
13450_ACEOF
13451
13452
13453
13454cat >>$CONFIG_STATUS <<\_ACEOF
13455for ac_config_target in $ac_config_targets
13456do
13457 case "$ac_config_target" in
13458 # Handling of arguments.
13459 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13460 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13461 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13462 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13463 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13464 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
13465 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13466echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13467 { (exit 1); exit 1; }; };;
13468 esac
13469done
13470
13471# If the user did not use the arguments to specify the items to instantiate,
13472# then the envvar interface is used. Set only those that are not.
13473# We use the long form for the default assignment because of an extremely
13474# bizarre bug on SunOS 4.1.3.
13475if $ac_need_defaults; then
13476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13478 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13479fi
13480
13481# Have a temporary directory for convenience. Make it in the build tree
13482# simply because there is no reason to put it here, and in addition,
13483# creating and moving files from /tmp can sometimes cause problems.
13484# Create a temporary directory, and hook for its removal unless debugging.
13485$debug ||
13486{
13487 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13488 trap '{ (exit 1); exit 1; }' 1 2 13 15
13489}
13490
13491# Create a (secure) tmp directory for tmp files.
13492
13493{
13494 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13495 test -n "$tmp" && test -d "$tmp"
13496} ||
13497{
13498 tmp=./confstat$$-$RANDOM
13499 (umask 077 && mkdir $tmp)
13500} ||
13501{
13502 echo "$me: cannot create a temporary directory in ." >&2
13503 { (exit 1); exit 1; }
13504}
13505
13506_ACEOF
13507
13508cat >>$CONFIG_STATUS <<_ACEOF
13509
13510#
13511# CONFIG_FILES section.
13512#
13513
13514# No need to generate the scripts if there are no CONFIG_FILES.
13515# This happens for instance when ./config.status config.h
13516if test -n "\$CONFIG_FILES"; then
13517 # Protect against being on the right side of a sed subst in config.status.
13518 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13519 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13520s,@SHELL@,$SHELL,;t t
13521s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13522s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13523s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13524s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13525s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13526s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13527s,@exec_prefix@,$exec_prefix,;t t
13528s,@prefix@,$prefix,;t t
13529s,@program_transform_name@,$program_transform_name,;t t
13530s,@bindir@,$bindir,;t t
13531s,@sbindir@,$sbindir,;t t
13532s,@libexecdir@,$libexecdir,;t t
13533s,@datadir@,$datadir,;t t
13534s,@sysconfdir@,$sysconfdir,;t t
13535s,@sharedstatedir@,$sharedstatedir,;t t
13536s,@localstatedir@,$localstatedir,;t t
13537s,@libdir@,$libdir,;t t
13538s,@includedir@,$includedir,;t t
13539s,@oldincludedir@,$oldincludedir,;t t
13540s,@infodir@,$infodir,;t t
13541s,@mandir@,$mandir,;t t
13542s,@build_alias@,$build_alias,;t t
13543s,@host_alias@,$host_alias,;t t
13544s,@target_alias@,$target_alias,;t t
13545s,@DEFS@,$DEFS,;t t
13546s,@ECHO_C@,$ECHO_C,;t t
13547s,@ECHO_N@,$ECHO_N,;t t
13548s,@ECHO_T@,$ECHO_T,;t t
13549s,@LIBS@,$LIBS,;t t
13550s,@build@,$build,;t t
13551s,@build_cpu@,$build_cpu,;t t
13552s,@build_vendor@,$build_vendor,;t t
13553s,@build_os@,$build_os,;t t
13554s,@host@,$host,;t t
13555s,@host_cpu@,$host_cpu,;t t
13556s,@host_vendor@,$host_vendor,;t t
13557s,@host_os@,$host_os,;t t
13558s,@target@,$target,;t t
13559s,@target_cpu@,$target_cpu,;t t
13560s,@target_vendor@,$target_vendor,;t t
13561s,@target_os@,$target_os,;t t
13562s,@CC@,$CC,;t t
13563s,@CFLAGS@,$CFLAGS,;t t
13564s,@LDFLAGS@,$LDFLAGS,;t t
13565s,@CPPFLAGS@,$CPPFLAGS,;t t
13566s,@ac_ct_CC@,$ac_ct_CC,;t t
13567s,@EXEEXT@,$EXEEXT,;t t
13568s,@OBJEXT@,$OBJEXT,;t t
13569s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13570s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13571s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13572s,@CYGPATH_W@,$CYGPATH_W,;t t
13573s,@PACKAGE@,$PACKAGE,;t t
13574s,@VERSION@,$VERSION,;t t
13575s,@ACLOCAL@,$ACLOCAL,;t t
13576s,@AUTOCONF@,$AUTOCONF,;t t
13577s,@AUTOMAKE@,$AUTOMAKE,;t t
13578s,@AUTOHEADER@,$AUTOHEADER,;t t
13579s,@MAKEINFO@,$MAKEINFO,;t t
13580s,@install_sh@,$install_sh,;t t
13581s,@STRIP@,$STRIP,;t t
13582s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13583s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13584s,@mkdir_p@,$mkdir_p,;t t
13585s,@AWK@,$AWK,;t t
13586s,@SET_MAKE@,$SET_MAKE,;t t
13587s,@am__leading_dot@,$am__leading_dot,;t t
13588s,@AMTAR@,$AMTAR,;t t
13589s,@am__tar@,$am__tar,;t t
13590s,@am__untar@,$am__untar,;t t
13591s,@DEPDIR@,$DEPDIR,;t t
13592s,@am__include@,$am__include,;t t
13593s,@am__quote@,$am__quote,;t t
13594s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13595s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13596s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13597s,@CCDEPMODE@,$CCDEPMODE,;t t
13598s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13599s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13600s,@CPP@,$CPP,;t t
13601s,@EGREP@,$EGREP,;t t
13602s,@LIBTOOL@,$LIBTOOL,;t t
13603s,@SED@,$SED,;t t
13604s,@FGREP@,$FGREP,;t t
13605s,@GREP@,$GREP,;t t
13606s,@LD@,$LD,;t t
13607s,@DUMPBIN@,$DUMPBIN,;t t
13608s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13609s,@NM@,$NM,;t t
13610s,@LN_S@,$LN_S,;t t
13611s,@OBJDUMP@,$OBJDUMP,;t t
13612s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
13613s,@AR@,$AR,;t t
13614s,@ac_ct_AR@,$ac_ct_AR,;t t
13615s,@RANLIB@,$RANLIB,;t t
13616s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13617s,@lt_ECHO@,$lt_ECHO,;t t
13618s,@DSYMUTIL@,$DSYMUTIL,;t t
13619s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
13620s,@NMEDIT@,$NMEDIT,;t t
13621s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
13622s,@LIPO@,$LIPO,;t t
13623s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
13624s,@OTOOL@,$OTOOL,;t t
13625s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
13626s,@OTOOL64@,$OTOOL64,;t t
13627s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
13628s,@USE_NLS@,$USE_NLS,;t t
13629s,@LIBINTL@,$LIBINTL,;t t
13630s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13631s,@INCINTL@,$INCINTL,;t t
13632s,@XGETTEXT@,$XGETTEXT,;t t
13633s,@GMSGFMT@,$GMSGFMT,;t t
13634s,@POSUB@,$POSUB,;t t
13635s,@CATALOGS@,$CATALOGS,;t t
13636s,@DATADIRNAME@,$DATADIRNAME,;t t
13637s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13638s,@GENCAT@,$GENCAT,;t t
13639s,@CATOBJEXT@,$CATOBJEXT,;t t
13640s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13641s,@MSGFMT@,$MSGFMT,;t t
13642s,@MSGMERGE@,$MSGMERGE,;t t
13643s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13644s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13645s,@MAINT@,$MAINT,;t t
13646s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13647s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13648s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13649s,@NO_WERROR@,$NO_WERROR,;t t
13650s,@datarootdir@,$datarootdir,;t t
13651s,@docdir@,$docdir,;t t
13652s,@htmldir@,$htmldir,;t t
13653s,@pdfdir@,$pdfdir,;t t
13654s,@LIBOBJS@,$LIBOBJS,;t t
13655s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13656CEOF
13657
13658_ACEOF
13659
13660 cat >>$CONFIG_STATUS <<\_ACEOF
13661 # Split the substitutions into bite-sized pieces for seds with
13662 # small command number limits, like on Digital OSF/1 and HP-UX.
13663 ac_max_sed_lines=48
13664 ac_sed_frag=1 # Number of current file.
13665 ac_beg=1 # First line for current file.
13666 ac_end=$ac_max_sed_lines # Line after last line for current file.
13667 ac_more_lines=:
13668 ac_sed_cmds=
13669 while $ac_more_lines; do
13670 if test $ac_beg -gt 1; then
13671 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13672 else
13673 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13674 fi
13675 if test ! -s $tmp/subs.frag; then
13676 ac_more_lines=false
13677 else
13678 # The purpose of the label and of the branching condition is to
13679 # speed up the sed processing (if there are no `@' at all, there
13680 # is no need to browse any of the substitutions).
13681 # These are the two extra sed commands mentioned above.
13682 (echo ':t
13683 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13684 if test -z "$ac_sed_cmds"; then
13685 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13686 else
13687 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13688 fi
13689 ac_sed_frag=`expr $ac_sed_frag + 1`
13690 ac_beg=$ac_end
13691 ac_end=`expr $ac_end + $ac_max_sed_lines`
13692 fi
13693 done
13694 if test -z "$ac_sed_cmds"; then
13695 ac_sed_cmds=cat
13696 fi
13697fi # test -n "$CONFIG_FILES"
13698
13699_ACEOF
13700cat >>$CONFIG_STATUS <<\_ACEOF
13701for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13703 case $ac_file in
13704 - | *:- | *:-:* ) # input from stdin
13705 cat >$tmp/stdin
13706 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13708 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13709 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13710 * ) ac_file_in=$ac_file.in ;;
13711 esac
13712
13713 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13714 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13715$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13716 X"$ac_file" : 'X\(//\)[^/]' \| \
13717 X"$ac_file" : 'X\(//\)$' \| \
13718 X"$ac_file" : 'X\(/\)' \| \
13719 . : '\(.\)' 2>/dev/null ||
13720echo X"$ac_file" |
13721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13723 /^X\(\/\/\)$/{ s//\1/; q; }
13724 /^X\(\/\).*/{ s//\1/; q; }
13725 s/.*/./; q'`
13726 { if $as_mkdir_p; then
13727 mkdir -p "$ac_dir"
13728 else
13729 as_dir="$ac_dir"
13730 as_dirs=
13731 while test ! -d "$as_dir"; do
13732 as_dirs="$as_dir $as_dirs"
13733 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13734$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13735 X"$as_dir" : 'X\(//\)[^/]' \| \
13736 X"$as_dir" : 'X\(//\)$' \| \
13737 X"$as_dir" : 'X\(/\)' \| \
13738 . : '\(.\)' 2>/dev/null ||
13739echo X"$as_dir" |
13740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13742 /^X\(\/\/\)$/{ s//\1/; q; }
13743 /^X\(\/\).*/{ s//\1/; q; }
13744 s/.*/./; q'`
13745 done
13746 test ! -n "$as_dirs" || mkdir $as_dirs
13747 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13748echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13749 { (exit 1); exit 1; }; }; }
13750
13751 ac_builddir=.
13752
13753if test "$ac_dir" != .; then
13754 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13755 # A "../" for each directory in $ac_dir_suffix.
13756 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13757else
13758 ac_dir_suffix= ac_top_builddir=
13759fi
13760
13761case $srcdir in
13762 .) # No --srcdir option. We are building in place.
13763 ac_srcdir=.
13764 if test -z "$ac_top_builddir"; then
13765 ac_top_srcdir=.
13766 else
13767 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13768 fi ;;
13769 [\\/]* | ?:[\\/]* ) # Absolute path.
13770 ac_srcdir=$srcdir$ac_dir_suffix;
13771 ac_top_srcdir=$srcdir ;;
13772 *) # Relative path.
13773 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13774 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13775esac
13776
13777# Do not use `cd foo && pwd` to compute absolute paths, because
13778# the directories may not exist.
13779case `pwd` in
13780.) ac_abs_builddir="$ac_dir";;
13781*)
13782 case "$ac_dir" in
13783 .) ac_abs_builddir=`pwd`;;
13784 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13785 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13786 esac;;
13787esac
13788case $ac_abs_builddir in
13789.) ac_abs_top_builddir=${ac_top_builddir}.;;
13790*)
13791 case ${ac_top_builddir}. in
13792 .) ac_abs_top_builddir=$ac_abs_builddir;;
13793 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13794 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13795 esac;;
13796esac
13797case $ac_abs_builddir in
13798.) ac_abs_srcdir=$ac_srcdir;;
13799*)
13800 case $ac_srcdir in
13801 .) ac_abs_srcdir=$ac_abs_builddir;;
13802 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13803 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13804 esac;;
13805esac
13806case $ac_abs_builddir in
13807.) ac_abs_top_srcdir=$ac_top_srcdir;;
13808*)
13809 case $ac_top_srcdir in
13810 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13811 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13812 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13813 esac;;
13814esac
13815
13816
13817 case $INSTALL in
13818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13819 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13820 esac
13821
13822 if test x"$ac_file" != x-; then
13823 { echo "$as_me:$LINENO: creating $ac_file" >&5
13824echo "$as_me: creating $ac_file" >&6;}
13825 rm -f "$ac_file"
13826 fi
13827 # Let's still pretend it is `configure' which instantiates (i.e., don't
13828 # use $as_me), people would be surprised to read:
13829 # /* config.h. Generated by config.status. */
13830 if test x"$ac_file" = x-; then
13831 configure_input=
13832 else
13833 configure_input="$ac_file. "
13834 fi
13835 configure_input=$configure_input"Generated from `echo $ac_file_in |
13836 sed 's,.*/,,'` by configure."
13837
13838 # First look for the input files in the build tree, otherwise in the
13839 # src tree.
13840 ac_file_inputs=`IFS=:
13841 for f in $ac_file_in; do
13842 case $f in
13843 -) echo $tmp/stdin ;;
13844 [\\/$]*)
13845 # Absolute (can't be DOS-style, as IFS=:)
13846 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13847echo "$as_me: error: cannot find input file: $f" >&2;}
13848 { (exit 1); exit 1; }; }
13849 echo "$f";;
13850 *) # Relative
13851 if test -f "$f"; then
13852 # Build tree
13853 echo "$f"
13854 elif test -f "$srcdir/$f"; then
13855 # Source tree
13856 echo "$srcdir/$f"
13857 else
13858 # /dev/null tree
13859 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13860echo "$as_me: error: cannot find input file: $f" >&2;}
13861 { (exit 1); exit 1; }; }
13862 fi;;
13863 esac
13864 done` || { (exit 1); exit 1; }
13865_ACEOF
13866cat >>$CONFIG_STATUS <<_ACEOF
13867 sed "$ac_vpsub
13868$extrasub
13869_ACEOF
13870cat >>$CONFIG_STATUS <<\_ACEOF
13871:t
13872/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13873s,@configure_input@,$configure_input,;t t
13874s,@srcdir@,$ac_srcdir,;t t
13875s,@abs_srcdir@,$ac_abs_srcdir,;t t
13876s,@top_srcdir@,$ac_top_srcdir,;t t
13877s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13878s,@builddir@,$ac_builddir,;t t
13879s,@abs_builddir@,$ac_abs_builddir,;t t
13880s,@top_builddir@,$ac_top_builddir,;t t
13881s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13882s,@INSTALL@,$ac_INSTALL,;t t
13883" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13884 rm -f $tmp/stdin
13885 if test x"$ac_file" != x-; then
13886 mv $tmp/out $ac_file
13887 else
13888 cat $tmp/out
13889 rm -f $tmp/out
13890 fi
13891
13892done
13893_ACEOF
13894cat >>$CONFIG_STATUS <<\_ACEOF
13895
13896#
13897# CONFIG_HEADER section.
13898#
13899
13900# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13901# NAME is the cpp macro being defined and VALUE is the value it is being given.
13902#
13903# ac_d sets the value in "#define NAME VALUE" lines.
13904ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13905ac_dB='[ ].*$,\1#\2'
13906ac_dC=' '
13907ac_dD=',;t'
13908# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13909ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13910ac_uB='$,\1#\2define\3'
13911ac_uC=' '
13912ac_uD=',;t'
13913
13914for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13915 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13916 case $ac_file in
13917 - | *:- | *:-:* ) # input from stdin
13918 cat >$tmp/stdin
13919 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13920 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13921 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13923 * ) ac_file_in=$ac_file.in ;;
13924 esac
13925
13926 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13927echo "$as_me: creating $ac_file" >&6;}
13928
13929 # First look for the input files in the build tree, otherwise in the
13930 # src tree.
13931 ac_file_inputs=`IFS=:
13932 for f in $ac_file_in; do
13933 case $f in
13934 -) echo $tmp/stdin ;;
13935 [\\/$]*)
13936 # Absolute (can't be DOS-style, as IFS=:)
13937 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13938echo "$as_me: error: cannot find input file: $f" >&2;}
13939 { (exit 1); exit 1; }; }
13940 # Do quote $f, to prevent DOS paths from being IFS'd.
13941 echo "$f";;
13942 *) # Relative
13943 if test -f "$f"; then
13944 # Build tree
13945 echo "$f"
13946 elif test -f "$srcdir/$f"; then
13947 # Source tree
13948 echo "$srcdir/$f"
13949 else
13950 # /dev/null tree
13951 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13952echo "$as_me: error: cannot find input file: $f" >&2;}
13953 { (exit 1); exit 1; }; }
13954 fi;;
13955 esac
13956 done` || { (exit 1); exit 1; }
13957 # Remove the trailing spaces.
13958 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13959
13960_ACEOF
13961
13962# Transform confdefs.h into two sed scripts, `conftest.defines' and
13963# `conftest.undefs', that substitutes the proper values into
13964# config.h.in to produce config.h. The first handles `#define'
13965# templates, and the second `#undef' templates.
13966# And first: Protect against being on the right side of a sed subst in
13967# config.status. Protect against being in an unquoted here document
13968# in config.status.
13969rm -f conftest.defines conftest.undefs
13970# Using a here document instead of a string reduces the quoting nightmare.
13971# Putting comments in sed scripts is not portable.
13972#
13973# `end' is used to avoid that the second main sed command (meant for
13974# 0-ary CPP macros) applies to n-ary macro definitions.
13975# See the Autoconf documentation for `clear'.
13976cat >confdef2sed.sed <<\_ACEOF
13977s/[\\&,]/\\&/g
13978s,[\\$`],\\&,g
13979t clear
13980: clear
13981s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13982t end
13983s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13984: end
13985_ACEOF
13986# If some macros were called several times there might be several times
13987# the same #defines, which is useless. Nevertheless, we may not want to
13988# sort them, since we want the *last* AC-DEFINE to be honored.
13989uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13990sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13991rm -f confdef2sed.sed
13992
13993# This sed command replaces #undef with comments. This is necessary, for
13994# example, in the case of _POSIX_SOURCE, which is predefined and required
13995# on some systems where configure will not decide to define it.
13996cat >>conftest.undefs <<\_ACEOF
13997s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13998_ACEOF
13999
14000# Break up conftest.defines because some shells have a limit on the size
14001# of here documents, and old seds have small limits too (100 cmds).
14002echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14003echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14004echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14005echo ' :' >>$CONFIG_STATUS
14006rm -f conftest.tail
14007while grep . conftest.defines >/dev/null
14008do
14009 # Write a limited-size here document to $tmp/defines.sed.
14010 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14011 # Speed up: don't consider the non `#define' lines.
14012 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14013 # Work around the forget-to-reset-the-flag bug.
14014 echo 't clr' >>$CONFIG_STATUS
14015 echo ': clr' >>$CONFIG_STATUS
14016 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14017 echo 'CEOF
14018 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14019 rm -f $tmp/in
14020 mv $tmp/out $tmp/in
14021' >>$CONFIG_STATUS
14022 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14023 rm -f conftest.defines
14024 mv conftest.tail conftest.defines
14025done
14026rm -f conftest.defines
14027echo ' fi # grep' >>$CONFIG_STATUS
14028echo >>$CONFIG_STATUS
14029
14030# Break up conftest.undefs because some shells have a limit on the size
14031# of here documents, and old seds have small limits too (100 cmds).
14032echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14033rm -f conftest.tail
14034while grep . conftest.undefs >/dev/null
14035do
14036 # Write a limited-size here document to $tmp/undefs.sed.
14037 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14038 # Speed up: don't consider the non `#undef'
14039 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14040 # Work around the forget-to-reset-the-flag bug.
14041 echo 't clr' >>$CONFIG_STATUS
14042 echo ': clr' >>$CONFIG_STATUS
14043 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14044 echo 'CEOF
14045 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14046 rm -f $tmp/in
14047 mv $tmp/out $tmp/in
14048' >>$CONFIG_STATUS
14049 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14050 rm -f conftest.undefs
14051 mv conftest.tail conftest.undefs
14052done
14053rm -f conftest.undefs
14054
14055cat >>$CONFIG_STATUS <<\_ACEOF
14056 # Let's still pretend it is `configure' which instantiates (i.e., don't
14057 # use $as_me), people would be surprised to read:
14058 # /* config.h. Generated by config.status. */
14059 if test x"$ac_file" = x-; then
14060 echo "/* Generated by configure. */" >$tmp/config.h
14061 else
14062 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14063 fi
14064 cat $tmp/in >>$tmp/config.h
14065 rm -f $tmp/in
14066 if test x"$ac_file" != x-; then
14067 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14068 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14069echo "$as_me: $ac_file is unchanged" >&6;}
14070 else
14071 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14072$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14073 X"$ac_file" : 'X\(//\)[^/]' \| \
14074 X"$ac_file" : 'X\(//\)$' \| \
14075 X"$ac_file" : 'X\(/\)' \| \
14076 . : '\(.\)' 2>/dev/null ||
14077echo X"$ac_file" |
14078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14080 /^X\(\/\/\)$/{ s//\1/; q; }
14081 /^X\(\/\).*/{ s//\1/; q; }
14082 s/.*/./; q'`
14083 { if $as_mkdir_p; then
14084 mkdir -p "$ac_dir"
14085 else
14086 as_dir="$ac_dir"
14087 as_dirs=
14088 while test ! -d "$as_dir"; do
14089 as_dirs="$as_dir $as_dirs"
14090 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14091$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14092 X"$as_dir" : 'X\(//\)[^/]' \| \
14093 X"$as_dir" : 'X\(//\)$' \| \
14094 X"$as_dir" : 'X\(/\)' \| \
14095 . : '\(.\)' 2>/dev/null ||
14096echo X"$as_dir" |
14097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14099 /^X\(\/\/\)$/{ s//\1/; q; }
14100 /^X\(\/\).*/{ s//\1/; q; }
14101 s/.*/./; q'`
14102 done
14103 test ! -n "$as_dirs" || mkdir $as_dirs
14104 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14105echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14106 { (exit 1); exit 1; }; }; }
14107
14108 rm -f $ac_file
14109 mv $tmp/config.h $ac_file
14110 fi
14111 else
14112 cat $tmp/config.h
14113 rm -f $tmp/config.h
14114 fi
14115# Compute $ac_file's index in $config_headers.
14116_am_stamp_count=1
14117for _am_header in $config_headers :; do
14118 case $_am_header in
14119 $ac_file | $ac_file:* )
14120 break ;;
14121 * )
14122 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14123 esac
14124done
14125echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14126$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14127 X$ac_file : 'X\(//\)[^/]' \| \
14128 X$ac_file : 'X\(//\)$' \| \
14129 X$ac_file : 'X\(/\)' \| \
14130 . : '\(.\)' 2>/dev/null ||
14131echo X$ac_file |
14132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14134 /^X\(\/\/\)$/{ s//\1/; q; }
14135 /^X\(\/\).*/{ s//\1/; q; }
14136 s/.*/./; q'`/stamp-h$_am_stamp_count
14137done
14138_ACEOF
14139cat >>$CONFIG_STATUS <<\_ACEOF
14140
14141#
14142# CONFIG_COMMANDS section.
14143#
14144for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14145 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14146 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14147 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14148$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14149 X"$ac_dest" : 'X\(//\)[^/]' \| \
14150 X"$ac_dest" : 'X\(//\)$' \| \
14151 X"$ac_dest" : 'X\(/\)' \| \
14152 . : '\(.\)' 2>/dev/null ||
14153echo X"$ac_dest" |
14154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14156 /^X\(\/\/\)$/{ s//\1/; q; }
14157 /^X\(\/\).*/{ s//\1/; q; }
14158 s/.*/./; q'`
14159 { if $as_mkdir_p; then
14160 mkdir -p "$ac_dir"
14161 else
14162 as_dir="$ac_dir"
14163 as_dirs=
14164 while test ! -d "$as_dir"; do
14165 as_dirs="$as_dir $as_dirs"
14166 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14167$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14168 X"$as_dir" : 'X\(//\)[^/]' \| \
14169 X"$as_dir" : 'X\(//\)$' \| \
14170 X"$as_dir" : 'X\(/\)' \| \
14171 . : '\(.\)' 2>/dev/null ||
14172echo X"$as_dir" |
14173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14175 /^X\(\/\/\)$/{ s//\1/; q; }
14176 /^X\(\/\).*/{ s//\1/; q; }
14177 s/.*/./; q'`
14178 done
14179 test ! -n "$as_dirs" || mkdir $as_dirs
14180 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14181echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14182 { (exit 1); exit 1; }; }; }
14183
14184 ac_builddir=.
14185
14186if test "$ac_dir" != .; then
14187 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14188 # A "../" for each directory in $ac_dir_suffix.
14189 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14190else
14191 ac_dir_suffix= ac_top_builddir=
14192fi
14193
14194case $srcdir in
14195 .) # No --srcdir option. We are building in place.
14196 ac_srcdir=.
14197 if test -z "$ac_top_builddir"; then
14198 ac_top_srcdir=.
14199 else
14200 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14201 fi ;;
14202 [\\/]* | ?:[\\/]* ) # Absolute path.
14203 ac_srcdir=$srcdir$ac_dir_suffix;
14204 ac_top_srcdir=$srcdir ;;
14205 *) # Relative path.
14206 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14207 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14208esac
14209
14210# Do not use `cd foo && pwd` to compute absolute paths, because
14211# the directories may not exist.
14212case `pwd` in
14213.) ac_abs_builddir="$ac_dir";;
14214*)
14215 case "$ac_dir" in
14216 .) ac_abs_builddir=`pwd`;;
14217 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14218 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14219 esac;;
14220esac
14221case $ac_abs_builddir in
14222.) ac_abs_top_builddir=${ac_top_builddir}.;;
14223*)
14224 case ${ac_top_builddir}. in
14225 .) ac_abs_top_builddir=$ac_abs_builddir;;
14226 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14227 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14228 esac;;
14229esac
14230case $ac_abs_builddir in
14231.) ac_abs_srcdir=$ac_srcdir;;
14232*)
14233 case $ac_srcdir in
14234 .) ac_abs_srcdir=$ac_abs_builddir;;
14235 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14236 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14237 esac;;
14238esac
14239case $ac_abs_builddir in
14240.) ac_abs_top_srcdir=$ac_top_srcdir;;
14241*)
14242 case $ac_top_srcdir in
14243 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14244 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14245 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14246 esac;;
14247esac
14248
14249
14250 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14251echo "$as_me: executing $ac_dest commands" >&6;}
14252 case $ac_dest in
14253 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14254 # Strip MF so we end up with the name of the file.
14255 mf=`echo "$mf" | sed -e 's/:.*$//'`
14256 # Check whether this is an Automake generated Makefile or not.
14257 # We used to match only the files named `Makefile.in', but
14258 # some people rename them; so instead we look at the file content.
14259 # Grep'ing the first line is not enough: some people post-process
14260 # each Makefile.in and add a new line on top of each file to say so.
14261 # So let's grep whole file.
14262 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14263 dirpart=`(dirname "$mf") 2>/dev/null ||
14264$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14265 X"$mf" : 'X\(//\)[^/]' \| \
14266 X"$mf" : 'X\(//\)$' \| \
14267 X"$mf" : 'X\(/\)' \| \
14268 . : '\(.\)' 2>/dev/null ||
14269echo X"$mf" |
14270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14272 /^X\(\/\/\)$/{ s//\1/; q; }
14273 /^X\(\/\).*/{ s//\1/; q; }
14274 s/.*/./; q'`
14275 else
14276 continue
14277 fi
14278 # Extract the definition of DEPDIR, am__include, and am__quote
14279 # from the Makefile without running `make'.
14280 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14281 test -z "$DEPDIR" && continue
14282 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14283 test -z "am__include" && continue
14284 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14285 # When using ansi2knr, U may be empty or an underscore; expand it
14286 U=`sed -n 's/^U = //p' < "$mf"`
14287 # Find all dependency output files, they are included files with
14288 # $(DEPDIR) in their names. We invoke sed twice because it is the
14289 # simplest approach to changing $(DEPDIR) to its actual value in the
14290 # expansion.
14291 for file in `sed -n "
14292 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14293 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14294 # Make sure the directory exists.
14295 test -f "$dirpart/$file" && continue
14296 fdir=`(dirname "$file") 2>/dev/null ||
14297$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14298 X"$file" : 'X\(//\)[^/]' \| \
14299 X"$file" : 'X\(//\)$' \| \
14300 X"$file" : 'X\(/\)' \| \
14301 . : '\(.\)' 2>/dev/null ||
14302echo X"$file" |
14303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14305 /^X\(\/\/\)$/{ s//\1/; q; }
14306 /^X\(\/\).*/{ s//\1/; q; }
14307 s/.*/./; q'`
14308 { if $as_mkdir_p; then
14309 mkdir -p $dirpart/$fdir
14310 else
14311 as_dir=$dirpart/$fdir
14312 as_dirs=
14313 while test ! -d "$as_dir"; do
14314 as_dirs="$as_dir $as_dirs"
14315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14317 X"$as_dir" : 'X\(//\)[^/]' \| \
14318 X"$as_dir" : 'X\(//\)$' \| \
14319 X"$as_dir" : 'X\(/\)' \| \
14320 . : '\(.\)' 2>/dev/null ||
14321echo X"$as_dir" |
14322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14324 /^X\(\/\/\)$/{ s//\1/; q; }
14325 /^X\(\/\).*/{ s//\1/; q; }
14326 s/.*/./; q'`
14327 done
14328 test ! -n "$as_dirs" || mkdir $as_dirs
14329 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14330echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14331 { (exit 1); exit 1; }; }; }
14332
14333 # echo "creating $dirpart/$file"
14334 echo '# dummy' > "$dirpart/$file"
14335 done
14336done
14337 ;;
14338 libtool )
14339
14340 # See if we are running on zsh, and set the options which allow our
14341 # commands through without removal of \ escapes.
14342 if test -n "${ZSH_VERSION+set}" ; then
14343 setopt NO_GLOB_SUBST
14344 fi
14345
14346 cfgfile="${ofile}T"
14347 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14348 $RM "$cfgfile"
14349
14350 cat <<_LT_EOF >> "$cfgfile"
14351#! $SHELL
14352
14353# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14354# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14355# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14356# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14357#
14358# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14359# 2006, 2007, 2008 Free Software Foundation, Inc.
14360# Written by Gordon Matzigkeit, 1996
14361#
14362# This file is part of GNU Libtool.
14363#
14364# GNU Libtool is free software; you can redistribute it and/or
14365# modify it under the terms of the GNU General Public License as
14366# published by the Free Software Foundation; either version 2 of
14367# the License, or (at your option) any later version.
14368#
14369# As a special exception to the GNU General Public License,
14370# if you distribute this file as part of a program or library that
14371# is built using GNU Libtool, you may include this file under the
14372# same distribution terms that you use for the rest of that program.
14373#
14374# GNU Libtool is distributed in the hope that it will be useful,
14375# but WITHOUT ANY WARRANTY; without even the implied warranty of
14376# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14377# GNU General Public License for more details.
14378#
14379# You should have received a copy of the GNU General Public License
14380# along with GNU Libtool; see the file COPYING. If not, a copy
14381# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14382# obtained by writing to the Free Software Foundation, Inc.,
14383# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14384
14385
14386# The names of the tagged configurations supported by this script.
14387available_tags=""
14388
14389# ### BEGIN LIBTOOL CONFIG
14390
14391# Which release of libtool.m4 was used?
14392macro_version=$macro_version
14393macro_revision=$macro_revision
14394
14395# Whether or not to build shared libraries.
14396build_libtool_libs=$enable_shared
14397
14398# Whether or not to build static libraries.
14399build_old_libs=$enable_static
14400
14401# What type of objects to build.
14402pic_mode=$pic_mode
14403
14404# Whether or not to optimize for fast installation.
14405fast_install=$enable_fast_install
14406
14407# The host system.
14408host_alias=$host_alias
14409host=$host
14410host_os=$host_os
14411
14412# The build system.
14413build_alias=$build_alias
14414build=$build
14415build_os=$build_os
14416
14417# A sed program that does not truncate output.
14418SED=$lt_SED
14419
14420# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14421Xsed="\$SED -e 1s/^X//"
14422
14423# A grep program that handles long lines.
14424GREP=$lt_GREP
14425
14426# An ERE matcher.
14427EGREP=$lt_EGREP
14428
14429# A literal string matcher.
14430FGREP=$lt_FGREP
14431
14432# A BSD- or MS-compatible name lister.
14433NM=$lt_NM
14434
14435# Whether we need soft or hard links.
14436LN_S=$lt_LN_S
14437
14438# What is the maximum length of a command?
14439max_cmd_len=$max_cmd_len
14440
14441# Object file suffix (normally "o").
14442objext=$ac_objext
14443
14444# Executable file suffix (normally "").
14445exeext=$exeext
14446
14447# whether the shell understands "unset".
14448lt_unset=$lt_unset
14449
14450# turn spaces into newlines.
14451SP2NL=$lt_lt_SP2NL
14452
14453# turn newlines into spaces.
14454NL2SP=$lt_lt_NL2SP
14455
14456# How to create reloadable object files.
14457reload_flag=$lt_reload_flag
14458reload_cmds=$lt_reload_cmds
14459
14460# An object symbol dumper.
14461OBJDUMP=$lt_OBJDUMP
14462
14463# Method to check whether dependent libraries are shared objects.
14464deplibs_check_method=$lt_deplibs_check_method
14465
14466# Command to use when deplibs_check_method == "file_magic".
14467file_magic_cmd=$lt_file_magic_cmd
14468
14469# The archiver.
14470AR=$lt_AR
14471AR_FLAGS=$lt_AR_FLAGS
14472
14473# A symbol stripping program.
14474STRIP=$lt_STRIP
14475
14476# Commands used to install an old-style archive.
14477RANLIB=$lt_RANLIB
14478old_postinstall_cmds=$lt_old_postinstall_cmds
14479old_postuninstall_cmds=$lt_old_postuninstall_cmds
14480
14481# A C compiler.
14482LTCC=$lt_CC
14483
14484# LTCC compiler flags.
14485LTCFLAGS=$lt_CFLAGS
14486
14487# Take the output of nm and produce a listing of raw symbols and C names.
14488global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14489
14490# Transform the output of nm in a proper C declaration.
14491global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14492
14493# Transform the output of nm in a C name address pair.
14494global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14495
14496# Transform the output of nm in a C name address pair when lib prefix is needed.
14497global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14498
14499# The name of the directory that contains temporary libtool files.
14500objdir=$objdir
14501
14502# Shell to use when invoking shell scripts.
14503SHELL=$lt_SHELL
14504
14505# An echo program that does not interpret backslashes.
14506ECHO=$lt_ECHO
14507
14508# Used to examine libraries when file_magic_cmd begins with "file".
14509MAGIC_CMD=$MAGIC_CMD
14510
14511# Must we lock files when doing compilation?
14512need_locks=$lt_need_locks
14513
14514# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14515DSYMUTIL=$lt_DSYMUTIL
14516
14517# Tool to change global to local symbols on Mac OS X.
14518NMEDIT=$lt_NMEDIT
14519
14520# Tool to manipulate fat objects and archives on Mac OS X.
14521LIPO=$lt_LIPO
14522
14523# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14524OTOOL=$lt_OTOOL
14525
14526# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14527OTOOL64=$lt_OTOOL64
14528
14529# Old archive suffix (normally "a").
14530libext=$libext
14531
14532# Shared library suffix (normally ".so").
14533shrext_cmds=$lt_shrext_cmds
14534
14535# The commands to extract the exported symbol list from a shared archive.
14536extract_expsyms_cmds=$lt_extract_expsyms_cmds
14537
14538# Variables whose values should be saved in libtool wrapper scripts and
14539# restored at link time.
14540variables_saved_for_relink=$lt_variables_saved_for_relink
14541
14542# Do we need the "lib" prefix for modules?
14543need_lib_prefix=$need_lib_prefix
14544
14545# Do we need a version for libraries?
14546need_version=$need_version
14547
14548# Library versioning type.
14549version_type=$version_type
14550
14551# Shared library runtime path variable.
14552runpath_var=$runpath_var
14553
14554# Shared library path variable.
14555shlibpath_var=$shlibpath_var
14556
14557# Is shlibpath searched before the hard-coded library search path?
14558shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14559
14560# Format of library name prefix.
14561libname_spec=$lt_libname_spec
14562
14563# List of archive names. First name is the real one, the rest are links.
14564# The last name is the one that the linker finds with -lNAME
14565library_names_spec=$lt_library_names_spec
14566
14567# The coded name of the library, if different from the real name.
14568soname_spec=$lt_soname_spec
14569
14570# Command to use after installation of a shared archive.
14571postinstall_cmds=$lt_postinstall_cmds
14572
14573# Command to use after uninstallation of a shared archive.
14574postuninstall_cmds=$lt_postuninstall_cmds
14575
14576# Commands used to finish a libtool library installation in a directory.
14577finish_cmds=$lt_finish_cmds
14578
14579# As "finish_cmds", except a single script fragment to be evaled but
14580# not shown.
14581finish_eval=$lt_finish_eval
14582
14583# Whether we should hardcode library paths into libraries.
14584hardcode_into_libs=$hardcode_into_libs
14585
14586# Compile-time system search path for libraries.
14587sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14588
14589# Run-time system search path for libraries.
14590sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14591
14592# Whether dlopen is supported.
14593dlopen_support=$enable_dlopen
14594
14595# Whether dlopen of programs is supported.
14596dlopen_self=$enable_dlopen_self
14597
14598# Whether dlopen of statically linked programs is supported.
14599dlopen_self_static=$enable_dlopen_self_static
14600
14601# Commands to strip libraries.
14602old_striplib=$lt_old_striplib
14603striplib=$lt_striplib
14604
14605
14606# The linker used to build libraries.
14607LD=$lt_LD
14608
14609# Commands used to build an old-style archive.
14610old_archive_cmds=$lt_old_archive_cmds
14611
14612# A language specific compiler.
14613CC=$lt_compiler
14614
14615# Is the compiler the GNU compiler?
14616with_gcc=$GCC
14617
14618# Compiler flag to turn off builtin functions.
14619no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14620
14621# How to pass a linker flag through the compiler.
14622wl=$lt_lt_prog_compiler_wl
14623
14624# Additional compiler flags for building library objects.
14625pic_flag=$lt_lt_prog_compiler_pic
14626
14627# Compiler flag to prevent dynamic linking.
14628link_static_flag=$lt_lt_prog_compiler_static
14629
14630# Does compiler simultaneously support -c and -o options?
14631compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14632
14633# Whether or not to add -lc for building shared libraries.
14634build_libtool_need_lc=$archive_cmds_need_lc
14635
14636# Whether or not to disallow shared libs when runtime libs are static.
14637allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14638
14639# Compiler flag to allow reflexive dlopens.
14640export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14641
14642# Compiler flag to generate shared objects directly from archives.
14643whole_archive_flag_spec=$lt_whole_archive_flag_spec
14644
14645# Whether the compiler copes with passing no objects directly.
14646compiler_needs_object=$lt_compiler_needs_object
14647
14648# Create an old-style archive from a shared archive.
14649old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14650
14651# Create a temporary old-style archive to link instead of a shared archive.
14652old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14653
14654# Commands used to build a shared archive.
14655archive_cmds=$lt_archive_cmds
14656archive_expsym_cmds=$lt_archive_expsym_cmds
14657
14658# Commands used to build a loadable module if different from building
14659# a shared archive.
14660module_cmds=$lt_module_cmds
14661module_expsym_cmds=$lt_module_expsym_cmds
14662
14663# Whether we are building with GNU ld or not.
14664with_gnu_ld=$lt_with_gnu_ld
14665
14666# Flag that allows shared libraries with undefined symbols to be built.
14667allow_undefined_flag=$lt_allow_undefined_flag
14668
14669# Flag that enforces no undefined symbols.
14670no_undefined_flag=$lt_no_undefined_flag
14671
14672# Flag to hardcode \$libdir into a binary during linking.
14673# This must work even if \$libdir does not exist
14674hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14675
14676# If ld is used when linking, flag to hardcode \$libdir into a binary
14677# during linking. This must work even if \$libdir does not exist.
14678hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14679
14680# Whether we need a single "-rpath" flag with a separated argument.
14681hardcode_libdir_separator=$lt_hardcode_libdir_separator
14682
14683# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14684# DIR into the resulting binary.
14685hardcode_direct=$hardcode_direct
14686
14687# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14688# DIR into the resulting binary and the resulting library dependency is
14689# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14690# library is relocated.
14691hardcode_direct_absolute=$hardcode_direct_absolute
14692
14693# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14694# into the resulting binary.
14695hardcode_minus_L=$hardcode_minus_L
14696
14697# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14698# into the resulting binary.
14699hardcode_shlibpath_var=$hardcode_shlibpath_var
14700
14701# Set to "yes" if building a shared library automatically hardcodes DIR
14702# into the library and all subsequent libraries and executables linked
14703# against it.
14704hardcode_automatic=$hardcode_automatic
14705
14706# Set to yes if linker adds runtime paths of dependent libraries
14707# to runtime path list.
14708inherit_rpath=$inherit_rpath
14709
14710# Whether libtool must link a program against all its dependency libraries.
14711link_all_deplibs=$link_all_deplibs
14712
14713# Fix the shell variable \$srcfile for the compiler.
14714fix_srcfile_path=$lt_fix_srcfile_path
14715
14716# Set to "yes" if exported symbols are required.
14717always_export_symbols=$always_export_symbols
14718
14719# The commands to list exported symbols.
14720export_symbols_cmds=$lt_export_symbols_cmds
14721
14722# Symbols that should not be listed in the preloaded symbols.
14723exclude_expsyms=$lt_exclude_expsyms
14724
14725# Symbols that must always be exported.
14726include_expsyms=$lt_include_expsyms
14727
14728# Commands necessary for linking programs (against libraries) with templates.
14729prelink_cmds=$lt_prelink_cmds
14730
14731# Specify filename containing input files.
14732file_list_spec=$lt_file_list_spec
14733
14734# How to hardcode a shared library path into an executable.
14735hardcode_action=$hardcode_action
14736
14737# ### END LIBTOOL CONFIG
14738
14739_LT_EOF
14740
14741 case $host_os in
14742 aix3*)
14743 cat <<\_LT_EOF >> "$cfgfile"
14744# AIX sometimes has problems with the GCC collect2 program. For some
14745# reason, if we set the COLLECT_NAMES environment variable, the problems
14746# vanish in a puff of smoke.
14747if test "X${COLLECT_NAMES+set}" != Xset; then
14748 COLLECT_NAMES=
14749 export COLLECT_NAMES
14750fi
14751_LT_EOF
14752 ;;
14753 esac
14754
14755
14756ltmain="$ac_aux_dir/ltmain.sh"
14757
14758
14759 # We use sed instead of cat because bash on DJGPP gets confused if
14760 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14761 # text mode, it properly converts lines to CR/LF. This bash problem
14762 # is reportedly fixed, but why not run on old versions too?
14763 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14764 || (rm -f "$cfgfile"; exit 1)
14765
14766 case $xsi_shell in
14767 yes)
14768 cat << \_LT_EOF >> "$cfgfile"
14769
14770# func_dirname file append nondir_replacement
14771# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14772# otherwise set result to NONDIR_REPLACEMENT.
14773func_dirname ()
14774{
14775 case ${1} in
14776 */*) func_dirname_result="${1%/*}${2}" ;;
14777 * ) func_dirname_result="${3}" ;;
14778 esac
14779}
14780
14781# func_basename file
14782func_basename ()
14783{
14784 func_basename_result="${1##*/}"
14785}
14786
14787# func_dirname_and_basename file append nondir_replacement
14788# perform func_basename and func_dirname in a single function
14789# call:
14790# dirname: Compute the dirname of FILE. If nonempty,
14791# add APPEND to the result, otherwise set result
14792# to NONDIR_REPLACEMENT.
14793# value returned in "$func_dirname_result"
14794# basename: Compute filename of FILE.
14795# value retuned in "$func_basename_result"
14796# Implementation must be kept synchronized with func_dirname
14797# and func_basename. For efficiency, we do not delegate to
14798# those functions but instead duplicate the functionality here.
14799func_dirname_and_basename ()
14800{
14801 case ${1} in
14802 */*) func_dirname_result="${1%/*}${2}" ;;
14803 * ) func_dirname_result="${3}" ;;
14804 esac
14805 func_basename_result="${1##*/}"
14806}
14807
14808# func_stripname prefix suffix name
14809# strip PREFIX and SUFFIX off of NAME.
14810# PREFIX and SUFFIX must not contain globbing or regex special
14811# characters, hashes, percent signs, but SUFFIX may contain a leading
14812# dot (in which case that matches only a dot).
14813func_stripname ()
14814{
14815 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14816 # positional parameters, so assign one to ordinary parameter first.
14817 func_stripname_result=${3}
14818 func_stripname_result=${func_stripname_result#"${1}"}
14819 func_stripname_result=${func_stripname_result%"${2}"}
14820}
14821
14822# func_opt_split
14823func_opt_split ()
14824{
14825 func_opt_split_opt=${1%%=*}
14826 func_opt_split_arg=${1#*=}
14827}
14828
14829# func_lo2o object
14830func_lo2o ()
14831{
14832 case ${1} in
14833 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14834 *) func_lo2o_result=${1} ;;
14835 esac
14836}
14837
14838# func_xform libobj-or-source
14839func_xform ()
14840{
14841 func_xform_result=${1%.*}.lo
14842}
14843
14844# func_arith arithmetic-term...
14845func_arith ()
14846{
14847 func_arith_result=$(( $* ))
14848}
14849
14850# func_len string
14851# STRING may not start with a hyphen.
14852func_len ()
14853{
14854 func_len_result=${#1}
14855}
14856
14857_LT_EOF
14858 ;;
14859 *) # Bourne compatible functions.
14860 cat << \_LT_EOF >> "$cfgfile"
14861
14862# func_dirname file append nondir_replacement
14863# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14864# otherwise set result to NONDIR_REPLACEMENT.
14865func_dirname ()
14866{
14867 # Extract subdirectory from the argument.
14868 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14869 if test "X$func_dirname_result" = "X${1}"; then
14870 func_dirname_result="${3}"
14871 else
14872 func_dirname_result="$func_dirname_result${2}"
14873 fi
14874}
14875
14876# func_basename file
14877func_basename ()
14878{
14879 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14880}
14881
14882
14883# func_stripname prefix suffix name
14884# strip PREFIX and SUFFIX off of NAME.
14885# PREFIX and SUFFIX must not contain globbing or regex special
14886# characters, hashes, percent signs, but SUFFIX may contain a leading
14887# dot (in which case that matches only a dot).
14888# func_strip_suffix prefix name
14889func_stripname ()
14890{
14891 case ${2} in
14892 .*) func_stripname_result=`$ECHO "X${3}" \
14893 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14894 *) func_stripname_result=`$ECHO "X${3}" \
14895 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14896 esac
14897}
14898
14899# sed scripts:
14900my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14901my_sed_long_arg='1s/^-[^=]*=//'
14902
14903# func_opt_split
14904func_opt_split ()
14905{
14906 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14907 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14908}
14909
14910# func_lo2o object
14911func_lo2o ()
14912{
14913 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14914}
14915
14916# func_xform libobj-or-source
14917func_xform ()
14918{
14919 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14920}
14921
14922# func_arith arithmetic-term...
14923func_arith ()
14924{
14925 func_arith_result=`expr "$@"`
14926}
14927
14928# func_len string
14929# STRING may not start with a hyphen.
14930func_len ()
14931{
14932 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14933}
14934
14935_LT_EOF
14936esac
14937
14938case $lt_shell_append in
14939 yes)
14940 cat << \_LT_EOF >> "$cfgfile"
14941
14942# func_append var value
14943# Append VALUE to the end of shell variable VAR.
14944func_append ()
14945{
14946 eval "$1+=\$2"
14947}
14948_LT_EOF
14949 ;;
14950 *)
14951 cat << \_LT_EOF >> "$cfgfile"
14952
14953# func_append var value
14954# Append VALUE to the end of shell variable VAR.
14955func_append ()
14956{
14957 eval "$1=\$$1\$2"
14958}
14959
14960_LT_EOF
14961 ;;
14962 esac
14963
14964
14965 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14966 || (rm -f "$cfgfile"; exit 1)
14967
14968 mv -f "$cfgfile" "$ofile" ||
14969 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14970 chmod +x "$ofile"
14971
14972 ;;
14973 default-1 )
14974 for ac_file in $CONFIG_FILES; do
14975 # Support "outfile[:infile[:infile...]]"
14976 case "$ac_file" in
14977 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14978 esac
14979 # PO directories have a Makefile.in generated from Makefile.in.in.
14980 case "$ac_file" in */Makefile.in)
14981 # Adjust a relative srcdir.
14982 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14983 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14984 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14985 # In autoconf-2.13 it is called $ac_given_srcdir.
14986 # In autoconf-2.50 it is called $srcdir.
14987 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14988 case "$ac_given_srcdir" in
14989 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14990 /*) top_srcdir="$ac_given_srcdir" ;;
14991 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14992 esac
14993 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14994 rm -f "$ac_dir/POTFILES"
14995 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14996 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14997 POMAKEFILEDEPS="POTFILES.in"
14998 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14999 # on $ac_dir but don't depend on user-specified configuration
15000 # parameters.
15001 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15002 # The LINGUAS file contains the set of available languages.
15003 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15004 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15005 fi
15006 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15007 # Hide the ALL_LINGUAS assigment from automake.
15008 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15009 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15010 else
15011 # The set of available languages was given in configure.in.
15012 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15013 fi
15014 case "$ac_given_srcdir" in
15015 .) srcdirpre= ;;
15016 *) srcdirpre='$(srcdir)/' ;;
15017 esac
15018 POFILES=
15019 GMOFILES=
15020 UPDATEPOFILES=
15021 DUMMYPOFILES=
15022 for lang in $ALL_LINGUAS; do
15023 POFILES="$POFILES $srcdirpre$lang.po"
15024 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15025 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15026 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15027 done
15028 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15029 # environment variable.
15030 INST_LINGUAS=
15031 if test -n "$ALL_LINGUAS"; then
15032 for presentlang in $ALL_LINGUAS; do
15033 useit=no
15034 if test "%UNSET%" != "$LINGUAS"; then
15035 desiredlanguages="$LINGUAS"
15036 else
15037 desiredlanguages="$ALL_LINGUAS"
15038 fi
15039 for desiredlang in $desiredlanguages; do
15040 # Use the presentlang catalog if desiredlang is
15041 # a. equal to presentlang, or
15042 # b. a variant of presentlang (because in this case,
15043 # presentlang can be used as a fallback for messages
15044 # which are not translated in the desiredlang catalog).
15045 case "$desiredlang" in
15046 "$presentlang"*) useit=yes;;
15047 esac
15048 done
15049 if test $useit = yes; then
15050 INST_LINGUAS="$INST_LINGUAS $presentlang"
15051 fi
15052 done
15053 fi
15054 CATALOGS=
15055 if test -n "$INST_LINGUAS"; then
15056 for lang in $INST_LINGUAS; do
15057 CATALOGS="$CATALOGS $lang.gmo"
15058 done
15059 fi
15060 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15061 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15062 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15063 if test -f "$f"; then
15064 case "$f" in
15065 *.orig | *.bak | *~) ;;
15066 *) cat "$f" >> "$ac_dir/Makefile" ;;
15067 esac
15068 fi
15069 done
15070 fi
15071 ;;
15072 esac
15073 done ;;
15074 esac
15075done
15076_ACEOF
15077
15078cat >>$CONFIG_STATUS <<\_ACEOF
15079
15080{ (exit 0); exit 0; }
15081_ACEOF
15082chmod +x $CONFIG_STATUS
15083ac_clean_files=$ac_clean_files_save
15084
15085
15086# configure is writing to config.log, and then calls config.status.
15087# config.status does its own redirection, appending to config.log.
15088# Unfortunately, on DOS this fails, as config.log is still kept open
15089# by configure, so config.status won't be able to write to it; its
15090# output is simply discarded. So we exec the FD to /dev/null,
15091# effectively closing config.log, so it can be properly (re)opened and
15092# appended to by config.status. When coming back to configure, we
15093# need to make the FD available again.
15094if test "$no_create" != yes; then
15095 ac_cs_success=:
15096 ac_config_status_args=
15097 test "$silent" = yes &&
15098 ac_config_status_args="$ac_config_status_args --quiet"
15099 exec 5>/dev/null
15100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15101 exec 5>>config.log
15102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15103 # would make configure fail if this is the last instruction.
15104 $ac_cs_success || { (exit 1); exit 1; }
15105fi
15106
This page took 0.075737 seconds and 4 git commands to generate.